4d56e5a3e3fc3133711a131664666a79b332dd0f
[pspp] / ChangeLog
1 2010-04-16  Eric Blake  <eblake@redhat.com>
2
3         test-stdbool: skip test that fails with Solaris CC
4         * tests/test-stdbool.c (f): Skip test that causes compilation
5         error under buggy C++ compiler.
6         * lib/stdbool.in.h: Document the limitation.
7         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
8
9         setenv: allow compilation with C++
10         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
11         register keyword.
12
13         stdint: allow test to pass with C++
14         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15
16         getopt: allow compilation with C++
17         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
18         struct.
19         * lib/getopt.c (_getopt_internal_r): Use correct type.
20         Reported by Dagobert Michelson, via Joel E. Denny.
21
22 2010-04-16  Bruno Haible  <bruno@clisp.org>
23
24         Override netdb.h always.
25         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
27         Reported by Ludovic Courtès <ludo@gnu.org>.
28
29 2010-04-15  Bruno Haible  <bruno@clisp.org>
30
31         openpty: Fix mistake from 2010-03-21.
32         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33         Reported by Simon Josefsson.
34
35 2010-04-15  Eric Blake  <eblake@redhat.com>
36
37         test-forkpty: fix expected signature
38         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
39         Reported by Simon Josefsson.
40
41 2010-04-15  Jim Meyering  <meyering@redhat.com>
42
43         maint.mk: texinfo_suffix_re_: correct the default regexp
44         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
45
46         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
47         make it configurable via texinfo_suffix_re_.
48
49 2010-04-14  Eric Blake  <eblake@redhat.com>
50
51         strtok_r: relax license to LGPLv2+
52         * modules/strtok_r (License): Relax license.
53         Reported by Matthias Bolte.
54
55 2010-04-14  Simon Josefsson  <simon@josefsson.org>
56
57         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
58         version 1.4.4 by default instead of requiring the libgcrypt
59         version used during build.  This makes it possible to use the
60         application with older but still binary compatible libgcrypt
61         versions.
62
63 2010-04-13  Eric Blake  <eblake@redhat.com>
64
65         getopt-gnu: match recent glibc fixes and posix ruling
66         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
67         '+' handling, when requesting extensions.
68         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
69         'W;' handling.
70         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
71         * doc/posix-functions/getopt.texi (getopt): Document this.
72         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
73         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
74         Likewise.
75
76         getopt: merge bug fixes from glibc
77         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
78         diagnostics.  Honor '+:' correctly.  Reject ';'.
79
80         getopt-posix: detect MacOS bug
81         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
82         optind when missing a required argument.
83         * doc/posix-functions/getopt.texi (getopt): Document the bug.
84         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
85         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
86         Likewise.
87
88         getopt-posix: avoid spurious failure on Solaris
89         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
90         an indicator that setting optind=1 is sufficient for reset.
91
92         getopt-posix: avoid spurious failure on FreeBSD
93         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
94         in POSIX mode, since the m4 test uses it.
95
96         gnulib-tool: silence warning on BSD sh
97         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
98
99 2010-04-13  Jim Meyering  <meyering@redhat.com>
100
101         doc: users.txt: GNU patch now uses gnulib
102         * users.txt: Add patch.
103
104 2010-04-12  Jim Meyering  <meyering@redhat.com>
105
106         maint.mk: generate more concise timing data for syntax-check rules
107         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
108         " done" from each line that reports a syntax-check test duration.
109
110 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
111
112         git-version-gen: use "git update-index..." rather than "git status"
113         * build-aux/git-version-gen: Use git update-index --refresh, not
114         "git status".  With some versions of git, "git status" would fail
115         to update the index and result in an unwarranted "-dirty" suffix.
116
117 2010-04-11  Jim Meyering  <meyering@redhat.com>
118
119         openat: correct formatting (no semantic change)
120         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
121         Suggested by Bruno Haible.
122
123 2010-04-11  Bruno Haible  <bruno@clisp.org>
124
125         Stricter declaration checking in testdirs.
126         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
127         If for_tests is true, augment AM_CPPFLAGS to define
128         GNULIB_STRICT_CHECKING.
129         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
130         GNULIB_STRICT_CHECKING is defined, verify that the function is
131         declared.
132
133 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
134             Bruno Haible  <bruno@clisp.org>
135
136         libunistring: Improve configure output.
137         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
138         Don't say "consider installing GNU libunistring" when checking again
139         with libiconv.
140
141 2010-04-11  Bruno Haible  <bruno@clisp.org>
142
143         libunistring: Correct value of $LTLIBUNISTRING.
144         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
145         correct the value of $LTLIBUNISTRING.
146
147 2010-04-11  Bruno Haible  <bruno@clisp.org>
148
149         havelib: Add static libraries to LIBS in the right order.
150         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
151         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
152
153 2010-04-11  Bruno Haible  <bruno@clisp.org>
154
155         libunistring: Detect libunistring also when it depends on libiconv.
156         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
157         the second AC_LIB_HAVE_LINKFLAGS invocation.
158
159 2010-04-11  James Youngman  <jay@gnu.org>
160
161         close-stream: declare local scalars to be "const"
162         * lib/close-stream.c (close_stream): Make boolean variables const
163         to document the fact that we set but do not change them.
164
165 2010-04-11  Bruno Haible  <bruno@clisp.org>
166
167         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
168
169 2010-04-11  Jim Meyering  <meyering@redhat.com>
170
171         maint.mk: don't include dist-check.mk
172         * top/maint.mk: Remove bogus include directive.
173
174         maint.mk: improve empty-line-at-EOF check
175         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
176         solution, rather than tail+Perl-based one.  The latter would read
177         a few kilobytes from the end of each file, and did not handle empty
178         files properly.
179
180         maint.mk: print the elapsed time for each syntax-check rule
181         * top/maint.mk (sc_m_rules_): Save start time in a file.
182         (sc_z_rules_): New rules: remove temp file and print elapsed time.
183         (local-check): Interpose the .z rules
184
185 2010-04-11  Jim Meyering  <meyering@redhat.com>
186
187         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
188         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
189         empty file with one that ends in an empty line.
190
191 2010-04-10  Bruno Haible  <bruno@clisp.org>
192
193         mkdir: Make it work on mingw64.
194         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
195         * lib/mkdir.c: Update comment.
196         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
197
198 2010-04-10  Bruno Haible  <bruno@clisp.org>
199
200         Don't override improved macro from newer autoconf.
201         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
202         autoconf >= 2.62.
203         Reported by Joel E. Denny <jdenny@clemson.edu>.
204
205 2010-04-10  Jim Meyering  <meyering@redhat.com>
206
207         maint.mk: new syntax-check rule: prohibit empty lines at end of file
208         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
209
210         maint.mk: correct a diagnostic
211         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
212         in diagnostic; now use $prohibit.
213
214 2010-04-10  Bruno Haible  <address@hidden>
215
216         fchownat: Fix a C++ test error on Solaris 8.
217         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
218         the function does not exist.
219
220 2010-04-10  Bruno Haible  <bruno@clisp.org>
221
222         vasnprintf: Add more tests.
223         * tests/test-vasnprintf-posix.c: Include <errno.h>.
224         (test_function): Test converting an invalid wide string.
225
226         vasnprintf: Correct handling of unconvertible wide string arguments.
227         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
228         VASNPRINTF.
229         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
230         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
231         smaller than the expected maximum need for the directive. Set errno to
232         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
233         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
234         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
235         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
236         * modules/vasnprintf (Files): Add m4/printf.m4.
237         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
238
239 2010-04-10  Bruno Haible  <bruno@clisp.org>
240
241         vasnprintf: Fix crash in %ls directive.
242         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
243         string is passed as argument to %ls, with no precision and no width.
244         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
245
246 2010-04-10  Bruno Haible  <bruno@clisp.org>
247
248         vasnprintf: Fix multiple test failures on mingw.
249         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
250         _snprintf, or snwprintf, not _snwprintf.
251
252 2010-04-10  Bruno Haible  <bruno@clisp.org>
253
254         write: Fix a C++ test error on mingw.
255         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
256
257 2010-04-10  Bruno Haible  <bruno@clisp.org>
258
259         vasnprintf test: Reduce code duplication.
260         * tests/test-vasnprintf.c (test_function): New function, extracted from
261         test_vasnprintf.
262         (test_vasnprintf, test_asnprintf): Invoke it.
263
264 2010-04-10  Bruno Haible  <bruno@clisp.org>
265
266         strnlen: Fix warning in C++ mode on MacOS X.
267         * lib/string.in.h (strnlen): Use the modern idiom.
268         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
269         defining strnlen as a macro already in <config.h>.
270         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
271         REPLACE_STRNLEN.
272         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
273         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
274
275 2010-04-08  James Youngman  <jay@gnu.org>
276
277         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
278         the example.
279
280 2010-04-09  Jim Meyering  <meyering@redhat.com>
281
282         maint.mk: print better diagnostic when there is no $(_hv_file)
283         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
284         announce that when $(_hv_file) (aka help-version) does not exist.
285
286         init.sh: run tr in the "C" locale to avoid multibyte interpretation
287         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
288         not try to interpret its random input bytes.  Jarno Rajahalme reported
289         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
290         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
291         (mktempd_): Likewise, just in case.
292
293         ftruncate: add two years to projected module removal date: 2012
294         * m4/ftruncate.m4: Adjust comments.
295
296         ftruncate: mark module as obsolete; even MinGW provides it, now
297         * modules/ftruncate (Status): Obsolete.
298         (Notice): Say that.
299         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
300         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
301
302 2010-04-08  Bruno Haible  <bruno@clisp.org>
303
304         Fix side effects from tests-related modules.
305         * modules/dprintf-posix (Comment): New section.
306         * modules/fprintf-posix (Comment): Likewise.
307         * modules/obstack-printf-posix (Comment): Likewise.
308         * modules/printf-posix (Comment): Likewise.
309         * modules/snprintf-posix (Comment): Likewise.
310         * modules/sprintf-posix (Comment): Likewise.
311         * modules/vasnprintf-posix (Comment): Likewise.
312         * modules/vasprintf-posix (Comment): Likewise.
313         * modules/vdprintf-posix (Comment): Likewise.
314         * modules/vfprintf-posix (Comment): Likewise.
315         * modules/vprintf-posix (Comment): Likewise.
316         * modules/vsnprintf-posix (Comment): Likewise.
317         * modules/vsprintf-posix (Comment): Likewise.
318         * modules/xprintf-posix (Comment): Likewise.
319         * modules/xvasprintf-posix (Comment): Likewise.
320         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
321         * modules/floorf-tests (Depends-on): Likewise.
322         * modules/round-tests (Depends-on): Likewise.
323         * modules/roundf-tests (Depends-on): Likewise.
324         * modules/trunc-tests (Depends-on): Likewise.
325         * modules/truncf-tests (Depends-on): Likewise.
326         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
327         'fprintf-posix' module is not present.
328         * tests/test-floorf2.c (check): Likewise.
329         * tests/test-trunc2.c (check): Likewise.
330         * tests/test-truncf2.c (check): Likewise.
331         * tests/test-round2.c (equal): Likewise.
332         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
333
334 2010-04-07  Karl Berry  <karl@gnu.org>
335
336         * config/srclist.txt,
337         * config/srclistvars.sh,
338         * config/srclist-update: doc fixes.
339
340 2010-04-07  Jim Meyering  <meyering@redhat.com>
341
342         maint.mk: add a PATH crosschecking syntax-check rule
343         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
344         Useful if you use a test like the one in help-version (coreutils,
345         diffutils, grep, gzip) that ensures $(VERSION) matches what is
346         printed by prog --version.
347
348 2010-04-06  Bruno Haible  <bruno@clisp.org>
349
350         Fix link error on mingw.
351         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
352         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
353
354 2010-04-06  Bruno Haible  <bruno@clisp.org>
355
356         Assume rmdir exists.
357         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
358
359 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
360
361         doc: update users.txt
362         * users.txt: Add gcal.
363
364 2010-04-06  Jim Meyering  <meyering@redhat.com>
365
366         init.sh: simply unset TMPDIR rather than risking env -i
367         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
368         although it probably works fine on all Unix-based systems, some
369         systems (Cygwin?) cannot tolerate a totally cleared environment.
370         Suggestion from Eric Blake.
371
372 2010-04-06  Jim Meyering  <meyering@redhat.com>
373
374         init.sh: portability fix: use env's POSIX-specified -i option not -u
375         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
376         than unportable env -u.  Solaris 5.11's env lacks support for -u.
377
378 2010-04-05  Bruno Haible  <bruno@clisp.org>
379
380         btowc: Work around Cygwin 1.7.2 bug.
381         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
382         does not map NUL to 0.
383         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
384
385 2010-04-05  Bruno Haible  <bruno@clisp.org>
386
387         Make the multithread modules work on Cygwin 1.7.2.
388         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
389         imported symbols can be declared weak, so that it returns "no" on
390         Cygwin 1.7.2.
391
392 2010-04-05  Bruno Haible  <bruno@clisp.org>
393
394         Use the module 'strncat'.
395         * modules/unistr/u8-strncat (Depends-on): Add strncat.
396
397         Tests for module 'strncat'.
398         * modules/strncat-tests: New file.
399         * tests/test-strncat.c: New file.
400
401         New module 'strncat'.
402         * lib/string.in.h (strncat): New declaration.
403         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
404         * m4/strncat.m4: New file, based on m4/memchr.m4.
405         * modules/strncat: New file.
406         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
407         is declared.
408         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
409         REPLACE_STRNCAT.
410         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
411         REPLACE_STRNCAT.
412         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
413         module.
414         * tests/test-string-c++.cc: Check signature of strncat.
415
416 2010-04-05  Jim Meyering  <meyering@redhat.com>
417
418         xstrtoumax-tests: convert to use init.sh
419         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
420         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
421         Use Exit, not exit.
422         Remove uses of $EXEEXT and "./" to run a program in the current dir.
423
424         xstrtoimax-tests: convert to use init.sh
425         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
426         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
427         Use Exit, not exit.
428         Remove uses of $EXEEXT and "./" to run a program in the current dir.
429
430 2010-04-05  Bruno Haible  <bruno@clisp.org>
431
432         sys_socket: Avoid #define replacements in C++ mode.
433         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
434         warning to the function if possible, rather than #defining the symbol
435         to a dysfunctional alias.
436
437 2010-04-05  Bruno Haible  <bruno@clisp.org>
438
439         fseeko: Fix C++ test error on mingw.
440         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
441         gl_FUNC_FSEEKO.
442         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
443         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
444         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
445         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
446
447 2010-04-05  Bruno Haible  <bruno@clisp.org>
448
449         duplocale: Improve test output.
450         * tests/test-duplocale.c (main): Print reason for skipped test.
451
452 2010-04-05  Bruno Haible  <bruno@clisp.org>
453
454         Assume rmdir exists.
455         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
456         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
457
458 2010-04-05  Bruno Haible  <bruno@clisp.org>
459
460         Fix link error on Solaris 8 with cc.
461         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
462
463 2010-04-05  Bruno Haible  <bruno@clisp.org>
464
465         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
466         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
467
468 2010-04-05  Bruno Haible  <bruno@clisp.org>
469
470         vasprintf: Update documentation.
471         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
472
473 2010-04-05  Bruno Haible  <bruno@clisp.org>
474
475         ptsname: Improve test.
476         * tests/test-ptsname.c (main): Also try the various master names of BSD
477         systems.
478
479 2010-04-05  Bruno Haible  <bruno@clisp.org>
480
481         memchr: Avoid a possible C++ test error.
482         * lib/string.in.h (memchr): Provide declaration if function is missing.
483         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
484         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
486         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
487
488 2010-04-05  Bruno Haible  <bruno@clisp.org>
489
490         strtok_r: Improve idiom.
491         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
492         AC_LIBOBJ is used.
493
494 2010-04-05  Bruno Haible  <bruno@clisp.org>
495
496         strdup: Improve idiom.
497         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
498         AC_LIBOBJ is used.
499         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
500         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
501         when AC_LIBOBJ is used.
502
503 2010-04-05  Bruno Haible  <bruno@clisp.org>
504
505         mbsinit, mbrtowc, wcrtomb: Improve idioms.
506         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
507         don't set REPLACE_MBSINIT to 1.
508         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
509         don't set REPLACE_MBRTOWC to 1.
510         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
511         exist, don't set REPLACE_MBSRTOWCS to 1.
512         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
513         exist, don't set REPLACE_MBSNRTOWCS to 1.
514         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
515         don't set REPLACE_WCRTOMB to 1.
516         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
517         exist, don't set REPLACE_WCSRTOMBS to 1.
518         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
519         exist, don't set REPLACE_WCSNRTOMBS to 1.
520
521 2010-04-05  Bruno Haible  <bruno@clisp.org>
522
523         ldexpl: Improve idiom.
524         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
525         make sure to set HAVE_DECL_LDEXPL to 0.
526
527 2010-04-05  Jim Meyering  <meyering@redhat.com>
528
529         xstrtol-tests: convert to use init.sh
530         * modules/xstrtol-tests (Files): Add tests/init.sh.
531         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
532         Use Exit, not exit.
533         Remove uses of $EXEEXT and "./" to run a program in the current dir.
534
535         atexit-tests: convert to use init.sh
536         * modules/atexit-tests (Files): Add tests/init.sh.
537         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
538         Use Exit, not exit.
539         Remove uses of $EXEEXT and "./" to run a program in the current dir.
540
541         init.sh: fix typo
542         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
543
544         init.sh: make it easier for a test script to write to the tty, ...
545         when using automake's parallel-tests mode.
546         * tests/init.sh (stderr_fileno_): Define overridable variable.
547         (warn_): New function, to use it.
548         (fail_, skip_, framework_failure_): Use warn_.
549
550 2010-04-04  Bruno Haible  <bruno@clisp.org>
551
552         btowc: Avoid warning.
553         * lib/btowc.c: Include <stdlib.h>.
554         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
555
556 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
557             Bruno Haible  <bruno@clisp.org>
558
559         wchar: Port to NetBSD 1.5.
560         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
561         * lib/wctype.in.h (WEOF): Likewise.
562
563 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
564             Bruno Haible  <bruno@clisp.org>
565
566         Port extended stdio to NetBSD 1.5.
567         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
568         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
569         older.
570
571 2010-04-04  Bruno Haible  <bruno@clisp.org>
572
573         string: Remove unused substitution.
574         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
575         HAVE_DECL_STRERROR.
576         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
577
578 2010-04-04  Bruno Haible  <bruno@clisp.org>
579
580         strtod: Avoid a possible C++ test error.
581         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
582         set REPLACE_STRTOD.
583
584 2010-04-04  Bruno Haible  <bruno@clisp.org>
585
586         strerror: Update documentation.
587         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
588
589 2010-04-04  Bruno Haible  <bruno@clisp.org>
590
591         stdio: Fix some C++ test errors on Solaris 8 with GCC.
592         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
593         _GL_CXXALIAS_SYS_CAST.
594
595 2010-04-04  Bruno Haible  <bruno@clisp.org>
596
597         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
598         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
599         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
600         REPLACE_FREXPL to 1.
601         * doc/posix-functions/frexpl.texi: Update documentation.
602
603 2010-04-04  Bruno Haible  <bruno@clisp.org>
604
605         math: Fix some C++ test errors on Solaris 8 and Cygwin.
606         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
607
608 2010-04-04  Bruno Haible  <bruno@clisp.org>
609
610         Implement nanosleep for native Windows.
611         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
612
613 2010-04-04  Bruno Haible  <bruno@clisp.org>
614
615         math: Fix some C++ test errors on Solaris 8.
616         * lib/math.in.h (truncf, trunc): Use simpler idiom.
617
618 2010-04-04  Bruno Haible  <bruno@clisp.org>
619
620         math: Fix some C++ test errors on Cygwin.
621         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
622         truncl): Provide declaration if the system does not have it.
623         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
624         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
625         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
626         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
627         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
628         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
629         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
630         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
631         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
632         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
633         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
634         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
635         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
636         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
637         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
638         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
640         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
641         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
642         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
643         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
644         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
645
646 2010-04-04  Bruno Haible  <bruno@clisp.org>
647
648         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
649         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
650         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
651         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
652         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
653         * m4/isinf.m4 (gl_ISINF): Likewise.
654         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
655
656 2010-04-04  Bruno Haible  <bruno@clisp.org>
657
658         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
659         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
660
661 2010-04-04  Bruno Haible  <bruno@clisp.org>
662
663         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
664         * modules/tmpfile (configure.ac): Update.
665
666         tmpfile: Fix C++ test error on mingw.
667         * lib/stdio.in.h (tmpfile): New declaration.
668         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
669         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
670         * modules/tmpfile (Depends-on): Add stdio.
671         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
672         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
673         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
674         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
675         REPLACE_TMPFILE.
676         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
677
678 2010-04-04  Bruno Haible  <bruno@clisp.org>
679
680         ioctl: Fix C++ test error on mingw.
681         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
682         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
683         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
684
685 2010-04-03  Bruno Haible  <bruno@clisp.org>
686
687         wcwidth: Fix C++ test error on mingw.
688         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
690         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
691
692 2010-04-03  Bruno Haible  <bruno@clisp.org>
693
694         nanosleep: Fix C++ test error on mingw.
695         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
696         * lib/time.in.h (nanosleep): Use modern idiom.
697         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
698         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
699         REPLACE_NANOSLEEP to 1.
700         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
701         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
702
703 2010-04-03  Bruno Haible  <bruno@clisp.org>
704
705         strptime: Fix C++ test error on mingw.
706         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
707         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
708         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
709         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
710         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
711         not REPLACE_STRPTIME.
712         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
713         REPLACE_STRPTIME.
714
715 2010-04-03  Bruno Haible  <bruno@clisp.org>
716
717         timegm: Fix C++ test error on mingw.
718         * lib/time.in.h (timegm): Use modern idiom.
719         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
720         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
721         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
722         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
723
724 2010-04-03  Bruno Haible  <bruno@clisp.org>
725
726         timegm: Assume declaration if function exists.
727         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
728         if it exists. Don't clobber ac_cv_func_timegm.
729
730 2010-04-03  Bruno Haible  <bruno@clisp.org>
731
732         time_r: Fix C++ test error on mingw.
733         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
734         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
735         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
736         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
737         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
738
739 2010-04-03  Bruno Haible  <bruno@clisp.org>
740
741         time_r: Minor updates.
742         * modules/time_r (Description): Mention the provided functions.
743         * lib/time_r.c: Don't include <string.h>.
744         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
745         * doc/posix-functions/localtime_r.texi: Likewise.
746
747 2010-04-03  Bruno Haible  <bruno@clisp.org>
748
749         time: Fix regression introduced on 2010-03-08.
750         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
751         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
752
753 2010-04-03  Jim Meyering  <meyering@redhat.com>
754
755         maint.mk: don't silently disable project-specific syntax-check rules
756         * top/maint.mk (_prohibit_regexp): Define, to help people realize
757         that they need to convert their project-specific syntax-check rules
758         to use the new _sc_search_regexp.
759
760 2010-04-03  Bruno Haible  <bruno@clisp.org>
761
762         fchdir: Fix regression introduced on 2010-03-08.
763         * lib/unistd.in.h (fchdir): Fix declaration.
764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
766         REPLACE_FCHDIR.
767         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
768         REPLACE_FCHDIR.
769
770 2010-04-03  Bruno Haible  <bruno@clisp.org>
771
772         getpagesize: Fix C++ test error on mingw.
773         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
774         system does not declare the function.
775         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
776         declared.
777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
778         HAVE_DECL_GETPAGESIZE.
779         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
780
781 2010-04-03  Bruno Haible  <bruno@clisp.org>
782
783         stdio: Make C++ tests work on mingw.
784         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
785         does not declare the function.
786
787 2010-04-03  Bruno Haible  <bruno@clisp.org>
788
789         ftello: Fix C++ test error on mingw.
790         * lib/stdio.in.h (ftello): Use modern idiom.
791         * lib/ftello.c (ftello): Renamed from rpl_ftello.
792         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
793         is missing and that it needs to be replaced.
794         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
796         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
797
798 2010-04-03  Bruno Haible  <bruno@clisp.org>
799
800         fseeko: Fix C++ test error on mingw.
801         * lib/stdio.in.h (fseeko): Use modern idiom.
802         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
803         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
804         is missing and that it needs to be replaced.
805         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
807         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
808
809 2010-04-03  Bruno Haible  <bruno@clisp.org>
810
811         mkstemp: Fix C++ test error on mingw.
812         * lib/stdlib.in.h (mkstemp): Use modern idiom.
813         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
814         function is missing and that it needs to be replaced.
815         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
816         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
817
818 2010-04-03  Bruno Haible  <bruno@clisp.org>
819
820         stpncpy: Fix C++ test error on mingw.
821         * lib/string.in.h (stpncpy): Use modern idiom.
822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
823         function is missing and that it needs to be replaced.
824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
825         REPLACE_STPNCPY.
826         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
827
828 2010-04-03  Bruno Haible  <bruno@clisp.org>
829
830         sys_stat: Fix C++ test error on mingw.
831         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
832         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
833
834 2010-04-03  Bruno Haible  <bruno@clisp.org>
835
836         pty: Update doc.
837         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
838
839 2010-04-03  Bruno Haible  <bruno@clisp.org>
840
841         unistd: Fix C++ test error on mingw.
842         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
843
844 2010-04-03  Bruno Haible  <bruno@clisp.org>
845
846         Update doc regarding mingw.
847         * doc/glibc-functions/openpty.texi: Update regarding mingw.
848         * doc/glibc-functions/login_tty.texi: Likewise.
849         * doc/glibc-functions/forkpty.texi: Likewise.
850
851 2010-04-03  Bruno Haible  <bruno@clisp.org>
852
853         stdlib: Avoid compilation failure of c-strtold on mingw.
854         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
855
856 2010-04-03  Bruno Haible  <bruno@clisp.org>
857
858         locale: Make C++ tests work on Cygwin and mingw.
859         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
860         cannot provide the function.
861         Reported by Simon Josefsson.
862
863 2010-04-03  Bruno Haible  <bruno@clisp.org>
864
865         localename: Port to MacOS X 10.6.
866         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
867         memory layout of the locales in MacOS X 10.6 as well.
868         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
869
870 2010-04-02  Bruno Haible  <bruno@clisp.org>
871
872         gnulib-tool: Ensure that long-running tests are executed last.
873         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
874         running tests after the one for the other tests.
875
876 2010-04-02  Bruno Haible  <bruno@clisp.org>
877
878         gnulib-tool: Ensure the tests in the main directory are executed first.
879         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
880         start with the current directory.
881
882 2010-04-02  Bruno Haible  <bruno@clisp.org>
883
884         Tests for module 'havelib', moved here from GNU gettext.
885         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
886         modifications.
887         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
888         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
889         with modifications.
890         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
891         modifications.
892         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
893         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
894         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
895         with modifications.
896         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
897         with modifications.
898         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
899         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
900         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
901         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
902         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
903         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
904         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
905         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
906         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
907         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
908         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
909         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
910         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
911         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
912         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
913         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
914         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
915         with modifications.
916         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
917         with modifications.
918         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
919         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
920         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
921         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
922         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
923         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
924         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
925         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
926         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
927         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
928         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
929         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
930         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
931         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
932         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
933         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
934         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
935         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
936         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
937         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
938         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
939         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
940         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
941         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
942         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
943         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
944         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
945         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
946         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
947         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
948         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
949         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
950         * tests/havelib/rpathx/rpathx.c: New file, from
951         gettext/autoconf-lib-link.
952         * tests/havelib/rpathx/Makefile.am: New file, from
953         gettext/autoconf-lib-link.
954         * tests/havelib/rpathx/configure.ac: New file, from
955         gettext/autoconf-lib-link with modifications.
956         * tests/havelib/rpathy/rpathy.c: New file, from
957         gettext/autoconf-lib-link.
958         * tests/havelib/rpathy/Makefile.am: New file, from
959         gettext/autoconf-lib-link.
960         * tests/havelib/rpathy/configure.ac: New file, from
961         gettext/autoconf-lib-link with modifications.
962         * tests/havelib/rpathz/rpathz.c: New file, from
963         gettext/autoconf-lib-link.
964         * tests/havelib/rpathz/Makefile.am: New file, from
965         gettext/autoconf-lib-link.
966         * tests/havelib/rpathz/configure.ac: New file, from
967         gettext/autoconf-lib-link with modifications.
968         * tests/havelib/rpathlx/usex.c: New file, from
969         gettext/autoconf-lib-link.
970         * tests/havelib/rpathlx/Makefile.am: New file, from
971         gettext/autoconf-lib-link.
972         * tests/havelib/rpathlx/configure.ac: New file, from
973         gettext/autoconf-lib-link with modifications.
974         * tests/havelib/rpathly/usey.c: New file, from
975         gettext/autoconf-lib-link.
976         * tests/havelib/rpathly/Makefile.am: New file, from
977         gettext/autoconf-lib-link.
978         * tests/havelib/rpathly/configure.ac: New file, from
979         gettext/autoconf-lib-link with modifications.
980         * tests/havelib/rpathlz/usez.c: New file, from
981         gettext/autoconf-lib-link.
982         * tests/havelib/rpathlz/Makefile.am: New file, from
983         gettext/autoconf-lib-link.
984         * tests/havelib/rpathlz/configure.ac: New file, from
985         gettext/autoconf-lib-link with modifications.
986         * tests/havelib/rpathlyx/usey.c: New file, from
987         gettext/autoconf-lib-link.
988         * tests/havelib/rpathlyx/Makefile.am: New file, from
989         gettext/autoconf-lib-link.
990         * tests/havelib/rpathlyx/configure.ac: New file, from
991         gettext/autoconf-lib-link with modifications.
992         * tests/havelib/rpathlzyx/usez.c: New file, from
993         gettext/autoconf-lib-link.
994         * tests/havelib/rpathlzyx/Makefile.am: New file, from
995         gettext/autoconf-lib-link.
996         * tests/havelib/rpathlzyx/configure.ac: New file, from
997         gettext/autoconf-lib-link with modifications.
998         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
999         with modifications.
1000
1001 2010-04-02  Bruno Haible  <bruno@clisp.org>
1002
1003         gnulib-tool: Create distributed built sources also for the tests.
1004         * gnulib-tool (func_create_testdir): Also generate distributed built
1005         sources in the tests directory.
1006
1007 2010-04-02  Bruno Haible  <bruno@clisp.org>
1008
1009         gnulib-tool: Obey user's environment variables.
1010         * gnulib-tool (func_create_testdir): When creating built sources,
1011         respect the environment variables for autoconf, automake, etc. given by
1012         the user.
1013
1014 2010-04-02  Bruno Haible  <bruno@clisp.org>
1015
1016         gnulib-tool: Provide the value of --m4-base to modules.
1017         * gnulib-tool (func_import, func_create_testdir): Emit a definition
1018         of gl_m4_base.
1019
1020 2010-04-02  Eric Blake  <eblake@redhat.com>
1021
1022         maint.mk: fix some fallout
1023         * NEWS: Document the incompatible change, and its effect on cfg.mk.
1024         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
1025
1026 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
1027
1028         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
1029         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
1030         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
1031         (sc_cast_of_x_alloc_return_value): Likewise.
1032         (sc_cast_of_alloca_return_value): Likewise.
1033         (sc_space_tab): Likewise.
1034         (sc_prohibit_atoi_atof): Likewise.
1035         (sc_prohibit_magic_number_exit): Likewise.
1036         (sc_error_exit_success): Likewise.
1037         (sc_file_system): Likewise.
1038         (sc_prohibit_have_config_h): Likewise.
1039         (sc_require_config_h): Likewise.
1040         (sc_prohibit_HAVE_MBRTOWC): Likewise.
1041         (sc_obsolete_symbols): Likewise.
1042         (sc_changelog): Likewise.
1043         (sc_program_name): Likewise.
1044         (sc_the_the): Likewise.
1045         (sc_trailing_blank): Likewise.
1046         (sc_two_space_separator_in_usage): Likewise.
1047         (sc_useless_cpp_parens): Likewise.
1048         (sc_GPL_version): Likewise.
1049         (sc_GFDL_version): Likewise.
1050         (sc_texinfo_acronym): Likewise.
1051         (sc_prohibit_cvs_keyword): Likewise.
1052         (sc_prohibit_stat_st_blocks): Likewise.
1053         (sc_prohibit_S_IS_definition): Likewise.
1054         (sc_redundant_const): Likewise.
1055         (sc_makefile_TAB_only_indentation): Likewise.
1056         (sc_m4_quote_check): Likewise.
1057         (sc_makefile_path_separator_check): Likewise.
1058         (sc_copyright_check): Likewise.
1059         (sc_Wundef_boolean): Likewise.
1060         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1061
1062         maint.mk: match 0 or more whitespace-before-function-call '('
1063         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
1064         that have zero or two-and-more spaces between the function name
1065         and the open parenthesis.
1066         (sc_error_message_warn_fatal): Likewise.
1067         (sc_error_message_uppercase): Likewise.
1068         (sc_error_message_period): Likewise.
1069
1070 2010-03-31  Eric Blake  <eblake@redhat.com>
1071
1072         maint.mk: check for [ as well as test
1073         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
1074         Based on a libvirt report by Matthias Bolte.
1075
1076         gnumakefile: don't squelch _version output
1077         * top/GNUmakefile (_version): Create one-shot dependency rather
1078         than using $(shell) when version must be regenerated.
1079         (_autoreconf): Run verbosely, by default.
1080
1081         sys_time: avoid compiler warnings
1082         * lib/sys_time.in.h (includes): Ensure gcc pragma is
1083         unconditional, fixing regression from 2010-03-29.
1084         Reported by Simon Josefsson.
1085
1086 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
1087
1088         maint.mk: s/_header_without_use/_sc_header_without_use/
1089         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
1090         (sc_prohibit_assert_without_use): Use the new name.
1091         (sc_prohibit_close_stream_without_use): Likewise.
1092         (sc_prohibit_getopt_without_use): Likewise.
1093         (sc_prohibit_quotearg_without_use): Likewise.
1094         (sc_prohibit_quote_without_use): Likewise.
1095         (sc_prohibit_long_options_without_use): Likewise.
1096         (sc_prohibit_inttostr_without_use): Likewise.
1097         (sc_prohibit_ignore_value_without_use): Likewise.
1098         (sc_prohibit_error_without_use): Likewise.
1099         (sc_prohibit_xalloc_without_use): Likewise.
1100         (sc_prohibit_hash_without_use): Likewise.
1101         (sc_prohibit_hash_pjw_without_use): Likewise.
1102         (sc_prohibit_safe_read_without_use): Likewise.
1103         (sc_prohibit_argmatch_without_use): Likewise.
1104         (sc_prohibit_canonicalize_without_use): Likewise.
1105         (sc_prohibit_root_dev_ino_without_use): Likewise.
1106         (sc_prohibit_openat_without_use): Likewise.
1107         (sc_prohibit_c_ctype_without_use): Likewise.
1108         (sc_prohibit_signal_without_use): Likewise.
1109         (sc_prohibit_intprops_without_use): Likewise.
1110
1111 2010-03-30  Eric Blake  <eblake@redhat.com>
1112
1113         maint: improve module indicators
1114         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
1115         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
1116         columns, and avoid extra macro expansion.
1117
1118         fdopendir: work around FreeBSD bug
1119         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
1120         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
1121         * modules/dirent (Makefile.am): Substitute it.
1122         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
1123         declaration.
1124         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
1125         fix.
1126         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1127
1128 2010-03-29  Bruno Haible  <bruno@clisp.org>
1129
1130         Emit #pragma system_header after the inclusion guard, not before.
1131         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
1132         guard that spans the entire file, not before. This enables an
1133         optimization in GCC's preprocessor.
1134         * lib/ctype.in.h: Likewise.
1135         * lib/dirent.in.h: Likewise.
1136         * lib/errno.in.h: Likewise.
1137         * lib/float.in.h: Likewise.
1138         * lib/getopt.in.h: Likewise.
1139         * lib/iconv.in.h: Likewise.
1140         * lib/langinfo.in.h: Likewise.
1141         * lib/locale.in.h: Likewise.
1142         * lib/math.in.h: Likewise.
1143         * lib/netdb.in.h: Likewise.
1144         * lib/netinet_in.in.h: Likewise.
1145         * lib/pty.in.h: Likewise.
1146         * lib/sched.in.h: Likewise.
1147         * lib/se-selinux.in.h: Likewise.
1148         * lib/search.in.h: Likewise.
1149         * lib/spawn.in.h: Likewise.
1150         * lib/stdarg.in.h: Likewise.
1151         * lib/stdint.in.h: Likewise.
1152         * lib/string.in.h: Likewise.
1153         * lib/strings.in.h: Likewise.
1154         * lib/sys_file.in.h: Likewise.
1155         * lib/sys_ioctl.in.h: Likewise.
1156         * lib/sys_time.in.h: Likewise.
1157         * lib/sys_times.in.h: Likewise.
1158         * lib/sys_utsname.in.h: Likewise.
1159         * lib/sys_wait.in.h: Likewise.
1160         * lib/sysexits.in.h: Likewise.
1161         * lib/wctype.in.h: Likewise.
1162
1163 2010-03-28  James Youngman  <jay@gnu.org>
1164
1165         save-cwd: don't leak a file descriptor when the caller execs.
1166         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
1167         saved file descriptor.
1168         * modules/save-cwd (Depends-on): Depend on cloexec.
1169
1170 2010-03-29  Bruno Haible  <bruno@clisp.org>
1171
1172         Remove vestiges of fts-lgpl module.
1173         * lib/fts_.h: Assume GNULIB_FTS is 1.
1174         * lib/fts.c: Likewise.
1175         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1176
1177 2010-03-28  Bruno Haible  <bruno@clisp.org>
1178
1179         Fix definition of tests witness macro.
1180         * gnulib-tool (func_import): Fix definition of witness macro.
1181
1182 2010-03-28  Bruno Haible  <bruno@clisp.org>
1183
1184         Fix ioctl's protoype on glibc systems.
1185         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
1186         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
1187         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
1188         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
1189         signature. If not, arrange to replace the ioctl function.
1190         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1191         REPLACE_IOCTL.
1192         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
1193         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
1194         Reported by Ludovic Courtès <ludo@gnu.org>.
1195
1196 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
1197
1198         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
1199         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
1200         made it so grep -r --include=GLOB* ... did not work.
1201
1202 2010-03-26  Jim Meyering  <meyering@redhat.com>
1203             Eric Blake  <eblake@redhat.com>
1204
1205         maint.mk: prohibit use of test's -o and -a operators
1206         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
1207
1208 2010-03-28  Bruno Haible  <bruno@clisp.org>
1209
1210         Remove unused GNULIB_XYZ macro definitions.
1211         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
1212         invocation.
1213
1214 2010-03-28  Bruno Haible  <bruno@clisp.org>
1215
1216         Mark privileged tests modules.
1217         * modules/idpriv-drop-tests (Status): New section.
1218         * modules/idpriv-droptemp-tests (Status): New section.
1219
1220 2010-03-28  Bruno Haible  <bruno@clisp.org>
1221
1222         Split C++ tests into separate tests modules.
1223         * modules/dirent-c++-tests: New file, extracted from
1224         modules/dirent-tests.
1225         * modules/dirent-tests: Depend on it.
1226         * modules/fcntl-h-c++-tests: New file, extracted from
1227         modules/fcntl-h-tests.
1228         * modules/fcntl-h-tests: Depend on it.
1229         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
1230         * modules/glob-tests: Depend on it.
1231         * modules/iconv-h-c++-tests: New file, extracted from
1232         modules/iconv-h-tests.
1233         * modules/iconv-h-tests: Depend on it.
1234         * modules/langinfo-c++-tests: New file, extracted from
1235         modules/langinfo-tests.
1236         * modules/langinfo-tests: Depend on it.
1237         * modules/locale-c++-tests: New file, extracted from
1238         modules/locale-tests.
1239         * modules/locale-tests: Depend on it.
1240         * modules/math-c++-tests: New file, extracted from modules/math-tests.
1241         * modules/math-tests: Depend on it.
1242         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
1243         * modules/pty-tests: Depend on it.
1244         * modules/search-c++-tests: New file, extracted from
1245         modules/search-tests.
1246         * modules/search-tests: Depend on it.
1247         * modules/signal-c++-tests: New file, extracted from
1248         modules/signal-tests.
1249         * modules/signal-tests: Depend on it.
1250         * modules/spawn-c++-tests: New file, extracted from
1251         modules/spawn-tests.
1252         * modules/spawn-tests: Depend on it.
1253         * modules/stdio-c++-tests: New file, extracted from
1254         modules/stdio-tests.
1255         * modules/stdio-tests: Depend on it.
1256         * modules/stdlib-c++-tests: New file, extracted from
1257         modules/stdlib-tests.
1258         * modules/stdlib-tests: Depend on it.
1259         * modules/string-c++-tests: New file, extracted from
1260         modules/string-tests.
1261         * modules/string-tests: Depend on it.
1262         * modules/sys_ioctl-c++-tests: New file, extracted from
1263         modules/sys_ioctl-tests.
1264         * modules/sys_ioctl-tests: Depend on it.
1265         * modules/sys_select-c++-tests: New file, extracted from
1266         modules/sys_select-tests.
1267         * modules/sys_select-tests: Depend on it.
1268         * modules/sys_socket-c++-tests: New file, extracted from
1269         modules/sys_socket-tests.
1270         * modules/sys_socket-tests: Depend on it.
1271         * modules/sys_stat-c++-tests: New file, extracted from
1272         modules/sys_stat-tests.
1273         * modules/sys_stat-tests: Depend on it.
1274         * modules/sys_time-c++-tests: New file, extracted from
1275         modules/sys_time-tests.
1276         * modules/sys_time-tests: Depend on it.
1277         * modules/time-c++-tests: New file, extracted from modules/time-tests.
1278         * modules/time-tests: Depend on it.
1279         * modules/unistd-c++-tests: New file, extracted from
1280         modules/unistd-tests.
1281         * modules/unistd-tests: Depend on it.
1282         * modules/wchar-c++-tests: New file, extracted from
1283         modules/wchar-tests.
1284         * modules/wchar-tests: Depend on it.
1285         * modules/wctype-c++-tests: New file, extracted from
1286         modules/wctype-tests.
1287         * modules/wctype-tests: Depend on it.
1288         Reported by Simon Josefsson.
1289
1290 2010-03-28  Bruno Haible  <bruno@clisp.org>
1291
1292         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
1293         * gnulib-tool (func_exists_module): New function, extracted from
1294         func_verify_module.
1295         (func_verify_module): Use it.
1296         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
1297         'foo' only if 'foo' exists.
1298         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
1299         module.
1300
1301 2010-03-28  Bruno Haible  <bruno@clisp.org>
1302
1303         gnulib-tool: Add support for special categories of tests.
1304         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
1305         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
1306         (func_usage): Document them.
1307         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
1308         inc_unportable_tests, inc_all_tests): New variables.
1309         (func_acceptable): Consider these variables.
1310         (func_modules_transitive_closure): Make it work when the 'Status' field
1311         consists of multiple words.
1312         (func_import): Store and restore the values of inc_cxx_tests,
1313         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
1314         inc_all_tests in gnulib-comp.m4.
1315         (func_create_testdir): Set inc_all_tests to true.
1316         * doc/gnulib.texi (Extra tests modules): New section.
1317         Suggested by Jim Meyering.
1318
1319 2010-03-28  Bruno Haible  <bruno@clisp.org>
1320
1321         ansi-c++-opt: Allow turning off the C++ build by default.
1322         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
1323         gl_CXX_CHOICE_DEFAULT_NO is defined.
1324         Requested by Eric Blake.
1325
1326 2010-03-28  Bruno Haible  <bruno@clisp.org>
1327
1328         unistd: Avoid #define replacements in C++ mode.
1329         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1330         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1331         setsockopt, shutdown, select): In C++, attach a warning to the function
1332         if possible, rather than #defining the symbol to a dysfunctional alias.
1333         Reported by John W. Eaton <jwe@gnu.org>.
1334
1335 2010-03-28  Bruno Haible  <bruno@clisp.org>
1336
1337         Fix link errors on mingw.
1338         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1339         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1340         $(LIBSOCKET).
1341         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1342         $(LIBSOCKET).
1343
1344 2010-03-28  Bruno Haible  <bruno@clisp.org>
1345             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1346
1347         lib-ignore: Determine different options for different compilers.
1348         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1349         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1350         Add comments.
1351         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1352         * NEWS: Mention the change.
1353
1354 2010-03-27  Bruno Haible  <bruno@clisp.org>
1355
1356         Remove unused GNULIB_XYZ macro definitions.
1357         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1358         * modules/fseek (configure.ac): Likewise.
1359         * modules/ioctl (configure.ac): Likewise.
1360         * modules/open (configure.ac): Likewise.
1361         * modules/stdlib-safer (configure.ac): Likewise.
1362
1363 2010-03-27  Bruno Haible  <bruno@clisp.org>
1364
1365         Add a remark about certain modules.
1366         * modules/malloc (Comment): New section.
1367         * modules/realloc (Comment): Likewise.
1368         * modules/sigpipe (Comment): Likewise.
1369
1370 2010-03-27  Bruno Haible  <bruno@clisp.org>
1371
1372         Resolve conflict between the two kinds of module indicators.
1373         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1374         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1375         * modules/canonicalize (configure.ac): Invoke
1376         gl_MODULE_INDICATOR_FOR_TESTS.
1377         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1378         GNULIB_XYZ.
1379         * tests/test-dirent-c++.cc: Likewise.
1380         * tests/test-dirent-safer.c: Likewise.
1381         * tests/test-dup2.c: Likewise.
1382         * tests/test-fchdir.c: Likewise.
1383         * tests/test-fcntl-h-c++.cc: Likewise.
1384         * tests/test-getopt.c: Likewise.
1385         * tests/test-getopt.h: Likewise.
1386         * tests/test-langinfo-c++.cc: Likewise.
1387         * tests/test-locale-c++.cc: Likewise.
1388         * tests/test-math-c++.cc: Likewise.
1389         * tests/test-pty-c++.cc: Likewise.
1390         * tests/test-search-c++.cc: Likewise.
1391         * tests/test-signal-c++.cc: Likewise.
1392         * tests/test-spawn-c++.cc: Likewise.
1393         * tests/test-stdio-c++.cc: Likewise.
1394         * tests/test-stdlib-c++.cc: Likewise.
1395         * tests/test-string-c++.cc: Likewise.
1396         * tests/test-sys_ioctl-c++.cc: Likewise.
1397         * tests/test-sys_select-c++.cc: Likewise.
1398         * tests/test-sys_socket-c++.cc: Likewise.
1399         * tests/test-sys_stat-c++.cc: Likewise.
1400         * tests/test-sys_time-c++.cc: Likewise.
1401         * tests/test-time-c++.cc: Likewise.
1402         * tests/test-unistd-c++.cc: Likewise.
1403         * tests/test-wchar-c++.cc: Likewise.
1404         * tests/uninorm/test-u8-nfc.c: Likewise.
1405         * tests/uninorm/test-u8-nfd.c: Likewise.
1406         * tests/uninorm/test-u8-nfkc.c: Likewise.
1407         * tests/uninorm/test-u8-nfkd.c: Likewise.
1408         * tests/uninorm/test-u16-nfc.c: Likewise.
1409         * tests/uninorm/test-u16-nfd.c: Likewise.
1410         * tests/uninorm/test-u16-nfkc.c: Likewise.
1411         * tests/uninorm/test-u16-nfkd.c: Likewise.
1412         * tests/uninorm/test-u32-nfc.c: Likewise.
1413         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1414         * tests/uninorm/test-u32-nfd.c: Likewise.
1415         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1416         * tests/uninorm/test-u32-nfkc.c: Likewise.
1417         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1418         * tests/uninorm/test-u32-nfkd.c: Likewise.
1419         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1420         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1421
1422 2010-03-27  Bruno Haible  <bruno@clisp.org>
1423
1424         Distinguish two kinds of module indicators.
1425         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1426         gl_MODULE_INDICATOR.
1427         (gl_MODULE_INDICATOR): New macro.
1428         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1429         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1430         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1431         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1432         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1433         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1434         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1435         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1436         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1437         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1438         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1439         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1441         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1442         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1443         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1444         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1445         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1446         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1447         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1448         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1449         * modules/cloexec (configure.ac): Likewise.
1450         * modules/getopt-gnu (configure.ac): Likewise.
1451         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1452         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1453         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1454         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1455
1456 2010-03-27  Bruno Haible  <bruno@clisp.org>
1457
1458         New module description field 'Comment'.
1459         * gnulib-tool: New option --extract-comment.
1460         (func_usage): Document it.
1461         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1462         (func_get_comment): New function.
1463         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1464
1465 2010-03-27  Bruno Haible  <bruno@clisp.org>
1466
1467         Addendum to 2010-02-07 commit.
1468         * gnulib-tool (func_usage): Document --extract-applicability option.
1469
1470 2010-03-27  Bruno Haible  <bruno@clisp.org>
1471
1472         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1473         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1474         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1475         rather than link errors.
1476
1477 2010-03-27  Bruno Haible  <bruno@clisp.org>
1478
1479         Avoid side effects from tests-related modules on the compilation of lib.
1480         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1481         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1482         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1483         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1484         macro.
1485         (func_import): Define a witness macro. Assign it a value that depends
1486         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1487         tests-related modules.
1488         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1489         Reported by Jim Meyering.
1490
1491 2010-03-27  Bruno Haible  <bruno@clisp.org>
1492
1493         Factorize common .m4 code.
1494         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1495         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1496         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1497         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1498         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1499         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1500         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1501         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1502         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1503         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1504         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1505         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1506         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1507         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1508         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1509         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1510         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1511         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1512         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1513         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1514         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1515         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1516         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1517         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1518         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1519         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1520         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1521         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1522         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1523         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1524         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1525         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1526
1527 2010-03-27  Bruno Haible  <bruno@clisp.org>
1528
1529         Fix a compilation error on Cygwin with g++ >= 4.3.
1530         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1531         if it is undefined or if we alias it to chmod.
1532         (lstat): Don't warn about the use of this function if it is undefined
1533         or if we alias it to stat.
1534         Reported by Simon Josefsson.
1535
1536 2010-03-27  Bruno Haible  <bruno@clisp.org>
1537
1538         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1539         * modules/getlogin (configure.ac): Update.
1540
1541         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1542         * modules/getlogin_r (configure.ac): Update.
1543
1544         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1545         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1546         * modules/inet_ntop (configure.ac): Update.
1547
1548         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1549         * modules/inet_pton (configure.ac): Update.
1550
1551         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1552         * modules/mbslen (configure.ac): Update.
1553
1554         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1555         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1556         * modules/forkpty (configure.ac): Update.
1557         * modules/openpty (configure.ac): Update.
1558
1559 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1560
1561         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1562         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1563
1564 2010-03-25  Eric Blake  <eblake@redhat.com>
1565
1566         maint: use pragma consistently across replacement headers
1567         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1568         * lib/dirent.in.h (system_header): Likewise.
1569         * lib/errno.in.h (system_header): Likewise.
1570         * lib/float.in.h (system_header): Likewise.
1571         * lib/getopt.in.h (system_header): Likewise.
1572         * lib/iconv.in.h (system_header): Likewise.
1573         * lib/inttypes.in.h (system_header): Likewise.
1574         * lib/langinfo.in.h (system_header): Likewise.
1575         * lib/locale.in.h (system_header): Likewise.
1576         * lib/math.in.h (system_header): Likewise.
1577         * lib/netdb.in.h (system_header): Likewise.
1578         * lib/netinet_in.in.h (system_header): Likewise.
1579         * lib/pty.in.h (system_header): Likewise.
1580         * lib/sched.in.h (system_header): Likewise.
1581         * lib/se-selinux.in.h (system_header): Likewise.
1582         * lib/search.in.h (system_header): Likewise.
1583         * lib/spawn.in.h (system_header): Likewise.
1584         * lib/stdarg.in.h (system_header): Likewise.
1585         * lib/stdint.in.h (system_header): Likewise.
1586         * lib/string.in.h (system_header): Likewise.
1587         * lib/strings.in.h (system_header): Likewise.
1588         * lib/sys_file.in.h (system_header): Likewise.
1589         * lib/sys_ioctl.in.h (system_header): Likewise.
1590         * lib/sys_socket.in.h (system_header): Likewise.
1591         * lib/sys_times.in.h (system_header): Likewise.
1592         * lib/sys_utsname.in.h (system_header): Likewise.
1593         * lib/sys_wait.in.h (system_header): Likewise.
1594         * lib/sysexits.in.h (system_header): Likewise.
1595         * lib/unistd.in.h (system_header): Likewise.
1596         * lib/wctype.in.h (system_header): Likewise.
1597
1598         arpa/inet: fix mingw compilation warning
1599         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1600         Reported by Matthew Bolte.
1601
1602 2010-03-25  Bruno Haible  <bruno@clisp.org>
1603
1604         Avoid collision between gnulib wrapper and libintl wrapper.
1605         * lib/printf.c (printf): Don't define if a printf wrapper is already
1606         defined in intl/printf.c.
1607         Reported by Michel Boaventura <michel@michelboaventura.com>.
1608
1609 2010-03-25  Bruno Haible  <bruno@clisp.org>
1610
1611         Use ANSI C.
1612         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1613
1614 2010-03-25  Bruno Haible  <bruno@clisp.org>
1615
1616         Minor formatting changes.
1617         * lib/acosl.c: Insert space before function argument list.
1618         * lib/argz.c: Likewise.
1619         * lib/asinl.c: Likewise.
1620         * lib/expl.c: Likewise.
1621         * lib/gen-uni-tables.c: Likewise.
1622         * lib/gettext.h: Likewise.
1623         * lib/glthread/lock.h: Likewise.
1624         * lib/tanl.c: Likewise.
1625         * lib/uniname/uniname.c: Likewise.
1626         * tests/test-idpriv-drop.c: Likewise.
1627         * tests/test-idpriv-droptemp.c: Likewise.
1628         * tests/test-lock.c: Likewise.
1629         * tests/test-tls.c: Likewise.
1630         * lib/argp-help.c: Insert space before function-like macro argument
1631         list.
1632         * lib/memcmp.c: Likewise.
1633         * tests/test-base64.c: Likewise.
1634         * lib/localename.c: Insert space before sizeof's argument list.
1635         * lib/safe-alloc.h: Likewise.
1636         * lib/file-set.h: Insert space before macro argument list.
1637         * tests/test-argp.c: Likewise.
1638         * lib/argp-namefrob.h: Insert space before function parameter list.
1639         * lib/getaddrinfo.c: Likewise.
1640         * lib/netdb.in.h: Likewise.
1641         * lib/parse-duration.h: Likewise.
1642         * lib/parse-duration.c: Likewise.
1643         * lib/poll.c: Likewise.
1644         * lib/select.c: Likewise.
1645         * lib/trim.h: Likewise.
1646         * tests/test-usleep.c: Likewise.
1647         * lib/ldexpl.c: Insert space before function parameter list and before
1648         function argument list.
1649         * lib/logl.c: Likewise.
1650         * lib/sqrtl.c: Likewise.
1651         * lib/trim.c: Likewise.
1652         * lib/cosl.c: Use GNU style indentation. Insert space before function
1653         argument list.
1654         * lib/sinl.c: Likewise.
1655         * lib/tsearch.c: Insert space after 'for'.
1656         Reported by Jim Meyering.
1657
1658 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1659
1660         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1661         config header before grepping, as it's not present before
1662         autoreconf/configure are run.  Reported by Simon Josefsson.
1663
1664 2010-03-23  Bruno Haible  <bruno@clisp.org>
1665
1666         pt_chown: Make it work with automake < 1.11.
1667         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1668         Reported by Simon Josefsson.
1669
1670 2010-03-23  Bruno Haible  <bruno@clisp.org>
1671
1672         pt_chown: Don't depend on GPLed modules.
1673         * lib/pt_chown.c: Don't include idpriv.h.
1674         (main): Don't drop privileges.
1675         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1676         Reported by Simon Josefsson.
1677
1678 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1679
1680         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1681         suggestions from karl@freefriends.org (Karl Berry).
1682
1683 2010-03-22  Eric Blake  <eblake@redhat.com>
1684
1685         gethostname: further tweaks
1686         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1687         are overriding gethostname.
1688         Suggested by Bruno Haible.
1689
1690 2010-03-21  Bruno Haible  <bruno@clisp.org>
1691
1692         Fix comments.
1693         * lib/forkpty.c (rpl_forkpty): Fix comment.
1694         * lib/openpty.c (rpl_openpty): Likewise.
1695         Reported by Eric Blake.
1696
1697 2010-03-22  Eric Blake  <eblake@redhat.com>
1698
1699         gethostname: fix build on mingw
1700         * lib/unistd.in.h (includes): Work around fact that mingw
1701         <winsock2.h> re-includes <unistd.h>, by avoiding any
1702         redeclarations if we are being included by <winsock2.h>.
1703         Reported by Matthias Bolte.
1704
1705 2010-03-21  Bruno Haible  <bruno@clisp.org>
1706
1707         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1708         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1709         modifications.
1710         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1711         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1712         provide the replacement.
1713         * modules/forkpty (Depends-on): Add openpty, login_tty.
1714         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1715         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1716         * doc/glibc-functions/forkpty.texi: More supported platforms.
1717         * config/srclist.txt: Add forkpty.c (commented).
1718
1719 2010-03-21  Bruno Haible  <bruno@clisp.org>
1720
1721         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1722         (Makefile.am): Verify that PTY_LIB is defined.
1723
1724         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1725
1726 2010-03-21  Bruno Haible  <bruno@clisp.org>
1727
1728         Tests for module 'login_tty'.
1729         * modules/login_tty-tests: New file.
1730         * tests/test-login_tty.c: New file.
1731
1732         New module 'login_tty'.
1733         * lib/login_tty.c: New file.
1734         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1735         * modules/login_tty: New file.
1736         * doc/glibc-functions/login_tty.texi: Mention the new module.
1737
1738 2010-03-21  Bruno Haible  <bruno@clisp.org>
1739
1740         login_tty: Documentation.
1741         * doc/glibc-functions/login_tty.texi: New file.
1742         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1743
1744 2010-03-21  Bruno Haible  <bruno@clisp.org>
1745
1746         pty: Consistent macro naming.
1747         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1748         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1749         * modules/pty (configure.ac): Update.
1750
1751 2010-03-21  Bruno Haible  <bruno@clisp.org>
1752
1753         Tests for openpty: Make stricter.
1754         * tests/test-openpty.c (main): Add test of canonical processing and
1755         erase.
1756         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1757
1758         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1759         * lib/openpty.c (openpty): New replacement function.
1760         * lib/pty.in.h: Include <termios.h>.
1761         (openpty): Update declaration. Add comments.
1762         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1763         is not declared, arrange to provide the replacement. Check for _getpty
1764         and posix_openpt.
1765         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1766         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1767         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1768         * modules/pty-tests (test_pty_c___LDADD): New variable.
1769         * doc/glibc-functions/openpty.texi: More supported platforms.
1770
1771 2010-03-21  Bruno Haible  <bruno@clisp.org>
1772
1773         setenv: Tweaks.
1774         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1775         the test program.
1776         * doc/posix-functions/setenv.texi: Update platforms list.
1777
1778 2010-03-21  Bruno Haible  <bruno@clisp.org>
1779
1780         New module 'unlockpt'.
1781         * lib/unlockpt.c: New file, from glibc with modifications.
1782         * m4/unlockpt.m4: New file.
1783         * modules/unlockpt: New file.
1784         * lib/stdlib.in.h (unlockpt): New declaration.
1785         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1786         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1787         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1788         HAVE_UNLOCKPT.
1789         * doc/posix-functions/unlockpt.texi: Mention the new module.
1790         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1791         * config/srclist.txt: Add unlockpt.c (commented).
1792
1793 2010-03-21  Jim Meyering  <meyering@redhat.com>
1794
1795         maint.mk: prohibit inclusion of "intprops.h" without use
1796         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1797
1798 2010-03-21  Bruno Haible  <bruno@clisp.org>
1799
1800         New module 'grantpt'.
1801         * lib/grantpt.c: New file, from glibc with modifications.
1802         * m4/grantpt.m4: New file.
1803         * modules/grantpt: New file.
1804         * lib/stdlib.in.h (grantpt): New declaration.
1805         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1806         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1807         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1808         HAVE_GRANTPT.
1809         * doc/posix-functions/grantpt.texi: Mention the new module.
1810         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1811         * config/srclist.txt: Add grantpt.c (commented).
1812
1813 2010-03-21  Bruno Haible  <bruno@clisp.org>
1814
1815         New module 'pt_chown'.
1816         * lib/pt_chown.c: New file, from glibc with modifications.
1817         * lib/pty-private.h: New file, from glibc with modifications.
1818         * modules/pt_chown: New file.
1819         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1820
1821 2010-03-21  Bruno Haible  <bruno@clisp.org>
1822
1823         Tests for module 'ptsname'.
1824         * modules/ptsname-tests: New file.
1825         * tests/test-ptsname.c: New file.
1826
1827         New module 'ptsname'.
1828         * lib/ptsname.c: New file, from glibc with modifications.
1829         * m4/ptsname.m4: New file.
1830         * modules/ptsname: New file.
1831         * lib/stdlib.in.h (ptsname): New declaration.
1832         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1833         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1834         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1835         HAVE_PTSNAME.
1836         * doc/posix-functions/ptsname.texi: Mention the new module.
1837         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1838         * config/srclist.txt: Add ptsname.c (commented).
1839
1840 2010-03-21  Bruno Haible  <bruno@clisp.org>
1841
1842         Tests for module 'ttyname_r'.
1843         * modules/ttyname_r-tests: New file.
1844         * tests/test-ttyname_r.c: New file.
1845
1846         New module 'ttyname_r'.
1847         * lib/ttyname_r.c: New file.
1848         * m4/ttyname_r.m4: New file.
1849         * modules/ttyname_r: New file.
1850         * lib/unistd.in.h (ttyname_r): New declaration.
1851         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1852         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1853         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1854         HAVE_TTYNAME_R.
1855         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1856         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1857
1858 2010-03-20  Bruno Haible  <bruno@clisp.org>
1859
1860         signal: Undefine macro definitions in C++ mode.
1861         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1862         sigfillset): Undefine macro definitions from the system header in C++
1863         mode.
1864         Reported by John W. Eaton <jwe@gnu.org>.
1865
1866 2010-03-20  Bruno Haible  <bruno@clisp.org>
1867
1868         Ensure no #include statements inside extern "C" { ... }.
1869         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1870         contain #include statements.
1871         * lib/time.in.h: Likewise.
1872
1873 2010-03-20  Bruno Haible  <bruno@clisp.org>
1874
1875         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1876         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1877         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1878         Reported by John W. Eaton <jwe@gnu.org>.
1879
1880 2010-03-20  Bruno Haible  <bruno@clisp.org>
1881
1882         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1883         Reported by Jim Meyering.
1884
1885 2010-03-20  Bruno Haible  <bruno@clisp.org>
1886
1887         pipe: Set errno upon failure.
1888         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1889         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1890         errno value in error message.
1891
1892 2010-03-20  Bruno Haible  <bruno@clisp.org>
1893             Jim Meyering  <meyering@redhat.com>
1894
1895         lchown: Avoid "unused variable" warning.
1896         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1897
1898 2010-03-20  Bruno Haible  <bruno@clisp.org>
1899
1900         Work around unlink() bug on MacOS X 10.5.6.
1901         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1902         attempting to unlink a parent directory.
1903         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1904         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1905         activate for the replacement function.
1906         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1907
1908 2010-03-20  Bruno Haible  <bruno@clisp.org>
1909
1910         Fix link errors on Solaris 8.
1911         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1912         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1913
1914 2010-03-19  Jim Meyering  <meyering@redhat.com>
1915
1916         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1917         The _LIBC implementation of build_range_exp correctly honors the
1918         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1919         However, the non-_LIBC implementation would ignore that syntax-bit
1920         flag and return REG_ERANGE unconditionally.
1921         This change makes it honor that flag.
1922         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1923         Make two pointer parameters "const".
1924         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1925         (parse_bracket_exp): Update caller.
1926
1927         regex.m4: correct the reversed range endpoint ([b-a]) test
1928         * m4/regex.m4: When requiring that [b-a] evoke failure,
1929         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1930         test pass once again for x86-based systems.
1931
1932 2010-03-19  Bruno Haible  <bruno@clisp.org>
1933
1934         scandir: Fix link error on Solaris 8.
1935         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1936         macros.
1937
1938 2010-03-19  Bruno Haible  <bruno@clisp.org>
1939
1940         getusershell: Fix documentation.
1941         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1942         module.
1943         * doc/glibc-functions/setusershell.texi: Likewise.
1944
1945         getusershell: Provide declaration, missing on Solaris 9.
1946         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1947         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1948         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1949         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1951         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1952         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1953         HAVE_GETUSERSHELL.
1954         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1955
1956 2010-03-19  Bruno Haible  <bruno@clisp.org>
1957
1958         wctype: Provide iswblank function.
1959         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1960         exists and is fine.
1961         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1962         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1963         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1964         * doc/posix-functions/iswblank.texi: Update.
1965
1966 2010-03-19  Bruno Haible  <bruno@clisp.org>
1967
1968         Tests of module 'pty' in C++ mode.
1969         * modules/pty-tests: New file.
1970         * tests/test-pty-c++.cc: New file.
1971         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1972
1973 2010-03-19  Eric Blake  <eblake@redhat.com>
1974
1975         logb: fix documentation
1976         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1977         1.5 declaration bug.
1978
1979         forkpty, openpty: prefer glibc's const-safe prototype
1980         * lib/forkpty.c (rpl_forkpty): New file.
1981         * lib/openpty.c (rpl_openpty): Likewise.
1982         * modules/forkpty (Files): Distribute it.
1983         * modules/openpty (Files): Likewise.
1984         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1985         check...
1986         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1987         replacement for for non-const BSD signature.
1988         * modules/pty (Makefile.am): Substitute witnesses.
1989         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1990         * tests/test-forkpty.c: Update signature check.
1991         * tests/test-openpty.c: Likewise.
1992         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1993         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1994
1995         forkpty, openpty: split functions into new modules
1996         * modules/pty (Makefile.am): Substitute new witnesses.
1997         (Libraries): Move library detection...
1998         * modules/forkpty: ...into new module.
1999         * modules/openpty: Another new module.
2000         * modules/pty-tests: Rename and split...
2001         * modules/forkpty-tests: ...to this...
2002         * modules/openpty-tests: ...and this.
2003         * tests/test-pty.c: Rename and split...
2004         * tests/test-forkpty.c: ...to this...
2005         * tests/test-openpty.c: ...and this.
2006         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
2007         (gl_PTY): Split library searching...
2008         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
2009         (gl_FORKPTY, gl_OPENPTY): New macros.
2010         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
2011         * NEWS: Mention the split.
2012         * MODULES.html.sh (Misc): Document the modules.
2013         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
2014         * doc/glibc-functions/openpty.texi (openpty): Likewise.
2015
2016         pty: improve replacement header
2017         * lib/pty.in.h: New file.
2018         * modules/pty (Files): Ship it.
2019         (Makefile.am): Always build replacement.
2020         * m4/pty.m4: Rename...
2021         * m4/pty_h.m4: ...to this.
2022         (gl_PTY): Modernize setting of witness macros; update check of
2023         forkpty to take proper advantage of cache.
2024         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
2025
2026         getopt: avoid compiler warning
2027         * lib/getopt.c (attribute_hidden): Remove unused macro.
2028
2029 2010-03-18  Bruno Haible  <bruno@clisp.org>
2030
2031         Fix link errors on Solaris 8.
2032         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
2033         * modules/search-tests (test_search_c___LDADD): Likewise.
2034         * modules/signal-tests (test_signal_c___LDADD): Likewise.
2035         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
2036         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
2037         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
2038         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
2039         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
2040         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
2041
2042 2010-03-18  Bruno Haible  <bruno@clisp.org>
2043
2044         Fix bug introduced on 2010-03-14.
2045         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
2046         (gl_SPAWN_H): Require it.
2047         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
2048         Reported by Simon Josefsson.
2049
2050 2010-03-18  Bruno Haible  <bruno@clisp.org>
2051
2052         Fix typo introduced on 2009-12-31.
2053         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
2054         posix_spawn_file_actions_adddup2.
2055
2056 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
2057         and Eric Blake  <eblake@redhat.com>
2058
2059         test-vc-list-files-git: make more robust
2060         * tests/test-vc-list-files-git.sh: Unset problematic environment
2061         variables.  Chain commands together.
2062
2063 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
2064
2065         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
2066         `AC_CHECK_DECL' invocation.
2067
2068 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
2069
2070         * lib/inttostr.c (inttostr): Make sure the invocation of verify
2071         appears before executable statements. Suggested by Petr Sumbera
2072         <Petr.Sumbera@Sun.COM>.
2073
2074 2010-03-14  Bruno Haible  <bruno@clisp.org>
2075
2076         * tests/test-flock.c (test_exclusive): Comment out a test that causes
2077         portability problems. Instead use a simpler test.
2078         (main): Check that invalid arguments are rejected only on Linux.
2079
2080 2010-03-14  Bruno Haible  <bruno@clisp.org>
2081
2082         Fix bug introduced on 2009-12-31.
2083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2084         gl_PREREQ_SYS_H_WINSOCK2 always.
2085         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
2086         SYS_SOCKET_H variable.
2087         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
2088         Update comments.
2089         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
2090         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2091         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2092         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2093         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2094
2095 2010-03-14  Bruno Haible  <bruno@clisp.org>
2096
2097         Fix values returned by sinl, cosl.
2098         * lib/trigl.h: Add specification comments.
2099         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
2100         that combines the values from the precomputed table with the values of
2101         the Chebyshev polynomials.
2102
2103 2010-03-14  Bruno Haible  <bruno@clisp.org>
2104
2105         Fix compilation error when modules 'posix_spawn[p]' are not used.
2106         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
2107         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
2108
2109 2010-03-14  Bruno Haible  <bruno@clisp.org>
2110
2111         Fix compilation error on mingw when module 'time_r' is not used.
2112         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
2113         is 1.
2114         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
2115         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2116         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
2117         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
2118
2119 2010-03-14  Bruno Haible  <bruno@clisp.org>
2120
2121         Fix compilation error with Sun C.
2122         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
2123         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
2124         instead of GCC specific ULONG_LONG_MAX.
2125         * lib/xstrtoll.c: Likewise.
2126         * lib/xstrtoull.c: Likewise.
2127
2128 2010-03-13  Bruno Haible  <bruno@clisp.org>
2129
2130         Allow the user to disable C++ code and tests.
2131         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
2132         (gl_PROG_ANSI_CXX): Require it.
2133
2134 2010-03-13  Bruno Haible  <bruno@clisp.org>
2135
2136         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
2137         cases.
2138
2139 2010-03-13  Bruno Haible  <bruno@clisp.org>
2140
2141         Test that gnulib does not break the standard C++ headers.
2142         * tests/test-locale-c++2.cc: New file.
2143         * modules/locale-tests (Files): Add it.
2144         (Makefile.am): Compile it for test-locale-c++.
2145         * tests/test-math-c++2.cc: New file.
2146         * modules/math-tests (Files): Add it.
2147         (Makefile.am): Compile it for test-math-c++.
2148         * tests/test-signal-c++2.cc: New file.
2149         * modules/signal-tests (Files): Add it.
2150         (Makefile.am): Compile it for test-signal-c++.
2151         * tests/test-stdio-c++2.cc: New file.
2152         * modules/stdio-tests (Files): Add it.
2153         (Makefile.am): Compile it for test-stdio-c++.
2154         * tests/test-stdlib-c++2.cc: New file.
2155         * modules/stdlib-tests (Files): Add it.
2156         (Makefile.am): Compile it for test-stdlib-c++.
2157         * tests/test-string-c++2.cc: New file.
2158         * modules/string-tests (Files): Add it.
2159         (Makefile.am): Compile it for test-string-c++.
2160         * tests/test-time-c++2.cc: New file.
2161         * modules/time-tests (Files): Add it.
2162         (Makefile.am): Compile it for test-time-c++.
2163         Reported by John W. Eaton <jwe@gnu.org>.
2164
2165 2010-03-13  Bruno Haible  <bruno@clisp.org>
2166
2167         * gnulib-tool (func_usage): Clarify which options are available for
2168         --create-testdir and --create-megatestdir.
2169
2170 2010-03-13  Bruno Haible  <bruno@clisp.org>
2171
2172         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
2173         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
2174         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
2175         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2176         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
2177         when appropriate.
2178         Reported by Jim Meyering.
2179
2180 2010-03-12  Simon Josefsson  <simon@josefsson.org>
2181
2182         * gnulib-tool (func_import): Explain origin of code.
2183
2184 2010-03-12  Bruno Haible  <bruno@clisp.org>
2185
2186         Fix problem with automake's definition of CXXLINK.
2187         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
2188         Reported by Simon Josefsson and Ludovic Courtès.
2189
2190 2010-03-12  Bruno Haible  <bruno@clisp.org>
2191
2192         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
2193         stable releases.
2194
2195 2010-03-11  Bruno Haible  <bruno@clisp.org>
2196
2197         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
2198         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
2199         whether the system provides one variant or multiple variants of the
2200         function.
2201         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
2202         C++ compilers.
2203         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
2204         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
2205         Reported by Jim Meyering.
2206
2207 2010-03-09  Simon Josefsson  <simon@josefsson.org>
2208
2209         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
2210
2211 2010-03-08  Bruno Haible  <bruno@clisp.org>
2212
2213         gnulib-tool: Add support for --libtool in --create-testdir.
2214         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
2215         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
2216
2217 2010-03-08  Eric Blake  <eblake@redhat.com>
2218
2219         gnulib-tool.texi: mention possibility of git submodule
2220         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
2221         submodules.
2222         * doc/.gitignore: Ignore another generated file.
2223
2224 2010-03-08  Karl Berry  <karl@gnu.org>
2225
2226         * doc/gnulib-tool.texi (VCS Issues): Mention third option
2227         of committing gnulib files while skipping others.
2228
2229 2010-03-07  Bruno Haible  <bruno@clisp.org>
2230
2231         Tests of module 'wctype' in C++ mode.
2232         * tests/test-wctype-c++.cc: New file.
2233         * modules/wctype-tests (Files): Add it and tests/signature.h.
2234         (Depends-on): Add ansi-c++-opt.
2235         (Makefile.am): Arrange to compile and run test-wctype-c++.
2236
2237         Tests of module 'wchar' in C++ mode.
2238         * tests/test-wchar-c++.cc: New file.
2239         * modules/wchar-tests (Files): Add it and tests/signature.h.
2240         (Depends-on): Add ansi-c++-opt.
2241         (Makefile.am): Arrange to compile and run test-wchar-c++.
2242         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
2243         gl_MODULE_INDICATOR.
2244
2245         Tests of module 'unistd' in C++ mode.
2246         * tests/test-unistd-c++.cc: New file.
2247         * modules/unistd-tests (Files): Add it and tests/signature.h.
2248         (Depends-on): Add ansi-c++-opt.
2249         (Makefile.am): Arrange to compile and run test-unistd-c++.
2250         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
2251         gl_MODULE_INDICATOR.
2252
2253         Tests of module 'time' in C++ mode.
2254         * tests/test-time-c++.cc: New file.
2255         * modules/time-tests (Files): Add it and tests/signature.h.
2256         (Depends-on): Add ansi-c++-opt.
2257         (Makefile.am): Arrange to compile and run test-time-c++.
2258         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2259
2260         Tests of module 'sys_time' in C++ mode.
2261         * tests/test-sys_time-c++.cc: New file.
2262         * modules/sys_time-tests (Files): Add it and tests/signature.h.
2263         (Depends-on): Add ansi-c++-opt.
2264         (Makefile.am): Arrange to compile and run test-sys_time-c++.
2265         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
2266         gl_MODULE_INDICATOR.
2267
2268         Tests of module 'sys_stat' in C++ mode.
2269         * tests/test-sys_stat-c++.cc: New file.
2270         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
2271         (Depends-on): Add ansi-c++-opt.
2272         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
2273         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
2274         gl_MODULE_INDICATOR.
2275
2276         Tests of module 'sys_socket' in C++ mode.
2277         * tests/test-sys_socket-c++.cc: New file.
2278         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
2279         (Depends-on): Add ansi-c++-opt.
2280         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
2281         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
2282         gl_MODULE_INDICATOR.
2283
2284         Tests of module 'sys_select' in C++ mode.
2285         * tests/test-sys_select-c++.cc: New file.
2286         * modules/sys_select-tests (Files): Add it and tests/signature.h.
2287         (Depends-on): Add ansi-c++-opt.
2288         (Makefile.am): Arrange to compile and run test-sys_select-c++.
2289         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
2290         gl_MODULE_INDICATOR.
2291
2292         Tests of module 'sys_ioctl' in C++ mode.
2293         * tests/test-sys_ioctl-c++.cc: New file.
2294         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
2295         (Depends-on): Add ansi-c++-opt.
2296         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
2297         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
2298         gl_MODULE_INDICATOR.
2299
2300         Tests of module 'string' in C++ mode.
2301         * tests/test-string-c++.cc: New file.
2302         * modules/string-tests (Files): Add it and tests/signature.h.
2303         (Depends-on): Add ansi-c++-opt.
2304         (Makefile.am): Arrange to compile and run test-string-c++.
2305         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
2306         gl_MODULE_INDICATOR.
2307
2308         Tests of module 'stdlib' in C++ mode.
2309         * tests/test-stdlib-c++.cc: New file.
2310         * modules/stdlib-tests (Files): Add it and tests/signature.h.
2311         (Depends-on): Add ansi-c++-opt.
2312         (Makefile.am): Arrange to compile and run test-stdlib-c++.
2313         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
2314         gl_MODULE_INDICATOR.
2315
2316         Tests of module 'stdio' in C++ mode.
2317         * tests/test-stdio-c++.cc: New file.
2318         * modules/stdio-tests (Files): Add it and tests/signature.h.
2319         (Depends-on): Add ansi-c++-opt.
2320         (Makefile.am): Arrange to compile and run test-stdio-c++.
2321         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
2322         gl_MODULE_INDICATOR.
2323
2324         Tests of module 'spawn' in C++ mode.
2325         * tests/test-spawn-c++.cc: New file.
2326         * modules/spawn-tests (Files): Add it and tests/signature.h.
2327         (Depends-on): Add ansi-c++-opt.
2328         (Makefile.am): Arrange to compile and run test-spawn-c++.
2329         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
2330         gl_MODULE_INDICATOR.
2331
2332         Tests of module 'signal' in C++ mode.
2333         * tests/test-signal-c++.cc: New file.
2334         * modules/signal-tests (Files): Add it and tests/signature.h.
2335         (Depends-on): Add ansi-c++-opt.
2336         (Makefile.am): Arrange to compile and run test-signal-c++.
2337         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2338         gl_MODULE_INDICATOR.
2339
2340         Tests of module 'search' in C++ mode.
2341         * tests/test-search-c++.cc: New file.
2342         * modules/search-tests (Files): Add it and tests/signature.h.
2343         (Depends-on): Add ansi-c++-opt.
2344         (Makefile.am): Arrange to compile and run test-search-c++.
2345         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2346         gl_MODULE_INDICATOR.
2347
2348         Tests of module 'math' in C++ mode.
2349         * tests/test-math-c++.cc: New file.
2350         * modules/math-tests (Files): Add it and tests/signature.h.
2351         (Depends-on): Add ansi-c++-opt.
2352         (Makefile.am): Arrange to compile and run test-math-c++.
2353         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2354
2355         Tests of module 'locale' in C++ mode.
2356         * tests/test-locale-c++.cc: New file.
2357         * modules/locale-tests (Files): Add it and tests/signature.h.
2358         (Depends-on): Add ansi-c++-opt.
2359         (Makefile.am): Arrange to compile and run test-locale-c++.
2360         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2361         gl_MODULE_INDICATOR.
2362
2363         Tests of module 'langinfo' in C++ mode.
2364         * tests/test-langinfo-c++.cc: New file.
2365         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2366         (Depends-on): Add ansi-c++-opt.
2367         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2368         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2369         gl_MODULE_INDICATOR.
2370
2371         Tests of module 'iconv-h' in C++ mode.
2372         * tests/test-iconv-h-c++.cc: New file.
2373         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2374         (Depends-on): Add ansi-c++-opt.
2375         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2376
2377         Tests of module 'glob' in C++ mode.
2378         * tests/test-glob-c++.cc: New file.
2379         * modules/glob-tests (Files): Add it.
2380         (Depends-on): Add ansi-c++-opt.
2381         (Makefile.am): Arrange to compile and run test-glob-c++.
2382
2383         Tests of module 'fcntl-h' in C++ mode.
2384         * tests/test-fcntl-h-c++.cc: New file.
2385         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2386         (Depends-on): Add ansi-c++-opt.
2387         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2388         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2389         gl_MODULE_INDICATOR.
2390
2391         Tests of module 'dirent' in C++ mode.
2392         * tests/test-dirent-c++.cc: New file.
2393         * modules/dirent-tests (Files): Add it and tests/signature.h.
2394         (Depends-on): Add ansi-c++-opt.
2395         (Makefile.am): Arrange to compile and run test-dirent-c++.
2396         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2397         gl_MODULE_INDICATOR.
2398
2399         New module 'ansi-c++-opt'.
2400         * modules/ansi-c++-opt: New file.
2401         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2402
2403         Document C++ namespace mode.
2404         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2405
2406         wctype: Avoid #define replacements in C++ mode.
2407         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2408         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2409         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2410         In C++, define a namespaced alias symbol.
2411         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2412         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2413         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2414         rule.
2415
2416         wchar: Avoid #define replacements in C++ mode.
2417         * lib/wchar.in.h: Include c++defs.h.
2418         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2419         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2420         symbol.
2421         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2422         * modules/wchar (Depends-on): Add c++defs.
2423         (Makefile.am): Update wchar.h rule.
2424
2425         unistd: Avoid #define replacements in C++ mode.
2426         * lib/unistd.in.h: Include c++defs.h.
2427         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2428         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2429         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2430         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2431         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2432         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2433         symbol.
2434         (environ): Update.
2435         * modules/unistd (Depends-on): Add c++defs.
2436         (Makefile.am): Update unistd.h rule.
2437
2438         time: Avoid #define replacements in C++ mode.
2439         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2440         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2441         define a namespaced alias symbol.
2442         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2443         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2444         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2445         * modules/time (Depends-on): Add c++defs, warn-on-use.
2446         (Makefile.am): Update time.h rule.
2447         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2448         * modules/nanosleep (configure.ac): Likewise.
2449         * modules/strptime (configure.ac): Likewise.
2450         * modules/timegm (configure.ac): Likewise.
2451
2452         sys_time: Avoid #define replacements in C++ mode.
2453         * lib/sys_time.in.h: Include c++defs.h.
2454         (gettimeofday): In C++, define a namespaced alias symbol.
2455         * modules/sys_time (Depends-on): Add c++defs.
2456         (Makefile.am): Update sys/time.h rule.
2457
2458         sys_stat: Avoid #define replacements in C++ mode.
2459         * lib/sys_stat.in.h: Include c++defs.h.
2460         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2461         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2462         namespaced alias symbol.
2463         In C++, define a namespaced alias symbol.
2464         * modules/sys_stat (Depends-on): Add c++defs.
2465         (Makefile.am): Update sys/stat.h rule.
2466
2467         sys_socket: Avoid #define replacements in C++ mode.
2468         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2469         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2470         definitions also when the system has a <sys/socket.h>.
2471         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2472         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2473         In C++, define a namespaced alias symbol.
2474         * modules/sys_socket (Depends-on): Add c++defs.
2475         (Makefile.am): Update sys/socket.h rule.
2476
2477         sys_select: Avoid #define replacements in C++ mode.
2478         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2479         definitions also when the system has a <sys/select.h>.
2480         (select): In C++, define a namespaced alias symbol.
2481         * modules/sys_select (Depends-on): Add c++defs.
2482         (Makefile.am): Update sys/select.h rule.
2483
2484         sys_ioctl: Avoid #define replacements in C++ mode.
2485         * lib/sys_ioctl.in.h: Include c++defs.h.
2486         (ioctl): In C++, define a namespaced alias symbol.
2487         * modules/sys_ioctl (Depends-on): Add c++defs.
2488         (Makefile.am): Update sys/ioctl.h rule.
2489
2490         string: Avoid #define replacements in C++ mode.
2491         * lib/string.in.h: Include c++defs.h.
2492         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2493         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2494         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2495         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2496         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2497         * modules/string (Depends-on): Add c++defs.
2498         (Makefile.am): Update string.h rule.
2499
2500         stdlib: Avoid #define replacements in C++ mode.
2501         * lib/stdlib.in.h: Include c++defs.h.
2502         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2503         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2504         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2505         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2506         symbol.
2507         * modules/stdlib (Depends-on): Add c++defs.
2508         (Makefile.am): Update stdlib.h rule.
2509
2510         stdio: Avoid #define replacements in C++ mode.
2511         * lib/stdio.in.h: Include c++defs.h.
2512         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2513         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2514         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2515         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2516         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2517         namespaced alias symbol.
2518         * modules/stdio (Depends-on): Add c++defs.
2519         (Makefile.am): Update stdio.h rule.
2520
2521         spawn: Avoid #define replacements in C++ mode.
2522         * lib/spawn.in.h: Include c++defs.h.
2523         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2524         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2525         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2526         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2527         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2528         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2529         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2530         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2531         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2532         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2533         In C++, define a namespaced alias symbol.
2534         * modules/spawn (Depends-on): Add c++defs.
2535         (Makefile.am): Update spawn.h rule.
2536
2537         signal: Avoid #define replacements in C++ mode.
2538         * lib/signal.in.h: Include c++defs.h.
2539         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2540         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2541         namespaced alias symbol.
2542         * modules/signal (Depends-on): Add c++defs.
2543         (Makefile.am): Update signal.h rule.
2544
2545         search: Avoid #define replacements in C++ mode.
2546         * lib/search.in.h: Include c++defs.h.
2547         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2548         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2549         symbol.
2550         * modules/search (Depends-on): Add c++defs.
2551         (Makefile.am): Update search.h rule.
2552
2553         math: Avoid #define replacements in C++ mode.
2554         * lib/math.in.h: Include c++defs.h.
2555         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2556         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2557         trunc, truncl): In C++, define a namespaced alias symbol.
2558         * modules/math (Depends-on): Add c++defs.
2559         (Makefile.am): Update math.h rule.
2560
2561         locale: Avoid #define replacements in C++ mode.
2562         * lib/locale.in.h: Include c++defs.h.
2563         (duplocale): In C++, define a namespaced alias symbol.
2564         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2565         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2566         * modules/locale (Depends-on): Add c++defs.
2567         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2568
2569         langinfo: Avoid #define replacements in C++ mode.
2570         * lib/langinfo.in.h: Include c++defs.h.
2571         (nl_langinfo): In C++, define a namespaced alias symbol.
2572         * modules/langinfo (Depends-on): Add c++defs.
2573         (Makefile.am): Update langinfo.h rule.
2574
2575         iconv-h: Avoid #define replacements in C++ mode.
2576         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2577         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2578         symbol.
2579         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2580         whenever iconv is present.
2581         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2582         (Makefile.am): Update iconv.h rule.
2583
2584         glob: Avoid #define replacements in C++ mode.
2585         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2586         (_gl_glob_errfunc_fn): New type.
2587         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2588         symbol.
2589         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2590         (Makefile.am): Update glob.h rule.
2591
2592         fcntl-h: Avoid #define replacements in C++ mode.
2593         * lib/fcntl.in.h: Include c++defs.h.
2594         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2595         * modules/fcntl-h (Depends-on): Add c++defs.
2596         (Makefile.am): Update fcntl.h rule.
2597
2598         dirent: Avoid #define replacements in C++ mode.
2599         * lib/dirent.in.h: Include c++defs.h.
2600         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2601         namespaced alias symbol.
2602         (dirfd): Update declaration.
2603         * modules/dirent (Depends-on): Add c++defs.
2604         (Makefile.am): Update dirent.h rule.
2605
2606         ctype: Make it usable in C++ code.
2607         * lib/ctype.in.h: Include c++defs.h.
2608         (isblank): Declare as extern "C".
2609         * modules/ctype (Depends-on): Add c++defs.
2610         (Makefile.am): Update ctype.h rule.
2611
2612         New module 'c++defs'.
2613         * modules/c++defs: New file.
2614         * build-aux/c++defs.h: New file.
2615         Reported by John W. Eaton <jwe@gnu.org>.
2616
2617 2010-03-07  Bruno Haible  <bruno@clisp.org>
2618
2619         logb: Provide missing declaration for Cygwin.
2620         * lib/math.in.h (logb): New declaration.
2621         * m4/logb.m4: New file.
2622         * modules/logb (Files): Add m4/logb.m4.
2623         (Depends-on): Add math.
2624         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2625         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2626         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2627         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2628         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2629
2630 2010-03-07  Bruno Haible  <bruno@clisp.org>
2631
2632         Fix test-cond link error.
2633         * tests/test-cond.c: Include <stdio.h>.
2634
2635 2010-03-07  Bruno Haible  <bruno@clisp.org>
2636
2637         Fix test-dirent-safer link error.
2638         * modules/dirent-safer-tests (Makefile.am): Define
2639         test_dirent_safer_LDADD.
2640
2641 2010-03-07  Bruno Haible  <bruno@clisp.org>
2642
2643         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2644         among default module list.
2645
2646 2010-03-07  Bruno Haible  <bruno@clisp.org>
2647
2648         Fix link error on platforms with GNU libiconv.
2649         * modules/unistr/u8-strcoll-tests (Makefile): Define
2650         test_u8_strcoll_LDADD.
2651         * modules/unistr/u16-strcoll-tests (Makefile): Define
2652         test_u16_strcoll_LDADD.
2653         * modules/unistr/u32-strcoll-tests (Makefile): Define
2654         test_u32_strcoll_LDADD.
2655
2656 2010-03-07  Bruno Haible  <bruno@clisp.org>
2657
2658         Use POSIX declarations for socket functions.
2659         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2660         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2661         rpl_sendto): Change declaration to match POSIX.
2662         * lib/connect.c (rpl_connect): Likewise.
2663         * lib/accept.c (rpl_accept): Likewise.
2664         * lib/bind.c (rpl_bind): Likewise.
2665         * lib/getpeername.c (rpl_getpeername): Likewise.
2666         * lib/getsockname.c (rpl_getsockname): Likewise.
2667         * lib/recv.c (rpl_recv): Likewise.
2668         * lib/send.c (rpl_send): Likewise.
2669         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2670         * lib/sendto.c (rpl_sendto): Likewise.
2671
2672 2010-03-06  Bruno Haible  <bruno@clisp.org>
2673
2674         Clarify access, euidaccess, faccessat.
2675         * doc/posix-functions/faccessat.texi: Mention security problem under
2676         "Other problems", not "Portability problems".
2677         * doc/posix-functions/access.texi: Likewise. Mention a related security
2678         problem.
2679         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2680         * lib/euidaccess.c: Add comments about platforms.
2681         * lib/unistd.in.h (access, euidaccess): Add warnings.
2682
2683 2010-03-07  Bruno Haible  <bruno@clisp.org>
2684
2685         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2686         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2687         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2688         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2689         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2690         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2691         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2692         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2693         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2694         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2695         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2696         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2697         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2698         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2699         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2700         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2701         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2702         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2703         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2704         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2705         Likewise.
2706         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2707         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2708         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2709         Likewise.
2710         * tests/test-spawn.c (main): Make it work when
2711         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2712
2713 2010-03-07  Bruno Haible  <bruno@clisp.org>
2714
2715         Fix incorrect Makefile.am generation in German locale.
2716         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2717         Execute sed command with character range in C locale.
2718
2719 2010-03-06  Bruno Haible  <bruno@clisp.org>
2720
2721         Tests for module 'iconv-h'.
2722         * modules/iconv-h-tests: New file.
2723         * tests/test-iconv-h.c: New file.
2724
2725         New module 'iconv-h'.
2726         * modules/iconv-h: New file.
2727         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2728         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2729         (configure.ac): Remove gl_ICONV_H.
2730         (Makefile.am): Remove rule for iconv.h.
2731
2732 2010-03-06  Bruno Haible  <bruno@clisp.org>
2733
2734         More consistent naming of *.m4 files.
2735         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2736         * modules/wctype (Files): Update.
2737
2738         More consistent naming of *.m4 files.
2739         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2740         * modules/wchar (Files): Update.
2741
2742 2010-03-06  Jim Meyering  <meyering@redhat.com>
2743
2744         euidaccess: relax license to LGPLv2+
2745         * modules/euidaccess (License): Relax to LGPLv2+.
2746
2747 2010-03-06  Bruno Haible  <bruno@clisp.org>
2748
2749         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2750         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2751         (Makefile.am): Augment lib_SOURCES instead.
2752
2753 2010-03-04  Jim Meyering  <meyering@redhat.com>
2754
2755         utime: remove obsolete module
2756         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2757         unnecessary for years, and has been marked as obsolete for 10 months.
2758         * modules/utime: Remove file.
2759         * lib/utime.c: Remove file.
2760         * m4/utime.m4: Remove file.
2761         * m4/utimes-null.m4: Remove file.
2762         * doc/posix-functions/utime.texi (utime): Remove reference to
2763         the module.  Move the sole "fixed by gnulib" item into the
2764         "problems not fixed by Gnulib" list.
2765         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2766
2767 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2768
2769         * modules/exit (License): Relax license to LGPLv2+.
2770         (Status): Mark as obsolete.
2771         * NEWS: Mention deprecated 'exit' module.
2772         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2773         of now obsolete 'exit'.
2774
2775 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2776
2777         fts-lgpl: remove unused module
2778         * modules/fts-lgpl: Remove.
2779         * MODULES.html.sh (func_all_modules): Adjust.
2780         * check-module (find_included_lib_files): Adjust.
2781         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2782
2783 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2784
2785         copy-acl: enhance Solaris ACL error handling
2786         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2787         * lib/set-mode-acl.c (qset_acl): Likewise.
2788
2789 2010-03-02  Bruno Haible  <bruno@clisp.org>
2790
2791         spawn: Don't override the system defined values on FreeBSD 8.
2792         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2793         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2794         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2795         if HAVE_POSIX_SPAWN is 1.
2796         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2797
2798 2010-03-01  Bruno Haible  <bruno@clisp.org>
2799
2800         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2801         regarding Automake.
2802
2803 2010-02-25  Bruno Haible  <bruno@clisp.org>
2804
2805         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2806         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2807         setting, not afterwards.
2808         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2809
2810 2010-02-24  Eric Blake  <eblake@redhat.com>
2811
2812         bootstrap, git-version-gen: use timestamp
2813         * build-aux/git-version-gen (scriptversion): Force UTC.
2814         * build-aux/bootstrap (scriptversion): New variable.
2815
2816         bootstrap: allow older git
2817         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2818         older than 1.6.4.  Requested by the libvirt project.
2819
2820 2010-02-23  Eric Blake  <eblake@redhat.com>
2821
2822         warn-on-use: work with old autoconf
2823         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2824         AS_VAR semantics of autoconf 2.60.
2825         Reported by Bruno Haible.
2826
2827         bootstrap: improve some comments
2828         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2829         clarification comments.
2830
2831         gettimeofday: provide correct function
2832         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2833         when replacement is declared, otherwise provide gettimeofday.
2834         Reported by Michael Goffioul.
2835
2836 2010-02-23  Jim Meyering  <meyering@redhat.com>
2837
2838         lib-ignore: relax license to "unlimited", not LGPLv2+
2839         * modules/lib-ignore (License): Relax to "unlimited".
2840
2841 2010-02-23  Jim Meyering  <meyering@redhat.com>
2842
2843         lib-ignore: relax license to LGPLv2+
2844         * modules/lib-ignore (License): Relax to LGPLv2+.
2845
2846 2010-02-22  Eric Blake  <eblake@redhat.com>
2847
2848         lseek: avoid bash 3.2 broken pipe bug
2849         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2850         warning from bash 3.2.
2851         Reported by Ben Pfaff, with analysis from Bruno Haible.
2852
2853         bootstrap: support non-FSF copyright holder
2854         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2855         bootstrap.conf override of COPYRIGHT_HOLDER.
2856         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2857
2858         bootstrap: interoperate with gettext 0.14.1
2859         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2860
2861         bootstrap: allow for alternate submodule location
2862         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2863         hardcoding submodule location.
2864         (gnulib_mk): Allow direct use of Makefile.am.
2865
2866         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2867         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2868         rather than reconfiguring where the submodule points.
2869
2870         gettimeofday: restore support for platforms that lack function
2871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2872         replacement if function is missing.
2873         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2874         * modules/sys_time (Makefile.am): Substitute it.
2875         * lib/sys_time.in.h (gettimeofday): Check it.
2876         Reported by Michael Goffioul.
2877
2878 2010-02-21  Bruno Haible  <bruno@clisp.org>
2879
2880         * lib/stdio.in.h (obstack_printf): Fix typo.
2881
2882 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2883
2884         vc-list-files: use bzr ls's -R option
2885         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2886         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2887
2888 2010-02-21  Jim Meyering  <meyering@redhat.com>
2889
2890         init.sh: fix EXEEXT shims to work also for names like test-prog
2891         * tests/init.sh: Re-exec a better shell, when needed.
2892         If the current shell lacks support for posix $(...), an init.sh-using
2893         test will now try to find a shell that supports that.  If EXEEXT is
2894         nonempty, we also require support for hyphen-in-alias-name and shell
2895         substitutions like ${var#glob}.  Failure to find such a shell results
2896         in a skipped test.
2897
2898 2010-02-21  Bruno Haible  <bruno@clisp.org>
2899
2900         Really work around around "broken pipe" error message from bash 3.2.
2901         * gnulib-tool (func_reset_sigpipe): Remove function.
2902         (echo): In bash 3.2, define to a function that uses printf.
2903         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2904
2905 2010-02-20  Bruno Haible  <bruno@clisp.org>
2906
2907         Restore support for automake 1.9.6 with autoconf 2.61.
2908         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2909         Reported by James Youngman <jay@gnu.org>.
2910
2911 2010-02-20  Bruno Haible  <bruno@clisp.org>
2912
2913         Improve *printf warning condition.
2914         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2915         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2916         and the function is overridden due to SIGPIPE emulation.
2917
2918 2010-02-20  Bruno Haible  <bruno@clisp.org>
2919
2920         * lib/stdio.in.h: Tweak comments.
2921
2922 2010-02-19  Bruno Haible  <bruno@clisp.org>
2923
2924         Make it easier to find modules. New gnulib-tool option '--find'.
2925         * gnulib-tool: New option --find.
2926         (func_usage): Document it.
2927         (func_sanitize_modulelist): New function, extracted from
2928         func_all_modules.
2929         (func_all_modules): Invoke it.
2930         * doc/gnulib-tool.texi (Which modules?): New node.
2931
2932 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2933
2934         * lib/sys_select.in.h: Provide select replacement even if
2935         sys/select.h exists on a system, for Interix.
2936
2937 2010-02-18  Jim Meyering  <meyering@redhat.com>
2938
2939         init.sh: don't use $(...) just yet
2940         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2941         to accommodate e.g., Solaris' /bin/sh.
2942
2943 2010-02-17  Bruno Haible  <bruno@clisp.org>
2944
2945         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2946         Reported by Ludovic Courtès <ludo@gnu.org>.
2947
2948 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2949
2950         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2951         linking with -lintl.
2952
2953 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2954
2955         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2956         if not provided by the system's netdb.h.  Reported by
2957         ludo@gnu.org (Ludovic Courtès).
2958
2959 2010-02-15  Jim Meyering  <meyering@redhat.com>
2960
2961         init.sh: improve portability and efficiency
2962         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2963         "dummy" in a for loop.
2964         Use '!', not '^' to select the complement of a character set used
2965         in a "case" statement.
2966         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2967         Suggestions from Eric Blake.
2968
2969         init.sh: automatically accommodate programs with the .exe suffix
2970         Automatically arrange for an invocation of "prog" to execute the
2971         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2972         may use the simpler "prog", yet still work when built on a system
2973         that requires specifying the added suffix.
2974         Do this by constructing a function named "prog" that invokes
2975         "prog.exe" for each .exe file in selected directories.
2976         * tests/init.sh (find_exe_basenames_): New function.
2977         (create_exe_shim_functions_): New function.
2978         (path_prepend_): Use it.
2979
2980         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2981         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2982         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2983
2984 2010-02-14  Jim Meyering  <meyering@redhat.com>
2985
2986         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2987         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2988         (sc_prohibit_hash_pjw_without_use): New rule.
2989
2990         maint.mk: allow the default upload destination dir to be overridden
2991         * top/maint.mk (upload_dest_dir_): Define with a default that
2992         preserves the status quo.
2993         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2994         Reported by Peter Simons.
2995
2996         maint.mk: prohibit inclusion of "hash.h" without_use
2997         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2998
2999 2010-02-10  Jim Meyering  <meyering@redhat.com>
3000
3001         maint.mk: prohibit inclusion of "ignore-value.h" without_use
3002         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
3003
3004 2010-02-09  Eric Blake  <ebb9@byu.net>
3005         and Bruno Haible  <bruno@clisp.org>
3006
3007         obstack-printf-posix: ensure declaration
3008         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
3009         extracted from gl_FUNC_OBSTACK_PRINTF.
3010         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
3011         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3012         Likewise.
3013         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
3014         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
3015         0.
3016
3017 2010-02-08  Bruno Haible  <bruno@clisp.org>
3018
3019         gnulib-tool: Fix typo in 2010-02-07 commit.
3020         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
3021         Reported by Eric Blake.
3022
3023 2010-02-07  Bruno Haible  <bruno@clisp.org>
3024
3025         gnulib-tool: Fix up caching patches.
3026         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
3027         option --no-cache. Use associative arrays when supported by the shell.
3028         (sed_comments): New variable.
3029         (modcache): Renamed from do_cache.
3030         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
3031         abbreviate unnecessarily.
3032         (have_associative): New variable.
3033         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
3034         way also for ksh and zsh.
3035         (func_init_sed_convert_to_cache_statements): New function, extracted
3036         from func_cache_lookup_module. Add support for associative arrays.
3037         Don't set the c_MODULE_cached variable here. Ignore all lines before
3038         the first field header. Remove only the final newline, not all trailing
3039         newlines. Support empty fields correctly. Limit the use of 'eval' to
3040         assignments.
3041         (func_get_description, func_get_status, func_get_notice,
3042         func_get_applicability, func_get_filelist, func_get_dependencies,
3043         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
3044         func_get_automake_snippet, func_get_include_directive,
3045         func_get_link_directive, func_get_license, func_get_maintainer):
3046         Update documentation. List the unoptimized code first. Add support for
3047         associative arrays. Limit the use of 'eval' to assignments.
3048         (func_get_applicability): Undo stylistic pessimisations.
3049         (func_get_automake_snippet, func_get_include_directive): Reduce code
3050         duplication.
3051         (func_modules_transitive_closure, func_modules_add_dummy,
3052         func_modules_notice, func_modules_to_filelist, func_add_file,
3053         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
3054         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
3055         func_create_testdir, func_create_megatestdir): Update documentation.
3056
3057 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3058
3059         * gnulib-tool (func_cache_lookup_module): Store the module name
3060         belonging to the cache variable; error out if two different
3061         module names map to the same cache variable name.
3062
3063 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3064
3065         gnulib-tool: Make caching optional.
3066         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
3067         Update matching short versions of --no-changelog.
3068         (func_usage): Update.
3069         (sed_extract_cache_prog): Renamed from ...
3070         (sed_extract_prog): ... this; revert to old extraction script.
3071         (func_get_description, func_get_status)
3072         (func_get_notice, func_get_applicability, func_get_filelist)
3073         (func_get_dependencies, func_get_autoconf_early_snippet)
3074         (func_get_autoconf_snippet, func_get_automake_snippet)
3075         (func_get_include_directive, func_get_link_directive)
3076         (func_get_license, func_get_maintainer): If $do_cache is false,
3077         use old, non-caching extraction scripts.
3078         Suggestion by Bruno Haible.
3079
3080 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3081
3082         gnulib-tool: cache module metainformation.
3083         * gnulib-tool (sed_extract_prog): Match newline before each
3084         header, and rewrite header to a shell variable suffix.
3085         (func_cache_var, func_cache_lookup_module): New functions,
3086         to turn a module name into a cache variable prefix, and to
3087         look up and cache module metainformation.
3088         (func_get_description, func_get_status)
3089         (func_get_notice, func_get_applicability, func_get_filelist)
3090         (func_get_dependencies, func_get_autoconf_early_snippet)
3091         (func_get_autoconf_snippet, func_get_automake_snippet)
3092         (func_get_include_directive, func_get_link_directive)
3093         (func_get_license, func_get_maintainer): Use
3094         func_cache_lookup_module.
3095
3096 2010-02-07  Bruno Haible  <bruno@clisp.org>
3097
3098         fnctl: Fix missing dependency.
3099         * modules/fcntl (Depends-on): Add getdtablesize.
3100         Reported by John W. Eaton <jwe@gnu.org>.
3101
3102 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
3103
3104         Argp: fix recognition of short alias options.
3105
3106         * lib/argp-parse.c (convert_options): Fix improper use of
3107         `|' between character values.
3108         * tests/test-argp.c (group1_option): New alias option
3109         --read (-r).
3110         (group1_parser): Special handling for 'r'.
3111         (test15): New test case.
3112         (test_fun): Add test15.
3113         * tests/test-argp-2.sh: Update expected --help and --usage
3114         outputs.
3115
3116 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
3117
3118         * tests/test-argp.c: Fix indentation.
3119
3120 2010-02-04  Eric Blake  <ebb9@byu.net>
3121
3122         gettimeofday: expose type of second argument
3123         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
3124         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
3125         * tests/test-gettimeofday.c: Use it to silence warning.
3126         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
3127         the issue.
3128
3129 2010-02-03  Jim Meyering  <meyering@redhat.com>
3130
3131         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
3132         * lib/regcomp.c (TYPE_SIGNED): Define.
3133         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
3134
3135         regcomp.c: avoid a new -Wshadow warning
3136         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
3137
3138 2010-02-01  Jim Meyering  <meyering@redhat.com>
3139
3140         removing useless parentheses in cpp #define directives
3141         For motivation, see commit c0221df4, "define STREQ(a,b)
3142         consistently, removing useless parentheses"
3143         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
3144         * lib/mountlist.c (MNT_IGNORE): Likewise.
3145         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
3146
3147 2010-02-01  Eric Blake  <ebb9@byu.net>
3148
3149         sys_time: use link-warning
3150         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
3151         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
3152         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
3153         * modules/sys_time (Depends-on): Add warn-on-use.
3154         (Makefile.am): Always build replacement.
3155         (configure.ac): Update substitutions.
3156         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
3157         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
3158         bother with SYS_TIME_H.
3159         * modules/gettimeofday (configure.ac): Declare indicator.
3160         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
3161         in use.
3162
3163         closein-tests: silence compiler warning
3164         * tests/test-closein.c (main): Ignore fread result.
3165         * modules/closein-tests (Depends-on): Add ignore-value.
3166
3167         tests: silence warning about system return
3168         * tests/test-areadlink-with-size.c (main): Ignore system result.
3169         * tests/test-areadlink.c (main): Likewise.
3170         * tests/test-areadlinkat-with-size.c (main): Likewise.
3171         * tests/test-areadlinkat.c (main): Likewise.
3172         * tests/test-canonicalize-lgpl.c (main): Likewise.
3173         * tests/test-canonicalize.c (main): Likewise.
3174         * tests/test-chown.c (main): Likewise.
3175         * tests/test-fchownat.c (main): Likewise.
3176         * tests/test-fdutimensat.c (main): Likewise.
3177         * tests/test-fstatat.c (main): Likewise.
3178         * tests/test-futimens.c (main): Likewise.
3179         * tests/test-lchown.c (main): Likewise.
3180         * tests/test-link.c (main): Likewise.
3181         * tests/test-linkat.c (main): Likewise.
3182         * tests/test-lstat.c (main): Likewise.
3183         * tests/test-mkdir.c (main): Likewise.
3184         * tests/test-mkdirat.c (main): Likewise.
3185         * tests/test-mkfifo.c (main): Likewise.
3186         * tests/test-mkfifoat.c (main): Likewise.
3187         * tests/test-mknod.c (main): Likewise.
3188         * tests/test-readlink.c (main): Likewise.
3189         * tests/test-remove.c (main): Likewise.
3190         * tests/test-rename.c (main): Likewise.
3191         * tests/test-renameat.c (main): Likewise.
3192         * tests/test-rmdir.c (main): Likewise.
3193         * tests/test-symlink.c (main): Likewise.
3194         * tests/test-symlinkat.c (main): Likewise.
3195         * tests/test-unlink.c (main): Likewise.
3196         * tests/test-unlinkat.c (main): Likewise.
3197         * tests/test-utimens.c (main): Likewise.
3198         * tests/test-utimensat.c (main): Likewise.
3199         * modules/areadlink-tests (Depends-on): Add ignore-value.
3200         * modules/areadlink-with-size-tests (Depends-on): Likewise.
3201         * modules/areadlinkat-tests (Depends-on): Likewise.
3202         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
3203         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3204         * modules/canonicalize-tests (Depends-on): Likewise.
3205         * modules/chown-tests (Depends-on): Likewise.
3206         * modules/fdutimensat-tests (Depends-on): Likewise.
3207         * modules/futimens-tests (Depends-on): Likewise.
3208         * modules/lchown-tests (Depends-on): Likewise.
3209         * modules/link-tests (Depends-on): Likewise.
3210         * modules/linkat-tests (Depends-on): Likewise.
3211         * modules/lstat-tests (Depends-on): Likewise.
3212         * modules/mkdir-tests (Depends-on): Likewise.
3213         * modules/mkfifo-tests (Depends-on): Likewise.
3214         * modules/mkfifoat-tests (Depends-on): Likewise.
3215         * modules/mknod-tests (Depends-on): Likewise.
3216         * modules/openat-tests (Depends-on): Likewise.
3217         * modules/readlink-tests (Depends-on): Likewise.
3218         * modules/remove-tests (Depends-on): Likewise.
3219         * modules/rename-tests (Depends-on): Likewise.
3220         * modules/renameat-tests (Depends-on): Likewise.
3221         * modules/rmdir-tests (Depends-on): Likewise.
3222         * modules/symlink-tests (Depends-on): Likewise.
3223         * modules/symlinkat-tests (Depends-on): Likewise.
3224         * modules/unlink-tests (Depends-on): Likewise.
3225         * modules/utimens-tests (Depends-on): Likewise.
3226         * modules/utimensat-tests (Depends-on): Likewise.
3227
3228 2010-01-31  Bruno Haible  <bruno@clisp.org>
3229
3230         Perform the same test for many <math.h> functions.
3231         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
3232         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
3233         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
3234         of gl_MATHFUNC.
3235         * modules/acos (configure.ac): Likewise.
3236         * modules/asin (configure.ac): Likewise.
3237         * modules/atan (configure.ac): Likewise.
3238         * modules/atan2 (configure.ac): Likewise.
3239         * modules/cbrt (configure.ac): Likewise.
3240         * modules/copysign (configure.ac): Likewise.
3241         * modules/cos (configure.ac): Likewise.
3242         * modules/cosh (configure.ac): Likewise.
3243         * modules/erf (configure.ac): Likewise.
3244         * modules/erfc (configure.ac): Likewise.
3245         * modules/exp (configure.ac): Likewise.
3246         * modules/fmod (configure.ac): Likewise.
3247         * modules/hypot (configure.ac): Likewise.
3248         * modules/j0 (configure.ac): Likewise.
3249         * modules/j1 (configure.ac): Likewise.
3250         * modules/jn (configure.ac): Likewise.
3251         * modules/lgamma (configure.ac): Likewise.
3252         * modules/log (configure.ac): Likewise.
3253         * modules/log10 (configure.ac): Likewise.
3254         * modules/log1p (configure.ac): Likewise.
3255         * modules/pow (configure.ac): Likewise.
3256         * modules/remainder (configure.ac): Likewise.
3257         * modules/sin (configure.ac): Likewise.
3258         * modules/sinh (configure.ac): Likewise.
3259         * modules/tan (configure.ac): Likewise.
3260         * modules/tanh (configure.ac): Likewise.
3261         * modules/y0 (configure.ac): Likewise.
3262         * modules/y1 (configure.ac): Likewise.
3263         * modules/yn (configure.ac): Likewise.
3264         Suggested by Paolo Bonzini.
3265
3266 2010-01-31  Bruno Haible  <bruno@clisp.org>
3267
3268         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
3269
3270 2010-01-31  Bruno Haible  <bruno@clisp.org>
3271
3272         Work around getdelim() bug on FreeBSD 8.0.
3273         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
3274         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
3275         not work.
3276         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
3277         is 1.
3278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
3279         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
3280         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
3281         a non-zero size.
3282         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
3283
3284 2010-01-31  Bruno Haible  <bruno@clisp.org>
3285
3286         Work around getline() bug on FreeBSD 8.0.
3287         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
3288         and a non-zero size.
3289         * tests/test-getline.c (main): Likewise.
3290         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
3291         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
3292
3293 2010-01-28  Eric Blake  <ebb9@byu.net>
3294
3295         regex: fix build failure
3296         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
3297         platforms.
3298
3299 2010-01-28  Jim Meyering  <meyering@redhat.com>
3300
3301         regex: do not ignore memory allocation failure
3302         * lib/regex_internal.c (create_cd_newstate): Detect
3303         re_node_set_init_copy failure.   Extracted from glibc commit
3304         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3305
3306         regex: sync more white-space changes from libc
3307         * lib/regex_internal.c: White-space only changes.
3308         * lib/regexec.c: Likewise.
3309
3310         regex: add many uses of __attribute_warn_unused_result__
3311         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
3312         * lib/regexec.c: Likewise.
3313         Extracted from a messy glibc commit.
3314
3315         regcomp.c: spelling and merge-artifact from glibc
3316         * lib/regcomp.c: Merge remainder of glibc's
3317         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3318
3319         regcomp.c: sync white-space changes from glibc
3320         * lib/regcomp.c: Merge to accommodate white space
3321         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3322
3323         regcomp.c: do not ignore internal return values
3324         * lib/regcomp.c: Do not ignore internal return values.
3325         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
3326         but without its white-space changes and spelling fixes.
3327
3328         regex_internal.h: define __attribute_warn_unused_result__
3329         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
3330
3331         maint: add a syntax-check rule to check for vulnerable Makefile.in
3332         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3333
3334 2010-01-27  Jim Meyering  <meyering@redhat.com>
3335
3336         ncftpput-ftp: clean up spaces
3337         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3338         Remove trailing blanks.
3339
3340 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3341
3342         * build-aux/git-version-gen: Fix copyright statement.
3343         * build-aux/gnupload: Likewise.
3344         * tests/test-arcfour.c: Likewise.
3345         * tests/test-arctwo.c: Likewise.
3346         * tests/test-count-one-bits.c: Likewise.
3347         * tests/test-crc.c: Likewise.
3348         * tests/test-des.c: Likewise.
3349         * tests/test-gc-arcfour.c: Likewise.
3350         * tests/test-gc-arctwo.c: Likewise.
3351         * tests/test-gc-des.c: Likewise.
3352         * tests/test-gc-hmac-md5.c: Likewise.
3353         * tests/test-gc-hmac-sha1.c: Likewise.
3354         * tests/test-gc-md2.c: Likewise.
3355         * tests/test-gc-md4.c: Likewise.
3356         * tests/test-gc-md5.c: Likewise.
3357         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3358         * tests/test-gc-rijndael.c: Likewise.
3359         * tests/test-gc-sha1.c: Likewise.
3360         * tests/test-gc.c: Likewise.
3361         * tests/test-gethostname.c: Likewise.
3362         * tests/test-gettimeofday.c: Likewise.
3363         * tests/test-hash.c: Likewise.
3364         * tests/test-hmac-md5.c: Likewise.
3365         * tests/test-hmac-sha1.c: Likewise.
3366         * tests/test-md2.c: Likewise.
3367         * tests/test-md4.c: Likewise.
3368         * tests/test-md5.c: Likewise.
3369         * tests/test-memchr.c: Likewise.
3370         * tests/test-memchr2.c: Likewise.
3371         * tests/test-memcmp.c: Likewise.
3372         * tests/test-memmem.c: Likewise.
3373         * tests/test-memrchr.c: Likewise.
3374         * tests/test-rawmemchr.c: Likewise.
3375         * tests/test-read-file.c: Likewise.
3376         * tests/test-rijndael.c: Likewise.
3377         * tests/test-sockets.c: Likewise.
3378         * tests/test-strchrnul.c: Likewise.
3379         * tests/test-strstr.c: Likewise.
3380         * tests/test-strtod.c: Likewise.
3381         * build-aux/ncftpput-ftp: Likewise.
3382
3383 2010-01-26  Eric Blake  <ebb9@byu.net>
3384
3385         ignore-value: update recommended header name
3386         * modules/ignore-value (Include): Only use <> for headers that
3387         exist in glibc.
3388
3389 2010-01-26  Jim Meyering  <meyering@redhat.com>
3390
3391         test-userspec.c: avoid compiler warnings
3392         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3393         and "initialization discards qualifiers..." warnings.
3394         Put the first "uid" in its own scope, and make char* members "const".
3395
3396 2010-01-25  Bruno Haible  <bruno@clisp.org>
3397
3398         gnulib-tool: Make warning diagnostics consistent.
3399         * gnulib-tool (func_warning): New function.
3400         Use it everywhere where gnulib-tool produces output to stderr and it is
3401         not a fatal error.
3402
3403 2010-01-25  Bruno Haible  <bruno@clisp.org>
3404
3405         Fix test dependencies.
3406         * modules/xstrtol-tests (Depends-on): Add inttypes.
3407         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3408
3409 2010-01-25 Pádraig Brady <P@draigBrady.com>
3410
3411         syntax-check: detect incorrect boolean macro values in config.h
3412         * modules/maintainer-makefile (configure.ac): Parameterize the location
3413         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3414         The logic is from Eric Blake and the location indicated by Jim Meyering.
3415         Note the more natural CONFIG_HEADER name is prohibited by automake
3416         for backwards compatibility reasons.
3417         * top/maint.mk (sc_Wundef_boolean): New rule.
3418
3419 2010-01-25  Jim Meyering  <meyering@redhat.com>
3420
3421         bootstrap: detect MacOS 10.6's shasum, too
3422         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3423         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3424
3425 2010-01-23  Jim Meyering  <meyering@redhat.com>
3426
3427         xstrtoll: new module
3428         * modules/xstrtoll: New file.
3429         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3430         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3431         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3432         ./configure fails if you use this module and lack "long long".
3433         * modules/xstrtoll-tests: New module.
3434         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3435         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3436         new init.sh-based test framework.
3437
3438 2010-01-24  Bruno Haible  <bruno@clisp.org>
3439
3440         Tests for module 'yn'.
3441         * modules/yn-tests: New file.
3442         * tests/test-yn.c: New file.
3443
3444         Tests for module 'y1'.
3445         * modules/y1-tests: New file.
3446         * tests/test-y1.c: New file.
3447
3448         Tests for module 'y0'.
3449         * modules/y0-tests: New file.
3450         * tests/test-y0.c: New file.
3451
3452         Tests for module 'tanh'.
3453         * modules/tanh-tests: New file.
3454         * tests/test-tanh.c: New file.
3455
3456         Tests for module 'tan'.
3457         * modules/tan-tests: New file.
3458         * tests/test-tan.c: New file.
3459
3460         Tests for module 'sqrt'.
3461         * modules/sqrt-tests: New file.
3462         * tests/test-sqrt.c: New file.
3463
3464         Tests for module 'sinh'.
3465         * modules/sinh-tests: New file.
3466         * tests/test-sinh.c: New file.
3467
3468         Tests for module 'sin'.
3469         * modules/sin-tests: New file.
3470         * tests/test-sin.c: New file.
3471
3472         Tests for module 'rint'.
3473         * modules/rint-tests: New file.
3474         * tests/test-rint.c: New file.
3475
3476         Tests for module 'remainder'.
3477         * modules/remainder-tests: New file.
3478         * tests/test-remainder.c: New file.
3479
3480         Tests for module 'pow'.
3481         * modules/pow-tests: New file.
3482         * tests/test-pow.c: New file.
3483
3484         Tests for module 'nextafter'.
3485         * modules/nextafter-tests: New file.
3486         * tests/test-nextafter.c: New file.
3487
3488         Tests for module 'modf'.
3489         * modules/modf-tests: New file.
3490         * tests/test-modf.c: New file.
3491
3492         Tests for module 'logb'.
3493         * modules/logb-tests: New file.
3494         * tests/test-logb.c: New file.
3495
3496         Tests for module 'log1p'.
3497         * modules/log1p-tests: New file.
3498         * tests/test-log1p.c: New file.
3499
3500         Tests for module 'log10'.
3501         * modules/log10-tests: New file.
3502         * tests/test-log10.c: New file.
3503
3504         Tests for module 'log'.
3505         * modules/log-tests: New file.
3506         * tests/test-log.c: New file.
3507
3508         Tests for module 'lgamma'.
3509         * modules/lgamma-tests: New file.
3510         * tests/test-lgamma.c: New file.
3511
3512         Tests for module 'ldexp'.
3513         * modules/ldexp-tests: New file.
3514         * tests/test-ldexp.c: New file.
3515
3516         Tests for module 'jn'.
3517         * modules/jn-tests: New file.
3518         * tests/test-jn.c: New file.
3519
3520         Tests for module 'j1'.
3521         * modules/j1-tests: New file.
3522         * tests/test-j1.c: New file.
3523
3524         Tests for module 'j0'.
3525         * modules/j0-tests: New file.
3526         * tests/test-j0.c: New file.
3527
3528         Tests for module 'hypot'.
3529         * modules/hypot-tests: New file.
3530         * tests/test-hypot.c: New file.
3531
3532         Tests for module 'fmod'.
3533         * modules/fmod-tests: New file.
3534         * tests/test-fmod.c: New file.
3535
3536         Tests for module 'fabs'.
3537         * modules/fabs-tests: New file.
3538         * tests/test-fabs.c: New file.
3539
3540         Tests for module 'exp'.
3541         * modules/exp-tests: New file.
3542         * tests/test-exp.c: New file.
3543
3544         Tests for module 'erfc'.
3545         * modules/erfc-tests: New file.
3546         * tests/test-erfc.c: New file.
3547
3548         Tests for module 'erf'.
3549         * modules/erf-tests: New file.
3550         * tests/test-erf.c: New file.
3551
3552         Tests for module 'cosh'.
3553         * modules/cosh-tests: New file.
3554         * tests/test-cosh.c: New file.
3555
3556         Tests for module 'cos'.
3557         * modules/cos-tests: New file.
3558         * tests/test-cos.c: New file.
3559
3560         Tests for module 'copysign'.
3561         * modules/copysign-tests: New file.
3562         * tests/test-copysign.c: New file.
3563
3564         Tests for module 'cbrt'.
3565         * modules/cbrt-tests: New file.
3566         * tests/test-cbrt.c: New file.
3567
3568         Tests for module 'atan2'.
3569         * modules/atan2-tests: New file.
3570         * tests/test-atan2.c: New file.
3571
3572         Tests for module 'atan'.
3573         * modules/atan-tests: New file.
3574         * tests/test-atan.c: New file.
3575
3576         Tests for module 'asin'.
3577         * modules/asin-tests: New file.
3578         * tests/test-asin.c: New file.
3579
3580         Tests for module 'acos'.
3581         * modules/acos-tests: New file.
3582         * tests/test-acos.c: New file.
3583
3584 2010-01-24  Bruno Haible  <bruno@clisp.org>
3585
3586         Fix tests for common <math.h> functions.
3587         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3588         code snippet that references the function pointer, rather than merely
3589         calling the function. Substitute the FUNC_LIBM variable.
3590         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3591         * modules/acos (configure.ac): Likewise.
3592         * modules/asin (configure.ac): Likewise.
3593         * modules/atan (configure.ac): Likewise.
3594         * modules/atan2 (configure.ac): Likewise.
3595         * modules/cbrt (configure.ac): Likewise.
3596         * modules/copysign (configure.ac): Likewise.
3597         * modules/cos (configure.ac): Likewise.
3598         * modules/cosh (configure.ac): Likewise.
3599         * modules/erf (configure.ac): Likewise.
3600         * modules/erfc (configure.ac): Likewise.
3601         * modules/exp (configure.ac): Likewise.
3602         * modules/fabs (configure.ac): Likewise.
3603         * modules/fmod (configure.ac): Likewise.
3604         * modules/hypot (configure.ac): Likewise.
3605         * modules/j0 (configure.ac): Likewise.
3606         * modules/j1 (configure.ac): Likewise.
3607         * modules/jn (configure.ac): Likewise.
3608         * modules/ldexp (configure.ac): Likewise.
3609         * modules/lgamma (configure.ac): Likewise.
3610         * modules/log (configure.ac): Likewise.
3611         * modules/log10 (configure.ac): Likewise.
3612         * modules/log1p (configure.ac): Likewise.
3613         * modules/logb (configure.ac): Likewise.
3614         * modules/modf (configure.ac): Likewise.
3615         * modules/nextafter (configure.ac): Likewise.
3616         * modules/pow (configure.ac): Likewise.
3617         * modules/remainder (configure.ac): Likewise.
3618         * modules/rint (configure.ac): Likewise.
3619         * modules/sin (configure.ac): Likewise.
3620         * modules/sinh (configure.ac): Likewise.
3621         * modules/tan (configure.ac): Likewise.
3622         * modules/tanh (configure.ac): Likewise.
3623         * modules/y0 (configure.ac): Likewise.
3624         * modules/y1 (configure.ac): Likewise.
3625         * modules/yn (configure.ac): Likewise.
3626
3627 2010-01-24  Bruno Haible  <bruno@clisp.org>
3628
3629         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3630         * tests/test-acosl.c (x): New variable.
3631         (main): Store argument in x and fetch it from x.
3632         * tests/test-asinl.c (x): New variable.
3633         (main): Store argument in x and fetch it from x.
3634         * tests/test-atanl.c (x): New variable.
3635         (main): Store argument in x and fetch it from x.
3636         * tests/test-cosl.c (x): New variable.
3637         (main): Store argument in x and fetch it from x.
3638         * tests/test-expl.c (x): New variable.
3639         (main): Store argument in x and fetch it from x.
3640         * tests/test-logl.c (x): New variable.
3641         (main): Store argument in x and fetch it from x.
3642         * tests/test-sinl.c (x): New variable.
3643         (main): Store argument in x and fetch it from x.
3644         * tests/test-sqrtl.c (x): New variable.
3645         (main): Store argument in x and fetch it from x.
3646         * tests/test-tanl.c (x): New variable.
3647         (main): Store argument in x and fetch it from x.
3648
3649 2010-01-24  Bruno Haible  <bruno@clisp.org>
3650
3651         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3652         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3653         assignments to the initial TESTS_ENVIRONMENT.
3654         * doc/gnulib.texi (Unit test modules): Document it.
3655         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3656         TESTS_ENVIRONMENT.
3657         * modules/btowc-tests (Makefile.am): Likewise.
3658         * modules/c-stack-tests (Makefile.am): Likewise.
3659         * modules/c-strcase-tests (Makefile.am): Likewise.
3660         * modules/copy-file-tests (Makefile.am): Likewise.
3661         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3662         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3663         * modules/mbrtowc-tests (Makefile.am): Likewise.
3664         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3665         * modules/mbscasestr-tests (Makefile.am): Likewise.
3666         * modules/mbschr-tests (Makefile.am): Likewise.
3667         * modules/mbscspn-tests (Makefile.am): Likewise.
3668         * modules/mbsinit-tests (Makefile.am): Likewise.
3669         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3670         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3671         * modules/mbspbrk-tests (Makefile.am): Likewise.
3672         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3673         * modules/mbsrchr-tests (Makefile.am): Likewise.
3674         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3675         * modules/mbsspn-tests (Makefile.am): Likewise.
3676         * modules/mbsstr-tests (Makefile.am): Likewise.
3677         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3678         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3679         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3680         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3681         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3682         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3683         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3684         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3685         * modules/wcrtomb-tests (Makefile.am): Likewise.
3686         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3687         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3688         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3689         assignments from TESTS_ENVIRONMENT.
3690         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3691         augmentation.
3692         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3693         * modules/atexit-tests (Makefile.am): Likewise.
3694         * modules/binary-io-tests (Makefile.am): Likewise.
3695         * modules/closein-tests (Makefile.am): Likewise.
3696         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3697         * modules/exclude-tests (Makefile.am): Likewise.
3698         * modules/fflush-tests (Makefile.am): Likewise.
3699         * modules/fpending-tests (Makefile.am): Likewise.
3700         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3701         * modules/freadahead-tests (Makefile.am): Likewise.
3702         * modules/freadptr-tests (Makefile.am): Likewise.
3703         * modules/freadseek-tests (Makefile.am): Likewise.
3704         * modules/fseek-tests (Makefile.am): Likewise.
3705         * modules/fseeko-tests (Makefile.am): Likewise.
3706         * modules/ftell-tests (Makefile.am): Likewise.
3707         * modules/ftello-tests (Makefile.am): Likewise.
3708         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3709         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3710         * modules/lseek-tests (Makefile.am): Likewise.
3711         * modules/parse-duration-tests (Makefile.am): Likewise.
3712         * modules/perror-tests (Makefile.am): Likewise.
3713         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3714         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3715         * modules/pipe-tests (Makefile.am): Likewise.
3716         * modules/pread-tests (Makefile.am): Likewise.
3717         * modules/printf-posix-tests (Makefile.am): Likewise.
3718         * modules/select-tests (Makefile.am): Likewise.
3719         * modules/sigpipe-tests (Makefile.am): Likewise.
3720         * modules/tsearch-tests (Makefile.am): Likewise.
3721         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3722         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3723         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3724         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3725         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3726         * modules/version-etc-tests (Makefile.am): Likewise.
3727         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3728         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3729         * modules/xalloc-die-tests (Makefile.am): Likewise.
3730         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3731         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3732         * modules/xstrtol-tests (Makefile.am): Likewise.
3733         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3734         * modules/yesno-tests (Makefile.am): Likewise.
3735         Suggested by Jim Meyering.
3736
3737 2010-01-24  Bruno Haible  <bruno@clisp.org>
3738
3739         More documentation.
3740         * doc/gnulib.texi (Writing modules): New chapter.
3741         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3742         the new chapter.
3743
3744 2010-01-24  Jim Meyering  <meyering@redhat.com>
3745
3746         maint.mk: do not prepend "./" after filtering
3747         * top/maint.mk (_prepend_srcdir_prefix): New variable
3748         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3749         "./" when $(srcdir) is ".".
3750
3751         define STREQ(a,b) consistently, removing useless parentheses
3752         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3753         since the only risk is that "a" or "b" contains an unparenthesized
3754         comma, but if either did that, STREQ would have 3 or more arguments.
3755         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3756         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3757         * lib/hash-triple.c (STREQ): Likewise.
3758         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3759         * lib/getugroups.c (STREQ): Likewise.
3760
3761 2010-01-23  Jim Meyering  <meyering@redhat.com>
3762
3763         maint.mk: fix syntax-check in a non-srcdir build directory
3764         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3765         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3766
3767 2010-01-22  Jim Meyering  <meyering@redhat.com>
3768
3769         userspec: add unit tests
3770         * tests/test-userspec.c: New file.
3771         * modules/userspec-tests: Likewise.
3772
3773 2010-01-21  Jim Meyering  <meyering@redhat.com>
3774
3775         maint.mk: handle source file names containing "." robustly
3776         * top/maint.mk (_dot_escaped_srcdir): Define.
3777         (VC_LIST): Use it in LHS of sed substitution.
3778
3779 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3780
3781         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3782         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3783         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3784         from a non-srcdir build.
3785
3786 2010-01-20  Eric Blake  <ebb9@byu.net>
3787
3788         warn-on-use: use instead of link-warning
3789         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3790         * modules/unistd (Depends-on, Makefile.am): Likewise.
3791         * modules/arpa_inet (Depends-on): Replace link-warning with
3792         warn-on-use.
3793         (Makefile.am): Update rules accordingly.
3794         * modules/ctype (Depends-on, Makefile.am): Likewise.
3795         * modules/dirent (Depends-on, Makefile.am): Likewise.
3796         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3797         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3798         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3799         * modules/locale (Depends-on, Makefile.am): Likewise.
3800         * modules/math (Depends-on, Makefile.am): Likewise.
3801         * modules/search (Depends-on, Makefile.am): Likewise.
3802         * modules/signal (Depends-on, Makefile.am): Likewise.
3803         * modules/spawn (Depends-on, Makefile.am): Likewise.
3804         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3805         * modules/string (Depends-on, Makefile.am): Likewise.
3806         * modules/strings (Depends-on, Makefile.am): Likewise.
3807         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3808         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3809         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3810         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3811         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3812         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3813         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3814         * modules/wchar (Depends-on, Makefile.am): Likewise.
3815         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3816         should be poisoned.
3817         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3818         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3819         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3820         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3821         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3822         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3823         * m4/math_h.m4 (gl_MATH_H): Likewise.
3824         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3825         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3826         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3827         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3828         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3829         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3830         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3831         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3832         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3833         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3834         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3835         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3836         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3837         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3838         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3839         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3840         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3841         GL_LINK_WARNING.
3842         * lib/ctype.in.h: Likewise.
3843         * lib/dirent.in.h: Likewise.
3844         * lib/fcntl.in.h: Likewise.
3845         * lib/inttypes.in.h: Likewise.
3846         * lib/langinfo.in.h: Likewise.
3847         * lib/locale.in.h: Likewise.
3848         * lib/math.in.h: Likewise.
3849         * lib/search.in.h: Likewise.
3850         * lib/signal.in.h: Likewise.
3851         * lib/spawn.in.h: Likewise.
3852         * lib/stdio.in.h: Likewise.
3853         * lib/stdlib.in.h: Likewise.
3854         * lib/string.in.h: Likewise.
3855         * lib/strings.in.h: Likewise.
3856         * lib/sys_file.in.h: Likewise.
3857         * lib/sys_ioctl.in.h: Likewise.
3858         * lib/sys_select.in.h: Likewise.
3859         * lib/sys_socket.in.h: Likewise.
3860         * lib/sys_stat.in.h: Likewise.
3861         * lib/sys_times.in.h: Likewise.
3862         * lib/sys_utsname.in.h: Likewise.
3863         * lib/unistd.in.h: Likewise.
3864         * lib/wchar.in.h: Likewise.
3865
3866 2010-01-20  Bruno Haible  <bruno@clisp.org>
3867
3868         Avoid duplicate -lm.
3869         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3870         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3871         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3872         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3873         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3874         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3875         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3876         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3877         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3878         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3879         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3880         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3881         Reported by Paolo Bonzini.
3882
3883 2010-01-19  Bruno Haible  <bruno@clisp.org>
3884
3885         langinfo, nl_langinfo: Relicense under LGPLv2+.
3886         * modules/langinfo (License): Change to LGPLv2+.
3887         * modules/nl_langinfo (License): Likewise.
3888         Patch by David Lutterkort <lutter@redhat.com>.
3889
3890 2010-01-19  Bruno Haible  <bruno@clisp.org>
3891
3892         Avoid compilation error with cc on OSF/1 5.1.
3893         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3894         statement, not before.
3895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3896
3897 2010-01-18  Bruno Haible  <bruno@clisp.org>
3898
3899         Avoid a link error due to the __printf__ symbol.
3900         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3901         and 2.6.x.
3902         (__format__, __printf__): Remove definitions.
3903         * lib/argp-fmtstream.h: Likewise.
3904         * lib/argp.h: Likewise.
3905         * lib/error.h: Likewise.
3906         * lib/vasnprintf.h: Likewise.
3907         * lib/xprintf.h: Likewise.
3908         * lib/xvasprintf.h: Likewise.
3909         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3910
3911 2010-01-18  Bruno Haible  <bruno@clisp.org>
3912
3913         Tests for module 'tanl'.
3914         * modules/tanl-tests: New file.
3915         * tests/test-tanl.c: New file.
3916
3917         Tests for module 'sqrtl'.
3918         * modules/sqrtl-tests: New file.
3919         * tests/test-sqrtl.c: New file.
3920
3921         Tests for module 'sinl'.
3922         * modules/sinl-tests: New file.
3923         * tests/test-sinl.c: New file.
3924
3925         Tests for module 'logl'.
3926         * modules/logl-tests: New file.
3927         * tests/test-logl.c: New file.
3928
3929         Tests for module 'expl'.
3930         * modules/expl-tests: New file.
3931         * tests/test-expl.c: New file.
3932
3933         Tests for module 'cosl'.
3934         * modules/cosl-tests: New file.
3935         * tests/test-cosl.c: New file.
3936
3937         Tests for module 'atanl'.
3938         * modules/atanl-tests: New file.
3939         * tests/test-atanl.c: New file.
3940
3941         Tests for module 'asinl'.
3942         * modules/asinl-tests: New file.
3943         * tests/test-asinl.c: New file.
3944
3945         Tests for module 'acosl'.
3946         * modules/acosl-tests: New file.
3947         * tests/test-acosl.c: New file.
3948
3949         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3950         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3951         tanl): Use the standard gnulib idiom.
3952         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3953         * lib/sinl.c: Likewise.
3954         * lib/tanl.c: Don't include trigl.c.
3955         (kernel_tanl): Make static.
3956         * lib/sincosl.c: Include trigl.h first.
3957         * lib/trigl.c: Likewise.
3958         * m4/acosl.m4: New file.
3959         * m4/asinl.m4: New file.
3960         * m4/atanl.m4: New file.
3961         * m4/cosl.m4: New file.
3962         * m4/expl.m4: New file.
3963         * m4/logl.m4: New file.
3964         * m4/sinl.m4: New file.
3965         * m4/sqrtl.m4: New file.
3966         * m4/tanl.m4: New file.
3967         * m4/mathl.m4: Remove file.
3968         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3969         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3970         Don't initialize GNULIB_MATHL.
3971         * modules/acosl: New file.
3972         * modules/asinl: New file.
3973         * modules/atanl: New file.
3974         * modules/cosl: New file.
3975         * modules/expl: New file.
3976         * modules/logl: New file.
3977         * modules/sinl: New file.
3978         * modules/sqrtl: New file.
3979         * modules/tanl: New file.
3980         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3981         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3982         substitute GNULIB_MATHL.
3983         * modules/mathl: Rewritten.
3984         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3985         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3986         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3987         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3988         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3989         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3990         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3991         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3992         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3993
3994 2010-01-18  Bruno Haible  <bruno@clisp.org>
3995
3996         sqrt: Make gl_FUNC_SQRT requirable.
3997         * m4/sqrt.m4: New file.
3998         * modules/sqrt (Files): Add it.
3999         (configure.ac): Invoke gl_FUNC_SQRT.
4000
4001 2010-01-18  Bruno Haible  <bruno@clisp.org>
4002
4003         New modules for common <math.h> functions.
4004         * m4/mathfunc.m4: New file.
4005         * modules/acos: New file.
4006         * modules/asin: New file.
4007         * modules/atan: New file.
4008         * modules/atan2: New file.
4009         * modules/cbrt: New file.
4010         * modules/copysign: New file.
4011         * modules/cos: New file.
4012         * modules/cosh: New file.
4013         * modules/erf: New file.
4014         * modules/erfc: New file.
4015         * modules/exp: New file.
4016         * modules/fabs: New file.
4017         * modules/fmod: New file.
4018         * modules/hypot: New file.
4019         * modules/j0: New file.
4020         * modules/j1: New file.
4021         * modules/jn: New file.
4022         * modules/ldexp: New file.
4023         * modules/lgamma: New file.
4024         * modules/log: New file.
4025         * modules/log10: New file.
4026         * modules/log1p: New file.
4027         * modules/logb: New file.
4028         * modules/modf: New file.
4029         * modules/nextafter: New file.
4030         * modules/pow: New file.
4031         * modules/remainder: New file.
4032         * modules/rint: New file.
4033         * modules/sin: New file.
4034         * modules/sinh: New file.
4035         * modules/sqrt: New file.
4036         * modules/tan: New file.
4037         * modules/tanh: New file.
4038         * modules/y0: New file.
4039         * modules/y1: New file.
4040         * modules/yn: New file.
4041         * doc/posix-functions/acos.texi: Mention the 'acos' module.
4042         * doc/posix-functions/asin.texi: Mention the 'asin' module.
4043         * doc/posix-functions/atan.texi: Mention the 'atan' module.
4044         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
4045         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
4046         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
4047         * doc/posix-functions/cos.texi: Mention the 'cos' module.
4048         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
4049         * doc/posix-functions/erf.texi: Mention the 'erf' module.
4050         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
4051         * doc/posix-functions/exp.texi: Mention the 'exp' module.
4052         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
4053         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
4054         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
4055         * doc/posix-functions/j0.texi: Mention the 'j0' module.
4056         * doc/posix-functions/j1.texi: Mention the 'j1' module.
4057         * doc/posix-functions/jn.texi: Mention the 'jn' module.
4058         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
4059         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
4060         * doc/posix-functions/log.texi: Mention the 'log' module.
4061         * doc/posix-functions/log10.texi: Mention the 'log10' module.
4062         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
4063         * doc/posix-functions/logb.texi: Mention the 'logb' module.
4064         * doc/posix-functions/modf.texi: Mention the 'modf' module.
4065         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
4066         * doc/posix-functions/pow.texi: Mention the 'pow' module.
4067         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
4068         * doc/posix-functions/rint.texi: Mention the 'rint' module.
4069         * doc/posix-functions/sin.texi: Mention the 'sin' module.
4070         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
4071         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
4072         * doc/posix-functions/tan.texi: Mention the 'tan' module.
4073         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
4074         * doc/posix-functions/y0.texi: Mention the 'y0' module.
4075         * doc/posix-functions/y1.texi: Mention the 'y1' module.
4076         * doc/posix-functions/yn.texi: Mention the 'yn' module.
4077
4078 2010-01-18  Jim Meyering  <meyering@redhat.com>
4079
4080         ignore-value: relax license to LGPLv2+
4081         * modules/ignore-value (License): Relax to LGPLv2+.
4082
4083         getdate: don't leak when TZ contains two or more '"'s
4084         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
4085         double quote in TZ after the first one.
4086
4087         readtokens: do not leak internal token_lengths buffer
4088         * lib/readtokens.c (readtokens): Free the local, lengths,
4089         when the supplied "token_lengths" parameter is NULL.
4090
4091 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4092
4093         Fix a couple of missing LIBTHREAD link failures on AIX.
4094         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
4095         $(LIBTHREAD).
4096         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
4097
4098         Link test-poll against INET_PTON_LIB.
4099         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
4100         for inet_pton on Solaris 10.
4101
4102 2010-01-17  Bruno Haible  <bruno@clisp.org>
4103
4104         unistdio/*-sprintf: Fix typo in module description.
4105         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
4106         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
4107         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
4108         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
4109         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
4110         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
4111         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
4112         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4113
4114 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4115
4116         gnulib-tool: fix filelist for AIX, HP-UX ksh.
4117         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
4118         variables in shell case patterns, for AIX and HP-UX ksh.
4119
4120         Split large sed scripts, for HP-UX sed.
4121         * modules/stdio: Split sed scripts around 50 sed commands,
4122         to avoid HP-UX limit of 99 commands, in the near future.
4123         * modules/string: Likewise.
4124         * modules/unistd: Likewise.
4125
4126         gnulib-tool: avoid writing in the current directory.
4127         * gnulib-tool (func_emit_lib_Makefile_am)
4128         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
4129         not in the current directory, so concurrent gnulib-tool
4130         instances do not interfere.
4131
4132 2010-01-16  Jim Meyering  <meyering@redhat.com>
4133
4134         doc: update users.txt
4135         * users.txt: Add grep.
4136         (diffutils, gzip): Update URLs.
4137
4138 2010-01-12  Bruno Haible  <bruno@clisp.org>
4139
4140         posix_spawn: Avoid test failure on Cygwin.
4141         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
4142         characters.
4143         Reported by Simon Josefsson.
4144
4145 2010-01-12  Bruno Haible  <bruno@clisp.org>
4146
4147         * tests/test-cond.c (main): When skipping the test, show the reason.
4148
4149 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4150
4151         * lib/striconv.c (str_cd_iconv): Avoid if before free.
4152
4153 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4154
4155         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
4156         VC_LIST_ALWAYS_EXCLUDE_REGEX.
4157
4158 2010-01-12  Eric Blake  <ebb9@byu.net>
4159
4160         build: guarantee AS_VAR_IF
4161         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
4162         (gl_AS_VAR_IF): Move...
4163         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
4164         Reported by Simon Josefsson.
4165
4166 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4167
4168         * lib/stdio.in.h: Fix typo.
4169
4170 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4171
4172         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
4173         libgpg-error.
4174
4175 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4176
4177         * tests/test-xalloc-die.sh: Use $EXEEXT.
4178
4179 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4180             Bruno Haible  <bruno@clisp.org>
4181
4182         getlogin, getlogin_r: Avoid test failure.
4183         * tests/test-getlogin.c: Include <stdio.h>.
4184         (main): Skip the test when the function fails because stdin is not a
4185         tty.
4186         * tests/test-getlogin_r.c: Include <stdio.h>.
4187         (main): Skip the test when the function fails because stdin is not a
4188         tty.
4189
4190 2010-01-11  Eric Blake  <ebb9@byu.net>
4191
4192         tests: avoid more large file warnings
4193         * tests/test-fflush.c: Avoid warning about ftell use.
4194         * tests/test-fseek.c: Avoid warning about fseek use.
4195
4196 2010-01-10  Bruno Haible  <bruno@clisp.org>
4197
4198         nproc: Work better on Linux when /proc and /sys are not mounted.
4199         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
4200         as lower bound when, on glibc/Linux systems,
4201         sysconf (_SC_NPROCESSORS_CONF) returns 1.
4202         Suggested by Pádraig Brady <P@draigbrady.com>.
4203         Reported by Dmitry V. Levin <ldv@altlinux.org>.
4204
4205         nproc: Refactor.
4206         * lib/nproc.c (num_processors_via_affinity_mask): New function,
4207         extracted from num_processors.
4208         (num_processors): Call it.
4209
4210 2010-01-11  Jim Meyering  <meyering@redhat.com>
4211
4212         utimecmp: avoid new warning from upcoming gcc-4.5.0
4213         * lib/utimecmp.c (BILLION): Define using #define rather than an
4214         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
4215
4216 2010-01-11  Eric Blake  <ebb9@byu.net>
4217
4218         math: add portability warnings for classification macros
4219         * modules/math (Depends-on): Add warn-on-use.
4220         (Makefile.am): Provide new substitutions.
4221         * m4/math_h.m4 (gl_MATH_H): Require inline.
4222         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
4223         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
4224         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
4225         implement warnings.
4226
4227         unistd: warn on use of environ without module
4228         * modules/unistd (Depends-on): Add warn-on-use.
4229         (Makefile.am): Provide new substitutions.
4230         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
4231         * lib/unistd.in.h (environ): Wrap with a warning helper function.
4232
4233         stdio: warn on suspicious uses
4234         * modules/stdio (Depends-on): Add warn-on-use.
4235         (Makefile.am): Provide new substitutions.
4236         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
4237         fseeko.
4238         * lib/stdio.in.h (gets): Always warn on use.
4239         (fseek, ftell): Adjust when warnings are issued, and honor
4240         _GL_NO_LARGE_FILES as a way to silence the warning.
4241         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
4242         any warning about large file offsets.
4243         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
4244         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
4245         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
4246         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
4247         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
4248         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
4249         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
4250         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
4251
4252         warn-on-use: new module
4253         * modules/warn-on-use: New file.
4254         * build-aux/warn-on-use.h: Likewise.
4255         * m4/warn-on-use.m4: Likewise.
4256         * MODULES.html.sh (Support for building): Mention it.
4257
4258 2010-01-10  Bruno Haible  <bruno@clisp.org>
4259
4260         Tests for module 'unistr/u32-strdup'.
4261         * modules/unistr/u32-strdup-tests: New file.
4262         * tests/unistr/test-u32-strdup.c: New file.
4263
4264         Tests for module 'unistr/u16-strdup'.
4265         * modules/unistr/u16-strdup-tests: New file.
4266         * tests/unistr/test-u16-strdup.c: New file.
4267
4268         Tests for module 'unistr/u8-strdup'.
4269         * modules/unistr/u8-strdup-tests: New file.
4270         * tests/unistr/test-u8-strdup.c: New file.
4271         * tests/unistr/test-strdup.h: New file.
4272
4273         Tests for module 'unistr/u32-strncmp'.
4274         * modules/unistr/u32-strncmp-tests: New file.
4275         * tests/unistr/test-u32-strncmp.c: New file.
4276
4277         Tests for module 'unistr/u16-strncmp'.
4278         * modules/unistr/u16-strncmp-tests: New file.
4279         * tests/unistr/test-u16-strncmp.c: New file.
4280
4281         Tests for module 'unistr/u8-strncmp'.
4282         * modules/unistr/u8-strncmp-tests: New file.
4283         * tests/unistr/test-u8-strncmp.c: New file.
4284         * tests/unistr/test-strncmp.h: New file.
4285
4286         Tests for module 'unistr/u32-strcoll'.
4287         * modules/unistr/u32-strcoll-tests: New file.
4288         * tests/unistr/test-u32-strcoll.c: New file.
4289
4290         Tests for module 'unistr/u16-strcoll'.
4291         * modules/unistr/u16-strcoll-tests: New file.
4292         * tests/unistr/test-u16-strcoll.c: New file.
4293
4294         Tests for module 'unistr/u8-strcoll'.
4295         * modules/unistr/u8-strcoll-tests: New file.
4296         * tests/unistr/test-u8-strcoll.c: New file.
4297
4298         Tests for module 'unistr/u32-strcmp'.
4299         * modules/unistr/u32-strcmp-tests: New file.
4300         * tests/unistr/test-u32-strcmp.c: New file.
4301         * tests/unistr/test-u32-strcmp.h: New file.
4302
4303         Tests for module 'unistr/u16-strcmp'.
4304         * modules/unistr/u16-strcmp-tests: New file.
4305         * tests/unistr/test-u16-strcmp.c: New file.
4306         * tests/unistr/test-u16-strcmp.h: New file.
4307
4308         Tests for module 'unistr/u8-strcmp'.
4309         * modules/unistr/u8-strcmp-tests: New file.
4310         * tests/unistr/test-u8-strcmp.c: New file.
4311         * tests/unistr/test-u8-strcmp.h: New file.
4312         * tests/unistr/test-strcmp.h: New file.
4313
4314         Tests for module 'unistr/u32-strncat'.
4315         * modules/unistr/u32-strncat-tests: New file.
4316         * tests/unistr/test-u32-strncat.c: New file.
4317
4318         Tests for module 'unistr/u16-strncat'.
4319         * modules/unistr/u16-strncat-tests: New file.
4320         * tests/unistr/test-u16-strncat.c: New file.
4321
4322         Tests for module 'unistr/u8-strncat'.
4323         * modules/unistr/u8-strncat-tests: New file.
4324         * tests/unistr/test-u8-strncat.c: New file.
4325         * tests/unistr/test-strncat.h: New file.
4326
4327         Tests for module 'unistr/u32-strcat'.
4328         * modules/unistr/u32-strcat-tests: New file.
4329         * tests/unistr/test-u32-strcat.c: New file.
4330
4331         Tests for module 'unistr/u16-strcat'.
4332         * modules/unistr/u16-strcat-tests: New file.
4333         * tests/unistr/test-u16-strcat.c: New file.
4334
4335         Tests for module 'unistr/u8-strcat'.
4336         * modules/unistr/u8-strcat-tests: New file.
4337         * tests/unistr/test-u8-strcat.c: New file.
4338         * tests/unistr/test-strcat.h: New file.
4339
4340         Tests for module 'unistr/u32-stpncpy'.
4341         * modules/unistr/u32-stpncpy-tests: New file.
4342         * tests/unistr/test-u32-stpncpy.c: New file.
4343
4344         Tests for module 'unistr/u16-stpncpy'.
4345         * modules/unistr/u16-stpncpy-tests: New file.
4346         * tests/unistr/test-u16-stpncpy.c: New file.
4347
4348         Tests for module 'unistr/u8-stpncpy'.
4349         * modules/unistr/u8-stpncpy-tests: New file.
4350         * tests/unistr/test-u8-stpncpy.c: New file.
4351         * tests/unistr/test-stpncpy.h: New file.
4352
4353         Tests for module 'unistr/u32-strncpy'.
4354         * modules/unistr/u32-strncpy-tests: New file.
4355         * tests/unistr/test-u32-strncpy.c: New file.
4356
4357         Tests for module 'unistr/u16-strncpy'.
4358         * modules/unistr/u16-strncpy-tests: New file.
4359         * tests/unistr/test-u16-strncpy.c: New file.
4360
4361         Tests for module 'unistr/u8-strncpy'.
4362         * modules/unistr/u8-strncpy-tests: New file.
4363         * tests/unistr/test-u8-strncpy.c: New file.
4364         * tests/unistr/test-strncpy.h: New file.
4365
4366         Tests for module 'unistr/u32-stpcpy'.
4367         * modules/unistr/u32-stpcpy-tests: New file.
4368         * tests/unistr/test-u32-stpcpy.c: New file.
4369
4370         Tests for module 'unistr/u16-stpcpy'.
4371         * modules/unistr/u16-stpcpy-tests: New file.
4372         * tests/unistr/test-u16-stpcpy.c: New file.
4373
4374         Tests for module 'unistr/u8-stpcpy'.
4375         * modules/unistr/u8-stpcpy-tests: New file.
4376         * tests/unistr/test-u8-stpcpy.c: New file.
4377         * tests/unistr/test-stpcpy.h: New file.
4378
4379         Tests for module 'unistr/u32-strcpy'.
4380         * modules/unistr/u32-strcpy-tests: New file.
4381         * tests/unistr/test-u32-strcpy.c: New file.
4382
4383         Tests for module 'unistr/u16-strcpy'.
4384         * modules/unistr/u16-strcpy-tests: New file.
4385         * tests/unistr/test-u16-strcpy.c: New file.
4386
4387         Tests for module 'unistr/u8-strcpy'.
4388         * modules/unistr/u8-strcpy-tests: New file.
4389         * tests/unistr/test-u8-strcpy.c: New file.
4390         * tests/unistr/test-strcpy.h: New file.
4391
4392         Tests for module 'unistr/u32-strnlen'.
4393         * modules/unistr/u32-strnlen-tests: New file.
4394         * tests/unistr/test-u32-strnlen.c: New file.
4395
4396         Tests for module 'unistr/u16-strnlen'.
4397         * modules/unistr/u16-strnlen-tests: New file.
4398         * tests/unistr/test-u16-strnlen.c: New file.
4399
4400         Tests for module 'unistr/u8-strnlen'.
4401         * modules/unistr/u8-strnlen-tests: New file.
4402         * tests/unistr/test-u8-strnlen.c: New file.
4403         * tests/unistr/test-strnlen.h: New file.
4404
4405         Tests for module 'unistr/u32-strlen'.
4406         * modules/unistr/u32-strlen-tests: New file.
4407         * tests/unistr/test-u32-strlen.c: New file.
4408
4409         Tests for module 'unistr/u16-strlen'.
4410         * modules/unistr/u16-strlen-tests: New file.
4411         * tests/unistr/test-u16-strlen.c: New file.
4412
4413         Tests for module 'unistr/u8-strlen'.
4414         * modules/unistr/u8-strlen-tests: New file.
4415         * tests/unistr/test-u8-strlen.c: New file.
4416
4417         Tests for module 'unistr/u32-prev'.
4418         * modules/unistr/u32-prev-tests: New file.
4419         * tests/unistr/test-u32-prev.c: New file.
4420
4421         Tests for module 'unistr/u16-prev'.
4422         * modules/unistr/u16-prev-tests: New file.
4423         * tests/unistr/test-u16-prev.c: New file.
4424
4425         Tests for module 'unistr/u8-prev'.
4426         * modules/unistr/u8-prev-tests: New file.
4427         * tests/unistr/test-u8-prev.c: New file.
4428
4429         Tests for module 'unistr/u32-next'.
4430         * modules/unistr/u32-next-tests: New file.
4431         * tests/unistr/test-u32-next.c: New file.
4432
4433         Tests for module 'unistr/u16-next'.
4434         * modules/unistr/u16-next-tests: New file.
4435         * tests/unistr/test-u16-next.c: New file.
4436
4437         Tests for module 'unistr/u8-next'.
4438         * modules/unistr/u8-next-tests: New file.
4439         * tests/unistr/test-u8-next.c: New file.
4440
4441         Tests for module 'unistr/u32-strmbtouc'.
4442         * modules/unistr/u32-strmbtouc-tests: New file.
4443         * tests/unistr/test-u32-strmbtouc.c: New file.
4444
4445         Tests for module 'unistr/u16-strmbtouc'.
4446         * modules/unistr/u16-strmbtouc-tests: New file.
4447         * tests/unistr/test-u16-strmbtouc.c: New file.
4448
4449         Tests for module 'unistr/u8-strmbtouc'.
4450         * modules/unistr/u8-strmbtouc-tests: New file.
4451         * tests/unistr/test-u8-strmbtouc.c: New file.
4452
4453         Tests for module 'unistr/u32-strmblen'.
4454         * modules/unistr/u32-strmblen-tests: New file.
4455         * tests/unistr/test-u32-strmblen.c: New file.
4456
4457         Tests for module 'unistr/u16-strmblen'.
4458         * modules/unistr/u16-strmblen-tests: New file.
4459         * tests/unistr/test-u16-strmblen.c: New file.
4460
4461         Tests for module 'unistr/u8-strmblen'.
4462         * modules/unistr/u8-strmblen-tests: New file.
4463         * tests/unistr/test-u8-strmblen.c: New file.
4464
4465         Tests for module 'unistr/u32-cpy-alloc'.
4466         * modules/unistr/u32-cpy-alloc-tests: New file.
4467         * tests/unistr/test-u32-cpy-alloc.c: New file.
4468
4469         Tests for module 'unistr/u16-cpy-alloc'.
4470         * modules/unistr/u16-cpy-alloc-tests: New file.
4471         * tests/unistr/test-u16-cpy-alloc.c: New file.
4472
4473         Tests for module 'unistr/u8-cpy-alloc'.
4474         * modules/unistr/u8-cpy-alloc-tests: New file.
4475         * tests/unistr/test-u8-cpy-alloc.c: New file.
4476         * tests/unistr/test-cpy-alloc.h: New file.
4477
4478         Tests for module 'unistr/u32-mbsnlen'.
4479         * modules/unistr/u32-mbsnlen-tests: New file.
4480         * tests/unistr/test-u32-mbsnlen.c: New file.
4481
4482         Tests for module 'unistr/u16-mbsnlen'.
4483         * modules/unistr/u16-mbsnlen-tests: New file.
4484         * tests/unistr/test-u16-mbsnlen.c: New file.
4485
4486         Tests for module 'unistr/u8-mbsnlen'.
4487         * modules/unistr/u8-mbsnlen-tests: New file.
4488         * tests/unistr/test-u8-mbsnlen.c: New file.
4489
4490         Tests for module 'unistr/u32-chr'.
4491         * modules/unistr/u32-chr-tests: New file.
4492         * tests/unistr/test-u32-chr.c: New file.
4493
4494         Tests for module 'unistr/u16-chr'.
4495         * modules/unistr/u16-chr-tests: New file.
4496         * tests/unistr/test-u16-chr.c: New file.
4497
4498         Tests for module 'unistr/u8-chr'.
4499         * modules/unistr/u8-chr-tests: New file.
4500         * tests/unistr/test-u8-chr.c: New file.
4501         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4502
4503         Tests for module 'unistr/u32-cmp2'.
4504         * modules/unistr/u32-cmp2-tests: New file.
4505         * tests/unistr/test-u32-cmp2.c: New file.
4506
4507         Tests for module 'unistr/u16-cmp2'.
4508         * modules/unistr/u16-cmp2-tests: New file.
4509         * tests/unistr/test-u16-cmp2.c: New file.
4510
4511         Tests for module 'unistr/u8-cmp2'.
4512         * modules/unistr/u8-cmp2-tests: New file.
4513         * tests/unistr/test-u8-cmp2.c: New file.
4514         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4515
4516         Tests for module 'unistr/u32-cmp'.
4517         * modules/unistr/u32-cmp-tests: New file.
4518         * tests/unistr/test-u32-cmp.c: New file.
4519
4520         Tests for module 'unistr/u16-cmp'.
4521         * modules/unistr/u16-cmp-tests: New file.
4522         * tests/unistr/test-u16-cmp.c: New file.
4523
4524         Tests for module 'unistr/u8-cmp'.
4525         * modules/unistr/u8-cmp-tests: New file.
4526         * tests/unistr/test-u8-cmp.c: New file.
4527         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4528
4529         Tests for module 'unistr/u32-set'.
4530         * modules/unistr/u32-set-tests: New file.
4531         * tests/unistr/test-u32-set.c: New file.
4532
4533         Tests for module 'unistr/u16-set'.
4534         * modules/unistr/u16-set-tests: New file.
4535         * tests/unistr/test-u16-set.c: New file.
4536
4537         Tests for module 'unistr/u8-set'.
4538         * modules/unistr/u8-set-tests: New file.
4539         * tests/unistr/test-u8-set.c: New file.
4540         * tests/unistr/test-set.h: New file.
4541
4542         Tests for module 'unistr/u32-move'.
4543         * modules/unistr/u32-move-tests: New file.
4544         * tests/unistr/test-u32-move.c: New file.
4545
4546         Tests for module 'unistr/u16-move'.
4547         * modules/unistr/u16-move-tests: New file.
4548         * tests/unistr/test-u16-move.c: New file.
4549
4550         Tests for module 'unistr/u8-move'.
4551         * modules/unistr/u8-move-tests: New file.
4552         * tests/unistr/test-u8-move.c: New file.
4553         * tests/unistr/test-move.h: New file.
4554
4555         Tests for module 'unistr/u32-cpy'.
4556         * modules/unistr/u32-cpy-tests: New file.
4557         * tests/unistr/test-u32-cpy.c: New file.
4558
4559         Tests for module 'unistr/u16-cpy'.
4560         * modules/unistr/u16-cpy-tests: New file.
4561         * tests/unistr/test-u16-cpy.c: New file.
4562
4563         Tests for module 'unistr/u8-cpy'.
4564         * modules/unistr/u8-cpy-tests: New file.
4565         * tests/unistr/test-u8-cpy.c: New file.
4566         * tests/unistr/test-cpy.h: New file.
4567
4568 2010-01-09  Bruno Haible  <bruno@clisp.org>
4569
4570         Tests for module 'unistr/u32-uctomb'.
4571         * modules/unistr/u32-uctomb-tests: New file.
4572         * tests/unistr/test-u32-uctomb.c: New file.
4573
4574         Tests for module 'unistr/u16-uctomb'.
4575         * modules/unistr/u16-uctomb-tests: New file.
4576         * tests/unistr/test-u16-uctomb.c: New file.
4577
4578         Tests for module 'unistr/u8-uctomb'.
4579         * modules/unistr/u8-uctomb-tests: New file.
4580         * tests/unistr/test-u8-uctomb.c: New file.
4581
4582         Tests for module 'unistr/u32-mbtoucr'.
4583         * modules/unistr/u32-mbtoucr-tests: New file.
4584         * tests/unistr/test-u32-mbtoucr.c: New file.
4585
4586         Tests for module 'unistr/u16-mbtoucr'.
4587         * modules/unistr/u16-mbtoucr-tests: New file.
4588         * tests/unistr/test-u16-mbtoucr.c: New file.
4589
4590         Tests for module 'unistr/u8-mbtoucr'.
4591         * modules/unistr/u8-mbtoucr-tests: New file.
4592         * tests/unistr/test-u8-mbtoucr.c: New file.
4593
4594         Tests for module 'unistr/u32-mbtouc'.
4595         * modules/unistr/u32-mbtouc-tests: New file.
4596         * tests/unistr/test-u32-mbtouc.c: New file.
4597
4598         Tests for module 'unistr/u16-mbtouc'.
4599         * modules/unistr/u16-mbtouc-tests: New file.
4600         * tests/unistr/test-u16-mbtouc.c: New file.
4601
4602         Tests for module 'unistr/u8-mbtouc'.
4603         * modules/unistr/u8-mbtouc-tests: New file.
4604         * tests/unistr/test-u8-mbtouc.c: New file.
4605
4606         Tests for module 'unistr/u32-mbtouc-unsafe'.
4607         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4608         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4609         * tests/unistr/test-u32-mbtouc.h: New file.
4610
4611         Tests for module 'unistr/u16-mbtouc-unsafe'.
4612         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4613         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4614         * tests/unistr/test-u16-mbtouc.h: New file.
4615
4616         Tests for module 'unistr/u8-mbtouc-unsafe'.
4617         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4618         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4619         * tests/unistr/test-u8-mbtouc.h: New file.
4620
4621         Tests for module 'unistr/u32-mblen'.
4622         * modules/unistr/u32-mblen-tests: New file.
4623         * tests/unistr/test-u32-mblen.c: New file.
4624
4625         Tests for module 'unistr/u16-mblen'.
4626         * modules/unistr/u16-mblen-tests: New file.
4627         * tests/unistr/test-u16-mblen.c: New file.
4628
4629         Tests for module 'unistr/u8-mblen'.
4630         * modules/unistr/u8-mblen-tests: New file.
4631         * tests/unistr/test-u8-mblen.c: New file.
4632
4633         Tests for module 'unistr/u32-to-u16'.
4634         * modules/unistr/u32-to-u16-tests: New file.
4635         * tests/unistr/test-u32-to-u16.c: New file.
4636
4637         Tests for module 'unistr/u32-to-u8'.
4638         * modules/unistr/u32-to-u8-tests: New file.
4639         * tests/unistr/test-u32-to-u8.c: New file.
4640
4641         Tests for module 'unistr/u16-to-u32'.
4642         * modules/unistr/u16-to-u32-tests: New file.
4643         * tests/unistr/test-u16-to-u32.c: New file.
4644
4645         Tests for module 'unistr/u16-to-u8'.
4646         * modules/unistr/u16-to-u8-tests: New file.
4647         * tests/unistr/test-u16-to-u8.c: New file.
4648
4649         Tests for module 'unistr/u8-to-u32'.
4650         * modules/unistr/u8-to-u32-tests: New file.
4651         * tests/unistr/test-u8-to-u32.c: New file.
4652
4653         Tests for module 'unistr/u8-to-u16'.
4654         * modules/unistr/u8-to-u16-tests: New file.
4655         * tests/unistr/test-u8-to-u16.c: New file.
4656
4657         Tests for module 'unistr/u32-check'.
4658         * modules/unistr/u32-check-tests: New file.
4659         * tests/unistr/test-u32-check.c: New file.
4660
4661         Tests for module 'unistr/u16-check'.
4662         * modules/unistr/u16-check-tests: New file.
4663         * tests/unistr/test-u16-check.c: New file.
4664
4665         Tests for module 'unistr/u8-check'.
4666         * modules/unistr/u8-check-tests: New file.
4667         * tests/unistr/test-u8-check.c: New file.
4668
4669         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4670         (category_equals): New function.
4671         (main): Add more tests.
4672         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4673
4674         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4675
4676 2010-01-10  Bruno Haible  <bruno@clisp.org>
4677
4678         unistr/u*-strcoll: Try harder to distinguish different strings.
4679         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4680         compare s1 and s2 to see if they are different.
4681
4682 2010-01-10  Bruno Haible  <bruno@clisp.org>
4683
4684         unistr/u*-stpncpy: Fix the return value.
4685         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4686         description of the return value consistent with stpncpy in glibc.
4687         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4688         written non-NUL unit.
4689
4690 2010-01-10  Bruno Haible  <bruno@clisp.org>
4691
4692         unistr/u*-next: Add missing dependencies.
4693         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4694         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4695         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4696
4697 2010-01-10  Bruno Haible  <bruno@clisp.org>
4698
4699         unistr/u8-mbsnlen: Fix return value for incomplete character.
4700         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4701         u8_mblen.
4702         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4703         Remove unistr/u8-mblen.
4704         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4705         u16_mblen.
4706         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4707         Remove unistr/u16-mblen.
4708
4709 2010-01-10  Bruno Haible  <bruno@clisp.org>
4710
4711         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4712         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4713         Reported by Brian Gough <bjg@gnu.org> and
4714         Chris Clayton <chris2553@googlemail.com> via
4715         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4716
4717 2010-01-09  Bruno Haible  <bruno@clisp.org>
4718
4719         unistr/u16-to-u32: Reject invalid input.
4720         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4721         u16_mbtouc.
4722         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4723         Remove unistr/u16-mbtouc.
4724
4725         unistr/u16-to-u8: Reject invalid input.
4726         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4727         u16_mbtouc.
4728         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4729         Remove unistr/u16-mbtouc.
4730
4731         unistr/u8-to-u32: Reject invalid input.
4732         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4733         u8_mbtouc.
4734         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4735         Remove unistr/u8-mbtouc.
4736
4737         unistr/u8-to-u16: Reject invalid input.
4738         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4739         u8_mbtouc.
4740         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4741         Remove unistr/u8-mbtouc.
4742
4743 2010-01-09  Bruno Haible  <bruno@clisp.org>
4744
4745         Tests for module 'getlogin'.
4746         * modules/getlogin-tests: New file.
4747         * tests/test-getlogin.c: New file.
4748
4749         New module 'getlogin'.
4750         * lib/unistd.in.h (getlogin): New declaration.
4751         * lib/getlogin.c: New file.
4752         * m4/getlogin.m4: New file.
4753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4754         HAVE_GETLOGIN.
4755         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4756         HAVE_GETLOGIN.
4757         * modules/getlogin: New file.
4758         * doc/posix-functions/getlogin.texi: Mention the new module.
4759         Reported by John W. Eaton <jwe@gnu.org>.
4760
4761 2010-01-09  Bruno Haible  <bruno@clisp.org>
4762
4763         getlogin_r: Support for native Windows.
4764         * lib/getlogin_r.c: Include <windows.h>
4765         (getlogin_r): Implement for native Windows.
4766         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4767         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4768         via John W. Eaton <jwe@gnu.org>.
4769
4770 2010-01-09  Bruno Haible  <bruno@clisp.org>
4771
4772         getlogin_r: Small fixes.
4773         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4774         succeeds.
4775         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4776         before testing whether getlogin_r is declared. No need to set
4777         HAVE_DECL_GETLOGIN_R to 1.
4778         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4779
4780 2010-01-09  Bruno Haible  <bruno@clisp.org>
4781
4782         * lib/unistd.in.h (getlogin_r): Add comment.
4783
4784 2010-01-09  Bruno Haible  <bruno@clisp.org>
4785
4786         Tests for module 'getlogin_r'.
4787         * modules/getlogin_r-tests: New file.
4788         * tests/test-getlogin_r.c: New file.
4789
4790 2010-01-09  Jim Meyering  <meyering@redhat.com>
4791
4792         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4793         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4794         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4795
4796 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4797
4798         * lib/dup2.c (rpl_dup2): Improve comment.
4799
4800 2010-01-08  Eric Blake  <ebb9@byu.net>
4801
4802         maint.mk: allow packages to add makefile @@ exceptions
4803         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4804         (sc_makefile_check): Rename...
4805         (sc_makefile_at_at_check): ...to this, and use hook.
4806
4807         dup2: work around mingw bug
4808         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4809         Reported by Simon Josefsson.
4810
4811 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4812
4813         glob: Fix C++ compilation.
4814         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4815         C++.
4816
4817 2010-01-07  Bruno Haible  <bruno@clisp.org>
4818
4819         Fix indentation of wctype.in.h, broken since 2007-01-06.
4820         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4821
4822 2010-01-07  Bruno Haible  <bruno@clisp.org>
4823
4824         mbslen: Avoid collision with system function.
4825         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4826         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4827         * m4/mbslen.m4: New file.
4828         * modules/mbslen (Files): Add it.
4829         (configure.ac): Invoke gl_MBSLEN.
4830         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4831         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4832         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4833         via Ian Beckwith <ianb@erislabs.net>.
4834
4835 2010-01-07  Bruno Haible  <bruno@clisp.org>
4836
4837         dirent: Document the last fix.
4838         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4839
4840 2010-01-07  Bruno Haible  <bruno@clisp.org>
4841
4842         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4843         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4844         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4845         va_list are defined.
4846         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4847         Reported by Eric Blake.
4848
4849 2010-01-07  Bruno Haible  <bruno@clisp.org>
4850
4851         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4852         * modules/xlist (Depends-on): Add 'list',
4853         * modules/xoset (Depends-on): Add 'oset'.
4854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4855
4856 2010-01-07  Bruno Haible  <bruno@clisp.org>
4857
4858         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4859         * doc/posix-functions/strncasecmp.texi: Likewise.
4860
4861 2010-01-07  Bruno Haible  <bruno@clisp.org>
4862
4863         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4864
4865 2010-01-07  John W. Eaton  <jwe@octave.org>
4866
4867         wctype: allow C++ use
4868         * lib/wctype.in.h: Add extern "C" block for C++.
4869
4870 2010-01-06  Eric Blake  <ebb9@byu.net>
4871
4872         maint.mk: detect incorrect GFDL usage
4873         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4874
4875 2010-01-06  Jim Meyering  <meyering@redhat.com>
4876         and Eric Blake  <ebb9@byu.net>
4877
4878         maint.mk: ignore multi-line copyright in NEWS
4879         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4880
4881 2010-01-06  Eric Blake  <ebb9@byu.net>
4882
4883         select: add missing dependency
4884         * modules/select-tests (Depends-on): Move sockets dependency...
4885         * modules/select (Depends-on): ...here.
4886         Reported by Ian Beckwith.
4887
4888         doc: regenerate INSTALL
4889         * doc/INSTALL: Reflect recent autoconf update.
4890         * doc/INSTALL.ISO: Likewise.
4891         * doc/INSTALL.UTF-8: Likewise.
4892
4893         pread: fix compilation on glibc
4894         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4895         Reported by Ralf Wildenhues.
4896
4897         dirent: fix test failure
4898         * lib/dirent.in.h (includes): Guarantee ino_t.
4899         Reported by Ralf Wildenhues.
4900
4901 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4902
4903         linkat, renameat: avoid bad free
4904         * lib/at-func2.c (at_func2): Fix typo.
4905         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4906
4907 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4908
4909         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4910         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4911         to avoid failure of symlink test later.
4912
4913 2010-01-06  Eric Blake  <ebb9@byu.net>
4914
4915         stdio, unistd: guarantee ssize_t
4916         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4917         2008 are exposed when needed.
4918         * lib/stdio.in.h (includes): Likewise.
4919         Reported by Ralf Wildenhues.
4920
4921 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4922
4923         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4924         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4925         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4926
4927 2010-01-06  Jim Meyering  <meyering@redhat.com>
4928
4929         readtokens: this module *does* require xalloc.h
4930         It uses only functions that were omitted by the old syntax-check rule.
4931         * lib/readtokens.c: Include "xalloc.h" once again.
4932         * modules/readtokens (Depends-on): Add xalloc.
4933         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4934
4935 2010-01-05  Eric Blake  <ebb9@byu.net>
4936
4937         maint: support 'make announcement' from a VPATH build
4938         * top/maint.mk (announcement): Look for correct NEWS file.
4939
4940 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4941
4942         utimens (fdutimens): ignore a negative FD, per contract
4943         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4944         when we have a valid file descriptor.  Otherwise, using a brand
4945         new glibc (with just-patched futimens that now fails with EBADF)
4946         would cause this function to fail with ENOSYS.
4947         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4948         See also http://bugzilla.redhat.com/552320.
4949
4950 2010-01-05  Eric Blake  <ebb9@byu.net>
4951
4952         strcase: document what it provides
4953         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4954         gnulib module.
4955         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4956         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4957
4958 2010-01-05  Jim Meyering  <meyering@redhat.com>
4959
4960         maint: remove useless inclusions of "xalloc.h"
4961         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4962         * lib/readtokens.c: Likewise.
4963         * lib/same.c: Likewise.
4964         * modules/getloadavg (Depends-on): Remove xalloc.
4965         * modules/readtokens: Likewise.
4966         * modules/same: Likewise.
4967
4968         maint.mk: include 4 more function names in alloca.h-checking regexp
4969         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4970         regexp.  Before, we would give a false-positive (saying alloca.h
4971         is included unnecessarily) when the only uses involved omitted symbols.
4972
4973         xalloc.h: use consistent formatting
4974         * lib/xalloc.h: Move declarations to start in the first column.
4975
4976 2010-01-05  Eric Blake  <ebb9@byu.net>
4977
4978         mkdir: avoid xalloc
4979         * lib/mkdir.c (includes): Drop unused header.
4980         Reported by John W. Eaton.
4981
4982 2010-01-04  Jim Meyering  <meyering@redhat.com>
4983
4984         nl_langinfo: avoid configure-time syntax error
4985         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4986         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4987         the empty string.  Don't let that provoke a shell syntax error.
4988
4989         regcomp, regexec, fnmatch: avoid array bounds read error
4990         * lib/regcomp.c (build_equiv_class): From glibc:
4991         Use only the low 24 bits of a findidx return value as an index
4992         into the weights array.  Patch by Ulrich Drepper:
4993         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4994         * lib/regexec.c (check_node_accept_bytes): Likewise.
4995         * lib/fnmatch_loop.c (FCT): Likewise.
4996
4997         regcomp: skip collseq lookup when there are no rules
4998         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4999         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
5000
5001         regcomp: recognize ill-formed { } expressions
5002         * lib/regcomp.c (parse_dup_op): From glibc:
5003         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
5004
5005         regcomp: fix typo in comment
5006         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
5007         s/satisfy/satisfies/.
5008
5009         regcomp: sync from glibc: remove dead store
5010         * lib/regcomp.c (duplicate_node_closure): Remove useless
5011         search_duplicated_node call and dead store.
5012
5013         regcomp: sync from glibc; always use nl_langinfo
5014         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
5015         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
5016         * modules/regex (Depends-on): Add nl_langinfo.
5017
5018 2010-01-04  Eric Blake  <ebb9@byu.net>
5019
5020         fdopendir: fix configure test
5021         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
5022
5023 2010-01-01  Bruno Haible  <bruno@clisp.org>
5024
5025         wchar: Remove unused configure check.
5026         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
5027
5028 2010-01-01  Eric Blake  <ebb9@byu.net>
5029
5030         headers: make check of system header explicit
5031         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
5032         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
5033         ourselves.
5034         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5035         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5036         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
5037         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
5038         internals.
5039         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
5040         missing.
5041         Suggested by Bruno Haible.
5042
5043 2010-01-01  Jim Meyering  <meyering@redhat.com>
5044
5045         ChangeLog: tweak to eliminate unnecessary copyright line
5046         * ChangeLog: Remove a copyright line that was mistakenly updated
5047         by today's update-copyright run.  Reported by Eric Blake.
5048
5049         test-update-copyright: don't let envvar setting cause test failure
5050         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5051
5052 2010-01-01  Bruno Haible  <bruno@clisp.org>
5053
5054         localename: Avoid gcc warning.
5055         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
5056         function if it is not used.
5057
5058 2010-01-01  Jim Meyering  <meyering@redhat.com>
5059
5060         update nearly all FSF copyright year lists to include 2010
5061         Use the same procedure as for 2009, outlined in
5062         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
5063
5064         version-etc: set COPYRIGHT_YEAR to 2010
5065         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
5066
5067 2009-12-31  Eric Blake  <ebb9@byu.net>
5068
5069         doc: correct availability of cygwin 1.5.x getopt
5070         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
5071         variables.
5072         * doc/posix-functions/opterr.texi (opterr): Likewise.
5073         * doc/posix-functions/optind.texi (optind): Likewise.
5074         * doc/posix-functions/optopt.texi (optopt): Likewise.
5075         * doc/posix-functions/tzname.texi (tzname): Likewise.
5076
5077         openat: update maintainer
5078         * modules/openat (Maintainer): Add myself.
5079
5080         utimens: avoid shadowing warning
5081         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
5082         buffers into one, to avoid shadowing, as well as avoiding a
5083         redundant stat.
5084         Reported by Jim Meyering.
5085
5086         test-dup2: avoid compiler warning
5087         * tests/test-dup2.c (is_inheritable): Only define if used.
5088
5089 2010-01-01  Bruno Haible  <bruno@clisp.org>
5090
5091         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
5092         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
5093         defined, use wctomb instead of wcrtomb.
5094
5095 2010-01-01  Bruno Haible  <bruno@clisp.org>
5096
5097         iconv: Reject native Solaris iconv.
5098         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
5099         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
5100
5101 2009-12-31  Bruno Haible  <bruno@clisp.org>
5102
5103         * tests/test-signal.c (main): Remove test of 'SIG'.
5104
5105 2009-12-31  Bruno Haible  <bruno@clisp.org>
5106
5107         spawn: Fix incomplete fix.
5108         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
5109         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
5110         warnings for GNULIB_POSIXCHECK again.
5111         Reported by Eric Blake.
5112
5113 2009-12-31  Bruno Haible  <bruno@clisp.org>
5114
5115         Avoid namespace pollution on glibc systems.
5116         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
5117         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
5118         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
5119         glibc systems.
5120
5121 2009-12-31  Bruno Haible  <bruno@clisp.org>
5122
5123         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
5124         (gl_REPLACE_WCHAR_H): Turn into a no-op.
5125         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
5126         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5127         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5128         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5129         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5130
5131 2009-12-31  Bruno Haible  <bruno@clisp.org>
5132
5133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5134         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
5135         afterwards.
5136
5137 2009-12-31  Bruno Haible  <bruno@clisp.org>
5138
5139         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
5140         SYS_UTSNAME_H.
5141
5142 2009-12-31  Bruno Haible  <bruno@clisp.org>
5143
5144         spawn: Fix misapplied patch.
5145         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
5146         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
5147         warnings for GNULIB_POSIXCHECK.
5148
5149 2009-12-31  Bruno Haible  <bruno@clisp.org>
5150
5151         times: Update after sys_times changed.
5152         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
5153         * modules/times (Files): Add it.
5154         (configure.ac): Invoke gl_FUNC_TIMES.
5155
5156 2009-12-31  Bruno Haible  <bruno@clisp.org>
5157
5158         Use AC_C_INLINE where necessary.
5159         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
5160         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
5161         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
5162         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
5163         * m4/mbfile.m4 (gl_MBFILE): Likewise.
5164         * m4/mbiter.m4 (gl_MBITER): Likewise.
5165         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5166         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5167         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
5168         * modules/u64 (configure.ac): Likewise.
5169
5170 2009-12-31  Bruno Haible  <bruno@clisp.org>
5171
5172         Use AC_C_INLINE instead of module 'inline' where possible.
5173         * modules/inline (Description): Clarify purpose.
5174         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
5175         * modules/count-one-bits (Depends-on): Remove inline.
5176         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
5177         * modules/openat (Depends-on): Remove inline.
5178         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
5179         instead of depending on module 'inline'.
5180         * modules/filevercmp (Depends-on, configure.ac): Likewise.
5181         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
5182         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
5183         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
5184         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
5185         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
5186         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
5187         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
5188         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
5189         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
5190         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
5191         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
5192         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
5193         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
5194         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
5195         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
5196         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
5197         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
5198         Likewise.
5199         * modules/unictype/property-ascii-hex-digit (Depends-on,
5200         configure.ac): Likewise.
5201         * modules/unictype/property-bidi-arabic-digit (Depends-on,
5202         configure.ac): Likewise.
5203         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
5204         configure.ac): Likewise.
5205         * modules/unictype/property-bidi-block-separator (Depends-on,
5206         configure.ac): Likewise.
5207         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
5208         configure.ac): Likewise.
5209         * modules/unictype/property-bidi-common-separator (Depends-on,
5210         configure.ac): Likewise.
5211         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
5212         Likewise.
5213         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
5214         configure.ac): Likewise.
5215         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
5216         configure.ac): Likewise.
5217         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
5218         configure.ac): Likewise.
5219         * modules/unictype/property-bidi-european-digit (Depends-on,
5220         configure.ac): Likewise.
5221         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
5222         configure.ac): Likewise.
5223         * modules/unictype/property-bidi-left-to-right (Depends-on,
5224         configure.ac): Likewise.
5225         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
5226         configure.ac): Likewise.
5227         * modules/unictype/property-bidi-other-neutral (Depends-on,
5228         configure.ac): Likewise.
5229         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
5230         Likewise.
5231         * modules/unictype/property-bidi-segment-separator (Depends-on,
5232         configure.ac): Likewise.
5233         * modules/unictype/property-bidi-whitespace (Depends-on,
5234         configure.ac): Likewise.
5235         * modules/unictype/property-combining (Depends-on, configure.ac):
5236         Likewise.
5237         * modules/unictype/property-composite (Depends-on, configure.ac):
5238         Likewise.
5239         * modules/unictype/property-currency-symbol (Depends-on,
5240         configure.ac): Likewise.
5241         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
5242         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
5243         Likewise.
5244         * modules/unictype/property-default-ignorable-code-point (Depends-on,
5245         configure.ac): Likewise.
5246         * modules/unictype/property-deprecated (Depends-on, configure.ac):
5247         Likewise.
5248         * modules/unictype/property-diacritic (Depends-on, configure.ac):
5249         Likewise.
5250         * modules/unictype/property-extender (Depends-on, configure.ac):
5251         Likewise.
5252         * modules/unictype/property-format-control (Depends-on, configure.ac):
5253         Likewise.
5254         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
5255         Likewise.
5256         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
5257         Likewise.
5258         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
5259         Likewise.
5260         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
5261         Likewise.
5262         * modules/unictype/property-hyphen (Depends-on, configure.ac):
5263         Likewise.
5264         * modules/unictype/property-id-continue (Depends-on, configure.ac):
5265         Likewise.
5266         * modules/unictype/property-id-start (Depends-on, configure.ac):
5267         Likewise.
5268         * modules/unictype/property-ideographic (Depends-on, configure.ac):
5269         Likewise.
5270         * modules/unictype/property-ids-binary-operator (Depends-on,
5271         configure.ac): Likewise.
5272         * modules/unictype/property-ids-trinary-operator (Depends-on,
5273         configure.ac): Likewise.
5274         * modules/unictype/property-ignorable-control (Depends-on,
5275         configure.ac): Likewise.
5276         * modules/unictype/property-iso-control (Depends-on, configure.ac):
5277         Likewise.
5278         * modules/unictype/property-join-control (Depends-on, configure.ac):
5279         Likewise.
5280         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
5281         Likewise.
5282         * modules/unictype/property-line-separator (Depends-on, configure.ac):
5283         Likewise.
5284         * modules/unictype/property-logical-order-exception (Depends-on,
5285         configure.ac): Likewise.
5286         * modules/unictype/property-lowercase (Depends-on, configure.ac):
5287         Likewise.
5288         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
5289         * modules/unictype/property-non-break (Depends-on, configure.ac):
5290         Likewise.
5291         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
5292         Likewise.
5293         * modules/unictype/property-numeric (Depends-on, configure.ac):
5294         Likewise.
5295         * modules/unictype/property-other-alphabetic (Depends-on,
5296         configure.ac): Likewise.
5297         * modules/unictype/property-other-default-ignorable-code-point
5298         (Depends-on, configure.ac): Likewise.
5299         * modules/unictype/property-other-grapheme-extend (Depends-on,
5300         configure.ac): Likewise.
5301         * modules/unictype/property-other-id-continue (Depends-on,
5302         configure.ac): Likewise.
5303         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
5304         Likewise.
5305         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
5306         Likewise.
5307         * modules/unictype/property-other-math (Depends-on, configure.ac):
5308         Likewise.
5309         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
5310         Likewise.
5311         * modules/unictype/property-paired-punctuation (Depends-on,
5312         configure.ac): Likewise.
5313         * modules/unictype/property-paragraph-separator (Depends-on,
5314         configure.ac): Likewise.
5315         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
5316         Likewise.
5317         * modules/unictype/property-pattern-white-space (Depends-on,
5318         configure.ac): Likewise.
5319         * modules/unictype/property-private-use (Depends-on, configure.ac):
5320         Likewise.
5321         * modules/unictype/property-punctuation (Depends-on, configure.ac):
5322         Likewise.
5323         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
5324         Likewise.
5325         * modules/unictype/property-radical (Depends-on, configure.ac):
5326         Likewise.
5327         * modules/unictype/property-sentence-terminal (Depends-on,
5328         configure.ac): Likewise.
5329         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
5330         Likewise.
5331         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
5332         * modules/unictype/property-terminal-punctuation (Depends-on,
5333         configure.ac): Likewise.
5334         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5335         Likewise.
5336         * modules/unictype/property-unassigned-code-value (Depends-on,
5337         configure.ac): Likewise.
5338         * modules/unictype/property-unified-ideograph (Depends-on,
5339         configure.ac): Likewise.
5340         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5341         Likewise.
5342         * modules/unictype/property-variation-selector (Depends-on,
5343         configure.ac): Likewise.
5344         * modules/unictype/property-white-space (Depends-on, configure.ac):
5345         Likewise.
5346         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5347         Likewise.
5348         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5349         Likewise.
5350         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5351         Likewise.
5352         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5353         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5354         Likewise.
5355
5356 2009-12-31  Bruno Haible  <bruno@clisp.org>
5357
5358         Remove unnecessary AC_C_INLINE invocation.
5359         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5360         since 2009-08-21.
5361
5362 2009-12-31  Jim Meyering  <meyering@redhat.com>
5363
5364         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5365         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5366         With this change, we can all remove the gpg_key_ID = ... definition
5367         from our respective cfg.mk files.
5368
5369         maint.mk: create announcement template in ~/, not in /tmp
5370         * top/maint.mk (emit_upload_commands): Adjust.
5371         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5372         Remove temporary file, .ci-msg.
5373
5374 2009-12-31  Eric Blake  <ebb9@byu.net>
5375
5376         link-warning: always build headers with link warnings
5377         * modules/arpa_inet (Makefile.am): Always build replacement
5378         header.
5379         * modules/ctype (Makefile.am): Likewise.
5380         * modules/dirent (Makefile.am): Likewise.
5381         * modules/inttypes (Makefile.am): Likewise.
5382         * modules/langinfo (Makefile.am): Likewise.
5383         * modules/locale (Makefile.am): Likewise.
5384         * modules/spawn (Makefile.am): Likewise.
5385         * modules/sys_file (Makefile.am): Likewise.
5386         * modules/sys_ioctl (Makefile.am): Likewise.
5387         * modules/sys_select (Makefile.am): Likewise.
5388         * modules/sys_socket (Makefile.am): Likewise.
5389         * modules/sys_times (Makefile.am): Likewise.
5390         * modules/sys_utsname (Makefile.am): Likewise.
5391         * modules/sys_wait (Makefile.am): Likewise.
5392         * modules/wchar (Makefile.am): Likewise.
5393         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5394         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5395         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5396         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5397         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5398         Likewise.
5399         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5400         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5401         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5402         Likewise.
5403         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5404         Likewise.
5405         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5406         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5407         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5409         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5410         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5411         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5412         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5413         (gl_WCHAR_H_DEFAULTS): Likewise.
5414
5415 2009-12-31  Eric Blake  <ebb9@byu.net>
5416
5417         signal, spawn: use link warnings
5418         * lib/signal.in.h (sigset_t): Make unconditional.
5419         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5420         (sigpending, sigprocmask, sigaction): Add link warnings.
5421         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5422         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5423         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5424         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5425         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5426         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5427         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5428         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5429         (posix_spawn_file_actions_destroy)
5430         (posix_spawn_file_actions_addopen)
5431         (posix_spawn_file_actions_addclose)
5432         (posix_spawn_file_actions_adddup2): Likewise.
5433         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5434         * tests/test-signal.c (main): Enhance test.
5435
5436         spawn: improve wrapper support
5437         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5438         (gl_SPAWN_H_DEFAULTS): New defaults.
5439         * modules/spawn (Makefile.am): Substitute them.
5440         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5441         Only declare if missing or broken.
5442
5443         sys_times, sys_utsname: use include_next
5444         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5445         header.
5446         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5447         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5448         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5449         * modules/sys_times (Depends-on): Add include_next.
5450         (Makefile.am): Substitute additional values.
5451         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5452         * lib/sys_times.in.h (includes): Include native header, if
5453         available.
5454         * lib/sys_utsname.in.h (includes): Likewise.
5455         * tests/test-sys_times.c (main): Enhance test.
5456
5457         fdutimensat: revert prior patch
5458         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5459         utimens.h.
5460         Reported by Bruno Haible.
5461
5462 2009-12-30  Eric Blake  <ebb9@byu.net>
5463
5464         sys_wait: drop link-warning dependency
5465         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5466         link-warning efforts.
5467         * lib/sys_wait.in.h: Likewise.
5468
5469         fdutimensat: remove bogus dependency
5470         * modules/fdutimensat (Depends-on): Drop inline.
5471
5472         unistd: fix typo
5473         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5474
5475 2009-12-30  Bruno Haible  <bruno@clisp.org>
5476
5477         Fix compilation error with Solaris cc.
5478         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5479         * lib/unicase/u16-is-invariant.c: Likewise.
5480         * lib/unicase/u32-is-invariant.c: Likewise.
5481         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5482
5483 2009-12-30  Bruno Haible  <bruno@clisp.org>
5484
5485         Fix test crash.
5486         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5487         locales.
5488         Reported by Simon Josefsson <simon@josefsson.org>.
5489
5490 2009-12-30  Bruno Haible  <bruno@clisp.org>
5491
5492         Fix compilation error on most platforms.
5493         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5494         Reported by Simon Josefsson <simon@josefsson.org>
5495         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5496
5497 2009-12-30  Eric Blake  <ebb9@byu.net>
5498
5499         futimens, utimensat: work around ntfs-3g bug
5500         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5501         a ctime bug is present, and expand workaround to cover ntfs-3g.
5502         * lib/utimens.c (fdutimens, lutimens): Likewise.
5503         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5504         (validate_timespec): Adjust return value.
5505         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5506         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5507         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5508
5509 2009-12-29  Eric Blake  <ebb9@byu.net>
5510
5511         link-warning: make usage consistent
5512         * modules/ctype (Depends-on): Add link-warning.
5513         (Makefile.am): Update rules accordingly.
5514         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5515         * modules/locale (Depends-on, Makefile.am): Likewise.
5516         * modules/sys_file (Makefile.am): Likewise.
5517         * modules/getopt-posix (Makefile.am): Delete unused link warning
5518         efforts.
5519         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5520         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5521         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5522         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5523
5524         stdio: remove unused variables
5525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5526         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5527         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5528
5529         tests: test more substitute headers
5530         * modules/ctype-tests: New file.
5531         * modules/dirent-tests: Likewise.
5532         * modules/spawn-tests: Likewise.
5533         * modules/sys_file-tests: Likewise.
5534         * modules/sys_ioctl-tests: Likewise.
5535         * modules/sys_wait-tests: Likewise.
5536         * tests/test-ctype.c: Likewise.
5537         * tests/test-dirent.c: Likewise.
5538         * tests/test-spawn.c: Likewise.
5539         * tests/test-sys_file.c: Likewise.
5540         * tests/test-sys_ioctl.c: Likewise.
5541         * tests/test-sys_wait.c: Likewise.
5542         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5543         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5544         whether or not flock is in use.
5545
5546         tests: remove License section from module
5547         * modules/arpa_inet-tests: Remove unneeded section.
5548         * modules/byteswap-tests: Likewise.
5549         * modules/ceilf-tests: Likewise.
5550         * modules/ceill-tests: Likewise.
5551         * modules/crypto/des-tests: Likewise.
5552         * modules/crypto/gc-arcfour-tests: Likewise.
5553         * modules/crypto/gc-arctwo-tests: Likewise.
5554         * modules/crypto/gc-des-tests: Likewise.
5555         * modules/crypto/gc-hmac-md5-tests: Likewise.
5556         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5557         * modules/crypto/gc-md2-tests: Likewise.
5558         * modules/crypto/gc-md4-tests: Likewise.
5559         * modules/crypto/gc-md5-tests: Likewise.
5560         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5561         * modules/crypto/gc-rijndael-tests: Likewise.
5562         * modules/crypto/gc-sha1-tests: Likewise.
5563         * modules/crypto/gc-tests: Likewise.
5564         * modules/crypto/md2-tests: Likewise.
5565         * modules/crypto/md4-tests: Likewise.
5566         * modules/fcntl-h-tests: Likewise.
5567         * modules/floorf-tests: Likewise.
5568         * modules/floorl-tests: Likewise.
5569         * modules/frexp-nolibm-tests: Likewise.
5570         * modules/frexp-tests: Likewise.
5571         * modules/frexpl-nolibm-tests: Likewise.
5572         * modules/frexpl-tests: Likewise.
5573         * modules/getaddrinfo-tests: Likewise.
5574         * modules/inttypes-tests: Likewise.
5575         * modules/isfinite-tests: Likewise.
5576         * modules/isinf-tests: Likewise.
5577         * modules/ldexpl-tests: Likewise.
5578         * modules/locale-tests: Likewise.
5579         * modules/math-tests: Likewise.
5580         * modules/netdb-tests: Likewise.
5581         * modules/netinet_in-tests: Likewise.
5582         * modules/printf-frexp-tests: Likewise.
5583         * modules/printf-frexpl-tests: Likewise.
5584         * modules/priv-set-tests: Likewise.
5585         * modules/random_r-tests: Likewise.
5586         * modules/round-tests: Likewise.
5587         * modules/roundf-tests: Likewise.
5588         * modules/roundl-tests: Likewise.
5589         * modules/search-tests: Likewise.
5590         * modules/select-tests: Likewise.
5591         * modules/signal-tests: Likewise.
5592         * modules/stdbool-tests: Likewise.
5593         * modules/stddef-tests: Likewise.
5594         * modules/stdint-tests: Likewise.
5595         * modules/stdio-tests: Likewise.
5596         * modules/stdlib-tests: Likewise.
5597         * modules/string-tests: Likewise.
5598         * modules/strings-tests: Likewise.
5599         * modules/sys_select-tests: Likewise.
5600         * modules/sys_socket-tests: Likewise.
5601         * modules/sys_stat-tests: Likewise.
5602         * modules/sys_time-tests: Likewise.
5603         * modules/sys_utsname-tests: Likewise.
5604         * modules/sysexits-tests: Likewise.
5605         * modules/time-tests: Likewise.
5606         * modules/trunc-tests: Likewise.
5607         * modules/truncf-tests: Likewise.
5608         * modules/truncl-tests: Likewise.
5609         * modules/tsearch-tests: Likewise.
5610         * modules/unistd-tests: Likewise.
5611         * modules/wchar-tests: Likewise.
5612         * modules/wctype-tests: Likewise.
5613
5614         tests: fix license on several tests
5615         * tests/test-des.c: Update to GPLv3+.
5616         * tests/test-flock.c: Likewise.
5617         * tests/test-fsync.c: Likewise.
5618         * tests/test-futimens.h: Likewise.
5619         * tests/test-gc-arcfour.c: Likewise.
5620         * tests/test-gc-arctwo.c: Likewise.
5621         * tests/test-gc-des.c: Likewise.
5622         * tests/test-gc-hmac-md5.c: Likewise.
5623         * tests/test-gc-hmac-sha1.c: Likewise.
5624         * tests/test-gc-md2.c: Likewise.
5625         * tests/test-gc-md4.c: Likewise.
5626         * tests/test-gc-md5.c: Likewise.
5627         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5628         * tests/test-gc-rijndael.c: Likewise.
5629         * tests/test-gc-sha1.c: Likewise.
5630         * tests/test-gc.c: Likewise.
5631         * tests/test-getcwd.c: Likewise.
5632         * tests/test-link.c: Likewise.
5633         * tests/test-link.h: Likewise.
5634         * tests/test-lutimens.h: Likewise.
5635         * tests/test-md2.c: Likewise.
5636         * tests/test-md4.c: Likewise.
5637         * tests/test-mkdir.h: Likewise.
5638         * tests/test-rename.c: Likewise.
5639         * tests/test-rename.h: Likewise.
5640         * tests/test-safe-alloc.c: Likewise.
5641         * tests/test-utimens-common.h: Likewise.
5642         * tests/test-utimens.h: Likewise.
5643
5644         maint: sync license texts
5645         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5646         * doc/gpl-3.0.texi: Revert copyright year update.
5647         * doc/lgpl-3.0.texi: Likewise.
5648
5649 2009-12-29  Jim Meyering  <meyering@redhat.com>
5650
5651         update nearly all FSF copyright year lists to include 2009
5652         The files named by the following are exempted:
5653             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5654               test -f "$dst" && { echo "$dst"; continue; }
5655               test -d "$dst" || continue
5656               echo "$dst"/$(basename "$src")
5657             done > exempt
5658             git ls-files tests/unictype >> exempt
5659         In the remaining files, convert to all-interval notation if
5660         - there is already at least one year interval like 2000-2003
5661         - the file is maintained by me
5662         - the file is in lib/uni*/, where that style already prevails
5663         Otherwise, use update-copyright's default.
5664
5665 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5666         and Eric Blake  <ebb9@byu.net>
5667
5668         tests: don't require debug system() to pass
5669         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5670         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5671         * tests/test-unlink.h (test_unlink_func): Likewise.
5672         * tests/test-fstatat.c (main): ...into callers.
5673         * tests/test-lstat.c (main): Likewise.
5674         * tests/test-rmdir.c (main): Likewise.
5675         * tests/test-unlink.c (main): Likewise.
5676         * tests/test-unlinkat.c (main): Likewise.
5677         * tests/test-areadlink-with-size.c (main): Don't require a
5678         debug-only system call to pass, aiding cross-testing to mingw.
5679         * tests/test-areadlink.c (main): Likewise.
5680         * tests/test-areadlinkat-with-size.c (main): Likewise.
5681         * tests/test-areadlinkat.c (main): Likewise.
5682         * tests/test-canonicalize-lgpl.c (main): Likewise.
5683         * tests/test-canonicalize.c (main): Likewise.
5684         * tests/test-chown.c (main): Likewise.
5685         * tests/test-fchownat.c (main): Likewise.
5686         * tests/test-lchown.c (main): Likewise.
5687         * tests/test-fdutimensat.c (main): Likewise.
5688         * tests/test-futimens.c (main): Likewise.
5689         * tests/test-link.c (main): Likewise.
5690         * tests/test-linkat.c (main): Likewise.
5691         * tests/test-mkdir.c (main): Likewise.
5692         * tests/test-mkdirat.c (main): Likewise.
5693         * tests/test-mkfifo.c (main): Likewise.
5694         * tests/test-mkfifoat.c (main): Likewise.
5695         * tests/test-mknod.c (main): Likewise.
5696         * tests/test-readlink.c (main): Likewise.
5697         * tests/test-remove.c (main): Likewise.
5698         * tests/test-rename.c (main): Likewise.
5699         * tests/test-renameat.c (main): Likewise.
5700         * tests/test-symlink.c (main): Likewise.
5701         * tests/test-symlinkat.c (main): Likewise.
5702         * tests/test-utimens.c (main): Likewise.
5703         * tests/test-utimensat.c (main): Likewise.
5704
5705 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5706
5707         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5708         on $(UNUSED_PARAMETER_H) to avoid build failure.
5709
5710 2009-12-28  Jim Meyering  <meyering@redhat.com>
5711
5712         update-copyright: you may specify a max. line length other than 72
5713         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5714
5715         maint: use consistent FSF copyright line syntax
5716         * lib/posixtm.c: Add missing comma in FSF copyright line.
5717         * lib/posixtm.h: Likewise.
5718         * lib/getugroups.c: Add missing ", Inc.".
5719
5720         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5721         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5722         FSF copyright line.  Remove trailing blanks.
5723
5724 2009-12-28  Eric Blake  <ebb9@byu.net>
5725
5726         test-dup2: reduce dependencies
5727         * modules/cloexec (Configure.ac): Set witness.
5728         * modules/dup2-tests (Depends-on): Drop cloexec.
5729         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5730         not present.
5731         Suggested by Bruno Haible.
5732
5733 2009-12-26  Bruno Haible  <bruno@clisp.org>
5734
5735         Remove an unneeded dependency.
5736         * modules/fseterr (Depends-on): Remove dup2.
5737
5738 2009-12-26  Eric Blake  <ebb9@byu.net>
5739
5740         tests: use macros.h in more places
5741         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5742         (ASSERT_STREAM): Provide default of stderr.
5743         * tests/test-dirent-safer.c: Include macros.h, using alternate
5744         stream for assertions.
5745         * tests/test-dup-safer.c: Likewise.
5746         * tests/test-freopen-safer.c: Likewise.
5747         * tests/test-getopt.c: Likewise.
5748         * tests/test-openat-safer.c: Likewise.
5749         * tests/test-pipe.c: Likewise.
5750         * tests/test-popen-safer.c: Likewise.
5751         * modules/dirent-safer-tests (Files): Include macros.h.
5752         * modules/unistd-safer-tests (Files): Likewise.
5753         * modules/freopen-safer-tests (Files): Likewise.
5754         * modules/getopt-posix-tests (Files): Likewise.
5755         * modules/openat-safer-tests (Files): Likewise.
5756         * modules/pipe-tests (Files): Likewise.
5757
5758 2009-12-26  Bruno Haible  <bruno@clisp.org>
5759
5760         javacomp: Portability fix.
5761         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5762         that it also works on Solaris.
5763
5764 2009-12-26  Bruno Haible  <bruno@clisp.org>
5765
5766         localename: Fix storage allocation of gl_locale_name_thread's result.
5767         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5768         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5769         all platforms that have 'uselocale'.
5770         (gl_locale_name_thread_unsafe): New function, extracted from
5771         gl_locale_name_thread.
5772         (gl_locale_name_thread): Call struniq on all platforms that have
5773         'uselocale'.
5774         * tests/test-localename.c (test_locale_name_thread): Check that the
5775         resulting strings are permanently allocated.
5776         * modules/localename-tests (Depends-on): Add strdup.
5777
5778 2009-12-26  Bruno Haible  <bruno@clisp.org>
5779
5780         * tests/test-localename.c (categories): Fill in the strings.
5781
5782 2009-12-26  Jim Meyering  <meyering@redhat.com>
5783
5784         isdir: complete the removal of m4/isdir.m4
5785         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5786
5787         isdir: clean up, since at least grep still uses it
5788         * lib/isdir.c: Include "isdir.h".
5789         (S_ISDIR): Remove now-unneeded definition.
5790         * modules/isdir (Files): Add lib/isdir.h.
5791         * lib/isdir.h: New file, with declaration.
5792         * m4/isdir.m4: Remove file -- unneeded.
5793
5794 2009-12-25  Bruno Haible  <bruno@clisp.org>
5795
5796         selinux-h: Make generated .h files standalone.
5797         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5798         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5799         * lib/se-selinux.in.h: Likewise.
5800         * modules/selinux-h (Depends-on): Add unused-parameter.
5801         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5802         selinux/selinux.h and selinux/context.h.
5803         Suggested by Eric Blake.
5804
5805 2009-12-25  Bruno Haible  <bruno@clisp.org>
5806
5807         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5808         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5809         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5810         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5811         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5812
5813 2009-12-24  Bruno Haible  <bruno@clisp.org>
5814
5815         openat: Fix warning.
5816         * lib/openat-proc.c: Include <unistd.h>.
5817
5818 2009-12-24  Bruno Haible  <bruno@clisp.org>
5819
5820         New module 'unused-parameter'.
5821         * build-aux/unused-parameter.h: New file, extracted from earlier
5822         gnulib-common.m4.
5823         * modules/unused-parameter: New file.
5824         * lib/unistr.h: Include unused-parameter.h.
5825         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5826         _GL_UNUSED.
5827         * modules/unistr/base (Depends-on): Add unused-parameter.
5828
5829 2009-12-24  Bruno Haible  <bruno@clisp.org>
5830
5831         Add missing dependencies to 'extensions' module.
5832         * m4/extensions.m4: Add comment.
5833         * modules/accept4 (Depends-on): Add extensions.
5834         * modules/dup3 (Depends-on): Likewise.
5835         * modules/fcntl (Depends-on): Likewise.
5836         * modules/futimens (Depends-on): Likewise.
5837         * modules/mknod (Depends-on): Likewise.
5838         * modules/pipe2 (Depends-on): Likewise.
5839         * modules/stat-time (Depends-on): Likewise.
5840         * modules/strcasestr-simple (Depends-on): Likewise.
5841         * modules/strsignal (Depends-on): Likewise.
5842         * modules/utimensat (Depends-on): Likewise.
5843         * modules/localcharset (Depends-on): Likewise. Needed because of
5844         gl_FCNTL_O_FLAGS.
5845         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5846         AC_TYPE_MBSTATE_T.
5847         * modules/wcsnrtombs (Depends-on): Likewise.
5848         * modules/wcsrtombs (Depends-on): Likewise.
5849
5850 2009-12-24  Bruno Haible  <bruno@clisp.org>
5851
5852         binary-io: Avoid gcc warning due to SET_BINARY.
5853         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5854         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5855
5856 2009-12-24  Bruno Haible  <bruno@clisp.org>
5857
5858         Avoid future namespace pollution on glibc systems.
5859         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5860         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5861         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5862         glibc systems.
5863
5864 2009-12-24  Bruno Haible  <bruno@clisp.org>
5865
5866         Refactor common macros used in tests.
5867         * tests/macros.h: New file.
5868         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5869         and/or <stdlib.h>, if appropriate.
5870         (ASSERT, SIZEOF): Remove macros.
5871         * tests/test-areadlink-with-size.c: Likewise.
5872         * tests/test-areadlinkat.c: Likewise.
5873         * tests/test-areadlinkat-with-size.c: Likewise.
5874         * tests/test-argmatch.c: Likewise.
5875         * tests/test-argv-iter.c: Likewise.
5876         * tests/test-array-mergesort.c: Likewise.
5877         * tests/test-array_list.c: Likewise.
5878         * tests/test-array_oset.c: Likewise.
5879         * tests/test-avltree_list.c: Likewise.
5880         * tests/test-avltree_oset.c: Likewise.
5881         * tests/test-avltreehash_list.c: Likewise.
5882         * tests/test-base64.c: Likewise.
5883         * tests/test-binary-io.c: Likewise.
5884         * tests/test-bitrotate.c: Likewise.
5885         * tests/test-btowc.c: Likewise.
5886         * tests/test-byteswap.c: Likewise.
5887         * tests/test-c-ctype.c: Likewise.
5888         * tests/test-c-stack.c: Likewise.
5889         * tests/test-c-strcasecmp.c: Likewise.
5890         * tests/test-c-strcasestr.c: Likewise.
5891         * tests/test-c-strncasecmp.c: Likewise.
5892         * tests/test-c-strstr.c: Likewise.
5893         * tests/test-canonicalize-lgpl.c: Likewise.
5894         * tests/test-canonicalize.c: Likewise.
5895         * tests/test-carray_list.c: Likewise.
5896         * tests/test-ceilf1.c: Likewise.
5897         * tests/test-ceilf2.c: Likewise.
5898         * tests/test-ceill.c: Likewise.
5899         * tests/test-chown.c: Likewise.
5900         * tests/test-cloexec.c: Likewise.
5901         * tests/test-copy-acl.c: Likewise.
5902         * tests/test-copy-file.c: Likewise.
5903         * tests/test-count-one-bits.c: Likewise.
5904         * tests/test-dprintf-posix.c: Likewise.
5905         * tests/test-dup2.c: Likewise.
5906         * tests/test-dup3.c: Likewise.
5907         * tests/test-duplocale.c: Likewise.
5908         * tests/test-fbufmode.c: Likewise.
5909         * tests/test-fchdir.c: Likewise.
5910         * tests/test-fchownat.c: Likewise.
5911         * tests/test-fcntl-safer.c: Likewise.
5912         * tests/test-fcntl.c: Likewise.
5913         * tests/test-fdopendir.c: Likewise.
5914         * tests/test-fdutimensat.c: Likewise.
5915         * tests/test-fflush2.c: Likewise.
5916         * tests/test-file-has-acl.c: Likewise.
5917         * tests/test-filevercmp.c: Likewise.
5918         * tests/test-flock.c: Likewise.
5919         * tests/test-floorf1.c: Likewise.
5920         * tests/test-floorf2.c: Likewise.
5921         * tests/test-floorl.c: Likewise.
5922         * tests/test-fnmatch.c: Likewise.
5923         * tests/test-fopen.h: Likewise.
5924         * tests/test-fpending.c: Likewise.
5925         * tests/test-fprintf-posix.c: Likewise.
5926         * tests/test-fpurge.c: Likewise.
5927         * tests/test-freadable.c: Likewise.
5928         * tests/test-freadahead.c: Likewise.
5929         * tests/test-freading.c: Likewise.
5930         * tests/test-freadptr.c: Likewise.
5931         * tests/test-freadptr2.c: Likewise.
5932         * tests/test-freadseek.c: Likewise.
5933         * tests/test-freopen.c: Likewise.
5934         * tests/test-frexp.c: Likewise.
5935         * tests/test-frexpl.c: Likewise.
5936         * tests/test-fseek.c: Likewise.
5937         * tests/test-fseeko.c: Likewise.
5938         * tests/test-fstatat.c: Likewise.
5939         * tests/test-fstrcmp.c: Likewise.
5940         * tests/test-fsync.c: Likewise.
5941         * tests/test-ftell.c: Likewise.
5942         * tests/test-ftello.c: Likewise.
5943         * tests/test-func.c: Likewise.
5944         * tests/test-futimens.c: Likewise.
5945         * tests/test-fwritable.c: Likewise.
5946         * tests/test-fwriting.c: Likewise.
5947         * tests/test-getcwd.c: Likewise.
5948         * tests/test-getdate.c: Likewise.
5949         * tests/test-getdelim.c: Likewise.
5950         * tests/test-getdtablesize.c: Likewise.
5951         * tests/test-getgroups.c: Likewise.
5952         * tests/test-getline.c: Likewise.
5953         * tests/test-getndelim2.c: Likewise.
5954         * tests/test-glob.c: Likewise.
5955         * tests/test-hash.c: Likewise.
5956         * tests/test-i-ring.c: Likewise.
5957         * tests/test-iconv-utf.c: Likewise.
5958         * tests/test-iconv.c: Likewise.
5959         * tests/test-idpriv-drop.c: Likewise.
5960         * tests/test-idpriv-droptemp.c: Likewise.
5961         * tests/test-inet_ntop.c: Likewise.
5962         * tests/test-inet_pton.c: Likewise.
5963         * tests/test-isblank.c: Likewise.
5964         * tests/test-isfinite.c: Likewise.
5965         * tests/test-isinf.c: Likewise.
5966         * tests/test-isnan.c: Likewise.
5967         * tests/test-isnand.h: Likewise.
5968         * tests/test-isnanf.h: Likewise.
5969         * tests/test-isnanl.h: Likewise.
5970         * tests/test-lchown.c: Likewise.
5971         * tests/test-ldexpl.c: Likewise.
5972         * tests/test-link.c: Likewise.
5973         * tests/test-linkat.c: Likewise.
5974         * tests/test-linked_list.c: Likewise.
5975         * tests/test-linkedhash_list.c: Likewise.
5976         * tests/test-localename.c: Likewise.
5977         * tests/test-lseek.c: Likewise.
5978         * tests/test-lstat.c: Likewise.
5979         * tests/test-mbmemcasecmp.c: Likewise.
5980         * tests/test-mbmemcasecoll.c: Likewise.
5981         * tests/test-mbrtowc.c: Likewise.
5982         * tests/test-mbscasecmp.c: Likewise.
5983         * tests/test-mbscasestr1.c: Likewise.
5984         * tests/test-mbscasestr2.c: Likewise.
5985         * tests/test-mbscasestr3.c: Likewise.
5986         * tests/test-mbscasestr4.c: Likewise.
5987         * tests/test-mbschr.c: Likewise.
5988         * tests/test-mbscspn.c: Likewise.
5989         * tests/test-mbsinit.c: Likewise.
5990         * tests/test-mbsncasecmp.c: Likewise.
5991         * tests/test-mbsnrtowcs.c: Likewise.
5992         * tests/test-mbspbrk.c: Likewise.
5993         * tests/test-mbspcasecmp.c: Likewise.
5994         * tests/test-mbsrchr.c: Likewise.
5995         * tests/test-mbsrtowcs.c: Likewise.
5996         * tests/test-mbsspn.c: Likewise.
5997         * tests/test-mbsstr1.c: Likewise.
5998         * tests/test-mbsstr2.c: Likewise.
5999         * tests/test-mbsstr3.c: Likewise.
6000         * tests/test-memchr.c: Likewise.
6001         * tests/test-memchr2.c: Likewise.
6002         * tests/test-memcmp.c: Likewise.
6003         * tests/test-memmem.c: Likewise.
6004         * tests/test-memrchr.c: Likewise.
6005         * tests/test-mkdir.c: Likewise.
6006         * tests/test-mkdirat.c: Likewise.
6007         * tests/test-mkfifo.c: Likewise.
6008         * tests/test-mkfifoat.c: Likewise.
6009         * tests/test-mknod.c: Likewise.
6010         * tests/test-nanosleep.c: Likewise.
6011         * tests/test-nl_langinfo.c: Likewise.
6012         * tests/test-obstack-printf.c: Likewise.
6013         * tests/test-open.c: Likewise.
6014         * tests/test-openat.c: Likewise.
6015         * tests/test-pipe-filter-gi1.c: Likewise.
6016         * tests/test-pipe-filter-gi2-main.c: Likewise.
6017         * tests/test-pipe-filter-ii1.c: Likewise.
6018         * tests/test-pipe-filter-ii2-main.c: Likewise.
6019         * tests/test-pipe2.c: Likewise.
6020         * tests/test-popen.h: Likewise.
6021         * tests/test-posixtm.c: Likewise.
6022         * tests/test-pread.c: Likewise.
6023         * tests/test-printf-frexp.c: Likewise.
6024         * tests/test-printf-frexpl.c: Likewise.
6025         * tests/test-printf-posix.c: Likewise.
6026         * tests/test-priv-set.c: Likewise.
6027         * tests/test-quotearg.c: Likewise.
6028         * tests/test-random_r.c: Likewise.
6029         * tests/test-rawmemchr.c: Likewise.
6030         * tests/test-rbtree_list.c: Likewise.
6031         * tests/test-rbtree_oset.c: Likewise.
6032         * tests/test-rbtreehash_list.c: Likewise.
6033         * tests/test-readlink.c: Likewise.
6034         * tests/test-remove.c: Likewise.
6035         * tests/test-rename.c: Likewise.
6036         * tests/test-renameat.c: Likewise.
6037         * tests/test-rmdir.c: Likewise.
6038         * tests/test-round1.c: Likewise.
6039         * tests/test-roundf1.c: Likewise.
6040         * tests/test-roundl.c: Likewise.
6041         * tests/test-safe-alloc.c: Likewise.
6042         * tests/test-sameacls.c: Likewise.
6043         * tests/test-set-mode-acl.c: Likewise.
6044         * tests/test-setenv.c: Likewise.
6045         * tests/test-sigaction.c: Likewise.
6046         * tests/test-signbit.c: Likewise.
6047         * tests/test-sleep.c: Likewise.
6048         * tests/test-snprintf-posix.c: Likewise.
6049         * tests/test-snprintf.c: Likewise.
6050         * tests/test-sprintf-posix.c: Likewise.
6051         * tests/test-stat-time.c: Likewise.
6052         * tests/test-stat.c: Likewise.
6053         * tests/test-strcasestr.c: Likewise.
6054         * tests/test-strchrnul.c: Likewise.
6055         * tests/test-strerror.c: Likewise.
6056         * tests/test-striconv.c: Likewise.
6057         * tests/test-striconveh.c: Likewise.
6058         * tests/test-striconveha.c: Likewise.
6059         * tests/test-strsignal.c: Likewise.
6060         * tests/test-strstr.c: Likewise.
6061         * tests/test-strtod.c: Likewise.
6062         * tests/test-strverscmp.c: Likewise.
6063         * tests/test-symlink.c: Likewise.
6064         * tests/test-symlinkat.c: Likewise.
6065         * tests/test-trunc1.c: Likewise.
6066         * tests/test-trunc2.c: Likewise.
6067         * tests/test-truncf1.c: Likewise.
6068         * tests/test-truncf2.c: Likewise.
6069         * tests/test-truncl.c: Likewise.
6070         * tests/test-uname.c: Likewise.
6071         * tests/test-unlink.c: Likewise.
6072         * tests/test-unlinkat.c: Likewise.
6073         * tests/test-unsetenv.c: Likewise.
6074         * tests/test-usleep.c: Likewise.
6075         * tests/test-utimens.c: Likewise.
6076         * tests/test-utimensat.c: Likewise.
6077         * tests/test-vasnprintf-posix.c: Likewise.
6078         * tests/test-vasnprintf-posix2.c: Likewise.
6079         * tests/test-vasnprintf.c: Likewise.
6080         * tests/test-vasprintf-posix.c: Likewise.
6081         * tests/test-vasprintf.c: Likewise.
6082         * tests/test-vdprintf-posix.c: Likewise.
6083         * tests/test-vfprintf-posix.c: Likewise.
6084         * tests/test-vprintf-posix.c: Likewise.
6085         * tests/test-vsnprintf-posix.c: Likewise.
6086         * tests/test-vsnprintf.c: Likewise.
6087         * tests/test-vsprintf-posix.c: Likewise.
6088         * tests/test-wcrtomb.c: Likewise.
6089         * tests/test-wcsnrtombs.c: Likewise.
6090         * tests/test-wcsrtombs.c: Likewise.
6091         * tests/test-wctype.c: Likewise.
6092         * tests/test-wcwidth.c: Likewise.
6093         * tests/test-xfprintf-posix.c: Likewise.
6094         * tests/test-xmemdup0.c: Likewise.
6095         * tests/test-xprintf-posix.c: Likewise.
6096         * tests/test-xvasprintf.c: Likewise.
6097         * tests/unicase/test-locale-language.c: Likewise.
6098         * tests/unicase/test-mapping-part1.h: Likewise.
6099         * tests/unicase/test-predicate-part1.h: Likewise.
6100         * tests/unicase/test-u8-casecmp.c: Likewise.
6101         * tests/unicase/test-u8-casecoll.c: Likewise.
6102         * tests/unicase/test-u8-casefold.c: Likewise.
6103         * tests/unicase/test-u8-is-cased.c: Likewise.
6104         * tests/unicase/test-u8-is-casefolded.c: Likewise.
6105         * tests/unicase/test-u8-is-lowercase.c: Likewise.
6106         * tests/unicase/test-u8-is-titlecase.c: Likewise.
6107         * tests/unicase/test-u8-is-uppercase.c: Likewise.
6108         * tests/unicase/test-u8-tolower.c: Likewise.
6109         * tests/unicase/test-u8-totitle.c: Likewise.
6110         * tests/unicase/test-u8-toupper.c: Likewise.
6111         * tests/unicase/test-u16-casecmp.c: Likewise.
6112         * tests/unicase/test-u16-casecoll.c: Likewise.
6113         * tests/unicase/test-u16-casefold.c: Likewise.
6114         * tests/unicase/test-u16-is-cased.c: Likewise.
6115         * tests/unicase/test-u16-is-casefolded.c: Likewise.
6116         * tests/unicase/test-u16-is-lowercase.c: Likewise.
6117         * tests/unicase/test-u16-is-titlecase.c: Likewise.
6118         * tests/unicase/test-u16-is-uppercase.c: Likewise.
6119         * tests/unicase/test-u16-tolower.c: Likewise.
6120         * tests/unicase/test-u16-totitle.c: Likewise.
6121         * tests/unicase/test-u16-toupper.c: Likewise.
6122         * tests/unicase/test-u32-casecmp.c: Likewise.
6123         * tests/unicase/test-u32-casecoll.c: Likewise.
6124         * tests/unicase/test-u32-casefold.c: Likewise.
6125         * tests/unicase/test-u32-is-cased.c: Likewise.
6126         * tests/unicase/test-u32-is-casefolded.c: Likewise.
6127         * tests/unicase/test-u32-is-lowercase.c: Likewise.
6128         * tests/unicase/test-u32-is-titlecase.c: Likewise.
6129         * tests/unicase/test-u32-is-uppercase.c: Likewise.
6130         * tests/unicase/test-u32-tolower.c: Likewise.
6131         * tests/unicase/test-u32-totitle.c: Likewise.
6132         * tests/unicase/test-u32-toupper.c: Likewise.
6133         * tests/unicase/test-ulc-casecmp.c: Likewise.
6134         * tests/unicase/test-ulc-casecoll.c: Likewise.
6135         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
6136         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
6137         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
6138         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
6139         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
6140         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
6141         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
6142         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
6143         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
6144         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
6145         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
6146         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
6147         * tests/unictype/test-bidi_byname.c: Likewise.
6148         * tests/unictype/test-bidi_name.c: Likewise.
6149         * tests/unictype/test-bidi_of.c: Likewise.
6150         * tests/unictype/test-bidi_test.c: Likewise.
6151         * tests/unictype/test-block_list.c: Likewise.
6152         * tests/unictype/test-block_of.c: Likewise.
6153         * tests/unictype/test-block_test.c: Likewise.
6154         * tests/unictype/test-categ_and.c: Likewise.
6155         * tests/unictype/test-categ_and_not.c: Likewise.
6156         * tests/unictype/test-categ_byname.c: Likewise.
6157         * tests/unictype/test-categ_name.c: Likewise.
6158         * tests/unictype/test-categ_none.c: Likewise.
6159         * tests/unictype/test-categ_of.c: Likewise.
6160         * tests/unictype/test-categ_or.c: Likewise.
6161         * tests/unictype/test-categ_test_withtable.c: Likewise.
6162         * tests/unictype/test-combining.c: Likewise.
6163         * tests/unictype/test-decdigit.c: Likewise.
6164         * tests/unictype/test-digit.c: Likewise.
6165         * tests/unictype/test-mirror.c: Likewise.
6166         * tests/unictype/test-numeric.c: Likewise.
6167         * tests/unictype/test-pr_byname.c: Likewise.
6168         * tests/unictype/test-pr_test.c: Likewise.
6169         * tests/unictype/test-predicate-part1.h: Likewise.
6170         * tests/unictype/test-scripts.c: Likewise.
6171         * tests/unictype/test-sy_c_ident.c: Likewise.
6172         * tests/unictype/test-sy_java_ident.c: Likewise.
6173         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
6174         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
6175         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
6176         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
6177         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
6178         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
6179         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
6180         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
6181         * tests/uninorm/test-canonical-decomposition.c: Likewise.
6182         * tests/uninorm/test-compat-decomposition.c: Likewise.
6183         * tests/uninorm/test-composition.c: Likewise.
6184         * tests/uninorm/test-decomposing-form.c: Likewise.
6185         * tests/uninorm/test-decomposition.c: Likewise.
6186         * tests/uninorm/test-u8-nfc.c: Likewise.
6187         * tests/uninorm/test-u8-nfd.c: Likewise.
6188         * tests/uninorm/test-u8-nfkc.c: Likewise.
6189         * tests/uninorm/test-u8-nfkd.c: Likewise.
6190         * tests/uninorm/test-u8-normcmp.c: Likewise.
6191         * tests/uninorm/test-u8-normcoll.c: Likewise.
6192         * tests/uninorm/test-u16-nfc.c: Likewise.
6193         * tests/uninorm/test-u16-nfd.c: Likewise.
6194         * tests/uninorm/test-u16-nfkc.c: Likewise.
6195         * tests/uninorm/test-u16-nfkd.c: Likewise.
6196         * tests/uninorm/test-u16-normcmp.c: Likewise.
6197         * tests/uninorm/test-u16-normcoll.c: Likewise.
6198         * tests/uninorm/test-u32-nfc.c: Likewise.
6199         * tests/uninorm/test-u32-nfd.c: Likewise.
6200         * tests/uninorm/test-u32-nfkc.c: Likewise.
6201         * tests/uninorm/test-u32-nfkd.c: Likewise.
6202         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6203         * tests/uninorm/test-u32-normcmp.c: Likewise.
6204         * tests/uninorm/test-u32-normcoll.c: Likewise.
6205         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
6206         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
6207         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
6208         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
6209         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
6210         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
6211         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6212         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6213         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
6214         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
6215         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
6216         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
6217         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
6218         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6219         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6220         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6221         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
6222         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
6223         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
6224         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
6225         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6226         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6227         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
6228         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
6229         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
6230         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
6231         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
6232         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6233         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6234         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
6235         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
6236         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
6237         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
6238         * tests/uniwidth/test-u8-strwidth.c: Likewise.
6239         * tests/uniwidth/test-u8-width.c: Likewise.
6240         * tests/uniwidth/test-u16-strwidth.c: Likewise.
6241         * tests/uniwidth/test-u16-width.c: Likewise.
6242         * tests/uniwidth/test-u32-strwidth.c: Likewise.
6243         * tests/uniwidth/test-u32-width.c: Likewise.
6244         * tests/uniwidth/test-uc_width.c: Likewise.
6245         * tests/uniwidth/test-uc_width2.c: Likewise.
6246         * modules/acl-tests (Files): Add tests/macros.h.
6247         * modules/areadlink-tests (Files): Likewise.
6248         * modules/areadlink-with-size-tests (Files): Likewise.
6249         * modules/areadlinkat-tests (Files): Likewise.
6250         * modules/areadlinkat-with-size-tests (Files): Likewise.
6251         * modules/argmatch-tests (Files): Likewise.
6252         * modules/argv-iter-tests (Files): Likewise.
6253         * modules/array-list-tests (Files): Likewise.
6254         * modules/array-mergesort-tests (Files): Likewise.
6255         * modules/array-oset-tests (Files): Likewise.
6256         * modules/avltree-list-tests (Files): Likewise.
6257         * modules/avltree-oset-tests (Files): Likewise.
6258         * modules/avltreehash-list-tests (Files): Likewise.
6259         * modules/base64-tests (Files): Likewise.
6260         * modules/binary-io-tests (Files): Likewise.
6261         * modules/bitrotate-tests (Files): Likewise.
6262         * modules/btowc-tests (Files): Likewise.
6263         * modules/byteswap-tests (Files): Likewise.
6264         * modules/c-ctype-tests (Files): Likewise.
6265         * modules/c-stack-tests (Files): Likewise.
6266         * modules/c-strcase-tests (Files): Likewise.
6267         * modules/c-strcasestr-tests (Files): Likewise.
6268         * modules/c-strstr-tests (Files): Likewise.
6269         * modules/canonicalize-lgpl-tests (Files): Likewise.
6270         * modules/canonicalize-tests (Files): Likewise.
6271         * modules/carray-list-tests (Files): Likewise.
6272         * modules/ceilf-tests (Files): Likewise.
6273         * modules/ceill-tests (Files): Likewise.
6274         * modules/chown-tests (Files): Likewise.
6275         * modules/cloexec-tests (Files): Likewise.
6276         * modules/copy-file-tests (Files): Likewise.
6277         * modules/count-one-bits-tests (Files): Likewise.
6278         * modules/dprintf-posix-tests (Files): Likewise.
6279         * modules/dup2-tests (Files): Likewise.
6280         * modules/dup3-tests (Files): Likewise.
6281         * modules/duplocale-tests (Files): Likewise.
6282         * modules/fbufmode-tests (Files): Likewise.
6283         * modules/fchdir-tests (Files): Likewise.
6284         * modules/fcntl-safer-tests (Files): Likewise.
6285         * modules/fcntl-tests (Files): Likewise.
6286         * modules/fdopendir-tests (Files): Likewise.
6287         * modules/fdutimensat-tests (Files): Likewise.
6288         * modules/fflush-tests (Files): Likewise.
6289         * modules/filevercmp-tests (Files): Likewise.
6290         * modules/flock-tests (Files): Likewise.
6291         * modules/floorf-tests (Files): Likewise.
6292         * modules/floorl-tests (Files): Likewise.
6293         * modules/fnmatch-tests (Files): Likewise.
6294         * modules/fopen-safer-tests (Files): Likewise.
6295         * modules/fopen-tests (Files): Likewise.
6296         * modules/fpending-tests (Files): Likewise.
6297         * modules/fprintf-posix-tests (Files): Likewise.
6298         * modules/fpurge-tests (Files): Likewise.
6299         * modules/freadable-tests (Files): Likewise.
6300         * modules/freadahead-tests (Files): Likewise.
6301         * modules/freading-tests (Files): Likewise.
6302         * modules/freadptr-tests (Files): Likewise.
6303         * modules/freadseek-tests (Files): Likewise.
6304         * modules/freopen-tests (Files): Likewise.
6305         * modules/frexp-nolibm-tests (Files): Likewise.
6306         * modules/frexp-tests (Files): Likewise.
6307         * modules/frexpl-nolibm-tests (Files): Likewise.
6308         * modules/frexpl-tests (Files): Likewise.
6309         * modules/fseek-tests (Files): Likewise.
6310         * modules/fseeko-tests (Files): Likewise.
6311         * modules/fstrcmp-tests (Files): Likewise.
6312         * modules/fsync-tests (Files): Likewise.
6313         * modules/ftell-tests (Files): Likewise.
6314         * modules/ftello-tests (Files): Likewise.
6315         * modules/func-tests (Files): Likewise.
6316         * modules/futimens-tests (Files): Likewise.
6317         * modules/fwritable-tests (Files): Likewise.
6318         * modules/fwriting-tests (Files): Likewise.
6319         * modules/getcwd-tests (Files): Likewise.
6320         * modules/getdate-tests (Files): Likewise.
6321         * modules/getdelim-tests (Files): Likewise.
6322         * modules/getdtablesize-tests (Files): Likewise.
6323         * modules/getgroups-tests (Files): Likewise.
6324         * modules/getline-tests (Files): Likewise.
6325         * modules/getndelim2-tests (Files): Likewise.
6326         * modules/glob-tests (Files): Likewise.
6327         * modules/hash-tests (Files): Likewise.
6328         * modules/i-ring-tests (Files): Likewise.
6329         * modules/iconv-tests (Files): Likewise.
6330         * modules/iconv_open-utf-tests (Files): Likewise.
6331         * modules/idpriv-drop-tests (Files): Likewise.
6332         * modules/idpriv-droptemp-tests (Files): Likewise.
6333         * modules/inet_ntop-tests (Files): Likewise.
6334         * modules/inet_pton-tests (Files): Likewise.
6335         * modules/isblank-tests (Files): Likewise.
6336         * modules/isfinite-tests (Files): Likewise.
6337         * modules/isinf-tests (Files): Likewise.
6338         * modules/isnan-tests (Files): Likewise.
6339         * modules/isnand-nolibm-tests (Files): Likewise.
6340         * modules/isnand-tests (Files): Likewise.
6341         * modules/isnanf-nolibm-tests (Files): Likewise.
6342         * modules/isnanf-tests (Files): Likewise.
6343         * modules/isnanl-nolibm-tests (Files): Likewise.
6344         * modules/isnanl-tests (Files): Likewise.
6345         * modules/lchown-tests (Files): Likewise.
6346         * modules/ldexpl-tests (Files): Likewise.
6347         * modules/link-tests (Files): Likewise.
6348         * modules/linkat-tests (Files): Likewise.
6349         * modules/linked-list-tests (Files): Likewise.
6350         * modules/linkedhash-list-tests (Files): Likewise.
6351         * modules/localename-tests (Files): Likewise.
6352         * modules/lseek-tests (Files): Likewise.
6353         * modules/lstat-tests (Files): Likewise.
6354         * modules/mbmemcasecmp-tests (Files): Likewise.
6355         * modules/mbmemcasecoll-tests (Files): Likewise.
6356         * modules/mbrtowc-tests (Files): Likewise.
6357         * modules/mbscasecmp-tests (Files): Likewise.
6358         * modules/mbscasestr-tests (Files): Likewise.
6359         * modules/mbschr-tests (Files): Likewise.
6360         * modules/mbscspn-tests (Files): Likewise.
6361         * modules/mbsinit-tests (Files): Likewise.
6362         * modules/mbsncasecmp-tests (Files): Likewise.
6363         * modules/mbsnrtowcs-tests (Files): Likewise.
6364         * modules/mbspbrk-tests (Files): Likewise.
6365         * modules/mbspcasecmp-tests (Files): Likewise.
6366         * modules/mbsrchr-tests (Files): Likewise.
6367         * modules/mbsrtowcs-tests (Files): Likewise.
6368         * modules/mbsspn-tests (Files): Likewise.
6369         * modules/mbsstr-tests (Files): Likewise.
6370         * modules/memchr-tests (Files): Likewise.
6371         * modules/memchr2-tests (Files): Likewise.
6372         * modules/memcmp-tests (Files): Likewise.
6373         * modules/memmem-tests (Files): Likewise.
6374         * modules/memrchr-tests (Files): Likewise.
6375         * modules/mkdir-tests (Files): Likewise.
6376         * modules/mkfifo-tests (Files): Likewise.
6377         * modules/mkfifoat-tests (Files): Likewise.
6378         * modules/mknod-tests (Files): Likewise.
6379         * modules/nanosleep-tests (Files): Likewise.
6380         * modules/nl_langinfo-tests (Files): Likewise.
6381         * modules/obstack-printf-tests (Files): Likewise.
6382         * modules/open-tests (Files): Likewise.
6383         * modules/openat-tests (Files): Likewise.
6384         * modules/pipe-filter-gi-tests (Files): Likewise.
6385         * modules/pipe-filter-ii-tests (Files): Likewise.
6386         * modules/pipe2-tests (Files): Likewise.
6387         * modules/popen-safer-tests (Files): Likewise.
6388         * modules/popen-tests (Files): Likewise.
6389         * modules/posixtm-tests (Files): Likewise.
6390         * modules/pread-tests (Files): Likewise.
6391         * modules/printf-frexp-tests (Files): Likewise.
6392         * modules/printf-frexpl-tests (Files): Likewise.
6393         * modules/printf-posix-tests (Files): Likewise.
6394         * modules/priv-set-tests (Files): Likewise.
6395         * modules/quotearg-tests (Files): Likewise.
6396         * modules/random_r-tests (Files): Likewise.
6397         * modules/rawmemchr-tests (Files): Likewise.
6398         * modules/rbtree-list-tests (Files): Likewise.
6399         * modules/rbtree-oset-tests (Files): Likewise.
6400         * modules/rbtreehash-list-tests (Files): Likewise.
6401         * modules/readlink-tests (Files): Likewise.
6402         * modules/remove-tests (Files): Likewise.
6403         * modules/rename-tests (Files): Likewise.
6404         * modules/renameat-tests (Files): Likewise.
6405         * modules/rmdir-tests (Files): Likewise.
6406         * modules/round-tests (Files): Likewise.
6407         * modules/roundf-tests (Files): Likewise.
6408         * modules/roundl-tests (Files): Likewise.
6409         * modules/safe-alloc-tests (Files): Likewise.
6410         * modules/setenv-tests (Files): Likewise.
6411         * modules/sigaction-tests (Files): Likewise.
6412         * modules/signbit-tests (Files): Likewise.
6413         * modules/sleep-tests (Files): Likewise.
6414         * modules/snprintf-posix-tests (Files): Likewise.
6415         * modules/snprintf-tests (Files): Likewise.
6416         * modules/sprintf-posix-tests (Files): Likewise.
6417         * modules/stat-tests (Files): Likewise.
6418         * modules/stat-time-tests (Files): Likewise.
6419         * modules/strcasestr-tests (Files): Likewise.
6420         * modules/strchrnul-tests (Files): Likewise.
6421         * modules/strerror-tests (Files): Likewise.
6422         * modules/striconv-tests (Files): Likewise.
6423         * modules/striconveh-tests (Files): Likewise.
6424         * modules/striconveha-tests (Files): Likewise.
6425         * modules/strsignal-tests (Files): Likewise.
6426         * modules/strstr-tests (Files): Likewise.
6427         * modules/strtod-tests (Files): Likewise.
6428         * modules/strverscmp-tests (Files): Likewise.
6429         * modules/symlink-tests (Files): Likewise.
6430         * modules/symlinkat-tests (Files): Likewise.
6431         * modules/trunc-tests (Files): Likewise.
6432         * modules/truncf-tests (Files): Likewise.
6433         * modules/truncl-tests (Files): Likewise.
6434         * modules/uname-tests (Files): Likewise.
6435         * modules/unicase/cased-tests (Files): Likewise.
6436         * modules/unicase/ignorable-tests (Files): Likewise.
6437         * modules/unicase/locale-language-tests (Files): Likewise.
6438         * modules/unicase/tolower-tests (Files): Likewise.
6439         * modules/unicase/totitle-tests (Files): Likewise.
6440         * modules/unicase/toupper-tests (Files): Likewise.
6441         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6442         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6443         * modules/unicase/u8-casefold-tests (Files): Likewise.
6444         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6445         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6446         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6447         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6448         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6449         * modules/unicase/u8-tolower-tests (Files): Likewise.
6450         * modules/unicase/u8-totitle-tests (Files): Likewise.
6451         * modules/unicase/u8-toupper-tests (Files): Likewise.
6452         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6453         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6454         * modules/unicase/u16-casefold-tests (Files): Likewise.
6455         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6456         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6457         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6458         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6459         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6460         * modules/unicase/u16-tolower-tests (Files): Likewise.
6461         * modules/unicase/u16-totitle-tests (Files): Likewise.
6462         * modules/unicase/u16-toupper-tests (Files): Likewise.
6463         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6464         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6465         * modules/unicase/u32-casefold-tests (Files): Likewise.
6466         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6467         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6468         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6469         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6470         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6471         * modules/unicase/u32-tolower-tests (Files): Likewise.
6472         * modules/unicase/u32-totitle-tests (Files): Likewise.
6473         * modules/unicase/u32-toupper-tests (Files): Likewise.
6474         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6475         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6476         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6477         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6478         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6479         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6480         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6481         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6482         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6483         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6484         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6485         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6486         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6487         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6488         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6489         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6490         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6491         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6492         * modules/unictype/block-list-tests (Files): Likewise.
6493         * modules/unictype/block-of-tests (Files): Likewise.
6494         * modules/unictype/block-test-tests (Files): Likewise.
6495         * modules/unictype/category-C-tests (Files): Likewise.
6496         * modules/unictype/category-Cc-tests (Files): Likewise.
6497         * modules/unictype/category-Cf-tests (Files): Likewise.
6498         * modules/unictype/category-Cn-tests (Files): Likewise.
6499         * modules/unictype/category-Co-tests (Files): Likewise.
6500         * modules/unictype/category-Cs-tests (Files): Likewise.
6501         * modules/unictype/category-L-tests (Files): Likewise.
6502         * modules/unictype/category-Ll-tests (Files): Likewise.
6503         * modules/unictype/category-Lm-tests (Files): Likewise.
6504         * modules/unictype/category-Lo-tests (Files): Likewise.
6505         * modules/unictype/category-Lt-tests (Files): Likewise.
6506         * modules/unictype/category-Lu-tests (Files): Likewise.
6507         * modules/unictype/category-M-tests (Files): Likewise.
6508         * modules/unictype/category-Mc-tests (Files): Likewise.
6509         * modules/unictype/category-Me-tests (Files): Likewise.
6510         * modules/unictype/category-Mn-tests (Files): Likewise.
6511         * modules/unictype/category-N-tests (Files): Likewise.
6512         * modules/unictype/category-Nd-tests (Files): Likewise.
6513         * modules/unictype/category-Nl-tests (Files): Likewise.
6514         * modules/unictype/category-No-tests (Files): Likewise.
6515         * modules/unictype/category-P-tests (Files): Likewise.
6516         * modules/unictype/category-Pc-tests (Files): Likewise.
6517         * modules/unictype/category-Pd-tests (Files): Likewise.
6518         * modules/unictype/category-Pe-tests (Files): Likewise.
6519         * modules/unictype/category-Pf-tests (Files): Likewise.
6520         * modules/unictype/category-Pi-tests (Files): Likewise.
6521         * modules/unictype/category-Po-tests (Files): Likewise.
6522         * modules/unictype/category-Ps-tests (Files): Likewise.
6523         * modules/unictype/category-S-tests (Files): Likewise.
6524         * modules/unictype/category-Sc-tests (Files): Likewise.
6525         * modules/unictype/category-Sk-tests (Files): Likewise.
6526         * modules/unictype/category-Sm-tests (Files): Likewise.
6527         * modules/unictype/category-So-tests (Files): Likewise.
6528         * modules/unictype/category-Z-tests (Files): Likewise.
6529         * modules/unictype/category-Zl-tests (Files): Likewise.
6530         * modules/unictype/category-Zp-tests (Files): Likewise.
6531         * modules/unictype/category-Zs-tests (Files): Likewise.
6532         * modules/unictype/category-and-not-tests (Files): Likewise.
6533         * modules/unictype/category-and-tests (Files): Likewise.
6534         * modules/unictype/category-byname-tests (Files): Likewise.
6535         * modules/unictype/category-name-tests (Files): Likewise.
6536         * modules/unictype/category-none-tests (Files): Likewise.
6537         * modules/unictype/category-of-tests (Files): Likewise.
6538         * modules/unictype/category-or-tests (Files): Likewise.
6539         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6540         * modules/unictype/combining-class-tests (Files): Likewise.
6541         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6542         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6543         * modules/unictype/ctype-blank-tests (Files): Likewise.
6544         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6545         * modules/unictype/ctype-digit-tests (Files): Likewise.
6546         * modules/unictype/ctype-graph-tests (Files): Likewise.
6547         * modules/unictype/ctype-lower-tests (Files): Likewise.
6548         * modules/unictype/ctype-print-tests (Files): Likewise.
6549         * modules/unictype/ctype-punct-tests (Files): Likewise.
6550         * modules/unictype/ctype-space-tests (Files): Likewise.
6551         * modules/unictype/ctype-upper-tests (Files): Likewise.
6552         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6553         * modules/unictype/decimal-digit-tests (Files): Likewise.
6554         * modules/unictype/digit-tests (Files): Likewise.
6555         * modules/unictype/mirror-tests (Files): Likewise.
6556         * modules/unictype/numeric-tests (Files): Likewise.
6557         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6558         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6559         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6560         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6561         Likewise.
6562         * modules/unictype/property-bidi-block-separator-tests (Files):
6563         Likewise.
6564         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6565         Likewise.
6566         * modules/unictype/property-bidi-common-separator-tests (Files):
6567         Likewise.
6568         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6569         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6570         Likewise.
6571         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6572         Likewise.
6573         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6574         Likewise.
6575         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6576         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6577         Likewise.
6578         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6579         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6580         Likewise.
6581         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6582         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6583         * modules/unictype/property-bidi-segment-separator-tests (Files):
6584         Likewise.
6585         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6586         * modules/unictype/property-byname-tests (Files): Likewise.
6587         * modules/unictype/property-combining-tests (Files): Likewise.
6588         * modules/unictype/property-composite-tests (Files): Likewise.
6589         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6590         * modules/unictype/property-dash-tests (Files): Likewise.
6591         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6592         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6593         Likewise.
6594         * modules/unictype/property-deprecated-tests (Files): Likewise.
6595         * modules/unictype/property-diacritic-tests (Files): Likewise.
6596         * modules/unictype/property-extender-tests (Files): Likewise.
6597         * modules/unictype/property-format-control-tests (Files): Likewise.
6598         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6599         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6600         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6601         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6602         * modules/unictype/property-hyphen-tests (Files): Likewise.
6603         * modules/unictype/property-id-continue-tests (Files): Likewise.
6604         * modules/unictype/property-id-start-tests (Files): Likewise.
6605         * modules/unictype/property-ideographic-tests (Files): Likewise.
6606         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6607         * modules/unictype/property-ids-trinary-operator-tests (Files):
6608         Likewise.
6609         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6610         * modules/unictype/property-iso-control-tests (Files): Likewise.
6611         * modules/unictype/property-join-control-tests (Files): Likewise.
6612         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6613         * modules/unictype/property-line-separator-tests (Files): Likewise.
6614         * modules/unictype/property-logical-order-exception-tests (Files):
6615         Likewise.
6616         * modules/unictype/property-lowercase-tests (Files): Likewise.
6617         * modules/unictype/property-math-tests (Files): Likewise.
6618         * modules/unictype/property-non-break-tests (Files): Likewise.
6619         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6620         * modules/unictype/property-numeric-tests (Files): Likewise.
6621         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6622         * modules/unictype/property-other-default-ignorable-code-point-tests
6623         (Files): Likewise.
6624         * modules/unictype/property-other-grapheme-extend-tests (Files):
6625         Likewise.
6626         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6627         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6628         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6629         * modules/unictype/property-other-math-tests (Files): Likewise.
6630         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6631         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6632         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6633         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6634         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6635         * modules/unictype/property-private-use-tests (Files): Likewise.
6636         * modules/unictype/property-punctuation-tests (Files): Likewise.
6637         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6638         * modules/unictype/property-radical-tests (Files): Likewise.
6639         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6640         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6641         * modules/unictype/property-space-tests (Files): Likewise.
6642         * modules/unictype/property-terminal-punctuation-tests (Files):
6643         Likewise.
6644         * modules/unictype/property-test-tests (Files): Likewise.
6645         * modules/unictype/property-titlecase-tests (Files): Likewise.
6646         * modules/unictype/property-unassigned-code-value-tests (Files):
6647         Likewise.
6648         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6649         * modules/unictype/property-uppercase-tests (Files): Likewise.
6650         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6651         * modules/unictype/property-white-space-tests (Files): Likewise.
6652         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6653         * modules/unictype/property-xid-start-tests (Files): Likewise.
6654         * modules/unictype/property-zero-width-tests (Files): Likewise.
6655         * modules/unictype/scripts-tests (Files): Likewise.
6656         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6657         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6658         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6659         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6660         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6661         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6662         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6663         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6664         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6665         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6666         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6667         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6668         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6669         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6670         * modules/uninorm/composition-tests (Files): Likewise.
6671         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6672         * modules/uninorm/decomposition-tests (Files): Likewise.
6673         * modules/uninorm/filter-tests (Files): Likewise.
6674         * modules/uninorm/nfc-tests (Files): Likewise.
6675         * modules/uninorm/nfd-tests (Files): Likewise.
6676         * modules/uninorm/nfkc-tests (Files): Likewise.
6677         * modules/uninorm/nfkd-tests (Files): Likewise.
6678         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6679         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6680         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6681         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6682         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6683         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6684         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6685         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6686         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6687         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6688         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6689         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6690         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6691         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6692         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6693         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6694         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6695         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6696         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6697         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6698         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6699         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6700         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6701         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6702         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6703         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6704         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6705         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6706         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6707         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6708         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6709         * modules/uniwidth/u8-width-tests (Files): Likewise.
6710         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6711         * modules/uniwidth/u16-width-tests (Files): Likewise.
6712         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6713         * modules/uniwidth/u32-width-tests (Files): Likewise.
6714         * modules/uniwidth/width-tests (Files): Likewise.
6715         * modules/unlink-tests (Files): Likewise.
6716         * modules/unsetenv-tests (Files): Likewise.
6717         * modules/usleep-tests (Files): Likewise.
6718         * modules/utimens-tests (Files): Likewise.
6719         * modules/utimensat-tests (Files): Likewise.
6720         * modules/vasnprintf-posix-tests (Files): Likewise.
6721         * modules/vasnprintf-tests (Files): Likewise.
6722         * modules/vasprintf-posix-tests (Files): Likewise.
6723         * modules/vasprintf-tests (Files): Likewise.
6724         * modules/vdprintf-posix-tests (Files): Likewise.
6725         * modules/vfprintf-posix-tests (Files): Likewise.
6726         * modules/vprintf-posix-tests (Files): Likewise.
6727         * modules/vsnprintf-posix-tests (Files): Likewise.
6728         * modules/vsnprintf-tests (Files): Likewise.
6729         * modules/vsprintf-posix-tests (Files): Likewise.
6730         * modules/wcrtomb-tests (Files): Likewise.
6731         * modules/wcsnrtombs-tests (Files): Likewise.
6732         * modules/wcsrtombs-tests (Files): Likewise.
6733         * modules/wctype-tests (Files): Likewise.
6734         * modules/wcwidth-tests (Files): Likewise.
6735         * modules/xmemdup0-tests (Files): Likewise.
6736         * modules/xprintf-posix-tests (Files): Likewise.
6737         * modules/xvasprintf-tests (Files): Likewise.
6738
6739 2009-12-24  Eric Blake  <ebb9@byu.net>
6740
6741         test-nanosleep: fix typo
6742         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6743         patch.
6744         Reported by Bruno Haible.
6745
6746 2009-12-24  Bruno Haible  <bruno@clisp.org>
6747
6748         Reduce namespace pollution on glibc systems.
6749         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6750         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6751         systems.
6752         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6753         <getopt.h> on glibc systems.
6754         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6755         systems.
6756         * lib/fcntl.c: Include <unistd.h> here instead.
6757
6758 2009-12-24  Bruno Haible  <bruno@clisp.org>
6759
6760         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6761
6762 2009-12-24  Eric Blake  <ebb9@byu.net>
6763
6764         tests: add signature checks
6765         * tests/signature.h (SIGNATURE_CHECK): New file.
6766         * modules/atexit-tests (Files): Use it.
6767         * modules/btowc-tests (Files): Likewise.
6768         * modules/canonicalize-lgpl-tests (Files): Likewise.
6769         * modules/ceilf-tests (Files): Likewise.
6770         * modules/ceill-tests (Files): Likewise.
6771         * modules/chown-tests (Files): Likewise.
6772         * modules/dprintf-posix-tests (Files): Likewise.
6773         * modules/dup2-tests (Files): Likewise.
6774         * modules/dup3-tests (Files): Likewise.
6775         * modules/duplocale-tests (Files): Likewise.
6776         * modules/fchdir-tests (Files): Likewise.
6777         * modules/fcntl-tests (Files): Likewise.
6778         * modules/fdopendir-tests (Files): Likewise.
6779         * modules/fflush-tests (Files): Likewise.
6780         * modules/flock-tests (Files): Likewise.
6781         * modules/floorf-tests (Files): Likewise.
6782         * modules/floorl-tests (Files): Likewise.
6783         * modules/fnmatch-tests (Files): Likewise.
6784         * modules/fopen-tests (Files): Likewise.
6785         * modules/fprintf-posix-tests (Files): Likewise.
6786         * modules/freopen-tests (Files): Likewise.
6787         * modules/frexp-nolibm-tests (Files): Likewise.
6788         * modules/frexp-tests (Files): Likewise.
6789         * modules/frexpl-nolibm-tests (Files): Likewise.
6790         * modules/frexpl-tests (Files): Likewise.
6791         * modules/fseek-tests (Files): Likewise.
6792         * modules/fseeko-tests (Files): Likewise.
6793         * modules/fsync-tests (Files): Likewise.
6794         * modules/ftell-tests (Files): Likewise.
6795         * modules/ftello-tests (Files): Likewise.
6796         * modules/futimens-tests (Files): Likewise.
6797         * modules/getaddrinfo-tests (Files): Likewise.
6798         * modules/getcwd-tests (Files): Likewise.
6799         * modules/getdelim-tests (Files): Likewise.
6800         * modules/getdtablesize-tests (Files): Likewise.
6801         * modules/getgroups-tests (Files): Likewise.
6802         * modules/gethostname-tests (Files): Likewise.
6803         * modules/getline-tests (Files): Likewise.
6804         * modules/getopt-posix-tests (Files): Likewise.
6805         * modules/gettimeofday-tests (Files): Likewise.
6806         * modules/glob-tests (Files): Likewise.
6807         * modules/iconv-tests (Files): Likewise.
6808         * modules/inet_ntop-tests (Files): Likewise.
6809         * modules/inet_pton-tests (Files): Likewise.
6810         * modules/isblank-tests (Files): Likewise.
6811         * modules/lchown-tests (Files): Likewise.
6812         * modules/ldexpl-tests (Files): Likewise.
6813         * modules/link-tests (Files): Likewise.
6814         * modules/linkat-tests (Files): Likewise.
6815         * modules/lseek-tests (Files): Likewise.
6816         * modules/lstat-tests (Files): Likewise.
6817         * modules/mbrtowc-tests (Files): Likewise.
6818         * modules/mbsinit-tests (Files): Likewise.
6819         * modules/mbsnrtowcs-tests (Files): Likewise.
6820         * modules/mbsrtowcs-tests (Files): Likewise.
6821         * modules/memchr-tests (Files): Likewise.
6822         * modules/memcmp-tests (Files): Likewise.
6823         * modules/memmem-tests (Files): Likewise.
6824         * modules/memrchr-tests (Files): Likewise.
6825         * modules/mkdir-tests (Files): Likewise.
6826         * modules/mkfifo-tests (Files): Likewise.
6827         * modules/mkfifoat-tests (Files): Likewise.
6828         * modules/mknod-tests (Files): Likewise.
6829         * modules/nanosleep-tests (Files): Likewise.
6830         * modules/nl_langinfo-tests (Files): Likewise.
6831         * modules/obstack-printf-tests (Files): Likewise.
6832         * modules/open-tests (Files): Likewise.
6833         * modules/openat-tests (Files): Likewise.
6834         * modules/perror-tests (Files): Likewise.
6835         * modules/pipe2-tests (Files): Likewise.
6836         * modules/poll-tests (Files): Likewise.
6837         * modules/popen-tests (Files): Likewise.
6838         * modules/posix_spawn-tests (Files): Likewise.
6839         * modules/posix_spawnp-tests (Files): Likewise.
6840         * modules/pread-tests (Files): Likewise.
6841         * modules/printf-posix-tests (Files): Likewise.
6842         * modules/pty-tests (Files): Likewise.
6843         * modules/random_r-tests (Files): Likewise.
6844         * modules/rawmemchr-tests (Files): Likewise.
6845         * modules/readlink-tests (Files): Likewise.
6846         * modules/remove-tests (Files): Likewise.
6847         * modules/rename-tests (Files): Likewise.
6848         * modules/renameat-tests (Files): Likewise.
6849         * modules/rmdir-tests (Files): Likewise.
6850         * modules/round-tests (Files): Likewise.
6851         * modules/roundf-tests (Files): Likewise.
6852         * modules/roundl-tests (Files): Likewise.
6853         * modules/select-tests (Files): Likewise.
6854         * modules/setenv-tests (Files): Likewise.
6855         * modules/sigaction-tests (Files): Likewise.
6856         * modules/sleep-tests (Files): Likewise.
6857         * modules/snprintf-posix-tests (Files): Likewise.
6858         * modules/snprintf-tests (Files): Likewise.
6859         * modules/sprintf-posix-tests (Files): Likewise.
6860         * modules/stat-tests (Files): Likewise.
6861         * modules/strcasestr-tests (Files): Likewise.
6862         * modules/strchrnul-tests (Files): Likewise.
6863         * modules/strerror-tests (Files): Likewise.
6864         * modules/strsignal-tests (Files): Likewise.
6865         * modules/strstr-tests (Files): Likewise.
6866         * modules/strtod-tests (Files): Likewise.
6867         * modules/strverscmp-tests (Files): Likewise.
6868         * modules/symlink-tests (Files): Likewise.
6869         * modules/symlinkat-tests (Files): Likewise.
6870         * modules/times-tests (Files): Likewise.
6871         * modules/trunc-tests (Files): Likewise.
6872         * modules/truncf-tests (Files): Likewise.
6873         * modules/truncl-tests (Files): Likewise.
6874         * modules/tsearch-tests (Files): Likewise.
6875         * modules/uname-tests (Files): Likewise.
6876         * modules/unlink-tests (Files): Likewise.
6877         * modules/unsetenv-tests (Files): Likewise.
6878         * modules/usleep-tests (Files): Likewise.
6879         * modules/utimensat-tests (Files): Likewise.
6880         * modules/vasprintf-tests (Files): Likewise.
6881         * modules/vdprintf-posix-tests (Files): Likewise.
6882         * modules/vfprintf-posix-tests (Files): Likewise.
6883         * modules/vprintf-posix-tests (Files): Likewise.
6884         * modules/vsnprintf-posix-tests (Files): Likewise.
6885         * modules/vsnprintf-tests (Files): Likewise.
6886         * modules/vsprintf-posix-tests (Files): Likewise.
6887         * modules/wcrtomb-tests (Files): Likewise.
6888         * modules/wcsnrtombs-tests (Files): Likewise.
6889         * modules/wcsrtombs-tests (Files): Likewise.
6890         * modules/wcwidth-tests (Files): Likewise.
6891         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6892         * tests/test-isinf.c (isinf): Likewise.
6893         * tests/test-isnan.c (isnan): Likewise.
6894         * tests/test-signbit.c (signbit): Likewise.
6895         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6896         declaration, either as macro or with correct signature.
6897         (select): Ensure function under test is declared with correct
6898         signature in correct header.
6899         * tests/test-atexit.c (atexit): Likewise.
6900         * tests/test-btowc.c (btowc): Likewise.
6901         * tests/test-canonicalize-lgpl.c (realpath)
6902         (canonicalize_file_name): Likewise.
6903         * tests/test-ceilf1.c (ceilf): Likewise.
6904         * tests/test-ceill.c (ceill): Likewise.
6905         * tests/test-chown.c (chown): Likewise.
6906         * tests/test-dprintf-posix.c (dprintf): Likewise.
6907         * tests/test-dup2.c (dup2): Likewise.
6908         * tests/test-dup3.c (dup3): Likewise.
6909         * tests/test-duplocale.c (duplocale): Likewise.
6910         * tests/test-fchdir.c (fchdir): Likewise.
6911         * tests/test-fchownat.c (fchownat): Likewise.
6912         * tests/test-fcntl.c (fcntl): Likewise.
6913         * tests/test-fdopendir.c (fdopendir): Likewise.
6914         * tests/test-fflush.c (fflush): Likewise.
6915         * tests/test-flock.c (flock): Likewise.
6916         * tests/test-floorf1.c (floorf): Likewise.
6917         * tests/test-floorl.c (floorl): Likewise.
6918         * tests/test-fnmatch.c (fnmatch): Likewise.
6919         * tests/test-fopen.c (fopen): Likewise.
6920         * tests/test-fprintf-posix.c (fprintf): Likewise.
6921         * tests/test-freopen.c (freopen): Likewise.
6922         * tests/test-frexp.c (frexp): Likewise.
6923         * tests/test-frexpl.c (frexpl): Likewise.
6924         * tests/test-fseek.c (fseek): Likewise.
6925         * tests/test-fseeko.c (fseeko): Likewise.
6926         * tests/test-fstatat.c (fstatat): Likewise.
6927         * tests/test-fsync.c (fsync): Likewise.
6928         * tests/test-ftell.c (ftell): Likewise.
6929         * tests/test-ftello.c (ftello): Likewise.
6930         * tests/test-futimens.c (futimens): Likewise.
6931         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6932         (gai_strerror): Likewise.
6933         * tests/test-getcwd.c (getcwd): Likewise.
6934         * tests/test-getdelim.c (getdelim): Likewise.
6935         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6936         * tests/test-getgroups.c (getgroups): Likewise.
6937         * tests/test-gethostname.c (gethostname): Likewise.
6938         * tests/test-getline.c (getline): Likewise.
6939         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6940         Likewise.
6941         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6942         * tests/test-glob.c (glob, globfree): Likewise.
6943         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6944         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6945         * tests/test-inet_pton.c (inet_pton): Likewise.
6946         * tests/test-isblank.c (isblank): Likewise.
6947         * tests/test-lchown.c (lchown): Likewise.
6948         * tests/test-ldexpl.c (ldexpl): Likewise.
6949         * tests/test-link.c (link): Likewise.
6950         * tests/test-linkat.c (linkat): Likewise.
6951         * tests/test-lseek.c (lseek): Likewise.
6952         * tests/test-lstat.c (lstat): Likewise.
6953         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6954         * tests/test-mbsinit.c (mbsinit): Likewise.
6955         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6956         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6957         * tests/test-memchr.c (memchr): Likewise.
6958         * tests/test-memcmp.c (memcmp): Likewise.
6959         * tests/test-memmem.c (memmem): Likewise.
6960         * tests/test-memrchr.c (memrchr): Likewise.
6961         * tests/test-mkdir.c (mkdir): Likewise.
6962         * tests/test-mkdirat.c (mkdirat): Likewise.
6963         * tests/test-mkfifo.c (mkfifo): Likewise.
6964         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6965         * tests/test-mknod.c (mknod): Likewise.
6966         * tests/test-nanosleep.c (nanosleep): Likewise.
6967         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6968         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6969         Likewise.
6970         * tests/test-open.c (open): Likewise.
6971         * tests/test-openat.c (openat): Likewise.
6972         * tests/test-perror.c (perror): Likewise.
6973         * tests/test-pipe2.c (pipe2): Likewise.
6974         * tests/test-poll.c (poll): Likewise.
6975         * tests/test-popen.c (popen, pclose): Likewise.
6976         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6977         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6978         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6979         (posix_spawn_file_actions_destroy)
6980         (posix_spawn_file_actions_addclose)
6981         (posix_spawn_file_actions_addopen)
6982         (posix_spawn_file_actions_adddup2): Likewise.
6983         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6984         * tests/test-pread.c (pread): Likewise.
6985         * tests/test-printf-posix.c (printf): Likewise.
6986         * tests/test-pty.c (openpty, forkpty): Likewise.
6987         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6988         (random_r): Likewise.
6989         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6990         * tests/test-readlink.c (readlink): Likewise.
6991         * tests/test-remove.c (remove): Likewise.
6992         * tests/test-rename.c (rename): Likewise.
6993         * tests/test-renameat.c (renameat): Likewise.
6994         * tests/test-rmdir.c (rmdir): Likewise.
6995         * tests/test-round1.c (round): Likewise.
6996         * tests/test-roundf1.c (roundf): Likewise.
6997         * tests/test-roundl.c (roundl): Likewise.
6998         * tests/test-setenv.c (setenv): Likewise.
6999         * tests/test-sigaction.c (sigaction): Likewise.
7000         * tests/test-sleep.c (sleep): Likewise.
7001         * tests/test-snprintf.c (snprintf): Likewise.
7002         * tests/test-sprintf-posix.c (sprintf): Likewise.
7003         * tests/test-stat.c (stat): Likewise.
7004         * tests/test-stpncpy.c (stpncpy): Likewise.
7005         * tests/test-strcasestr.c (strcasestr): Likewise.
7006         * tests/test-strchrnul.c (strchrnul): Likewise.
7007         * tests/test-strerror.c (strerror): Likewise.
7008         * tests/test-strsignal.c (strsignal): Likewise.
7009         * tests/test-strstr.c (strstr): Likewise.
7010         * tests/test-strtod.c (strtod): Likewise.
7011         * tests/test-strverscmp.c (strverscmp): Likewise.
7012         * tests/test-symlink.c (symlink): Likewise.
7013         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
7014         * tests/test-times.c (times): Likewise.
7015         * tests/test-trunc1.c (trunc): Likewise.
7016         * tests/test-truncf1.c (truncf): Likewise.
7017         * tests/test-truncl.c (truncl): Likewise.
7018         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
7019         Likewise.
7020         * tests/test-uname.c (uname): Likewise.
7021         * tests/test-unlink.c (unlink): Likewise.
7022         * tests/test-unlinkat.c (unlinkat): Likewise.
7023         * tests/test-unsetenv.c (unsetenv): Likewise.
7024         * tests/test-usleep.c (usleep): Likewise.
7025         * tests/test-utimensat.c (utimensat): Likewise.
7026         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
7027         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
7028         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
7029         * tests/test-vprintf-posix.c (vprintf): Likewise.
7030         * tests/test-vsnprintf.c (vsnprintf): Likewise.
7031         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
7032         * tests/test-wcrtomb.c (wcrtomb): Likewise.
7033         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
7034         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
7035         * tests/test-wcwidth.c (wcwidth): Likewise.
7036
7037         build: pull in conditional headers during GNULIB_POSIXCHECK
7038         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
7039         definitions from any conditionally-included headers.
7040         * lib/stdlib.in.h (includes): Likewise.
7041         * lib/unistd.in.h (includes): Likewise.
7042
7043 2009-12-24  Bruno Haible  <bruno@clisp.org>
7044
7045         * tests/test-argv-iter.c: Include header file being tested immediately
7046         after config.h.
7047         * tests/test-base64.c: Likewise.
7048         * tests/test-flock.c: Likewise.
7049         * tests/test-fsync.c: Likewise.
7050         * tests/test-getdate.c: Likewise.
7051         * tests/test-getndelim2.c: Likewise.
7052         * tests/test-isfinite.c: Likewise.
7053         * tests/test-isinf.c: Likewise.
7054         * tests/test-strerror.c: Likewise.
7055         * tests/test-strsignal.c: Likewise.
7056
7057 2009-12-23  Eric Blake  <ebb9@byu.net>
7058
7059         unistd: work around cygwin bug
7060         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
7061         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
7062         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7063
7064 2009-12-23  Bruno Haible  <bruno@clisp.org>
7065
7066         localename: More tests.
7067         * tests/test-localename.c (SIZEOF): New macro.
7068         (categories): New variable.
7069         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
7070         test_locale_name_default): Add test w.r.t. thread locale.
7071         (test_locale_name_thread): New function.
7072         (main): Invoke it.
7073
7074         localename: Make aware of thread locale.
7075         * lib/localename.h (gl_locale_name_thread): New declaration.
7076         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
7077         behaviour with respect to thread locale.
7078         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
7079         <langinfo.h>, glthread/lock.h.
7080         (SIZE_BITS): New macro.
7081         (string_hash): New function.
7082         (struct hash_node): New type.
7083         (HASH_TABLE_SIZE): New macro.
7084         (struniq_hash_table, struniq_lock): New variables.
7085         (struniq): New function.
7086         (gl_locale_name_thread): New function.
7087         (gl_locale_name): Invoke it.
7088         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
7089         * modules/localename (Depends-on): Add lock.
7090         Reported by Mike Gran <spk121@yahoo.com>.
7091
7092 2009-12-23  Eric Blake  <ebb9@byu.net>
7093
7094         va-args: new module
7095         * modules/va-args: New file.
7096         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
7097         * MODULES.html.sh (Core language properties): Mention it.
7098
7099         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
7100         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
7101         named alias for __attribute__((__unused__)).
7102         * lib/chown.c: Update client.
7103         * lib/fchmodat.c: Likewise.
7104         * lib/fts.c: Likewise.
7105         * lib/getdate.y: Likewise.
7106         * lib/getgroups.c: Likewise.
7107         * lib/getopt.c: Likewise.
7108         * lib/getugroups.c: Likewise.
7109         * lib/mkdir.c: Likewise.
7110         * lib/mkfifo.c: Likewise.
7111         * lib/mkfifoat.c: Likewise.
7112         * lib/mknod.c: Likewise.
7113         * lib/mknodat.c: Likewise.
7114         * lib/readlink.c: Likewise.
7115         * lib/se-context.in.h: Likewise.
7116         * lib/se-selinux.in.h: Likewise.
7117         * lib/sockets.c: Likewise.
7118         * lib/symlink.c: Likewise.
7119         * lib/symlinkat.c: Likewise.
7120         * lib/unicodeio.c: Likewise.
7121         * lib/unistr.h: Likewise.
7122         * tests/test-areadlink.c: Likewise.
7123         * tests/test-areadlinkat.c: Likewise.
7124         * tests/test-filenamecat.c: Likewise.
7125         * tests/test-fseeko.c: Likewise.
7126         * tests/test-ftello.c: Likewise.
7127         * tests/test-getdate.c: Likewise.
7128         * tests/test-getgroups.c: Likewise.
7129         * tests/test-gethostname.c: Likewise.
7130         * tests/test-quotearg.c: Likewise.
7131         * tests/test-version-etc.c: Likewise.
7132         * tests/test-xalloc-die.c: Likewise.
7133         * tests/test-xfprintf-posix.c: Likewise.
7134         * tests/test-xprintf-posix.c: Likewise.
7135         * tests/test-xvasprintf.c: Likewise.
7136
7137         tests: avoid compiler warnings
7138         * tests/test-fcntl.c (main): Delete unused parameters.
7139         * tests/test-freopen-safer.c (main): Likewise.
7140         * tests/test-xalloc-die.c (main): Mark unused parameters.
7141         * tests/test-fseeko.c (main): Likewise.
7142         * tests/test-ftello.c (main): Likewise.
7143         * tests/test-nanosleep.c (main): Avoid declaration warning.
7144         * tests/test-sleep.c (main): Likewise.
7145         * tests/test-unsetenv.c (main): Silence warning about string
7146         literal.
7147         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
7148
7149 2009-12-23  Bruno Haible  <bruno@clisp.org>
7150
7151         * tests/test-localename.c (test_locale_name): New function, extracted
7152         from main. Also test mixed situations.
7153         (test_locale_name_posix, test_locale_name_environ,
7154         test_locale_name_default): New functions.
7155         (main): Invoke them all.
7156         * modules/localename-tests (configure.ac): Test for newlocale.
7157
7158 2009-12-23  Bruno Haible  <bruno@clisp.org>
7159
7160         unistd: Ensure getcwd gets declared before being overridden.
7161         * lib/unistd.in.h: Conditionally include <io.h>.
7162
7163 2009-12-22  Bruno Haible  <bruno@clisp.org>
7164
7165         wchar: Diagnose broken combination of glibc and gcc versions and flags.
7166         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
7167         (gl_WCHAR_H): Invoke it.
7168         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
7169         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
7170         Reported by Karl Berry <karl@freefriends.org>.
7171
7172 2009-12-22  Eric Blake  <ebb9@byu.net>
7173
7174         math, unistd: avoid redundant includes
7175         * lib/math.in.h (isnan): No need to re-include <math.h>.
7176         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
7177
7178         getsubopt: work around cygwin bug
7179         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
7180         avoid conflicting with system getsubopt.
7181         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
7182         bug.
7183
7184         getopt: synchronize from glibc
7185         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
7186         parameter order.  Adjust all callers.
7187         (_getopt_internal_r, main): Adjust quoting in error messages.
7188         Drop considerations for outdated POSIX 1003.2 error message.
7189         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
7190         callers.
7191         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
7192
7193         test-getopt: test stderr behavior
7194         * modules/getopt-posix-tests (Depends-on): Add dup2.
7195         * tests/test-getopt.c (ASSERT): Avoid stderr.
7196         (main): Move stderr to a temporary file.
7197         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
7198         Instead, add parameter to inform caller if output occurred.
7199         (test_getopt): Adjust all existing tests to expect silence, and
7200         add new tests of leading ":".
7201         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7202         glibc shortcomings with leading "-:" or "+:" in optstring.
7203         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7204         Likewise.
7205         * doc/posix-functions/getopt.texi (getopt): Likewise.
7206
7207         test-getopt: enhance test
7208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
7209         supports optind=0.
7210         * tests/test-getopt.c (OPTIND_MIN): Move...
7211         * tests/test-getopt.h (OPTIND_MIN): ...here.
7212         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
7213         Require that optind=0 works, since modern BSD supports it in
7214         addition to optreset, and since coreutils expects it.
7215         (test_getopt_long_only): New test.
7216         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7217         glibc shortcomings with 'W;', and enforcement of optind=0.
7218         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7219         Likewise.
7220
7221 2009-12-21  Bruno Haible  <bruno@clisp.org>
7222
7223         localename: Improvements for MacOS X and Cygwin.
7224         * lib/localename.h (gl_locale_name_environ): New declaration.
7225         * lib/localename.c (gl_locale_name_environ): New function, extracted from
7226         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
7227         (gl_locale_name_posix): Invoke it.
7228         (gl_locale_name_default): Add comments. Use Windows native API also on
7229         Cygwin.
7230
7231 2009-12-21  Bruno Haible  <bruno@clisp.org>
7232
7233         Update list of Win32 locale ids.
7234         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
7235         (LANG_SAMI): Renamed from LANG_SAAMI.
7236         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
7237         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
7238         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
7239         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
7240         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
7241         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
7242         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
7243         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
7244         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
7245         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
7246         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
7247         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
7248         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
7249         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
7250         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
7251         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
7252         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
7253         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
7254         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
7255         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
7256         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
7257         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
7258         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
7259         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
7260         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
7261         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
7262         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
7263         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
7264         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
7265         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
7266         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
7267         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
7268         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
7269         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
7270         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
7271         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
7272         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
7273         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
7274         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
7275         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
7276         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
7277         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
7278         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
7279         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
7280         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
7281         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
7282         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
7283         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
7284         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
7285         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
7286         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
7287         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
7288         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
7289         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
7290         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
7291         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
7292         Add more languages and countries for Sami, Sorbian. Add more countries
7293         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
7294         for Pashto. Change country for Syriac, Tswana.
7295
7296 2009-12-21  Eric Blake  <ebb9@byu.net>
7297
7298         test-utimens: avoid spurious failure
7299         * tests/test-chown.h (nap): Factor...
7300         * tests/nap.h: ...into new file.
7301         * tests/test-lchown.h (nap): Avoid duplication.
7302         * tests/test-utimens-common.h (nap): Use shared implementation,
7303         necessary on file systems with 1-second resolution.
7304         * modules/chown-tests (Files): Include new file.
7305         * modules/fdutimensat-tests (Files): Likewise.
7306         * modules/futimens-tests (Files): Likewise.
7307         * modules/lchown-tests (Files): Likewise.
7308         * modules/openat-tests (Files): Likewise.
7309         * modules/utimens-tests (Files): Likewise.
7310         * modules/utimensat-tests (Files): Likewise.
7311
7312 2009-12-19  Eric Blake  <ebb9@byu.net>
7313
7314         futimens, utimensat: work around Linux bug
7315         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
7316         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7317         * lib/utimensat.c (rpl_utimensat): Work around it.
7318         * lib/futimens.c (rpl_futimens): Adjust comment.
7319
7320         utimens: work around Linux ctime bug
7321         * lib/utimens.c (detect_ctime_bug): New helper function.
7322         (update_timespec): Differentiate between workaround needed for
7323         this bug vs. what is needed for systems that lack utimensat.
7324         (fdutimens, lutimens): Work around bug.
7325
7326         utimens: check for ctime update
7327         * tests/test-utimens-common.h (check_ctime): Define.
7328         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
7329         * tests/test-futimens.h (test_futimens): Likewise.
7330         * tests/test-lutimens.h (test_lutimens): Likewise.
7331         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7332         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7333
7334 2009-12-19  Bruno Haible  <bruno@clisp.org>
7335
7336         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7337         * tests/test-dprintf-posix2.sh: New file.
7338         * tests/test-dprintf-posix2.c: New file.
7339         * modules/dprintf-posix-tests (Files): Add them.
7340         (configure.ac): Check for getrlimit and setrlimit.
7341         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7342
7343 2009-12-19  Bruno Haible  <bruno@clisp.org>
7344
7345         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7346         * tests/test-fprintf-posix3.sh: New file.
7347         * tests/test-fprintf-posix3.c: New file.
7348         * modules/fprintf-posix-tests (Files): Add them.
7349         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7350
7351 2009-12-19  Eric Blake  <ebb9@byu.net>
7352
7353         dirfd: fix prototype
7354         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7355         * lib/dirfd.c (dirfd): Likewise.
7356
7357         canonicalize: reduce memory usage
7358         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7359         allocation to size.
7360         Reported by Solar Designer <solar@openwall.com>.
7361
7362 2009-12-19  Bruno Haible  <bruno@clisp.org>
7363
7364         New module attribute 'Applicability'.
7365         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7366         * gnulib-tool: New option --extract-applicability.
7367         (func_usage): Document it.
7368         (sed_extract_prog): Recognize it.
7369         (func_get_applicability): New function.
7370         (func_import): Generalize handling of 'link-warning' module.
7371         * modules/link-warning (Applicability): New section.
7372         * modules/arg-nonnull (Applicability): New section.
7373         Repoted by Simon Josefsson <simon@josefsson.org>.
7374
7375 2009-12-19  Bruno Haible  <bruno@clisp.org>
7376
7377         fflush: tweak
7378         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7379         * lib/fseeko.c (rpl_fseeko): Likewise.
7380
7381 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7382
7383         * lib/gl_list.h: Fix typo in comment.
7384
7385 2009-12-16  Eric Blake  <ebb9@byu.net>
7386
7387         fcntl: use to simplify other modules
7388         * modules/cloexec (Depends-on): Add fcntl.
7389         * modules/fchdir (Depends-on): Likewise.
7390         * modules/fd-safer-flag (Depends-on): Likewise.
7391         * modules/unistd-safer (Depends-on): Likewise.
7392         * modules/dup3 (configure.ac): Set module indicator.
7393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7394         missing.
7395         * lib/fchdir.c (_gl_register_dup): Fix comment.
7396         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7397         * lib/dup-safer.c (dup_safer): Likewise.
7398         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7399         * lib/dup3.c (dup3): Likewise.
7400         * tests/test-fchdir.c (main): Enhance test.
7401         Fixes a dup_cloexec bug reported by Ondřej Vašík.
7402
7403         fcntl: port portions of fcntl to mingw
7404         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7405         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7406         replacement for mingw.
7407         * modules/fcntl (Description): Update.
7408         (Depends-on): Add dup2.
7409         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7410         * modules/fcntl-h (Makefile.am): Substitute it.
7411         * lib/fcntl.in.h (fcntl): Update declaration.
7412         (F_DUPFD, F_GETFD): New macros, when needed.
7413         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7414         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7415         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7416         we now guarantee.
7417
7418         fcntl: work around cygwin bug in F_DUPFD
7419         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7420         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7421         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7422         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7423         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7424
7425         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7426         * modules/fcntl (Files): List new files.
7427         (configure.ac): Run a test.
7428         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7429         * lib/fcntl.c (rpl_fcntl): Likewise.
7430         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7431         (gl_FCNTL_H): Always replace fcntl.h.
7432         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7433         * lib/fcntl.in.h (fcntl): Declare replacement.
7434         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7435         needed, plus a witness.
7436         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7437         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7438         * tests/test-fcntl.c: New file.
7439         * modules/fcntl-tests: Likewise.
7440
7441         binary-io: avoid potential compilation warning
7442         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7443         directives.
7444
7445         fflush: avoid compilation error on NetBSD
7446         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7447         between off_t and fpos_t, since the latter is sometimes a struct.
7448         * lib/fseeko.c (rpl_fseeko): Likewise.
7449         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7450
7451 2009-12-15  Eric Blake  <ebb9@byu.net>
7452
7453         fcntl-h, stdio, sys_ioctl: fix declarations
7454         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7455         function must not take arguments.
7456         * lib/sys_ioctl.in.h (ioctl): Likewise.
7457         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7458         (open): Add a link warning.
7459
7460 2009-12-15  Jim Meyering  <meyering@redhat.com>
7461
7462         areadlink, areadlink-with-size: relax license to LGPLv2+
7463         * modules/areadlink (License): Relax to LGPLv2+.
7464         * modules/areadlink-with-size (License): Likewise.
7465
7466 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7467             Bruno Haible  <bruno@clisp.org>
7468
7469         *printf: Fix memory leak.
7470         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7471         * lib/vfprintf.c (vfprintf): Likewise.
7472         * lib/dprintf.c (dprintf): Likewise.
7473         * lib/vdprintf.c (vdprintf): Likewise.
7474
7475 2009-12-14  Eric Blake  <ebb9@byu.net>
7476
7477         accept4: adjust module dependencies
7478         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7479
7480         utimens: one more try at avoiding compiler warning
7481         * lib/utimens.c (lutimens): Lower scope of result.
7482
7483 2009-12-13  Bruno Haible  <bruno@clisp.org>
7484
7485         Move the malloc checking from module 'list' to new module 'xlist'.
7486         * modules/xlist: New file.
7487         * lib/gl_xlist.h: New file.
7488         * lib/gl_xlist.c: New file.
7489         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7490         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7491         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7492         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7493         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7494         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7495         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7496         gl_sortedlist_nx_add): New declarations.
7497         (struct gl_list_implementation): Rename and change methods accordingly.
7498         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7499         (gl_list_nx_create): Renamed from gl_list_create.
7500         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7501         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7502         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7503         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7504         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7505         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7506         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7507         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7508         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7509         gl_list_create_empty.
7510         (gl_list_nx_create): Renamed from gl_list_create.
7511         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7512         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7513         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7514         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7515         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7516         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7517         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7518         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7519         * lib/gl_array_list.c: Don't include xalloc.h.
7520         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7521         NULL upon out-of-memory.
7522         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7523         out-of-memory.
7524         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7525         Change return type to 'int'.
7526         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7527         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7528         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7529         upon out-of-memory.
7530         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7531         upon out-of-memory.
7532         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7533         upon out-of-memory.
7534         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7535         upon out-of-memory.
7536         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7537         out-of-memory.
7538         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7539         Update.
7540         (gl_array_list_implementation): Update.
7541         * lib/gl_carray_list.c: Don't include xalloc.h.
7542         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7543         Return NULL upon out-of-memory.
7544         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7545         out-of-memory.
7546         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7547         Change return type to 'int'.
7548         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7549         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7550         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7551         upon out-of-memory.
7552         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7553         upon out-of-memory.
7554         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7555         out-of-memory.
7556         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7557         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7558         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7559         Update.
7560         (gl_carray_list_implementation): Update.
7561         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7562         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7563         gl_linked_create_empty. Return NULL upon out-of-memory.
7564         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7565         out-of-memory.
7566         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7567         Change return type to 'int'. Return -1 upon out-of-memory.
7568         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7569         out-of-memory.
7570         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7571         upon out-of-memory.
7572         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7573         upon out-of-memory.
7574         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7575         NULL upon out-of-memory.
7576         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7577         upon out-of-memory.
7578         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7579         out-of-memory.
7580         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7581         Update.
7582         * lib/gl_linked_list.c: Don't include xalloc.h.
7583         (gl_linked_list_implementation): Update.
7584         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7585         (add_to_bucket): Change return type to 'int'.
7586         (gl_linkedhash_list_implementation): Update.
7587         * lib/gl_anytree_list1.h (free_subtree): New function.
7588         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7589         gl_tree_create_empty. Return NULL upon out-of-memory.
7590         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7591         Change return type to 'int'. Return -1 upon out-of-memory.
7592         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7593         out-of-memory.
7594         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7595         (gl_tree_remove_node): New function, moved here from
7596         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7597         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7598         Update.
7599         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7600         malloc, not xmalloc. Return NULL upon out-of-memory.
7601         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7602         out-of-memory.
7603         (gl_tree_remove_node_from_tree): New function, extracted from
7604         gl_tree_remove_node.
7605         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7606         upon out-of-memory.
7607         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7608         out-of-memory.
7609         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7610         upon out-of-memory.
7611         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7612         upon out-of-memory.
7613         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7614         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7615         not xmalloc. Return NULL upon out-of-memory.
7616         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7617         out-of-memory.
7618         (gl_tree_remove_node_from_tree): New function, extracted from
7619         gl_tree_remove_node.
7620         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7621         upon out-of-memory.
7622         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7623         out-of-memory.
7624         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7625         upon out-of-memory.
7626         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7627         upon out-of-memory.
7628         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7629         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7630         gl_anytree_list1.h before gl_anyavltree_list2.h.
7631         (gl_avltree_list_implementation): Update.
7632         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7633         gl_anytree_list1.h before gl_anyavltree_list2.h.
7634         (gl_rbtree_list_implementation): Update.
7635         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7636         Change return type to 'int'. Return -1 upon out-of-memory. Use
7637         __builtin_expect.
7638         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7639         (gl_avltreehash_list_implementation): Update.
7640         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7641         (gl_rbtreehash_list_implementation): Update.
7642         * modules/array-list (Depends-on): Remove xalloc.
7643         * modules/carray-list (Depends-on): Likewise.
7644         * modules/linked-list (Depends-on): Likewise.
7645         * modules/linkedhash-list (Depends-on): Likewise.
7646         * modules/avltree-list (Depends-on): Likewise.
7647         * modules/rbtree-list (Depends-on): Likewise.
7648         * modules/avltreehash-list (Depends-on): Likewise.
7649         * modules/rbtreehash-list (Depends-on): Likewise.
7650
7651         * modules/xsublist: New file.
7652         * lib/gl_xsublist.h: New file.
7653         * lib/gl_xsublist.c: New file.
7654         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7655         (gl_sublist_nx_create): New declaration.
7656         * lib/gl_sublist.c: Don't include xalloc.h.
7657         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7658         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7659         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7660         Change return type to 'int'. Return -1 upon out-of-memory.
7661         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7662         upon out-of-memory.
7663         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7664         NULL upon out-of-memory.
7665         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7666         upon out-of-memory.
7667         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7668         NULL upon out-of-memory.
7669         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7670         NULL upon out-of-memory.
7671         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7672         upon out-of-memory.
7673         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7674         (gl_sublist_list_implementation): Update.
7675         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7676         upon out-of-memory.
7677         * modules/sublist (Depends-on): Remove xalloc.
7678
7679         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7680         * tests/test-carray_list.c: Likewise.
7681         * tests/test-linked_list.c: Likewise.
7682         * tests/test-linkedhash_list.c: Likewise.
7683         * tests/test-avltree_list.c: Likewise.
7684         * tests/test-rbtree_list.c: Likewise.
7685         * tests/test-avltreehash_list.c: Likewise.
7686         * tests/test-rbtreehash_list.c: Likewise.
7687         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7688         * modules/carray-list-tests (Makefile.am): Likewise.
7689         * modules/linked-list-tests (Makefile.am): Likewise.
7690         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7691         * modules/avltree-list-tests (Makefile.am): Likewise.
7692         * modules/rbtree-list-tests (Makefile.am): Likewise.
7693         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7694         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7695
7696         * NEWS: Mention the changes.
7697
7698         * lib/clean-temp.c: Include gl_xlist.h.
7699         * modules/clean-temp (Depends-on): Add xlist.
7700
7701         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7702         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7703
7704         * tests/test-array_oset.c: Include gl_xlist.h.
7705         * modules/array-oset-tests (Depends-on): Add xlist.
7706
7707         Reported by José E. Marchesi <jemarch@gnu.org>.
7708
7709 2009-12-13  Bruno Haible  <bruno@clisp.org>
7710
7711         Move the malloc checking from module 'oset' to new module 'xoset'.
7712         * modules/xoset: New file.
7713         * lib/gl_xoset.h: New file.
7714         * lib/gl_xoset.c: New file.
7715         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7716         declarations.
7717         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7718         (struct gl_oset_implementation): Rename and change methods accordingly.
7719         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7720         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7721         'int'. Mark as __warn_unused_result__.
7722         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7723         gl_oset_create_empty.
7724         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7725         'int'.
7726         * lib/gl_array_oset.c: Don't include xalloc.h.
7727         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7728         malloc, not xmalloc.
7729         (grow): Change return type to 'int'. Don't call xalloc_die.
7730         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7731         to 'int'.
7732         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7733         'int'.
7734         (gl_array_oset_implementation): Update.
7735         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7736         gl_tree_create_empty.
7737         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7738         'int'.
7739         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7740         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7741         xmalloc.
7742         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7743         not xmalloc.
7744         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7745         xmalloc.
7746         (gl_avltree_oset_implementation): Update.
7747         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7748         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7749         xmalloc.
7750         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7751         not xmalloc.
7752         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7753         xmalloc.
7754         (gl_rbtree_oset_implementation): Update.
7755         * modules/array-oset (Depends-on): Remove xalloc.
7756         * modules/avltree-oset (Depends-on): Likewise.
7757         * modules/rbtree-oset (Depends-on): Likewise.
7758         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7759         * tests/test-avltree_oset.c: Likewise.
7760         * tests/test-rbtree_oset.c: Likewise.
7761         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7762         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7763         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7764         * NEWS: Mention the change.
7765
7766 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7767
7768         maint.mk: allow a project to override release-prep commands
7769         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7770         commands into a new rule.
7771         (release-prep): New rule.
7772         (release-prep-hook): New overridable variable.
7773
7774 2009-12-13  Bruno Haible  <bruno@clisp.org>
7775
7776         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7777
7778 2009-12-13  Jim Meyering  <meyering@redhat.com>
7779
7780         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7781         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7782
7783 2009-12-12  Bruno Haible  <bruno@clisp.org>
7784
7785         duplocale: Tweak.
7786         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7787
7788 2009-12-12  Karl Berry  <karl@gnu.org>
7789
7790         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7791
7792 2009-12-12  Bruno Haible  <bruno@clisp.org>
7793
7794         * m4/po.m4: Undo incorrect untabification.
7795
7796 2009-12-12  Bruno Haible  <bruno@clisp.org>
7797
7798         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7799         * modules/c-strtod (Depends-on): Add locale.
7800         * modules/c-strtold (Depends-on): Likewise.
7801
7802 2009-12-12  Bruno Haible  <bruno@clisp.org>
7803
7804         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7805
7806 2009-12-11  Eric Blake  <ebb9@byu.net>
7807
7808         setenv: relax requirement in light of POSIX ruling
7809         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7810         not NULL.
7811         * tests/test-setenv.c (main): Relax test.
7812         * tests/test-unsetenv.c (main): Likewise.
7813         * doc/posix-functions/setenv.texi (setenv): Document this.
7814         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7815
7816 2009-12-11  Bruno Haible  <bruno@clisp.org>
7817
7818         New module 'fd-safer-flag'.
7819         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7820         * lib/dup-safer.c (dup_safer_flag): Remove function.
7821         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7822         * lib/fd-safer.c (fd_safer_flag): Remove function.
7823         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7824         * modules/cloexec (configure.ac): Drop indicator macro.
7825         * modules/fd-safer-flag: New file.
7826         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7827         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7828         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7829
7830 2009-12-11  Bruno Haible  <bruno@clisp.org>
7831
7832         Tests for module 'nl_langinfo'.
7833         * modules/nl_langinfo-tests: New file.
7834         * tests/test-nl_langinfo.sh: New file.
7835         * tests/test-nl_langinfo.c: New file.
7836
7837         New module 'nl_langinfo'.
7838         * lib/nl_langinfo.c: New file.
7839         * m4/nl_langinfo.m4: New file.
7840         * modules/nl_langinfo: New file.
7841         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7842
7843 2009-12-11  Bruno Haible  <bruno@clisp.org>
7844
7845         Tests for module 'langinfo'.
7846         * modules/langinfo-tests: New file.
7847         * tests/test-langinfo.c: New file.
7848
7849         New module 'langinfo'.
7850         * lib/langinfo.in.h: New file.
7851         * m4/langinfo_h.m4: New file.
7852         * modules/langinfo: New file.
7853         * doc/posix-headers/langinfo.texi: Mention the new module.
7854
7855 2009-12-11  Bruno Haible  <bruno@clisp.org>
7856
7857         * lib/config.charset: Untabify.
7858
7859 2009-12-11  Bruno Haible  <bruno@clisp.org>
7860
7861         * modules/unistd-safer (configure.ac): Drop indicator macro.
7862
7863 2009-12-11  Bruno Haible  <bruno@clisp.org>
7864
7865         Move pipe2-safer code to its own file.
7866         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7867         * lib/pipe-safer.c (pipe2_safer): Remove function.
7868         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7869         (Makefile.am): Add it to lib_SOURCES.
7870
7871 2009-12-10  Bruno Haible  <bruno@clisp.org>
7872
7873         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7874
7875 2009-12-10  Bruno Haible  <bruno@clisp.org>
7876
7877         Declare which arguments expect non-NULL values, for GCC and clang.
7878         * build-aux/arg-nonnull.h: New file.
7879         * modules/arg-nonnull: New file.
7880         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7881         (inet_ntop, inet_pton): Use it.
7882         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7883         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7884         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7885         (open, openat): Use it.
7886         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7887         (fnmatch): Use it.
7888         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7889         (getopt, getopt_long, getopt_long_only): Use it.
7890         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7891         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7892         Use it.
7893         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7894         (iconv_open): Use it.
7895         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7896         (strtoimax, strtoumax): Use it.
7897         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7898         (duplocale): Use it.
7899         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7900         (frexp, frexpl): Use it.
7901         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7902         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7903         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7904         (tsearch, tfind, tdelete, twalk): Use it.
7905         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7906         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7907         sigpending): Use it.
7908         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7909         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7910         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7911         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7912         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7913         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7914         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7915         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7916         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7917         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7918         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7919         Use it.
7920         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7921         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7922         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7923         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7924         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7925         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7926         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7927         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7928         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7929         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7930         strtoull, unsetenv): Use it.
7931         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7932         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7933         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7934         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7935         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7936         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7937         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7938         (strcasecmp, strncasecmp): Use it.
7939         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7940         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7941         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7942         rpl_setsockopt): Use it.
7943         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7944         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7945         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7946         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7947         (gettimeofday): Use it.
7948         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7949         (times): Use it.
7950         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7951         (uname): Use it.
7952         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7953         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7954         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7955         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7956         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7957         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7958         unlinkat, write): Use it.
7959         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7960         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7961         * lib/argv-iter.h: Include arg-nonnull.h.
7962         (_ATTRIBUTE_NONNULL_): Remove macro.
7963         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7964         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7965         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7966         optimization.
7967         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7968         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7969         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7970         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7971         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7972         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7973         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7974         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7975         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7976         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7977         * modules/dirent (Depends-on): Add arg-nonnull.
7978         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7979         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7980         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7981         * modules/fnmatch (Depends-on): Add arg-nonnull.
7982         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7983         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7984         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7985         * modules/glob (Depends-on): Add arg-nonnull.
7986         (Makefile.am): Insert arg-nonnull.h into glob.h.
7987         * modules/iconv_open (Depends-on): Add arg-nonnull.
7988         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7989         * modules/inttypes (Depends-on): Add arg-nonnull.
7990         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7991         * modules/locale (Depends-on): Add arg-nonnull.
7992         (Makefile.am): Insert arg-nonnull.h into locale.h.
7993         * modules/math (Depends-on): Add arg-nonnull.
7994         (Makefile.am): Insert arg-nonnull.h into math.h.
7995         * modules/netdb (Depends-on): Add arg-nonnull.
7996         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7997         * modules/search (Depends-on): Add arg-nonnull.
7998         (Makefile.am): Insert arg-nonnull.h into search.h.
7999         * modules/signal (Depends-on): Add arg-nonnull.
8000         (Makefile.am): Insert arg-nonnull.h into signal.h.
8001         * modules/spawn (Depends-on): Add arg-nonnull.
8002         (Makefile.am): Insert arg-nonnull.h into spawn.h.
8003         * modules/stdio (Depends-on): Add arg-nonnull.
8004         (Makefile.am): Insert arg-nonnull.h into stdio.h.
8005         * modules/stdlib (Depends-on): Add arg-nonnull.
8006         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
8007         * modules/string (Depends-on): Add arg-nonnull.
8008         (Makefile.am): Insert arg-nonnull.h into string.h.
8009         * modules/strings (Depends-on): Add arg-nonnull.
8010         (Makefile.am): Insert arg-nonnull.h into strings.h.
8011         * modules/sys_socket (Depends-on): Add arg-nonnull.
8012         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
8013         * modules/sys_stat (Depends-on): Add arg-nonnull.
8014         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
8015         * modules/sys_time (Depends-on): Add arg-nonnull.
8016         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
8017         * modules/sys_times (Depends-on): Add arg-nonnull.
8018         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
8019         * modules/sys_utsname (Depends-on): Add arg-nonnull.
8020         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
8021         * modules/time (Depends-on): Add arg-nonnull.
8022         (Makefile.am): Insert arg-nonnull.h into time.h.
8023         * modules/unistd (Depends-on): Add arg-nonnull.
8024         (Makefile.am): Insert arg-nonnull.h into unistd.h.
8025         * modules/wchar (Depends-on): Add arg-nonnull.
8026         (Makefile.am): Insert arg-nonnull.h into wchar.h.
8027         * modules/argv-iter (Depends-on): Add arg-nonnull.
8028         * tests/test-canonicalize.c (null_ptr): New function.
8029         (main): Use it.
8030         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
8031         (main): Use it.
8032         * tests/test-memmem.c (null_ptr): New function.
8033         (main): Use it.
8034         Reported by Jim Meyering.
8035
8036 2009-12-10  Bruno Haible  <bruno@clisp.org>
8037
8038         Use spaces for indentation, not tabs.
8039         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8040         * m4/*.m4: Untabify.
8041         * build-aux/*.h: Untabify.
8042         * tests/**/*.[hc]: Untabify.
8043         * README: New section "Indent with spaces, not TABs", based on
8044         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
8045         * NEWS: Mention the change.
8046
8047 2009-12-10  Bruno Haible  <bruno@clisp.org>
8048
8049         pty test: Fix link error.
8050         * modules/pty-tests (Makefile.am): Add the default LDADD value to
8051         test_pty_LDADD.
8052
8053 2009-12-07  Simon Josefsson  <simon@josefsson.org>
8054
8055         * modules/pty: New file.
8056         * modules/pty-tests: New file.
8057         * m4/pty.m4: New file.
8058         * tests/test-pty.c: New file.
8059         * doc/glibc-headers/pty.texi: Modified.
8060         * doc/glibc-functions/forkpty.texi: Modified.
8061         * doc/glibc-functions/openpty.texi: Modified.
8062
8063 2009-12-10  Bruno Haible  <bruno@clisp.org>
8064
8065         Avoid syntax error in C++ mode.
8066         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
8067
8068 2009-12-10  Bruno Haible  <bruno@clisp.org>
8069
8070         Use sed with option -e.
8071         * gnulib-tool (func_version, func_emit_copyright_notice,
8072         func_emit_initmacro_end, func_import, func_create_testdir): Pass
8073         option -e to sed.
8074         * modules/link-warning (Makefile.am): Likewise.
8075
8076 2009-12-10  Jim Meyering  <meyering@redhat.com>
8077
8078         mgetgroups: do not write bytes beyond end of malloc'd buffer
8079         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
8080         username, we call getgroups with a one-element-shorter buffer,
8081         but still told it the length was original, max_n_groups.
8082
8083 2009-12-09  Eric Blake  <ebb9@byu.net>
8084
8085         cloexec: relax license
8086         * modules/cloexec (Maintainer): Add myself.
8087         (License): Use LGPL, not GPL.
8088
8089         link-warning: optimize generation
8090         * modules/link-warning (Makefile.am): Reduce process usage.
8091
8092 2009-12-09  Bruno Haible  <bruno@clisp.org>
8093
8094         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
8095         workaround was added on 2009-11-17.
8096
8097 2009-12-09  Jim Meyering  <meyering@redhat.com>
8098             Bruno Haible  <bruno@clisp.org>
8099
8100         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
8101         * modules/link-warning (Makefile.am): Make the comment-removing sed
8102         command more robust in the face of bootstrap-prepended comment lines.
8103
8104 2009-12-09  Bruno Haible  <bruno@clisp.org>
8105
8106         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
8107         most one group.
8108
8109 2009-12-09  Simon Josefsson <simon@josefsson.org>
8110             Bruno Haible  <bruno@clisp.org>
8111
8112         * build-aux/link-warning.h: Add copyright notice.
8113         * modules/link-warning (Makefile.am): Generate link-warning.h from
8114         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
8115         * NEWS: Mention change in link-warning module.
8116         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
8117         * modules/dirent (Makefile.am): Add dependency to dirent.h.
8118         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
8119         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
8120         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
8121         * modules/math (Makefile.am): Add dependency to math.h.
8122         * modules/search (Makefile.am): Add dependency to search.h.
8123         * modules/signal (Makefile.am): Add dependency to signal.h.
8124         * modules/spawn (Makefile.am): Add dependency to spawn.h.
8125         * modules/stdio (Makefile.am): Add dependency to stdio.h.
8126         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
8127         * modules/string (Makefile.am): Add dependency to string.h.
8128         * modules/strings (Makefile.am): Add dependency to strings.h.
8129         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
8130         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
8131         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
8132         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
8133         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
8134         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
8135         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
8136         * modules/unistd (Makefile.am): Add dependency to unistd.h.
8137         * modules/wchar (Makefile.am): Add dependency to wchar.h.
8138
8139 2009-12-09  Bruno Haible  <bruno@clisp.org>
8140
8141         fchdir: Optimize away rpl_fstat when possible.
8142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
8143         REPLACE_OPEN_DIRECTORY.
8144         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
8145
8146 2009-12-09  Bruno Haible  <bruno@clisp.org>
8147
8148         * lib/fchdir.c: Update comment.
8149
8150 2009-12-09  Bruno Haible  <bruno@clisp.org>
8151
8152         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
8153
8154 2009-12-08  Eric Blake  <ebb9@byu.net>
8155
8156         fchdir: avoid memory leak on re-registration.
8157         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
8158
8159 2009-12-08  Jim Meyering  <meyering@redhat.com>
8160
8161         init.sh: avoid Solaris 10 /bin/sh portability problem
8162         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
8163         sourced script:
8164           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
8165           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
8166           bar
8167         tests/init.sh relied on that, accepting a --set-path=DIR argument,
8168         and two tests used that idiom.
8169         * tests/init.sh: Update suggested usage comments.
8170         (path_prepend_): New function, to be used in place
8171         of the --src-path=DIR option.
8172         (setup_): Move PATH-prepending code into path_prepend_.
8173         * tests/test-pread.sh: Adapt to new usage.
8174         * tests/test-xalloc-die.sh: Likewise.
8175
8176 2009-12-08  Simon Josefsson  <simon@josefsson.org>
8177
8178         * doc/gnulib.texi (Glibc pty.h): Add.
8179         * doc/glibc-functions/forkpty.texi: Add.
8180         * doc/glibc-functions/openpty.texi: Add.
8181         Suggested by Bruno Haible.
8182
8183 2009-12-08  Eric Blake  <ebb9@byu.net>
8184
8185         fchdir: fix logic bugs
8186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
8187         * tests/test-fchdir.c (main): Enhance test.
8188         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
8189         is in use.
8190
8191         dup2: fix logic bugs
8192         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
8193         REPLACE_DUP2 to decide when rpl_dup2 is needed.
8194         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
8195         exists.
8196         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
8197
8198 2009-12-07  Eric Blake  <ebb9@byu.net>
8199
8200         unlink: fix m4 detection
8201         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
8202
8203         unistd-safer: add unit test
8204         * modules/unistd-safer-tests: New file.
8205         * tests/test-dup-safer.c: Likewise.
8206         * tests/test-cloexec.c (setmode): Avoid compiler warning.
8207         * tests/test-dup2.c (setmode): Likewise.
8208         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
8209
8210         cloexec: preserve text vs. binary across dup_cloexec
8211         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
8212         mode.
8213         * modules/dup2-tests (Depends-on): Add binary-io.
8214         * modules/cloexec-tests (Depends-on): Likewise.
8215         * tests/test-dup2.c (setmode, is_mode): New helpers.
8216         (main): Add tests that translation mode is preserved.
8217         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
8218         Reported by Bruno Haible.
8219
8220         mgetgroups: reduce duplicate listings
8221         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
8222         resulting array.
8223         * tests/test-chown.h (test_chown): Simplify client.
8224         * tests/test-lchown.h (test_lchown): Likewise.
8225
8226 2009-12-06  Bruno Haible  <bruno@clisp.org>
8227
8228         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
8229         value.
8230
8231 2009-12-06  Bruno Haible  <bruno@clisp.org>
8232
8233         * lib/progname.c: Include stdio.h, stdlib.h.
8234         (set_program_name): Reject a NULL argument.
8235
8236 2009-12-05  Eric Blake  <ebb9@byu.net>
8237
8238         pipe2-safer: new module
8239         * modules/pipe2-safer: New file.
8240         * lib/unistd-safer.h (pipe2_safer): New prototype.
8241         * lib/unistd--.h (pipe2): New wrapper.
8242         * lib/pipe-safer.c (pipe2_safer): New function.
8243         * modules/pipe (Depends-on): Add pipe2-safer.
8244         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
8245
8246         stdlib-safer: preserve cloexec flag for mkostemp[s]
8247         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
8248         fd_safer_flag.
8249
8250         unistd-safer: allow preservation of cloexec status via flag
8251         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
8252         prototypes.
8253         * lib/dup-safer.c (dup_safer_flag): New function.
8254         * lib/fd-safer.c (fd_safer_flag): Likewise.
8255         * modules/cloexec (configure.ac): Set witness.
8256
8257         test-dup2: enhance test
8258         * modules/dup2-tests (Depends-on): Add cloexec.
8259         * tests/test-dup2.c (main): Enhance test.
8260
8261         cloexec: add dup_cloexec
8262         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
8263         header and comments.
8264         * lib/cloexec.c (set_cloexec_flag): Add comments.
8265         (dup_cloexec): New function, with mingw implementation borrowed
8266         from...
8267         * lib/w32spawn.h (dup_noinherit): ...here.
8268         * modules/execute (Depends-on): Add cloexec.
8269         * modules/pipe (Depends-on): Likewise.
8270         * modules/cloexec (Depends-on): Add dup2.
8271         * modules/cloexec-tests (Files): New file.
8272         * tests/test-cloexec.c: Likewise.
8273
8274         test-xalloc-die: fix test for mingw
8275         * modules/xalloc-die-tests (Files): Add tests/init.sh.
8276         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
8277         directory and .exe suffix off argv[0] output.
8278
8279         test-fseeko: fix test for mingw
8280         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
8281         than undefining fseek, so test will pass on mingw.
8282
8283 2009-12-05  Bruno Haible  <bruno@clisp.org>
8284
8285         * lib/progname.h (set_program_name): Clarify specification.
8286         * lib/progname.c (set_program_name): Likewise.
8287         Reported by Jim Meyering.
8288
8289 2009-12-05  Jim Meyering  <meyering@redhat.com>
8290
8291         maint.mk: backslash-escape parens in default regexp
8292         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
8293         backslash-escape the literal parentheses.
8294
8295         maint.mk: news-date-check: use grep -E
8296         * top/maint.mk (today): Define a Make variable, not a...
8297         (news-date-check): ...shell variable.
8298         (news-date-regexp): Use the Make variable.
8299         Use grep's -E option.  Change the failing diagnostic to mention
8300         the variable, $(news-date-regexp).
8301
8302 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
8303
8304         maintainer-makefile: allow customization of NEWS entry format
8305         * top/maint.mk (news-date-regexp): New overridable variable.
8306         (news-date-check): Use it.
8307
8308 2009-12-04  Eric Blake  <ebb9@byu.net>
8309
8310         mgetgroups: add xgetgroups, and avoid ENOSYS failures
8311         * lib/mgetgroups.h (xgetgroups): New prototype.
8312         * lib/mgetgroups.c (xgetgroups): New wrapper.
8313         (mgetgroups): Handle ENOSYS.
8314         * modules/mgetgroups (Depends-on): Add realloc.
8315         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
8316
8317         mgetgroups: avoid argument promotion issues with -1
8318         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
8319         for invalid gid_t.
8320         * tests/test-chown.h (getegid, test_chown): Likewise.
8321         * tests/test-lchown.h (getegid, test_lchown): Likewise.
8322
8323 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
8324
8325         exclude: Fix header file problems.
8326         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
8327
8328 2009-12-01  Jim Meyering  <meyering@redhat.com>
8329
8330         fts: fts_open: do not let an empty string cause immediate failure
8331         This is required in support of GNU rm, for which the command
8332         "rm A '' B" must process and remove both A and B, in spite of
8333         the empty string argument.
8334         * lib/fts.c (fts_open): Do not let the presence of an empty string
8335         cause fts_open to fail immediately.  Most fts-using tools must be
8336         able to process all arguments, in order, and can be expected to
8337         diagnose such arguments themselves.
8338
8339 2009-11-30  Eric Blake  <ebb9@byu.net>
8340
8341         utimens: fix compilation error
8342         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8343         Declare variable at right scope.
8344
8345 2009-11-29  Jim Meyering  <meyering@redhat.com>
8346
8347         bootstrap: handle perl-5.11's changed --version output
8348         * build-aux/bootstrap (get_version): Handle perl separately,
8349         since perl-5.11's --version output is different.
8350
8351 2009-11-28  Jim Meyering  <meyering@redhat.com>
8352
8353         userspec: depend on the inttostr module, too
8354         * modules/userspec (Depends-on): Add inttostr.
8355
8356         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8357         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8358         number of MAXUID when it evaluates to (uid_t) -1.
8359         Likewise for group ID.  Reported by Matt McCutchen in
8360         <http://savannah.gnu.org/bugs/?28113>
8361
8362         userspec: reformat to use spaces, not TABs
8363         * lib/userspec.c: Expand TABs to spaces.
8364         Add Emacs' "indent-tabs-mode: nil" hint.
8365
8366 2009-11-27  Eric Blake  <ebb9@byu.net>
8367
8368         getopt-gnu: flush out another BSD bug
8369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8370         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8371         flush out BSD bug.
8372         * tests/test-getopt.h (test_getopt): End lists with NULL.
8373         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8374         (test_getopt_long_posix): Enhance test.
8375         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8376         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8377         getopt-gnu.
8378         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8379         Likewise.
8380
8381 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8382
8383         * modules/idpriv-droptemp-tests (Notice): Fix text.
8384
8385 2009-11-27  Jim Meyering  <meyering@redhat.com>
8386
8387         test-xalloc-die: avoid spurious failure due to libtool argv difference
8388         In a libtool-enabled project, this test would fail due to a difference
8389         in the emitted program name, e.g.,
8390         -test-xalloc-die: memory exhausted
8391         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8392         Use program to avoid that.
8393         * modules/xalloc-die-tests (Depends-on): Add progname.
8394         * tests/test-xalloc-die.c: Include progname.h".
8395         (program_name): Remove decl.
8396         (main): Call set_program_name.
8397         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8398
8399 2009-11-26  Richard Jones  <rjones@redhat.com>
8400
8401         w32sock: leave win32 error in place.
8402         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8403
8404 2009-11-26  Eric Blake  <ebb9@byu.net>
8405
8406         init.sh: suggest to use skip_ and fail_ functions in comments
8407         * tests/init.sh: Add a sentence.
8408
8409 2009-11-25  Bruno Haible  <bruno@clisp.org>
8410
8411         init.sh: add documentation in comments
8412         * tests/init.sh: Add some developer and user documentation.
8413
8414 2009-11-26  Jim Meyering  <meyering@redhat.com>
8415
8416         init.sh: accommodate even those who specify bogus srcdir manually
8417         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8418         configure-time tests to be sanitized, so that there is no need to
8419         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8420         (with no double quotes) suffices.  However, since tests may be
8421         invoked manually, and since you may explicitly set srcdir to the
8422         name of a directory containing spaces, do quote its uses here.
8423         * tests/test-pread.sh: Likewise.
8424         Suggested by Bruno Haible.
8425
8426         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8427         * tests/test-pread.sh: Write no data into the pipe, because
8428         test-pread actually reads none.  This avoids a diagnostic,
8429         "bash: echo: write error: Broken pipe", that arises in the unusual
8430         event something is ignoring SIGPIPE, and might be interpreted
8431         as some sort of failure.  Reported by Bruno Haible.
8432
8433 2009-11-25  Jim Meyering  <meyering@redhat.com>
8434
8435         test-pread: cover failure with ESPIPE and EINVAL
8436         * tests/test-pread.c (main): Test for failure, too.
8437         * tests/test-pread.sh: Invoke with stdin on a pipe.
8438         Suggested by Eric Blake.
8439
8440         pread: improvement and fix
8441         * modules/pread (Depends-on): Depend on lseek, for portability to
8442         e.g., mingw.  Suggested by Eric Blake.
8443         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8444
8445         unistd.in.h: correct declaration of pread
8446         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8447         Reported by Richard W.M. Jones.
8448
8449         test-pread.sh: distribute the test script
8450         * modules/pread-tests (Files): Include test-pread.sh.
8451
8452         test-pread.sh: clean up
8453         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8454         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8455         That is unnecessary, since it's always ".".
8456         Suggestion from Eric Blake.
8457
8458         test-pread.sh: make executable
8459         * tests/test-pread.sh: Set executable bit.
8460         Reported by Eric Blake.
8461
8462         correct typo in test-pread.sh
8463         * tests/test-pread.sh: Add #! line.
8464
8465         test pread
8466         * tests/test-pread.c: New file.
8467         * tests/test-pread.sh: Likewise.
8468         * modules/pread-tests: Likewise.
8469
8470         pread: new module
8471         * modules/pread: New file.
8472         * lib/unistd.in.h (pread): Define/declare.
8473         * lib/pread.c (pread): New file.
8474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8475         * modules/unistd (Makefile.am): Substitute witnesses.
8476         * doc/posix-functions/pread.texi (pread): Update.
8477         * MODULES.html.sh: Add pread.
8478
8479 2009-11-25  Jim Meyering  <meyering@redhat.com>
8480
8481         tests/init.sh: new file to be used via most *.sh tests
8482         * tests/init.sh: New file.
8483
8484 2009-11-25  Eric Blake  <ebb9@byu.net>
8485
8486         utimens: work around older Linux failure with symlinks
8487         * lib/utimens.c (lutimensat_works_really): New variable.
8488         (fdutimens, lutimens): Use it to manage kernels that support
8489         nanosecond times on files, but not on symlinks.
8490         Reported by Ondřej Vašík.
8491
8492         utimes: fix configure grammar
8493         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8494
8495 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8496
8497         regex: Fix fastmap for multibyte character ranges.
8498         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8499         characters when a multibyte character range is included.
8500
8501 2009-11-22  Andy Wingo  <wingo@pobox.com>
8502
8503         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8504         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8505
8506 2009-11-24  Bruno Haible  <bruno@clisp.org>
8507
8508         doc: Most *_l functions exist in MacOS X 10.5.
8509         * doc/posix-functions/duplocale.texi: Update platforms list.
8510         * doc/posix-functions/freelocale.texi: Likewise.
8511         * doc/posix-functions/newlocale.texi: Likewise.
8512         * doc/posix-functions/uselocale.texi: Likewise.
8513         * doc/posix-functions/isalnum_l.texi: Likewise.
8514         * doc/posix-functions/isalpha_l.texi: Likewise.
8515         * doc/posix-functions/isblank_l.texi: Likewise.
8516         * doc/posix-functions/iscntrl_l.texi: Likewise.
8517         * doc/posix-functions/isdigit_l.texi: Likewise.
8518         * doc/posix-functions/isgraph_l.texi: Likewise.
8519         * doc/posix-functions/islower_l.texi: Likewise.
8520         * doc/posix-functions/isprint_l.texi: Likewise.
8521         * doc/posix-functions/ispunct_l.texi: Likewise.
8522         * doc/posix-functions/isspace_l.texi: Likewise.
8523         * doc/posix-functions/isupper_l.texi: Likewise.
8524         * doc/posix-functions/iswalnum_l.texi: Likewise.
8525         * doc/posix-functions/iswalpha_l.texi: Likewise.
8526         * doc/posix-functions/iswblank_l.texi: Likewise.
8527         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8528         * doc/posix-functions/iswctype_l.texi: Likewise.
8529         * doc/posix-functions/iswdigit_l.texi: Likewise.
8530         * doc/posix-functions/iswgraph_l.texi: Likewise.
8531         * doc/posix-functions/iswlower_l.texi: Likewise.
8532         * doc/posix-functions/iswprint_l.texi: Likewise.
8533         * doc/posix-functions/iswpunct_l.texi: Likewise.
8534         * doc/posix-functions/iswspace_l.texi: Likewise.
8535         * doc/posix-functions/iswupper_l.texi: Likewise.
8536         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8537         * doc/posix-functions/isxdigit_l.texi: Likewise.
8538         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8539         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8540         * doc/posix-functions/strcoll_l.texi: Likewise.
8541         * doc/posix-functions/strfmon_l.texi: Likewise.
8542         * doc/posix-functions/strftime_l.texi: Likewise.
8543         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8544         * doc/posix-functions/strxfrm_l.texi: Likewise.
8545         * doc/posix-functions/tolower_l.texi: Likewise.
8546         * doc/posix-functions/toupper_l.texi: Likewise.
8547         * doc/posix-functions/towctrans_l.texi: Likewise.
8548         * doc/posix-functions/towlower_l.texi: Likewise.
8549         * doc/posix-functions/towupper_l.texi: Likewise.
8550         * doc/posix-functions/wcscoll_l.texi: Likewise.
8551         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8552         * doc/posix-functions/wctrans_l.texi: Likewise.
8553         * doc/posix-functions/wctype_l.texi: Likewise.
8554         * doc/glibc-functions/strptime_l.texi: Likewise.
8555         * doc/glibc-functions/strtod_l.texi: Likewise.
8556         * doc/glibc-functions/strtof_l.texi: Likewise.
8557         * doc/glibc-functions/strtol_l.texi: Likewise.
8558         * doc/glibc-functions/strtold_l.texi: Likewise.
8559         * doc/glibc-functions/strtoll_l.texi: Likewise.
8560         * doc/glibc-functions/strtoul_l.texi: Likewise.
8561         * doc/glibc-functions/strtoull_l.texi: Likewise.
8562         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8563         * doc/glibc-functions/wcstod_l.texi: Likewise.
8564         * doc/glibc-functions/wcstof_l.texi: Likewise.
8565         * doc/glibc-functions/wcstol_l.texi: Likewise.
8566         * doc/glibc-functions/wcstold_l.texi: Likewise.
8567         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8568         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8569         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8570
8571 2009-11-24  Bruno Haible  <bruno@clisp.org>
8572
8573         duplocale: Fix logic bug.
8574         * lib/duplocale.c: Don't include <langinfo.h>.
8575         (_NL_LOCALE_NAME): Remove macro.
8576         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8577         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8578
8579 2009-11-23  Jim Meyering  <meyering@redhat.com>
8580
8581         test-update-copyright: don't hard-code /usr/bin/perl
8582         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8583         perl to print the current year.  Gilles Espinasse reported that
8584         the replaced use of perl was hard-coded as /usr/bin/perl.
8585
8586 2009-11-23  Bruno Haible  <bruno@clisp.org>
8587
8588         duplocale: Add support for glibc 2.3.x.
8589         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8590
8591 2009-11-22  Bruno Haible  <bruno@clisp.org>
8592
8593         vasnprintf: Tiny optimization.
8594         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8595         MacOS X.
8596
8597 2009-11-22  Bruno Haible  <bruno@clisp.org>
8598
8599         Tests for module 'duplocale'.
8600         * modules/duplocale-tests: New file.
8601         * tests/test-duplocale.c: New file.
8602
8603         New module 'duplocale'.
8604         * m4/duplocale.m4: New file.
8605         * lib/locale.in.h (duplocale): New declaration.
8606         * lib/duplocale.c: New file.
8607         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8608         gl_LOCALE_H_DEFAULTS): New macros.
8609         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8610         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8611         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8612         REPLACE_DUPLOCALE.
8613         * modules/duplocale: New file.
8614         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8615
8616 2009-11-22  Bruno Haible  <bruno@clisp.org>
8617
8618         * modules/locale-tests (configure.ac): Test for newlocale function.
8619         * tests/test-locale.c: When the system has extended locale functions,
8620         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8621
8622         locale: Make locale_t available when possible.
8623         * lib/locale.in.h: Include <xlocale.h> when it exists.
8624         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8625         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8626         * modules/locale (Depends-on): Add extensions.
8627         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8628         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8629
8630 2009-11-22  Bruno Haible  <bruno@clisp.org>
8631
8632         Add comments.
8633         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8634         invocation.
8635         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8636         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8637         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8638
8639 2009-11-22  Bruno Haible  <bruno@clisp.org>
8640
8641         error: account for the possibility of freopen (stdout).
8642         * lib/error.c: Include <unistd.h>.
8643         (flush_stdout): New function, extracted from error and error_at_line.
8644         Determine stdout's fd dynamically.
8645         (error, error_at_line): Invoke flush_stdout.
8646         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8647         * modules/error (Depends-on): Add unistd.
8648
8649 2009-11-22  Bruno Haible  <bruno@clisp.org>
8650
8651         diffseq: Add comment.
8652         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8653
8654 2009-11-22  Jim Meyering  <meyering@redhat.com>
8655
8656         c-stack: avoid defining an unused static function
8657         * lib/c-stack.c (find_stack_direction): Do not define this function
8658         when it will not be used.
8659
8660         diffseq: avoid spurious gcc warnings
8661         * lib/diffseq.h (IF_LINT2): Define.
8662         (compareseq): Use it to initialize two members of "part".
8663         This avoids two used-uninitialized warnings.
8664
8665 2009-11-21  Jim Meyering  <meyering@redhat.com>
8666
8667         c-stack: avoid "ignoring return value of `write'" warning
8668         * lib/c-stack.c: Include "ignore-value.h".
8669         (die): Explicitly ignore each write return value.
8670         * modules/c-stack (Depends-on): Add ignore-value.
8671
8672 2009-11-21  Bruno Haible  <bruno@clisp.org>
8673
8674         diffseq: reduce scope of variable 'best'.
8675         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8676         variable, earlier used for two different purposes.
8677
8678 2009-11-21  Jim Meyering  <meyering@redhat.com>
8679
8680         diffseq: remove useless assignment to "best"
8681         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8682         assignment.  At that point "best" is already guaranteed to be zero.
8683
8684 2009-11-20  Eric Blake  <ebb9@byu.net>
8685
8686         build: mention ftp redirector in release announcements
8687         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8688         values that used to come from cfg.mk; mention FTP redirect URL.
8689         * build-aux/announce-gen: Mention the mirror list.
8690         Suggested by Karl Berry.
8691
8692         nanosleep: improve port to mingw
8693         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8694         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8695         LIB_NANOSLEEP, but only when needed.
8696         * modules/select (Link): Document LIBSOCKET.
8697         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8698         enough.
8699
8700         nanosleep: work around cygwin bug
8701         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8702         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8703         bug.
8704         (getnow): Delete, not needed.
8705         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8706         LIB_CLOCK_GETTIME.
8707         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8708         clock-time, gettime.
8709         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8710         bug.
8711         * modules/nanosleep-tests: New test.
8712         * tests/test-nanosleep.c: New file.
8713
8714         sleep: work around cygwin bug
8715         * lib/sleep.c (rpl_sleep): Work around the bug.
8716         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8717         (gl_PREREQ_SLEEP): Delete unused macro.
8718         * modules/sleep (Depends-on): Add verify.
8719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8720         * modules/unistd (Makefile.am): Substitute witness.
8721         * lib/unistd.in.h (sleep): Update prototype.
8722         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8723         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8724         * modules/sleep-tests (Depends-on): Check for alarm.
8725
8726 2009-11-20  Jim Meyering  <meyering@redhat.com>
8727
8728         maint.mk: improve sc_prohibit_magic_number_exit
8729         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8730         so it does not match uses like System.exit(1).
8731         Add comments showing how to correct all offenders.
8732
8733 2009-11-19  Eric Blake  <ebb9@byu.net>
8734
8735         xalloc-die-tests: add missing library
8736         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8737
8738         test-xvasprintf: silence compiler warnings
8739         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8740         empty string from gcc.
8741
8742 2009-11-19  Jim Meyering  <meyering@redhat.com>
8743
8744         xfreopen: new module, from coreutils
8745         * modules/xfreopen: New module.
8746         * lib/xfreopen.c: New file.
8747         * lib/xfreopen.h: New file.
8748         * MODULES.html.sh (File stream based Input/Output"): Add it.
8749
8750 2009-11-19  Eric Blake  <ebb9@byu.net>
8751
8752         manywarnings: depend on warnings
8753         * modules/manywarnings (Depends-on): Add warnings.
8754
8755         build: avoid compiler warnings
8756         * lib/select.c (rpl_select): Delete unused variable.
8757         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8758
8759 2009-11-18  Eric Blake  <ebb9@byu.net>
8760
8761         tests: avoid false negative with --with-packager
8762         * tests/test-version-etc.sh: Discard packager information.
8763         * tests/test-argp-version-etc-1.sh: Likewise.
8764         Reported by Mike Frysinger.
8765
8766         utimens: fix regression on Solaris
8767         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8768         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8769         can only change fd timestamps via futimesat.  Instead, use an
8770         additional witness macro to avoid BSD bug.
8771         Reported by Jim Meyering.
8772
8773 2009-11-17  Eric Blake  <ebb9@byu.net>
8774
8775         usleep: use it to simplify tests
8776         * modules/stat-time-tests (Depends-on): Add usleep.
8777         (configure.ac): Drop usleep check.
8778         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8779         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8780         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8781         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8782         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8783         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8784         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8785         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8786         Likewise.
8787         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8788         * tests/test-lchown.h (nap): Likewise.
8789         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8790         * tests/test-stat-time.c (nap): Likewise.
8791         * tests/test-utimens-common.h (nap): Update comments.
8792
8793         usleep: new module
8794         * modules/usleep: New file.
8795         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8796         * lib/usleep.c (usleep): Likewise.
8797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8798         * modules/unistd (Makefile.am): Substitute witnesses.
8799         * lib/unistd.in.h (usleep): Add declaration.
8800         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8801         * MODULES.html.sh (Date and time): Likewise.
8802         * modules/usleep-tests (Depends-on): New test.
8803         * tests/test-usleep.c: New file.
8804
8805         chown: work around OpenBSD bug
8806         * lib/chown.c (rpl_chown): Work around the bug.
8807         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8808         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8809         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8810         * modules/chown (Depends-on): Add stdbool.
8811         * modules/lchown (Depends-on): Likewise.
8812         * doc/posix-functions/chown.texi (chown): Document the bug.
8813         * doc/posix-functions/lchown.texi (lchown): Likewise.
8814         * tests/test-lchown.h (test_chown): Relax test.
8815
8816         mkstemp: avoid conflict with C++ keyword template
8817         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8818         * lib/mkostemp.c (mkostemp): Likewise.
8819         * lib/mkostemps.c (mkostemps): Likewise.
8820         * lib/mkstemp.c (mkstemp): Likewise.
8821         * lib/mkstemps.c (mkstemps): Likewise.
8822
8823         xalloc-die-tests: optimize
8824         * tests/test-xalloc-die.sh: Reduce number of processes.
8825
8826 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8827
8828         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8829         patch from ludo@gnu.org (Ludovic Courtès).
8830
8831 2009-11-17  Jim Meyering  <meyering@redhat.com>
8832
8833         version-etc: use proper license string
8834         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8835         * modules/version-etc-fsf: Likewise.
8836
8837 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8838
8839         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8840         printed to stdout.  Deal with EOL differences.
8841
8842 2009-11-17  Eric Blake  <ebb9@byu.net>
8843
8844         unsetenv: work around Solaris bug
8845         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8846         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8847         Reported by Jim Meyering.
8848
8849         vasnprintf: avoid compiler warnings
8850         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8851         variables.
8852         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8853
8854 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8855
8856         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8857         settings since xalloc-die is no longer the self test,
8858         xalloc-die.sh is.
8859
8860 2009-11-17  Jim Meyering  <meyering@redhat.com>
8861
8862         test-xalloc-die.sh: make the code agree with the commit log
8863         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8864         at the end, just in case you happen to have a test-xalloc-die
8865         program in some other PATH directory.
8866
8867         test-xalloc-die.sh: fix a portability bug
8868         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8869         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8870         Otherwise, argv[0] (as often seen in diagnostics) would be too
8871         system-dependent, sometimes with, and sometimes without the leading "./".
8872
8873         version-etc-fsf: relax license to LGPLv3+
8874         * modules/version-etc-fsf (License): Relax license.
8875
8876 2009-11-16  Eric Blake  <ebb9@byu.net>
8877
8878         xalloc-die-tests: avoid printing null pointer
8879         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8880         shell script.
8881         * tests/test-xalloc-die.c (program_name): Declare.
8882         * tests/test-xalloc-die.sh (tmpfiles): New file.
8883
8884         setenv, unsetenv: work around various bugs
8885         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8886         (setenv) [HAVE_SETENV]: Work around bugs.
8887         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8888         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8889         for bugs.
8890         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8891         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8892         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8893         * modules/stdlib (Makefile.am): Update substitutions.
8894         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8895         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8896         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8897         * modules/setenv-tests: New test.
8898         * modules/unsetenv-tests: Likewise.
8899         * tests/test-setenv.c: New file.
8900         * tests/test-unsetenv.c: Likewise.
8901
8902 2009-11-16  Jim Meyering  <meyering@redhat.com>
8903
8904         version-etc: relax license to LGPLv3+
8905         * modules/version-etc (License): Relax license.
8906
8907         better AC_REQUIRE expanded-before-required-warning avoidance
8908         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8909         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8910         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8911         which is no longer needed.
8912
8913 2009-11-16  Eric Blake  <ebb9@byu.net>
8914
8915         test-freading: clean up temporary file
8916         * tests/test-freading.c (main): Remove file on success, and use
8917         ASSERT more liberally.
8918         Reported by Jim Meyering.
8919
8920 2009-11-16  Jim Meyering  <meyering@redhat.com>
8921
8922         avoid new AC_REQUIRE expanded-before-required warnings
8923         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8924         merely using it.
8925         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8926         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8927
8928 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8929
8930         * tests/test-xalloc-die.c: New file.
8931         * modules/xalloc-die-tests: New file.
8932         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8933         XFAIL_TESTS so it can be appended by modules.
8934
8935 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8936
8937         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8938         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8939
8940 2009-11-14  Eric Blake  <ebb9@byu.net>
8941
8942         fnmatch: avoid compiler warning
8943         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8944         to silence compiler warning about mismatch signedness in ?:.
8945         Reported by Robert Millan.
8946
8947         intprops: add double-inclusion guard
8948         * lib/intprops.h: Allow idempotent includes.
8949         Suggested by Bruce Korb.
8950
8951         openat: detect Solaris fchownat bug
8952         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8953         penalizing glibc chownat when only lchownat is broken.
8954         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8955         trailing slash bugs.
8956         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8957         * modules/openat-tests (Files): Include more files.
8958         (Depends-on): Add mgetgroups, sleep, stat-time.
8959         (configure.ac): Add additional checks.
8960         (Makefile.am): Build new test.
8961         * tests/test-fchownat.c: New file.
8962
8963         lchown: detect Solaris and FreeBSD bug
8964         * lib/lchown.c (rpl_lchown): Work around bug.
8965         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8967         * modules/unistd (Makefile.am): Populate it.
8968         * lib/unistd.in.h (lchown): Update declaration.
8969         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8970         * modules/lchown-tests: New file.
8971         * tests/test-lchown.h (test_lchown): Likewise.
8972         * tests/test-lchown.c (main): Likewise.
8973
8974         chown: detect Solaris and FreeBSD bug
8975         * lib/chown.c (rpl_chown): Work around bug.
8976         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8977         (gl_PREREQ_CHOWN): Delete.
8978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8979         * modules/unistd (Makefile.am): Populate it.
8980         * lib/unistd.in.h (chown): Update declaration.
8981         * lib/lchown.c (chown): Update client.
8982         * modules/lchown (Depends-on): Add lstat.
8983         * doc/posix-functions/chown.texi (chown): Document the bug.
8984         * doc/posix-functions/getgroups.texi (getgroups): Document
8985         getgroups pitfall.
8986         * modules/chown-tests: New file.
8987         * tests/test-chown.h (test_chown): Likewise.
8988         * tests/test-chown.c (main): Likewise.
8989
8990 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8991
8992         gnulib-tool: correctly detect absence of m4 directories
8993         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8994
8995 2009-11-14  Jim Meyering  <meyering@redhat.com>
8996
8997         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8998         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8999
9000 2009-11-14  John W. Eaton  <jwe@gnu.org>
9001
9002         strftime.h: wrap funtion declaration in extern "C" block
9003         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
9004
9005 2009-11-13  Eric Blake  <ebb9@byu.net>
9006
9007         getgroups: avoid compiler warning
9008         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
9009
9010         getgroups: work around FreeBSD bug
9011         * lib/getgroups.c (rpl_getgroups): Work around the bug.
9012         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
9013         * doc/posix-functions/getgroups.texi (getgroups): Document it.
9014         * tests/test-getgroups.c (main): Fix buffer overrun.
9015
9016         getgroups: avoid compilation failure
9017         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
9018         * modules/getgroups (Depends-on): Add stdint.
9019
9020 2009-11-13  Jim Meyering  <meyering@redhat.com>
9021
9022         test-getgroups: avoid compilation failure
9023         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
9024
9025 2009-11-13  Eric Blake  <ebb9@byu.net>
9026
9027         mgetgroups: new module, taken from coreutils
9028         * modules/mgetgroups: New file.
9029         * lib/mgetgroups.h: Likewise.
9030         * lib/mgetgroups.c (mgetgroups): Likewise.
9031         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
9032         * MODULES.html.sh (Users and groups): Mention it.
9033
9034         getgroups: don't expose GETGROUPS_T to user
9035         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
9036         an element at a time if GETGROUPS_T is wrong size.
9037         * lib/getugroups.h (getugroups): Change signature.
9038         * lib/unistd.in.h (getgroups): Likewise.
9039         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
9040         signature needs fixing.
9041         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
9042         AC_TYPE_GETGROUPS.
9043         * modules/group-member (Depends-on): Add getgroups.
9044         * lib/group-member.c (group_info, get_group_info): Use gid_t.
9045         (group_member): Rely on getgroups replacement.
9046         * lib/getugroups.c (getugroups): Use gid_t.
9047         * tests/test-getgroups.c (main): Likewise.
9048         * NEWS: Mention the signature change.
9049         * doc/posix-functions/getgroups.texi (getgroups): Mention the
9050         problem with signature.
9051         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
9052         GETGROUPS_T is still useful for setgroups.
9053
9054         getgroups, getugroups: provide stubs for mingw
9055         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
9056         * lib/getugroups.c (getugroups): Likewise.
9057         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
9058         function.  Modernize replacement scheme.
9059         (gl_PREREQ_GETGROUPS): Delete.
9060         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
9061         * modules/getgroups (configure.ac): Declare witness.
9062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
9063         * modules/unistd (Depends-on): Substitute witness.
9064         * lib/unistd.in.h (getgroups): Declare replacement.
9065
9066         getgroups: avoid calling exit
9067         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
9068         drop xalloc.
9069         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
9070         dependencies.
9071         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
9072         exiting, in the rare case of malloc failure.
9073
9074         getgroups: fix logic error
9075         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
9076         has more than 20 groups.
9077         * modules/getgroups-tests: New test.
9078         * tests/test-getgroups.c: New file.
9079
9080 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9081
9082         * tests/test-base64.c: Improve.
9083
9084 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9085
9086         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
9087         Blake <ebb9@byu.net>.
9088
9089 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9090
9091         * tests/test-xvasprintf.c: Add %s%s related checks.
9092
9093 2009-11-12  Eric Blake  <ebb9@byu.net>
9094
9095         version-etc: match standards.texi style
9096         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
9097         and use <> only for URLs.
9098
9099 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
9100
9101         fts: do not fail on a submount during traversal
9102         * lib/fts.c (fts_build): Read the stat info again after opening
9103         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
9104         Original report at http://bugzilla.redhat.com/501848.
9105
9106 2009-11-12  Jim Meyering  <meyering@redhat.com>
9107
9108         bootstrap: sync from coreutils
9109         * build-aux/bootstrap (bootstrap_epilogue): New function.
9110         Use git_modules_config in one more place.  This make bootstrap's
9111         --gnulib-srcdir option more useful for testing.
9112
9113         bootstrap: generalize autoheader check
9114         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
9115         AC_CONFIG_HEADERS.
9116
9117 2009-11-11  Eric Blake  <ebb9@byu.net>
9118
9119         mkfifoat: use new modules for Solaris and BSD bugs
9120         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
9121         * lib/mkfifoat.c (mknodat): Split...
9122         * lib/mknodat.c (mknodat): ...into new file.
9123         * modules/mkfifoat (Files): Ship new file.
9124         (Depends-on): Add mkfifo, mknod.
9125         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
9126         (Depends-on): Add symlink.
9127         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
9128         redundant with test_mkfifo.h.
9129         (do_mkfifoat, do_mknodat): New helpers.
9130
9131         mknod: new module
9132         * modules/mknod: New file.
9133         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
9134         * lib/mknod.c (mknod): Likewise.
9135         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9136         defaults.
9137         * modules/sys_stat (Makefile.am): Substitute them.
9138         * lib/sys_stat.in.h (mknod): Declare replacement.
9139         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9140         Document it.
9141         * doc/posix-functions/mknod.texi (mknod): Likewise.
9142         * modules/mknod-tests: New test.
9143         * tests/test-mknod.c: Likewise.
9144
9145         mkfifo: new module
9146         * modules/mkfifo: New file.
9147         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9148         * lib/mkfifo.c (mkfifo): Likewise.
9149         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9150         defaults.
9151         * modules/sys_stat (Makefile.am): Substitute them.
9152         * lib/sys_stat.in.h (mkfifo): Declare replacement.
9153         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9154         Document it.
9155         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
9156         * modules/mkfifo-tests: New test.
9157         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
9158         from test-mkfifoat.c.
9159         * tests/test-mkfifo.c: New file.
9160
9161         readlink: detect FreeBSD bug
9162         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
9163         slash on symlink.
9164         * doc/posix-functions/readlink.texi (readlink): Document the bug.
9165         * tests/test-readlink.h (test_readlink): Enhance test.
9166
9167         symlink: detect FreeBSD bug
9168         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
9169         slash on symlink.
9170         * doc/posix-functions/symlink.texi (symlink): Document the bug.
9171         * tests/test-symlink.h (test_symlink): Enhance test.
9172
9173 2009-11-10  Eric Blake  <ebb9@byu.net>
9174
9175         link: detect FreeBSD bug
9176         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
9177         symlink.
9178         * doc/posix-functions/link.texi (link): Document the bug.
9179         * tests/test-link.h (test_link): Enhance test.
9180         * tests/test-linkat.c (main): Update caller.
9181
9182         unlink, remove: detect FreeBSD bug
9183         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
9184         slash on symlink.
9185         * doc/posix-functions/unlink.texi (unlink): Document the bug.
9186         * doc/posix-functions/remove.texi (remove): Likewise.
9187         * tests/test-unlink.h (test_unlink): Enhance test.
9188         * tests/test-remove.c (main): Likewise.
9189
9190 2009-11-09  Eric Blake  <ebb9@byu.net>
9191
9192         rename: detect FreeBSD bug
9193         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
9194         slash on symlink.
9195         * modules/renameat-tests (Depends-on): Add filenamecat.
9196         * tests/test-rename.h (test_rename): Allow one more errno.
9197         * tests/test-renameat.c (main): Likewise.
9198         * doc/posix-functions/rename.texi (rename): Document the bug.
9199
9200         open: detect FreeBSD bug
9201         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
9202         symlink.
9203         * doc/posix-functions/open.texi (open): Document the bug.
9204         * doc/posix-functions/utimes.texi (utimes): Likewise.
9205         * tests/test-open.h (test_open): Add parameters, and test symlink
9206         handling.
9207         * tests/test-open.c (main): Adjust caller.
9208         * tests/test-fcntl-safer.c (main): Likewise.
9209         * modules/open-tests (Depends-on): Add stdbool, symlink.
9210         * modules/fcntl-safer-tests (Depends-on): Likewise.
9211         * tests/test-openat.c (main): Add test-open tests.
9212
9213         stat: detect FreeBSD bug
9214         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
9215         symlink.
9216         * doc/posix-functions/stat.texi (stat): Document the bug.
9217         * tests/test-stat.h (test_stat_func): Add argument.
9218         * tests/test-stat.c (main): Adjust caller.
9219         * tests/test-fstatat.c (main): Likewise.
9220         * modules/stat-tests (Depends-on): Add stdbool, symlink.
9221         Reported by Jim Meyering.
9222
9223 2009-11-09  James Youngman  <jay@gnu.org>
9224
9225         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
9226         * lib/strftime.c: Correct placement of #include "ignore-value.h".
9227
9228 2009-11-08  Jim Meyering  <meyering@redhat.com>
9229
9230         utimens: remove invalid futimesat call
9231         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
9232         It used the file descriptor of the target file as the DIR_FD
9233         parameter and NULL as the file name.  That caused failure with
9234         errno == EFAULT on FreeBSD-8.0-rc2
9235
9236 2009-11-07  Eric Blake  <ebb9@byu.net>
9237
9238         fflush, freadseek: use fseeko, not fseek
9239         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9240         (clear_ungetc_buffer): Avoid potential problems on large files.
9241         * lib/freadseek.c (freadseek): Likewise.
9242         * modules/freadseek (Depends-on): Add fseeko.
9243         * modules/fseek (configure.ac): Set a witness.
9244         * tests/test-fflush.c (main): Use fseeko.
9245         * tests/test-fpurge.c (fseek): Disable link warning.
9246         * tests/test-freadable.c (fseek): Likewise.
9247         * tests/test-freading.c (fseek): Likewise.
9248         * tests/test-fseeko.c (fseek): Likewise.
9249         * tests/test-ftell.c (fseek): Likewise.
9250         * tests/test-ftello.c (fseek): Likewise.
9251         * tests/test-fwritable.c (fseek): Likewise.
9252         * tests/test-fwriting.c (fseek): Likewise.
9253
9254 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9255
9256         * modules/memchr (Depends-on): Drop getpagesize dependency.
9257
9258 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9259
9260         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
9261         Reported by Ludovic Courtès.
9262         * build-aux/pmccabe2html: Improve example usage.
9263         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
9264
9265 2009-11-06  Jim Meyering  <meyering@redhat.com>
9266
9267         do-release-commit-and-tag: New module.
9268         Automate the release-commit and tag process.
9269         * build-aux/do-release-commit-and-tag: New script, from coreutils.
9270         * modules/do-release-commit-and-tag: New file.
9271         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9272
9273 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9274
9275         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
9276         because test-select.c uses inet_pton.
9277
9278 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9279
9280         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
9281         GETADDRINFO_LIB.  Bump serial number.
9282         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
9283         Suggested by Eric Blake <ebb9@byu.net>.
9284
9285 2009-11-05  Eric Blake  <ebb9@byu.net>
9286
9287         strtod: detect darwin bug
9288         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
9289         Reported by Leo Davis.
9290
9291         freopen-safer: new module
9292         * modules/freopen-safer: New module.
9293         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
9294         * lib/freopen-safer.c (freopen_safer): New file.
9295         * lib/stdio-safer.h (freopen_safer): New declaration.
9296         * lib/stdio--.h (freopen): New override.
9297         * MODULES.html.sh (File stream based Input/Output): Mention it.
9298         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
9299         freopen-safer module.
9300         * doc/posix-functions/stderr.texi (stderr): Likewise.
9301         * doc/posix-functions/stdin.texi (stdin): Likewise.
9302         * doc/posix-functions/stdout.texi (stdout): Likewise.
9303         * modules/freopen-safer-tests: New test.
9304         * tests/test-reopen-safer.c: New file.
9305
9306 2009-11-05  Jim Meyering  <meyering@redhat.com>
9307
9308         maint.mk: Prohibit inclusion of "close-stream.h" without use.
9309         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9310
9311 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9312
9313         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
9314
9315 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9316
9317         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
9318
9319 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9320
9321         Fix link error.
9322         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9323         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9324
9325 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9326
9327         * tests/test-func.c: Also test value of __func__.
9328
9329 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9330
9331         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
9332         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9333
9334 2009-11-05  Bruno Haible  <bruno@clisp.org>
9335
9336         Fix link error.
9337         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9338         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9339         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9340
9341 2009-11-05  Bruno Haible  <bruno@clisp.org>
9342
9343         Tests for module 'inet_pton'.
9344         * modules/inet_pton-tests: New file.
9345         * tests/test-inet_pton.c: New file.
9346
9347 2009-11-05  Bruno Haible  <bruno@clisp.org>
9348
9349         Tests for module 'inet_ntop'.
9350         * modules/inet_ntop-tests: New file.
9351         * tests/test-inet_ntop.c: New file.
9352
9353 2009-11-04  Eric Blake  <ebb9@byu.net>
9354
9355         stdlib-safer: wrap all mkstemp variants
9356         * modules/mkostemp (configure.ac): Set witness.
9357         * modules/mkostemps (configure.ac): Likewise.
9358         * modules/mkstemps (configure.ac): Likewise.
9359         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9360         (mkstemps_safer): Wrap more functions.
9361         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9362         wrapping.
9363         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9364         (mkstemps_safer): Implement the wrappers.
9365
9366         mkstemps, mkostemps: new modules
9367         * modules/mkostemps: New module.
9368         * modules/mkstemps: Likewise.
9369         * lib/mkostemps.c (mkostemps): New file.
9370         * lib/mkstemps.c (mkstemps): Likewise.
9371         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9372         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9373         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9374         * modules/stdlib (Makefile.am): Substitute them.
9375         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9376         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9377         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9378         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9379         * MODULES.html.sh (File system functions): Mention them.
9380
9381         tempname: resync from glibc
9382         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9383         same values for __GT_FILE as glibc.  Abort even when assertions
9384         are disabled.
9385         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9386         match its value otherwise.  Allow idempotent inclusion.
9387         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9388         * lib/mkostemp.c (mkostemp): Likewise.
9389         * lib/mkstemp.c (mkstemp): Likewise.
9390         * lib/tmpfile.c (tmpfile): Likewise.
9391         * NEWS: Document this.
9392
9393         utimens: fix use of futimens on older Linux
9394         * lib/utimens.c (fdutimens): Use updated, rather than original,
9395         timespec to avoid bug in older Linux kernel.
9396         Reported by Simon Josefsson.
9397
9398 2009-11-04  Bruno Haible  <bruno@clisp.org>
9399
9400         Make num_processors more flexible and consistent.
9401         * lib/nproc.h (enum nproc_query): New type.
9402         (num_processors): Add a 'query' argument.
9403         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9404         (num_processors): Add a 'query' argument. Test the value of the
9405         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9406         mingw, count the number of CPUs available for the current process.
9407         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9408         Check for sched_getaffinity and sched_getaffinity_np.
9409         * modules/nproc (Depends-on): Add c-ctype, extensions.
9410         * NEWS: Mention the change.
9411
9412 2009-11-03  Bruno Haible  <bruno@clisp.org>
9413
9414         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9415
9416 2009-11-03  Jim Meyering  <meyering@redhat.com>
9417
9418         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9419         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9420         if it is defined.
9421
9422 2009-11-02  Eric Blake  <ebb9@byu.net>
9423
9424         mktime, timegm: share common declaration
9425         * lib/mktime-internal.h: New file.
9426         * lib/mktime.c: Use it rather than open-coding a declaration.
9427         * lib/timegm.c: Likewise.
9428         * modules/mktime (Files): Ship it.
9429         * modules/timegm (Files): Likewise.
9430         Suggested by Bruno Haible.
9431
9432         test-update-copyright: update test to match script changes
9433         * tests/test-update-copyright.sh: Avoid hard-coding perl
9434         location.  Don't update *.bak created by earlier runs.
9435
9436 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9437             Simon Josefsson  <simon@josefsson.org>
9438             Bruno Haible  <bruno@clisp.org>
9439
9440         Fix link error on Solaris 8.
9441         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9442         also in libnsl. Define also INET_PTON_LIB.
9443         * modules/inet_pton (Link): New section.
9444
9445 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9446             Bruno Haible  <bruno@clisp.org>
9447
9448         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9449         * modules/inet_ntop (Link): New section.
9450         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9451
9452 2009-11-02  Eric Blake  <ebb9@byu.net>
9453
9454         maint: avoid compiler warnings in m4 macros
9455         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9456         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9457
9458 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9459
9460         * m4/pmccabe2html.m4: Remove file.
9461         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9462         function.  Change maintainer.
9463         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9464         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9465         Courtès).
9466
9467 2009-10-31  Eric Blake  <ebb9@byu.net>
9468
9469         fseeko: fix m4 regression
9470         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9471         regression from 2009-10-27.
9472         Reported by Ralf Wildenhues.
9473
9474 2009-10-31  Jim Meyering  <meyering@redhat.com>
9475
9476         inttostr: aesthetics and improved (compile-time) safety
9477         Define inttype_is_signed rather than inttype_is_unsigned,
9478         since the sole use is via "#if inttype_is_signed".
9479         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9480         inttype_is_unsigned.
9481         * lib/offtostr.c (inttype_is_signed): Likewise.
9482         * lib/uinttostr.c (inttype_is_signed): Likewise.
9483         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9484         * lib/inttostr.c (inttostr): Use verify to cross-check the
9485         inttype_is_signed value and the signedness of the actual type.
9486         * modules/inttostr (Depends-on): Add verify.
9487
9488 2009-10-30  Eric Blake  <ebb9@byu.net>
9489
9490         build: avoid compiler warnings
9491         * lib/fchmodat.c (lchmod): Mark unused variables.
9492         * lib/getopt.c (_getopt_initialize): Likewise.
9493         * lib/mktime.c (__mktime_internal): Provide prototype.
9494         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9495         older gcc that do not understand #pragma GCC diagnostic.
9496         * lib/uinttostr.c (inttype_is_unsigned): Define.
9497         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9498
9499 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9500
9501         stat: fix compilation on AIX
9502         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9503         only see struct stat64.
9504
9505 2009-10-30  Eric Blake  <ebb9@byu.net>
9506
9507         exclude: make more robust
9508         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9509         rather than masking a coding bug.
9510         Suggested by Bruno Haible.
9511
9512 2009-10-30  Jim Meyering  <meyering@redhat.com>
9513
9514         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9515         Rather than putting #!/usr/bin/perl on the first line,
9516         start with a variant of what's recommended by "man perlrun" that
9517         invokes the first "perl" program from your shell's search path.
9518         * build-aux/gitlog-to-changelog: Replace #!... as above.
9519         Add a "Local Variables" perl mode setting.
9520         Prompted by a patch from Ludovic Courtès.
9521         Improved by Eric Blake.
9522         * build-aux/useless-if-before-free: Likewise.
9523         * build-aux/announce-gen: Likewise.
9524         * build-aux/update-copyright: Likewise.
9525
9526 2009-10-29  Eric Blake  <ebb9@byu.net>
9527
9528         filenamecat-lgpl: adjust clients
9529         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9530         filenamecat.
9531         * modules/renameat (Depends-on): Likewise.
9532
9533         filenamecat: split into filenamecat-lgpl
9534         * modules/filenamecat-lgpl: New module.
9535         * modules/filenamecat (Files): Move library-safe files into
9536         filenamecat-lgpl.
9537         (Depends-on): Add filenamecat-lgpl.
9538         (configure.ac): Declare witness.
9539         * lib/filenamecat.h (file_name_concat): Only declare when using
9540         GPL module.
9541         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9542         Move...
9543         * lib/filenamecat-lgpl.c: ...into new file.
9544         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9545         (gl_FILE_NAME_CONCAT): Use it.
9546         * MODULES.html.sh (File system functions): Mention new module.
9547
9548         argp: avoid memory leak
9549         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9550         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9551         base_name, since the latter malloc()s and can call exit().
9552         Leak introduced 2006-07-03.
9553
9554         dirname-lgpl: adjust clients that don't need full dirname
9555         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9556         * modules/filenamecat (Depends-on): Likewise.
9557         * modules/linkat (Depends-on): Likewise.
9558         * modules/mkancesdirs (Depends-on): Likewise.
9559         * modules/mkdir (Depends-on): Likewise.
9560         * modules/openat (Depends-on): Likewise.
9561         * modules/savewd (Depends-on): Likewise.
9562         * modules/rename (Depends-on): Likewise.
9563         (License): Relax license.
9564         * modules/mkdir-tests (Depends-on): Drop progname.
9565         (Makefile.am): Delete unneeded LDADD.
9566         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9567
9568         dirname: split into dirname-lgpl
9569         * modules/dirname-lgpl: New module.
9570         * modules/dirname (Files): Move library-safe files into
9571         dirname-lgpl.
9572         (Depends-on): Add dirname-lgpl.
9573         (configure.ac): Declare witness.
9574         * modules/double-slash-root (License): Relax license.
9575         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9576         module.
9577         * lib/dirname.c (dir_len, mdir_name): Move...
9578         * lib/dirname-lgpl.c: ...into new file.
9579         * lib/basename.c (last_component, base_len): Move...
9580         * lib/basename-lgpl.c: ...into new file.
9581         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9582         (gl_DIRNAME): Use it.
9583         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9584         Mention new module.
9585         * modules/dirname-tests (Depends-on): Add progname.
9586         * tests/test-dirname.c (program_name): Delete.
9587
9588         mkdir: make safe for libraries
9589         * modules/mkdir (Depends-on): Drop xalloc.
9590         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9591         exit.
9592
9593         tests: avoid some compiler warnings
9594         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9595         literals.
9596         * tests/test-memchr.c (main): Avoid type mismatch.
9597         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9598         * tests/test-base64.c (main): Likewise.
9599         * tests/test-getdelim.c (main): Likewise.
9600         * tests/test-gethostname.c (main): Likewise.
9601         * tests/test-getline.c (main): Likewise.
9602         * tests/test-netinet_in.c (main): Likewise.
9603         * tests/test-select.c (open_server_socket, main): Likewise.
9604         * tests/test-select-stdin.c (main): Likewise.
9605         * tests/test-sockets.c (main): Likewise.
9606         * tests/test-strsignal.c (main): Likewise.
9607         * tests/test-sys_select.c (main): Likewise.
9608         * tests/test-sys_socket.c (main): Likewise.
9609         * tests/test-u64.c (main): Likewise.
9610         * tests/test-xfprintf-posix.c (main): Likewise.
9611         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9612
9613         sockets: avoid compiler warning
9614         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9615
9616         maint: detect usage(1) and other suspicious exits
9617         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9618
9619 2009-10-29  Jim Meyering  <meyering@redhat.com>
9620
9621         timespec: long-to-int truncation could make timespec_cmp malfunction
9622         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9623         a multiple of 2^32 nanoseconds as no difference.
9624
9625 2009-10-28  Jim Meyering  <meyering@redhat.com>
9626
9627         fprintftime: wrap macro code argument in "do {...} while(0)"
9628         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9629         cpy macro must be a statement that can be followed by a semicolon.
9630         Now that the else clause contains a comment and is hence longer
9631         than one line, I require curly braces.  That in turn requires
9632         that we wrap this code block in the standard do...while(0).
9633
9634         fprintftime: remove stray semicolon from previous change
9635         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9636
9637         fprintftime: avoid a warning about ignored fwrite return value
9638         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9639         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9640         that is unsafe.
9641         * modules/fprintftime (Depends-on): Add ignore-value.
9642
9643         exclude: avoid an unwarranted warning
9644         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9645
9646 2009-10-27  Eric Blake  <ebb9@byu.net>
9647
9648         fseek: avoid compilation failure when fflush is replaced
9649         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9650         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9651         module is in use.
9652         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9653         module is not in use; since REPLACE_FSEEK worked otherwise.
9654         (GNULIB_FTELLO): Likewise for ftell.
9655         Reported by Ian Beckwith and others.
9656
9657 2009-10-27  Bruno Haible  <bruno@clisp.org>
9658
9659         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9660         Reported by Jim Meyering.
9661
9662 2009-10-27  Jim Meyering  <jim@meyering.net>
9663             Bruno Haible  <bruno@clisp.org>
9664
9665         Avoid warning despite dropping the return value of fwrite.
9666         * lib/unicodeio.c: Include ignore-value.h.
9667         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9668         * modules/unicodeio (Depends-on): Add ignore-value.
9669
9670 2009-10-26  Eric Blake  <ebb9@byu.net>
9671
9672         areadlinkat: fix fallback path
9673         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9674         pointer and zero.
9675
9676 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9677
9678         Use a better IO block size for modern systems
9679         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9680         * lib/md2.c: Likewise.
9681         * lib/md4.c: Likewise.
9682         * lib/md5.c: Likewise.
9683         * lib/sha1.c: Likewise.
9684         * lib/sha256.c: Likewise.
9685         * lib/sha512.c: Likewise.
9686
9687 2009-10-22  Eric Blake  <ebb9@byu.net>
9688
9689         tests: avoid several compiler warnings
9690         * tests/test-getcwd.c (main): Avoid buffer underflow.
9691         * tests/test-getdate.c (main): String literals are not safe with
9692         putenv, so use setenv.  Declare unused argument.
9693         * modules/getdate-tests (Depends-on): Add setenv.
9694         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9695         problems with string literals in char *.
9696         * tests/test-hash.c (main): Avoid shadowing declaration.
9697         (insert_new): Treat string literals as char const *.
9698         * tests/test-getopt.h (test_getopt): Likewise.
9699         (getopt_loop): Alter types to minimize casting elsewhere.
9700         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9701         (test_getopt_long_posix): Likewise.
9702         (do_getopt_long): Add wrapper to minimize casting.
9703         * tests/test-atexit.c (clear_temp_file): Use void.
9704         * tests/test-areadlink-with-size.c (main): Declare unused
9705         arguments.
9706         * tests/test-areadlink.c (main): Likewise.
9707         * tests/test-areadlinkat-with-size.c (main): Likewise.
9708         * tests/test-areadlinkat.c (main): Likewise.
9709         * tests/test-canonicalize-lgpl.c (main): Likewise.
9710         * tests/test-canonicalize.c (main): Likewise.
9711         * tests/test-dirent-safer.c (main): Likewise.
9712         * tests/test-dirname.c (main): Likewise.
9713         * tests/test-dup2.c (main): Likewise.
9714         * tests/test-fchdir.c (main): Likewise.
9715         * tests/test-fcntl-h.c (main): Likewise.
9716         * tests/test-fcntl-safer.c (main): Likewise.
9717         * tests/test-fdopendir.c (main): Likewise.
9718         * tests/test-fdutimensat.c (main): Likewise.
9719         * tests/test-fflush.c (main): Likewise.
9720         * tests/test-filenamecat.c (main): Likewise.
9721         * tests/test-filevercmp.c (main): Likewise.
9722         * tests/test-fopen-safer.c (main): Likewise.
9723         * tests/test-fopen.c (main): Likewise.
9724         * tests/test-fpending.c (main): Likewise.
9725         * tests/test-fpurge.c (main): Likewise.
9726         * tests/test-freading.c (main): Likewise.
9727         * tests/test-fstatat.c (main): Likewise.
9728         * tests/test-fsync.c (main): Likewise.
9729         * tests/test-futimens.c (main): Likewise.
9730         * tests/test-getndelim2.c (main): Likewise.
9731         * tests/test-gettimeofday.c (main): Likewise.
9732         * tests/test-getopt.c (main): Likewise.
9733         * tests/test-i-ring.c (main): Likewise.
9734         * tests/test-inttypes.c (main): Likewise.
9735         * tests/test-link.c (main): Likewise.
9736         * tests/test-lstat.c (main): Likewise.
9737         * tests/test-math.c (main): Likewise.
9738         * tests/test-md5.c (main): Likewise.
9739         * tests/test-memchr2.c (main): Likewise.
9740         * tests/test-memrchr.c (main): Likewise.
9741         * tests/test-mkdir.c (main): Likewise.
9742         * tests/test-mkdirat.c (main): Likewise.
9743         * tests/test-mkfifoat.c (main): Likewise.
9744         * tests/test-open.c (main): Likewise.
9745         * tests/test-openat-safer.c (main): Likewise.
9746         * tests/test-openat.c (main): Likewise.
9747         * tests/test-quotearg.c (main): Likewise.
9748         * tests/test-rawmemchr.c (main): Likewise.
9749         * tests/test-readlink.c (main): Likewise.
9750         * tests/test-remove.c (main): Likewise.
9751         * tests/test-rename.c (main): Likewise.
9752         * tests/test-renameat.c (main): Likewise.
9753         * tests/test-rmdir.c (main): Likewise.
9754         * tests/test-sha1.c (main): Likewise.
9755         * tests/test-signal.c (main): Likewise.
9756         * tests/test-sigaction.c (main): Likewise.
9757         * tests/test-stat.c (main): Likewise.
9758         * tests/test-stat-time.c (main): Likewise.
9759         * tests/test-stddef.c (main): Likewise.
9760         * tests/test-stdint.c (main): Likewise.
9761         * tests/test-stdio.c (main): Likewise.
9762         * tests/test-stdlib.c (main): Likewise.
9763         * tests/test-strchrnul.c (main): Likewise.
9764         * tests/test-strerror.c (main): Likewise.
9765         * tests/test-string.c (main): Likewise.
9766         * tests/test-strtod.c (main): Likewise.
9767         * tests/test-strverscmp.c (main): Likewise.
9768         * tests/test-symlink.c (main): Likewise.
9769         * tests/test-symlinkat.c (main): Likewise.
9770         * tests/test-sys_stat.c (main): Likewise.
9771         * tests/test-sys_time.c (main): Likewise.
9772         * tests/test-time.c (main): Likewise.
9773         * tests/test-unistd.c (main): Likewise.
9774         * tests/test-unlink.c (main): Likewise.
9775         * tests/test-unlinkat.c (main): Likewise.
9776         * tests/test-utimens.c (main): Likewise.
9777         * tests/test-utimensat.c (main): Likewise.
9778         * tests/test-version-etc.c (main): Likewise.
9779         * tests/test-wchar.c (main): Likewise.
9780         * tests/test-wctype.c (main): Likewise.
9781         * tests/test-xprintf-posix.c (main): Likewise.
9782         * tests/test-posixtm.c (main): Likewise.
9783         (STREQ): Delete unused macro.
9784         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9785         shadowed variables.
9786         * tests/test-memchr.c (main): Likewise.
9787
9788 2009-10-21  Eric Blake  <ebb9@byu.net>
9789
9790         areadlinkat: avoid failure on older glibc
9791         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9792         rather than mis-comparing 0 against FUNC_RESULT of char*.
9793
9794 2009-10-21  Bruno Haible  <bruno@clisp.org>
9795
9796         * modules/stpncpy (License): Relicense under LGPLv2+.
9797         Reported by David Lutterkort <lutter@redhat.com>.
9798
9799 2009-10-20  Eric Blake  <ebb9@byu.net>
9800
9801         utimensat: work around Solaris 9 bug
9802         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9803         has trailing slash bugs.
9804         * tests/test-lutimens.h (test_lutimens): Enhance test.
9805         * tests/test-utimens.h (test_utimens): Likewise.
9806         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9807         * doc/posix-functions/utimes.texi (utimes): Likewise.
9808         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9809         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9810         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9811         * doc/posix-functions/futimens.texi (futimens): Likewise.
9812
9813         fdutimensat: new module
9814         * modules/fdutimensat: New file.
9815         * lib/fdutimensat.c (fdutimensat): Likewise.
9816         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9817         * MODULES.html.sh (File system functions): Mention module.
9818         * modules/fdutimensat-tests: New test.
9819         * tests/test-fdutimensat.c: Likewise.
9820
9821         doc: regenerate INSTALL
9822         * doc/INSTALL: Reflect recent autoconf update.
9823         * doc/INSTALL.ISO: Likewise.
9824         * doc/INSTALL.UTF-8: Likewise.
9825
9826 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9827
9828         acl: warn if ACL support is not detected
9829         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9830
9831 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9832
9833         * lib/nproc.h: Add extern "C" block for C++.
9834
9835 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9836             Bruno Haible  <bruno@clisp.org>
9837
9838         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9839         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9840         * doc/posix-functions/isalpha.texi: Likewise.
9841         * doc/posix-functions/isblank.texi: Likewise.
9842         * doc/posix-functions/iscntrl.texi: Likewise.
9843         * doc/posix-functions/isdigit.texi: Likewise.
9844         * doc/posix-functions/isgraph.texi: Likewise.
9845         * doc/posix-functions/islower.texi: Likewise.
9846         * doc/posix-functions/isprint.texi: Likewise.
9847         * doc/posix-functions/ispunct.texi: Likewise.
9848         * doc/posix-functions/isspace.texi: Likewise.
9849         * doc/posix-functions/isupper.texi: Likewise.
9850         * doc/posix-functions/isxdigit.texi: Likewise.
9851
9852 2009-10-18  Bruno Haible  <bruno@clisp.org>
9853
9854         Tests for module 'isblank'.
9855         * modules/isblank-tests: New file.
9856         * tests/test-isblank.c: New file.
9857
9858         New module 'isblank'.
9859         * lib/isblank.c: New file.
9860         * m4/isblank.m4: New file.
9861         * modules/isblank: New file.
9862         * doc/posix-functions/isblank.texi: Mention the new module.
9863
9864 2009-10-18  Bruno Haible  <bruno@clisp.org>
9865
9866         New module 'ctype'.
9867         * lib/ctype.in.h: New file.
9868         * m4/ctype.m4: New file.
9869         * modules/ctype: New file.
9870         * doc/posix-headers/ctype.texi: Mention the new module.
9871
9872 2009-10-18  Jim Meyering  <meyering@redhat.com>
9873
9874         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9875         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9876         right after its initialization, rather than farther down.
9877         Keeping these in close proximity makes it easier to ensure
9878         that each such variable is initialized.  E.g.,
9879
9880             LIB_CLOCK_GETTIME=
9881             AC_SUBST([LIB_CLOCK_GETTIME])
9882
9883         This change also increments these serial numbers.
9884         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9885         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9886         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9887
9888 2009-10-18  Bruno Haible  <bruno@clisp.org>
9889
9890         Don't let environment variables perturb build.
9891         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9892         (gl_PREREQ_GETHRXTIME): ... not here.
9893
9894 2009-10-18  Bruno Haible  <bruno@clisp.org>
9895
9896         Avoid symlink attack in localcharset module.
9897         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9898         (O_NOFOLLOW): Define fallback.
9899         (get_charset_aliases): Don't open the file if it is a symbolic link.
9900         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9901         gl_FCNTL_H.
9902         (gl_FCNTL_H): Require it.
9903         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9904         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9905         Reported by Fergal Glynn <fglynn@veracode.com>.
9906
9907 2009-10-18  Bruno Haible  <bruno@clisp.org>
9908
9909         Implement nproc for mingw.
9910         * lib/nproc.c: Include <windows.h>
9911         (num_processors): On native Windows platforms, try GetSystemInfo.
9912
9913 2009-10-18  Bruno Haible  <bruno@clisp.org>
9914
9915         Implement nproc for IRIX.
9916         * lib/nproc.c: Include <sys/sysmp.h>.
9917         (num_processors): On IRIX systems, try sysmp.
9918         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9919
9920 2009-10-18  Bruno Haible  <bruno@clisp.org>
9921
9922         Implement nproc for HP-UX.
9923         * lib/nproc.c: Include <sys/pstat.h>
9924         (num_processors): On HP-UX systems, try pstat_getdynamic.
9925         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9926         pstat_getdynamic.
9927
9928 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9929             Bruno Haible  <bruno@clisp.org>
9930
9931         Implement nproc for NetBSD, OpenBSD.
9932         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9933         (ARRAY_SIZE): New macro.
9934         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9935         * m4/nproc.m4: New file.
9936         * modules/nproc (Files): Add m4/nproc.m4.
9937         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9938         (Makefile.am): Instead, augment lib_SOURCES.
9939
9940 2009-10-18  Bruno Haible  <bruno@clisp.org>
9941
9942         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9943         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9944         sys/param.h.
9945
9946 2009-10-16  Eric Blake  <ebb9@byu.net>
9947
9948         utimensat: new module
9949         * modules/utimensat: New file.
9950         * lib/utimensat.c (utimensat): Likewise.
9951         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9952         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9953         so we can work around Linux bugs.
9954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9955         * modules/sys_stat (Makefile.am): Substitute them.
9956         * lib/sys_stat.in.h (utimensat): Declare it.
9957         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9958         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9959         * modules/utimensat-tests: New test.
9960         * tests/test-utimensat.c: Likewise.
9961
9962         utimens: let lutimens work on non-symlinks
9963         * lib/utimens.c (lutimens): Fall back to utimens rather than
9964         failing with ENOSYS, when file is not a symlink.
9965         (utimens): Reduce redirection.
9966         * tests/test-lutimens.h (test_lutimens): Update test to cover
9967         non-symlinks.
9968         * tests/test-utimens.h (test_utimens): Update test to cover
9969         symlinks.
9970         * tests/test-utimens.c (main): Update caller.
9971
9972         utimens: cache whether utimensat syscall works
9973         * lib/utimens.c (utimensat_works_really): New cache variable.
9974         (fdutimens, lutimens): Use it to avoid failing syscall.
9975
9976         test-stat-time, test-utimens: improve portability
9977         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9978         ext4 on alpha, and for cygwin.
9979         * tests/test-utimens-common.h: New file.
9980         (nap): Factor delays into single function.
9981         * tests/test-lutimens.h (test_lutimens): Use new header.
9982         * tests/test-futimens.h (test_futimens): Likewise.
9983         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9984         timestamps to occur from same machine, as was done previously for
9985         test_utimens.
9986         * modules/utimens-tests (Files): Ship new file.
9987         * modules/futimens-tests (Files): Likewise.
9988         Reported in part by Jim Meyering.
9989
9990         sys_stat: sort replacement declarations
9991         * lib/sys_stat.in.h: Sort declarations.
9992         * lib/futimens.c (futimens): Fix typo.
9993
9994 2009-10-15  Jim Meyering  <meyering@redhat.com>
9995
9996         don't let environment settings perturb build
9997         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9998         could cause a configure-time and/or build-time malfunction.
9999         Typically, a configure-time function-in-library test is performed
10000         via code like this:
10001
10002           LIB_VAR=
10003           AC_SUBST([LIB_VAR])
10004           prefix_saved_LIBS=$LIBS
10005             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
10006                        [test "$ac_cv_search_FUNC" = "none required" ||
10007                         LIB_VAR=$ac_cv_search_FUNC])
10008           LIBS=$prefix_saved_LIBS
10009
10010         However, in each of the files affected by this change, the LIB_VAR=
10011         initialization was omitted.  Thus, when set in the environment, its
10012         value would propagate into generated Makefiles when FUNC is not found
10013         in LIB_NAME.
10014         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
10015         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
10016         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10017
10018 2009-10-14  Eric Blake  <ebb9@byu.net>
10019
10020         fchdir: avoid infinite recursion in mingw
10021         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
10022         recursing.
10023
10024         test-stat-time: port to mingw
10025         * tests/test-stat-time.c (force_unlink): Return a value.
10026         (test_ctime) [W32]: Fix compilation error.
10027         (nap): Don't call usleep with too large an argument.  Use
10028         force_unlink.
10029         * doc/pastposix-functions/usleep.texi (usleep): Document the
10030         portability issue.
10031
10032 2009-10-13  Jim Meyering  <meyering@redhat.com>
10033
10034         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
10035         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
10036         * modules/pipe-filter-ii: Likewise.
10037         * modules/sys_socket-tests: Likewise.
10038         * modules/tsearch-tests: Likewise.
10039         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
10040         (check): Depend on it.
10041
10042 2009-10-12  Eric Blake  <ebb9@byu.net>
10043
10044         utimens-tests: port to NFS file systems
10045         * tests/test-utimens.h (test_utimens): Refactor utimecmp
10046         comparisons to avoid spurious failures from timestamp drift
10047         between NFS machines.
10048
10049 2009-10-12  Eric Blake  <ebb9@byu.net>
10050
10051         stat-time-tests: minor cleanups
10052         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
10053         * tests/test-stat-time.c (nap): Separate assignment from call.
10054         Suggested by Paolo Bonzini and Bruno Haible.
10055
10056         sys_stat: guarantee struct timespec
10057         * lib/sys_stat.in.h (includes): Always include <time.h>
10058         * modules/sys_stat (Depends-on): Add time.
10059         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
10060         mode_t permission values.
10061         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
10062         get at subsecond timestamps.
10063
10064 2009-10-10  Eric Blake  <ebb9@byu.net>
10065
10066         futimens: new module
10067         * modules/futimens: New file.
10068         * lib/futimens.c (futimens): Likewise.
10069         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
10070         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
10071         we can work around Linux bugs.
10072         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10073         * modules/sys_stat (Makefile.am): Substitute them.
10074         * lib/sys_stat.in.h (futimens): Declare it.
10075         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10076         * doc/posix-functions/futimens.texi (futimens): Likewise.
10077         * modules/futimens-tests: New test.
10078         * tests/test-futimens.c: Likewise.
10079
10080         utimens: introduce fdutimens
10081         * lib/utimens.h (fdutimens): New prototype.
10082         * lib/utimens.c (gl_futimens): Move guts...
10083         (fdutimens): ...to new interface.
10084         * tests/test-utimens.c (do_fdutimens): Use it.
10085
10086         utimens: add UTIME_NOW and UTIME_OMIT support
10087         * lib/utimens.c (validate_timespec, update_timespec): New helper
10088         functions.
10089         (gl_futimens, lutimens): Use them.
10090         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
10091         stdbool, sys_stat.
10092         (Link): Mention resulting library dependency.
10093         * modules/utimecmp (Link): Likewise.
10094         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
10095         (Makefile.am): Pick up library dependency.
10096         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
10097         definition.
10098         * tests/test-sys_stat.c: Test the definitions.
10099         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
10100         * NEWS: Document library dependency.
10101
10102         utimecmp: support symlink timestamps
10103         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
10104         hashing when possible.  Use pathconf when available.
10105         (SYSCALL_RESOLUTION): Recognize tighter resolution.
10106         * modules/utimecmp (Depends-on): Add lstat.
10107
10108         utimens: add lutimens interface
10109         * lib/utimens.c (lutimens): New function.
10110         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
10111         * lib/utimens.h (lutimens): Declare new interface.
10112         * tests/test-utimens.c (main): Enhance test.
10113         * tests/test-lutimens.h (test_lutimens): New file.
10114         * modules/utimens-tests (Files): Distribute it.
10115         (Depends-on): Add symlink.
10116         (configure.ac): Check for usleep.
10117
10118         utimens: validate futimens usage
10119         * lib/utimens.c (gl_futimens): Require valid fd up front, using
10120         fewer syscalls on failure later on.  Avoid compiler warning on
10121         mingw.
10122         * modules/utimens (Depends-on): Add dup2.
10123
10124         utimens: add test
10125         * modules/utimens-tests: New test.
10126         * tests/test-utimens.h: New file.
10127         * tests/test-futimens.h: Likewise.
10128         * tests/test-utimens.c: Likewise.
10129
10130         doc: mention timestamp portability issues
10131         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
10132         instead.
10133         * doc/posix-functions/utime.texi (utime): Likewise.
10134         * doc/posix-functions/utimes.texi (utimes): Likewise.
10135         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
10136         instead.
10137         * doc/posix-functions/futimens.texi (futimens): Mention utimens
10138         module.
10139         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10140         Mention weakness with symlink timestamps.
10141         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
10142         to utimensat/futimens instead.
10143         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
10144
10145         test-dup2: enhance test
10146         * tests/test-dup2.c (main): Also check AT_FDCWD.
10147
10148         test-stat-time: avoid more spurious failures
10149         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
10150         xfs; and avoid race if the two timestamps cross quantization edge.
10151
10152         relocatable: prefer 'file system' over 'filesystem'
10153         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
10154         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
10155         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
10156         * doc/relocatable.texi (Enabling Relocatability): Likewise.
10157         * lib/relocatable.c (compute_curr_prefix): Likewise.
10158
10159 2009-10-10  Jim Meyering  <meyering@redhat.com>
10160
10161         stat-time-tests: check for the usleep function
10162         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
10163
10164 2009-10-10  Bruno Haible  <bruno@clisp.org>
10165
10166         * modules/xnanosleep: Put the Link section after the Include section.
10167
10168 2009-10-09  Eric Blake  <ebb9@byu.net>
10169
10170         dup2: work around FreeBSD 6.1 bug
10171         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
10172         * doc/posix-functions/dup2.texi (dup2): Document it.
10173         Reported by Nelson H. F. Beebe and Jim Meyering.
10174
10175         test-stat-time: port to buggy NFS clients
10176         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
10177         (test_ctime): Also skip test if mtime and ctime are skewed.
10178
10179         maint: prefer 'file system' over 'filesystem'
10180         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10181         * doc/posix-functions/lstat.texi (lstat): Likewise.
10182         * lib/file-has-acl.c (file_has_acl): Likewise.
10183         * lib/fwriteerror.c [TEST]: Likewise.
10184         * tests/test-areadlink.h (test_areadlink): Likewise.
10185         * tests/test-areadlinkat-with-size.c (main): Likewise.
10186         * tests/test-areadlinkat.c (main): Likewise.
10187         * tests/test-canonicalize-lgpl.c (main): Likewise.
10188         * tests/test-canonicalize.c (main): Likewise.
10189         * tests/test-fstatat.c (main): Likewise.
10190         * tests/test-linkat.c (main): Likewise.
10191         * tests/test-lstat.h (test_lstat_func): Likewise.
10192         * tests/test-mkdir.h (test_mkdir): Likewise.
10193         * tests/test-readlink.h (test_readlink): Likewise.
10194         * tests/test-remove.c (main): Likewise.
10195         * tests/test-rename.h (test_rename): Likewise.
10196         * tests/test-renameat.c (main): Likewise.
10197         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10198         * tests/test-symlink.h (test_symlink): Likewise.
10199         * tests/test-symlinkat.c (main): Likewise.
10200         * tests/test-unlink.h (test_unlink_func): Likewise.
10201         * tests/test-unlinkat.c (main): Likewise.
10202
10203         maint: make realtime library usage explicit
10204         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
10205         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
10206         * modules/settime (Link): Likewise.
10207         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
10208
10209         test-stat-time: speed up execution
10210         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
10211         warning on mingw.
10212         (nap): New helper function.
10213         (prepare_test): Use it to reduce sleep time.
10214         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
10215         execution.
10216         * modules/stat-time-tests (configure.ac): Check for usleep.
10217
10218 2009-10-09  Jim Meyering  <meyering@redhat.com>
10219
10220         selinux-h: always use getfilecon wrappers
10221         * lib/getfilecon.c: New file.
10222         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
10223         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
10224         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
10225         (fgetfilecon): Provide a stub.
10226         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
10227         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
10228         file unconditionally.
10229         When <selinux/selinux.h> is found, arrange to use wrappers.
10230         * modules/selinux-h (Files): Add getfilecon.c.
10231         (Makefile.am): Substitute include-next-related bits
10232         into the now-always-generated selinux/selinux.h file.
10233         * doc/glibc-functions/lgetfilecon.texi: New file.
10234         * doc/glibc-functions/fgetfilecon.texi: New file.
10235         * doc/glibc-functions/getfilecon.texi: New file.
10236         * doc/glibc-functions/getfilecon-desc.texi: New file.
10237         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
10238         which to pull in the new files.
10239         * MODULES.html.sh (Misc): Add selinux-h.
10240
10241 2009-10-08  Jim Meyering  <meyering@redhat.com>
10242
10243         unistd: fix comment typo
10244         * lib/unistd.in.h (euidaccess): Fix a comment typo.
10245
10246 2009-10-08  Eric Blake  <ebb9@byu.net>
10247
10248         areadlink: use SIZE_MAX consistently
10249         * modules/areadlink (Depends-on): Add stdint.
10250         * modules/areadlink-with-size (Depends-on): Likewise.
10251         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
10252         gives NULL; drop sys/types, since unistd gives size_t; and add
10253         stdint for SIZE_MAX.
10254         (SIZE_MAX): Rely on headers.
10255         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
10256         and add stdint.
10257         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
10258         (SIZE_MAX): Likewise.
10259         (INITIAL_BUF_SIZE): Turn into enum.
10260         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
10261
10262 2009-10-08  Jim Meyering  <meyering@redhat.com>
10263
10264         areadlinkat: avoid compilation failure
10265         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
10266         Fix typo in comment.
10267
10268 2009-10-07  Eric Blake  <ebb9@byu.net>
10269
10270         areadlinkat-with-size: new module
10271         * modules/areadlinkat-with-size: New module.
10272         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
10273         * lib/areadlink.h (areadlinkat): Declare it.
10274         * MODULES.html.sh (File system functions): Mention it.
10275         * modules/areadlinkat-with-size-tests: New test.
10276         * tests/test-areadlinkat-with-size.c: New file.
10277
10278         xreadlinkat: new module
10279         * modules/xreadlinkat: New module.
10280         * lib/xreadlinkat.c (xreadlinkat): New file.
10281         * lib/xreadlink.h (xreadlinkat): Declare it.
10282         * MODULES.html.sh (File system functions): Mention it.
10283
10284         areadlinkat: new module
10285         * lib/at-func.c (FUNC_FAIL): New define.
10286         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
10287         * modules/areadlinkat: New module.
10288         * lib/linkat.c (areadlinkat): Move...
10289         * lib/areadlinkat.c (areadlinkat): ...to new file.
10290         * lib/areadlink.h (areadlinkat): Declare it.
10291         * modules/linkat (Depends-on): Add areadlinkat.
10292         * MODULES.html.sh (File system functions): Mention it.
10293         * modules/areadlinkat-tests: New test.
10294         * tests/test-areadlinkat.c: New file.
10295
10296         areadlink, areadlink-with-size: add tests
10297         * modules/areadlink-tests: New test.
10298         * modules/areadlink-with-size-tests: Likewise.
10299         * tests/test-areadlink.h: New file.
10300         * tests/test-areadlink.c: Likewise.
10301         * tests/test-areadlink-with-size.c: Likewise.
10302
10303         maint: minor cleanups
10304         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
10305         _UNUSED_PARAMETER_ instead.
10306         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
10307         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
10308         * modules/linkat-tests (Files): Distribute test-link.h.
10309
10310         openat, utimens: whitespace cleanup
10311         * lib/openat.c: Prefer space throughout, rather than mix of 8
10312         spaces vs. tabs.
10313         * lib/at-func.c: Likewise.
10314         * lib/utimens.c: Likewise.
10315
10316         openat: avoid using wrong fd
10317         * lib/openat.c (openat_permissive): Reject user's fd if saving the
10318         working directory chooses same fd.
10319         * lib/at-func.c (AT_FUNC_NAME): Likewise.
10320
10321         mkdir, mkdirat: fix cygwin 1.5.x bug
10322         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
10323         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
10324         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
10325         bug.
10326         (gl_PREREQ_MKDIR): Delete unused macro.
10327         * modules/mkdir (Files): Track file rename.
10328         (configure.ac): Update macro name.
10329         * modules/openat (Depends-on): Add mkdir.
10330         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
10331
10332         mkdir, mkdirat: add tests
10333         * modules/mkdir-tests: New test.
10334         * tests/test-mkdir.h: New file.
10335         * tests/test-mkdir.c: Likewise.
10336         * tests/test-mkdirat.c: Likewise.
10337         * modules/openat-tests (Files): Add new files.
10338         (Makefile.am): Run new test.
10339
10340 2009-10-06  Eric Blake  <ebb9@byu.net>
10341
10342         doc: tweak *at function documentation
10343         * doc/posix-functions/faccessat.texi (faccessat): Mention
10344         known issue with replacement.
10345         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10346         * doc/posix-functions/linkat.texi (linkat): Likewise.
10347         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10348         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10349         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10350         * doc/posix-functions/renameat.texi (renameat): Likewise.
10351         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10352
10353         openat: fix GNU/Hurd bug in unlinkat
10354         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10355         broken.
10356         * doc/posix-functions/unlink.texi (unlink): Document this.
10357         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10358
10359         fdopendir: fix GNU/Hurd bug
10360         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10361         allowing non-directory fds.
10362         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10363         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10364         * modules/dirent (Makefile.am): Substitute it.
10365         * lib/dirent.in.h (fdopendir): Declare replacement.
10366         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10367         * tests/test-fdopendir.c (main): Test something other than
10368         /dev/null, since on Hurd that behaves like a directory.
10369
10370         test-symlink: port to GNU/Hurd
10371         * tests/test-symlink.h (test_symlink): Relax expected errno.
10372
10373         doc: tweak more cygwin information
10374         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10375         now compatible with glibc.
10376         * doc/posix-functions/getopt.texi (getopt): Likewise.
10377
10378         getopt-gnu: add another test
10379         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10380         guarantee behavior relied on by m4.
10381         * tests/test-getopt.c (main): Use it.
10382         * modules/getopt-posix-tests (Depends-on): Add setenv.
10383         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10384
10385         getopt: fix compilation on darwin
10386         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10387         include.
10388         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10389         Reported by Ludovic Courtès.
10390
10391 2009-10-06  Bruno Haible  <bruno@clisp.org>
10392
10393         * modules/size_max (Description): Discourage its use.
10394         Reported by Simon Josefsson.
10395
10396 2009-10-06  Jim Meyering  <meyering@redhat.com>
10397
10398         linkat: avoid compilation failure
10399         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10400
10401 2009-10-05  Eric Blake  <ebb9@byu.net>
10402
10403         linkat: support Linux 2.6.17
10404         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10405         linkat on Linux, but allow cache variable override.
10406         * lib/linkat.c (rpl_linkat): Define override.
10407         * modules/linkat (Depends-on): Add symlinkat.
10408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10409         * modules/unistd (Makefile.am): Substitute it.
10410         * lib/unistd.in.h (linkat): Declare replacement.
10411         Reported by Pádraig Brady.
10412
10413         quotearg: port test to systems with C.UTF-8 locale
10414         * tests/test-quotearg.c (struct result_strings): Add another
10415         member, differentiating between C.ASCII and C.UTF-8 handling.
10416         (compare_strings): Add parameter.
10417         (main): Adjust all callers.
10418
10419         getopt: avoid clash with FreeBSD _getopt_internal
10420         * lib/getopt.in.h (_getopt_internal): Override the name.
10421         * lib/getopt_int.h (includes): Pick up any overrides.
10422         Reported by Reuben Thomas.
10423
10424         hash: allow C89 compilation
10425         * lib/hash.c (check_tuning): Move declaration before statement.
10426         Reported by Reuben Thomas.
10427
10428 2009-10-05  Karl Berry  <karl@gnu.org>
10429
10430         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10431
10432 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10433             Bruno Haible  <bruno@clisp.org>
10434
10435         * lib/uname.c (uname): Use a table-driven algorithm to compute
10436         Windows NT versions.
10437
10438 2009-10-04  Bruno Haible  <bruno@clisp.org>
10439
10440         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10441         program_invocation_short_name.
10442         * modules/progname (configure.ac): Test for presence of
10443         program_invocation_short_name.
10444         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10445
10446 2009-10-04  Bruno Haible  <bruno@clisp.org>
10447
10448         * lib/progname.c (set_program_name): Fix comment.
10449         Reported by Jim Meyering.
10450
10451 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10452             Bruno Haible  <bruno@clisp.org>
10453
10454         * lib/uname.c: Include <string.h>.
10455         (uname): Do only one call to GetVersionEx in the common case.
10456
10457 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10458             Bruno Haible  <bruno@clisp.org>
10459
10460         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10461         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10462         (uname): Add support for Windows CE and various non-x86 CPU types.
10463
10464 2009-10-03  Bruno Haible  <bruno@clisp.org>
10465
10466         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10467         invocation to tests/configure.ac.
10468         Reported by Ian Beckwith <ianb@erislabs.net>.
10469
10470 2009-10-02  Eric Blake  <ebb9@byu.net>
10471
10472         fchdir: avoid compiler warning
10473         * lib/fchdir.c (canonicalize_file_name)
10474         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10475
10476         test-open: support mingw errno values
10477         * tests/test-open.h (test_open): Relax test.
10478         * tests/test-fopen.h (test_fopen): Likewise.
10479         * tests/test-openat-safer.c (main): Likewise.
10480
10481         open: fix opening directory on mingw
10482         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10483
10484         test-open: on GNU/Hurd, /dev/null is a directory
10485         * tests/test-fopen.h (main): Rename...
10486         (test_fopen): ...to this.  Use a guaranteed non-directory when
10487         confirming open behavior on trailing slash.
10488         * tests/test-openat-safer.c (main): Likewise.
10489         * tests/test-open.h (main): Likewise....
10490         (test_open): ...to this.
10491         * tests/test-fopen.c (main): Adjust caller.
10492         * tests/test-fopen-safer.c (main): Likewise.
10493         * tests/test-open.c (main): Likewise.
10494         * tests/test-fcntl-safer.c (main): Likewise.
10495         Reported by Samuel Thibault.
10496
10497         rename, fchdir: don't ignore chdir failure
10498         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10499         * lib/rename.c (rpl_rename) [W32]: Likewise.
10500         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10501         an empty destination directory if source cannot be renamed,
10502         although there is still possibility for failure.
10503         * doc/posix-functions/rename.texi (rename): Document the race.
10504         Reported by Jim Meyering.
10505
10506         maint: cleanup whitespace in recent commits
10507         * lib/rename.c (rpl_rename): Remove tabs.
10508         * tests/test-link.h (test_link): Likewise.
10509         * lib/fchdir.c (get_name): Likewise.
10510         Reported by Jim Meyering.
10511
10512 2009-10-02  Ben Pfaff  <blp@gnu.org>
10513
10514         relocatable-prog-wrapper: Add missing dependency on
10515         double-slash-root.
10516         * modules/relocatable-prog-wrapper: Add dependency.
10517         Reported by Ian Beckwith <ianb@erislabs.net>.
10518
10519 2009-10-02  Eric Blake  <ebb9@byu.net>
10520
10521         renameat: fix Solaris bugs
10522         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10523         needed fixing.
10524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10525         * modules/stdio (Makefile.am): Substitute it.
10526         * lib/stdio.in.h (renameat): Declare replacement.
10527         * lib/renameat.c (rpl_renameat): Implement fix.
10528
10529         renameat: new module
10530         * modules/renameat: New file.
10531         * lib/renameat.c (renameat): Likewise.
10532         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10534         * modules/stdio (Makefile.am): Substitute them.
10535         * lib/stdio.in.h (renameat): Declare it.
10536         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10537         * doc/posix-functions/renameat.texi (renameat): Likewise.
10538         * modules/renameat-tests: New test.
10539         * tests/test-renameat.c: Likewise.
10540
10541         rename: fix mingw bugs
10542         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10543         directory overwrite bugs.
10544
10545         rename: fix another cygwin 1.5 bug
10546         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10547         checks.
10548         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10549         unnecessary cygwin workarounds.  Also work around bug with moving
10550         full directory onto an empty one.
10551         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10552
10553         rename-dest-slash: merge into rename module
10554         * modules/rename-dest-slash (Status): Mark obsolete.
10555         (Depends-on): Add rename.
10556         (Files): Let rename do it all.
10557         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10558         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10559         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10560         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10561         * lib/rename.c (rpl_rename): Update comments.
10562
10563         rename: fix cygwin 1.5.x bugs
10564         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10565         * lib/rename.c (rpl_rename): Work around them.
10566         * modules/rename (Depends-on): Add same-inode.
10567
10568         rename: fix Solaris 10 bug
10569         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10570         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10571         was the only bug.
10572
10573         rename: fix Solaris 9 bug
10574         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10575         on non-directory.  Avoid calling exit.
10576         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10577         strdup.
10578         * modules/rename-tests (Depends-on): Drop lstat.
10579         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10580         (gl_PREREQ_RENAME): Delete unused macro.
10581
10582         rename-dest-slash: fix NetBSD bug
10583         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10584         links.
10585         * modules/rename-dest-slash (Depends-on): Add same-inode.
10586
10587         rename-tests: new test, exposes several platform bugs
10588         * modules/rename-tests: New file.
10589         * tests/test-rename.h: Likewise.
10590         * tests/test-rename.c: Likewise.
10591         * doc/posix-functions/rename.texi (rename): Improve documentation,
10592         including bugs that will eventually be fixed in gnulib.
10593
10594 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10595
10596         * lib/uname.c: Include <stdlib.h>
10597         (uname): Assume version info is available.
10598
10599 2009-10-02  Jim Meyering  <meyering@redhat.com>
10600
10601         gnu-web-doc-update: correct --help output
10602         * build-aux/gnu-web-doc-update: Make --help output relevant.
10603
10604         gnu-web-doc-update: add standard options
10605         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10606
10607         gnu-web-doc-update: New module.
10608         Use this script to automatically update the on-line web documentation
10609         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10610         * modules/gnu-web-doc-update: New file, from coreutils.
10611         * build-aux/gnu-web-doc-update: New script.
10612
10613 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10614
10615         link: LoadLibrary is not needed.
10616         * lib/link.c: Use GetModuleHandle.
10617
10618 2009-10-01  Eric Blake  <ebb9@byu.net>
10619
10620         getopt: bump serial number
10621         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10622         change.
10623
10624         tests: tighten link, rmdir, and remove tests
10625         * tests/test-link.h (includes): No need to use <config.h> here.
10626         Clean up if directory hard link was created, otherwise test for
10627         trailing '.'.
10628         * tests/test-linkat.c (main): Simplify.
10629         * tests/test-remove.c (main): Enhance test for trailing '.'.
10630         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10631
10632 2009-10-01  Jim Meyering  <meyering@redhat.com>
10633
10634         maint.mk: requiring "make major" was annoying, for a "minor" release.
10635         What is intended is "stable", to contrast with alpha and beta,
10636         so require "make stable", not "make major".
10637         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10638         (get_tool_versions): Likewise.
10639         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10640
10641 2009-09-30  Ben Pfaff  <blp@gnu.org>
10642
10643         Fix broken build of replacement for Windows tmpfile().
10644         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10645         flags argument added along with the 'mkostemp' module.
10646
10647 2009-09-28  Bruno Haible  <bruno@clisp.org>
10648
10649         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10650         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10651         to 'remove_elt'.
10652         (gl_list_remove): Update.
10653         * lib/gl_list.c (gl_list_remove): Update.
10654         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10655         to 'remove_elt'.
10656         (gl_oset_remove): Update.
10657         * lib/gl_list.c (gl_oset_remove): Update.
10658         Reported by Eric Blake.
10659
10660 2009-09-28  Eric Blake  <ebb9@byu.net>
10661
10662         doc: mention yet more cygwin 1.7 status
10663         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10664         cygwin.
10665         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10666         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10667
10668         argp: fix test failure
10669         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10670         that are not upper-case.  Pass correct range to tolower.
10671
10672 2009-09-27  Jim Meyering  <meyering@redhat.com>
10673
10674         test-yesno: work around sparc-dash here-document infelicity
10675         Without this change, the literal \177 byte in a here document
10676         would make dash 0.5.5.1-3 access uninitialized memory.
10677         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10678         Instead, use a marker, "@", and filter through tr to create the desired
10679         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10680
10681 2009-09-27  Bruno Haible  <bruno@clisp.org>
10682
10683         Disable untested support for new flavours of ACLs on AIX.
10684         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10685         progress.
10686         * lib/set-mode-acl.c (qset_acl): Likewise.
10687
10688 2008-12-07  Bruno Haible  <bruno@clisp.org>
10689
10690         Add support for new flavours of ACLs on AIX. (Untested.)
10691         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10692         (file_has_acl): Add support for newer AIX.
10693         * lib/set-mode-acl.c (qset_acl): Likewise.
10694         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10695         Rainer Tammer <tammer@tammer.net>.
10696
10697 2009-09-26  Eric Blake  <ebb9@byu.net>
10698
10699         argp: fix compilation of getopt
10700         * lib/getopt.in.h (includes): Use different guard than glibc.
10701         Reported by Sergey Poznyakoff.
10702
10703         doc: mention more cygwin 1.7 status
10704         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10705         bug.
10706         * doc/posix-functions/execl.texi (execl): Likewise.
10707         * doc/posix-functions/execle.texi (execle): Likewise.
10708         * doc/posix-functions/execlp.texi (execlp): Likewise.
10709         * doc/posix-functions/execv.texi (execv): Likewise.
10710         * doc/posix-functions/execve.texi (execve): Likewise.
10711         * doc/posix-functions/execvp.texi (execvp): Likewise.
10712         * doc/glibc-functions/canonicalize_file_name.texi
10713         (canonicalize_file_name): Cygwin 1.7 now provides this.
10714         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10715         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10716         on AT_SYMLINK_NOFOLLOW.
10717
10718 2009-09-24  Eric Blake  <ebb9@byu.net>
10719
10720         test-linkat: make test more robust
10721         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10722
10723         getopt: fix inclusion guards for cygwin
10724         * modules/getopt-posix (Depends-on): Add include-next.
10725         (Makefile.am): Substitute more items in replacement header.
10726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10727         <getopt.h>.
10728         * lib/getopt.in.h (includes): Use split inclusion guard, and
10729         prefer <getopt.h> over include <unistd.h> when one is present.
10730         (option): Also override name of 'struct option'.
10731
10732         same-inode: revert prior change; it is not yet ready
10733         * NEWS: Undo mention of this change.
10734         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10735         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10736         * lib/cycle-check.c (cycle_check): Likewise.
10737         * lib/same.c (same_name): Likewise.
10738         * lib/at-func2.c (at_func2): Likewise.
10739
10740 2009-09-23  Eric Blake  <ebb9@byu.net>
10741
10742         linkat: new module
10743         * modules/linkat: New file.
10744         * lib/at-func2.c (at_func2): Likewise.
10745         * lib/linkat.c (linkat): Likewise.
10746         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10747         * lib/openat-priv.h (at_func2): Add declaration.
10748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10749         * modules/unistd (Makefile.am): Substitute them.
10750         * lib/unistd.in.h (linkat): Declare it.
10751         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10752         * doc/posix-functions/linkat.texi (linkat): Likewise.
10753         * doc/posix-functions/link.texi (link): Tweak wording.
10754         * tests/test-link.c (main): Move guts...
10755         * tests/test-link.h (test_link): ...into new file.
10756         * modules/linkat-tests: New test.
10757         * tests/test-linkat.c: Likewise.
10758         * modules/link-tests (Files): Ship new file.
10759         (Depends-on): Add stdbool.
10760
10761         dirname: add library-safe mdir_name
10762         * lib/dirname.h (mdir_name): New prototype.
10763         * lib/dirname.c (dir_name): Move guts...
10764         (mdir_name): ...to new function that avoids xalloc_die.
10765
10766         fchdir: another mingw fix
10767         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10768         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10769         on mingw (where it has not yet been ported), and make it optional
10770         elsewhere.
10771         (_gl_register_fd): Use it.
10772
10773         same-inode: make SAME_INODE tri-state, to port to mingw
10774         * NEWS: Mention this change.
10775         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10776         st_ino always being 0.
10777         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10778         * lib/cycle-check.c (cycle_check): Likewise.
10779         * lib/same.c (same_name): Likewise.
10780
10781         lstat: avoid mingw compilation error
10782         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10783         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10784         lstat ourselves.
10785         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10786         was adequate.
10787         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10788         the checks for lstat.
10789         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10790
10791         link: fix test failure on Solaris 9
10792         * lib/link.c (rpl_link): Don't assume link will catch bogus
10793         trailing slash on source.
10794
10795         test-symlinkat: enhance test
10796         * tests/test-readlink.c (main): Move guts...
10797         * tests/test-readlink.h (test_readlink): ...into new file.
10798         * tests/test-symlink.c (main): Move guts...
10799         * tests/test-symlink.h (test_symlink): ...into new file.
10800         * tests/test-symlinkat.c (main): Use new files for further
10801         coverage.
10802         (do_symlink, do_readlink): New helper functions.
10803         * modules/symlink-tests (Files): Ship new file.
10804         (Depends-on): Add stdbool.
10805         * modules/readlink-tests (Files): Ship new file.
10806         (Depends-on): Add stdbool.
10807         * modules/symlinkat-tests (Files): Use new files.
10808
10809 2009-09-23  Eric Blake  <ebb9@byu.net>
10810
10811         readlink: document portability issue with symlink length
10812         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10813         systems have bogus st_size on symlinks, and mention the
10814         areadlink-with-size module.
10815         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10816         * doc/posix-functions/readlink.texi (readlink): Mention the
10817         areadlink module, and ERANGE failure.
10818         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10819         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10820
10821         readlink: fix Solaris 9 bug with trailing slash
10822         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10823         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10824         * doc/posix-functions/readlink.texi (readlink): Document this.
10825         * modules/readlink-tests: New test.
10826         * tests/test-readlink.c: Likewise.
10827
10828         readlink: fix cygwin 1.5.x bug with return type
10829         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10830         * lib/unistd.in.h (readlink): Use ssize_t.
10831         * lib/readlink.c (readlink): Likewise.
10832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10833         * modules/unistd (Makefile.am): Substitute it.
10834         * lib/unistd.in.h (readlink): Declare replacement.
10835         * doc/posix-functions/readlink.texi (readlink): Document this.
10836
10837         symlink: use throughout gnulib
10838         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10839         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10840         symlink is not used.
10841         * modules/symlinkat (Depends-on): Add symlink.
10842         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10843         * modules/canonicalize-tests (Depends-on): Likewise.
10844         * modules/lstat-tests (Depends-on): Likewise.
10845         * modules/openat-tests (Depends-on): Likewise.
10846         * modules/remove-tests (Depends-on): Likewise.
10847         * modules/rmdir-tests (Depends-on): Likewise.
10848         * modules/unlink-tests (Depends-on): Likewise.
10849         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10850         * tests/test-canonicalize.c (symlink): Likewise.
10851         * tests/test-fstatat.c (symlink): Likewise.
10852         * tests/test-lstat.c (symlink): Likewise.
10853         * tests/test-remove.c (symlink): Likewise.
10854         * tests/test-rmdir.c (symlink): Likewise.
10855         * tests/test-unlink.c (symlink): Likewise.
10856         * tests/test-unlinkat.c (symlink): Likewise.
10857
10858         symlink: new module, for Solaris 9 bug
10859         * modules/symlink: New file.
10860         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10861         * lib/symlink.c: Likewise.
10862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10863         * modules/unistd (Makefile.am): Substitute them.
10864         * lib/unistd.in.h (symlink): Declare replacement.
10865         * MODULES.html.sh (File system functions): Mention it.
10866         * doc/posix-functions/symlink.texi (symlink): Likewise.
10867         * modules/symlink-tests: New test.
10868         * tests/test-symlink.c: Likewise.
10869
10870 2009-09-23  Bruno Haible  <bruno@clisp.org>
10871
10872         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10873         when needed.
10874         Test case: gnulib-tool --import --with-tests atexit inttypes.
10875         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10876
10877 2009-09-23  Bruno Haible  <bruno@clisp.org>
10878
10879         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10880         subcommand, not in a subshell.
10881
10882 2009-09-22  Eric Blake  <ebb9@byu.net>
10883
10884         unistd: sort replacement declarations
10885         * lib/unistd.in.h: Sort declarations.
10886
10887         open, openat: minor optimization
10888         * lib/open.c (open): If open succeeded, len is non-zero.
10889         * lib/openat.c (rpl_openat): Likewise.
10890
10891         link-follow: ensure correct result
10892         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10893         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10894         distinguish between possible failures.
10895
10896 2009-09-21  Eric Blake  <ebb9@byu.net>
10897
10898         fts: avoid compiler warning
10899         * lib/fts.c (dirent_inode_sort_may_be_useful)
10900         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10901
10902 2009-09-19  Bruno Haible  <bruno@clisp.org>
10903
10904         * lib/progreloc.c (canonicalize_file_name): New declaration.
10905
10906 2009-09-19  Eric Blake  <ebb9@byu.net>
10907
10908         link: fix quoting
10909         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10910
10911         openat: fix openat bugs on Solaris 9
10912         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10913         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10914         * modules/openat (Depends-on): Add open.
10915         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10916         * modules/fcntl-h (Makefile.am): Substitute it.
10917         * lib/fcntl.in.h (openat): Declare replacement.
10918         * doc/posix-functions/openat.texi (openat): Document this.
10919
10920         openat: move fstatat and unlinkat into correct files
10921         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10922         compiled.
10923         * lib/openat.c (fstatat, unlinkat): Move...
10924         * lib/fstatat.c (fstatat): ...into correct files.
10925         * lib/unlinkat.c (unlinkat): Likewise.
10926
10927         openat: fix unlinkat bugs on Solaris 9
10928         * lib/unlinkat.c (unlinkat): New file.
10929         * modules/openat (Depends-on): Add unlink.
10930         (Files): Distribute it.
10931         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10932         trailing slash behavior is broken.
10933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10934         * modules/unistd (Makefile.am): Substitute it.
10935         * lib/unistd.in.h (unlinkat): Declare replacement.
10936         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10937
10938         openat: fix fstatat bugs on Solaris 9
10939         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10940         stat.
10941         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10942
10943         test-unlinkat: enhance test, to expose Solaris 9 bug
10944         * tests/test-unlink.c (main): Factor guts...
10945         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10946         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10947         * tests/test-rmdir.c (main): Adjust caller.
10948         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10949         (unlinker): New helper function.
10950         (rmdirat): Enhance check.
10951         * modules/rmdir-tests (Depends-on): Add stdbool.
10952         * modules/unlink-tests (Depends-on): Likewise.
10953         (Files): Add test-unlink.h.
10954         * modules/openat-tests (Files): Likewise.
10955         (Depends-on): Add unlinkdir.
10956
10957         test-fstatat: new test, to expose Solaris 9 bugs
10958         * tests/test-stat.c (main): Factor guts...
10959         * tests/test-stat.h (test_stat_func): ...into new file.
10960         * tests/test-lstat.c (main): Factor guts...
10961         * tests/test-lstat.h (test_lstat_func): ...into new file.
10962         * tests/test-fstatat.c: New file.
10963         * modules/stat-tests (Files): Add test-stat.h.
10964         * modules/lstat-tests (Files): Add test-lstat.h.
10965         (Depends-on): Add stdbool.
10966         * modules/openat-tests (Depends-on): Add pathmax.
10967         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10968         (Makefile.am): Run new test.
10969
10970         remove: new module, for mingw and Solaris 9 bugs
10971         * modules/remove: New file.
10972         * lib/remove.c: Likewise.
10973         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10975         * modules/stdio (Makefile.am): Use them.
10976         * lib/stdio.in.h (remove): Declare replacement.
10977         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10978         * doc/posix-functions/remove.texi (remove): Likewise.
10979         * modules/remove-tests: New test.
10980         * tests/test-remove.c: Likewise.
10981
10982         unlink: new module, for Solaris 9 bug
10983         * modules/unlink: New file.
10984         * lib/unlink.c: Likewise.
10985         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10987         * modules/unistd (Makefile.am): Use them.
10988         * lib/unistd.in.h (stat): Declare replacement.
10989         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10990         * doc/posix-functions/unlink.texi (unlink): Likewise.
10991         * modules/unlink-tests: New test.
10992         * tests/test-unlink.c: Likewise.
10993
10994         lstat: fix Solaris 9 bug
10995         * lib/lstat.c (lstat): Also check for trailing slash on
10996         non-symlink, non-directories.  Use stat module to simplify logic.
10997         * doc/posix-functions/lstat.texi (lstat): Document it.
10998         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10999         (configure.ac): Check for symlink.
11000         * tests/test-lstat.c (main): Add more tests.
11001
11002         stat: add as dependency to other modules
11003         * modules/chown (Depends-on): Add stat.
11004         * modules/euidaccess (Depends-on): Likewise.
11005         * modules/fchdir (Depends-on): Likewise.
11006         * modules/isdir (Depends-on): Likewise.
11007         * modules/link (Depends-on): Likewise.
11008         * modules/lstat (Depends-on): Likewise.
11009         * modules/mkdir-p (Depends-on): Likewise.
11010         * modules/modechange (Depends-on): Likewise.
11011         * modules/open (Depends-on): Likewise.
11012         * modules/readlink (Depends-on): Likewise.
11013         * modules/same (Depends-on): Likewise.
11014
11015         stat: fix Solaris 9 bug
11016         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
11017         slash.
11018         * lib/stat.c (rpl_stat): Work around it.
11019         * doc/posix-functions/stat.texi (stat): Update documentation.
11020
11021         stat: new module, for mingw bug
11022         * modules/stat: New file.
11023         * lib/stat.c: Likewise.
11024         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11025         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11026         * modules/sys_stat (Makefile.am): Use them.
11027         * lib/sys_stat.in.h (stat): Declare replacement.
11028         * lib/openat.c (fstatat): Deal with lstat and stat being function
11029         macros.
11030         * modules/openat (Depends-on): Add inline.
11031         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11032         * doc/posix-functions/stat.texi (stat): Likewise.
11033         * modules/stat-tests: New test.
11034         * tests/test-stat.c: Likewise.
11035
11036 2009-09-19  Jim Meyering  <meyering@redhat.com>
11037
11038         syntax-check: detect unnecessary inclusion of canonicalize.h
11039         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
11040
11041 2009-09-19  Eric Blake  <ebb9@byu.net>
11042
11043         canonicalize-lgpl: adjust clients to use correct header
11044         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
11045         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
11046         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
11047         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
11048         * lib/progreloc.c (includes): Likewise.
11049
11050 2009-09-19  Jim Meyering  <meyering@redhat.com>
11051
11052         test-posixtm.c: correct a comment
11053         * tests/test-posixtm.c: Correct first-line comment.
11054         Spotted by Eric Blake.
11055
11056 2009-09-16  Jim Meyering  <meyering@redhat.com>
11057
11058         posixtm-tests: make T const-correct; add a test case
11059         * tests/test-posixtm.c (T): Declare const.
11060         Add a test for -(2^31+1).
11061         Remove useless can-succeed-only-in-2002 test.
11062
11063         posixtm-tests: adjust the sole failing test
11064         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
11065         expected output matches what mktime now produces.  Cross-checked via
11066         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
11067
11068         posixtm: move #ifdef'd tests into a new module
11069         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
11070         * tests/test-posixtm.c: ... this new file.
11071         * modules/posixtm-tests: New module.
11072
11073 2009-09-19  Eric Blake  <ebb9@byu.net>
11074
11075         openat: simplify use of at-func.c
11076         * lib/at-func.c (includes): Include prerequisites here, to
11077         simplify requirements on client files.
11078         * lib/openat-priv.h: Add double-inclusion guard.
11079         * lib/faccessat.c (includes): Simplify.
11080         * lib/fchmodat.c (includes): Likewise.
11081         * lib/fchownat.c (includes): Likewise.
11082         * lib/mkdirat.c (includes): Likewise.
11083         * lib/mkfifoat.c (includes): Likewise.
11084         * lib/symlinkat.c (includes): Likewise.
11085
11086         openat: allow return of fd 0
11087         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
11088         * modules/save-cwd (Depends-on): Replace fcntl-safer with
11089         unistd-safer.
11090         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
11091         <fcntl.h>; this module does not leak fds.
11092         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
11093         must be allowed to return 0, leaving openat_safer to add the
11094         safety.
11095         (openat_permissive): Avoid writing to just-opened fd 2 if
11096         restoring the current directory fails.
11097         * lib/openat-die.c (openat_restore_fail): Add comment.
11098         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
11099         (save_cwd): Guarantee safe fd, but without use of open_safer.
11100         * tests/test-openat.c: New test.
11101         * modules/openat-tests (Files, Makefile.am): Distribute and build
11102         new file.
11103
11104         relocatable-prog-wrapper: fix build
11105         * modules/relocatable-prog-wrapper (Files): Update name of
11106         canonicalize m4 file, broken on 2009-09-17.
11107         Reported by emad hajjar <aleppos@hotmail.com>.
11108
11109 2009-09-19  Bruno Haible  <bruno@clisp.org>
11110
11111         * lib/safe-alloc.h: Use the standard header with GPL copyright.
11112         * lib/safe-alloc.c: Likewise.
11113         Reported by Ian Beckwith <ianb@erislabs.net>.
11114
11115 2009-09-18  Bruno Haible  <bruno@clisp.org>
11116
11117         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
11118         Reported by <erobles@sensacd.com.mx>.
11119
11120 2009-09-17  Eric Blake  <ebb9@byu.net>
11121
11122         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
11123         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
11124         slashes when checking if last component is missing.
11125         * tests/test-canonicalize.c (main): Test this.
11126
11127         canonicalize, canonicalize-lgpl: honor // if distinct from /
11128         * modules/canonicalize (Files): Add double-slash-root.m4.
11129         * modules/canonicalize-lgpl (Files): Likewise.
11130         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
11131         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
11132         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
11133         fallback definition.
11134         (canonicalize_filename_mode): Use it to protect //.
11135         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
11136         (__realpath): Likewise.
11137         * tests/test-canonicalize.c (main): Test this.
11138         * tests/test-canonicalize-lgpl.c (main): Likewise.
11139         * modules/canonicalize-tests (Depends-on): Add same-inode.
11140         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11141
11142         canonicalize-lgpl: fix glibc bug with trailing slash
11143         * m4/canonicalize-lgpl.m4: Move contents...
11144         * m4/canonicalize.m4: ...here.
11145         (gl_CANONICALIZE_LGPL): Factor realpath check...
11146         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
11147         glibc 2.3.5 bug, fixed 2005-04-27.
11148         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
11149         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
11150         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
11151         * modules/canonicalize-lgpl (Files): Manage file rename.
11152         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11153         * modules/stdlib (Makefile.am): Substitute witness.
11154         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
11155         is needed.
11156         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
11157         replacement is required.
11158         * lib/canonicalize.c (canonicalize_file_name): Likewise.
11159         * doc/glibc-functions/canonicalize_file_name.texi
11160         (canonicalize_file_name): Document this.
11161         * doc/posix-functions/realpath.texi (realpath): Likewise.
11162
11163         canonicalize-lgpl: reject non-directory with trailing slash
11164         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
11165         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
11166         catches failures in glibc 2.3.5.
11167         * tests/test-canonicalize.c (main): Likewise.
11168
11169         canonicalize-lgpl: use native realpath if it works
11170         * lib/canonicalize-lgpl.c (realpath): Guard with
11171         FUNC_REALPATH_WORKS.
11172         * lib/stdlib.in.h (realpath): Make declaration optional based on
11173         HAVE_REALPATH.
11174         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
11175         native realpath works.
11176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11177         * modules/stdlib (Makefile.am): Substitute witness.
11178
11179         canonicalize, canonicalize-lgpl: use <stdlib.h>
11180         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
11181         (Include): Mention <stdlib.h>.
11182         (configure.ac): Mention functions we provide.
11183         * modules/canonicalize (configure.ac): Likewise.
11184         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
11185         realpath if canonicalize_file_name is missing.
11186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
11187         * modules/stdlib (Makefile.am): Substitute witnesses.
11188         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
11189         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
11190         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
11191         * NEWS: Document this.
11192         * doc/glibc-functions/canonicalize_file_name.texi
11193         (canonicalize_file_name): Likewise.
11194         * doc/posix-functions/realpath.texi (realpath): Likewise.
11195         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
11196
11197         test-canonicalize: consolidate into single C program
11198         * tests/test-canonicalize.sh: Delete; move setup into...
11199         * tests/test-canonicalize.c (main): ...the program, making it
11200         easier to run in debugger.  Add some tests.
11201         * modules/canonicalize-tests (Files): Remove unused file.
11202         (Depends-on): Add progname.
11203         (configure.ac, Makefile.am): Simplify.
11204
11205         test-canonicalize-lgpl: consolidate into single C program
11206         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
11207         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
11208         easier to run in debugger.  Add some tests.
11209         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
11210         (configure.ac, Makefile.am): Simplify.
11211
11212         canonicalize: avoid resolvepath
11213         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
11214         unnecessary checks.
11215         * lib/canonicalize.c (includes): Simplify.
11216         (canonicalize_file_name): Drop resolvepath implementation.
11217         * modules/canonicalize (Depends-on): Drop filenamecat.
11218
11219         canonicalize: don't lose errno
11220         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
11221         over calls to free.
11222
11223         canonicalize: simplify errno handling
11224         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
11225         assignment.
11226
11227         canonicalize, canonicalize-lgpl: update module dependencies
11228         * modules/canonicalize (Depends-on): Add extensions, lstat,
11229         pathmax, stdlib.
11230         (Files): Drop pathmax.h.
11231         (configure.ac): Adjust macro name.
11232         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
11233         lstat, stdlib, sys_stat.
11234         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
11235         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
11236         extensions.
11237         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
11238         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
11239         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
11240         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
11241         declaration, if available.
11242         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
11243         we can rely on the readlink module.
11244         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
11245         (includes): Use <unistd.h> unconditionally.
11246
11247 2009-09-17  Eric Blake  <ebb9@byu.net>
11248
11249         maint: make Include sections of modules consistent
11250         * modules/alloca: Use only header name; no need to list #include.
11251         * modules/alloca-opt: Likewise.
11252         * modules/arpa_inet: Likewise.
11253         * modules/canon-host: Likewise.
11254         * modules/configmake: Likewise.
11255         * modules/dirent: Likewise.
11256         * modules/eealloc: Likewise.
11257         * modules/environ: Likewise.
11258         * modules/fchdir: Likewise.
11259         * modules/fcntl: Likewise.
11260         * modules/fcntl-h: Likewise.
11261         * modules/gethrxtime: Likewise.
11262         * modules/gettime: Likewise.
11263         * modules/ignore-value: Likewise.
11264         * modules/inet_ntop: Likewise.
11265         * modules/inet_pton: Likewise.
11266         * modules/inttypes: Likewise.
11267         * modules/isnand-nolibm: Likewise.
11268         * modules/isnanf-nolibm: Likewise.
11269         * modules/mbchar: Likewise.
11270         * modules/mbfile: Likewise.
11271         * modules/mbiter: Likewise.
11272         * modules/mbuiter: Likewise.
11273         * modules/netdb: Likewise.
11274         * modules/netinet_in: Likewise.
11275         * modules/nproc: Likewise.
11276         * modules/pagealign_alloc: Likewise.
11277         * modules/poll: Likewise.
11278         * modules/printf-frexp: Likewise.
11279         * modules/pthread: Likewise.
11280         * modules/putenv: Likewise.
11281         * modules/random_r: Likewise.
11282         * modules/relocatable-prog: Likewise.
11283         * modules/search: Likewise.
11284         * modules/select: Likewise.
11285         * modules/selinux-h: Likewise.
11286         * modules/settime: Likewise.
11287         * modules/signal: Likewise.
11288         * modules/size_max: Likewise.
11289         * modules/socklen: Likewise.
11290         * modules/ssize_t: Likewise.
11291         * modules/stdarg: Likewise.
11292         * modules/stdbool: Likewise.
11293         * modules/stddef: Likewise.
11294         * modules/stdint: Likewise.
11295         * modules/stdio: Likewise.
11296         * modules/stdlib: Likewise.
11297         * modules/string: Likewise.
11298         * modules/strings: Likewise.
11299         * modules/sys_file: Likewise.
11300         * modules/sys_ioctl: Likewise.
11301         * modules/sys_select: Likewise.
11302         * modules/sys_socket: Likewise.
11303         * modules/sys_stat: Likewise.
11304         * modules/sys_time: Likewise.
11305         * modules/sys_times: Likewise.
11306         * modules/sys_utsname: Likewise.
11307         * modules/sys_wait: Likewise.
11308         * modules/sysexits: Likewise.
11309         * modules/time: Likewise.
11310         * modules/times: Likewise.
11311         * modules/tmpfile: Likewise.
11312         * modules/trim: Likewise.
11313         * modules/unistd: Likewise.
11314         * modules/wchar: Likewise.
11315         * modules/wctype: Likewise.
11316
11317 2009-09-17  Bruno Haible  <bruno@clisp.org>
11318
11319         Make getdate.y compile on QNX and NetBSD 5 / i386.
11320         * m4/getdate.m4 (gl_GETDATE): Conditionally define
11321         TIME_T_FITS_IN_LONG_INT.
11322         * lib/getdate.y (long_time_t): New type.
11323         (relative_time): Change type of 'seconds' field to long_time_t.
11324         (get_date): Update types of local variables. Check against overflow
11325         during conversion from long_time_t to time_t.
11326         Reported by Matt Kraai <kraai@ftbfs.org>
11327         and Hasso Tepper <hasso@netbsd.org>.
11328
11329 2009-09-17  Bruno Haible  <bruno@clisp.org>
11330
11331         * modules/COPYING: Update copyright years.
11332         * modules/README: Likeiwse.
11333         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11334         Reported by Ian Beckwith <ianb@erislabs.net>.
11335
11336 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11337
11338         * users.txt: Update references for gnuit package.
11339
11340 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11341
11342         * m4/getdelim.m4: Fix typo in copyright line.
11343
11344 2009-09-17  Bruno Haible  <bruno@clisp.org>
11345
11346         * lib/atoll.c: Use the standard header with GPL copyright.
11347         * lib/argz.in.h: Likewise.
11348         * lib/glob.c: Likewise.
11349         * lib/glob-libc.h: Likewise.
11350         * lib/random_r.c: Likewise.
11351         * lib/siglist.h: Likewise.
11352         * lib/strsignal.c: Likewise.
11353         Reported by Ian Beckwith <ianb@erislabs.net>.
11354
11355 2009-09-17  Eric Blake  <ebb9@byu.net>
11356
11357         rmdir: ensure correct dependency order
11358         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11359
11360 2009-09-17  Bruno Haible  <bruno@clisp.org>
11361
11362         Disable assertion that fails on NetBSD 5 / i386.
11363         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11364         Reported by Sam Steingold <sds@gnu.org>
11365         and Hasso Tepper <hasso@netbsd.org>.
11366
11367 2009-09-16  Eric Blake  <ebb9@byu.net>
11368
11369         unlinkdir: port to mingw
11370         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11371         on which no one can unlink a directory.
11372
11373         stdlib: sort witness names
11374         * modules/stdlib (Makefile.am): Sort replacements.
11375         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11376         * lib/stdlib.in.h: Likewise.
11377
11378         parse-duration-tests: avoid link failure
11379         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11380         LIBINTL.
11381         Reported by Tom G. Christensen.
11382
11383         openat-tests: ensure unlinkat behaves like rmdir
11384         * tests/test-rmdir.c (main): Factor guts...
11385         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11386         * modules/rmdir-tests (Files): Ship new file.
11387         * modules/openat-tests: New test.
11388         * tests/test-unlinkat.c: Likewise.
11389
11390         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11391         * modules/rmdir-errno (Status, Notice): Now obsolete.
11392
11393         rmdir: work around cygwin 1.5.x and mingw bugs
11394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11395         * lib/rmdir.c (rmdir): Work around it.
11396         * modules/rmdir (Status, Notice): No longer obsolete.
11397         (Files): Add dos.m4.
11398         (Depends-on): Add unistd.
11399         (configure.ac): Set witnesses.
11400         (License): Relax to LGPLv2+.
11401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11402         * modules/unistd (Makefile.am): Substitute witnesses.
11403         * lib/unistd.in.h (rmdir): Declare replacement.
11404         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11405         * modules/rmdir-tests: New tests.
11406         * tests/test-rmdir.c: Likewise.
11407
11408 2009-09-15  Eric Blake  <ebb9@byu.net>
11409
11410         fchdir: improve use of replacement functions
11411         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11412         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11413         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11414         REPLACE_CLOSEDIR.
11415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11416         * modules/sys_stat (Makefile.am): Substitute correct witness.
11417         * modules/dirent (Makefile.am): Likewise.
11418         * modules/unistd (Makefile.am): Likewise.
11419         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11420         * lib/unistd.in.h (dup): Likewise.
11421         * lib/sys_stat.in.h (fstat): Likewise.
11422
11423         maint: ignore gnulib-tool temp files
11424         * .gitignore: Ignore files created during gnulib-tool --test.
11425
11426 2009-09-13  Jim Meyering  <meyering@redhat.com>
11427
11428         posixtm: don't reject a time that specify "60" as the number of seconds
11429         * lib/posixtm.c (posixtime): The code to reject invalid dates
11430         would also reject a time specified with the .60 suffix.
11431         But POSIX allows that, in order to accommodate leap seconds.
11432         So don't reject it.
11433         (main): Adjust tests accordingly.
11434         * modules/posixtm (Depends-on): Add stpcpy.
11435
11436 2009-09-11  Jim Meyering  <meyering@redhat.com>
11437
11438         announce-gen: include [$release_type] in emitted Subject:
11439         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11440         e.g., [stable] in the emitted Subject: line.
11441
11442 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11443
11444         Remove obsolete macros from several modules.
11445         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11446         obsolete Autoconf macros with their modern counterparts.
11447         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11448         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11449         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11450         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11451         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11452         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11454         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11455         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11456         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11457         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11458         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11459         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11460         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11461         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11462         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11463         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11464         * m4/time_r.m4 (gl_TIME_R): Likewise.
11465         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11466         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11467         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11468
11469         Fix copyright header in build-aux scripts.
11470         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11471         recommendation.
11472         * build-aux/ncftpput-ftp: Likewise.
11473         * build-aux/update-copyright: Likewise.
11474
11475 2009-09-09  Eric Blake  <ebb9@byu.net>
11476
11477         test-link: allow Linux choice of errno
11478         * tests/test-link.c (main): Relax test for alternate error.
11479
11480         strndup: fix improper m4 caching
11481         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11482         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11483         (gl_PREREQ_STRNDUP): Delete.
11484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11485         * modules/string (Makefile.am): Substitute it.
11486         * lib/string.in.h (strndup): Modernize prototype.
11487
11488         getcwd: port to mingw
11489         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11490         different from the POSIX assumptions made throughout the getcwd
11491         module; fortunately, the mingw getcwd does not need replacement.
11492         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11493         * modules/getcwd-tests: New test.
11494         * tests/test-getcwd.c: Likewise.
11495
11496         link: fix platform bugs
11497         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11498         * lib/link.c (link): Work around them.  Fix related mingw bug.
11499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11500         * modules/unistd (Makefile.am): Substitute it.
11501         * lib/unistd.in.h (link): Declare replacement.
11502         * doc/posix-functions/link.texi (link): Document this.
11503         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11504
11505         test-link: consolidate into single C program, test more cases
11506         * tests/test-link.sh: Delete.
11507         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11508         at least Cygwin and Solaris.
11509         * modules/link-tests (Files): Remove unused file.
11510         (Depends-on): Add errno, sys_stat.
11511         (Makefile.am): Simplify.
11512
11513 2009-09-08  Bruno Haible  <bruno@clisp.org>
11514
11515         Work around towlower, towupper bug on mingw.
11516         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11517         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11518         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11519         * doc/posix-functions/towupper.texi: Likewise.
11520         Reported by Eric Blake.
11521
11522 2009-09-08  Jim Meyering  <meyering@redhat.com>
11523
11524         build: don't try to run autoheader if we don't use it
11525         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11526         is not used in configure.ac.
11527
11528 2009-09-08  Eric Blake  <ebb9@byu.net>
11529
11530         euidaccess: fix compilation error
11531         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11532
11533         rawmemchr: relax license
11534         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11535         okay.
11536         Reported by Jim Meyering.
11537
11538         mkfifoat: new module
11539         * modules/mkfifoat: New file.
11540         * lib/mkfifoat.c: Likewise.
11541         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11543         * modules/sys_stat (Makefile.am): Use them.
11544         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11545         * MODULES.html.sh (File system functions): Mention module.
11546         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11547         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11548         * modules/mkfifoat-tests: New test.
11549         * tests/test-mkfifoat.c: Likewise.
11550
11551         strchrnul: relax license
11552         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11553         okay.
11554         Reported by Jim Meyering.
11555
11556 2009-09-08  Eric Blake  <ebb9@byu.net>
11557
11558         fstatat: fix compilation on Solaris
11559         * lib/fstatat.c (includes): Add fcntl.h.
11560         Reported by Pádraig Brady.
11561
11562 2009-09-07  Eric Blake  <ebb9@byu.net>
11563
11564         rename: modernize replacement
11565         * modules/rename (Depends-on): Add stdio.
11566         (configure.ac): Declare witness.
11567         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11568         stdio take care of replacement.
11569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11570         * modules/stdio (Makefile.am): Substitute them.
11571         * lib/stdio.in.h (rename): Declare replacement.
11572         * lib/rename.c (includes): Allow cross-compilation to non-windows
11573         machines.
11574         * doc/posix-functions/rename.texi (rename): Improve
11575         documentation.
11576
11577         stdio: sort witness names
11578         * modules/stdio (Makefile.am): Sort replacements.
11579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11580         * lib/stdio.in.h: Likewise.
11581
11582         getcwd: minor cleanups
11583         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11584         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11585
11586         openat: provide more convenience names
11587         * modules/faccessat (configure.ac): Add C witness.
11588         * lib/unistd.in.h (readlinkat): Fix typo.
11589         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11590         convenience wrappers.
11591         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11592         wrappers in syntax checks.
11593
11594 2009-09-06  Eric Blake  <ebb9@byu.net>
11595
11596         doc: fix comments in recent patches
11597         * lib/faccessat.c: Mention correct function.
11598         * lib/fchmodat.c: Likewise.
11599         * lib/fchownat.c: Likewise.
11600         * lib/symlinkat.c: Likewise.
11601         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11602         constants.
11603
11604         faccessat, symlinkat: continue cleanup of previous patch
11605         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11606         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11607         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11609         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11610         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11611         set.
11612
11613 2009-09-06  Bruno Haible  <bruno@clisp.org>
11614
11615         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11616         (fstatat): Declare if GNULIB_FSTATAT is set.
11617         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11618         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11619         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11620         * modules/fcntl-h (Files): Remove m4/openat.m4.
11621         * modules/sys_stat (Files): Remove m4/openat.m4.
11622         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11623         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11624         * modules/unistd (Files): Remove m4/openat.m4.
11625         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11626         GNULIB_OPENAT.
11627         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11628         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11629         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11630         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11631         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11632         gl_OPENAT_DEFAULTS.
11633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11634         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11635         Don't require gl_OPENAT_DEFAULTS.
11636         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11637         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11638         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11639         (gl_OPENAT_DEFAULTS): Remove macro.
11640
11641 2009-09-06  Bruno Haible  <bruno@clisp.org>
11642
11643         * modules/openat (configure.ac): Remove unneeded witness.
11644
11645 2009-09-06  Bruno Haible  <bruno@clisp.org>
11646
11647         Set errno to ENOSYS when a function is entirely unsupported.
11648         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11649         EOPNOTSUPP.
11650         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11651         * modules/chown (Depends-on): Remove errno.
11652
11653 2009-09-06  Bruno Haible  <bruno@clisp.org>
11654
11655         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11656
11657 2009-09-06  Bruno Haible  <bruno@clisp.org>
11658
11659         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11660
11661 2009-09-06  Ben Pfaff  <blp@gnu.org>
11662             Bruno Haible  <bruno@clisp.org>
11663
11664         Work around a glibc bug in strtok_r.
11665         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11666         Undefine if UNDEFINE_STRTOK_R is set.
11667         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11669         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11670         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11671         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11672         UNDEFINE_STRTOK_R.
11673         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11674
11675 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11676
11677         exclude: minor fix
11678         * lib/exclude.c: Include wctype.h
11679
11680 2009-09-06  Akim Demaille  <demaille@gostai.com>
11681
11682         bootstrap: improve error message
11683         * build-aux/bootstrap (find_tool): Upon failure, report the list
11684         of candidates.
11685         Honor the initial value of the envvar.
11686
11687 2009-09-05  Eric Blake  <ebb9@byu.net>
11688
11689         symlinkat: new module
11690         * modules/symlinkat: New file.
11691         * lib/symlinkat.c: Likewise.
11692         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11694         * modules/unistd (Makefile.am): Use them.
11695         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11696         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11697         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11698         * MODULES.html.sh (File system functions): Mention module.
11699         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11700         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11701         * modules/symlinkat-tests: New test.
11702         * tests/test-symlinkat.c: Likewise.
11703
11704         test-openat-safer: add more checks
11705         * tests/test-openat-safer.c (main): Check more code paths.
11706
11707 2009-09-05  Jim Meyering  <meyering@redhat.com>
11708
11709         syntax-check: detect unnecessary inclusion of openat.h
11710         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11711
11712 2009-09-05  Bruno Haible  <bruno@clisp.org>
11713
11714         Support towlower, towupper.
11715         * doc/posix-functions/towlower.texi: Mention module wctype.
11716         * doc/posix-functions/towupper.texi: Likewise.
11717         * lib/wctype.in.h (towlower, towupper): New functions.
11718         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11719         (ASSERT): New macro.
11720         (e): New variable.
11721         (main): Test also towlower, towupper. Test WEOF argument.
11722         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11723
11724 2009-09-05  Bruno Haible  <bruno@clisp.org>
11725
11726         Fix conversion behaviour when the input is invalid.
11727         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11728         mark occurring in first pass of indirect conversion.
11729         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11730         input.
11731         Found by clang's static analyzer.
11732
11733 2009-09-05  Bruno Haible  <bruno@clisp.org>
11734
11735         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11736         where direct conversion is possible.
11737
11738 2009-09-04  Eric Blake  <ebb9@byu.net>
11739
11740         openat: fail with ENOENT on empty name
11741         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11742         buffer.
11743
11744         link-follow: fix logic bug in prior patch
11745         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11746         reversed sense of yes and no in prior patch.  Avoid confusing
11747         compilation failure with desired semantics.
11748
11749         link-follow: accomodate mingw and cross-compilation
11750         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11751         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11752         cross-compilation results to -1, to make linkat easier to
11753         implement when cross-compiling.  Trivially support mingw.
11754         * modules/link-follow (configure.ac): Call new name.
11755         * NEWS: Mention this.
11756
11757 2009-09-03  Eric Blake  <ebb9@byu.net>
11758
11759         faccessat: compile replacement
11760         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11761         needed.
11762
11763         fts: fix compilation error
11764         * lib/fts.c (includes): Re-add "openat.h", for
11765         openat_needs_fchdir.
11766
11767         faccessat: new module
11768         * modules/faccessat: New file.
11769         * lib/faccessat.c: Likewise.
11770         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11772         * modules/unistd (Makefile.am): Use it.
11773         * lib/unistd.in.h (faccessat): Declare it.
11774         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11775         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11776         * MODULES.html.sh (File system functions): Mention it.
11777         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11778         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11779
11780         euidaccess: prefer POSIX over non-standard implementation
11781         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11782         * lib/euidaccess.c (euidaccess): Use it if available.
11783
11784         openat: make template easier to use
11785         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11786         AT_FUNC_F2 to be undefined.
11787         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11788         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11789         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11790         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11791         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11792         Likewise.
11793         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11794         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11795         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11796         Likewise.
11797
11798         openat: declare in POSIX headers
11799         * NEWS: Mention this.
11800         * modules/openat (configure.ac): Declare witnesses.
11801         (Depends-on): Add fcntl-h, sys_stat, unistd.
11802         (Include): Mention correct headers.
11803         * modules/fcntl-h (Depends-on): Add link-warning.
11804         (Files): Add openat.m4.
11805         (Makefile.am): Substitute witnesses.
11806         * modules/sys_stat (Files, Makefile.am): Likewise.
11807         * modules/unistd (Files, Makefile.am): Likewise.
11808         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11809         (gl_OPENAT_DEFAULTS): New macro.
11810         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11812         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11813         (SYS_STAT_H): Remove unused variable.
11814         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11815         * lib/fcntl--.h (includes): Remove unneeded header.
11816         * lib/openat-safer.c (includes): Likewise.
11817         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11818         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11819         appropriate headers.
11820         (__OPENAT_PREFIX): Delete.
11821         * lib/fcntl.in.h (openat): Provide declaration.
11822         (AT_FDCWD): Fix Solaris bug.
11823         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11824         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11825         * lib/fchmodat.c (includes):  Adjust to find declaration.
11826         * lib/fchownat.c (includes): Likewise.
11827         * lib/mkdirat.c (includes): Likewise.
11828         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11829         still visible.
11830
11831 2009-09-02  Eric Blake  <ebb9@byu.net>
11832
11833         errno: use consistently
11834         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11835         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11836         * lib/canonicalize.c (ELOOP): Likewise.
11837         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11838         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11839         * lib/lchown.c (EOPNOTSUPP): Likewise.
11840         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11841         * lib/savewd.c (ESTALE): Likewise.
11842         * lib/settime.c (ENOSYS): Likewise.
11843         * lib/utimens.c (ENOSYS): Likewise.
11844         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11845         * lib/chdir-safer.c (ELOOP): Likewise.
11846         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11847         * modules/c-stack (Depends-on): Add errno.
11848         * modules/canonicalize (Depends-on): Likewise.
11849         * modules/chdir-safer (Depends-on): Likewise.
11850         * modules/fdopendir (Depends-on): Likewise.
11851         * modules/inet_ntop (Depends-on): Likewise.
11852         * modules/inet_pton (Depends-on): Likewise.
11853         * modules/lchown (Depends-on): Likewise.
11854         * modules/openat (Depends-on): Likewise.
11855         * modules/savewd (Depends-on): Likewise.
11856         * modules/settime (Depends-on): Likewise.
11857         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11858
11859         fts: avoid leaking fds
11860         * modules/fts (Depends-on): Add cloexec.
11861         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11862         flag.
11863
11864         fts: make directory fds more robust
11865         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11866         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11867
11868         backupfile, chdir-long, fts, savedir: make safer
11869         * lib/backupfile.c (includes): Use "dirent--.h", since
11870         numbered_backup can write to stderr during readdir.
11871         * lib/savedir.c (includes): Likewise.
11872         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11873         emulation can write to stderr on failure.
11874         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11875         * lib/getcwd.c: Document why opendir_safer is unused.
11876         * lib/glob.c: Likewise.
11877         * lib/scandir.c: Likewise.
11878         * lib/openat-proc.c: Likewise, for open_safer.
11879         * modules/backupfile (Depends-on): Add dirent-safer.
11880         * modules/savedir (Depends-on): Likewise.
11881         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11882         * modules/chdir-long (Depends-on): Add openat-safer.
11883
11884         openat-safer: new module
11885         * modules/openat-safer: New file.
11886         * lib/openat-safer.c: Likewise.
11887         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11888         * lib/fcntl-safer.h (openat_safer): Declare.
11889         * lib/fcntl--.h (openat): Override.
11890         * MODULES.html.sh (File descriptor based I/O): Mention it.
11891         * lib/openat.h: Add double-inclusion guards.
11892         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11893         "fcntl--.h", so we can implement openat.
11894         * modules/openat-safer-tests: New test.
11895         * tests/test-openat-safer.c: New file.
11896
11897         dirent-safer: new module
11898         * modules/dirent-safer: New file.
11899         * lib/dirent--.h: Likewise.
11900         * lib/dirent-safer.h: Likewise.
11901         * lib/opendir-safer.c: Likewise.
11902         * m4/dirent-safer.m4: Likewise.
11903         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11904         * modules/dirent-safer-tests: New test.
11905         * tests/test-dirent-safer.c: New file.
11906         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11907
11908         fdopendir: optimize on mingw
11909         * lib/unistd.in.h (_gl_directory_name): New prototype.
11910         * lib/fchdir.c (_gl_directory_name): Implement it.
11911         (fchdir): Use it to simplify implementation.
11912         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11913         fchdir, when available, to avoid calling [f]chdir().
11914
11915         fdopendir: split into its own module
11916         * lib/openat.c (fdopendir): Move...
11917         * lib/fdopendir.c: ...into new file.
11918         * modules/fdopendir: New module.
11919         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11920         * modules/openat (Depends-on): Add fdopendir.
11921         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11922         fdopendir here.
11923         * modules/savedir (Depends-on): Only need fdopendir, not full
11924         openat.
11925         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11926         * lib/openat.h (fdopendir): Drop prototype.
11927         * lib/dirent.in.h (fdopendir): Provide prototype.
11928         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11929         * modules/dirent (Makefile.am): Substitute them.
11930         * MODULES.html.sh (File system functions): Mention it.
11931         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11932         * modules/fdopendir-tests: New file.
11933         * tests/test-fdopendir.c: Likewise.
11934
11935         fchdir: use more consistent macro convention
11936         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11937         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11938         REPLACE_FCHDIR, rather than relying on config.h macros.
11939         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11940         inside a single make-time REPLACE_FCHDIR block, rather than using
11941         the config.h FCHDIR_REPLACEMENT.
11942         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11943         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11944         Manage fstat replacement.
11945         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11946         REPLACE_FCHDIR.
11947         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11948         (Makefile.am): Substitute REPLACE_FCHDIR.
11949         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11950         FCHDIR_REPLACEMENT.
11951         * lib/dup-safer.c (dup_safer): Likewise.
11952         * lib/dup2.c (rpl_dup2): Likewise.
11953         * lib/dup3.c (rpl_dup3): Likewise.
11954         * lib/open.c (rpl_open): Likewise.
11955
11956         fchdir: simplify error handling, and support dup3
11957         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11958         stdbool, malloc-posix, realloc-posix.
11959         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11960         (ensure_dirs_slot): Return false on allocation failure.
11961         (rpl_dup2): Delete.
11962         (_gl_register_dup): New function.
11963         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11964         (_gl_register_fd): Close fd on allocation failure.
11965         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11966         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11967         prototype.
11968         (rpl_dup2_fchdir): Delete prototype.
11969         * lib/open.c (open): Update caller.
11970         * lib/dup2.c (dup2): Track fchdir metadata.
11971         * lib/dup3.c (dup3): Likewise.
11972         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11974
11975 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11976
11977         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11978         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11979         don't pass arguments to AC_OUTPUT.
11980
11981 2009-09-02  Bruno Haible  <bruno@clisp.org>
11982
11983         * modules/mkdtemp (License): Relicense under LGPLv2+.
11984         Reported by Paolo Bonzini.
11985
11986 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11987
11988         Replace uses of obsolete autoconf macros in Jim's modules.
11989         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11990         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11991         can evoke a warning from autoconf when run with -Wobsolete
11992         enabled.  They were declared obsolete for good reasons (see
11993         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11994         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11995         should not continue using the deprecated macros.
11996         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11997         obsolete Autoconf macros with modern counterparts.
11998         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11999         * m4/dos.m4 (gl_AC_DOS): Likewise.
12000         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
12001         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
12002         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
12003         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
12004         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
12005         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
12006         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
12007         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
12008         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
12009         Likewise.
12010         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12011         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12012         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
12013         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
12014         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
12015         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
12016
12017 2009-09-01  Eric Blake  <ebb9@byu.net>
12018
12019         fchdir: fix off-by-one bug in previous patch
12020         * lib/fchdir.c (rpl_fstat): Use correct bounds.
12021         (_gl_unregister_fd): Delete useless if.
12022
12023 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
12024
12025         maint.mk: sort the list of syntax-check rules
12026         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
12027         easier to get a sense of progress when the rules are run sequentially
12028         and take a long time.
12029
12030 2009-09-01  Simon Josefsson  <simon@josefsson.org>
12031
12032         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
12033         * modules/netinet_in: Likewise.
12034         * modules/sys_file: Likewise.
12035         * modules/sys_ioctl: Likewise.
12036         * modules/sys_select: Likewise.
12037         * modules/sys_socket: Likewise.
12038         * modules/sys_stat: Likewise.
12039         * modules/sys_time: Likewise.
12040         * modules/sys_times: Likewise.
12041         * modules/sys_utsname: Likewise.
12042         * modules/sys_wait: Likewise.
12043
12044 2009-09-01  Jim Meyering  <meyering@redhat.com>
12045
12046         fts: help ensure that return values are not ignored
12047         * lib/fts_.h (__GNUC_PREREQ): Define.
12048         (__attribute_warn_unused_result__): Define.
12049         (fts_children, fts_close, fts_open, fts_read): Declare with
12050         __attribute_warn_unused_result__.
12051
12052         fts: fts_close now fails also when closing a dir file descriptor fails
12053         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
12054         and propagate to caller, along with errno.
12055
12056         announce-gen: correct formatting in --help output
12057         * build-aux/announce-gen (usage): Move the one-line description in
12058         --help output "up", to where it belongs, just after Usage:.
12059
12060 2009-08-31  Eric Blake  <ebb9@byu.net>
12061
12062         fchdir: port to mingw
12063         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
12064         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
12065         opened, then use a substitute.
12066         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
12067         replacement.
12068         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
12069         (_gl_register_fd): No need to check stat if open already filters
12070         all directories.
12071         (fchdir): Fix error condition to match POSIX.
12072         * modules/fchdir (Depends-on): Add sys_stat.
12073         * doc/posix-functions/open.texi (open): Document the limitation.
12074         * modules/fchdir-tests: New file.
12075         * tests/test-fchdir.c: Likewise.
12076
12077         canonicalize: allow cross-testing from cygwin to mingw
12078         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
12079         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
12080         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
12081         Likewise.
12082         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
12083         target does not support symlinks.
12084         * tests/test-canonicalize-lgpl.sh: Likewise.
12085
12086         chown: avoid compilation warning on mingw
12087         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
12088         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
12089         mingw.
12090         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
12091         * modules/chown (Depends-on): Add errno.
12092
12093 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12094
12095         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
12096         command.
12097
12098 2009-08-31  Jim Meyering  <meyering@redhat.com>
12099
12100         canonicalize: remove useless initialization
12101         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
12102         initialization of local, "end".
12103
12104 2009-08-30  Bruno Haible  <bruno@clisp.org>
12105
12106         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
12107         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
12108         ENOSYS.
12109
12110 2009-08-30  Bruno Haible  <bruno@clisp.org>
12111
12112         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
12113         /usr/xpg4/bin/tr when it exists.
12114         * tests/test-pipe-filter-gi1.sh: Likewise.
12115
12116 2009-08-30  Bruno Haible  <bruno@clisp.org>
12117
12118         Work around deficient /usr/bin/id program on Solaris.
12119         * tests/test-file-has-acl.sh (ID): New variable.
12120         * tests/test-set-mode-acl.sh (ID): Likewise.
12121         * tests/test-copy-acl.sh (ID): Likewise.
12122         * tests/test-copy-file.sh (ID): Likewise.
12123
12124 2009-08-30  Bruno Haible  <bruno@clisp.org>
12125
12126         New module 'xstriconveh'.
12127         * lib/xstriconveh.h: New file.
12128         * lib/xstriconveh.c: New file.
12129         * modules/xstriconveh: New file.
12130
12131 2009-08-30  Bruno Haible  <bruno@clisp.org>
12132
12133         Make it easier to use mem_cd_iconveh.
12134         * lib/striconveh.h (iconveh_t): New type.
12135         (iconveh_open, iconveh_close): New declarations.
12136         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12137         with a single 'const iconveh_t *' argument.
12138         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
12139         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12140         with a single 'const iconveh_t *' argument.
12141         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
12142         * tests/test-striconveh.c (main): Update.
12143         * NEWS: Mention the change.
12144
12145 2009-08-30  Bruno Haible  <bruno@clisp.org>
12146
12147         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
12148         problem.
12149
12150 2009-08-30  Bruno Haible  <bruno@clisp.org>
12151
12152         Work around iconv_open problem on Solaris.
12153         * lib/iconv_open-solaris.gperf: New file.
12154         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
12155         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
12156         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
12157         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
12158         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
12159         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
12160
12161 2009-08-29  Jim Meyering  <meyering@redhat.com>
12162
12163         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
12164         * top/maint.mk (cvs-check): Remove target; it was just an alias
12165         to the better-named vc-diff-check.
12166         (maintainer-distcheck): Remove rule.  It was used only from
12167         the (alpha/beta/major) target, and all of its commands but one
12168         were coreutils-specific.
12169         (vc-dist): Remove rule.
12170         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
12171         Run vc-diff-check, not vc-dist.
12172         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
12173
12174 2009-08-27  Bruno Haible  <bruno@clisp.org>
12175
12176         * tests/test-bitrotate.c (main): Remove test that uses a shift count
12177         of 0.
12178
12179 2009-08-27  Bruno Haible  <bruno@clisp.org>
12180
12181         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
12182         compilers.
12183         * doc/func.texi: Document the SunPRO C bug.
12184
12185 2009-08-27  Bruno Haible  <bruno@clisp.org>
12186
12187         Fix link error on Solaris.
12188         * tests/test-parse-duration.c (xstrdup): Remove function.
12189
12190 2009-08-26  Pádraig Brady  <P@draigbrady.com>
12191
12192         ignore-value: handle pointer types, too
12193         * lib/ignore-value.h (__attribute__): Remove definition.
12194         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
12195         of a more concise and more-often effective "(void) i" statement.
12196         (ignore_ptr): New function to suppress warnings from functions that
12197         return pointers, and to make it explicit that one function doesn't
12198         handle all cases.
12199
12200 2009-08-25  Bruno Haible  <bruno@clisp.org>
12201
12202         dup2: work around a Linux bug.
12203         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
12204         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
12205         * doc/posix-functions/dup2.texi: Mention the Linux bug.
12206         Reported by Simon Josefsson.
12207
12208 2009-08-25  Jim Meyering  <meyering@redhat.com>
12209
12210         libguestfs uses gnulib
12211         * users.txt: Add libguestfs.
12212
12213 2009-08-24  Eric Blake  <ebb9@byu.net>
12214
12215         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
12216         * lib/pipe2.c (includes): Add binary-io.h.
12217         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
12218
12219 2009-08-24  Bruno Haible  <bruno@clisp.org>
12220
12221         Tolerate declared but missing accept4 syscall.
12222         * lib/accept4.c (accept4): Invoke original accept4 function first, if
12223         available.
12224         * lib/sys_socket.in.h (accept4): If the function is already present,
12225         override it.
12226         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
12227         * modules/accept4 (Makefile.am): Compile accept4.c always.
12228         Reported by Paolo Bonzini and Eric Blake.
12229
12230 2009-08-23  Bruno Haible  <bruno@clisp.org>
12231
12232         New module 'accept4'.
12233         * lib/sys_socket.in.h (accept4): New declaration.
12234         * lib/accept4.c: New file.
12235         * m4/accept4.m4: New file.
12236         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12237         GNULIB_ACCEPT4, HAVE_ACCEPT4.
12238         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
12239         HAVE_ACCEPT4.
12240         * modules/accept4: New file.
12241         * doc/glibc-functions/accept4.texi: Mention the new module.
12242
12243 2009-08-24  Jim Meyering  <meyering@redhat.com>
12244
12245         progname: also set global program_invocation_name, when possible
12246         Before this change, a libtool-enabled program that calls glibc's
12247         error function would report the program name as
12248         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
12249         * modules/progname (configure.ac): Check for a declaration of
12250         program_invocation_name.
12251         * lib/progname.c:  Include <errno.h>.
12252         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
12253         Set program_invocation_name.
12254
12255 2009-08-23  Bruno Haible  <bruno@clisp.org>
12256
12257         * lib/dup3.c: Include <string.h>.
12258
12259 2009-08-23  Bruno Haible  <bruno@clisp.org>
12260
12261         * lib/dup3.c (dup3): Test only once whether the system actually exists.
12262         * lib/pipe2.c (pipe2): Likewise.
12263         Suggested by Eric Blake.
12264
12265 2009-08-23  Bruno Haible  <bruno@clisp.org>
12266
12267         Tolerate declared but missing dup3 syscall.
12268         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
12269         * lib/unistd.in.h (dup3): If the function is already present,
12270         override it.
12271         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
12272         * modules/dup3 (Makefile.am): Compile dup3.c always.
12273         Reported by Paolo Bonzini.
12274
12275 2009-08-23  Bruno Haible  <bruno@clisp.org>
12276
12277         Tolerate declared but missing pipe2 syscall.
12278         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
12279         available.
12280         * lib/unistd.in.h (pipe2): If the function is already present,
12281         override it.
12282         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
12283         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
12284         Reported by Paolo Bonzini.
12285
12286 2009-08-23  Bruno Haible  <bruno@clisp.org>
12287
12288         * lib/pipe2.c (pipe2): Move #ifs inside function.
12289
12290 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12291
12292         quotearg: document limitations of quote_these_too
12293         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
12294         those limitations are created.
12295         * lib/quotearg.h (set_char_quoting): Document that digits and
12296         letters that are special after backslash are not permitted.
12297         (quotearg_char): Cross-reference set_char_quoting documentation.
12298
12299 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
12300
12301         quotearg: implement custom_quoting_style
12302         * lib/quotearg.c: (struct quoting_options): Add left_quote and
12303         right_quote fields.
12304         (set_custom_quoting): New public function.
12305         (quotearg_buffer_restyled): Add left_quote and right_quote
12306         arguments, handle them very much like locale quoting, and update
12307         all uses.
12308         (quotearg_n_custom): New public function.
12309         (quotearg_n_custom_mem): New public function.
12310         (quotearg_custom): New public function.
12311         (quotearg_custom_mem): New public function.
12312         * lib/quotearg.h: Prototype and document new public functions.
12313         (enum quoting_style): For escape_quoting_style and
12314         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
12315         ignored even though they're otherwise like c_quoting_style.
12316         Add custom_quoting_style member and document with comparison to
12317         clocale_quoting_style.
12318         * tests/test-quotearg.c (custom_quotes): New array.
12319         (custom_results): New array.
12320         (main): Extend to test custom quoting.
12321
12322 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12323
12324         quotearg: fix right quote escaping when it's in quote_these_too
12325         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
12326         quote, be sure to prepend only one backslash.
12327         * tests/test-quotearg.c (use_quote_double_quotes): New function.
12328         (main): Test it.
12329
12330 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12331
12332         quotearg-tests: test escaping of embedded locale quotes
12333         * tests/test-quotearg.c (struct result_strings): Add member for
12334         new input.
12335         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12336         (inputs): Add new input.
12337         (results_g): Add expected results.
12338         (flag_results): Likewise.
12339         (locale_results): Likewise.
12340         (compare_strings): Check those.
12341
12342 2009-08-23  Bruno Haible  <bruno@clisp.org>
12343
12344         Tests for module 'dup3'.
12345         * modules/dup3-tests: New file.
12346         * tests/test-dup3.c: New file.
12347
12348         New module 'dup3'.
12349         * lib/unistd.in.h (dup3): New declaration.
12350         * lib/dup3.c: New file.
12351         * m4/dup3.m4: New file.
12352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12353         HAVE_DUP3.
12354         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12355         * modules/dup3: New file.
12356         * doc/glibc-functions/dup3.texi: Mention the new module.
12357
12358 2009-08-23  Bruno Haible  <bruno@clisp.org>
12359
12360         Tweak the dup2 test.
12361         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12362         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12363         the test file is still empty. Fix argument order of lseek.
12364
12365 2009-08-23  Bruno Haible  <bruno@clisp.org>
12366
12367         Avoid test link errors when the modules getopt-gnu, gettext are used.
12368         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12369         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12370
12371 2009-08-23  Bruno Haible  <bruno@clisp.org>
12372
12373         Fix getdtablesize() on mingw.
12374         * lib/getdtablesize.c (getdtablesize): Implement differently.
12375         * lib/unistd.in.h (getdtablesize): Improve comment.
12376
12377 2009-08-23  Bruno Haible  <bruno@clisp.org>
12378
12379         New module 'mkostemp'.
12380         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12381         * lib/stdlib.in.h (mksotemp): New declaration.
12382         * lib/mkostemp.c: New file, from glibc with modifications.
12383         * lib/tempname.h (GT_FILE): Remove outdated comment.
12384         (gen_tempname): Add flags argument.
12385         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12386         (__GT_FILE): Map to 1.
12387         (small_open, large_open): Remove macros.
12388         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12389         * lib/mkstemp.c (mkstemp): Update.
12390         * lib/mkdtemp.c (mkdtemp): Likewise.
12391         * m4/mkostemp.m4: New file.
12392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12393         HAVE_MKOSTEMP.
12394         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12395         HAVE_MKOSTEMP.
12396         * modules/mkostemp: New file, based on modules/mkstemp.
12397         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12398         * NEWS: Mention the change.
12399
12400 2009-08-23  Bruno Haible  <bruno@clisp.org>
12401
12402         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12403         Reported by Eric Blake.
12404
12405 2009-08-23  Bruno Haible  <bruno@clisp.org>
12406
12407         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12408         Reported by Eric Blake.
12409
12410 2009-08-23  Bruno Haible  <bruno@clisp.org>
12411
12412         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12413         * modules/pipe2 (Depends-on): Likewise.
12414
12415 2009-08-23  Eric Blake  <ebb9@byu.net>
12416
12417         fcntl-h: add O_TTY_INIT support
12418         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12419         * tests/test-fcntl-h.c (o): Test it.
12420         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12421
12422         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12423         * modules/fcntl: Move <fcntl.h> header replacement...
12424         * modules/fcntl-h: ...to new name, so as not to collide with
12425         like-named function.
12426         * tests/test-fcntl.c: Rename...
12427         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12428         * modules/fcntl-tests: Rename...
12429         * modules/fcntl-h-tests: ...to this.  Update test file name.
12430         * modules/chdir-long (Depends-on): Update clients.
12431         * modules/chdir-safer (Depends-on): Likewise.
12432         * modules/fcntl-safer (Depends-on): Likewise.
12433         * modules/fts (Depends-on): Likewise.
12434         * modules/mkancesdirs (Depends-on): Likewise.
12435         * modules/mkdir-p (Depends-on): Likewise.
12436         * modules/open (Depends-on): Likewise.
12437         * modules/savewd (Depends-on): Likewise.
12438         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12439         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12440
12441 2009-08-22  Bruno Haible  <bruno@clisp.org>
12442
12443         * modules/binary-io (License): Relicense under LGPL.
12444         * modules/pipe2 (License): Likewise.
12445
12446 2009-08-22  Bruno Haible  <bruno@clisp.org>
12447
12448         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12449         return value.
12450         * lib/pipe-filter-gi.c (filter_init): Likewise.
12451         Reported by Eric Blake.
12452
12453 2009-08-22  Bruno Haible  <bruno@clisp.org>
12454
12455         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12456         * modules/pipe (Depends-on): Add pipe2.
12457
12458 2009-08-22  Bruno Haible  <bruno@clisp.org>
12459
12460         Tests for module 'pipe2'.
12461         * modules/pipe2-tests: New file.
12462         * tests/test-pipe2.c: New file.
12463
12464         New module 'pipe2'.
12465         * lib/unistd.in.h (pipe2): New declaration.
12466         * lib/pipe2.c: New file.
12467         * m4/pipe2.m4: New file.
12468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12469         HAVE_PIPE2.
12470         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12471         * modules/pipe2: New file.
12472         * doc/glibc-functions/pipe2.texi: Mention the new module.
12473
12474 2009-08-22  Bruno Haible  <bruno@clisp.org>
12475
12476         Reference some new glibc functions.
12477         * doc/glibc-functions/accept4.texi: New file.
12478         * doc/glibc-functions/dup3.texi: New file.
12479         * doc/glibc-functions/mkostemp.texi: New file.
12480         * doc/glibc-functions/pipe2.texi: New file.
12481         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12482         (Glibc sys/socket.h): Refer to accept4.
12483         (Glibc unistd.h): Refer to dup3, pipe2.
12484         Reported by Eric Blake.
12485
12486 2009-08-22  Jim Meyering  <meyering@redhat.com>
12487             Bruno Haible  <bruno@clisp.org>
12488
12489         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12490         This makes it so packages using automake-1.11's silent-rules option
12491         can print e.g., a single "GEN    configmake.h" line, rather than
12492         the 30+ statements that perform the job.  If you want to see the
12493         actual commands, you can still run "make V=1".
12494         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12495         so that make output is abbreviated when those variables are defined
12496         appropriately.
12497         * modules/argz: Likewise.
12498         * modules/arpa_inet: Likewise.
12499         * modules/byteswap: Likewise.
12500         * modules/configmake: Likewise.
12501         * modules/dirent: Likewise.
12502         * modules/errno: Likewise.
12503         * modules/fcntl: Likewise.
12504         * modules/float: Likewise.
12505         * modules/fnmatch: Likewise.
12506         * modules/getopt-posix: Likewise.
12507         * modules/glob: Likewise.
12508         * modules/iconv_open: Likewise.
12509         * modules/inttypes: Likewise.
12510         * modules/localcharset: Likewise.
12511         * modules/locale: Likewise.
12512         * modules/math: Likewise.
12513         * modules/netdb: Likewise.
12514         * modules/netinet_in: Likewise.
12515         * modules/poll: Likewise.
12516         * modules/posix_spawnp-tests: Likewise.
12517         * modules/sched: Likewise.
12518         * modules/search: Likewise.
12519         * modules/selinux-h: Likewise.
12520         * modules/signal: Likewise.
12521         * modules/spawn: Likewise.
12522         * modules/stdarg: Likewise.
12523         * modules/stdbool: Likewise.
12524         * modules/stddef: Likewise.
12525         * modules/stdint: Likewise.
12526         * modules/stdio: Likewise.
12527         * modules/stdlib: Likewise.
12528         * modules/string: Likewise.
12529         * modules/strings: Likewise.
12530         * modules/sys_file: Likewise.
12531         * modules/sys_ioctl: Likewise.
12532         * modules/sys_select: Likewise.
12533         * modules/sys_socket: Likewise.
12534         * modules/sys_stat: Likewise.
12535         * modules/sys_time: Likewise.
12536         * modules/sys_times: Likewise.
12537         * modules/sys_utsname: Likewise.
12538         * modules/sys_wait: Likewise.
12539         * modules/sysexits: Likewise.
12540         * modules/time: Likewise.
12541         * modules/unistd: Likewise.
12542         * modules/wchar: Likewise.
12543         * modules/wctype: Likewise.
12544
12545 2009-08-22  Jim Meyering  <meyering@redhat.com>
12546
12547         announce-gen: detect write failure
12548         * build-aux/announce-gen: Add Coda at end.
12549         Remove equivalent-but-more-verbose block at top.
12550
12551 2009-08-19  Akim Demaille  <demaille@gostai.com>
12552
12553         bootstrap: --help to stdout.
12554         * bootstrap (usage): Don't send --help to stderr.
12555         Use a here doc instead of a long string.
12556
12557 2009-08-21  Eric Blake  <ebb9@byu.net>
12558
12559         test-popen-safer: split from test-popen
12560         * tests/test-popen.c (main): Move...
12561         * tests/test-popen.h: ...into new file.
12562         * tests/test-popen-safer2.c: New file.
12563         * modules/popen-tests (Files): Add test-popen.h.
12564         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12565         Suggested by Bruno Haible.
12566
12567         test-fcntl-safer: split from test-open
12568         * tests/test-open.c (main): Move...
12569         * tests/test-open.h: ...into new file.
12570         * tests/test-fcntl-safer.c: New file.
12571         * modules/open-tests (Files): Add test-open.h.
12572         * modules/fcntl-safer-tests: New file.
12573         Suggested by Bruno Haible.
12574
12575         test-fopen-safer: split from test-fopen
12576         * tests/test-fopen.c (main): Move...
12577         * tests/test-fopen.h: ...into new file.
12578         * tests/test-fopen-safer.c: New file.
12579         * modules/fopen-tests (Files): Add test-fopen.h.
12580         * modules/fopen-safer-tests: New file.
12581         Suggested by Bruno Haible.
12582
12583 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12584
12585         popen-safer: test O_CLOEXEC at run-time.
12586         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12587
12588 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12589
12590         fcntl: move more flags to the header
12591         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12592         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12593         * lib/fcntl.in.h: Do both things here.
12594
12595 2009-08-21  Jim Meyering  <meyering@redhat.com>
12596
12597         consistently remove $@-t before redirecting to it
12598         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12599         * modules/alloca-opt: Likewise.
12600         * modules/byteswap: Likewise.
12601         * modules/fnmatch: Likewise.
12602         * modules/getopt-posix: Likewise.
12603         * modules/glob: Likewise.
12604         * modules/poll: Likewise.
12605         * modules/posix_spawnp-tests: Likewise.
12606         * modules/sys_socket: Likewise.
12607         * modules/sysexits: Likewise.
12608
12609 2009-08-21  Eric Blake  <ebb9@byu.net>
12610
12611         popen: simplify access to original popen
12612         * lib/popen.c (rpl_popen): No need to worry about popen being a
12613         macro.
12614         Reported by Bruno Haible.
12615
12616 2009-08-20  Eric Blake  <ebb9@byu.net>
12617
12618         build: avoid some compiler warnings
12619         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12620         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12621         type.
12622         (new_exclude_segment, excluded_file_pattern_p)
12623         (excluded_file_name_p): Reduce scope.
12624         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12625         old-style declaration.
12626
12627 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12628
12629         * tests/test-exclude1.sh: Handle Windows EOL.
12630         * tests/test-exclude2.sh: Likewise.
12631         * tests/test-exclude3.sh: Likewise.
12632         * tests/test-exclude4.sh: Likewise.
12633         * tests/test-exclude5.sh: Likewise.
12634         * tests/test-exclude6.sh: Likewise.
12635         * tests/test-exclude7.sh: Likewise.
12636
12637 2009-08-19  Akim Demaille  <demaille@gostai.com>
12638
12639         bootstrap: find sha1sum when named gsha1sum.
12640         * bootstrap (find_tool): New.
12641         ($SHA1SUM): New.
12642         Use it.
12643
12644 2009-08-20  Jim Meyering  <meyering@redhat.com>
12645
12646         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12647         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12648         expression that converts "." in a file name to "\." in the resulting
12649         regexp.  Start with a dummy statement, so that prior shell variable
12650         definitions are expanded portably.  Reported by Simon Josefsson.
12651
12652 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12653
12654         Fix polling for writeability of a screen buffer.
12655         * lib/poll.c: Distinguish input and screen buffers for the
12656         Win32 implementation.
12657         * lib/select.c: Likewise.
12658
12659 2009-08-19  Eric Blake  <ebb9@byu.net>
12660
12661         popen-safer: prevent popen from clobbering std descriptors
12662         * modules/popen-safer: New file.
12663         * lib/popen-safer.c: Likewise.
12664         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12665         * lib/stdio--.h (popen): Provide override.
12666         * lib/stdio-safer.h (popen_safer): Provide declaration.
12667         * tests/test-popen.c (includes): Partially test this.
12668         * modules/popen-safer-tests: New file, for more tests.
12669         * tests/test-popen-safer.c: Likewise.
12670         * MODULES.html.sh (file stream based Input/Output): Mention it.
12671
12672         tests: test some of the *-safer modules
12673         * modules/fopen-safer (Depends-on): Add fopen.
12674         * modules/fcntl-safer (Depends-on): Add fcntl.
12675         * modules/stdlib-safer (Depends-on): Add stdlib.
12676         (configure.ac): Set indicator.
12677         * modules/unistd-safer (configure.ac): Likewise.
12678         * modules/tmpfile-safer (configure.ac): Likewise.
12679         (Depends-on): Add tmpfile.
12680         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12681         active.
12682         * tests/test-fopen.c (includes): Test safer versions when they are
12683         in use.
12684         * tests/test-open.c (includes): Likewise.
12685
12686         popen: fix cygwin 1.5 bug when stdin closed
12687         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12688         * modules/popen: New file.
12689         * modules/popen-tests: Likewise.
12690         * tests/test-popen.c: Likewise.
12691         * m4/popen.m4: Likewise.
12692         * lib/popen.c: Likewise.
12693         * lib/stdio.in.h (popen): New declaration.
12694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12695         * modules/stdio (Makefile.am): Likewise.
12696         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12697
12698 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12699
12700         maint.mk: give full control over update-copyright exclusions
12701         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12702         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12703         (update-copyright): Don't force inclusion of top-level
12704         ChangeLog.  Don't force exclusion of all COPYING files, but make
12705         them the default exclusion instead.
12706
12707 2009-08-16  Bruno Haible  <bruno@clisp.org>
12708
12709         Fix test failures on Solaris 10.
12710         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12711         tests when Solaris iconv() is used.
12712         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12713         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12714         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12715         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12716         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12717
12718 2009-08-16  Bruno Haible  <bruno@clisp.org>
12719
12720         Fix test failures on Solaris 10.
12721         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12722         'tr' program and pass it as first argument.
12723         * tests/test-pipe-filter-gi1.sh: Likewise.
12724         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12725         program as first argument.
12726         * tests/test-pipe-filter-gi1.c (main): Likewise.
12727
12728 2009-08-16  Eric Blake  <ebb9@byu.net>
12729
12730         fpurge: fix previous commits
12731         * modules/fpurge (Makefile.am): Make replacement conditional,
12732         partially reverting 2007-04-29 change; missed in previous
12733         attempt.
12734         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12735         is missing.
12736
12737 2009-08-16  Bruno Haible  <bruno@clisp.org>
12738
12739         Clarify fpurge's effect on the file position.
12740         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12741         * tests/test-fpurge.c (main): Make a second pass for checking the file
12742         position.
12743
12744 2009-08-16  Bruno Haible  <bruno@clisp.org>
12745
12746         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12747         declaration of fpurge is missing.
12748         * tests/test-fpurge.c (main): Check that the file has not more contents
12749         than expected. Close the file before removing it.
12750
12751 2009-08-15  Eric Blake  <ebb9@byu.net>
12752
12753         fpurge: don't wrap working cygwin implementation
12754         * lib/fpurge.c (fpurge): Fix comment typo.
12755         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12756         1.7 to avoid replacement.
12757         * tests/test-fpurge.c (main): Enhance test.
12758
12759 2009-08-15  Eric Blake  <ebb9@byu.net>
12760         and Jim Meyering  <meyering@redhat.com>
12761
12762         test-update-copyright: skip if perl is insufficient
12763         * tests/test-update-copyright.sh: Failure to run maintainer tool
12764         should not cause testsuite failure on cygwin 1.5.
12765
12766 2009-08-14  Eric Blake  <ebb9@byu.net>
12767
12768         doc: mention more functions added in cygwin 1.7.0
12769         * doc/posix-headers/limits.texi (limits.h): Update for recent
12770         cygwin additions.
12771         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12772         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12773         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12774         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12775         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12776
12777 2009-08-14  Eric Blake  <ebb9@byu.net>
12778
12779         maint.mk: simplify update-copyright rule
12780         * top/maint.mk (update-copyright-local): Delete, and document how
12781         to do it in cfg.mk instead.
12782         (update-copyright-exclude-regexp): Delete, and document how to do
12783         it in .x-update-copyright instead.
12784         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12785         exclude ChangeLog.
12786
12787 2009-08-14  Bruno Haible  <bruno@clisp.org>
12788
12789         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12790
12791 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12792
12793         maint.mk: support update-copyright-env
12794         * top/maint.mk (update-copyright-env): Define place-holder.
12795         (update-copyright): Expand $(update-copyright-env) before
12796         invoking update-copyright.
12797
12798 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12799
12800         update-copyright: implement forced reformatting
12801         * build-aux/update-copyright: Implement and document
12802         UPDATE_COPYRIGHT_FORCE.
12803         * tests/test-update-copyright.sh: Test it.
12804
12805 2009-08-14  Eric Blake  <ebb9@byu.net>
12806         and Bruno Haible  <bruno@clisp.org>
12807
12808         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12809         * tests/test-locale.c: Revert previous patch related to NULL.
12810         * tests/test-stdio.c: Likewise.
12811         * tests/test-stdlib.c: Likewise.
12812         * tests/test-string.c: Likewise.
12813         * tests/test-unistd.c: Likewise.
12814         * modules/time-tests (Depends-on): Add verify.
12815         * modules/wchar-tests (Depends-on): Likewise.
12816         * tests/test-time.c: Test for NULL compliance.
12817         * tests/test-wchar.c: Likewise.
12818         * modules/locale (Depends-on): Add stddef.
12819         * modules/stdio (Depends-on): Likewise.
12820         * modules/stdlib (Depends-on): Likewise.
12821         * modules/string (Depends-on): Likewise.
12822         * modules/time (Depends-on): Likewise.
12823         * modules/unistd (Depends-on): Likewise.
12824         * modules/wchar (Depends-on): Likewise.
12825         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12826         * lib/stdlib.in.h (includes): Likewise.
12827         * lib/string.in.h (includes): Likewise.
12828         * lib/time.in.h (includes): Likewise.
12829         * lib/unistd.in.h (includes): Likewise.
12830         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12831         replaced.
12832         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12833         * m4/stddef_h.m4: New file.
12834         * modules/stddef: Likewise.
12835         * lib/stddef.in.h: Likewise.
12836         * modules/stddef-tests: Likewise.
12837         * tests/test-stddef.c: Likewise.
12838         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12839         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12840         * doc/posix-headers/locale.texi (locale.h): Likewise.
12841         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12842         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12843         * doc/posix-headers/string.texi (string.h): Likewise.
12844         * doc/posix-headers/time.texi (time.h): Likewise.
12845         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12846         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12847
12848 2009-08-14  Eric Blake  <ebb9@byu.net>
12849
12850         doc: improve git diff of texinfo files
12851         * .gitattributes: Add rule for *.texi files, with hint on how to
12852         use it.
12853         Copied from m4, and based on a report by Bruno Haible.
12854
12855 2009-08-14  Bruno Haible  <bruno@clisp.org>
12856
12857         Disable multithread support by default on Cygwin 1.5.x for real.
12858         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12859
12860 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12861
12862         update-copyright: much ado about intervals
12863         * build-aux/update-copyright: Implement and document
12864         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12865         of copyright year intervals.
12866         Also, document UPDATE_COPYRIGHT_YEAR.
12867         * tests/test-update-copyright.sh: Test it.
12868
12869         update-copyright: convert 2-digit to 4-digit years
12870         * build-aux/update-copyright: Implement and document.
12871         * tests/test-update-copyright.sh: Update.
12872
12873 2009-08-14  Jim Meyering  <meyering@redhat.com>
12874
12875         test-exclude: avoid coreutils "make check" failure
12876         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12877         just as in test-argmatch.c.
12878
12879 2009-08-13  Eric Blake  <ebb9@byu.net>
12880
12881         test-dup2: fix bad assumption
12882         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12883         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12884
12885         test-version-etc: fix CRLF portability issue
12886         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12887         recognize \r.
12888         * tests/test-argp-version-etc-1.sh: Likewise.
12889
12890         getopt: update client modules
12891         * modules/argp (Depends-on): Use getopt-gnu.
12892         * modules/git-merge-changelog (Depends-on): Likewise.
12893         * modules/long-options (Depends-on): Likewise.
12894         * modules/xstrtol (Depends-on): Likewise.
12895
12896 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12897
12898         * tests/test-version-etc.sh: Don't fail on different
12899         project/version.  Don't fail on CRLF differences.  Rewrite to use
12900         multiple -e instead of multiple sed forks, suggested by Eric Blake
12901         <ebb9@byu.net>.
12902         * tests/test-argp-version-etc-1.sh: Likewise.
12903
12904 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12905
12906         * tests/test-version-etc.sh: Don't fail on different
12907         project/version.
12908
12909 2009-08-12  Bruno Haible  <bruno@clisp.org>
12910
12911         Tests for modules 'getopt-posix', 'getopt-gnu'.
12912         * modules/getopt-posix-tests: New file.
12913         * tests/test-getopt.c: New file.
12914         * tests/test-getopt.h: New file.
12915         * tests/test-getopt_long.h: New file.
12916
12917         New modules 'getopt-posix', 'getopt-gnu'.
12918         * modules/getopt-gnu: New file, renamed from modules/getopt.
12919         * modules/getopt-posix: New file.
12920         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12921         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12922         (gl_GETOPT): Remove macro.
12923         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12924         Disable the test against BSD systems that declare optreset. Test
12925         against mingw bug. Test against lack of support of optional arguments
12926         on many platforms.
12927         * doc/glibc-headers/getopt.texi: Update module name and list of
12928         relevant platforms.
12929         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12930         'getopt-gnu' and more portability problems.
12931         * NEWS: Mention the changes.
12932
12933 2009-08-12  Bruno Haible  <bruno@clisp.org>
12934
12935         Ensure that optarg etc. get declared by <unistd.h>.
12936         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12937         AC_USE_SYSTEM_EXTENSIONS.
12938         * modules/getopt (Depends-on): Add 'extensions'.
12939
12940 2009-08-12  Bruno Haible  <bruno@clisp.org>
12941
12942         Avoid test link errors.
12943         * modules/pipe-filter-ii-tests (Makefile.am): Define
12944         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12945         * modules/pipe-filter-gi-tests (Makefile.am): Define
12946         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12947         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12948
12949 2009-08-12  Bruno Haible  <bruno@clisp.org>
12950
12951         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12952         gl_GETOPT_SUBSTITUTE before.
12953         (gl_GETOPT): Use it.
12954         * m4/argp.m4 (gl_ARGP): Update.
12955         Reported by Sergey Poznyakoff.
12956
12957         * m4/getopt.m4: Reorder macros.
12958         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12959         (gl_GETOPT_SUBSTITUTE): Remove macro.
12960
12961 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12962
12963         Minor improvement in gitlog-to-changelog
12964
12965         * build-aux/gitlog-to-changelog: New option `--format' makes
12966         output format string configurable.
12967
12968 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12969
12970         Optimize exclude: use hash tables for non-wildcard patterns.
12971
12972         * lib/exclude.c: Include hash.h and mbuiter.h
12973         (struct exclude_pattern, exclude_segment): New data types.
12974         (struct exclude): Rewrite.
12975         (fnmatch_pattern_has_wildcards): New function.
12976         (new_exclude_segment, free_exclude_segment): New functions.
12977         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12978         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12979         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12980         * modules/exclude: Depend on hash and mbuiter.
12981
12982         * modules/exclude-tests: New file.
12983         * tests/test-exclude.c: New file.
12984         * tests/test-exclude1.sh: New file.
12985         * tests/test-exclude2.sh: New file.
12986         * tests/test-exclude3.sh: New file.
12987         * tests/test-exclude4.sh: New file.
12988         * tests/test-exclude5.sh: New file.
12989         * tests/test-exclude6.sh: New file.
12990         * tests/test-exclude7.sh: New file.
12991
12992 2009-08-12  Bruno Haible  <bruno@clisp.org>
12993
12994         Ensure that getopt() gets declared by <unistd.h>.
12995         * lib/unistd.in.h: Conditionally include getopt.h.
12996         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12997         Set GNULIB_UNISTD_H_GETOPT.
12998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12999         GNULIB_UNISTD_H_GETOPT.
13000         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
13001
13002 2009-08-12  Bruno Haible  <bruno@clisp.org>
13003
13004         Clarify logic.
13005         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
13006         gl_replace_getopt instead of GETOPT_H.
13007
13008 2009-08-12  Bruno Haible  <bruno@clisp.org>
13009
13010         * m4/getopt.m4: Add comments.
13011
13012 2009-08-12  Bruno Haible  <bruno@clisp.org>
13013
13014         Disable multithread support by default on Cygwin 1.5.x.
13015         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
13016         set gl_use_threads=no if not specified otherwise.
13017
13018 2009-08-11  Bruno Haible  <bruno@clisp.org>
13019
13020         Avoid compilation error on NetBSD 5.0.
13021         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
13022         * tests/test-stdio.c: Likewise.
13023         * tests/test-stdlib.c: Likewise.
13024         * tests/test-string.c: Likewise.
13025         * tests/test-unistd.c: Likewise.
13026         Reported by Greg Troxel <gdt@ir.bbn.com>
13027         at <https://savannah.gnu.org/support/?106973>.
13028
13029 2009-08-11  Bruno Haible  <bruno@clisp.org>
13030
13031         * modules/dup2-tests (Depends-on): Remove close.
13032
13033         Undo 2009-07-19 commit.
13034         * modules/acl-tests (Depends-on): Remove close.
13035         * modules/binary-io-tests (Depends-on): Likewise.
13036         * modules/closein-tests (Depends-on): Likewise.
13037         * modules/flock-tests (Depends-on): Likewise.
13038         * modules/fsync-tests (Depends-on): Likewise.
13039         * modules/lseek-tests (Depends-on): Likewise.
13040         * modules/pipe-tests (Depends-on): Likewise.
13041         * modules/posix_spawn-tests (Depends-on): Likewise.
13042         * modules/posix_spawnp-tests (Depends-on): Likewise.
13043         * modules/stat-time-tests (Depends-on): Likewise.
13044         * modules/yesno-tests (Depends-on): Likewise.
13045
13046 2009-08-10  Bruno Haible  <bruno@clisp.org>
13047
13048         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
13049
13050 2009-08-10  Bruno Haible  <bruno@clisp.org>
13051
13052         Fix a gcc warning.
13053         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
13054
13055 2009-08-10  Bruno Haible  <bruno@clisp.org>
13056
13057         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
13058         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
13059         not only the first time.
13060         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
13061         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
13062         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
13063         is 1, not only the the first time.
13064
13065 2009-08-10  Bruno Haible  <bruno@clisp.org>
13066
13067         Make it possible to use module 'gethostname' without module 'close'.
13068         * lib/unistd.in.h (close): Evoke a link error only if
13069         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
13070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13071         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13072         * modules/unistd (Makefile.am): Substitute
13073         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13074         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
13075         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
13076         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13077         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13078         * modules/sys_ioctl (Makefile.am): Substitute
13079         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13080         * modules/socket (configure.ac): On native Windows, set
13081         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
13082         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13083         Reported by Sam Steingold <sds@gnu.org>.
13084
13085 2009-08-10  Bruno Haible  <bruno@clisp.org>
13086
13087         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
13088         * modules/ioctl (configure.ac): Likewise.
13089
13090 2009-08-10  Bruno Haible  <bruno@clisp.org>
13091
13092         Avoid collision between gnulib wrapper and libintl wrapper.
13093         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
13094         already defined in intl/printf.c.
13095         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
13096         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
13097
13098 2009-08-09  Bruno Haible  <bruno@clisp.org>
13099
13100         Make <sys/select.h> really self-contained, also on Solaris 10.
13101         * lib/sys_select.in.h: Include <string.h>.
13102         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
13103         Solaris 10 problem.
13104         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
13105         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
13106         Reported by Jim Meyering.
13107
13108 2009-08-09  Bruno Haible  <bruno@clisp.org>
13109
13110         Avoid warnings from 'aclocal' that are due to a use of macro name
13111         AM_XGETTEXT_OPTION that is not defined in automake.
13112         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
13113         automake.
13114         * modules/error (configure.ac): Likewise.
13115         * modules/propername (configure.ac): Likewise.
13116         * modules/vasprintf (configure.ac): Likewise.
13117         * modules/verror (configure.ac): Likewise.
13118         * modules/xprintf (configure.ac): Likewise.
13119         * modules/xvasprintf (configure.ac): Likewise.
13120
13121 2009-08-08  Bruno Haible  <bruno@clisp.org>
13122
13123         Avoid compilation error in C++ mode.
13124         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
13125         Reported by Sam Steingold <sds@gnu.org>.
13126
13127 2009-08-08  Bruno Haible  <bruno@clisp.org>
13128
13129         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
13130         for the various Unix platforms.
13131         * doc/posix-headers/limits.texi: Update platforms list regarding
13132         HOST_NAME_MAX.
13133         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13134
13135 2009-08-07  Jim Meyering  <meyering@redhat.com>
13136
13137         selinux-at: fix typo in a comment
13138         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
13139         Spotted by Paolo Bonzini.
13140
13141         selinux-at: remove redundant m4 code, add documentation
13142         * modules/selinux-at (configure.ac): Remove redundant code.
13143         LIB_SELINUX is already set via the dependent module, selinux-h.
13144         (Include): Add quotes around selinux-at.h.
13145         * lib/selinux-at.h: Add documentation.
13146         Reported by Bruno Haible in
13147         http://marc.info/?l=gnulib-bug&m=124958988300749
13148
13149 2009-08-07  Bruno Haible  <bruno@clisp.org>
13150
13151         Avoid link error on MacOS X 10.3 and 10.4.
13152         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
13153         on non-ELF systems.
13154         * lib/argp-pv.c (argp_program_version): Likewise.
13155         Reported by Simon Josefsson.
13156
13157 2009-08-07  Simon Josefsson  <simon@josefsson.org>
13158
13159         * tests/test-version-etc.sh: Use $EXEEXT.
13160
13161 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
13162
13163         update-copyright: update documentation to point to maint.mk
13164         * build-aux/update-copyright: Here.
13165
13166 2009-08-06  Jim Meyering  <meyering@redhat.com>
13167
13168         maint.mk: support update-copyright-local
13169         * top/maint.mk (update-copyright-local): Define place-holder.
13170         (update-copyright): Depend on $(update-copyright-local).
13171
13172 2009-08-06  Jim Meyering  <meyering@redhat.com>
13173
13174         selinux-at: new module
13175         Initially written for coreutils, this module will soon be
13176         used by findutils, too.
13177         * MODULES.html.sh [Misc]: Add selinux-at.
13178         * lib/selinux-at.h: New file, from coreutils.
13179         * lib/selinux-at.c: Likewise.
13180         * modules/selinux-at: Likewise.
13181         (License): Change from LGPL to GPL, since it depends
13182         on the GPL'd openat module.
13183
13184         doc: update README
13185         * README: Remove references to cogito.
13186         Remove cvs-repo-updating instructions from 2007.
13187         Don't imply that CVS is better if you have limited disk space.
13188
13189 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13190
13191         update-copyright: support C-style comments
13192         * build-aux/update-copyright: Implement and document.
13193         * tests/test-update-copyright.sh: Test.
13194
13195 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13196
13197         update-copyright: support omitted "(C)"
13198         * build-aux/update-copyright: Implement and document.  Also,
13199         allow variable whitespace before "(C)".
13200         * tests/test-update-copyright.sh: Test.
13201
13202 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13203
13204         update-copyright: don't trip on non-FSF copyright statements
13205         * build-aux/update-copyright: Fix so that the first correctly
13206         formatted FSF copyright statement is recognized no matter what
13207         appears before it.  Update documentation.
13208         * tests/test-update-copyright.sh: Test that.
13209
13210 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13211
13212         update-copyright: clean up code a little
13213         * build-aux/update-copyright: Append "_re" to the name of any
13214         variable holding a regular expression.
13215         Replace "old" and "new" with "stmt" in variable names.
13216         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
13217         handled correctly.
13218         Format code more consistently.
13219
13220 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13221
13222         update-copyright-tests: improve portability
13223         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
13224         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
13225
13226 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13227
13228         update-copyright: support @copyright{} and &copy;
13229         * build-aux/update-copyright: Implement and document.
13230         * tests/test-update-copyright.sh: Test.
13231
13232 2009-08-04  Jim Meyering  <meyering@redhat.com>
13233
13234         update-copyright-tests: correctly test EOL=\r\n handling
13235         * tests/test-update-copyright.sh: Put \r at the end of some lines
13236         for the dos-eol tests.  Based on a patch by Joel E. Denny.
13237
13238         maint.mk: make update-copyright exclusion list more configurable
13239         * top/maint.mk (update-copyright): Default to excluding COPYING,
13240         but allow an override, in case someone does want to update that file.
13241
13242         maint.mk: don't update copyright date in COPYING
13243         * top/maint.mk (update-copyright): Exclude COPYING.
13244
13245         maint.mk: add a copyright-updating rule
13246         * top/maint.mk (update-copyright): New rule.
13247         Derived from coreutils/Makefile.am.
13248
13249         update-copyright: rename some variables
13250         * build-aux/update-copyright: Rename a few variables for clarity.
13251         Tweak syntax.  List Joel E. Denny as coauthor.
13252
13253 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13254
13255         update-copyright: fix bug for 2-digit last year and add tests
13256         * build-aux/update-copyright: Fix bug.
13257         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
13258         specified.
13259         * modules/update-copyright-tests: New
13260         * tests/test-update-copyright.sh: New.
13261
13262 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13263
13264         update-copyright: handle leading tabs in line prefix
13265         * build-aux/update-copyright: Count leading tabs as 8 spaces
13266         when computing margin.  This helps with the formatting of
13267         ChangeLogs, for example.
13268         Fix documentation a little.
13269
13270 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13271
13272         update-copyright: support EOL=\r\n
13273         * build-aux/update-copyright: Implement that.
13274
13275 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13276
13277         update-copyright: automatically format copyright statements
13278         * build-aux/update-copyright: Implement that.
13279         Also, be a little more predictable and safer by always failing
13280         when the full copyright format is not perfectly recognized as an
13281         unbroken whole.  Discussed at
13282         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
13283         Rewrite documentation.
13284
13285 2009-08-03  Bruno Haible  <bruno@clisp.org>
13286
13287         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
13288
13289 2009-08-02  Bruno Haible  <bruno@clisp.org>
13290
13291         Tests for module 'uname'.
13292         * modules/uname-tests: New file.
13293         * tests/test-uname.c: New file.
13294
13295         New module 'uname'.
13296         * lib/uname.c: New file.
13297         * m4/uname.m4: New file.
13298         * modules/uname: New file.
13299         * doc/posix-functions/uname.texi: Mention the new module.
13300
13301 2009-08-02  Bruno Haible  <bruno@clisp.org>
13302
13303         Tests for module 'sys_utsname'.
13304         * modules/sys_utsname-tests: New file.
13305         * tests/test-sys_utsname.c: New file.
13306
13307         New module 'sys_utsname'.
13308         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
13309         * m4/sys_utsname_h.m4: New file.
13310         * modules/sys_utsname: New file.
13311         * doc/posix-headers/sys_utsname.texi: Mention the new module.
13312
13313 2009-08-02  Bruno Haible  <bruno@clisp.org>
13314
13315         Implicitly initialize the sockets library.
13316         * lib/gethostname.c: Include sockets.h.
13317         (rpl_gethostname): Invoke gl_sockets_startup.
13318         * lib/socket.c: Include sockets.h.
13319         (rpl_socket): Invoke gl_sockets_startup.
13320         * modules/gethostname (Depends-on): Add sockets.
13321         * modules/socket (Depends-on): Likewise.
13322         * tests/test-poll.c: Don't include sockets.h.
13323         (main): Don't invoke gl_sockets_startup.
13324         * tests/test-select.c: Don't include sockets.h.
13325         (main): Don't invoke gl_sockets_startup.
13326
13327 2009-08-02  Bruno Haible  <bruno@clisp.org>
13328
13329         Allow multiple calls to gl_sockets_startup.
13330         * lib/sockets.c (initialized_sockets_version): New variable.
13331         (gl_sockets_startup): Do nothing if already called for this or a higher
13332         version.
13333         (gl_sockets_cleanup): Reset initialized_sockets_version.
13334
13335 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13336
13337         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13338         different project/version.
13339
13340 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13341             Bruno Haible  <bruno@clisp.org>
13342
13343         Tests for module 'pipe-filter-gi'.
13344         * modules/pipe-filter-gi-tests: New file.
13345         * tests/test-pipe-filter-gi1.sh: New file.
13346         * tests/test-pipe-filter-gi1.c: New file.
13347         * tests/test-pipe-filter-gi2.sh: New file.
13348         * tests/test-pipe-filter-gi2-main.c: New file.
13349         * tests/test-pipe-filter-gi2-child.c: New file.
13350
13351         New module 'pipe-filter-gi'.
13352         * lib/pipe-filter-gi.c: New file.
13353         * modules/pipe-filter-gi: New file.
13354
13355 2009-08-02  Bruno Haible  <bruno@clisp.org>
13356             Paolo Bonzini  <bonzini@gnu.org>
13357
13358         Tests for module 'pipe-filter-ii'.
13359         * modules/pipe-filter-ii-tests: New file.
13360         * tests/test-pipe-filter-ii1.sh: New file.
13361         * tests/test-pipe-filter-ii1.c: New file.
13362         * tests/test-pipe-filter-ii2.sh: New file.
13363         * tests/test-pipe-filter-ii2-main.c: New file.
13364         * tests/test-pipe-filter-ii2-child.c: New file.
13365
13366         New module 'pipe-filter-ii'.
13367         * lib/pipe-filter.h: New file.
13368         * lib/pipe-filter-ii.c: New file.
13369         * lib/pipe-filter-aux.h: New file.
13370         * modules/pipe-filter-ii: New file.
13371
13372 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13373
13374         * lib/gc-libgcrypt.c: Change copyright to FSF.
13375         * lib/gc-gnulib.c: Likewise.
13376
13377 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13378
13379         * lib/gethostname.c: Include limits.h.
13380
13381 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13382             Bruno Haible  <bruno@clisp.org>
13383
13384         Ensure HOST_NAME_MAX as part of the gethostname module.
13385         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13386         define also HOST_NAME_MAX.
13387         * tests/test-gethostname.c: Include <limits.h>.
13388         (main): Check also HOST_NAME_MAX.
13389         * doc/posix-headers/limits.texi: Document the mingw problem.
13390
13391 2009-08-02  Bruno Haible  <bruno@clisp.org>
13392
13393         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13394         Add comments.
13395
13396 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13397
13398         * lib/gethostname.c: Add Windows wrapper.
13399         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13400         * modules/gethostname: Depend on sys_socket & errno, for also
13401         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13402         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13403
13404 2009-07-31  Jim Meyering  <meyering@redhat.com>
13405
13406         getloadavg: fix symbol name in comment
13407         * lib/getloadavg.c: Correct a typo I introduced when adding
13408         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13409         Matt Kraai spotted the problem.
13410
13411 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13412
13413         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13414         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13415         code also if ! defined N_NAME_POINTER.
13416         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13417         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13418         but the n_name member is a 12-byte array.
13419
13420 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13421
13422         update-copyright: generalize comment handling
13423         * build-aux/update-copyright: Handle copyright statements
13424         within more comment styles.
13425         Document usage.
13426         Report any file with an external copyright holder or parse failure.
13427
13428 2009-07-29  Jim Meyering  <meyering@redhat.com>
13429
13430         mktime: correct setting of REPLACE_MKTIME
13431         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13432
13433         update-copyright: new module
13434         * modules/update-copyright: New file.
13435         * build-aux/update-copyright: New file.
13436         * MODULES.html.sh (maint+release support): Add update-copyright.
13437
13438 2009-07-27  Bruno Haible  <bruno@clisp.org>
13439
13440         Fix compilation error when <ctime> is used and mktime is replaced.
13441         * lib/time.in.h (mktime): New declaration.
13442         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13443         REPLACE_MKTIME instead of defining mktime in config.h.
13444         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13445         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13446         Reported by Ross McFarland <rwmcfa1@neces.com>.
13447
13448 2009-07-27  Bruno Haible  <bruno@clisp.org>
13449
13450         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13451         Reported by Matt Kraai <mkraai@beckman.com>.
13452
13453 2009-07-25  Jim Meyering  <meyering@redhat.com>
13454
13455         maint.mk: avoid warnings about missing files
13456         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13457         diagnostic when .prev-version does not exist.
13458         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13459         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13460         nonexistent cfg.mk.
13461         Suggestions from Simon Josefsson.
13462
13463 2009-07-25  Bruno Haible  <bruno@clisp.org>
13464
13465         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13466         defined as macros. Needed on QNX 6.4.1.
13467         Reported by Matt Kraai <mkraai@beckman.com>.
13468
13469 2009-07-23  Jim Meyering  <meyering@redhat.com>
13470
13471         maint.mk: invoke "make dist" with a working value of XZ_OPT
13472         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13473
13474 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13475
13476         Make fseeko.c compile on QNX.
13477         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13478
13479 2009-07-22  Peter Simons  <simons@cryp.to>
13480
13481         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13482         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13483         * lib/md4.h: Likewise.
13484         * lib/md5.h: Likewise.
13485         * lib/sha1.h: Likewise.
13486         * lib/sha256.h: Likewise.
13487         * lib/sha512.h: Likewise.
13488
13489         tests-sha1: don't assign literal string to 'char *' variable
13490         * tests/test-sha1.c (main): Declare locals with "const" to match
13491         attributes of the right hand side.
13492
13493 2009-07-21  Eric Blake  <ebb9@byu.net>
13494
13495         dup2: fix more mingw problems
13496         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13497         fd to itself.
13498         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13499         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13500         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13501         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13502         care of mingw bugs.
13503
13504 2009-07-21  Jim Meyering  <meyering@redhat.com>
13505
13506         vc-list-files: avoid failure when /bin/sh is dash
13507         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13508         On some Debian based systems, /bin/sh is a symlink to dash, and running
13509         this command would omit the "/" following each 'tests' prefix:
13510           dash -x build-aux/vc-list-files -C . tests
13511         That is because bash and dash work differently:
13512           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13513           bash ok
13514           dash odd
13515
13516 2009-07-21  Eric Blake  <ebb9@byu.net>
13517
13518         dup2-tests: test previous patch
13519         * modules/dup2-tests: New file.
13520         * tests/test-dup2.c: Likewise.
13521         * tests/test-open.c (main): Avoid unspecified behavior.
13522         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13523         test.
13524
13525         dup2: work around mingw and cygwin 1.5 bug
13526         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13528         * modules/unistd (Makefile.am): Substitute it.
13529         * lib/unistd.in.h (dup2): Declare the replacement.
13530         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13531         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13532         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13533         * modules/execute (Depends-on): Add dup2.
13534         * modules/fseterr (Depends-on): Likewise.
13535         * modules/pipe (Depends-on): Likewise.
13536         * modules/posix_spawn-internal (Depends-on): Likewise.
13537
13538 2009-07-21  Bruno Haible  <bruno@clisp.org>
13539
13540         * modules/.gitattributes: New file.
13541
13542 2009-07-20  Bruno Haible  <bruno@clisp.org>
13543
13544         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13545         (main): Use it.
13546
13547 2009-07-20  Eric Blake  <ebb9@byu.net>
13548
13549         test-pipe: make a bit more robust.
13550         * tests/test-pipe.c (myerr): Allow error messages regardless of
13551         what we do to stderr.
13552         (test_pipe): Rearrange to avoid deadlock.
13553         (child_main): Try a larger read, to ensure we avoided deadlock.
13554         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13555         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13556         if misused.
13557
13558 2009-07-19  Jim Meyering  <meyering@redhat.com>
13559
13560         fts: avoid false-positive cycle-detection
13561         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13562         for each new command line argument.
13563
13564 2009-07-19  Bruno Haible  <bruno@clisp.org>
13565
13566         Fix build error on mingw with the modules sys_select and unistd.
13567         * modules/acl-tests (Depends-on): Add close.
13568         * modules/binary-io-tests (Depends-on): Likewise.
13569         * modules/closein-tests (Depends-on): Likewise.
13570         * modules/flock-tests (Depends-on): Likewise.
13571         * modules/fsync-tests (Depends-on): Likewise.
13572         * modules/lseek-tests (Depends-on): Likewise.
13573         * modules/pipe-tests (Depends-on): Likewise.
13574         * modules/posix_spawn-tests (Depends-on): Likewise.
13575         * modules/posix_spawnp-tests (Depends-on): Likewise.
13576         * modules/stat-time-tests (Depends-on): Likewise.
13577         * modules/yesno-tests (Depends-on): Likewise.
13578
13579 2009-07-19  Bruno Haible  <bruno@clisp.org>
13580
13581         Unify conditionals.
13582         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13583         macros, not at the compiler macros.
13584         * lib/pipe.c: Likewise.
13585         * lib/execute.c: Likewise.
13586         * lib/spawni.c: Likewise.
13587
13588 2009-07-19  Bruno Haible  <bruno@clisp.org>
13589
13590         Fix handling of closed stdin/stdout/stderr on mingw.
13591         * lib/w32spawn.h: Include unistd.h.
13592         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13593         file descriptor with O_NOINHERIT flag.
13594         (fd_safer_noinherit): New function, based on fd-safer.c.
13595         (dup_safer_noinherit): New function, based on dup-safer.c.
13596         (undup_safer_noinherit): New function.
13597         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13598         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13599         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13600         instead of fd_safer.
13601         * tests/test-pipe.c: Include <windows.h>.
13602         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13603
13604         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13605         from main.
13606         (test_pipe): Pass an extra argument for disambiguation.
13607         (main): Invoke parent_main or child_main.
13608
13609         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13610         consistently.
13611
13612 2009-07-18  Eric Blake  <ebb9@byu.net>
13613
13614         test-pipe: fix mingw build
13615         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13616
13617 2009-07-18  Bruno Haible  <bruno@clisp.org>
13618
13619         * modules/pipe-tests (Makefile.am): Fix typo.
13620
13621 2009-07-18  Eric Blake  <ebb9@byu.net>
13622
13623         error: fix mingw build
13624         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13625         Reported by Bruno Haible.
13626
13627         error: avoid undefined use of stdout
13628         * lib/error.c (error, error_at_line): Check that fd 1 is open
13629         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13630         is handling faults and the close_stdout module wants to report the
13631         detection of closed stdout as an error.
13632
13633 2009-07-17  Eric Blake  <ebb9@byu.net>
13634
13635         pipe: be robust in face of closed fds
13636         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13637         should cause child to misbehave.
13638         * modules/pipe-tests: New module.
13639         * tests/test-pipe.c: New file.
13640         * tests/test-pipe.sh: New file.
13641         Reported by Akim Demaille.
13642
13643 2009-07-14  Bruno Haible  <bruno@clisp.org>
13644
13645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13646         Reported by anonymous kc.
13647
13648 2009-07-07  Jim Meyering  <meyering@redhat.com>
13649
13650         maint.mk: don't look for translatable strings in *.m4 or *.mk
13651         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13652         when searching for translatable strings.
13653
13654 2009-07-05  Jim Meyering  <meyering@redhat.com>
13655
13656         remove superfluous parentheses in STREQ definition
13657         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13658         * lib/getugroups.c (STREQ): Likewise.
13659         * lib/fnmatch.c (STREQ): Likewise.
13660         Spotted by Bruno Haible.
13661
13662 2009-07-04  Jim Meyering  <meyering@redhat.com>
13663
13664         argv-iter: new module
13665         * MODULES.html.sh: Add argv-iter.
13666         * lib/argv-iter.c, lib/argv-iter.h: New files.
13667         * modules/argv-iter: New file.
13668         * modules/argv-iter-tests: New file.
13669         * tests/test-argv-iter.c: Test it.
13670
13671 2009-07-04  Bruno Haible  <bruno@clisp.org>
13672
13673         Fix assertion.
13674         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13675         contains more exact copies of a given entry than file2, leave the extra
13676         copies unpaired rather than aborting.
13677         Reported by Eric Blake.
13678
13679 2009-07-02  Bruno Haible  <bruno@clisp.org>
13680
13681         Speedup git-merge-changelog for git cherry-pick.
13682         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13683         (entries_mapping_get): New function, extracted from compute_mapping.
13684         (entries_mapping_reverse_get): New function.
13685         (compute_mapping): Add a 'full' argument. Return the result in a
13686         'struct entries_mapping'.
13687         (main): Update. Access the mappings through entries_mapping_get.
13688         Reported by Eric Blake.
13689
13690 2009-07-02  Bruno Haible  <bruno@clisp.org>
13691
13692         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13693         best_i.
13694
13695 2009-07-02  Bruno Haible  <bruno@clisp.org>
13696
13697         Speed up approximate search for matching ChangeLog entries.
13698         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13699         argument. Call fstrcmp_bounded instead of fstrcmp.
13700         (compute_mapping, try_split_merged_entry, main): Update callers.
13701
13702 2009-07-02  Bruno Haible  <bruno@clisp.org>
13703
13704         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13705
13706 2009-06-30  Bruno Haible  <bruno@clisp.org>
13707
13708         Reduce the number of uc_is_cased calls.
13709         * lib/unicase.h (casing_suffix_context_t): Add
13710         'first_char_except_ignorable' field.
13711         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13712         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13713         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13714         Update initializer.
13715         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13716         case-ignorable characters.
13717         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13718         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13719         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13720         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13721         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13722
13723 2009-06-30  Bruno Haible  <bruno@clisp.org>
13724
13725         Tests for module 'unicase/ignorable'.
13726         * modules/unicase/ignorable-tests: New file.
13727         * tests/unicase/test-ignorable.c: New file, generated by
13728         gen-uni-tables.
13729
13730         Tests for module 'unicase/cased'.
13731         * modules/unicase/cased-tests: New file.
13732         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13733         * tests/unicase/test-predicate-part1.h: New file, derived from
13734         tests/unictype/test-predicate-part1.h.
13735         * tests/unicase/test-predicate-part2.h: New file, same as
13736         tests/unictype/test-predicate-part2.h.
13737
13738         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13739         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13740         (output_casing_properties): New function.
13741         (main): Call it.
13742         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13743         * lib/unicase/cased.c: Include unictype/bitmap.h.
13744         (uc_is_cased): Define through a bitmap lookup.
13745         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13746         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13747         (uc_is_case_ignorable): Define through a bitmap lookup.
13748         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13749         lib/unictype/bitmap.h.
13750         (Depends-on): Add inline. Clean up.
13751         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13752         lib/unictype/bitmap.h.
13753         (Depends-on): Add inline. Clean up.
13754         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13755         recognition.
13756         * tests/unicase/test-u16-tolower.c (main): Likewise.
13757         * tests/unicase/test-u32-tolower.c (main): Likewise.
13758
13759 2009-06-30  Bruno Haible  <bruno@clisp.org>
13760
13761         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13762         * lib/unicase/u16-casemap.c: Likewise.
13763         * lib/unicase/u32-casemap.c: Likewise.
13764
13765 2009-06-29  Bruno Haible  <bruno@clisp.org>
13766
13767         Define u32_casefold as a wrapper around u32_ct_casefold.
13768         * lib/unicase/u32-casefold.c: Update.
13769         * modules/unicase/u32-casefold (Depends-on): Add
13770         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13771         unicase/empty-suffix-context. Clean up.
13772
13773         Define u16_casefold as a wrapper around u16_ct_casefold.
13774         * lib/unicase/u16-casefold.c: Update.
13775         * modules/unicase/u16-casefold (Depends-on): Add
13776         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13777         unicase/empty-suffix-context. Clean up.
13778
13779         Define u8_casefold as a wrapper around u8_ct_casefold.
13780         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13781         * lib/unicase/u8-casefold.c: Update.
13782         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13783         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13784
13785         Define u32_totitle as a wrapper around u32_ct_totitle.
13786         * lib/unicase/u32-totitle.c: Update.
13787         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13788         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13789
13790         Define u16_totitle as a wrapper around u16_ct_totitle.
13791         * lib/unicase/u16-totitle.c: Update.
13792         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13793         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13794
13795         Define u8_totitle as a wrapper around u8_ct_totitle.
13796         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13797         functions.
13798         (FUNC): Delegate to U_CT_TOTITLE.
13799         * lib/unicase/u8-totitle.c: Update.
13800         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13801         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13802
13803         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13804         invocation.
13805         * modules/unicase/u32-tolower (Depends-on): Add
13806         unicase/empty-prefix-context, unicase/empty-suffix-context.
13807
13808         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13809         invocation.
13810         * modules/unicase/u16-tolower (Depends-on): Add
13811         unicase/empty-prefix-context, unicase/empty-suffix-context.
13812
13813         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13814         * modules/unicase/u8-tolower (Depends-on): Add
13815         unicase/empty-prefix-context, unicase/empty-suffix-context.
13816
13817         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13818         invocation.
13819         * modules/unicase/u32-toupper (Depends-on): Add
13820         unicase/empty-prefix-context, unicase/empty-suffix-context.
13821
13822         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13823         invocation.
13824         * modules/unicase/u16-toupper (Depends-on): Add
13825         unicase/empty-prefix-context, unicase/empty-suffix-context.
13826
13827         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13828         * modules/unicase/u8-toupper (Depends-on): Add
13829         unicase/empty-prefix-context, unicase/empty-suffix-context.
13830
13831         New module 'unicase/u32-ct-casefold'.
13832         * lib/unicase/u32-ct-casefold.c: New file.
13833         * modules/unicase/u32-ct-casefold: New file.
13834
13835         New module 'unicase/u16-ct-casefold'.
13836         * lib/unicase/u16-ct-casefold.c: New file.
13837         * modules/unicase/u16-ct-casefold: New file.
13838
13839         New module 'unicase/u8-ct-casefold'.
13840         * lib/unicase/u8-ct-casefold.c: New file.
13841         * lib/unicase/u-ct-casefold.h: New file, derived from
13842         lib/unicase/u-casefold.h.
13843         * modules/unicase/u8-ct-casefold: New file.
13844
13845         New module 'unicase/u32-ct-totitle'.
13846         * lib/unicase/u32-ct-totitle.c: New file.
13847         * modules/unicase/u32-ct-totitle: New file.
13848
13849         New module 'unicase/u16-ct-totitle'.
13850         * lib/unicase/u16-ct-totitle.c: New file.
13851         * modules/unicase/u16-ct-totitle: New file.
13852
13853         New module 'unicase/u8-ct-totitle'.
13854         * lib/unicase/u8-ct-totitle.c: New file.
13855         * lib/unicase/u-ct-totitle.h: New file, derived from
13856         lib/unicase/u-totitle.h.
13857         * modules/unicase/u8-ct-totitle: New file.
13858
13859         New module 'unicase/u32-ct-tolower'.
13860         * lib/unicase/u32-ct-tolower.c: New file.
13861         * modules/unicase/u32-ct-tolower: New file.
13862
13863         New module 'unicase/u16-ct-tolower'.
13864         * lib/unicase/u16-ct-tolower.c: New file.
13865         * modules/unicase/u16-ct-tolower: New file.
13866
13867         New module 'unicase/u8-ct-tolower'.
13868         * lib/unicase/u8-ct-tolower.c: New file.
13869         * modules/unicase/u8-ct-tolower: New file.
13870
13871         New module 'unicase/u32-ct-toupper'.
13872         * lib/unicase/u32-ct-toupper.c: New file.
13873         * modules/unicase/u32-ct-toupper: New file.
13874
13875         New module 'unicase/u16-ct-toupper'.
13876         * lib/unicase/u16-ct-toupper.c: New file.
13877         * modules/unicase/u16-ct-toupper: New file.
13878
13879         New module 'unicase/u8-ct-toupper'.
13880         * lib/unicase/u8-ct-toupper.c: New file.
13881         * modules/unicase/u8-ct-toupper: New file.
13882
13883         Add context arguments to u*_casemap functions.
13884         * lib/unicase/unicasemap.h: Include unicase.h.
13885         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13886         suffix_context arguments.
13887         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13888         functions.
13889         (FUNC): Add prefix_context and suffix_context arguments. Use
13890         uc_is_cased and uc_is_case_ignorable.
13891         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13892         * lib/unicase/u16-casemap.c: Likewise.
13893         * lib/unicase/u32-casemap.c: Likewise.
13894         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13895         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13896         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13897         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13898         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13899         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13900
13901         New module 'unicase/u32-suffix-context'.
13902         * lib/unicase/u32-suffix-context.c: New file.
13903         * modules/unicase/u32-suffix-context: New file.
13904
13905         New module 'unicase/u16-suffix-context'.
13906         * lib/unicase/u16-suffix-context.c: New file.
13907         * modules/unicase/u16-suffix-context: New file.
13908
13909         New module 'unicase/u8-suffix-context'.
13910         * lib/unicase/u8-suffix-context.c: New file.
13911         * lib/unicase/u-suffix-context.h: New file.
13912         * modules/unicase/u8-suffix-context: New file.
13913
13914         New module 'unicase/empty-suffix-context'.
13915         * lib/unicase/empty-suffix-context.c: New file.
13916         * modules/unicase/empty-suffix-context: New file.
13917
13918         New module 'unicase/u32-prefix-context'.
13919         * lib/unicase/u32-prefix-context.c: New file.
13920         * modules/unicase/u32-prefix-context: New file.
13921
13922         New module 'unicase/u16-prefix-context'.
13923         * lib/unicase/u16-prefix-context.c: New file.
13924         * modules/unicase/u16-prefix-context: New file.
13925
13926         New module 'unicase/u8-prefix-context'.
13927         * lib/unicase/u8-prefix-context.c: New file.
13928         * lib/unicase/u-prefix-context.h: New file.
13929         * lib/unicase/context.h: New file.
13930         * modules/unicase/u8-prefix-context: New file.
13931
13932         New module 'unicase/empty-prefix-context'.
13933         * lib/unicase/empty-prefix-context.c: New file.
13934         * modules/unicase/empty-prefix-context: New file.
13935
13936         New module 'unicase/ignorable'.
13937         * lib/unicase/ignorable.c: New file.
13938         * modules/unicase/ignorable: New file.
13939
13940         New module 'unicase/cased'.
13941         * lib/unicase/caseprop.h: New file.
13942         * lib/unicase/cased.c: New file.
13943         * modules/unicase/cased: New file.
13944
13945         New functions for case mapping of substrings.
13946         * lib/unicase.h (casing_prefix_context_t): New type.
13947         (unicase_empty_prefix_context): New variable.
13948         (u8_casing_prefix_context, u16_casing_prefix_context,
13949         u32_casing_prefix_context, u8_casing_prefixes_context,
13950         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13951         declarations.
13952         (casing_suffix_context_t): New type.
13953         (unicase_empty_suffix_context): New variable.
13954         (u8_casing_suffix_context, u16_casing_suffix_context,
13955         u32_casing_suffix_context, u8_casing_suffixes_context,
13956         u16_casing_suffixes_context, u32_casing_suffixes_context,
13957         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13958         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13959         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13960         declarations.
13961
13962 2009-06-28  Jim Meyering  <meyering@redhat.com>
13963
13964         boostrap: indent only with spaces
13965         * build-aux/bootstrap: Indent only with spaces, never TABs.
13966
13967         bootstrap: split long lines
13968         * build-aux/bootstrap: Keep line length < 80.
13969
13970         bootstrap: sync from coreutils
13971         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13972         just as autoreconf does.  Verify a list of prerequisite
13973         package-name,version-number pairs if defined in bootstrap.conf.
13974         Refer to README-prereq, if prerequisites are not satisfied.
13975
13976 2009-06-27  Eric Blake  <ebb9@byu.net>
13977
13978         tests: add test for bogus NULL definition
13979         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13980         * tests/test-stdlib.c: Likewise.
13981         * tests/test-string.c: Likewise.
13982         * tests/test-locale.c: Likewise.
13983         * tests/test-unistd.c: Likewise.
13984         * modules/stdio-tests (Depends-on): Add verify.
13985         * modules/stdlib-tests (Depends-on): Likewise.
13986         * modules/string-tests (Depends-on): Likewise.
13987         * modules/locale-tests (Depends-on): Likewise.
13988         * modules/unistd-tests (Depends-on): Likewise.
13989
13990 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13991
13992         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13993         self-explaining comment.
13994         * m4/selinux-selinux-h: Update serial.
13995         (gl_LIBSELINUX): New macro, adding a warning for missing development
13996         packages to code extracted from...
13997         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13998         Add warning for missing development packages here, too.
13999
14000 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
14001
14002         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
14003
14004 2009-06-25  Eric Blake  <ebb9@byu.net>
14005
14006         version-etc: fix regression
14007         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
14008         gcc.
14009         (version_etc): Use it, to catch bugs with trailing NULL.
14010         * lib/version-etc.c (version_etc_arn): Delete unused argument.
14011         (version_etc_va): Fix logic bug.
14012         * modules/version-etc-tests: Add test.
14013         * tests/test-version-etc.c: New file.
14014         * tests/test-version-etc.sh: Likewise.
14015
14016 2009-06-25  Sam Steingold  <sds@gnu.org>
14017
14018         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
14019         mbtowc declaration.
14020
14021 2009-06-25  Eric Blake  <ebb9@byu.net>
14022
14023         fpurge: migrate into <stdio.h>
14024         * lib/fpurge.h: Delete...
14025         * lib/stdio.in.h (fpurge): ...and declare here, instead.
14026         * lib/fpurge.c (fpurge): Change declaring header.
14027         * modules/fpurge (Files): Drop deleted file.
14028         (Depends-on): Add stdio.
14029         (configure.ac): Set witness.
14030         * modules/stdio (Makefile.am): Support fpurge macros.
14031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14032         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
14033         * lib/fflush.c: Update client.
14034         * tests/test-fpurge.c: Likewise.
14035         * NEWS: Mention the change.
14036
14037 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14038
14039         * lib/argp-version-etc.c (program_authors): Add const
14040         qualifier.
14041         * lib/version-etc.c: Fix typos in the comments.
14042         * modules/argp-version-etc: Depends on version-etc.
14043
14044 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14045
14046         argp-version-etc: new module.
14047
14048         * lib/argp-version-etc.c: New file.
14049         * lib/argp-version-etc.h: New file.
14050         * modules/argp-version-etc: New file.
14051         * modules/argp-version-etc-tests: New file.
14052         * tests/test-argp-version-etc.c: New test.
14053         * tests/test-argp-version-etc-1.sh: New test.
14054
14055 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14056
14057         Provide additional interfaces and documentation for version-etc
14058         module.
14059
14060         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
14061         interfaces.
14062         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
14063         prototypes.
14064
14065 2009-06-24  Bruno Haible  <bruno@clisp.org>
14066
14067         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
14068         HAVE_LIB${NAME} macro.
14069         Reported by Sam Steingold <sds@gnu.org>.
14070
14071 2009-06-23  Simon Josefsson  <simon@josefsson.org>
14072
14073         * modules/hash-tests (test_hash_LDADD): Link to libintl when
14074         needed.
14075
14076 2009-06-21  Bruno Haible  <bruno@clisp.org>
14077
14078         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
14079         work.
14080         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
14081         together with LIB${NAME}, LTLIB${NAME}.
14082         Reported by Sam Steingold <sds@gnu.org>.
14083
14084 2009-06-20  Jim Meyering  <meyering@redhat.com>
14085
14086         tests: make sc_require_test_exit_idiom more generic
14087         * top/maint.mk (Exit_witness_file): New overridable variable.
14088         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
14089         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
14090
14091 2009-06-19  Jim Meyering  <meyering@redhat.com>
14092
14093         hash: reverse order of src/dst parameters in an internal interface
14094         * lib/hash.c (transfer_entries): Reverse order of parameters to
14095         put DST before SRC.  Adjust callers.
14096
14097         tests: test-hash: avoid wholesale duplication
14098         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
14099         Instead, use a loop and add a single conditional.
14100
14101         tests: test-hash: allow seed selection via a command line argument
14102         * tests/test-hash.c (get_seed): New function.
14103         (main): Use it.
14104
14105 2009-06-19  Eric Blake  <ebb9@byu.net>
14106
14107         hash: avoid memory leak on allocation failure
14108         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
14109         failure.  Factor repeated algorithm...
14110         (transfer_entries): ...into new helper routine.
14111         (hash_delete): React to hash_rehash return value.
14112
14113         hash: reduce memory pressure in hash_rehash no-op case
14114         * lib/hash.c (next_prime): Avoid overflow.
14115         (hash_initialize): Factor bucket size computation...
14116         (compute_bucket_size): ...into new helper function.
14117         (hash_rehash): Use new function and open coding to reduce memory
14118         pressure, and avoid a memory leak in USE_OBSTACK code.
14119         Reported by Jim Meyering.
14120
14121 2009-06-18  Eric Blake  <ebb9@byu.net>
14122
14123         hash: make rotation more obvious
14124         * modules/hash (Depends-on): Add bitrotate and stdint.
14125         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
14126         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
14127         (SIZE_MAX): Rely on headers for definition.
14128         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
14129         (raw_hasher): Use rotr_sz.
14130         Suggested by Jim Meyering.
14131
14132         hash: fix memory leak in last patch
14133         * lib/hash.c (hash_rehash): Avoid memory leak.
14134
14135         hash: avoid no-op rehashing
14136         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
14137
14138         hash: provide default callback functions
14139         * lib/hash.c (raw_hasher, raw_comparator): New functions.
14140         (hash_initialize): Use them as defaults.
14141         * tests/test-hash.c (main): Test this.
14142
14143         hash: minor optimization
14144         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
14145         when possible.
14146         (hash_initialize): Document this promise.
14147         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
14148         * tests/test-hash.c (hash_compare_strings): Test this.
14149
14150 2009-06-18  Bruno Haible  <bruno@clisp.org>
14151
14152         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
14153         going to be replaced anyway.
14154
14155 2009-06-18  Bruno Haible  <bruno@clisp.org>
14156
14157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
14158         in one place.
14159         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
14160         be replaced anyway.
14161
14162 2009-06-18  Eric Blake  <ebb9@byu.net>
14163
14164         hash: check for resize before insertion
14165         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
14166         threshold before insertion, so that a pathological hash_rehash
14167         that fills every bucket can still trigger another rehash.
14168
14169 2009-06-18  Jim Meyering  <meyering@redhat.com>
14170
14171         hash-tests: add a loop around the small tests
14172         * tests/test-hash.c (main): Repeat small tests with selected
14173         small initial table sizes.
14174
14175 2009-06-17  Eric Blake  <ebb9@byu.net>
14176
14177         hash: minor cleanups
14178         * lib/hash.h (hash_entry): Make opaque, by moving...
14179         * lib/hash.c (hash_entry): ...here.
14180         (hash_insert): Clarify restrictions on what can be inserted.
14181         (hash_get_next): Clarify when it is safe to remove an element
14182         during traversal.
14183         (check_tuning): Skip verification when tuning is known safe.
14184         (hash_initialize): Clarify restrictions on tuning.
14185
14186 2009-06-17  Jim Meyering  <jim@meyering.net>
14187         and Eric Blake  <ebb9@byu.net>
14188
14189         hash-tests: new module
14190         * modules/hash-tests: New file.
14191         * tests/test-hash.c: New file.
14192
14193 2009-06-17  Eric Blake  <ebb9@byu.net>
14194
14195         strstr-simple: document new module
14196         * MODULES.html.sh: Document new module.
14197
14198         strstr, strcasestr: replace on platforms with broken memchr
14199         * modules/strstr: Split into...
14200         * modules/strstr-simple: ...new module that does not care about
14201         performance, but does care about glibc bug.
14202         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
14203         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
14204         if platform memchr is broken, per Debian bug 521737.
14205         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
14206         memchr.
14207         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
14208         * doc/posix-functions/strstr.texi (strstr): Document the fix.
14209         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14210         * modules/mountlist (Depends-on): Add strstr-simple.
14211         * modules/gen-uni-tables (Depends-on): Likewise.
14212         * modules/argz (Depends-on): Add strstr.
14213
14214 2009-06-17  Bruno Haible  <bruno@clisp.org>
14215
14216         * modules/posix_spawn-internal (Depends-on): Add errno.
14217
14218 2009-06-17  Bruno Haible  <bruno@clisp.org>
14219
14220         Define missing ESTALE on Interix 3.5.
14221         * lib/errno.in.h (ESTALE): Assign a value if missing.
14222         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
14223         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
14224         missing.
14225         * doc/posix-headers/errno.texi: Mention the Interix bug.
14226         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
14227
14228 2009-06-15  Eric Blake  <ebb9@byu.net>
14229
14230         memchr, memchr2: add valgrind exception
14231         * lib/memchr.valgrind: New file.
14232         * lib/memchr2.valgrind: New file.
14233         * modules/memchr (Files): Distribute valgrind file.
14234         * modules/memchr2 (Files): Likewise.
14235
14236         docs: memchr is no longer obsolete
14237         * MODULES.html.sh: Move memchr from obsolete to string.h section.
14238         * lib/string.in.h (memchr): Simplify logic.
14239
14240 2009-06-14  Jim Meyering  <meyering@redhat.com>
14241
14242         link-follow: fix the "checking..." message to not mention trailing slash
14243         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
14244         never considered trailing slashes.
14245
14246 2009-06-14  Bruno Haible  <bruno@clisp.org>
14247
14248         * m4/memchr.m4: Mention also the bug on IA-64.
14249         * doc/posix-functions/memchr.texi: Likewise.
14250
14251 2009-06-12  Eric Blake  <ebb9@byu.net>
14252
14253         memchr: detect broken x86_64 and alpha implementations
14254         * modules/memchr-tests (Depends-on): Move mmap detection...
14255         * modules/memchr (Depends-on): ...here.
14256         (configure.ac): Set indicator.
14257         * lib/string.in.h (memchr): Declare replacement.
14258         * modules/string (Makefile.am): Trigger replacement.
14259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
14260         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
14261         bugs.
14262         * doc/posix-functions/memchr.texi (memchr): Document the bug.
14263         * modules/getpagesize (License): Relax license.
14264
14265 2009-06-11  Bruno Haible  <bruno@clisp.org>
14266
14267         * lib/idpriv.h: Add more references.
14268
14269 2009-06-08  Bruno Haible  <bruno@clisp.org>
14270
14271         Tests for module 'idpriv-droptemp'.
14272         * modules/idpriv-droptemp-tests: New file.
14273         * tests/test-idpriv-droptemp.sh: New file.
14274         * tests/test-idpriv-droptemp.su.sh: New file.
14275         * tests/test-idpriv-droptemp.c: New file.
14276
14277         New module 'idpriv-droptemp'.
14278         * lib/idpriv-droptemp.c: New file.
14279         * modules/idpriv-droptemp: New file.
14280
14281 2009-06-08  Bruno Haible  <bruno@clisp.org>
14282
14283         Tests for module 'idpriv-drop'.
14284         * modules/idpriv-drop-tests: New file.
14285         * tests/test-idpriv-drop.sh: New file.
14286         * tests/test-idpriv-drop.su.sh: New file.
14287         * tests/test-idpriv-drop.c: New file.
14288
14289         New module 'idpriv-drop'.
14290         * lib/idpriv.h: New file.
14291         * lib-idpriv-drop.c: New file.
14292         * m4/idpriv.m4: New file.
14293         * modules/idpriv-drop: New file.
14294
14295 2009-06-08  Bruno Haible  <bruno@clisp.org>
14296
14297         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
14298         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14299         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14300         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14301         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14302         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14303         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14304
14305 2009-06-08  Eric Blake  <ebb9@byu.net>
14306
14307         test-strstr: use memory fence, when possible
14308         * tests/test-strstr.c (main): Use memory fence, in order to be
14309         more likely to trigger Debian bug 521737.
14310         * modules/strstr-tests (Files): Pull in additional files.
14311
14312         memchr: no longer obsolete, for wider field testing
14313         * modules/memchr (Status, Notice): Delete, this module is no
14314         longer obsolete.
14315         * modules/vasnprintf (Depends-on): Add memchr.
14316
14317 2009-06-07  Jim Meyering  <meyering@redhat.com>
14318
14319         hash: declare some functions with the warn_unused_result attribute
14320         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
14321
14322 2009-06-07  Bruno Haible  <bruno@clisp.org>
14323
14324         * tests/test-alignof.c: Don't test int64_t if it does not exist.
14325         Reported by Eric Blake.
14326
14327 2009-06-06  Eric Blake  <ebb9@byu.net>
14328
14329         test-alignof: fix typo with long double
14330         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
14331         compiler error.
14332
14333 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14334
14335         Escape non-texinfo { and }s.
14336         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14337         markup error.
14338
14339 2009-06-04  Jim Meyering  <meyering@redhat.com>
14340
14341         gitlog-to-changelog: don't infloop on an empty commit log
14342         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14343         Reported by Boris Petersen <transacid@centerim.org>.
14344
14345 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14346
14347         version-etc: extend for packagers
14348         Add three new configure options, intended for packagers:
14349           --with-packager="packager name"
14350           --with-packager-version="packager-specific version"
14351           --with-packager-bug-reports="packager bug reporting"
14352         An example with coreutils:
14353           $ ./configure \
14354             --with-packager=Gentoo \
14355             --with-packager-bug-report=http://bugs.gentoo.org/ \
14356             --with-packager-version="patchset 1.6"
14357           $ ./src/ls --version | head -n2
14358           ls (GNU coreutils) 7.1-dirty
14359           Packaged by Gentoo (patchset 1.6)
14360         Note that the bug reporting info via --help doesn't show up because
14361         coreutils uses its own custom emit_bug_reporting_address() implementation
14362         in src/system.h.  If it didn't, it'd look like:
14363           $ ./src/ls --help | tail -n4
14364           Report bugs to <bug-coreutils@gnu.org>.
14365           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14366           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14367           General help using GNU software: <http://www.gnu.org/gethelp/>.
14368         * lib/version-etc.c: Print new information, if provided.
14369         * m4/version-etc.m4: New file.
14370         * modules/version-etc (Files): Add m4/version-etc.m4.
14371         (configure.ac): Add gl_VERSION_ETC.
14372
14373 2009-05-31  Bruno Haible  <bruno@clisp.org>
14374
14375         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14376         and 'int64_t'.
14377         * modules/alignof-tests (Dependencies): Add stdint.
14378         Reported by Eric Blake.
14379
14380 2009-05-31  Bruno Haible  <bruno@clisp.org>
14381
14382         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14383         restriction due to compiler bugs.
14384         Reported by Eric Blake.
14385
14386 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14387             Bruno Haible  <bruno@clisp.org>
14388
14389         Fix test-alignof failure.
14390         * lib/alignof.h (alignof_slot): New macro.
14391         (alignof_type): New macro, with the same semantics as the previous
14392         'alignof'.
14393         (alignof): Alias to alignof_slot.
14394         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14395         check that the results are usable as constant expressions.
14396
14397 2009-05-31  Bruno Haible  <bruno@clisp.org>
14398
14399         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14400         * tests/test-memchr.c (main): Check that memchr does not read past the
14401         first occurrence of the byte.
14402         * tests/test-strstr.c (main): Update comment.
14403         Suggested by Eric Blake.
14404
14405 2009-05-30  Bruno Haible  <bruno@clisp.org>
14406
14407         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14408         detail how to use dumpbin.
14409         Reported by David Byron <dbyron@dbyron.com>.
14410
14411 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14412
14413         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14414
14415 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14416
14417         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14418
14419 2009-05-28  Bruno Haible  <bruno@clisp.org>
14420
14421         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14422         build-aux/ files.
14423
14424 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14425
14426         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14427
14428 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14429
14430         * gnulib-tool (sed_transform_main_lib_file)
14431         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14432         regexps.
14433
14434 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14435
14436         * tests/test-strstr.c: Add another self-test.
14437         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14438         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14439
14440 2009-05-23  Bruno Haible  <bruno@clisp.org>
14441
14442         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14443         change.
14444
14445 2009-05-21  Bruno Haible  <bruno@clisp.org>
14446
14447         Simplify use of mode_t varargs.
14448         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14449         uses 'mode_t' or 'int'.
14450         * lib/openat.c (openat): Likewise.
14451         * lib/open-safer.c (open_safer): Likewise.
14452         * m4/mode_t.m4: New file.
14453         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14454         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14455         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14456         * modules/open (Files): Add m4/mode_t.m4.
14457         * modules/openat (Files): Likewise.
14458         * modules/fcntl-safer (Files): Likewise.
14459         Suggested by Eric Blake.
14460
14461 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14462
14463         * doc/glibc-functions/fallocate.texi: New file.
14464         * doc/gnulib.texi: Include it.
14465
14466 2009-05-21  Eric Blake  <ebb9@byu.net>
14467             Bruno Haible  <bruno@clisp.org>
14468
14469         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14470         invocations.
14471         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14472
14473 2009-05-21  Eric Blake  <ebb9@byu.net>
14474             Bruno Haible  <bruno@clisp.org>
14475
14476         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14477         include_next. Fix of 2008-11-20 commit.
14478         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14479         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14480         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14481         NEXT_MATH_H.
14482         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14483         instead of NEXT_MATH_H.
14484
14485 2009-05-21  Bruno Haible  <bruno@clisp.org>
14486
14487         Avoid redefinition warnings for SIZE_MAX.
14488         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14489         Reported by Simon Josefsson.
14490
14491 2009-05-21  Bruno Haible  <bruno@clisp.org>
14492
14493         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14494         AC_CACHE_VAL.
14495
14496 2009-05-20  Bruno Haible  <bruno@clisp.org>
14497
14498         Make zeroptr.h work on mingw.
14499         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14500         mprotect.
14501         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14502         * modules/memchr2-tests (configure.ac): Likewise.
14503         * modules/memcmp-tests (configure.ac): Likewise.
14504         * modules/memmem-tests (configure.ac): Likewise.
14505         * modules/memrchr-tests (configure.ac): Likewise.
14506         Reported by Simon Josefsson.
14507
14508 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14509
14510         * tests/test-glob.c: Include string.h for strcmp prototype.
14511
14512 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14513
14514         * modules/getdelim (Depends-on): Add explicit stdint, although it
14515         was implicitly already pulled in via realloc-posix.
14516         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14517
14518 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14519
14520         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14521         G. Christensen" <tgc@jupiterrise.com>.
14522         * m4/sys_socket_h.m4: Check for sa_family_t.
14523         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14524         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14525         * tests/test-sys_socket.c: Check that sa_family_t works.
14526
14527 2009-05-18  Eric Blake  <ebb9@byu.net>
14528
14529         maint.mk: allow gnulib_dir in VPATH build
14530         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14531
14532 2009-05-15  Jim Meyering  <meyering@redhat.com>
14533
14534         maint.mk: Give gnulib_dir a default definition.
14535         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14536         Thus, most packages no longer need to specify this variable in cfg.mk
14537
14538 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14539
14540         rename.m4: fix typos that would make non-mingw cross-configure fail
14541         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14542
14543 2009-05-13  Eric Blake  <ebb9@byu.net>
14544
14545         mmap-anon: avoid out-of-order autoconf expansion
14546         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14547         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14548         * modules/memchr-tests (Depends-on): Add extensions.
14549         * modules/memchr2-tests (Depends-on): Add extensions.
14550         * modules/memcmp-tests (Depends-on): Add extensions.
14551         * modules/memmem-tests (Depends-on): Add extensions.
14552         * modules/memrchr-tests (Depends-on): Add extensions.
14553
14554 2009-05-13  Bruno Haible  <bruno@clisp.org>
14555
14556         Make some tests ISO C 99 compliant.
14557         * tests/zerosize-ptr.h: New file.
14558         * tests/test-memchr.c: Include zerosize-ptr.h.
14559         (main): Use a zero-size object pointer instead of NULL.
14560         * tests/test-memchr2.c: Include zerosize-ptr.h.
14561         (main): Use a zero-size object pointer instead of NULL.
14562         * tests/test-memcmp.c: Include zerosize-ptr.h.
14563         (main): Use a zero-size object pointer instead of NULL.
14564         * tests/test-memmem.c: Include zerosize-ptr.h.
14565         (main): Use a zero-size object pointer instead of NULL.
14566         * tests/test-memrchr.c: Include zerosize-ptr.h.
14567         (main): Use a zero-size object pointer instead of NULL.
14568         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14569         m4/mmap-anon.m4.
14570         (Depends-on): Add getpagesize.
14571         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14572         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14573         m4/mmap-anon.m4.
14574         (Depends-on): Add getpagesize.
14575         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14576         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14577         m4/mmap-anon.m4.
14578         (Depends-on): Add getpagesize.
14579         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14580         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14581         m4/mmap-anon.m4.
14582         (Depends-on): Add getpagesize.
14583         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14584         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14585         m4/mmap-anon.m4.
14586         (Depends-on): Add getpagesize.
14587         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14588
14589 2009-05-12  Bruno Haible  <bruno@clisp.org>
14590
14591         Tests for module 'alignof'.
14592         * modules/alignof-tests: New file.
14593         * tests/test-alignof.c: New file.
14594
14595 2009-05-12  Bruno Haible  <bruno@clisp.org>
14596
14597         Fix alignof macro.
14598         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14599         vendor compilers that are always correct.
14600
14601 2009-05-12  Bruno Haible  <bruno@clisp.org>
14602
14603         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14604         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14605         not whether its fully works.
14606
14607 2009-05-12  Bruno Haible  <bruno@clisp.org>
14608
14609         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14610
14611 2009-05-12  Jim Meyering  <meyering@redhat.com>
14612
14613         * top/maint.mk: Adjust backslash alignment.
14614
14615 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14616
14617         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14618
14619 2009-05-11  Eric Blake  <ebb9@byu.net>
14620
14621         argp: avoid undefined behavior
14622         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14623         macros.
14624
14625 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14626
14627         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14628         user.name to prevent git commit from complaining.
14629
14630 2009-05-10  Bruno Haible  <bruno@clisp.org>
14631
14632         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14633         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14634         it rewrites every file name only once.
14635         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14636
14637 2009-05-08  Bruno Haible  <bruno@clisp.org>
14638
14639         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14640         instead of 'max'.
14641
14642 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14643
14644         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14645         sockaddr_storage test.
14646
14647 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14648
14649         * modules/sys_socket (Makefile.am): Substitute
14650         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14651         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14652         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14653         * tests/test-sys_socket.c: Check sockaddr_storage.
14654
14655 2009-05-08  Bruno Haible  <bruno@clisp.org>
14656
14657         New module 'alignof'.
14658         * lib/alignof.h: New file.
14659         * modules/alignof: New file.
14660
14661 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14662             Bruno Haible  <bruno@clisp.org>
14663
14664         Fix test-file-has-acl on FreeBSD.
14665         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14666         mask is implicitly added.
14667         * tests/test-file-has-acl.c: Include <signal.h>.
14668         (main): Terminate the test after 5 seconds.
14669         * modules/acl-tests (configure.ac): Check for alarm function.
14670
14671 2009-05-04  Bruno Haible  <bruno@clisp.org>
14672
14673         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14674         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14675         * modules/errno (configure.ac): Drop AC_REQUIRE.
14676         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14677         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14678
14679 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14680
14681         * modules/glob-tests: New module.
14682         * tests/test-glob.c: Add.
14683
14684 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14685
14686         * modules/fnmatch-tests: New module.
14687         * tests/test-fnmatch.c: Add.
14688
14689 2009-05-04  Eric Blake  <ebb9@byu.net>
14690
14691         maint: make the new no-submodule-changes rule VPATH-safe
14692         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14693
14694 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14695             Bruno Haible  <bruno@clisp.org>
14696
14697         acl: Fix infinite loop on FreeBSD.
14698         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14699         of return value from acl_get_entry.
14700         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14701         Likewise.
14702
14703 2009-05-03  Bruno Haible  <bruno@clisp.org>
14704
14705         * lib/acl-internal.h (acl_entries): Clarify return value.
14706         * lib/acl_entries.c (acl_entries): Likewise.
14707
14708 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14709
14710         Bug fix in acl module.
14711         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14712
14713 2009-05-03  Bruno Haible  <bruno@clisp.org>
14714
14715         Create gperf-generated file in the source dir, not in the build dir.
14716         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14717         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14718         * modules/unicase/locale-language (unicase/locale-languages.h):
14719         Likewise.
14720         * modules/unicase/special-casing (unicase/special-casing-table.h):
14721         Likewise.
14722         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14723         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14724         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14725         Reported by Ralf Wildenhues.
14726
14727 2009-05-03  Bruno Haible  <bruno@clisp.org>
14728
14729         * modules/fnmatch (Description, configure.ac): Taken from
14730         fnmatch-posix.
14731         * modules/fnmatch-posix: Turn into a symbolic reference to the
14732         'fnmatch' module, and deprecate.
14733         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14734
14735 2009-05-03  Bruno Haible  <bruno@clisp.org>
14736
14737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14738         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14739         Reported by Ralf Wildenhues.
14740
14741 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14742
14743         * m4/fnmatch.m4: Fix fnmatch re-define.
14744
14745 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14746
14747         priv-set: new module and tests; adapt write-any-file
14748         * lib/priv-set.c: New file.
14749         * lib/priv-set.h: New file.
14750         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14751         * lib/write-any-file.c: Simplify by using priv-set module.
14752         * m4/priv-set.m4: New file.
14753         * modules/priv-set: New file.
14754         * modules/unlinkdir: Add dependency on priv-set module.
14755         * modules/write-any-file: Likewise.
14756
14757         Tests for module 'priv-set'.
14758         * modules/priv-set-tests: New file.
14759         * tests/test-priv-set.c: New file.
14760
14761 2009-05-03  Jim Meyering  <meyering@redhat.com>
14762             Bruno Haible  <bruno@clisp.org>
14763
14764         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14765         use the converted UTF-8 variant of the name instead.
14766
14767 2009-05-03  Jim Meyering  <meyering@redhat.com>
14768
14769         tests: tighten some getdate tests
14770         * tests/test-getdate.c (main): Tighten tests: require equality,
14771         not just greater than.  Set TZ envvar to UTC0.
14772
14773 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14774
14775         getdate: correctly interpret "next monday" when run on a Monday
14776         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14777         that e.g., "next tues" (when run on a tuesday) results in a date
14778         that is one week in the future, and not today's date.
14779         I.e., add a week when the wday is the same as the current one.
14780         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14781         and earlier by Martin Bernreuther and Jan Minář.
14782         * tests/test-getdate.c (main): Check that "next DAY" is always in
14783         the future and that "last DAY" is always in the past.
14784
14785 2009-05-02  Jim Meyering  <meyering@redhat.com>
14786
14787         build: ensure that a release build fails when a submodule is unclean
14788         * top/maint.mk (no-submodule-changes): New rule.
14789         (alpha beta major): Depend on it.
14790
14791 2009-05-02  Bruno Haible  <bruno@clisp.org>
14792
14793         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14794         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14795         shell variable gl_fnmatch_required to detect which variant is
14796         requested.
14797         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14798         gl_FUNC_FNMATCH_POSIX.
14799         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14800         exclude fnmatch-posix.
14801
14802 2009-05-02  Bruno Haible  <bruno@clisp.org>
14803
14804         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14805         * modules/mbsrtowcs (License): Change to LGPLv2+.
14806         * modules/strnlen1 (License): Likewise.
14807         Reported by Simon Josefsson.
14808
14809 2009-05-02  Bruno Haible  <bruno@clisp.org>
14810
14811         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14812         "cross".
14813         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14814         gnulib-tool was called with option --source-base=lib.
14815
14816 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14817
14818         Use automake *-local hooks without commands, for extensibility.
14819         * modules/localcharset (Makefile.am): Rename install-exec-local
14820         rule to install-exec-localcharset, and make it a prerequisite of
14821         install-exec-local.  Likewise, rename the uninstall-local rule to
14822         uninstall-localcharset, and make it a prerequisite of the former.
14823
14824 2009-05-01  Bruno Haible  <bruno@clisp.org>
14825
14826         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14827         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14828         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14829         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14830         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14831         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14832         m4/locale-zh.m4, m4/codeset.m4.
14833
14834         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14835         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14836         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14837         m4/locale-zh.m4.
14838
14839         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14840         REPLACE_WCRTOMB if mbstate_t must be replaced.
14841         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14842         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14843
14844 2009-05-01  Bruno Haible  <bruno@clisp.org>
14845
14846         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14847         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14848         dngettext, dcngettext, textdomain, bindtextdomain,
14849         bind_textdomain_codeset): Undefine before redefining.
14850
14851 2009-04-30  Bruno Haible  <bruno@clisp.org>
14852
14853         Fix bug introduced on 2009-04-25.
14854         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14855         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14856         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14857         is defined.
14858         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14859         is defined.
14860         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14861         is defined.
14862         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14863
14864 2009-04-28  Bruno Haible  <bruno@clisp.org>
14865
14866         Comment tweaks.
14867         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14868         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14869         * lib/unicase.h (u*_casexfrm): Likewise.
14870         Reported by Paolo Bonzini.
14871
14872 2009-04-28  Bruno Haible  <bruno@clisp.org>
14873
14874         Fix a compilation error.
14875         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14876         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14877         Reported by Jim Meyering.
14878
14879 2009-04-27  Bruno Haible  <bruno@clisp.org>
14880
14881         New module 'libunistring'.
14882         * modules/libunistring: New file.
14883         * m4/libunistring.m4: New file.
14884         * MODULES.html.sh (Unicode string functions): Add it.
14885
14886 2009-04-27  Eric Blake  <ebb9@byu.net>
14887
14888         maint.mk: allow package-specific header to provide <config.h>
14889         * top/maint.mk (sc_require_config_h): New variable.
14890         (sc_require_config_h, sc_require_config_h_first): Use it.
14891
14892 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14893
14894         * top/maint.mk (sc_avoid_if_before_free): Except
14895         useless-if-before-free script.
14896
14897 2009-04-27  Eric Blake  <ebb9@byu.net>
14898
14899         maintainer-makefile: depend on all required helper scripts
14900         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14901         useless-if-before-free.
14902         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14903         version, rather than assuming gnulib checkout is available.
14904         Reported by Simen Josefsson.
14905
14906 2009-04-26  Bruno Haible  <bruno@clisp.org>
14907
14908         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14909         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14910         "../" or "..".
14911
14912 2009-04-26  Bruno Haible  <bruno@clisp.org>
14913
14914         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14915         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14916         AC_LIB_HAVE_LINKFLAGS.
14917
14918 2009-04-26  Bruno Haible  <bruno@clisp.org>
14919
14920         Simplify calling convention of u*_conv_from_encoding.
14921         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14922         u32_conv_from_encoding): Expect a resultbuf argument and return the
14923         result directly as a pointer.
14924         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14925         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14926         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14927         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14928         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14929         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14930         Update.
14931         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14932         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14933         * lib/vasnprintf.c (VASNPRINTF): Update.
14934         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14935         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14936         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14937         * NEWS: Mention the change.
14938
14939 2009-04-26  Bruno Haible  <bruno@clisp.org>
14940
14941         Simplify calling convention of u*_conv_to_encoding.
14942         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14943         u32_conv_to_encoding): Expect a resultbuf argument and return the
14944         result directly as a pointer.
14945         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14946         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14947         freeing scaled_offsets if mem_iconveha failed.
14948         * lib/unicase/u-casexfrm.h (FUNC): Update.
14949         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14950         * lib/vasnprintf.c (VASNPRINTF): Update.
14951         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14952         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14953         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14954         * NEWS: Mention the change.
14955
14956 2009-04-26  Bruno Haible  <bruno@clisp.org>
14957
14958         Avoid test failures on AIX and OSF/1.
14959         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14960         malloc(0).
14961         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14962         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14963         Likewise.
14964         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14965         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14966         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14967         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14968         * doc/posix-functions/malloc.texi: Document the portability problem
14969         related to malloc(0).
14970
14971 2009-04-26  Bruno Haible  <bruno@clisp.org>
14972
14973         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14974         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14975         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14976
14977 2009-04-25  Bruno Haible  <bruno@clisp.org>
14978
14979         Avoid link error when creating a namespace clean library.
14980         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14981         as macro with arguments if already defined as an alias.
14982         * lib/signbitf.c (gl_signbitf): Don't undefine.
14983         * lib/signbitd.c (gl_signbitd): Don't undefine.
14984         * lib/signbitl.c (gl_signbitl): Don't undefine.
14985
14986 2009-04-25  Jim Meyering  <meyering@redhat.com>
14987
14988         vc-list-files: fix another quoting bug
14989         * build-aux/vc-list-files: Avoid sed backslash expansion
14990         of pathological directory names.
14991
14992 2009-04-25  Eric Blake  <ebb9@byu.net>
14993
14994         vc-list-files: fix shell quoting error
14995         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14996         timestamp.
14997
14998 2009-04-25  Jim Meyering  <meyering@redhat.com>
14999
15000         vc-list-files: restore lost functionality with subdir argument
15001         * build-aux/vc-list-files: When given a non-"." sub-directory
15002         argument, substitute the $dir/ prefix back onto each resulting name.
15003         Otherwise, coreutils' root_tests check would fail.
15004
15005 2009-04-24  Eric Blake  <ebb9@byu.net>
15006
15007         vc-list-files: ignore git symlinks
15008         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
15009         than ls-files, to ignore git symlinks.
15010
15011         maint.mk: import improvements from m4
15012         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
15013         (move_if_change): Delete unused macro.
15014         (news-date-check, vc-diff-check): Support VPATH builds.
15015         (announcement): Likewise.  Split --bootstrap-tools list...
15016         (boostrap-tools): ...into separate list, which can be overridden
15017         in cfg.mk.
15018         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
15019         requiring dependency on useless-if-before-free module.
15020         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
15021         Support VPATH builds.
15022
15023 2009-04-24  Jim Meyering  <meyering@redhat.com>
15024
15025         maint.mk: remove coreutils-specific rules and variables
15026         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
15027         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
15028         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
15029
15030         maint.mk: remove obsolete rule
15031         * top/maint.mk (rel-check): Remove rule.
15032         (WGET, WGETFLAGS): Remove now-unused variables.
15033
15034 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15035
15036         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
15037         consistency.
15038
15039         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
15040         '$(PATH_SEPARATOR)' instead of ':'.
15041
15042 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15043
15044         * lib/getopt1.c (main): Use 'const' for static array.
15045
15046 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15047
15048         * top/maint.mk: Sync with coreutils.
15049         * NEWS: Explain incompatibilities.
15050
15051 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15052             Bruno Haible  <bruno@clisp.org>
15053
15054         Fix cross-compilation results.
15055         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
15056         statement, as third argument of AC_TRY_RUN.
15057         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15058         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15059         Likewise.
15060         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15061         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15062         Likewise.
15063         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15064         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
15065         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
15066
15067 2009-04-20  Bruno Haible  <bruno@clisp.org>
15068
15069         Avoid test failure on mingw.
15070         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
15071
15072 2009-04-20  Bruno Haible  <bruno@clisp.org>
15073
15074         Avoid compilation error on mingw.
15075         * modules/localename-tests (Depends-on): Add locale.
15076
15077 2009-04-19  Bruno Haible  <bruno@clisp.org>
15078
15079         Support for building a shared library on Windows platforms.
15080         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
15081         (main): Test the presence of UNINORM_NFC here.
15082         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
15083         (main): Test the presence of UNINORM_NFD here.
15084         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
15085         (main): Test the presence of UNINORM_NFKC here.
15086         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
15087         (main): Test the presence of UNINORM_NFKD here.
15088
15089 2009-04-19  Bruno Haible  <bruno@clisp.org>
15090
15091         Avoid a compiler warning.
15092         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
15093         Change type of variable 'sequence'.
15094
15095 2009-04-19  Bruno Haible  <bruno@clisp.org>
15096
15097         * modules/configmake (Makefile.am): When the contents of configmake.h
15098         does not change, arrange to preserve its modification time.
15099
15100 2009-04-17  Simon Josefsson  <simon@josefsson.org>
15101
15102         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
15103         gettext domain.
15104
15105 2009-04-16  Jim Meyering  <meyering@redhat.com>
15106
15107         useless-if-before-free: improve conversion code
15108         * build-aux/useless-if-before-free: Adjust code-in-comment to match
15109         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
15110
15111 2009-04-14  Bruno Haible  <bruno@clisp.org>
15112
15113         * modules/fcntl (Depends-on): Add extensions.
15114         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
15115
15116 2009-04-12  Ben Pfaff  <blp@gnu.org>
15117
15118         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
15119         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
15120
15121 2009-03-20  Ben Pfaff  <blp@gnu.org>
15122
15123         Make rename replace existing destinations on Windows.
15124         * m4/rename.m4: Add test for Mingw.
15125         * lib/rename.c: Add rename replacement that uses MoveFileEx with
15126         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
15127         * doc/posix-functions/rename.texi: Document.
15128
15129 2009-04-10  Bruno Haible  <bruno@clisp.org>
15130
15131         New include file "iconveh.h".
15132         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
15133         * lib/striconveh.h: Include it.
15134         (enum iconv_ilseq_handler): Remove definition.
15135         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
15136         striconveh.h.
15137         * lib/striconveha.c: Include striconveh.h.
15138         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
15139         * modules/striconveh (Files): Add lib/iconveh.h.
15140         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
15141         lib/striconveh.h.
15142
15143 2009-04-10  Bruno Haible  <bruno@clisp.org>
15144
15145         * lib/uniconv.h: Update comment.
15146
15147 2009-04-10  Bruno Haible  <bruno@clisp.org>
15148
15149         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
15150         always.
15151         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
15152         * lib/unistr/u16-mbtouc-aux.c: Likewise.
15153         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
15154         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
15155         "unistring-notinline.h", so that the function gets defined always.
15156         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
15157         * lib/unistr/u8-uctomb.c: Likewise.
15158         * lib/unistr/u16-mbtouc.c: Likewise.
15159         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
15160         * lib/unistr/u16-uctomb.c: Likewise.
15161         * lib/unistr/u32-mbtouc.c: Likewise.
15162         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
15163         * lib/unistr/u32-uctomb.c: Likewise.
15164
15165 2009-04-10  Bruno Haible  <bruno@clisp.org>
15166
15167         Mark 'utime' obsolete.
15168         * modules/utime (Status, Notice): New sections.
15169         Suggested by Jim Meyering.
15170
15171         Fix cross-compile guess for utime test.
15172         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
15173         autoconf.
15174         * doc/posix-functions/utime.texi: Give more precisions.
15175         Reported by Jan <ipif@ymail.com>.
15176
15177 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
15178
15179         filevercmp: correct today's change
15180         * lib/filevercmp.c: Also handle coreutils' test inputs.
15181         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
15182
15183         Fix regression in 'filevercmp' module. Thanks Sven Joachim
15184         for reporting it.
15185         * lib/filevercmp.c: Special handle for "", "." and "..".
15186         * tests/test-filevercmp.c: Enlarge the set suite.
15187
15188 2009-04-07  Jim Meyering  <meyering@redhat.com>
15189
15190         useless-if-before-free: show how to remove braced useless free, too
15191         * build-aux/useless-if-before-free: still only in a comment, though.
15192
15193 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
15194
15195         maint.mk: import changes to syntax-check macros from coreutils
15196         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
15197         Use them in the relevant macros.
15198
15199 2009-04-06  Bruno Haible  <bruno@clisp.org>
15200
15201         Fix unportable use of bit-fields.
15202         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
15203         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
15204         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
15205
15206 2009-04-06  Bruno Haible  <bruno@clisp.org>
15207
15208         Avoid test failures on AIX and OSF/1.
15209         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
15210         that malloc(0) = NULL.
15211         * tests/unicase/test-u8-tolower.c (check): Likewise.
15212         * tests/unicase/test-u8-totitle.c (check): Likewise.
15213         * tests/unicase/test-u8-toupper.c (check): Likewise.
15214         * tests/unicase/test-u16-casefold.c (check): Likewise.
15215         * tests/unicase/test-u16-tolower.c (check): Likewise.
15216         * tests/unicase/test-u16-totitle.c (check): Likewise.
15217         * tests/unicase/test-u16-toupper.c (check): Likewise.
15218         * tests/unicase/test-u32-casefold.c (check): Likewise.
15219         * tests/unicase/test-u32-tolower.c (check): Likewise.
15220         * tests/unicase/test-u32-totitle.c (check): Likewise.
15221         * tests/unicase/test-u32-toupper.c (check): Likewise.
15222         * tests/uninorm/test-u8-nfc.c (check): Likewise.
15223         * tests/uninorm/test-u8-nfd.c (check): Likewise.
15224         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
15225         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
15226         * tests/uninorm/test-u16-nfc.c (check): Likewise.
15227         * tests/uninorm/test-u16-nfd.c (check): Likewise.
15228         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
15229         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
15230         * tests/uninorm/test-u32-nfc.c (check): Likewise.
15231         * tests/uninorm/test-u32-nfd.c (check): Likewise.
15232         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
15233         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
15234
15235 2009-04-05  Bruno Haible  <bruno@clisp.org>
15236
15237         Work around an autoconf limitation.
15238         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
15239         comment line if it would be longer than 3 KB.
15240
15241 2009-04-05  Bruno Haible  <bruno@clisp.org>
15242
15243         Avoid test failure with libiconv-1.13.
15244         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
15245         of the expected test results.
15246
15247 2009-04-05  Bruno Haible  <bruno@clisp.org>
15248
15249         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
15250         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
15251         that it should be installed.
15252
15253 2009-04-05  Bruno Haible  <bruno@clisp.org>
15254
15255         * gnulib-tool: New option --copy-file.
15256         (func_usage): Document it.
15257         (func_dest_tmpfilename): Moved out of func_import.
15258         (func_add_file, func_update_file): New functions, extracted from
15259         func_import.
15260         (func_import): Update.
15261
15262 2009-04-05  Karl Berry  <karl@gnu.org>
15263
15264         * README: prominently mention gnulib-tool.
15265         Rearrange sections so getting the code is near the top.
15266
15267 2009-04-05  Bruno Haible  <bruno@clisp.org>
15268
15269         * lib/unicase.h: Mention u*_cmp2.
15270         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15271         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
15272         * lib/unicase/ulc-casecmp.c: Likewise.
15273         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
15274         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
15275         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
15276         unistr/u8-cmp.
15277         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
15278         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
15279         unistr/u16-cmp.
15280         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
15281         unistr/u32-cmp.
15282
15283         * lib/uninorm.h: Mention u*_cmp2.
15284         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15285         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
15286         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
15287         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
15288         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
15289         unistr/u8-cmp.
15290         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
15291         unistr/u16-cmp.
15292         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
15293         unistr/u32-cmp.
15294
15295         New module 'unistr/u32-cmp2'.
15296         * lib/unistr/u32-cmp2.c: New file.
15297         * modules/unistr/u32-cmp2: New file.
15298
15299         New module 'unistr/u16-cmp2'.
15300         * lib/unistr/u16-cmp2.c: New file.
15301         * modules/unistr/u16-cmp2: New file.
15302
15303         New module 'unistr/u8-cmp2'.
15304         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
15305         * lib/unistr/u8-cmp2.c: New file.
15306         * lib/unistr/u-cmp2.h: New file.
15307         * modules/unistr/u8-cmp2: New file.
15308
15309 2009-04-05  Bruno Haible  <bruno@clisp.org>
15310
15311         * lib/unictype.h (uc_property_is_valid): New macro.
15312         * tests/unictype/test-pr_byname.c (main): Use it.
15313
15314         * lib/unistr.h: Doc fixes.
15315         * lib/uniconv.h: Doc fixes.
15316         * lib/unictype.h: Doc fixes.
15317
15318 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
15319
15320         Port coreutils 7.2 to Solaris 8.
15321
15322         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
15323         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
15324         for Solaris 8.  This is a bit of a hack, as it means it's the
15325         caller's responsibility to add -lnsl if needed, but most likely it
15326         won't be needed since only getaddrinfo uses this and getaddrinfo
15327         isn't needed on Solaris 8.
15328
15329         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
15330         problem to Solaris 8 encountered with coreutils 7.2, which
15331         resulted in a message "fnmatch.c:292: warning: passing argument 4
15332         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15333         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15334
15335 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15336
15337         * m4/ld-version-script.m4: Add FIXME comment.
15338
15339 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15340
15341         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15342         SOVERSION variable.
15343
15344 2009-04-02  Bruno Haible  <bruno@clisp.org>
15345
15346         * Makefile (info, html, dvi, pdf): Combine the rules.
15347         Suggested by Jim Meyering.
15348
15349 2009-04-01  Bruno Haible  <bruno@clisp.org>
15350
15351         * Makefile (info, html, dvi, pdf): New targets.
15352         Reported by Reuben Thomas <rrt@sc3d.org>.
15353
15354 2009-04-01  Bruno Haible  <bruno@clisp.org>
15355
15356         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15357         can be put into PATH.
15358         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15359
15360 2009-04-01  Bruno Haible  <bruno@clisp.org>
15361
15362         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15363
15364 2009-04-01  Bruno Haible  <bruno@clisp.org>
15365
15366         Rename module 'visibility'.
15367         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15368         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15369         * doc/gnulib.texi: Update.
15370         * MODULES.html.sh (Misc): Update.
15371         * NEWS: Mention the change.
15372
15373 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15374
15375         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15376         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15377         Eric Blake <ebb9@byu.net> for review.
15378         * MODULES.html.sh: Add lib-msvc-compat.
15379         * doc/gnulib.texi: Link to new section.
15380         * m4/ld-output-def.m4: New file.
15381         * doc/ld-output-def.texi: New file.
15382
15383 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15384
15385         Rename ld-version-script to lib-symbol-versions.  Suggested by
15386         Bruno Haible <bruno@clisp.org>.
15387         * modules/ld-version-script: Renamed to lib-symbol-versions.
15388         * doc/ld-version-script.texi: Fix module name.
15389         * MODULES.html.sh: Add lib-symbol-versions.
15390
15391 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15392
15393         * modules/u64-tests: New file.
15394         * tests/test-u64.c: New file.
15395
15396 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15397
15398         * MODULES.html.sh: Mention u64.
15399         * modules/u64: New module.
15400         * modules/crypto/sha512: Depend on u64 module instead of providing
15401         u64.h.
15402
15403 2009-03-27  Eric Blake  <ebb9@byu.net>
15404
15405         test-strerror: make debugging EAI_SYSTEM easier
15406         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15407         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15408         failure was EAI_SYSTEM.
15409
15410 2009-03-25  Bruno Haible  <bruno@clisp.org>
15411
15412         Fix a problem with --enable-relocatable on Solaris 7.
15413         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15414         since 2008-02-24.
15415
15416 2009-03-25  Eric Blake  <ebb9@byu.net>
15417
15418         test-sockets: avoid gcc warning
15419         * tests/test-sockets.c (main): Silence compiler warning.
15420
15421 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15422
15423         New modules nproc, pthread, contributed by Glen Lenker.
15424
15425         * MODULES.html.sh: Add pthread, nproc.
15426         * lib/nproc.c: New file.
15427         * lib/nproc.h: New file.
15428         * lib/pthread.in.h: New file.
15429         * m4/pthread.m4: New file.
15430         * modules/nproc: New file.
15431         * modules/pthread: New file.
15432
15433 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15434
15435         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15436         New variable.
15437
15438 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15439
15440         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15441         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15442         * tests/test-filevercmp.c: Add tests for backup suffixes.
15443
15444 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15445
15446         * modules/stdlib (Depends-on): Add stdint, needed when defining
15447         struct random_data on, for example, HP-UX 10.20.  Reported by
15448         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15449
15450 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15451
15452         * lib/readline.c (readline): Call fflush on stdout after printing
15453         prompt.
15454
15455 2009-03-20  Bruno Haible  <bruno@clisp.org>
15456
15457         Remove dependency from 'close' module to -lws2_32 on native Windows.
15458         * lib/close-hook.h: New file.
15459         * lib/close-hook.c: New file.
15460         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15461         w32sock.h.
15462         (_gl_close_fd_maybe_socket): Remove function.
15463         (rpl_close): Invoke execute_all_close_hooks instead of
15464         _gl_close_fd_maybe_socket.
15465         * lib/sockets.c: Include close-hook.h, w32sock.h.
15466         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15467         (close_sockets_hook): New variable.
15468         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15469         (gl_sockets_cleanup): Unregister it.
15470         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15471         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15472         * modules/close-hook: New file.
15473         * modules/close (Files): Remove lib/w32sock.h.
15474         (Depends-on): Add close-hook.
15475         (Link): Remove section.
15476         * modules/sockets (Files): Add lib/w32sock.h.
15477         (Depends-on): Add close-hook.
15478         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15479         invocation.
15480         * NEWS: Mention that LIB_CLOSE is gone.
15481
15482 2009-03-23  Eric Blake  <ebb9@byu.net>
15483
15484         signal-tests: test previous patch
15485         * tests/test-signal.c: New file.
15486         * modules/signal-tests: Likewise.
15487
15488         signal.h: always support 'volatile sig_atomic_t'
15489         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15490         (gl_SIGNAL_H_DEFAULTS): Add a default.
15491         * modules/signal (Makefile.am): Substitute if needed.
15492         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15493         users can blindly add volatile.
15494         * doc/posix-headers/signal.texi (signal.h): Document it.
15495         Reported by Matthew Woehlke.
15496
15497 2009-03-23  Jim Meyering  <meyering@redhat.com>
15498
15499         pathmax: PATH_MAX: use pathconf only when available
15500         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15501         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15502         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15503         This avoids a link failure in a PSP cross-compilation environment
15504         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15505
15506         * lib/vasnprintf.c (divide): Fix typo in comment.
15507
15508 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15509
15510         * gnulib-tool (func_filter_filelist): Fix comment.
15511
15512 2009-03-20  Bruno Haible  <bruno@clisp.org>
15513
15514         Make sockets.h self-contained.
15515         * lib/sockets.c: Include sockets.h first.
15516         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15517
15518 2009-03-19  Eric Blake  <ebb9@byu.net>
15519
15520         doc: mention more functions added in cygwin 1.7.0
15521         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15522         addition.
15523         * doc/posix-functions/log2f.texi: Likewise.
15524
15525 2009-03-19  Jim Meyering  <meyering@redhat.com>
15526
15527         fsusage: avoid syntax error due to statement-before-declaration
15528         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15529         after all declarations.  Reported by Matthew Woehlke in
15530         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15531
15532 2009-03-18  Eric Blake  <ebb9@byu.net>
15533
15534         build-aux/compile: sync from automake
15535         * build-aux/compile: New file, from automake.
15536         * config/srclist.txt: Mention build-aux/compile.
15537
15538 2009-03-17  Bruno Haible  <bruno@clisp.org>
15539
15540         * lib/git-merge-changelog.c: Fix typo in comment.
15541         Reported by Reuben Thomas <rrt@sc3d.org>.
15542
15543 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15544
15545         * m4/regex.m4: update and improve help for
15546         --without-included-regex.
15547
15548 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15549
15550         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15551         failure on missing include files.
15552
15553 2009-03-17  Eric Blake  <ebb9@byu.net>
15554
15555         doc: mention more functions added in cygwin 1.7.0
15556         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15557         addition.
15558         * doc/posix-functions/fwscanf.texi: Likewise.
15559         * doc/posix-functions/swprintf.texi: Likewise.
15560         * doc/posix-functions/swscanf.texi: Likewise.
15561         * doc/posix-functions/vfwprintf.texi: Likewise.
15562         * doc/posix-functions/vfwscanf.texi: Likewise.
15563         * doc/posix-functions/vswprintf.texi: Likewise.
15564         * doc/posix-functions/vswscanf.texi: Likewise.
15565         * doc/posix-functions/vwprintf.texi: Likewise.
15566         * doc/posix-functions/vwscanf.texi: Likewise.
15567         * doc/posix-functions/wcscasecmp.texi: Likewise.
15568         * doc/posix-functions/wcsdup.texi: Likewise.
15569         * doc/posix-functions/wcsftime.texi: Likewise.
15570         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15571         * doc/posix-functions/wprintf.texi: Likewise.
15572         * doc/posix-functions/wscanf.texi: Likewise.
15573         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15574
15575 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15576
15577         maint.mk: really add $(AM_MAKEFLAGS)
15578         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15579         was inadvertently omitted in the last commit.
15580         Spotted by Bruno Haible.
15581
15582         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15583         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15584         $(AM_MAKEFLAGS)' rather than plain `make'.
15585
15586         gnulib-tool: execute $MAKE not make
15587         * gnulib-tool: Default $MAKE to 'make'.
15588         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15589         than make.  Initialize $MAKE in the do-autobuild script.
15590
15591         gnulib-tool: use $MAKE not make in generated files
15592         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15593         make, in generated files.  Initialize $MAKE in the do-autobuild
15594         script.
15595
15596         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15597
15598         GNUmakefile: disable parallelism only for multiple, recursive targets
15599         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15600         additions in the Makefile.
15601         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15602         by Automake.
15603         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15604         are listed on the command line and at least one of them is
15605         listed in $(ALL_RECURSIVE_TARGETS).
15606
15607 2009-03-14  Bruno Haible  <bruno@clisp.org>
15608
15609         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15610         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15611         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15612         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15613         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15614         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15615         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15616         unistr/u8-uctomb.
15617         * modules/unistr/u8-strchr (Depends-on): Likewise.
15618         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15619         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15620         unistr/u16-uctomb.
15621         * modules/unistr/u16-strchr (Depends-on): Likewise.
15622         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15623
15624 2009-03-12  Bruno Haible  <bruno@clisp.org>
15625
15626         Work around select() bug on Interix 3.5.
15627         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15628         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15629         * m4/select.m4: New file.
15630         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15631         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15632         * modules/select (Files): Add m4/select.m4.
15633         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15634         * modules/nanosleep (Depends-on): Add select.
15635         * modules/poll (Depends-on): Likewise.
15636         * doc/posix-functions/select.texi: Mention the Interix bug.
15637         Reported by Markus Duft <mduft@gentoo.org>.
15638
15639         * lib/select.c: Renamed from lib/winsock-select.c.
15640         * modules/select (Files): Add lib/select.c, remove
15641         lib/winsock-select.c.
15642         (configure.ac): Update.
15643
15644 2009-03-12  Jim Meyering  <meyering@redhat.com>
15645
15646         avoid gcc warnings about unused macro definitions
15647         * lib/readtokens.c (STREQ): Remove unused definition.
15648         * lib/xmalloc.c (SIZE_MAX): Likewise.
15649         * lib/openat-die.c (N_): Likewise.
15650         * lib/mountlist.c (SIZE_MAX): Remove definition.
15651         Instead, include <stdint.h>.
15652         * lib/readutmp.c: Likewise.
15653         * modules/readutmp (Depends-on): Add stdint.
15654         * modules/mountlist (Depends-on): Add stdint.
15655         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15656
15657 2009-03-10  Bruno Haible  <bruno@clisp.org>
15658
15659         Tests for module 'mbmemcasecoll'.
15660         * modules/mbmemcasecoll-tests: New file.
15661         * tests/test-mbmemcasecoll1.sh: New file.
15662         * tests/test-mbmemcasecoll2.sh: New file.
15663         * tests/test-mbmemcasecoll3.sh: New file.
15664         * tests/test-mbmemcasecoll.c: New file.
15665
15666         New module 'mbmemcasecoll'.
15667         * lib/mbmemcasecoll.h: New file.
15668         * lib/mbmemcasecoll.c: New file.
15669         * modules/mbmemcasecoll: New file.
15670
15671         * tests/test-mbmemcasecmp.h: New file, extracted from
15672         tests/test-mbmemcasecmp.c.
15673         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15674         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15675         (main): Update.
15676         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15677
15678 2009-03-09  Bruno Haible  <bruno@clisp.org>
15679
15680         Tests for module 'mbmemcasecmp'.
15681         * modules/mbmemcasecmp-tests: New file.
15682         * tests/test-mbmemcasecmp1.sh: New file.
15683         * tests/test-mbmemcasecmp2.sh: New file.
15684         * tests/test-mbmemcasecmp3.sh: New file.
15685         * tests/test-mbmemcasecmp.c: New file.
15686
15687         New module 'mbmemcasecmp'.
15688         * lib/mbmemcasecmp.h: New file.
15689         * lib/mbmemcasecmp.c: New file.
15690         * modules/mbmemcasecmp: New file.
15691
15692 2009-03-09  Bruno Haible  <bruno@clisp.org>
15693
15694         Tests for module 'unicase/ulc-casecoll'.
15695         * modules/unicase/ulc-casecoll-tests: New file.
15696         * tests/unicase/test-ulc-casecoll1.sh: New file.
15697         * tests/unicase/test-ulc-casecoll2.sh: New file.
15698         * tests/unicase/test-ulc-casecoll.c: New file.
15699
15700         New module 'unicase/ulc-casecoll'.
15701         * lib/unicase.h (ulc_casecoll): New declaration.
15702         * lib/unicase/ulc-casecoll.c: New file.
15703         * modules/unicase/ulc-casecoll: New file.
15704
15705         New module 'unicase/ulc-casexfrm'.
15706         * lib/unicase.h (ulc_casexfrm): New declaration.
15707         * lib/unicase/ulc-casexfrm.c: New file.
15708         * modules/unicase/ulc-casexfrm: New file.
15709
15710 2009-03-09  Bruno Haible  <bruno@clisp.org>
15711
15712         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15713         invocations.
15714
15715         * m4/mbscasecmp.m4: Remove file.
15716         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15717         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15718
15719         * m4/mbscasestr.m4: Remove file.
15720         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15721         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15722
15723         * m4/mbschr.m4: Remove file.
15724         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15725         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15726
15727         * m4/mbscspn.m4: Remove file.
15728         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15729         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15730
15731         * m4/mbslen.m4: Remove file.
15732         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15733         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15734
15735         * m4/mbsncasecmp.m4: Remove file.
15736         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15737         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15738
15739         * m4/mbsnlen.m4: Remove file.
15740         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15741         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15742
15743         * m4/mbspbrk.m4: Remove file.
15744         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15745         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15746
15747         * m4/mbspcasecmp.m4: Remove file.
15748         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15749         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15750
15751         * m4/mbsrchr.m4: Remove file.
15752         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15753         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15754
15755         * m4/mbssep.m4: Remove file.
15756         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15757         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15758
15759         * m4/mbsspn.m4: Remove file.
15760         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15761         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15762
15763         * m4/mbsstr.m4: Remove file.
15764         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15765         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15766
15767         * m4/mbstok_r.m4: Remove file.
15768         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15769         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15770
15771         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15772
15773         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15774         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15775
15776         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15777
15778 2009-03-08  Bruno Haible  <bruno@clisp.org>
15779
15780         Tests for module 'unicase/ulc-casecmp'.
15781         * modules/unicase/ulc-casecmp-tests: New file.
15782         * tests/unicase/test-ulc-casecmp1.sh: New file.
15783         * tests/unicase/test-ulc-casecmp2.sh: New file.
15784         * tests/unicase/test-ulc-casecmp.c: New file.
15785
15786         New module 'unicase/ulc-casecmp'.
15787         * lib/unicase.h (ulc_casecmp): New declaration.
15788         * lib/unicase/ulc-casecmp.c: New file.
15789         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15790         'const SRC_UNIT *'.
15791         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15792         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15793         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15794         * modules/unicase/ulc-casecmp: New file.
15795
15796         Tests for module 'unicase/u32-is-cased'.
15797         * modules/unicase/u32-is-cased-tests: New file.
15798         * tests/unicase/test-u32-is-cased.c: New file.
15799
15800         Tests for module 'unicase/u16-is-cased'.
15801         * modules/unicase/u16-is-cased-tests: New file.
15802         * tests/unicase/test-u16-is-cased.c: New file.
15803
15804         Tests for module 'unicase/u8-is-cased'.
15805         * modules/unicase/u8-is-cased-tests: New file.
15806         * tests/unicase/test-u8-is-cased.c: New file.
15807         * tests/unicase/test-is-cased.h: New file.
15808
15809         New module 'unicase/u32-is-cased'.
15810         * lib/unicase/u32-is-cased.c: New file.
15811         * modules/unicase/u32-is-cased: New file.
15812
15813         New module 'unicase/u16-is-cased'.
15814         * lib/unicase/u16-is-cased.c: New file.
15815         * modules/unicase/u16-is-cased: New file.
15816
15817         New module 'unicase/u8-is-cased'.
15818         * lib/unicase/u8-is-cased.c: New file.
15819         * lib/unicase/u-is-cased.h: New file.
15820         * modules/unicase/u8-is-cased: New file.
15821
15822         Tests for module 'unicase/u32-is-casefolded'.
15823         * modules/unicase/u32-is-casefolded-tests: New file.
15824         * tests/unicase/test-u32-is-casefolded.c: New file.
15825
15826         Tests for module 'unicase/u16-is-casefolded'.
15827         * modules/unicase/u16-is-casefolded-tests: New file.
15828         * tests/unicase/test-u16-is-casefolded.c: New file.
15829
15830         Tests for module 'unicase/u8-is-casefolded'.
15831         * modules/unicase/u8-is-casefolded-tests: New file.
15832         * tests/unicase/test-u8-is-casefolded.c: New file.
15833         * tests/unicase/test-is-casefolded.h: New file.
15834
15835         New module 'unicase/u32-is-casefolded'.
15836         * lib/unicase/u32-is-casefolded.c: New file.
15837         * modules/unicase/u32-is-casefolded: New file.
15838
15839         New module 'unicase/u16-is-casefolded'.
15840         * lib/unicase/u16-is-casefolded.c: New file.
15841         * modules/unicase/u16-is-casefolded: New file.
15842
15843         New module 'unicase/u8-is-casefolded'.
15844         * lib/unicase/u8-is-casefolded.c: New file.
15845         * modules/unicase/u8-is-casefolded: New file.
15846
15847         Tests for module 'unicase/u32-is-titlecase'.
15848         * modules/unicase/u32-is-titlecase-tests: New file.
15849         * tests/unicase/test-u32-is-titlecase.c: New file.
15850
15851         Tests for module 'unicase/u16-is-titlecase'.
15852         * modules/unicase/u16-is-titlecase-tests: New file.
15853         * tests/unicase/test-u16-is-titlecase.c: New file.
15854
15855         Tests for module 'unicase/u8-is-titlecase'.
15856         * modules/unicase/u8-is-titlecase-tests: New file.
15857         * tests/unicase/test-u8-is-titlecase.c: New file.
15858         * tests/unicase/test-is-titlecase.h: New file.
15859
15860         New module 'unicase/u32-is-titlecase'.
15861         * lib/unicase/u32-is-titlecase.c: New file.
15862         * modules/unicase/u32-is-titlecase: New file.
15863
15864         New module 'unicase/u16-is-titlecase'.
15865         * lib/unicase/u16-is-titlecase.c: New file.
15866         * modules/unicase/u16-is-titlecase: New file.
15867
15868         New module 'unicase/u8-is-titlecase'.
15869         * lib/unicase/u8-is-titlecase.c: New file.
15870         * modules/unicase/u8-is-titlecase: New file.
15871
15872         Tests for module 'unicase/u32-is-lowercase'.
15873         * modules/unicase/u32-is-lowercase-tests: New file.
15874         * tests/unicase/test-u32-is-lowercase.c: New file.
15875
15876         Tests for module 'unicase/u16-is-lowercase'.
15877         * modules/unicase/u16-is-lowercase-tests: New file.
15878         * tests/unicase/test-u16-is-lowercase.c: New file.
15879
15880         Tests for module 'unicase/u8-is-lowercase'.
15881         * modules/unicase/u8-is-lowercase-tests: New file.
15882         * tests/unicase/test-u8-is-lowercase.c: New file.
15883         * tests/unicase/test-is-lowercase.h: New file.
15884
15885         New module 'unicase/u32-is-lowercase'.
15886         * lib/unicase/u32-is-lowercase.c: New file.
15887         * modules/unicase/u32-is-lowercase: New file.
15888
15889         New module 'unicase/u16-is-lowercase'.
15890         * lib/unicase/u16-is-lowercase.c: New file.
15891         * modules/unicase/u16-is-lowercase: New file.
15892
15893         New module 'unicase/u8-is-lowercase'.
15894         * lib/unicase/u8-is-lowercase.c: New file.
15895         * modules/unicase/u8-is-lowercase: New file.
15896
15897         Tests for module 'unicase/u32-is-uppercase'.
15898         * modules/unicase/u32-is-uppercase-tests: New file.
15899         * tests/unicase/test-u32-is-uppercase.c: New file.
15900
15901         Tests for module 'unicase/u16-is-uppercase'.
15902         * modules/unicase/u16-is-uppercase-tests: New file.
15903         * tests/unicase/test-u16-is-uppercase.c: New file.
15904
15905         Tests for module 'unicase/u8-is-uppercase'.
15906         * modules/unicase/u8-is-uppercase-tests: New file.
15907         * tests/unicase/test-u8-is-uppercase.c: New file.
15908         * tests/unicase/test-is-uppercase.h: New file.
15909
15910         New module 'unicase/u32-is-uppercase'.
15911         * lib/unicase/u32-is-uppercase.c: New file.
15912         * modules/unicase/u32-is-uppercase: New file.
15913
15914         New module 'unicase/u16-is-uppercase'.
15915         * lib/unicase/u16-is-uppercase.c: New file.
15916         * modules/unicase/u16-is-uppercase: New file.
15917
15918         New module 'unicase/u8-is-uppercase'.
15919         * lib/unicase/u8-is-uppercase.c: New file.
15920         * modules/unicase/u8-is-uppercase: New file.
15921
15922         New module 'unicase/u32-is-invariant'.
15923         * lib/unicase/u32-is-invariant.c: New file.
15924         * modules/unicase/u32-is-invariant: New file.
15925
15926         New module 'unicase/u16-is-invariant'.
15927         * lib/unicase/u16-is-invariant.c: New file.
15928         * modules/unicase/u16-is-invariant: New file.
15929
15930         New module 'unicase/u8-is-invariant'.
15931         * lib/unicase/u8-is-invariant.c: New file.
15932         * lib/unicase/invariant.h: New file.
15933         * lib/unicase/u-is-invariant.h: New file.
15934         * modules/unicase/u8-is-invariant: New file.
15935
15936         Tests for module 'unicase/u32-casecoll'.
15937         * modules/unicase/u32-casecoll-tests: New file.
15938         * tests/unicase/test-u32-casecoll.c: New file.
15939
15940         Tests for module 'unicase/u16-casecoll'.
15941         * modules/unicase/u16-casecoll-tests: New file.
15942         * tests/unicase/test-u16-casecoll.c: New file.
15943
15944         Tests for module 'unicase/u8-casecoll'.
15945         * modules/unicase/u8-casecoll-tests: New file.
15946         * tests/unicase/test-u8-casecoll.c: New file.
15947
15948         New module 'unicase/u32-casecoll'.
15949         * lib/unicase/u32-casecoll.c: New file.
15950         * modules/unicase/u32-casecoll: New file.
15951
15952         New module 'unicase/u16-casecoll'.
15953         * lib/unicase/u16-casecoll.c: New file.
15954         * modules/unicase/u16-casecoll: New file.
15955
15956         New module 'unicase/u8-casecoll'.
15957         * lib/unicase/u8-casecoll.c: New file.
15958         * lib/unicase/u-casecoll.h: New file.
15959         * modules/unicase/u8-casecoll: New file.
15960
15961         New module 'unicase/u32-casexfrm'.
15962         * lib/unicase/u32-casexfrm.c: New file.
15963         * modules/unicase/u32-casexfrm: New file.
15964
15965         New module 'unicase/u16-casexfrm'.
15966         * lib/unicase/u16-casexfrm.c: New file.
15967         * modules/unicase/u16-casexfrm: New file.
15968
15969         New module 'unicase/u8-casexfrm'.
15970         * lib/unicase/u8-casexfrm.c: New file.
15971         * lib/unicase/u-casexfrm.h: New file.
15972         * modules/unicase/u8-casexfrm: New file.
15973
15974         Tests for module 'unicase/u32-casecmp'.
15975         * modules/unicase/u32-casecmp-tests: New file.
15976         * tests/unicase/test-u32-casecmp.c: New file.
15977
15978         Tests for module 'unicase/u16-casecmp'.
15979         * modules/unicase/u16-casecmp-tests: New file.
15980         * tests/unicase/test-u16-casecmp.c: New file.
15981
15982         Tests for module 'unicase/u8-casecmp'.
15983         * modules/unicase/u8-casecmp-tests: New file.
15984         * tests/unicase/test-u8-casecmp.c: New file.
15985         * tests/unicase/test-casecmp.h: New file.
15986
15987         New module 'unicase/u32-casecmp'.
15988         * lib/unicase/u32-casecmp.c: New file.
15989         * modules/unicase/u32-casecmp: New file.
15990
15991         New module 'unicase/u16-casecmp'.
15992         * lib/unicase/u16-casecmp.c: New file.
15993         * modules/unicase/u16-casecmp: New file.
15994
15995         New module 'unicase/u8-casecmp'.
15996         * lib/unicase/u8-casecmp.c: New file.
15997         * lib/unicase/u-casecmp.h: New file.
15998         * modules/unicase/u8-casecmp: New file.
15999
16000         Tests for module 'unicase/u32-casefold'.
16001         * modules/unicase/u32-casefold-tests: New file.
16002         * tests/unicase/test-u32-casefold.c: New file.
16003
16004         Tests for module 'unicase/u16-casefold'.
16005         * modules/unicase/u16-casefold-tests: New file.
16006         * tests/unicase/test-u16-casefold.c: New file.
16007
16008         Tests for module 'unicase/u8-casefold'.
16009         * modules/unicase/u8-casefold-tests: New file.
16010         * tests/unicase/test-u8-casefold.c: New file.
16011
16012         New module 'unicase/u32-casefold'.
16013         * lib/unicase/u32-casefold.c: New file.
16014         * modules/unicase/u32-casefold: New file.
16015
16016         New module 'unicase/u16-casefold'.
16017         * lib/unicase/u16-casefold.c: New file.
16018         * modules/unicase/u16-casefold: New file.
16019
16020         New module 'unicase/u8-casefold'.
16021         * lib/unicase/u8-casefold.c: New file.
16022         * lib/unicase/u-casefold.h: New file.
16023         * modules/unicase/u8-casefold: New file.
16024
16025         New module 'unicase/tocasefold'.
16026         * lib/unicase/casefold.h: New file.
16027         * lib/unicase/tocasefold.c: New file.
16028         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
16029         * modules/unicase/tocasefold: New file.
16030
16031         Tests for module 'unicase/u32-totitle'.
16032         * modules/unicase/u32-totitle-tests: New file.
16033         * tests/unicase/test-u32-totitle.c: New file.
16034
16035         Tests for module 'unicase/u16-totitle'.
16036         * modules/unicase/u16-totitle-tests: New file.
16037         * tests/unicase/test-u16-totitle.c: New file.
16038
16039         Tests for module 'unicase/u8-totitle'.
16040         * modules/unicase/u8-totitle-tests: New file.
16041         * tests/unicase/test-u8-totitle.c: New file.
16042
16043         New module 'unicase/u32-totitle'.
16044         * lib/unicase/u32-totitle.c: New file.
16045         * modules/unicase/u32-totitle: New file.
16046
16047         New module 'unicase/u16-totitle'.
16048         * lib/unicase/u16-totitle.c: New file.
16049         * modules/unicase/u16-totitle: New file.
16050
16051         New module 'unicase/u8-totitle'.
16052         * lib/unicase/u8-totitle.c: New file.
16053         * lib/unicase/u-totitle.h: New file.
16054         * modules/unicase/u8-totitle: New file.
16055
16056         Tests for module 'unicase/u32-tolower'.
16057         * modules/unicase/u32-tolower-tests: New file.
16058         * tests/unicase/test-u32-tolower.c: New file.
16059
16060         Tests for module 'unicase/u16-tolower'.
16061         * modules/unicase/u16-tolower-tests: New file.
16062         * tests/unicase/test-u16-tolower.c: New file.
16063
16064         Tests for module 'unicase/u8-tolower'.
16065         * modules/unicase/u8-tolower-tests: New file.
16066         * tests/unicase/test-u8-tolower.c: New file.
16067
16068         New module 'unicase/u32-tolower'.
16069         * lib/unicase/u32-tolower.c: New file.
16070         * modules/unicase/u32-tolower: New file.
16071
16072         New module 'unicase/u16-tolower'.
16073         * lib/unicase/u16-tolower.c: New file.
16074         * modules/unicase/u16-tolower: New file.
16075
16076         New module 'unicase/u8-tolower'.
16077         * lib/unicase/u8-tolower.c: New file.
16078         * modules/unicase/u8-tolower: New file.
16079
16080         Tests for module 'unicase/u32-toupper'.
16081         * modules/unicase/u32-toupper-tests: New file.
16082         * tests/unicase/test-u32-toupper.c: New file.
16083
16084         Tests for module 'unicase/u16-toupper'.
16085         * modules/unicase/u16-toupper-tests: New file.
16086         * tests/unicase/test-u16-toupper.c: New file.
16087
16088         Tests for module 'unicase/u8-toupper'.
16089         * modules/unicase/u8-toupper-tests: New file.
16090         * tests/unicase/test-u8-toupper.c: New file.
16091
16092         New module 'unicase/u32-toupper'.
16093         * lib/unicase/u32-toupper.c: New file.
16094         * modules/unicase/u32-toupper: New file.
16095
16096         New module 'unicase/u16-toupper'.
16097         * lib/unicase/u16-toupper.c: New file.
16098         * modules/unicase/u16-toupper: New file.
16099
16100         New module 'unicase/u8-toupper'.
16101         * lib/unicase/u8-toupper.c: New file.
16102         * modules/unicase/u8-toupper: New file.
16103
16104         New module 'unicase/u32-casemap'.
16105         * lib/unicase/u32-casemap.c: New file.
16106         * modules/unicase/u32-casemap: New file.
16107
16108         New module 'unicase/u16-casemap'.
16109         * lib/unicase/u16-casemap.c: New file.
16110         * modules/unicase/u16-casemap: New file.
16111
16112         New module 'unicase/u8-casemap'.
16113         * lib/unicase/unicasemap.h: New file.
16114         * lib/unicase/u8-casemap.c: New file.
16115         * lib/unicase/u-casemap.h: New file.
16116         * modules/unicase/u8-casemap: New file.
16117
16118         New module 'unicase/special-casing'.
16119         * lib/unicase/special-casing.h: New file.
16120         * lib/unicase/special-casing.c: New file.
16121         * lib/unicase/special-casing-table.gperf: New file, generated by
16122         gen-uni-tables.c.
16123         * modules/unicase/special-casing: New file.
16124
16125         Tests for module 'unicase/locale-language'.
16126         * modules/unicase/locale-language-tests: New file.
16127         * tests/unicase/test-locale-language.sh: New file.
16128         * tests/unicase/test-locale-language.c: New file.
16129
16130         New module 'unicase/locale-language'.
16131         * lib/unicase/locale-language.c: New file.
16132         * lib/unicase/locale-languages.gperf: New file.
16133         * modules/unicase/locale-language: New file.
16134
16135         Generate more tables for case conversion and case folding.
16136         * lib/gen-uni-tables.c (SCC_*): New enum items.
16137         (struct special_casing_rule): New type.
16138         (casing_rules, num_casing_rules, allocated_casing_rules): New
16139         variables.
16140         (add_casing_rule, fill_casing_rules): New functions.
16141         (struct casefold_rule): New type.
16142         (casefolding_rules, num_casefolding_rules,
16143         allocated_casefolding_rules): New variables.
16144         (fill_casefolding_rules): New function.
16145         (unicode_casefold): New variable.
16146         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
16147         sort_casing_rules, output_casing_rules): New functions.
16148         (main): Accept to more arguments: SpecialCasing.txt and
16149         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
16150         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
16151         Output mapping for casefolding.
16152
16153         * lib/unicase.h: Include stdbool.h, uninorm.h.
16154         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
16155         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
16156         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
16157         arguments.
16158         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
16159         resultp arguments.
16160         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
16161         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
16162         resultp arguments.
16163         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
16164         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
16165         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
16166         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
16167         declarations.
16168         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
16169
16170 2009-03-08  Bruno Haible  <bruno@clisp.org>
16171
16172         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16173         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
16174         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
16175         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16176
16177 2009-03-07  Bruno Haible  <bruno@clisp.org>
16178
16179         Adjust u*_normcmp, u*_normcoll API.
16180         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16181         u16_normcoll, u32_normcoll): Change failure conventions.
16182         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
16183         errno and return -1.
16184         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16185
16186 2009-03-07  Bruno Haible  <bruno@clisp.org>
16187
16188         Tests for module 'uninorm/u32-normcoll'.
16189         * modules/uninorm/u32-normcoll-tests: New file.
16190         * tests/uninorm/test-u32-normcoll.c: New file.
16191
16192         Tests for module 'uninorm/u16-normcoll'.
16193         * modules/uninorm/u16-normcoll-tests: New file.
16194         * tests/uninorm/test-u16-normcoll.c: New file.
16195
16196         Tests for module 'uninorm/u8-normcoll'.
16197         * modules/uninorm/u8-normcoll-tests: New file.
16198         * tests/uninorm/test-u8-normcoll.c: New file.
16199
16200 2009-03-07  Bruno Haible  <bruno@clisp.org>
16201
16202         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
16203         tests/uninorm/test-u32-normcmp.c.
16204         * tests/uninorm/test-u32-normcmp.c: Include it.
16205         (test_nonascii): New function, extracted from main. Add some more
16206         tests.
16207         (main): Invoke test_ascii and test_nonascii.
16208         * modules/uninorm/u32-normcmp-tests (Files): Add
16209         tests/uninorm/test-u32-normcmp.h.
16210         (Depends-on): Remove uninorm/u32-normcmp.
16211
16212         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
16213         tests/uninorm/test-u16-normcmp.c.
16214         * tests/uninorm/test-u16-normcmp.c: Include it.
16215         (test_nonascii): New function, extracted from main. Add some more
16216         tests.
16217         (main): Invoke test_ascii and test_nonascii.
16218         * modules/uninorm/u16-normcmp-tests (Files): Add
16219         tests/uninorm/test-u16-normcmp.h.
16220         (Depends-on): Remove uninorm/u16-normcmp.
16221
16222         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
16223         tests/uninorm/test-u8-normcmp.c.
16224         * tests/uninorm/test-u8-normcmp.c: Include it.
16225         (test_nonascii): New function, extracted from main. Add some more
16226         tests.
16227         (main): Invoke test_ascii and test_nonascii.
16228         * modules/uninorm/u8-normcmp-tests (Files): Add
16229         tests/uninorm/test-u8-normcmp.h.
16230         (Depends-on): Remove uninorm/u8-normcmp.
16231
16232 2009-03-07  Bruno Haible  <bruno@clisp.org>
16233
16234         New module 'uninorm/u32-normcoll'.
16235         * lib/uninorm/u32-normcoll.c: New file.
16236         * modules/uninorm/u32-normcoll: New file.
16237
16238         New module 'uninorm/u16-normcoll'.
16239         * lib/uninorm/u16-normcoll.c: New file.
16240         * modules/uninorm/u16-normcoll: New file.
16241
16242         New module 'uninorm/u8-normcoll'.
16243         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
16244         declarations.
16245         * lib/uninorm/u8-normcoll.c: New file.
16246         * lib/uninorm/u-normcoll.h: New file.
16247         * modules/uninorm/u8-normcoll: New file.
16248
16249         New module 'uninorm/u32-normxfrm'.
16250         * lib/uninorm/u32-normxfrm.c: New file.
16251         * modules/uninorm/u32-normxfrm: New file.
16252
16253         New module 'uninorm/u16-normxfrm'.
16254         * lib/uninorm/u16-normxfrm.c: New file.
16255         * modules/uninorm/u16-normxfrm: New file.
16256
16257         New module 'uninorm/u8-normxfrm'.
16258         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
16259         declarations.
16260         * lib/uninorm/u8-normxfrm.c: New file.
16261         * lib/uninorm/u-normxfrm.h: New file.
16262         * modules/uninorm/u8-normxfrm: New file.
16263
16264 2009-03-07  Bruno Haible  <bruno@clisp.org>
16265
16266         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
16267         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
16268         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
16269
16270 2009-03-07  Bruno Haible  <bruno@clisp.org>
16271
16272         New module 'memxfrm'.
16273         * lib/memxfrm.h: New file.
16274         * lib/memxfrm.c: New file.
16275         * modules/memxfrm: New file.
16276
16277 2009-03-07  Bruno Haible  <bruno@clisp.org>
16278
16279         New module 'memcmp2'.
16280         * lib/memcmp2.h: New file.
16281         * lib/memcmp2.c: New file.
16282         * modules/memcmp2: New file.
16283
16284 2009-03-07  Bruno Haible  <bruno@clisp.org>
16285
16286         Tests for module 'uninorm/decomposing-form'.
16287         * modules/uninorm/decomposing-form-tests: New file.
16288         * tests/uninorm/test-decomposing-form.c: New file.
16289
16290         New module 'uninorm/decomposing-form'.
16291         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
16292         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
16293         Add 'decomposing_variant' field.
16294         * lib/uninorm/decomposing-form.c: New file.
16295         * lib/uninorm/nfc.c (uninorm_nfc): Update.
16296         * lib/uninorm/nfd.c (uninorm_nfd): Update.
16297         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
16298         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
16299         * modules/uninorm/decomposing-form: New file.
16300         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
16301         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
16302
16303 2009-03-07  Bruno Haible  <bruno@clisp.org>
16304
16305         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
16306         strings.
16307
16308 2009-03-06  Bruno Haible  <bruno@clisp.org>
16309
16310         Tests for module 'uninorm/u32-normcmp'.
16311         * tests/uninorm/test-u32-normcmp.c: New file.
16312         * modules/uninorm/u32-normcmp-tests: New file.
16313
16314         Tests for module 'uninorm/u16-normcmp'.
16315         * tests/uninorm/test-u16-normcmp.c: New file.
16316         * modules/uninorm/u16-normcmp-tests: New file.
16317
16318         Tests for module 'uninorm/u8-normcmp'.
16319         * tests/uninorm/test-u8-normcmp.c: New file.
16320         * modules/uninorm/u8-normcmp-tests: New file.
16321
16322         New module 'uninorm/u32-normcmp'.
16323         * lib/uninorm/u32-normcmp.c: New file.
16324         * modules/uninorm/u32-normcmp: New file.
16325
16326         New module 'uninorm/u16-normcmp'.
16327         * lib/uninorm/u16-normcmp.c: New file.
16328         * modules/uninorm/u16-normcmp: New file.
16329
16330         New module 'uninorm/u8-normcmp'.
16331         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
16332         declarations.
16333         * lib/uninorm/u8-normcmp.c: New file.
16334         * lib/uninorm/u-normcmp.h: New file.
16335         * modules/uninorm/u8-normcmp: New file.
16336
16337 2009-03-06  Bruno Haible  <bruno@clisp.org>
16338
16339         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16340         Reported by Eric Blake.
16341
16342 2009-03-06  Eric Blake  <ebb9@byu.net>
16343             Bruno Haible  <bruno@clisp.org>
16344
16345         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16346         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16347         condition.
16348         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16349         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16350         condition.
16351         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16352
16353 2009-03-06  Eric Blake  <ebb9@byu.net>
16354
16355         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16356         to avoid compiler warnings.
16357         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16358
16359 2009-03-05  Bruno Haible  <bruno@clisp.org>
16360
16361         * tests/test-ftell.c (main): Disable test beyond end of file on
16362         FreeMiNT.
16363         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16364
16365 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16366
16367         * lib/filevercmp.c: Move hidden files up in ordering.
16368         * tests/test-filevercmp.c: Add tests for hidden files.
16369
16370 2009-03-04  Bruno Haible  <bruno@clisp.org>
16371
16372         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16373         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16374         AM_CFLAGS.
16375         Reported by Simon Josefsson.
16376
16377 2009-03-03  Bruno Haible  <bruno@clisp.org>
16378
16379         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16380         Reported by Simon Josefsson.
16381
16382         * doc/ld-version-script.texi: Update node reference.
16383
16384 2009-03-03  Bruno Haible  <bruno@clisp.org>
16385
16386         * modules/visibility (License): Change to 'unlimited'.
16387         Suggested by Simon Josefsson.
16388
16389 2009-03-03  Jim Meyering  <meyering@redhat.com>
16390
16391         unlinkdir: cannot_unlink_dir may modify process state
16392         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16393         it's neither thread-safe nor appropriate for use in a library.
16394
16395 2009-03-03  Eric Blake  <ebb9@byu.net>
16396
16397         test-closein: silence test under Darwin
16398         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16399         care if it dies from EPIPE or EBADF.
16400
16401 2009-03-03  Bruno Haible  <bruno@clisp.org>
16402
16403         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16404         earlier.
16405         * doc/visibility.texi: Fix @node and @section.
16406
16407 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16408
16409         * doc/gnulib.texi: Link to sections for ld version script and
16410         visibility.
16411         * doc/visibility.texi: Add @node and @section.
16412         * modules/ld-version-script: New module.
16413         * m4/ld-version-script.m4: New file.
16414         * doc/ld-version-script.texi: New file.
16415
16416 2009-03-02  David Lutterkort  <lutter@redhat.com>
16417
16418         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16420
16421 2009-03-02  Bruno Haible  <bruno@clisp.org>
16422
16423         * doc/visibility.texi: Mention libtool's -export-symbols option.
16424
16425 2009-03-02  Jim Meyering  <meyering@redhat.com>
16426
16427         announce-gen: new option: --no-print-checksums
16428         * build-aux/announce-gen (usage): Describe it.
16429         (print_checksums): Print a newline here, not in the [*] footnote.
16430         (main): Honor it.
16431
16432 2009-03-01  Bruno Haible  <bruno@clisp.org>
16433
16434         Use socklen_t in the native Windows replacements prototypes.
16435         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16436         instead of 'int'.
16437         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16438         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16439         * modules/getsockopt (Depends-on): Add socklen.
16440         * modules/setsockopt (Depends-on): Add socklen.
16441
16442 2009-03-01  Bruno Haible  <bruno@clisp.org>
16443
16444         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16445         least 4.2.
16446
16447 2009-03-01  Eric Blake  <ebb9@byu.net>
16448             Bruno Haible  <bruno@clisp.org>
16449
16450         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16451         error messages.
16452         * lib/wait-process.c (wait_subprocess): Omit error message about
16453         deadly signal sent to the child of termsigp != NULL.
16454
16455 2009-03-01  Eric Blake  <ebb9@byu.net>
16456
16457         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16458
16459 2009-03-01  Bruno Haible  <bruno@clisp.org>
16460
16461         Avoid a gcc warning.
16462         * tests/test-sched.c (b): Make global.
16463         Reported by Eric Blake.
16464
16465 2009-01-19  Martin Lambers  <marlam@marlam.de>
16466
16467         Provide POSIX semantics for socket timeout options on W32.
16468         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16469         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16470         * modules/setsockopt: Depend on sys_time module for struct timeval.
16471         * modules/getsockopt: Depend on sys_time module for struct timeval.
16472
16473 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16474
16475         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16476         __USE_GNU, for consistency with netdb.in.h.
16477         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16478
16479 2009-03-01  Bruno Haible  <bruno@clisp.org>
16480
16481         More support for FreeMiNT.
16482         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16483         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16484
16485 2009-03-01  Bruno Haible  <bruno@clisp.org>
16486
16487         More support for FreeMiNT.
16488         * lib/fpurge.c (fpurge): Correct last commit.
16489         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16490
16491 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16492
16493         Fix unportable awk script in vc-list-files.
16494         * build-aux/vc-list-files: In the replacement awk script, use
16495         substr with a second argument of 1, not zero.
16496         Report by Simon Josefsson.
16497
16498 2009-02-28  Bruno Haible  <bruno@clisp.org>
16499
16500         More support for FreeMiNT.
16501         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16502         to FreeMiNT today.
16503         * lib/fwriting.c (fwriting): Likewise.
16504         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16505
16506 2009-02-28  Bruno Haible  <bruno@clisp.org>
16507
16508         * tests/test-freadseek.c (main): Disable test beyond end of file on
16509         FreeMiNT.
16510         * tests/test-ftello.c (main): Likewise.
16511         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16512
16513 2009-02-28  Bruno Haible  <bruno@clisp.org>
16514
16515         Add tentative support for FreeMiNT.
16516         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16517         * lib/fpurge.c (fpurge): Likewise.
16518         * lib/freadable.c (freadable): Likewise.
16519         * lib/freading.c (freading): Likewise.
16520         * lib/freadptr.c (freadptr): Likewise.
16521         * lib/freadseek.c (freadptrinc): Likewise.
16522         * lib/fseeko.c (rpl_fseeko): Likewise.
16523         * lib/fseterr.c (fseterr): Likewise.
16524         * lib/fwritable.c (fwritable): Likewise.
16525         * lib/fwriting.c (fwriting): Likewise.
16526         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16527         Hourihane.
16528         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16529
16530 2009-02-28  Bruno Haible  <bruno@clisp.org>
16531
16532         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16533         SIGCHLD.
16534         Reported by Jim Meyering.
16535
16536 2009-02-28  Bruno Haible  <bruno@clisp.org>
16537
16538         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16539         Mention the results of these tests on various platforms.
16540         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16541         order.
16542         * doc/posix-functions/printf.texi: Likewise.
16543         * doc/posix-functions/snprintf.texi: Likewise.
16544         * doc/posix-functions/sprintf.texi: Likewise.
16545         * doc/posix-functions/vfprintf.texi: Likewise.
16546         * doc/posix-functions/vprintf.texi: Likewise.
16547         * doc/posix-functions/vsnprintf.texi: Likewise.
16548         * doc/posix-functions/vsprintf.texi: Likewise.
16549         * doc/glibc-functions/obstack_printf.texi: Likewise.
16550         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16551
16552 2009-02-28  Bruno Haible  <bruno@clisp.org>
16553
16554         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16555         Reported by Loïc Minier <lool@dooz.org>.
16556
16557 2009-02-27  Bruno Haible  <bruno@clisp.org>
16558
16559         * gnulib-tool (func_import): Make the sed expression used to create the
16560         sed script for updating the .gitignore file POSIX compliant.
16561         Reported by Eric Blake.
16562
16563 2009-02-27  Bruno Haible  <bruno@clisp.org>
16564
16565         * gnulib-tool (sed): Don't alias as "sed --posix".
16566         Reported by Eric Blake.
16567
16568 2009-02-27  Bruno Haible  <bruno@clisp.org>
16569
16570         Avoid test link errors.
16571         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16572         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16573         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16574         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16575         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16576
16577 2009-02-27  Bruno Haible  <bruno@clisp.org>
16578
16579         Avoid spurious "(cached)" in configure output.
16580         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16581         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16582         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16583         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16584         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16585         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16586         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16587         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16588         Reported by Eric Blake.
16589
16590 2009-02-27  Eric Blake  <ebb9@byu.net>
16591
16592         printf: fix regression in previous patch
16593         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16594
16595 2009-02-27  Bruno Haible  <bruno@clisp.org>
16596
16597         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16598         value.
16599         * lib/stdint.in.h: Likewise.
16600         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16601
16602 2009-02-27  Eric Blake  <ebb9@byu.net>
16603
16604         doc: mention more functions added in cygwin 1.7.0
16605         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16606         addition.
16607         * doc/posix-functions/open_wmemstream.texi: Likewise.
16608         * doc/posix-functions/wcsnlen.texi: Likewise.
16609         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16610         * doc/posix-functions/wcstod.texi: Likewise.
16611         * doc/posix-functions/wcstof.texi: Likewise.
16612         * doc/posix-functions/wcstoimax.texi: Likewise.
16613         * doc/posix-functions/wcstok.texi: Likewise.
16614         * doc/posix-functions/wcstoumax.texi: Likewise.
16615
16616         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16617         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16618         * doc/posix-functions/fprintf.texi: Update.
16619         * doc/posix-functions/printf.texi: Update.
16620         * doc/posix-functions/snprintf.texi: Update.
16621         * doc/posix-functions/sprintf.texi: Update.
16622         * doc/posix-functions/vfprintf.texi: Update.
16623         * doc/posix-functions/vprintf.texi: Update.
16624         * doc/posix-functions/vsnprintf.texi: Update.
16625         * doc/posix-functions/vsprintf.texi: Update.
16626         * doc/glibc-functions/obstack_printf.texi: Update.
16627         * doc/glibc-functions/obstack_vprintf.texi: Update.
16628
16629 2009-02-26  Eric Blake  <ebb9@byu.net>
16630
16631         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16632         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16633         compilation bug by using runtime conversion.
16634         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16635         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16636         * modules/ceill-tests (Files): Use nan.h.
16637         * modules/floorl-tests (Files): Likewise.
16638         * modules/frexpl-tests (Files): Likewise.
16639         * modules/isnanl-tests (Files): Likewise.
16640         * modules/ldexpl-tests (Files): Likewise.
16641         * modules/roundl-tests (Files): Likewise.
16642         * modules/truncl-tests (Files): Likewise.
16643         * tests/test-ceill.c (main): Use a working NaN.
16644         * tests/test-floorl.c (main): Likewise.
16645         * tests/test-frexpl.c (main): Likewise.
16646         * tests/test-isnan.c (test_long_double): Likewise.
16647         * tests/test-isnanl.h (main): Likewise.
16648         * tests/test-ldexpl.h (main): Likewise.
16649         * tests/test-roundl.h (main): Likewise.
16650         * tests/test-truncl.h (main): Likewise.
16651         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16652
16653 2009-02-26  Eric Blake  <ebb9@byu.net>
16654             Bruno Haible  <bruno@clisp.org>
16655
16656         Work around a *printf bug with %ls on Solaris.
16657         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16658         precision is specified, sprintf stops converting the wide string
16659         argument when the number of bytes that have been produced by this
16660         conversion equals or exceeds the precision.
16661         * doc/posix-functions/fprintf.texi: Update.
16662         * doc/posix-functions/printf.texi: Update.
16663         * doc/posix-functions/snprintf.texi: Update.
16664         * doc/posix-functions/sprintf.texi: Update.
16665         * doc/posix-functions/vfprintf.texi: Update.
16666         * doc/posix-functions/vprintf.texi: Update.
16667         * doc/posix-functions/vsnprintf.texi: Update.
16668         * doc/posix-functions/vsprintf.texi: Update.
16669         * doc/glibc-functions/obstack_printf.texi: Update.
16670         * doc/glibc-functions/obstack_vprintf.texi: Update.
16671
16672 2009-02-26  Eric Blake  <ebb9@byu.net>
16673
16674         stdlib: favor compiler check of random.h
16675         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16676         to avoid an ObjC random.h installed by Swarm.
16677
16678 2009-02-26  Bruno Haible  <bruno@clisp.org>
16679
16680         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16681         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16682         Reported by Gary V. Vaughan <gary@gnu.org>.
16683
16684 2009-02-26  Bruno Haible  <bruno@clisp.org>
16685
16686         Fix *printf behaviour regarding the %ls directive.
16687         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16688         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16689         NEED_PRINTF_DIRECTIVE_LS.
16690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16691         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16692         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16693         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16694         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16695         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16696         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16697         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16698         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16701         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16702         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16703         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16705         * doc/posix-functions/fprintf.texi: Update.
16706         * doc/posix-functions/printf.texi: Update.
16707         * doc/posix-functions/snprintf.texi: Update.
16708         * doc/posix-functions/sprintf.texi: Update.
16709         * doc/posix-functions/vfprintf.texi: Update.
16710         * doc/posix-functions/vprintf.texi: Update.
16711         * doc/posix-functions/vsnprintf.texi: Update.
16712         * doc/posix-functions/vsprintf.texi: Update.
16713         * doc/glibc-functions/obstack_printf.texi: Update.
16714         * doc/glibc-functions/obstack_vprintf.texi: Update.
16715         Reported by Eric Blake.
16716
16717 2009-02-25  Bruno Haible  <bruno@clisp.org>
16718
16719         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16720         with known value.
16721         Reported by Gary V. Vaughan <gary@gnu.org>.
16722
16723 2009-02-25  Bruno Haible  <bruno@clisp.org>
16724
16725         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16726         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16727         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16728         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16729         Reported by Gary V. Vaughan <gary@gnu.org>.
16730
16731 2009-02-25  Bruno Haible  <bruno@clisp.org>
16732
16733         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16734         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16735         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16736         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16737         Reported by Gary V. Vaughan <gary@gnu.org>.
16738
16739 2009-02-25  Eric Blake  <ebb9@byu.net>
16740
16741         tests: skip fseek/ftell tests if ungetc is broken
16742         * m4/ungetc.m4: New file.
16743         * modules/fseek-tests: Split test, so ungetc dependency is
16744         separate from rest of test.
16745         * modules/fseeko-tests: Likewise.
16746         * modules/ftell-tests: Likewise.
16747         * modules/ftello-tests: Likewise.
16748         * tests/test-fseek.c (main): Isolate ungetc dependency.
16749         * tests/test-fseeko.c (main): Likewise.
16750         * tests/test-ftell.c (main): Likewise.
16751         * tests/test-ftello.c (main): Likewise.
16752         * tests/test-fseek2.sh: New file.
16753         * tests/test-fseeko2.sh: Likewise.
16754         * tests/test-ftell2.sh: Likewise.
16755         * tests/test-ftello2.sh: Likewise.
16756
16757 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
16758
16759         test-getaddrinfo: fix usage of skip return code 77
16760         * tests/test-gettaddrinfo.c: Return skip code 77 only
16761         for first occurance of skip (4x77 is not 77)
16762
16763 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16764
16765         strtod: avoid C99 decl-after-statement
16766         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16767
16768 2009-02-24  Eric Blake  <ebb9@byu.net>
16769
16770         strtod: detect HP-UX 11.31 bug
16771         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16772         Reported by Gary V. Vaughan.
16773
16774 2009-02-23  Bruno Haible  <bruno@clisp.org>
16775
16776         Fix invalid read past end of memory block.
16777         * lib/vasnprintf.c (DCHAR_SET): Define.
16778         (local_wcslen): Define only when needed.
16779         (local_strnlen, local_wcsnlen): New functions.
16780         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16781         directives that involve a conversion ourselves.
16782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16783         wcsnlen, mbrtowc, wcrtomb.
16784         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16785         * tests/test-vasprintf-posix.c (test_function): Likewise.
16786         * tests/test-snprintf-posix.h (test_function): Likewise.
16787         * tests/test-sprintf-posix.h (test_function): Likewise.
16788         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16789
16790 2009-02-22  Bruno Haible  <bruno@clisp.org>
16791
16792         Implement new clarified decomposition of Hangul syllables.
16793         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16794         of type LTV, return only a pairwise decomposition.
16795         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16796         Likewise.
16797         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16798         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16799         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16800
16801 2009-02-22  Bruno Haible  <bruno@clisp.org>
16802
16803         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16804         zero-length results and shrink excess allocated memory.
16805         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16806         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16807         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16808         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16809         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16810         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16811         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16812         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16813         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16814         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16815         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16816         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16817
16818 2009-02-21  Bruno Haible  <bruno@clisp.org>
16819
16820         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16821         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16822         spaces after a period. Put a space between a macro name and its
16823         argument list. Trivial rewordings.
16824         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16825         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16826         (main): Return 0 explicitly.
16827
16828 2009-02-21  Bruno Haible  <bruno@clisp.org>
16829
16830         Tests for module 'uninorm/filter'.
16831         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16832         * modules/uninorm/filter-tests: New file.
16833
16834         New module 'uninorm/filter'.
16835         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16836         uninorm_filter_flush, uninorm_filter_free): New declarations.
16837         * lib/uninorm/uninorm-filter.c: New file.
16838         * modules/uninorm/filter: New file.
16839
16840 2009-02-21  Bruno Haible  <bruno@clisp.org>
16841
16842         Tests for module 'uninorm/nfkc'.
16843         * tests/uninorm/test-nfkc.c: New file.
16844         * tests/uninorm/test-u8-nfkc.c: New file.
16845         * tests/uninorm/test-u16-nfkc.c: New file.
16846         * tests/uninorm/test-u32-nfkc.c: New file.
16847         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16848         * tests/uninorm/test-u32-nfkc-big.c: New file.
16849         * modules/uninorm/nfkc-tests: New file.
16850
16851         New module 'uninorm/nfkc'.
16852         * lib/uninorm/nfkc.c: New file.
16853         * modules/uninorm/nfkc: New file.
16854
16855         Tests for module 'uninorm/nfkd'.
16856         * tests/uninorm/test-nfkd.c: New file.
16857         * tests/uninorm/test-u8-nfkd.c: New file.
16858         * tests/uninorm/test-u16-nfkd.c: New file.
16859         * tests/uninorm/test-u32-nfkd.c: New file.
16860         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16861         * tests/uninorm/test-u32-nfkd-big.c: New file.
16862         * modules/uninorm/nfkd-tests: New file.
16863
16864         New module 'uninorm/nfkd'.
16865         * lib/uninorm/nfkd.c: New file.
16866         * modules/uninorm/nfkd: New file.
16867
16868         Tests for module 'uninorm/nfc'.
16869         * tests/uninorm/test-nfc.c: New file.
16870         * tests/uninorm/test-u8-nfc.c: New file.
16871         * tests/uninorm/test-u16-nfc.c: New file.
16872         * tests/uninorm/test-u32-nfc.c: New file.
16873         * tests/uninorm/test-u32-nfc-big.sh: New file.
16874         * tests/uninorm/test-u32-nfc-big.c: New file.
16875         * modules/uninorm/nfc-tests: New file.
16876
16877         New module 'uninorm/nfc'.
16878         * lib/uninorm/nfc.c: New file.
16879         * modules/uninorm/nfc: New file.
16880
16881         Tests for module 'uninorm/nfd'.
16882         * tests/uninorm/test-nfd.c: New file.
16883         * tests/uninorm/test-u8-nfd.c: New file.
16884         * tests/uninorm/test-u16-nfd.c: New file.
16885         * tests/uninorm/test-u32-nfd.c: New file.
16886         * tests/uninorm/test-u32-nfd-big.sh: New file.
16887         * tests/uninorm/test-u32-nfd-big.c: New file.
16888         * tests/uninorm/test-u32-normalize-big.h: New file.
16889         * tests/uninorm/test-u32-normalize-big.c: New file.
16890         * tests/uninorm/NormalizationTest.txt: New file, created from
16891         Unicode 5.1.0 NormalizationTest.txt.
16892         * modules/uninorm/nfd-tests: New file.
16893
16894         New module 'uninorm/nfd'.
16895         * lib/uninorm/nfd.c: New file.
16896         * modules/uninorm/nfd: New file.
16897
16898         New module 'uninorm/u32-normalize'.
16899         * lib/uninorm/u32-normalize.c: New file.
16900         * modules/uninorm/u32-normalize: New file.
16901
16902         New module 'uninorm/u16-normalize'.
16903         * lib/uninorm/u16-normalize.c: New file.
16904         * modules/uninorm/u16-normalize: New file.
16905
16906         New module 'uninorm/u8-normalize'.
16907         * lib/uninorm/u8-normalize.c: New file.
16908         * lib/uninorm/normalize-internal.h: New file.
16909         * lib/uninorm/u-normalize-internal.h: New file.
16910         * modules/uninorm/u8-normalize: New file.
16911
16912         New module 'uninorm/decompose-internal'.
16913         * lib/uninorm/decompose-internal.c: New file.
16914         * modules/uninorm/decompose-internal: New file.
16915
16916         Tests for module 'uninorm/composition'.
16917         * tests/uninorm/test-composition.c: New file.
16918         * modules/uninorm/composition-tests: New file.
16919
16920         New module 'uninorm/composition'.
16921         * lib/uninorm/composition.c: New file.
16922         * lib/uninorm/composition-table.gperf: New file, generated by
16923         gen-uni-tables.
16924         * modules/uninorm/composition: New file.
16925
16926         Tests for module 'uninorm/compat-decomposition'.
16927         * tests/uninorm/test-compat-decomposition.c: New file.
16928         * modules/uninorm/compat-decomposition-tests: New file.
16929
16930         New module 'uninorm/compat-decomposition'.
16931         * lib/uninorm/decompose-internal.h: New file.
16932         * lib/uninorm/compat-decomposition.c: New file.
16933         * modules/uninorm/compat-decomposition: New file.
16934
16935         Tests for module 'uninorm/canonical-decomposition'.
16936         * tests/uninorm/test-canonical-decomposition.c: New file.
16937         * modules/uninorm/canonical-decomposition-tests: New file.
16938
16939         New module 'uninorm/canonical-decomposition'.
16940         * lib/uninorm/canonical-decomposition.c: New file.
16941         * modules/uninorm/canonical-decomposition: New file.
16942
16943         Tests for module 'uninorm/decomposition'.
16944         * tests/uninorm/test-decomposition.c: New file.
16945         * modules/uninorm/decomposition-tests: New file.
16946
16947         New module 'uninorm/decomposition'.
16948         * lib/uninorm/decomposition.c: New file.
16949         * modules/uninorm/decomposition: New file.
16950
16951         New module 'uninorm/decomposition-table'.
16952         * lib/uninorm/decomposition-table.h: New file.
16953         * lib/uninorm/decomposition-table.c: New file.
16954         * lib/uninorm/decomposition-table1.h: New file, generated by
16955         gen-uni-tables.
16956         * lib/uninorm/decomposition-table2.h: New file, generated by
16957         gen-uni-tables.
16958         * modules/uninorm/decomposition-table: New file.
16959
16960         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16961         (UC_DECOMP_*): New enumeration items.
16962         (get_decomposition): New function.
16963         (struct decomp_table): New type.
16964         (output_decomposition, output_decomposition_tables): New functions.
16965         (unicode_composition_exclusions): New variable.
16966         (fill_composition_exclusions, debug_output_composition_tables): New
16967         functions.
16968         (main): Accept one more argument. Invoke fill_composition_exclusions.
16969         Output decomposition and composition tables.
16970
16971         New module 'uninorm/base'.
16972         * lib/uninorm.h: New file.
16973         * lib/unictype.h: Update comment.
16974         * modules/uninorm/base: New file.
16975
16976 2009-02-21  David Lutterkort  <lutter@redhat.com>
16977
16978         Tests for module 'safe-alloc'.
16979         * tests/test-safe-alloc.c: New file.
16980         * modules/safe-alloc-tests: New file.
16981
16982         New module 'safe-alloc'.
16983         * lib/safe-alloc.h: New file.
16984         * lib/safe-alloc.c: New file.
16985         * m4/safe-alloc.m4: New file.
16986         * modules/safe-alloc: New file.
16987         * doc/safe-alloc.texi: New file.
16988         * doc/gnulib.texi: Include it.
16989         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16990         safe-alloc.
16991
16992 2009-02-18  Bruno Haible  <bruno@clisp.org>
16993
16994         Fix link error on non-glibc systems.
16995         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16996         variable.
16997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16998
16999 2009-02-18  Jim Meyering  <meyering@redhat.com>
17000
17001         fts: avoid used-uninitialized error due to recent change
17002         * lib/fts.c (fts_read): Guard uses of the new member,
17003         parent->fts_n_dirs_remaining, since it's not relevant for
17004         the parent of a directory specified on the command-line.
17005
17006 2009-02-17  James Youngman  <jay@gnu.org>
17007             Bruno Haible  <bruno@clisp.org>
17008
17009         * m4/include_next.m4: Reformulate comment.
17010
17011 2009-02-16  Jim Meyering  <meyering@redhat.com>
17012
17013         fts: add #if guards so that the fts_lgpl module still builds
17014         * lib/fts.c: Guard just-added hash-table-using parts with
17015         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
17016         Reported by Simon Josefsson.
17017
17018 2009-02-15  Bruno Haible  <bruno@clisp.org>
17019
17020         * modules/array-mergesort-tests: New file.
17021         * tests/test-array-mergesort.c: New file.
17022
17023         New module 'array-mergesort'.
17024         * modules/array-mergesort: New file.
17025         * lib/array-mergesort.h: New file.
17026
17027 2009-02-15  Bruno Haible  <bruno@clisp.org>
17028
17029         Fix 2009-02-07 commit.
17030         * lib/gen-uni-tables.c (output_predicate, output_category,
17031         output_combclass, output_bidi_category, output_decimal_digit,
17032         output_digit, output_numeric, output_mirror, output_scripts,
17033         output_ident_category, output_simple_mapping): Fix format directives.
17034         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
17035
17036 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
17037
17038         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
17039         fixes are available from IBM.
17040
17041 2009-02-13  Jim Meyering  <meyering@redhat.com>
17042
17043         fts: arrange not to stat non-directories in more cases
17044         This makes GNU find (when it doesn't need to stat each file)
17045         *much* more efficient at traversing reiserfs file systems.
17046         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
17047         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
17048         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
17049         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
17050         (leaf_optimization_applies): New function.
17051         (LCO_hash, LCO_compare): New helper functions.
17052         (link_count_optimize_ok): New function.
17053         (fts_stat): Initialize new member (if dir).
17054         (fts_read): Decrement parent's fts_n_dirs_remaining count if
17055         we've just stat'ed a directory.  Skip the stat call when possible.
17056         ---
17057         Note this AFS-related exchange:
17058         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
17059         and note find's pioctl call in find/fstype.c.
17060         But that is necessary only if you want to enable the
17061         optimization for AFS, and for now, I don't.
17062
17063         fts: move a function definition "up" (no semantic change)
17064         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
17065         "up" to precede upcoming use of a related function.
17066
17067 2009-02-11  Jim Meyering  <meyering@redhat.com>
17068
17069         fts: correct internal computation of nlinks (optimization-related)
17070         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
17071         whether the current entry is a directory, so don't test it.
17072
17073 2009-02-10  Bruno Haible  <bruno@clisp.org>
17074
17075         Tests for module 'uniwbrk/ulc-wordbreaks'.
17076         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
17077         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
17078         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
17079
17080         Tests for module 'uniwbrk/u32-wordbreaks'.
17081         * modules/uniwbrk/u32-wordbreaks-tests: New file.
17082         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
17083
17084         Tests for module 'uniwbrk/u16-wordbreaks'.
17085         * modules/uniwbrk/u16-wordbreaks-tests: New file.
17086         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
17087
17088         Tests for module 'uniwbrk/u8-wordbreaks'.
17089         * modules/uniwbrk/u8-wordbreaks-tests: New file.
17090         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
17091
17092 2009-02-10  Bruno Haible  <bruno@clisp.org>
17093
17094         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
17095         property.
17096         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
17097         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
17098         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
17099
17100 2009-02-10  Simon Josefsson  <simon@josefsson.org>
17101
17102         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
17103         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
17104
17105 2009-02-10  Bruno Haible  <bruno@clisp.org>
17106
17107         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
17108         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
17109         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
17110         * lib/unilbrk/u8-possible-linebreaks.c: Update.
17111         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
17112         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
17113
17114 2009-02-09  Simon Josefsson  <simon@josefsson.org>
17115
17116         * lib/sockets.h (gl_fd_to_handle): New function.
17117
17118         * tests/test-sockets.c: Call gl_fd_to_handle.
17119
17120 2009-02-09  Bruno Haible  <bruno@clisp.org>
17121
17122         * doc/havelib.texi: Document the conventions on bi-arch systems.
17123
17124 2009-02-08  Bruno Haible  <bruno@clisp.org>
17125
17126         Document the AC_LIB_LINKFLAGS macro.
17127         * doc/havelib.texi: New file, mostly written on 2005-05-24.
17128         * doc/gnulib.texi: Include it.
17129
17130 2009-02-08  Bruno Haible  <bruno@clisp.org>
17131
17132         Fix wrong order of sections, compared to TOC.
17133         * doc/gnulib.texi: Include relocatable-maint.texi after the
17134         "Regular expressions" node, not before.
17135
17136 2009-02-08  Bruno Haible  <bruno@clisp.org>
17137
17138         Tests for module 'unicase/totitle'.
17139         * modules/unicase/totitle-tests: New file.
17140
17141         Tests for module 'unicase/tolower'.
17142         * modules/unicase/tolower-tests: New file.
17143
17144         Tests for module 'unicase/toupper'.
17145         * modules/unicase/toupper-tests: New file.
17146         * tests/unicase/test-mapping-part1.h: New file.
17147         * tests/unicase/test-mapping-part2.h: New file.
17148
17149         New module 'unicase/totitle'.
17150         * modules/unicase/totitle: New file.
17151         * lib/unicase/totitle.c: New file.
17152
17153         New module 'unicase/tolower'.
17154         * modules/unicase/tolower: New file.
17155         * lib/unicase/tolower.c: New file.
17156
17157         New module 'unicase/toupper'.
17158         * modules/unicase/toupper: New file.
17159         * lib/unicase/toupper.c: New file.
17160         * lib/unicase/simple-mapping.h: New file.
17161
17162         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
17163         (mapping_table): New structure.
17164         (output_simple_mapping): New function.
17165         (main): Invoke output_simple_mapping_test and output_simple_mapping.
17166         * modules/gen-uni-tables (Description): Update.
17167         * lib/unicase/toupper.h: New file, automatically generated by
17168         gen-uni-tables.
17169         * lib/unicase/tolower.h: New file, automatically generated by
17170         gen-uni-tables.
17171         * lib/unicase/totitle.h: New file, automatically generated by
17172         gen-uni-tables.
17173         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
17174         gen-uni-tables.
17175         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
17176         gen-uni-tables.
17177         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
17178         gen-uni-tables.
17179
17180         New module 'unicase/base'.
17181         * modules/unicase/base: New file.
17182         * lib/unicase.h: New file.
17183
17184 2009-02-08  Bruno Haible  <bruno@clisp.org>
17185
17186         New module 'uniwbrk/ulc-wordbreaks'.
17187         * modules/uniwbrk/ulc-wordbreaks: New file.
17188         * lib/uniwbrk/ulc-wordbreaks.c: New file.
17189
17190         New module 'uniwbrk/u32-wordbreaks'.
17191         * modules/uniwbrk/u32-wordbreaks: New file.
17192         * lib/uniwbrk/u32-wordbreaks.c: New file.
17193
17194         New module 'uniwbrk/u16-wordbreaks'.
17195         * modules/uniwbrk/u16-wordbreaks: New file.
17196         * lib/uniwbrk/u16-wordbreaks.c: New file.
17197
17198         New module 'uniwbrk/u8-wordbreaks'.
17199         * modules/uniwbrk/u8-wordbreaks: New file.
17200         * lib/uniwbrk/u8-wordbreaks.c: New file.
17201         * lib/uniwbrk/u-wordbreaks.h: New file.
17202
17203         New module 'uniwbrk/table'.
17204         * modules/uniwbrk/table: New file.
17205         * lib/uniwbrk/wbrktable.h: New file.
17206         * lib/uniwbrk/wbrktable.c: New file.
17207
17208         New module 'uniwbrk/wordbreak-property'.
17209         * modules/uniwbrk/wordbreak-property: New file.
17210         * lib/uniwbrk/wordbreak-property.c: New file.
17211
17212         * lib/gen-uni-tables.c (WBP_*): New enum items.
17213         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
17214         (unicode_org_wbp): New variable.
17215         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
17216         New functions.
17217         (wbp_table): New structure.
17218         (output_wbp, output_wbrk_tables): New functions.
17219         (main): Accept additional argument. Invoke fill_org_wbp,
17220         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
17221         output_wbrk_tables.
17222         * modules/gen-uni-tables (Description): Update.
17223         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
17224         gen-uni-tables.
17225
17226         New module 'uniwbrk/base'.
17227         * modules/uniwbrk/base: New file.
17228         * lib/uniwbrk.h: New file.
17229
17230 2009-02-08  Bruno Haible  <bruno@clisp.org>
17231
17232         Update to Unicode 5.1.0.
17233         * lib/gen-uni-tables.c (is_property_alphabetic): Include
17234         U+2185..U+2188.
17235         (is_property_default_ignorable_code_point): Don't include characters
17236         of category Cc or Cs and not-a-characters.
17237         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
17238         U+0D79, U+109E, U+109F, U+A60C.
17239         * lib/unictype/bidi_of.h: Regenerated.
17240         * lib/unictype/blocks.h: Regenerated.
17241         * lib/unictype/categ_C.h: Regenerated.
17242         * lib/unictype/categ_Cf.h: Regenerated.
17243         * lib/unictype/categ_Cn.h: Regenerated.
17244         * lib/unictype/categ_L.h: Regenerated.
17245         * lib/unictype/categ_Ll.h: Regenerated.
17246         * lib/unictype/categ_Lm.h: Regenerated.
17247         * lib/unictype/categ_Lo.h: Regenerated.
17248         * lib/unictype/categ_Lu.h: Regenerated.
17249         * lib/unictype/categ_M.h: Regenerated.
17250         * lib/unictype/categ_Mc.h: Regenerated.
17251         * lib/unictype/categ_Me.h: Regenerated.
17252         * lib/unictype/categ_Mn.h: Regenerated.
17253         * lib/unictype/categ_N.h: Regenerated.
17254         * lib/unictype/categ_Nd.h: Regenerated.
17255         * lib/unictype/categ_Nl.h: Regenerated.
17256         * lib/unictype/categ_No.h: Regenerated.
17257         * lib/unictype/categ_P.h: Regenerated.
17258         * lib/unictype/categ_Pd.h: Regenerated.
17259         * lib/unictype/categ_Pe.h: Regenerated.
17260         * lib/unictype/categ_Pf.h: Regenerated.
17261         * lib/unictype/categ_Pi.h: Regenerated.
17262         * lib/unictype/categ_Po.h: Regenerated.
17263         * lib/unictype/categ_Ps.h: Regenerated.
17264         * lib/unictype/categ_S.h: Regenerated.
17265         * lib/unictype/categ_Sk.h: Regenerated.
17266         * lib/unictype/categ_Sm.h: Regenerated.
17267         * lib/unictype/categ_So.h: Regenerated.
17268         * lib/unictype/categ_of.h: Regenerated.
17269         * lib/unictype/combining.h: Regenerated.
17270         * lib/unictype/ctype_alnum.h: Regenerated.
17271         * lib/unictype/ctype_alpha.h: Regenerated.
17272         * lib/unictype/ctype_graph.h: Regenerated.
17273         * lib/unictype/ctype_lower.h: Regenerated.
17274         * lib/unictype/ctype_print.h: Regenerated.
17275         * lib/unictype/ctype_punct.h: Regenerated.
17276         * lib/unictype/ctype_upper.h: Regenerated.
17277         * lib/unictype/decdigit.h: Regenerated.
17278         * lib/unictype/digit.h: Regenerated.
17279         * lib/unictype/mirror.h: Regenerated.
17280         * lib/unictype/numeric.h: Regenerated.
17281         * lib/unictype/pr_alphabetic.h: Regenerated.
17282         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
17283         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
17284         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
17285         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
17286         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
17287         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
17288         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
17289         * lib/unictype/pr_combining.h: Regenerated.
17290         * lib/unictype/pr_dash.h: Regenerated.
17291         * lib/unictype/pr_decimal_digit.h: Regenerated.
17292         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
17293         * lib/unictype/pr_deprecated.h: Regenerated.
17294         * lib/unictype/pr_diacritic.h: Regenerated.
17295         * lib/unictype/pr_extender.h: Regenerated.
17296         * lib/unictype/pr_format_control.h: Regenerated.
17297         * lib/unictype/pr_grapheme_base.h: Regenerated.
17298         * lib/unictype/pr_grapheme_extend.h: Regenerated.
17299         * lib/unictype/pr_grapheme_link.h: Regenerated.
17300         * lib/unictype/pr_id_continue.h: Regenerated.
17301         * lib/unictype/pr_id_start.h: Regenerated.
17302         * lib/unictype/pr_ideographic.h: Regenerated.
17303         * lib/unictype/pr_ignorable_control.h: Regenerated.
17304         * lib/unictype/pr_lowercase.h: Regenerated.
17305         * lib/unictype/pr_math.h: Regenerated.
17306         * lib/unictype/pr_numeric.h: Regenerated.
17307         * lib/unictype/pr_other_alphabetic.h: Regenerated.
17308         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
17309         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
17310         * lib/unictype/pr_other_id_continue.h: Regenerated.
17311         * lib/unictype/pr_other_lowercase.h: Regenerated.
17312         * lib/unictype/pr_other_math.h: Regenerated.
17313         * lib/unictype/pr_punctuation.h: Regenerated.
17314         * lib/unictype/pr_sentence_terminal.h: Regenerated.
17315         * lib/unictype/pr_soft_dotted.h: Regenerated.
17316         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
17317         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
17318         * lib/unictype/pr_unified_ideograph.h: Regenerated.
17319         * lib/unictype/pr_uppercase.h: Regenerated.
17320         * lib/unictype/pr_xid_continue.h: Regenerated.
17321         * lib/unictype/pr_xid_start.h: Regenerated.
17322         * lib/unictype/pr_zero_width.h: Regenerated.
17323         * lib/unictype/scripts.h: Regenerated.
17324         * lib/unictype/scripts_byname.gperf: Regenerated.
17325         * lib/unictype/sy_java_ident.h: Regenerated.
17326         * lib/unilbrk/lbrkprop1.h: Regenerated.
17327         * lib/unilbrk/lbrkprop2.h: Regenerated.
17328         * tests/unictype/test-categ_C.c: Regenerated.
17329         * tests/unictype/test-categ_Cf.c: Regenerated.
17330         * tests/unictype/test-categ_Cn.c: Regenerated.
17331         * tests/unictype/test-categ_L.c: Regenerated.
17332         * tests/unictype/test-categ_Ll.c: Regenerated.
17333         * tests/unictype/test-categ_Lm.c: Regenerated.
17334         * tests/unictype/test-categ_Lo.c: Regenerated.
17335         * tests/unictype/test-categ_Lu.c: Regenerated.
17336         * tests/unictype/test-categ_M.c: Regenerated.
17337         * tests/unictype/test-categ_Mc.c: Regenerated.
17338         * tests/unictype/test-categ_Me.c: Regenerated.
17339         * tests/unictype/test-categ_Mn.c: Regenerated.
17340         * tests/unictype/test-categ_N.c: Regenerated.
17341         * tests/unictype/test-categ_Nd.c: Regenerated.
17342         * tests/unictype/test-categ_Nl.c: Regenerated.
17343         * tests/unictype/test-categ_No.c: Regenerated.
17344         * tests/unictype/test-categ_P.c: Regenerated.
17345         * tests/unictype/test-categ_Pd.c: Regenerated.
17346         * tests/unictype/test-categ_Pe.c: Regenerated.
17347         * tests/unictype/test-categ_Pf.c: Regenerated.
17348         * tests/unictype/test-categ_Pi.c: Regenerated.
17349         * tests/unictype/test-categ_Po.c: Regenerated.
17350         * tests/unictype/test-categ_Ps.c: Regenerated.
17351         * tests/unictype/test-categ_S.c: Regenerated.
17352         * tests/unictype/test-categ_Sk.c: Regenerated.
17353         * tests/unictype/test-categ_Sm.c: Regenerated.
17354         * tests/unictype/test-categ_So.c: Regenerated.
17355         * tests/unictype/test-ctype_alnum.c: Regenerated.
17356         * tests/unictype/test-ctype_alpha.c: Regenerated.
17357         * tests/unictype/test-ctype_graph.c: Regenerated.
17358         * tests/unictype/test-ctype_lower.c: Regenerated.
17359         * tests/unictype/test-ctype_print.c: Regenerated.
17360         * tests/unictype/test-ctype_punct.c: Regenerated.
17361         * tests/unictype/test-ctype_upper.c: Regenerated.
17362         * tests/unictype/test-decdigit.h: Regenerated.
17363         * tests/unictype/test-digit.h: Regenerated.
17364         * tests/unictype/test-numeric.h: Regenerated.
17365         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17366         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17367         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17368         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17369         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17370         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17371         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17372         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17373         * tests/unictype/test-pr_combining.c: Regenerated.
17374         * tests/unictype/test-pr_dash.c: Regenerated.
17375         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17376         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17377         * tests/unictype/test-pr_deprecated.c: Regenerated.
17378         * tests/unictype/test-pr_diacritic.c: Regenerated.
17379         * tests/unictype/test-pr_extender.c: Regenerated.
17380         * tests/unictype/test-pr_format_control.c: Regenerated.
17381         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17382         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17383         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17384         * tests/unictype/test-pr_id_continue.c: Regenerated.
17385         * tests/unictype/test-pr_id_start.c: Regenerated.
17386         * tests/unictype/test-pr_ideographic.c: Regenerated.
17387         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17388         * tests/unictype/test-pr_lowercase.c: Regenerated.
17389         * tests/unictype/test-pr_math.c: Regenerated.
17390         * tests/unictype/test-pr_numeric.c: Regenerated.
17391         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17392         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17393         Regenerated.
17394         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17395         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17396         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17397         * tests/unictype/test-pr_other_math.c: Regenerated.
17398         * tests/unictype/test-pr_punctuation.c: Regenerated.
17399         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17400         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17401         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17402         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17403         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17404         * tests/unictype/test-pr_uppercase.c: Regenerated.
17405         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17406         * tests/unictype/test-pr_xid_start.c: Regenerated.
17407         * tests/unictype/test-pr_zero_width.c: Regenerated.
17408
17409         Update to Unicode 5.1.0.
17410         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17411         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17412         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17413         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17414         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17415         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17416         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17417         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17418         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17419         (nonspacing_table_ind): Update.
17420         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17421
17422         Update to Unicode 5.1.0.
17423         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17424         code transform.
17425         * lib/uniname/uniname.c (unicode_character_name,
17426         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17427         * lib/uniname/uninames.h: Regenerated.
17428         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17429
17430 2009-02-07  Bruno Haible  <bruno@clisp.org>
17431
17432         Merge gen-ctype and gen-lbrk into a single program.
17433         * lib/gen-uni-tables.c: New file, incorporating
17434         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17435         Add directory prefixes to the names of the generated files.
17436         * lib/unictype/gen-ctype.c: Remove file.
17437         * lib/unilbrk/gen-lbrk.c: Remove file.
17438         * modules/gen-uni-tables: New file.
17439         * modules/unictype/gen-ctype: Remove file.
17440         * modules/unilbrk/gen-lbrk: Remove file.
17441
17442 2009-02-07  Bruno Haible  <bruno@clisp.org>
17443
17444         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17445
17446         New module 'unistr/u32-strcoll'.
17447         * modules/unistr/u32-strcoll: New file.
17448         * lib/unistr/u32-strcoll.c: New file.
17449
17450         New module 'unistr/u16-strcoll'.
17451         * modules/unistr/u16-strcoll: New file.
17452         * lib/unistr/u16-strcoll.c: New file.
17453
17454         New module 'unistr/u8-strcoll'.
17455         * modules/unistr/u8-strcoll: New file.
17456         * lib/unistr/u8-strcoll.c: New file.
17457         * lib/unistr/u-strcoll.h: New file.
17458
17459 2009-02-07  Bruno Haible  <bruno@clisp.org>
17460
17461         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17462         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17463         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17464         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17465         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17466         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17467
17468 2009-02-07  Bruno Haible  <bruno@clisp.org>
17469
17470         Make 64-bit clean.
17471         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17472         output_combclass, output_bidi_category, output_decimal_digit,
17473         output_digit, output_numeric, output_mirror, output_scripts,
17474         output_ident_category): Use proper width specifier in format strings.
17475
17476 2009-02-07  Bruno Haible  <bruno@clisp.org>
17477
17478         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17479         failure behaviour.
17480
17481 2009-02-07  Jim Meyering  <meyering@redhat.com>
17482
17483         regex: avoid compilation failure with upcoming gcc-4.4
17484         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17485         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17486         "... error: integer overflow in preprocessor expression".
17487
17488 2009-02-05  Ben Pfaff  <blp@gnu.org>
17489
17490         Fix link errors on Windows when close module is used.
17491         * modules/close: Add $(LIB_CLOSE) to Link section.
17492         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17493         $(LIB_CLOSE) on Windows.
17494
17495 2009-02-05  Jim Meyering  <meyering@redhat.com>
17496
17497         still avoid unused-parameter warnings, but do it cleanly
17498         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17499         (get_fs_usage): Cast to void instead.
17500         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17501         (dev_from_mount_options, read_file_system_list): Cast to void.
17502         Prompted by Bruno Haible.
17503
17504 2009-02-04  Jim Meyering  <meyering@redhat.com>
17505
17506         fsusage.c: correct copyright year
17507         * lib/fsusage.c: Reflect year in which the change is pushed into
17508
17509         avoid misc. warnings
17510         * lib/fsusage.c (UNUSED_PARAM): Define.
17511         (get_fs_usage): Mark parameter "disk" as unused.
17512         * lib/getugroups.c (getgrent): Use "void" in prototype.
17513         * lib/mountlist.c: Mark unused parameters.
17514         (read_file_system_list): Declare a local with "const".
17515         * lib/nanosleep.c (getnow): Declare static.
17516         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17517
17518         dirfd: set errno upon failure
17519         * lib/dirfd.c: Include <errno.h>.
17520         Set errno to ENOTSUP when returning -1.
17521         * modules/dirfd (Depends-on): Add errno.
17522         Suggested by John Kodis <kodis@comcast.net>.
17523
17524 2009-02-01  Bruno Haible  <bruno@clisp.org>
17525
17526         Don't assume sizeof (long) >= sizeof (void *).
17527         * lib/memcmp.c: Include stdint.h.
17528         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17529         srcp2 to 'const byte *'.
17530         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17531         types to uintptr_t.
17532         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17533         * modules/memcmp (Depends-on): Add stdint.
17534         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17535
17536 2009-01-30  Eric Blake  <ebb9@byu.net>
17537
17538         fix more require-before-expand issues
17539         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17540         expand, AC_PROG_AWK.
17541         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17542
17543 2009-01-28  Eric Blake  <ebb9@byu.net>
17544
17545         version-etc: use consistent URL formatting
17546         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17547         Improve formatting.  Use fputs for string without %.
17548
17549 2009-01-28  Jim Meyering  <meyering@redhat.com>
17550
17551         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17552         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17553         "underquoted definition of NAME" from autoconf-2.59.
17554
17555 2009-01-28  Bruno Haible  <bruno@clisp.org>
17556
17557         * doc/gnulib.texi: Add "Obsolete modules" to index.
17558
17559 2009-01-28  Jim Meyering  <meyering@redhat.com>
17560
17561         useless-if-before-free: recognize more variants
17562         * build-aux/useless-if-before-free: Also recognize e.g.,
17563         if (NULL != p) free (p);
17564
17565 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17566
17567         test-getaddrinfo: skip (don't fail) this test when there's no network
17568         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17569         on the presumption that it means you lack network access.
17570
17571 2009-01-26  Jim Meyering  <meyering@redhat.com>
17572
17573         fflush: avoid warnings on modern systems
17574         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17575         pos and result, into scopes where they're used.
17576
17577 2009-01-26  Eric Blake  <ebb9@byu.net>
17578
17579         Silence warning reintroduced by recent extensions patch.
17580         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17581         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17582         autoconf.
17583
17584         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17585         * m4/00gnulib.m4: New file.
17586         * gnulib-tool (func_get_filelist): Always use it.
17587         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17588         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17589
17590 2009-01-25  Bruno Haible  <bruno@clisp.org>
17591
17592         Make test-quotearg work on MacOS X and AIX.
17593         * tests/test-quotearg.sh: New file.
17594         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17595         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17596         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17597         include <libintl.h>.
17598         (fake_locale): Remove variable.
17599         (gettext, dgettext, dcgettext): Remove functions.
17600         (main): Instead of setting a fake locale, set a real locale. Call
17601         textdomain and bindtextdomain.
17602         * modules/quotearg-tests (Files): Add the new files.
17603         (Depends-on): Add gettext, setenv, unsetenv.
17604         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17605         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17606         Augment TESTS_ENVIRONMENT.
17607
17608 2009-01-25  Bruno Haible  <bruno@clisp.org>
17609
17610         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17611         fr_FR.ISO8859-1 locale on MacOS X.
17612         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17613         ja_JP.eucJP locale on MacOS X.
17614         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17615         zh_CN.GB18030 locale on MacOS X.
17616
17617 2009-01-25  Bruno Haible  <bruno@clisp.org>
17618
17619         Avoid link errors on MacOS X 10.3.
17620         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17621         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17622
17623 2009-01-25  Bruno Haible  <bruno@clisp.org>
17624
17625         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17626         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17627         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17628         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17629         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17630         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17631         posix_spawnattr_init, posix_spawnattr_setsigmask,
17632         posix_spawnattr_setflags, posix_spawnattr_destroy.
17633
17634         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17635         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17636         * modules/execute (Files): Remove m4/posix_spawn.m4.
17637         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17638         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17639         posix_spawnattr_init, posix_spawnattr_setsigmask,
17640         posix_spawnattr_setflags, posix_spawnattr_destroy.
17641
17642 2009-01-25  Bruno Haible  <bruno@clisp.org>
17643
17644         * lib/glthread/threadlib.c: Include <stdlib.h>.
17645
17646 2009-01-25  Bruno Haible  <bruno@clisp.org>
17647
17648         * lib/glthread/threadlib.c (dummy): New declaration.
17649
17650 2009-01-25  Bruno Haible  <bruno@clisp.org>
17651
17652         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17653         multibyte characters also for the GB18030 encoding. Don't crash when
17654         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17655
17656 2009-01-25  Bruno Haible  <bruno@clisp.org>
17657
17658         Avoid redefining 'struct random_data' on OSF/1 5.1.
17659         * lib/stdlib.in.h: Include <random.h> if it exists.
17660         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17661         HAVE_RANDOM_H. Include <random.h> when testing whether
17662         'struct random_data' exists.
17663         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17664
17665 2009-01-25  Bruno Haible  <bruno@clisp.org>
17666
17667         Don't install charset.alias on MacOS X >= 10.3.
17668         * lib/localcharset.c (DARWIN7): New macro.
17669         (get_charset_aliases): Hardcode the result for Darwin7.
17670         * modules/localcharset (install-exec-local): Don't install
17671         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17672
17673 2009-01-25  Bruno Haible  <bruno@clisp.org>
17674
17675         Don't install charset.alias on mingw and Cygwin.
17676         * modules/localcharset (install-exec-local): Don't install
17677         charset.alias on mingw and Cygwin, if the file does not yet exist.
17678         The result for these platforms is hardcoded in localcharset.c.
17679
17680 2009-01-25  Bruno Haible  <bruno@clisp.org>
17681
17682         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17683         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17684         before requiring AC_USE_SYSTEM_EXTENSIONS.
17685
17686 2009-01-25  Jim Meyering  <meyering@redhat.com>
17687
17688         c-strtod: avoid warnings
17689         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17690         "assignment discards qualifiers from pointer target type" warnings.
17691
17692 2009-01-24  Bruno Haible  <bruno@clisp.org>
17693
17694         Add support for non-UTF-8 locales on MacOS X.
17695         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17696         canonical encodings. For Darwin 7 and newer, don't map traditional
17697         encodings to UTF-8.
17698         Reported by Vincent Lefevre <vincent@vinc17.org>
17699         at <http://savannah.gnu.org/bugs/?25235>.
17700
17701 2009-01-24  Bruno Haible  <bruno@clisp.org>
17702
17703         * doc/gnulib.texi (Obsolete modules): New section.
17704         Reported by Mike Frysinger <vapier@gentoo.org>.
17705
17706 2009-01-24  Bruno Haible  <bruno@clisp.org>
17707
17708         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17709         (%.dvi): New rule.
17710
17711 2009-01-24  Bruno Haible  <bruno@clisp.org>
17712
17713         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17714         Reported by Eric Blake.
17715
17716 2009-01-24  Bruno Haible  <bruno@clisp.org>
17717
17718         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17719         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17720         Reported by Gary V. Vaughan <gary@gnu.org>.
17721
17722 2009-01-24  Bruno Haible  <bruno@clisp.org>
17723
17724         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17725
17726 2009-01-23  Bruno Haible  <bruno@clisp.org>
17727
17728         Make c-strtod, c-strtold usable in libraries.
17729         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17730         (C_STRTOD): Call strdup instead of xstrdup.
17731         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17732         * modules/c-strtold (Depends-on): Likewise.
17733         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17734         * NEWS: Mention the change.
17735         Reported by Michael Gold <mgold@ncf.ca>.
17736
17737 2009-01-23  Jim Meyering  <meyering@redhat.com>
17738
17739         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17740         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17741         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17742
17743 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17744
17745         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17746         GNU CoreUtils.
17747         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17748         * modules/version-etc (Description): Update.
17749
17750 2009-01-22  Bruno Haible  <bruno@clisp.org>
17751
17752         Cache the C locale object.
17753         * lib/c-strtod.c (c_locale_cache): New variable.
17754         (c_locale): New function.
17755         (C_STRTOD): Use it, and don't call freelocale.
17756         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17757         Suggested by Paolo Bonzini.
17758
17759 2009-01-21  Bruno Haible  <bruno@clisp.org>
17760
17761         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17762         conditions other than overflow.
17763
17764 2009-01-21  Bruno Haible  <bruno@clisp.org>
17765
17766         * lib/c-strtod.c: Include errno.h.
17767         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17768         value from STRTOD_L and STRTOD.
17769
17770 2009-01-21  Bruno Haible  <bruno@clisp.org>
17771         and Jim Meyering  <meyering@redhat.com>
17772
17773         nanosleep: skip configure test (fail it) for apple universal builds
17774         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17775         universal builds, assume that nanosleep does not work.
17776         * modules/nanosleep (Depends-on): Add multiarch.
17777
17778         mktime: skip configure test (fail it) for apple universal builds
17779         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17780         universal builds, assume that mktime does not work.
17781         * modules/mktime (Depends-on): Add multiarch.
17782
17783 2009-01-21  Eric Blake  <ebb9@byu.net>
17784
17785         multiarch: avoid expand-before-require warning
17786         * modules/multiarch (configure.ac): Require, rather than expand,
17787         gl_MULTIARCH.
17788         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17789         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17790         enforce that all clients require it.  Partial reversion of
17791         2008-12-29 patch.
17792
17793         error: avoid expand-before-require warning
17794         * modules/errno (configure.ac): Require, rather than expand,
17795         gl_HEADER_ERRNO_H.
17796         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17797         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17798         enforce that all clients require it.
17799
17800         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17801         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17802         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17803         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17804
17805 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17806
17807         Revert:
17808         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17809
17810         regex: do not depend on obsolete modules.
17811         * modules/regex: Remove memcmp and memmove.
17812
17813 2009-01-20  Bruno Haible  <bruno@clisp.org>
17814
17815         Make the 'link' module link on Windows NT 4.
17816         * lib/link.c (_WIN32_WINNT): Don't define.
17817         (CreateHardLinkFuncType): New type.
17818         (CreateHardLinkFunc, initialized): New variables.
17819         (initialize): New function.
17820         (link): Invoke CreateHardLink indirectly through the function pointer.
17821
17822 2009-01-20  Bruno Haible  <bruno@clisp.org>
17823
17824         Fix compilation failure on mingw.
17825         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17826
17827 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17828
17829         * doc/c-strtod.texi: Mention a couple of restrictions.
17830
17831 2009-01-20  Jim Meyering  <meyering@redhat.com>
17832
17833         gettimeofday: move more declarations out of functions
17834         * lib/gettimeofday.c: Move extern declarations of tzset and
17835         gmtime out of containing functions.  Prompted by Bruno Haible.
17836
17837 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17838
17839         regex: do not depend on obsolete modules.
17840         * modules/regex: Remove memcmp and memmove.
17841
17842 2009-01-19  Bruno Haible  <bruno@clisp.org>
17843
17844         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17845         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17846         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17847         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17848         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17849
17850 2009-01-19  Bruno Haible  <bruno@clisp.org>
17851
17852         * tests/test-link.c: Include <errno.h>.
17853         (main): Exit with code 77 when a hard link cannot be created due to
17854         the file system.
17855         * tests/test-link.sh: Skip test when a hard link cannot be created due
17856         to the file system.
17857         Suggested by Eric Blake.
17858
17859 2009-01-19  Martin Lambers  <marlam@marlam.de>
17860
17861         * modules/link-tests: New file.
17862         * tests/test-link.sh: New file.
17863         * tests/test-link.c: New file.
17864
17865 2009-01-19  Eric Blake  <ebb9@byu.net>
17866
17867         doc: mention another function added in cygwin 1.7.0
17868         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17869         Another new function in cygwin 1.7.
17870
17871 2009-01-19  Bruno Haible  <bruno@clisp.org>
17872
17873         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17874         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17875         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17876         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17877         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17878         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17879         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17880         * m4/md4.m4 (gl_MD4): Likewise.
17881         * m4/md5.m4 (gl_MD5): Likewise.
17882         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17883         * m4/sha1.m4 (gl_SHA1): Likewise.
17884         * m4/sha256.m4 (gl_SHA256): Likewise.
17885         * m4/sha512.m4 (gl_SHA512): Likewise.
17886
17887 2009-01-19  Bruno Haible  <bruno@clisp.org>
17888
17889         * modules/uniname/uniname-tests (Depends-on): Add progname.
17890         * tests/uniname/test-uninames.c: Include progname.h.
17891         (main): Call set_program_name.
17892
17893         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17894         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17895         (main): Call set_program_name.
17896
17897         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17898         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17899         (main): Call set_program_name.
17900
17901         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17902         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17903         (main): Call set_program_name.
17904
17905         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17906         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17907         (main): Call set_program_name.
17908
17909         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17910         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17911         (main): Call set_program_name.
17912
17913         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17914         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17915         (main): Call set_program_name.
17916
17917         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17918         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17919         (main): Call set_program_name.
17920
17921         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17922         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17923         (main): Call set_program_name.
17924
17925 2009-01-19  Eric Blake  <ebb9@byu.net>
17926
17927         test-unistd: test previous patch
17928         * tests/test-unistd.c: Test *_FILENO macros.
17929
17930         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17931         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17932         Guarantee a definition.
17933         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17934         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17935         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17936         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17937         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17938         Likewise.
17939         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17940         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17941         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17942         Likewise.
17943         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17944         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17945         (STDERR_FILENO): Likewise.
17946         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17947         (STDERR_FILENO): Likewise.
17948         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17949         (STDERR_FILENO): Likewise.
17950         Reported by Elbert Pol.
17951
17952 2009-01-19  Eric Blake  <ebb9@byu.net>
17953
17954         doc: mention more functions added in cygwin 1.7.0
17955         * doc/posix-functions/abort.texi (abort): Update wording related
17956         to cygwin.
17957         * doc/posix-functions/daylight.texi (daylight): Likewise.
17958         * doc/posix-functions/optarg.texi (optarg): Likewise.
17959         * doc/posix-functions/optarg.texi (opterr): Likewise.
17960         * doc/posix-functions/optarg.texi (optind): Likewise.
17961         * doc/posix-functions/optarg.texi (optopt): Likewise.
17962         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17963         worked in 1.5.x, and was withdrawn in 1.7.
17964         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17965         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17966         cygwin versions.
17967         * doc/posix-functions/perror.texi (perror): Likewise.
17968         * doc/posix-functions/printf.texi (printf): Likewise.
17969         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17970         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17971         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17972         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17973         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17974         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17975         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17976         Likewise.
17977         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17978         Likewise.
17979         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17980         this function.
17981         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17982         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17983         Likewise.
17984         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17985         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17986         * doc/posix-functions/confstr.texi (confstr): Likewise.
17987         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17988         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17989         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17990         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17991         * doc/posix-functions/fputws.texi (fputws): Likewise.
17992         * doc/posix-functions/fwide.texi (fwide): Likewise.
17993         * doc/posix-functions/getwc.texi (getwc): Likewise.
17994         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17995         * doc/posix-functions/putwc.texi (putwc): Likewise.
17996         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17997         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17998         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17999         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18000         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
18001         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
18002         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
18003         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
18004         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
18005         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
18006         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
18007
18008 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
18009
18010         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
18011         * lib/ioctl.c: Include <sys/ioctl.h>.
18012
18013 2009-01-19  Simon Josefsson  <simon@josefsson.org>
18014
18015         * modules/getdate-tests (Depends-on): Add progname.
18016         * tests/test-getdate.c: Use progname module, to avoid link errors
18017         on non-glibc systems.
18018
18019 2009-01-18  Simon Josefsson  <simon@josefsson.org>
18020
18021         * modules/filenamecat-tests (Depends-on): Add progname.
18022         * modules/fstrcmp-tests (Depends-on): Likewise.
18023
18024         * tests/test-filenamecat.c: Use progname module, to avoid link
18025         errors on non-glibc systems.
18026         * tests/test-fstrcmp.c: Likewise.
18027
18028 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
18029
18030         gettimeofday: avoid warning: nested extern declaration of 'localtime'
18031         * lib/gettimeofday.c: Move extern declaration out of function.
18032
18033 2009-01-18  Bruno Haible  <bruno@clisp.org>
18034
18035         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
18036         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
18037         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
18038
18039 2009-01-18  Bruno Haible  <bruno@clisp.org>
18040
18041         * lib/strftime.c (MEMPCPY): Remove unused macro.
18042         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
18043
18044 2009-01-18  Martin Lambers  <marlam@marlam.de>
18045
18046         New module 'link'.
18047         * lib/unistd.in.h (link): New declaration.
18048         * lib/link.c: New file.
18049         * m4/link.m4: New file.
18050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
18051         HAVE_LINK.
18052         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
18053         * modules/link: New file.
18054         * doc/posix-functions/link.texi: Mention the new module.
18055
18056 2009-01-18  Bruno Haible  <bruno@clisp.org>
18057
18058         * tests/test-avltree_list.c (main): Call set_program_name.
18059         * tests/test-avltree_oset.c (main): Likewise.
18060         * tests/test-obstack-printf.c: Include progname.h.
18061         (main): Call set_program_name.
18062         * tests/test-quotearg.c: Include progname.h.
18063         (main): Call set_program_name.
18064         * tests/test-xmemdup0.c: Include progname.h.
18065         (main): Call set_program_name.
18066
18067 2009-01-18  Bruno Haible  <bruno@clisp.org>
18068
18069         New module 'alphasort'.
18070         * lib/dirent.in.h (alphasort): New declaration.
18071         * lib/alphasort.c: New file, from glibc with modifications.
18072         * m4/alphasort.m4: New file.
18073         * modules/alphasort: New file.
18074         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
18075         HAVE_ALPHASORT.
18076         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
18077         HAVE_ALPHASORT.
18078         * doc/posix-functions/alphasort.texi: Mention the new module and the
18079         portability problems.
18080
18081 2009-01-18  Bruno Haible  <bruno@clisp.org>
18082
18083         New module 'scandir'.
18084         * lib/dirent.in.h (scandir): New declaration.
18085         * lib/scandir.c: New file, from glibc with modifications.
18086         * m4/scandir.m4: New file.
18087         * modules/scandir: New file.
18088         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
18089         HAVE_SCANDIR.
18090         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
18091         HAVE_SCANDIR.
18092         * doc/posix-functions/scandir.texi: Mention the new module and the
18093         portability problems.
18094
18095 2009-01-17  Bruno Haible  <bruno@clisp.org>
18096
18097         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
18098         Update documentation.
18099         (func_remove_suffix): Escape all dots in the suffix. Update
18100         documentation.
18101         (func_filter_filelist): Update documentation.
18102         Reported by Ralf Wildenhues.
18103
18104 2009-01-17  Bruno Haible  <bruno@clisp.org>
18105
18106         * modules/dprintf-posix-tests: New file.
18107         * tests/test-dprintf-posix.sh: New file.
18108         * tests/test-dprintf-posix.c: New file.
18109
18110         New modules 'dprintf', 'dprintf-posix'.
18111         * lib/stdio.in.h (dprintf): New declaration.
18112         * lib/dprintf.c: New file.
18113         * m4/dprintf.m4: New file.
18114         * m4/dprintf-posix.m4: New file.
18115         * modules/dprintf: New file.
18116         * modules/dprintf-posix: New file.
18117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
18118         HAVE_DPRINTF, REPLACE_DPRINTF.
18119         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
18120         HAVE_DPRINTF, REPLACE_DPRINTF.
18121         * doc/posix-functions/dprintf.texi: Mention the new modules.
18122
18123 2009-01-17  Bruno Haible  <bruno@clisp.org>
18124
18125         * modules/vdprintf-posix-tests: New file.
18126         * tests/test-vdprintf-posix.sh: New file.
18127         * tests/test-vdprintf-posix.c: New file.
18128
18129         New modules 'vdprintf', 'vdprintf-posix'.
18130         * lib/stdio.in.h (vdprintf): New declaration.
18131         * lib/vdprintf.c: New file.
18132         * m4/vdprintf.m4: New file.
18133         * m4/vdprintf-posix.m4: New file.
18134         * modules/vdprintf: New file.
18135         * modules/vdprintf-posix: New file.
18136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
18137         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18138         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
18139         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18140         * doc/posix-functions/vdprintf.texi: Mention the new modules.
18141
18142 2009-01-17  Bruno Haible  <bruno@clisp.org>
18143
18144         Fix replacement of fopen on mingw.
18145         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
18146         mingw.
18147
18148 2009-01-17  Bruno Haible  <bruno@clisp.org>
18149
18150         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
18151         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
18152
18153 2009-01-17  Bruno Haible  <bruno@clisp.org>
18154
18155         Avoid test-fflush2.sh failure on mingw.
18156         * tests/test-fflush2.c: Include binary-io.h.
18157         (main): Put standard input into binary mode.
18158         * modules/fflush-tests (Depends-on): Add binary-io.
18159
18160 2009-01-17  Bruno Haible  <bruno@clisp.org>
18161
18162         * lib/wchar.in.h: In another particular situation, include only the
18163         system's <wchar.h> file.
18164         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
18165         Reported by Albert Chin-A-Young <china@thewrittenword.com>
18166         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
18167
18168 2009-01-17  Bruno Haible  <bruno@clisp.org>
18169
18170         Support for stripping executables in --enable-relocatable.
18171         * build-aux/install-reloc: Expect one more argument, or an environment
18172         variable RELOC_STRIP_PROG. If set, strip the destination program and
18173         its wrapper.
18174         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
18175         RELOC_STRIP_PROG.
18176         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
18177         to set RELOCATABLE_STRIP.
18178         * NEWS: Mention the new Makefile requirement.
18179
18180 2009-01-17  Bruno Haible  <bruno@clisp.org>
18181
18182         * build-aux/install-reloc: Remove debugging information left over by
18183         C compiler on MacOS X.
18184
18185 2009-01-17  Bruno Haible  <bruno@clisp.org>
18186
18187         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
18188         * lib/progreloc.c (find_executable): Fix type of pointer passed to
18189         _NSGetExecutablePath.
18190
18191 2009-01-16  Jim Meyering  <meyering@redhat.com>
18192
18193         strerror: avoid warnings about discarding "const"
18194         * lib/strerror.c (rpl_strerror): Instead of returning a const
18195         string from each and every "case", use a variable, and add a single
18196         cast after the switch.
18197
18198 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
18199
18200         * lib/arpa_inet.in.h: Add extern "C" block for C++.
18201
18202 2009-01-16  Bruno Haible  <bruno@clisp.org>
18203
18204         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
18205         array initializer syntax that also works in C++ mode.
18206         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18207
18208 2009-01-16  Jim Meyering  <meyering@redhat.com>
18209
18210         poll: suppress a warning
18211         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
18212         to ignore "...unsigned expression < 0 is always false" warnings.
18213
18214 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
18215
18216         poll: remove declarations of unused variables
18217         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
18218         sockbuf and optlen.
18219
18220 2009-01-15  Bruno Haible  <bruno@clisp.org>
18221
18222         Make fflush-after-ungetc POSIX compliant on BSD systems.
18223         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
18224         (clear_ungetc_buffer): Implement also for other systems.
18225         (rpl_fflush): On glibc systems, invoke
18226         clear_ungetc_buffer_preserving_position. Otherwise, invoke
18227         clear_ungetc_buffer after fetching the stream's position, not before.
18228
18229 2009-01-15  Bruno Haible  <bruno@clisp.org>
18230
18231         Make fflush-after-ungetc POSIX compliant on glibc systems.
18232         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
18233         after ungetc.
18234         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
18235         (rpl_fflush): On glibc systems, simply call the system's fflush
18236         function after clearing the ungetc buffer.
18237         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
18238         Instead, lseek only to the end of file, then use the system's fseeko
18239         for the rest. On glibc systems, reset the EOF indicator bit.
18240
18241 2009-01-15  Jim Meyering  <meyering@redhat.com>
18242
18243         openmp.m4: revert quote-adding change, for portability to older autoconf
18244         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
18245         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
18246         Simon Josefsson noticed the problem when using autoconf-2.61.
18247
18248 2009-01-15  Bruno Haible  <bruno@clisp.org>
18249
18250         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
18251         * tests/test-fflush2.c (ASSERT): Always fail.
18252         (main): Add two tests for fflush() after ungetc(), taking into account
18253         the Austin Group's clarification.
18254         Suggested by Eric Blake.
18255
18256 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
18257
18258         mktime.m4: remove K&R-style function prototypes
18259         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
18260         for the Sun C++ compiler.
18261
18262 2009-01-14  Bruno Haible  <bruno@clisp.org>
18263
18264         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
18265         while including <wchar.h>.
18266         * lib/wchar.in.h: In two particular situations on HP-UX, include only
18267         the system's <wchar.h> file.
18268         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18269
18270 2009-01-14  Bruno Haible  <bruno@clisp.org>
18271
18272         * m4/csharp.m4: Don't mention gettext on the serial number line.
18273         * m4/csharpexec.m4: Likewise.
18274         * m4/eaccess.m4: Likewise.
18275         * m4/javaexec.m4: Likewise.
18276         * m4/sig_atomic_t.m4: Likewise.
18277         * m4/tmpdir.m4: Likewise.
18278         * m4/intldir.m4: Bump gettext version.
18279         * m4/lib-ld.m4: Likewise.
18280
18281 2009-01-14  Bruno Haible  <bruno@clisp.org>
18282
18283         * lib/progname.c (set_program_name): Add more comments.
18284         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18285
18286 2009-01-14  Simon Josefsson  <simon@josefsson.org>
18287
18288         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
18289         were sys/stat.h does not define it.
18290
18291 2009-01-14  Jim Meyering  <meyering@redhat.com>
18292
18293         many *.m4 files: improve m4 quoting
18294         99% of this change was performed by running the following commands:
18295         git ls-files | grep '\.m4$' | xargs perl -pi \
18296           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
18297           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18298           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18299           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
18300         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
18301         The remainder were to add Copyright dates, increment serial numbers,
18302         undo some changes in comments, exclude m4/intl.m4, and add quotes
18303         around the "1" in ",1" where the unusual spacing prohibited the
18304         above regexps from doing the job.  For more details, see
18305         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
18306         * m4/acl.m4: Modified.
18307         * m4/afs.m4: Likewise.
18308         * m4/alloca.m4: Likewise.
18309         * m4/argp.m4: Likewise.
18310         * m4/argz.m4: Likewise.
18311         * m4/atexit.m4: Likewise.
18312         * m4/bison-i18n.m4: Likewise.
18313         * m4/bison.m4: Likewise.
18314         * m4/byteswap.m4: Likewise.
18315         * m4/c-stack.m4: Likewise.
18316         * m4/c-strtod.m4: Likewise.
18317         * m4/calloc.m4: Likewise.
18318         * m4/canonicalize-lgpl.m4: Likewise.
18319         * m4/chown.m4: Likewise.
18320         * m4/clock_time.m4: Likewise.
18321         * m4/codeset.m4: Likewise.
18322         * m4/copy-file.m4: Likewise.
18323         * m4/csharp.m4: Likewise.
18324         * m4/csharpcomp.m4: Likewise.
18325         * m4/csharpexec.m4: Likewise.
18326         * m4/d-ino.m4: Likewise.
18327         * m4/d-type.m4: Likewise.
18328         * m4/dirfd.m4: Likewise.
18329         * m4/double-slash-root.m4: Likewise.
18330         * m4/eaccess.m4: Likewise.
18331         * m4/eealloc.m4: Likewise.
18332         * m4/environ.m4: Likewise.
18333         * m4/errno_h.m4: Likewise.
18334         * m4/euidaccess.m4: Likewise.
18335         * m4/execute.m4: Likewise.
18336         * m4/fatal-signal.m4: Likewise.
18337         * m4/fchdir.m4: Likewise.
18338         * m4/fcntl_h.m4: Likewise.
18339         * m4/fileblocks.m4: Likewise.
18340         * m4/filenamecat.m4: Likewise.
18341         * m4/findprog.m4: Likewise.
18342         * m4/flexmember.m4: Likewise.
18343         * m4/fnmatch.m4: Likewise.
18344         * m4/fopen.m4: Likewise.
18345         * m4/fpending.m4: Likewise.
18346         * m4/fprintf-posix.m4: Likewise.
18347         * m4/free.m4: Likewise.
18348         * m4/frexp.m4: Likewise.
18349         * m4/frexpl.m4: Likewise.
18350         * m4/fsusage.m4: Likewise.
18351         * m4/ftruncate.m4: Likewise.
18352         * m4/gc-camellia.m4: Likewise.
18353         * m4/gc-random.m4: Likewise.
18354         * m4/gc.m4: Likewise.
18355         * m4/getaddrinfo.m4: Likewise.
18356         * m4/getcwd-abort-bug.m4: Likewise.
18357         * m4/getcwd-path-max.m4: Likewise.
18358         * m4/getdate.m4: Likewise.
18359         * m4/getdomainname.m4: Likewise.
18360         * m4/getgroups.m4: Likewise.
18361         * m4/gethostname.m4: Likewise.
18362         * m4/gethrxtime.m4: Likewise.
18363         * m4/getline.m4: Likewise.
18364         * m4/getloadavg.m4: Likewise.
18365         * m4/getndelim2.m4: Likewise.
18366         * m4/getpass.m4: Likewise.
18367         * m4/gettext.m4: Likewise.
18368         * m4/gettime.m4: Likewise.
18369         * m4/gettimeofday.m4: Likewise.
18370         * m4/gnulib-common.m4: Likewise.
18371         * m4/group-member.m4: Likewise.
18372         * m4/host-os.m4: Likewise.
18373         * m4/iconv.m4: Likewise.
18374         * m4/iconv_open.m4: Likewise.
18375         * m4/inet_ntop.m4: Likewise.
18376         * m4/inet_pton.m4: Likewise.
18377         * m4/inline.m4: Likewise.
18378         * m4/intldir.m4: Likewise.
18379         * m4/intlmacosx.m4: Likewise.
18380         * m4/intmax.m4: Likewise.
18381         * m4/intmax_t.m4: Likewise.
18382         * m4/inttypes.m4: Likewise.
18383         * m4/inttypes_h.m4: Likewise.
18384         * m4/inttypes-pri.m4: Likewise.
18385         * m4/isapipe.m4: Likewise.
18386         * m4/isnand.m4: Likewise.
18387         * m4/isnanf.m4: Likewise.
18388         * m4/isnanl.m4: Likewise.
18389         * m4/javacomp.m4: Likewise.
18390         * m4/javaexec.m4: Likewise.
18391         * m4/jm-winsz1.m4: Likewise.
18392         * m4/jm-winsz2.m4: Likewise.
18393         * m4/lchown.m4: Likewise.
18394         * m4/lcmessage.m4: Likewise.
18395         * m4/ldexpl.m4: Likewise.
18396         * m4/lib-ld.m4: Likewise.
18397         * m4/lib-link.m4: Likewise.
18398         * m4/libsigsegv.m4: Likewise.
18399         * m4/link-follow.m4: Likewise.
18400         * m4/localcharset.m4: Likewise.
18401         * m4/locale-fr.m4: Likewise.
18402         * m4/locale-ja.m4: Likewise.
18403         * m4/locale-tr.m4: Likewise.
18404         * m4/locale-zh.m4: Likewise.
18405         * m4/lock.m4: Likewise.
18406         * m4/longlong.m4: Likewise.
18407         * m4/ls-mntd-fs.m4: Likewise.
18408         * m4/lstat.m4: Likewise.
18409         * m4/malloc.m4: Likewise.
18410         * m4/mathl.m4: Likewise.
18411         * m4/mbrtowc.m4: Likewise.
18412         * m4/mbstate_t.m4: Likewise.
18413         * m4/mbswidth.m4: Likewise.
18414         * m4/memchr.m4: Likewise.
18415         * m4/memcmp.m4: Likewise.
18416         * m4/memcpy.m4: Likewise.
18417         * m4/memmem.m4: Likewise.
18418         * m4/memmove.m4: Likewise.
18419         * m4/mempcpy.m4: Likewise.
18420         * m4/memrchr.m4: Likewise.
18421         * m4/memset.m4: Likewise.
18422         * m4/minmax.m4: Likewise.
18423         * m4/mkdir-slash.m4: Likewise.
18424         * m4/mkdtemp.m4: Likewise.
18425         * m4/mktime.m4: Likewise.
18426         * m4/mmap-anon.m4: Likewise.
18427         * m4/mountlist.m4: Likewise.
18428         * m4/nanosleep.m4: Likewise.
18429         * m4/nls.m4: Likewise.
18430         * m4/nocrash.m4: Likewise.
18431         * m4/open.m4: Likewise.
18432         * m4/openat.m4: Likewise.
18433         * m4/openmp.m4: Likewise.
18434         * m4/pathmax.m4: Likewise.
18435         * m4/perl.m4: Likewise.
18436         * m4/physmem.m4: Likewise.
18437         * m4/pipe.m4: Likewise.
18438         * m4/po.m4: Likewise.
18439         * m4/poll.m4: Likewise.
18440         * m4/posixtm.m4: Likewise.
18441         * m4/posixver.m4: Likewise.
18442         * m4/printf-frexp.m4: Likewise.
18443         * m4/printf-frexpl.m4: Likewise.
18444         * m4/printf-posix.m4: Likewise.
18445         * m4/printf-posix-rpl.m4: Likewise.
18446         * m4/printf.m4: Likewise.
18447         * m4/progtest.m4: Likewise.
18448         * m4/putenv.m4: Likewise.
18449         * m4/readline.m4: Likewise.
18450         * m4/readlink.m4: Likewise.
18451         * m4/readutmp.m4: Likewise.
18452         * m4/realloc.m4: Likewise.
18453         * m4/regex.m4: Likewise.
18454         * m4/relocatable.m4: Likewise.
18455         * m4/relocatable-lib.m4: Likewise.
18456         * m4/rename-dest-slash.m4: Likewise.
18457         * m4/rename.m4: Likewise.
18458         * m4/rmdir-errno.m4: Likewise.
18459         * m4/rmdir.m4: Likewise.
18460         * m4/roundf.m4: Likewise.
18461         * m4/roundl.m4: Likewise.
18462         * m4/rpmatch.m4: Likewise.
18463         * m4/save-cwd.m4: Likewise.
18464         * m4/selinux-selinux-h.m4: Likewise.
18465         * m4/setenv.m4: Likewise.
18466         * m4/settime.m4: Likewise.
18467         * m4/sig2str.m4: Likewise.
18468         * m4/sig_atomic_t.m4: Likewise.
18469         * m4/signalblocking.m4: Likewise.
18470         * m4/signbit.m4: Likewise.
18471         * m4/sigpipe.m4: Likewise.
18472         * m4/sockets.m4: Likewise.
18473         * m4/sockpfaf.m4: Likewise.
18474         * m4/st_dm_mode.m4: Likewise.
18475         * m4/stat-time.m4: Likewise.
18476         * m4/stdbool.m4: Likewise.
18477         * m4/stdint.m4: Likewise.
18478         * m4/stdint_h.m4: Likewise.
18479         * m4/stpcpy.m4: Likewise.
18480         * m4/stpncpy.m4: Likewise.
18481         * m4/strcase.m4: Likewise.
18482         * m4/strchrnul.m4: Likewise.
18483         * m4/strcspn.m4: Likewise.
18484         * m4/strdup.m4: Likewise.
18485         * m4/strftime.m4: Likewise.
18486         * m4/strndup.m4: Likewise.
18487         * m4/strnlen.m4: Likewise.
18488         * m4/strpbrk.m4: Likewise.
18489         * m4/strptime.m4: Likewise.
18490         * m4/strsep.m4: Likewise.
18491         * m4/strtod.m4: Likewise.
18492         * m4/strtoimax.m4: Likewise.
18493         * m4/strtok_r.m4: Likewise.
18494         * m4/strtol.m4: Likewise.
18495         * m4/strtoll.m4: Likewise.
18496         * m4/strtoul.m4: Likewise.
18497         * m4/strtoull.m4: Likewise.
18498         * m4/strtoumax.m4: Likewise.
18499         * m4/strverscmp.m4: Likewise.
18500         * m4/threadlib.m4: Likewise.
18501         * m4/timegm.m4: Likewise.
18502         * m4/tm_gmtoff.m4: Likewise.
18503         * m4/tmpdir.m4: Likewise.
18504         * m4/tmpfile.m4: Likewise.
18505         * m4/tzset.m4: Likewise.
18506         * m4/uintmax_t.m4: Likewise.
18507         * m4/unlinkdir.m4: Likewise.
18508         * m4/unlocked-io.m4: Likewise.
18509         * m4/uptime.m4: Likewise.
18510         * m4/userspec.m4: Likewise.
18511         * m4/utimbuf.m4: Likewise.
18512         * m4/utime.m4: Likewise.
18513         * m4/utimes-null.m4: Likewise.
18514         * m4/utimes.m4: Likewise.
18515         * m4/vararrays.m4: Likewise.
18516         * m4/vasnprintf.m4: Likewise.
18517         * m4/vfprintf-posix.m4: Likewise.
18518         * m4/vprintf-posix.m4: Likewise.
18519         * m4/wait-process.m4: Likewise.
18520         * m4/wchar_t.m4: Likewise.
18521         * m4/wint_t.m4: Likewise.
18522         * m4/write-any-file.m4: Likewise.
18523         * m4/yield.m4: Likewise.
18524
18525 2009-01-13  Bruno Haible  <bruno@clisp.org>
18526
18527         Avoid test-copy-file.sh failures when ACL support insufficient.
18528         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18529         TESTS_ENVIRONMENT.
18530         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18531         Reported by Jim Meyering.
18532
18533 2009-01-13  Bruno Haible  <bruno@clisp.org>
18534
18535         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18536         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18537         * modules/unistdio/u8-printf-parse (Files): Likewise.
18538         * modules/unistdio/u32-printf-parse (Files): Likewise.
18539         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18540
18541 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18542
18543         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18544         and m4/inttypes_h.m4 too.
18545
18546 2009-01-12  Eric Blake  <ebb9@byu.net>
18547
18548         tests: IRIX 6.2 cc can't compile -0.0 into .data
18549         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18550         rather than at compile-time.
18551         * tests/test-floorl.c (minus_zero): Likewise.
18552         * tests/test-frexpl.c (minus_zero): Likewise.
18553         * tests/test-isnan.c (minus_zerol): Likewise.
18554         * tests/test-isnanl.h (minus_zero): Likewise.
18555         * tests/test-ldexpl.c (minus_zero): Likewise.
18556         * tests/test-roundl.c (minus_zero): Likewise.
18557         * tests/test-signbit.c (minus_zerol): Likewise.
18558         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18559         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18560         * tests/test-truncl.c (minus_zero): Likewise.
18561         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18562         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18563         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18564
18565 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18566
18567         regex: fix glibc bug 9697
18568         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18569         handling.
18570
18571 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18572
18573         regex: fix glibc bug 697
18574         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18575         being NULL also if there are no backreferences.
18576
18577 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18578
18579         regex: merge glibc changes
18580         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18581         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18582         re_string_skip_chars, re_string_reconstruct): Likewise.
18583         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18584
18585 2009-01-07  Jim Meyering  <meyering@redhat.com>
18586
18587         poll: filter through cppi
18588         * lib/poll.c: Indent cpp directives to reflect nesting.
18589
18590 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18591
18592         poll: don't return uninitialized
18593         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18594
18595 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18596
18597         avoid compile failure on AIX 6.1
18598         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18599         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18600
18601 2009-01-04  Jim Meyering  <meyering@redhat.com>
18602
18603         remove duplicate inclusion of <stdio.h>
18604         * tests/test-fprintf-posix.c: Likewise.
18605         * tests/test-printf-posix.c: Likewise.
18606         * tests/test-snprintf-posix.c: Likewise.
18607         * tests/test-sprintf-posix.c: Likewise.
18608         * tests/test-vasprintf-posix.c: Likewise.
18609         * tests/test-vfprintf-posix.c: Likewise.
18610         * tests/test-vprintf-posix.c: Likewise.
18611         * tests/test-vsnprintf-posix.c: Likewise.
18612         * tests/test-vsprintf-posix.c: Likewise.
18613
18614 2009-01-03  Jim Meyering  <meyering@redhat.com>
18615
18616         gnulib-tool: fix sed-based filtering
18617         * gnulib-tool (func_filter_filelist): Remove extra backslash
18618         in sed_fff_filter definition.
18619
18620 2009-01-02  Jim Meyering  <meyering@redhat.com>
18621
18622         strftime: avoid compilation failure on Solaris 2.6
18623         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18624         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18625         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18626         be available.  Reported by Tom G. Christensen.  Details in
18627         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18628
18629 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18630             Bruno Haible  <bruno@clisp.org>
18631
18632         Speed up gnulib-tool by doing more string processing through shell
18633         built-ins.
18634         * gnulib-tool (fast_func_append): New variable.
18635         (func_remove_prefix, func_remove_suffix): New functions.
18636         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18637         (func_filter_filelist): New function.
18638         (func_get_dependencies): Use func_remove_suffix instead of sed.
18639         (func_get_automake_snippet): Use func_filter_filelist instead of a
18640         subshell and sed invocation.
18641
18642 2009-01-01  Bruno Haible  <bruno@clisp.org>
18643
18644         Fix a security bug.
18645         * gnulib-tool (func_import, import, update): Don't allow the characters
18646         '"', '$', '`', '\' in macro arguments that become part of commands that
18647         are evaluated.
18648
18649 2009-01-01  Bruno Haible  <bruno@clisp.org>
18650
18651         * gnulib-tool (func_reset_sigpipe): Add more comments.
18652
18653 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18654
18655         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18656         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18657         already know the answer.
18658
18659 2009-01-01  Jim Meyering  <meyering@redhat.com>
18660
18661         * lib/version-etc.c (version_etc_va): Update copyright year.
18662
18663 2008-12-30  Bruno Haible  <bruno@clisp.org>
18664
18665         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18666         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18667         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18668
18669 2008-12-29  Eric Blake  <ebb9@byu.net>
18670
18671         multiarch: avoid autoconf AC_REQUIRE bug
18672         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18673         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18674         2.63 and older.
18675         Reported by Bruno Haible, and analyzed in
18676         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18677
18678 2008-12-29  Bruno Haible  <bruno@clisp.org>
18679
18680         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18681         files in subdirectories correctly.
18682         Reported by Ralf Wildenhues.
18683
18684 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18685
18686         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18687         rather than 'join FILE -', for Solaris join.
18688
18689 2008-12-29  Bruno Haible  <bruno@clisp.org>
18690
18691         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18692         quoting.
18693         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18694         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18695         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18696         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18697         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18698         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18699         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18700         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18701         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18702         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18703         * m4/nls.m4 (AM_NLS): Likewise.
18704         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18705         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18706         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18707         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18708         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18709         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18710         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18711         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18712         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18713         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18714         * m4/xsize.m4 (gl_XSIZE): Likewise.
18715         Suggested by Jim Meyering.
18716
18717 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18718
18719         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18720         * lib/parse-duration.c: use a switch instead of cascading if's.
18721
18722 2008-12-29  Eric Blake  <ebb9@byu.net>
18723
18724         wchar.h: supply WEOF on Irix 5.3
18725         * lib/wchar.in.h (wint_t): Also supply WEOF.
18726         * lib/wctype.in.h (wint_t): Likewise.
18727         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18728         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18729         Reported by Tom G. Christensen.
18730
18731 2008-12-26  Bruno Haible  <bruno@clisp.org>
18732
18733         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18734         i486, i586, i686.
18735
18736 2008-12-26  Bruno Haible  <bruno@clisp.org>
18737
18738         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18739
18740 2008-12-26  Bruno Haible  <bruno@clisp.org>
18741
18742         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18743         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18744         not __STDC_CONSTANT_MACROS.
18745         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18746
18747 2008-12-25  Bruno Haible  <bruno@clisp.org>
18748
18749         Add support for universal builds to vasnprintf.
18750         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18751         universal builds, guess no.
18752         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18753         * modules/vasprintf-posix (Depends-on): Likewise.
18754         * modules/fprintf-posix (Depends-on): Likewise.
18755         * modules/vfprintf-posix (Depends-on): Likewise.
18756         * modules/snprintf-posix (Depends-on): Likewise.
18757         * modules/vsnprintf-posix (Depends-on): Likewise.
18758         * modules/sprintf-posix (Depends-on): Likewise.
18759         * modules/vsprintf-posix (Depends-on): Likewise.
18760         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18761         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18762         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18763         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18764         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18765         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18766         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18767
18768         Add support for universal builds to <inttypes.h>.
18769         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18770         _SCNu64_PREFIX): In Apple
18771         universal builds, define directly, using _LP64.
18772         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18773         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18774         * modules/inttypes (Depends-on): Add multiarch.
18775         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18776
18777         Add support for universal builds to <stdint.h>.
18778         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18779         universal builds, define directly, using _LP64.
18780         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18781         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18782         and size_t.
18783         * modules/stdint (Depends-on): Add multiarch.
18784         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18785
18786         New module 'multiarch'.
18787         * modules/multiarch: New file.
18788         * m4/multiarch.m4: New file.
18789
18790 2008-12-25  Bruno Haible  <bruno@clisp.org>
18791
18792         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18793
18794 2008-12-25  Bruno Haible  <bruno@clisp.org>
18795
18796         * modules/btowc (License): Relicense under LGPLv2+.
18797         * modules/mbsinit (License): Likewise.
18798         * modules/mbrtowc (License): Likewise.
18799         * modules/wcrtomb (License): Likewise.
18800         * modules/streq (License): Likewise.
18801         Reported by David Lutterkort <lutter@redhat.com>.
18802
18803 2008-12-23  Bruno Haible  <bruno@clisp.org>
18804
18805         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18806
18807 2008-12-23  Bruno Haible  <bruno@clisp.org>
18808
18809         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18810         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18811         GETADDRINFO_LIB, not in LIBS.
18812         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18813         * modules/canon-host (Link): Likewise.
18814         * NEWS: Mention the change.
18815         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18816         GETADDRINFO_LIB.
18817
18818 2008-12-22  Bruno Haible  <bruno@clisp.org>
18819
18820         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18821         * doc/posix-functions/iswalpha_l.texi: Likewise.
18822         * doc/posix-functions/iswblank_l.texi: Likewise.
18823         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18824         * doc/posix-functions/iswctype_l.texi: Likewise.
18825         * doc/posix-functions/iswdigit_l.texi: Likewise.
18826         * doc/posix-functions/iswgraph_l.texi: Likewise.
18827         * doc/posix-functions/iswlower_l.texi: Likewise.
18828         * doc/posix-functions/iswprint_l.texi: Likewise.
18829         * doc/posix-functions/iswpunct_l.texi: Likewise.
18830         * doc/posix-functions/iswspace_l.texi: Likewise.
18831         * doc/posix-functions/iswupper_l.texi: Likewise.
18832         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18833         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18834         * doc/posix-functions/open_wmemstream.texi: Likewise.
18835         * doc/posix-functions/swscanf.texi: Likewise.
18836         * doc/posix-functions/towctrans_l.texi: Likewise.
18837         * doc/posix-functions/towlower.texi: Likewise.
18838         * doc/posix-functions/towlower_l.texi: Likewise.
18839         * doc/posix-functions/towupper.texi: Likewise.
18840         * doc/posix-functions/towupper_l.texi: Likewise.
18841         * doc/posix-functions/vfwprintf.texi: Likewise.
18842         * doc/posix-functions/vfwscanf.texi: Likewise.
18843         * doc/posix-functions/vswscanf.texi: Likewise.
18844         * doc/posix-functions/vwprintf.texi: Likewise.
18845         * doc/posix-functions/vwscanf.texi: Likewise.
18846         * doc/posix-functions/wcpcpy.texi: Likewise.
18847         * doc/posix-functions/wcpncpy.texi: Likewise.
18848         * doc/posix-functions/wcscasecmp.texi: Likewise.
18849         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18850         * doc/posix-functions/wcscoll_l.texi: Likewise.
18851         * doc/posix-functions/wcsdup.texi: Likewise.
18852         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18853         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18854         * doc/posix-functions/wcsnlen.texi: Likewise.
18855         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18856         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18857         * doc/posix-functions/wctrans_l.texi: Likewise.
18858         * doc/posix-functions/wctype_l.texi: Likewise.
18859         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18860         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18861         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18862         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18863         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18864         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18865         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18866         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18867         * doc/glibc-functions/wcschrnul.texi: Likewise.
18868         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18869         * doc/glibc-functions/wcstod_l.texi: Likewise.
18870         * doc/glibc-functions/wcstof_l.texi: Likewise.
18871         * doc/glibc-functions/wcstol_l.texi: Likewise.
18872         * doc/glibc-functions/wcstold_l.texi: Likewise.
18873         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18874         * doc/glibc-functions/wcstoq.texi: Likewise.
18875         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18876         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18877         * doc/glibc-functions/wcstouq.texi: Likewise.
18878         * doc/glibc-functions/wmempcpy.texi: Likewise.
18879
18880 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18881             Eric Blake  <ebb9@byu.net>
18882             Paolo Bonzini  <bonzini@gnu.org>
18883             Bruno Haible  <bruno@clisp.org>
18884
18885         Make c-stack work on Haiku.
18886         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18887         (c_stack_action): Use SA_ONSTACK flag.
18888
18889 2008-12-22  Bruno Haible  <bruno@clisp.org>
18890
18891         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18892
18893 2008-12-22  Bruno Haible  <bruno@clisp.org>
18894
18895         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18896         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18897         being overridden.
18898         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18899         New macros.
18900         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18901         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18902         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18903         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18904
18905 2008-12-22  Bruno Haible  <bruno@clisp.org>
18906
18907         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18908         from test code.
18909
18910 2008-12-22  Eric Blake  <ebb9@byu.net>
18911
18912         Avoid gcc warnings on cygwin.
18913         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18914         Avoid unused variable.
18915         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18916         Likewise.
18917
18918 2008-12-22  Bruno Haible  <bruno@clisp.org>
18919
18920         Remove HAVE_MBRTOWC conditionals.
18921         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18922         (mbscasecmp): Assume mbrtowc function.
18923         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18924         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18925         * lib/mbschr.c: Include mbuiter.h unconditionally.
18926         (mbschr): Assume mbrtowc function.
18927         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18928         (mbscspn): Assume mbrtowc function.
18929         * lib/mbslen.c: Include mbuiter.h unconditionally.
18930         (mbslen): Assume mbrtowc function.
18931         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18932         (mbsncasecmp): Assume mbrtowc function.
18933         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18934         (mbsnlen): Assume mbrtowc function.
18935         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18936         (mbspbrk): Assume mbrtowc function.
18937         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18938         (mbspcasecmp): Assume mbrtowc function.
18939         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18940         (mbsrchr): Assume mbrtowc function.
18941         * lib/mbssep.c: Include mbuiter.h unconditionally.
18942         (mbssep): Assume mbrtowc function.
18943         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18944         (mbsspn): Assume mbrtowc function.
18945         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18946         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18947         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18948         (mbstok_r): Assume mbrtowc function.
18949         * lib/propername.c: Include mbuiter.h unconditionally.
18950         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18951         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18952         (trim2): Assume mbrtowc function.
18953         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18954         (mbsnwidth): Assume mbrtowc function.
18955         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18956         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18957         fallback definitions.
18958         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18959
18960 2008-12-22  Bruno Haible  <bruno@clisp.org>
18961
18962         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18963
18964 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18965
18966         * modules/regex: Request emulations for the mb*/wc* functions we need.
18967         * m4/regex.m4: Don't look for those functions here.
18968         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18969
18970 2008-12-22  Bruno Haible  <bruno@clisp.org>
18971
18972         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18973
18974 2008-12-21  Bruno Haible  <bruno@clisp.org>
18975
18976         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18977         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18978         (Include): Remove conditionalization.
18979         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18980         (Include): Remove conditionalization.
18981         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18982         (Include): Remove conditionalization.
18983         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18984         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18985         * NEWS: Mention the change.
18986         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18987         via Sergey Poznyakoff <gray@gnu.org.ua>.
18988
18989 2008-12-21  Bruno Haible  <bruno@clisp.org>
18990
18991         * MODULES.html.sh (Extended multibyte and wide character utilities
18992         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18993         wcrtomb, wcsrtombs.
18994         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18995         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18996         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18997         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18998
18999 2008-12-21  Bruno Haible  <bruno@clisp.org>
19000
19001         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
19002
19003 2008-12-21  Bruno Haible  <bruno@clisp.org>
19004
19005         * modules/wcsnrtombs-tests: New file.
19006         * tests/test-wcsnrtombs1.sh: New file.
19007         * tests/test-wcsnrtombs2.sh: New file.
19008         * tests/test-wcsnrtombs3.sh: New file.
19009         * tests/test-wcsnrtombs4.sh: New file.
19010         * tests/test-wcsnrtombs.c: New file.
19011
19012         New module 'wcsnrtombs'.
19013         * lib/wchar.in.h (wcsnrtombs): New declaration.
19014         * lib/wcsnrtombs.c: New file.
19015         * lib/wcsrtombs-state.c: New file.
19016         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
19017         (internal_state): Remove variable.
19018         * m4/wcsnrtombs.m4: New file.
19019         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
19020         compilation units.
19021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
19022         HAVE_WCSNRTOMBS.
19023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
19024         HAVE_WCSNRTOMBS.
19025         * modules/wcsnrtombs: New file.
19026         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
19027         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
19028
19029 2008-12-21  Bruno Haible  <bruno@clisp.org>
19030
19031         * modules/wcsrtombs-tests: New file.
19032         * tests/test-wcsrtombs1.sh: New file.
19033         * tests/test-wcsrtombs2.sh: New file.
19034         * tests/test-wcsrtombs3.sh: New file.
19035         * tests/test-wcsrtombs4.sh: New file.
19036         * tests/test-wcsrtombs.c: New file.
19037
19038         New module 'wcsrtombs'.
19039         * lib/wchar.in.h (wcsrtombs): New declaration.
19040         * lib/wcsrtombs.c: New file.
19041         * m4/wcsrtombs.m4: New file.
19042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
19043         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
19044         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
19045         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
19046         * modules/wcsrtombs: New file.
19047         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
19048         bugs.
19049
19050 2008-12-21  Bruno Haible  <bruno@clisp.org>
19051
19052         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
19053         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
19054         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
19055         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
19056         if not correct.
19057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
19058         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
19059         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19060         m4/locale-zh.m4, m4/codeset.m4.
19061         * doc/posix-functions/wcrtomb.texi: Document the bug.
19062
19063 2008-12-21  Bruno Haible  <bruno@clisp.org>
19064
19065         Work around a btowc() bug on IRIX 6.5.
19066         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
19067         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
19068         REPLACE_WTOBC if not.
19069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
19070         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
19071         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
19072
19073 2008-12-21  Bruno Haible  <bruno@clisp.org>
19074
19075         * modules/wcrtomb-tests: New file.
19076         * tests/test-wcrtomb.sh: New file.
19077         * tests/test-wcrtomb.c: New file.
19078
19079         New module 'wcrtomb'.
19080         * lib/wchar.in.h (wcrtomb): New declaration.
19081         * lib/wcrtomb.c: New file.
19082         * m4/wcrtomb.m4: New file.
19083         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
19084         HAVE_WCRTOMB.
19085         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
19086         HAVE_WCRTOMB.
19087         * modules/wcrtomb: New file.
19088         * doc/posix-functions/wcrtomb.texi: Mention the new module.
19089
19090 2008-12-21  Bruno Haible  <bruno@clisp.org>
19091
19092         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
19093         * modules/mbsrtowcs (Files): Likewise.
19094         * modules/wctob (Files): Likewise.
19095         * modules/c-strcase-tests (Files): Likewise.
19096         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19097         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19098         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19099         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19100         * modules/vasnprintf-posix-tests (Files): Likewise.
19101
19102 2008-12-21  William Pursell  <bill.pursell@gmail.com>
19103
19104         gitlog-to-changelog: pass all command-line arguments to git-log
19105         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
19106         it is sometimes convenient to filter the commits in various ways.
19107         gitlog-to-changelog only allows --since to specify a start date,
19108         but git-log itself supports many other filtering mechanisms.
19109         At the moment, I want to filter by branch name.  Rather than
19110         adding a --branch option to gitlog-to-changelog, it seems more
19111         flexible to simply pass all options directly to git-log and let
19112         git do the work.  Notice that this effectively makes --since a
19113         redundant option for gitlog-to-changelog, but removing it would
19114         require current usage to change since calls would then require
19115         an additional '--'.
19116
19117 2008-12-21  Bruno Haible  <bruno@clisp.org>
19118
19119         * modules/mbsnrtowcs-tests: New file.
19120         * tests/test-mbsnrtowcs1.sh: New file.
19121         * tests/test-mbsnrtowcs2.sh: New file.
19122         * tests/test-mbsnrtowcs3.sh: New file.
19123         * tests/test-mbsnrtowcs4.sh: New file.
19124         * tests/test-mbsnrtowcs.c: New file.
19125
19126         New module 'mbsnrtowcs'.
19127         * lib/wchar.in.h (mbsnrtowcs): New declaration.
19128         * lib/mbsnrtowcs.c: New file.
19129         * lib/mbsrtowcs-state.c: New file.
19130         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
19131         (internal_state): Remove variable.
19132         * m4/mbsnrtowcs.m4: New file.
19133         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
19134         compilation units.
19135         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
19136         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19137         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
19138         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19139         * modules/mbsnrtowcs: New file.
19140         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
19141         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
19142         portability problem.
19143
19144 2008-12-21  Bruno Haible  <bruno@clisp.org>
19145
19146         Work around mbsrtowcs bug.
19147         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
19148         (gl_FUNC_MBSRTOWCS): Invoke it.
19149         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19150         m4/locale-zh.m4.
19151         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
19152
19153 2008-12-21  Bruno Haible  <bruno@clisp.org>
19154
19155         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
19156
19157 2008-12-21  Bruno Haible  <bruno@clisp.org>
19158
19159         Update doc for AIX.
19160         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
19161         16-bit wchar_t type.
19162         * doc/posix-functions/btowc.texi: Likewise.
19163         * doc/posix-functions/fgetwc.texi: Likewise.
19164         * doc/posix-functions/fgetws.texi: Likewise.
19165         * doc/posix-functions/fputwc.texi: Likewise.
19166         * doc/posix-functions/fputws.texi: Likewise.
19167         * doc/posix-functions/fwide.texi: Likewise.
19168         * doc/posix-functions/fwprintf.texi: Likewise.
19169         * doc/posix-functions/fwscanf.texi: Likewise.
19170         * doc/posix-functions/getwchar.texi: Likewise.
19171         * doc/posix-functions/getwc.texi: Likewise.
19172         * doc/posix-functions/iswalnum.texi: Likewise.
19173         * doc/posix-functions/iswalpha.texi: Likewise.
19174         * doc/posix-functions/iswblank.texi: Likewise.
19175         * doc/posix-functions/iswcntrl.texi: Likewise.
19176         * doc/posix-functions/iswctype.texi: Likewise.
19177         * doc/posix-functions/iswdigit.texi: Likewise.
19178         * doc/posix-functions/iswgraph.texi: Likewise.
19179         * doc/posix-functions/iswlower.texi: Likewise.
19180         * doc/posix-functions/iswprint.texi: Likewise.
19181         * doc/posix-functions/iswpunct.texi: Likewise.
19182         * doc/posix-functions/iswspace.texi: Likewise.
19183         * doc/posix-functions/iswupper.texi: Likewise.
19184         * doc/posix-functions/iswxdigit.texi: Likewise.
19185         * doc/posix-functions/mbrtowc.texi: Likewise.
19186         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19187         * doc/posix-functions/mbstowcs.texi: Likewise.
19188         * doc/posix-functions/mbtowc.texi: Likewise.
19189         * doc/posix-functions/putwchar.texi: Likewise.
19190         * doc/posix-functions/putwc.texi: Likewise.
19191         * doc/posix-functions/swprintf.texi: Likewise.
19192         * doc/posix-functions/tolower.texi: Likewise.
19193         * doc/posix-functions/toupper.texi: Likewise.
19194         * doc/posix-functions/towctrans.texi: Likewise.
19195         * doc/posix-functions/ungetwc.texi: Likewise.
19196         * doc/posix-functions/vswprintf.texi: Likewise.
19197         * doc/posix-functions/wcrtomb.texi: Likewise.
19198         * doc/posix-functions/wcscat.texi: Likewise.
19199         * doc/posix-functions/wcschr.texi: Likewise.
19200         * doc/posix-functions/wcscmp.texi: Likewise.
19201         * doc/posix-functions/wcscoll.texi: Likewise.
19202         * doc/posix-functions/wcscpy.texi: Likewise.
19203         * doc/posix-functions/wcscspn.texi: Likewise.
19204         * doc/posix-functions/wcsftime.texi: Likewise.
19205         * doc/posix-functions/wcslen.texi: Likewise.
19206         * doc/posix-functions/wcsncat.texi: Likewise.
19207         * doc/posix-functions/wcsncmp.texi: Likewise.
19208         * doc/posix-functions/wcsncpy.texi: Likewise.
19209         * doc/posix-functions/wcspbrk.texi: Likewise.
19210         * doc/posix-functions/wcsrchr.texi: Likewise.
19211         * doc/posix-functions/wcsrtombs.texi: Likewise.
19212         * doc/posix-functions/wcsspn.texi: Likewise.
19213         * doc/posix-functions/wcsstr.texi: Likewise.
19214         * doc/posix-functions/wcstod.texi: Likewise.
19215         * doc/posix-functions/wcstof.texi: Likewise.
19216         * doc/posix-functions/wcstoimax.texi: Likewise.
19217         * doc/posix-functions/wcstok.texi: Likewise.
19218         * doc/posix-functions/wcstold.texi: Likewise.
19219         * doc/posix-functions/wcstoll.texi: Likewise.
19220         * doc/posix-functions/wcstol.texi: Likewise.
19221         * doc/posix-functions/wcstombs.texi: Likewise.
19222         * doc/posix-functions/wcstoull.texi: Likewise.
19223         * doc/posix-functions/wcstoul.texi: Likewise.
19224         * doc/posix-functions/wcstoumax.texi: Likewise.
19225         * doc/posix-functions/wcswidth.texi: Likewise.
19226         * doc/posix-functions/wcsxfrm.texi: Likewise.
19227         * doc/posix-functions/wctob.texi: Likewise.
19228         * doc/posix-functions/wctomb.texi: Likewise.
19229         * doc/posix-functions/wctrans.texi: Likewise.
19230         * doc/posix-functions/wctype.texi: Likewise.
19231         * doc/posix-functions/wcwidth.texi: Likewise.
19232         * doc/posix-functions/wmemchr.texi: Likewise.
19233         * doc/posix-functions/wmemcmp.texi: Likewise.
19234         * doc/posix-functions/wmemcpy.texi: Likewise.
19235         * doc/posix-functions/wmemmove.texi: Likewise.
19236         * doc/posix-functions/wmemset.texi: Likewise.
19237         * doc/posix-functions/wprintf.texi: Likewise.
19238         * doc/posix-functions/wscanf.texi: Likewise.
19239
19240 2008-12-21  Bruno Haible  <bruno@clisp.org>
19241
19242         Update doc for HP-UX 11.11.
19243         * doc/posix-functions/btowc.texi: Clarify that the function is missing
19244         in HP-UX version 11.00, not in all versions of HP-UX 11.
19245         * doc/posix-functions/fwide.texi: Likewise.
19246         * doc/posix-functions/fwprintf.texi: Likewise.
19247         * doc/posix-functions/fwscanf.texi: Likewise.
19248         * doc/posix-functions/inet_ntop.texi: Likewise.
19249         * doc/posix-functions/inet_pton.texi: Likewise.
19250         * doc/posix-functions/mbrlen.texi: Likewise.
19251         * doc/posix-functions/mbrtowc.texi: Likewise.
19252         * doc/posix-functions/mbsinit.texi: Likewise.
19253         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19254         * doc/posix-functions/swprintf.texi: Likewise.
19255         * doc/posix-functions/swscanf.texi: Likewise.
19256         * doc/posix-functions/towctrans.texi: Likewise.
19257         * doc/posix-functions/vfwprintf.texi: Likewise.
19258         * doc/posix-functions/vswprintf.texi: Likewise.
19259         * doc/posix-functions/vwprintf.texi: Likewise.
19260         * doc/posix-functions/wcrtomb.texi: Likewise.
19261         * doc/posix-functions/wcsrtombs.texi: Likewise.
19262         * doc/posix-functions/wcsstr.texi: Likewise.
19263         * doc/posix-functions/wctob.texi: Likewise.
19264         * doc/posix-functions/wctrans.texi: Likewise.
19265         * doc/posix-functions/wmemchr.texi: Likewise.
19266         * doc/posix-functions/wmemcmp.texi: Likewise.
19267         * doc/posix-functions/wmemcpy.texi: Likewise.
19268         * doc/posix-functions/wmemmove.texi: Likewise.
19269         * doc/posix-functions/wmemset.texi: Likewise.
19270         * doc/posix-functions/wprintf.texi: Likewise.
19271         * doc/posix-functions/wscanf.texi: Likewise.
19272
19273 2008-12-21  Bruno Haible  <bruno@clisp.org>
19274
19275         Work around a portability problem.
19276         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
19277         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
19278
19279 2008-12-20  Bruno Haible  <bruno@clisp.org>
19280
19281         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
19282         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
19283         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
19284         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
19285         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
19286
19287         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
19288         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
19289         set.
19290         (GNULIB_defined_mbstate_t): New macro.
19291         (mbsinit): Redefine if REPLACE_MBSINIT is set.
19292         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
19293         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
19294         reuses the system's mbrtowc function but works around the bugs.
19295         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
19296         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
19297         macros.
19298         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
19299         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
19300         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
19301         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
19302         REPLACE_MBSINIT if mbsinit needs to be overridden.
19303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
19304         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19305         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
19306         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19307         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19308         m4/locale-zh.m4.
19309         (Depends): Add mbsinit.
19310         * modules/mbsinit (Depends): Add mbrtowc.
19311         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
19312
19313 2008-12-20  Bruno Haible  <bruno@clisp.org>
19314
19315         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
19316         so that there are no conversion errors on AIX.
19317         * tests/test-mbsrtowcs.c (main): LIkewise.
19318
19319 2008-12-20  Bruno Haible  <bruno@clisp.org>
19320
19321         Work around wctob bug on Solaris <= 9.
19322         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
19323         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
19324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
19325         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
19326         * modules/wctob (Files): Add m4/locale-fr.m4.
19327         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
19328
19329 2008-12-20  Bruno Haible  <bruno@clisp.org>
19330
19331         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
19332         /dev/null.
19333         * tests/test-select-in.sh: Likewise.
19334         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19335
19336 2008-12-20  Bruno Haible  <bruno@clisp.org>
19337
19338         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19339         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19340         Cygwin 1.5.x.
19341
19342 2008-12-20  Bruno Haible  <bruno@clisp.org>
19343
19344         Ensure mbstate_t is defined on HP-UX 11.11.
19345         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19346         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19347         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19348         AC_USE_SYSTEM_EXTENSIONS.
19349         * modules/fnmatch (Depends-on): Add extensions.
19350         * modules/mbrlen (Depends-on): Likewise.
19351         * modules/mbrtowc (Depends-on): Likewise.
19352         * modules/mbsinit (Depends-on): Likewise.
19353         * modules/mbsrtowcs (Depends-on): Likewise.
19354         * modules/mbswidth (Depends-on): Likewise.
19355         * modules/quotearg (Depends-on): Likewise.
19356         * modules/strftime (Depends-on): Likewise.
19357
19358 2008-12-20  Bruno Haible  <bruno@clisp.org>
19359
19360         Ensure wctob is declared on IRIX 6.5.
19361         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19362         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19363         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19365         of HAVE_WCTOB.
19366         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19367         HAVE_WCTOB.
19368         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19369
19370 2008-12-19  Bruno Haible  <bruno@clisp.org>
19371
19372         * modules/mbsrtowcs-tests: New file.
19373         * tests/test-mbsrtowcs1.sh: New file.
19374         * tests/test-mbsrtowcs2.sh: New file.
19375         * tests/test-mbsrtowcs3.sh: New file.
19376         * tests/test-mbsrtowcs4.sh: New file.
19377         * tests/test-mbsrtowcs.c: New file.
19378
19379         New module 'mbsrtowcs'.
19380         * lib/wchar.in.h (mbsrtowcs): New declaration.
19381         * lib/mbsrtowcs.c: New file.
19382         * m4/mbsrtowcs.m4: New file.
19383         * modules/mbsrtowcs: New file.
19384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19385         HAVE_MBSRTOWCS.
19386         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19387         HAVE_MBSRTOWCS.
19388         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19389
19390 2008-12-19  Bruno Haible  <bruno@clisp.org>
19391
19392         New module 'mbrlen'.
19393         * lib/wchar.in.h (mbrlen): New declaration.
19394         * lib/mbrlen.c: New file.
19395         * m4/mbrlen.m4: New file.
19396         * modules/mbrlen: New file.
19397         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19398         HAVE_MBRLEN.
19399         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19400         HAVE_MBRLEN.
19401         * doc/posix-functions/mbrlen.texi: Document the new module.
19402
19403 2008-12-19  Bruno Haible  <bruno@clisp.org>
19404
19405         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19406         * modules/mbrtowc (Depends-on): Add verify.
19407         Suggested by Paul Eggert.
19408
19409 2008-12-18  Bruno Haible  <bruno@clisp.org>
19410
19411         * modules/mbsinit-tests: New file.
19412         * tests/test-mbsinit.sh: New file.
19413         * tests/test-mbsinit.c: New file.
19414
19415 2008-12-18  Bruno Haible  <bruno@clisp.org>
19416
19417         * modules/mbrtowc-tests: New file.
19418         * tests/test-mbrtowc1.sh: New file.
19419         * tests/test-mbrtowc2.sh: New file.
19420         * tests/test-mbrtowc3.sh: New file.
19421         * tests/test-mbrtowc4.sh: New file.
19422         * tests/test-mbrtowc.c: New file.
19423
19424         New module 'mbrtowc'.
19425         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19426         mbsinit and mbrtowc.
19427         (mbrtowc): New declaration.
19428         * lib/mbrtowc.c: New file.
19429         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19430         * modules/mbrtowc: New file.
19431         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19432         HAVE_MBRTOWC.
19433         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19434         HAVE_MBRTOWC.
19435         * doc/posix-functions/mbrtowc.texi: Document the new module.
19436
19437 2008-12-18  Bruno Haible  <bruno@clisp.org>
19438
19439         New module 'wctob'.
19440         * lib/wchar.in.h (wctob): New declaration.
19441         * lib/wctob.c: New file.
19442         * m4/wctob.m4: New file.
19443         * modules/wctob: New file.
19444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19445         HAVE_WCTOB.
19446         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19447         * doc/posix-functions/wctob.texi: Document the new module.
19448
19449 2008-12-18  Bruno Haible  <bruno@clisp.org>
19450
19451         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19452         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19453
19454 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19455
19456         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19457         G. Christensen" <tgc@jupiterrise.com>.
19458
19459         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19460         G. Christensen" <tgc@jupiterrise.com>.
19461
19462         * lib/flock.c: Need to include string.h.  Reported by "Tom
19463         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19464         <ebb9@byu.net>.
19465
19466 2008-12-18  Bruno Haible  <bruno@clisp.org>
19467
19468         * m4/locale-ja.m4: New file, from GNU gettext.
19469
19470 2008-12-17  Bruno Haible  <bruno@clisp.org>
19471
19472         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19473         Suggested by Eric Blake.
19474
19475 2008-12-17  Bruno Haible  <bruno@clisp.org>
19476
19477         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19478
19479 2008-12-17  Bruno Haible  <bruno@clisp.org>
19480
19481         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19482         * modules/mbsinit (Depends-on): Add verify.
19483         Suggested by Paul Eggert.
19484
19485 2008-12-17  Bruno Haible  <bruno@clisp.org>
19486
19487         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19488         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19489         gl_FUNC_MBRTOWC.
19490         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19491         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19492         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19493         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19494         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19495         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19496         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19497         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19498         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19499         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19500         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19501         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19502         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19503         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19504         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19505         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19506         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19507         * modules/trim (configure.ac): Likewise.
19508
19509 2008-12-17  Bruno Haible  <bruno@clisp.org>
19510
19511         * modules/btowc-tests: New file.
19512         * tests/test-btowc1.sh: New file.
19513         * tests/test-btowc2.sh: New file.
19514         * tests/test-btowc.c: New file.
19515
19516         New module 'btowc'.
19517         * lib/wchar.in.h (btowc): New declaration.
19518         * lib/btowc.c: New file.
19519         * m4/btowc.m4: New file.
19520         * modules/btowc: New file.
19521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19522         HAVE_BTOWC.
19523         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19524         * doc/posix-functions/btowc.texi: Document the new module.
19525
19526 2008-12-17  Bruno Haible  <bruno@clisp.org>
19527
19528         New module 'mbsinit'.
19529         * lib/wchar.in.h (mbsinit): New declaration.
19530         * lib/mbsinit.c: New file.
19531         * m4/mbsinit.m4: New file.
19532         * modules/mbsinit: New file.
19533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19534         HAVE_MBSINIT.
19535         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19536         HAVE_MBSINIT.
19537         * doc/posix-functions/mbsinit.texi: Document the new module.
19538
19539 2008-12-16  Bruno Haible  <bruno@clisp.org>
19540
19541         * lib/unistd.in.h: Add comment.
19542         * tests/test-environ.c: Don't include <stdlib.h>.
19543
19544 2008-12-16  Bruno Haible  <bruno@clisp.org>
19545
19546         * lib/parse-duration.h (parse_duration): Document return value
19547         convention.
19548         * lib/parse-duration.c: Include specification header first. Add
19549         comments.
19550         (_): Remove macro.
19551         (parse_year_month_day, parse_hour_minute_second): Move side effects
19552         outside of strchr call.
19553         (parse_non_iso8601): Move side effects outside of isspace call.
19554         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19555         call.
19556
19557 2008-12-16  Bruno Haible  <bruno@clisp.org>
19558
19559         * tests/test-parse-duration.sh: Produce no output when the test
19560         succeeds.
19561
19562 2008-12-16  Bruno Haible  <bruno@clisp.org>
19563
19564         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19565         expressions.
19566
19567 2008-12-15  Bruno Haible  <bruno@clisp.org>
19568
19569         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19570         * doc/glibc-functions/flistxattr.texi: Likewise.
19571         * doc/glibc-functions/fopencookie.texi: Likewise.
19572         * doc/glibc-functions/fremovexattr.texi: Likewise.
19573         * doc/glibc-functions/fsetxattr.texi: Likewise.
19574         * doc/glibc-functions/getxattr.texi: Likewise.
19575         * doc/glibc-functions/lgetxattr.texi: Likewise.
19576         * doc/glibc-functions/listxattr.texi: Likewise.
19577         * doc/glibc-functions/llistxattr.texi: Likewise.
19578         * doc/glibc-functions/lremovexattr.texi: Likewise.
19579         * doc/glibc-functions/lsetxattr.texi: Likewise.
19580         * doc/glibc-functions/removexattr.texi: Likewise.
19581         * doc/glibc-functions/setxattr.texi: Likewise.
19582         * doc/posix-functions/open_memstream.texi: Likewise.
19583
19584 2008-12-15  Eric Blake  <ebb9@byu.net>
19585
19586         Update doc for cygwin 1.7.
19587         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19588         functions.
19589         * doc/posix-functions/fchmodat.texi: Likewise.
19590         * doc/posix-functions/fchownat.texi: Likewise.
19591         * doc/posix-functions/fdopendir.texi: Likewise.
19592         * doc/posix-functions/fmemopen.texi: Likewise.
19593         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19594         * doc/posix-functions/fstatat.texi: Likewise.
19595         * doc/posix-functions/futimens.texi: Likewise.
19596         * doc/posix-functions/gai_strerror.texi: Likewise.
19597         * doc/posix-functions/getaddrinfo.texi: Likewise.
19598         * doc/posix-functions/getnameinfo.texi: Likewise.
19599         * doc/posix-functions/if_freenameindex.texi: Likewise.
19600         * doc/posix-functions/if_indextoname.texi: Likewise.
19601         * doc/posix-functions/if_nameindex.texi: Likewise.
19602         * doc/posix-functions/if_nametoindex.texi: Likewise.
19603         * doc/posix-functions/insque.texi: Likewise.
19604         * doc/posix-functions/linkat.texi: Likewise.
19605         * doc/posix-functions/llrint.texi: Likewise.
19606         * doc/posix-functions/llrintf.texi: Likewise.
19607         * doc/posix-functions/llrintl.texi: Likewise.
19608         * doc/posix-functions/lockf.texi: Likewise.
19609         * doc/posix-functions/lrintl.texi: Likewise.
19610         * doc/posix-functions/mkdirat.texi: Likewise.
19611         * doc/posix-functions/mkfifoat.texi: Likewise.
19612         * doc/posix-functions/mknodat.texi: Likewise.
19613         * doc/posix-functions/mq_close.texi: Likewise.
19614         * doc/posix-functions/mq_getattr.texi: Likewise.
19615         * doc/posix-functions/mq_notify.texi: Likewise.
19616         * doc/posix-functions/mq_open.texi: Likewise.
19617         * doc/posix-functions/mq_receive.texi: Likewise.
19618         * doc/posix-functions/mq_send.texi: Likewise.
19619         * doc/posix-functions/mq_setattr.texi: Likewise.
19620         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19621         * doc/posix-functions/mq_timedsend.texi: Likewise.
19622         * doc/posix-functions/mq_unlink.texi: Likewise.
19623         * doc/posix-functions/open_memstream.texi: Likewise.
19624         * doc/posix-functions/openat.texi: Likewise.
19625         * doc/posix-functions/posix_fadvise.texi: Likewise.
19626         * doc/posix-functions/posix_fallocate.texi: Likewise.
19627         * doc/posix-functions/posix_madvise.texi: Likewise.
19628         * doc/posix-functions/posix_memalign.texi: Likewise.
19629         * doc/posix-functions/posix_openpt.texi: Likewise.
19630         * doc/posix-functions/readlinkat.texi: Likewise.
19631         * doc/posix-functions/remque.texi: Likewise.
19632         * doc/posix-functions/renameat.texi: Likewise.
19633         * doc/posix-functions/rintl.texi: Likewise.
19634         * doc/posix-functions/sem_unlink.texi: Likewise.
19635         * doc/posix-functions/shm_open.texi: Likewise.
19636         * doc/posix-functions/shm_unlink.texi: Likewise.
19637         * doc/posix-functions/signgam.texi: Likewise.
19638         * doc/posix-functions/sigset.texi: Likewise.
19639         * doc/posix-functions/stpcpy.texi: Likewise.
19640         * doc/posix-functions/stpncpy.texi: Likewise.
19641         * doc/posix-functions/strerror.texi: Likewise.
19642         * doc/posix-functions/strtod.texi: Likewise.
19643         * doc/posix-functions/symlinkat.texi: Likewise.
19644         * doc/posix-functions/unlinkat.texi: Likewise.
19645         * doc/posix-functions/utimensat.texi: Likewise.
19646         * doc/glibc-functions/bindresvport.texi: Likewise.
19647         * doc/glibc-functions/dn_expand.texi: Likewise.
19648         * doc/glibc-functions/exp10.texi: Likewise.
19649         * doc/glibc-functions/exp10f.texi: Likewise.
19650         * doc/glibc-functions/fgetxattr.texi: Likewise.
19651         * doc/glibc-functions/flistxattr.texi: Likewise.
19652         * doc/glibc-functions/fopencookie.texi: Likewise.
19653         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19654         * doc/glibc-functions/fremovexattr.texi: Likewise.
19655         * doc/glibc-functions/fsetxattr.texi: Likewise.
19656         * doc/glibc-functions/getifaddrs.texi: Likewise.
19657         * doc/glibc-functions/getxattr.texi: Likewise.
19658         * doc/glibc-functions/lgetxattr.texi: Likewise.
19659         * doc/glibc-functions/listxattr.texi: Likewise.
19660         * doc/glibc-functions/llistxattr.texi: Likewise.
19661         * doc/glibc-functions/lremovexattr.texi: Likewise.
19662         * doc/glibc-functions/lsetxattr.texi: Likewise.
19663         * doc/glibc-functions/pow10.texi: Likewise.
19664         * doc/glibc-functions/pow10f.texi: Likewise.
19665         * doc/glibc-functions/rcmd_af.texi: Likewise.
19666         * doc/glibc-functions/removexattr.texi: Likewise.
19667         * doc/glibc-functions/res_init.texi: Likewise.
19668         * doc/glibc-functions/res_mkquery.texi: Likewise.
19669         * doc/glibc-functions/res_query.texi: Likewise.
19670         * doc/glibc-functions/res_querydomain.texi: Likewise.
19671         * doc/glibc-functions/res_send.texi: Likewise.
19672         * doc/glibc-functions/rresvport_af.texi: Likewise.
19673         * doc/glibc-functions/setxattr.texi: Likewise.
19674         * doc/glibc-functions/strcasestr.texi: Likewise.
19675
19676 2008-12-15  Bruno Haible  <bruno@clisp.org>
19677
19678         Fix compilation error on OSF/1 4.0.
19679         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19680         <sys/time.h>, simply delegate to the system header.
19681         Reported by Daniel Richard G. <oss@teragram.com>.
19682
19683 2008-12-15  Bruno Haible  <bruno@clisp.org>
19684
19685         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19686         * doc/posix-functions/fchmodat.texi: Likewise.
19687         * doc/posix-functions/fchownat.texi: Likewise.
19688         * doc/posix-functions/fdopendir.texi: Likewise.
19689         * doc/posix-functions/fstatat.texi: Likewise.
19690         * doc/posix-functions/mkdirat.texi: Likewise.
19691         * doc/posix-functions/unlinkat.texi: Likewise.
19692
19693 2008-12-14  Bruno Haible  <bruno@clisp.org>
19694
19695         Update doc for POSIX:2008.
19696         * doc/posix-functions/faccessat.texi: New file.
19697         * doc/posix-functions/fchmodat.texi: New file.
19698         * doc/posix-functions/fchownat.texi: New file.
19699         * doc/posix-functions/fdopendir.texi: New file.
19700         * doc/posix-functions/fstatat.texi: New file.
19701         * doc/posix-functions/futimens.texi: New file.
19702         * doc/posix-functions/linkat.texi: New file.
19703         * doc/posix-functions/mkdirat.texi: New file.
19704         * doc/posix-functions/mkfifoat.texi: New file.
19705         * doc/posix-functions/mknodat.texi: New file.
19706         * doc/posix-functions/open_wmemstream.texi: New file.
19707         * doc/posix-functions/openat.texi: New file.
19708         * doc/posix-functions/psiginfo.texi: New file.
19709         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19710         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19711         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19712         * doc/posix-functions/readlinkat.texi: New file.
19713         * doc/posix-functions/renameat.texi: New file.
19714         * doc/posix-functions/strerror_l.texi: New file.
19715         * doc/posix-functions/symlinkat.texi: New file.
19716         * doc/posix-functions/unlinkat.texi: New file.
19717         * doc/posix-functions/utimensat.texi: New file.
19718         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19719
19720 2008-12-14  Bruno Haible  <bruno@clisp.org>
19721
19722         Update doc for POSIX:2008.
19723         * doc/posix-functions/alphasort.texi: Renamed from
19724         doc/glibc-functions/alphasort.texi.
19725         * doc/posix-functions/dirfd.texi: Renamed from
19726         doc/glibc-functions/dirfd.texi.
19727         * doc/posix-functions/dprintf.texi: Renamed from
19728         doc/glibc-functions/dprintf.texi.
19729         * doc/posix-functions/duplocale.texi: Renamed from
19730         doc/glibc-functions/duplocale.texi.
19731         * doc/posix-functions/fexecve.texi: Renamed from
19732         doc/glibc-functions/fexecve.texi.
19733         * doc/posix-functions/fmemopen.texi: Renamed from
19734         doc/glibc-functions/fmemopen.texi.
19735         * doc/posix-functions/freelocale.texi: Renamed from
19736         doc/glibc-functions/freelocale.texi.
19737         * doc/posix-functions/getdate_err.texi: Renamed from
19738         doc/glibc-functions/getdate_err.texi.
19739         * doc/posix-functions/isalnum_l.texi: Renamed from
19740         doc/glibc-functions/isalnum_l.texi.
19741         * doc/posix-functions/isalpha_l.texi: Renamed from
19742         doc/glibc-functions/isalpha_l.texi.
19743         * doc/posix-functions/isblank_l.texi: Renamed from
19744         doc/glibc-functions/isblank_l.texi.
19745         * doc/posix-functions/iscntrl_l.texi: Renamed from
19746         doc/glibc-functions/iscntrl_l.texi.
19747         * doc/posix-functions/isdigit_l.texi: Renamed from
19748         doc/glibc-functions/isdigit_l.texi.
19749         * doc/posix-functions/isgraph_l.texi: Renamed from
19750         doc/glibc-functions/isgraph_l.texi.
19751         * doc/posix-functions/islower_l.texi: Renamed from
19752         doc/glibc-functions/islower_l.texi.
19753         * doc/posix-functions/isprint_l.texi: Renamed from
19754         doc/glibc-functions/isprint_l.texi.
19755         * doc/posix-functions/ispunct_l.texi: Renamed from
19756         doc/glibc-functions/ispunct_l.texi.
19757         * doc/posix-functions/isspace_l.texi: Renamed from
19758         doc/glibc-functions/isspace_l.texi.
19759         * doc/posix-functions/isupper_l.texi: Renamed from
19760         doc/glibc-functions/isupper_l.texi.
19761         * doc/posix-functions/iswalnum_l.texi: Renamed from
19762         doc/glibc-functions/iswalnum_l.texi.
19763         * doc/posix-functions/iswalpha_l.texi: Renamed from
19764         doc/glibc-functions/iswalpha_l.texi.
19765         * doc/posix-functions/iswblank_l.texi: Renamed from
19766         doc/glibc-functions/iswblank_l.texi.
19767         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19768         doc/glibc-functions/iswcntrl_l.texi.
19769         * doc/posix-functions/iswctype_l.texi: Renamed from
19770         doc/glibc-functions/iswctype_l.texi.
19771         * doc/posix-functions/iswdigit_l.texi: Renamed from
19772         doc/glibc-functions/iswdigit_l.texi.
19773         * doc/posix-functions/iswgraph_l.texi: Renamed from
19774         doc/glibc-functions/iswgraph_l.texi.
19775         * doc/posix-functions/iswlower_l.texi: Renamed from
19776         doc/glibc-functions/iswlower_l.texi.
19777         * doc/posix-functions/iswprint_l.texi: Renamed from
19778         doc/glibc-functions/iswprint_l.texi.
19779         * doc/posix-functions/iswpunct_l.texi: Renamed from
19780         doc/glibc-functions/iswpunct_l.texi.
19781         * doc/posix-functions/iswspace_l.texi: Renamed from
19782         doc/glibc-functions/iswspace_l.texi.
19783         * doc/posix-functions/iswupper_l.texi: Renamed from
19784         doc/glibc-functions/iswupper_l.texi.
19785         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19786         doc/glibc-functions/iswxdigit_l.texi.
19787         * doc/posix-functions/isxdigit_l.texi: Renamed from
19788         doc/glibc-functions/isxdigit_l.texi.
19789         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19790         doc/glibc-functions/mbsnrtowcs.texi.
19791         * doc/posix-functions/mkdtemp.texi: Renamed from
19792         doc/glibc-functions/mkdtemp.texi.
19793         * doc/posix-functions/newlocale.texi: Renamed from
19794         doc/glibc-functions/newlocale.texi.
19795         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19796         doc/glibc-functions/nl_langinfo_l.texi.
19797         * doc/posix-functions/open_memstream.texi: Renamed from
19798         doc/glibc-functions/open_memstream.texi.
19799         * doc/posix-functions/opterr.texi: Renamed from
19800         doc/glibc-functions/opterr.texi.
19801         * doc/posix-functions/optind.texi: Renamed from
19802         doc/glibc-functions/optind.texi.
19803         * doc/posix-functions/optopt.texi: Renamed from
19804         doc/glibc-functions/optopt.texi.
19805         * doc/posix-functions/psignal.texi: Renamed from
19806         doc/glibc-functions/psignal.texi.
19807         * doc/posix-functions/scandir.texi: Renamed from
19808         doc/glibc-functions/scandir.texi.
19809         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19810         doc/glibc-functions/sched_get_priority_min.texi.
19811         * doc/posix-functions/signgam.texi: Renamed from
19812         doc/glibc-functions/signgam.texi.
19813         * doc/posix-functions/stpcpy.texi: Renamed from
19814         doc/glibc-functions/stpcpy.texi.
19815         * doc/posix-functions/stpncpy.texi: Renamed from
19816         doc/glibc-functions/stpncpy.texi.
19817         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19818         doc/glibc-functions/strcasecmp_l.texi.
19819         * doc/posix-functions/strcoll_l.texi: Renamed from
19820         doc/glibc-functions/strcoll_l.texi.
19821         * doc/posix-functions/strfmon_l.texi: Renamed from
19822         doc/glibc-functions/strfmon_l.texi.
19823         * doc/posix-functions/strftime_l.texi: Renamed from
19824         doc/glibc-functions/strftime_l.texi.
19825         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19826         doc/glibc-functions/strncasecmp_l.texi.
19827         * doc/posix-functions/strndup.texi: Renamed from
19828         doc/glibc-functions/strndup.texi.
19829         * doc/posix-functions/strnlen.texi: Renamed from
19830         doc/glibc-functions/strnlen.texi.
19831         * doc/posix-functions/strsignal.texi: Renamed from
19832         doc/glibc-functions/strsignal.texi.
19833         * doc/posix-functions/strxfrm_l.texi: Renamed from
19834         doc/glibc-functions/strxfrm_l.texi.
19835         * doc/posix-functions/timer_gettime.texi: Renamed from
19836         doc/glibc-functions/timer_gettime.texi.
19837         * doc/posix-functions/tolower_l.texi: Renamed from
19838         doc/glibc-functions/tolower_l.texi.
19839         * doc/posix-functions/toupper_l.texi: Renamed from
19840         doc/glibc-functions/toupper_l.texi.
19841         * doc/posix-functions/towctrans_l.texi: Renamed from
19842         doc/glibc-functions/towctrans_l.texi.
19843         * doc/posix-functions/towlower_l.texi: Renamed from
19844         doc/glibc-functions/towlower_l.texi.
19845         * doc/posix-functions/towupper_l.texi: Renamed from
19846         doc/glibc-functions/towupper_l.texi.
19847         * doc/posix-functions/uselocale.texi: Renamed from
19848         doc/glibc-functions/uselocale.texi.
19849         * doc/posix-functions/vdprintf.texi: Renamed from
19850         doc/glibc-functions/vdprintf.texi.
19851         * doc/posix-functions/wcpcpy.texi:
19852         Renamed from doc/glibc-functions/wcpcpy.texi.
19853         * doc/posix-functions/wcpncpy.texi: Renamed from
19854         doc/glibc-functions/wcpncpy.texi.
19855         * doc/posix-functions/wcscasecmp.texi: Renamed from
19856         doc/glibc-functions/wcscasecmp.texi.
19857         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19858         doc/glibc-functions/wcscasecmp_l.texi.
19859         * doc/posix-functions/wcscoll_l.texi: Renamed from
19860         doc/glibc-functions/wcscoll_l.texi.
19861         * doc/posix-functions/wcsdup.texi: Renamed from
19862         doc/glibc-functions/wcsdup.texi.
19863         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19864         doc/glibc-functions/wcsncasecmp.texi.
19865         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19866         doc/glibc-functions/wcsncasecmp_l.texi.
19867         * doc/posix-functions/wcsnlen.texi: Renamed from
19868         doc/glibc-functions/wcsnlen.texi.
19869         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19870         doc/glibc-functions/wcsnrtombs.texi.
19871         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19872         doc/glibc-functions/wcsxfrm_l.texi.
19873         * doc/posix-functions/wctrans_l.texi: Renamed from
19874         doc/glibc-functions/wctrans_l.texi.
19875         * doc/posix-functions/wctype_l.texi: Renamed from
19876         doc/glibc-functions/wctype_l.texi.
19877         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19878         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19879         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19880         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19881         these subsections.
19882         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19883         Remove sections.
19884
19885 2008-12-14  Bruno Haible  <bruno@clisp.org>
19886
19887         Update doc for POSIX:2008.
19888         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19889
19890 2008-12-14  Bruno Haible  <bruno@clisp.org>
19891
19892         Update doc for POSIX:2008.
19893         * doc/pastposix-functions/bcmp.texi: Renamed from
19894         doc/posix-functions/bcmp.texi.
19895         * doc/pastposix-functions/bcopy.texi: Renamed from
19896         doc/posix-functions/bcopy.texi.
19897         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19898         doc/posix-functions/bsd_signal.texi.
19899         * doc/pastposix-functions/bzero.texi: Renamed from
19900         doc/posix-functions/bzero.texi.
19901         * doc/pastposix-functions/ecvt.texi: Renamed from
19902         doc/posix-functions/ecvt.texi.
19903         * doc/pastposix-functions/fcvt.texi: Renamed from
19904         doc/posix-functions/fcvt.texi.
19905         * doc/pastposix-functions/ftime.texi: Renamed from
19906         doc/posix-functions/ftime.texi.
19907         * doc/pastposix-functions/gcvt.texi: Renamed from
19908         doc/posix-functions/gcvt.texi.
19909         * doc/pastposix-functions/getcontext.texi: Renamed from
19910         doc/posix-functions/getcontext.texi.
19911         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19912         doc/posix-functions/gethostbyaddr.texi.
19913         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19914         doc/posix-functions/gethostbyname.texi.
19915         * doc/pastposix-functions/getwd.texi: Renamed from
19916         doc/posix-functions/getwd.texi.
19917         * doc/pastposix-functions/h_errno.texi: Renamed from
19918         doc/posix-functions/h_errno.texi.
19919         * doc/pastposix-functions/index.texi: Renamed from
19920         doc/posix-functions/index.texi.
19921         * doc/pastposix-functions/makecontext.texi: Renamed from
19922         doc/posix-functions/makecontext.texi.
19923         * doc/pastposix-functions/mktemp.texi: Renamed from
19924         doc/posix-functions/mktemp.texi.
19925         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19926         doc/posix-functions/pthread_attr_getstackaddr.texi.
19927         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19928         doc/posix-functions/pthread_attr_setstackaddr.texi.
19929         * doc/pastposix-functions/rindex.texi: Renamed from
19930         doc/posix-functions/rindex.texi.
19931         * doc/pastposix-functions/scalb.texi: Renamed from
19932         doc/posix-functions/scalb.texi.
19933         * doc/pastposix-functions/setcontext.texi: Renamed from
19934         doc/posix-functions/setcontext.texi.
19935         * doc/pastposix-functions/swapcontext.texi: Renamed from
19936         doc/posix-functions/swapcontext.texi.
19937         * doc/pastposix-functions/ualarm.texi: Renamed from
19938         doc/posix-functions/ualarm.texi.
19939         * doc/pastposix-functions/usleep.texi: Renamed from
19940         doc/posix-functions/usleep.texi.
19941         * doc/pastposix-functions/vfork.texi: Renamed from
19942         doc/posix-functions/vfork.texi.
19943         * doc/pastposix-functions/wcswcs.texi: Renamed from
19944         doc/posix-functions/wcswcs.texi.
19945         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19946         (Function Substitutes): Update.
19947
19948 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19949
19950         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19951         m4/strerror.m4.
19952
19953 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19954             Bruno Haible  <bruno@clisp.org>
19955
19956         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19957
19958 2008-12-13  Bruno Haible  <bruno@clisp.org>
19959
19960         * modules/strtoull (Depends-on): Remove unistd.
19961
19962 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19963
19964         * modules/strtoull (Depends-on): Add stdlib.
19965
19966 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19967
19968         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19969
19970 2008-12-10  Jim Meyering  <meyering@redhat.com>
19971
19972         gl_ASSERT: don't say assertions are disabled when they're not
19973         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19974         "checking whether to enable assertions... no", when they are in
19975         fact enabled.  This is solely a bug in the output of configure.
19976         In spite of saying "no", NDEBUG was not defined in that case.
19977         Also, as noted by Eric Blake, leave assertions enabled upon
19978         --enable-assert=INVALID.
19979
19980 2008-12-10  Bruno Haible  <bruno@clisp.org>
19981
19982         Change MODULES.html to refer to POSIX:2008 where possible.
19983         * MODULES.html.sh (POSIX2008_URL): New variable.
19984         (posix_headers): Remove sys/timeb, ucontext.
19985         (posix2001_headers): New variable.
19986         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19987         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19988         index, makecontext, mktemp, pthread_attr_getstackaddr,
19989         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19990         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19991         (posix2001_functions): New variable.
19992         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19993         otherwise.
19994
19995 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19996
19997         add missing include to parse-duration.c
19998         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19999         * modules/parse-duration (Depends-on): Add xalloc.
20000
20001         fix sed script reading maint.mk
20002         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
20003         (syntax-check-rules): Use it.
20004
20005 2008-12-09  Bruno Haible  <bruno@clisp.org>
20006
20007         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
20008         MacOS X 10.4/PowerPC.
20009         Reported by Simon Josefsson.
20010
20011 2008-12-08  Jim Meyering  <meyering@redhat.com>
20012
20013         work around mingw's lack of some S_IF definitions
20014         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
20015         Reported by Simon Josefsson.
20016
20017 2008-12-08  Bruno Haible  <bruno@clisp.org>
20018
20019         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
20020         applied to variables. Needed on MacOS X 10.4/PowerPC.
20021         Reported by Simon Josefsson.
20022
20023 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
20024         and Eric Blake  <ebb9@byu.net>
20025
20026         assert: honor --enable-assert
20027         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
20028         order to honor --enable-assert, rather than treating it as a
20029         synonym for --disable-assert.
20030
20031 2008-12-08  Jim Meyering  <meyering@redhat.com>
20032
20033         * lib/posixtm.c: Remove now-useless declaration of mktime.
20034
20035         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
20036
20037 2008-12-07  Bruno Haible  <bruno@clisp.org>
20038
20039         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
20040         test_once): Mark functions as static.
20041         * tests/test-tls.c (test_tls): Likewise.
20042
20043 2008-12-07  Bruno Haible  <bruno@clisp.org>
20044
20045         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
20046         iconv_register_autodetect.
20047
20048 2008-12-07  Jim Meyering  <meyering@redhat.com>
20049
20050         posixtm.c: avoid a warning
20051         * lib/posixtm.c (posixtime): Don't initialize tm0.
20052         It's no longer needed to placate gcc4's -Wuninitialized,
20053         and the attempt to placate would elicit a new warning.
20054
20055         unicodeio.c: mark unused parameters
20056         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
20057         (fallback_failure_callback): Likewise.
20058
20059 2008-12-07  Bruno Haible  <bruno@clisp.org>
20060
20061         * gnulib-tool (func_create_testdir): When building the tests
20062         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
20063         Reported by Simon Josefsson.
20064
20065 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20066
20067         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
20068
20069 2008-12-06  Bruno Haible  <bruno@clisp.org>
20070
20071         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
20072         Suggested by Eric Blake.
20073
20074 2008-12-06  Bruno Haible  <bruno@clisp.org>
20075
20076         Fix a c-stack test failure on MacOS X.
20077         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
20078         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
20079         handler for SIGBUS as well.
20080         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
20081         install a signal handler for SIGBUS as well.
20082         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
20083
20084 2008-12-06  Bruno Haible  <bruno@clisp.org>
20085
20086         Advocacy documentation.
20087         * doc/gnulib-intro.texi (Benefits): New section.
20088         * doc/gnulib.texi: Update.
20089
20090 2008-12-06  Bruno Haible  <bruno@clisp.org>
20091
20092         Document the 'manywarnings' module.
20093         * doc/manywarnings.texi: New file.
20094         * doc/gnulib.texi: Include it.
20095
20096 2008-12-05  Eric Blake  <ebb9@byu.net>
20097
20098         tests: silence some gcc warnings
20099         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
20100         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
20101         type mismatches.
20102
20103 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20104             Bruno Haible  <bruno@clisp.org>
20105
20106         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
20107
20108 2008-11-29  Jim Meyering  <meyering@redhat.com>
20109
20110         unicodeio.c: mark unused parameters
20111         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
20112         (fallback_failure_callback): Likewise.
20113
20114         fts: fix a thinko
20115         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
20116         (set_stat_type): Return S_IF*-valued "type" directly.
20117         Prompted by James Youngman's spotting a related bug.
20118         Confirmed by further testing through find.
20119
20120         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
20121         * lib/fts.c (D_TYPE): Define.
20122         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
20123         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
20124         (s_ifmt_shift_bits): New function.
20125         (set_stat_type): New function.
20126         (fts_build): When not calling fts_stat, call set_stat_type
20127         to propagate dirent.d_type info to fts_read caller.
20128         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
20129         fts_statp->st_mode type information may be valid.
20130
20131 2008-11-28  Simon Josefsson  <simon@josefsson.org>
20132
20133         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
20134         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
20135         <sds@gnu.org>.
20136
20137 2008-11-20  Bruno Haible  <bruno@clisp.org>
20138
20139         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
20140         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
20141         INCLUDE_NEXT.
20142         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
20143         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
20144         * modules/math (Makefile.am): Substitute
20145         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
20146         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20147
20148 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20149             Bruno Haible  <bruno@clisp.org>
20150
20151         * lib/stdint.in.h: Define all type macros so that their expansion is
20152         a single typedef'ed token. Fixes a compilation failure in Boost which
20153         does "using ::int8_t;".
20154
20155 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20156
20157         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
20158         gl_MANYWARN_ALL_GCC.
20159         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
20160         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
20161         * modules/manywarnings: New file.
20162         * MODULES.html.sh: Mention manywarnings module.
20163
20164 2008-11-18  Bruno Haible  <bruno@clisp.org>
20165
20166         * doc/gnulib-tool.texi (Unit tests): New section.
20167
20168 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20169
20170         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
20171         paths like 'lib/po/foo.po'.
20172
20173 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20174
20175         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
20176         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
20177
20178 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20179
20180         * m4/warnings.m4: Use CPPFLAGS to really check whether the
20181         parameter works.
20182
20183 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20184
20185         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
20186
20187 2008-11-17  Bruce Korb  <bkorb@gnu.org>
20188
20189         * modules/parse-duration-tests: New file.
20190         * tests/test-parse-duration.sh: New file.
20191         * tests/test-parse-duration.c: New file.
20192
20193         New module 'parse-duration'.
20194         * lib/parse-duration.h: New file.
20195         * lib/parse-duration.c: New file.
20196         * modules/parse-duration: New file.
20197
20198 2008-11-17  Bruno Haible  <bruno@clisp.org>
20199
20200         * tests/test-select-out.sh: Comment out the first pipe test.
20201         Reported by Simon Josefsson.
20202
20203 2008-11-17  Bruno Haible  <bruno@clisp.org>
20204
20205         * modules/getaddrinfo (Depends-on): Add servent, hostent.
20206         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
20207         gl_HOSTENT.
20208
20209 2008-11-17  Bruno Haible  <bruno@clisp.org>
20210
20211         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
20212         -lnetwork and -lnet. Needed for Haiku and BeOS.
20213
20214 2008-11-16  Bruno Haible  <bruno@clisp.org>
20215
20216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
20217
20218 2008-11-16  Bruno Haible  <bruno@clisp.org>
20219
20220         Avoid test failure on Haiku.
20221         * tests/test-fsync.c: Include <errno.h>.
20222         (main): Don't require that fsync (0) fails.
20223
20224 2008-11-15  Bruno Haible  <bruno@clisp.org>
20225
20226         New module 'hostent'.
20227         * modules/hostent: New file.
20228         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
20229
20230 2008-11-15  Bruno Haible  <bruno@clisp.org>
20231
20232         New module 'servent'.
20233         * modules/servent: New file.
20234         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
20235
20236 2008-11-15  Bruno Haible  <bruno@clisp.org>
20237
20238         Avoid generating same test program with two different rules.
20239         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
20240         test-frexp to test-frexp-nolibm.
20241         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
20242         test-frexpl to test-frexpl-nolibm.
20243
20244 2008-11-15  Bruno Haible  <bruno@clisp.org>
20245
20246         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
20247         $(FREXPL_LIBM).
20248
20249 2008-11-15  Bruno Haible  <bruno@clisp.org>
20250
20251         * lib/netdb.in.h: Activate the definitions also when the system's
20252         <netdb.h> has 'struct addrinfo'.
20253         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
20254         EAI_OVERFLOW or AI_NUMERICSERV.
20255         * doc/posix-headers/netdb.texi: Document the problem.
20256
20257 2008-11-15  Bruno Haible  <bruno@clisp.org>
20258
20259         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
20260
20261         Make the 'sched' module work on platforms where <sched.h> exists but
20262         is incomplete (such as Haiku).
20263         * lib/sched.in.h; Include the system's <sched.h> if it exists.
20264         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
20265         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
20266         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
20267         HAVE_STRUCT_SCHED_PARAM.
20268         * modules/sched (Depends-on): Add include_next.
20269         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
20270         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
20271         * doc/posix-headers/sched.texi: Document the issue.
20272
20273 2008-11-13  Jim Meyering  <meyering@redhat.com>
20274
20275         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
20276         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
20277         test would fail due to the difference in the Report bugs to ...
20278         line.  The expected address is empty, "<>", while the actual
20279         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
20280
20281 2008-11-12  Bruno Haible  <bruno@clisp.org>
20282
20283         lstat: don't compile lstat.c on systems lacking lstat
20284         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
20285         which don't have lstat; this is handled by lib/sys_stat.in.h already.
20286         Reported by Daniel P. Berrange via Jim Meyering.
20287
20288 2008-11-12  Jim Meyering  <meyering@redhat.com>
20289
20290         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
20291
20292 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20293
20294         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
20295         instead.
20296
20297 2008-11-12  Bruno Haible  <bruno@clisp.org>
20298
20299         * lib/unicodeio.c: Include unistr.h.
20300         (utf8_wctomb): Remove function.
20301         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
20302
20303 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20304
20305         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
20306         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
20307         <bruno@clisp.org>.
20308         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
20309
20310 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20311
20312         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
20313         * doc/gnulib.texi: Add section for warnings.
20314
20315 2008-11-11  Bruno Haible  <bruno@clisp.org>
20316
20317         * lib/sockets.h: Add a comment.
20318
20319 2008-11-11  Karl Berry  <karl@gnu.org>
20320
20321         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
20322
20323 2008-11-11  Eric Blake  <ebb9@byu.net>
20324
20325         fdl.texi: avoid git symlinks
20326         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
20327
20328 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20329
20330         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
20331
20332 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20333
20334         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20335         (gl_WARN_ADD): Substitute $2 if literal.
20336
20337 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20338
20339         * m4/warning.m4: Remove.
20340
20341 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20342
20343         * m4/warnings.m4: Almost complete rewrite. :-)
20344
20345 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20346
20347         * modules/warnings: New module.
20348         * m4/warnings.m4: New file.
20349         * MODULES.html.sh: Mention warnings module.
20350         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20351         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20352
20353 2008-11-10  Eric Blake  <ebb9@byu.net>
20354
20355         fdl.texi: make a symlink to the latest version
20356         * doc/standards.texi: Revert today's earlier change.
20357         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20358         * doc/fdl.texi: ...and replace this with a symlink to the newer
20359         fdl-1.3.texi.
20360
20361 2008-11-10  Bruno Haible  <bruno@clisp.org>
20362
20363         * tests/test-select-fd.c (main): Accept the result file name as fourth
20364         argument.
20365         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20366         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20367
20368 2008-11-10  Bruno Haible  <bruno@clisp.org>
20369
20370         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20371         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20372         as autoconf-substituted macros.
20373         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20374         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20375         gl_NETDB_H_DEFAULTS. Set these variables.
20376         * modules/netdb (Makefile.am): Substitute these variables.
20377
20378 2008-11-10  Eric Blake  <ebb9@byu.net>
20379
20380         standards.texi: include correct file for FDL 1.3
20381         * doc/standards.texi (GNU Free Documentation License): Change
20382         include file to pull in FDL 1.3, not 1.2.
20383
20384         fdl.texi: revert accidental change to license
20385         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20386
20387 2008-11-10  Bruno Haible  <bruno@clisp.org>
20388
20389         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20390         cross-compiling guesses also when the native compile gives no result.
20391
20392 2008-11-10  Bruno Haible  <bruno@clisp.org>
20393
20394         * lib/spawni.c (__spawni): Force variable into the stack.
20395
20396 2008-11-10  Bruno Haible  <bruno@clisp.org>
20397
20398         Add support for Haiku.
20399         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20400         glibc and BeOS, but also on Haiku.
20401         * lib/fpurge.c (fpurge): Likewise.
20402         * lib/freadable.c (freadable): Likewise.
20403         * lib/freadahead.c (freadahead): Likewise.
20404         * lib/freading.c (freading): Likewise.
20405         * lib/freadptr.c (freadptr): Likewise.
20406         * lib/freadseek.c (freadptrinc): Likewise.
20407         * lib/fseeko.c (rpl_fseeko): Likewise.
20408         * lib/fseterr.c (fseterr): Likewise.
20409         * lib/fwritable.c (fwritable): Likewise.
20410         * lib/fwriting.c (fwriting): Likewise.
20411         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20412
20413 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20414
20415         * lib/config.charset: Treat Haiku like BeOS.
20416
20417 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20418
20419         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20420         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20421
20422 2008-11-08  Bruno Haible  <bruno@clisp.org>
20423
20424         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20425         AC_CACHE_CHECK.
20426
20427 2008-11-08  Bruno Haible  <bruno@clisp.org>
20428
20429         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20430
20431 2008-11-08  Bruno Haible  <bruno@clisp.org>
20432
20433         * tests/test-select-fd.c: New file.
20434         * tests/test-select-in.sh: New file.
20435         * tests/test-select-out.sh: New file.
20436         * tests/test-select-stdin.c: New file.
20437         * modules/select-tests (Files): Add the new files.
20438         (Depends-on): Add gettimeofday.
20439         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20440         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20441         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20442
20443 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20444             Bruno Haible  <bruno@clisp.org>
20445
20446         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20447
20448 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20449
20450         * build-aux/pmccabe2html: Added support for C++ source files.
20451
20452 2008-11-05  Ben Pfaff  <blp@gnu.org>
20453
20454         Fix lib/close.c build on Windows.
20455         * modules/close (Files): Add lib/w32sock.h.
20456
20457 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20458
20459         Accept Bison's NEWS format.
20460         * build-aux/announce-gen (print_news_deltas): Tweak
20461         $re_prefix.
20462
20463 2008-11-04  Bruno Haible  <bruno@clisp.org>
20464
20465         * modules/random_r (Maintainer): Add glibc.
20466
20467 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20468
20469         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20470         by karl@freefriends.org (Karl Berry).
20471         * doc/alloca.texi: Likewise.
20472         * doc/c-ctype.texi: Likewise.
20473         * doc/c-strcase.texi: Likewise.
20474         * doc/c-strcaseeq.texi: Likewise.
20475         * doc/c-strcasestr.texi: Likewise.
20476         * doc/c-strstr.texi: Likewise.
20477         * doc/c-strtod.texi: Likewise.
20478         * doc/c-strtold.texi: Likewise.
20479         * doc/ctime.texi: Likewise.
20480         * doc/error.texi: Likewise.
20481         * doc/fdl.texi: Likewise.
20482         * doc/gcd.texi: Likewise.
20483         * doc/getdate.texi: Likewise.
20484         * doc/gnulib-intro.texi: Likewise.
20485         * doc/gnulib-tool.texi: Likewise.
20486         * doc/gnulib.texi: Likewise.
20487         * doc/inet_ntoa.texi: Likewise.
20488         * doc/maintain.texi: Likewise.
20489         * doc/make-stds.texi: Likewise.
20490         * doc/quote.texi: Likewise.
20491         * doc/regexprops-generic.texi: Likewise.
20492         * doc/standards.texi: Likewise.
20493         * doc/verify.texi: Likewise.
20494         * doc/visibility.texi: Likewise.
20495         * doc/gnulib.texi (GNU Free Documentation License): Include
20496         fdl-1.3.texi instead of fdl.texi.
20497
20498 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20499
20500         * doc/fdl-1.3.texi: New file, from
20501         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20502         * modules/fdl-1.3: Add.
20503         * MODULES.html.sh: Add fdl-1.3.
20504
20505 2008-11-03  Bruno Haible  <bruno@clisp.org>
20506
20507         Make determination of absolute name of header file work with AIX xlc.
20508         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20509         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20510         preprocessing.
20511         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20512         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20513
20514 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20515
20516         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20517         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20518         <ludo@gnu.org>.
20519
20520 2008-11-02  Bruno Haible  <bruno@clisp.org>
20521
20522         Mark 'strpbrk' obsolete.
20523         * modules/strpbrk (Status, Notice): New sections.
20524         * modules/strtok_r (Depends-on): Add strpbrk.
20525
20526 2008-11-02  Bruno Haible  <bruno@clisp.org>
20527
20528         Mark 'strdup' obsolete.
20529         * modules/strdup (Status, Notice): New sections.
20530         * modules/findprog (Depends-on): Add strdup.
20531         * modules/getaddrinfo (Depends-on): Likewise.
20532         * modules/localename (Depends-on): Likewise.
20533         * modules/relocatable-lib (Depends-on): Likewise.
20534         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20535         * modules/relocatable-prog (Depends-on): Likewise.
20536         * modules/trim (Depends-on): Likewise.
20537         * modules/unictype/gen-ctype (Depends-on): Likewise.
20538         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20539
20540 2008-11-02  Bruno Haible  <bruno@clisp.org>
20541
20542         Mark 'strcspn' obsolete.
20543         * modules/strcspn (Status, Notice): New sections.
20544
20545 2008-11-02  Bruno Haible  <bruno@clisp.org>
20546
20547         Mark 'rmdir' obsolete.
20548         * modules/rmdir (Status, Notice): New sections.
20549         * modules/clean-temp (Depends-on): Add rmdir.
20550         * modules/openat (Depends-on): Likewise.
20551
20552 2008-11-02  Bruno Haible  <bruno@clisp.org>
20553
20554         Mark 'raise' obsolete.
20555         * modules/raise (Status, Notice): New sections.
20556         (Include): Specify <signal.h>.
20557         * modules/stdio (Depends-on): Add raise.
20558         * modules/write (Depends-on): Likewise.
20559
20560 2008-11-02  Bruno Haible  <bruno@clisp.org>
20561
20562         Mark 'memset' obsolete.
20563         * modules/memset (Status, Notice): New sections.
20564
20565 2008-11-02  Bruno Haible  <bruno@clisp.org>
20566
20567         Mark 'memmove' obsolete.
20568         * modules/memmove (Status, Notice): New sections.
20569         * modules/argp (Depends-on): Add memmove.
20570         * modules/argz (Depends-on): Likewise.
20571         * modules/canonicalize (Depends-on): Likewise.
20572         * modules/canonicalize-lgpl (Depends-on): Likewise.
20573         * modules/fts (Depends-on): Likewise.
20574         * modules/getcwd (Depends-on): Likewise.
20575         * modules/human (Depends-on): Likewise.
20576         * modules/regex (Depends-on): Likewise.
20577         * modules/striconveh (Depends-on): Likewise.
20578         * modules/trim (Depends-on): Likewise.
20579         * modules/unistr/u8-move (Depends-on): Likewise.
20580         * modules/unistr/u16-move (Depends-on): Likewise.
20581         * modules/unistr/u32-move (Depends-on): Likewise.
20582
20583 2008-11-02  Bruno Haible  <bruno@clisp.org>
20584
20585         Mark 'memcpy' obsolete.
20586         * modules/memcpy (Status, Notice): New sections.
20587
20588 2008-11-02  Bruno Haible  <bruno@clisp.org>
20589
20590         Mark 'memcmp' obsolete.
20591         * modules/memcmp (Status, Notice): New sections.
20592         * modules/argmatch (Depends-on): Add memchr.
20593         * modules/backupfile (Depends-on): Likewise.
20594         * modules/c-strcasestr (Depends-on): Likewise.
20595         * modules/crypto/des (Depends-on): Likewise.
20596         * modules/csharpcomp (Depends-on): Likewise.
20597         * modules/fnmatch (Depends-on): Likewise.
20598         * modules/git-merge-changelog (Depends-on): Likewise.
20599         * modules/isnand (Depends-on): Likewise.
20600         * modules/isnand-nolibm (Depends-on): Likewise.
20601         * modules/isnanf (Depends-on): Likewise.
20602         * modules/isnanf-nolibm (Depends-on): Likewise.
20603         * modules/isnanl (Depends-on): Likewise.
20604         * modules/isnanl-nolibm (Depends-on): Likewise.
20605         * modules/mbchar (Depends-on): Likewise.
20606         * modules/memcoll (Depends-on): Likewise.
20607         * modules/quotearg (Depends-on): Likewise.
20608         * modules/regex (Depends-on): Likewise.
20609         * modules/relocatable-prog (Depends-on): Likewise.
20610         * modules/same (Depends-on): Likewise.
20611         * modules/signbit (Depends-on): Likewise.
20612         * modules/strcasestr-simple (Depends-on): Likewise.
20613         * modules/unictype/gen-ctype (Depends-on): Likewise.
20614         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20615         * modules/uniname/uniname (Depends-on): Likewise.
20616         * modules/unistr/u8-cmp (Depends-on): Likewise.
20617
20618 2008-11-02  Bruno Haible  <bruno@clisp.org>
20619
20620         Mark 'memchr' obsolete.
20621         * modules/memchr (Status, Notice): New sections.
20622         * modules/argp (Depends-on): Add memchr.
20623         * modules/base64 (Depends-on): Likewise.
20624         * modules/c-strcasestr (Depends-on): Likewise.
20625         * modules/chdir-long (Depends-on): Likewise.
20626         * modules/fnmatch (Depends-on): Likewise.
20627         * modules/getsubopt (Depends-on): Likewise.
20628         * modules/git-merge-changelog (Depends-on): Likewise.
20629         * modules/glob (Depends-on): Likewise.
20630         * modules/strcasestr-simple (Depends-on): Likewise.
20631         * modules/strnlen (Depends-on): Likewise.
20632
20633 2008-11-02  Bruno Haible  <bruno@clisp.org>
20634
20635         Mark 'atexit' obsolete.
20636         * modules/atexit (Status, Notice): New sections.
20637         * modules/chdir-long (Depends-on): Add atexit.
20638         * modules/wait-process (Depends-on): Likewise.
20639
20640 2008-11-02  Bruno Haible  <bruno@clisp.org>
20641
20642         * gnulib-tool: New option --with-obsolete.
20643         (func_usage): Document it.
20644         (func_modules_transitive_closure): Drop obsolete dependencies if
20645         incobsolete is not true.
20646         (func_import): Read and save the incobsolete variable to the cache.
20647
20648 2008-11-02  Bruno Haible  <bruno@clisp.org>
20649
20650         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20651         * gnulib-tool: New option --extract-status.
20652         (func_usage): Document it.
20653         (sed_extract_prog): Recognize it.
20654         (func_get_status): New function.
20655
20656 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20657
20658         * modules/sockets (License): Change from LGPL to LGPLv2+.
20659
20660 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20661
20662         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20663
20664 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20665
20666         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20667         Mention times and sys_times.
20668         * modules/sys_times, modules/sys_times-tests: New modules.
20669         * modules/times, modules/times-tests: Likewise
20670         * m4/sys_times_h.m4: New file.
20671         * lib/sys_times.in.h: Likewise
20672         * lib/times.c: Likewise.
20673         * tests/test-sys_times.c: Likewise.
20674         * tests/test-times.c: Likewise.
20675         * doc/posix-headers/sys_times.texi: Update.
20676         * doc/posix-functions/times.texi: Update.
20677
20678 2008-10-28  Jim Meyering  <meyering@redhat.com>
20679
20680         * modules/tempname (Depends-on): Add lstat.
20681
20682         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20683
20684 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20685
20686         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20687         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20688         using idiom used elsewhere in gnulib.
20689
20690 2008-10-27  Jim Meyering  <meyering@redhat.com>
20691
20692         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20693
20694 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20695
20696         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20697         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20698         programs.
20699         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20700
20701 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20702
20703         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20704
20705 2008-10-27  Bruno Haible  <bruno@clisp.org>
20706
20707         * tests/test-lstat.c: Include <stdio.h>.
20708
20709 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20710
20711         * modules/lstat-tests: New module.
20712         * tests/test-lstat.c: New file.
20713
20714 2008-10-26  Jim Meyering  <meyering@redhat.com>
20715
20716         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20717
20718 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20719             Bruno Haible  <bruno@clisp.org>
20720
20721         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20722         * modules/configmake (Include): Add a note that the include must come
20723         after all system headers.
20724         * lib/javaversion.c: Include configmake.h after all other includes.
20725
20726 2008-10-26  Bruno Haible  <bruno@clisp.org>
20727
20728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20729         HAVE_STRUCT_RANDOM_DATA to 1.
20730         (gl_STDLIB_H): Simplify.
20731
20732 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20733
20734         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20735         substitute HAVE_STRUCT_RANDOM_DATA.
20736         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20737         random_data.
20738         * modules/stdlib (Makefile.am): Substitute
20739         HAVE_STRUCT_RANDOM_DATA.
20740
20741 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20742
20743         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20744         * doc/gnulib-intro.texi (Copyright): Likewise.
20745
20746 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20747
20748         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20749         findings.
20750
20751 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20752             Bruno Haible  <bruno@clisp.org>
20753
20754         * lib/unistd.in.h: Include <winsock2.h>.
20755         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20756         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20757         Provide dummy declarations.
20758         (gethostname): Override.
20759         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20760         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20761         gl_PREREQ_SYS_H_WINSOCK2.
20762         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20763         * doc/posix-functions/gethostname.texi: More details.
20764
20765 2008-10-25  Bruno Haible  <bruno@clisp.org>
20766
20767         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20768         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20769         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20770
20771         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20772         here ...
20773         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20774         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20775         gl_UNISTD_H_DEFAULTS.
20776
20777 2008-10-25  Eric Blake  <ebb9@byu.net>
20778
20779         signbit: avoid spurious compiler failure
20780         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20781         declarations inside function.
20782
20783 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20784             Bruno Haible  <bruno@clisp.org>
20785
20786         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20787         * modules/random_r (Depends-on): Add stdint.
20788
20789 2008-10-24  Bruno Haible  <bruno@clisp.org>
20790
20791         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20792         Eggert.
20793         * modules/strerror (License): Likewise.
20794
20795 2008-10-24  Jim Meyering  <meyering@redhat.com>
20796
20797         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20798         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20799
20800 2008-10-24  Eric Blake  <ebb9@byu.net>
20801
20802         getgroups: fix compilation when getgroups is available
20803         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20804         but with <config.h> override of getgroups disabled.
20805
20806 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20807
20808         * doc/gnulib.texi (Header files): Add note about C++ problems.
20809         Explained by Bruno Haible <bruno@clisp.org>.
20810
20811 2008-10-23  Bruno Haible  <bruno@clisp.org>
20812
20813         Define a dummy SA_NODEFER macro on Interix.
20814         * lib/signal.in.h (SA_NODEFER): Define fallback.
20815         Reported by Aleksey Cheusov <cheusov@tut.by> via
20816         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20817
20818 2008-10-23  Bruno Haible  <bruno@clisp.org>
20819
20820         * modules/freadahead (License): Change to LGPLv2+.
20821         Suggested by Simon Josefsson.
20822
20823 2008-10-23  Jim Meyering  <meyering@redhat.com>
20824
20825         random_r: new module
20826         * modules/random_r: New file.
20827         * m4/random_r.m4: New file.
20828         * lib/random_r.c: New file, from glibc.
20829         * modules/random_r-tests: New file.
20830         * tests/test-random_r.c: New file.
20831         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20832          Declare.
20833         (RAND_MAX): Define.
20834         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20835         * modules/stdlib: Substitute them, too.
20836         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20837         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20838         * doc/glibc-functions/random_r.texi: Likewise.
20839         * doc/glibc-functions/setstate_r.texi: Likewise.
20840         * doc/glibc-functions/srandom_r.texi: Likewise.
20841         * config/srclist.txt: Mention it.
20842
20843 2008-10-23  David Lutterkort  <lutter@redhat.com>
20844
20845         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20846         link requirement
20847
20848 2008-10-23  Jim Meyering  <meyering@redhat.com>
20849
20850         selinux-h: mark parameters of stub functions as intentionally unused
20851         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20852         * lib/se-context.in.h: Likewise.
20853
20854 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20855
20856         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20857
20858 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20859
20860         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20861
20862 2008-10-22  Eric Blake  <ebb9@byu.net>
20863
20864         glthread/thread: avoid compiler warning
20865         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20866         Add unreachable abort to silence compiler.
20867
20868 2008-10-22  Eric Blake  <ebb9@byu.net>
20869
20870         netdb: also supply struct addrinfo for cygwin 1.5.x
20871         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20872         older cygwin.
20873         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20874         cygwin.
20875         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20876
20877 2008-10-22  Bruno Haible  <bruno@clisp.org>
20878
20879         * users.txt: Update entry about pspp.
20880
20881 2008-10-21  Bruno Haible  <bruno@clisp.org>
20882
20883         Simplification.
20884         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20885         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20886
20887         Simplification.
20888         * lib/ioctl.c (ioctl): Don't undefine.
20889         * lib/socket.c (socket): Don't undefine.
20890
20891         Remove unused module indicator macros.
20892         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20893         GNULIB_$1 as a C macro.
20894
20895         * doc/posix-functions/close.texi: Undo last change.
20896         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20897         Windows platforms.
20898
20899 2008-10-21  Bruno Haible  <bruno@clisp.org>
20900
20901         Add gethostname() declaration to <unistd.h>.
20902         * lib/unistd.in.h (gethostname): New declaration.
20903         * lib/gethostname.c: Include <unistd.h>.
20904         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20905         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20907         and HAVE_GETHOSTNAME.
20908         * modules/gethostname (Depends-on): Add unistd.
20909         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20910         (Include): Specify <unistd.h>.
20911         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20912         HAVE_GETHOSTNAME.
20913         * tests/test-gethostname.c: Include <unistd.h> first.
20914
20915 2008-10-21  Bruno Haible  <bruno@clisp.org>
20916
20917         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20918         * modules/select-tests (Depends-on): Likewise.
20919         Reported by Simon Josefsson.
20920
20921 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20922
20923         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20924         * lib/accept.c: New file, based on winsock.c.
20925         * lib/bind.c: New file, based on winsock.c.
20926         * lib/connect.c: New file, based on winsock.c.
20927         * lib/getpeername.c: New file, based on winsock.c.
20928         * lib/getsockname.c: New file, based on winsock.c.
20929         * lib/getsockopt.c: New file, based on winsock.c.
20930         * lib/ioctl.c: New file, based on winsock.c.
20931         * lib/listen.c: New file, based on winsock.c.
20932         * lib/recv.c: New file, based on winsock.c.
20933         * lib/recvfrom.c: New file, based on winsock.c.
20934         * lib/send.c: New file, based on winsock.c.
20935         * lib/sendto.c: New file, based on winsock.c.
20936         * lib/setsockopt.c: New file, based on winsock.c.
20937         * lib/shutdown.c: New file, based on winsock.c.
20938         * lib/socket.c: New file, based on winsock.c.
20939         * lib/w32sock.h: New file, based on winsock.c.
20940         * lib/winsock.c: Remove file.
20941         * modules/accept: Likewise.
20942         * modules/bind: Likewise.
20943         * modules/connect: Likewise.
20944         * modules/getpeername: Likewise.
20945         * modules/getsockname: Likewise.
20946         * modules/getsockopt: Likewise.
20947         * modules/ioctl: Likewise.
20948         * modules/listen: Likewise.
20949         * modules/recv: Likewise.
20950         * modules/recvfrom: Likewise.
20951         * modules/send: Likewise.
20952         * modules/sendto: Likewise.
20953         * modules/setsockopt: Likewise.
20954         * modules/shutdown: Likewise.
20955         * modules/socket: Use socket.c instead of winsock.c.
20956         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20957         * doc/posix-functions/accept.texi: Doc fix.
20958         * doc/posix-functions/bind.texi: Doc fix.
20959         * doc/posix-functions/close.texi: Doc fix.
20960         * doc/posix-functions/connect.texi: Doc fix.
20961         * doc/posix-functions/getpeername.texi: Doc fix.
20962         * doc/posix-functions/getsockname.texi: Doc fix.
20963         * doc/posix-functions/getsockopt.texi: Doc fix.
20964         * doc/posix-functions/ioctl.texi: Doc fix.
20965         * doc/posix-functions/listen.texi: Doc fix.
20966         * doc/posix-functions/recv.texi: Doc fix.
20967         * doc/posix-functions/recvfrom.texi: Doc fix.
20968         * doc/posix-functions/send.texi: Doc fix.
20969         * doc/posix-functions/sendto.texi: Doc fix.
20970         * doc/posix-functions/setsockopt.texi: Doc fix.
20971         * doc/posix-functions/shutdown.texi: Doc fix.
20972         * doc/posix-functions/socket.texi: Doc fix.
20973
20974 2008-10-20  Bruno Haible  <bruno@clisp.org>
20975
20976         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20977         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20978         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20979         as an alias for SIGABRT.
20980         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20981         (sigaction): Map it to SIGABRT.
20982         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20983
20984 2008-10-20  Bruno Haible  <bruno@clisp.org>
20985
20986         * lib/fts.c: Don't include lstat.h.
20987         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20988
20989         Move the lstat() declaration to <sys/stat.h>.
20990         * lib/lstat.h: Remove file.
20991         * lib/sys_stat.in.h: Add special invocation convention.
20992         (lstat): New declaration.
20993         * lib/lstat.c (orig_lstat): New function.
20994         (rpl_lstat): Use orig_lstat instead of lstat.
20995         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20996         AC_C_INLINE. Set REPLACE_LSTAT.
20997         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20998         and REPLACE_LSTAT.
20999         * modules/lstat (Files): Remove lib/lstat.h.
21000         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21001         (Include): Specify <sys/stat.h> instead of lstat.h.
21002         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
21003         REPLACE_LSTAT.
21004         * NEWS: Mention the change.
21005
21006 2008-10-20  Bruno Haible  <bruno@clisp.org>
21007
21008         * modules/posix_spawn-tests: New file.
21009         * tests/test-posix_spawn3.c: New file.
21010
21011 2008-10-20  Bruno Haible  <bruno@clisp.org>
21012
21013         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
21014         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
21015         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
21016         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
21017         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
21018
21019 2008-10-20  Bruno Haible  <bruno@clisp.org>
21020
21021         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
21022         of posix_spawn on AIX 5.3.
21023
21024 2008-10-20  Bruno Haible  <bruno@clisp.org>
21025
21026         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
21027
21028 2008-10-20  Bruno Haible  <bruno@clisp.org>
21029
21030         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
21031         of AC_LANG_PROGRAM.
21032
21033 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21034
21035         * lib/netdb.in.h: Don't define GNU specific constants until they
21036         are supported or needed.  Reported by Bruno Haible
21037         <bruno@clisp.org>.
21038
21039 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21040
21041         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
21042
21043 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21044
21045         * lib/getaddrinfo.h: Remove file.
21046         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
21047         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
21048         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
21049         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
21050         * modules/netdb: Substitute GNULIB_GETADDRINFO.
21051         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
21052         * tests/test-getaddrinfo.c: Likewise.
21053         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
21054         * NEWS: Mention change.
21055
21056 2008-10-19  Bruno Haible  <bruno@clisp.org>
21057
21058         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
21059
21060 2008-10-19  Bruno Haible  <bruno@clisp.org>
21061
21062         * lib/wait-process.c: Include simply <sys/wait.h>.
21063         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
21064         WIFSTOPPED): Remove fallback definitions.
21065         * modules/wait-process (Depends-on): Add sys_wait.
21066
21067         New module 'sys_wait'.
21068         * modules/sys_wait: New file.
21069         * lib/sys_wait.in.h: New file, partially copied from
21070         lib/wait-process.c.
21071         * m4/sys_wait_h.m4: New file.
21072         * doc/posix-headers/sys_wait.texi: Mention the new module.
21073
21074 2008-10-19  Bruno Haible  <bruno@clisp.org>
21075
21076         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
21077
21078 2008-10-19  Bruno Haible  <bruno@clisp.org>
21079
21080         Assume that waitpid() fills an 'int' status, not a 'union wait'.
21081         * lib/wait-process.c (WAIT_T): Remove type.
21082         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
21083         (wait_subprocess): Update.
21084
21085 2008-10-19  Bruno Haible  <bruno@clisp.org>
21086
21087         New module 'atoll'.
21088         * modules/atoll: New file.
21089         * lib/stdlib.in.h (atoll): New declaration.
21090         * lib/atoll.c: New file, from glibc with modifications.
21091         * m4/atoll.m4: New file.
21092         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
21093         HAVE_ATOLL.
21094         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
21095         * doc/posix-functions/atoll.texi: Mention the new module.
21096
21097 2008-10-19  Bruno Haible  <bruno@clisp.org>
21098
21099         Add strtoull() declaration to <stdlib.h>.
21100         * lib/stdlib.in.h (strtoull): New declaration.
21101         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
21102         Set HAVE_STRTOULL.
21103         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
21104         HAVE_STRTOULL.
21105         * modules/strtoull (Depends-on): Add stdlib.
21106         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21107         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
21108         HAVE_STRTOULL.
21109
21110 2008-10-19  Bruno Haible  <bruno@clisp.org>
21111
21112         Add strtoll() declaration to <stdlib.h>.
21113         * lib/stdlib.in.h (strtoll): New declaration.
21114         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
21115         Set HAVE_STRTOLL.
21116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
21117         HAVE_STRTOLL.
21118         * modules/strtoll (Depends-on): Add stdlib.
21119         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21120         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
21121
21122 2008-10-19  Bruno Haible  <bruno@clisp.org>
21123
21124         * modules/bcopy (Depends-on): Add strings.
21125         (Include): Specify <strings.h>.
21126
21127 2008-10-19  Bruno Haible  <bruno@clisp.org>
21128
21129         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
21130
21131 2008-10-19  Bruno Haible  <bruno@clisp.org>
21132
21133         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
21134         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
21135         mingw.
21136
21137 2008-10-19  Bruno Haible  <bruno@clisp.org>
21138
21139         * lib/atanl.c: Don't include isnanl.h.
21140         * lib/cosl.c: Likewise.
21141         * lib/ldexpl.c: Likewise.
21142         * lib/logl.c: Likewise.
21143         * lib/sinl.c: Likewise.
21144         * lib/sqrtl.c: Likewise.
21145         * lib/tanl.c: Likewise.
21146
21147         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
21148         * lib/isnanf.h: Remove file.
21149         * lib/isnand.h: Remove file.
21150         * lib/isnanl.h: Remove file.
21151         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
21152         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
21153         macros.
21154         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
21155         HAVE_ISNANF, don't define it as a C macro.
21156         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
21157         HAVE_ISNAND, don't define it as a C macro.
21158         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
21159         HAVE_ISNANL, don't define it as a C macro.
21160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
21161         HAVE_ISNAN[FDL].
21162         * modules/isnanf (Files): Remove lib/isnanf.h.
21163         (Depends-on): Add math.
21164         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21165         (Include): Specify <math.h> instead of isnanf.h.
21166         * modules/isnand (Files): Remove lib/isnand.h.
21167         (Depends-on): Add math.
21168         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21169         (Include): Specify <math.h> instead of isnand.h.
21170         * modules/isnanl (Files): Remove lib/isnanl.h.
21171         (Depends-on): Add math.
21172         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21173         (Include): Specify <math.h> instead of isnanl.h.
21174         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
21175         HAVE_ISNAN[FDL].
21176         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
21177         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
21178         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
21179         * NEWS: Mention the change.
21180
21181 2008-10-18  Bruno Haible  <bruno@clisp.org>
21182
21183         Add getusershell(), setusershell(), endusershell() declarations to
21184         <unistd.h>.
21185         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
21186         declarations.
21187         * lib/getusershell.c: Include unistd.h.
21188         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
21189         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21190         HAVE_GETUSERSHELL.
21191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
21192         and HAVE_GETUSERSHELL.
21193         * modules/getusershell (Depends-on): Add unistd, extensions.
21194         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21195         (Include): Specify <unistd.h>.
21196         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
21197         HAVE_GETUSERSHELL.
21198
21199 2008-10-18  Bruno Haible  <bruno@clisp.org>
21200
21201         Add a getloadavg() declaration to <stdlib.h>.
21202         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
21203         getloadavg declaration.
21204         (getloadavg): New declaration.
21205         * lib/getloadavg.c: Include <stdlib.h> first.
21206         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
21207         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
21208         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
21209         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
21210         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21211         * modules/getloadavg (Depends-on): Add stdlib, extensions.
21212         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21213         (Include): Specify <stdlib.h>.
21214         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
21215         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21216
21217 2008-10-18  Bruno Haible  <bruno@clisp.org>
21218
21219         * lib/dirchownmod.c: Don't include lchmod.h.
21220
21221         Move the lchmod() declaration to <sys/stat.h>.
21222         * lib/lchmod.h: Remove file.
21223         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
21224         (lchmod): New declaration, moved here from lib/lchown.h.
21225         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
21226         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
21227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
21228         and HAVE_LCHMOD.
21229         * modules/lchmod (Files): Remove lib/lchmod.h.
21230         (Depends-on): Add sys_stat, extensions.
21231         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21232         (Include): Specify <sys/stat.h> instead of lchmod.h.
21233         * modules/sys_stat (Depends-on): Add link-warning.
21234         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
21235         definition of GL_LINK_WARNING.
21236         * NEWS: Mention the change.
21237
21238 2008-10-18  Bruno Haible  <bruno@clisp.org>
21239
21240         * lib/fchdir.c: Don't include dirfd.h.
21241         * lib/fts.c: Likewise.
21242         * lib/getcwd.c: Likewise.
21243         * lib/glob.c: Likewise.
21244
21245         Move the dirfd() declaration to <dirent.h>.
21246         * lib/dirfd.h: Remove file.
21247         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
21248         (dirfd): New declaration.
21249         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
21250         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
21251         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
21252         HAVE_DECL_DIRFD.
21253         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
21254         HAVE_DECL_DIRFD.
21255         * modules/dirfd (Files): Remove lib/dirfd.h.
21256         (Depends-on): Add dirent, extensions.
21257         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
21258         (Include): Specify <dirent.h> instead of dirfd.h.
21259         * modules/dirent (Depends-on): Add link-warning.
21260         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
21261         definition of GL_LINK_WARNING.
21262         * NEWS: Mention the change.
21263
21264 2008-10-18  Bruno Haible  <bruno@clisp.org>
21265
21266         Move the euidaccess() declaration to <unistd.h>.
21267         * lib/euidaccess.h: Remove file.
21268         * lib/unistd.in.h (euidaccess): New declaration.
21269         * lib/euidaccess.c: Don't include euidaccess.h.
21270         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
21271         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
21272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
21273         and HAVE_EUIDACCESS.
21274         * modules/euidaccess (Files): Remove lib/euidaccess.h.
21275         (Depends-on): Add unistd.
21276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21277         (Include): Specify <unistd.h> instead of euidaccess.h.
21278         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
21279         HAVE_EUIDACCESS.
21280         * NEWS: Mention the change.
21281
21282 2008-10-18  Bruno Haible  <bruno@clisp.org>
21283
21284         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
21285
21286         Move the getdomainname() declaration to <unistd.h>.
21287         * lib/getdomainname.h: Remove file.
21288         * lib/unistd.in.h (getdomainname): New declaration.
21289         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
21290         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21291         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21292         HAVE_GETDOMAINNAME.
21293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21294         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
21295         * modules/getdomainname (Files): Remove lib/getdomainname.h.
21296         (Depends-on): Add unistd, extensions.
21297         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21298         (Includes): Specify <unistd.h> instead of getdomainname.h.
21299         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
21300         HAVE_GETDOMAINNAME.
21301         * NEWS: Mention the change.
21302
21303 2008-10-18  Bruno Haible  <bruno@clisp.org>
21304
21305         * modules/dirent: New file.
21306         * m4/dirent_h.m4: New file.
21307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
21308         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
21309         * modules/fchdir (Files): Remove lib/dirent.in.h.
21310         (Depends-on): Add dirent.
21311         (Makefile.am): Move rules to modules/dirent.
21312         * doc/posix-headers/dirent.texi: Mention the new module.
21313
21314 2008-10-18  Bruno Haible  <bruno@clisp.org>
21315
21316         Avoid -Wunused-parameter warnings in public gnulib header files.
21317         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
21318         macro.
21319         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
21320
21321 2008-10-18  Bruno Haible  <bruno@clisp.org>
21322
21323         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
21324         * doc/glibc-functions/error.texi: Mention the module 'error'.
21325         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
21326         * doc/glibc-functions/getdomainname.texi: Mention the module
21327         'getdomainname'.
21328         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
21329         * doc/glibc-functions/getpagesize.texi: Mention the module
21330         'getpagesize'.
21331         * doc/glibc-functions/getusershell.texi: Mention the module
21332         'getusershell'.
21333         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21334         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21335         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21336         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21337         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21338         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21339         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21340         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21341         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21342         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21343         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21344         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21345         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21346         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21347
21348 2008-10-17  Bruno Haible  <bruno@clisp.org>
21349
21350         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21351         HP-UX and IRIX, use -0.0L.
21352         * tests/test-ceill.c (minus_zero): Likewise.
21353         * tests/test-floorl.c (minus_zero): Likewise.
21354         * tests/test-frexpl.c (minus_zero): Likewise.
21355         * tests/test-isnan.c (minus_zerol): Likewise.
21356         * tests/test-isnanl.h (minus_zero): Likewise.
21357         * tests/test-ldexpl.c (minus_zero): Likewise.
21358         * tests/test-roundl.c (minus_zero): Likewise.
21359         * tests/test-signbit.c (minus_zerol): Likewise.
21360         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21361         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21362         * tests/test-truncl.c (minus_zero): Likewise.
21363         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21364         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21365         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21366         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21367
21368 2008-10-17  Bruno Haible  <bruno@clisp.org>
21369
21370         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21371         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21372         that it gets activated only for gcc >= 3.0.
21373         * lib/dirent.in.h: Likewise.
21374         * lib/errno.in.h: Likewise.
21375         * lib/fcntl.in.h: Likewise.
21376         * lib/float.in.h: Likewise.
21377         * lib/iconv.in.h: Likewise.
21378         * lib/inttypes.in.h: Likewise.
21379         * lib/locale.in.h: Likewise.
21380         * lib/math.in.h: Likewise.
21381         * lib/netdb.in.h: Likewise.
21382         * lib/netinet_in.in.h: Likewise.
21383         * lib/search.in.h: Likewise.
21384         * lib/signal.in.h: Likewise.
21385         * lib/spawn.in.h: Likewise.
21386         * lib/stdarg.in.h: Likewise.
21387         * lib/stdint.in.h: Likewise.
21388         * lib/stdio.in.h: Likewise.
21389         * lib/stdlib.in.h: Likewise.
21390         * lib/string.in.h: Likewise.
21391         * lib/strings.in.h: Likewise.
21392         * lib/sys_file.in.h: Likewise.
21393         * lib/sys_ioctl.in.h: Likewise.
21394         * lib/sys_select.in.h: Likewise.
21395         * lib/sys_socket.in.h: Likewise.
21396         * lib/sys_stat.in.h: Likewise.
21397         * lib/sys_time.in.h: Likewise.
21398         * lib/sysexits.in.h: Likewise.
21399         * lib/time.in.h: Likewise.
21400         * lib/unistd.in.h: Likewise.
21401         * lib/wchar.in.h: Likewise.
21402         * lib/wctype.in.h: Likewise.
21403         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21404
21405 2008-10-17  Jim Meyering  <meyering@redhat.com>
21406
21407         ignore-value: don't depend on inline module
21408         * modules/ignore-value (Depends-on): Remove 'inline'.
21409         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21410         Suggestion from Bruno Haible.
21411
21412 2008-10-17  Bruno Haible  <bruno@clisp.org>
21413
21414         New implementation of condition variables for Win32.
21415         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21416         (gl_linked_waitqueue_t): New type.
21417         (gl_cond_t): Use it.
21418         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21419         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21420         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21421         (glthread_cond_init_func, glthread_cond_wait_func,
21422         glthread_cond_timedwait_func, glthread_cond_signal_func,
21423         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21424         Reimplemented on the basis of gl_linked_waitqueue_t.
21425         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21426         gl_waitqueue_t.
21427         (gl_rwlock_t): Update.
21428         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21429
21430 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21431
21432         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21433         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21434
21435 2008-10-17  Jim Meyering  <meyering@redhat.com>
21436
21437         ignore-value: new module
21438         * modules/ignore-value: New file.
21439         * lib/ignore-value.h: New file.
21440         * MODULES.html.sh (Compiler warning management): New section,
21441         just for this module.  More to come.
21442
21443 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21444
21445         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21446         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21447         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21448
21449 2008-10-16  Jim Meyering  <meyering@redhat.com>
21450
21451         openat-die.c: avoid 'no previous prototype' warning
21452         * lib/openat-die.c: Include "openat.h".
21453         Reported by Reuben Thomas <rrt@sc3d.org>.
21454
21455 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21456
21457         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21458         * lib/netdb.in.h: Fix typo.
21459         Reported by Bruno Haible  <bruno@clisp.org>
21460
21461         * lib/netdb.in.h: Include sys/socket.h for platforms without
21462         netdb.h, to get structures like hostent on MinGW.
21463         * modules/netdb (Depends-on): Add sys_socket.
21464
21465 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21466
21467         * modules/netdb, modules/netdb-tests: New file.
21468         * m4/netdb_h.m4: New file.
21469         * lib/netdb.in.h: Add, currently just an empty file pending
21470         definitions.
21471         * tests/test-netdb.c: New file.
21472         * doc/posix-headers/netdb.texi: Mention that we replace it if
21473         needed.
21474         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21475         netdb.
21476
21477 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21478
21479         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21480         with code.
21481
21482 2008-10-13  Bruno Haible  <bruno@clisp.org>
21483
21484         * lib/glthread/cond.c (glthread_cond_wait_func,
21485         glthread_cond_timedwait_func): Add a comment.
21486
21487 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21488
21489         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21490         * tests/test-select.c: Likewise,
21491
21492 2008-10-13  Bruno Haible  <bruno@clisp.org>
21493
21494         * lib/glthread/cond.c (glthread_cond_wait_func,
21495         glthread_cond_timedwait_func): Fix variable name.
21496         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21497
21498 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21499
21500         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21501         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21502         struct sockaddr.sa_len.
21503         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21504
21505 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21506
21507         * build-aux/pmccabe2html: Add css and css_url parameters.
21508
21509 2008-10-12  Bruno Haible  <bruno@clisp.org>
21510
21511         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21512         calling aclx_get.
21513         Reported by Rainer Tammer <tammer@tammer.net>.
21514
21515 2008-10-12  Bruno Haible  <bruno@clisp.org>
21516
21517         Use msvcrt aware primitives for creation/termination of Win32 threads.
21518         * lib/glthread/thread.c: Include <process.h>.
21519         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21520         (wrapper_func): Update signature.
21521         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21522
21523 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21524             Bruno Haible  <bruno@clisp.org>
21525
21526         Provide a Win32 implementation of the 'cond' module.
21527         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21528         * lib/glthread/cond.c (glthread_cond_init_func,
21529         glthread_cond_wait_func, glthread_cond_timedwait_func,
21530         glthread_cond_signal_func, glthread_cond_broadcast_func,
21531         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21532         * modules/cond (Dependencies): Add gettimeofday.
21533
21534 2008-10-11  Bruno Haible  <bruno@clisp.org>
21535
21536         Make sleep work on older versions of mingw.
21537         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21538         only whether it exists.
21539         * doc/posix-functions/sleep.texi: Mention the problem with older
21540         versions of mingw.
21541
21542 2008-10-11  Bruno Haible  <bruno@clisp.org>
21543
21544         New module 'shutdown'.
21545         * modules/shutdown: New file.
21546         * lib/sys_socket.in.h (shutdown): New declaration.
21547         * lib/winsock.c (shutdown): New function.
21548         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21549         GNULIB_SHUTDOWN.
21550         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21551         * doc/posix-functions/shutdown.texi: Document the new module.
21552
21553 2008-10-11  Jim Meyering  <meyering@redhat.com>
21554
21555         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21556
21557 2008-10-11  Bruno Haible  <bruno@clisp.org>
21558
21559         New module 'fclose'.
21560         * modules/fclose: New file.
21561         * lib/stdio.in.h (fclose): New declaration.
21562         * lib/fclose.c: New file.
21563         * m4/fclose.m4: New file.
21564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21565         REPLACE_FCLOSE.
21566         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21567         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21568         REPLACE_FCLOSE.
21569         * modules/close (Depends-on): fclose.
21570         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21571
21572 2008-10-11  Bruno Haible  <bruno@clisp.org>
21573
21574         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21575         set errno and don't call _close.
21576
21577 2008-10-10  Bruno Haible  <bruno@clisp.org>
21578
21579         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21580         ACL, not afterwards. Fixes test failure on Cygwin.
21581
21582 2008-10-09  Ben Pfaff  <blp@gnu.org>
21583
21584         * build-aux/announce-gen: Fix gnulib version related part of usage
21585         message.  Die with a useful error message if no tarballs are
21586         found.
21587
21588 2008-10-10  Jim Meyering  <meyering@redhat.com>
21589
21590         bootstrap: use git's --depth=N option only if it's supported
21591         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21592         recognize the --depth option.  Reported by Pádraig Brady.
21593
21594 2008-10-09  Bruno Haible  <bruno@clisp.org>
21595
21596         New module 'ioctl'.
21597         * modules/ioctl: New file.
21598         * lib/sys_socket.in.h (ioctl): Remove declaration.
21599         * lib/winsock.c: Include <sys/ioctl.h>.
21600         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21601         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21602         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21603         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21604         * doc/posix-functions/ioctl.texi: Mention the new module.
21605
21606 2008-10-09  Bruno Haible  <bruno@clisp.org>
21607
21608         New module 'sys_ioctl'.
21609         * lib/sys_ioctl.in.h: New file.
21610         * m4/sys_ioctl_h.m4: New file.
21611         * modules/sys_ioctl: New file.
21612         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21613
21614 2008-10-09  Bruno Haible  <bruno@clisp.org>
21615
21616         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21617         * lib/winsock.c: Include <stdarg.h>.
21618         (rpl_ioctl): Change to second argument 'int' and then varargs.
21619
21620 2008-10-09  Bruno Haible  <bruno@clisp.org>
21621
21622         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21623         when the sys_socket module is present and the system has <winsock2.h>.
21624
21625 2008-10-09  Bruno Haible  <bruno@clisp.org>
21626
21627         * doc/posix-functions/close.texi: Mention module 'close' instead of
21628         module 'sys_socket'.
21629
21630 2008-10-09  Bruno Haible  <bruno@clisp.org>
21631
21632         * doc/glibc-headers/sys_ioctl.texi: New file.
21633         * doc/gnulib.texi: Include it.
21634
21635 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21636             Bruno Haible  <bruno@clisp.org>
21637
21638         Combine the two replacements of 'close'.
21639         * lib/sys_socket.in.h (close): Define to a reminder to include
21640         <unistd.h>.
21641         (_gl_close_fd_maybe_socket): New declaration.
21642         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21643         * lib/winsock.c (close): Remove undefinition.
21644         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21645         needed for the gnulib module 'close'.
21646         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21647         define to an error symbol or to a warning, if suitable.
21648         * lib/close.c: Include <sys/socket.h>.
21649         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21650         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21651         UNISTD_H_HAVE_WINSOCK2_H.
21652         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21654         UNISTD_H_HAVE_WINSOCK2_H.
21655         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21656         (configure.ac): Set a module indicator.
21657         (Makefile.am): Substitute GNULIB_CLOSE.
21658         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21659         * modules/poll-tests (Depends-on): Add close.
21660         * modules/select-tests (Depends-on): Likewise.
21661
21662 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21663             Bruno Haible  <bruno@clisp.org>
21664
21665         New module 'close'.
21666         * modules/close: New file.
21667         * lib/unistd.in.h (close): Move declaration out of the
21668         FCHDIR_REPLACEMENT scope.
21669         (_gl_unregister_fd): New declaration.
21670         * lib/close.c: New file.
21671         * lib/fchdir.c (rpl_close): Remove function.
21672         * m4/close.m4: New file.
21673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21674         close.
21675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21676         REPLACE_CLOSE.
21677         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21678         REPLACE_CLOSE.
21679         * modules/fchdir (Depends-on): Add close.
21680
21681 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21682             Bruno Haible  <bruno@clisp.org>
21683
21684         * lib/fcntl.in.h (open): Simplify conditionals.
21685         (_gl_register_fd): New declaration.
21686         * lib/fchdir.c (rpl_open): Remove function.
21687         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21688         also.
21689         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21691         open.
21692
21693 2008-10-09  Jim Meyering  <meyering@redhat.com>
21694
21695         GNUmakefile: use the more name-space-friendly "_version"
21696         * top/GNUmakefile (_dummy): Update.
21697         (_version): Rename from "version".
21698
21699 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21700             Bruno Haible  <bruno@clisp.org>
21701
21702         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21703         rpl_close.
21704         (_gl_register_fd): New function, extracted from rpl_open.
21705         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21706         (rpl_open, rpl_opendir): Use _gl_register_fd.
21707
21708 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21709
21710         Fix organization of 'open' replacement.
21711         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21712         (gl_FUNC_OPEN): Use it.
21713         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21714
21715 2008-10-08  Bruno Haible  <bruno@clisp.org>
21716
21717         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21718
21719 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21720
21721         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21722         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21723         listen).
21724
21725 2008-10-08  Eric Blake  <ebb9@byu.net>
21726
21727         GNUmakefile: add 'make version' target
21728         * top/GNUmakefile (_curr-ver): Split version update rules...
21729         (version): ...into a target.
21730
21731 2008-10-07  Bruno Haible  <bruno@clisp.org>
21732
21733         Use a more portable replacement expression for -0.0L.
21734         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21735         instead of -0.0L. Fix m4 quotation.
21736
21737         * tests/test-signbit.c: Include <float.h>.
21738         (minus_zero): New variable.
21739         (test_signbitl): Use minus_zero instead of -zero.
21740         * modules/signbit-tests (Depends-on): Add float.
21741
21742         * tests/test-ceill.c: Include <float.h>.
21743         (zero): Remove variable.
21744         (minus_zero): New variable.
21745         (main): Use minus_zero instead of -zero.
21746         * modules/ceill-tests (Depends-on): Add float.
21747
21748         * tests/test-floorl.c: Include <float.h>.
21749         (zero): Remove variable.
21750         (minus_zero): New variable.
21751         (main): Use minus_zero instead of -zero.
21752         * modules/floorl-tests (Depends-on): Add float.
21753
21754         * tests/test-roundl.c: Include <float.h>.
21755         (zero): Remove variable.
21756         (minus_zero): New variable.
21757         (main): Use minus_zero instead of -zero.
21758         * modules/roundl-tests (Depends-on): Add float.
21759
21760         * tests/test-truncl.c: Include <float.h>.
21761         (zero): Remove variable.
21762         (minus_zero): New variable.
21763         (main): Use minus_zero instead of -zero.
21764         * modules/truncl-tests (Depends-on): Add float.
21765
21766         * tests/test-frexpl.c (zero): Remove variable.
21767         (minus_zero): New variable.
21768         (main): Use minus_zero instead of -zero.
21769         * modules/frexpl-tests (Depends-on): Add float.
21770
21771         * tests/test-isnan.c (zerol): Remove variable.
21772         (minus_zerol): New variable.
21773         (test_long_double): Use minus_zerol instead of -zerol.
21774         * modules/isnan-tests (Depends-on): Add float.
21775
21776         * tests/test-isnanl.h (zero): Remove variable.
21777         (minus_zero): New variable.
21778         (main): Use minus_zero instead of -zero.
21779         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21780         * modules/isnanl-tests (Depends-on): Add float.
21781
21782         * tests/test-ldexpl.c (zero): Remove variable.
21783         (minus_zero): New variable.
21784         (main): Use minus_zero instead of -zero.
21785         * modules/ldexpl-tests (Depends-on): Add float.
21786
21787         * tests/test-snprintf-posix.h (zerol): Remove variable.
21788         (minus_zerol): New variable.
21789         (test_function): Use minus_zerol instead of -zerol.
21790         * modules/snprintf-posix-tests (Depends-on): Add float.
21791         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21792
21793         * tests/test-sprintf-posix.h (zerol): Remove variable.
21794         (minus_zerol): New variable.
21795         (test_function): Use minus_zerol instead of -zerol.
21796         * modules/sprintf-posix-tests (Depends-on): Add float.
21797         * modules/vsprintf-posix-tests (Depends-on): Add float.
21798
21799         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21800         (minus_zerol): New variable.
21801         (test_function): Use minus_zerol instead of -zerol.
21802         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21803
21804         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21805         (minus_zerol): New variable.
21806         (test_function): Use minus_zerol instead of -zerol.
21807         * modules/vasprintf-posix-tests (Depends-on): Add float.
21808
21809 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21810
21811         * MODULES.html.sh (Support for building documentation): Mention
21812         pmccabe2html.  Sort entries.
21813
21814         Add pmccabe2html module, from gnupdf.
21815         * build-aux/pmccabe.css: New file.
21816         * build-aux/pmccabe2html: New file.
21817         * m4/pmccabe2html.m4: New file.
21818         * modules/pmccabe2html: New file.
21819
21820 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21821
21822         flock: new module
21823         * MODULES.html.sh: Add to list of modules.
21824         * lib/flock.c: flock implementation for Windows and Unix systems
21825         which have fcntl.
21826         * doc/glibc-functions/flock.texi: Update documentation.
21827         * lib/sys_file.in.h: <sys/file.h> header file.
21828         * m4/flock.m4: M4 macros.
21829         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21830         * modules/flock: flock module.
21831         * modules/flock-tests: flock tests module.
21832         * modules/sys_file: sys/file.h module.
21833         * tests/test-flock.c: test suite for flock.
21834
21835 2008-10-06  Jim Meyering  <meyering@redhat.com>
21836
21837         bootstrap: check for LT_INIT more portably still ;-)
21838         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21839         Spotted by Bruno Haible.
21840
21841 2008-10-06  Eric Blake  <ebb9@byu.net>
21842
21843         test-signbit: avoid tripping Irix cc bug on -0.0L
21844         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21845         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21846         entire testsuite consistent and avoids an Irix 6.2 bug.
21847
21848 2008-10-05  Bruno Haible  <bruno@clisp.org>
21849             Jim Meyering  <jim@meyering.net>
21850
21851         Add an option for ignoring EPIPE during close_stdout.
21852         * lib/closeout.h: Include <stdbool.h>.
21853         (close_stdout_set_ignore_EPIPE): New declaration.
21854         * lib/closeout.c: Include <stdbool.h>.
21855         (ignore_EPIPE): New variable.
21856         (close_stdout_set_ignore_EPIPE): New function.
21857         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21858         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21859         failure.
21860         * modules/closeout (Depends-on): Add stdbool.
21861
21862 2008-10-05  Bruno Haible  <bruno@clisp.org>
21863
21864         * modules/accept: New file.
21865         * modules/bind: New file.
21866         * modules/connect: New file.
21867         * modules/getpeername: New file.
21868         * modules/getsockname: New file.
21869         * modules/getsockopt: New file.
21870         * modules/listen: New file.
21871         * modules/recv: New file.
21872         * modules/recvfrom: New file.
21873         * modules/send: New file.
21874         * modules/sendto: New file.
21875         * modules/setsockopt: New file.
21876         * modules/socket: New file.
21877         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21878         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21879         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21880         the particular module is requested. Add a link warning when the
21881         particular module is not requested.
21882         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21883         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21884         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21885         the particular module is requested.
21886         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21887         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21888         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21889         * modules/sys_socket (Depends-on): Add link-warning.
21890         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21891         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21892         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21893         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21894         GL_LINK_WARNING.
21895         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21896         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21897         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21898         * doc/posix-functions/getpeername.texi: Mention the new module
21899         'getpeername'.
21900         * doc/posix-functions/getsockname.texi: Mention the new module
21901         'getsockname'.
21902         * doc/posix-functions/getsockopt.texi: Mention the new module
21903         'getsockopt'.
21904         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21905         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21906         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21907         * doc/posix-functions/send.texi: Mention the new module 'send'.
21908         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21909         * doc/posix-functions/setsockopt.texi: Mention the new module
21910         'setsockopt'.
21911         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21912         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21913         listen, connect, accept.
21914         * modules/select-tests (Depends-on): Likewise.
21915
21916 2008-10-05  Bruno Haible  <bruno@clisp.org>
21917
21918         * lib/winsock.c (strerror): Remove unused #undef.
21919         (rpl_close): Remove unused local variable.
21920
21921         * modules/sys_socket (Depends-on); Add errno.
21922
21923 2008-10-05  Bruno Haible  <bruno@clisp.org>
21924
21925         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21926         (select): Add a link warning when the 'select' module is not used.
21927         * modules/sys_select (Depends-on): Add link-warning.
21928         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21929         Suggested by Paolo Bonzini.
21930
21931 2008-10-05  Jim Meyering  <meyering@redhat.com>
21932
21933         bootstrap: check for LT_INIT more portably
21934         * build-aux/bootstrap: Avoid using grep -E, since it's not
21935         portable enough.  Suggestion from Bruno Haible.
21936
21937 2008-10-05  Bruno Haible  <bruno@clisp.org>
21938
21939         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21940         as being fixed by gnulib.
21941
21942 2008-10-05  Bruno Haible  <bruno@clisp.org>
21943
21944         * modules/select-tests: New file, mostly copied from
21945         modules/sys_select-tests.
21946         * tests/test-select.c: New file, mostly copied from
21947         tests/test-sys_select.c.
21948         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21949         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21950         (Makefile.am): Remove test_sys_select_LDADD.
21951
21952         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21953         to an undefined symbol, for an error message.
21954         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21955         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21956         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21957         winsock-select.c here.
21958         * modules/sys_select (Files): Remove lib/winsock-select.c.
21959         (Depends-on): Remove alloca.
21960         (Makefile.am): Substitute GNULIB_SELECT.
21961         * modules/select: New file.
21962         * doc/posix-functions/select.texi: Update.
21963
21964 2008-10-05  Bruno Haible  <bruno@clisp.org>
21965
21966         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21967         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21968         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21969         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21970         getdtablesize.
21971         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21972         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21973
21974 2008-10-05  Bruno Haible  <bruno@clisp.org>
21975
21976         * modules/getdtablesize-tests: New file.
21977         * tests/test-getdtablesize.c: New file.
21978
21979         New module 'getdtablesize'.
21980         * lib/unistd.in.h (getdtablesize): New declaration.
21981         * lib/getdtablesize.c: New file.
21982         * m4/getdtablesize.m4: New file.
21983         * modules/getdtablesize: New file.
21984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21985         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21986         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21987         HAVE_GETDTABLESIZE.
21988         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21989
21990 2008-10-05  Bruno Haible  <bruno@clisp.org>
21991
21992         * modules/sched (Makefile.am): Fix typo.
21993         Reported by Simon Josefsson.
21994
21995 2008-10-05  Jim Meyering  <meyering@redhat.com>
21996
21997         bootstrap: check for LT_INIT, too
21998         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21999         are deprecated.  Suggestion from Ralf Wildenhues.
22000
22001 2008-10-05  Bruno Haible  <bruno@clisp.org>
22002
22003         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
22004         overriding them by ours.
22005         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
22006
22007 2008-10-05  Jim Meyering  <meyering@redhat.com>
22008
22009         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
22010         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
22011         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
22012
22013 2008-10-04  Bruno Haible  <bruno@clisp.org>
22014
22015         * modules/dup2 (License): Change to LGPLv2+.
22016         * modules/sleep (License): Likewise.
22017         * modules/perror (License): Likewise.
22018         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
22019         Blake.
22020         * modules/signal (License): Likewise.
22021         * modules/sigprocmask (License): Likewise.
22022         * modules/raise (License): Change to LGPLv2+, with approval by Jim
22023         Meyering.
22024
22025 2008-10-04  Bruno Haible  <bruno@clisp.org>
22026
22027         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
22028         Reported by Rainer Tammer <tammer@tammer.net>.
22029
22030 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
22031             Bruno Haible  <bruno@clisp.org>
22032
22033         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
22034         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
22035         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
22036
22037 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
22038
22039         filevercmp: new module
22040         * lib/filevercmp.h: New function filevercmp comparing version strings.
22041         * lib/filevercmp.c: Implementation of filevercmp function.
22042         * modules/filevercmp: Module metadata.
22043         * tests/test-filevercmp.c: Unit test for new module.
22044         * modules/filevercmp-tests: Unit test metadata.
22045         * MODULES.html.sh: Add filevercmp module.
22046
22047 2008-10-03  Bruno Haible  <bruno@clisp.org>
22048
22049         * lib/c-ctype.h: Add comment.
22050         Reported by Jim Meyering.
22051
22052 2008-10-02  Bruno Haible  <bruno@clisp.org>
22053
22054         * modules/posix_spawn-internal (Depends-on): Add 'open'.
22055
22056 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22057
22058         * build-aux/bootstrap: Allow renaming bootstrap, and change the
22059         name of bootstrap.conf accordingly.
22060
22061 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22062
22063         * build-aux/bootstrap: Install git-merge-changelog configuration
22064         items into .gitconfig if needed.
22065
22066 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22067
22068         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
22069         git repository, and initialize/update it accordingly.
22070
22071 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
22072
22073         * modules/fsync-tests: New file.
22074         * tests/test-fsync.c: New file.
22075
22076         New module 'fsync'.
22077         * lib/fsync.c: New file.
22078         * m4/fsync.m4: New file.
22079         * modules/fsync: New file.
22080         * lib/unistd.in.h (fsync): New declaration.
22081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
22082         GNULIB_FSYNC and HAVE_FSYNC.
22083         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
22084         * MODULES.html.sh (posix_functions): Add fsync.
22085         * doc/posix-functions/fsync.texi: Mention the new module.
22086
22087 2008-10-02  Jim Meyering  <meyering@redhat.com>
22088
22089         fts.c: sync with similar code from coreutils' remove.c
22090         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
22091         Guard also with "#if defined __linux__", since for now at least,
22092         this code is Linux-kernel-specific.
22093
22094 2008-10-02  Jim Meyering  <meyering@redhat.com>
22095
22096         fts: bug fixes
22097         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
22098         Include <sys/vfs.h>, not <sys/statfs.h>.
22099
22100         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
22101         Include <sys/vfs.h>, not <sys/statfs.h>.
22102
22103 2008-10-01  Bruno Haible  <bruno@clisp.org>
22104
22105         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
22106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
22107         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
22108         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
22109         * doc/posix-functions/posix_spawnp.texi: Likewise.
22110         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
22111         whether posix_spawn actually works.
22112         * m4/pipe.m4 (gl_PIPE): Likewise.
22113         * modules/execute (Files): Add m4/posix_spawn.m4.
22114         * modules/pipe (Files): Add m4/posix_spawn.m4.
22115         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
22116
22117 2008-10-01  Jim Meyering  <meyering@redhat.com>
22118
22119         remove trailing spaces
22120         * NEWS: Likewise.
22121         * lib/poll.c (poll): Likewise.
22122         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
22123         * lib/winsock.c (rpl_close): Likewise.
22124         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
22125         * modules/yield: Likewise.
22126         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
22127         * tests/test-sys_select.c (connect_to_socket): Likewise.
22128
22129         fts.c: adjust a new interface to be more generally useful
22130         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
22131         (fts_build): Adjust caller.
22132
22133 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22134
22135         * modules/cond-tests: New file.
22136         * tests/test-cond.c: New file.
22137
22138 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22139             Bruno Haible  <bruno@clisp.org>
22140
22141         * modules/cond (Dependencies): Add errno, time.
22142         * lib/glthread/cond.h: Include <time.h>.
22143         (gl_cond_define, gl_cond_define_initialized): Use the same definition
22144         across platforms.
22145
22146 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22147             Bruno Haible  <bruno@clisp.org>
22148
22149         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
22150
22151 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22152             Bruno Haible  <bruno@clisp.org>
22153
22154         * modules/tls-tests (Depends-on): Add thread, yield.
22155         (configure.ac): Remove all checks.
22156         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
22157         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22158         gl_thread_self): Remove definitions. Include glthread/thread.h and
22159         glthread/yield.h instead.
22160         (test_tls): Pass an additional NULL argument to gl_thread_join.
22161
22162 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22163             Bruno Haible  <bruno@clisp.org>
22164
22165         * modules/lock-tests (Depends-on): Add thread, yield.
22166         (configure.ac): Remove all checks.
22167         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
22168         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22169         gl_thread_self): Remove definitions. Include glthread/thread.h and
22170         glthread/yield.h instead.
22171         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
22172         additional NULL argument to gl_thread_join.
22173
22174 2008-09-30  Bruno Haible  <bruno@clisp.org>
22175
22176         Fix the Win32 implementation of the 'thread' module.
22177         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
22178         pointer type.
22179         (gl_thread_self): Invoke gl_thread_self_func.
22180         (gl_thread_self_func): New declaration.
22181         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
22182         (do_init_self_key, init_self_key): New functions.
22183         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
22184         Remove some fields.
22185         (running_threads, running_lock): Remove variables.
22186         (get_current_thread_handle): New function.
22187         (gl_thread_self_func, wrapper_func, glthread_create_func,
22188         glthread_join_func, gl_thread_exit_func): Largely rewritten and
22189         simplified.
22190
22191 2008-09-30  Bruno Haible  <bruno@clisp.org>
22192
22193         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
22194         files.
22195
22196 2008-09-30  Jim Meyering  <meyering@redhat.com>
22197
22198         fts.m4: correct the test for statfs.f_type
22199         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
22200         when checking for statfs.f_type.
22201
22202 2008-09-15  Simon Josefsson  <simon@josefsson.org>
22203
22204         tests: avoid some compiler warnings
22205         * tests/test-memchr.c (main): Pass NULL indirectly.
22206         * tests/test-getdate.c (main): Remove unused variable 'ret'.
22207
22208 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
22209
22210         getdate.y: disallow countable dayshifts like "4 yesterday ago"
22211         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
22212         exactly specified dayshifts.
22213         (dayshift): New rule.
22214         (rel): Add dayshift.
22215         (relative_time_table) [tomorrow, yesterday, today, now]:
22216         Use tDAY_SHIFT in place of tDAY_UNIT.
22217         * tests/test-getdate.c: Add tests for now-disallowed countable
22218         dayshifts, e.g., "4 yesterday ago".
22219
22220 2008-09-29  Bruno Haible  <bruno@clisp.org>
22221
22222         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
22223         * tests/test-posix_spawn1.in.sh: Renamed from
22224         tests/test-posix_spawn.in.sh.
22225         * tests/test-posix_spawn2.c: New file.
22226         * tests/test-posix_spawn2.in.sh: New file.
22227         * modules/posix_spawnp-tests (Files): Update.
22228         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
22229
22230 2008-09-29  Bruno Haible  <bruno@clisp.org>
22231
22232         Propagate effects of putenv/setenv/unsetenv to child processes.
22233         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
22234         * lib/pipe.c (create_pipe): Likewise.
22235
22236 2008-09-29  Bruno Haible  <bruno@clisp.org>
22237
22238         Enable use of shell scripts as executables in mingw.
22239         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
22240         run the program as a shell script.
22241         * lib/pipe.c (create_pipe): Likewise.
22242         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
22243         resulting array.
22244
22245 2008-09-29  Eric Blake  <ebb9@byu.net>
22246
22247         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
22248
22249 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
22250
22251         * doc/posix-functions/accept.texi: Update mingw problems.
22252         * doc/posix-functions/bind.texi: Update mingw problems.
22253         * doc/posix-functions/close.texi: Update mingw problems.
22254         * doc/posix-functions/connect.texi: Update mingw problems.
22255         * doc/posix-functions/getpeername.texi: Update mingw problems.
22256         * doc/posix-functions/getsockname.texi: Update mingw problems.
22257         * doc/posix-functions/getsockopt.texi: Update mingw problems.
22258         * doc/posix-functions/ioctl.texi: Update mingw problems.
22259         * doc/posix-functions/listen.texi: Update mingw problems.
22260         * doc/posix-functions/recv.texi: Update mingw problems.
22261         * doc/posix-functions/recvfrom.texi: Update mingw problems.
22262         * doc/posix-functions/select.texi: Update mingw problems.
22263         * doc/posix-functions/send.texi: Update mingw problems.
22264         * doc/posix-functions/sendto.texi: Update mingw problems.
22265         * doc/posix-functions/setsockopt.texi: Update mingw problems.
22266         * doc/posix-functions/socket.texi: Update mingw problems.
22267
22268 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
22269             Bruno Haible  <bruno@clisp.org>
22270
22271         * lib/sys_select.in.h: Include sys/time.h.
22272         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
22273         * modules/sys_select: Depend on sys_time.
22274         * tests/test-sys_select.c: Test that sys/select.h defines struct
22275         timeval fully.
22276
22277 2008-09-29  Bruno Haible  <bruno@clisp.org>
22278
22279         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
22280         * lib/sys_select.in.h: Likewise.
22281
22282 2008-09-29  Bruno Haible  <bruno@clisp.org>
22283
22284         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
22285
22286 2008-09-29  Bruno Haible  <bruno@clisp.org>
22287
22288         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
22289         Set LIBSOCKET instead of augmenting LIBS.
22290         * modules/sockets (Link): New section.
22291         * modules/sockets-tests (test_sockets_LDADD): New variable.
22292         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
22293         * modules/poll-tests (test_poll_LDADD): New variable.
22294         * NEWS: Document the change.
22295
22296 2008-09-29  Bruno Haible  <bruno@clisp.org>
22297
22298         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
22299         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
22300         ARPA_INET_H directly.
22301         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22302
22303 2008-09-28  Bruno Haible  <bruno@clisp.org>
22304
22305         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
22306         from gl_HEADER_SYS_SOCKET.
22307         (gl_HEADER_SYS_SOCKET): Invoke it.
22308         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22309
22310 2008-09-28  Bruno Haible  <bruno@clisp.org>
22311
22312         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
22313         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
22314         Needed on OSF/1 4.0.
22315
22316 2008-09-28  Bruno Haible  <bruno@clisp.org>
22317
22318         Override open more carefully.
22319         * lib/open.c (orig_open): New function.
22320         (rpl_open): Use orig_open instead of open.
22321         * lib/fcntl.in.h: Add special invocation convention.
22322         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
22323         (gl_FUNC_OPEN): Invoke it.
22324
22325         Override freopen more carefully.
22326         * lib/freopen.c (orig_freopen): New function.
22327         (rpl_freopen): Use orig_freopen instead of freopen.
22328         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
22329         (gl_FUNC_FREOPEN): Invoke it.
22330
22331         Override fopen more carefully.
22332         * lib/fopen.c (orig_fopen): New function.
22333         (rpl_fopen): Use orig_fopen instead of fopen.
22334         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22335         (gl_FUNC_FOPEN): Invoke it.
22336         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22337
22338 2008-09-28  Bruno Haible  <bruno@clisp.org>
22339
22340         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22341         SIGPIPE.
22342
22343 2008-09-28  Bruno Haible  <bruno@clisp.org>
22344
22345         * tests/test-sigaction.c (handler, main): Disable the check whether
22346         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22347         glibc systems with LinuxThreads.
22348
22349 2008-09-28  Bruno Haible  <bruno@clisp.org>
22350
22351         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22352
22353         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22354         with AIX xlc.
22355         * lib/fcntl.in.h (open): Likewise.
22356         Reported by Rainer Tammer <tammer@tammer.net>.
22357
22358 2008-09-28  Bruno Haible  <bruno@clisp.org>
22359
22360         * modules/posix_spawnp-tests: New file.
22361         * tests/test-posix_spawn.c: New file.
22362         * tests/test-posix_spawn.in.sh: New file.
22363
22364         New module 'posix_spawnp'.
22365         * modules/posix_spawnp: New file.
22366         * lib/spawnp.c: New file, from GNU libc with modifications.
22367         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22368
22369         New module 'posix_spawn'.
22370         * modules/posix_spawn: New file.
22371         * lib/spawn.c: New file, from GNU libc with modifications.
22372         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22373
22374         New module 'posix_spawnattr_destroy'.
22375         * modules/posix_spawnattr_destroy: New file.
22376         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22377         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22378         module.
22379
22380         New module 'posix_spawnattr_setsigmask'.
22381         * modules/posix_spawnattr_setsigmask: New file.
22382         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22383         modifications.
22384         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22385         new module.
22386
22387         New module 'posix_spawnattr_getsigmask'.
22388         * modules/posix_spawnattr_getsigmask: New file.
22389         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22390         modifications.
22391         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22392         new module.
22393
22394         New module 'posix_spawnattr_setsigdefault'.
22395         * modules/posix_spawnattr_setsigdefault: New file.
22396         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22397         modifications.
22398         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22399         new module.
22400
22401         New module 'posix_spawnattr_getsigdefault'.
22402         * modules/posix_spawnattr_getsigdefault: New file.
22403         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22404         modifications.
22405         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22406         new module.
22407
22408         New module 'posix_spawnattr_setschedpolicy'.
22409         * modules/posix_spawnattr_setschedpolicy: New file.
22410         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22411         modifications.
22412         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22413         new module.
22414
22415         New module 'posix_spawnattr_getschedpolicy'.
22416         * modules/posix_spawnattr_getschedpolicy: New file.
22417         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22418         modifications.
22419         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22420         new module.
22421
22422         New module 'posix_spawnattr_setschedparam'.
22423         * modules/posix_spawnattr_setschedparam: New file.
22424         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22425         modifications.
22426         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22427         new module.
22428
22429         New module 'posix_spawnattr_getschedparam'.
22430         * modules/posix_spawnattr_getschedparam: New file.
22431         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22432         modifications.
22433         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22434         new module.
22435
22436         New module 'posix_spawnattr_setpgroup'.
22437         * modules/posix_spawnattr_setpgroup: New file.
22438         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22439         modifications.
22440         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22441         module.
22442
22443         New module 'posix_spawnattr_getpgroup'.
22444         * modules/posix_spawnattr_getpgroup: New file.
22445         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22446         modifications.
22447         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22448         module.
22449
22450         New module 'posix_spawnattr_setflags'.
22451         * modules/posix_spawnattr_setflags: New file.
22452         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22453         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22454         module.
22455
22456         New module 'posix_spawnattr_getflags'.
22457         * modules/posix_spawnattr_getflags: New file.
22458         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22459         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22460         module.
22461
22462         New module 'posix_spawnattr_init'.
22463         * modules/posix_spawnattr_init: New file.
22464         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22465         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22466         module.
22467
22468         New module 'posix_spawn_file_actions_destroy'.
22469         * modules/posix_spawn_file_actions_destroy: New file.
22470         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22471         modifications.
22472         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22473         the new module.
22474
22475         New module 'posix_spawn_file_actions_addopen'.
22476         * modules/posix_spawn_file_actions_addopen: New file.
22477         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22478         modifications.
22479         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22480         the new module.
22481
22482         New module 'posix_spawn_file_actions_adddup2'.
22483         * modules/posix_spawn_file_actions_adddup2: New file.
22484         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22485         modifications.
22486         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22487         the new module.
22488
22489         New module 'posix_spawn_file_actions_addclose'.
22490         * modules/posix_spawn_file_actions_addclose: New file.
22491         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22492         modifications.
22493         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22494         the new module.
22495
22496         New module 'posix_spawn_file_actions_init'.
22497         * modules/posix_spawn_file_actions_init: New file.
22498         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22499         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22500         new module.
22501
22502         New module 'posix_spawn-internal'.
22503         * modules/posix_spawn-internal: New file.
22504         * lib/spawn_int.h: New file, from GNU libc with modifications.
22505         * lib/spawni.c: New file, from GNU libc with modifications.
22506         * m4/posix_spawn.m4: New file.
22507
22508         New module 'spawn'.
22509         * modules/spawn: New file.
22510         * lib/spawn.in.h: New file, from GNU libc with modifications.
22511         * m4/spawn_h.m4: New file.
22512         * doc/posix-headers/spawn.texi: Mention the new module.
22513
22514 2008-09-28  Bruno Haible  <bruno@clisp.org>
22515
22516         * modules/sched-tests: New file.
22517         * tests/test-sched.c: New file.
22518
22519         New module 'sched'.
22520         * modules/sched: New file.
22521         * lib/sched.in.h: New file.
22522         * m4/sched_h.m4: New file.
22523         * doc/posix-headers/sched.texi: Mention the new module.
22524
22525 2008-09-27  Eric Blake  <ebb9@byu.net>
22526
22527         Fix previous patch, and tweak references to $0.
22528         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22529         (func_version, func_gnulib_dir): Don't call this program
22530         gnulib-tool.
22531         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22532         with using $0 in function.
22533         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22534         (func_fatal_error): Reuse the name the user invoked us with.
22535
22536 2008-09-27  Bruno Haible  <bruno@clisp.org>
22537
22538         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22539         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22540         (gl_ICONV_H): Not here.
22541         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22542         instead of assigning ICONV_H directly.
22543
22544         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22545         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22546         WCHAR_H directly.
22547
22548 2008-09-27  Bruno Haible  <bruno@clisp.org>
22549
22550         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22551         * modules/arpa_inet (Depends-on): Add link-warning.
22552         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22553         * modules/unistd (Makefile.am): Likewise.
22554
22555 2008-09-26  Bruno Haible  <bruno@clisp.org>
22556
22557         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22558         variables.
22559         (func_version): Essentially copied from gnulib-tool.
22560         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22561         func_readlink): Copied from gnulib-tool.
22562
22563 2008-09-26  Bruno Haible  <bruno@clisp.org>
22564
22565         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22566         invoking git-version-gen.
22567
22568 2008-09-26  Bruno Haible  <bruno@clisp.org>
22569
22570         * posix-modules: Update to directory names changed on 2008-01-19.
22571         Remove commas in output before splitting into words. No more need to
22572         avoid 'ftruncate' since 2007-02-19.
22573
22574 2008-09-26  Bruno Haible  <bruno@clisp.org>
22575
22576         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22577
22578 2008-09-26  Bruno Haible  <bruno@clisp.org>
22579
22580         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22581         * modules/fwriteerror (Depends-on): Add errno.
22582
22583 2008-09-26  Bruno Haible  <bruno@clisp.org>
22584
22585         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22586         * tests/test-vc-list-files-cvs.sh: Likewise.
22587
22588 2008-09-26  Bruno Haible  <bruno@clisp.org>
22589
22590         * doc/posix-headers/sys_resource.texi: Reorder items.
22591
22592 2008-09-26  Jim Meyering  <meyering@redhat.com>
22593
22594         fts: tweak inode comparison function
22595         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22596         inode numbers, as documented.
22597
22598         fts: sort dirent entries on inode number before traversing
22599         This avoids a quadratic, seek-related performance penalty when
22600         operating on a directory containing many entries (measurable at 10k;
22601         3.5 hours at 2 million entries with a cold cache) on certain types
22602         of file systems, including ext3 and ext4, but not tmpfs.
22603         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22604         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22605         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22606         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22607         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22608         (fts_build): Set the stat.st_ino member from D_INO.
22609         If it is likely to be useful, sort dirent entries on inode number.
22610
22611         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22612         and the struct statfs.f_type member.
22613         * modules/fts (Depends-on): Add d-ino.
22614
22615 2008-09-26  Bruno Haible  <bruno@clisp.org>
22616
22617         * modules/sigpipe-die (Depends-on): Add sigpipe.
22618
22619         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22620         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22621         and GNULIB_STDIO_H_SIGPIPE are set.
22622         * lib/stdio-write.c: New file.
22623         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22624         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22625         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22626         REPLACE_STDIO_WRITE_FUNCS.
22627         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22628         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22629         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22630         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22631         * modules/stdio (Files): Add lib/stdio-write.c.
22632         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22633         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22634         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22635         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22636         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22637         REPLACE_FPRINTF_POSIX.
22638         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22639         REPLACE_PRINTF_POSIX.
22640         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22641         REPLACE_VFPRINTF_POSIX.
22642         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22643         REPLACE_VPRINTF_POSIX.
22644         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22645         SIGPIPE issue.
22646         * doc/posix-functions/fputc.texi: Likewise.
22647         * doc/posix-functions/fputs.texi: Likewise.
22648         * doc/posix-functions/fwrite.texi: Likewise.
22649         * doc/posix-functions/printf.texi: Likewise.
22650         * doc/posix-functions/putc.texi: Likewise.
22651         * doc/posix-functions/putchar.texi: Likewise.
22652         * doc/posix-functions/puts.texi: Likewise.
22653         * doc/posix-functions/vfprintf.texi: Likewise.
22654         * doc/posix-functions/vprintf.texi: Likewise.
22655
22656         * modules/safe-write (Depends-on): Add write.
22657
22658         * modules/sigpipe-tests: New file.
22659         * tests/test-sigpipe.c: New file.
22660         * tests/test-sigpipe.sh: New file.
22661
22662         * modules/write: New file.
22663         * lib/unistd.in.h: Include <sys/types.h>.
22664         (write): New declaration.
22665         * lib/write.c: New file.
22666         * m4/write.m4: New file.
22667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22668         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22669         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22670         GNULIB_WRITE, REPLACE_WRITE.
22671         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22672         and the SIGPIPE issue.
22673
22674         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22675         (raise): New declaration.
22676         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22677         (ext_signal): New function.
22678         (rpl_raise): New function.
22679         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22680         GNULIB_SIGNAL_H_SIGPIPE.
22681         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22682         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22683
22684         * modules/sigpipe: New file.
22685         * m4/sigpipe.m4: New file.
22686
22687 2008-09-25  Derek Price  <derek@ximbiot.com>
22688             Bruno Haible  <bruno@clisp.org>
22689
22690         * gnulib-tool (func_import): Report all license incompatibilities, not
22691         just the first one.
22692
22693 2008-09-25  Bruno Haible  <bruno@clisp.org>
22694
22695         * gnulib-tool (func_import): When computing the edits, consider not
22696         only the Makefile.ams that exist but also those that will be generated.
22697
22698 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22699
22700         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22701         fixes gnulib-tool --test warning about duplicate dependency.
22702
22703 2008-09-25  Bruno Haible  <bruno@clisp.org>
22704
22705         * gnulib-tool: Don't ask the user to perform edits in the generated
22706         Makefile.ams.
22707         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22708         apply to the Makefile.am being generated.
22709         (func_emit_tests_Makefile_am): Execute edits that apply to the
22710         Makefile.am being generated.
22711         (func_import): Setup list of Makefile.am edits before emitting the
22712         Makefile.ams, not at the end.
22713         (func_create_testdir): Update.
22714         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22715
22716 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22717
22718         * gnulib-tool (func_import): Store the --tests-base option in the
22719         comment in gnulib-cache.m4.
22720
22721 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22722
22723         * NEWS: Document increased portability that sys_select now provides.
22724
22725         * lib/sys_select.in.h: Install select wrapper.
22726         * lib/sys_socket.in.h: Use more descriptive name when there is no
22727         select wrapper.
22728         * lib/winsock-select.c: New.
22729         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22730         Require gl_HEADER_SYS_SOCKET.
22731         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22732         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22733         * tests/test-sys_select.c: Add functional tests.
22734
22735 2008-09-24  Eric Blake  <ebb9@byu.net>
22736
22737         open, fopen: close fd leak in last patch
22738         * lib/open.c (rpl_open): Close fd before returning error.
22739         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22740         * doc/posix-functions/open.texi (open): Document that Irix also
22741         has the bug.
22742         * doc/posix-functions/fopen.texi (fopen): Likewise.
22743         Reported by Paolo Bonzini.
22744
22745 2008-09-24  Bruno Haible  <bruno@clisp.org>
22746
22747         Ensure that a filename ending in a slash cannot be used to access a
22748         non-directory.
22749         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22750         to check whether it's really a directory.
22751         * lib/fopen.c: Include fcntl.h, unistd.h.
22752         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22753         and fdopen().
22754         * modules/fopen (Depends-on): Add unistd.
22755         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22756         * tests/test-fopen.c (main): Likewise.
22757         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22758         * doc/posix-functions/fopen.texi: Likewise.
22759         Reported by Eric Blake.
22760
22761 2008-09-23  Eric Blake  <ebb9@byu.net>
22762
22763         c-stack: avoid compiler optimizations when provoking overflow
22764         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22765         recursion harder to optimize, to ensure a stack overflow occurs.
22766         * tests/test-c-stack.c (recurse): Likewise.
22767         Borrowed from libsigsegv.
22768
22769         c-stack: work around Irix sigaltstack bug
22770         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22771         whether sigaltstack uses wrong end of stack_t (copied in part from
22772         libsigsegv).
22773         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22774         Irix bug, without requiring an over-allocation.
22775         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22776         bug.
22777
22778         fopen: document mingw bug on directories
22779         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22780         not allowing a stream visiting a directory, even though reading
22781         from such a stream is not portable.
22782
22783 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22784
22785         * lib/poll.c: Rewrite.
22786         * modules/poll: Depend on alloca.
22787
22788 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22789
22790         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22791         instead define prototypes for a full set of wrappers.  Ensure
22792         that Cygwin does not use the compatibility code, which is only
22793         for MinGW.
22794         * lib/winsock.c: New.
22795         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22796         * modules/sys_socket: Add lib/winsock.c.
22797
22798         * modules/poll-tests: Add errno and perror.
22799         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22800
22801 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22802
22803         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22804
22805 2008-09-23  Bruno Haible  <bruno@clisp.org>
22806
22807         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22808         * doc/glibc-functions/*: Likewise.
22809
22810 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22811
22812         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22813         success.
22814
22815 2008-09-22  Eric Blake  <ebb9@byu.net>
22816             Bruno Haible  <bruno@clisp.org>
22817
22818         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22819         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22820         supply %A but mishandle pseudo-NaN.
22821         Reported by Simon Josefsson.
22822
22823 2008-09-21  Bruno Haible  <bruno@clisp.org>
22824
22825         * tests/test-lock.c (main): Tweak skip message.
22826         * tests/test-tls.c (main): Likewise.
22827
22828 2008-09-21  Bruno Haible  <bruno@clisp.org>
22829
22830         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22831         whether 'struct sigaction' has sa_sigaction here...
22832         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22833         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22834
22835 2008-09-21  Bruno Haible  <bruno@clisp.org>
22836
22837         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22838         section.
22839         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22840         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22841         the new section.
22842         (Support for obsolete systems lacking POSIX:2001): New section.
22843         (String handling <string.h>): Move strdup to the new section.
22844         Suggested by Simon Josefsson and Paolo Bonzini.
22845
22846 2008-09-21  Bruno Haible  <bruno@clisp.org>
22847
22848         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22849         exponents in %e and %g results on 'long double'. Needed for mingw's
22850         improved *printf functions.
22851         * tests/test-vasprintf-posix.c (test_function): Likewise.
22852         * tests/test-snprintf-posix.h (test_function): Likewise.
22853         * tests/test-sprintf-posix.h (test_function): Likewise.
22854         Reported by Eric Blake.
22855
22856 2008-09-21  Bruno Haible  <bruno@clisp.org>
22857
22858         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22859         * tests/test-sprintf-posix.h (test_function): Likewise.
22860
22861 2008-09-21  Bruno Haible  <bruno@clisp.org>
22862
22863         * modules/getpass (Depends-on): Add strdup-posix.
22864
22865         New module 'strdup-posix'.
22866         * modules/strdup-posix: New file.
22867         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22868         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22870         REPLACE_STRDUP.
22871         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22872         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22873         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22874         strdup-posix.
22875
22876         * modules/strdup (Depends-on): Remove malloc-posix.
22877
22878 2008-09-20  Bruno Haible  <bruno@clisp.org>
22879
22880         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22881         Wildenhues.
22882
22883 2008-09-20  Bruno Haible  <bruno@clisp.org>
22884
22885         Ensure that wint_t gets defined on IRIX 5.3.
22886         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22887         * lib/wctype.in.h (wint_t): Likewise.
22888         (__wctype_wint_t): Remove type.
22889         (isw*): Use wint_t instead of __wctype_wint_t.
22890         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22891         * modules/wchar (Files): Add m4/wint_t.m4.
22892         (Makefile.am): Substitute HAVE_WINT_T.
22893         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22894         * tests/test-wctype.c: Check that wint_t is defined.
22895         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22896         * doc/posix-headers/wctype.texi: Likewise.
22897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22898
22899 2008-09-18  Bruno Haible  <bruno@clisp.org>
22900
22901         * gnulib-tool (func_exit): Update comment.
22902
22903 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22904
22905         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22906         assumes strdup exists and does not depend on strdup to return
22907         ENOMEM on out of memory conditions.
22908
22909 2008-09-18  Bruno Haible  <bruno@clisp.org>
22910
22911         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22912         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22913         digits for the exponent.
22914
22915 2008-09-18  Jim Meyering  <meyering@redhat.com>
22916             Bruno Haible  <bruno@clisp.org>
22917
22918         * lib/vasnprintf.c (decimal_point_char): Define also if
22919         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22920
22921 2008-09-16  Bruno Haible  <bruno@clisp.org>
22922         and Eric Blake  <ebb9@byu.net>
22923
22924         vasnprintf: support Irix 5.3
22925         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22926         that mishandle long double infinity.
22927         Reported by Tom G. Christensen.
22928
22929 2008-09-16  Bruno Haible  <bruno@clisp.org>
22930
22931         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22932         Solaris 9.
22933         * doc/glibc-functions/alphasort.texi: Likewise.
22934         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22935
22936 2008-09-16  Jim Meyering  <meyering@redhat.com>
22937
22938         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22939         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22940         a umask modification leak out of a subshell.  Otherwise, the
22941         opensolaris /bin/sh would be accepted and thus cause unwarranted
22942         failures in the coreutils test suite.
22943
22944 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22945
22946         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22947         to succeed.
22948
22949 2008-09-16  Jim Meyering  <meyering@redhat.com>
22950
22951         avoid spurious test failure when library is built without ACL support
22952         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22953         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22954         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22955         * tests/test-copy-acl.sh: Likewise.
22956
22957 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22958
22959         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22960         based on character occurrence counts.
22961
22962 2008-09-15  Eric Blake  <ebb9@byu.net>
22963
22964         tests: avoid some compiler warnings
22965         * tests/test-memchr.c (main): Pass NULL indirectly.
22966         * tests/test-closein.c (main): Avoid unused variable.
22967
22968 2008-09-15  Bruno Haible  <bruno@clisp.org>
22969
22970         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22971         are missing on OpenBSD 4.0 individually.
22972         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22973
22974 2008-09-15  Bruno Haible  <bruno@clisp.org>
22975
22976         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22977         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22978         * doc/posix-functions/perror.texi: Likewise.
22979         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22980         is missing.
22981         Reported by Eric Blake.
22982
22983         * lib/errno.in.h: Use replacement values >= 2000.
22984         Reported by Eric Blake.
22985
22986 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22987
22988         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22989         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22990         limit.
22991         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22992         compareseq was aborted.
22993
22994 2008-09-14  Bruno Haible  <bruno@clisp.org>
22995
22996         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22997         yvec_edit_count.
22998         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22999         (fstrcmp_bounded): Simplify result computation accordingly.
23000
23001 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23002
23003         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
23004         (fstrcmp): Define in terms of fstrcmp_bounded.
23005         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
23006         lower_bound argument.
23007         Return quickly if the result is certainly < lower_bound.
23008         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
23009
23010 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23011
23012         * lib/diffseq.h (EARLY_ABORT): New macro.
23013         (compareseq): Change return type to bool. Return true when EARLY_ABORT
23014         evaluates to true.
23015
23016 2008-09-14  Bruno Haible  <bruno@clisp.org>
23017
23018         * modules/perror-tests: New file.
23019         * tests/test-perror.sh: New file.
23020         * tests/test-perror.c: New file.
23021
23022         New module 'perror'.
23023         * lib/stdio.in.h (perror): New declaration.
23024         * lib/perror.c: New file.
23025         * m4/perror.m4: New file.
23026         * modules/perror: New file.
23027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
23028         * doc/posix-functions/perror.texi: Mention the perror module.
23029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
23030         REPLACE_PERROR.
23031         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
23032         REPLACE_PERROR.
23033
23034 2008-09-14  Bruno Haible  <bruno@clisp.org>
23035
23036         * modules/stdio (Makefile.am): Reorder to match the order in
23037         lib/stdio.in.h.
23038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23039
23040 2008-09-13  Bruno Haible  <bruno@clisp.org>
23041
23042         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
23043
23044 2008-09-13  Bruno Haible  <bruno@clisp.org>
23045
23046         Extend strerror to cover the added errno values.
23047         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
23048         (rpl_strerror): Provide error messages for the added errno values and
23049         for the WSA* values.
23050         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
23051         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
23052         strerror.
23053         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
23054         * modules/strerror (Depends-on): Add errno.
23055         * doc/posix-functions/strerror.texi: Document the change.
23056         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
23057         and EOVERFLOW.
23058
23059 2008-09-13  Bruno Haible  <bruno@clisp.org>
23060
23061         * modules/EOVERFLOW: Remove file.
23062         * m4/eoverflow.m4: Remove file.
23063         * modules/EOVERFLOW-tests: Remove file.
23064         * tests/test-EOVERFLOW.c: Remove file.
23065         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
23066         * modules/ftell (Depends-on): Likewise.
23067         * modules/getdelim (Depends-on): Likewise.
23068         * modules/getugroups (Depends-on): Likewise.
23069         * modules/poll (Depends-on): Likewise.
23070         * modules/snprintf (Depends-on): Likewise.
23071         * modules/sprintf-posix (Depends-on): Likewise.
23072         * modules/vasnprintf (Depends-on): Likewise.
23073         * modules/vasprintf (Depends-on): Likewise.
23074         * modules/vfprintf-posix (Depends-on): Likewise.
23075         * modules/vsnprintf (Depends-on): Likewise.
23076         * modules/vsprintf-posix (Depends-on): Likewise.
23077         * modules/xvasprintf (Depends-on): Likewise.
23078         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23079         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
23080         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
23081         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
23082         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23083         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
23084         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
23085         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
23086         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23087         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
23088         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
23089         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
23090         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23091         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
23092         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
23093         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
23094         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23095         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
23096         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
23097         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
23098         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23099         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
23100         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
23101         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
23102         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
23103         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23104         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
23105         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
23106         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
23107         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
23108         * MODULES.html.sh: Remove EOVERFLOW.
23109         * NEWS: Mention the change.
23110
23111 2008-09-13  Bruno Haible  <bruno@clisp.org>
23112
23113         * modules/errno-tests: New file.
23114         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
23115
23116         * lib/errno.in.h: New file.
23117         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
23118         * modules/errno: New file.
23119         * doc/posix-headers/errno.texi: Update documentation.
23120         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
23121
23122 2008-09-13  Bruno Haible  <bruno@clisp.org>
23123
23124         * tests/test-poll.c: Use #if for native Windows, rather than testing
23125         __MSVCRT__.
23126
23127 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23128             Bruno Haible  <bruno@clisp.org>
23129
23130         * lib/glob.c: Don't include <pwd.h> on native Windows.
23131         (WINDOWS32): New macro.
23132         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
23133
23134 2008-09-13  Bruno Haible  <bruno@clisp.org>
23135
23136         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
23137         (ETIMEDOUT): Remove macro.
23138         (glthread_cond_timedwait_multithreaded): New declaration.
23139         (glthread_cond_timedwait): Use it.
23140         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
23141         (glthread_cond_timedwait_multithreaded): New function.
23142
23143 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23144
23145         * modules/poll-tests: Do not check for io.h.
23146         * tests/test-poll.c: Check for __MSVCRT__ instead.
23147
23148 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23149
23150         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
23151         * modules/poll-tests: Add inet_pton, stdbool, sockets.
23152         * tests/test-poll.c: Use them.  Use _pipe on Windows.
23153
23154 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23155
23156         * modules/poll-tests: New.
23157         * tests/test-poll.c: New.
23158
23159 2008-09-12  Eric Blake  <ebb9@byu.net>
23160
23161         frexp: test for NetBSD failure on -0.0
23162         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
23163         not all, bugs from NetBSD 3.0 have been fixed.
23164         * doc/posix-functions/frexp.texi (frexp): Document bug.
23165         Reported by Thomas Klausner.
23166
23167         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
23168         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
23169         literal -0.0.
23170         Reported by Jonathan C. Patschke <jp@centtech.com>.
23171
23172 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23173
23174         * lib/glthread/cond.h: Use dummy implementation also if
23175         USE_WIN32_THREADS.
23176
23177 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23178
23179         * modules/fnmatch-posix (License): Change to LGPLv2+.
23180         * modules/fnmatch-gnu (License): Likewise.
23181
23182 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23183
23184         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
23185
23186 2008-09-11  Jim Meyering  <meyering@redhat.com>
23187
23188         * users.txt: Add gtk-vnc.
23189
23190 2008-09-08  Simon Josefsson  <simon@josefsson.org>
23191
23192         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
23193         rotate amounts.
23194
23195         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
23196         required for 16-bit and 8-bit rotates.
23197         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
23198         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
23199         UINT8_MAX instead of hard-coded constants.
23200         Suggested by Paul Eggert.
23201
23202 2008-09-07  Bruno Haible  <bruno@clisp.org>
23203
23204         * tests/test-striconveh.c (main): Check behaviour when converting from
23205         UTF-7.
23206
23207         Make striconveh work better with stateful encodings.
23208         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
23209         that iconv does not increment the inptr when returning -1/EINVAL.
23210
23211 2008-09-07  Bruno Haible  <bruno@clisp.org>
23212
23213         * build-aux/config.rpath: Update according to libtool-2.2.6.
23214         * build-aux/config.libpath: Likewise.
23215
23216 2008-09-06  Bruno Haible  <bruno@clisp.org>
23217
23218         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
23219         * lib/freadptr.c (freadptr): Likewise.
23220         * lib/freadseek.c (freadptrinc): Likewise.
23221         Reported by Simon Josefsson.
23222
23223 2008-09-06  Bruno Haible  <bruno@clisp.org>
23224
23225         * modules/freadptr (License): Change to LGPLv2+.
23226         * modules/freadseek (License): Likewise.
23227         Suggested by Eric Blake.
23228
23229         * modules/memchr2 (License): Change to LGPLv2+.
23230         Approved by Eric Blake.
23231
23232 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23233             Bruno Haible  <bruno@clisp.org>
23234
23235         Make gnulib-tool work with native 'sed' on AIX.
23236         * gnulib-tool (sed_noop): New variable.
23237         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
23238         func_add_or_update, func_create_testdir): Use it to initialize sed
23239         script variables.
23240         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23241
23242 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
23243             Bruno Haible  <bruno@clisp.org>
23244
23245         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
23246         also works after #include directives.
23247
23248 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
23249
23250         getdate.y: reject an out-of-range timezone value
23251         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
23252         the range [-24...+24].  When specified with only one or two digits,
23253         * tests/test-getdate.c: Tests for the fix.
23254         * doc/getdate.texi: Document this change.
23255
23256 2008-09-03  Bruno Haible  <bruno@clisp.org>
23257
23258         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
23259
23260 2008-09-02  Simon Josefsson  <simon@josefsson.org>
23261
23262         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
23263         <bruce.korb@gmail.com> with ideas from Ben Pfaff
23264         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
23265         Blake <ebb9@byu.net>.
23266
23267         * tests/test-bitrotate.c: Add more test vectors.
23268
23269 2008-09-02  Eric Blake  <ebb9@byu.net>
23270
23271         vasnprintf-posix: handle large precision via %.*d
23272         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
23273         when handling it ourselves.
23274         * tests/test-vasnprintf-posix.c (test_function): Add test.
23275         * tests/test-snprintf-posix.h (test_function): Likewise.
23276         * tests/test-sprintf-posix.h (test_function): Likewise.
23277         * tests/test-vasprintf-posix.c (test_function): Likewise.
23278         Reported by Alain Guibert.
23279
23280 2008-09-01  Eric Blake  <ebb9@byu.net>
23281
23282         c-stack: make configure-time check more robust
23283         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
23284         successful sigaction call.
23285         Reported by Tom G. Christensen.
23286
23287 2008-09-01  Bruno Haible  <bruno@clisp.org>
23288
23289         New module 'findprog-lgpl'.
23290         * modules/findprog-lgpl: New file.
23291         * lib/findprog-lgpl.c: New file.
23292         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
23293         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
23294         to decide whether to use strdup or xstrdup, concatenated_filename or
23295         xconcatenated_filename.
23296
23297 2008-09-01  Bruno Haible  <bruno@clisp.org>
23298
23299         Split module 'concat-filename' into 'concat-filename' (LGPL) and
23300         'xconcat-filename' (GPL).
23301         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
23302         (License): Change to LGPLv2+.
23303         * modules/xconcat-filename: New file.
23304         * lib/concat-filename.h (concatenated_filename): Change specification.
23305         (xconcatenated_filename): New declaration.
23306         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
23307         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
23308         memory situations.
23309         * lib/xconcat-filename.c: New file.
23310         * NEWS: Mention the change.
23311         * lib/findprog.c: Include concat-filename.h, not filename.h.
23312         (find_in_path): Use xconcatenated_filename instead of
23313         concatenated_filename.
23314         * lib/javacomp.c: Include concat-filename.h, not filename.h.
23315         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23316         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23317         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23318         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
23319         instead of concatenated_filename.
23320         * lib/javaexec.c: Include concat-filename.h, not filename.h.
23321         (execute_java_class): Use xconcatenated_filename instead of
23322         concatenated_filename.
23323         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
23324         * modules/javacomp (Depends-on): Likewise.
23325         * modules/javaexec (Depends-on): Likewise.
23326
23327 2008-09-01  Bruno Haible  <bruno@clisp.org>
23328
23329         Split module 'filename' into 'filename' and 'concat-filename'.
23330         * modules/filename: Keep only lib/filename.h.
23331         (License): Change to LGPLv2+.
23332         * modules/concat-filename: New file, extracted from modules/filename.
23333         * lib/filename.h (concatenated_filename): Remove declaration.
23334         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23335         * lib/concat-filename.c: Include concat-filename.h.
23336         * NEWS: Mention the change.
23337
23338 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23339
23340         * lib/bitrotate.h (rotl8, rotr8): Add.
23341
23342         * modules/bitrotate (configure.ac): Need
23343         AC_REQUIRE([AC_C_INLINE]).
23344         (Description): Mention stdint.h.  Reported by Bruno Haible
23345         <bruno@clisp.org>.
23346
23347         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23348         Paolo Bonzini <bonzini@gnu.org>.
23349
23350 2008-08-31  Bruno Haible  <bruno@clisp.org>
23351
23352         Assume Solaris specific bi-arch conventions on Solaris systems.
23353         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23354         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23355         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23356         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23357         like acl_libdirstem.
23358         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23359         acl_libdirstem.
23360         * NEWS: Mention the change.
23361         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23362
23363 2008-08-31  Jim Meyering  <meyering@redhat.com>
23364
23365         * lib/strftime.h: Add comments describing the two added arguments.
23366
23367         remove duplicate #include directives
23368         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23369         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23370
23371 2008-08-31  Bruno Haible  <bruno@clisp.org>
23372
23373         New module 'sigpipe-die'.
23374         * modules/sigpipe-die: New file.
23375         * lib/sigpipe-die.h: New file.
23376         * lib/sigpipe-die.c: New file.
23377         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23378
23379 2008-08-31  Bruno Haible  <bruno@clisp.org>
23380
23381         Don't override previously installed signal handlers.
23382         * lib/fatal-signal.c (saved_sigactions): New variable.
23383         (uninstall_handlers): Reset the signal to the saved handler, not
23384         to SIG_DFL (except when ignored).
23385         (install_handlers): Save the previous handlers.
23386
23387 2008-08-30  Bruno Haible  <bruno@clisp.org>
23388
23389         * gnulib-tool (func_reset_sigpipe): New function.
23390         (func_get_automake_snippet, func_modules_transitive_closure,
23391         func_import): Invoke it before a join command that reads from stdin,
23392         to avoid "echo: write error: Broken pipe" error messages on stderr.
23393         Reported by Sam Steingold <sds@gnu.org>.
23394
23395 2008-08-30  Bruno Haible  <bruno@clisp.org>
23396
23397         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23398         Code copied from m4/open.m4.
23399         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23400         access and the filename ends in a slash. Code copied from lib/open.c.
23401         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23402         * tests/test-fopen.c (main): Check against bug with trailing slash.
23403
23404 2008-08-29  Bruno Haible  <bruno@clisp.org>
23405
23406         Avoid some "gcc -pedantic" warnings.
23407         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23408         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23409         * lib/dirent.in.h: Likewise.
23410         * lib/fcntl.in.h: Likewise.
23411         * lib/float.in.h: Likewise.
23412         * lib/iconv.in.h: Likewise.
23413         * lib/inttypes.in.h: Likewise.
23414         * lib/locale.in.h: Likewise.
23415         * lib/math.in.h: Likewise.
23416         * lib/netinet_in.in.h: Likewise.
23417         * lib/search.in.h: Likewise.
23418         * lib/signal.in.h: Likewise.
23419         * lib/stdarg.in.h: Likewise.
23420         * lib/stdint.in.h: Likewise.
23421         * lib/stdio.in.h: Likewise.
23422         * lib/stdlib.in.h: Likewise.
23423         * lib/string.in.h: Likewise.
23424         * lib/strings.in.h: Likewise.
23425         * lib/sys_select.in.h: Likewise.
23426         * lib/sys_socket.in.h: Likewise.
23427         * lib/sys_stat.in.h: Likewise.
23428         * lib/sys_time.in.h: Likewise.
23429         * lib/sysexits.in.h: Likewise.
23430         * lib/time.in.h: Likewise.
23431         * lib/unistd.in.h: Likewise.
23432         * lib/wchar.in.h: Likewise.
23433         * lib/wctype.in.h: Likewise.
23434         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23435         * modules/fchdir (Makefile.am): Likewise.
23436         * modules/fcntl (Makefile.am): Likewise.
23437         * modules/float (Makefile.am): Likewise.
23438         * modules/iconv_open (Makefile.am): Likewise.
23439         * modules/inttypes (Makefile.am): Likewise.
23440         * modules/locale (Makefile.am): Likewise.
23441         * modules/math (Makefile.am): Likewise.
23442         * modules/netinet_in (Makefile.am): Likewise.
23443         * modules/search (Makefile.am): Likewise.
23444         * modules/signal (Makefile.am): Likewise.
23445         * modules/stdarg (Makefile.am): Likewise.
23446         * modules/stdint (Makefile.am): Likewise.
23447         * modules/stdio (Makefile.am): Likewise.
23448         * modules/stdlib (Makefile.am): Likewise.
23449         * modules/string (Makefile.am): Likewise.
23450         * modules/strings (Makefile.am): Likewise.
23451         * modules/sys_select (Makefile.am): Likewise.
23452         * modules/sys_socket (Makefile.am): Likewise.
23453         * modules/sys_stat (Makefile.am): Likewise.
23454         * modules/sys_time (Makefile.am): Likewise.
23455         * modules/sysexits (Makefile.am): Likewise.
23456         * modules/time (Makefile.am): Likewise.
23457         * modules/unistd (Makefile.am): Likewise.
23458         * modules/wchar (Makefile.am): Likewise.
23459         * modules/wctype (Makefile.am): Likewise.
23460         Reported by Reuben Thomas <rrt@sc3d.org>.
23461
23462 2008-08-29  Bruno Haible  <bruno@clisp.org>
23463
23464         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23465         any more.
23466
23467 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23468
23469         * MODULES.html.sh (Misc): Add bitrotate.
23470
23471         * modules/bitrotate: New file.
23472
23473         * lib/bitrotate.h: New file.
23474
23475         * modules/bitrotate-tests: New file.
23476
23477         * tests/test-bitrotate.c: New file.
23478
23479         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23480         on the bitrotate module.
23481
23482         * lib/arctwo.c: Use new bitrotate module.
23483
23484 2008-08-29  Jim Meyering  <meyering@redhat.com>
23485
23486         bootstrap: merge changes from coreutils
23487         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23488         of copied files.  Remove a kludge, now that this is fixed.
23489         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23490         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23491         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23492
23493 2008-08-29  Bruno Haible  <bruno@clisp.org>
23494
23495         * MODULES.html.sh: Remove --cvs-urls option.
23496
23497 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23498
23499         maint.mk: adjust to file name change
23500         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23501
23502 2008-08-28  Jim Meyering  <meyering@redhat.com>
23503
23504         * modules/getndelim2 (License): Relicense to LGPLv2+.
23505         Approved by Richard Stallman for the version of 1995, and by
23506         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23507
23508 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23509
23510         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23511         dummy if one is not available.  Do not touch them if
23512         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23513         (getc_maybe_unlocked): New.
23514         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23515
23516 2008-08-26  Eric Blake  <ebb9@byu.net>
23517
23518         doc/INSTALL: resync from autoconf
23519         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23520         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23521         moving...
23522         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23523         * INSTALL: Regenerate.
23524         * INSTALL.ISO: New file.
23525         * INSTALL.UTF-8: Likewise.
23526
23527 2008-08-26  Jim Meyering  <meyering@redhat.com>
23528
23529         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23530         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23531         these definitions conditional, so that they may be overridden, too.
23532
23533 2008-08-26  Bruno Haible  <bruno@clisp.org>
23534
23535         Generate INSTALL file variants with prettier quotes.
23536         * doc/Makefile (INSTALL_PRELUDE): New macro.
23537         (INSTALL): Use it.
23538         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23539
23540 2008-08-26  Bruno Haible  <bruno@clisp.org>
23541
23542         Run makeinfo in an English locale.
23543         * doc/Makefile (MAKEINFO): New variable.
23544
23545 2008-08-26  Bruno Haible  <bruno@clisp.org>
23546
23547         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23548         Suggested by Eric Blake.
23549
23550 2008-08-25  Bruno Haible  <bruno@clisp.org>
23551
23552         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23553
23554 2008-08-25  Eric Blake  <ebb9@byu.net>
23555
23556         c-stack: test that stack overflow can be caught
23557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23558         that platform allows handling stack overflow; at least OS/2 EMX
23559         has sigaltstack, but crashes before transferring control to
23560         handler on stack overflow.
23561         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23562         check for HAVE_STACK_OVERFLOW_HANDLING.
23563         Reported by Elbert Pol.
23564
23565 2008-08-25  Bruno Haible  <bruno@clisp.org>
23566
23567         * doc/posix-functions/strftime.texi: Fix description of strftime
23568         module.
23569
23570 2008-08-24  Bruno Haible  <bruno@clisp.org>
23571
23572         * tests/uniwidth/test-uc_width2.c: New file.
23573         * tests/uniwidth/test-uc_width2.sh: New file.
23574         * modules/uniwidth/width-tests (Files): Add the new files.
23575         (TESTS): Add uniwidth/test-uc_width2.sh.
23576         (TESTS_ENVIRONMENT): New variable.
23577         (check_PROGRAMS): Add test-uc_width2.
23578         (test_uc_width2_SOURCES): New variable.
23579
23580         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23581         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23582         not 0x00AB.
23583         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23584
23585 2008-08-22  Eric Blake  <ebb9@byu.net>
23586
23587         test-lock, test-tls: mention why a test is skipped
23588         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23589         skipped.
23590         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23591
23592         count-one-bits: relax license
23593         * modules/count-one-bits (License): Relicense to LGPLv2+.
23594         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23595
23596 2008-08-22  Andreas Schwab  <schwab@suse.de>
23597
23598         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23599         Remove spurious space in assignment.
23600
23601 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23602
23603         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23604         Paul Eggert <eggert@CS.UCLA.EDU>.
23605
23606 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23607
23608         * modules/gettext: Add m4/threadlib.m4.
23609
23610 2008-08-19  Eric Blake  <ebb9@byu.net>
23611
23612         test-c-stack: fix compilation failure on FreeBSD 5.0
23613         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23614         headers before <sys/resource.h>.
23615         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23616         the bug.
23617         Reported by Nelson H. F. Beebe.
23618
23619         strverscmp: migrate from "strverscmp.h" to <string.h>
23620         * modules/string (Makefile.am): Add new hooks.
23621         * modules/strverscmp (Files): Remove strverscmp.h.
23622         (Depends-on): Add string.
23623         (configure.ac): Add indicator.
23624         (Include): Mention new header.
23625         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23626         defaults.
23627         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23628         results.
23629         * lib/strverscmp.h: Delete.
23630         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23631         * tests/test-strverscmp.c (includes): Adjust client.
23632         * lib/check-version.c (includes): Likewise.
23633         * NEWS: Document the change.
23634
23635         strverscmp: add unit test
23636         * modules/strverscmp-tests: New file.
23637         * tests/test-strverscmp.c: Likewise.
23638
23639 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23640
23641         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23642         regarding Windows crypto stuff, from Mono.
23643
23644 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23645
23646         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23647         if present, for intel RND.  Return error on failures.
23648
23649 2008-08-18  Ben Pfaff  <blp@gnu.org>
23650
23651         gitlog-to-changelog: give better diagnostic for failed pipe-open
23652         * build-aux/gitlog-to-changelog: Improve error message: suggest
23653         that the version of Git may be too old.
23654
23655 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23656
23657         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23658         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23659
23660 2008-08-18  Bruno Haible  <bruno@clisp.org>
23661
23662         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23663         pthread_in_use().
23664
23665 2008-08-18  Bruno Haible  <bruno@clisp.org>
23666
23667         * lib/glthread/threadlib.c: Include <pthread.h>.
23668
23669 2008-08-18  Bruno Haible  <bruno@clisp.org>
23670
23671         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23672         glthread_recursive_lock_* macros.
23673         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23674         Fix syntax error.
23675
23676 2008-08-18  Bruno Haible  <bruno@clisp.org>
23677
23678         * lib/glthread/thread.c: Avoid forcing a context switch right after
23679         thread creation.
23680
23681 2008-08-17  Bruno Haible  <bruno@clisp.org>
23682
23683         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23684         * lib/glthread/thread.h: Provide Win32 specific implementation.
23685         * modules/thread (Files): Add lib/glthread/thread.c.
23686         (Depends-on): Add lock.
23687         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23688
23689 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23690
23691         New module 'yield'.
23692         * modules/yield: New file.
23693         * lib/glthread/yield.h: New file.
23694         * m4/yield.m4: New file.
23695         * MODULES.html.sh (Multithreading): Add yield.
23696
23697 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23698
23699         New module 'thread'.
23700         * modules/thread: New file.
23701         * lib/glthread/thread.h: New file.
23702         * m4/thread.m4: New file.
23703         * MODULES.html.sh (Multithreading): Add thread.
23704
23705 2008-08-17  Bruno Haible  <bruno@clisp.org>
23706
23707         * lib/glthread/lock.h: Include <stdlib.h> always.
23708         * lib/glthread/tls.h: Likewise.
23709         * lib/glthread/cond.h: Likewise.
23710
23711 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23712
23713         New module 'cond'.
23714         * modules/cond: New file.
23715         * lib/glthread/cond.h: New file.
23716         * lib/glthread/cond.c: New file.
23717         * m4/cond.m4: New file.
23718         * MODULES.html.sh (Multithreading): Add cond.
23719
23720 2008-08-16  Eric Blake  <ebb9@byu.net>
23721
23722         c-stack: fix regression on Irix 5.3 from 2008-06-21
23723         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23724         sa_sigaction...
23725         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23726         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23727         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23728         * modules/signal (Makefile.am): Use the value.
23729         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23730         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23731         * doc/posix-headers/signal.texi (signal.h): Document this
23732         portability issue.
23733         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23734         Reported by Tom G. Christensen.
23735
23736 2008-08-17  Bruno Haible  <bruno@clisp.org>
23737
23738         New module 'threadlib'.
23739         * modules/threadlib: New file.
23740         * lib/glthread/threadlib.c: New file, extracted from
23741         lib/glthread/lock.c.
23742         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23743         functions.
23744         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23745         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23746         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23747         macros.
23748         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23749         (gl_DISABLE_THREADS): Remove macro.
23750         * modules/lock (Files): Remove build-aux/config.rpath.
23751         (Depends-on): Remove havelib. Add threadlib.
23752         (configure.ac-early): Remove section.
23753         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23754         * modules/tls (Depends-on): Remove lock. Add threadlib.
23755         (Link): New section, copied from threadlib.
23756         * MODULES.html.sh (Multithreading): Add threadlib.
23757
23758 2008-08-14  Bruno Haible  <bruno@clisp.org>
23759
23760         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23761         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23762         glthread_rwlock_unlock, glthread_rwlock_destroy,
23763         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23764         glthread_recursive_lock_destroy): Define as macros always.
23765         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23766         glthread_lock_lock.
23767         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23768         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23769         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23770         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23771         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23772         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23773         (glthread_recursive_lock_lock_func): Renamed from
23774         glthread_recursive_lock_lock.
23775         (glthread_recursive_lock_unlock_func): Renamed from
23776         glthread_recursive_lock_unlock.
23777         (glthread_recursive_lock_destroy_func): Renamed from
23778         glthread_recursive_lock_destroy.
23779
23780 2008-08-14  Bruno Haible  <bruno@clisp.org>
23781
23782         * lib/glthread/lock.h: Renamed from lib/lock.h.
23783         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23784         * lib/glthread/tls.h: Renamed from lib/tls.h.
23785         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23786         * lib/fstrcmp.c: Update includes.
23787         * lib/strsignal.c: Update includes.
23788         * modules/lock (Files, Makefile.am): Update.
23789         (Include): Change to "glthread/lock.h".
23790         * modules/tls (Files, Makefile.am): Update.
23791         (Include): Change to "glthread/tls.h".
23792         * tests/test-lock.c: Update includes.
23793         * tests/test-tls.c: Update includes.
23794         * NEWS: Mention the renamed header files.
23795
23796 2008-08-11  Jim Meyering  <meyering@redhat.com>
23797
23798         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23799
23800 2008-08-11  Eric Blake  <ebb9@byu.net>
23801
23802         test-c-stack: avoid C99-ism
23803         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23804         before statement.
23805         Reported by Alain Guibert.
23806
23807 2008-08-10  Jim Meyering  <meyering@redhat.com>
23808
23809         ensure that return value of uinttostr et al are not ignored
23810         * lib/inttostr.h (__GNUC_PREREQ): Define.
23811         (__attribute_warn_unused_result__): Define.
23812         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23813
23814 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23815
23816         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23817         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23818
23819 2008-08-07  Jim Meyering  <meyering@redhat.com>
23820
23821         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23822
23823         * modules/mkstemp (License): Relicense under LGPLv2+.
23824         * modules/tempname (License): Likewise.
23825
23826 2008-08-06  Bruno Haible  <bruno@clisp.org>
23827
23828         * lib/poll.c (poll): Further micro-optimization.
23829
23830 2008-08-06  Jim Meyering  <meyering@redhat.com>
23831
23832         inet_pton.c: use locale-independent tolower
23833         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23834         (inet_pton6): Use c_tolower rather than tolower.
23835         * modules/inet_pton (Depends-on): Add c-ctype.
23836
23837 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23838
23839         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23840         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23841
23842 2008-08-06  Jim Meyering  <meyering@redhat.com>
23843
23844         * modules/inet_pton (License): Relicense under LGPLv2+.
23845
23846 2008-08-03  Bruno Haible  <bruno@clisp.org>
23847
23848         Additional non-aborting API for lock and tls.
23849         * lib/lock.h: Include <errno.h>.
23850         (glthread_lock_init): New macro/function.
23851         (gl_lock_init): Define as wrapper around glthread_lock_init.
23852         (glthread_lock_lock): New macro/function.
23853         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23854         (glthread_lock_unlock): New macro/function.
23855         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23856         (glthread_lock_destroy): New macro/function.
23857         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23858         (glthread_rwlock_init): New macro/function.
23859         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23860         (glthread_rwlock_rdlock): New macro/function.
23861         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23862         (glthread_rwlock_wrlock): New macro/function.
23863         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23864         (glthread_rwlock_unlock): New macro/function.
23865         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23866         (glthread_rwlock_destroy): New macro/function.
23867         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23868         (glthread_recursive_lock_init): New macro/function.
23869         (gl_recursive_lock_init): Define as wrapper around
23870         glthread_recursive_lock_init.
23871         (glthread_recursive_lock_lock): New macro/function.
23872         (gl_recursive_lock_lock): Define as wrapper around
23873         glthread_recursive_lock_lock.
23874         (glthread_recursive_lock_unlock): New macro/function.
23875         (gl_recursive_lock_unlock): Define as wrapper around
23876         glthread_recursive_lock_unlock.
23877         (glthread_recursive_lock_destroy): New macro/function.
23878         (gl_recursive_lock_destroy): Define as wrapper around
23879         glthread_recursive_lock_destroy.
23880         (glthread_once): New macro/function.
23881         (gl_once): Define as wrapper around glthread_once.
23882         Update function declarations.
23883         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23884         glthread_rwlock_init. Return error code.
23885         (glthread_rwlock_rdlock_multithreaded): Renamed from
23886         glthread_rwlock_rdlock. Return error code.
23887         (glthread_rwlock_wrlock_multithreaded): Renamed from
23888         glthread_rwlock_wrlock. Return error code.
23889         (glthread_rwlock_unlock_multithreaded): Renamed from
23890         glthread_rwlock_unlock. Return error code.
23891         (glthread_rwlock_destroy_multithreaded): Renamed from
23892         glthread_rwlock_destroy. Return error code.
23893         (glthread_recursive_lock_init_multithreaded): Renamed from
23894         glthread_recursive_lock_init. Return error code.
23895         (glthread_recursive_lock_lock_multithreaded): Renamed from
23896         glthread_recursive_lock_lock. Return error code.
23897         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23898         glthread_recursive_lock_unlock. Return error code.
23899         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23900         glthread_recursive_lock_destroy. Return error code.
23901         (glthread_once_call): Make static.
23902         (glthread_once_multithreaded): Renamed from glthread_once.
23903         * lib/tls.h: Include <errno.h>.
23904         (glthread_tls_key_init): New macro/function.
23905         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23906         (glthread_tls_set): New macro/function.
23907         (gl_tls_set): Define as wrapper around glthread_tls_set.
23908         (glthread_tls_key_destroy): New macro/function.
23909         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23910         Update function declarations.
23911         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23912         glthread_tls_get.
23913         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23914
23915 2008-08-04  Eric Blake  <ebb9@byu.net>
23916
23917         gnumakefile: use space, not TAB, outside of targets
23918         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23919
23920 2008-08-02  Jim Meyering  <meyering@redhat.com>
23921
23922         getdate.y: avoid locale-dependent date parsing failure
23923         In Turkish locales, getdate would fail to recognize keywords
23924         containing a lowercase "i".  The solution is not to rely on
23925         locale-sensitive case-conversion.
23926         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23927         (lookup_word): Use c_toupper in place of toupper.
23928         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23929         Reported by Vefa Bicakci <bicave@superonline.com> in
23930         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23931         * modules/getdate (Depends-on): Add c-ctype.
23932
23933 2008-08-02  Bruno Haible  <bruno@clisp.org>
23934
23935         * gnulib-tool (func_import): When updating or creating a .gitignore
23936         file, prepend each added line with a slash, and ignore leading slashes
23937         from the existing lines.
23938         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23939
23940 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23941
23942         Portability fix for GNU make 3.79.1.
23943         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23944         versions do not understand.
23945
23946 2008-08-01  Bruno Haible  <bruno@clisp.org>
23947
23948         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23949         * tests/test-isnanf.h (zero): New variable.
23950         (main): Avoid literal -0.0f.
23951         * tests/test-isnand.h (zero): New variable.
23952         (main): Avoid literal -0.0.
23953         * tests/test-isnanl.h (zero): New variable.
23954         (main): Avoid literal -0.0L.
23955         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23956         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23957         -0.0, -0.0L.
23958         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23959         (test_signbitd): Avoid literal -0.0.
23960         (test_signbitl): Avoid literal -0.0L.
23961         * tests/test-ceilf1.c (zero): New variable.
23962         (main): Avoid literal -0.0f.
23963         * tests/test-ceill.c (zero): New variable.
23964         (main): Avoid literal -0.0L.
23965         * tests/test-floorf1.c (zero): New variable.
23966         (main): Avoid literal -0.0f.
23967         * tests/test-floorl.c (zero): New variable.
23968         (main): Avoid literal -0.0L.
23969         * tests/test-roundf1.c (zero): New variable.
23970         (main): Avoid literal -0.0f.
23971         * tests/test-round1.c (zero): New variable.
23972         (main): Avoid literal -0.0.
23973         * tests/test-roundl.c (zero): New variable.
23974         (main): Avoid literal -0.0L.
23975         * tests/test-truncf1.c (zero): New variable.
23976         (main): Avoid literal -0.0f.
23977         * tests/test-trunc1.c (zero): New variable.
23978         (main): Avoid literal -0.0.
23979         * tests/test-truncl.c (zero): New variable.
23980         (main): Avoid literal -0.0L.
23981         * tests/test-frexp.c (zero): New variable.
23982         (main): Avoid literal -0.0.
23983         * tests/test-frexpl.c (zero): New variable.
23984         (main): Avoid literal -0.0L.
23985         * tests/test-ldexpl.c (zero): New variable.
23986         (main): Avoid literal -0.0L.
23987         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23988         (zerod, zerol): New variables.
23989         (test_function): Avoid literals -0.0, -0.0L.
23990         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23991         (zerod, zerol): New variables.
23992         (test_function): Avoid literals -0.0, -0.0L.
23993         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23994         (zerod, zerol): New variables.
23995         (test_function): Avoid literals -0.0, -0.0L.
23996         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23997         (zerod, zerol): New variables.
23998         (test_function): Avoid literals -0.0, -0.0L.
23999         * tests/test-strtod.c (zero): New variable.
24000         (main): Avoid literal -0.0.
24001         Reported by Jonathan C. Patschke <jp@centtech.com>.
24002
24003 2008-07-31  Jim Meyering  <meyering@redhat.com>
24004
24005         sha256.h: correct definition of SHA224_DIGEST_SIZE
24006         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
24007         Reported by Paulie Pena IV <paulie4@gmail.com>.
24008         Define as 224 / 8, rather than as a literal.
24009         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
24010         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
24011         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
24012
24013 2008-07-31  Bruno Haible  <bruno@clisp.org>
24014
24015         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
24016         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
24017         Reported by Jonathan Patschke <jp@centtech.com>.
24018
24019 2008-07-31  Bruno Haible  <bruno@clisp.org>
24020
24021         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
24022         Reported by Paolo Bonzini <bonzini@gnu.org>.
24023
24024 2008-07-30  Eric Blake  <ebb9@byu.net>
24025
24026         test-strtod: allow compilation without -lm
24027         * tests/test-strtod.c (main): Avoid link dependence on fabs.
24028         Reported by Dennis Clarke <blastwave@gmail.com>.
24029
24030 2008-07-28  Jim Meyering  <meyering@redhat.com>
24031
24032         bootstrap: work also when there are no .po files in po/
24033         * build-aux/bootstrap (update_po_files): Complete the change
24034         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
24035
24036 2008-07-27  Jim Meyering  <meyering@redhat.com>
24037
24038         * users.txt: Add zile.
24039
24040 2008-07-26  Ben Pfaff  <blp@gnu.org>
24041
24042         Add missing dependencies on new m4/exponent[fdl].m4 files.
24043         * modules/isnanf-nolibm: Add m4/exponentf.m4.
24044         * modules/isnand-nolibm: Add m4/exponentd.m4.
24045         * modules/isnanl-nolibm: Add m4/exponentl.m4.
24046         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
24047         m4/isnan[fdl].m4, because the macros actually used moved.
24048         Reported by Jim Meyering.
24049
24050 2008-07-14  Ben Pfaff  <blp@gnu.org>
24051
24052         Add isinf module.
24053         * lib/isinf.c: New file.
24054         * lib/math.in.h: Define isinf macro if we have decided to replace
24055         it.
24056         * m4/isinf.m4: New file.
24057         * m4/math_h.m4: Initialize and substitute variables for isinf
24058         module.
24059         * modules/isinf: New file.
24060         * modules/isinf-tests: New file.
24061         * modules/math: Add substitutions for new module.
24062         * tests/test-isinf.c: New file.
24063         * doc/posix-functions/isinf.texi: Mention new module.
24064         * MODULES.html.sh: Mention new module.
24065
24066 2008-07-14  Ben Pfaff  <blp@gnu.org>
24067
24068         Factor out some macros for use by additional modules.
24069         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
24070         exponentf.m4.
24071         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
24072         exponentd.m4.
24073         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
24074         file exponentl.m4.
24075         * m4/exponentf.m4: New file.
24076         * m4/exponentd.m4: New file.
24077         * m4/exponentl.m4: New file.
24078         * modules/isnanf: Use new file m4/exponentf.m4.
24079         * modules/isnand: Use new file m4/exponentd.m4.
24080         * modules/isnanl: Use new file m4/exponentl.m4.
24081
24082 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
24083
24084         mktime.c: normalize tp->tm_isdst value to -1/0/1.
24085         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
24086         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
24087         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
24088
24089         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
24090         readlink on platforms without PATH_MAX.
24091
24092 2008-07-21  Eric Blake  <ebb9@byu.net>
24093
24094         Warn, not fail, on stale version.
24095         * top/GNUmakefile (_curr-ver): Tone down previous patch.
24096
24097         Don't allow installation with stale devel version number.
24098         * top/GNUmakefile (_is-install-target): New macro.
24099         (_curr-ver): Forbid installation with stale version number.
24100
24101 2008-07-20  Bruno Haible  <bruno@clisp.org>
24102
24103         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
24104         TESTS_ENVIRONMENT.
24105         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
24106
24107 2008-07-20  Bruno Haible  <bruno@clisp.org>
24108
24109         * lib/c-stack.h (c_stack_action): Add documentation.
24110         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
24111
24112 2008-07-20  Bruno Haible  <bruno@clisp.org>
24113
24114         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
24115         * modules/readlink (License): Likewise.
24116
24117 2008-07-17  Eric Blake  <ebb9@byu.net>
24118
24119         * modules/c-stack (Link): Fix typo.
24120
24121         Make c-stack use libsigsegv, when available.
24122         * modules/c-stack (Depends-on): Add libsigsegv.
24123         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
24124         needed.
24125         * lib/c-stack.c (SIGSTKSZ): Define fallback.
24126         (segv_handler, overflow_handler, c_stack_action)
24127         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
24128         implementation when libsigsegv is available, but only when using
24129         the library is necessary.
24130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
24131         comment, explaining why XSI check fails on Linux.
24132         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
24133         * tests/test-c-stack2.sh: Tweak skip message.
24134         * NEWS: Document new link-time requirements.
24135
24136 2008-07-16  Eric Blake  <ebb9@byu.net>
24137
24138         c-stack: Expose false positives when not using libsigsegv.
24139         * modules/c-stack-tests (Files): Expand test.
24140         * tests/test-c-stack.c (main): Add means to conditionally trigger
24141         non-overflow SIGSEGV.
24142         * tests/test-c-stack2.sh: New file.
24143
24144 2008-07-14  Bruno Haible  <bruno@clisp.org>
24145
24146         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
24147         Reported by Eric Blake.
24148
24149 2008-07-14  Sam Steingold  <sds@gnu.org>
24150             Bruno Haible  <bruno@clisp.org>
24151
24152         New module libsigsegv.
24153         * modules/libsigsegv: New file.
24154         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
24155         modifications.
24156         * MODULES.html.sh (Signal handling): New section.
24157
24158 2008-07-14  Bruno Haible  <bruno@clisp.org>
24159
24160         * modules/unictype/ctype-* (Description): Add the word "function".
24161         Improves the resulting doc in MODULES.html.
24162
24163 2008-07-12  Ben Pfaff  <blp@gnu.org>
24164
24165         Add longlong module.
24166         * modules/longlong: New file.
24167
24168 2008-07-12  Bruno Haible  <bruno@clisp.org>
24169
24170         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
24171         to empty.
24172
24173 2008-07-10  Ben Pfaff  <blp@gnu.org>
24174
24175         Add isnan module.
24176         * doc/posix-functions/isnan.texi: Mention new module.
24177         * lib/math.in.h: Define isnan macro if we have decided to replace
24178         it.
24179         * m4/isnan.m4: New file.
24180         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
24181         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
24182         also.
24183         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
24184         redundancy.
24185         * m4/math_h.m4: Initialize and substitute variables for isnan
24186         module.
24187         * modules/isnan: New file.
24188         * modules/isnan-tests: New file.
24189         * modules/math: Add substitutions for new module.
24190         * tests/test-isnan.c: New file.
24191         * MODULES.html.sh: Mention new module.
24192
24193 2008-07-10  Ben Pfaff  <blp@gnu.org>
24194
24195         Add isnanf module.
24196         * lib/isnanf.m4: New file.
24197         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
24198         (gl_HAVE_ISNANF_IN_LIBM): New macro.
24199         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
24200         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
24201         * modules/isnanf: New file.
24202         * modules/isnanf-tests: New file.
24203         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
24204         files.
24205         * tests/test-isnanf-nolibm.c: factored most of its contents into
24206         new file tests/test-isnanf.h.
24207         * tests/test-isnanf.h: New file.
24208         * tests/test-isnanf.c: New file.
24209         * MODULES.html.sh: Mention new module.
24210         * doc/glibc-functions/isnanf.texi: Mention new module.
24211
24212 2008-07-10  Ben Pfaff  <blp@gnu.org>
24213
24214         Add isnand module.
24215         * lib/isnand.h: New file.
24216         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
24217         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
24218         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
24219         functionality also.
24220         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
24221         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
24222         (gl_HAVE_ISNAND_IN_LIBM): New macro.
24223         * modules/isnand: New file.
24224         * modules/isnand-tests: New file.
24225         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
24226         files.
24227         * tests/test-isnand-nolibm.c: factored most of its contents into
24228         new file tests/test-isnand.h.
24229         * tests/test-isnand.h: New file.
24230         * tests/test-isnand.c: New file.
24231         * MODULES.html.sh: Mention new module.
24232
24233 2008-07-10  Ben Pfaff  <blp@gnu.org>
24234
24235         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
24236         * lib/isnand.h: Rename lib/isnand-nolibm.h.
24237         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
24238         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
24239         * modules/isnanf-nolibm: Update references to renamed files.
24240         * modules/isnand-nolibm: Likewise.
24241         * modules/isnanf-nolibm-tests: Likewise.
24242         * modules/isnand-nolibm-tests: Likewise.
24243         * lib/frexp.c: Likewise.
24244         * lib/isfinite.c: Likewise.
24245         * lib/signbitd.c: Likewise.
24246         * lib/signbitf.c: Likewise.
24247         * lib/vasnprintf.c: Likewise.
24248         * tests/test-ceilf1.c: Likewise.
24249         * tests/test-ceilf2.c: Likewise.
24250         * tests/test-floorf1.c: Likewise.
24251         * tests/test-floorf2.c: Likewise.
24252         * tests/test-frexp.c: Likewise.
24253         * tests/test-round1.c: Likewise.
24254         * tests/test-round2.c: Likewise.
24255         * tests/test-roundf1.c: Likewise.
24256         * tests/test-strtod.c: Likewise.
24257         * tests/test-trunc1.c: Likewise.
24258         * tests/test-trunc2.c: Likewise.
24259         * tests/test-truncf1.c: Likewise.
24260         * tests/test-truncf2.c: Likewise.
24261         * NEWS: Mention the renamed header files.
24262
24263 2008-07-11  Jim Meyering  <meyering@redhat.com>
24264
24265         vc-list-files: make the last-resort awk code more portable
24266         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
24267         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
24268         does not support it.
24269
24270 2008-07-10  Eric Blake  <ebb9@byu.net>
24271
24272         Work with tar's bootstrap.
24273         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
24274         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
24275         an m4 comment.
24276
24277 2008-07-09  Jim Meyering  <meyering@redhat.com>
24278
24279         posix-shell.m4: fix typo that made this test malfunction
24280         * m4/posix-shell.m4: Remove capitalization in variable name.
24281
24282 2008-07-08  Bruno Haible  <bruno@clisp.org>
24283
24284         * m4/onceonly.m4: Update comments.
24285         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24286
24287 2008-07-04  Jim Meyering  <meyering@redhat.com>
24288
24289         * users.txt: Add vc-dwim.
24290         (bison, coreutils): Use the gitweb URL.
24291
24292 2008-07-03  Jim Meyering  <meyering@redhat.com>
24293
24294         * users.txt: Add libffcall.  From Sam Steingold.
24295
24296 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
24297
24298         getdate.y: do not ignore TZ with relative day, month or year offset
24299         * lib/getdate.y (get_date): Move the tz-handling block to follow the
24300         relative-date-handling, since otherwise, the latter would clobber the
24301         sole output (an updated Start value) of the tz-handling block.
24302         * tests/test-getdate.c: Tests for the fix
24303
24304 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24305
24306         Recognize 'foo_LIBRARIES += libgnu.a'.
24307         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
24308         makefile snippet has already specified an installation location,
24309         also using '+='.
24310
24311 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
24312
24313         getdate.y: factor out common actions
24314         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
24315         Use them in place of open-coded actions.
24316
24317 2008-07-01  Simon Josefsson  <simon@josefsson.org>
24318
24319         Add self-test for getdate module.
24320         * modules/getdate-tests: New file.
24321         * tests/test-getdate.c: New file.
24322
24323 2008-06-29  Bruno Haible  <bruno@clisp.org>
24324
24325         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
24326         .gitignore.
24327         Reported by Sylvain Beucler <beuc@beuc.net>.
24328
24329 2008-06-29  Bruno Haible  <bruno@clisp.org>
24330
24331         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
24332         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24333
24334 2008-06-29  Bruno Haible  <bruno@clisp.org>
24335
24336         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24337         EXTRA_DIST.
24338         Reported by Sylvain Beucler <beuc@beuc.net>.
24339
24340 2008-06-26  Jim Meyering  <meyering@redhat.com>
24341
24342         make several modules depend on the "open" module
24343         This provides slightly increased consistency when opening-for-write
24344         the name of a non-directory spelled with a trailing slash.
24345         * modules/chdir-safer: Likewise.
24346         * modules/chown: Likewise.
24347         * modules/clean-temp: Likewise.
24348         * modules/copy-file: Likewise.
24349         * modules/fchdir: Likewise.
24350         * modules/fcntl-safer: Likewise.
24351         * modules/pipe: Likewise.
24352         * modules/utime: Likewise.
24353         Prompted by Eric Blake and Bruno Haible.
24354
24355 2008-06-24  Andreas Schwab  <schwab@suse.de>
24356
24357         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24358         literals can be used as initializers for global variables.
24359
24360 2008-06-23  Eric Blake  <ebb9@byu.net>
24361
24362         Make gnulib-cache.m4 easier to diff.
24363         * gnulib-tool (func_import): Allow newlines when reading cached
24364         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24365
24366 2008-06-23  Bruno Haible  <bruno@clisp.org>
24367
24368         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24369         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24370         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24371         m4/signalblocking.m4.
24372         (gl_PREREQ_SIGACTION): Don't invoke it.
24373         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24374         gl_PREREQ_SIG_HANDLER_H.
24375         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24376         Don't check for sigaction here.
24377
24378 2008-06-23  Bruno Haible  <bruno@clisp.org>
24379
24380         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24381         (install_handlers): Don't set the SA_RESETHAND flag.
24382
24383 2008-06-23  Bruno Haible  <bruno@clisp.org>
24384
24385         * m4/sigaction.m4: Comment fixes.
24386         * lib/signal.in.h: Likewise.
24387
24388 2008-06-23  Eric Blake  <ebb9@byu.net>
24389
24390         Fix typo.
24391         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24392
24393         Avoid SA_ namespace.
24394         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24395         Reported by Ralf Wildenhues.
24396
24397         Avoid test failure due to SA_RESTORER.
24398         * tests/test-sigaction.c (SA_MASK): New macro.
24399         (main): Avoid failing due to extension flags being set.
24400         Reported by Jim Meyering.
24401
24402         Revert use of sig-handler.h in sigprocmask.c.
24403         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24404         it requires the existence of struct sigaction.
24405         * lib/sigprocmask.c (handler_t): Restore typedef.
24406         (rpl_signal, old_handlers): Use local type.
24407
24408 2008-06-22  Bruno Haible  <bruno@clisp.org>
24409
24410         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24411         conditionally.
24412         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24413
24414 2008-06-22  Bruno Haible  <bruno@clisp.org>
24415
24416         * doc/posix-functions/siginterrupt.texi: Move note.
24417
24418         * lib/signal.in.h (SA_RESTART): New macro.
24419         * lib/sigaction.c: Update comment.
24420
24421         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24422
24423         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24424         (gl_PREREQ_SIGPROCMASK): Invoke it.
24425         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24426
24427         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24428
24429         * lib/sigprocmask.c: Update a comment.
24430
24431 2008-06-21  Eric Blake  <ebb9@byu.net>
24432
24433         Use sigaction module rather than signal().
24434         * modules/c-stack (Depends-on): Add sigaction.
24435         * modules/fatal-signal (Depends-on): Likewise.
24436         * modules/nanosleep (Depends-on): Likewise.
24437         * modules/sigprocmask (Files): Add sig-handler.h.
24438         * modules/sigaction (Files): Likewise.
24439         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24440         Eggert.
24441         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24442         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24443         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24444         (init_fatal_signals): Likewise.
24445         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24446         (siginterrupt): Delete fallback.
24447         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24448         instead.
24449         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24450         siginterrupt.
24451
24452         New module sigaction, for mingw.
24453         * modules/sigaction: New module...
24454         * modules/sigaction-tests: ...and its test.
24455         * m4/sigaction.m4: New file.
24456         * lib/sigaction.c: Likewise.
24457         * tests/test-sigaction.c: Likewise.
24458         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24459         * modules/signal (Makefile.am): Likewise.
24460         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24461         needed.
24462         * doc/posix-headers/signal.texi (signal.h): Mention provided
24463         types.
24464         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24465         that sigaction is preferable.
24466         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24467         module.
24468         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24469         sigaction.
24470
24471         Improve robustness of sigprocmask by overriding signal.
24472         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24473         is in use.
24474         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24475         (SIGKILL, SIGSTOP): Provide fallbacks.
24476         (rpl_signal): Implement.
24477         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24478         signal can be called inside handlers.
24479
24480         Fix nanosleep module on mingw.
24481         * modules/nanosleep (Depends-on): Add sys_select.
24482         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24483
24484         Fix licensing of sigprocmask.
24485         * modules/raise (License): Relicense as LGPL.
24486
24487 2008-06-21  Bruno Haible  <bruno@clisp.org>
24488
24489         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24490         result if it contains question marks.
24491         Reported by Michael Geng <linux@michaelgeng.de>.
24492
24493 2008-06-19  Bruno Haible  <bruno@clisp.org>
24494
24495         Fix CVS-ism.
24496         * doc/gnulib.texi: Include updated-stamp.texi.
24497         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24498         (updated-stamp.texi): New rule.
24499         (gnulib.info): Depend on it.
24500         * doc/.gitignore: Add updated-stamp.texi.
24501         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24502
24503 2008-06-19  Bruno Haible  <bruno@clisp.org>
24504
24505         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24506         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24507
24508 2008-06-19  Eric Blake  <ebb9@byu.net>
24509
24510         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24511         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24512         Reported by Stepan Kasal.
24513
24514 2008-06-18  Bruno Haible  <bruno@clisp.org>
24515
24516         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24517         Reported by Eric Blake.
24518
24519 2008-06-18  Eric Blake  <ebb9@byu.net>
24520
24521         Work around cygwin 1.5.25 strsignal bug.
24522         * tests/test-strsignal.c: Allow for const char *.
24523         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24524
24525 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24526
24527         * users.txt: Update URL to article and add author/date
24528         information.
24529
24530 2008-06-17  Bruno Haible  <bruno@clisp.org>
24531
24532         New macro gl_DISABLE_THREADS.
24533         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24534         if the user did not pass --enable-threads or --disable-threads option.
24535         (gl_DISABLE_THREADS): New macro.
24536         Reported by Eric Blake <ebb9@byu.net>.
24537
24538 2008-06-17  Bruno Haible  <bruno@clisp.org>
24539
24540         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24541         when the macro ignores it.
24542         Based on a patch by Eric Blake <ebb9@byu.net>.
24543
24544 2008-06-17  Bruno Haible  <bruno@clisp.org>
24545
24546         * modules/tls (License): Change to LGPLv2+.
24547         Reported by Eric Blake.
24548
24549 2008-06-17  Eric Blake  <ebb9@byu.net>
24550
24551         Simplify c-stack prerequisites.
24552         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24553         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24554         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24555         check.
24556         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24557         <sys/resource.h>.
24558
24559         Move c-stack test into testsuite.
24560         * modules/c-stack-tests: New file.
24561         * lib/c-stack.c [DEBUG]: Move test program...
24562         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24563         fail test if sigaltstack is lacking.
24564         * tests/test-c-stack.sh: New driver file.
24565
24566 2008-06-16  Eric Blake  <ebb9@byu.net>
24567
24568         Use raise module consistently.
24569         * modules/fatal-signal (Depends-on): Add raise.
24570         * modules/sigprocmask (Depends-on): Likewise.
24571         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24572         * lib/sigprocmask.c (sigprocmask): Likewise.
24573         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24574         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24575
24576         Fix compliance bug in sigpending.
24577         * lib/sigprocmask.c (sigpending): Return pending array via
24578         parameter, not return value.
24579
24580 2008-06-14  Eric Blake  <ebb9@byu.net>
24581
24582         Improve obstack-printf test code.
24583         * tests/test-obstack-printf.c (test_function): Fix comment, and
24584         simplify usage of obstack_* in macros.  Add a test for coverage.
24585         Reported by Bruno Haible.
24586
24587 2008-06-14  Bruno Haible  <bruno@clisp.org>
24588
24589         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24590         array size as a constant, not as a const variable.
24591         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24592         AC_USE_SYSTEM_EXTENSIONS.
24593         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24594         Test whether the obstack_printf function actually exists.
24595         * modules/obstack-printf (Depends-on): Add extensions.
24596         (Include): Remove obstack.h.
24597         * modules/obstack-printf-posix (Depends-on): Add extensions.
24598         (Include): Remove obstack.h.
24599
24600 2008-06-13  Eric Blake  <ebb9@byu.net>
24601
24602         Add obstack-printf and obstack-printf-posix modules.
24603         * modules/obstack-printf: New file.
24604         * modules/obstack-printf-posix: Likewise.
24605         * MODULES.html.sh (Misc): Mention them.
24606         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24607         Likewise.
24608         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24609         Likewise.
24610         * modules/stdio (Makefile.am): Accomodate new modules.
24611         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24612         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24613         Declare.
24614         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24615         functions.
24616         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24617         (gl_REPLACE_OBSTACK_PRINTF): New macros
24618         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24619         * tests/test-obstack-printf.c: New file.
24620         * modules/obstack-printf-tests: Likewise.
24621         * modules/obstack-printf-posix-tests: Likewise.
24622
24623 2008-06-11  Bruno Haible  <bruno@clisp.org>
24624
24625         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24626         * lib/open.c: Include errno.h.
24627         (open): Fail when attempting to write to a file that has a trailing
24628         slash.
24629         * tests/test-open.c (main): Test against trailing slash bug.
24630         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24631
24632 2008-06-10  Bruno Haible  <bruno@clisp.org>
24633
24634         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24635         for $? to work inside the trap command, with various /bin/sh-s.
24636         * tests/test-vc-list-files-cvs.sh: Likewise.
24637
24638 2008-06-10  Bruno Haible  <bruno@clisp.org>
24639
24640         * lib/acl-internal.h: Don't include gettext.h here.
24641         * lib/set-mode-acl.c: Include gettext.h here.
24642         * lib/copy-acl.c: Likewise.
24643
24644 2008-06-10  Bruno Haible  <bruno@clisp.org>
24645
24646         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24647         * lib/wait-process.c (wait_subprocess): Likewise.
24648         * lib/execute.h (execute): Add termsigp argument.
24649         * lib/execute.c (execute): Likewise.
24650         * lib/csharpcomp.c (compile_csharp_using_pnet,
24651         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24652         * lib/csharpexec.c (execute_csharp_using_pnet,
24653         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24654         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24655         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24656         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24657         is_jikes_present): Update.
24658         * lib/javaexec.c (execute_java_class): Update.
24659         * lib/javaversion.c (execute_and_read_line): Update.
24660         * NEWS: Document the changes.
24661         Reported by Eric Blake.
24662
24663 2008-06-10  Eric Blake  <ebb9@byu.net>
24664
24665         Add missing include.
24666         * tests/test-strstr.c (includes): Add <signal.h>.
24667         * tests/test-strcasestr.c (includes): Likewise.
24668         * tests/test-memmem.c (includes): Likewise.
24669
24670 2008-06-10  Bruno Haible  <bruno@clisp.org>
24671
24672         * lib/wait-process.c (wait_subprocess): Add an assertion.
24673
24674 2008-06-10  Bruno Haible  <bruno@clisp.org>
24675
24676         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24677
24678 2008-06-10  Bruno Haible  <bruno@clisp.org>
24679
24680         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24681         using alarm().
24682         * tests/test-strcasestr.c (main): Likewise.
24683         * tests/test-strstr.c (main): Likewise.
24684
24685 2008-06-09  Bruno Haible  <bruno@clisp.org>
24686
24687         Work around the Solaris 10 ACE ACLs ABI change.
24688         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24689         declare if ACL_NO_TRIVIAL is present.
24690         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24691         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24692         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24693         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24694         define if ACL_NO_TRIVIAL is present.
24695         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24696         and use the current ABI.
24697         (file_has_acl): Use same #if condition as elsewhere.
24698         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24699         in use, and use the current ABI.
24700         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24701         Reported by Jim Meyering.
24702
24703 2008-06-09  Eric Blake  <ebb9@byu.net>
24704
24705         Work around environments that (stupidly) ignore SIGALRM.
24706         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24707         before using alarm().
24708         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24709         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24710         Reported by Ian Beckwith <ianb@erislabs.net>.
24711
24712         Produce autobuild blurb earlier in log.
24713         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24714
24715 2008-06-09  Jim Meyering  <meyering@redhat.com>
24716         and Ondřej Vašík  <ovasik@redhat.com>
24717
24718         utimens.c: correct kernel bug work-around
24719         Ondřej Vašík found that the invalid return value of 280 indicates
24720         failure, not success, and the kernel bug we're trying to work
24721         around affects not just the utimensat call, but also the fallback
24722         futimens call.
24723         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24724         not success.
24725         [HAVE_FUTIMENS]: Use the same work-around, here.
24726
24727 2008-06-09  Jim Meyering  <meyering@redhat.com>
24728
24729         add more guards around definition of ACE_-related code
24730         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24731         ALLOW and ACE_OWNER are also defined.
24732
24733 2008-06-08  Bruno Haible  <bruno@clisp.org>
24734
24735         * lib/acl-internal.h: Add me as co-author.
24736         * lib/file-has-acl.c: Likewise.
24737         * lib/set-mode-acl.c: Likewise.
24738         * lib/copy-acl.c: Likewise.
24739
24740 2008-06-08  Bruno Haible  <bruno@clisp.org>
24741
24742         Add support for AIX ACLs.
24743         * lib/acl-internal.h (acl_nontrivial): New declaration.
24744         * lib/file-has-acl.c (acl_nontrivial): New function.
24745         (file_has_acl): Add implementation using AIX 4 ACL API.
24746         * lib/set-mode-acl.c (qset_acl): Likewise.
24747         * lib/copy-acl.c (qcopy_acl): Likewise.
24748
24749 2008-06-08  Bruno Haible  <bruno@clisp.org>
24750
24751         Add support for HP-UX ACLs.
24752         * lib/acl-internal.h (acl_nontrivial): New declaration.
24753         * lib/file-has-acl.c (acl_nontrivial): New function.
24754         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24755         * lib/set-mode-acl.c (qset_acl): Likewise.
24756         * lib/copy-acl.c (qcopy_acl): Likewise.
24757
24758 2008-06-08  Bruno Haible  <bruno@clisp.org>
24759
24760         Add support for Cygwin ACLs.
24761         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24762         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24763         the chmod_or_fchmod call.
24764         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24765
24766 2008-06-08  Bruno Haible  <bruno@clisp.org>
24767
24768         Fix bug with setuid modes in Solaris 10+ code.
24769         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24770         succeeded, when the mode contains some special bits.
24771
24772 2008-06-08  Bruno Haible  <bruno@clisp.org>
24773
24774         Add support for Solaris 7..10 ACLs.
24775         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24776         declarations.
24777         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24778         functions.
24779         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24780         * lib/set-mode-acl.c (qset_acl): Likewise.
24781         * lib/copy-acl.c (qcopy_acl): Likewise.
24782
24783 2008-06-08  Bruno Haible  <bruno@clisp.org>
24784
24785         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24786         declaration.
24787         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24788         (acl_access_nontrivial): Remove MacOS X case.
24789         (file_has_acl): Use acl_extended_nontrivial.
24790         * lib/copy-acl.c (qcopy_acl): Likewise.
24791
24792 2008-06-08  Bruno Haible  <bruno@clisp.org>
24793
24794         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24795
24796 2008-06-08  Jim Meyering  <meyering@redhat.com>
24797
24798         * modules/acl (Maintainer): Add Bruno Haible.
24799
24800 2008-06-07  Bruno Haible  <bruno@clisp.org>
24801
24802         Improve support for Tru64 ACLs.
24803         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24804         ACL on OSF/1.
24805
24806 2008-06-07  Bruno Haible  <bruno@clisp.org>
24807
24808         Add support for MacOS X ACLs.
24809         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24810         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24811         * lib/set-mode-acl.c (qset_acl): Likewise.
24812         * lib/copy-acl.c (qcopy_acl): Likewise.
24813
24814 2008-06-07  Bruno Haible  <bruno@clisp.org>
24815
24816         Fix memory leak introduced on 2008-05-22.
24817         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24818         use.
24819
24820 2008-06-07  Bruno Haible  <bruno@clisp.org>
24821
24822         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24823         to construct an empty ACL.
24824
24825 2008-06-07  Bruno Haible  <bruno@clisp.org>
24826
24827         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24828         precisely.
24829         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24830
24831 2008-06-07  Bruno Haible  <bruno@clisp.org>
24832
24833         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24834         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24835
24836 2008-06-07  Bruno Haible  <bruno@clisp.org>
24837
24838         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24839         regardless of POSIX.
24840         * doc/posix-functions/_longjmp.texi: Likewise.
24841         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24842         SystemV platform in this case.
24843
24844 2008-06-06  Eric Blake  <ebb9@byu.net>
24845
24846         Document abort() bugs.
24847         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24848
24849         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24850         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24851         sigsetjmp.
24852         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24853         siglongjmp, but only as a macro.
24854         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24855         is obsolete.
24856         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24857
24858         Tweak documentation to cover cygwin argz bugs.
24859         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24860         argz bug fix; no code change needed since no cygwin releases
24861         occurred between the last fix and the bug being tested.
24862         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24863         module and recently fixed cygwin bugs.
24864         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24865         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24866         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24867         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24868         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24869         Likewise.
24870         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24871         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24872         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24873         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24874         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24875         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24876         Likewise.
24877
24878         Avoid gcc warning on cygwin.
24879         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24880         !ACL_NO_TRIVIAL]: Avoid unused variable.
24881
24882 2008-06-05  Eric Blake  <ebb9@byu.net>
24883
24884         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24885         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24886         git-version-gen fails to come up with a version.
24887         Reported by Simon Josefsson.
24888
24889 2008-06-05  Jim Meyering  <meyering@redhat.com>
24890             Paul Eggert  <eggert@cs.ucla.edu>
24891
24892         utimens.c: work around a probable Linux kernel bug
24893         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24894         appears to be a kernel bug that causes utimensat to return 280
24895         instead of 0, indicating success.
24896
24897 2008-06-04  Bruno Haible  <bruno@clisp.org>
24898
24899         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24900         2008-06-01 commit.
24901
24902 2008-06-04  Bruno Haible  <bruno@clisp.org>
24903
24904         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24905         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24906         (file_has_acl): Use it. Save errno afterwards.
24907         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24908
24909 2008-06-03  Bruno Haible  <bruno@clisp.org>
24910
24911         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24912         draft code. Simplify #ifs.
24913         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24914         Put Solaris code after POSIX-draft code. Fix comments regarding
24915         Solaris 10, HP-UX. Mention Cygwin.
24916         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24917
24918 2008-06-03  Eric Blake  <ebb9@byu.net>
24919
24920         Provide fallback for older kernels.
24921         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24922         Provide runtime fallback if kernel lacks support.
24923         Reported by Mike Frysinger.
24924
24925 2008-06-02  Bruno Haible  <bruno@clisp.org>
24926
24927         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24928         it exists.
24929
24930 2008-06-02  Bruno Haible  <bruno@clisp.org>
24931
24932         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24933         * lib/copy-acl.c (qcopy_acl): Update comment.
24934
24935 2008-06-02  Bruno Haible  <bruno@clisp.org>
24936
24937         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24938         like ACL APIs.
24939
24940 2008-06-02  Bruno Haible  <bruno@clisp.org>
24941
24942         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24943         * tests/test-set-mode-acl.sh: Likewise.
24944         * tests/test-copy-acl.sh: Likewise.
24945         * tests/test-copy-file.sh: Likewise.
24946
24947 2008-06-02  Bruno Haible  <bruno@clisp.org>
24948
24949         * tests/test-file-has-acl.sh: Remove unused code.
24950
24951 2008-06-01  Bruno Haible  <bruno@clisp.org>
24952
24953         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24954         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24955         messages.
24956         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24957
24958 2008-06-01  Bruno Haible  <bruno@clisp.org>
24959
24960         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24961         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24962         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24963         APIs.
24964         * modules/acl-tests (configure.ac): Remove tests now contained in
24965         m4/acl.m4.
24966
24967 2008-06-02  Jim Meyering  <meyering@redhat.com>
24968
24969         announce-gen: use a better key-server host name
24970         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24971         it may be more consistently reliable.  Suggested by Werner Koch
24972         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24973
24974 2008-06-01  Bruno Haible  <bruno@clisp.org>
24975
24976         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24977         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24978
24979 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24980
24981         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24982
24983 2008-06-01  Bruno Haible  <bruno@clisp.org>
24984
24985         New ACL tests.
24986         * tests/test-file-has-acl.sh: New file.
24987         * tests/test-file-has-acl.c: New file.
24988         * tests/test-set-mode-acl.sh: New file.
24989         * tests/test-set-mode-acl.c: New file.
24990         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24991         * tests/test-copy-acl.c: New file.
24992         * modules/acl-tests: New file, based on modules/copy-file-tests.
24993         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24994         (Depends-on): Add acl-tests.
24995         (configure.ac): Remove checks.
24996         (Makefile.am): Don't create test-sameacls program here any more.
24997
24998 2008-06-01  Bruno Haible  <bruno@clisp.org>
24999
25000         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
25001         * tests/test-sameacls.c: Include progname.h.
25002         (main): Invoke set_program_name. Portability fixes for MacOS X,
25003         Solaris, HP-UX.
25004
25005 2008-06-01  Bruno Haible  <bruno@clisp.org>
25006
25007         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
25008         function.
25009         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
25010
25011 2008-06-01  Bruno Haible  <bruno@clisp.org>
25012
25013         * modules/rpmatch (Depends-on): Add strdup.
25014
25015 2008-06-01  Bruno Haible  <bruno@clisp.org>
25016
25017         * lib/pipe.c: Include unistd-safer.h.
25018         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
25019         * modules/pipe (Depends-on): Add unistd-safer.
25020
25021 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25022
25023         * modules/autobuild (configure.ac): Call AB_INIT.
25024
25025 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25026
25027         * tests/test-getaddrinfo.c: Don't print debug messages by default.
25028         Suggested by Bruno Haible <bruno@clisp.org>.
25029
25030 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25031
25032         * tests/test-base64.c: Cast size_t to unsigned long when invoking
25033         printf.  Use %lu instead of %d.  Reported by Bruno Haible
25034         <bruno@clisp.org>.
25035
25036 2008-05-29  Eric Blake  <ebb9@byu.net>
25037
25038         Prefer new POSIX 200x interfaces over futimesat.
25039         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
25040         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
25041         when available.
25042         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
25043
25044 2008-05-28  Bruno Haible  <bruno@clisp.org>
25045
25046         * modules/stpcpy (License): Change to LGPLv2+.
25047         Requested by David Lutterkort <dlutter@redhat.com>.
25048
25049 2008-05-27  Bruno Haible  <bruno@clisp.org>
25050
25051         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
25052         current mingw.
25053         Reported by Jose E. Marchesi <jemarch@gnu.org>.
25054
25055 2008-05-27  Bruno Haible  <bruno@clisp.org>
25056
25057         * modules/iconv_open (Link): New section, from module 'iconv'.
25058         * modules/striconv (Link): Likewise.
25059         * modules/striconveh (Link): Likewise.
25060         * modules/xstriconv (Link): Likewise.
25061         * modules/unicodeio (Link): Likewise.
25062         * modules/propername (Link): Likewise.
25063         Reported by Jim Meyering.
25064
25065 2008-05-26  Jim Meyering  <meyering@redhat.com>
25066
25067         sha256: do not artificially restrict buffer length to be < 2^32
25068         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
25069         uint32_t to size_t.
25070         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
25071         to match.
25072
25073         avoid unaligned access errors, e.g., on sparc
25074         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
25075         direct access through a possibly-unaligned uint64* pointer.
25076         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
25077         direct access through a possibly-unaligned uint32* pointer.
25078         Prompted by this patch from Tom "spot" Callaway:
25079         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
25080
25081         sha512.c: fix typo in comment
25082         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
25083
25084 2008-05-25  Bruno Haible  <bruno@clisp.org>
25085
25086         * lib/set-mode-acl.c: Renamed from lib/acl.c.
25087         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
25088         (Makefile.am): Update lib_SOURCES.
25089
25090 2008-05-25  Bruno Haible  <bruno@clisp.org>
25091
25092         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
25093
25094 2008-05-25  Jim Meyering  <meyering@redhat.com>
25095
25096         useless-if-before-free: freed expr may have white-space differences
25097         * build-aux/useless-if-before-free: Recognize cases in which the
25098         freed expression differs from the tested one in embedded white
25099         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
25100         $1 was used, so we can't make any regexp shy.  Improved tests now
25101         detect this.
25102
25103         useless-if-before-free: accept white space in the expression.
25104         * build-aux/useless-if-before-free: For now, any white space
25105         in the expression must be identical in the free argument.
25106
25107         useless-if-before-free: efficiency tweak
25108         * build-aux/useless-if-before-free: Make the expression-matching
25109         regexp "shy".
25110         Make the *outer* regexp shy, not the expr-matching one.
25111
25112         update code-in-comment to accept cast of free arg
25113         * build-aux/useless-if-before-free: Update regexp.
25114
25115 2008-05-25  Bruno Haible  <bruno@clisp.org>
25116
25117         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
25118         * modules/copy-file-tests (Files, Makefile.am): Update.
25119         * tests/test-copy-file.c (func_test_copy): Update.
25120
25121 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
25122
25123         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
25124
25125 2008-05-23  Bruno Haible  <bruno@clisp.org>
25126
25127         Improve support for ACLs on OSF/1.
25128         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
25129         Remove fallback for unknown flavors of ACLs.
25130
25131 2008-05-22  Bruno Haible  <bruno@clisp.org>
25132
25133         Add support for ACLs on OSF/1.
25134         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
25135         replacements.
25136         (acl_free_text): New macro fallback.
25137         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
25138         acl_free.
25139         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
25140         acl_free_text function. Require AC_C_INLINE.
25141
25142 2008-05-22  Bruno Haible  <bruno@clisp.org>
25143
25144         Make copy_acl work on MacOS X 10.5.
25145         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
25146         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
25147         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
25148         If MODE_INSIDE_ACL, don't assume that every system has the same text
25149         representation for ACLs as FreeBSD.
25150         * lib/copy-acl.c (copy_acl): Add support for platforms with
25151         !MODE_INSIDE_ACL.
25152         * lib/file-has-acl.c (file_has_acl): Likewise.
25153         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
25154         FreeBSD, MacOS X, or IRIX, respectively.
25155
25156 2008-05-22  Bruno Haible  <bruno@clisp.org>
25157
25158         * lib/acl.h: Don't include <sys/acl.h>.
25159         (GETACLCNT): Move fallback to lib/acl-internal.h.
25160         * lib/acl-internal.h: Include <sys/acl.h> here.
25161         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
25162
25163 2008-05-22  Bruno Haible  <bruno@clisp.org>
25164
25165         Split off copy_acl function to separate file.
25166         * lib/copy-acl.c: New file, extracted from lib/acl.c.
25167         * lib/acl.c (copy_acl): Moved function to separate file.
25168         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
25169         * modules/acl (Files): Add lib/copy-acl.c.
25170         (Makefiles.am): Augment lib_SOURCES.
25171
25172 2008-05-22  Bruno Haible  <bruno@clisp.org>
25173
25174         * modules/copy-file-tests: New file.
25175         * tests/test-copy-file.sh: New file.
25176         * tests/test-copy-file.c: New file.
25177         * tests/test-copy-file-sameacls.c: New file.
25178
25179 2008-05-22  Eric Blake  <ebb9@byu.net>
25180
25181         Avoid gcc warning.
25182         * tests/test-memcmp.c (main): Pass NULL indirectly.
25183
25184 2008-05-21  Bruno Haible  <bruno@clisp.org>
25185
25186         Add reference doc about ACLs.
25187         * doc/acl-resources.txt: New file.
25188         * doc/acl-cygwin.txt: New file.
25189
25190 2008-05-21  Bruno Haible  <bruno@clisp.org>
25191
25192         Avoid one more warning from gcc.
25193         * lib/vasnprintf.c (IF_LINT): Update comments.
25194         (VASNPRINTF): Use it also for the 'prefix' array initializer.
25195
25196 2008-05-21  Jim Meyering  <meyering@redhat.com>
25197
25198         avoid a warning from gcc
25199         * lib/vasnprintf.c (IF_LINT): Define.
25200         (scale10_round_decimal_long_double):
25201         Use it to avoid a "may be used uninitialized" warning.
25202         (scale10_round_decimal_double): Likewise.
25203
25204 2008-05-21  Simon Josefsson  <simon@josefsson.org>
25205
25206         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
25207         declared.
25208
25209 2008-05-20  Bruno Haible  <bruno@clisp.org>
25210
25211         * tests/test-memcmp.c (main): Test also the sign of the result. Test
25212         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
25213
25214 2008-05-20  Simon Josefsson  <simon@josefsson.org>
25215
25216         * modules/memcmp-tests: New file.
25217         * tests/test-memcmp.c: New file.
25218
25219 2008-05-19  Bruno Haible  <bruno@clisp.org>
25220
25221         * modules/propername (Notice, configure.ac): Put quoted "..." into
25222         --keyword option.
25223         * lib/propername.h: Update comments accordingly.
25224         Reported by Eric Blake.
25225
25226 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
25227
25228         * modules/getpass-gnu (Depends-on): Add fseeko.
25229
25230 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25231
25232         * modules/base64-tests: New file.
25233
25234 2008-05-19  Bo Borgerson <gigabo@gmail.com>
25235
25236         * lib/base64.c (base64_decode_ctx): If a decode context structure
25237         was passed in use it to ignore newlines.  If a context structure
25238         was _not_ passed in, continue to treat newlines as garbage (this
25239         is the historical behavior).  Formerly base64_decode.
25240         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25241         takes a decode context structure.
25242         * lib/base64.h (base64_decode): Macro for four-argument calls.
25243         (base64_decode_alloc): Likewise.
25244         * lib/base64.c (base64_decode_ctx): If a decode context structure
25245         was passed in use it to ignore newlines.  If a context structure
25246         was _not_ passed in, continue to treat newlines as garbage (this
25247         is the historical behavior).  Formerly base64_decode.
25248         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25249         takes a decode context structure.
25250         * lib/base64.h (base64_decode): Macro for four-argument calls.
25251         (base64_decode_alloc): Likewise.
25252
25253 2008-05-19  Jim Meyering  <meyering@redhat.com>
25254
25255         avoid a warning from gcc
25256         * lib/trim.c (IF_LINT): Define.
25257         (trim2): Use it to avoid a "may be used uninitialized" warning.
25258
25259         Fix doc typo.
25260         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
25261
25262 2008-05-19  Bruno Haible  <bruno@clisp.org>
25263
25264         * doc/glibc-functions/getpass.texi: Document limits of other
25265         implementations.
25266
25267 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25268             Bruno Haible <bruno@clisp.org>
25269
25270         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
25271
25272 2008-05-18  Bruno Haible  <bruno@clisp.org>
25273
25274         * modules/propername: New file, from GNU gettext.
25275         * lib/propername.h: New file, from GNU gettext.
25276         * lib/propername.c: New file, from GNU gettext.
25277         * MODULES.html.sh (Internationalization functions): Add propername.
25278
25279 2008-05-16  Jim Meyering  <meyering@redhat.com>
25280             Bruno Haible  <bruno@clisp.org>
25281
25282         Avoid some warnings from "gcc -Wshadow".
25283         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
25284
25285 2008-05-15  Eric Blake  <ebb9@byu.net>
25286
25287         Extend previous patch to cygwin 1.7.0.
25288         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
25289         fast implementation in cygwin >= 1.7.0.
25290         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25291         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25292
25293 2008-05-15  Bruno Haible  <bruno@clisp.org>
25294
25295         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
25296         implementation in glibc >= 2.9.
25297         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25299
25300 2008-05-15  Bruno Haible  <bruno@clisp.org>
25301
25302         * MODULES.html.sh (Internationalization functions): Remove linebreak.
25303         (Unicode string functions): Add unilbrk/*.
25304         Reported by Karl Berry.
25305
25306 2008-05-15  Eric Blake  <ebb9@byu.net>
25307
25308         Fix violation of <stdbool.h> replacement in regex.
25309         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
25310         * lib/regexec.c (re_search_internal): Likewise.
25311         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
25312
25313 2008-05-15  Jim Meyering  <meyering@redhat.com>
25314
25315         avoid distracting test output when git or cvs is not found
25316         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
25317         * tests/test-vc-list-files-git.sh: Likewise.
25318
25319 2008-05-15  Eric Blake  <ebb9@byu.net>
25320
25321         Glibc finally accepted the memmem speedup code, bugzilla #5514.
25322         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
25323         glibc version.
25324         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25325         * doc/posix-functions/strstr.texi (strstr): Likewise.
25326         * lib/str-two-way.h (MAX): Sychronize with glibc.
25327
25328 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
25329
25330         * lib/regcomp.c (optimize_utf8): Add a note on why we test
25331         opr.ctx_type.
25332         (calc_first): Initialize constraint field.
25333         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25334         Fix grammar.
25335         (duplicate_node): Merge constraint field for all node types.
25336         (calc_eclosure_iter): Look at constraint field for all node types.
25337         * lib/regex_internal.c (create_cd_newstate): Don't look at
25338         opr.ctx_type.
25339
25340 2008-05-14  Bruno Haible  <bruno@clisp.org>
25341
25342         Help GCC to do better code generation.
25343         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25344         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25345         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25346         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25347         Declare with attribute 'malloc' if supported.
25348
25349 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25350
25351         use "echo STR|wc -c" rather than unportable "expr length STR"
25352         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25353         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25354
25355 2008-05-14  Jim Meyering  <meyering@redhat.com>
25356
25357         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25358         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25359         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25360         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25361         via Collin Lasse.
25362
25363 2008-05-14  Eric Blake  <ebb9@byu.net>
25364
25365         Avoid quadratic growth in gl_LIBSOURCES.
25366         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25367         Suggested by Bruno Haible.
25368
25369         Test xmemdup0.
25370         * modules/xmemdup0-tests: New file.
25371         * tests/test-xmemdup0.c: Likewise.
25372
25373 2008-05-13  Eric Blake  <ebb9@byu.net>
25374
25375         Split xmemdup0 into its own module.
25376         * modules/xmemdup0: New file.
25377         * lib/xmemdup0.h: Likewise.
25378         * lib/xmemdup0.c: Likewise.
25379         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25380         * lib/xalloc.h (xmemdup0): Remove.
25381         * lib/xmalloc.c (xmemdup0): Likewise.
25382
25383 2008-05-13  Eric Blake  <ebb9@byu.net>
25384             Bruno Haible  <bruno@clisp.org>
25385
25386         Reduce number of forks required during autoconf.
25387         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25388         and gl_LIBSOURCES_DIR.
25389         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25390         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25391         m4_syscmd per file.
25392         <m4_foreach_w>: Move...
25393         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25394
25395 2008-05-13  Eric Blake  <ebb9@byu.net>
25396
25397         * gnulib-tool: Fix various comment typos.
25398
25399 2008-05-12  Bruno Haible  <bruno@clisp.org>
25400
25401         Tailor the linebreaking algorithm.
25402         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25403
25404 2008-05-12  Bruno Haible  <bruno@clisp.org>
25405
25406         Update to Unicode 5.0.0.
25407         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25408         LBP_JV, LBP_JT. Redistribute values.
25409         (unilbrk_table): Change size.
25410         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25411         Unicode TR#14 rev. 22.
25412         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25413         LBP_JV, LBP_JT. Redistribute values.
25414         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25415         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25416         Update.
25417         * lib/unilbrk/lbrkprop1.h: Regenerated.
25418         * lib/unilbrk/lbrkprop2.h: Regenerated.
25419         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25420         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25421         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25422         Likewise.
25423         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25424         Likewise.
25425         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25426         result.
25427         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25428         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25429         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25430         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25431         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25432         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25433
25434 2008-05-11  Bruno Haible  <bruno@clisp.org>
25435
25436         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25437
25438 2008-05-11  Bruno Haible  <bruno@clisp.org>
25439
25440         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25441         * modules/unilbrk/gen-lbrk: New file.
25442
25443 2008-05-11  Bruno Haible  <bruno@clisp.org>
25444
25445         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25446         * m4/sha512.m4 (gl_SHA512): Likewise.
25447
25448 2008-05-11  Jim Meyering  <meyering@redhat.com>
25449
25450         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25451         * modules/crypto/sha256: New file.
25452         * modules/crypto/sha512: Likewise.
25453         * lib/sha256.c: Likewise.
25454         * lib/sha256.h: Likewise.
25455         * lib/sha512.c: Likewise.
25456         * lib/sha512.h: Likewise.
25457         * lib/u64.h: Likewise.
25458         * m4/sha256.m4: Likewise.
25459         * m4/sha512.m4: Likewise.
25460         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25461
25462 2008-05-10  Bruno Haible  <bruno@clisp.org>
25463
25464         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25465         (Input/Output <stdio.h>): Add xprintf.
25466         (Signal handling <signal.h>): Add strsignal.
25467         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25468         (Core language properties): Add func.
25469         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25470         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25471         strings.
25472         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25473         (Input/output): New section.
25474         (File system functions): Add openat-die, stat-macros.
25475         (Networking functions): Add sockets.
25476         (Unicode string functions): Add unictype/*.
25477         (Support for building libraries and executables): Add gperf.
25478         (Support for building documentation): Add agpl-3.0.
25479         (Misc): Add nocrash.
25480
25481 2008-05-10  Bruno Haible  <bruno@clisp.org>
25482
25483         * modules/unictype/gen-ctype: New file.
25484
25485 2008-05-10  Jim Meyering  <meyering@redhat.com>
25486
25487         Make chdir-safer.c more efficient on a system with no symlinks.
25488         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25489         also if ELOOP is zero.  Suggested by Bruno Haible.
25490
25491         Make chdir-safer.c slightly safer.
25492         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25493         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25494
25495         Avoid compile failure on systems without ELOOP (like mingw).
25496         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25497         Reported by Bruno Haible.
25498
25499 2008-05-10  Bruno Haible  <bruno@clisp.org>
25500
25501         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25502         (is_utf8_encoding): Use a case-insensitive comparison.
25503         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25504         streq.
25505
25506 2008-05-10  Bruno Haible  <bruno@clisp.org>
25507
25508         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25509         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25510         * lib/unilbrk/ulc-common.h (iconv_string_length,
25511         iconv_string_keeping_offsets): Remove declarations.
25512         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25513         Don't include <iconv.h>, streq.h, xsize.h.
25514         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25515         conversion.
25516         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25517         <iconv.h>, streq.h, xsize.h.
25518         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25519         conversion.
25520         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25521         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25522         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25523         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25524
25525 2008-05-10  Bruno Haible  <bruno@clisp.org>
25526
25527         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25528         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25529
25530         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25531         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25532
25533         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25534         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25535
25536         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25537         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25538
25539         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25540         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25541
25542         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25543         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25544
25545         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25546         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25547
25548         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25549         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25550
25551 2008-05-10  Bruno Haible  <bruno@clisp.org>
25552
25553         Split up 'linebreak' module.
25554         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25555         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25556         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25557         modifications.
25558         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25559         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25560         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25561         lib/linebreak.c.
25562         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25563         lib/linebreak.c.
25564         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25565         lib/linebreak.c.
25566         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25567         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25568         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25569         lib/linebreak.c.
25570         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25571         lib/linebreak.c.
25572         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25573         lib/linebreak.c.
25574         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25575         lib/linebreak.c.
25576         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25577         lib/linebreak.c.
25578         * modules/unilbrk/base: New file.
25579         * modules/unilbrk/tables: New file.
25580         * modules/unilbrk/u8-possible-linebreaks: New file.
25581         * modules/unilbrk/u16-possible-linebreaks: New file.
25582         * modules/unilbrk/u32-possible-linebreaks: New file.
25583         * modules/unilbrk/ulc-common: New file.
25584         * modules/unilbrk/ulc-possible-linebreaks: New file.
25585         * modules/unilbrk/u8-width-linebreaks: New file.
25586         * modules/unilbrk/u16-width-linebreaks: New file.
25587         * modules/unilbrk/u32-width-linebreaks: New file.
25588         * modules/unilbrk/ulc-width-linebreaks: New file.
25589         * lib/linebreak.h: Remove file.
25590         * lib/linebreak.c: Remove file.
25591         * m4/linebreak.m4: Remove file.
25592         * modules/linebreak: Remove file.
25593         * NEWS: Mention the changes.
25594
25595 2008-05-09  Eric Blake  <ebb9@byu.net>
25596
25597         Add xmemdup0.
25598         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25599         implementation.
25600         * lib/xmalloc.c (xmemdup0): New C implementation.
25601
25602 2008-05-08  Bruno Haible  <bruno@clisp.org>
25603
25604         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25605
25606 2008-05-07  Eric Blake  <ebb9@byu.net>
25607
25608         Support cross-compilation of <wctype.h>.
25609         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25610         AC_CACHE_CHECK.
25611
25612 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25613
25614         * build-aux/vc-list-files: Add support for bzr.
25615
25616 2008-05-03  Jim Meyering  <meyering@redhat.com>
25617
25618         avoid failed assertion with tight malloc
25619         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25620
25621 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25622
25623         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25624         are needed from arpa/inet.h.
25625         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25626         Reported by Bruno Haible.
25627
25628 2008-05-02  Jim Meyering  <meyering@redhat.com>
25629
25630         avoid compilation error on FreeBSD 6
25631         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25632
25633 2008-05-01  Jim Meyering  <meyering@redhat.com>
25634
25635         useless-if-before-free: correct --help's exit status description
25636         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25637         for one or more matches, etc.  Reported by Bruno Haible.
25638
25639         vc-list-files: make the stand-alone gnulib test work
25640         * modules/vc-list-files-tests (configure.ac):
25641         Define and AC_SUBST abs_aux_dir.
25642         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25643         $(abs_top_srcdir) to each script and having each of them
25644         duplicate the work of setting PATH, set PATH here, using
25645         the new variable, abs_aux_dir instead.
25646         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25647         * tests/test-vc-list-files-git.sh: Likewise.
25648         Reported by Bruno Haible.
25649
25650 2008-05-01  Bruno Haible  <bruno@clisp.org>
25651
25652         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25653         reallocation. Rename 'done' to 'found_delimiter'.
25654
25655 2008-05-01  Jim Meyering  <meyering@redhat.com>
25656
25657         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25658         * build-aux/vc-list-files: Use `...`, not $(...).
25659
25660 2008-04-30  Jim Meyering  <meyering@redhat.com>
25661
25662         add tests for vc-list-files
25663         * modules/vc-list-files-tests: New module.
25664         * tests/test-vc-list-files-cvs.sh: New file.
25665         * tests/test-vc-list-files-git.sh: New file.
25666
25667         avoid a warning from gcc
25668         * lib/getndelim2.c (IF_LINT): Define.
25669         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25670
25671         vc-list-files: work properly with build-aux/cvsu, too
25672         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25673         to all cvs-based clauses.
25674
25675         vc-list-files: work properly in the CVS+awk case, too
25676         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25677
25678         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25679         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25680         take more than one file argument, so .  Add quotes, just in case $dir
25681         ever contains a shell meta-character.  Prompted by Soren Hansen in
25682         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25683
25684 2008-04-29  Eric Blake  <ebb9@byu.net>
25685
25686         Optimize getndelim2 to use block operations when possible.
25687         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25688         freadseek, and memchr2.
25689         * lib/getndelim2.c (getndelim2): Use them for block reads.
25690
25691 2008-04-29  Bruno Haible  <bruno@clisp.org>
25692
25693         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25694         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25695         * modules/inet_ntop (Depends-on): Add extensions.
25696         * modules/inet_pton (Depends-on): Likewise.
25697         Reported by Simon Josefsson.
25698
25699 2008-04-29  Jim Meyering  <meyering@redhat.com>
25700
25701         When the is more than one match in a block, match all of them.
25702         * build-aux/useless-if-before-free: Iterate through each block
25703         until there are no more matches.
25704
25705         Fix broken useless-if-before-free script.
25706         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25707         the expression to match cast of argument to free-like function.
25708
25709 2008-04-29  Eric Blake  <ebb9@byu.net>
25710
25711         Use new header.
25712         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25713
25714 2008-04-29  Jim Meyering  <meyering@redhat.com>
25715
25716         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25717         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25718         by gnulib to exist and to declare e.g., inet_ntop.
25719         Don't include "inet_ntop.h", now removed.
25720
25721         * m4/arpa_inet_h.m4: Remove trailing blanks.
25722
25723 2008-04-29  Eric Blake  <ebb9@byu.net>
25724
25725         Silence valgrind on safe reads beyond potential array bounds.
25726         * lib/rawmemchr.valgrind: New file.
25727         * lib/strchrnul.valgrind: Likewise.
25728         * modules/rawmemchr (Files): Distribute new file.
25729         * modules/strchrnul (Files): Likewise.
25730         Suggested by Bruno Haible.
25731
25732 2008-04-29  Bruno Haible  <bruno@clisp.org>
25733
25734         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25735         (inet_ntop, inet_pton): Change portability warning's wording.
25736         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25737         Invoke gl_CHECK_NEXT_HEADERS.
25738         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25739         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25740         set ARPA_INET_H.
25741         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25742         * modules/arpa_inet (Description): No longer only for systems that
25743         lack it.
25744         (Depends-on): Add include_next.
25745         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25746         HAVE_ARPA_INET_H.
25747
25748 2008-04-29  Jim Meyering  <meyering@redhat.com>
25749
25750         * modules/mkdir (License): Re-license as LGPLv2+.
25751
25752 2008-04-29  Bruno Haible  <bruno@clisp.org>
25753
25754         * modules/rawmemchr (Maintainer): Set to Eric.
25755         * modules/strchrnul (Maintainer): Likewise.
25756
25757 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25758
25759         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25760         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25761
25762         * modules/arpa_inet (arpa/inet.h): Use them.
25763
25764 2008-04-28  Eric Blake  <ebb9@byu.net>
25765
25766         Test getndelim2.
25767         * modules/getndelim2-tests: New file.
25768         * tests/test-getndelim2.c: Likewise.
25769         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25770         stream.
25771         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25772
25773         * MODULES.html.sh: Document new module.
25774
25775 2008-04-20  Bruno Haible  <bruno@clisp.org>
25776
25777         * lib/c-stack.c (die): Use raise.
25778         * modules/c-stack (Depends-on): Add raise.
25779
25780 2008-04-28  Bruno Haible  <bruno@clisp.org>
25781
25782         Expect rpmatch to be declared.
25783         * lib/yesno.c (rpmatch): Remove declaration.
25784
25785         Declare rpmatch.
25786         * lib/stdlib.in.h (rpmatch): New declaration.
25787         * lib/rpmatch.c: Include <stdlib.h> first.
25788         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25789         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25791         HAVE_RPMATCH.
25792         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25793         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25794         (Include): Set to <stdlib.h>.
25795         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25796         HAVE_RPMATCH.
25797         * NEWS: Document the change.
25798
25799 2008-04-28  Bruno Haible  <bruno@clisp.org>
25800
25801         Change rpmatch to use nl_langinfo when appropriate.
25802         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25803         (N_): New macro.
25804         (localized_pattern): New function/macro.
25805         (try): Remove match, nomatch arguments. Copy the pattern into safe
25806         memory before caching it.
25807         (rpmatch): Use localized_pattern. Add translator comments.
25808         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25809         Suggested by Eric Blake.
25810         * modules/rpmatch (Depends-on): Add stdbool.
25811
25812 2008-04-28  Eric Blake  <ebb9@byu.net>
25813
25814         Add rawmemchr module, matching glibc.
25815         * modules/string (Makefile.am): New indicator.
25816         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25817         * lib/string.in.h (rawmemchr): Declare when appropriate.
25818         * modules/rawmemchr: New file.
25819         * m4/rawmemchr.m4: Likewise.
25820         * lib/rawmemchr.c: Likewise.
25821         * modules/rawmemchr-tests: Likewise.
25822         * tests/test-rawmemchr.c: Likewise.
25823         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25824         module.
25825         * modules/strchrnul (Depends-on): Add rawmemchr.
25826         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25827
25828         Whitespace cleanup.
25829         * tests/test-strchrnul.c: Reindent.
25830         * lib/strchrnul.c: Likewise.
25831
25832         Optimize and test strchrnul.
25833         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25834         * modules/strchrnul-tests: New file.
25835         * tests/test-strchrnul.c: Likewise.
25836
25837         Remove intprops dependency.
25838         * modules/memchr (Depends-on): Remove intprops.
25839         * modules/memrchr (Depends-on): Likewise.
25840         * modules/memchr2 (Depends-on): Likewise.
25841         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25842         * lib/memrchr.c (__memrchr): Likewise.
25843         * lib/memrchr2.c (memchr2): Likewise.
25844         Reported by Simon Josefsson.
25845
25846 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25847
25848         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25849         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25850
25851 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25852
25853         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25854
25855         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25856
25857         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25858
25859         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25860         declarations.
25861         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25862
25863         * m4/inet_pton.m4: Don't check for header files.
25864
25865         * m4/inet_ntop.m4: Don't check for header files.
25866
25867 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25868
25869         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25870         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25871         trigger for cygwin).
25872         Reported by Bruno Haible  <bruno@clisp.org>.
25873
25874 2008-04-28  Bruno Haible  <bruno@clisp.org>
25875
25876         * doc/posix-functions/strdup.texi: Mention mingw problem.
25877
25878 2008-04-27  Bruno Haible  <bruno@clisp.org>
25879
25880         * modules/stat-time-tests (Depends-on): Add sleep.
25881         * tests/test-stat-time.c (force_unlink): New function.
25882         (cleanup): Use it.
25883         (test_mtime): Remove the ctime related tests.
25884         (test_ctime): New function, containing the ctime related tests.
25885         (main): Call test_ctime, except on native Windows platforms.
25886
25887 2008-04-27  Bruno Haible  <bruno@clisp.org>
25888
25889         * lib/rpmatch.c (rpmatch): Add some comments.
25890         Reported by James Youngman <jay@gnu.org>.
25891
25892 2008-04-27  Bruno Haible  <bruno@clisp.org>
25893
25894         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25895         quiet NaNs.
25896
25897 2008-04-27  Bruno Haible  <bruno@clisp.org>
25898
25899         Make test-yesno.sh work on mingw.
25900         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25901         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25902         (main): Set stdin to binary mode.
25903         * modules/yesno-tests (Depends-on): Add binary-io.
25904
25905 2008-04-27  Bruno Haible  <bruno@clisp.org>
25906
25907         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25908         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25909         argument that lie outside the IEEE 854 domain.
25910         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25911         (gl_ISFINITE): Use it.
25912         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25913
25914 2008-04-27  Bruno Haible  <bruno@clisp.org>
25915
25916         Allow local renaming in config.h.
25917         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25918
25919 2008-04-27  Bruno Haible  <bruno@clisp.org>
25920
25921         * lib/memchr.c (__memchr): Change type of 'i'.
25922         * lib/memchr2.c (memchr2): Likewise.
25923
25924 2008-04-26  Eric Blake  <ebb9@byu.net>
25925         and Bruno Haible  <bruno@clisp.org>
25926
25927         Optimize and test memrchr.
25928         * modules/memrchr (Depends-on): Add intprops.
25929         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25930         * modules/memrchr-tests: New file.
25931         * tests/test-memrchr.c: New file.
25932
25933 2008-04-26  Bruno Haible  <bruno@clisp.org>
25934
25935         Add tentative support for DragonFly BSD.
25936         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25937         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25938         fp.
25939         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25940         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25941         * lib/fpurge.c (fpurge): Likewise.
25942         * lib/freadable.c (freaadable): Likewise.
25943         * lib/freadahead.c (freadahead): Likewise.
25944         * lib/freading.c (freading): Likewise.
25945         * lib/freadptr.c (freadptr): Likewise.
25946         * lib/freadseek.c (freadptrinc): Likewise.
25947         * lib/fseeko.c (fseeko): Likewise.
25948         * lib/fseterr.c (fseterr): Likewise.
25949         * lib/fwritable.c (fwritable): Likewise.
25950         * lib/fwriting.c (fwriting): Likewise.
25951
25952 2008-04-26  Bruno Haible  <bruno@clisp.org>
25953
25954         * lib/stdio-impl.h: New file.
25955         * lib/fbufmode.c: Include stdio-impl.h.
25956         (fbufmode): Use fp_, remove redundant #defines.
25957         * lib/fflush.c: Include stdio-impl.h.
25958         (clear_ungetc_buffer): Remove redundant #defines.
25959         * lib/fpurge.c: Include stdio-impl.h.
25960         (fpurge): Remove redundant #defines.
25961         * lib/freadable.c: Include stdio-impl.h.
25962         (freadable): Remove redundant #defines.
25963         * lib/freadahead.c: Include stdio-impl.h.
25964         (freadahead): Remove redundant #defines.
25965         * lib/freading.c: Include stdio-impl.h.
25966         (freading): Remove redundant #defines.
25967         * lib/freadptr.c: Include stdio-impl.h.
25968         (freadptr): Remove redundant #defines.
25969         * lib/freadseek.c: Include stdio-impl.h.
25970         (freadptrinc): Remove redundant #defines.
25971         * lib/fseeko.c: Include stdio-impl.h.
25972         (rpl_fseeko): Remove redundant #defines.
25973         * lib/fseterr.c: Include stdio-impl.h.
25974         (fseterr): Remove redundant #defines.
25975         * lib/fwritable.c: Include stdio-impl.h.
25976         (fwritable: Remove redundant #defines.
25977         * lib/fwriting.c: Include stdio-impl.h.
25978         (fwriting): Remove redundant #defines.
25979         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25980         * modules/fflush (Files): Likewise.
25981         * modules/fpurge (Files): Likewise.
25982         * modules/freadable (Files): Likewise.
25983         * modules/freadahead (Files): Likewise.
25984         * modules/freading (Files): Likewise.
25985         * modules/freadptr (Files): Likewise.
25986         * modules/freadseek (Files): Likewise.
25987         * modules/fseeko (Files): Likewise.
25988         * modules/fseterr (Files): Likewise.
25989         * modules/fwritable (Files): Likewise.
25990         * modules/fwriting (Files): Likewise.
25991
25992 2008-04-26  Bruno Haible  <bruno@clisp.org>
25993
25994         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25995         restore_seek_optimization, update_fpos_cache): New functions, extracted
25996         from rpl_fflush.
25997         (rpl_fflush): Use them.
25998         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25999         (gl_REPLACE_FFLUSH): Use it.
26000
26001 2008-04-26  Bruno Haible  <bruno@clisp.org>
26002
26003         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
26004         on Solaris.
26005         * tests/test-xstrtoimax.sh: Likewise.
26006         * tests/test-xstrtoumax.sh: Likewise.
26007         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26008
26009 2008-04-26  Bruno Haible  <bruno@clisp.org>
26010
26011         * modules/memchr-tests: New file.
26012         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
26013
26014 2008-04-26  Eric Blake  <ebb9@byu.net>
26015             Bruno Haible  <bruno@clisp.org>
26016
26017         * lib/memchr.c: Include intprops.h.
26018         (__memchr): Optimize parallel detection of matching bytes. Rename local
26019         variables. Add explanatory comments.
26020
26021 2008-04-26  Bruno Haible  <bruno@clisp.org>
26022
26023         Fix module 'memchr', broken since 2000-10-28.
26024         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
26025
26026 2008-04-26  Bruno Haible  <bruno@clisp.org>
26027
26028         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
26029         comments.
26030
26031 2008-04-25  Eric Blake  <ebb9@byu.net>
26032
26033         Use native fstatat on cygwin 1.7.0.
26034         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
26035         first.
26036
26037 2008-04-23  Eric Blake  <ebb9@byu.net>
26038
26039         Improve memchr2 performance.
26040         * lib/memchr2.c (memchr2): Further optimize parallel detection of
26041         NUL bytes.
26042         * modules/memchr2 (Depends-on): Use intprops.h.
26043
26044 2008-04-23  Simon Josefsson  <simon@josefsson.org>
26045
26046         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
26047         an inline function instead of a CPP macro.  Patch by Ben Pfaff
26048         <blp@cs.stanford.edu>.
26049
26050 2008-04-23  Simon Josefsson  <simon@josefsson.org>
26051
26052         * lib/arpa_inet.in.h: New file.
26053
26054         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
26055         (Makefile.am): Sed in substitute header file.
26056
26057         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
26058         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
26059
26060         * modules/inet_ntop (configure.ac): Use
26061         gl_ARPA_INET_MODULE_INDICATOR.
26062
26063         * modules/inet_pton (configure.ac): Use
26064         gl_ARPA_INET_MODULE_INDICATOR.
26065
26066 2008-04-22  Jim Meyering  <meyering@redhat.com>
26067
26068         * modules/verify (License): Re-license as LGPLv2+.
26069
26070 2008-04-22  Simon Josefsson  <simon@josefsson.org>
26071
26072         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
26073         parameter to void* as per POSIX standard (MinGW uses char*).
26074
26075 2008-04-21  Bruno Haible  <bruno@clisp.org>
26076
26077         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26078         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
26079         Define to replacements if REPLACE_ISWCNTRL is 1.
26080         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
26081         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
26082         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
26083         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
26084         what it fixes.
26085         * doc/posix-functions/iswalpha.texi: Likewise.
26086         * doc/posix-functions/iswblank.texi: Likewise.
26087         * doc/posix-functions/iswcntrl.texi: Likewise.
26088         * doc/posix-functions/iswdigit.texi: Likewise.
26089         * doc/posix-functions/iswgraph.texi: Likewise.
26090         * doc/posix-functions/iswlower.texi: Likewise.
26091         * doc/posix-functions/iswprint.texi: Likewise.
26092         * doc/posix-functions/iswpunct.texi: Likewise.
26093         * doc/posix-functions/iswspace.texi: Likewise.
26094         * doc/posix-functions/iswupper.texi: Likewise.
26095         * doc/posix-functions/iswxdigit.texi: Likewise.
26096         Reported by Alain Guibert.
26097
26098 2008-04-21  Bruno Haible  <bruno@clisp.org>
26099
26100         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
26101         Patch by Alain Guibert.
26102
26103 2008-04-21  Bruno Haible  <bruno@clisp.org>
26104
26105         Fix test failures on mingw.
26106         * tests/test-xstrtol.c (print_no_progname): New function.
26107         (main): Install it in error_print_progname hook.
26108         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
26109         * tests/test-xstrtoimax.sh: Likewise.
26110         * tests/test-xstrtoumax.sh: Likewise.
26111
26112 2008-04-21  Bruno Haible  <bruno@clisp.org>
26113
26114         Fix test failure on mingw.
26115         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
26116
26117 2008-04-21  Bruno Haible  <bruno@clisp.org>
26118
26119         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
26120         Actually assign a value.
26121
26122 2008-04-20  Bruno Haible  <bruno@clisp.org>
26123
26124         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
26125         take 2.
26126         * lib/canonicalize.c (canonicalize_file_name): Elide if the
26127         'canonicalize-lgpl' module is also used.
26128         * lib/canonicalize-lgpl.c: Undo last change.
26129         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
26130
26131 2008-04-20  Bruno Haible  <bruno@clisp.org>
26132
26133         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
26134         config.h. Provide _mkdir based fallback for mingw.
26135         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
26136         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
26137         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
26138         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
26139         rather than defining mkdir in config.h.
26140         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
26141         (gl_SYS_STAT_H_DEFAULTS): New macro.
26142         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
26143         HAVE_IO_H any more.
26144         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
26145         HAVE_DECL_MKDIR and HAVE_IO_H.
26146
26147 2008-04-20  Bruno Haible  <bruno@clisp.org>
26148
26149         * lib/isapipe.c: Port to native Windows platforms.
26150
26151 2008-04-20  Bruno Haible  <bruno@clisp.org>
26152
26153         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
26154
26155 2008-04-21  Eric Blake  <ebb9@byu.net>
26156
26157         Work around preprocessors that don't handle UINTMAX_MAX.
26158         * lib/memchr2.c (memchr2): Avoid embedded #if.
26159         Reported by Alain Guibert, fix suggested by Bruno Haible.
26160
26161 2008-04-21  Simon Josefsson  <simon@josefsson.org>
26162
26163         * doc/posix-functions/strftime.texi (strftime): Explain better
26164         Windows incompatibility.  Suggested by Micah Cowan
26165         <micah@cowan.name>.
26166
26167 2008-04-20  Bruno Haible  <bruno@clisp.org>
26168
26169         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
26170         unistr/u8-mblen.
26171
26172 2008-04-20  Bruno Haible  <bruno@clisp.org>
26173
26174         Fix test failure on platforms with non-GNU iconv.
26175         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
26176         (U_TO_U8): Use it, rather than u16_to_u8.
26177         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
26178         units at the end of the input string.
26179         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
26180
26181 2008-04-20  Bruno Haible  <bruno@clisp.org>
26182
26183         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
26184         when the resulting length is 0.
26185         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
26186
26187 2008-04-20  Bruno Haible  <bruno@clisp.org>
26188
26189         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
26190         works.
26191         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
26192
26193 2008-04-20  Bruno Haible  <bruno@clisp.org>
26194
26195         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
26196         * modules/tsearch-tests (configure.ac): Test for initstate function.
26197
26198 2008-04-20  Bruno Haible  <bruno@clisp.org>
26199
26200         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
26201         for nlink_t if missing.
26202         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
26203
26204 2008-04-19  Bruno Haible  <bruno@clisp.org>
26205
26206         Work around snprintf bug on Linux libc5.
26207         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
26208         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26209         gl_SNPRINTF_SIZE1.
26210         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26211         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
26212         that test failed.
26213         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
26214         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
26215         * modules/snprintf (Files): Add m4/printf.m4.
26216         * modules/vsnprintf (Files): Likewise.
26217         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
26218         * doc/posix-functions/vsnprintf.texi: Likewise.
26219
26220 2008-04-19  Bruno Haible  <bruno@clisp.org>
26221
26222         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
26223         from 0.0058 to less than 10^-7.
26224
26225 2008-04-19  Bruno Haible  <bruno@clisp.org>
26226
26227         Fix rounding when a precision is given.
26228         * lib/vasnprintf.c (is_borderline): New function.
26229         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
26230         9...9x.
26231         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
26232         %e, %g.
26233         * tests/test-vasprintf-posix.c (test_function): Likewise.
26234         * tests/test-snprintf-posix.h (test_function): Likewise.
26235         * tests/test-sprintf-posix.h (test_function): Likewise.
26236         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
26237         * tests/test-printf-posix.h (test_function): Likewise.
26238         * tests/test-printf-posix.output: Update.
26239         Reported by John Darrington <john@darrington.wattle.id.au> via
26240         Ben Pfaff <blp@cs.stanford.edu>.
26241
26242 2008-04-18  Simon Josefsson  <simon@josefsson.org>
26243
26244         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
26245         Suggested by Bruno Haible <bruno@clisp.org>.
26246
26247 2008-04-17  Bruno Haible  <bruno@clisp.org>
26248
26249         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
26250         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
26251         implementation.
26252         Patch by Bruce Merry <bmerry@gmail.com>.
26253
26254 2008-04-17  Simon Josefsson  <simon@josefsson.org>
26255
26256         * doc/posix-functions/strftime.texi (strftime): Mention that %e
26257         doesn't work under Windows.
26258
26259 2008-04-16  Bruno Haible  <bruno@clisp.org>
26260
26261         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
26262         New macros.
26263         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
26264         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
26265         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
26266         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
26267         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
26268         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
26269         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
26270         macros.
26271         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
26272         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
26273         Northern Sotho, Uighur.
26274
26275 2008-04-16  Bruno Haible  <bruno@clisp.org>
26276
26277         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
26278         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
26279         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
26280         Reported by Daniel Bergström <daniel@octocode.com>.
26281
26282 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
26283             Bruno Haible  <bruno@clisp.org>
26284
26285         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
26286         function.
26287         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
26288         New functions, mostly extracted from gl_locale_name_default.
26289         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
26290
26291 2008-04-16  Eric Blake  <ebb9@byu.net>
26292
26293         Adjust strtod detection to catch glibc 2.7 bug.
26294         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
26295         Reported by John Gatewood Ham.
26296
26297 2008-04-16  Bruno Haible  <bruno@clisp.org>
26298
26299         Add tentative support for Linux libc5.
26300         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
26301         * lib/fpurge.c (fpurge): Likewise.
26302         * lib/freadable.c (freadable): Likewise.
26303         * lib/freadahead.c (freadahead): Likewise.
26304         * lib/freading.c (freading): Likewise.
26305         * lib/freadptr.c (freadptr): Likewise.
26306         * lib/freadseek.c (freadptrinc): Likewise.
26307         * lib/fseeko.c (rpl_fseeko): Likewise.
26308         * lib/fseterr.c (fseterr): Likewise.
26309         * lib/fwritable.c (fwritable): Likewise.
26310         * lib/fwriting.c (fwriting): Likewise.
26311         Reported by Alain Guibert <alguibert+bts@free.fr>.
26312
26313 2008-04-15  Bruno Haible  <bruno@clisp.org>
26314
26315         * modules/mathl (configure.ac): Define module indicator.
26316
26317 2008-04-15  Bruno Haible  <bruno@clisp.org>
26318
26319         * lib/logl.c (logl): Remove unused variables.
26320
26321 2008-04-15  Bruno Haible  <bruno@clisp.org>
26322
26323         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
26324         fails.
26325
26326 2008-04-15  Bruno Haible  <bruno@clisp.org>
26327
26328         * lib/trim.c (trim2): Fix argument of isspace() macro.
26329
26330 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
26331
26332         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26333         to 0.
26334         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26335
26336 2008-04-14  Bruno Haible  <bruno@clisp.org>
26337
26338         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26339         AC_LANG_PROGRAM argument.
26340         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26341         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26343         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26344         * m4/math_h.m4 (gl_MATH_H): Likewise.
26345         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26346         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26347         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26348         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26349         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26350         * m4/regex.m4 (gl_REGEX): Likewise.
26351         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26352         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26353         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26354         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26356         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26357         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26358         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26359
26360 2008-04-14  Jim Meyering  <meyering@redhat.com>
26361
26362         test-strtod: fix typos: s/abs/fabs/
26363         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26364
26365 2008-04-13  Bruno Haible  <bruno@clisp.org>
26366
26367         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26368         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26369         module is also used and while not building the reloc-wrapper.
26370
26371 2008-04-13  Bruno Haible  <bruno@clisp.org>
26372
26373         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26374
26375 2008-04-13  Bruno Haible  <bruno@clisp.org>
26376
26377         Fix AIX compilation failure introduced on 2008-04-02.
26378         * tests/test-frexp.c (exp): Undefine before redefining.
26379         * tests/test-frexpl.c (exp): Likewise.
26380
26381 2008-04-13  Bruno Haible  <bruno@clisp.org>
26382
26383         Work around a HP-UX stdio bug.
26384         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26385         * tests/test-ftello.c (main): Likewise.
26386         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26387         * doc/posix-functions/ftello.texi: Likewise.
26388
26389 2008-04-13  Bruno Haible  <bruno@clisp.org>
26390
26391         Make test-signbit pass on HP-UX/hppa.
26392         * tests/test-signbit.c (minus_zerol): New variable.
26393         (test_signbitl): Use it.
26394
26395 2008-04-13  Bruno Haible  <bruno@clisp.org>
26396
26397         Make truncl work on OSF/1 4.0.
26398         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26399         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26400         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26402         HAVE_DECL_TRUNCL.
26403         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26404         HAVE_DECL_TRUNCL.
26405         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26406
26407 2008-04-13  Bruno Haible  <bruno@clisp.org>
26408
26409         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26410
26411 2008-04-13  Bruno Haible  <bruno@clisp.org>
26412
26413         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26414         expression, so as to avoid HP-UX 11 cc compiler bug.
26415
26416 2008-04-13  Bruno Haible  <bruno@clisp.org>
26417
26418         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26419
26420 2008-04-13  Bruno Haible  <bruno@clisp.org>
26421
26422         * lib/git-merge-changelog.c: Remove empty declaration outside of
26423         functions.
26424
26425 2008-04-13  Bruno Haible  <bruno@clisp.org>
26426
26427         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26428
26429 2008-04-13  Bruno Haible  <bruno@clisp.org>
26430
26431         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26432         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26433         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26434         also if it exists but lacks definitions of the SHUT_* macros.
26435         * modules/sys_socket (Description): Update.
26436         Reported by Elbert Pol <e.pol@chello.nl>.
26437
26438 2008-04-13  Bruno Haible  <bruno@clisp.org>
26439
26440         * lib/localcharset.c (OS2): Don't redefine if already defined.
26441         Reported by Elbert Pol <e.pol@chello.nl>.
26442
26443 2008-04-13  Bruno Haible  <bruno@clisp.org>
26444
26445         * lib/binary-io.h [__EMX__]: Include <io.h>.
26446         Reported by Elbert Pol <e.pol@chello.nl>.
26447
26448 2008-04-12  Bruno Haible  <bruno@clisp.org>
26449
26450         * lib/fpucw.h: Enable the definitions also for x86_64.
26451         Needed for NetBSD/x86_64.
26452         Reported by Thomas Klausner <tk@giga.or.at>.
26453
26454 2008-04-12  Bruno Haible  <bruno@clisp.org>
26455
26456         * tests/test-strtod.c: Include isnand.h.
26457         (main): Use isnand instead of isnan.
26458         Reported by Jim Meyering.
26459
26460 2008-04-12  Bruno Haible  <bruno@clisp.org>
26461
26462         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26463         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26464
26465 2008-04-12  Jim Meyering  <meyering@redhat.com>
26466
26467         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26468
26469 2008-04-12  Bruno Haible  <bruno@clisp.org>
26470
26471         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26472         Reported by Elbert Pol <e.pol@chello.nl>.
26473
26474 2008-04-12  Eric Blake  <ebb9@byu.net>
26475
26476         Work around Solaris 10 math.h bug.
26477         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26478         (gl_MATH_H_DEFAULTS): Set up default.
26479         * modules/math (Makefile.am): Replace new indicators.
26480         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26481         * tests/test-math.c (main): Test this.
26482         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26483         * doc/posix-headers/math.texi (math.h): Mention bug.
26484         Reported by Nelson H. F. Beebe and Jim Meyering.
26485
26486 2008-04-11  Bruno Haible  <bruno@clisp.org>
26487
26488         Adapt to future versions of Apple GCC.
26489         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26490         Reported by Peter O'Gorman <peter@pogma.com>.
26491
26492 2008-04-11  Bruno Haible  <bruno@clisp.org>
26493
26494         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26495
26496 2008-04-11  Bruno Haible  <bruno@clisp.org>
26497
26498         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26499
26500         * modules/getaddrinfo-tests (Makefile.am): Define
26501         test_getaddrinfo_LDADD.
26502
26503 2008-04-11  Bruno Haible  <bruno@clisp.org>
26504
26505         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26506         (init): Fix syntax error.
26507         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26508         is declared.
26509
26510 2008-04-11  Bruno Haible  <bruno@clisp.org>
26511
26512         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26513         * modules/glob (Depends-on): Add stdbool.
26514
26515 2008-04-11  Bruno Haible  <bruno@clisp.org>
26516
26517         * lib/trim.c: Include <string.h>.
26518
26519 2008-04-11  Eric Blake  <ebb9@byu.net>
26520
26521         Avoid compile failure on OS/2.
26522         * lib/regex_internal.h (internal_function): Disable optimization
26523         on OS/2 (__EMX__), where it caused compiler error.
26524         Reported by Elbert Pol.
26525
26526 2008-04-11  Bruno Haible  <bruno@clisp.org>
26527
26528         Flush the standard error stream before aborting. Needed on mingw.
26529         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26530         * tests/test-array_list.c (ASSERT): Likewise.
26531         * tests/test-array_oset.c (ASSERT): Likewise.
26532         * tests/test-avltree_list.c (ASSERT): Likewise.
26533         * tests/test-avltree_oset.c (ASSERT): Likewise.
26534         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26535         * tests/test-binary-io.c (ASSERT): Likewise.
26536         * tests/test-byteswap.c (ASSERT): Likewise.
26537         * tests/test-c-ctype.c (ASSERT): Likewise.
26538         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26539         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26540         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26541         * tests/test-c-strstr.c (ASSERT): Likewise.
26542         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26543         * tests/test-canonicalize.c (ASSERT): Likewise.
26544         * tests/test-carray_list.c (ASSERT): Likewise.
26545         * tests/test-ceilf1.c (ASSERT): Likewise.
26546         * tests/test-ceilf2.c (ASSERT): Likewise.
26547         * tests/test-ceill.c (ASSERT): Likewise.
26548         * tests/test-count-one-bits.c (ASSERT): Likewise.
26549         * tests/test-fbufmode.c (ASSERT): Likewise.
26550         * tests/test-fflush2.c (ASSERT): Likewise.
26551         * tests/test-floorf1.c (ASSERT): Likewise.
26552         * tests/test-floorf2.c (ASSERT): Likewise.
26553         * tests/test-floorl.c (ASSERT): Likewise.
26554         * tests/test-fopen.c (ASSERT): Likewise.
26555         * tests/test-fpending.c (ASSERT): Likewise.
26556         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26557         * tests/test-fpurge.c (ASSERT): Likewise.
26558         * tests/test-freadable.c (ASSERT): Likewise.
26559         * tests/test-freadahead.c (ASSERT): Likewise.
26560         * tests/test-freading.c (ASSERT): Likewise.
26561         * tests/test-freadptr.c (ASSERT): Likewise.
26562         * tests/test-freadptr2.c (ASSERT): Likewise.
26563         * tests/test-freadseek.c (ASSERT): Likewise.
26564         * tests/test-freopen.c (ASSERT): Likewise.
26565         * tests/test-frexp.c (ASSERT): Likewise.
26566         * tests/test-frexpl.c (ASSERT): Likewise.
26567         * tests/test-fseek.c (ASSERT): Likewise.
26568         * tests/test-fseeko.c (ASSERT): Likewise.
26569         * tests/test-fstrcmp.c (ASSERT): Likewise.
26570         * tests/test-ftell.c (ASSERT): Likewise.
26571         * tests/test-ftello.c (ASSERT): Likewise.
26572         * tests/test-func.c (ASSERT): Likewise.
26573         * tests/test-fwritable.c (ASSERT): Likewise.
26574         * tests/test-fwriting.c (ASSERT): Likewise.
26575         * tests/test-getdelim.c (ASSERT): Likewise.
26576         * tests/test-getline.c (ASSERT): Likewise.
26577         * tests/test-i-ring.c (ASSERT): Likewise.
26578         * tests/test-iconv-utf.c (ASSERT): Likewise.
26579         * tests/test-iconv.c (ASSERT): Likewise.
26580         * tests/test-isfinite.c (ASSERT): Likewise.
26581         * tests/test-isnand.c (ASSERT): Likewise.
26582         * tests/test-isnanf.c (ASSERT): Likewise.
26583         * tests/test-isnanl.h (ASSERT): Likewise.
26584         * tests/test-ldexpl.c (ASSERT): Likewise.
26585         * tests/test-linked_list.c (ASSERT): Likewise.
26586         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26587         * tests/test-localename.c (ASSERT): Likewise.
26588         * tests/test-lseek.c (ASSERT): Likewise.
26589         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26590         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26591         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26592         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26593         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26594         * tests/test-mbschr.c (ASSERT): Likewise.
26595         * tests/test-mbscspn.c (ASSERT): Likewise.
26596         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26597         * tests/test-mbspbrk.c (ASSERT): Likewise.
26598         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26599         * tests/test-mbsrchr.c (ASSERT): Likewise.
26600         * tests/test-mbsspn.c (ASSERT): Likewise.
26601         * tests/test-mbsstr1.c (ASSERT): Likewise.
26602         * tests/test-mbsstr2.c (ASSERT): Likewise.
26603         * tests/test-mbsstr3.c (ASSERT): Likewise.
26604         * tests/test-memchr2.c (ASSERT): Likewise.
26605         * tests/test-memmem.c (ASSERT): Likewise.
26606         * tests/test-open.c (ASSERT): Likewise.
26607         * tests/test-printf-frexp.c (ASSERT): Likewise.
26608         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26609         * tests/test-printf-posix.c (ASSERT): Likewise.
26610         * tests/test-quotearg.c (ASSERT): Likewise.
26611         * tests/test-rbtree_list.c (ASSERT): Likewise.
26612         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26613         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26614         * tests/test-round1.c (ASSERT): Likewise.
26615         * tests/test-roundf1.c (ASSERT): Likewise.
26616         * tests/test-roundl.c (ASSERT): Likewise.
26617         * tests/test-signbit.c (ASSERT): Likewise.
26618         * tests/test-sleep.c (ASSERT): Likewise.
26619         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26620         * tests/test-snprintf.c (ASSERT): Likewise.
26621         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26622         * tests/test-stat-time.c (ASSERT): Likewise.
26623         * tests/test-strcasestr.c (ASSERT): Likewise.
26624         * tests/test-strerror.c (ASSERT): Likewise.
26625         * tests/test-striconv.c (ASSERT): Likewise.
26626         * tests/test-striconveh.c (ASSERT): Likewise.
26627         * tests/test-striconveha.c (ASSERT): Likewise.
26628         * tests/test-strsignal.c (ASSERT): Likewise.
26629         * tests/test-strstr.c (ASSERT): Likewise.
26630         * tests/test-strtod.c (ASSERT): Likewise.
26631         * tests/test-trunc1.c (ASSERT): Likewise.
26632         * tests/test-trunc2.c (ASSERT): Likewise.
26633         * tests/test-truncf1.c (ASSERT): Likewise.
26634         * tests/test-truncf2.c (ASSERT): Likewise.
26635         * tests/test-truncl.c (ASSERT): Likewise.
26636         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26637         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26638         * tests/test-vasnprintf.c (ASSERT): Likewise.
26639         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26640         * tests/test-vasprintf.c (ASSERT): Likewise.
26641         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26642         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26643         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26644         * tests/test-vsnprintf.c (ASSERT): Likewise.
26645         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26646         * tests/test-wcwidth.c (ASSERT): Likewise.
26647         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26648         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26649         * tests/test-xvasprintf.c (ASSERT): Likewise.
26650         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26651         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26652         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26653         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26654         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26655         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26656         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26657         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26658         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26659         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26660         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26661         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26662         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26663         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26664         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26665         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26666         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26667         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26668         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26669         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26670         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26671         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26672         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26673         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26674         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26675         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26676         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26677         * tests/unictype/test-combining.c (ASSERT): Likewise.
26678         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26679         * tests/unictype/test-digit.c (ASSERT): Likewise.
26680         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26681         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26682         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26683         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26684         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26685         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26686         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26687         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26688         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26689         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26690         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26691         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26692         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26693         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26694         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26695         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26696         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26697         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26698         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26699         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26700         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26701         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26702         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26703         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26704         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26705         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26706         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26707         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26708         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26709         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26710         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26711         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26712         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26713         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26714         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26715         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26716         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26717         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26718         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26719         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26720         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26721         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26722         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26723         Reported by Eric Blake.
26724
26725 2008-04-11  Bruno Haible  <bruno@clisp.org>
26726
26727         * lib/wchar.in.h: Tweak comment.
26728
26729 2008-04-11  Bruno Haible  <bruno@clisp.org>
26730
26731         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26732         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26733         gl_COMMON.
26734         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26735
26736 2008-04-11  Bruno Haible  <bruno@clisp.org>
26737
26738         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26739
26740 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26741
26742         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26743         of attempting to use non-existing /dev/*random.  Based on patch
26744         from Adam Strzelecki <ono@java.pl> in
26745         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26746
26747 2008-04-08  Bruno Haible  <bruno@clisp.org>
26748
26749         Add tentative support for emx+gcc.
26750         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26751         * lib/fpurge.c (fpurge): Likewise.
26752         * lib/freadable.c (freadable): Likewise.
26753         * lib/freadahead.c (freadahead): Likewise.
26754         * lib/freading.c (freading): Likewise.
26755         * lib/freadptr.c (freadptr): Likewise.
26756         * lib/freadseek.c (freadptrinc): Likewise.
26757         * lib/fseeko.c (rpl_fseeko): Likewise.
26758         * lib/fseterr.c (fseterr): Likewise.
26759         * lib/fwritable.c (fwritable): Likewise.
26760         * lib/fwriting.c (fwriting): Likewise.
26761         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26762
26763 2008-04-09  Eric Blake  <ebb9@byu.net>
26764
26765         Avoid some autoconf warnings.
26766         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26767         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26768         * m4/afs.m4 (gl_AFS): Likewise.
26769         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26770         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26771         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26772         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26773         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26774         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26775         (AC_CHECK_DECLS_ONCE): Likewise.
26776         Rename file...
26777         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26778         gnulib-tool requires autoconf 2.59 or better.
26779         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26780
26781 2008-04-08  Eric Blake  <ebb9@byu.net>
26782
26783         Use 'git describe --match' if present (added in git 1.5.5).
26784         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26785         if possible.
26786
26787 2008-04-08  Bruno Haible  <bruno@clisp.org>
26788
26789         Add tentative support for OpenServer.
26790         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26791         _ptr, _cnt.
26792         * lib/fpurge.c (fpurge): Likewise.
26793         * lib/freadable.c (freadable): Likewise.
26794         * lib/freadahead.c (freadahead): Likewise.
26795         * lib/freading.c (freading): Likewise.
26796         * lib/freadptr.c (freadptr): Likewise.
26797         * lib/freadseek.c (freadptrinc): Likewise.
26798         * lib/fseeko.c (rpl_fseeko): Likewise.
26799         * lib/fseterr.c (fseterr): Likewise.
26800         * lib/fwritable.c (fwritable): Likewise.
26801         * lib/fwriting.c (fwriting): Likewise.
26802         Reported by Roger Cornelius <rac@tenzing.org> and
26803         Brian K. White <brian@aljex.com>.
26804
26805 2008-04-06  Jim Meyering  <meyering@redhat.com>
26806
26807         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26808
26809 2008-04-06  Bruno Haible  <bruno@clisp.org>
26810
26811         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26812         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26813         * tests/test-printf-posix.sh: Likewise.
26814         * tests/test-vfprintf-posix.sh: Likewise.
26815         * tests/test-vprintf-posix.sh: Likewise.
26816         * tests/test-xprintf-posix.sh: Likewise.
26817
26818 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26819
26820         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26821         hide error from 'ls', needed on OS/2.
26822         Report by Elbert Pol <elbert.pol@gmail.com>.
26823
26824 2008-04-04  Eric Blake  <ebb9@byu.net>
26825
26826         Make test-fseeko.c failures meaningful.
26827         * tests/test-fseeko.c: Print line number on failure.
26828         * tests/test-fseek.c: Likewise.
26829         Reported by Nelson H. F. Beebe.
26830
26831         Improve strtod bug detection check.
26832         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26833         required for Solaris 10.
26834         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26835
26836 2008-04-04  Bruno Haible  <bruno@clisp.org>
26837
26838         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26839         by m4/setenv.m4.
26840
26841 2008-04-03  Eric Blake  <ebb9@byu.net>
26842
26843         Ensure sane .version contents.
26844         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26845         version string.
26846         * build-aux/git-version-gen: Improve documentation.
26847
26848         Make GNU make output nicer.
26849         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26850         MAKECMDGOALS to enforce message for all command line targets.  Set
26851         srcdir for use in maint.mk.
26852
26853         Another maintainer tweak.
26854         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26855         a target that regenerates version.
26856
26857 2008-04-03  Jim Meyering  <meyering@redhat.com>
26858
26859         vc-list-files: don't cause coreutils "make po-check" failure
26860         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26861
26862 2008-04-03  Eric Blake  <ebb9@byu.net>
26863
26864         Allow VPATH usage of vc-list-files.
26865         * build-aux/vc-list-files (scriptversion): Add timestamp.
26866         (options): Add --help, --version, -C.
26867         (CVS): Support installed cvsu.
26868
26869 2008-04-02  Bruno Haible  <bruno@clisp.org>
26870
26871         Avoid some "statement with no effect" warnings from gcc.
26872         * tests/test-wctype.c (main): Explicitly ignore unused values.
26873         Reported by Jim Meyering.
26874
26875 2008-04-02  Jim Meyering  <meyering@redhat.com>
26876
26877         Avoid some warnings from "gcc -Wshadow".
26878         * tests/test-frexp.c (exp): Define to a different identifier.
26879         * tests/test-frexpl.c (exp): Likewise.
26880
26881 2008-04-03  Jim Meyering  <meyering@redhat.com>
26882
26883         bootstrap: remove dangling *.[ch] symlinks from lib
26884         * build-aux/bootstrap [dangling symlink removal]: Move find's
26885         -depth option to precede all others, to avoid a warning.
26886         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26887
26888 2008-04-02  Bruno Haible  <bruno@clisp.org>
26889
26890         Avoid some warnings from "gcc -Wshadow".
26891         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26892         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26893         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26894         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26895         Reported by Jim Meyering.
26896
26897 2008-04-01  Bruno Haible  <bruno@clisp.org>
26898
26899         Fix test to work on IRIX 6.5 with cc.
26900         * tests/test-math.c (numeric_equal): New function.
26901         (main): Use it.
26902
26903 2008-04-01  Bruno Haible  <bruno@clisp.org>
26904
26905         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26906
26907 2008-04-01  Bruno Haible  <bruno@clisp.org>
26908
26909         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26910         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26911         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26912         (Depends-on): Remove math.
26913
26914         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26915         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26916         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26917         (Depends-on): Remove math.
26918
26919         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26920         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26921         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26922         (Depends-on): Remove math.
26923         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26924         (Depends-on): Remove math.
26925
26926         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26927         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26928         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26929         (Depends-on): Remove math.
26930         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26931         (Depends-on): Remove math.
26932
26933         * tests/test-round1.c: Include nan.h.
26934         (main): Use NaNd instead of NAN.
26935         * modules/round-tests (Files): Add tests/nan.h.
26936
26937         * tests/test-trunc1.c: Include nan.h.
26938         (main): Use NaNd instead of NAN.
26939         * modules/trunc-tests (Files): Add tests/nan.h.
26940
26941         * tests/test-roundf1.c: Include nan.h.
26942         (main): Use NaNf instead of NAN.
26943         * modules/roundf-tests (Files): Add tests/nan.h.
26944
26945         * tests/test-truncf1.c: Include nan.h.
26946         (main): Use NaNf instead of NAN.
26947         * modules/truncf-tests (Files): Add tests/nan.h.
26948
26949         * tests/test-ceilf1.c: Include nan.h.
26950         (main): Use NaNf instead of NAN.
26951         * modules/ceilf-tests (Files): Add tests/nan.h.
26952
26953         * tests/test-floorf1.c: Include nan.h.
26954         (main): Use NaNf instead of NAN.
26955         * modules/floorf-tests (Files): Add tests/nan.h.
26956
26957         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26958         (main): Use NaNf instead of NAN.
26959         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26960
26961         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26962         (main): Use NaNd instead of NAN.
26963         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26964
26965         * tests/test-frexp.c: Include nan.h.
26966         (main): Use NaNd instead of NAN.
26967         * modules/frexp-tests (Files): Add tests/nan.h.
26968
26969         * lib/isnan.c: Don't include <math.h>.
26970         (FUNC): Don't use NAN macro.
26971         * modules/isnand-nolibm (Depends-on): Remove math.
26972         * modules/isnanf-nolibm (Depends-on): Remove math.
26973         * modules/isnanl (Depends-on): Remove math.
26974         * modules/isnanl-nolibm (Depends-on): Remove math.
26975
26976         * tests/nan.h: New file.
26977
26978 2008-04-01  Eric Blake  <ebb9@byu.net>
26979
26980         Fix typos.
26981         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26982         values to be the right type.
26983
26984         For now, cater to gnulib strtod inaccuracies.
26985         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26986         fractional results.  While not as nice from a QoI perspective, it
26987         is a quicker patch than correctly implementing decimal to binary
26988         rounding.
26989
26990 2008-03-31  Eric Blake  <ebb9@byu.net>
26991
26992         Guarantee a definition of NAN.
26993         * lib/math.in.h (NAN): Define if missing.
26994         * tests/test-math.c (main): Test it.
26995         * doc/posix-headers/math.texi (math.h): Document this.
26996         * lib/isnan.c (rpl_isnand): Use it.
26997         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26998         * tests/test-floorf1.c (NaN): Likewise.
26999         * tests/test-frexp.c (NaN): Likewise.
27000         * tests/test-isnand.c (NaN): Likewise.
27001         * tests/test-isnanf.c (NaN): Likewise.
27002         * tests/test-round1.c (NaN): Likewise.
27003         * tests/test-roundf1.c (NaN): Likewise.
27004         * tests/test-snprintf-posix.h (NaN): Likewise.
27005         * tests/test-sprintf-posix.h (NaN): Likewise.
27006         * tests/test-trunc1.c (NaN): Likewise.
27007         * tests/test-truncf1.c (NaN): Likewise.
27008         * tests/test-vasnprintf-posix.c (NaN): Likewise.
27009         * tests/test-vasprintf-posix.c (NaN): Likewise.
27010         * modules/isnand-nolibm (Depends-on): Add math.
27011         * modules/isnanf-nolibm (Depends-on): Likewise.
27012         * modules/isnanl (Depends-on): Likewise.
27013         * modules/isnanl-nolibm (Depends-on): Likewise.
27014         * modules/snprintf-posix-tests (Depends-on): Likewise.
27015         * modules/sprintf-posix-tests (Depends-on): Likewise.
27016         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
27017         * modules/vsprintf-posix-tests (Depends-on): Likewise.
27018         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
27019         * modules/vasprintf-posix-tests (Depends-on): Likewise.
27020
27021 2008-03-31  Bruno Haible  <bruno@clisp.org>
27022
27023         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
27024         * doc/posix-functions/strtod.texi: Likewise.
27025
27026 2008-03-31  Bruno Haible  <bruno@clisp.org>
27027
27028         * tests/test-strtod.c (main): Don't use C99 syntax.
27029
27030 2008-03-31  Bruno Haible  <bruno@clisp.org>
27031
27032         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
27033         Reported by Eric Blake.
27034
27035 2008-03-31  Jim Meyering  <meyering@redhat.com>
27036
27037         Don't compare actual signbit return values.
27038         * tests/test-strtod.c (main): Rather, compare only their
27039         zero/non-zero nature.
27040
27041 2008-03-31  Eric Blake  <ebb9@byu.net>
27042
27043         More strtod documentation.
27044         * doc/posix-functions/strtod.texi (strtod): Interpret more test
27045         failures as distinct bugs.
27046
27047 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
27048
27049         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
27050         Problem reported by Erik Benada in
27051         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
27052
27053 2008-03-30  Bruno Haible  <bruno@clisp.org>
27054
27055         * tests/test-strtod.c: Add comments about which assertion fails on which
27056         platform.
27057         * doc/posix-functions/strtod.texi: Add info about many more platforms.
27058
27059 2008-03-30  Eric Blake  <ebb9@byu.net>
27060
27061         Test signbit behavior on zeros.
27062         * tests/test-signbit.c (test_signbitf): Add tests for zero.
27063         (test_signbitd, test_signbitl): Likewise.
27064
27065         More strtod touchups.
27066         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
27067         sign of negative underflow, for now.  Use .5, not .1.
27068         * doc/posix-functions/strtod.texi (strtod): Mention these
27069         limitations.
27070         Reported by Jim Meyering.
27071
27072 2008-03-30  Bruno Haible  <bruno@clisp.org>
27073
27074         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
27075         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
27076
27077 2008-03-30  Bruno Haible  <bruno@clisp.org>
27078
27079         Avoid failure when attempting to return empty iconv results on some
27080         platforms.
27081         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
27082         allocation, don't report ENOMEM when the resulting string is empty.
27083
27084 2008-03-30  Bruno Haible  <bruno@clisp.org>
27085
27086         Fix buffer overrun.
27087         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
27088         Don't consider the width for tmp_length. Check count against tmp_length
27089         before doing the padding. Ensure enough allocation during padding.
27090
27091 2008-03-30  Eric Blake  <ebb9@byu.net>
27092
27093         strtod touchups.
27094         * lib/strtod.c (strtod): Avoid compiler warnings.
27095         Reported by Jim Meyering.
27096
27097 2008-03-30  Bruno Haible  <bruno@clisp.org>
27098
27099         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
27100         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
27101         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
27102         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
27103         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
27104         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
27105         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
27106         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
27107
27108         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
27109         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
27110         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
27111         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
27112         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
27113         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
27114         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
27115         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
27116
27117         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
27118         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
27119         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
27120         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
27121         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
27122         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
27123         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
27124         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
27125
27126         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
27127         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
27128
27129         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
27130         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
27131
27132         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
27133         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
27134
27135         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
27136         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
27137         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
27138
27139         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
27140         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
27141         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
27142
27143         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
27144         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
27145         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
27146
27147         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
27148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
27149         * modules/vasprintf (Depends-on): Add EOVERFLOW.
27150
27151         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
27152         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
27153         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
27154         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
27155         (Depends-on): Add EOVERFLOW.
27156         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
27157         (Depends-on): Add EOVERFLOW.
27158         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27159         (Depends-on): Add EOVERFLOW.
27160         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27161         (Depends-on): Add EOVERFLOW.
27162         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27163         (Depends-on): Add EOVERFLOW.
27164         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27165         (Depends-on): Add EOVERFLOW.
27166         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27167         (Depends-on): Add EOVERFLOW.
27168         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27169         (Depends-on): Add EOVERFLOW.
27170
27171         * lib/sprintf.c (EOVERFLOW): Remove fallback.
27172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
27173         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
27174
27175         * lib/snprintf.c (EOVERFLOW): Remove fallback.
27176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
27177         * modules/snprintf (Depends-on): Add EOVERFLOW.
27178
27179         * lib/poll.c (EOVERFLOW): Remove fallback.
27180         * modules/poll (Depends-on): Add EOVERFLOW.
27181
27182         * lib/getugroups.c (EOVERFLOW): Remove fallback.
27183         * modules/getugroups (Depends-on): Add EOVERFLOW.
27184
27185         * lib/getdelim.c (EOVERFLOW): Remove fallback.
27186         * modules/getdelim (Depends-on): Add EOVERFLOW.
27187
27188         * lib/ftell.c (EOVERFLOW): Remove fallback.
27189         * modules/ftell (Depends-on): Add EOVERFLOW.
27190
27191         * lib/fprintf.c (EOVERFLOW): Remove fallback.
27192         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
27193         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
27194
27195         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
27196
27197         * modules/EOVERFLOW-tests: New file.
27198         * tests/test-EOVERFLOW.c: New file.
27199
27200         * modules/EOVERFLOW: New file.
27201         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
27202
27203 2008-03-30  Bruno Haible  <bruno@clisp.org>
27204
27205         Fix bug introduced on 2007-06-10.
27206         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
27207         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
27208
27209 2008-03-30  Bruno Haible  <bruno@clisp.org>
27210
27211         Improve freadseek's efficiency after ungetc.
27212         * lib/freadseek.c: Include freadahead.h.
27213         (freadptrinc): New function, extracted from freadseek.
27214         (freadseek): Use it in a loop. Use freadahead to determine the number
27215         of loop iterations.
27216         * modules/freadseek (Depends-on): Add freadahead.
27217         (configure.ac): Require AC_C_INLINE.
27218
27219 2008-03-30  Bruno Haible  <bruno@clisp.org>
27220
27221         * lib/freadseek.c (freadseek): Don't ignore the return value of
27222         freadptr.
27223
27224 2008-03-29  Eric Blake  <ebb9@byu.net>
27225
27226         Add hex float support.
27227         * modules/strtod (Depends-on): Add c-ctype.
27228         (Link): Mention POW_LIB.
27229         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
27230         whitespace between 'e' and exponent.
27231         * tests/test-strtod.c (main): Enable hex float tests.
27232         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
27233         now provides.
27234
27235         Document various strtod bugs, with some fixes.
27236         * doc/posix-functions/strtod.texi (strtod): Document bugs with
27237         "-0x", "inf", "nan", and hex constants.
27238         * doc/posix-functions/atof.texi (atof): Likewise.
27239         * modules/stdlib (Makefile.am): Support strtod.
27240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27241         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
27242         detect additional strtod bugs.
27243         * lib/stdlib.in.h (rpl_strtod): Add declarations.
27244         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
27245         bool where appropriate.  Parse 'inf' and 'nan'.
27246         * tests/test-strtod.c: New file.
27247         * modules/strtod (Depends-on): Add stdbool, stdlib.
27248         (configure.ac): Turn on module indicator.
27249         * modules/strtod-tests: New module.
27250
27251 2008-03-29  Eric Blake  <ebb9@byu.net>
27252
27253         Fix ftell on mingw.
27254         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
27255         * modules/ftell-tests (Depends-on): Add binary-io.
27256         * modules/ftello-tests (Depends-on): Likewise.
27257         * tests/test-ftell.c (main): Enhance test to cover behavior after
27258         ungetc.  Enforce binary mode.
27259         * tests/test-ftello.c (main): Likewise.
27260
27261         Pass test-freadseek on cygwin.
27262         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
27263         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
27264         ungetc buffer.
27265
27266         * tests/test-fflush2.c (main): Fix typo.
27267
27268 2008-03-29  Bruno Haible  <bruno@clisp.org>
27269
27270         * tests/test-fflush2.c (main): Temporarily disable the contents of
27271         this test.
27272         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
27273         Reported by Eric Blake.
27274
27275 2008-03-28  Simon Josefsson  <simon@josefsson.org>
27276
27277         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
27278         (GC_SHA224_DIGEST_SIZE): Add.
27279
27280         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
27281         (gc_hash_digest_length): Likewise.
27282         (gc_hash_buffer): Likewise.
27283
27284 2008-03-25  Bruno Haible  <bruno@clisp.org>
27285
27286         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
27287         detail which gettext release to use.
27288         Reported by Simon Josefsson.
27289
27290 2008-03-26  Jim Meyering  <meyering@redhat.com>
27291
27292         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
27293         * modules/gnumakefile (clean-GNUmakefile): Also, use
27294         test ... && ... || : syntax rather than if-then ... fi.
27295
27296         gnumakefile: Don't double-quote-expand $(VPATH) value.
27297         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
27298
27299 2008-03-24  Eric Blake  <ebb9@byu.net>
27300
27301         Alter GNUmakefile to install into top directory.
27302         * modules/maintainer-makefile: Split, and add dependency...
27303         * modules/gnumakefile: to this new module.
27304         * build-aux/GNUmakefile: Move...
27305         * top/GNUmakefile: ...here.
27306         * build-aux/maint.mk: Move...
27307         * top/maint.mk: ...here.
27308         * MODULES.html.sh (Support for maintaining...): Document new
27309         module.
27310
27311 2008-03-23  Bruno Haible  <bruno@clisp.org>
27312
27313         * gnulib-tool: New options --vc-files, --no-vc-files.
27314         (func_usage): Document them.
27315         (vc_files): New variable.
27316         (func_import): Consider vc_files.
27317         (func_create_testdir): Set vc_files to empty.
27318         Suggested by Jim Meyering and Karl Berry.
27319
27320 2008-03-23  Bruno Haible  <bruno@clisp.org>
27321
27322         Fix regex compilation error on HP-UX 11.
27323         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
27324         * modules/regex (Files): Add m4/mbstate_t.m4.
27325         Reported by Ton Voon <ton.voon@altinity.com>.
27326
27327 2008-03-23  Bruno Haible  <bruno@clisp.org>
27328
27329         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
27330
27331 2008-03-23  Eric Blake  <ebb9@byu.net>
27332             Bruno Haible  <bruno@clisp.org>
27333
27334         Install files from top/ in the destination directory.
27335         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27336         augmentation also for the files from top/.
27337         (func_import, func_create_testdir): Rewrite file names:
27338         top/filename -> filename.
27339
27340 2008-03-23  Bruno Haible  <bruno@clisp.org>
27341
27342         Tweak "gnulib --version" output.
27343         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27344
27345 2008-03-23  Bruno Haible  <bruno@clisp.org>
27346
27347         Tweak "gnulib --version" output.
27348         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27349         rather than contents of ChangeLog, when possible.
27350
27351 2008-03-21  Eric Blake  <ebb9@byu.net>
27352
27353         More --version tweaks.
27354         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27355         date of last ChangeLog entry.
27356
27357 2008-03-21  Jim Meyering  <meyering@redhat.com>
27358
27359         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27360
27361 2008-03-20  Eric Blake  <ebb9@byu.net>
27362
27363         VPATH fix.
27364         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27365
27366 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27367
27368         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27369         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27370
27371 2008-03-20  Eric Blake  <ebb9@byu.net>
27372
27373         Sync GNUmakefile with coreutils.
27374         * build-aux/GNUmakefile (have-Makefile): Rename...
27375         (_have-Makefile): ...to this, for namespace consideration.
27376         (GNUmakefile.cfg): Include, if present.
27377         (_autoreconf): Define a default.
27378         (_is-dist-target): New rule for rebuilds to pick up intra-release
27379         version.
27380         (maint-cfg.mk): Rename...
27381         (cfg.mk): ...to this.
27382
27383 2008-03-18  Jim Meyering  <meyering@redhat.com>
27384
27385         New script and module: mktempd
27386         * MODULES.html.sh (maint+release support): Add mktempd.
27387         * build-aux/mktempd: New file.
27388         * modules/mktempd: New file.
27389
27390 2008-03-15  Jim Meyering  <meyering@redhat.com>
27391
27392         Undo last change.
27393         * lib/sha1.c, lib/md5.c: 63 != ~63.
27394         Reported by Andreas Schwab.
27395
27396         sha1.c, md5.c: Hoist a redundant expression.
27397         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27398         "ctx->buflen" only once, before calling *_process_block.
27399         * lib/md5.c (md5_process_bytes): Likewise.
27400
27401 2008-03-14  Eric Blake  <ebb9@byu.net>
27402
27403         Bump copyright year in files generated by gnulib-tool.
27404         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27405         gnulib-tool, rather than hard-coding it.
27406
27407         Fix 'gnulib-tool --version' output to work with git.
27408         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27409         (startup): ...here.
27410         (func_version): Use it to invoke git-version-gen, rather than
27411         relying on CVS keyword expansion.  Modernize wording.
27412         (cvsdatestamp, last_checkin_date, version): Kill unused
27413         variables.
27414
27415 2008-03-12  Jim Meyering  <meyering@redhat.com>
27416
27417         Recognize optional cast of the argument to free.
27418         * build-aux/useless-if-before-free: Update regexps.
27419
27420         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27421
27422 2008-03-11  Bruno Haible  <bruno@clisp.org>
27423
27424         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27425         by a single package.
27426         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27427         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27428         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27429         Reported by Sam Steingold <sds@gnu.org>.
27430
27431 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27432
27433         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27434         repositories.
27435
27436 2008-03-11  Bruno Haible  <bruno@clisp.org>
27437
27438         Avoid conflicts between local macro definitions.
27439         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27440         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27441
27442 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27443             Bruno Haible  <bruno@clisp.org>
27444
27445         Make va_copy work with some version of xlc on AIX 5.1.
27446         * lib/stdarg.in.h: New file.
27447         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27448         On AIX, use a <stdarg.h> file substitute.
27449         * modules/stdarg (Files): Add lib/stdarg.in.h.
27450         (Depends-on): Add include_next.
27451         (Makefile.am): Build a stdarg.h substitute if requested.
27452         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27453
27454 2008-03-10  Bruno Haible  <bruno@clisp.org>
27455
27456         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27457         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27458         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27459
27460 2008-03-10  Bruno Haible  <bruno@clisp.org>
27461
27462         * modules/stdlib (Depends-on): Add include_next, remove
27463         absolute-header.
27464
27465 2008-03-09  Bruno Haible  <bruno@clisp.org>
27466
27467         * lib/freadahead.h (freadahead): Document more precisely.
27468         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27469         the sum of both buffer sizes.
27470         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27471         * NEWS: Document the change.
27472
27473 2008-03-09  Bruno Haible  <bruno@clisp.org>
27474
27475         Extend freadptr to return also the buffer size.
27476         * lib/freadptr.h (freadptr): Add sizep argument.
27477         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27478         (freadptr): Add sizep argument. Determine buffer size like freadahead
27479         does.
27480         * tests/test-freadptr.c: Don't include freadahead.h.
27481         (main): Adapt for new calling convention of freadptr.
27482         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27483         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27484         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27485         tests/test-freadptr2.sh.
27486         (Depends): Remove freadahead.
27487         (TESTS): Add test-freadptr2.sh.
27488         (check_PROGRAMS): Add test-freadptr2.
27489
27490 2008-03-09  Bruno Haible  <bruno@clisp.org>
27491
27492         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27493         Report and solution by Simon Josefsson.
27494
27495 2008-03-06  Bruno Haible  <bruno@clisp.org>
27496
27497         Make fflush after ungetc work on BSD platforms.
27498         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27499         * tests/test-fflush2.c: New file.
27500         * tests/test-fflush2.sh: New file.
27501         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27502         tests/test-fflush2.c.
27503         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27504         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27505
27506 2008-03-06  Eric Blake  <ebb9@byu.net>
27507
27508         Likewise for ftello.
27509         * modules/ftello (Dependencies): Add extensions.
27510         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27511
27512 2008-03-06  Bruno Haible  <bruno@clisp.org>
27513
27514         * modules/fseeko (Dependencies): Add extensions.
27515         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27516         Needed on glibc systems.
27517
27518 2008-03-06  Bruno Haible  <bruno@clisp.org>
27519
27520         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27521         email address.
27522         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27523
27524 2008-03-06  Bruno Haible  <bruno@clisp.org>
27525
27526         * users.txt: Add libgnupdf.
27527
27528 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27529
27530         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27531         (Header File Substitutes, Function Substitutes,
27532         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27533         (Build robot for gnulib): Fix typo.
27534
27535 2008-03-06  Bruno Haible  <bruno@clisp.org>
27536
27537         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27538         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27539
27540 2008-03-06  Bruno Haible  <bruno@clisp.org>
27541
27542         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27543         * doc/gnulib.texi: Include it.
27544
27545 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27546
27547         * modules/func (License): Change license to unlimited; there was
27548         no LGPL parts in the module anyway.
27549
27550 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27551
27552         * modules/__func__: Renamed to modules/func.
27553         * modules/__func__-tests: Renamed to modules/func-tests.
27554         * tests/test-__func__.c: Renamed to tests/test-func.c.
27555         * m4/__func__.m4: Renamed to m4/func.m4.
27556         * doc/gnulib.texi (__func__): Section renamed to func.
27557         Suggested by Eric Blake <ebb9@byu.net>.
27558
27559 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27560
27561         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27562         about __func__.  Make example self-contained.  Suggested by Eric
27563         Blake <ebb9@byu.net>.
27564
27565         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27566         Suggested by Eric Blake <ebb9@byu.net>.
27567
27568 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27569
27570         * modules/__func__: New file.
27571         * modules/__func__-tests: New file.
27572         * tests/test-__func__.c: New file.
27573         * m4/__func__.m4: New file.
27574         * doc/gnulib.texi (__func__): Document __func__ module.
27575
27576 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27577
27578         * modules/byteswap (License): Re-license as LGPLv2+.
27579
27580 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27581
27582         * doc/Makefile: Add pdf target.
27583
27584 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27585
27586         * modules/inline (License): Use 'unlimited', since there are only
27587         *.m4 files in this module.
27588
27589 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27590             Bruno Haible  <bruno@clisp.org>
27591
27592         Add support for HP C 7.1 on OpenVMS 8.3.
27593         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27594
27595 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27596
27597         Update VMS specifics.
27598         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27599
27600 2008-03-02  Jim Meyering  <meyering@redhat.com>
27601
27602         Remove the last dependency on the "free" module.
27603         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27604         Reported by Bob Proulx.
27605
27606         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27607
27608         Remove useless "if" tests before free.  Deprecate "free" module.
27609         * doc/posix-functions/free.texi: Mention that this
27610         module is no longer useful.
27611         * modules/free (Notice): Say this module is obsolete.
27612         * modules/readutmp (Depends-on): Remove free.
27613         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27614         * lib/putenv.c (putenv): Likewise.
27615         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27616         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27617         * tests/test-c-strcasestr.c (main): Likewise.
27618         * tests/test-c-strstr.c (main): Likewise.
27619         * tests/test-mbscasestr1.c (main): Likewise.
27620         * tests/test-mbscasestr2.c (main): Likewise.
27621         * tests/test-mbsstr1.c (main): Likewise.
27622         * tests/test-mbsstr2.c (main): Likewise.
27623         * tests/test-memmem.c (main): Likewise.
27624         * tests/test-strcasestr.c (main): Likewise.
27625         * tests/test-striconv.c (main): Likewise.
27626         * tests/test-striconveh.c (main): Likewise.
27627         * tests/test-striconveha.c (main): Likewise.
27628         * tests/test-strstr.c (main): Likewise.
27629
27630         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27631
27632         bootstrap: sync from coreutils again
27633         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27634
27635 2008-03-01  Jim Meyering  <meyering@redhat.com>
27636
27637         bootstrap: sync from coreutils
27638         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27639         also when the target doesn't exist.
27640
27641 2008-03-01  Eric Blake  <ebb9@byu.net>
27642
27643         Fix bugs in last patch.
27644         * lib/memchr2.c (memchr2): Fix typo.
27645         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27646         extension.
27647         Reported by Bruce Korb.
27648
27649         New module 'memchr2'.
27650         * modules/memchr2: New file.
27651         * modules/memchr2-tests: Likewise.
27652         * lib/memchr2.h: Likewise.
27653         * lib/memchr2.c: Likewise, based on memchr.c.
27654         * tests/test-memchr2.c: New test.
27655         * MODULES.html.sh (String handling): Add memchr2.
27656
27657 2008-02-29  Bruno Haible  <bruno@clisp.org>
27658
27659         * modules/freadseek-tests: New file.
27660         * tests/test-freadseek.sh: New file.
27661         * tests/test-freadseek.c: New file.
27662
27663         New module 'freadseek'.
27664         * modules/freadseek: New file.
27665         * lib/freadseek.h: New file.
27666         * lib/freadseek.c: New file.
27667         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27668
27669 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27670
27671         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27672         wydawca.
27673
27674         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27675         program_invocation_name and program_invocation_short_name are
27676         present.
27677
27678 2008-02-28  Bruno Haible  <bruno@clisp.org>
27679
27680         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27681         * tests/test-freadptr.sh: Also test non-seekable stdin.
27682
27683 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27684
27685         * build-aux/bootstrap (source_base, m4_base)
27686         (doc_base, tests_base): New variables.
27687         (gnulib_tool_options): Do not hardcode base directories, use
27688         the above variables instead.
27689
27690 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27691
27692         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27693
27694 2008-02-28  Bruno Haible  <bruno@clisp.org>
27695
27696         * modules/freadptr-tests: New file.
27697         * tests/test-freadptr.sh: New file.
27698         * tests/test-freadptr.c: New file.
27699
27700         New module 'freadptr'.
27701         * modules/freadptr: New file.
27702         * lib/freadptr.h: New file.
27703         * lib/freadptr.c: New file.
27704         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27705
27706 2008-02-26  Karl Berry  <karl@freefriends.org>
27707
27708         Sync from Libtool:
27709         * libltdl/argz.c (argz_add, argz_count): New functions.
27710         * libltdl/argz.in.h: Declare them.
27711         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27712
27713 2008-02-22  Bruno Haible  <bruno@clisp.org>
27714
27715         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27716         is a pointer type.  Needed for HP-UX 10.
27717         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27718         * doc/posix-functions/gmtime_r.texi: Likewise.
27719         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27720
27721 2008-02-24  Bruno Haible  <bruno@clisp.org>
27722
27723         * modules/environ-tests: New file.
27724         * tests/test-environ.c: New file.
27725
27726         New module 'environ'.
27727         * modules/environ: New file.
27728         * lib/unistd.in.h (environ): New declaration.
27729         * m4/environ.m4: New file.
27730         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27731         after use.
27732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27733         HAVE_DECL_ENVIRON.
27734         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27735         HAVE_DECL_ENVIRON.
27736         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27737         wrong claim that 'environ' is missing on some systems.
27738         * modules/execute (Depends-on): Add environ.
27739         * lib/execute.c (environ): Remove fallback declaration.
27740         * modules/pipe (Depends-on): Add environ.
27741         * lib/pipe.c (environ): Remove fallback declaration.
27742         * modules/setenv (Depends-on): Add environ.
27743         * lib/setenv.c (environ): Remove fallback declaration.
27744         * modules/unsetenv (Depends-on): Add environ.
27745         * lib/unsetenv.c (environ): Remove fallback declaration.
27746         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27747         m4/environ.m4.
27748         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27749         (gl_PREREQ_UNSETENV): Likewise.
27750
27751 2008-02-24  Bruno Haible  <bruno@clisp.org>
27752
27753         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27754
27755 2008-02-20  Bob Proulx  <bob@proulx.com>
27756
27757         Enable use of older two part flavor 'git describe'.
27758         * build-aux/git-version-gen: If using the older two part flavor of
27759         git version then recreate the third part now present in the
27760         newer three part flavor of git describe.
27761
27762 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27763
27764         * lib/fts.c (fts_build): Typo correction to comment.
27765
27766 2008-02-17  Bruno Haible  <bruno@clisp.org>
27767
27768         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27769         generating no-op conflicts.
27770
27771 2008-02-17  Bruno Haible  <bruno@clisp.org>
27772
27773         Speed up by 10%.
27774         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27775         result_entries, rather than an index-based loop.
27776
27777 2008-02-17  Bruno Haible  <bruno@clisp.org>
27778
27779         Speed up by 25%.
27780         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27781         'hashcode_cached'.
27782         (entry_create): New function.
27783         (entry_hashcode): Use the cached hashcode if possible.
27784         (read_changelog_file, try_split_merged_entry): Use entry_create.
27785
27786 2008-02-17  Bruno Haible  <bruno@clisp.org>
27787
27788         Speed up from O(n^2) to O(n) for long ChangeLog files.
27789         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27790         (read_changelog_file): Change implementation of entries_reversed list
27791         to rbtreehash.
27792         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27793
27794 2008-02-17  Bruno Haible  <bruno@clisp.org>
27795
27796         New option --split-merged-entry.
27797         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27798         (find_paragraph_end, try_split_merged_entry): New functions.
27799         (long_options): Add option --split-merged-entry.
27800         (usage): Document option --split-merged-entry.
27801         (main): Implement option --split-merged-entry.
27802         Reported by Eric Blake.
27803
27804 2008-02-17  Bruno Haible  <bruno@clisp.org>
27805
27806         * lib/git-merge-changelog.c: Include c-strstr.h.
27807         (main): Support the "git pull --rebase" situation.
27808         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27809         Reported by Eric Blake.
27810
27811 2008-02-16  Eric Blake  <ebb9@byu.net>
27812
27813         Avoid doubling \ in common case of "c-maybe" quoting style.
27814         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27815         eliding outer quotes.
27816         * lib/quotearg.h: Document this.
27817         * tests/test-quotearg.c (result_strings, inputs, results_g)
27818         (flag_results, locale_results): Test it by adding a new string to
27819         each test group.
27820         (compare_strings): Test new string.
27821
27822 2008-02-13  Eric Blake  <ebb9@byu.net>
27823
27824         Avoid trigraph quoting in default output.
27825         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27826         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27827         unless explicitly requested.
27828         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27829
27830 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27831
27832         Don't rely on signed integer overflowing to negative value.
27833         * lib/getugroups.c (getugroups): Include <limits.h>.
27834         Instead, compare against INT_MAX, and increment only if the test passes.
27835
27836 2008-02-13  Jim Meyering  <meyering@redhat.com>
27837         and Eric Blake  <ebb9@byu.net>
27838
27839         Avoid shadowing warning and compile errors on Linux.
27840         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27841         forwarding macros on Linux.
27842         (dcgettext): Define a stub, for Linux.
27843         (results_g, main): Avoid warnings.
27844
27845 2008-02-12  Eric Blake  <ebb9@byu.net>
27846
27847         Silence warning in last patch.
27848         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27849
27850         Quotearg part 4: add tests, fix c-maybe colon quoting.
27851         * lib/quotearg.h: Improve documentation.
27852         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27853         escapes when adding outer quotes.  When quoting trigraphs, use
27854         valid C notation.  When quoting NUL, omit extra characters if next
27855         character is not digit.  Alter prototype.
27856         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27857         callers.
27858         * modules/quotearg-tests: New module.
27859         * tests/test-quotearg.c: New test.
27860
27861 2008-02-07  Eric Blake  <ebb9@byu.net>
27862
27863         Quotearg part 3: add flag to control outer quote elision.
27864         * lib/quotearg.h (c_maybe_quoting_style): New style.
27865         (enum quoting_flags): Better documentation of flags.
27866         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27867         c-maybe style.
27868         (quotearg_buffer_restyled): Handle new flag to elide outer
27869         quotes.
27870
27871         Quotearg part 2: add flag that can control NUL elision.
27872         * lib/quotearg.h (set_quoting_flags): New prototype.
27873         * lib/quotearg.c (struct quoting_options): Add flag field.
27874         (set_quoting_flags): New function.
27875         (quotearg_buffer_restyled): Add flags parameter.
27876         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27877         (quotearg_n_options): Set the flag, since length cannot be
27878         returned.
27879         (quoting_options_from_style): Default flags correctly.
27880
27881         Quotearg part 1: more wrappers, restore quotearg_char state.
27882         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27883         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27884         (quotearg_colon_mem): New wrappers.
27885         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27886         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27887         functions.
27888         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27889         (quotearg_colon_mem): New functions.
27890
27891 2008-02-11  Bruno Haible  <bruno@clisp.org>
27892
27893         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27894         library in the current directory: it does not work with parallel make.
27895         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27896
27897 2008-02-11  Bruno Haible  <bruno@clisp.org>
27898
27899         * .gitattributes: New file.
27900
27901 2008-02-11  Jim Meyering  <meyering@redhat.com>
27902
27903         useless-if-before-free: Fix reversed exit values.
27904         * build-aux/useless-if-before-free: Use correct values
27905         for EXIT_MATCH and EXIT_NO_MATCH.
27906
27907         * build-aux/useless-if-before-free: Close stdout carefully.
27908
27909 2008-02-10  Bruno Haible  <bruno@clisp.org>
27910
27911         New module 'git-merge-changelog'.
27912         * modules/git-merge-changelog: New file.
27913         * lib/git-merge-changelog.c: New file.
27914
27915 2008-02-10  Jim Meyering  <meyering@redhat.com>
27916
27917         useless-if-before-free: New option: --list (-l).
27918
27919         useless-if-before-free: Don't exit immediately upon open failure.
27920         * build-aux/useless-if-before-free: Exit 2 for errors.
27921         Upon failure to open a file, don't exit immediately.
27922         Rather, just warn and continue with any remaining files.
27923
27924 2008-02-10  Bruno Haible  <bruno@clisp.org>
27925
27926         New abstract list operation 'node_set_value'.
27927         * lib/gl_list.h (gl_list_node_set_value): New function.
27928         (struct gl_list_implementation): New field node_set_value.
27929         * lib/gl_list.c (gl_list_node_set_value): New function.
27930         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27931         (gl_array_list_implementation): Update.
27932         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27933         (gl_carray_list_implementation): Update.
27934         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27935         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27936         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27937         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27938         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27939         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27940         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27941         Update.
27942         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27943         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27944         (gl_sublist_list_implementation): Update.
27945
27946 2008-02-10  Bruno Haible  <bruno@clisp.org>
27947
27948         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27949         Needed when ELEMENT is #defined to 'some_type *'.
27950
27951 2008-02-10  Jim Meyering  <meyering@redhat.com>
27952
27953         New script and module: useless-if-before-free
27954         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27955         * build-aux/useless-if-before-free: New file.
27956         * modules/useless-if-before-free: New file.
27957
27958         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27959
27960         xstrtol_error: Fix typo.
27961         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27962         s/exit_failure/exit_status/.
27963
27964 2008-02-09  Jim Meyering  <meyering@redhat.com>
27965
27966         New script and module: gitlog-to-changelog
27967         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27968         * modules/gitlog-to-changelog: New file.
27969         * build-aux/gitlog-to-changelog: New file.
27970
27971 2008-02-08  Jim Meyering  <meyering@redhat.com>
27972
27973         Avoid two "parameter unused" warnings.
27974         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27975         Mark "st" as used.
27976
27977         Use "git COMMAND", not "git-COMMAND".
27978         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27979         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27980         * build-aux/git-version-gen: Use "git status", not "git-status".
27981
27982 2008-02-07  Bruno Haible  <bruno@clisp.org>
27983
27984         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27985         Avoids a crash on Windows Vista.
27986         Reported by Adam Strzelecki <ono@java.pl> via
27987         Simon Josefsson <simon@josefsson.org>.
27988
27989 2008-02-06  Bruno Haible  <bruno@clisp.org>
27990
27991         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27992         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27993         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27995         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27997         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27998         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27999         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28000         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28001         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28002         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28003         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28004         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28005         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28006         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
28007         left-adjust flag.
28008         * tests/test-snprintf-posix.h (test_function): Likewise.
28009         * tests/test-sprintf-posix.h (test_function): Likewise.
28010         * tests/test-vasprintf-posix.c (test_function): Likewise.
28011         * doc/posix-functions/fprintf.texi: Update.
28012         * doc/posix-functions/printf.texi: Update.
28013         * doc/posix-functions/snprintf.texi: Update.
28014         * doc/posix-functions/sprintf.texi: Update.
28015         * doc/posix-functions/vfprintf.texi: Update.
28016         * doc/posix-functions/vprintf.texi: Update.
28017         * doc/posix-functions/vsnprintf.texi: Update.
28018         * doc/posix-functions/vsprintf.texi: Update.
28019         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28020
28021 2008-02-06  Bruno Haible  <bruno@clisp.org>
28022
28023         Fix bug introduced on 2008-01-26.
28024         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
28025
28026 2008-02-06  Bruno Haible  <bruno@clisp.org>
28027
28028         Fix bug introduced on 2007-06-10.
28029         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
28030         !NEED_PRINTF_FLAG_ZERO.
28031
28032 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
28033
28034         getloadavg: use libperfstat on AIX5
28035         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
28036
28037 2008-02-03  Bruno Haible  <bruno@clisp.org>
28038
28039         * lib/diffseq.h: Add comments about required #includes.
28040         Reported by Michael Biggs <gnulib@doubleplum.net>.
28041
28042 2008-02-01  Bruno Haible  <bruno@clisp.org>
28043
28044         * users.txt: Add gnuit.
28045
28046 2008-01-31  Bruno Haible  <bruno@clisp.org>
28047
28048         * lib/md4.c (set_uint32): Mark as inline.
28049         * lib/md5.c (set_uint32): Likewise.
28050         * lib/sha1.c (set_uint32): Likewise.
28051         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
28052         * m4/md5.m4 (gl_MD5): Likewise.
28053         * m4/sha1.m4 (gl_SHA1): Likewise.
28054
28055 2008-01-31  Jim Meyering  <meyering@redhat.com>
28056
28057         Use "sizeof VAR", rather than a literal "4".
28058         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
28059         * lib/md4.c (md4_read_ctx): Likewise.
28060         * lib/sha1.c (sha1_read_ctx): Likewise.
28061
28062 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28063
28064         * tests/test-sha1.c: New file, based on test-md5.c.
28065
28066         * modules/crypto/sha1-tests: New file.
28067
28068 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28069
28070         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
28071
28072 2008-01-31  Jim Meyering  <meyering@redhat.com>
28073
28074         Prefer "sizeof v" over the equivalent "4".
28075         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
28076         * lib/md5.c (set_uint32): Likewise.
28077         * lib/sha1.c (set_uint32): Likewise.
28078
28079 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28080
28081         * lib/sha1.c (set_uint32): Mark function as static.
28082
28083 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28084
28085         md2: clarify comments to say that alignment is not required.
28086         * lib/md2.h: Remove warning about alignment in comment.
28087         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
28088         never been required.
28089
28090 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28091
28092         md4: adapt alignment constraint fix from sha1.
28093         * lib/md4.c (set_uint32): New function, from sha1.c
28094         (md4_read_ctx): Use it.
28095         (md4_finish_ctx): Doc fix.
28096         * lib/md4.h: Doc fix.
28097
28098 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28099
28100         md5: adapt alignment constraint fix from sha1.
28101         * lib/md5.c (set_uint32): New function, from sha1.c
28102         (md5_read_ctx): Use it.
28103         (md5_finish_ctx): Doc fix.
28104         * lib/md5.h: Doc fix.
28105
28106 2008-01-30  Peter Palfrader  <weasel@debian.org>
28107
28108         sha1: remove the result buffer alignment constraint
28109         * lib/sha1.c (set_uint32): New function.
28110         (sha1_read_ctx): Rewrite to remove the result buffer alignment
28111         constraint.
28112         (sha1_finish_ctx): Remove comment warning about alignment constraint.
28113         * lib/sha1.h: Likewise.
28114
28115 2008-01-30  Andreas Schwab  <schwab@suse.de>
28116             Bruno Haible  <bruno@clisp.org>
28117
28118         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
28119         correct definition of LDBL_MIN_EXP.
28120
28121 2008-01-30  Karl Berry  <karl@gnu.org>
28122
28123         * config/srclist-update: try to preserve x bit on updates.
28124         * config/srclistvars.sh: update for karl.
28125
28126 2008-01-29  Jim Meyering  <meyering@redhat.com>
28127
28128         vasnprintf.c: Avoid warning about unused label
28129         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
28130         "overflow" label definition and associated code with the
28131         same cpp condition that guards the sole use of that label.
28132
28133 2008-01-26  Bruno Haible  <bruno@clisp.org>
28134
28135         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
28136         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
28137         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
28138         * lib/isnanl-nolibm.h (isnanl): Likewise.
28139         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28140
28141 2008-01-26  Bruno Haible  <bruno@clisp.org>
28142
28143         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
28144         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
28145
28146 2008-01-26  Bruno Haible  <bruno@clisp.org>
28147
28148         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
28149         GCC >= 4.0 built-in.
28150         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
28151
28152 2008-01-26  Bruno Haible  <bruno@clisp.org>
28153
28154         Rename isnan, applicable to 'double' only, to isnand.
28155         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
28156         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
28157         (configure.ac): Update.
28158         (Include): Replace "isnan.h" with "isnand.h".
28159         * m4/isnand.m4: Renamed from m4/isnan.m4.
28160         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
28161         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
28162         instead of isnan.c.
28163         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
28164         instead of HAVE_ISNAN_IN_LIBC.
28165         (isnand): Renamed from isnan.
28166         * lib/isnand.c: New file.
28167         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
28168         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
28169         (Makefile.am): Update.
28170         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
28171         Include isnand.h instead of isnan.h.
28172         (main): Test isnand instead of isnan.
28173         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
28174         isnan-nolibm.
28175         * modules/frexp (Depends-on): Likewise.
28176         * modules/frexp-tests (Depends-on): Likewise.
28177         * modules/frexp-nolibm (Depends-on): Likewise.
28178         * modules/frexp-nolibm-tests (Depends-on): Likewise.
28179         * modules/isfinite (Depends-on): Likewise.
28180         * modules/round-tests (Depends-on): Likewise.
28181         * modules/signbit (Depends-on): Likewise.
28182         * modules/signbit-tests (Depends-on): Likewise.
28183         * modules/snprintf-posix (Depends-on): Likewise.
28184         * modules/sprintf-posix (Depends-on): Likewise.
28185         * modules/trunc-tests (Depends-on): Likewise.
28186         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28187         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28188         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28189         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28190         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28191         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28192         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28193         * modules/vasnprintf-posix (Depends-on): Likewise.
28194         * modules/vasprintf-posix (Depends-on): Likewise.
28195         * modules/vfprintf-posix (Depends-on): Likewise.
28196         * modules/vsnprintf-posix (Depends-on): Likewise.
28197         * modules/vsprintf-posix (Depends-on): Likewise.
28198         * lib/frexp.c: Include isnand.h instead of isnan.h.
28199         (ISNAN): Set to isnand instead of isnan.
28200         * lib/isfinite.c: Include isnand.h instead of isnan.h.
28201         (gl_isfinited): Use isnand instead of isnan.
28202         * lib/signbitd.c: Include isnand.h instead of isnan.h.
28203         (gl_signbitd): Use isnand instead of isnan.
28204         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
28205         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
28206         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
28207         (main): Use isnand instead of isnan.
28208         * tests/test-round1.c: Include isnand.h.
28209         (main): Use isnand instead of isnan.
28210         * tests/test-round2.c: Include isnand.h instead of isnan.h.
28211         (ISNAN): Set to isnand instead of isnan.
28212         * tests/test-trunc1.c: Include isnand.h.
28213         (main): Use isnand instead of isnan.
28214         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
28215         (equal): Use isnand instead of isnan.
28216         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
28217         isnand-nolibm.
28218         * NEWS: Mention the change.
28219
28220 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28221             Bruno Haible  <bruno@clisp.org>
28222
28223         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
28224         the GCC builtins for signbits are present and set
28225         REPLACE_SIGNBIT_USING_GCC if so.
28226         * lib/math.in.h (signbit): Define using GCC builtins if
28227         REPLACE_SIGNBIT_USING_GCC is set.
28228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
28229         REPLACE_SIGNBIT_USING_GCC.
28230         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
28231
28232 2008-01-25  Jim Meyering  <meyering@redhat.com>
28233
28234         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
28235         * lib/poll.c: Include <config.h>, not "config.h".
28236         * tests/test-getaddrinfo.c: Likewise.
28237
28238 2008-01-25  Simon Josefsson  <simon@josefsson.org>
28239
28240         * modules/sockets-tests: New file.
28241
28242 2008-01-24  Simon Josefsson  <simon@josefsson.org>
28243
28244         * modules/sockets: New module, can be used to call WSA_Startup and
28245         WSA_Cleanup when needed.
28246
28247         * lib/sockets.h, lib/sockets.c: New files.
28248
28249         * m4/sockets.m4: New file.
28250
28251         * tests/test-sockets.c: New file.
28252
28253 2008-01-19  Bruno Haible  <bruno@clisp.org>
28254
28255         * doc/posix-headers: Renamed from doc/headers.
28256         * doc/posix-functions: Renamed from doc/functions.
28257         * doc/gnulib.texi: Update.
28258
28259 2008-01-19  Bruno Haible  <bruno@clisp.org>
28260
28261         * doc/glibc-functions/strcasestr.texi: Include contents of
28262         doc/functions/strcasestr.texi, fixing the list of platforms.
28263         * doc/functions/strcasestr.texi: Remove file.
28264
28265 2008-01-19  Bruno Haible  <bruno@clisp.org>
28266
28267         * doc/glibc-functions/memmem.texi: Include contents of
28268         doc/functions/memmem.texi.
28269         * doc/functions/memmem.texi: Remove file.
28270
28271 2008-01-18  Bruno Haible  <bruno@clisp.org>
28272
28273         * doc/glibc-functions/*.texi: New files.
28274         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
28275         to use the new files.
28276
28277 2008-01-17  Bruno Haible  <bruno@clisp.org>
28278
28279         * tests/test-gethostname.c (main): Fix printf statement.
28280
28281 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28282
28283         * modules/gethostname-tests: New file.
28284
28285         * tests/test-gethostname.c: New file.
28286
28287 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28288
28289         * lib/gethostname.c: Include string.h unconditionally, strncpy is
28290         used by the UNAME case.  Reported by Bruno Haible
28291         <bruno@clisp.org>.
28292
28293 2008-01-17  Eric Blake  <ebb9@byu.net>
28294
28295         Convert c-strcasestr to be more efficient.
28296         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
28297         (Depends-on): Add c-strcase, remove malloca, strnlen.
28298         * tests/test-c-strcasestr.c (main): Enhance test.
28299         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
28300
28301 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28302
28303         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
28304         Use it in creating po/Makevars.
28305
28306 2008-01-15  Simon Josefsson  <simon@josefsson.org>
28307
28308         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
28309         Applications that requires it should initialize libgcrypt
28310         manually.
28311
28312 2008-01-16  Simon Josefsson  <simon@josefsson.org>
28313
28314         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
28315
28316 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28317
28318         Fix problem with getdate on mingw32 reported by Simon Josefsson
28319         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
28320         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
28321         tzname", when deciding whether to declare tzname.
28322         * lib/strftime.c (tzname): Likewise.
28323
28324 2008-01-15  Bruno Haible  <bruno@clisp.org>
28325
28326         Work around a MacOS X 10.5 bug in frexpl().
28327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
28328         * doc/functions/frexpl.texi: Document the bug.
28329         Reported by Elias Pipping <pipping@gentoo.org>.
28330
28331 2008-01-14  Eric Blake  <ebb9@byu.net>
28332
28333         Touch up previous patch.
28334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28335         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28336
28337         Convert strcasestr module to use Two-Way algorithm.
28338         * modules/strcasestr-simple: New module, based on the old
28339         strcasestr, but with Two-Way rather than KMP.
28340         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28341         * lib/string.in.h (rpl_strcasestr): Declare.
28342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28343         performance.
28344         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28345         * modules/string (Makefile.am): Support strcasestr.
28346         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28347         * modules/strcasestr-tests (Depends-on): Check for alarm.
28348         * tests/test-strcasestr.c: Augment test.
28349         * lib/str-two-way.h: Clean up stray macro.
28350         * NEWS: Document new module.
28351         * MODULES.html.sh (string handling): Likewise.
28352         * doc/functions/strcasestr.texi: New file.
28353         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28354         here, since it is not a POSIX function.
28355
28356 2008-01-14  Colin Watson  <cjwatson@debian.org>
28357             Bruno Haible  <bruno@clisp.org>
28358
28359         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28360         works fine; if not, set REPLACE_STRSIGNAL.
28361         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28363         REPLACE_STRSIGNAL.
28364         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28365         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28366         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28367
28368 2008-01-14  Bruno Haible  <bruno@clisp.org>
28369
28370         * modules/strsignal (Include): Change to <string.h>.
28371
28372 2008-01-14  Colin Watson  <cjwatson@debian.org>
28373
28374         * modules/argp (Notice): Add a notice recommending to change
28375         XGETTEXT_OPTIONS.
28376         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28377
28378 2008-01-13  Colin Watson  <cjwatson@debian.org>
28379
28380         * modules/strsignal-tests: New file.
28381         * tests/test-strsignal.c: New file.
28382
28383         * lib/strsignal.c: New file, from glibc with modifications.
28384         * lib/siglist.h: New file, from glibc with modifications.
28385         * lib/string.in.h (strsignal): New declaration.
28386         * m4/strsignal.m4: New file.
28387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28388         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28389         * modules/strsignal: New file.
28390         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28391         HAVE_DECL_STRSIGNAL.
28392
28393 2008-01-13  Bruno Haible  <bruno@clisp.org>
28394
28395         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28396         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28397         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28398         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28399
28400 2008-01-13  Bruno Haible  <bruno@clisp.org>
28401
28402         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28403         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28404         * lib/argp.h (__attribute__): Likewise.
28405         * lib/c-stack.c (__attribute__): Likewise.
28406         * lib/error.h (__attribute__): Likewise.
28407         * lib/fts.c (__attribute__): Likewise.
28408         * lib/openat.h (__attribute__): Likewise.
28409         * lib/stdio.in.h (__attribute__): Likewise.
28410         * lib/string.in.h (__attribute__): Likewise.
28411         * lib/utimens.c (__attribute__): Likewise.
28412         * lib/vasnprintf.h (__attribute__): Likewise.
28413         * lib/xalloc.h (__attribute__): Likewise.
28414         * lib/xprintf.h (__attribute__): Likewise.
28415         * lib/xstrtol.h (__attribute__): Likewise.
28416         * lib/xvasprintf.h (__attribute__): Likewise.
28417
28418 2008-01-12  Bruno Haible  <bruno@clisp.org>
28419
28420         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28421         * doc/glibc-headers/a.out.texi: New file.
28422         * doc/glibc-headers/aliases.texi: New file.
28423         * doc/glibc-headers/alloca.texi: New file.
28424         * doc/glibc-headers/ar.texi: New file.
28425         * doc/glibc-headers/argp.texi: New file.
28426         * doc/glibc-headers/argz.texi: New file.
28427         * doc/glibc-headers/byteswap.texi: New file.
28428         * doc/glibc-headers/crypt.texi: New file.
28429         * doc/glibc-headers/endian.texi: New file.
28430         * doc/glibc-headers/envz.texi: New file.
28431         * doc/glibc-headers/err.texi: New file.
28432         * doc/glibc-headers/error.texi: New file.
28433         * doc/glibc-headers/execinfo.texi: New file.
28434         * doc/glibc-headers/fpu_control.texi: New file.
28435         * doc/glibc-headers/fstab.texi: New file.
28436         * doc/glibc-headers/fts.texi: New file.
28437         * doc/glibc-headers/getopt.texi: New file.
28438         * doc/glibc-headers/ieee754.texi: New file.
28439         * doc/glibc-headers/ifaddrs.texi: New file.
28440         * doc/glibc-headers/libintl.texi: New file.
28441         * doc/glibc-headers/mcheck.texi: New file.
28442         * doc/glibc-headers/mntent.texi: New file.
28443         * doc/glibc-headers/obstack.texi: New file.
28444         * doc/glibc-headers/paths.texi: New file.
28445         * doc/glibc-headers/printf.texi: New file.
28446         * doc/glibc-headers/pty.texi: New file.
28447         * doc/glibc-headers/resolv.texi: New file.
28448         * doc/glibc-headers/shadow.texi: New file.
28449         * doc/glibc-headers/sysexits.texi: New file.
28450         * doc/glibc-headers/ttyent.texi: New file.
28451
28452 2008-01-12  Jim Meyering  <meyering@redhat.com>
28453
28454         announce-gen: emit Gnulib's git-based version string.
28455         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28456         New option --gnulib-version=V, where V is expected to be
28457         the output of running git describe in the gnulib directory.
28458         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28459         not useful, and plan to stop publishing an xdelta file with each
28460         coreutils release.
28461
28462         * build-aux/announce-gen: Also check for lzma-compressed files.
28463
28464 2008-01-11  Bruno Haible  <bruno@clisp.org>
28465
28466         * tests/test-memmem.c (main): Increase maximum allowed time.
28467         * tests/test-strstr.c (main): Likewise.
28468
28469 2008-01-11  Bruno Haible  <bruno@clisp.org>
28470
28471         * doc/functions/memmem.texi: Add more precisions about platforms.
28472         * doc/functions/strstr.texi: Likewise.
28473
28474 2008-01-10  Eric Blake  <ebb9@byu.net>
28475
28476         * m4/strstr.m4: Delete cruft from copy-n-paste.
28477         Reported by Bruno Haible.
28478
28479 2008-01-10  Bruno Haible  <bruno@clisp.org>
28480
28481         Make c-strstr rely on strstr.
28482         * lib/c-strstr.c: Don't include str-kmp.h.
28483         (c_strstr): Define in terms of strstr.
28484         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28485         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28486
28487 2008-01-10  Bruno Haible  <bruno@clisp.org>
28488
28489         * doc/gnulib.texi (String Functions in C Locale): New section.
28490         * doc/c-ctype.texi: New file.
28491         * doc/c-strcase.texi: New file.
28492         * doc/c-strcaseeq.texi: New file.
28493         * doc/c-strcasestr.texi: New file.
28494         * doc/c-strstr.texi: New file.
28495         * doc/c-strtod.texi: New file.
28496         * doc/c-strtold.texi: New file.
28497
28498 2008-01-10  Eric Blake  <ebb9@byu.net>
28499
28500         * lib/relocatable.h: Fix a comment.
28501
28502 2008-01-10  Eric Blake  <ebb9@byu.net>
28503
28504         Share two-way algorithm.
28505         * lib/str-two-way.h: New file, merged from...
28506         * lib/memmem.c: ...here...
28507         * lib/strstr.c: ...and here.
28508         * modules/memmem (Files): Use it.
28509         * modules/strstr (Files): Likewise.
28510
28511         Avoid quadratic strstr implementations.
28512         * lib/strstr.c: New file.
28513         * m4/strstr.m4: Likewise.
28514         * modules/strstr: Likewise.
28515         * modules/strstr-tests: Likewise.
28516         * tests/test-strstr.c: Likewise.
28517         * lib/string.in.h (rpl_strstr): Declare.
28518         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28520         * modules/string (Makefile.am): Likewise.
28521         * MODULES.html.sh (string handling): Mention new module.
28522         * doc/functions/strstr.texi (strstr): Document the bug.
28523
28524 2008-01-10  Bruno Haible  <bruno@clisp.org>
28525
28526         * lib/relocatable.h (relocate): State whether result is freshly
28527         allocated or not.
28528         * lib/relocatable.c (relocate): Return a freshly allocated string
28529         instead of a pointer to a privately held string.
28530         Reported by Sylvain Beucler <beuc@gnu.org>.
28531
28532 2008-01-10  Colin Watson  <cjwatson@debian.org>
28533
28534         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28535         s/S_ISNLK/S_ISLNK/.
28536
28537 2008-01-09  Bruno Haible  <bruno@clisp.org>
28538
28539         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28540         and other files.
28541         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28542         if it's only a guess.
28543         * modules/memmem: Simplify by depending on memmem-simple.
28544
28545 2008-01-09  Bruno Haible  <bruno@clisp.org>
28546
28547         Work around OpenBSD 4.0 tdelete() bug.
28548         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28549         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28550         macros and don't redefine the enum values.
28551         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28552         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28553         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28554
28555 2008-01-09  Bruno Haible  <bruno@clisp.org>
28556
28557         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28558         (main): Don't perform the tests if setlocale did not install a UTF-8
28559         locale. Needed on OpenBSD 4.0.
28560         * modules/wcwidth-tests (Depends-on): Add localcharset.
28561
28562 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28563
28564         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28565         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28566         * NEWS: announce this.
28567         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28568
28569 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28570         and Eric Blake  <ebb9@byu.net>
28571
28572         Add memmem-simple module.
28573         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28574         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28575         * modules/memmem-simple: New file.
28576         * modules/memmem (Description): Tweak.
28577         * MODULES.html.sh (string handling): Mention new module.
28578         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28579         addressed by memmem-simple.
28580         * NEWS: Document the difference.
28581
28582 2008-01-09  Eric Blake  <ebb9@byu.net>
28583
28584         Give gcc some memmem optimization hints.
28585         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28586         (strcasestr): Declare as pure.
28587         * modules/memmem (Maintainer): Claim my implementation.
28588
28589 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28590
28591         Support AIX 6.1 and higher.
28592         * build-aux/config.libpath: Likewise.
28593         * build-aux/config.rpath: Likewise.
28594
28595 2008-01-08  Jim Meyering  <meyering@redhat.com>
28596             Bruno Haible  <bruno@clisp.org>
28597
28598         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28599         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28600         Reported by Peter Fales in
28601         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28602
28603 2008-01-08  Bruno Haible  <bruno@clisp.org>
28604
28605         * modules/unictype/category-of (Depends-on): Add
28606         unictype/category-none.
28607         * modules/unictype/category-and-tests (Depends-on): Add
28608         unictype/category-{L,N,Lu,Nd}.
28609         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28610         * modules/unictype/category-or-tests (Depends-on): Add
28611         unictype/category-{L,N}.
28612         * modules/unictype/category-name-tests (Depends-on): Add
28613         unictype/category-{Z,Nl}.
28614         Reported by Simon Josefsson.
28615
28616 2008-01-08  Bruno Haible  <bruno@clisp.org>
28617
28618         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28619         convention better.
28620         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28621         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28622         Reported by Peter Miller <millerp@canb.auug.org.au>.
28623
28624 2008-01-08  Eric Blake  <ebb9@byu.net>
28625
28626         Rewrite memmem to guarantee linear complexity without malloc.
28627         * lib/memmem.c (memmem): Use Two-Way rather than
28628         Knuth-Morris-Pratt, to allow O(1) space usage.
28629         (critical_factorization, two_way_short_needle)
28630         (two_way_long_needle): New functions.
28631         (knuth_morris_pratt): Delete.
28632         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28633         Add stdint.
28634         * tests/test-memmem.c (main): Add tests for periodic needle and
28635         sublinear performance.
28636         * doc/functions/memmem.texi (memmem): Document other deficiencies
28637         in cygwin and older glibc.
28638
28639 2008-01-08  Bruno Haible  <bruno@clisp.org>
28640
28641         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28642         augmentation.
28643
28644 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28645
28646         Add a configure time option: --disable-acl.
28647         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28648         AC_ARG_ENABLE(acl).
28649
28650 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28651
28652         * tests/test-localename.c: Don't include obsolete "setenv.h".
28653
28654         * modules/localename-tests (Depends-on): Need unsetenv.
28655
28656 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28657
28658         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28659
28660 2008-01-06  Colin Watson  <cjwatson@debian.org>
28661
28662         * users.txt: Add man-db.
28663
28664 2008-01-07  Bruno Haible  <bruno@clisp.org>
28665
28666         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28667         previous section name.
28668
28669 2008-01-07  Bruno Haible  <bruno@clisp.org>
28670
28671         * lib/progname.c (set_program_name): Don't strip off a leading
28672         "lt-" prefix outside a .libs directory.
28673         Suggested by Paul Eggert.
28674
28675 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28676             Bruno Haible  <bruno@clisp.org>
28677
28678         Improve memory cleanup in 'relocatable' module.
28679         * lib/relocatable.h (compute_curr_prefix): Change return type to
28680         'char *'.
28681         * lib/relocatable.c (compute_curr_prefix): Change return type to
28682         'char *'. Free curr_installdir after use.
28683         (relocate): Free curr_prefix_better after use.
28684         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28685
28686 2008-01-01  Bruno Haible  <bruno@clisp.org>
28687
28688         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28689         failure on older glibc systems.
28690         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28691
28692 2008-01-05  Eric Blake  <ebb9@byu.net>
28693
28694         Avoid quadratic system memmem.
28695         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28696         Reported by Ralf Wildenhues.
28697
28698         Fix memmem test for mingw.
28699         * modules/memmem-tests (configure.ac): Check for alarm.
28700         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28701         it.
28702         * doc/functions/memmem.texi: New file.
28703         * doc/gnulib.texi (Function Substitutes): Add memmem.
28704         Reported by Bruno Haible.
28705
28706 2008-01-04  Bruno Haible  <bruno@clisp.org>
28707
28708         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28709         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28710         gl_HEADER_STRING_H_DEFAULTS.
28711
28712 2008-01-04  Eric Blake  <ebb9@byu.net>
28713
28714         Shorten duration of memmem test.
28715         * tests/test-memmem.c (main): Use alarm to declare failure if test
28716         is taking too long.
28717         Reported by Ralf Wildenhues.
28718
28719 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28720
28721         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28722         string, needed by strerror.
28723
28724 2008-01-03  Colin Watson  <cjwatson@debian.org>
28725             Bruno Haible  <bruno@clisp.org>
28726
28727         * doc/gnulib-tool.texi (Localization): New section.
28728
28729 2008-01-02  Bruno Haible  <bruno@clisp.org>
28730
28731         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28732         variables to 'unsigned char *' type.
28733         Reported by Paul Eggert.
28734
28735 2008-01-02  Jim Meyering  <jim@meyering.net>
28736
28737         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28738
28739 2007-12-31  Jim Meyering  <jim@meyering.net>
28740
28741         Avoid use of private FTS type name.
28742         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28743
28744 2007-12-30  Karl Berry  <karl@gnu.org>
28745
28746         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28747         work around defect in Texinfo and/or the standalone Info browser.
28748
28749 2007-12-30  Bruno Haible  <bruno@clisp.org>
28750
28751         Unify 5 copies of the KMP code.
28752         * lib/str-kmp.h: New file.
28753         * lib/c-strcasestr.c: Include str-kmp.h.
28754         (knuth_morris_pratt): Remove function.
28755         (c_strcasestr): Update.
28756         * lib/c-strstr.c: Include str-kmp.h.
28757         (knuth_morris_pratt): Remove function.
28758         (c_strcasestr): Update.
28759         * lib/mbscasestr.c: Include str-kmp.h.
28760         (knuth_morris_pratt_unibyte): Remove function.
28761         * lib/mbsstr.c: Include str-kmp.h.
28762         (knuth_morris_pratt_unibyte): Remove function.
28763         * lib/strcasestr.c: Include str-kmp.h.
28764         (knuth_morris_pratt): Remove function.
28765         (strcasestr): Update.
28766         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28767         * modules/c-strstr (Files): Likewise.
28768         * modules/mbscasestr (Files): Likewise.
28769         * modules/mbsstr (Files): Likewise.
28770         * modules/strcasestr (Files): Likewise.
28771         Suggested by Paul Eggert.
28772
28773 2007-12-30  Bruno Haible  <bruno@clisp.org>
28774
28775         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28776         defined.
28777
28778 2007-12-30  Bruno Haible  <bruno@clisp.org>
28779
28780         * lib/xmalloca.h: Include xalloc.h.
28781         (xnmalloca): New macro.
28782
28783 2007-12-30  Bruno Haible  <bruno@clisp.org>
28784
28785         * lib/malloca.h (nmalloca): New macro.
28786         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28787         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28788         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28789         knuth_morris_pratt_multibyte): Likewise.
28790         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28791         knuth_morris_pratt_multibyte): Likewise.
28792         * lib/memmem.c (knuth_morris_pratt): Likewise.
28793         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28794
28795 2007-12-25  Bruno Haible  <bruno@clisp.org>
28796
28797         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28798         * lib/glob.c: Don't include openat.h.
28799         (link_exists2_p): Add back the code that deals with the
28800         !GLOB_ALTDIRFUNC case.
28801         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28802         let it do the filename concatenation.
28803         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28804         * modules/glob (Depends-on): Remove openat.
28805
28806 2007-12-31  Bruno Haible  <bruno@clisp.org>
28807
28808         * modules/dirfd (License): Change to LGPLv2+.
28809         Approved by Jim Meyering.
28810
28811 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28812
28813         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28814         when multiplying M by sizeof (size_t).
28815
28816 2007-12-10  Martin Lambers  <marlam@marlam.de>
28817
28818         Override getpagesize on mingw.
28819         * lib/getpagesize.c: New file.
28820         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28821         * modules/getpagesize (Files): Add lib/getpagesize.c.
28822         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28824         REPLACE_GETPAGESIZE.
28825         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28826
28827 2007-12-25  Bruno Haible  <bruno@clisp.org>
28828
28829         * modules/localcharset (Notice): New field.
28830         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28831         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28832
28833 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28834             Bruno Haible  <bruno@clisp.org>
28835
28836         Avoid using the syntax symbol() in formatted documentation.
28837         * MODULES.html.sh (func_module): When replacing symbol() with a
28838         hyperlink, remove the parentheses. Show an error if some remain.
28839         Recognize and render the '...' syntax.
28840         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28841         Rework. Add paragraph about GCC's inlining.
28842         * doc/alloca.texi: Likewise.
28843         * doc/error.texi: Remove parentheses from symbol reference.
28844         * doc/gnulib-intro.texi: Likewise.
28845         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28846         * modules/fnmatch (Description): Reword to say "the ... function".
28847         * modules/full-read (Description): Likewise.
28848         * modules/full-write (Description): Likewise.
28849         * modules/safe-read (Description): Likewise.
28850         * modules/safe-write (Description): Likewise.
28851         * modules/strchrnul (Description): Likewise.
28852         * modules/trim (Description): Likewise.
28853         * modules/error (Description): Remove parentheses from symbol
28854         references.
28855         * modules/verror (Description): Likewise.
28856         Reported by Karl Berry.
28857
28858 2007-12-25  Bruno Haible  <bruno@clisp.org>
28859
28860         Fixup after 2007-10-16 commit.
28861         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28862
28863 2007-12-24  Bruno Haible  <bruno@clisp.org>
28864
28865         Make --enable-relocatable work with DESTDIR.
28866         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28867         to compute installdir from destprog.
28868         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28869         also set the RELOC_DESTDIR variable.
28870         Reported by Левашев Иван <octagram@bluebottle.com>.
28871
28872 2007-12-24  Bruno Haible  <bruno@clisp.org>
28873
28874         Fix link error due to xalloc_die().
28875         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28876         of xreadlink.
28877         * lib/relocwrapper.c: Update comments.
28878         * build-aux/install-reloc: Remove xreadlink.c from file list.
28879         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28880         xreadlink.c.
28881         Reported by Левашев Иван <octagram@bluebottle.com>.
28882
28883 2007-12-24  Bruno Haible  <bruno@clisp.org>
28884
28885         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28886         * lib/setenv.h: Remove file.
28887         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28888         lib/setenv.h.
28889         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28890         (Depends-on): Add stdlib.
28891         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28892         gl_FUNC_UNSETENV.
28893         (Include): Replace setenv.h with <stdlib.h>.
28894         * modules/unsetenv: New file.
28895         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28896         * lib/unsetenv.c: Include <stdlib.h> first.
28897         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28898         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28899         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28900         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28901         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28902         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28904         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28905         * doc/functions/unsetenv.texi: Update.
28906         * modules/xsetenv (Depends-on): Add unsetenv.
28907         * modules/getdate (Depends-on): Likewise.
28908         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28909         * lib/xsetenv.c: Don't include setenv.h.
28910         * lib/getdate.y: Likewise.
28911         * lib/relocwrapper.c: Likewise.
28912         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28913         (Depends-on): Add stdlib.
28914         * NEWS: Mention the changes.
28915         Reported by Левашев Иван <octagram@bluebottle.com>.
28916
28917 2007-12-23  Bruno Haible  <bruno@clisp.org>
28918
28919         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28920         indentation.
28921
28922 2007-12-23  Bruno Haible  <bruno@clisp.org>
28923
28924         * lib/c-strcasestr.c: Add more comments.
28925         * lib/c-strstr.c: Likewise.
28926         * lib/mbscasestr.c: Likewise.
28927         * lib/mbsstr.c: Likewise.
28928         * lib/strcasestr.c: Likewise.
28929         * lib/memmem.c: Likewise.
28930
28931 2007-12-23  Bruno Haible  <bruno@clisp.org>
28932
28933         * tests/test-memmem.c: Include <string.h> first.
28934
28935 2007-12-22  Bruno Haible  <bruno@clisp.org>
28936
28937         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28938         the contents of $testsbase.
28939         Reported by Ralf Wildenhues.
28940
28941 2007-12-22  Bruno Haible  <bruno@clisp.org>
28942
28943         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28944         two variables local_ldadd_before, local_ldadd_last.
28945
28946 2007-12-20  Eric Blake  <ebb9@byu.net>
28947
28948         Work around circular library issue when cross-compiling.
28949         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28950         that progname.o does not need to pull in rpl_memcmp.
28951
28952 2007-12-19  Eric Blake  <ebb9@byu.net>
28953
28954         Fix memmem to avoid O(n^2) worst-case complexity.
28955         * lib/memmem.c (knuth_morris_pratt): New function.
28956         (memmem): Use it if first few naive iterations fail.
28957         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28958         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28959         * modules/memchr (License): Likewise.
28960         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28961         malloca.
28962         * tests/test-memmem.c: Rewrite, borrowing ideas from
28963         test-mbsstr1.c; the old version wouldn't even compile!
28964         * modules/memmem-tests: New file.
28965         * lib/string.in.h (rpl_memmem): Add declaration.
28966         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28967         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28968         REPLACE_MEMMEM.
28969
28970 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28971
28972         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28973         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28974         before any system include files, and undef after them all.  This
28975         should fix a problem on VMS reported by John E. Malmberg in
28976         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28977
28978 2007-12-17  Eric Blake  <ebb9@byu.net>
28979
28980         Revert addition of verify, for BSD/OS.
28981         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28982         can't handle large files, for the sake of obsolete platforms.
28983         * modules/fseeko (Depends-on): Remove verify.
28984         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28985         * doc/functions/ftello.texi (ftello): Likewise.
28986         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28987         Reported by Larry Jones.
28988
28989 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28990
28991         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28992         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28993
28994 2007-12-17  Jim Meyering  <meyering@redhat.com>
28995
28996         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28997         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28998         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28999         * modules/getcwd (Depends-on): Add openat.
29000         Reported by Petr Salinger.
29001
29002 2007-12-17  Bruno Haible  <bruno@clisp.org>
29003
29004         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
29005         avoid a segmentation fault of the configure test on x86_64 systems.
29006
29007 2007-12-15  Jim Meyering  <meyering@redhat.com>
29008
29009         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
29010
29011 2007-12-13  Eric Blake  <ebb9@byu.net>
29012
29013         Another fseek test.
29014         * tests/test-fseek.c (main): Also test ungetc handling.
29015         * tests/test-fseeko.c (main): Likewise.
29016         * modules/fseeko (Depends-on): Add verify.
29017         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
29018         large.
29019         Reported by Larry Jones.
29020
29021         Fix fseeko on mingw.
29022         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
29023         seek.
29024
29025         Beef up fseek tests.
29026         * tests/test-fseek.c (main): Also test eof handling.
29027         * tests/test-fseeko.c (main): Likewise.
29028         Reported by Larry Jones.
29029
29030 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
29031
29032         Fix fseeko on BSD-based platforms.
29033         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
29034         successful seek.
29035
29036 2007-12-12  Eric Blake  <ebb9@byu.net>
29037
29038         Allow circular dependency of separate libtests.a
29039         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
29040         when use_libtests.
29041
29042 2007-12-11  Eric Blake  <ebb9@byu.net>
29043
29044         Fix bug with -0.0L in previous patch.
29045         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
29046         * tests/test-isnan.c (main): Also test on zeroes.
29047         * tests/test-isnanf.c (main): Likewise.
29048         * tests/test-isnanl.h (main): Likewise.
29049
29050         Detect pseudo-denormals on x86 even when cross-compiling.
29051         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
29052         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
29053         invalid bit patterns that happen to satisfy ==.
29054
29055         Avoid link failures with separate libtests.a.
29056         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
29057         last, to satisfy circular dependencies.
29058
29059 2007-12-11  Eric Blake  <ebb9@byu.net>
29060         and Bruno Haible  <bruno@clisp.org>
29061
29062         Fix OpenBSD 4.0 <float.h> handling of long double.
29063         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
29064         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
29065         * doc/headers/float.texi (float.h): Document OpenBSD bug.
29066
29067 2007-12-11  Jim Meyering  <meyering@redhat.com>
29068
29069         * users.txt: Add libvirt.
29070
29071         Support versions of autoconf prior to 2.59c.
29072         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
29073         if it is not already defined.
29074
29075 2007-12-09  Bruno Haible  <bruno@clisp.org>
29076
29077         Let 'gnulib-tool --import' collect sources needed for the tests in
29078         tests/ rather than in lib/.
29079         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
29080         argument. If true, add rules to generate libtests.a, and put libtests.a
29081         into $(LDADD). Consider source files in subdirectories and set
29082         uses_subdirs.
29083         (func_emit_initmacro_start, func_emit_initmacro_end,
29084         func_emit_initmacro_done): Pass all arguments explicitly.
29085         (func_import): Determine two module lists main_modules,
29086         testsrelated_modules. Determine use_libtests. Determine two variables
29087         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
29088         instead of just sed_transform_lib_file. Determine two variables
29089         main_files and testsrelated_files. Compute 'files' as the union of
29090         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
29091         func_add_or_update. In the generated gnulib-comp.m4, collect the
29092         object files for tests/ in different variables than those for lib/.
29093         Substitute LIBTESTS_LIBDEPS.
29094         (func_create_testdir): Combine the uses_subdirs results from
29095         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
29096
29097 2007-12-09  Bruno Haible  <bruno@clisp.org>
29098
29099         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
29100         the build-aux directory.
29101
29102 2007-12-09  Bruno Haible  <bruno@clisp.org>
29103
29104         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
29105         introduced on 2006-09-09.
29106
29107 2007-12-07  Jim Meyering  <meyering@redhat.com>
29108
29109         Let these macros work also with autoconf-2.59.
29110         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
29111         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
29112         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29113
29114 2007-12-06  Jim Meyering  <meyering@redhat.com>
29115
29116         Avoid a configure-time syntax error in gl_FUNC_ACL.
29117         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
29118         function in each branch, before testing the cache variable.
29119
29120 2007-12-04  Eric Blake  <ebb9@byu.net>
29121
29122         Make scripts executable.
29123         * build-aux/config.guess: Add execute permissions.
29124         * build-aux/config.sub: Likewise.
29125         * build-aux/gendocs.sh: Likewise.
29126
29127         Fix frexp on mingw.
29128         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
29129         cross-compiling.
29130         * doc/functions/frexp.texi (frexp): Document the bug.
29131
29132         Make cygwin fseeko check more reliable.
29133         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
29134         version numbers, rather than unrelated feature check.
29135         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
29136         * doc/functions/ftello.texi (ftello): Likewise.
29137         Reported by Bruno Haible.
29138
29139         * m4/strerror.m4: Bump version number.
29140
29141 2007-12-03  Bruno Haible  <bruno@clisp.org>
29142
29143         * doc/functions/mprotect.texi: Mention the mingw problem.
29144
29145 2007-12-03  Eric Blake  <ebb9@byu.net>
29146
29147         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
29148         REPLACE_STRERROR is initialized before this macro.
29149
29150 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
29151
29152         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
29153         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
29154         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
29155         put -lsec in even for programs other than 'ls'.  This fixes a problem
29156         for gettext reported by Bruno Haible in
29157         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
29158         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
29159         Add support for Solaris 10.  This isn't efficient, but should get the
29160         job done for now.
29161
29162 2007-12-03  James Youngman  <jay@gnu.org>
29163
29164         * doc/regexprops-generic.texi: change "an close-group" to "a
29165         close-group" and "illegal" to "not allowed".
29166
29167 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29168
29169         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
29170         pr_byname.h. Needed for the rare case when the maintainer has done
29171         "make maintainer-clean" in the source directory and then attempts a
29172         build outside the source directory.
29173         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
29174         scripts_byname.h.
29175
29176 2007-12-02  Martin Lambers <marlam@marlam.de>
29177             Bruno Haible  <bruno@clisp.org>
29178
29179         * lib/getpagesize.h: Remove file.
29180         * lib/unistd.in.h: Include declaration of getpagesize here.
29181         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
29182         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
29183         HAVE_SYS_PARAM_H.
29184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
29185         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29186         * modules/getpagesize (Files): Remove lib/getpagesize.h.
29187         (Depends-on): Add unistd.
29188         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29189         (Include): Use <unistd.h> instead of getpagesize.h.
29190         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
29191         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29192         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
29193         gl_GETPAGESIZE invocation, already handled by module dependency.
29194         * lib/pagealign_alloc.c: Don't include getpagesize.h.
29195
29196 2007-12-02  Bruno Haible  <bruno@clisp.org>
29197
29198         * modules/strings-tests: New file.
29199         * tests/test-strings.c: New file.
29200
29201         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
29202         * lib/strings.in.h: New file.
29203         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
29204         * m4/strings_h.m4: New file.
29205         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
29206         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
29207         * modules/strings: New file.
29208         * modules/string (Makefile.am): Update.
29209         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
29210         Reported by Karl Berry.
29211
29212 2007-12-01  Eric Blake  <ebb9@byu.net>
29213
29214         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
29215         accomodate fix in cygwin 1.5.25.
29216
29217 2007-12-01  Jim Meyering  <meyering@redhat.com>
29218
29219         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
29220         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
29221         that would inhibit utf8-optimization of a regexp containing line-
29222         or buffer-anchors, e.g., `^', `$'.
29223
29224 2007-11-30  Bruno Haible  <bruno@clisp.org>
29225
29226         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
29227         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
29228         glthread_recursive_lock_init.
29229         * lib/lock.c (glthread_recursive_lock_init)
29230         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
29231         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29232
29233 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29234
29235         New function qset_acl, like set_acl but with syscall semantics.
29236         * lib/acl.h (qset_acl): New decl.
29237         * lib/acl.c (qset_acl): New function.
29238         (set_acl): Use new function.  Use more-consistent diagnostics.
29239
29240 2007-11-28  Jim Meyering  <meyering@redhat.com>
29241
29242         * modules/physmem (License): Change from GPL to LGPLv2+.
29243
29244 2007-11-26  Bruno Haible  <bruno@clisp.org>
29245
29246         * lib/vasnprintf.c (decode_long_double): Don't abort if the
29247         'long double' type has excess precision.
29248         Reported by Jim Meyering in
29249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
29250
29251 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29252
29253         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
29254         Sync from <http://gnu.org/licenses>.
29255         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
29256         with license text from same location.
29257         * doc/maintain.texi, doc/standards.texi:  Sync from
29258         <http://savannah.gnu.org/projects/gnustandards>.
29259
29260 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
29261         and Jim Meyering  <meyering@redhat.com>
29262
29263         Adjust getdate' grammar to accept a slightly more regular language.
29264         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
29265         Before, the former was rejected.
29266         * lib/getdate.y (digits_to_date_time): New function, factored
29267         out of ...
29268         (number): ...here.  Just call digits_to_date_time.
29269         (hybrid): New non-terminal to handle an <unsigned number,
29270         signed relative offset> sequence consistently.
29271
29272 2007-11-18  Jim Meyering  <meyering@redhat.com>
29273
29274         Pull my changes from coreutils:
29275         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
29276         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
29277         use of $gnulib_tool_option_extras, so that it's separated from the
29278         preceding argument.
29279
29280         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
29281         * build-aux/bootstrap (cp_mark_as_generated): Create any required
29282         parent destination directories before copying a file into place.
29283
29284 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29285
29286         bootstrap: work also with 4-argument variant of AC_INIT
29287         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
29288
29289 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29290
29291         Port test-getaddrinfo to Solaris.
29292         Problem reported by Bruno Haible in
29293         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
29294         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
29295         explanation of setting 'hints'.
29296         Don't reject an implementation merely because it returns EAI_SERVICE.
29297         (EAI_SERVICE): Define to 0 if not defined.
29298
29299 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29300
29301         The license of gnu-make and posix-shell is now "GPLed build tool".
29302         * modules/gnu-make (License): Likewise.
29303         * modules/posix-shell (License): Likewise.
29304
29305         New module posix-shell, for determining a POSIX shell
29306         or perhaps something that is close enough to a POSIX shell.
29307         * m4/posix-shell.m4: New file.
29308         * modules/posix-shell: New file.
29309
29310         * MODULES.html.sh: Mention new module.
29311
29312         New module gnu-make, for determining whether we're using GNU Make.
29313         * m4/gnu-make.m4: New file.
29314         * modules/gnu-make: New file.
29315         * MODULES.html.sh: Mention new module.
29316
29317 2007-11-14  Jim Meyering  <meyering@redhat.com>
29318
29319         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
29320         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
29321         use this macro to create a function _definition_.
29322         Remove useless "#undef ARGMATCH_DIE".
29323
29324 2007-11-14  Bruno Haible  <bruno@clisp.org>
29325
29326         * lib/config.charset: Update for OpenBSD 4.1.
29327         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
29328
29329 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29330
29331         Document 64-bit #if problems in stdint.texi.
29332         * doc/headers/stdint.texi (stdint.h): Mention problems with
29333         64-bit-#if, and how to work around them.
29334
29335         Don't insist on 'long long int' support in the preprocessor.  It
29336         breaks too many things.  For example, PRIdMAX still uses a 'long
29337         long int' format with the latest Sun compiler, even though
29338         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29339         preprocessor problem.  This causes the latest coreutils to dump
29340         core on Solaris 10 sparc with the Sun C compiler.
29341         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29342         the troublesome expressions at configure-time, not at #if-time.
29343         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29344         preprocessor.
29345         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29346         compile-time C checks, done at 'configure'-time.
29347         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29348         * modules/inttypes (Makefile): Substitute the new symbols that
29349         gl_INTTYPES_H now generates.
29350         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29351
29352 2007-11-12  Bruno Haible  <bruno@clisp.org>
29353
29354         Tests for Unicode character classification functions.
29355
29356         * modules/unictype/bidicategory-byname-tests: New file.
29357         * modules/unictype/bidicategory-name-tests: New file.
29358         * modules/unictype/bidicategory-of-tests: New file.
29359         * modules/unictype/bidicategory-test-tests: New file.
29360         * modules/unictype/block-list-tests: New file.
29361         * modules/unictype/block-of-tests: New file.
29362         * modules/unictype/block-test-tests: New file.
29363         * modules/unictype/category-C-tests: New file.
29364         * modules/unictype/category-Cc-tests: New file.
29365         * modules/unictype/category-Cf-tests: New file.
29366         * modules/unictype/category-Cn-tests: New file.
29367         * modules/unictype/category-Co-tests: New file.
29368         * modules/unictype/category-Cs-tests: New file.
29369         * modules/unictype/category-L-tests: New file.
29370         * modules/unictype/category-Ll-tests: New file.
29371         * modules/unictype/category-Lm-tests: New file.
29372         * modules/unictype/category-Lo-tests: New file.
29373         * modules/unictype/category-Lt-tests: New file.
29374         * modules/unictype/category-Lu-tests: New file.
29375         * modules/unictype/category-M-tests: New file.
29376         * modules/unictype/category-Mc-tests: New file.
29377         * modules/unictype/category-Me-tests: New file.
29378         * modules/unictype/category-Mn-tests: New file.
29379         * modules/unictype/category-N-tests: New file.
29380         * modules/unictype/category-Nd-tests: New file.
29381         * modules/unictype/category-Nl-tests: New file.
29382         * modules/unictype/category-No-tests: New file.
29383         * modules/unictype/category-P-tests: New file.
29384         * modules/unictype/category-Pc-tests: New file.
29385         * modules/unictype/category-Pd-tests: New file.
29386         * modules/unictype/category-Pe-tests: New file.
29387         * modules/unictype/category-Pf-tests: New file.
29388         * modules/unictype/category-Pi-tests: New file.
29389         * modules/unictype/category-Po-tests: New file.
29390         * modules/unictype/category-Ps-tests: New file.
29391         * modules/unictype/category-S-tests: New file.
29392         * modules/unictype/category-Sc-tests: New file.
29393         * modules/unictype/category-Sk-tests: New file.
29394         * modules/unictype/category-Sm-tests: New file.
29395         * modules/unictype/category-So-tests: New file.
29396         * modules/unictype/category-Z-tests: New file.
29397         * modules/unictype/category-Zl-tests: New file.
29398         * modules/unictype/category-Zp-tests: New file.
29399         * modules/unictype/category-Zs-tests: New file.
29400         * modules/unictype/category-and-not-tests: New file.
29401         * modules/unictype/category-and-tests: New file.
29402         * modules/unictype/category-byname-tests: New file.
29403         * modules/unictype/category-name-tests: New file.
29404         * modules/unictype/category-none-tests: New file.
29405         * modules/unictype/category-of-tests: New file.
29406         * modules/unictype/category-or-tests: New file.
29407         * modules/unictype/category-test-withtable-tests: New file.
29408         * modules/unictype/combining-class-tests: New file.
29409         * modules/unictype/ctype-alnum-tests: New file.
29410         * modules/unictype/ctype-alpha-tests: New file.
29411         * modules/unictype/ctype-blank-tests: New file.
29412         * modules/unictype/ctype-cntrl-tests: New file.
29413         * modules/unictype/ctype-digit-tests: New file.
29414         * modules/unictype/ctype-graph-tests: New file.
29415         * modules/unictype/ctype-lower-tests: New file.
29416         * modules/unictype/ctype-print-tests: New file.
29417         * modules/unictype/ctype-punct-tests: New file.
29418         * modules/unictype/ctype-space-tests: New file.
29419         * modules/unictype/ctype-upper-tests: New file.
29420         * modules/unictype/ctype-xdigit-tests: New file.
29421         * modules/unictype/decimal-digit-tests: New file.
29422         * modules/unictype/digit-tests: New file.
29423         * modules/unictype/mirror-tests: New file.
29424         * modules/unictype/numeric-tests: New file.
29425         * modules/unictype/property-alphabetic-tests: New file.
29426         * modules/unictype/property-ascii-hex-digit-tests: New file.
29427         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29428         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29429         * modules/unictype/property-bidi-block-separator-tests: New file.
29430         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29431         * modules/unictype/property-bidi-common-separator-tests: New file.
29432         * modules/unictype/property-bidi-control-tests: New file.
29433         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29434         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29435         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29436         * modules/unictype/property-bidi-european-digit-tests: New file.
29437         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29438         * modules/unictype/property-bidi-left-to-right-tests: New file.
29439         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29440         * modules/unictype/property-bidi-other-neutral-tests: New file.
29441         * modules/unictype/property-bidi-pdf-tests: New file.
29442         * modules/unictype/property-bidi-segment-separator-tests: New file.
29443         * modules/unictype/property-bidi-whitespace-tests: New file.
29444         * modules/unictype/property-byname-tests: New file.
29445         * modules/unictype/property-combining-tests: New file.
29446         * modules/unictype/property-composite-tests: New file.
29447         * modules/unictype/property-currency-symbol-tests: New file.
29448         * modules/unictype/property-dash-tests: New file.
29449         * modules/unictype/property-decimal-digit-tests: New file.
29450         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29451         * modules/unictype/property-deprecated-tests: New file.
29452         * modules/unictype/property-diacritic-tests: New file.
29453         * modules/unictype/property-extender-tests: New file.
29454         * modules/unictype/property-format-control-tests: New file.
29455         * modules/unictype/property-grapheme-base-tests: New file.
29456         * modules/unictype/property-grapheme-extend-tests: New file.
29457         * modules/unictype/property-grapheme-link-tests: New file.
29458         * modules/unictype/property-hex-digit-tests: New file.
29459         * modules/unictype/property-hyphen-tests: New file.
29460         * modules/unictype/property-id-continue-tests: New file.
29461         * modules/unictype/property-id-start-tests: New file.
29462         * modules/unictype/property-ideographic-tests: New file.
29463         * modules/unictype/property-ids-binary-operator-tests: New file.
29464         * modules/unictype/property-ids-trinary-operator-tests: New file.
29465         * modules/unictype/property-ignorable-control-tests: New file.
29466         * modules/unictype/property-iso-control-tests: New file.
29467         * modules/unictype/property-join-control-tests: New file.
29468         * modules/unictype/property-left-of-pair-tests: New file.
29469         * modules/unictype/property-line-separator-tests: New file.
29470         * modules/unictype/property-logical-order-exception-tests: New file.
29471         * modules/unictype/property-lowercase-tests: New file.
29472         * modules/unictype/property-math-tests: New file.
29473         * modules/unictype/property-non-break-tests: New file.
29474         * modules/unictype/property-not-a-character-tests: New file.
29475         * modules/unictype/property-numeric-tests: New file.
29476         * modules/unictype/property-other-alphabetic-tests: New file.
29477         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29478         * modules/unictype/property-other-grapheme-extend-tests: New file.
29479         * modules/unictype/property-other-id-continue-tests: New file.
29480         * modules/unictype/property-other-id-start-tests: New file.
29481         * modules/unictype/property-other-lowercase-tests: New file.
29482         * modules/unictype/property-other-math-tests: New file.
29483         * modules/unictype/property-other-uppercase-tests: New file.
29484         * modules/unictype/property-paired-punctuation-tests: New file.
29485         * modules/unictype/property-paragraph-separator-tests: New file.
29486         * modules/unictype/property-pattern-syntax-tests: New file.
29487         * modules/unictype/property-pattern-white-space-tests: New file.
29488         * modules/unictype/property-private-use-tests: New file.
29489         * modules/unictype/property-punctuation-tests: New file.
29490         * modules/unictype/property-quotation-mark-tests: New file.
29491         * modules/unictype/property-radical-tests: New file.
29492         * modules/unictype/property-sentence-terminal-tests: New file.
29493         * modules/unictype/property-soft-dotted-tests: New file.
29494         * modules/unictype/property-space-tests: New file.
29495         * modules/unictype/property-terminal-punctuation-tests: New file.
29496         * modules/unictype/property-test-tests: New file.
29497         * modules/unictype/property-titlecase-tests: New file.
29498         * modules/unictype/property-unassigned-code-value-tests: New file.
29499         * modules/unictype/property-unified-ideograph-tests: New file.
29500         * modules/unictype/property-uppercase-tests: New file.
29501         * modules/unictype/property-variation-selector-tests: New file.
29502         * modules/unictype/property-white-space-tests: New file.
29503         * modules/unictype/property-xid-continue-tests: New file.
29504         * modules/unictype/property-xid-start-tests: New file.
29505         * modules/unictype/property-zero-width-tests: New file.
29506         * modules/unictype/scripts-tests: New file.
29507         * modules/unictype/syntax-c-ident-tests: New file.
29508         * modules/unictype/syntax-c-whitespace-tests: New file.
29509         * modules/unictype/syntax-java-ident-tests: New file.
29510         * modules/unictype/syntax-java-whitespace-tests: New file.
29511         * tests/unictype/test-bidi_byname.c: New file.
29512         * tests/unictype/test-bidi_name.c: New file.
29513         * tests/unictype/test-bidi_of.c: New file.
29514         * tests/unictype/test-bidi_test.c: New file.
29515         * tests/unictype/test-block_list.c: New file.
29516         * tests/unictype/test-block_of.c: New file.
29517         * tests/unictype/test-block_test.c: New file.
29518         * tests/unictype/test-categ_and.c: New file.
29519         * tests/unictype/test-categ_and_not.c: New file.
29520         * tests/unictype/test-categ_byname.c: New file.
29521         * tests/unictype/test-categ_name.c: New file.
29522         * tests/unictype/test-categ_none.c: New file.
29523         * tests/unictype/test-categ_of.c: New file.
29524         * tests/unictype/test-categ_or.c: New file.
29525         * tests/unictype/test-categ_test_withtable.c: New file.
29526         * tests/unictype/test-combining.c: New file.
29527         * tests/unictype/test-decdigit.c: New file.
29528         * tests/unictype/test-digit.c: New file.
29529         * tests/unictype/test-mirror.c: New file.
29530         * tests/unictype/test-numeric.c: New file.
29531         * tests/unictype/test-pr_byname.c: New file.
29532         * tests/unictype/test-pr_test.c: New file.
29533         * tests/unictype/test-predicate-part1.h: New file.
29534         * tests/unictype/test-predicate-part2.h: New file.
29535         * tests/unictype/test-scripts.c: New file.
29536         * tests/unictype/test-sy_c_ident.c: New file.
29537         * tests/unictype/test-sy_java_ident.c: New file.
29538
29539         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29540         for Unicode 5.0.0.
29541         * tests/unictype/test-categ_Cc.c: Likewise.
29542         * tests/unictype/test-categ_Cf.c: Likewise.
29543         * tests/unictype/test-categ_Cn.c: Likewise.
29544         * tests/unictype/test-categ_Co.c: Likewise.
29545         * tests/unictype/test-categ_Cs.c: Likewise.
29546         * tests/unictype/test-categ_L.c: Likewise.
29547         * tests/unictype/test-categ_Ll.c: Likewise.
29548         * tests/unictype/test-categ_Lm.c: Likewise.
29549         * tests/unictype/test-categ_Lo.c: Likewise.
29550         * tests/unictype/test-categ_Lt.c: Likewise.
29551         * tests/unictype/test-categ_Lu.c: Likewise.
29552         * tests/unictype/test-categ_M.c: Likewise.
29553         * tests/unictype/test-categ_Mc.c: Likewise.
29554         * tests/unictype/test-categ_Me.c: Likewise.
29555         * tests/unictype/test-categ_Mn.c: Likewise.
29556         * tests/unictype/test-categ_N.c: Likewise.
29557         * tests/unictype/test-categ_Nd.c: Likewise.
29558         * tests/unictype/test-categ_Nl.c: Likewise.
29559         * tests/unictype/test-categ_No.c: Likewise.
29560         * tests/unictype/test-categ_P.c: Likewise.
29561         * tests/unictype/test-categ_Pc.c: Likewise.
29562         * tests/unictype/test-categ_Pd.c: Likewise.
29563         * tests/unictype/test-categ_Pe.c: Likewise.
29564         * tests/unictype/test-categ_Pf.c: Likewise.
29565         * tests/unictype/test-categ_Pi.c: Likewise.
29566         * tests/unictype/test-categ_Po.c: Likewise.
29567         * tests/unictype/test-categ_Ps.c: Likewise.
29568         * tests/unictype/test-categ_S.c: Likewise.
29569         * tests/unictype/test-categ_Sc.c: Likewise.
29570         * tests/unictype/test-categ_Sk.c: Likewise.
29571         * tests/unictype/test-categ_Sm.c: Likewise.
29572         * tests/unictype/test-categ_So.c: Likewise.
29573         * tests/unictype/test-categ_Z.c: Likewise.
29574         * tests/unictype/test-categ_Zl.c: Likewise.
29575         * tests/unictype/test-categ_Zp.c: Likewise.
29576         * tests/unictype/test-categ_Zs.c: Likewise.
29577         * tests/unictype/test-ctype_alnum.c: Likewise.
29578         * tests/unictype/test-ctype_alpha.c: Likewise.
29579         * tests/unictype/test-ctype_blank.c: Likewise.
29580         * tests/unictype/test-ctype_cntrl.c: Likewise.
29581         * tests/unictype/test-ctype_digit.c: Likewise.
29582         * tests/unictype/test-ctype_graph.c: Likewise.
29583         * tests/unictype/test-ctype_lower.c: Likewise.
29584         * tests/unictype/test-ctype_print.c: Likewise.
29585         * tests/unictype/test-ctype_punct.c: Likewise.
29586         * tests/unictype/test-ctype_space.c: Likewise.
29587         * tests/unictype/test-ctype_upper.c: Likewise.
29588         * tests/unictype/test-ctype_xdigit.c: Likewise.
29589         * tests/unictype/test-decdigit.h: Likewise.
29590         * tests/unictype/test-digit.h: Likewise.
29591         * tests/unictype/test-numeric.h: Likewise.
29592         * tests/unictype/test-pr_alphabetic.c: Likewise.
29593         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29594         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29595         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29596         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29597         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29598         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29599         * tests/unictype/test-pr_bidi_control.c: Likewise.
29600         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29601         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29602         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29603         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29604         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29605         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29606         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29607         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29608         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29609         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29610         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29611         * tests/unictype/test-pr_combining.c: Likewise.
29612         * tests/unictype/test-pr_composite.c: Likewise.
29613         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29614         * tests/unictype/test-pr_dash.c: Likewise.
29615         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29616         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29617         * tests/unictype/test-pr_deprecated.c: Likewise.
29618         * tests/unictype/test-pr_diacritic.c: Likewise.
29619         * tests/unictype/test-pr_extender.c: Likewise.
29620         * tests/unictype/test-pr_format_control.c: Likewise.
29621         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29622         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29623         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29624         * tests/unictype/test-pr_hex_digit.c: Likewise.
29625         * tests/unictype/test-pr_hyphen.c: Likewise.
29626         * tests/unictype/test-pr_id_continue.c: Likewise.
29627         * tests/unictype/test-pr_id_start.c: Likewise.
29628         * tests/unictype/test-pr_ideographic.c: Likewise.
29629         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29630         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29631         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29632         * tests/unictype/test-pr_iso_control.c: Likewise.
29633         * tests/unictype/test-pr_join_control.c: Likewise.
29634         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29635         * tests/unictype/test-pr_line_separator.c: Likewise.
29636         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29637         * tests/unictype/test-pr_lowercase.c: Likewise.
29638         * tests/unictype/test-pr_math.c: Likewise.
29639         * tests/unictype/test-pr_non_break.c: Likewise.
29640         * tests/unictype/test-pr_not_a_character.c: Likewise.
29641         * tests/unictype/test-pr_numeric.c: Likewise.
29642         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29643         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29644         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29645         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29646         * tests/unictype/test-pr_other_id_start.c: Likewise.
29647         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29648         * tests/unictype/test-pr_other_math.c: Likewise.
29649         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29650         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29651         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29652         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29653         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29654         * tests/unictype/test-pr_private_use.c: Likewise.
29655         * tests/unictype/test-pr_punctuation.c: Likewise.
29656         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29657         * tests/unictype/test-pr_radical.c: Likewise.
29658         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29659         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29660         * tests/unictype/test-pr_space.c: Likewise.
29661         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29662         * tests/unictype/test-pr_titlecase.c: Likewise.
29663         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29664         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29665         * tests/unictype/test-pr_uppercase.c: Likewise.
29666         * tests/unictype/test-pr_variation_selector.c: Likewise.
29667         * tests/unictype/test-pr_white_space.c: Likewise.
29668         * tests/unictype/test-pr_xid_continue.c: Likewise.
29669         * tests/unictype/test-pr_xid_start.c: Likewise.
29670         * tests/unictype/test-pr_zero_width.c: Likewise.
29671         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29672         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29673
29674 2007-11-12  Bruno Haible  <bruno@clisp.org>
29675
29676         Unicode character classification functions.
29677         * lib/unictype.h: New file.
29678         * modules/unictype/base: New file.
29679         * modules/unictype/category-L: New file.
29680         * modules/unictype/category-Lu: New file.
29681         * modules/unictype/category-Ll: New file.
29682         * modules/unictype/category-Lt: New file.
29683         * modules/unictype/category-Lm: New file.
29684         * modules/unictype/category-Lo: New file.
29685         * modules/unictype/category-M: New file.
29686         * modules/unictype/category-Mn: New file.
29687         * modules/unictype/category-Mc: New file.
29688         * modules/unictype/category-Me: New file.
29689         * modules/unictype/category-N: New file.
29690         * modules/unictype/category-Nd: New file.
29691         * modules/unictype/category-Nl: New file.
29692         * modules/unictype/category-No: New file.
29693         * modules/unictype/category-P: New file.
29694         * modules/unictype/category-Pc: New file.
29695         * modules/unictype/category-Pd: New file.
29696         * modules/unictype/category-Ps: New file.
29697         * modules/unictype/category-Pe: New file.
29698         * modules/unictype/category-Pi: New file.
29699         * modules/unictype/category-Pf: New file.
29700         * modules/unictype/category-Po: New file.
29701         * modules/unictype/category-S: New file.
29702         * modules/unictype/category-Sm: New file.
29703         * modules/unictype/category-Sc: New file.
29704         * modules/unictype/category-Sk: New file.
29705         * modules/unictype/category-So: New file.
29706         * modules/unictype/category-Z: New file.
29707         * modules/unictype/category-Zs: New file.
29708         * modules/unictype/category-Zl: New file.
29709         * modules/unictype/category-Zp: New file.
29710         * modules/unictype/category-C: New file.
29711         * modules/unictype/category-Cc: New file.
29712         * modules/unictype/category-Cf: New file.
29713         * modules/unictype/category-Cs: New file.
29714         * modules/unictype/category-Co: New file.
29715         * modules/unictype/category-Cn: New file.
29716         * modules/unictype/category-or: New file.
29717         * modules/unictype/category-of: New file.
29718         * modules/unictype/category-test: New file.
29719         * modules/unictype/category-test-withtable: New file.
29720         * modules/unictype/category-byname: New file.
29721         * modules/unictype/category-none: New file.
29722         * modules/unictype/category-and: New file.
29723         * modules/unictype/category-and-not: New file.
29724         * modules/unictype/category-name: New file.
29725         * modules/unictype/combining-class: New file.
29726         * modules/unictype/category-all: New file.
29727         * modules/unictype/bidicategory-all: New file.
29728         * modules/unictype/bidicategory-byname: New file.
29729         * modules/unictype/bidicategory-name: New file.
29730         * modules/unictype/bidicategory-of: New file.
29731         * modules/unictype/bidicategory-test: New file.
29732         * modules/unictype/decimal-digit: New file.
29733         * modules/unictype/digit: New file.
29734         * modules/unictype/numeric: New file.
29735         * modules/unictype/mirror: New file.
29736         * modules/unictype/property-white-space: New file.
29737         * modules/unictype/property-alphabetic: New file.
29738         * modules/unictype/property-other-alphabetic: New file.
29739         * modules/unictype/property-not-a-character: New file.
29740         * modules/unictype/property-default-ignorable-code-point: New file.
29741         * modules/unictype/property-other-default-ignorable-code-point: New
29742         file.
29743         * modules/unictype/property-deprecated: New file.
29744         * modules/unictype/property-logical-order-exception: New file.
29745         * modules/unictype/property-variation-selector: New file.
29746         * modules/unictype/property-private-use: New file.
29747         * modules/unictype/property-unassigned-code-value: New file.
29748         * modules/unictype/property-uppercase: New file.
29749         * modules/unictype/property-other-uppercase: New file.
29750         * modules/unictype/property-lowercase: New file.
29751         * modules/unictype/property-other-lowercase: New file.
29752         * modules/unictype/property-titlecase: New file.
29753         * modules/unictype/property-soft-dotted: New file.
29754         * modules/unictype/property-id-start: New file.
29755         * modules/unictype/property-other-id-start: New file.
29756         * modules/unictype/property-id-continue: New file.
29757         * modules/unictype/property-other-id-continue: New file.
29758         * modules/unictype/property-xid-start: New file.
29759         * modules/unictype/property-xid-continue: New file.
29760         * modules/unictype/property-pattern-white-space: New file.
29761         * modules/unictype/property-pattern-syntax: New file.
29762         * modules/unictype/property-join-control: New file.
29763         * modules/unictype/property-grapheme-base: New file.
29764         * modules/unictype/property-grapheme-extend: New file.
29765         * modules/unictype/property-other-grapheme-extend: New file.
29766         * modules/unictype/property-grapheme-link: New file.
29767         * modules/unictype/property-bidi-control: New file.
29768         * modules/unictype/property-bidi-left-to-right: New file.
29769         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29770         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29771         * modules/unictype/property-bidi-european-digit: New file.
29772         * modules/unictype/property-bidi-eur-num-separator: New file.
29773         * modules/unictype/property-bidi-eur-num-terminator: New file.
29774         * modules/unictype/property-bidi-arabic-digit: New file.
29775         * modules/unictype/property-bidi-common-separator: New file.
29776         * modules/unictype/property-bidi-block-separator: New file.
29777         * modules/unictype/property-bidi-segment-separator: New file.
29778         * modules/unictype/property-bidi-whitespace: New file.
29779         * modules/unictype/property-bidi-non-spacing-mark: New file.
29780         * modules/unictype/property-bidi-boundary-neutral: New file.
29781         * modules/unictype/property-bidi-pdf: New file.
29782         * modules/unictype/property-bidi-embedding-or-override: New file.
29783         * modules/unictype/property-bidi-other-neutral: New file.
29784         * modules/unictype/property-hex-digit: New file.
29785         * modules/unictype/property-ascii-hex-digit: New file.
29786         * modules/unictype/property-ideographic: New file.
29787         * modules/unictype/property-unified-ideograph: New file.
29788         * modules/unictype/property-radical: New file.
29789         * modules/unictype/property-ids-binary-operator: New file.
29790         * modules/unictype/property-ids-trinary-operator: New file.
29791         * modules/unictype/property-zero-width: New file.
29792         * modules/unictype/property-space: New file.
29793         * modules/unictype/property-non-break: New file.
29794         * modules/unictype/property-iso-control: New file.
29795         * modules/unictype/property-format-control: New file.
29796         * modules/unictype/property-dash: New file.
29797         * modules/unictype/property-hyphen: New file.
29798         * modules/unictype/property-punctuation: New file.
29799         * modules/unictype/property-line-separator: New file.
29800         * modules/unictype/property-paragraph-separator: New file.
29801         * modules/unictype/property-quotation-mark: New file.
29802         * modules/unictype/property-sentence-terminal: New file.
29803         * modules/unictype/property-terminal-punctuation: New file.
29804         * modules/unictype/property-currency-symbol: New file.
29805         * modules/unictype/property-math: New file.
29806         * modules/unictype/property-other-math: New file.
29807         * modules/unictype/property-paired-punctuation: New file.
29808         * modules/unictype/property-left-of-pair: New file.
29809         * modules/unictype/property-combining: New file.
29810         * modules/unictype/property-composite: New file.
29811         * modules/unictype/property-decimal-digit: New file.
29812         * modules/unictype/property-numeric: New file.
29813         * modules/unictype/property-diacritic: New file.
29814         * modules/unictype/property-extender: New file.
29815         * modules/unictype/property-ignorable-control: New file.
29816         * modules/unictype/property-test: New file.
29817         * modules/unictype/property-byname: New file.
29818         * modules/unictype/property-all: New file.
29819         * modules/unictype/scripts: New file.
29820         * modules/unictype/scripts-all: New file.
29821         * modules/unictype/block-of: New file.
29822         * modules/unictype/block-test: New file.
29823         * modules/unictype/block-list: New file.
29824         * modules/unictype/block-all: New file.
29825         * modules/unictype/syntax-c-whitespace: New file.
29826         * modules/unictype/syntax-java-whitespace: New file.
29827         * modules/unictype/syntax-c-ident: New file.
29828         * modules/unictype/syntax-java-ident: New file.
29829         * modules/unictype/ctype-alnum: New file.
29830         * modules/unictype/ctype-alpha: New file.
29831         * modules/unictype/ctype-cntrl: New file.
29832         * modules/unictype/ctype-digit: New file.
29833         * modules/unictype/ctype-graph: New file.
29834         * modules/unictype/ctype-lower: New file.
29835         * modules/unictype/ctype-print: New file.
29836         * modules/unictype/ctype-punct: New file.
29837         * modules/unictype/ctype-space: New file.
29838         * modules/unictype/ctype-upper: New file.
29839         * modules/unictype/ctype-xdigit: New file.
29840         * modules/unictype/ctype-blank: New file.
29841         * lib/unictype/bidi_byname.c: New file.
29842         * lib/unictype/bidi_name.c: New file.
29843         * lib/unictype/bidi_of.c: New file.
29844         * lib/unictype/bidi_test.c: New file.
29845         * lib/unictype/bitmap.h: New file.
29846         * lib/unictype/block_test.c: New file.
29847         * lib/unictype/blocks.c: New file.
29848         * lib/unictype/categ_C.c: New file.
29849         * lib/unictype/categ_Cc.c: New file.
29850         * lib/unictype/categ_Cf.c: New file.
29851         * lib/unictype/categ_Cn.c: New file.
29852         * lib/unictype/categ_Co.c: New file.
29853         * lib/unictype/categ_Cs.c: New file.
29854         * lib/unictype/categ_L.c: New file.
29855         * lib/unictype/categ_Ll.c: New file.
29856         * lib/unictype/categ_Lm.c: New file.
29857         * lib/unictype/categ_Lo.c: New file.
29858         * lib/unictype/categ_Lt.c: New file.
29859         * lib/unictype/categ_Lu.c: New file.
29860         * lib/unictype/categ_M.c: New file.
29861         * lib/unictype/categ_Mc.c: New file.
29862         * lib/unictype/categ_Me.c: New file.
29863         * lib/unictype/categ_Mn.c: New file.
29864         * lib/unictype/categ_N.c: New file.
29865         * lib/unictype/categ_Nd.c: New file.
29866         * lib/unictype/categ_Nl.c: New file.
29867         * lib/unictype/categ_No.c: New file.
29868         * lib/unictype/categ_P.c: New file.
29869         * lib/unictype/categ_Pc.c: New file.
29870         * lib/unictype/categ_Pd.c: New file.
29871         * lib/unictype/categ_Pe.c: New file.
29872         * lib/unictype/categ_Pf.c: New file.
29873         * lib/unictype/categ_Pi.c: New file.
29874         * lib/unictype/categ_Po.c: New file.
29875         * lib/unictype/categ_Ps.c: New file.
29876         * lib/unictype/categ_S.c: New file.
29877         * lib/unictype/categ_Sc.c: New file.
29878         * lib/unictype/categ_Sk.c: New file.
29879         * lib/unictype/categ_Sm.c: New file.
29880         * lib/unictype/categ_So.c: New file.
29881         * lib/unictype/categ_Z.c: New file.
29882         * lib/unictype/categ_Zl.c: New file.
29883         * lib/unictype/categ_Zp.c: New file.
29884         * lib/unictype/categ_Zs.c: New file.
29885         * lib/unictype/categ_and.c: New file.
29886         * lib/unictype/categ_and_not.c: New file.
29887         * lib/unictype/categ_byname.c: New file.
29888         * lib/unictype/categ_name.c: New file.
29889         * lib/unictype/categ_none.c: New file.
29890         * lib/unictype/categ_of.c: New file.
29891         * lib/unictype/categ_or.c: New file.
29892         * lib/unictype/categ_test.c: New file.
29893         * lib/unictype/combining.c: New file.
29894         * lib/unictype/ctype_alnum.c: New file.
29895         * lib/unictype/ctype_alpha.c: New file.
29896         * lib/unictype/ctype_blank.c: New file.
29897         * lib/unictype/ctype_cntrl.c: New file.
29898         * lib/unictype/ctype_digit.c: New file.
29899         * lib/unictype/ctype_graph.c: New file.
29900         * lib/unictype/ctype_lower.c: New file.
29901         * lib/unictype/ctype_print.c: New file.
29902         * lib/unictype/ctype_punct.c: New file.
29903         * lib/unictype/ctype_space.c: New file.
29904         * lib/unictype/ctype_upper.c: New file.
29905         * lib/unictype/ctype_xdigit.c: New file.
29906         * lib/unictype/decdigit.c: New file.
29907         * lib/unictype/digit.c: New file.
29908         * lib/unictype/identsyntaxmap.h: New file.
29909         * lib/unictype/mirror.c: New file.
29910         * lib/unictype/numeric.c: New file.
29911         * lib/unictype/pr_alphabetic.c: New file.
29912         * lib/unictype/pr_ascii_hex_digit.c: New file.
29913         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29914         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29915         * lib/unictype/pr_bidi_block_separator.c: New file.
29916         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29917         * lib/unictype/pr_bidi_common_separator.c: New file.
29918         * lib/unictype/pr_bidi_control.c: New file.
29919         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29920         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29921         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29922         * lib/unictype/pr_bidi_european_digit.c: New file.
29923         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29924         * lib/unictype/pr_bidi_left_to_right.c: New file.
29925         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29926         * lib/unictype/pr_bidi_other_neutral.c: New file.
29927         * lib/unictype/pr_bidi_pdf.c: New file.
29928         * lib/unictype/pr_bidi_segment_separator.c: New file.
29929         * lib/unictype/pr_bidi_whitespace.c: New file.
29930         * lib/unictype/pr_byname.c: New file.
29931         * lib/unictype/pr_byname.gperf: New file.
29932         * lib/unictype/pr_combining.c: New file.
29933         * lib/unictype/pr_composite.c: New file.
29934         * lib/unictype/pr_currency_symbol.c: New file.
29935         * lib/unictype/pr_dash.c: New file.
29936         * lib/unictype/pr_decimal_digit.c: New file.
29937         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29938         * lib/unictype/pr_deprecated.c: New file.
29939         * lib/unictype/pr_diacritic.c: New file.
29940         * lib/unictype/pr_extender.c: New file.
29941         * lib/unictype/pr_format_control.c: New file.
29942         * lib/unictype/pr_grapheme_base.c: New file.
29943         * lib/unictype/pr_grapheme_extend.c: New file.
29944         * lib/unictype/pr_grapheme_link.c: New file.
29945         * lib/unictype/pr_hex_digit.c: New file.
29946         * lib/unictype/pr_hyphen.c: New file.
29947         * lib/unictype/pr_id_continue.c: New file.
29948         * lib/unictype/pr_id_start.c: New file.
29949         * lib/unictype/pr_ideographic.c: New file.
29950         * lib/unictype/pr_ids_binary_operator.c: New file.
29951         * lib/unictype/pr_ids_trinary_operator.c: New file.
29952         * lib/unictype/pr_ignorable_control.c: New file.
29953         * lib/unictype/pr_iso_control.c: New file.
29954         * lib/unictype/pr_join_control.c: New file.
29955         * lib/unictype/pr_left_of_pair.c: New file.
29956         * lib/unictype/pr_line_separator.c: New file.
29957         * lib/unictype/pr_logical_order_exception.c: New file.
29958         * lib/unictype/pr_lowercase.c: New file.
29959         * lib/unictype/pr_math.c: New file.
29960         * lib/unictype/pr_non_break.c: New file.
29961         * lib/unictype/pr_not_a_character.c: New file.
29962         * lib/unictype/pr_numeric.c: New file.
29963         * lib/unictype/pr_other_alphabetic.c: New file.
29964         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29965         * lib/unictype/pr_other_grapheme_extend.c: New file.
29966         * lib/unictype/pr_other_id_continue.c: New file.
29967         * lib/unictype/pr_other_id_start.c: New file.
29968         * lib/unictype/pr_other_lowercase.c: New file.
29969         * lib/unictype/pr_other_math.c: New file.
29970         * lib/unictype/pr_other_uppercase.c: New file.
29971         * lib/unictype/pr_paired_punctuation.c: New file.
29972         * lib/unictype/pr_paragraph_separator.c: New file.
29973         * lib/unictype/pr_pattern_syntax.c: New file.
29974         * lib/unictype/pr_pattern_white_space.c: New file.
29975         * lib/unictype/pr_private_use.c: New file.
29976         * lib/unictype/pr_punctuation.c: New file.
29977         * lib/unictype/pr_quotation_mark.c: New file.
29978         * lib/unictype/pr_radical.c: New file.
29979         * lib/unictype/pr_sentence_terminal.c: New file.
29980         * lib/unictype/pr_soft_dotted.c: New file.
29981         * lib/unictype/pr_space.c: New file.
29982         * lib/unictype/pr_terminal_punctuation.c: New file.
29983         * lib/unictype/pr_test.c: New file.
29984         * lib/unictype/pr_titlecase.c: New file.
29985         * lib/unictype/pr_unassigned_code_value.c: New file.
29986         * lib/unictype/pr_unified_ideograph.c: New file.
29987         * lib/unictype/pr_uppercase.c: New file.
29988         * lib/unictype/pr_variation_selector.c: New file.
29989         * lib/unictype/pr_white_space.c: New file.
29990         * lib/unictype/pr_xid_continue.c: New file.
29991         * lib/unictype/pr_xid_start.c: New file.
29992         * lib/unictype/pr_zero_width.c: New file.
29993         * lib/unictype/scripts.c: New file.
29994         * lib/unictype/sy_c_ident.c: New file.
29995         * lib/unictype/sy_c_whitespace.c: New file.
29996         * lib/unictype/sy_java_ident.c: New file.
29997         * lib/unictype/sy_java_whitespace.c: New file.
29998
29999         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
30000         Unicode 5.0.0.
30001         * lib/unictype/blocks.h: Likewise.
30002         * lib/unictype/categ_C.h: Likewise.
30003         * lib/unictype/categ_Cc.h: Likewise.
30004         * lib/unictype/categ_Cf.h: Likewise.
30005         * lib/unictype/categ_Cn.h: Likewise.
30006         * lib/unictype/categ_Co.h: Likewise.
30007         * lib/unictype/categ_Cs.h: Likewise.
30008         * lib/unictype/categ_L.h: Likewise.
30009         * lib/unictype/categ_Ll.h: Likewise.
30010         * lib/unictype/categ_Lm.h: Likewise.
30011         * lib/unictype/categ_Lo.h: Likewise.
30012         * lib/unictype/categ_Lt.h: Likewise.
30013         * lib/unictype/categ_Lu.h: Likewise.
30014         * lib/unictype/categ_M.h: Likewise.
30015         * lib/unictype/categ_Mc.h: Likewise.
30016         * lib/unictype/categ_Me.h: Likewise.
30017         * lib/unictype/categ_Mn.h: Likewise.
30018         * lib/unictype/categ_N.h: Likewise.
30019         * lib/unictype/categ_Nd.h: Likewise.
30020         * lib/unictype/categ_Nl.h: Likewise.
30021         * lib/unictype/categ_No.h: Likewise.
30022         * lib/unictype/categ_P.h: Likewise.
30023         * lib/unictype/categ_Pc.h: Likewise.
30024         * lib/unictype/categ_Pd.h: Likewise.
30025         * lib/unictype/categ_Pe.h: Likewise.
30026         * lib/unictype/categ_Pf.h: Likewise.
30027         * lib/unictype/categ_Pi.h: Likewise.
30028         * lib/unictype/categ_Po.h: Likewise.
30029         * lib/unictype/categ_Ps.h: Likewise.
30030         * lib/unictype/categ_S.h: Likewise.
30031         * lib/unictype/categ_Sc.h: Likewise.
30032         * lib/unictype/categ_Sk.h: Likewise.
30033         * lib/unictype/categ_Sm.h: Likewise.
30034         * lib/unictype/categ_So.h: Likewise.
30035         * lib/unictype/categ_Z.h: Likewise.
30036         * lib/unictype/categ_Zl.h: Likewise.
30037         * lib/unictype/categ_Zp.h: Likewise.
30038         * lib/unictype/categ_Zs.h: Likewise.
30039         * lib/unictype/categ_of.h: Likewise.
30040         * lib/unictype/combining.h: Likewise.
30041         * lib/unictype/ctype_alnum.h: Likewise.
30042         * lib/unictype/ctype_alpha.h: Likewise.
30043         * lib/unictype/ctype_blank.h: Likewise.
30044         * lib/unictype/ctype_cntrl.h: Likewise.
30045         * lib/unictype/ctype_digit.h: Likewise.
30046         * lib/unictype/ctype_graph.h: Likewise.
30047         * lib/unictype/ctype_lower.h: Likewise.
30048         * lib/unictype/ctype_print.h: Likewise.
30049         * lib/unictype/ctype_punct.h: Likewise.
30050         * lib/unictype/ctype_space.h: Likewise.
30051         * lib/unictype/ctype_upper.h: Likewise.
30052         * lib/unictype/ctype_xdigit.h: Likewise.
30053         * lib/unictype/decdigit.h: Likewise.
30054         * lib/unictype/digit.h: Likewise.
30055         * lib/unictype/mirror.h: Likewise.
30056         * lib/unictype/numeric.h: Likewise.
30057         * lib/unictype/pr_alphabetic.h: Likewise.
30058         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
30059         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
30060         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
30061         * lib/unictype/pr_bidi_block_separator.h: Likewise.
30062         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
30063         * lib/unictype/pr_bidi_common_separator.h: Likewise.
30064         * lib/unictype/pr_bidi_control.h: Likewise.
30065         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
30066         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
30067         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
30068         * lib/unictype/pr_bidi_european_digit.h: Likewise.
30069         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
30070         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
30071         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
30072         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
30073         * lib/unictype/pr_bidi_pdf.h: Likewise.
30074         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
30075         * lib/unictype/pr_bidi_whitespace.h: Likewise.
30076         * lib/unictype/pr_combining.h: Likewise.
30077         * lib/unictype/pr_composite.h: Likewise.
30078         * lib/unictype/pr_currency_symbol.h: Likewise.
30079         * lib/unictype/pr_dash.h: Likewise.
30080         * lib/unictype/pr_decimal_digit.h: Likewise.
30081         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
30082         * lib/unictype/pr_deprecated.h: Likewise.
30083         * lib/unictype/pr_diacritic.h: Likewise.
30084         * lib/unictype/pr_extender.h: Likewise.
30085         * lib/unictype/pr_format_control.h: Likewise.
30086         * lib/unictype/pr_grapheme_base.h: Likewise.
30087         * lib/unictype/pr_grapheme_extend.h: Likewise.
30088         * lib/unictype/pr_grapheme_link.h: Likewise.
30089         * lib/unictype/pr_hex_digit.h: Likewise.
30090         * lib/unictype/pr_hyphen.h: Likewise.
30091         * lib/unictype/pr_id_continue.h: Likewise.
30092         * lib/unictype/pr_id_start.h: Likewise.
30093         * lib/unictype/pr_ideographic.h: Likewise.
30094         * lib/unictype/pr_ids_binary_operator.h: Likewise.
30095         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
30096         * lib/unictype/pr_ignorable_control.h: Likewise.
30097         * lib/unictype/pr_iso_control.h: Likewise.
30098         * lib/unictype/pr_join_control.h: Likewise.
30099         * lib/unictype/pr_left_of_pair.h: Likewise.
30100         * lib/unictype/pr_line_separator.h: Likewise.
30101         * lib/unictype/pr_logical_order_exception.h: Likewise.
30102         * lib/unictype/pr_lowercase.h: Likewise.
30103         * lib/unictype/pr_math.h: Likewise.
30104         * lib/unictype/pr_non_break.h: Likewise.
30105         * lib/unictype/pr_not_a_character.h: Likewise.
30106         * lib/unictype/pr_numeric.h: Likewise.
30107         * lib/unictype/pr_other_alphabetic.h: Likewise.
30108         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
30109         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
30110         * lib/unictype/pr_other_id_continue.h: Likewise.
30111         * lib/unictype/pr_other_id_start.h: Likewise.
30112         * lib/unictype/pr_other_lowercase.h: Likewise.
30113         * lib/unictype/pr_other_math.h: Likewise.
30114         * lib/unictype/pr_other_uppercase.h: Likewise.
30115         * lib/unictype/pr_paired_punctuation.h: Likewise.
30116         * lib/unictype/pr_paragraph_separator.h: Likewise.
30117         * lib/unictype/pr_pattern_syntax.h: Likewise.
30118         * lib/unictype/pr_pattern_white_space.h: Likewise.
30119         * lib/unictype/pr_private_use.h: Likewise.
30120         * lib/unictype/pr_punctuation.h: Likewise.
30121         * lib/unictype/pr_quotation_mark.h: Likewise.
30122         * lib/unictype/pr_radical.h: Likewise.
30123         * lib/unictype/pr_sentence_terminal.h: Likewise.
30124         * lib/unictype/pr_soft_dotted.h: Likewise.
30125         * lib/unictype/pr_space.h: Likewise.
30126         * lib/unictype/pr_terminal_punctuation.h: Likewise.
30127         * lib/unictype/pr_titlecase.h: Likewise.
30128         * lib/unictype/pr_unassigned_code_value.h: Likewise.
30129         * lib/unictype/pr_unified_ideograph.h: Likewise.
30130         * lib/unictype/pr_uppercase.h: Likewise.
30131         * lib/unictype/pr_variation_selector.h: Likewise.
30132         * lib/unictype/pr_white_space.h: Likewise.
30133         * lib/unictype/pr_xid_continue.h: Likewise.
30134         * lib/unictype/pr_xid_start.h: Likewise.
30135         * lib/unictype/pr_zero_width.h: Likewise.
30136         * lib/unictype/scripts.h: Likewise.
30137         * lib/unictype/scripts_byname.gperf: Likewise.
30138         * lib/unictype/sy_c_ident.h: Likewise.
30139         * lib/unictype/sy_c_whitespace.h: Likewise.
30140         * lib/unictype/sy_java_ident.h: Likewise.
30141         * lib/unictype/sy_java_whitespace.h: Likewise.
30142
30143         * lib/unictype/Makefile: New file.
30144         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
30145         glibc.
30146         * lib/unictype/3level.h: New file, copied from glibc.
30147         * lib/unictype/3levelbit.h: New file.
30148
30149 2007-11-11  Bruno Haible  <bruno@clisp.org>
30150
30151         * modules/gperf: New file.
30152         * modules/iconv_open (Depends-on): Add it.
30153         (Makefile.am): Remove the GPERF definition.
30154
30155 2007-11-11  Bruno Haible  <bruno@clisp.org>
30156
30157         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
30158         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
30159
30160 2007-11-11  Bruno Haible  <bruno@clisp.org>
30161
30162         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
30163         (usage): Remove function.
30164
30165 2007-11-11  Bruno Haible  <bruno@clisp.org>
30166
30167         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
30168         gl_FUNC_CEILF_LIBS.
30169         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
30170         gl_FUNC_CEIL_LIBS.
30171         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
30172         gl_FUNC_CEILL_LIBS.
30173         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
30174         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
30175         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
30176
30177 2007-11-11  Bruno Haible  <bruno@clisp.org>
30178
30179         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
30180         roundf were declared but do not exist on functions.
30181         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
30182         roundl were declared but do not exist on functions.
30183         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
30184         HAVE_FLOORL_AND_CEILL, respectively.
30185         Needed for Sun C on Solaris 10.
30186
30187 2007-11-11  Bruno Haible  <bruno@clisp.org>
30188
30189         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
30190         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
30191         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
30192         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
30193         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
30194         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
30195         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
30196         HAVE_DECL_ROUNDF.
30197         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
30198         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
30199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
30200         of HAVE_DECL_ROUND*.
30201         * modules/math (Makefile.am): Update.
30202
30203 2007-11-10  Bruno Haible  <bruno@clisp.org>
30204
30205         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
30206         ptrdiff_t as m4/intl.m4.
30207
30208 2007-11-10  Jim Meyering  <meyering@redhat.com>
30209
30210         Avoid link failure for the argmatch test.
30211         * tests/test-argmatch.c (usage): Define function to avoid a link
30212         failure: argmatch_die requires a usage function.
30213
30214 2007-11-09  Bruno Haible  <bruno@clisp.org>
30215
30216         * doc/functions/snprintf.texi: Mention BeOS deficiency.
30217         * doc/functions/vsnprintf.texi: Likewise.
30218         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
30219         with a size argument < 2.
30220
30221 2007-11-09  Bruno Haible  <bruno@clisp.org>
30222
30223         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
30224         buffer. Fixes an inefficiency introduced on 2007-11-03.
30225
30226 2007-11-09  Bruno Haible  <bruno@clisp.org>
30227
30228         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
30229         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
30230
30231 2007-11-08  Jim Meyering  <meyering@redhat.com>
30232
30233         Change cache variable name prefix "jm_" to "gl_" everywhere.
30234         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
30235         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
30236         * m4/uptime.m4: s/gl_/jm_/
30237
30238 2007-11-07  Bruno Haible  <bruno@clisp.org>
30239
30240         Update to GNU gettext 0.17.
30241         * m4/intl.m4: Update to GNU gettext 0.17.
30242         * m4/po.m4: Likewise.
30243         * modules/gettext (Files): Remove m4/ulonglong.m4.
30244         (configure.ac): Require gettext infrastructure from version 0.17.
30245
30246 2007-11-06  Bruno Haible  <bruno@clisp.org>
30247
30248         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
30249         symbolic values are not defined in a public header.
30250         * lib/freadable.c (freadable) [QNX]: Likewise.
30251         * lib/freadahead.c (freadahead) [QNX]: Likewise.
30252         * lib/freading.c (freading) [QNX]: Likewise.
30253         * lib/fseterr.c (fseterr) [QNX]: Likewise.
30254         * lib/fwritable.c (fwritable) [QNX]: Likewise.
30255         * lib/fwriting.c (fwriting) [QNX]: Likewise.
30256         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
30257         Reported by Alain Magloire.
30258
30259         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
30260
30261 2007-11-05  Bruno Haible  <bruno@clisp.org>
30262
30263         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
30264         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
30265         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
30266         Reported by Eric Blake.
30267
30268 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30269             Bruno Haible  <bruno@clisp.org>
30270
30271         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
30272         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
30273         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
30274         (malloc): Undefine also before including <stdlib.h>.
30275         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
30276         Needed on OSF/1 4.0.
30277
30278 2007-11-05  Jim Meyering  <meyering@redhat.com>
30279
30280         git-version-gen: sync from coreutils.
30281         * build-aux/git-version-gen: Add comments.
30282         Change the first '-' to '.' in the snapshot version string,
30283         e.g., 6.9-377-08144 -> 6.9.377-08144
30284         Remove first parameter.
30285         Don't declare a version "-dirty" merely because a time
30286         stamp has changed.
30287
30288 2007-11-04  Bruno Haible  <bruno@clisp.org>
30289
30290         * lib/lock.h: Protect all macro definitions containing an 'if'
30291         statement through a "do { ... } while (0)".
30292         * lib/tls.h: Likewise.
30293
30294 2007-11-04  Bruno Haible  <bruno@clisp.org>
30295
30296         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
30297
30298 2007-11-04  Bruno Haible  <bruno@clisp.org>
30299
30300         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
30301         * modules/fprintf-posix (Depends-on): Add nocrash.
30302         * modules/snprintf-posix (Depends-on): Likewise.
30303         * modules/sprintf-posix (Depends-on): Likewise.
30304         * modules/vasnprintf-posix (Depends-on): Likewise.
30305         * modules/vasprintf-posix (Depends-on): Likewise.
30306         * modules/vfprintf-posix (Depends-on): Likewise.
30307         * modules/vsnprintf-posix (Depends-on): Likewise.
30308         * modules/vsprintf-posix (Depends-on): Likewise.
30309         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30310         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30311         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30312         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30313         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30314         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30315         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30316
30317 2007-11-04  Bruno Haible  <bruno@clisp.org>
30318
30319         * modules/nocrash: New file.
30320         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
30321         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
30322
30323 2007-11-04  Bruno Haible  <bruno@clisp.org>
30324
30325         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
30326         precision handling.
30327         * tests/test-vasprintf-posix.c (test_function): Likewise.
30328         * tests/test-snprintf-posix.h (test_function): Likewise.
30329         * tests/test-sprintf-posix.h (test_function): Likewise.
30330
30331         Fix *printf behaviour for large precisions on mingw and BeOS.
30332         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30333         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30334         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30335         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30336         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30337         gl_PRINTF_PRECISION and test its result. Invoke
30338         gl_PREREQ_VASNPRINTF_PRECISION.
30339         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30340         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30343         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30344         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30346         * doc/functions/fprintf.texi: Update.
30347         * doc/functions/printf.texi: Update.
30348         * doc/functions/snprintf.texi: Update.
30349         * doc/functions/sprintf.texi: Update.
30350         * doc/functions/vfprintf.texi: Update.
30351         * doc/functions/vprintf.texi: Update.
30352         * doc/functions/vsnprintf.texi: Update.
30353         * doc/functions/vsprintf.texi: Update.
30354
30355 2007-11-04  Bruno Haible  <bruno@clisp.org>
30356
30357         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30358
30359 2007-11-04  Bruno Haible  <bruno@clisp.org>
30360
30361         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30362         Reported by Sylvain Beucler <beuc@gnu.org>.
30363
30364 2007-11-03  Bruno Haible  <bruno@clisp.org>
30365
30366         * tests/test-fprintf-posix2.sh: New file.
30367         * tests/test-fprintf-posix2.c: New file.
30368         * modules/fprintf-posix-tests (Files): Add them.
30369         (TESTS): Add test-fprintf-posix2.sh.
30370         (configure.ac): Check for getrlimit and setrlimit.
30371         (check_PROGRAMS): Add test-fprintf-posix2.
30372
30373         * tests/test-printf-posix2.sh: New file.
30374         * tests/test-printf-posix2.c: New file.
30375         * modules/printf-posix-tests (Files): Add them.
30376         (TESTS): Add test-printf-posix2.sh.
30377         (configure.ac): Check for getrlimit and setrlimit.
30378         (check_PROGRAMS): Add test-printf-posix2.
30379
30380         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30381         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30382         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30383         (decode_double): New function, copied from decode_long_double.
30384         (scale10_round_decimal_decoded): New function, extracted from
30385         scale10_round_decimal_long_double.
30386         (scale10_round_decimal_long_double): Use it.
30387         (scale10_round_decimal_double): New function.
30388         (floorlog10): New function.
30389         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30390         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30391         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30392         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30393         gl_PRINTF_ENOMEM and test its result. Invoke
30394         gl_PREREQ_VASNPRINTF_ENOMEM.
30395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30402         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30403         * modules/snprintf-posix (Depends-on): Likewise.
30404         * modules/sprintf-posix (Depends-on): Likewise.
30405         * modules/vasnprintf-posix (Depends-on): Likewise.
30406         * modules/vasprintf-posix (Depends-on): Likewise.
30407         * modules/vfprintf-posix (Depends-on): Likewise.
30408         * modules/vsnprintf-posix (Depends-on): Likewise.
30409         * modules/vsprintf-posix (Depends-on): Likewise.
30410         * doc/functions/fprintf.texi: Update.
30411         * doc/functions/printf.texi: Update.
30412         * doc/functions/snprintf.texi: Update.
30413         * doc/functions/sprintf.texi: Update.
30414         * doc/functions/vfprintf.texi: Update.
30415         * doc/functions/vprintf.texi: Update.
30416         * doc/functions/vsnprintf.texi: Update.
30417         * doc/functions/vsprintf.texi: Update.
30418
30419 2007-11-03  Bruno Haible  <bruno@clisp.org>
30420
30421         * modules/frexp-nolibm-tests: New file.
30422
30423         * modules/frexp-nolibm: New file.
30424         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30425
30426 2007-11-03  Bruno Haible  <bruno@clisp.org>
30427
30428         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30429         value is C99 compliant.
30430         Needed for OSF/1 5.1.
30431
30432 2007-11-03  Bruno Haible  <bruno@clisp.org>
30433
30434         Fix out-of-memory handling of vasnprintf.
30435         * lib/printf-parse.c: Include <errno.h>.
30436         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30437         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30438         is already set.
30439
30440 2007-11-02  Eric Blake  <ebb9@byu.net>
30441
30442         Fix tests on cygwin.
30443         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30444
30445 2007-11-01  Bruno Haible  <bruno@clisp.org>
30446
30447         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30448         warning.
30449         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30450         needed for POSIX compatibility.
30451
30452 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30453
30454         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30455         for compatibility with GNU.
30456
30457 2007-11-01  Bruno Haible  <bruno@clisp.org>
30458
30459         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30460         (putenv): Renamed from rpl_putenv. Change argument type from
30461         'const char *' to 'char *'.
30462         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30463         of defining putenv in config.h, just set REPLACE_PUTENV.
30464         * modules/putenv (Depends-on): Add stdlib.
30465         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30466         (Include): Use <stdlib.h>.
30467         * lib/stdlib.in.h (putenv): New declaration.
30468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30469         REPLACE_PUTENV.
30470         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30471         REPLACE_PUTENV.
30472         Needed for MacOS X 10.5.0.
30473         Reported by Peter O'Gorman <peter@pogma.com>.
30474
30475 2007-11-01  Jim Meyering  <meyering@redhat.com>
30476
30477         Treat an empty date string exactly like "0".
30478         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30479         if the remaining date string (to be parsed) is empty, use "0".
30480         Reported by Mischa Molhoek and discussed in this thread:
30481         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30482
30483 2007-10-31  Bruno Haible  <bruno@clisp.org>
30484
30485         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30486         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30487         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30488         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30489         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30490         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30491
30492 2007-10-31  Bruno Haible  <bruno@clisp.org>
30493
30494         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30495         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30496         (AC_TYPE_LONG_LONG_INT): Use it.
30497         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30498         it as well.
30499         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30500         to m4/longlong.m4.
30501         * modules/stdint (Files): Remove m4/ulonglong.m4.
30502         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30503         m4/ulonglong.m4.
30504         * modules/strtoumax (Files): Likewise.
30505
30506 2007-10-30  Bruno Haible  <bruno@clisp.org>
30507
30508         * modules/xvasprintf-posix: New file.
30509         Suggested by Eric Blake.
30510
30511 2007-10-30  Bruno Haible  <bruno@clisp.org>
30512
30513         * modules/xprintf-posix-tests: New file.
30514         * tests/test-xprintf-posix.sh: New file.
30515         * tests/test-xprintf-posix.c: New file.
30516         * tests/test-xfprintf-posix.c: New file.
30517
30518         * modules/xprintf-posix: New file.
30519
30520 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30521
30522         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30523         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30524         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30525
30526 2007-10-29  Bruno Haible  <bruno@clisp.org>
30527
30528         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30529         contain the special marker '_cv_'.
30530         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30531         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30532         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30533         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30534         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30535         Reported by Ralf Wildenhues.
30536
30537 2007-10-29  Bruno Haible  <bruno@clisp.org>
30538
30539         * gnulib-tool (func_import): When --lgpl is not specified, set
30540         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30541         GPLv3.
30542         Reported by Simon Josefsson.
30543
30544 2007-10-28  Bruno Haible  <bruno@clisp.org>
30545
30546         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30547         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30548         HAVE_DECL_ISFINITE.
30549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30550         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30551         HAVE_DECL_ISFINITE.
30552
30553 2007-10-28  Bruno Haible  <bruno@clisp.org>
30554
30555         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30556         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30557
30558 2007-10-28  Bruno Haible  <bruno@clisp.org>
30559
30560         Fix link errors with Sun C 5.0 on Solaris 10.
30561         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30562         function is declared but not present in the compiler's libm.
30563         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30564         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30565         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30566         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30567         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30568         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30569         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30571         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30572         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30573         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30574         HAVE_DECL_FLOORL.
30575
30576 2007-10-28  Bruno Haible  <bruno@clisp.org>
30577
30578         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30579         gl_FUNC_FLOORL. Cache the result.
30580         (gl_FUNC_FLOORL): Use it.
30581         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30582         gl_FUNC_CEILL. Cache the result.
30583         (gl_FUNC_CEILL): Use it.
30584
30585         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30586         gl_FUNC_FLOOR. Cache the result.
30587         (gl_FUNC_FLOOR): Use it.
30588         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30589         gl_FUNC_CEIL. Cache the result.
30590         (gl_FUNC_CEIL): Use it.
30591
30592         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30593         gl_FUNC_FLOORF. Cache the result.
30594         (gl_FUNC_FLOORF): Use it.
30595         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30596         gl_FUNC_CEILF. Cache the result.
30597         (gl_FUNC_CEILF): Use it.
30598
30599 2007-10-28  Bruno Haible  <bruno@clisp.org>
30600
30601         * gnulib-tool: Allow specifying the LGPL version number through
30602         --lgpl=2 or --lgpl=3.
30603         (func_usage): Document --lgpl with argument.
30604         Handle --lgpl=... arguments.
30605         (func_import): Recognize also gl_LGPL calls with an argument. When
30606         --lgpl=2 is used and the module's license is just LGPL, report an
30607         error. Set sed_transform_lib_file according to the lgpl variable. In
30608         the generated files, use --lgpl or gl_LGPL invocations with argument,
30609         if necessary.
30610         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30611         an LGPv2+ license.
30612         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30613         gl_LGPL macro.
30614
30615 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30616             Bruno Haible  <bruno@clisp.org>
30617
30618         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30619         (u16_uctomb_aux): Likewise.
30620         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30621         !HAVE_INLINE.
30622         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30623
30624 2007-10-28  Bruno Haible  <bruno@clisp.org>
30625
30626         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30627         Invoke AM_GETTEXT_OPTION if it exists.
30628         * modules/vasprintf: Likewise.
30629         * modules/verror: Likewise.
30630         * modules/xprintf: Likewise.
30631         * modules/xvasprintf: Likewise.
30632
30633 2007-10-27  Ben Pfaff  <blp@gnu.org>
30634
30635         * lib/math.in.h: Define isfinite macro and prototypes for
30636         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30637         implementations.
30638         * m4/math_h.m4: New substitutions for isfinite module.
30639         * lib/isfinite.c: New file.
30640         * m4/isfinite.m4: New file.
30641         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30642         * modules/isfinite: New file.
30643         * modules/isfinite-tests: New file.
30644         * tests/tests-isfinite.c: New file.
30645         * doc/functions/isfinite.texi: Mention isfinite module.
30646         * MODULES.html.sh: Mention new module.
30647
30648 2007-10-27  Ben Pfaff  <blp@gnu.org>
30649
30650         Ralf Wildenhues reported that Tru64 4.0D declares the round
30651         functions but does not have definitions.
30652         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30653         cannot be found in any library, set the output variable to
30654         "missing" instead of "".
30655         * m4/round.m4: Also use our substitute if we cannot find round in
30656         any library, even if it is declared.
30657         * m4/roundf.m4: Likewise for roundf.
30658         * m4/roundl.m4: Likewise for roundl.
30659         * lib/math.in.h: Undefine roundf, round, roundl before defining
30660         their replacements, to allow for hypothetical systems where these
30661         may be defined as macros but not available in libraries.
30662
30663 2007-10-27  Bruno Haible  <bruno@clisp.org>
30664
30665         * doc/gnulib.texi: Invoke @firstparagraphindent.
30666         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30667         changes in gnulib.
30668         (Source changes): New section.
30669
30670 2007-10-26  Bruno Haible  <bruno@clisp.org>
30671
30672         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30673         borrowed from autoconf.
30674
30675 2007-10-26  Bruno Haible  <bruno@clisp.org>
30676
30677         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30678         strerror returned the empty string. Needed on HP-UX 11.00.
30679
30680 2007-10-24  Micah Cowan  <micah@cowan.name>
30681
30682         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30683         * build-aux/bootstrap: Remove support for now-unnecessary option,
30684         --cvs-user, and envvars CVS_USER, CVS_RSH.
30685
30686 2007-10-24  Jim Meyering  <meyering@redhat.com>
30687
30688         Avoid diagnostics from sha1sum when there is no cached checksum.
30689         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30690         if the po.s1 file hasn't been created yet.
30691
30692         * build-aux/bootstrap: Sync from coreutils:
30693         2007-10-24  Jim Meyering  <meyering@redhat.com>
30694         Get gnulib from the git repository, not from an obsolete cvs one.
30695         * build-aux/bootstrap: Suggestion from Micah Cowan.
30696         2007-10-04  Jim Meyering  <jim@meyering.net>
30697         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30698         (update_po_files): Work also when there are no .po files in po/.
30699
30700 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30701
30702         * README: Append ".git" to git and cg examples.
30703         Problem reported by Benoit Sigoure.
30704
30705 2007-10-23  Micah Cowan  <micah@cowan.name>
30706
30707         * users.txt: Add wget.
30708
30709 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30710
30711         Fix linking of some unistdio tests on FreeBSD.
30712         * modules/unistdio/u16-vsnprintf-tests
30713         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30714         * modules/unistdio/u16-vsprintf-tests
30715         (test_u16_vsnprintf1_LDADD): Likewise.
30716         * modules/unistdio/u32-vsnprintf-tests
30717         (test_u32_vsnprintf1_LDADD): Likewise.
30718         * modules/unistdio/u32-vsprintf-tests
30719         (test_u32_vsprintf1_LDADD): Likewise.
30720         * modules/unistdio/u8-vsnprintf-tests
30721         (test_u8_vsnprintf1_LDADD): Likewise.
30722         * modules/unistdio/u8-vsprintf-tests
30723         (test_u8_vsprintf1_LDADD): Likewise.
30724         * modules/unistdio/ulc-vsnprintf-tests
30725         (test_ulc_vsnprintf1_LDADD): Likewise.
30726         * modules/unistdio/ulc-vsprintf-tests
30727         (test_ulc_vsprintf1_LDADD): Likewise.
30728
30729         Fix linking of some uniconv tests on FreeBSD.
30730         * modules/uniconv/u16-conv-from-enc-tests
30731         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30732         * modules/uniconv/u16-conv-to-enc-tests
30733         (test_u16_conv_to_enc_LDADD): Likewise.
30734         * modules/uniconv/u16-strconv-from-enc-tests
30735         (test_u16_strconv_from_enc_LDADD): Likewise.
30736         * modules/uniconv/u16-strconv-to-enc-tests
30737         (test_u16_strconv_to_enc_LDADD): Likewise.
30738         * modules/uniconv/u32-conv-from-enc-tests
30739         (test_u32_conv_from_enc_LDADD): Likewise.
30740         * modules/uniconv/u32-conv-to-enc-tests
30741         (test_u32_conv_to_enc_LDADD): Likewise.
30742         * modules/uniconv/u32-strconv-from-enc-tests
30743         (test_u32_strconv_from_enc_LDADD): Likewise.
30744         * modules/uniconv/u32-strconv-to-enc-tests
30745         (test_u32_strconv_to_enc_LDADD): Likewise.
30746         * modules/uniconv/u8-conv-from-enc-tests
30747         (test_u8_conv_from_enc_LDADD): Likewise.
30748         * modules/uniconv/u8-conv-to-enc-tests
30749         (test_u8_conv_to_enc_LDADD): Likewise.
30750         * modules/uniconv/u8-strconv-from-enc-tests
30751         (test_u8_strconv_from_enc_LDADD): Likewise.
30752         * modules/uniconv/u8-strconv-to-enc-tests
30753         (test_u8_strconv_to_enc_LDADD): Likewise.
30754
30755 2007-10-22  Bruno Haible  <bruno@clisp.org>
30756
30757         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30758         size.
30759
30760 2007-10-22  Eric Blake  <ebb9@byu.net>
30761
30762         Tweak x*printf documentation.
30763         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30764         variable name and comments.
30765         Suggested by Bruno Haible.
30766
30767 2007-10-22  Bruno Haible  <bruno@clisp.org>
30768
30769         * lib/acl.c (copy_acl): Fix file name in comment.
30770
30771 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30772
30773         Fix Tru64 problem with stdbool.h.
30774         * lib/stdbool.in.h (false, true):
30775         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30776         Don't declare as an enum in this situation; it runs afoul of Tru64.
30777         Problem reported by Steven M. Schweda in
30778         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30779
30780 2007-10-22  Eric Blake  <ebb9@byu.net>
30781
30782         Also wrap vf?printf.
30783         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30784         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30785         (xvprintf, xvfprintf): New functions.
30786
30787 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30788
30789         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30790         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30791
30792         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30793         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30794
30795 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30796
30797         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30798         by Bruno Haible.
30799
30800 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30801
30802         * lib/getloadavg.c
30803         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30804         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30805
30806         * tests/test-i-ring.c: Work for C89.
30807
30808 2007-10-22  Bruno Haible  <bruno@clisp.org>
30809
30810         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30811         -1u, in preprocessor expression, so that we don't test for the bug
30812         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30813         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30814
30815 2007-10-22  Eric Blake  <ebb9@byu.net>
30816
30817         * tests/test-yesno.sh: Silence stderr during test.
30818
30819 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30820
30821         * modules/crypto/gc-camellia: New file.
30822
30823         * m4/gc-camellia.m4: New file.
30824
30825         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30826
30827         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30828
30829 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30830
30831         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30832         --help to stdout.  Reported by sms@antinode.org (Steven
30833         M. Schweda).
30834
30835 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30836
30837         * users.txt: Fix link to libksba.
30838
30839 2007-10-21  Ben Pfaff  <blp@gnu.org>
30840
30841         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30842         round.c roundf implementation that depends on floorf and ceilf to
30843         be tested unconditionally.
30844
30845 2007-10-21  Ben Pfaff  <blp@gnu.org>
30846
30847         * m4/check-libm-func.m4: Removed.
30848         * m4/check-math-lib.m4: New file.
30849         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30850         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30851         definition and lack of AC_LIBOBJ([roundf]).
30852         * m4/roundl.m4: Ditto, and similarly for roundl.
30853         * modules/round: Reference new m4 file.
30854         * modules/roundf: Ditto.
30855         * modules/roundl: Ditto.
30856         * tests/test-round2.c (main): Use ROUND instead of round.
30857         Bug report from Bruno Haible.
30858
30859 2007-10-21  Bruno Haible  <bruno@clisp.org>
30860
30861         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30862         context.
30863
30864 2007-10-21  Bruno Haible  <bruno@clisp.org>
30865
30866         * tests/test-wcwidth.c (main): Allow negative result for some control
30867         characters.
30868
30869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30870         Needed on OSF/1 5.1.
30871
30872 2007-10-21  Bruno Haible  <bruno@clisp.org>
30873
30874         * tests/test-floorf1.c: Include isnanf.h.
30875         (main): Use isnanf() instead of isnan().
30876         * tests/test-ceilf1.c: Include isnanf.h.
30877         (main): Use isnanf() instead of isnan().
30878         * tests/test-truncf1.c: Include isnanf.h.
30879         (main): Use isnanf() instead of isnan().
30880         * tests/test-roundf1.c: Include isnanf.h.
30881         (main): Use isnanf() instead of isnan().
30882
30883 2007-10-21  Eric Blake  <ebb9@byu.net>
30884
30885         * users.txt: Update URL for m4.
30886
30887 2007-10-21  Bruno Haible  <bruno@clisp.org>
30888
30889         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30890
30891 2007-10-21  Bruno Haible  <bruno@clisp.org>
30892
30893         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30894         Git's management files if the CVS files are not present.
30895
30896 2007-10-20  Bruno Haible  <bruno@clisp.org>
30897
30898         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30899         gcc-3.4.x.
30900
30901 2007-10-20  Ben Pfaff  <blp@gnu.org>
30902
30903         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30904         implementations.
30905         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30906         * lib/round.c: New file.
30907         * lib/roundf.c: New file.
30908         * lib/roundl.c: New file.
30909         * m4/round.m4: New file.
30910         * m4/roundf.m4: New file.
30911         * m4/roundl.m4: New file.
30912         * m4/check-libm-func-m4: New file.
30913         * modules/math: Replace round, roundf, roundl related @VARS@ in
30914         math.in.h.
30915         * modules/round: New file.
30916         * modules/round-tests: New file.
30917         * modules/roundf: New file.
30918         * modules/roundf-tests: New file.
30919         * modules/roundl: New file.
30920         * modules/roundl-tests: New file.
30921         * tests/test-round1.c: New file.
30922         * tests/test-round2.c: New file.
30923         * tests/test-roundf1.c: New file.
30924         * tests/test-roundf2.c: New file.
30925         * tests/test-roundl.c: New file.
30926         * doc/functions/round.texi: Mention round module.
30927         * doc/functions/roundf.texi: Mention roundf module.
30928         * doc/functions/roundl.texi: Mention roundl module.
30929         * MODULES.html.sh: Mention new modules.
30930         Thanks to Bruno Haible for suggestions.
30931
30932 2007-10-20  Jim Meyering  <meyering@redhat.com>
30933
30934         * lib/xprintf.c: Include <config.h> unconditionally.
30935
30936         Change xprintf's license to GPL.
30937         * modules/xprintf (License): s/LGPL/GPL/, since this module
30938         depends on modules (exit and exitfail) which are GPL.
30939         Suggestion from Bruno Haible.
30940
30941         xprintf fixes.
30942         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30943         Use a clearer diagnostic.
30944         Patch from Bruno Haible.
30945
30946 2007-10-20  Bruno Haible  <bruno@clisp.org>
30947
30948         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30949         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30951
30952 2007-10-20  Bruno Haible  <bruno@clisp.org>
30953
30954         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30955         precision in the comparison result > x - 1 or similar.
30956         * tests/test-ceilf2.c (correct_result_p): Likewise.
30957         * tests/test-truncf2.c (correct_result_p): Likewise.
30958         * tests/test-trunc2.c (correct_result_p): Likewise.
30959         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30960
30961 2007-10-20  Bruno Haible  <bruno@clisp.org>
30962
30963         * modules/ceil: New file.
30964         * m4/ceil.m4: New file.
30965         * doc/functions/ceil.texi: Mention the 'ceil' module.
30966
30967 2007-10-20  Bruno Haible  <bruno@clisp.org>
30968
30969         * modules/floor: New file.
30970         * m4/floor.m4: New file.
30971         * doc/functions/floor.texi: Mention the 'floor' module.
30972
30973 2007-10-20  Bruno Haible  <bruno@clisp.org>
30974
30975         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30976         of %a.
30977         * modules/floorf-tests (Depends-on): Likewise.
30978         * modules/truncf-tests (Depends-on): Likewise.
30979         * modules/trunc-tests (Depends-on): Likewise.
30980         Reported by Ben Pfaff.
30981
30982 2007-10-19  Jim Meyering  <meyering@redhat.com>
30983
30984         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30985         Don't bother testing specific errno values.  Just test ferror.
30986
30987         New module: xprintf
30988         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30989
30990 2007-10-19  Bruno Haible  <bruno@clisp.org>
30991
30992         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30993         syntax.
30994         * modules/javaexec (Makefile.am): Likewise.
30995         * modules/relocatable-prog (Makefile.am): Likewise.
30996         Suggested by Jim Meyering.
30997
30998 2007-10-18  Bruno Haible  <bruno@clisp.org>
30999
31000         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
31001         Reported by Jim Meyering.
31002
31003 2007-10-18  Eric Blake  <ebb9@byu.net>
31004
31005         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
31006
31007 2007-10-18  Bruno Haible  <bruno@clisp.org>
31008
31009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
31010         the format string into writable memory. Needed in Fortify conditions.
31011
31012 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
31013             Bruno Haible  <bruno@clisp.org>
31014
31015         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
31016         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
31017         * modules/trim (Depends-on): Add mbchar.
31018         (configure.ac): Add gl_FUNC_MBRTOWC.
31019         (Makefile.am): Augment lib_SOURCES.
31020
31021 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
31022
31023         Modify glob.c to use fstatat and dirfd, to simplify it.
31024         Suggested by Eric Blake.
31025         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
31026         Don't include <stdbool.h>; not used.
31027         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
31028         (link_exists_p): Simplify implementation, since we can now assume
31029         dirfd and fstatat.
31030         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
31031
31032 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31033
31034         * gnulib-tool (func_get_dependencies): Fix sed script to
31035         match only tests.
31036
31037 2007-10-17  Bruno Haible  <bruno@clisp.org>
31038
31039         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
31040         allow locale names without encoding suffix.
31041         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31042         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31043
31044 2007-10-16  Bruno Haible  <bruno@clisp.org>
31045
31046         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
31047         * lib/getgroups.c (getgroups): Likewise.
31048         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
31049
31050 2007-10-16  Bruno Haible  <bruno@clisp.org>
31051
31052         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
31053         * modules/malloc-posix (License): Likewise.
31054         * modules/realloc-posix (License): Likewise.
31055         * modules/calloc-posix (License): Likewise.
31056         * modules/intprops (License): Change from GPL to LGPL, with
31057         Paul Eggert's approval.
31058
31059 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31060
31061         Merge glibc changes into lib/glob.c.
31062
31063         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
31064         2007-10-15 04:59:03 UTC.  Here are the changes:
31065
31066         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
31067
31068         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
31069
31070         * lib/glob.c: Add some branch prediction throughout.
31071
31072         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
31073
31074         [BZ #5103]
31075         * lib/glob.c (glob): Recognize patterns starting \/.
31076
31077         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
31078
31079         [BZ #3996]
31080         * lib/glob.c (attribute_hidden): Define if not defined.
31081         (glob): Unescape dirname, filename or username when needed and not
31082         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
31083         is NULL.  Handle unescaped [ in pattern without closing ].
31084         Don't pass GLOB_CHECK down to recursive glob for directories.
31085         (__glob_pattern_type): New function.
31086         (__glob_pattern_p): Implement using __glob_pattern_type.
31087         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
31088         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
31089         Remove unreachable code.
31090
31091         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
31092
31093         * lib/glob.c (glob_in_dir): Add some comments and asserts to
31094         explain why there are no leaks.
31095
31096         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
31097
31098         [BZ #3253]
31099         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
31100         time, rather allocate increasingly bigger arrays of pointers, if
31101         possible with alloca, if too large with malloc.
31102
31103 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31104
31105         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
31106         Problem reported by H.Merijn Brand in
31107         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
31108         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
31109         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31110
31111 2007-10-15  Bruno Haible  <bruno@clisp.org>
31112
31113         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
31114         with explicit rpl_ prefix.
31115         * lib/fopen.c (fopen): Likewise.
31116         * lib/freopen.c (freopen): Likewise.
31117         * lib/iconv.c (iconv): Likewise.
31118         * lib/iconv_close.c (iconv_close): Likewise.
31119
31120 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31121
31122         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
31123
31124 2007-10-15  Bruno Haible  <bruno@clisp.org>
31125
31126         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
31127         <stddef.h> instead of <stdlib.h> since we only need NULL.
31128         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31129
31130 2007-10-15  Bruno Haible  <bruno@clisp.org>
31131
31132         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
31133         Replace paragraph talking about LIBOBJS.
31134         Reported by Colin Watson <cjwatson@debian.org>.
31135
31136 2007-10-15  Bruno Haible  <bruno@clisp.org>
31137
31138         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
31139         <stdlib.h> before using NULL.
31140
31141 2007-10-15  Simon Josefsson  <simon@josefsson.org>
31142
31143         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
31144         Reported by Albert Chin <china@thewrittenword.com>.
31145
31146 2007-10-14  Bruno Haible  <bruno@clisp.org>
31147
31148         * modules/iconv_open-utf-tests: New file.
31149         * tests/test-iconv-utf.c: New file.
31150
31151         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
31152         * modules/iconv_open-utf: New file.
31153         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
31154         (iconv, iconv_close): New declarations.
31155         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
31156         be defined.
31157         (iconv_open): Add special handling of conversion between UTF-8 and
31158         UTF-{16,32}{BE,LE}.
31159         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
31160         * lib/iconv_close.c: New file.
31161         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
31162         gl_FUNC_ICONV_OPEN.
31163         (gl_FUNC_ICONV_OPEN): Use it.
31164         (gl_FUNC_ICONV_OPEN_UTF): New macro.
31165         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
31166         and REPLACE_ICONV_UTF.
31167         * modules/iconv_open (Depends-on): Add c-strcase.
31168         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
31169         ICONV_CONST.
31170         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
31171
31172 2007-10-13  Albert Chin  <china@thewrittenword.com>
31173             Bruno Haible  <bruno@clisp.org>
31174
31175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
31176         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
31177
31178 2007-10-13  Bruno Haible  <bruno@clisp.org>
31179
31180         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
31181         defined, use the ISO C99 inline semantics.
31182         * lib/argp.h (ARGP_EI): Likewise.
31183
31184 2007-10-13  Bruno Haible  <bruno@clisp.org>
31185
31186         Handle 'inline' change in gcc 4.3.0.
31187         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
31188         argp_fmtstream_write, argp_fmtstream_set_lmargin,
31189         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
31190         argp_fmtstream_point): Disable 'extern' declaration if the function
31191         definition is going to be provided inline.
31192         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
31193         semantics, not the ISO C99 inline semantics.
31194         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
31195         'extern' declaration if the function definition is going to be provided
31196         inline.
31197         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
31198         the GNU C inline semantics, not the ISO C99 inline semantics. With
31199         GCC 4.2, avoid a warning.
31200
31201 2007-10-13  Bruno Haible  <bruno@clisp.org>
31202
31203         * lib/freading.h (freading): Enable the use of __freading for
31204         glibc >= 2.7.
31205         * lib/freading.c (freading): Likewise.
31206
31207 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31208
31209         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
31210         "warning: C99 inline functions are not supported; using GNU89".
31211
31212 2007-10-12  Bruno Haible  <bruno@clisp.org>
31213
31214         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
31215         of 2.
31216         * tests/test-ceilf2.c: New file.
31217         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
31218
31219         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
31220         * modules/ceilf-tests: Update.
31221
31222 2007-10-12  Bruno Haible  <bruno@clisp.org>
31223
31224         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
31225         of 2.
31226         * tests/test-floorf2.c: New file.
31227         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
31228
31229         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
31230         * modules/floorf-tests: Update.
31231
31232 2007-10-12  Bruno Haible  <bruno@clisp.org>
31233
31234         * tests/test-trunc2.c: New file.
31235         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
31236
31237         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
31238         * modules/trunc-tests: Update.
31239
31240 2007-10-12  Bruno Haible  <bruno@clisp.org>
31241
31242         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
31243         of 2.
31244         * tests/test-truncf2.c: New file.
31245         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
31246
31247         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
31248         * modules/truncf-tests: Update.
31249
31250 2007-10-11  Eric Blake  <ebb9@byu.net>
31251
31252         Don't claim strerror is broken on Interix.
31253         * doc/functions/strerror.texi (strerror): Known broken systems are
31254         now Solaris 8, and not Interix.
31255         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
31256         Interix on cross-compile.
31257         Reported by Martin Koeppe in
31258         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
31259
31260 2007-10-11  Bruno Haible  <bruno@clisp.org>
31261
31262         * modules/i-ring-tests: New file.
31263         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
31264         instead of assert.
31265
31266 2007-10-11  Bruno Haible  <bruno@clisp.org>
31267
31268         * modules/filenamecat-tests: New file.
31269         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
31270         * lib/filenamecat.c: Remove test code.
31271
31272 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31273
31274         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
31275
31276         * lib/strerror.c: Include <string.h> always, to test interface,
31277         and to remove the need for the dummy.
31278         Include intprops.h to compute width instead of doing it ourselves
31279         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
31280         (strerror): Define it to return NULL if there's no system strerror.
31281         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
31282         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
31283         ancient pre-strerror Unix systems well any more.  Saying "unknown
31284         system error" is enough.
31285         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
31286         simpler strerror.c implementation.
31287         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
31288         Simplify the tests to reflect the simpler strerror implementation.
31289         * modules/strerror (Depends-on): Add intprops.
31290
31291 2007-10-09  Eric Blake  <ebb9@byu.net>
31292
31293         Silence test-fpending.
31294         * modules/fpending-tests (Files): Add wrapper script.
31295         * tests/test-fpending.sh: New file.
31296
31297 2007-10-09  Bruno Haible  <bruno@clisp.org>
31298
31299         * MODULES.html.sh (func_module): Don't create a hyperlink for
31300         function names like 'printf_frexp'.
31301         (Misc): Add crc, memxor.
31302         (Characteristics of floating types): New section.
31303         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
31304         isnanf-nolibm, signbit, trunc, truncf, truncl.
31305         (Enhancements for ISO C 99 functions): New subsection Input/output.
31306         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
31307         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
31308         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
31309         (Compatibility checks for POSIX:2001 functions): Add clock-time.
31310         (Enhancements for POSIX:2001 functions): Add chdir-long.
31311         (File system functions): Add areadlink, chdir-safer, read-file.
31312         Remove cycle-check.
31313         (File system as inode set): New section.
31314         (Date and time): Add gethrxtime.
31315         (Multithreading): Add openmp.
31316         (Internationalization functions): Add localename.
31317         (Unicode string functions): Add unistr/u*-mbsnlen.
31318         (Support for maintaining and releasing projects): Add git-version-gen.
31319         (Lone files): Remove directories.
31320
31321 2007-10-08  Ben Pfaff  <blp@gnu.org>
31322
31323         * lib/xmalloca.h: Fix typo in comment.
31324
31325 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31326
31327         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
31328         when avoiding problems with integer overflow.  Use a portable test
31329         instead.
31330
31331 2007-10-08  Simon Josefsson  <simon@josefsson.org>
31332
31333         * modules/dummy (License): Change to LGPLv2+.
31334         * modules/float (License): Likewise
31335         * modules/realloc (License): Likewise
31336         * modules/stdlib (License): Likewise
31337
31338 2007-10-07  Bruno Haible  <bruno@clisp.org>
31339
31340         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31341         * floor.c (TWO_MANT_DIG): Likewise.
31342         * ceil.c (TWO_MANT_DIG): Likewise.
31343         Reported by Ben Pfaff.
31344
31345 2007-10-07  Bruno Haible  <bruno@clisp.org>
31346
31347         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31348         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31349         * lib/frexp.c (FUNC): Likewise.
31350         * lib/printf-frexp.h (printf_frexp): Likewise.
31351         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31352         * lib/printf-frexp.c (FUNC): Likewise.
31353         Suggested by Jim Meyering.
31354
31355 2007-10-07  Jim Meyering  <meyering@redhat.com>
31356
31357         Make xnanosleep's integer overflow test more robust.
31358         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31359         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31360
31361 2007-10-07  Bruno Haible  <bruno@clisp.org>
31362
31363         * NEWS: Mention the license change.
31364
31365         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31366         abbreviations in the modules files.
31367
31368         Change copyright notice from GPLv2+ to GPLv3+.
31369         * README: Change copyright notice.
31370         * MODULES.html.sh: Likewise.
31371         * build-aux/bootstrap.conf: Likewise.
31372         * build-aux/config.libpath: Likewise.
31373         * build-aux/csharpcomp.sh.in: Likewise.
31374         * build-aux/csharpexec.sh.in: Likewise.
31375         * build-aux/install-reloc: Likewise.
31376         * build-aux/javacomp.sh.in: Likewise.
31377         * build-aux/javaexec.sh.in: Likewise.
31378         * build-aux/ldd.sh.in: Likewise.
31379         * build-aux/reloc-ldflags: Likewise.
31380         * build-aux/relocatable.sh.in: Likewise.
31381         * build-aux/x-to-1.in: Likewise.
31382         * check-module: Likewise.
31383         * config/srclistvars.sh: Likewise.
31384         * gnulib-tool: Likewise.
31385         * lib/acl-internal.h: Likewise.
31386         * lib/acl.c: Likewise.
31387         * lib/acl.h: Likewise.
31388         * lib/acl_entries.c: Likewise.
31389         * lib/areadlink-with-size.c: Likewise.
31390         * lib/areadlink.c: Likewise.
31391         * lib/areadlink.h: Likewise.
31392         * lib/argmatch.c: Likewise.
31393         * lib/argmatch.h: Likewise.
31394         * lib/argp-ba.c: Likewise.
31395         * lib/argp-eexst.c: Likewise.
31396         * lib/argp-fmtstream.c: Likewise.
31397         * lib/argp-fmtstream.h: Likewise.
31398         * lib/argp-fs-xinl.c: Likewise.
31399         * lib/argp-help.c: Likewise.
31400         * lib/argp-namefrob.h: Likewise.
31401         * lib/argp-parse.c: Likewise.
31402         * lib/argp-pin.c: Likewise.
31403         * lib/argp-pv.c: Likewise.
31404         * lib/argp-pvh.c: Likewise.
31405         * lib/argp-xinl.c: Likewise.
31406         * lib/argp.h: Likewise.
31407         * lib/at-func.c: Likewise.
31408         * lib/atanl.c: Likewise.
31409         * lib/backupfile.c: Likewise.
31410         * lib/backupfile.h: Likewise.
31411         * lib/basename.c: Likewise.
31412         * lib/binary-io.h: Likewise.
31413         * lib/byteswap.in.h: Likewise.
31414         * lib/c-stack.c: Likewise.
31415         * lib/c-stack.h: Likewise.
31416         * lib/c-strcasestr.c: Likewise.
31417         * lib/c-strcasestr.h: Likewise.
31418         * lib/c-strstr.c: Likewise.
31419         * lib/c-strstr.h: Likewise.
31420         * lib/c-strtod.c: Likewise.
31421         * lib/calloc.c: Likewise.
31422         * lib/canon-host.c: Likewise.
31423         * lib/canon-host.h: Likewise.
31424         * lib/canonicalize-lgpl.c: Likewise.
31425         * lib/canonicalize.c: Likewise.
31426         * lib/canonicalize.h: Likewise.
31427         * lib/ceil.c: Likewise.
31428         * lib/ceilf.c: Likewise.
31429         * lib/ceill.c: Likewise.
31430         * lib/chdir-long.c: Likewise.
31431         * lib/chdir-long.h: Likewise.
31432         * lib/chdir-safer.c: Likewise.
31433         * lib/chdir-safer.h: Likewise.
31434         * lib/chown.c: Likewise.
31435         * lib/classpath.c: Likewise.
31436         * lib/classpath.h: Likewise.
31437         * lib/clean-temp.c: Likewise.
31438         * lib/clean-temp.h: Likewise.
31439         * lib/cloexec.c: Likewise.
31440         * lib/close-stream.c: Likewise.
31441         * lib/closein.c: Likewise.
31442         * lib/closein.h: Likewise.
31443         * lib/closeout.c: Likewise.
31444         * lib/closeout.h: Likewise.
31445         * lib/concat-filename.c: Likewise.
31446         * lib/copy-file.c: Likewise.
31447         * lib/copy-file.h: Likewise.
31448         * lib/count-one-bits.h: Likewise.
31449         * lib/crc.c: Likewise.
31450         * lib/crc.h: Likewise.
31451         * lib/creat-safer.c: Likewise.
31452         * lib/csharpcomp.c: Likewise.
31453         * lib/csharpcomp.h: Likewise.
31454         * lib/csharpexec.c: Likewise.
31455         * lib/csharpexec.h: Likewise.
31456         * lib/cycle-check.c: Likewise.
31457         * lib/cycle-check.h: Likewise.
31458         * lib/diacrit.c: Likewise.
31459         * lib/diacrit.h: Likewise.
31460         * lib/diffseq.h: Likewise.
31461         * lib/dirchownmod.c: Likewise.
31462         * lib/dirent.in.h: Likewise.
31463         * lib/dirfd.c: Likewise.
31464         * lib/dirfd.h: Likewise.
31465         * lib/dirname.c: Likewise.
31466         * lib/dirname.h: Likewise.
31467         * lib/dummy.c: Likewise.
31468         * lib/dup-safer.c: Likewise.
31469         * lib/dup2.c: Likewise.
31470         * lib/eealloc.h: Likewise.
31471         * lib/error.c: Likewise.
31472         * lib/error.h: Likewise.
31473         * lib/euidaccess.c: Likewise.
31474         * lib/exclude.c: Likewise.
31475         * lib/exclude.h: Likewise.
31476         * lib/execute.c: Likewise.
31477         * lib/execute.h: Likewise.
31478         * lib/exitfail.c: Likewise.
31479         * lib/exitfail.h: Likewise.
31480         * lib/expl.c: Likewise.
31481         * lib/fatal-signal.c: Likewise.
31482         * lib/fatal-signal.h: Likewise.
31483         * lib/fbufmode.c: Likewise.
31484         * lib/fbufmode.h: Likewise.
31485         * lib/fchdir.c: Likewise.
31486         * lib/fchmodat.c: Likewise.
31487         * lib/fchownat.c: Likewise.
31488         * lib/fcntl--.h: Likewise.
31489         * lib/fcntl-safer.h: Likewise.
31490         * lib/fcntl.in.h: Likewise.
31491         * lib/fd-safer.c: Likewise.
31492         * lib/fflush.c: Likewise.
31493         * lib/file-has-acl.c: Likewise.
31494         * lib/file-set.c: Likewise.
31495         * lib/file-type.c: Likewise.
31496         * lib/file-type.h: Likewise.
31497         * lib/fileblocks.c: Likewise.
31498         * lib/filemode.c: Likewise.
31499         * lib/filemode.h: Likewise.
31500         * lib/filename.h: Likewise.
31501         * lib/filenamecat.c: Likewise.
31502         * lib/filenamecat.h: Likewise.
31503         * lib/findprog.c: Likewise.
31504         * lib/findprog.h: Likewise.
31505         * lib/float.in.h: Likewise.
31506         * lib/floor.c: Likewise.
31507         * lib/floorf.c: Likewise.
31508         * lib/floorl.c: Likewise.
31509         * lib/fopen-safer.c: Likewise.
31510         * lib/fopen.c: Likewise.
31511         * lib/fpending.c: Likewise.
31512         * lib/fpending.h: Likewise.
31513         * lib/fprintf.c: Likewise.
31514         * lib/fprintftime.h: Likewise.
31515         * lib/fpucw.h: Likewise.
31516         * lib/fpurge.c: Likewise.
31517         * lib/fpurge.h: Likewise.
31518         * lib/freadable.c: Likewise.
31519         * lib/freadable.h: Likewise.
31520         * lib/freadahead.c: Likewise.
31521         * lib/freadahead.h: Likewise.
31522         * lib/freading.c: Likewise.
31523         * lib/freading.h: Likewise.
31524         * lib/free.c: Likewise.
31525         * lib/freopen.c: Likewise.
31526         * lib/frexp.c: Likewise.
31527         * lib/frexpl.c: Likewise.
31528         * lib/fseek.c: Likewise.
31529         * lib/fseterr.c: Likewise.
31530         * lib/fseterr.h: Likewise.
31531         * lib/fstatat.c: Likewise.
31532         * lib/fstrcmp.c: Likewise.
31533         * lib/fstrcmp.h: Likewise.
31534         * lib/fsusage.c: Likewise.
31535         * lib/fsusage.h: Likewise.
31536         * lib/ftell.c: Likewise.
31537         * lib/ftello.c: Likewise.
31538         * lib/fts-cycle.c: Likewise.
31539         * lib/fts.c: Likewise.
31540         * lib/fts_.h: Likewise.
31541         * lib/full-read.c: Likewise.
31542         * lib/full-read.h: Likewise.
31543         * lib/full-write.c: Likewise.
31544         * lib/full-write.h: Likewise.
31545         * lib/fwritable.c: Likewise.
31546         * lib/fwritable.h: Likewise.
31547         * lib/fwriteerror.c: Likewise.
31548         * lib/fwriteerror.h: Likewise.
31549         * lib/fwriting.c: Likewise.
31550         * lib/fwriting.h: Likewise.
31551         * lib/gcd.c: Likewise.
31552         * lib/gcd.h: Likewise.
31553         * lib/getcwd.c: Likewise.
31554         * lib/getdate.h: Likewise.
31555         * lib/getdate.y: Likewise.
31556         * lib/getdomainname.c: Likewise.
31557         * lib/getdomainname.h: Likewise.
31558         * lib/getgroups.c: Likewise.
31559         * lib/gethostname.c: Likewise.
31560         * lib/gethrxtime.c: Likewise.
31561         * lib/gethrxtime.h: Likewise.
31562         * lib/getloadavg.c: Likewise.
31563         * lib/getndelim2.c: Likewise.
31564         * lib/getndelim2.h: Likewise.
31565         * lib/getnline.c: Likewise.
31566         * lib/getnline.h: Likewise.
31567         * lib/getopt.c: Likewise.
31568         * lib/getopt.in.h: Likewise.
31569         * lib/getopt1.c: Likewise.
31570         * lib/getopt_int.h: Likewise.
31571         * lib/getpagesize.h: Likewise.
31572         * lib/getsubopt.c: Likewise.
31573         * lib/gettime.c: Likewise.
31574         * lib/getugroups.c: Likewise.
31575         * lib/getugroups.h: Likewise.
31576         * lib/getusershell.c: Likewise.
31577         * lib/gl_anyavltree_list1.h: Likewise.
31578         * lib/gl_anyavltree_list2.h: Likewise.
31579         * lib/gl_anyhash_list1.h: Likewise.
31580         * lib/gl_anyhash_list2.h: Likewise.
31581         * lib/gl_anylinked_list1.h: Likewise.
31582         * lib/gl_anylinked_list2.h: Likewise.
31583         * lib/gl_anyrbtree_list1.h: Likewise.
31584         * lib/gl_anyrbtree_list2.h: Likewise.
31585         * lib/gl_anytree_list1.h: Likewise.
31586         * lib/gl_anytree_list2.h: Likewise.
31587         * lib/gl_anytree_oset.h: Likewise.
31588         * lib/gl_anytreehash_list1.h: Likewise.
31589         * lib/gl_anytreehash_list2.h: Likewise.
31590         * lib/gl_array_list.c: Likewise.
31591         * lib/gl_array_list.h: Likewise.
31592         * lib/gl_array_oset.c: Likewise.
31593         * lib/gl_array_oset.h: Likewise.
31594         * lib/gl_avltree_list.c: Likewise.
31595         * lib/gl_avltree_list.h: Likewise.
31596         * lib/gl_avltree_oset.c: Likewise.
31597         * lib/gl_avltree_oset.h: Likewise.
31598         * lib/gl_avltreehash_list.c: Likewise.
31599         * lib/gl_avltreehash_list.h: Likewise.
31600         * lib/gl_carray_list.c: Likewise.
31601         * lib/gl_carray_list.h: Likewise.
31602         * lib/gl_linked_list.c: Likewise.
31603         * lib/gl_linked_list.h: Likewise.
31604         * lib/gl_linkedhash_list.c: Likewise.
31605         * lib/gl_linkedhash_list.h: Likewise.
31606         * lib/gl_list.c: Likewise.
31607         * lib/gl_list.h: Likewise.
31608         * lib/gl_oset.c: Likewise.
31609         * lib/gl_oset.h: Likewise.
31610         * lib/gl_rbtree_list.c: Likewise.
31611         * lib/gl_rbtree_list.h: Likewise.
31612         * lib/gl_rbtree_oset.c: Likewise.
31613         * lib/gl_rbtree_oset.h: Likewise.
31614         * lib/gl_rbtreehash_list.c: Likewise.
31615         * lib/gl_rbtreehash_list.h: Likewise.
31616         * lib/gl_sublist.c: Likewise.
31617         * lib/gl_sublist.h: Likewise.
31618         * lib/group-member.c: Likewise.
31619         * lib/group-member.h: Likewise.
31620         * lib/hard-locale.c: Likewise.
31621         * lib/hard-locale.h: Likewise.
31622         * lib/hash-pjw.c: Likewise.
31623         * lib/hash-pjw.h: Likewise.
31624         * lib/hash-triple.c: Likewise.
31625         * lib/hash.c: Likewise.
31626         * lib/hash.h: Likewise.
31627         * lib/human.c: Likewise.
31628         * lib/human.h: Likewise.
31629         * lib/i-ring.c: Likewise.
31630         * lib/i-ring.h: Likewise.
31631         * lib/idcache.c: Likewise.
31632         * lib/imaxabs.c: Likewise.
31633         * lib/imaxdiv.c: Likewise.
31634         * lib/inet_pton.c: Likewise.
31635         * lib/inet_pton.h: Likewise.
31636         * lib/intprops.h: Likewise.
31637         * lib/inttostr.c: Likewise.
31638         * lib/inttostr.h: Likewise.
31639         * lib/inttypes.in.h: Likewise.
31640         * lib/isapipe.c: Likewise.
31641         * lib/isdir.c: Likewise.
31642         * lib/isnan.c: Likewise.
31643         * lib/isnan.h: Likewise.
31644         * lib/isnanf.c: Likewise.
31645         * lib/isnanf.h: Likewise.
31646         * lib/isnanl-nolibm.h: Likewise.
31647         * lib/isnanl.c: Likewise.
31648         * lib/isnanl.h: Likewise.
31649         * lib/javacomp.c: Likewise.
31650         * lib/javacomp.h: Likewise.
31651         * lib/javaexec.c: Likewise.
31652         * lib/javaexec.h: Likewise.
31653         * lib/javaversion.c: Likewise.
31654         * lib/javaversion.h: Likewise.
31655         * lib/javaversion.java: Likewise.
31656         * lib/lbrkprop.h: Likewise.
31657         * lib/lchmod.h: Likewise.
31658         * lib/lchown.c: Likewise.
31659         * lib/ldexpl.c: Likewise.
31660         * lib/linebreak.c: Likewise.
31661         * lib/linebreak.h: Likewise.
31662         * lib/linebuffer.c: Likewise.
31663         * lib/linebuffer.h: Likewise.
31664         * lib/locale.in.h: Likewise.
31665         * lib/logl.c: Likewise.
31666         * lib/long-options.c: Likewise.
31667         * lib/long-options.h: Likewise.
31668         * lib/lstat.c: Likewise.
31669         * lib/lstat.h: Likewise.
31670         * lib/math.in.h: Likewise.
31671         * lib/mbchar.c: Likewise.
31672         * lib/mbchar.h: Likewise.
31673         * lib/mbfile.h: Likewise.
31674         * lib/mbiter.h: Likewise.
31675         * lib/mbscasecmp.c: Likewise.
31676         * lib/mbscasestr.c: Likewise.
31677         * lib/mbschr.c: Likewise.
31678         * lib/mbscspn.c: Likewise.
31679         * lib/mbslen.c: Likewise.
31680         * lib/mbsncasecmp.c: Likewise.
31681         * lib/mbsnlen.c: Likewise.
31682         * lib/mbspbrk.c: Likewise.
31683         * lib/mbspcasecmp.c: Likewise.
31684         * lib/mbsrchr.c: Likewise.
31685         * lib/mbssep.c: Likewise.
31686         * lib/mbsspn.c: Likewise.
31687         * lib/mbsstr.c: Likewise.
31688         * lib/mbstok_r.c: Likewise.
31689         * lib/mbswidth.c: Likewise.
31690         * lib/mbswidth.h: Likewise.
31691         * lib/mbuiter.h: Likewise.
31692         * lib/memcasecmp.c: Likewise.
31693         * lib/memcasecmp.h: Likewise.
31694         * lib/memchr.c: Likewise.
31695         * lib/memcmp.c: Likewise.
31696         * lib/memcoll.c: Likewise.
31697         * lib/memcoll.h: Likewise.
31698         * lib/memcpy.c: Likewise.
31699         * lib/memrchr.c: Likewise.
31700         * lib/mkancesdirs.c: Likewise.
31701         * lib/mkdir-p.c: Likewise.
31702         * lib/mkdir-p.h: Likewise.
31703         * lib/mkdir.c: Likewise.
31704         * lib/mkdirat.c: Likewise.
31705         * lib/mkdtemp.c: Likewise.
31706         * lib/mkstemp-safer.c: Likewise.
31707         * lib/mkstemp.c: Likewise.
31708         * lib/modechange.c: Likewise.
31709         * lib/modechange.h: Likewise.
31710         * lib/mountlist.c: Likewise.
31711         * lib/mountlist.h: Likewise.
31712         * lib/mpsort.c: Likewise.
31713         * lib/nanosleep.c: Likewise.
31714         * lib/obstack.c: Likewise.
31715         * lib/obstack.h: Likewise.
31716         * lib/open-safer.c: Likewise.
31717         * lib/open.c: Likewise.
31718         * lib/openat-die.c: Likewise.
31719         * lib/openat-priv.h: Likewise.
31720         * lib/openat-proc.c: Likewise.
31721         * lib/openat.c: Likewise.
31722         * lib/openat.h: Likewise.
31723         * lib/pagealign_alloc.c: Likewise.
31724         * lib/pagealign_alloc.h: Likewise.
31725         * lib/physmem.c: Likewise.
31726         * lib/physmem.h: Likewise.
31727         * lib/pipe-safer.c: Likewise.
31728         * lib/pipe.c: Likewise.
31729         * lib/pipe.h: Likewise.
31730         * lib/posixtm.c: Likewise.
31731         * lib/posixtm.h: Likewise.
31732         * lib/posixver.c: Likewise.
31733         * lib/printf-frexp.c: Likewise.
31734         * lib/printf-frexp.h: Likewise.
31735         * lib/printf-frexpl.c: Likewise.
31736         * lib/printf-frexpl.h: Likewise.
31737         * lib/printf.c: Likewise.
31738         * lib/progname.c: Likewise.
31739         * lib/progname.h: Likewise.
31740         * lib/progreloc.c: Likewise.
31741         * lib/putenv.c: Likewise.
31742         * lib/quote.c: Likewise.
31743         * lib/quote.h: Likewise.
31744         * lib/quotearg.c: Likewise.
31745         * lib/quotearg.h: Likewise.
31746         * lib/raise.c: Likewise.
31747         * lib/readline.c: Likewise.
31748         * lib/readline.h: Likewise.
31749         * lib/readlink.c: Likewise.
31750         * lib/readtokens.c: Likewise.
31751         * lib/readtokens.h: Likewise.
31752         * lib/readtokens0.c: Likewise.
31753         * lib/readtokens0.h: Likewise.
31754         * lib/readutmp.c: Likewise.
31755         * lib/readutmp.h: Likewise.
31756         * lib/realloc.c: Likewise.
31757         * lib/relocwrapper.c: Likewise.
31758         * lib/rename-dest-slash.c: Likewise.
31759         * lib/rename.c: Likewise.
31760         * lib/rmdir.c: Likewise.
31761         * lib/rpmatch.c: Likewise.
31762         * lib/safe-read.c: Likewise.
31763         * lib/safe-read.h: Likewise.
31764         * lib/safe-write.c: Likewise.
31765         * lib/safe-write.h: Likewise.
31766         * lib/same-inode.h: Likewise.
31767         * lib/same.c: Likewise.
31768         * lib/same.h: Likewise.
31769         * lib/save-cwd.c: Likewise.
31770         * lib/save-cwd.h: Likewise.
31771         * lib/savedir.c: Likewise.
31772         * lib/savedir.h: Likewise.
31773         * lib/savewd.c: Likewise.
31774         * lib/savewd.h: Likewise.
31775         * lib/search.in.h: Likewise.
31776         * lib/setenv.c: Likewise.
31777         * lib/setenv.h: Likewise.
31778         * lib/settime.c: Likewise.
31779         * lib/sh-quote.c: Likewise.
31780         * lib/sh-quote.h: Likewise.
31781         * lib/sig2str.c: Likewise.
31782         * lib/sig2str.h: Likewise.
31783         * lib/signal.in.h: Likewise.
31784         * lib/signbitd.c: Likewise.
31785         * lib/signbitf.c: Likewise.
31786         * lib/signbitl.c: Likewise.
31787         * lib/sigprocmask.c: Likewise.
31788         * lib/sincosl.c: Likewise.
31789         * lib/sleep.c: Likewise.
31790         * lib/sprintf.c: Likewise.
31791         * lib/sqrtl.c: Likewise.
31792         * lib/stat-time.h: Likewise.
31793         * lib/stdio--.h: Likewise.
31794         * lib/stdio-safer.h: Likewise.
31795         * lib/stdlib--.h: Likewise.
31796         * lib/stdlib-safer.h: Likewise.
31797         * lib/stdlib.in.h: Likewise.
31798         * lib/stpcpy.c: Likewise.
31799         * lib/stpncpy.c: Likewise.
31800         * lib/strchrnul.c: Likewise.
31801         * lib/strcspn.c: Likewise.
31802         * lib/strerror.c: Likewise.
31803         * lib/strftime.c: Likewise.
31804         * lib/strftime.h: Likewise.
31805         * lib/striconveh.c: Likewise.
31806         * lib/striconveh.h: Likewise.
31807         * lib/striconveha.c: Likewise.
31808         * lib/striconveha.h: Likewise.
31809         * lib/stripslash.c: Likewise.
31810         * lib/strnlen1.c: Likewise.
31811         * lib/strnlen1.h: Likewise.
31812         * lib/strtod.c: Likewise.
31813         * lib/strtoimax.c: Likewise.
31814         * lib/strtok_r.c: Likewise.
31815         * lib/strtol.c: Likewise.
31816         * lib/strtoll.c: Likewise.
31817         * lib/strtoul.c: Likewise.
31818         * lib/strtoull.c: Likewise.
31819         * lib/sysexits.in.h: Likewise.
31820         * lib/tempname.c: Likewise.
31821         * lib/tempname.h: Likewise.
31822         * lib/timespec.h: Likewise.
31823         * lib/tls.c: Likewise.
31824         * lib/tls.h: Likewise.
31825         * lib/tmpdir.c: Likewise.
31826         * lib/tmpdir.h: Likewise.
31827         * lib/tmpfile-safer.c: Likewise.
31828         * lib/tmpfile.c: Likewise.
31829         * lib/trigl.c: Likewise.
31830         * lib/trigl.h: Likewise.
31831         * lib/trim.c: Likewise.
31832         * lib/trim.h: Likewise.
31833         * lib/trunc.c: Likewise.
31834         * lib/truncf.c: Likewise.
31835         * lib/truncl.c: Likewise.
31836         * lib/tsearch.c: Likewise.
31837         * lib/unicodeio.c: Likewise.
31838         * lib/unicodeio.h: Likewise.
31839         * lib/unistd--.h: Likewise.
31840         * lib/unistd-safer.h: Likewise.
31841         * lib/unistdio/ulc-fprintf.c: Likewise.
31842         * lib/unistdio/ulc-vfprintf.c: Likewise.
31843         * lib/unlinkdir.c: Likewise.
31844         * lib/unlinkdir.h: Likewise.
31845         * lib/unlocked-io.h: Likewise.
31846         * lib/unsetenv.c: Likewise.
31847         * lib/userspec.c: Likewise.
31848         * lib/utime.c: Likewise.
31849         * lib/utimecmp.c: Likewise.
31850         * lib/utimecmp.h: Likewise.
31851         * lib/utimens.c: Likewise.
31852         * lib/verify.h: Likewise.
31853         * lib/verror.c: Likewise.
31854         * lib/verror.h: Likewise.
31855         * lib/version-etc-fsf.c: Likewise.
31856         * lib/version-etc.c: Likewise.
31857         * lib/version-etc.h: Likewise.
31858         * lib/vfprintf.c: Likewise.
31859         * lib/vprintf.c: Likewise.
31860         * lib/vsprintf.c: Likewise.
31861         * lib/w32spawn.h: Likewise.
31862         * lib/wait-process.c: Likewise.
31863         * lib/wait-process.h: Likewise.
31864         * lib/wcwidth.c: Likewise.
31865         * lib/write-any-file.c: Likewise.
31866         * lib/xalloc-die.c: Likewise.
31867         * lib/xalloc.h: Likewise.
31868         * lib/xasprintf.c: Likewise.
31869         * lib/xgetcwd.c: Likewise.
31870         * lib/xgetcwd.h: Likewise.
31871         * lib/xgetdomainname.c: Likewise.
31872         * lib/xgetdomainname.h: Likewise.
31873         * lib/xgethostname.c: Likewise.
31874         * lib/xmalloc.c: Likewise.
31875         * lib/xmalloca.c: Likewise.
31876         * lib/xmalloca.h: Likewise.
31877         * lib/xmemcoll.c: Likewise.
31878         * lib/xnanosleep.c: Likewise.
31879         * lib/xreadlink.c: Likewise.
31880         * lib/xreadlink.h: Likewise.
31881         * lib/xsetenv.c: Likewise.
31882         * lib/xsetenv.h: Likewise.
31883         * lib/xstriconv.c: Likewise.
31884         * lib/xstriconv.h: Likewise.
31885         * lib/xstrndup.c: Likewise.
31886         * lib/xstrndup.h: Likewise.
31887         * lib/xstrtod.c: Likewise.
31888         * lib/xstrtod.h: Likewise.
31889         * lib/xstrtol-error.c: Likewise.
31890         * lib/xstrtol.c: Likewise.
31891         * lib/xstrtol.h: Likewise.
31892         * lib/xtime.h: Likewise.
31893         * lib/xvasprintf.c: Likewise.
31894         * lib/xvasprintf.h: Likewise.
31895         * lib/yesno.c: Likewise.
31896         * lib/yesno.h: Likewise.
31897         * posix-modules: Likewise.
31898         * tests/test-alloca-opt.c: Likewise.
31899         * tests/test-arcfour.c: Likewise.
31900         * tests/test-arctwo.c: Likewise.
31901         * tests/test-argmatch.c: Likewise.
31902         * tests/test-argp-2.sh: Likewise.
31903         * tests/test-argp.c: Likewise.
31904         * tests/test-arpa_inet.c: Likewise.
31905         * tests/test-array_list.c: Likewise.
31906         * tests/test-array_oset.c: Likewise.
31907         * tests/test-atexit.c: Likewise.
31908         * tests/test-avltree_list.c: Likewise.
31909         * tests/test-avltree_oset.c: Likewise.
31910         * tests/test-avltreehash_list.c: Likewise.
31911         * tests/test-base64.c: Likewise.
31912         * tests/test-binary-io.c: Likewise.
31913         * tests/test-byteswap.c: Likewise.
31914         * tests/test-c-ctype.c: Likewise.
31915         * tests/test-c-strcasecmp.c: Likewise.
31916         * tests/test-c-strcasestr.c: Likewise.
31917         * tests/test-c-strncasecmp.c: Likewise.
31918         * tests/test-c-strstr.c: Likewise.
31919         * tests/test-canonicalize-lgpl.c: Likewise.
31920         * tests/test-canonicalize.c: Likewise.
31921         * tests/test-carray_list.c: Likewise.
31922         * tests/test-ceilf.c: Likewise.
31923         * tests/test-ceill.c: Likewise.
31924         * tests/test-count-one-bits.c: Likewise.
31925         * tests/test-crc.c: Likewise.
31926         * tests/test-dirname.c: Likewise.
31927         * tests/test-fbufmode.c: Likewise.
31928         * tests/test-fcntl.c: Likewise.
31929         * tests/test-fflush.c: Likewise.
31930         * tests/test-floorf.c: Likewise.
31931         * tests/test-floorl.c: Likewise.
31932         * tests/test-fopen.c: Likewise.
31933         * tests/test-fprintf-posix.c: Likewise.
31934         * tests/test-fprintf-posix.h: Likewise.
31935         * tests/test-fpurge.c: Likewise.
31936         * tests/test-freadable.c: Likewise.
31937         * tests/test-freadahead.c: Likewise.
31938         * tests/test-freading.c: Likewise.
31939         * tests/test-freopen.c: Likewise.
31940         * tests/test-frexp.c: Likewise.
31941         * tests/test-frexpl.c: Likewise.
31942         * tests/test-fseek.c: Likewise.
31943         * tests/test-fseeko.c: Likewise.
31944         * tests/test-fseterr.c: Likewise.
31945         * tests/test-fstrcmp.c: Likewise.
31946         * tests/test-ftell.c: Likewise.
31947         * tests/test-ftello.c: Likewise.
31948         * tests/test-fwritable.c: Likewise.
31949         * tests/test-fwriting.c: Likewise.
31950         * tests/test-getaddrinfo.c: Likewise.
31951         * tests/test-getpass.c: Likewise.
31952         * tests/test-gettimeofday.c: Likewise.
31953         * tests/test-hmac-md5.c: Likewise.
31954         * tests/test-hmac-sha1.c: Likewise.
31955         * tests/test-iconv.c: Likewise.
31956         * tests/test-iconvme.c: Likewise.
31957         * tests/test-inttypes.c: Likewise.
31958         * tests/test-isnan.c: Likewise.
31959         * tests/test-isnanf.c: Likewise.
31960         * tests/test-isnanl-nolibm.c: Likewise.
31961         * tests/test-isnanl.c: Likewise.
31962         * tests/test-isnanl.h: Likewise.
31963         * tests/test-ldexpl.c: Likewise.
31964         * tests/test-linked_list.c: Likewise.
31965         * tests/test-linkedhash_list.c: Likewise.
31966         * tests/test-locale.c: Likewise.
31967         * tests/test-localename.c: Likewise.
31968         * tests/test-lock.c: Likewise.
31969         * tests/test-lseek.c: Likewise.
31970         * tests/test-malloca.c: Likewise.
31971         * tests/test-math.c: Likewise.
31972         * tests/test-mbscasecmp.c: Likewise.
31973         * tests/test-mbscasestr1.c: Likewise.
31974         * tests/test-mbscasestr2.c: Likewise.
31975         * tests/test-mbscasestr3.c: Likewise.
31976         * tests/test-mbscasestr4.c: Likewise.
31977         * tests/test-mbschr.c: Likewise.
31978         * tests/test-mbscspn.c: Likewise.
31979         * tests/test-mbsncasecmp.c: Likewise.
31980         * tests/test-mbspbrk.c: Likewise.
31981         * tests/test-mbspcasecmp.c: Likewise.
31982         * tests/test-mbsrchr.c: Likewise.
31983         * tests/test-mbsspn.c: Likewise.
31984         * tests/test-mbsstr1.c: Likewise.
31985         * tests/test-mbsstr2.c: Likewise.
31986         * tests/test-mbsstr3.c: Likewise.
31987         * tests/test-md5.c: Likewise.
31988         * tests/test-memmem.c: Likewise.
31989         * tests/test-netinet_in.c: Likewise.
31990         * tests/test-open.c: Likewise.
31991         * tests/test-printf-frexp.c: Likewise.
31992         * tests/test-printf-frexpl.c: Likewise.
31993         * tests/test-printf-posix.c: Likewise.
31994         * tests/test-printf-posix.h: Likewise.
31995         * tests/test-rbtree_list.c: Likewise.
31996         * tests/test-rbtree_oset.c: Likewise.
31997         * tests/test-rbtreehash_list.c: Likewise.
31998         * tests/test-read-file.c: Likewise.
31999         * tests/test-rijndael.c: Likewise.
32000         * tests/test-search.c: Likewise.
32001         * tests/test-signbit.c: Likewise.
32002         * tests/test-sleep.c: Likewise.
32003         * tests/test-snprintf-posix.c: Likewise.
32004         * tests/test-snprintf-posix.h: Likewise.
32005         * tests/test-snprintf.c: Likewise.
32006         * tests/test-sprintf-posix.c: Likewise.
32007         * tests/test-sprintf-posix.h: Likewise.
32008         * tests/test-stat-time.c: Likewise.
32009         * tests/test-stdbool.c: Likewise.
32010         * tests/test-stdint.c: Likewise.
32011         * tests/test-stdio.c: Likewise.
32012         * tests/test-stdlib.c: Likewise.
32013         * tests/test-stpncpy.c: Likewise.
32014         * tests/test-strcasestr.c: Likewise.
32015         * tests/test-striconv.c: Likewise.
32016         * tests/test-striconveh.c: Likewise.
32017         * tests/test-striconveha.c: Likewise.
32018         * tests/test-string.c: Likewise.
32019         * tests/test-sys_select.c: Likewise.
32020         * tests/test-sys_socket.c: Likewise.
32021         * tests/test-sys_stat.c: Likewise.
32022         * tests/test-sys_time.c: Likewise.
32023         * tests/test-sysexits.c: Likewise.
32024         * tests/test-time.c: Likewise.
32025         * tests/test-tls.c: Likewise.
32026         * tests/test-trunc.c: Likewise.
32027         * tests/test-truncf.c: Likewise.
32028         * tests/test-truncl.c: Likewise.
32029         * tests/test-unistd.c: Likewise.
32030         * tests/test-vasnprintf-posix.c: Likewise.
32031         * tests/test-vasnprintf-posix2.c: Likewise.
32032         * tests/test-vasnprintf.c: Likewise.
32033         * tests/test-vasprintf-posix.c: Likewise.
32034         * tests/test-vasprintf.c: Likewise.
32035         * tests/test-verify.c: Likewise.
32036         * tests/test-vfprintf-posix.c: Likewise.
32037         * tests/test-vprintf-posix.c: Likewise.
32038         * tests/test-vsnprintf-posix.c: Likewise.
32039         * tests/test-vsnprintf.c: Likewise.
32040         * tests/test-vsprintf-posix.c: Likewise.
32041         * tests/test-wchar.c: Likewise.
32042         * tests/test-wctype.c: Likewise.
32043         * tests/test-wcwidth.c: Likewise.
32044         * tests/test-xstrtol.c: Likewise.
32045         * tests/test-xvasprintf.c: Likewise.
32046         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32047         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32048         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32049         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32050         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32051         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32052         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32053         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32054         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32055         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32056         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32057         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32058         * tests/uniname/test-uninames.c: Likewise.
32059         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32060         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
32061         * tests/unistdio/test-u16-printf1.h: Likewise.
32062         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32063         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32064         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32065         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32066         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32067         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32068         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32069         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
32070         * tests/unistdio/test-u32-printf1.h: Likewise.
32071         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32072         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32073         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32074         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32075         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32076         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32077         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32078         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
32079         * tests/unistdio/test-u8-printf1.h: Likewise.
32080         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32081         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32082         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32083         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32084         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32085         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32086         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32087         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
32088         * tests/unistdio/test-ulc-printf1.h: Likewise.
32089         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32090         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32091         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32092         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32093         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32094         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32095         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32096         * tests/uniwidth/test-u16-width.c: Likewise.
32097         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32098         * tests/uniwidth/test-u32-width.c: Likewise.
32099         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32100         * tests/uniwidth/test-u8-width.c: Likewise.
32101         * tests/uniwidth/test-uc_width.c: Likewise.
32102         * config/srclist-update: Likewise.
32103         (fixlicense): Update to GPLv3+.
32104
32105         Change copyright notice from LGPLv2.1+ to LGPLv3+.
32106         * tests/test-tsearch.c: Change copyright notice.
32107
32108         Change copyright notice from LGPLv2.0+ to LGPLv3+.
32109         * lib/c-strcaseeq.h: Change copyright notice.
32110         * lib/streq.h: Likewise.
32111         * lib/uniconv.h: Likewise.
32112         * lib/uniconv/u-conv-from-enc.h: Likewise.
32113         * lib/uniconv/u-conv-to-enc.h: Likewise.
32114         * lib/uniconv/u-strconv-from-enc.h: Likewise.
32115         * lib/uniconv/u-strconv-to-enc.h: Likewise.
32116         * lib/uniconv/u16-conv-from-enc.c: Likewise.
32117         * lib/uniconv/u16-conv-to-enc.c: Likewise.
32118         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
32119         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
32120         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
32121         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
32122         * lib/uniconv/u32-conv-from-enc.c: Likewise.
32123         * lib/uniconv/u32-conv-to-enc.c: Likewise.
32124         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
32125         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
32126         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
32127         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
32128         * lib/uniconv/u8-conv-from-enc.c: Likewise.
32129         * lib/uniconv/u8-conv-to-enc.c: Likewise.
32130         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
32131         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
32132         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
32133         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
32134         * lib/uniname.h: Likewise.
32135         * lib/uniname/uniname.c: Likewise.
32136         * lib/unistdio.h: Likewise.
32137         * lib/unistdio/u-asnprintf.h: Likewise.
32138         * lib/unistdio/u-asprintf.h: Likewise.
32139         * lib/unistdio/u-printf-args.c: Likewise.
32140         * lib/unistdio/u-printf-args.h: Likewise.
32141         * lib/unistdio/u-printf-parse.h: Likewise.
32142         * lib/unistdio/u-snprintf.h: Likewise.
32143         * lib/unistdio/u-sprintf.h: Likewise.
32144         * lib/unistdio/u-vasprintf.h: Likewise.
32145         * lib/unistdio/u-vsnprintf.h: Likewise.
32146         * lib/unistdio/u-vsprintf.h: Likewise.
32147         * lib/unistdio/u16-asnprintf.c: Likewise.
32148         * lib/unistdio/u16-asprintf.c: Likewise.
32149         * lib/unistdio/u16-printf-parse.c: Likewise.
32150         * lib/unistdio/u16-snprintf.c: Likewise.
32151         * lib/unistdio/u16-sprintf.c: Likewise.
32152         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
32153         * lib/unistdio/u16-u16-asprintf.c: Likewise.
32154         * lib/unistdio/u16-u16-snprintf.c: Likewise.
32155         * lib/unistdio/u16-u16-sprintf.c: Likewise.
32156         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
32157         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
32158         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
32159         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
32160         * lib/unistdio/u16-vasnprintf.c: Likewise.
32161         * lib/unistdio/u16-vasprintf.c: Likewise.
32162         * lib/unistdio/u16-vsnprintf.c: Likewise.
32163         * lib/unistdio/u16-vsprintf.c: Likewise.
32164         * lib/unistdio/u32-asnprintf.c: Likewise.
32165         * lib/unistdio/u32-asprintf.c: Likewise.
32166         * lib/unistdio/u32-printf-parse.c: Likewise.
32167         * lib/unistdio/u32-snprintf.c: Likewise.
32168         * lib/unistdio/u32-sprintf.c: Likewise.
32169         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
32170         * lib/unistdio/u32-u32-asprintf.c: Likewise.
32171         * lib/unistdio/u32-u32-snprintf.c: Likewise.
32172         * lib/unistdio/u32-u32-sprintf.c: Likewise.
32173         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
32174         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
32175         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
32176         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
32177         * lib/unistdio/u32-vasnprintf.c: Likewise.
32178         * lib/unistdio/u32-vasprintf.c: Likewise.
32179         * lib/unistdio/u32-vsnprintf.c: Likewise.
32180         * lib/unistdio/u32-vsprintf.c: Likewise.
32181         * lib/unistdio/u8-asnprintf.c: Likewise.
32182         * lib/unistdio/u8-asprintf.c: Likewise.
32183         * lib/unistdio/u8-printf-parse.c: Likewise.
32184         * lib/unistdio/u8-snprintf.c: Likewise.
32185         * lib/unistdio/u8-sprintf.c: Likewise.
32186         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
32187         * lib/unistdio/u8-u8-asprintf.c: Likewise.
32188         * lib/unistdio/u8-u8-snprintf.c: Likewise.
32189         * lib/unistdio/u8-u8-sprintf.c: Likewise.
32190         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
32191         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
32192         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
32193         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
32194         * lib/unistdio/u8-vasnprintf.c: Likewise.
32195         * lib/unistdio/u8-vasprintf.c: Likewise.
32196         * lib/unistdio/u8-vsnprintf.c: Likewise.
32197         * lib/unistdio/u8-vsprintf.c: Likewise.
32198         * lib/unistdio/ulc-asnprintf.c: Likewise.
32199         * lib/unistdio/ulc-asprintf.c: Likewise.
32200         * lib/unistdio/ulc-printf-parse.c: Likewise.
32201         * lib/unistdio/ulc-snprintf.c: Likewise.
32202         * lib/unistdio/ulc-sprintf.c: Likewise.
32203         * lib/unistdio/ulc-vasnprintf.c: Likewise.
32204         * lib/unistdio/ulc-vasprintf.c: Likewise.
32205         * lib/unistdio/ulc-vsnprintf.c: Likewise.
32206         * lib/unistdio/ulc-vsprintf.c: Likewise.
32207         * lib/unistr.h: Likewise.
32208         * lib/unistr/u-cpy-alloc.h: Likewise.
32209         * lib/unistr/u-cpy.h: Likewise.
32210         * lib/unistr/u-endswith.h: Likewise.
32211         * lib/unistr/u-move.h: Likewise.
32212         * lib/unistr/u-set.h: Likewise.
32213         * lib/unistr/u-startswith.h: Likewise.
32214         * lib/unistr/u-stpcpy.h: Likewise.
32215         * lib/unistr/u-stpncpy.h: Likewise.
32216         * lib/unistr/u-strcat.h: Likewise.
32217         * lib/unistr/u-strcpy.h: Likewise.
32218         * lib/unistr/u-strcspn.h: Likewise.
32219         * lib/unistr/u-strdup.h: Likewise.
32220         * lib/unistr/u-strlen.h: Likewise.
32221         * lib/unistr/u-strncat.h: Likewise.
32222         * lib/unistr/u-strncpy.h: Likewise.
32223         * lib/unistr/u-strnlen.h: Likewise.
32224         * lib/unistr/u-strpbrk.h: Likewise.
32225         * lib/unistr/u-strspn.h: Likewise.
32226         * lib/unistr/u-strstr.h: Likewise.
32227         * lib/unistr/u-strtok.h: Likewise.
32228         * lib/unistr/u16-check.c: Likewise.
32229         * lib/unistr/u16-chr.c: Likewise.
32230         * lib/unistr/u16-cmp.c: Likewise.
32231         * lib/unistr/u16-cpy-alloc.c: Likewise.
32232         * lib/unistr/u16-cpy.c: Likewise.
32233         * lib/unistr/u16-endswith.c: Likewise.
32234         * lib/unistr/u16-mblen.c: Likewise.
32235         * lib/unistr/u16-mbsnlen.c: Likewise.
32236         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32237         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32238         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32239         * lib/unistr/u16-mbtouc.c: Likewise.
32240         * lib/unistr/u16-mbtoucr.c: Likewise.
32241         * lib/unistr/u16-move.c: Likewise.
32242         * lib/unistr/u16-next.c: Likewise.
32243         * lib/unistr/u16-prev.c: Likewise.
32244         * lib/unistr/u16-set.c: Likewise.
32245         * lib/unistr/u16-startswith.c: Likewise.
32246         * lib/unistr/u16-stpcpy.c: Likewise.
32247         * lib/unistr/u16-stpncpy.c: Likewise.
32248         * lib/unistr/u16-strcat.c: Likewise.
32249         * lib/unistr/u16-strchr.c: Likewise.
32250         * lib/unistr/u16-strcmp.c: Likewise.
32251         * lib/unistr/u16-strcpy.c: Likewise.
32252         * lib/unistr/u16-strcspn.c: Likewise.
32253         * lib/unistr/u16-strdup.c: Likewise.
32254         * lib/unistr/u16-strlen.c: Likewise.
32255         * lib/unistr/u16-strmblen.c: Likewise.
32256         * lib/unistr/u16-strmbtouc.c: Likewise.
32257         * lib/unistr/u16-strncat.c: Likewise.
32258         * lib/unistr/u16-strncmp.c: Likewise.
32259         * lib/unistr/u16-strncpy.c: Likewise.
32260         * lib/unistr/u16-strnlen.c: Likewise.
32261         * lib/unistr/u16-strpbrk.c: Likewise.
32262         * lib/unistr/u16-strrchr.c: Likewise.
32263         * lib/unistr/u16-strspn.c: Likewise.
32264         * lib/unistr/u16-strstr.c: Likewise.
32265         * lib/unistr/u16-strtok.c: Likewise.
32266         * lib/unistr/u16-to-u32.c: Likewise.
32267         * lib/unistr/u16-to-u8.c: Likewise.
32268         * lib/unistr/u16-uctomb-aux.c: Likewise.
32269         * lib/unistr/u16-uctomb.c: Likewise.
32270         * lib/unistr/u32-check.c: Likewise.
32271         * lib/unistr/u32-chr.c: Likewise.
32272         * lib/unistr/u32-cmp.c: Likewise.
32273         * lib/unistr/u32-cpy-alloc.c: Likewise.
32274         * lib/unistr/u32-cpy.c: Likewise.
32275         * lib/unistr/u32-endswith.c: Likewise.
32276         * lib/unistr/u32-mblen.c: Likewise.
32277         * lib/unistr/u32-mbsnlen.c: Likewise.
32278         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32279         * lib/unistr/u32-mbtouc.c: Likewise.
32280         * lib/unistr/u32-mbtoucr.c: Likewise.
32281         * lib/unistr/u32-move.c: Likewise.
32282         * lib/unistr/u32-next.c: Likewise.
32283         * lib/unistr/u32-prev.c: Likewise.
32284         * lib/unistr/u32-set.c: Likewise.
32285         * lib/unistr/u32-startswith.c: Likewise.
32286         * lib/unistr/u32-stpcpy.c: Likewise.
32287         * lib/unistr/u32-stpncpy.c: Likewise.
32288         * lib/unistr/u32-strcat.c: Likewise.
32289         * lib/unistr/u32-strchr.c: Likewise.
32290         * lib/unistr/u32-strcmp.c: Likewise.
32291         * lib/unistr/u32-strcpy.c: Likewise.
32292         * lib/unistr/u32-strcspn.c: Likewise.
32293         * lib/unistr/u32-strdup.c: Likewise.
32294         * lib/unistr/u32-strlen.c: Likewise.
32295         * lib/unistr/u32-strmblen.c: Likewise.
32296         * lib/unistr/u32-strmbtouc.c: Likewise.
32297         * lib/unistr/u32-strncat.c: Likewise.
32298         * lib/unistr/u32-strncmp.c: Likewise.
32299         * lib/unistr/u32-strncpy.c: Likewise.
32300         * lib/unistr/u32-strnlen.c: Likewise.
32301         * lib/unistr/u32-strpbrk.c: Likewise.
32302         * lib/unistr/u32-strrchr.c: Likewise.
32303         * lib/unistr/u32-strspn.c: Likewise.
32304         * lib/unistr/u32-strstr.c: Likewise.
32305         * lib/unistr/u32-strtok.c: Likewise.
32306         * lib/unistr/u32-to-u16.c: Likewise.
32307         * lib/unistr/u32-to-u8.c: Likewise.
32308         * lib/unistr/u32-uctomb.c: Likewise.
32309         * lib/unistr/u8-check.c: Likewise.
32310         * lib/unistr/u8-chr.c: Likewise.
32311         * lib/unistr/u8-cmp.c: Likewise.
32312         * lib/unistr/u8-cpy-alloc.c: Likewise.
32313         * lib/unistr/u8-cpy.c: Likewise.
32314         * lib/unistr/u8-endswith.c: Likewise.
32315         * lib/unistr/u8-mblen.c: Likewise.
32316         * lib/unistr/u8-mbsnlen.c: Likewise.
32317         * lib/unistr/u8-mbtouc-aux.c: Likewise.
32318         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32319         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32320         * lib/unistr/u8-mbtouc.c: Likewise.
32321         * lib/unistr/u8-mbtoucr.c: Likewise.
32322         * lib/unistr/u8-move.c: Likewise.
32323         * lib/unistr/u8-next.c: Likewise.
32324         * lib/unistr/u8-prev.c: Likewise.
32325         * lib/unistr/u8-set.c: Likewise.
32326         * lib/unistr/u8-startswith.c: Likewise.
32327         * lib/unistr/u8-stpcpy.c: Likewise.
32328         * lib/unistr/u8-stpncpy.c: Likewise.
32329         * lib/unistr/u8-strcat.c: Likewise.
32330         * lib/unistr/u8-strchr.c: Likewise.
32331         * lib/unistr/u8-strcmp.c: Likewise.
32332         * lib/unistr/u8-strcpy.c: Likewise.
32333         * lib/unistr/u8-strcspn.c: Likewise.
32334         * lib/unistr/u8-strdup.c: Likewise.
32335         * lib/unistr/u8-strlen.c: Likewise.
32336         * lib/unistr/u8-strmblen.c: Likewise.
32337         * lib/unistr/u8-strmbtouc.c: Likewise.
32338         * lib/unistr/u8-strncat.c: Likewise.
32339         * lib/unistr/u8-strncmp.c: Likewise.
32340         * lib/unistr/u8-strncpy.c: Likewise.
32341         * lib/unistr/u8-strnlen.c: Likewise.
32342         * lib/unistr/u8-strpbrk.c: Likewise.
32343         * lib/unistr/u8-strrchr.c: Likewise.
32344         * lib/unistr/u8-strspn.c: Likewise.
32345         * lib/unistr/u8-strstr.c: Likewise.
32346         * lib/unistr/u8-strtok.c: Likewise.
32347         * lib/unistr/u8-to-u16.c: Likewise.
32348         * lib/unistr/u8-to-u32.c: Likewise.
32349         * lib/unistr/u8-uctomb-aux.c: Likewise.
32350         * lib/unistr/u8-uctomb.c: Likewise.
32351         * lib/unitypes.h: Likewise.
32352         * lib/uniwidth.h: Likewise.
32353         * lib/uniwidth/cjk.h: Likewise.
32354         * lib/uniwidth/u16-strwidth.c: Likewise.
32355         * lib/uniwidth/u16-width.c: Likewise.
32356         * lib/uniwidth/u32-strwidth.c: Likewise.
32357         * lib/uniwidth/u32-width.c: Likewise.
32358         * lib/uniwidth/u8-strwidth.c: Likewise.
32359         * lib/uniwidth/u8-width.c: Likewise.
32360         * lib/uniwidth/width.c: Likewise.
32361
32362 2007-10-07  Bruno Haible  <bruno@clisp.org>
32363
32364         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32365         The file is still under LGPL (see modules/inttypes).
32366
32367 2007-10-06  Bruno Haible  <bruno@clisp.org>
32368
32369         * modules/trunc (Dependencies): Add 'extensions'.
32370         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32371         Reported by Ben Pfaff <blp@gnu.org>.
32372
32373 2007-10-06  Bruno Haible  <bruno@clisp.org>
32374
32375         * modules/freopen-tests: New file.
32376         * tests/test-freopen.c: New file.
32377
32378         * modules/fopen-tests: New file.
32379         * tests/test-fopen.c: New file.
32380
32381         * modules/fopen: New file.
32382         * lib/fopen.c: New file.
32383         * m4/fopen.m4: New file.
32384         * modules/freopen: New file.
32385         * lib/freopen.c: New file.
32386         * m4/freopen.m4: New file.
32387         * lib/stdio.in.h (fopen, freopen): New declarations.
32388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32389         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32390         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32391         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32392         * doc/functions/fopen.texi: Mention the 'fopen' module.
32393         * doc/functions/freopen.texi: Mention the 'freopen' module.
32394
32395 2007-10-06  Bruno Haible  <bruno@clisp.org>
32396
32397         * modules/open-tests: New file.
32398         * tests/test-open.c: New file.
32399
32400         * modules/open: New file.
32401         * lib/open.c: New file.
32402         * m4/open.m4: New file.
32403         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32404         lib/open.c does.
32405         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32406         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32407         macros.
32408         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32409         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32410         REPLACE_OPEN.
32411         * doc/functions/open.texi: Mention the 'open' module.
32412
32413 2007-10-04  Bruno Haible  <bruno@clisp.org>
32414
32415         * modules/ceill-tests: New file.
32416         * tests/test-ceill.c: New file.
32417
32418         * modules/ceill: New file.
32419         * lib/ceill.c: Replace entire file.
32420         * m4/ceill.m4: New file.
32421         * lib/math.in.h (ceill): Replace declaration.
32422         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32423         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32424         * doc/functions/ceill.texi: Mention the 'ceill' module.
32425         * modules/mathl (Files): Remove lib/ceill.c.
32426         (Depends-on): Add ceill.
32427
32428 2007-10-04  Bruno Haible  <bruno@clisp.org>
32429
32430         * modules/ceilf-tests: New file.
32431         * tests/test-ceilf.c: New file.
32432
32433         * modules/ceilf: New file.
32434         * lib/ceil.c: New file.
32435         * lib/ceilf.c: New file.
32436         * m4/ceilf.m4: New file.
32437         * lib/math.in.h (ceilf): New declaration.
32438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32439         HAVE_DECL_CEILF.
32440         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32441         HAVE_DECL_CEILF.
32442         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32443
32444 2007-10-04  Bruno Haible  <bruno@clisp.org>
32445
32446         * modules/floorl-tests: New file.
32447         * tests/test-floorl.c: New file.
32448
32449         * modules/floorl: New file.
32450         * lib/floorl.c: Replace entire file.
32451         * m4/floorl.m4: New file.
32452         * lib/math.in.h (floorl): Replace declaration.
32453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32454         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32455         * doc/functions/floorl.texi: Mention the 'floorl' module.
32456         * modules/mathl (Files): Remove lib/floorl.c.
32457         (Depends-on): Add floorl.
32458
32459 2007-10-04  Bruno Haible  <bruno@clisp.org>
32460
32461         * modules/floorf-tests: New file.
32462         * tests/test-floorf.c: New file.
32463
32464         * modules/floorf: New file.
32465         * lib/floor.c: New file.
32466         * lib/floorf.c: New file.
32467         * m4/floorf.m4: New file.
32468         * lib/math.in.h (floorf): New declaration.
32469         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32470         HAVE_DECL_FLOORF.
32471         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32472         HAVE_DECL_FLOORF.
32473         * doc/functions/floorf.texi: Mention the 'floorf' module.
32474
32475 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32476             Bruno Haible  <bruno@clisp.org>
32477
32478         Advertise for the Git server instead of the CVS server.
32479         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32480         repository instead of the CVS one.
32481         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32482         about all VCS systems generically.
32483         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32484
32485 2007-10-04  Bruno Haible  <bruno@clisp.org>
32486
32487         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32488         means.
32489         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32490
32491 2007-10-04  Bruno Haible  <bruno@clisp.org>
32492
32493         * modules/truncl-tests: New file.
32494         * tests/test-truncl.c: New file.
32495
32496         * modules/truncl: New file.
32497         * lib/truncl.c: New file.
32498         * m4/truncl.m4: New file.
32499         * lib/math.in.h (truncl): New declaration.
32500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32501         HAVE_DECL_TRUNCL.
32502         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32503         HAVE_DECL_TRUNCL.
32504         * doc/functions/truncl.texi: Mention the 'truncl' module.
32505
32506 2007-10-04  Bruno Haible  <bruno@clisp.org>
32507
32508         * modules/truncf-tests: New file.
32509         * tests/test-truncf.c: New file.
32510
32511         * modules/truncf: New file.
32512         * lib/trunc.c: Make paramerizable through USE_* macros.
32513         * lib/truncf.c: New file.
32514         * m4/truncf.m4: New file.
32515         * lib/math.in.h (truncf): New declaration.
32516         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32517         HAVE_DECL_TRUNCF.
32518         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32519         HAVE_DECL_TRUNCF.
32520         * doc/functions/truncf.texi: Mention the 'truncf' module.
32521
32522 2007-10-03  Bruno Haible  <bruno@clisp.org>
32523
32524         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32525         augmentation also for tests modules.
32526         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32527         * modules/atexit-tests (Makefile.am): Likewise.
32528         * modules/binary-io-tests (Makefile.am): Likewise.
32529         * modules/c-strcase-tests (Makefile.am): Likewise.
32530         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32531         * modules/canonicalize-tests (Makefile.am): Likewise.
32532         * modules/closein-tests (Makefile.am): Likewise.
32533         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32534         * modules/freadahead-tests (Makefile.am): Likewise.
32535         * modules/fseek-tests (Makefile.am): Likewise.
32536         * modules/fseeko-tests (Makefile.am): Likewise.
32537         * modules/ftell-tests (Makefile.am): Likewise.
32538         * modules/ftello-tests (Makefile.am): Likewise.
32539         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32540         * modules/isnanl-tests (Makefile.am): Likewise.
32541         * modules/lseek-tests (Makefile.am): Likewise.
32542         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32543         * modules/mbscasestr-tests (Makefile.am): Likewise.
32544         * modules/mbschr-tests (Makefile.am): Likewise.
32545         * modules/mbscspn-tests (Makefile.am): Likewise.
32546         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32547         * modules/mbspbrk-tests (Makefile.am): Likewise.
32548         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32549         * modules/mbsrchr-tests (Makefile.am): Likewise.
32550         * modules/mbsspn-tests (Makefile.am): Likewise.
32551         * modules/mbsstr-tests (Makefile.am): Likewise.
32552         * modules/printf-posix-tests (Makefile.am): Likewise.
32553         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32554         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32555         * modules/tsearch-tests (Makefile.am): Likewise.
32556         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32557         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32558         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32559         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32560         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32561         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32562         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32563         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32564         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32565         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32566         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32567         * modules/xstrtol-tests (Makefile.am): Likewise.
32568         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32569         * modules/yesno-tests (Makefile.am): Likewise.
32570
32571 2007-10-03  Bruno Haible  <bruno@clisp.org>
32572
32573         * modules/trunc-tests: New file.
32574         * tests/test-trunc.c: New file.
32575
32576         * modules/trunc: New file.
32577         * lib/trunc.c: New file.
32578         * m4/trunc.m4: New file.
32579         * lib/math.in.h (trunc): New declaration.
32580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32581         HAVE_DECL_TRUNC.
32582         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32583         HAVE_DECL_TRUNC.
32584         * doc/functions/trunc.texi: Mention the 'trunc' module.
32585
32586 2007-10-03  Bruno Haible  <bruno@clisp.org>
32587
32588         * tests/test-fpending.c: New file, mostly copied
32589         from coreutils/lib/t-fpending.c.
32590         * modules/fpending-tests: New file.
32591
32592 2007-10-03  Bruno Haible  <bruno@clisp.org>
32593
32594         Port the stdio extensions to QNX (untested).
32595         * lib/fseterr.c (fseterr): Add support for QNX.
32596         * lib/fbufmode.c (fbufmode): Likewise.
32597         * lib/freadable.c (freadable): Likewise.
32598         * lib/fwritable.c (fwritable): Likewise.
32599         * lib/freading.c (freading): Likewise.
32600         * lib/fwriting.c (fwriting): Likewise.
32601         * lib/freadahead.c (freadahed): Likewise.
32602         * lib/fpurge.c (fpurge): Likewise.
32603         * lib/fseeko.c (rpl_fseeko): Likewise.
32604
32605 2007-10-03  Bruno Haible  <bruno@clisp.org>
32606             Jim Meyering  <jim@meyering.net>
32607             Eric Blake  <ebb9@byu.net>
32608
32609         * doc/relocatable.texi: Use @command instead of @program.
32610
32611 2007-10-02  Jim Meyering  <jim@meyering.net>
32612
32613         Perform one more "_.h" -> ".in.h" substitution.
32614         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32615         instead of unistd_.h here, too.
32616
32617 2007-10-01  Bruno Haible  <bruno@clisp.org>
32618
32619         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32620         Needed for the alloca-opt module.
32621
32622 2007-09-30  Bruno Haible  <bruno@clisp.org>
32623
32624         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32625         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32626         alloca_.h.
32627         * lib/argz.in.h: Renamed from lib/argz_.h.
32628         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32629         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32630         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32631         byteswap_.h.
32632         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32633         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32634         dirent_.h.
32635         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32636         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32637         fcntl_.h.
32638         * lib/float.in.h: Renamed from lib/float_.h.
32639         * modules/float (Files, Makefile.am): Use float.in.h instead of
32640         float_.h.
32641         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32642         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32643         fnmatch_.h.
32644         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32645         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32646         getopt_.h.
32647         * lib/glob.in.h: Renamed from lib/glob_.h.
32648         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32649         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32650         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32651         iconv_.h.
32652         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32653         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32654         inttypes_.h.
32655         * lib/locale.in.h: Renamed from lib/locale_.h.
32656         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32657         locale_.h.
32658         * lib/math.in.h: Renamed from lib/math_.h.
32659         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32660         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32661         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32662         of netinet_in_.h. Add dependency.
32663         * lib/poll.in.h: Renamed from lib/poll_.h.
32664         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32665         * lib/search.in.h: Renamed from lib/search_.h.
32666         * modules/search (Files, Makefile.am): Use search.in.h instead of
32667         search_.h.
32668         * lib/signal.in.h: Renamed from lib/signal_.h.
32669         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32670         _signal.h.
32671         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32672         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32673         stdbool_.h.
32674         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32675         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32676         stdint_.h.
32677         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32678         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32679         stdio_.h.
32680         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32681         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32682         stdlib_.h.
32683         * lib/string.in.h: Renamed from lib/string_.h.
32684         * modules/string (Files, Makefile.am): Use string.in.h instead of
32685         string_.h.
32686         * doc/gnulib-tool.texi (Initial import): Update.
32687         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32688         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32689         of sys_select_.h. Add dependency.
32690         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32691         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32692         of sys_socket_.h.
32693         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32694         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32695         sys_stat_.h.
32696         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32697         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32698         sys_time_.h.
32699         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32700         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32701         sysexits_.h.
32702         * lib/time.in.h: Renamed from lib/time_.h.
32703         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32704         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32705         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32706         unistd_.h.
32707         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32708         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32709         wchar_.h.
32710         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32711         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32712         wctype_.h.
32713         * build-aux/bootstrap (slurp): Update.
32714         * lib/.cppi-disable: Update.
32715
32716 2007-09-30  Bruno Haible  <bruno@clisp.org>
32717
32718         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32719         Needed on BeOS.
32720
32721 2007-09-30  Bruno Haible  <bruno@clisp.org>
32722
32723         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32724
32725 2007-09-29  Bruno Haible  <bruno@clisp.org>
32726
32727         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32728
32729 2007-09-29  Bruno Haible  <bruno@clisp.org>
32730
32731         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32732         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32733         * build-aux/install-reloc: Compile also areadlink.c.
32734         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32735
32736 2007-09-29  Bruno Haible  <bruno@clisp.org>
32737
32738         * gnulib-tool (func_emit_initmacro_done): Indentation.
32739
32740 2007-09-29  Bruno Haible  <bruno@clisp.org>
32741
32742         * README: Add CVS checkout update instructions.
32743         Info from Bob Proulx <bob@proulx.com>.
32744
32745 2007-09-28  Eric Blake  <ebb9@byu.net>
32746
32747         Provide move-if-change.
32748         * build-aux/move-if-change: New file, based on best practice
32749         rather than any canonical upstream location.
32750
32751 2007-09-28  Jim Meyering  <jim@meyering.net>
32752
32753         Fix canonicalize loop-detection corner case.
32754         Do not attempt to stat the symlink values stored via seen_triple.
32755         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32756         on linux-2.6.18, (but not 2.6.22).
32757         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32758         triple_compare.  The former compares dev,ino,filename, while the latter
32759         would actually stat dirname(filename) when dev and ino were equal.
32760         * lib/hash-triple.c: Install <string.h>.
32761         (STREQ): Define.
32762         (triple_compare_ino_str): New function.
32763         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32764
32765 2007-09-28  Eric Blake  <ebb9@byu.net>
32766
32767         Enforce that AC_REPLACE_FUNCS files exist.
32768         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32769         override check for typos.
32770
32771         Fix test-closein on Solaris 10.
32772         * tests/test-closein.c (main): Don't assume stdin can be inherited
32773         closed on all systems.
32774         * tests/test-closein.sh: Likewise.
32775         Reported by Piotr Tarnowski.
32776
32777 2007-09-28  Jim Meyering  <jim@meyering.net>
32778
32779         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32780
32781 2007-09-27  Jim Meyering  <jim@meyering.net>
32782
32783         canonicalize: Avoid a false-positive cycle failure.
32784         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32785         Sort.  Remove cycle-check.
32786         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32787         not cycle-check.h.
32788         (seen_triple): New function.
32789         (canonicalize_filename_mode): Use it instead of cycle-check.
32790         * tests/test-canonicalize.c: Add a test for this bug.
32791         * tests/test-canonicalize.sh: Set up and run the test.
32792
32793         New module, file-set, from coreutils.
32794         * modules/file-set: Define it.
32795         * lib/file-set.c, lib/file-set.h: Implement.
32796
32797         New module, hash-triple, from coreutils.
32798         * modules/hash-triple: Define it.
32799         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32800
32801 2007-09-25  Eric Blake  <ebb9@byu.net>
32802
32803         Fix strerror on Interix.
32804         * lib/string_.h (strerror): Declare replacement.
32805         * doc/functions/strerror.texi (strerror): Document the Interix
32806         shortcoming.
32807         * modules/string (Makefile.am): Support new hooks.
32808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32809         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32810         gl_FUNC_STRERROR_SEPARATE.
32811         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32812         * lib/strerror.c (rpl_strerror): Provide replacement.
32813         * modules/strerror (Depends-on): Add string.
32814         (configure.ac): Detect use of module.
32815         * tests/test-strerror.c: New file.
32816         * modules/strerror-tests: New test module.
32817         * modules/argp (Depends-on): Add strerror.
32818         * modules/error (Depends-on): Likewise.
32819         Reported by Martin Koeppe.
32820
32821 2007-09-24  Bruno Haible  <bruno@clisp.org>
32822
32823         * README: Update git instructions.
32824
32825 2007-09-24  Eric Blake  <ebb9@byu.net>
32826
32827         Revert fpending breakage from 2007-09-08.
32828         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32829         __fpending.c.
32830
32831 2007-09-24  Jim Meyering  <jim@meyering.net>
32832
32833         filenamecat.c: Add a test.
32834         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32835         showing how the function works when DIR is the empty string.
32836
32837 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32838
32839         * tests/test-canonicalize.sh: Turn on executable bit.
32840
32841 2007-09-19  Eric Blake  <ebb9@byu.net>
32842
32843         * README: Update CVS instructions.
32844
32845 2007-09-18  Bruno Haible  <bruno@clisp.org>
32846
32847         * modules/areadlink: New file.
32848         * lib/areadlink.h (areadlink): New declaration.
32849         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32850
32851 2007-09-17  Jim Meyering  <jim@meyering.net>
32852
32853         * lib/savewd.c (ESTALE) [!defined]: Define.
32854         Reported to be required on Interix by Martin Koeppe.
32855
32856 2007-09-17  Bruno Haible  <bruno@clisp.org>
32857
32858         * gnulib-tool (func_version): Use $version.
32859
32860 2007-09-16  Bruno Haible  <bruno@clisp.org>
32861
32862         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32863         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32864         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32865         Reported by Greg Schafer <gschafer@zip.com.au>.
32866
32867 2007-09-15  Bruno Haible  <bruno@clisp.org>
32868
32869         * gnulib-tool (sed): Try a little harder to make bash understand the
32870         alias.
32871         Reported by Bruce Korb <bruce.korb@gmail.com>.
32872
32873 2007-09-13  Eric Blake  <ebb9@byu.net>
32874
32875         * ChangeLog: Remove conflict markers.
32876
32877 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32878
32879         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32880         Reported by Bruno Haible <bruno@clisp.org>.
32881
32882 2007-09-12  Bruno Haible  <bruno@clisp.org>
32883
32884         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32885         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32886         is not defined.
32887
32888 2007-09-12  Eric Blake  <ebb9@byu.net>
32889
32890         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32891         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32892         Autoconf definition.
32893         * modules/euidaccess (Depends-on): Add extensions, for
32894         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32895         * modules/fnmatch (Depends-on): Likewise.
32896         * modules/getaddrinfo (Depends-on): Likewise.
32897         * modules/getdelim (Depends-on): Likewise.
32898         * modules/getline (Depends-on): Likewise.
32899         * modules/getsubopt (Depends-on): Likewise.
32900         * modules/gettext (Depends-on): Likewise.
32901         * modules/group-member (Depends-on): Likewise.
32902         * modules/mbchar (Depends-on): Likewise.
32903         * modules/memmem (Depends-on): Likewise.
32904         * modules/mempcpy (Depends-on): Likewise.
32905         * modules/memrchr (Depends-on): Likewise.
32906         * modules/pagealign_alloc (Depends-on): Likewise.
32907         * modules/readutmp (Depends-on): Likewise.
32908         * modules/stpcpy (Depends-on): Likewise.
32909         * modules/stpncpy (Depends-on): Likewise.
32910         * modules/strchrnul (Depends-on): Likewise.
32911         * modules/strndup (Depends-on): Likewise.
32912         * modules/strsep (Depends-on): Likewise.
32913         * modules/strverscmp (Depends-on): Likewise.
32914         * modules/vasprintf (Depends-on): Likewise.
32915         * modules/wcwidth (Depends-on): Likewise.
32916         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32917         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32918         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32919         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32920         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32921         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32922         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32923         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32924         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32925         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32927         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32928         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32929         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32930         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32931         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32932         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32933         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32934         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32935         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32936         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32937         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32938         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32939         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32940         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32942         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32943         so that lock.m4 can be used in gettext without extensions module.
32944
32945 2007-09-11  Bruno Haible  <bruno@clisp.org>
32946
32947         * m4/isc-posix.m4: Remove file.
32948         Suggested by Eric Blake.
32949
32950 2007-09-11  Eric Blake  <ebb9@byu.net>
32951
32952         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32953
32954 2007-09-10  Bruno Haible  <bruno@clisp.org>
32955
32956         * posix-modules: Fix typo in error message.
32957         Reported by Matt <mkraai@beckman.com>.
32958
32959 2007-09-09  Bruno Haible  <bruno@clisp.org>
32960
32961         * doc/functions/getdelim.texi: Update list of platforms lacking the
32962         function.
32963         * doc/functions/getline.texi: Likewise.
32964
32965 2007-09-09  Jim Meyering  <jim@meyering.net>
32966
32967         * lib/hash.c (hash_initialize): Detect calloc failure.
32968         Reported by Bruno Haible.
32969
32970 2007-09-09  Bruno Haible  <bruno@clisp.org>
32971
32972         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32973         malloc or realloc fails.
32974
32975 2007-09-09  Bruno Haible  <bruno@clisp.org>
32976
32977         * modules/getcwd (Depends-on): Add malloc-posix.
32978         * modules/glob (Depends-on): Likewise.
32979         * modules/putenv (Depends-on): Likewise.
32980         * modules/strdup (Depends-on): Likewise.
32981         * modules/getdelim (Depends-on): Add realloc-posix.
32982         * modules/read-file (Depends-on): Likewise.
32983
32984 2007-09-09  Bruno Haible  <bruno@clisp.org>
32985
32986         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32987         (gl_FUNC_MALLOC_POSIX): Require it.
32988         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32989         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32990         * modules/realloc (Files): Add m4/malloc.m4.
32991         * modules/calloc (Files): Likewise.
32992
32993 2007-09-09  Bruno Haible  <bruno@clisp.org>
32994
32995         * modules/malloc-posix: New file.
32996         * modules/malloc (Depends-on): Add malloc-posix.
32997         * lib/malloc.c: Include errno.h.
32998         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32999         and a POSIX-compatible malloc into a single function. Set ENOMEM
33000         when returning NULL.
33001         * m4/malloc.m4: New file.
33002         * doc/functions/malloc.texi: Mention the malloc-posix module.
33003         * lib/stdlib_.h (malloc): New declaration.
33004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33005         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
33006         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
33007         and HAVE_MALLOC_POSIX.
33008
33009 2007-09-09  Bruno Haible  <bruno@clisp.org>
33010
33011         * modules/realloc-posix: New file.
33012         * modules/realloc (Depends-on): Add realloc-posix.
33013         * lib/realloc.c: Include errno.h.
33014         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
33015         and a POSIX-compatible realloc into a single function. Set ENOMEM
33016         when returning NULL.
33017         * m4/realloc.m4: New file.
33018         * doc/functions/realloc.texi: Mention the realloc-posix module.
33019         * lib/stdlib_.h (realloc): New declaration.
33020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33021         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
33022         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
33023         and HAVE_REALLOC_POSIX.
33024
33025 2007-09-09  Bruno Haible  <bruno@clisp.org>
33026
33027         * modules/calloc-posix: New file.
33028         * modules/calloc (Depends-on): Add calloc-posix.
33029         * lib/calloc.c: Include errno.h.
33030         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
33031         and a POSIX-compatible calloc into a single function. Set ENOMEM
33032         when returning NULL.
33033         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
33034         * doc/functions/calloc.texi: Mention the calloc-posix module.
33035         * lib/stdlib_.h (calloc): New declaration.
33036         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33037         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
33038         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
33039         and HAVE_CALLOC_POSIX.
33040
33041 2007-09-09  Bruno Haible  <bruno@clisp.org>
33042
33043         Allow for modules to show an arbitrary notice.
33044         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
33045         * gnulib-tool: New option --extract-notice.
33046         (func_usage): Document it.
33047         (sed_extract_prog): Update.
33048         (func_get_notice): New function.
33049         (func_modules_notice): New function.
33050         (func_import, func_create_testdir): Invoke it.
33051         Suggested by Jim Meyering.
33052
33053 2007-09-09  Bruno Haible  <bruno@clisp.org>
33054
33055         * gnulib-tool: New options --verbose, --quiet.
33056         (func_usage): Document them.
33057         (verbose): New variable.
33058         (func_execute_command): New function.
33059         (func_import): Don't show the module list and the file list if
33060         $verbose < 0.
33061         (func_create_testdir): Likewise. Use func_execute_command.
33062         (func_create_megatestdir): Use func_execute_command.
33063
33064 2007-09-08  Bruno Haible  <bruno@clisp.org>
33065
33066         * gnulib-tool (func_import): Prefer rsync over wget when available,
33067         for fetching the PO files.
33068
33069 2007-09-08  Bruno Haible  <bruno@clisp.org>
33070
33071         * posix-modules: New file. Portions copied from gnulib-tool.
33072         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
33073
33074 2007-09-08  Jim Meyering  <jim@meyering.net>
33075
33076         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
33077         * lib/fpending.h: Rename from __fpending.h.
33078         * lib/fpending.c: Rename from __fpending.c.
33079         Include "fpending.h", not "__fpending.h".
33080         * lib/__fpending.h, lib/__fpending.c: Remove files.
33081         * modules/fpending (Files): Reflect new file names.
33082         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
33083
33084 2007-09-08  Bruno Haible  <bruno@clisp.org>
33085
33086         * m4/inttypes-h.m4: Remove stub file.
33087
33088 2007-09-07  Simon Josefsson  <simon@josefsson.org>
33089
33090         * doc/headers/stdint.texi: Discuss #include_next issue.
33091
33092 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
33093
33094         * build-aux/bootstrap: Remove obsolete comment about wget --help.
33095
33096 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33097
33098         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
33099         in variable name.
33100
33101 2007-09-03  Jim Meyering  <jim@meyering.net>
33102
33103         New module: git-version-gen.
33104         * modules/git-version-gen: New file.
33105
33106         Import changes from coreutils for bootstrap script.
33107
33108         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
33109
33110         bootstrap: uses rsync to download the .po files
33111         * build-aux/bootstrap (po_download_command_format): New global.
33112         (download_po_files): Use rsync.
33113         (update_po_files): Don't remove .po files after download,
33114         so future rsync runs can take advantage of the copies.
33115
33116         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
33117
33118         Solve the unnecessary-.po-file-regeneration problem once and for all.
33119         * build-aux/bootstrap (download_po_files): New function, renamed from
33120         get_translations.  Now, downloads, but doesn't update LINGUAS.
33121         (update_po_files): New function.
33122
33123         bootstrap: Ignore more.
33124         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
33125         uniwidth to e.g., lib/.gitignore.
33126         (slurp): Handle the sys_stat_.h -> sys mapping, too.
33127
33128         * build-aux/bootstrap: New setting: vc_ignore.
33129         (insert_sorted_if_absent): Create $file if absent.
33130         Adapt to new, possibly empty, list: $vc_ignore.
33131
33132         bootstrap: generate more ignorable names
33133         * build-aux/bootstrap (slurp): When generating ignorable names,
33134         also map .sin to .sed, .gperf to .c, and .y to .c.
33135
33136 2007-09-03  Jim Meyering  <jim@meyering.net>
33137
33138         * build-aux/git-version-gen: New file, from coreutils.  For details, see
33139         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
33140
33141 2007-09-02  Bruno Haible  <bruno@clisp.org>
33142
33143         Fix mis-recognition of 'mcs' on QNX 6.
33144         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
33145         output contains the string "Mono".
33146         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
33147         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
33148
33149 2007-09-01  Bruno Haible  <bruno@clisp.org>
33150
33151         Fix collision between uniwidth/* and linebreak modules.
33152         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
33153         u32_width): Remove declarations.
33154         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
33155         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
33156         streq3, streq2, streq1, streq0): Remove functions.
33157         (STREQ): Remove macro.
33158         (is_cjk_encoding): Remove function.
33159         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
33160         (uc_width, u8_width, u16_width, u32_width): Remove functions.
33161         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
33162         * NEWS: Document the change.
33163
33164 2007-09-01  Bruno Haible  <bruno@clisp.org>
33165
33166         * lib/streq.h: Add double-inclusion guard.
33167
33168 2007-09-01  Karl Berry  <karl@gnu.org>
33169
33170         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
33171
33172 2007-08-28  Jim Meyering  <jim@meyering.net>
33173
33174         Rename mreadlink_with_size to areadlink_with_size.
33175         * NEWS: Document the change.
33176         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
33177         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
33178         * lib/mreadlink.h: Rename this to...
33179         * lib/areadlink.h: ...this.
33180         * modules/mreadlink-with-size: Rename this to...
33181         * modules/areadlink-with-size: ...this.
33182         * lib/canonicalize.c: Reflect the renaming.
33183         * modules/canonicalize: Likewise.
33184
33185 2007-08-26  Bruno Haible  <bruno@clisp.org>
33186
33187         * gnulib-tool (func_import): When deciding which files to remove,
33188         consider also dangling symbolic links.
33189         Reported by Eric Blake.
33190
33191 2007-08-26  Bruno Haible  <bruno@clisp.org>
33192
33193         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
33194
33195 2007-08-23  Simon Josefsson  <simon@josefsson.org>
33196
33197         * lib/readline.c: Don't include getline.h, the prototype is now
33198         found in stdio.h.
33199
33200 2007-08-23  Jim Meyering  <jim@meyering.net>
33201
33202         Getdelim touchup.
33203         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
33204         around the funlockfile call, since funlockfile never sets errno.
33205         Don't set errno upon failed realloc.
33206
33207 2007-08-22  Eric Blake  <ebb9@byu.net>
33208
33209         Getline touchups.
33210         * lib/getdelim.c (getdelim): Revert regression that required *n to
33211         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
33212         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
33213         getdelim, rather than whether implementation is missing.
33214         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
33215         * lib/stdio_.h (getline): Also declare if replacement is
33216         required.
33217         * doc/functions/getdelim.texi: New file.
33218         * doc/functions/getline.texi: Likewise.
33219         * doc/gnulib.texi (Function Substitutes): Add new files.
33220         Reported by Bruno Haible.
33221
33222 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
33223
33224         * users.txt: Add Guile.
33225
33226 2007-08-22  Eric Blake  <ebb9@byu.net>
33227
33228         * tests/test-getdelim.c (main): Use remove, not unlink.
33229         * tests/test-getline.c (main): Likewise.
33230
33231         Move getline and getdelim into stdio.h, per POSIX 200x.
33232         * modules/getline (Files): Remove getline.h.
33233         (Depends-on): Add stdio.
33234         (configure.ac): Add module indicator.
33235         * modules/getdelim (Files): Remove getdelim.h.
33236         (Depends-on): Add stdio.
33237         (configure.ac): Add module indicator.
33238         * modules/stdio (Makefile.am): Work with new indicators.
33239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33240         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
33241         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33242         * lib/getdelim.h: Delete.
33243         * lib/getline.h: Delete.
33244         * lib/stdio_.h (getdelim, getline): Declare.
33245         * modules/getdelim-tests: New module.
33246         * modules/getline-tests: Likewise.
33247         * tests/test-getdelim.c: New file.
33248         * tests/test-getline.c: Likewise.
33249         * NEWS: Document the change.
33250         * lib/getline.c: Update choice of header.
33251         * lib/csharpcomp.c: Likewise.
33252         * lib/getpass.c: Likewise.
33253         * lib/javacomp.c: Likewise.
33254         * lib/javaversion.c: Likewise.
33255         * lib/yesno.c: Likewise.
33256         * lib/getdelim.c: Likewise.
33257         (getdelim): Set errno on failure, and avoid memory leak.
33258
33259 2007-08-19  Bruno Haible  <bruno@clisp.org>
33260
33261         * modules/closein (Depends-on): Add freadahead.
33262         * lib/closein.c: Include freadahead.h.
33263         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
33264         is zero.
33265
33266 2007-08-19  Bruno Haible  <bruno@clisp.org>
33267
33268         * modules/freadahead-tests: New file.
33269         * tests/test-freadahead.sh: New file.
33270         * tests/test-freadahead.c: New file.
33271
33272         * modules/freadahead: New file.
33273         * lib/freadahead.h: New file.
33274         * lib/freadahead.c: New file.
33275         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
33276         fbufmode, fpurge, freadable, fwritable.
33277
33278 2007-08-19  Eric Blake  <ebb9@byu.net>
33279
33280         Test yesno in combination with closein.
33281         * lib/yesno.c (yesno): Document use of stdin.
33282         * modules/yesno-tests (Files): New module.
33283         * tests/test-yesno.c (main): New file.
33284         * tests/test-yesno.sh: Likewise.
33285
33286 2007-08-19  Bruno Haible  <bruno@clisp.org>
33287
33288         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
33289         * lib/fseeko.c (rpl_fseeko): Likewise.
33290         * lib/fseterr.c (fseterr): Likewise.
33291
33292 2007-08-19  Bruno Haible  <bruno@clisp.org>
33293
33294         * tests/test-lseek.c (main): Disable a test for BeOS.
33295         * doc/functions/lseek.texi: Document the BeOS bug.
33296
33297 2007-08-19  Bruno Haible  <bruno@clisp.org>
33298             Eric Blake  <ebb9@byu.net>
33299
33300         * lib/lseek.c: Include <sys/stat.h>.
33301         (rpl_lseek): Add workaround code also for Unix platforms.
33302         Needed for BeOS.
33303         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
33304         * doc/functions/lseek.texi: Document BeOS definiency.
33305
33306 2007-08-18  Bruno Haible  <bruno@clisp.org>
33307
33308         * modules/fstrcmp-tests: New file.
33309         * tests/test-fstrcmp.c: New file.
33310
33311 2007-08-18  Bruno Haible  <bruno@clisp.org>
33312
33313         * modules/fstrcmp: New file, from GNU gettext with modifications.
33314         * lib/fstrcmp.h: New file, from GNU gettext.
33315         * lib/fstrcmp.c: New file, from GNU gettext.
33316         * MODULES.html.sh (String handling): Add fstrcmp.
33317
33318 2007-08-18  Bruno Haible  <bruno@clisp.org>
33319
33320         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
33321         'bool'.
33322         (diag, compareseq): Remove const from the ctxt argument.
33323         (USE_HEURISTIC): Undefine at the end.
33324
33325 2007-08-18  Jim Meyering  <jim@meyering.net>
33326
33327         New file: lib/idcache.h
33328         * NEWS: Mention the addition.
33329         * modules/idcache (Files): Add lib/idcache.h
33330         * lib/idcache.c: Include "idcache.h".
33331         Don't include <sys/types.h>.
33332         Add a FIXME comment.
33333         Move file-scoped "static" declarations to the top.
33334         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33335
33336 2007-08-17  Bruno Haible  <bruno@clisp.org>
33337         and Paul Eggert  <eggert@cs.ucla.edu>
33338
33339         * MODULES.html.sh: Add diffseq.
33340         * modules/diffseq: New file.
33341         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33342         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33343
33344 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33345
33346         Import changes from coreutils for bootstrap script.
33347
33348         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33349
33350         * build-aux/bootstrap (slurp): Work even in environments where
33351         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33352         current code does not slurp files whose names start with ".", and
33353         this looks like it might be a troublesome area.
33354
33355         2007-07-11  Jim Meyering  <jim@meyering.net>
33356
33357         If there's a GPL vN copyright comment, require that N == 3.
33358
33359         2007-07-08  Jim Meyering  <jim@meyering.net>
33360
33361         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33362         * build-aux/bootstrap (mam_template): Move definition out of loop.
33363
33364         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33365
33366         * build-aux/bootstrap (symlink_to_dir): Rename function from
33367         symlink_to_gnulib.  Add a directory parameter.  Update all
33368         callers.
33369         (cp_mark_as_generated): Also check for -- and link to -- files in
33370         gl/.
33371
33372         2007-07-08  Jim Meyering  <jim@meyering.net>
33373
33374         Adapt to deeper hierarchy in gnulib.
33375         * build-aux/bootstrap (symlink_to_dir): If the destination
33376         directory doesn't exist, create it. This is required at least for
33377         "lib/uniwidth/cjk.h".
33378
33379         2007-05-15  Jim Meyering  <jim@meyering.net>
33380
33381         * build-aux/bootstrap: Now that generated Makefile.am files
33382         are no longer under version control, they must be created at
33383         bootstrap time.
33384
33385 2007-08-14  Ben Pfaff  <blp@gnu.org>
33386
33387         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33388
33389 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33390
33391         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33392         given the changes below.
33393         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33394         even on hosts that have padding bits beyond the supported 64.
33395
33396 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33397
33398         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33399         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33400         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33401         depends on it.
33402         (xstrtol_error): Remove.
33403         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33404         but with a different signature.
33405         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33406         * lib/xstrtol-error.c: Include exitfail.h.
33407         (xstrtol_fatal): New function, with a different signature from the
33408         old xstrtol_error, so that the caller need not worry about passing
33409         in an exit status, or about storage management of the option argument.
33410         (xstrtol_error): Now a static function.  Redo signature to
33411         implement xstrtol_fatal.  Output the correct number of hyphens in
33412         front of the option so that the caller need not worry about
33413         storage management.
33414         (N_): New macro.
33415         (_): Remove; not used now.
33416         * modules/xstrtol: Depend on getopt.
33417         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33418         of old STRTOL_FATAL_ERROR macro.
33419         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33420         of test program.
33421         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33422         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33423
33424 2007-08-08  Eric Blake  <ebb9@byu.net>
33425
33426         * lib/xstrtol-error.c: Add missing include.
33427
33428         Move xstrtol messages into gnulib domain, when --pobase is used.
33429         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33430         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33431         * modules/xstrtol (Files): Distribute new file.
33432         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33433         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33434         * tests/test-xstrtol.c: ...into new file.
33435         * tests/test-xstrtoul.c: Also test xstrtoul.
33436         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33437         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33438         * tests/test-xstrtol.sh: Drive the tests.
33439         * tests/test-xstrtoimax.sh: Likewise.
33440         * tests/test-xstrtoumax.sh: Likewise.
33441         * modules/xstrtol-tests: New module.
33442         * modules/xstrtoimax-tests: Likewise.
33443         * modules/xstrtoumax-tests: Likewise.
33444
33445 2007-08-08  Jim Meyering  <jim@meyering.net>
33446
33447         New function: mfile_name_concat.
33448         * lib/filenamecat.c (mfile_name_concat): New function, just like
33449         file_name_concat, but return NULL upon failure rather than exiting
33450         with a diagnostic.
33451         * lib/filenamecat.h: Declare it.
33452
33453 2007-08-07  Bruno Haible  <bruno@clisp.org>
33454
33455         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33456         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33457         warning from gcc.
33458         Reported by Eric Blake.
33459
33460 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33461
33462         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33463         * modules/crypto/arcfour (License): Likewise.
33464         * modules/crypto/des-tests (License): Likewise.
33465         * modules/crypto/gc-arctwo-tests (License): Likewise.
33466         * modules/crypto/gc-des-tests (License): Likewise.
33467         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33468         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33469         * modules/crypto/gc-md2-tests (License): Likewise.
33470         * modules/crypto/gc-md4-tests (License): Likewise.
33471         * modules/crypto/gc-md5-tests (License): Likewise.
33472         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33473         * modules/crypto/gc-rijndael-tests (License): Likewise.
33474         * modules/crypto/gc-sha1-tests (License): Likewise.
33475         * modules/crypto/gc-tests (License): Likewise.
33476         * modules/crypto/hmac-md5 (License): Likewise.
33477         * modules/crypto/hmac-sha1 (License): Likewise.
33478         * modules/crypto/md2-tests (License): Likewise.
33479         * modules/crypto/md4-tests (License): Likewise.
33480         * modules/crypto/md5 (License): Likewise.
33481         * modules/crypto/rijndael (License): Likewise.
33482         * modules/crypto/sha1 (License): Likewise.
33483         * modules/memxor (License): Likewise.
33484
33485 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33486         and Bruno Haible  <bruno@clisp.org>
33487
33488         * NEWS: Describe interface changes to human, xstrtol.
33489         * lib/human.h: Include <xstrtol.h>.
33490         (human_options): Return enum strtol_error, not int.  Remove
33491         bool arg; take int * instead.
33492         * lib/human.c: Don't include "gettext.h".
33493         (_): Remove; no longer used.
33494         Don't include <xstrtol.h>, since human.h does it.
33495         (human_options): Adjust to abovementioned interface changes.
33496         Do not report error to stderr; that's now the caller's
33497         responsibility.
33498         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33499         interface change.
33500         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33501         Str, Argument_type_string.  All uses changed.  Put " argument"
33502         in diagnostics to make them clearer.  Change wording of suffix
33503         message for clarity.
33504         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33505         Argument_type_string.
33506         (STRTOL_FATAL_WARN): Remove; no longer used.
33507         * modules/human (Depends-on): Remove gettext-h.
33508
33509 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33510
33511         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33512
33513 2007-07-31  Bruno Haible  <bruno@clisp.org>
33514
33515         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33516         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33517         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33518
33519 2007-07-31  Bruno Haible  <bruno@clisp.org>
33520
33521         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33522         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33523
33524 2007-07-30  Bruno Haible  <bruno@clisp.org>
33525
33526         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33527         * modules/c-ctype (License): Likewise.
33528         * modules/c-strcase (License): Likewise.
33529         * modules/check-version (License): Likewise.
33530         * modules/iconv (License): Likewise.
33531         * modules/iconv_open (License): Likewise.
33532         * modules/read-file (License): Likewise.
33533         * modules/striconv (License): Likewise.
33534         * modules/strverscmp (License): Likewise.
33535         * modules/vasprintf (License): Likewise.
33536         * modules/crypto/des (License): Likewise.
33537         * modules/crypto/gc (License): Likewise.
33538         * modules/crypto/gc-arcfour (License): Likewise.
33539         * modules/crypto/gc-arctwo (License): Likewise.
33540         * modules/crypto/gc-des (License): Likewise.
33541         * modules/crypto/gc-hmac-md5 (License): Likewise.
33542         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33543         * modules/crypto/gc-md2 (License): Likewise.
33544         * modules/crypto/gc-md4 (License): Likewise.
33545         * modules/crypto/gc-md5 (License): Likewise.
33546         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33547         * modules/crypto/gc-random (License): Likewise.
33548         * modules/crypto/gc-rijndael (License): Likewise.
33549         * modules/crypto/gc-sha1 (License): Likewise.
33550         * modules/crypto/md2 (License): Likewise.
33551         * modules/crypto/md4 (License): Likewise.
33552
33553 2007-07-30  Jim Meyering  <jim@meyering.net>
33554
33555         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33556         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33557         it has valid stat data.  This bug would cause du not to count the
33558         sizes of inaccessible directories.
33559         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33560         in <http://bugzilla.redhat.com/250077>.
33561
33562 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33563             Bruno Haible  <bruno@clisp.org>
33564
33565         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33566         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33567         #include_next, gives a diagnostic about it, but reports no error in
33568         the exit code.
33569         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33570
33571 2007-07-24  Ben Pfaff  <blp@gnu.org>
33572
33573         Improve name: "count-one-bits" is better than "popcount".
33574         * MODULES.html.sh: Update name.
33575         * lib/popcount.h: Renamed lib/count-one-bits.h.
33576         (popcount): Renamed count_one_bits.
33577         (popcountl): Renamed count_one_bits_l.
33578         (popcountll): Renamed count_one_bits_ll.
33579         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33580         * modules/popcount: Renamed module/count-one-bits.
33581         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33582         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33583
33584 2007-07-23  Ben Pfaff  <blp@gnu.org>
33585
33586         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33587         better code generation, and add U to large constants to avoid
33588         warnings, in non-GCC case.
33589         Suggested by Bruno Haible.
33590
33591 2007-07-23  Ben Pfaff  <blp@gnu.org>
33592
33593         * lib/popcount.h: Use verify_true instead of if...abort.
33594         * modules/popcount: Depend on verify module.
33595         Suggested by Jim Meyering.
33596
33597 2007-07-23  Bruno Haible  <bruno@clisp.org>
33598
33599         * gnulib-tool (func_import): Create a .cvsignore file also when the
33600         directory is not yet in CVS but the toplevel directory is. When
33601         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33602         Reported by Karl Berry.
33603
33604 2007-07-22  Ben Pfaff  <blp@gnu.org>
33605
33606         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33607         case.
33608         Suggested by Eric Blake.
33609
33610 2007-07-22  Ben Pfaff  <blp@gnu.org>
33611
33612         New module: popcount.
33613         * MODULES.html.sh: Add popcount.
33614         * modules/popcount: New file.
33615         * modules/popcount-tests: New file.
33616         * tests/test-popcount.c: New file.
33617         * lib/popcount.h: New file.
33618         * m4/popcount.m4: New file.
33619
33620 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33621
33622         * build-aux/announce-gen: Update to GPLv3.
33623
33624         * build-aux/config.guess: Update from config.
33625
33626 2007-07-21  Bruno Haible  <bruno@clisp.org>
33627
33628         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33629         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33630
33631 2007-07-20  Jim Meyering  <jim@meyering.net>
33632
33633         * check-module: Diagnose a self-dependency.
33634
33635 2007-07-19  Bruno Haible  <bruno@clisp.org>
33636
33637         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33638         empty.
33639         Reported by Eric Blake.
33640
33641 2007-07-18  Bruno Haible  <bruno@clisp.org>
33642
33643         * gnulib-tool: New options --po-base, --po-domain.
33644         (func_usage): Document them.
33645         (pobase, po_domain): New variables.
33646         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33647         DEFAULT_TEXT_DOMAIN.
33648         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33649         (func_import): Consider pobase and po_domain. Create a po/ directory.
33650         (func_create_testdir): Set pobase and po_domain to empty.
33651         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33652         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33653
33654 2007-07-18  Bruno Haible  <bruno@clisp.org>
33655
33656         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33657         EXTRA_DIST augmentation for files in build-aux/.
33658
33659 2007-07-16  Bruno Haible  <bruno@clisp.org>
33660
33661         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33662         * modules/getdelim (License): Likewise.
33663
33664 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33665
33666         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33667         * modules/d-type (License): Likewise.
33668         * modules/extensions (License): Likewise.
33669         * modules/fnmatch (License): Likewise.
33670         * modules/fseeko (License): Likewise.
33671         * modules/getaddrinfo (License): Likewise.
33672         * modules/getline (License): Likewise.
33673         * modules/getlogin_r (License): Likewise.
33674         * modules/getpass (License): Likewise.
33675         * modules/gettimeofday (License): Likewise.
33676         * modules/glob (License): Likewise.
33677         * modules/inet_ntop (License): Likewise.
33678         * modules/malloc (License): Likewise.
33679         * modules/malloca (License): Likewise.
33680         * modules/memmem (License): Likewise.
33681         * modules/mempcpy (License): Likewise.
33682         * modules/memset (License): Likewise.
33683         * modules/minmax (License): Likewise.
33684         * modules/mktime (License): Likewise.
33685         * modules/netinet_in (License): Likewise.
33686         * modules/pathmax (License): Likewise.
33687         * modules/poll (License): Likewise.
33688         * modules/regex (License): Likewise.
33689         * modules/snprintf (License): Likewise.
33690         * modules/stdbool (License): Likewise.
33691         * modules/stdint (License): Likewise.
33692         * modules/stdio (License): Likewise.
33693         * modules/strcase (License): Likewise.
33694         * modules/strcasestr (License): Likewise.
33695         * modules/strdup (License): Likewise.
33696         * modules/string (License): Likewise.
33697         * modules/strndup (License): Likewise.
33698         * modules/strnlen (License): Likewise.
33699         * modules/strpbrk (License): Likewise.
33700         * modules/strptime (License): Likewise.
33701         * modules/strsep (License): Likewise.
33702         * modules/sys_select (License): Likewise.
33703         * modules/sys_socket (License): Likewise.
33704         * modules/sys_stat (License): Likewise.
33705         * modules/sys_time (License): Likewise.
33706         * modules/time (License): Likewise.
33707         * modules/time_r (License): Likewise.
33708         * modules/timegm (License): Likewise.
33709         * modules/unistd (License): Likewise.
33710         * modules/vsnprintf (License): Likewise.
33711         * modules/wctype (License): Likewise.
33712
33713 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33714
33715         * modules/argz (License): LGPLv2+.
33716
33717 2007-07-15  Karl Berry  <karl@gnu.org>
33718
33719         * doc/gnulib.texi: revise node structure per new fdl.texi.
33720
33721 2007-07-14  Bruno Haible  <bruno@clisp.org>
33722
33723         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33724         the output file.
33725         * lib/uniname/uninames.h: Regenerated.
33726
33727 2007-07-14  Karl Berry  <karl@gnu.org>
33728
33729         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33730         omitting sectioning and index commands.
33731
33732 2007-07-13  Bruno Haible  <bruno@clisp.org>
33733
33734         New gnulib-tool option --more-symlinks.
33735         * gnulib-tool (func_usage): Document --more-symlinks.
33736         (do_copyrights): New variable.
33737         Recognize option --more-symlinks.
33738         (func_import): Don't add a copyright notice transform to
33739         sed_transform_lib_file if do_copyrights is empty.
33740
33741 2007-07-13  Bruno Haible  <bruno@clisp.org>
33742
33743         * lib/vasnprintf.c (decimal_point_char): Define also if
33744         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33745         && !NEED_PRINTF_DIRECTIVE_A.
33746         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33747         Gary V. Vaughan <gary@gnu.org>.
33748
33749 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33750
33751         * lib/inttypes_.h: Undo previous change, since it was fixed
33752         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33753
33754 2007-07-13  Bruno Haible  <bruno@clisp.org>
33755
33756         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33757         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33758
33759 2007-07-13  Jim Meyering  <jim@meyering.net>
33760
33761         df: Don't fail for Tru64's "file-on-file mount".
33762         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33763         so we fall through and use statfs instead.  Details here:
33764         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33765         Reported by Albert Chin.
33766
33767 2007-07-13  Bruno Haible  <bruno@clisp.org>
33768
33769         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33770         * modules/configmake (License): Likewise.
33771         * modules/gettext (License): Likewise.
33772         * modules/gettext-h (License): Likewise.
33773         * modules/include_next (License): Likewise.
33774         * modules/link-warning (License): Likewise.
33775         * modules/localcharset (License): Likewise.
33776         * modules/localename (License): Likewise.
33777         * modules/lock (License): Likewise.
33778         * modules/relocatable-lib-lgpl (License): Likewise.
33779         * modules/size_max (License): Likewise.
33780         * modules/vasnprintf (License): Likewise.
33781         * modules/wchar (License): Likewise.
33782         * modules/xsize (License): Likewise.
33783
33784 2007-07-13  Bruno Haible  <bruno@clisp.org>
33785
33786         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33787         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33788
33789 2007-07-12  Bruno Haible  <bruno@clisp.org>
33790
33791         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33792         in the modules files.
33793
33794 2007-07-11  Karl Berry  <karl@gnu.org>
33795
33796         * MODULES.html.sh (func_module): use
33797          sed -e '\|^'"${includefile}"'$|d'
33798          instead of /.../d, to avoid errors on $includefile's containing /.
33799
33800 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33801
33802         * gnulib-tool (func_import): Avoid duplication of --avoid
33803         statements
33804         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33805         names to `_' in variable names.
33806
33807 2007-07-10  Eric Blake  <ebb9@byu.net>
33808
33809         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33810         * NEWS: Document this change.
33811
33812 2007-07-08  Bruno Haible  <bruno@clisp.org>
33813
33814         Update to Unicode 5.0.
33815         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33816         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33817         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33818         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33819         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33820         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33821         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33822         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33823         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33824         U+10A3F, U+1D242..U+1D244.
33825         (nonspacing_table_ind): Update.
33826         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33827         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33828
33829 2007-07-08  Bruno Haible  <bruno@clisp.org>
33830
33831         Update to Unicode 5.0.
33832         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33833         code transform. Extend the name index field of unicode_name_to_code and
33834         unicode_code_to_name from 16 to 24 bits.
33835         * lib/uniname/uniname.c (unicode_character_name,
33836         unicode_name_character): Add the range 0x12xxx to the code transform.
33837         * lib/uniname/uninames.h: Regenerated.
33838         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33839
33840 2007-07-07  Bruno Haible  <bruno@clisp.org>
33841
33842         * modules/wcwidth-tests: New file.
33843         * tests/test-wcwidth.c: New file.
33844
33845         Work around MacOS X wcwidth() bug.
33846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33847         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33848         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33849         original wcwidth in non-UTF-8 locales.
33850         * modules/wcwidth (Depends-on): Add localcharset, streq,
33851         uniwidth/width.
33852         * doc/functions/wcwidth.texi: Update.
33853
33854 2007-07-07  Bruno Haible  <bruno@clisp.org>
33855
33856         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33857         (wcwidth): New declaration.
33858         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33859         macros.
33860         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33861         here. Prepare for creating <wchar.h> unconditionally.
33862         * modules/wchar (Depends-on): Add link-warning.
33863         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33864         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33865         * lib/wcwidth.h: Remove file.
33866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33867         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33868         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33869         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33870         (Include): Replace wcwidth.h with <wchar.h>.
33871         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33872         * lib/mbchar.h: Don't include wcwidth.h.
33873         * lib/mbswidth.c: Likewise.
33874         * NEWS: Mention the change.
33875
33876 2007-07-07  Bruno Haible  <bruno@clisp.org>
33877
33878         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33879         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33880         definition with an external declaration.
33881         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33882         defined as a function. Remove AC_C_INLINE requirement.
33883         * modules/wcwidth (Files): Add lib/wcwidth.c.
33884         (Makefile.am): Remove redundant statement.
33885
33886 2007-07-07  Bruno Haible  <bruno@clisp.org>
33887
33888         * MODULES.html.sh (Unicode string functions): Add the new modules.
33889
33890         * tests/uniwidth/test-u32-strwidth.c: New file.
33891         * modules/uniwidth/u32-strwidth-tests: New file.
33892
33893         * lib/uniwidth/u32-strwidth.c: New file.
33894         * modules/uniwidth/u32-strwidth: New file.
33895
33896         * tests/uniwidth/test-u16-strwidth.c: New file.
33897         * modules/uniwidth/u16-strwidth-tests: New file.
33898
33899         * lib/uniwidth/u16-strwidth.c: New file.
33900         * modules/uniwidth/u16-strwidth: New file.
33901
33902         * tests/uniwidth/test-u8-strwidth.c: New file.
33903         * modules/uniwidth/u8-strwidth-tests: New file.
33904
33905         * lib/uniwidth/u8-strwidth.c: New file.
33906         * modules/uniwidth/u8-strwidth: New file.
33907
33908         * tests/uniwidth/test-u32-width.c: New file.
33909         * modules/uniwidth/u32-width-tests: New file.
33910
33911         * lib/uniwidth/u32-width.c: New file.
33912         * modules/uniwidth/u32-width: New file.
33913
33914         * tests/uniwidth/test-u16-width.c: New file.
33915         * modules/uniwidth/u16-width-tests: New file.
33916
33917         * lib/uniwidth/u16-width.c: New file.
33918         * modules/uniwidth/u16-width: New file.
33919
33920         * tests/uniwidth/test-u8-width.c: New file.
33921         * modules/uniwidth/u8-width-tests: New file.
33922
33923         * lib/uniwidth/u8-width.c: New file.
33924         * modules/uniwidth/u8-width: New file.
33925
33926         * tests/uniwidth/test-uc_width.c: New file.
33927         * modules/uniwidth/width-tests: New file.
33928
33929         * lib/uniwidth/width.c: New file, from GNU libiconv.
33930         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33931         * modules/uniwidth/width: New file.
33932
33933         * lib/uniwidth.h: New file, from GNU libiconv.
33934         * modules/uniwidth/base: New file.
33935
33936 2007-07-07  Bruno Haible  <bruno@clisp.org>
33937
33938         * lib/uniname.h: New file, from GNU gettext.
33939         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33940         * lib/uniname/uninames.h: New file, from GNU gettext.
33941         * lib/uniname/uniname.c: New file, from GNU gettext.
33942         * tests/uniname/test-uninames.sh: New file.
33943         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33944         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33945         * modules/uniname/base: New file.
33946         * modules/uniname/uniname: New file.
33947         * modules/uniname/uniname-tests: New file.
33948         * MODULES.html.sh (Unicode string functions): Add the new modules.
33949
33950 2007-07-06  Bruno Haible  <bruno@clisp.org>
33951
33952         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33953
33954 2007-07-06  Bruno Haible  <bruno@clisp.org>
33955
33956         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33957         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33958         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33959         include <sys/time.h>.
33960         Reported by Eric Blake.
33961
33962 2007-07-06  Eric Blake  <ebb9@byu.net>
33963
33964         Fix testing canonicalize on cygwin.
33965         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33966         Revert patch from 2007-06-19.
33967         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33968         canonicalize module is also in use.
33969         * tests/test-canonicalize.c: New file.
33970         * tests/test-canonicalize.sh: Likewise.
33971         * modules/canonicalize-tests: Likewise.
33972
33973 2007-07-06  Jim Meyering  <jim@meyering.net>
33974
33975         * lib/getugroups.c (getugroups): Detect getgrent failure.
33976         Adjust comment to reflect reality: this function may return -1.
33977
33978 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33979
33980         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33981         the new TP address.
33982         (usage): Fix typo
33983         (gnulib_mk): New variable.
33984
33985 2007-07-05  Jim Meyering  <jim@meyering.net>
33986
33987         Don't let endgrent clobber errno, no matter how improbable.
33988         * lib/getugroups.c (getugroups): Save and restore errno around
33989         endgrent call.
33990
33991         Close the group DB even when failing with 2^31 or more members.
33992         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33993
33994 2007-07-04  Jim Meyering  <jim@meyering.net>
33995
33996         * lib/getugroups.h: New file.
33997         * lib/getugroups.c: Include "getugroups.h".
33998         Remove uses of "register" keyword.
33999         Move local variable, "cp", down into scope where used.
34000         Give "username" parameter the "const" attribute.
34001         * modules/getugroups (Files): Add lib/getugroups.h
34002
34003 2007-07-04  Karl Berry  <karl@gnu.org>
34004
34005         * MODULES.html.sh (func_all_modules): Complete rename of
34006         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
34007
34008 2007-07-02  Bruno Haible  <bruno@clisp.org>
34009
34010         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
34011         mode, when inttypes.h comes from gnulib.
34012         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34013
34014 2007-07-02  Simon Josefsson  <simon@josefsson.org>
34015
34016         * NEWS: Mention lgpl module name change.
34017
34018         * modules/lgpl-2.1: Renamed from lgpl.
34019
34020         * NEWS: Mention gpl module name change.
34021
34022         * modules/gpl-3.0: New file, based on gpl-2.0.
34023
34024         * modules/gpl-2.0: Renamed from gpl.
34025
34026         * modules/gpl: Fix filename, doc/gpl.texi is now found at
34027         doc/gpl-2.0.texi.
34028
34029 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34030
34031         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
34032         #define __STDC_LIMIT_MACROS temporarily while including
34033         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
34034         Problem reported by Joel E. Denny in
34035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
34036
34037 2007-07-01  Bruno Haible  <bruno@clisp.org>
34038
34039         * lib/unistdio.h: New file.
34040         * lib/unistdio/u-asnprintf.h: New file.
34041         * lib/unistdio/u-asprintf.h: New file.
34042         * lib/unistdio/u-printf-args.c: New file.
34043         * lib/unistdio/u-printf-args.h: New file.
34044         * lib/unistdio/u-printf-parse.h: New file.
34045         * lib/unistdio/u-snprintf.h: New file.
34046         * lib/unistdio/u-sprintf.h: New file.
34047         * lib/unistdio/u-vasprintf.h: New file.
34048         * lib/unistdio/u-vsnprintf.h: New file.
34049         * lib/unistdio/u-vsprintf.h: New file.
34050         * lib/unistdio/ulc-asnprintf.c: New file.
34051         * lib/unistdio/ulc-asprintf.c: New file.
34052         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
34053         * lib/unistdio/ulc-printf-parse.c: New file.
34054         * lib/unistdio/ulc-snprintf.c: New file.
34055         * lib/unistdio/ulc-sprintf.c: New file.
34056         * lib/unistdio/ulc-vasnprintf.c: New file.
34057         * lib/unistdio/ulc-vasprintf.c: New file.
34058         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
34059         * lib/unistdio/ulc-vsnprintf.c: New file.
34060         * lib/unistdio/ulc-vsprintf.c: New file.
34061         * lib/unistdio/u8-asnprintf.c: New file.
34062         * lib/unistdio/u8-asprintf.c: New file.
34063         * lib/unistdio/u8-printf-parse.c: New file.
34064         * lib/unistdio/u8-snprintf.c: New file.
34065         * lib/unistdio/u8-sprintf.c: New file.
34066         * lib/unistdio/u8-vasnprintf.c: New file.
34067         * lib/unistdio/u8-vasprintf.c: New file.
34068         * lib/unistdio/u8-vsnprintf.c: New file.
34069         * lib/unistdio/u8-vsprintf.c: New file.
34070         * lib/unistdio/u8-u8-asnprintf.c: New file.
34071         * lib/unistdio/u8-u8-asprintf.c: New file.
34072         * lib/unistdio/u8-u8-snprintf.c: New file.
34073         * lib/unistdio/u8-u8-sprintf.c: New file.
34074         * lib/unistdio/u8-u8-vasnprintf.c: New file.
34075         * lib/unistdio/u8-u8-vasprintf.c: New file.
34076         * lib/unistdio/u8-u8-vsnprintf.c: New file.
34077         * lib/unistdio/u8-u8-vsprintf.c: New file.
34078         * lib/unistdio/u16-asnprintf.c: New file.
34079         * lib/unistdio/u16-asprintf.c: New file.
34080         * lib/unistdio/u16-printf-parse.c: New file.
34081         * lib/unistdio/u16-snprintf.c: New file.
34082         * lib/unistdio/u16-sprintf.c: New file.
34083         * lib/unistdio/u16-vasnprintf.c: New file.
34084         * lib/unistdio/u16-vasprintf.c: New file.
34085         * lib/unistdio/u16-vsnprintf.c: New file.
34086         * lib/unistdio/u16-vsprintf.c: New file.
34087         * lib/unistdio/u16-u16-asnprintf.c: New file.
34088         * lib/unistdio/u16-u16-asprintf.c: New file.
34089         * lib/unistdio/u16-u16-snprintf.c: New file.
34090         * lib/unistdio/u16-u16-sprintf.c: New file.
34091         * lib/unistdio/u16-u16-vasnprintf.c: New file.
34092         * lib/unistdio/u16-u16-vasprintf.c: New file.
34093         * lib/unistdio/u16-u16-vsnprintf.c: New file.
34094         * lib/unistdio/u16-u16-vsprintf.c: New file.
34095         * lib/unistdio/u32-asnprintf.c: New file.
34096         * lib/unistdio/u32-asprintf.c: New file.
34097         * lib/unistdio/u32-printf-parse.c: New file.
34098         * lib/unistdio/u32-snprintf.c: New file.
34099         * lib/unistdio/u32-sprintf.c: New file.
34100         * lib/unistdio/u32-vasnprintf.c: New file.
34101         * lib/unistdio/u32-vasprintf.c: New file.
34102         * lib/unistdio/u32-vsnprintf.c: New file.
34103         * lib/unistdio/u32-vsprintf.c: New file.
34104         * lib/unistdio/u32-u32-asnprintf.c: New file.
34105         * lib/unistdio/u32-u32-asprintf.c: New file.
34106         * lib/unistdio/u32-u32-snprintf.c: New file.
34107         * lib/unistdio/u32-u32-sprintf.c: New file.
34108         * lib/unistdio/u32-u32-vasnprintf.c: New file.
34109         * lib/unistdio/u32-u32-vasprintf.c: New file.
34110         * lib/unistdio/u32-u32-vsnprintf.c: New file.
34111         * lib/unistdio/u32-u32-vsprintf.c: New file.
34112         * tests/unistdio/test-ulc-asnprintf1.c: New file.
34113         * tests/unistdio/test-ulc-asnprintf1.h: New file.
34114         * tests/unistdio/test-ulc-printf1.h: New file.
34115         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
34116         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
34117         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
34118         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
34119         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
34120         * tests/unistdio/test-ulc-vasprintf1.c: New file.
34121         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
34122         * tests/unistdio/test-ulc-vsprintf1.c: New file.
34123         * tests/unistdio/test-u8-asnprintf1.c: New file.
34124         * tests/unistdio/test-u8-asnprintf1.h: New file.
34125         * tests/unistdio/test-u8-printf1.h: New file.
34126         * tests/unistdio/test-u8-vasnprintf1.c: New file.
34127         * tests/unistdio/test-u8-vasnprintf2.c: New file.
34128         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
34129         * tests/unistdio/test-u8-vasnprintf3.c: New file.
34130         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
34131         * tests/unistdio/test-u8-vasprintf1.c: New file.
34132         * tests/unistdio/test-u8-vsnprintf1.c: New file.
34133         * tests/unistdio/test-u8-vsprintf1.c: New file.
34134         * tests/unistdio/test-u16-asnprintf1.c: New file.
34135         * tests/unistdio/test-u16-asnprintf1.h: New file.
34136         * tests/unistdio/test-u16-printf1.h: New file.
34137         * tests/unistdio/test-u16-vasnprintf1.c: New file.
34138         * tests/unistdio/test-u16-vasnprintf2.c: New file.
34139         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
34140         * tests/unistdio/test-u16-vasnprintf3.c: New file.
34141         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
34142         * tests/unistdio/test-u16-vasprintf1.c: New file.
34143         * tests/unistdio/test-u16-vsnprintf1.c: New file.
34144         * tests/unistdio/test-u16-vsprintf1.c: New file.
34145         * tests/unistdio/test-u32-asnprintf1.c: New file.
34146         * tests/unistdio/test-u32-asnprintf1.h: New file.
34147         * tests/unistdio/test-u32-printf1.h: New file.
34148         * tests/unistdio/test-u32-vasnprintf1.c: New file.
34149         * tests/unistdio/test-u32-vasnprintf2.c: New file.
34150         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
34151         * tests/unistdio/test-u32-vasnprintf3.c: New file.
34152         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
34153         * tests/unistdio/test-u32-vasprintf1.c: New file.
34154         * tests/unistdio/test-u32-vsnprintf1.c: New file.
34155         * tests/unistdio/test-u32-vsprintf1.c: New file.
34156         * modules/unistdio/base: New file.
34157         * modules/unistdio/u-printf-args: New file.
34158         * modules/unistdio/ulc-asnprintf: New file.
34159         * modules/unistdio/ulc-asprintf: New file.
34160         * modules/unistdio/ulc-fprintf: New file.
34161         * modules/unistdio/ulc-printf-parse: New file.
34162         * modules/unistdio/ulc-snprintf: New file.
34163         * modules/unistdio/ulc-sprintf: New file.
34164         * modules/unistdio/ulc-vasnprintf: New file.
34165         * modules/unistdio/ulc-vasprintf: New file.
34166         * modules/unistdio/ulc-vfprintf: New file.
34167         * modules/unistdio/ulc-vsnprintf: New file.
34168         * modules/unistdio/ulc-vsprintf: New file.
34169         * modules/unistdio/u8-asnprintf: New file.
34170         * modules/unistdio/u8-asprintf: New file.
34171         * modules/unistdio/u8-printf-parse: New file.
34172         * modules/unistdio/u8-snprintf: New file.
34173         * modules/unistdio/u8-sprintf: New file.
34174         * modules/unistdio/u8-vasnprintf: New file.
34175         * modules/unistdio/u8-vasprintf: New file.
34176         * modules/unistdio/u8-vsnprintf: New file.
34177         * modules/unistdio/u8-vsprintf: New file.
34178         * modules/unistdio/u8-u8-asnprintf: New file.
34179         * modules/unistdio/u8-u8-asprintf: New file.
34180         * modules/unistdio/u8-u8-snprintf: New file.
34181         * modules/unistdio/u8-u8-sprintf: New file.
34182         * modules/unistdio/u8-u8-vasnprintf: New file.
34183         * modules/unistdio/u8-u8-vasprintf: New file.
34184         * modules/unistdio/u8-u8-vsnprintf: New file.
34185         * modules/unistdio/u8-u8-vsprintf: New file.
34186         * modules/unistdio/u16-asnprintf: New file.
34187         * modules/unistdio/u16-asprintf: New file.
34188         * modules/unistdio/u16-printf-parse: New file.
34189         * modules/unistdio/u16-snprintf: New file.
34190         * modules/unistdio/u16-sprintf: New file.
34191         * modules/unistdio/u16-vasnprintf: New file.
34192         * modules/unistdio/u16-vasprintf: New file.
34193         * modules/unistdio/u16-vsnprintf: New file.
34194         * modules/unistdio/u16-vsprintf: New file.
34195         * modules/unistdio/u16-u16-asnprintf: New file.
34196         * modules/unistdio/u16-u16-asprintf: New file.
34197         * modules/unistdio/u16-u16-snprintf: New file.
34198         * modules/unistdio/u16-u16-sprintf: New file.
34199         * modules/unistdio/u16-u16-vasnprintf: New file.
34200         * modules/unistdio/u16-u16-vasprintf: New file.
34201         * modules/unistdio/u16-u16-vsnprintf: New file.
34202         * modules/unistdio/u16-u16-vsprintf: New file.
34203         * modules/unistdio/u32-asnprintf: New file.
34204         * modules/unistdio/u32-asprintf: New file.
34205         * modules/unistdio/u32-printf-parse: New file.
34206         * modules/unistdio/u32-snprintf: New file.
34207         * modules/unistdio/u32-sprintf: New file.
34208         * modules/unistdio/u32-vasnprintf: New file.
34209         * modules/unistdio/u32-vasprintf: New file.
34210         * modules/unistdio/u32-vsnprintf: New file.
34211         * modules/unistdio/u32-vsprintf: New file.
34212         * modules/unistdio/u32-u32-asnprintf: New file.
34213         * modules/unistdio/u32-u32-asprintf: New file.
34214         * modules/unistdio/u32-u32-snprintf: New file.
34215         * modules/unistdio/u32-u32-sprintf: New file.
34216         * modules/unistdio/u32-u32-vasnprintf: New file.
34217         * modules/unistdio/u32-u32-vasprintf: New file.
34218         * modules/unistdio/u32-u32-vsnprintf: New file.
34219         * modules/unistdio/u32-u32-vsprintf: New file.
34220         * modules/unistdio/ulc-asnprintf-tests: New file.
34221         * modules/unistdio/ulc-vasnprintf-tests: New file.
34222         * modules/unistdio/ulc-vasprintf-tests: New file.
34223         * modules/unistdio/ulc-vsnprintf-tests: New file.
34224         * modules/unistdio/ulc-vsprintf-tests: New file.
34225         * modules/unistdio/u8-asnprintf-tests: New file.
34226         * modules/unistdio/u8-vasnprintf-tests: New file.
34227         * modules/unistdio/u8-vasprintf-tests: New file.
34228         * modules/unistdio/u8-vsnprintf-tests: New file.
34229         * modules/unistdio/u8-vsprintf-tests: New file.
34230         * modules/unistdio/u16-asnprintf-tests: New file.
34231         * modules/unistdio/u16-vasnprintf-tests: New file.
34232         * modules/unistdio/u16-vasprintf-tests: New file.
34233         * modules/unistdio/u16-vsnprintf-tests: New file.
34234         * modules/unistdio/u16-vsprintf-tests: New file.
34235         * modules/unistdio/u32-asnprintf-tests: New file.
34236         * modules/unistdio/u32-vasnprintf-tests: New file.
34237         * modules/unistdio/u32-vasprintf-tests: New file.
34238         * modules/unistdio/u32-vsnprintf-tests: New file.
34239         * modules/unistdio/u32-vsprintf-tests: New file.
34240         * MODULES.html.sh (Unicode string functions): Add the new modules.
34241
34242 2007-07-01  Bruno Haible  <bruno@clisp.org>
34243
34244         * lib/sprintf.c (sprintf): Limit the available length estimation,
34245         to avoid address wraparound.
34246         * lib/vsprintf.c (vsprintf): Likewise.
34247         * modules/sprintf-posix (Dependencies): Add stdint.
34248         * modules/vsprintf-posix (Dependencies): Likewise.
34249
34250 2007-07-01  Bruno Haible  <bruno@clisp.org>
34251
34252         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
34253         Windows PATH as well. Conservative double-quoting. Comments.
34254
34255 2007-07-01  Bruno Haible  <bruno@clisp.org>
34256             Eric Blake  <ebb9@byu.net>
34257             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34258
34259         * gnulib-tool (self_abspathname): Fix algorithm to cope with
34260         empty components in $PATH, denoting '.'.
34261
34262 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34263
34264         * gnulib-tool: Fix indentation.
34265         (func_create_megatestdir): Likewise.
34266         Report by Bruno Haible.
34267
34268 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34269
34270         Sync from Automake.
34271         * build-aux/gnupload: Fix shell portability issues with for loops.
34272         Report by Karl Berry.
34273
34274 2007-06-29  Simon Josefsson  <simon@josefsson.org>
34275
34276         * build-aux/maint.mk (POURL): Use translationproject.org.
34277
34278 2007-06-27  Simon Josefsson  <simon@josefsson.org>
34279             Bruno Haible  <bruno@clisp.org>
34280
34281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
34282         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
34283         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
34284         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
34285         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
34286
34287 2007-06-27  Bruno Haible  <bruno@clisp.org>
34288
34289         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
34290         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
34291
34292 2007-06-26  Karl Berry  <karl@gnu.org>
34293
34294         * MODULES.html.sh: remove xreadlink-with-size.
34295
34296 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34297
34298         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
34299         method that I hope also handles the double-include problem noted
34300         by Bruno Haible in
34301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
34302
34303 2007-06-23  Bruno Haible  <bruno@clisp.org>
34304
34305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34306         Don't let the 'mostlyclean' target fail if the last subdirectory could
34307         not be removed.
34308         Reported by Karl Berry.
34309
34310 2007-06-23  Bruno Haible  <bruno@clisp.org>
34311
34312         * gnulib-tool (echo): Add a speedier workaround for ksh.
34313         * tests/test-echo.sh: Likewise.
34314
34315 2007-06-23  Bruno Haible  <bruno@clisp.org>
34316
34317         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
34318         * tests/test-echo.sh: Likewise.
34319
34320 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34321
34322         * gnulib-tool (IFS): Initialize early, so we don't set it to
34323         empty later.
34324         (self_abspathname): Rewrite algorithm to set it, reindent.
34325         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
34326         (func_create_megatestdir): Merge some sed scripts.
34327
34328 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34329
34330         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
34331         exposed by Sun Studio 11 cc on Solaris 8.
34332
34333 2007-06-22  Bruno Haible  <bruno@clisp.org>
34334
34335         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34336         backslashes.
34337         * tests/test-echo.sh: New file.
34338
34339 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34340
34341         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34342         simplify `sed_replace_build_aux' scripts, they are portable but
34343         echoing them with `echo' is not.
34344         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34345
34346 2007-06-21  Karl Berry  <karl@gnu.org>
34347
34348         * config/srclist.txt: guess we can't handle the licenses via
34349         srclist at the moment.
34350
34351 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34352
34353         * MODULES.html.sh: Add include_next.
34354         * modules/include_next: New file.
34355
34356 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34357
34358         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34359         INCLUDE_NEXT.
34360         (gl_CHECK_NEXT_HEADERS): New macro.
34361         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34362         the obsolescent gl_ABSOLUTE_HEADER.
34363         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34364         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34365         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34366         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34367         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34368         * m4/math_h.m4 (gl_MATH_H): Likewise.
34369         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34370         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34371         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34372         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34373         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34374         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34375         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34376         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34377         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34378         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34379         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34380         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34381         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34382         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34383         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34384         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34385         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34386         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34387         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34388         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34389         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34390         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34391         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34392         * lib/float_.h: Likewise.
34393         * lib/inttypes_.h: Likewise.
34394         * lib/math_.h: Likewise.
34395         * lib/search_.h: Likewise.
34396         * lib/signal_.h: Likewise.
34397         * lib/stdint_.h: Likewise.
34398         * lib/stdio_.h: Likewise.
34399         * lib/stdlib_.h: Likewise.
34400         * lib/string_.h: Likewise.
34401         * lib/sys_stat_.h: Likewise.
34402         * lib/sys_time_.h: Likewise.
34403         * lib/time_.h: Likewise.
34404         * lib/unistd_.h: Likewise.
34405         * lib/wchar_.h: Likewise.
34406         * lib/wctype_.h: Likewise.
34407         * lib/dirent_.h: Likewise.
34408         * lib/iconv_.h: Likewise.
34409         * lib/locale_.h: Likewise.
34410         * lib/netinet_in_.h: Likewise.
34411         * lib/sys_select_.h: Likewise.
34412         * lib/sys_socket_.h: Likewise.
34413         * lib/sysexits_.h: Likewise.
34414         * modules/fcntl (Depends-on): Depend on include_next, not
34415         absolute_header.
34416         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34417         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34418         * modules/fchdir: Likewise.
34419         * modules/float: Likewise.
34420         * modules/iconv_open: Likewise.
34421         * modules/inttypes: Likewise.
34422         * modules/locale: Likewise.
34423         * modules/math: Likewise.
34424         * modules/netinet_in: Likewise.
34425         * modules/search: Likewise.
34426         * modules/signal: Likewise.
34427         * modules/stdint: Likewise.
34428         * modules/stdio: Likewise.
34429         * modules/stdlib: Likewise.
34430         * modules/string: Likewise.
34431         * modules/sys_select: Likewise.
34432         * modules/sys_socket: Likewise.
34433         * modules/sys_stat: Likewise.
34434         * modules/sys_time: Likewise.
34435         * modules/sysexits: Likewise.
34436         * modules/time: Likewise.
34437         * modules/unistd: Likewise.
34438         * modules/wchar: Likewise.
34439         * modules/wctype: Likewise.
34440         * modules/sys_stat: Change maintainer to "all".
34441         * modules/unistd: Likewise.
34442
34443 2007-06-20  Karl Berry  <karl@gnu.org>
34444
34445         * config/srclist.txt: track www changes in license files.
34446
34447 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34448
34449         * build-aux/bootstrap: Remove stray dot.
34450         Make sure build_aux settings are honored when linking
34451         gnulib_extra_files.
34452
34453 2007-06-19  Eric Blake  <ebb9@byu.net>
34454
34455         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34456         Allow compilation on cygwin.
34457
34458 2007-06-19  Jim Meyering  <jim@meyering.net>
34459
34460         xreadlink-with-size: Remove module.  No longer used.
34461         Ex-callers now use xreadlink or mreadlink-with-size.
34462         * modules/xreadlink-with-size: Remove module.
34463         * lib/xreadlink-with-size.c: Remove file.
34464         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34465         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34466         just before the function definition *is* accurate.
34467
34468         Eliminate one way canonicalize_filename_mode could exit.
34469         * lib/canonicalize.c (canonicalize_filename_mode):
34470         Use mreadlink_with_size, not xreadlink_with_size.
34471
34472 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34473
34474         Detect porting problems to FreeBSD/arm, which has time_t wider than
34475         long int.  Original problem reported for GNU diff by Xin Li in
34476         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34477         * modules/getdate (Depends-on): Add intprops, verify.
34478         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34479         is an integer type no wider than long int.
34480
34481 2007-06-18  Jim Meyering  <jim@meyering.net>
34482
34483         New module: mreadlink-with-size.
34484         * MODULES.html.sh: Add mreadlink-with-size.
34485         * modules/mreadlink-with-size: New module
34486         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34487         not xreadlink-with-size.
34488         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34489
34490 2007-06-16  Bruno Haible  <bruno@clisp.org>
34491
34492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34493         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34494         Reported by Gary V. Vaughan <gary@gnu.org>.
34495
34496 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34497
34498         Revamp lchown so that it lives in unistd.h where it belongs.
34499         * lib/lchown.h: Remove.
34500         * lib/dirchownmod.c: Don't include lib/lchown.h.
34501         * lib/fchownat.c: Likewise.
34502         * lib/openat.c: Likewise.
34503         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34504         does not follow symlinks.
34505         (EOPNOTSUPP): Define if not defined.
34506         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34507         is defined to 0.
34508         (lchown): New decl.
34509         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34510         Do not check for lchown decl.
34511         Set REPLACE_LCHOWN.
34512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34513         REPLACE_LCHOWN.
34514         * modules/chown: Make it clear it follows symlinks.
34515         * modules/lchown: Make it clear it doesn't follow symlinks.
34516         (Files): Remove lib/lchown.h
34517         (Depends-on): Add unistd.
34518         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34519         (Include): Include <unistd.h>, not "lchown.h".
34520         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34521         REPLACE_LCHOWN.
34522
34523 2007-06-15  Jim Meyering  <jim@meyering.net>
34524
34525         Change license (GPL to LGPL) of fsusage and dependents.
34526         * modules/fsusage (License): Change to LGPL.
34527         * modules/full-read (License): Likewise.
34528         * modules/full-write (License): Likewise.
34529         * modules/safe-read (License): Likewise.
34530         * modules/safe-write (License): Likewise.
34531
34532 2007-06-14  Ben Pfaff  <blp@gnu.org>
34533
34534         Missing part of allocsa -> malloca transition.
34535         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34536         gl_MALLOCA.
34537
34538 2007-06-12  Bruno Haible  <bruno@clisp.org>
34539
34540         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34541         to ia64, x86_64, i386.
34542         Reported by Eric Blake.
34543
34544 2007-06-12  Bruno Haible  <bruno@clisp.org>
34545
34546         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34547         cross-compiling to x86_64.
34548
34549 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34550
34551         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34552         glitch reported by Ralf Wildenhues in
34553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34554
34555         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34556         Vin Shelton.
34557
34558 2007-06-11  Bruno Haible  <bruno@clisp.org>
34559
34560         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34561         replacement string.
34562         Reported by Eric Blake.
34563
34564 2007-06-10  Bruno Haible  <bruno@clisp.org>
34565
34566         Prepare vasnprintf code for use with Unicode strings.
34567         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34568         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34569         TYPE_U32_STRING.
34570         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34571         a_u32_string variants.
34572         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34573         * lib/printf-args.c: Don't include config.h and the specification
34574         header if PRINTF_FETCHARGS is already defined.
34575         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34576         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34577         TYPE_U16_STRING, TYPE_U32_STRING.
34578         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34579         u16_directive, u16_directives, u32_directive, u32_directives): New
34580         types.
34581         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34582         New declarations.
34583         * lib/printf-parse.c: Don't include config.h and the specification
34584         header if PRINTF_PARSE is already defined. Eliminate the set of
34585         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34586         them now. Include c-ctype.h.
34587         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34588         directive and CHAR_T_ONLY_ASCII.
34589         * lib/vasnprintf.c: Don't include config.h and the specification header
34590         if VASNPRINTF is already defined.
34591         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34592         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34593         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34594         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34595         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34596         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34597         code accordingly.
34598         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34599         pad_ourselves also in this case, with the 'c' and 's' directives, and
34600         with a different notion of "width".
34601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34602
34603 2007-06-10  Bruno Haible  <bruno@clisp.org>
34604
34605         * modules/unistr/u32-mbsnlen: New file.
34606         * lib/unistr/u32-mbsnlen.c: New file.
34607
34608         * modules/unistr/u16-mbsnlen: New file.
34609         * lib/unistr/u16-mbsnlen.c: New file.
34610
34611         * modules/unistr/u8-mbsnlen: New file.
34612         * lib/unistr/u8-mbsnlen.c: New file.
34613
34614         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34615         declarations.
34616
34617 2007-06-10  Bruno Haible  <bruno@clisp.org>
34618
34619         * lib/string_.h (mbsnlen): New declaration.
34620         * lib/mbsnlen.c: New file.
34621         * m4/mbsnlen.m4: New file.
34622         * modules/mbsnlen: New file.
34623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34624         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34625         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34626
34627 2007-06-10  Bruno Haible  <bruno@clisp.org>
34628
34629         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34630
34631 2007-06-10  Bruno Haible  <bruno@clisp.org>
34632
34633         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34634         * lib/mbuiter.h: Likewise.
34635
34636 2007-06-10  Bruno Haible  <bruno@clisp.org>
34637
34638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34639         declaration.
34640
34641 2007-06-10  Karl Berry  <karl@gnu.org>
34642
34643         * config/srclist.txt: remove gettext entries, Bruno prefers
34644         to update individually.
34645
34646 2007-06-10  Bruno Haible  <bruno@clisp.org>
34647
34648         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34649         'maxlen'. Ensure only length + width bytes are allocated, not
34650         length + 1 + width.
34651
34652 2007-06-09  Bruno Haible  <bruno@clisp.org>
34653
34654         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34655         (CHAR_T): Remove macro.
34656         (VASNPRINTF): Update.
34657
34658 2007-06-09  Bruno Haible  <bruno@clisp.org>
34659
34660         * MODULES.html.sh (Unicode string functions): Add the new modules.
34661
34662         * modules/uniconv/u32-conv-to-enc: New file.
34663         * lib/uniconv/u32-conv-to-enc.c: New file.
34664         * modules/uniconv/u32-conv-to-enc-tests: New file.
34665         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34666
34667         * modules/uniconv/u16-conv-to-enc: New file.
34668         * lib/uniconv/u16-conv-to-enc.c: New file.
34669         * lib/uniconv/u-conv-to-enc.h: New file.
34670         * modules/uniconv/u16-conv-to-enc-tests: New file.
34671         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34672
34673         * modules/uniconv/u8-conv-to-enc: New file.
34674         * lib/uniconv/u8-conv-to-enc.c: New file.
34675         * modules/uniconv/u8-conv-to-enc-tests: New file.
34676         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34677
34678         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34679         u32_conv_to_encoding): New declarations.
34680
34681 2007-06-09  Bruno Haible  <bruno@clisp.org>
34682
34683         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34684
34685 2007-06-09  Bruno Haible  <bruno@clisp.org>
34686
34687         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34688         * modules/malloca: Renamed from modules/allocsa, updated.
34689         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34690         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34691         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34692         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34693         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34694         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34695         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34696         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34697         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34698         * modules/c-strcasestr (Depends-on): Update.
34699         * lib/c-strcasestr.c: Update.
34700         * modules/c-strstr (Depends-on): Update.
34701         * lib/c-strstr.c: Update.
34702         * modules/canonicalize-lgpl (Depends-on): Update.
34703         * lib/canonicalize-lgpl.c: Update.
34704         * modules/clean-temp (Depends-on): Update.
34705         * lib/clean-temp.c: Update.
34706         * modules/csharpcomp (Depends-on): Update.
34707         * lib/csharpcomp.c: Update.
34708         * modules/csharpexec (Depends-on): Update.
34709         * lib/csharpexec.c: Update.
34710         * modules/javacomp (Depends-on): Update.
34711         * lib/javacomp.c: Update.
34712         * modules/javaexec (Depends-on): Update.
34713         * lib/javaexec.c: Update.
34714         * modules/mbscasestr (Depends-on): Update.
34715         * lib/mbscasestr.c: Update.
34716         * modules/mbsstr (Depends-on): Update.
34717         * lib/mbsstr.c: Update.
34718         * modules/setenv (Depends-on): Update.
34719         * lib/setenv.c: Update.
34720         * modules/strcasestr (Depends-on): Update.
34721         * lib/strcasestr.c: Update.
34722         * modules/striconveha (Depends-on): Update.
34723         * lib/striconveha.c: Update.
34724         * modules/relocatable-prog-wrapper (Files): Update.
34725         * lib/relocwrapper.c: Update.
34726         * build-aux/install-reloc: Update.
34727         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34728
34729 2007-06-08  Bruno Haible  <bruno@clisp.org>
34730
34731         Port to uClibc.
34732         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34733         * lib/fpurge.c (fpurge): Likewise.
34734         * lib/freading.c (freading): Likewise.
34735         * lib/fseeko.c (rpl_fseeko): Likewise.
34736         * lib/fseterr.c (fseterr): Likewise.
34737         * lib/fwriting.c (fwriting): Likewise.
34738         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34739
34740 2007-06-08  Bruno Haible  <bruno@clisp.org>
34741
34742         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34743         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34744         * modules/gettext (Files): Add m4/intlmacosx.m4.
34745
34746 2007-06-07  Bruno Haible  <bruno@clisp.org>
34747
34748         * modules/localename-tests: New file.
34749         * tests/test-localename.c: New file.
34750
34751         New module 'localename'.
34752         * lib/localename.h: New file.
34753         * lib/localename.c: New file, from GNU gettext.
34754         * m4/localename.m4: New file.
34755         * modules/localename: New file.
34756
34757 2007-06-07  Bruno Haible  <bruno@clisp.org>
34758
34759         Work around the lack of <wchar.h> on some builds of uClibc.
34760         * doc/headers/wchar.texi: Update.
34761         * lib/wchar_.h: Include <wchar.h> only if it exists.
34762         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34763         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34764         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34765         doesn't exist.
34766         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34767         * modules/mbfile (Depends-on): Add wchar.
34768         * modules/mbiter (Depends-on): Likewise.
34769         * modules/mbuiter (Depends-on): Likewise.
34770         Reported by Simon Josefsson.
34771
34772 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34773
34774         Work around problem reported by Steven M. Schweda in
34775         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34776         Tru64 5.1B with the Compaq compiler environment installed declares
34777         an 'isblank' function but does not define it in the C library.
34778         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34779         * lib/regex_internal.h (isblank): Likewise.
34780         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34781         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34782
34783 2007-06-05  Bruno Haible  <bruno@clisp.org>
34784
34785         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34786         ia64.
34787         * modules/printf-safe: New file.
34788         * modules/fprintf-posix (Depends-on): Add printf-safe.
34789         * modules/printf-posix (Depends-on): Likewise.
34790         * modules/snprintf-posix (Depends-on): Likewise.
34791         * modules/sprintf-posix (Depends-on): Likewise.
34792         * modules/vasnprintf-posix (Depends-on): Likewise.
34793         * modules/vasprintf-posix (Depends-on): Likewise.
34794         * modules/vfprintf-posix (Depends-on): Likewise.
34795         * modules/vprintf-posix (Depends-on): Likewise.
34796         * modules/vsnprintf-posix (Depends-on): Likewise.
34797         * modules/vsprintf-posix (Depends-on): Likewise.
34798         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34799         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34800         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34801         "no" on i386, x86_64, ia64.
34802         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34803         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34804         on i386, x86_64, ia64.
34805         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34806         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34807         on i386, x86_64, ia64.
34808         * tests/test-vasnprintf-posix.c: Include float.h.
34809         (LDBL80_WORDS): New macro.
34810         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34811         on i386, x86_64, ia64.
34812         * tests/test-vasprintf-posix.c: Include float.h.
34813         (LDBL80_WORDS): New macro.
34814         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34815         on i386, x86_64, ia64.
34816         * tests/test-snprintf-posix.c: Include float.h.
34817         * tests/test-sprintf-posix.c: Likewise.
34818         * tests/test-vsnprintf-posix.c: Likewise.
34819         * tests/test-vsprintf-posix.c: Likewise.
34820
34821 2007-06-05  Bruno Haible  <bruno@clisp.org>
34822
34823         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34824         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34825         non-IEEE numbers on i386, x86_64, ia64.
34826         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34827         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34828         * tests/test-isnanl.h: Include float.h.
34829         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34830
34831 2007-06-05  Bruno Haible  <bruno@clisp.org>
34832
34833         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34834         also the %a / %A. Handle the %a / %A code before this extra handling.
34835
34836 2007-06-05  Bruno Haible  <bruno@clisp.org>
34837
34838         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34839         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34840
34841 2007-06-05  Bruno Haible  <bruno@clisp.org>
34842
34843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34844         typo in variable name.
34845
34846 2007-06-05  Eric Blake  <ebb9@byu.net>
34847
34848         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34849         Reported by Simon Josefsson.
34850
34851 2007-06-04  Bruno Haible  <bruno@clisp.org>
34852
34853         Avoid test failures on some PowerPC platforms.
34854         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34855         Define differently for PowerPC.
34856         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34857         Reported by Gary V. Vaughan <gary@gnu.org>.
34858
34859 2007-06-02  Bruno Haible  <bruno@clisp.org>
34860
34861         Fix test-stdint failure on FreeBSD/ia64.
34862         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34863         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34864         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34865         * doc/headers/stdint.texi: Update.
34866
34867 2007-06-01  Bruno Haible  <bruno@clisp.org>
34868
34869         * tests/test-binary-io.c (main): Pass a third argument to open().
34870         Reported by Gary V. Vaughan <gary@gnu.org>.
34871
34872 2007-06-01  Bruno Haible  <bruno@clisp.org>
34873
34874         * doc/functions/frexpl.texi: Update for mingw.
34875
34876 2007-06-01  Bruno Haible  <bruno@clisp.org>
34877
34878         * tests/test-lseek.c (main): Disable test of errno for invalid third
34879         argument.
34880         * doc/functions/lseek.texi: Update.
34881         Reported by Gary V. Vaughan <gary@gnu.org>.
34882
34883 2007-05-28  Bruno Haible  <bruno@clisp.org>
34884
34885         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34886
34887 2007-05-31  Eric Blake  <ebb9@byu.net>
34888
34889         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34890         cross compiling.
34891
34892 2007-05-30  Eric Blake  <ebb9@byu.net>
34893         and Bruno Haible  <bruno@clisp.org>
34894
34895         Work around mingw test failures exposed by m4-1.4.9b.
34896         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34897         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34898         moment.
34899
34900 2007-05-30  Bruno Haible  <bruno@clisp.org>
34901
34902         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34903         assuming that they are closed. Needed on HP-UX 11.
34904
34905 2007-05-29  Bruno Haible  <bruno@clisp.org>
34906
34907         Fix a problem with #include_next.
34908         * lib/dirent_.h: Split the double-inclusion guard.
34909         * lib/fcntl_.h: Likewise.
34910         * lib/float_.h: Likewise.
34911         * lib/iconv_.h: Likewise.
34912         * lib/inttypes_.h: Likewise.
34913         * lib/locale_.h: Likewise.
34914         * lib/math_.h: Likewise.
34915         * lib/netinet_in_.h: Likewise.
34916         * lib/search_.h: Likewise.
34917         * lib/signal_.h: Likewise.
34918         * lib/stdint_.h: Likewise.
34919         * lib/stdio_.h: Likewise.
34920         * lib/stdlib_.h: Likewise.
34921         * lib/string_.h: Likewise.
34922         * lib/sys_select_.h: Likewise.
34923         * lib/sys_socket_.h: Likewise.
34924         * lib/sys_stat_.h: Likewise.
34925         * lib/sys_time_.h: Likewise.
34926         * lib/sysexits_.h: Likewise.
34927         * lib/time_.h: Likewise.
34928         * lib/unistd_.h: Likewise.
34929         * lib/wchar_.h: Likewise.
34930         * lib/wctype_.h: Likewise.
34931
34932 2007-05-29  Bruno Haible  <bruno@clisp.org>
34933
34934         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34935         for the moment.
34936
34937 2007-05-29  Bruno Haible  <bruno@clisp.org>
34938
34939         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34940         invocation.
34941         Reported by Eric Blake.
34942
34943 2007-05-29  Bruno Haible  <bruno@clisp.org>
34944
34945         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34946         compiling case.
34947
34948 2007-05-29  Eric Blake  <ebb9@byu.net>
34949             Bruno Haible  <bruno@clisp.org>
34950
34951         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34952         cross compiles.
34953
34954 2007-05-28  Eric Blake  <ebb9@byu.net>
34955
34956         * modules/closein-tests (test_closein_LDADD): Support test on
34957         cygwin with libtool.
34958
34959 2007-05-28  Bruno Haible  <bruno@clisp.org>
34960
34961         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34962         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34963         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34964         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34965         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34966         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34967         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34968         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34969         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34970
34971 2007-05-28  Eric Blake  <ebb9@byu.net>
34972
34973         Unconditionally include <config.h> in unit tests.
34974         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34975         * tests/test-allocsa.c, tests/test-arcfour.c,
34976         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34977         tests/test-array_list.c, tests/test-array_oset.c,
34978         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34979         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34980         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34981         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34982         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34983         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34984         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34985         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34986         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34987         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34988         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34989         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34990         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34991         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34992         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34993         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34994         test-md5.c, test-memmem.c, test-printf-posix.c,
34995         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34996         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34997         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34998         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34999         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
35000         test-vasnprintf-posix2.c, test-vasnprintf.c,
35001         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
35002         test-vfprintf-posix.c, test-vprintf-posix.c,
35003         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
35004         test-xvasprintf.c: Likewise.
35005
35006 2007-05-28  Bruno Haible  <bruno@clisp.org>
35007
35008         * gnulib-tool (func_import): Remember the --with-tests command-line
35009         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
35010         Reported by Eric Blake.
35011
35012 2007-05-28  Bruno Haible  <bruno@clisp.org>
35013
35014         * modules/ftell-tests: New file.
35015         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
35016         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
35017
35018         * lib/ftell.c: New file.
35019         * modules/ftell: New file.
35020         * m4/ftell.m4: New file.
35021         * doc/functions/ftell.texi: Update.
35022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
35023         REPLACE_FTELL.
35024         * lib/stdio_.h (rpl_ftell): New declaration.
35025         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
35026         REPLACE_FTELL.
35027
35028 2007-05-28  Eric Blake  <ebb9@byu.net>
35029
35030         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
35031
35032 2007-05-28  Bruno Haible  <bruno@clisp.org>
35033
35034         * modules/fseek-tests: New file.
35035         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
35036         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
35037
35038         * lib/fseek.c: New file.
35039         * modules/fseek: New file.
35040         * m4/fseek.m4: New file.
35041         * doc/functions/fseek.texi: Update.
35042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
35043         REPLACE_FSEEK.
35044         * lib/stdio_.h (rpl_fseek): New declaration.
35045         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
35046         REPLACE_FSEEK.
35047
35048 2007-05-28  Bruno Haible  <bruno@clisp.org>
35049
35050         * lib/stdio_.h (fflush): More comments.
35051
35052 2007-05-28  Bruno Haible  <bruno@clisp.org>
35053
35054         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
35055         runtime test.
35056
35057 2007-05-28  Eric Blake  <ebb9@byu.net>
35058
35059         Improve lseek module.
35060         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
35061         * lib/unistd_.h (lseek): Scale back link warning message.
35062         * tests/test-lseek.c: Beef up test.
35063         * tests/test-lseek.sh: Exercise more facets of lseek.
35064         Reported by Bruno Haible.
35065
35066 2007-05-28  Bruno Haible  <bruno@clisp.org>
35067
35068         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
35069         to define.
35070
35071 2007-05-27  Bruno Haible  <bruno@clisp.org>
35072
35073         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
35074
35075 2007-05-27  Bruno Haible  <bruno@clisp.org>
35076
35077         * modules/openmp: New file.
35078         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
35079         Noah Misch.
35080
35081 2007-05-26  Bruno Haible  <bruno@clisp.org>
35082
35083         * modules/chdir-long (Depends-on): Add fchdir.
35084         * modules/chdir-safer (Depends-on): Likewise.
35085         * modules/fts (Depends-on): Likewise.
35086         * modules/fts-lgpl (Depends-on): Likewise.
35087         * modules/openat (Depends-on): Likewise.
35088         * modules/savewd (Depends-on): Likewise.
35089
35090 2007-05-24  Eric Blake  <ebb9@byu.net>
35091
35092         Fix lseek on mingw.
35093         * modules/lseek: New module.
35094         * m4/lseek.m4: New file.
35095         * lib/lseek.c: New file.
35096         * modules/lseek-tests: New file.
35097         * tests/test-lseek.c: New file.
35098         * tests/test-lseek.sh: New file.
35099         * MODULES.html.sh: Document lseek module.
35100         * modules/fflush (Depends-on): Add lseek, fseeko.
35101         * modules/fseeko (Depends-on): Likewise.
35102         * modules/ftello (Depends-on): Likewise.
35103         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
35104         broken.
35105         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
35106         broken.
35107         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
35108         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
35109         * lib/ftello.c (rpl_ftello): Likewise.
35110         * tests/test-fseeko.c (main): Test this.
35111         * tests/test-fseeko.sh: Likewise.
35112         * tests/test-ftello.c (main): Likewise.
35113         * tests/test-ftello.sh: Likewise.
35114         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
35115         implies replacing fseek.
35116         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
35117         HAVE_FTELLO.
35118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
35119         * modules/unistd (Makefile.am): Likewise.
35120         * lib/unistd_.h (lseek): Declare a replacement.
35121         * doc/functions/lseek.texi (lseek): Document this fix.
35122         * doc/functions/fseek.texi (fseek): Likewise.
35123         * doc/functions/ftell.texi (ftell): Likewise.
35124
35125 2007-05-24  Bruno Haible  <bruno@clisp.org>
35126
35127         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
35128         in the printed representation of a NaN.
35129         * tests/test-vasprintf-posix.c (test_function): Likewise.
35130         * tests/test-snprintf-posix.h (test_function): Likewise.
35131         * tests/test-sprintf-posix.h (test_function): Likewise.
35132         Reported by Eric Blake.
35133
35134 2007-05-23  Eric Blake  <ebb9@byu.net>
35135
35136         Fix fseeko/ftello on cygwin 1.5.24.
35137         * doc/functions/fseeko.texi (fseeko): Document the fix.
35138         * doc/functions/ftello.texi (ftello): Document the fix.
35139         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
35140         * doc/functions/stdout.text (stdout): New file.
35141         * doc/functions/stderr.text (stderr): New file.
35142         * doc/gnulib.texi (Function Substitutes): Use new files.
35143         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
35144         prior to 1.7.0.
35145         * tests/test-ftello.c (main): Likewise for ftello.
35146         * tests/test-fseeko.sh: New file.
35147         * tests/test-ftello.sh: New file.
35148         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
35149         with seekable stdin.
35150         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
35151         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
35152         (gl_REPLACE_FSEEKO): New macro.
35153         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
35154         * modules/fseeko (Files): Distribute fseeko.c.
35155         * modules/ftello (Files): Distribute ftello.c.
35156         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
35157         mode.
35158         * lib/ftello.c (rpl_ftello): New file.
35159         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
35160         fseeko, ftello.
35161         (gl_STDIN_LARGE_OFFSET): New macro.
35162         * modules/stdio (Makefile.am): Perform the replacement.
35163         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
35164
35165 2007-05-23  Bruno Haible  <bruno@clisp.org>
35166
35167         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
35168         GNULIB_POSIXCHECK is defined.
35169
35170 2007-05-21  Bruno Haible  <bruno@clisp.org>
35171
35172         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
35173         Check also the output for NaN arguments. When cross-compiling, guess
35174         no on IRIX.
35175         * lib/vasnprintf.c: Update comments.
35176         * tests/test-vasnprintf-posix.c (strisnan): New function.
35177         (test_function): Use it.
35178         * tests/test-vasprintf-posix.c (strisnan): New function.
35179         (test_function): Use it.
35180         * tests/test-snprintf-posix.h (strisnan): New function.
35181         (test_function): Use it.
35182         * tests/test-sprintf-posix.h (strisnan): New function.
35183         (test_function): Use it.
35184         Reported by Eric Blake.
35185
35186 2007-05-20  Bruno Haible  <bruno@clisp.org>
35187
35188         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
35189         numbers that fails on BeOS.
35190         * doc/functions/frexpl.texi: Update.
35191
35192 2007-05-20  Jim Meyering  <jim@meyering.net>
35193
35194         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
35195         forced upon us by glibc-2.6.
35196
35197 2007-05-20  Bruno Haible  <bruno@clisp.org>
35198
35199         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
35200         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
35201         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
35202         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
35203         NEED_PRINTF_INFINITE.
35204         (is_infinitel): New function.
35205         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
35206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
35207         gl_PREREQ_VASNPRINTF_INFINITE.
35208         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
35209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35210         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
35211         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
35212         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
35213         gl_PREREQ_VASNPRINTF_INFINITE.
35214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35221         * doc/functions/fprintf.texi: Update.
35222         * doc/functions/printf.texi: Update.
35223         * doc/functions/snprintf.texi: Update.
35224         * doc/functions/sprintf.texi: Update.
35225         * doc/functions/vfprintf.texi: Update.
35226         * doc/functions/vprintf.texi: Update.
35227         * doc/functions/vsnprintf.texi: Update.
35228         * doc/functions/vsprintf.texi: Update.
35229
35230 2007-05-20  Bruno Haible  <bruno@clisp.org>
35231
35232         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
35233         was not found in libc.
35234         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
35235
35236 2007-05-20  Bruno Haible  <bruno@clisp.org>
35237
35238         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35239         printed as "-nan" instead of "nan".
35240         * tests/test-vasprintf-posix.c (test_function): Likewise.
35241         * tests/test-snprintf-posix.h (test_function): Likewise.
35242         * tests/test-sprintf-posix.h (test_function): Likewise.
35243         Needed for HP-UX 11.
35244
35245 2007-05-20  Jim Meyering  <jim@meyering.net>
35246
35247         Fix buggy test for the fchownat-deref bug.
35248         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
35249         symlink required for the run-test.  Without it, this test would
35250         always declare that fchownat doesn't work, and client code would
35251         unnecessarily use the replacement function with fixed libc.
35252         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
35253         Reported by Greg Schafer.
35254
35255 2007-05-19  Bruno Haible  <bruno@clisp.org>
35256
35257         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
35258         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
35259         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
35260         Needed for IRIX 6.5 and Solaris 2.5.1.
35261
35262 2007-05-19  Bruno Haible  <bruno@clisp.org>
35263
35264         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
35265         (test_function): Skip tests involving -0.0 on platforms where
35266         -0.0 = 0.0.
35267         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
35268         (test_function): Skip tests involving -0.0 on platforms where
35269         -0.0 = 0.0.
35270         * tests/test-snprintf-posix.h (have_minus_zero): New function.
35271         (test_function): Skip tests involving -0.0 on platforms where
35272         -0.0 = 0.0.
35273         * tests/test-sprintf-posix.h (have_minus_zero): New function.
35274         (test_function): Skip tests involving -0.0 on platforms where
35275         -0.0 = 0.0.
35276         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
35277         tests.
35278         * tests/test-printf-posix.h (test_function): Likewise.
35279         * tests/test-printf-posix.output: Remove all -0.0 related results.
35280         Needed for IRIX 6.5.
35281
35282 2007-05-19  Bruno Haible  <bruno@clisp.org>
35283
35284         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35285         printed as "nan0x7fffffff" instead of "nan".
35286         * tests/test-vasprintf-posix.c (test_function): Likewise.
35287         * tests/test-snprintf-posix.h (test_function): Likewise.
35288         * tests/test-sprintf-posix.h (test_function): Likewise.
35289         * tests/test-fprintf-posix.h (NaN): Remove macro.
35290         (test_function): Remove all NaN related tests.
35291         * tests/test-printf-posix.h (NaN): Remove macro.
35292         (test_function): Remove all NaN related tests.
35293         * tests/test-printf-posix.output: Remove all NaN related results.
35294         Needed for IRIX 6.5.
35295
35296 2007-05-19  Bruno Haible  <bruno@clisp.org>
35297
35298         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
35299         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
35300
35301 2007-05-19  Bruno Haible  <bruno@clisp.org>
35302
35303         * lib/float_.h: New file.
35304         * m4/float_h.m4: New file.
35305         * modules/float: New file.
35306         * modules/isnanl (Dependencies): Add float.
35307         * modules/isnanl-nolibm (Dependencies): Likewise.
35308         * modules/mathl (Dependencies): Likewise.
35309         * modules/printf-frexpl (Dependencies): Likewise.
35310         * modules/signbit (Dependencies): Likewise.
35311         * modules/vasnprintf (Dependencies): Likewise.
35312         * doc/headers/float.texi: Update.
35313
35314 2007-05-19  Jim Meyering  <jim@meyering.net>
35315
35316         * lib/utimens.c (gl_futimens): Rename from futimens,
35317         now that glibc-2.6 declares futimens.
35318         * lib/utimens.h: Likewise.
35319
35320 2007-05-19  Bruno Haible  <bruno@clisp.org>
35321
35322         Avoid test failures on mingw.
35323         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
35324         * tests/test-printf-posix.sh: Likewise.
35325         * tests/test-vfprintf-posix.sh: Likewise.
35326         * tests/test-vprintf-posix.sh: Likewise.
35327
35328 2007-05-19  Bruno Haible  <bruno@clisp.org>
35329
35330         Fix *printf result for NaN, Inf, -0.0 on mingw.
35331         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
35332         * lib/vasnprintf.c: Include math.h and isnan.h.
35333         (is_infinite_or_zero): New function.
35334         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35335         values in the %f, %F, %e, %E, %g, %G directives.
35336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35338         gl_PRINTF_INFINITE and test its result. Invoke
35339         gl_PREREQ_VASNPRINTF_INFINITE.
35340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35341         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35342         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35343         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35344         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35345         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35346         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35347         * doc/functions/fprintf.texi: Update.
35348         * doc/functions/printf.texi: Update.
35349         * doc/functions/snprintf.texi: Update.
35350         * doc/functions/sprintf.texi: Update.
35351         * doc/functions/vfprintf.texi: Update.
35352         * doc/functions/vprintf.texi: Update.
35353         * doc/functions/vsnprintf.texi: Update.
35354         * doc/functions/vsprintf.texi: Update.
35355
35356 2007-05-19  Bruno Haible  <bruno@clisp.org>
35357
35358         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35359         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35360         Instead of multiplying with 10^k, set extra_zeroes to k.
35361         (scale10_round_long_double): Remove function.
35362
35363 2007-05-18  Bruno Haible  <bruno@clisp.org>
35364
35365         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35366         introduced on 2007-05-06.
35367
35368 2007-05-18  Bruno Haible  <bruno@clisp.org>
35369
35370         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35371         %g directives.
35372         * tests/test-vasprintf-posix.c (test_function): Likewise.
35373         * tests/test-snprintf-posix.h (test_function): Likewise.
35374         * tests/test-sprintf-posix.h (test_function): Likewise.
35375
35376 2007-05-18  Bruno Haible  <bruno@clisp.org>
35377
35378         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35379         (strmatch): New function.
35380         (test_function): Test the %f directive on numbers of various exponents.
35381         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35382         (strmatch): New function.
35383         (test_function): Test the %f directive on numbers of various exponents.
35384         * tests/test-snprintf-posix.h (strmatch): New function.
35385         (test_function): Test the %f directive on numbers of various exponents.
35386         * tests/test-sprintf-posix.h (strmatch): New function.
35387         (test_function): Test the %f directive on numbers of various exponents.
35388         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35389         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35390         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35391         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35392
35393 2007-05-18  Bruno Haible  <bruno@clisp.org>
35394
35395         Add support for 'long double' number output.
35396         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35397         * lib/vasnprintf.c: Include math.h and float+.h.
35398         (mp_limb_t): New type.
35399         (GMP_LIMB_BITS): New macro.
35400         (mp_twolimb_t): New type.
35401         (GMP_TWOLIMB_BITS): New macro.
35402         (mpn_t): New type.
35403         (multiply, divide, convert_to_decimal, decode_long_double,
35404         scale10_round_long_double, scale10_round_decimal_long_double,
35405         floorlog10l): New functions.
35406         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35407         for the %f, %F, %e, %E, %g, %G directives.
35408         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35409         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35410         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35411         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35419         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35420         * modules/snprintf-posix (Depends-on): Likewise.
35421         * modules/sprintf-posix (Depends-on): Likewise.
35422         * modules/vasnprintf-posix (Depends-on): Likewise.
35423         * modules/vasprintf-posix (Depends-on): Likewise.
35424         * modules/vfprintf-posix (Depends-on): Likewise.
35425         * modules/vsnprintf-posix (Depends-on): Likewise.
35426         * modules/vsprintf-posix (Depends-on): Likewise.
35427         * modules/vasnprintf (Files): Add lib/float+.h.
35428         * doc/functions/fprintf.texi: Update.
35429         * doc/functions/printf.texi: Update.
35430         * doc/functions/snprintf.texi: Update.
35431         * doc/functions/sprintf.texi: Update.
35432         * doc/functions/vfprintf.texi: Update.
35433         * doc/functions/vprintf.texi: Update.
35434         * doc/functions/vsnprintf.texi: Update.
35435         * doc/functions/vsprintf.texi: Update.
35436
35437 2007-05-18  Bruno Haible  <bruno@clisp.org>
35438
35439         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35440
35441 2007-05-18  Bruno Haible  <bruno@clisp.org>
35442
35443         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35444         for printing 64-bit integers. Needed for mingw.
35445
35446 2007-05-18  Bruno Haible  <bruno@clisp.org>
35447
35448         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35449         gl_FUNC_FREXPL_WORKS.
35450         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35451
35452 2007-05-18  Bruno Haible  <bruno@clisp.org>
35453
35454         * modules/frexpl-nolibm-tests: New file.
35455
35456         * modules/frexpl-nolibm: New file.
35457         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35458
35459 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35460
35461         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35462         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35463         GCC 4.2, which otherwise issues a lot of warnings.
35464         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35465         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35466         Likewise.
35467         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35468         * modules/iconv_open (iconv.h): Likewise.
35469         * modules/locale (locale.h): Likewise.
35470         * modules/netinet_in (netinet/in.h): Likewise.
35471         * modules/sys_select (sys_select.h): Likewise.
35472         * modules/sys_socket (sys/socket.h): Likewise.
35473         * modules/sys_stat (sys/stat.h): Likewise.
35474         * modules/sysexits (sysexits.h): Likewise.
35475         * modules/unistd (unistd.h): Likewise.
35476
35477 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35478
35479         * modules/closein-tests (Makefile.am): Distribute
35480         `test-closein.sh'.
35481
35482 2007-05-17  Bruno Haible  <bruno@clisp.org>
35483
35484         * tests/test-printf-posix.output: Renamed from
35485         tests/test-fprintf-posix.out.
35486         * modules/fprintf-posix-tests: Update.
35487         * modules/printf-posix-tests: Update.
35488         * modules/vfprintf-posix-tests: Update.
35489         * modules/vprintf-posix-tests: Update.
35490         * tests/test-fprintf-posix.sh: Update.
35491         * tests/test-printf-posix.sh: Update.
35492         * tests/test-vfprintf-posix.sh: Update.
35493         * tests/test-vprintf-posix.sh: Update.
35494         Reported by Ralf Wildenhues.
35495
35496 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35497
35498         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35499         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35500         GCC 4.2, which otherwise issues a lot of warnings.
35501         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35502         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35503         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35504         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35505         it should no longer be needed.
35506         * lib/string_.h: Likewise.
35507         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35508         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35509         * modules/inttypes (inttypes.h): Likewise.
35510         * modules/math (math.h): Likewise.
35511         * modules/search (search.h): Likewise.
35512         * modules/signal (signal.h): Likewise.
35513         * modules/stdint (stdint.h): Likewise.
35514         * modules/stdio (stdio.h): Likewise.
35515         * modules/stdlib (stdlib.h): Likewise.
35516         * modules/string (string.h): Likewise.
35517         * modules/sys_time (sys/time.h): Likewise.
35518         * modules/time (time.h): Likewise.
35519         * modules/wchar (wchar.h): Likewise.
35520         * modules/wctype (wtype.h): Likewise.
35521
35522 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35523
35524         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35525
35526 2007-05-13  Bruno Haible  <bruno@clisp.org>
35527
35528         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35529         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35530         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35531         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35532         (gl_PREREQ_STRTOK_R): Don't require it here.
35533
35534 2007-05-13  Bruno Haible  <bruno@clisp.org>
35535
35536         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35537         when used in C++ mode.
35538
35539 2007-05-12  Bruno Haible  <bruno@clisp.org>
35540
35541         * lib/linebuffer.h: Tweak doc.
35542         * lib/linebuffer.c: Likewise.
35543
35544 2007-05-12  James Youngman  <jay@gnu.org>
35545
35546         * lib/linebuffer.c (readlinebuffer_delim): New function,
35547         like readlinebuffer, but use a caller-specified delimiter.
35548         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35549         as the delimiter.
35550         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35551
35552 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35553
35554         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35555         * modules/openat (Files): Remove openat-die.c.
35556         (Depends-on): Add openat-die.
35557         * modules/openat-die: New module.
35558
35559 2007-05-06  Bruno Haible  <bruno@clisp.org>
35560
35561         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35562         Update with info about Cygwin.
35563         * doc/functions/fprintf.texi: Update.
35564         * doc/functions/printf.texi: Update.
35565         * doc/functions/snprintf.texi: Update.
35566         * doc/functions/sprintf.texi: Update.
35567         * doc/functions/vfprintf.texi: Update.
35568         * doc/functions/vprintf.texi: Update.
35569         * doc/functions/vsnprintf.texi: Update.
35570         * doc/functions/vsprintf.texi: Update.
35571         Reported by Eric Blake.
35572
35573 2007-05-06  Bruno Haible  <bruno@clisp.org>
35574
35575         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35576         padding ourselves for the floating-point directives.
35577         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35578         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35579         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35580         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35581         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35582         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35583         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35584         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35585         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35586         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35587         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35588         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35589         * tests/test-snprintf-posix.h (test_function): Also check the width
35590         and some flags in the %f directive.
35591         * tests/test-sprintf-posix.h (test_function): Likewise.
35592         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35593         * tests/test-vasprintf-posix.c (test_function): Likewise.
35594         * doc/functions/fprintf.texi: Update.
35595         * doc/functions/printf.texi: Update.
35596         * doc/functions/snprintf.texi: Update.
35597         * doc/functions/sprintf.texi: Update.
35598         * doc/functions/vfprintf.texi: Update.
35599         * doc/functions/vprintf.texi: Update.
35600         * doc/functions/vsnprintf.texi: Update.
35601         * doc/functions/vsprintf.texi: Update.
35602
35603 2007-05-06  Bruno Haible  <bruno@clisp.org>
35604
35605         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35606         pass the ' flag character to sprintf or snprintf.
35607         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35608         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35610         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35611         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35612         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35614         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35615         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35616         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35618         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35619         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35620         flag.
35621         * tests/test-sprintf-posix.h (test_function): Likewise.
35622         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35623         * tests/test-vasprintf-posix.c (test_function): Likewise.
35624         * doc/functions/fprintf.texi: Update.
35625         * doc/functions/printf.texi: Update.
35626         * doc/functions/snprintf.texi: Update.
35627         * doc/functions/sprintf.texi: Update.
35628         * doc/functions/vfprintf.texi: Update.
35629         * doc/functions/vprintf.texi: Update.
35630         * doc/functions/vsnprintf.texi: Update.
35631         * doc/functions/vsprintf.texi: Update.
35632
35633 2007-05-01  Bruno Haible  <bruno@clisp.org>
35634
35635         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35636
35637 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35638
35639         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35640         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35641
35642 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35643
35644         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35645         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35646         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35647
35648 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35649
35650         * lib/argp-help.c (struct hol_entry): New member `ord'.
35651         (HOL_ENTRY_PTRCMP): Use ord for comparison
35652         (hol_sort): Initialize ord.
35653
35654 2007-05-01  Bruno Haible  <bruno@clisp.org>
35655
35656         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35657         Reported by Eric Blake.
35658         * doc/gnulib.texi (Function Substitutes): Update.
35659
35660 2007-05-01  Bruno Haible  <bruno@clisp.org>
35661
35662         * doc/functions.texi: Remove file, now redundant through
35663         doc/functions/*.texi.
35664
35665 2007-05-01  Bruno Haible  <bruno@clisp.org>
35666
35667         * modules/argp (Depends-on): Add sleep.
35668
35669 2007-05-01  Bruno Haible  <bruno@clisp.org>
35670
35671         * modules/sleep-tests: New file.
35672         * tests/test-sleep.c: New file.
35673
35674         * modules/sleep: New file.
35675         * lib/sleep.c: New file.
35676         * m4/sleep.m4: New file.
35677         * lib/unistd_.h (sleep): New declaration.
35678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35679         HAVE_SLEEP.
35680         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35681         * doc/functions/sleep.texi: Document the sleep module.
35682
35683 2007-05-01  Bruno Haible  <bruno@clisp.org>
35684
35685         * lib/sigprocmask.h: Remove file.
35686         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35687         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35688         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35689         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35690         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35691         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35692         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35693         HAVE_SIGSET_T as a shell variable.
35694         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35695         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35696         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35697         (Depends-on): Add signal. Remove verify.
35698         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35699         (Include): Mention <signal.h> instead of sigprocmask.h.
35700         * NEWS: Mention the change.
35701         * lib/fatal-signal.c: Don't include sigprocmask.h.
35702
35703 2007-05-01  Bruno Haible  <bruno@clisp.org>
35704
35705         * modules/signal: New file.
35706         * lib/signal_.h: New file.
35707         * m4/signal_h.m4: New file.
35708
35709 2007-05-01  Bruno Haible  <bruno@clisp.org>
35710
35711         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35712         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35713         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35714         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35715
35716 2007-05-01  Bruno Haible  <bruno@clisp.org>
35717
35718         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35719         configure time.
35720         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35721         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35722         * modules/sys_stat (Makefile.am): Substitute their values into
35723         sys/stat.h.
35724
35725 2007-05-01  Bruno Haible  <bruno@clisp.org>
35726
35727         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35728         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35729         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35730
35731 2007-05-01  Bruno Haible  <bruno@clisp.org>
35732
35733         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35734         'assert' module here.
35735
35736 2007-05-01  Bruno Haible  <bruno@clisp.org>
35737
35738         * doc/functions/*.texi: New files.
35739         * doc/functions/google-ranking.txt: New file.
35740         * doc/gnulib.texi (Function Substitutes): New chapter.
35741         (ctime, inet_ntoa): Remove sections.
35742         * doc/ctime.texi: Remove file.
35743         * doc/inet_ntoa.texi: Remove file.
35744         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35745         dependencies.
35746         (%.info): New rule, specifying a --reference-limit.
35747
35748 2007-05-01  Bruno Haible  <bruno@clisp.org>
35749
35750         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35751
35752 2007-05-01  Bruno Haible  <bruno@clisp.org>
35753
35754         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35755         the portability of 'mkdir' to mingw systems.
35756
35757 2007-05-01  Bruno Haible  <bruno@clisp.org>
35758
35759         * doc/headers/google-ranking.txt: New file.
35760
35761 2007-04-30  Eric Blake  <ebb9@byu.net>
35762
35763         Prefer fseeko to fseek.
35764         * modules/getpass (Depends-on): Add fseeko.
35765         * lib/getpass.c (getpass): Use fseeko, not fseek.
35766
35767 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35768
35769         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35770         assumes the sorting is stable, while most qsort implementations
35771         are not.  Use argument addresses to ensure they never compare as
35772         equal.
35773
35774         * tests/test-argp-2.sh (usage-indent test): Fix output
35775         (func_compare): Restore diff options
35776         * tests/test-argp.c: Restore #include "progname.h"
35777
35778 2007-04-29  Bruno Haible  <bruno@clisp.org>
35779
35780         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35781         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35782         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35783         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35784         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35785         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35786         (TESTS, check_PROGRAMS): Add test-snprintf.
35787         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35788         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35789         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35790         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35791         assertions that fail on HP-UX, OSF/1, or IRIX.
35792         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35793
35794 2007-04-29  Bruno Haible  <bruno@clisp.org>
35795
35796         * MODULES.html.sh (posix_functions): Remove 'contents'.
35797
35798 2007-04-29  Karl Berry  <karl@gnu.org>
35799
35800         * config/srclist.txt (gendocs_template_min): new entry.
35801
35802 2007-04-29  Bruno Haible  <bruno@clisp.org>
35803
35804         Work around fpurge bug on BSD systems.
35805         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35806         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35807         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35808         fpurge to rpl_fpurge if the system already has this function.
35809         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35810         the case where the system already has this function. Correct invariants
35811         on BSD systems.
35812         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35813         BSD systems.
35814
35815 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35816
35817         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35818         proposed by Sven Verdoolaege.
35819
35820         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35821         options.
35822         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35823         (usage and help tests): Update
35824
35825 2007-04-29  Bruno Haible  <bruno@clisp.org>
35826
35827         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35828         Print more information in case of failure. Disable a test on BeOS.
35829
35830 2007-04-29  Bruno Haible  <bruno@clisp.org>
35831
35832         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35833         This helps debugging on systems on which no gdb is available.
35834
35835 2007-04-29  Bruno Haible  <bruno@clisp.org>
35836
35837         * lib/freading.h: Improve comments.
35838         * lib/fwriting.h: Likewise.
35839         * tests/test-freading.c (main): Don't check freading immediately after
35840         repositioning. Needed for glibc.
35841
35842 2007-04-29  Bruno Haible  <bruno@clisp.org>
35843
35844         * lib/freading.c (freading): Trivial simplification.
35845
35846 2007-04-28  Bruno Haible  <bruno@clisp.org>
35847
35848         * tests/test-fwriting.c (main): Also test the interaction between
35849         fflush and fwriting.
35850         * modules/fwriting-tests (Depends-on): Add fflush.
35851
35852         * tests/test-freading.c (main): Also test the interaction between
35853         fflush and freading.
35854         * modules/freading-tests (Depends-on): Add fflush.
35855
35856 2007-04-28  Bruno Haible  <bruno@clisp.org>
35857
35858         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35859         fseeko and ftello.
35860         Suggested by Eric Blake.
35861
35862 2007-04-28  Jim Meyering  <jim@meyering.net>
35863
35864         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35865         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35866         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35867
35868 2007-04-27  Eric Blake  <ebb9@byu.net>
35869
35870         * doc/headers/assert.texi (assert.h): Document assert module use.
35871
35872 2007-04-27  Bruno Haible  <bruno@clisp.org>
35873
35874         * doc/headers/*.texi: New files.
35875         * doc/gnulib.texi (Header File Substitutes): New chapter.
35876         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35877         dependencies.
35878         (standards.info ,standards.html, standards.dvi): Update dependencies.
35879         (mostlyclean, clean): New targets.
35880
35881 2007-04-27  Bruno Haible  <bruno@clisp.org>
35882
35883         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35884         * modules/sysexits (Files, Makefile.am): Update.
35885
35886         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35887         * modules/sys_socket (Files, Makefile.am): Update.
35888
35889         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35890         * modules/sys_stat (Files, Makefile.am): Update.
35891
35892 2007-04-27  Eric Blake  <ebb9@byu.net>
35893
35894         * lib/freading.h: Improve comments.
35895         * lib/fwriting.h: Likewise.
35896         * lib/fflush.c: Likewise.
35897
35898         Fix closein for mingw.
35899         * modules/closein-tests: Add tests for closein.
35900         * tests/test-closein.c: New file.
35901         * tests/test-closein.sh: Likewise.
35902         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35903         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35904
35905 2007-04-27  Bruno Haible  <bruno@clisp.org>
35906
35907         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35908         version is < 6.
35909         * lib/math_.h [__DECC]: Likewise.
35910         * lib/stdio_.h [__DECC]: Likewise.
35911         * lib/stdlib_.h [__DECC]: Likewise.
35912         * lib/string_.h [__DECC]: Likewise.
35913         * lib/time_.h [__DECC]: Likewise.
35914         * lib/wchar_.h [__DECC]: Likewise.
35915         * lib/wctype_.h [__DECC]: Likewise.
35916
35917 2007-04-27  Bruno Haible  <bruno@clisp.org>
35918
35919         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35920
35921 2007-04-27  Bruno Haible  <bruno@clisp.org>
35922
35923         * lib/fflush.c: Add comments.
35924         * modules/fpurge-tests (Depends-on): Add fflush.
35925         * modules/freadable-tests (Depends-on): Likewise.
35926         * modules/fwritable-tests (Depends-on): Likewise.
35927
35928 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35929
35930         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35931         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35932         Report by Bruno Haible <bruno@clisp.org>.
35933
35934 2007-04-26  Eric Blake  <ebb9@byu.net>
35935
35936         Fix fflush on mingw.
35937         * modules/fflush (Depends-on): Add freading.
35938         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35939         but unread data.
35940
35941 2007-04-26  Eric Blake  <ebb9@byu.net>
35942         and Bruno Haible  <bruno@clisp.org>
35943
35944         Implement freading and fwriting.
35945         * lib/freading.c: New file.
35946         * lib/freading.h: Likewise.
35947         * m4/freading.m4: Likewise.
35948         * modules/freading: Likewise.
35949         * modules/freading-tests: Likewise.
35950         * tests/test-freading.c: Likewise.
35951         * lib/fwriting.c: New file.
35952         * lib/fwriting.h: Likewise.
35953         * m4/fwriting.m4: Likewise.
35954         * modules/fwriting: Likewise.
35955         * modules/fwriting-tests: Likewise.
35956         * tests/test-fwriting.c: Likewise.
35957         * MODULES.html.sh (File stream based Input/Output): Mention them.
35958
35959 2007-04-26  Bruno Haible  <bruno@clisp.org>
35960
35961         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35962         'long' when we assume it.
35963         Suggested by Eric Blake.
35964
35965 2007-04-26  Bruno Haible  <bruno@clisp.org>
35966
35967         Ensure fseeko, ftello are declared on glibc systems.
35968         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35969         * modules/fseeko (configure.ac-early): Likewise.
35970         * modules/ftello (configure.ac-early): Likewise.
35971         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35972         AC_FUNC_FSEEKO for this.
35973         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35974         (gl_CHECK_FSEEKO): Remove macro.
35975
35976 2007-04-26  Bruno Haible  <bruno@clisp.org>
35977
35978         * tests/test-fflush.c (main): Also check the ftell result after
35979         fflush and fseek/fseeko.
35980         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35981         file descriptor position cache in the stream.
35982         * lib/fseeko.c (rpl_fseeko): Likewise.
35983
35984 2007-04-26  Bruno Haible  <bruno@clisp.org>
35985
35986         * modules/fflush-tests (Depends-on): Add fseeko.
35987
35988 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35989             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35990
35991         * lib/argz_.h: ensure error_t definition is obtained in same
35992         mechanism system argz.h would have.
35993         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35994         argz facilities are known bad.  Err on the side of caution if
35995         cross-compiling.
35996
35997 2007-04-25  Eric Blake  <ebb9@byu.net>
35998
35999         * lib/fpurge.c (includes): Use stdlib.h for free.
36000         * tests/test-fflush.c (main): Also test fflush-fseeko.
36001
36002 2007-04-25  Bruno Haible  <bruno@clisp.org>
36003
36004         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
36005         * lib/fseeko.c: New file.
36006         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
36007         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
36008         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
36009         gl_FUNC_FSEEKO.
36010         (gl_FUNC_FSEEKO): Invoke it.
36011         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
36012         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
36013         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
36014
36015 2007-04-25  Bruno Haible  <bruno@clisp.org>
36016
36017         * modules/fflush (Depends-on): Add ftello.
36018
36019 2007-04-25  Bruno Haible  <bruno@clisp.org>
36020
36021         * modules/ftello-tests: New file.
36022         * tests/test-ftello.c: New file.
36023
36024         * modules/ftello: New file.
36025         * m4/ftello.m4: New file.
36026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
36027         HAVE_FTELLO.
36028         * lib/stdio_.h (ftello): New declaration.
36029         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
36030         HAVE_FTELLO.
36031
36032 2007-04-25  Bruno Haible  <bruno@clisp.org>
36033
36034         * modules/fseeko-tests: New file.
36035         * tests/test-fseeko.c: New file.
36036
36037         * modules/fseeko: New file.
36038         * m4/fseeko.m4: New file.
36039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
36040         HAVE_FSEEKO.
36041         * lib/stdio_.h (fseeko): New declaration.
36042         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
36043         HAVE_FSEEKO.
36044
36045 2007-04-25  Bruno Haible  <bruno@clisp.org>
36046
36047         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
36048
36049 2007-04-25  Bruno Haible  <bruno@clisp.org>
36050
36051         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
36052         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
36053         * tests/test-unistd.c: Likewise.
36054         * tests/test-fcntl.c: Likewise.
36055
36056 2007-04-23  Eric Blake  <ebb9@byu.net>
36057
36058         * lib/fflush.c: Fix missing include.
36059         Reported by Bruno Haible.
36060
36061 2007-04-23  Bruno Haible  <bruno@clisp.org>
36062
36063         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
36064         Reported by Eric Blake.
36065
36066 2007-04-23  Bruno Haible  <bruno@clisp.org>
36067
36068         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
36069
36070 2007-04-23  Bruno Haible  <bruno@clisp.org>
36071
36072         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
36073
36074 2007-04-23  Bruno Haible  <bruno@clisp.org>
36075
36076         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
36077         Needed on HP-UX 11.
36078
36079 2007-04-16  Eric Blake  <ebb9@byu.net>
36080
36081         Make fflush rely on fpurge.
36082         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
36083         open coding all variants.
36084         * modules/fflush (Depends-on): Add fpurge and unistd.
36085         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
36086         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
36087
36088         Fix --with-tests compilation on cygwin.
36089         * modules/argmatch-tests (Makefile.am): List gnulib library first
36090         in LDADD.
36091         * modules/argp-tests (Makefile.am): Likewise.
36092         * modules/array-list-tests (Makefile.am): Likewise.
36093         * modules/array-oset-tests (Makefile.am): Likewise.
36094         * modules/avltree-list-tests (Makefile.am): Likewise.
36095         * modules/avltree-oset-tests (Makefile.am): Likewise.
36096         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36097         * modules/carray-list-tests (Makefile.am): Likewise.
36098         * modules/dirname-tests (Makefile.am): Likewise.
36099         * modules/frexp-tests (Makefile.am): Likewise.
36100         * modules/isnanl-tests (Makefile.am): Likewise.
36101         * modules/linked-list-tests (Makefile.am): Likewise.
36102         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36103         * modules/lock-tests (Makefile.am): Likewise.
36104         * modules/rbtree-list-tests (Makefile.am): Likewise.
36105         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36106         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36107         * modules/tls-tests (Makefile.am): Likewise.
36108         * modules/tsearch-tests (Makefile.am): Likewise.
36109         * modules/xvasprintf-tests (Makefile.am): Likewise.
36110
36111         Fix fpurge for cygwin.
36112         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
36113         value.
36114         * modules/fpurge-tests (Depends-on): Clean up trash.
36115
36116 2007-04-16  Simon Josefsson  <simon@josefsson.org>
36117
36118         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
36119
36120         * m4/autobuild.m4: Re-indent.
36121
36122 2007-04-13  Bruno Haible  <bruno@clisp.org>
36123
36124         * modules/fpurge-tests: New file.
36125         * tests/test-fpurge.c: New file.
36126
36127         * modules/fpurge: New file.
36128         * lib/fpurge.h: New file.
36129         * lib/fpurge.c: New file.
36130         * m4/fpurge.m4: New file.
36131
36132 2007-04-13  Bruno Haible  <bruno@clisp.org>
36133
36134         * modules/fbufmode-tests: New file.
36135         * tests/test-fbufmode.c: New file.
36136
36137         * modules/fbufmode: New file.
36138         * lib/fbufmode.h: New file.
36139         * lib/fbufmode.c: New file.
36140         * m4/fbufmode.m4: New file.
36141
36142 2007-04-13  Bruno Haible  <bruno@clisp.org>
36143
36144         * modules/fwritable-tests: New file.
36145         * tests/test-fwritable.c: New file.
36146
36147         * modules/fwritable: New file.
36148         * lib/fwritable.h: New file.
36149         * lib/fwritable.c: New file.
36150         * m4/fwritable.m4: New file.
36151
36152 2007-04-13  Bruno Haible  <bruno@clisp.org>
36153
36154         * modules/freadable-tests: New file.
36155         * tests/test-freadable.c: New file.
36156
36157         * modules/freadable: New file.
36158         * lib/freadable.h: New file.
36159         * lib/freadable.c: New file.
36160         * m4/freadable.m4: New file.
36161
36162 2007-04-13  Bruno Haible  <bruno@clisp.org>
36163
36164         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
36165         MOSTLYCLEANFILES.
36166
36167 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36168
36169         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
36170         gzip bootstrap.conf to avoid dragging in i18n machinery.
36171         (gnulib_tool_option): Use it.
36172
36173 2007-04-13  Bruno Haible  <bruno@clisp.org>
36174
36175         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
36176         %F directives.
36177         * tests/test-vasprintf-posix.c (test_function): Likewise.
36178         * tests/test-snprintf-posix.h (test_function): Likewise.
36179         * tests/test-sprintf-posix.h (test_function): Likewise.
36180         * tests/test-fprintf-posix.h (test_function): Likewise.
36181         * tests/test-printf-posix.h (test_function): Likewise.
36182         * tests/test-fprintf-posix.out: Likewise.
36183
36184 2007-04-13  Bruno Haible  <bruno@clisp.org>
36185
36186         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
36187         * modules/tls-tests (configure.ac): Likewise.
36188         Reported by Arto C. Nirkko <anirkko@insel.ch>.
36189
36190 2007-04-13  Bruno Haible  <bruno@clisp.org>
36191
36192         * lib/tls.c (glthread_tls_get): Fix return type.
36193         Patch by Arto C. Nirkko <anirkko@insel.ch>.
36194
36195 2007-04-12  Eric Blake  <ebb9@byu.net>
36196
36197         * modules/gettime (Depends-on): Remove gettime.
36198         Reported by Dmitry V. Levin.
36199
36200 2007-04-12  Bruno Haible  <bruno@clisp.org>
36201
36202         * modules/fflush (Include): Mention <stdio.h>.
36203         * modules/strtoimax (Include): Mention <inttypes.h>.
36204         * modules/strtoumax (Include): Likewise.
36205
36206 2007-04-12  Eric Blake  <ebb9@byu.net>
36207
36208         * .cvsignore: New file.
36209         * .gitignore: Likewise.
36210
36211 2007-04-12  Bruno Haible  <bruno@clisp.org>
36212
36213         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
36214         not before, since $(LDADD) often contains libgnu.a.
36215         * modules/striconv-tests (test_striconv_LDADD): Likewise.
36216         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
36217         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
36218         Needed on Cygwin.
36219
36220 2007-04-12  Eric Blake  <ebb9@byu.net>
36221
36222         Work around glibc's failure to flush stdin on fclose.
36223         * lib/closein.c (close_stdin): Flush stdin before closing.
36224
36225         Work around glibc's failure to reset seekable stdin on exit.
36226         * modules/closein: New module.
36227         * lib/closein.c: New file.
36228         * lib/closein.h: Likewise.
36229         * m4/closein.m4: Likewise.
36230         * MODULES.html.sh (File stream based Input/Output): Document it.
36231
36232 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36233
36234         * gnulib-tool: Rename generated 'autobuild' script to
36235         'do-autobuild' in --create-megatestdir output.
36236
36237         * doc/gnulib.texi (Build robot for gnulib): Fix.
36238
36239 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36240
36241         * modules/sysexits (Depends-on): Add absolute-header.
36242
36243 2007-04-12  Eric Blake  <ebb9@byu.net>
36244
36245         No need to preserve errno on success.
36246         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
36247         Reported by Bruno Haible.
36248
36249 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36250
36251         * MODULES.html.sh (Support for maintaining and releasing
36252         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
36253
36254 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36255
36256         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
36257
36258 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36259
36260         * modules/autobuild: New module.
36261
36262         * m4/autobuild.m4: New file.
36263
36264 2007-04-11  Bruno Haible  <bruno@clisp.org>
36265
36266         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
36267         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
36268         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
36269         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
36270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36271         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36272         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36274         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36275         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
36277         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36278         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36279         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
36280         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36281         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
36283         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36284         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36285         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
36286         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36287         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36288         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
36289         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36290         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
36292         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36293         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36294         Reported by Eric Blake.
36295
36296 2007-04-11  Bruno Haible  <bruno@clisp.org>
36297
36298         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
36299
36300 2007-04-10  Bruno Haible  <bruno@clisp.org>
36301
36302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
36303         for NaN and Infinity. Needed on FreeBSD 6.1.
36304         * tests/test-vasnprintf-posix.c (test_function): Undo last change
36305         regarding results for "%010a" of Infinity and NaN.
36306         * tests/test-vasprintf-posix.c (test_function): Likewise.
36307         * tests/test-snprintf-posix.h (test_function): Likewise.
36308         * tests/test-sprintf-posix.h (test_function): Likewise.
36309         * tests/test-fprintf-posix.h (test_function): Likewise.
36310         * tests/test-printf-posix.h (test_function): Likewise.
36311         * tests/test-fprintf-posix.out: Likewise.
36312
36313 2007-04-10  Bruno Haible  <bruno@clisp.org>
36314
36315         * modules/locale-tests: New file.
36316         * tests/test-locale.c: New file.
36317
36318         * modules/locale: New file.
36319         * lib/locale_.h: New file.
36320         * m4/locale_h.m4: New file.
36321
36322 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
36323             Bruno Haible  <bruno@clisp.org>
36324
36325         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
36326         be determined, test for availability of the copysignf, copysign,
36327         copysignl functions.
36328         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
36329         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
36330         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
36331
36332 2007-04-09  Eric Blake  <ebb9@byu.net>
36333
36334         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36335         * modules/stdio (Makefile.am): Support fflush.
36336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36337         * modules/fflush: New file.
36338         * lib/fflush.c: Likewise.
36339         * m4/fflush.m4: Likewise.
36340         * modules/fflush-tests: New test.
36341         * tests/test-fflush.c: Likewise.
36342         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36343
36344 2007-04-06  Bruno Haible  <bruno@clisp.org>
36345
36346         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36347         (VASNPRINTF): Use signbit for faster determination whether to print a
36348         minus sign.
36349         * modules/vasnprintf (Files): Remove lib/float+.h.
36350         * modules/fprintf-posix (Depends-on): Add signbit.
36351         * modules/snprintf-posix (Depends-on): Likewise.
36352         * modules/sprintf-posix (Depends-on): Likewise.
36353         * modules/vasnprintf-posix (Depends-on): Likewise.
36354         * modules/vasprintf-posix (Depends-on): Likewise.
36355         * modules/vfprintf-posix (Depends-on): Likewise.
36356         * modules/vsnprintf-posix (Depends-on): Likewise.
36357         * modules/vsprintf-posix (Depends-on): Likewise.
36358
36359 2007-04-06  Bruno Haible  <bruno@clisp.org>
36360
36361         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36362         * tests/test-frexpl.c (main): Likewise.
36363         * tests/test-ldexpl.c (main): Likewise.
36364         * modules/frexp-tests (Depends-on): Add signbit.
36365         * modules/frexpl-tests (Depdends-on): Likewise.
36366         * modules/ldexpl-tests (Depdends-on): Likewise.
36367
36368 2007-04-06  Bruno Haible  <bruno@clisp.org>
36369
36370         * modules/signbit-tests: New file.
36371         * tests/test-signbit.c: New file.
36372
36373         * modules/signbit: New file.
36374         * lib/signbitf.c: New file.
36375         * lib/signbitd.c: New file.
36376         * lib/signbitl.c: New file.
36377         * m4/signbit.m4: New file.
36378         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36379         (signbit): New macro.
36380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36381         REPLACE_SIGNBIT.
36382         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36383         REPLACE_FREXPL into math.h.
36384
36385 2007-04-06  Bruno Haible  <bruno@clisp.org>
36386
36387         * modules/isnanf-nolibm-tests: New file.
36388         * tests/test-isnanf.c: New file.
36389
36390         * modules/isnanf-nolibm: New file.
36391         * lib/isnanf.h: New file.
36392         * lib/isnanf.c: New file.
36393         * lib/isnan.c: Consider the USE_FLOAT macro.
36394         * m4/isnanf.m4: New file.
36395
36396 2007-04-06  Bruno Haible  <bruno@clisp.org>
36397
36398         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36399         (Link): New section.
36400
36401         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36402
36403 2007-04-06  Bruno Haible  <bruno@clisp.org>
36404
36405         Assume the 'long double' type.
36406         * m4/longdouble.m4: Remove file.
36407         * config/srclist.txt: Don't mention longdouble.m4.
36408         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36409         * lib/float+.h: Likewise.
36410         * lib/frexp.c: Likewise.
36411         * lib/printf-args.h: Likewise.
36412         * lib/printf-args.c: Likewise.
36413         * lib/printf-frexp.c: Likewise.
36414         * lib/printf-parse.c: Likewise.
36415         * lib/vasnprintf.c: Likewise.
36416         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36417         * m4/intl.m4: Likewise.
36418         * m4/isnanl.m4: Likewise.
36419         * m4/printf.m4: Likewise.
36420         * m4/printf-frexpl.m4: Likewise.
36421         * m4/vasnprintf.m4: Likewise.
36422         * modules/allocsa (Files): Remove m4/longdouble.m4.
36423         * modules/gettext (Files): Likewise.
36424         * modules/relocatable-prog-wrapper (Files): Likewise.
36425         * modules/vasnprintf (Files): Likewise.
36426         * modules/isnanl (Files): Likewise.
36427         (Include): Simplify.
36428         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36429         (Include): Simplify.
36430         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36431         (Include): Simplify.
36432         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36433         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36434         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36435         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36436         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36437         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36438         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36439         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36440         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36441         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36442         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36443         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36444         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36445         * tests/test-isnanl.c: Likewise.
36446         * tests/test-snprintf-posix.h: Likewise.
36447         * tests/test-sprintf-posix.h: Likewise.
36448         * tests/test-vasnprintf-posix.c: Likewise.
36449         * tests/test-vasnprintf-posix2.c: Likewise.
36450         * tests/test-vasprintf-posix.c: Likewise.
36451
36452 2007-04-06  Bruno Haible  <bruno@clisp.org>
36453
36454         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36455         * lib/math_.h [__DECC]: Include the overridden include file through
36456         #include_next, outside the double-inclusion guard.
36457         * lib/stdio_.h [__DECC]: Likewise.
36458         * lib/stdlib_.h [__DECC]: Likewise.
36459         * lib/string_.h [__DECC]: Likewise.
36460         * lib/time_.h [__DECC]: Likewise.
36461         * lib/wchar_.h [__DECC]: Likewise.
36462         * lib/wctype_.h [__DECC]: Likewise.
36463         * lib/inttypes_.h [__DECC]: Likewise.
36464         Reported by Albert Chin <china@thewrittenword.com> in
36465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36466
36467 2007-04-04  Eric Blake  <ebb9@byu.net>
36468
36469         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36470         1.5.x.
36471
36472 2007-04-04  Bruno Haible  <bruno@clisp.org>
36473
36474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36475         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36476
36477 2007-04-04  Bruno Haible  <bruno@clisp.org>
36478
36479         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36480         results for "%010a" of Infinity and NaN.
36481         * tests/test-vasprintf-posix.c (test_function): Likewise.
36482         * tests/test-snprintf-posix.h (test_function): Likewise.
36483         * tests/test-sprintf-posix.h (test_function): Likewise.
36484         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36485         * tests/test-printf-posix.h (test_function): Likewise.
36486         * tests/test-fprintf-posix.out: Update.
36487         Needed for FreeBSD 6.1.
36488
36489 2007-04-04  Bruno Haible  <bruno@clisp.org>
36490
36491         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36492         directly used by the gnulib modules nor by gnulib-tool.
36493
36494 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36495
36496         * DEPENDENCIES: Give overall description of version dependency
36497         desirability.  Use more-typical names for apps.
36498         Add shell, coreutils, diffutils, grep, tar, gzip.
36499
36500 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36501
36502         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36503
36504 2007-04-04  Karl Berry  <karl@gnu.org>
36505
36506         * MODULES.html.sh (func_module): missing '.
36507
36508 2007-04-03  Bruno Haible  <bruno@clisp.org>
36509
36510         * modules/argmatch-tests (Makefile.am): New variable
36511         test_argmatch_LDADD.
36512         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36513         * modules/array-list-tests (Makefile.am): New variable
36514         test_array_list_LDADD.
36515         * modules/array-oset-tests (Makefile.am): New variable
36516         test_array_oset_LDADD.
36517         * modules/avltree-list-tests (Makefile.am): New variable
36518         test_avltree_list_LDADD.
36519         * modules/avltree-oset-tests (Makefile.am): New variable
36520         test_avltree_oset_LDADD.
36521         * modules/avltreehash-list-tests (Makefile.am): New variable
36522         test_avltreehash_list_LDADD.
36523         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36524         test_canonicalize_lgpl_LDADD.
36525         * modules/carray-list-tests (Makefile.am): New variable
36526         test_carray_list_LDADD.
36527         * modules/dirname-tests (Makefile.am): New variable
36528         test_dirname_LDADD.
36529         * modules/linked-list-tests (Makefile.am): New variable
36530         test_linked_list_LDADD.
36531         * modules/linkedhash-list-tests (Makefile.am): New variable
36532         test_linkedhash_list_LDADD.
36533         * modules/rbtree-list-tests (Makefile.am): New variable
36534         test_rbtree_list_LDADD.
36535         * modules/rbtree-oset-tests (Makefile.am): New variable
36536         test_rbtree_oset_LDADD.
36537         * modules/rbtreehash-list-tests (Makefile.am): New variable
36538         test_rbtreehash_list_LDADD.
36539         * modules/xvasprintf-tests (Makefile.am): New variable
36540         test_xvasprintf_LDADD.
36541         Reported by Eric Blake.
36542
36543 2007-04-03  Eric Blake  <ebb9@byu.net>
36544
36545         * DEPENDENCIES: Weaken m4 requirements.
36546
36547 2007-04-03  Bruno Haible  <bruno@clisp.org>
36548
36549         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36550         * modules/isnanl-tests (configure.ac): Likewise.
36551
36552 2007-04-03  Ben Pfaff  <blp@gnu.org>
36553
36554         * modules/iconv_open: Add $(srcdir)/ to source directory
36555         references in Makefile fragments that call gperf, to fix VPATH
36556         builds.
36557
36558 2007-04-03  Bruno Haible  <bruno@clisp.org>
36559
36560         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36561         * lib/ldexpl.c: Undo last change.
36562
36563 2007-04-03  Bruno Haible  <bruno@clisp.org>
36564
36565         * modules/printf-frexpl (Depends-on): Undo last change.
36566         (Files): Add m4/ldexpl.m4.
36567
36568 2007-04-03  Bruno Haible  <bruno@clisp.org>
36569
36570         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36571         * modules/isnanl (Link): New section.
36572
36573         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36574         * modules/frexp (Link): New section.
36575
36576         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36577         * modules/frexpl (Link): New section.
36578
36579         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36580         * modules/ldexpl (Link): New section.
36581
36582 2007-04-03  Bruno Haible  <bruno@clisp.org>
36583
36584         * modules/TEMPLATE-EXTENDED: New file.
36585         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36586
36587 2007-04-03  Bruno Haible  <bruno@clisp.org>
36588
36589         * DEPENDENCIES: New file.
36590         Suggested by Simon Josefsson.
36591
36592 2007-04-03  Bruno Haible  <bruno@clisp.org>
36593
36594         * doc/gnulib.texi: Escape @.
36595
36596 2007-04-03  James Youngman  <jay@gnu.org>
36597         and Paul Eggert  <eggert@cs.ucla.edu>
36598
36599         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36600         birthtime on all systems that have birthtime, not just those which
36601         use st_birthtimensec rather than st_birthtim.  Putting zero in
36602         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36603         that the birth time is not available for files on an NFS mount.
36604
36605 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36606
36607         * modules/memxor: Move back from crypto/, suggested by Bruno.
36608         * modules/crypto/hmac-sha1: Fix memxor dependency.
36609
36610         * modules/crypto/gc: Moved from ../.
36611
36612 2007-04-02  Eric Blake  <ebb9@byu.net>
36613
36614         * lib/ldexpl.c (includes): Avoid libm.
36615
36616         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36617
36618 2007-04-02  Bruno Haible  <bruno@clisp.org>
36619
36620         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36621         on IRIX.
36622
36623 2007-04-02  Bruno Haible  <bruno@clisp.org>
36624
36625         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36626         x86 or x86_64 platforms running MacOS X.
36627         Reported by Ryan Schmidt <@ryandesign.com>.
36628
36629 2007-04-02  Bruno Haible  <bruno@clisp.org>
36630
36631         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36632         i386.
36633
36634 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36635
36636         * modules/crypto/arcfour: Moved from ../.
36637         * modules/crypto/arcfour-tests: Moved from ../.
36638         * modules/crypto/arctwo: Moved from ../.
36639         * modules/crypto/arctwo-tests: Moved from ../.
36640         * modules/crypto/des: Moved from ../.
36641         * modules/crypto/des-tests: Moved from ../.
36642         * modules/crypto/gc-arcfour: Moved from ../.
36643         * modules/crypto/gc-arcfour-tests: Moved from ../.
36644         * modules/crypto/gc-arctwo: Moved from ../.
36645         * modules/crypto/gc-arctwo-tests: Moved from ../.
36646         * modules/crypto/gc-des: Moved from ../.
36647         * modules/crypto/gc-des-tests: Moved from ../.
36648         * modules/crypto/gc-hmac-md5: Moved from ../.
36649         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36650         * modules/crypto/gc-hmac-sha1: Moved from ../.
36651         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36652         * modules/crypto/gc-md2: Moved from ../.
36653         * modules/crypto/gc-md2-tests: Moved from ../.
36654         * modules/crypto/gc-md4: Moved from ../.
36655         * modules/crypto/gc-md4-tests: Moved from ../.
36656         * modules/crypto/gc-md5: Moved from ../.
36657         * modules/crypto/gc-md5-tests: Moved from ../.
36658         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36659         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36660         * modules/crypto/gc-random: Moved from ../.
36661         * modules/crypto/gc-rijndael: Moved from ../.
36662         * modules/crypto/gc-rijndael-tests: Moved from ../.
36663         * modules/crypto/gc-sha1: Moved from ../.
36664         * modules/crypto/gc-sha1-tests: Moved from ../.
36665         * modules/crypto/gc-tests: Moved from ../.
36666         * modules/crypto/hmac-md5: Moved from ../.
36667         * modules/crypto/hmac-md5-tests: Moved from ../.
36668         * modules/crypto/hmac-sha1: Moved from ../.
36669         * modules/crypto/hmac-sha1-tests: Moved from ../.
36670         * modules/crypto/md2: Moved from ../.
36671         * modules/crypto/md2-tests: Moved from ../.
36672         * modules/crypto/md4: Moved from ../.
36673         * modules/crypto/md4-tests: Moved from ../.
36674         * modules/crypto/md5: Moved from ../.
36675         * modules/crypto/md5-tests: Moved from ../.
36676         * modules/crypto/memxor: Moved from ../.
36677         * modules/crypto/rijndael: Moved from ../.
36678         * modules/crypto/rijndael-tests: Moved from ../.
36679         * modules/crypto/sha1: Moved from ../.
36680
36681 2007-03-30  James Youngman  <jay@gnu.org>
36682
36683         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36684         rename() to change the ctime of a file (because ctime is unaffected
36685         by rename on jfs2 on AIX 5.1).
36686         (main): Start by doing cleanup, in case a previous run failed leaving
36687         test files behind.
36688
36689 2007-03-31  Bruno Haible  <bruno@clisp.org>
36690
36691         Support old proprietary implementations of iconv.
36692         * modules/iconv_open: New file.
36693         * lib/iconv_.h: New file.
36694         * m4/iconv_h.m4: New file.
36695         * lib/iconv_open.c: New file.
36696         * lib/iconv_open-aix.gperf: New file.
36697         * lib/iconv_open-hpux.gperf: New file.
36698         * lib/iconv_open-irix.gperf: New file.
36699         * lib/iconv_open-osf.gperf: New file.
36700         * m4/iconv_open.m4: New file.
36701         * modules/linebreak (Depends-on): Add iconv_open.
36702         * modules/striconv (Depends-on): Likewise.
36703         * modules/striconveh (Depends-on): Likewise.
36704         * modules/unicodeio (Depends-on): Likewise.
36705         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36706         (iconv_t)(-1).
36707         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36708         conversion if cd is (iconv_t)(-1).
36709         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36710         is not possible.
36711
36712 2007-03-31  Bruno Haible  <bruno@clisp.org>
36713
36714         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36715         work on Solaris either. Protect also second use of "autodetect_jp".
36716
36717 2007-03-31  Bruno Haible  <bruno@clisp.org>
36718
36719         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36720         the function is not present.
36721
36722 2007-03-31  Bruno Haible  <bruno@clisp.org>
36723
36724         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36725         the function is not present.
36726
36727 2007-03-31  Bruno Haible  <bruno@clisp.org>
36728
36729         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36730         a bug in HP-UX iconv_open().
36731
36732 2007-03-31  Bruno Haible  <bruno@clisp.org>
36733
36734         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36735         (Mathematics <math.h>): New section, add fpieee.
36736         (Input/output <stdio.h>): Add fseterr.
36737         (Mathematics <math.h>): New section, add printf-frexp.
36738         (Container data structures): Add sublist.
36739         (Core language properties): Add fpucw, inline.
36740         (Functions for greatest-width integer types <inttypes.h>): Add
36741         imaxabs, imaxdiv, inttypes.
36742         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36743         isnanl-nolibm, ldexp.
36744         (Mathematics <math.h>): New section, add printf-frexpl.
36745         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36746         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36747         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36748         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36749         (Unicode string functions): Add unistr/u*-mbtoucr.
36750         (Java): Add javacomp-script, javaexec-script.
36751         (C#): Add csharpcomp-script, csharpexec-script.
36752         (Support for building libraries and executables): Add havelib,
36753         relocatable-*.
36754         (Support for maintaining and releasing projects): Renamed from
36755         'Support for maintaining and release projects'. Add announce-gen.
36756
36757 2007-03-31  Bruno Haible  <bruno@clisp.org>
36758
36759         * README: Talk primarily about git.
36760         (git and CVS): Renamed from CVS.
36761         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36762         gnulib is available through git.
36763         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36764
36765 2007-03-30  Bruno Haible  <bruno@clisp.org>
36766
36767         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36768         * lib/poll_.h: Likewise.
36769         * lib/stat_.h: Likewise.
36770         * lib/sys_time_.h: Likewise.
36771         * lib/sysexit_.h: Likewise.
36772         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36773         * lib/stdbool_.h: Likewise.
36774         * lib/byteswap_.h: Add double-inclusion guard.
36775
36776 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36777
36778         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36779
36780 2007-03-30  Karl Berry  <karl@gnu.org>
36781
36782         * config/srclist-update: double space after USA in the license
36783         substitution, since that's how it's usually (?) written.
36784
36785 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36786
36787         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36788         reported by Bruno Haible.
36789
36790 2007-03-29  Bruno Haible  <bruno@clisp.org>
36791
36792         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36793         a bug in AIX iconv().
36794
36795 2007-03-29  Bruno Haible  <bruno@clisp.org>
36796
36797         * modules/ldexpl-tests: New file.
36798         * tests/test-ldexpl.c: New file.
36799
36800 2007-03-29  Bruno Haible  <bruno@clisp.org>
36801
36802         * lib/ldexpl.c: Include fpucw.h.
36803         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36804         multiplication.
36805         * modules/ldexpl (Depends-on): Add fpucw.
36806
36807 2007-03-29  Bruno Haible  <bruno@clisp.org>
36808
36809         * modules/ldexpl: New file.
36810         * m4/ldexpl.m4: New file.
36811         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36812         set.
36813         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36814         REPLACE_LDEXPL.
36815         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36816         REPLACE_LDEXPL.
36817         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36818         gl_FUNC_LDEXPL_WORKS.
36819         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36820         * modules/mathl (Files): Remove lib/ldexpl.c.
36821         (Depends-on): Add ldexpl.
36822
36823 2007-03-29  Bruno Haible  <bruno@clisp.org>
36824
36825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36826
36827 2007-03-29  Bruno Haible  <bruno@clisp.org>
36828
36829         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36830         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36831         and possibly also HP-UX.
36832         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36833         work on AIX, IRIX, HP-UX, OSF/1.
36834         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36835         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36836         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36837         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36838         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36839         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36840
36841 2007-03-29  Bruno Haible  <bruno@clisp.org>
36842
36843         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36844
36845 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36846
36847         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36848         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36849
36850 2007-03-29  Eric Blake  <ebb9@byu.net>
36851
36852         * lib/acl-internal.h: Remove redundant include.
36853         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36854         Cygwin when a file is locked.
36855
36856 2007-03-29  Bruno Haible  <bruno@clisp.org>
36857
36858         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36859         file.
36860         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36861
36862 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36863
36864         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36865         try to remove a parent directory if the child couldn't be removed
36866         (except for the first rmdir, which could fail because the child
36867         doesn't exist).  Problem reported by Jeff Blaine in
36868         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36869
36870 2007-03-28  Bruno Haible  <bruno@clisp.org>
36871
36872         * lib/striconveh.c (utf8conv_carefully): New function.
36873         (mem_cd_iconveh_internal): Invoke it.
36874
36875 2007-03-28  Bruno Haible  <bruno@clisp.org>
36876
36877         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36878         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36879         input.
36880         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36881         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36882         unistr/u8-uctomb.
36883
36884 2007-03-28  Bruno Haible  <bruno@clisp.org>
36885
36886         * modules/unistr/u8-mbtoucr: New file.
36887         * lib/unistr/u8-mbtoucr.c: New file.
36888         * modules/unistr/u16-mbtoucr: New file.
36889         * lib/unistr/u16-mbtoucr.c: New file.
36890         * modules/unistr/u16-mbtoucr: New file.
36891         * lib/unistr/u16-mbtoucr.c: New file.
36892         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36893
36894 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36895             Bruno Haible  <bruno@clisp.org>
36896
36897         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36898         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36899         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36900
36901         * m4/stdio_h.m4: Add stubs for vasprintf too.
36902
36903         * modules/stdio: Support vasprintf in sed command.
36904
36905         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36906         vasprintf.h.  Add stdio module indicator.
36907
36908         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36909         vasprintf.h.
36910
36911         * lib/vasprintf.h: File removed.
36912
36913         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36914         * lib/vasprintf.c: Ditto.
36915         * lib/xvasprintf.c: Ditto.
36916         * tests/test-vasprintf-posix.c: Ditto.
36917         * tests/test-vasprintf.c: Ditto.
36918
36919 2007-03-27  Bruno Haible  <bruno@clisp.org>
36920
36921         Make vasnprintf multithread-safe.
36922         * lib/vasnprintf.c (decimal_point_char): New function.
36923         (VASNPRINTF): Use it.
36924         Suggested by Simon Josefsson.
36925
36926 2007-03-27  Eric Blake  <ebb9@byu.net>
36927
36928         Support sub-second birthtime on cygwin.
36929         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36930         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36931         (get_stat_birthtime): Also work with st_birthtim.
36932
36933 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36934
36935         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36936         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36937         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36938         (get_stat_birthtime_ns): Simplify compile-time tests.
36939         (get_stat_birthtime): Change the API to look like
36940         get_stat_mtime etc., except return a negative tv_nsec on error.
36941         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36942         Don't check for "spare" fields.
36943         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36944         or for struct stat.st_birthtime, as these tests aren't used.
36945         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36946
36947 2007-03-27  Bruno Haible  <bruno@clisp.org>
36948
36949         * lib/stat-time.h: Include <sys/stat.h>.
36950
36951 2007-03-27  James Youngman  <jay@gnu.org>
36952
36953         * lib/stat-time.h (get_stat_birthtime): New function for
36954           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36955         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36956           and its variants.
36957         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36958         * modules/stat-time-test: New file.
36959         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36960
36961 2007-03-26  Bruno Haible  <bruno@clisp.org>
36962
36963         Better support of signalling NaNs.
36964         * lib/atanl.c: Include isnanl.h.
36965         (atanl): Perform test for NaN at the beginning of the function and
36966         through a call to isnanl.
36967         * lib/cosl.c: Include isnanl.h.
36968         (cosl): Perform test for NaN at the beginning of the function and
36969         through a call to isnanl.
36970         * lib/ldexpl.c: Include isnanl.h.
36971         (ldexpl): Perform test for NaN through a call to isnanl.
36972         * lib/logl.c: Include isnanl.h.
36973         (logl): Perform test for NaN at the beginning of the function and
36974         through a call to isnanl.
36975         * lib/sinl.c: Include isnanl.h.
36976         (sinl): Perform test for NaN at the beginning of the function and
36977         through a call to isnanl.
36978         * lib/sqrtl.c: Include isnanl.h.
36979         (sqrtl): Perform test for NaN at the beginning of the function and
36980         through a call to isnanl.
36981         * lib/tanl.c: Include isnanl.h.
36982         (tanl): Perform test for NaN at the beginning of the function and
36983         through a call to isnanl.
36984         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36985         * modules/mathl (Depends-on): Add isnanl.
36986
36987 2007-03-26  Eric Blake  <ebb9@byu.net>
36988
36989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36990         regression in logic sense of previous patch.
36991
36992 2007-03-26  Bruno Haible  <bruno@clisp.org>
36993
36994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36995         unportable shell command "if ! ...".
36996         Reported by Ralf Wildenhues.
36997
36998 2007-03-25  Bruno Haible  <bruno@clisp.org>
36999
37000         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
37001         <sysexits.h> file, and only add EX_CONFIG.
37002         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
37003         absolute file name and whether it is sufficient. Substitute also
37004         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
37005         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
37006         ABSOLUTE_SYSEXITS_H into sysexits.h.
37007
37008 2007-03-25  Bruno Haible  <bruno@clisp.org>
37009
37010         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
37011         hints is NULL.
37012
37013 2007-03-25  Bruno Haible  <bruno@clisp.org>
37014
37015         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
37016         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
37017
37018 2007-03-25  Bruno Haible  <bruno@clisp.org>
37019
37020         * lib/vasnprintf.c: Include langinfo.h.
37021         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
37022         multithread-safe.
37023         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
37024         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
37025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
37031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37032         Reported by Simon Josefsson.
37033
37034 2007-03-25  Bruno Haible  <bruno@clisp.org>
37035
37036         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
37037         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
37038         * modules/vasnprintf (Depends-on): Add stdint.
37039
37040 2007-03-25  Bruno Haible  <bruno@clisp.org>
37041
37042         * modules/fpieee: New file.
37043         * m4/fpieee.m4: New file.
37044         * modules/isnan-nolibm (Depends-on): Add fpieee.
37045         * modules/isnanl-nolibm (Depends-on): Add fpieee.
37046         * modules/isnanl (Depends-on): Add fpieee.
37047
37048 2007-03-25  Bruno Haible  <bruno@clisp.org>
37049
37050         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
37051
37052 2007-03-25  Bruno Haible  <bruno@clisp.org>
37053
37054         Avoid test failures on IRIX 6.5.
37055         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
37056         (main): Use it.
37057         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
37058         macros.
37059         (main): Use them.
37060
37061 2007-03-25  Bruno Haible  <bruno@clisp.org>
37062
37063         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
37064         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
37065         exists but doesn't work.
37066         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
37067         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
37068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
37069         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
37070
37071 2007-03-25  Bruno Haible  <bruno@clisp.org>
37072
37073         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
37074         returns inf. Needed on IRIX 6.5.
37075
37076 2007-03-25  Bruno Haible  <bruno@clisp.org>
37077
37078         * tests/test-frexpl.c: Include isnanl-nolibm.h.
37079         (main): Use isnanl instead of x != x idiom.
37080         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
37081
37082         * tests/test-frexp.c: Include isnan.h.
37083         (main): Use isnan instead of x != x idiom.
37084         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
37085
37086 2007-03-25  Bruno Haible  <bruno@clisp.org>
37087
37088         * tests/test-frexp.c (NaN): New function/macro.
37089         (main): Use it instead of 0.0 / 0.0.
37090         * tests/test-isnan.c (NaN): New function/macro.
37091         (main): Use it instead of 0.0 / 0.0.
37092         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
37093         (test_function): Use it instead of 0.0 / 0.0.
37094         * tests/test-vasprintf-posix.c (NaN): New function/macro.
37095         (test_function): Use it instead of 0.0 / 0.0.
37096         * tests/test-snprintf-posix.h (NaN): New function/macro.
37097         (test_function): Use it instead of 0.0 / 0.0.
37098         * tests/test-sprintf-posix.h (NaN): New function/macro.
37099         (test_function): Use it instead of 0.0 / 0.0.
37100         * tests/test-fprintf-posix.h (NaN): New function/macro.
37101         (test_function): Use it instead of 0.0 / 0.0.
37102         * tests/test-printf-posix.h (NaN): New function/macro.
37103         (test_function): Use it instead of 0.0 / 0.0.
37104
37105         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
37106
37107 2007-03-25  Bruno Haible  <bruno@clisp.org>
37108
37109         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
37110
37111 2007-03-25  Bruno Haible  <bruno@clisp.org>
37112
37113         * lib/regexec.c (merge_state_with_log): Make static.
37114
37115 2007-03-25  Bruno Haible  <bruno@clisp.org>
37116
37117         * lib/trigl.c (kernel_rem_pio2): Make static.
37118
37119 2007-03-25  Bruno Haible  <bruno@clisp.org>
37120
37121         * lib/sincosl.c (sincosl_table): Make static.
37122
37123 2007-03-25  Bruno Haible  <bruno@clisp.org>
37124
37125         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
37126         if the compiler does not support C99.
37127
37128 2007-03-25  Bruno Haible  <bruno@clisp.org>
37129
37130         * modules/time (Makefile.am): Ensure all rule action lines start with a
37131         tab.
37132
37133 2007-03-24  Bruno Haible  <bruno@clisp.org>
37134
37135         * modules/tsearch-tests: New file.
37136         * tests/test-tsearch.sh: New file.
37137         * tests/test-tsearch.c: New file, mostly copied from glibc.
37138
37139         * modules/search-tests: New file.
37140         * tests/test-search.c: New file.
37141
37142         * modules/search: New file.
37143         * lib/search_.h: New file, incorporating lib/tsearch.h.
37144         * m4/search_h.m4: New file.
37145         * lib/tsearch.h: Remove file.
37146         * lib/tsearch.c: Include search.h instead of tsearch.h.
37147         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
37148         HAVE_TSEARCH.
37149         * modules/tsearch (Files): Remove lib/tsearch.h.
37150         (Depends-on): Add search.
37151         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
37152         (Include): Change tsearch.h into search.h.
37153
37154 2007-03-24  Bruno Haible  <bruno@clisp.org>
37155
37156         * modules/fpucw: New file.
37157         * lib/fpucw.h: New file.
37158         * lib/frexp.c: Include fpucw.h.
37159         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37160         (FUNC): Use them.
37161         * lib/printf-frexp.c: Include fpucw.h.
37162         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37163         (FUNC): Use them.
37164         * lib/vasnprintf.c: Include fpucw.h.
37165         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
37166         'long double' calculations.
37167         * tests/test-frexpl.c: Include fpucw.h.
37168         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37169         * tests/test-printf-frexpl.c: Include fpucw.h.
37170         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37171         * modules/frexpl (Depends-on): Add fpucw.
37172         * modules/printf-frexpl (Depends-on): Likewise.
37173         * modules/fprintf-posix (Depends-on): Likewise.
37174         * modules/snprintf-posix (Depends-on): Likewise.
37175         * modules/sprintf-posix (Depends-on): Likewise.
37176         * modules/vasnprintf-posix (Depends-on): Likewise.
37177         * modules/vasprintf-posix (Depends-on): Likewise.
37178         * modules/vfprintf-posix (Depends-on): Likewise.
37179         * modules/vsnprintf-posix (Depends-on): Likewise.
37180         * modules/vsprintf-posix (Depends-on): Likewise.
37181         * modules/frexpl-tests (Depends-on): Likewise.
37182         * modules/printf-frexpl-tests (Depends-on): Likewise.
37183
37184 2007-03-24  Bruno Haible  <bruno@clisp.org>
37185
37186         * lib/float+.h: New file.
37187         * lib/isnan.c: Include float+.h.
37188         (SIZE): New macro.
37189         (FUNC): Compare only SIZE bytes of the value.
37190         * lib/vasnprintf.c: Include float+.h.
37191         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
37192         SIZEOF_LDBL or SIZEOF_DBL bytes.
37193         * modules/isnan-nolibm (Files): Add lib/float+.h.
37194         * modules/isnanl-nolibm (Files): Add lib/float+.h.
37195         * modules/isnanl (Files): Add lib/float+.h.
37196         * modules/vasnprintf (Files): Add lib/float+.h.
37197
37198 2007-03-24  Bruno Haible  <bruno@clisp.org>
37199
37200         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
37201         include isnanl-nolibm.h.
37202
37203 2007-03-24  Bruno Haible  <bruno@clisp.org>
37204
37205         * tests/test-read-file.c (main): Don't produce spurious output for
37206         expected situations. Make the test fail if it encountered unexpected
37207         results.
37208
37209 2007-03-24  Bruno Haible  <bruno@clisp.org>
37210
37211         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
37212         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
37213
37214 2007-03-24  Bruno Haible  <bruno@clisp.org>
37215
37216         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
37217
37218 2007-03-24  Bruno Haible  <bruno@clisp.org>
37219
37220         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
37221         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
37222
37223         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
37224         * modules/utf8-ucs4: Turn into a symbolic link to module
37225         unistr/u8-mbtouc.
37226
37227         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
37228         utf8-ucs4-unsafe.
37229         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
37230         unistr/u8-mbtouc-unsafe.
37231
37232         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
37233         * modules/utf16-ucs4: Turn into a symbolic link to module
37234         unistr/u16-mbtouc.
37235
37236         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
37237         utf16-ucs4-unsafe.
37238         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
37239         unistr/u16-mbtouc-unsafe.
37240
37241         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
37242         * modules/ucs4-utf8: Turn into a symbolic link to module
37243         unistr/u8-ubtomb.
37244
37245         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
37246         * modules/ucs4-utf16: Turn into a symbolic link to module
37247         unistr/u16-ubtomb.
37248
37249 2007-03-24  Bruno Haible  <bruno@clisp.org>
37250
37251         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
37252         Enable the function only if HAVE_INLINE.
37253         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
37254         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37255         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
37256         Enable the function only if HAVE_INLINE.
37257         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
37258         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37259         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
37260         Enable the function only if HAVE_INLINE.
37261         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
37262         Enable the function only if HAVE_INLINE.
37263         * modules/utf8-ucs4: Update.
37264         * modules/utf8-ucs4-unsafe: Update.
37265         * modules/utf16-ucs4: Update.
37266         * modules/utf16-ucs4-unsafe: Update.
37267         * modules/ucs4-utf8: Update.
37268         * modules/ucs4-utf16: Update.
37269
37270 2007-03-24  Bruno Haible  <bruno@clisp.org>
37271
37272         * lib/utf8-ucs4.h: Remove file.
37273         * lib/utf8-ucs4-unsafe.h: Remove file.
37274         * lib/utf16-ucs4.h: Remove file.
37275         * lib/utf16-ucs4-unsafe.h: Remove file.
37276         * lib/ucs4-utf8.h: Remove file.
37277         * lib/ucs4-utf16.h: Remove file.
37278         * lib/unistr.h: Include their previous contents.
37279         * m4/utf-ucs4.m4: Remove file.
37280         * m4/ucs4-utf.m4: Remove file.
37281         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
37282         (Depends-on): Add unistr/base.
37283         (configure.ac): Remove gl_UTF_UCS4.
37284         (Makefile.am): Update.
37285         (Include): Change to unistr.h.
37286         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
37287         (Depends-on): Add unistr/base.
37288         (configure.ac): Remove gl_UTF_UCS4.
37289         (Makefile.am): Update.
37290         (Include): Change to unistr.h.
37291         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
37292         (Depends-on): Add unistr/base.
37293         (configure.ac): Remove gl_UTF_UCS4.
37294         (Makefile.am): Update.
37295         (Include): Change to unistr.h.
37296         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
37297         (Depends-on): Add unistr/base.
37298         (configure.ac): Remove gl_UTF_UCS4.
37299         (Makefile.am): Update.
37300         (Include): Change to unistr.h.
37301         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
37302         (Depends-on): Add unistr/base.
37303         (configure.ac): Remove gl_UCS4_UTF.
37304         (Makefile.am): Update.
37305         (Include): Change to unistr.h.
37306         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
37307         (Depends-on): Add unistr/base.
37308         (configure.ac): Remove gl_UCS4_UTF.
37309         (Makefile.am): Update.
37310         (Include): Change to unistr.h.
37311         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
37312         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
37313         utf8-ucs4-unsafe.h.
37314         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
37315         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
37316         utf16-ucs4-unsafe.h.
37317         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
37318         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
37319         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
37320         * lib/unistr/u8-strchr.c: Likewise.
37321         * lib/unistr/u8-strrchr.c: Likewise.
37322         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
37323         * lib/unistr/u16-strchr.c: Likewise.
37324         * lib/unistr/u16-strrchr.c: Likewise.
37325         * lib/striconveh.c: Update.
37326         * lib/linebreak.c: Update.
37327
37328 2007-03-24  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
37331         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
37332
37333 2007-03-22  Bruno Haible  <bruno@clisp.org>
37334
37335         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37336
37337 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37338
37339         * MODULES.html.sh (File system functions): New module write-any-file.
37340         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37341         * m4/write-any-file.m4: New files.
37342
37343 2007-03-23  Eric Blake  <ebb9@byu.net>
37344
37345         * gnulib-tool: Rearrange space-tab sequences, since some editors
37346         like to eat them.
37347
37348 2007-03-23  Eric Blake  <ebb9@byu.net>
37349
37350         * lib/version-etc.c (version_etc_va): Update license wording to
37351         be more concise.  Recommended by Richard Stallman.
37352
37353 2007-03-22  Bruno Haible  <bruno@clisp.org>
37354
37355         * lib/poll.c (MSG_PEEK): New fallback definition.
37356
37357 2007-03-22  Bruno Haible  <bruno@clisp.org>
37358
37359         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37360         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37361         (main): Update.
37362         Fixes a compilation error on BeOS.
37363
37364 2007-03-22  Bruno Haible  <bruno@clisp.org>
37365
37366         * modules/frexpl-tests: New file.
37367         * tests/test-frexpl.c: New file.
37368
37369         * modules/frexpl: New file.
37370         * m4/frexpl.m4: New file.
37371         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37372         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37374         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37375         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37376         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37377
37378 2007-03-22  Bruno Haible  <bruno@clisp.org>
37379
37380         * lib/frexpl.c: Share code with lib/frexp.c.
37381         * modules/mathl (Files): Add lib/frexp.c.
37382         (Depends-on): Add isnanl-nolibm.
37383
37384 2007-03-22  Bruno Haible  <bruno@clisp.org>
37385
37386         * modules/printf-frexp (Files): Add m4/frexp.m4.
37387         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37388         only if the found frexp function actually works.
37389
37390 2007-03-22  Bruno Haible  <bruno@clisp.org>
37391
37392         * lib/frexp.c: Remove older implementation that uses divisions.
37393
37394 2007-03-21  Bruno Haible  <bruno@clisp.org>
37395
37396         * modules/frexp-tests: New file.
37397         * tests/test-frexp.c: New file.
37398
37399         * modules/frexp: New file.
37400         * lib/frexp.c: New file.
37401         * m4/frexp.m4: New file.
37402         * lib/math_.h (frexp): New declaration.
37403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37404         REPLACE_FREXP.
37405         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37406
37407 2007-03-21  Bruno Haible  <bruno@clisp.org>
37408
37409         * modules/isnanl-tests: New file.
37410         * tests/test-isnanl.c: New file.
37411
37412         * modules/isnanl: New file.
37413         * lib/isnanl.h: New file.
37414         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37415         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37416         gl_FUNC_ISNANL_WORKS.
37417         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37418         New macros.
37419
37420 2007-03-21  Bruno Haible  <bruno@clisp.org>
37421
37422         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37423         lib/isnanl.h.
37424         (Include): Update.
37425         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37426         * lib/vasnprintf.c: Update.
37427         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37428         tests/test-isnanl.h, remove tests/test-isnanl.c.
37429         (Makefile.am): Update.
37430         * tests/test-isnanl-nolibm.c: New file.
37431         * tests/test-isnanl.h: New file.
37432         * tests/test-isnanl.c: Remove file.
37433
37434 2007-03-21  Jim Meyering  <jim@meyering.net>
37435
37436         When trying to open ".", treat ESTALE like EACCES.
37437         * lib/savewd.c (savewd_save): Resort to forking not just upon
37438         failure with EACCES, but also when errno is ESTALE.
37439
37440 2007-03-20  Bruno Haible  <bruno@clisp.org>
37441
37442         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37443         Needed on AIX 5.1. Reported by Matthew Woehlke.
37444
37445 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37446
37447         Suggestions by Bruno Haible:
37448         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37449         our own.
37450         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37451         * modules/acl (Depends-on): Add gettext.
37452
37453 2007-03-19  Bruno Haible  <bruno@clisp.org>
37454
37455         * modules/iconvme: Remove file.
37456         * lib/iconvme.h: Remove file.
37457         * lib/iconvme.c: Remove file.
37458         * m4/iconvme.m4: Remove file.
37459
37460 2007-03-19  Bruno Haible  <bruno@clisp.org>
37461
37462         * doc/relocatable-maint.texi: Break long shell script line.
37463         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37464
37465 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37466
37467         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37468         handle file_has_acl.
37469         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37470         * lib/acl.c: Move header inclusions and related macro defns into
37471         lib/acl-internal.h.
37472         (S_ISLNK): Remove defn, since that's now done for us.
37473         (file_has_acl): Move to lib/file-has-acl.c.
37474         Call acl_trivial if available.  This is the crucial part of the fix.
37475         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37476         shared within the library.  Rewrite a bit, partly to make it compatible
37477         with the GNU coding style.
37478         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37479         Remove unnecessary double-quotes.
37480         Don't test for acl_to_text; the build will catch that.
37481         Replace acl_entries if it doesn't exist and it is needed.
37482         Check for -lsec and acl_trivial (as used on Solaris 10).
37483         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37484         lib/file-has-acl.c.
37485         (Depends-on): Add sys_stat, for S_ISLNK.
37486
37487 2007-03-19  Ben Pfaff  <blp@gnu.org>
37488
37489         * doc/gnulib.texi: Fix typos.
37490         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37491
37492 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37493
37494         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37495         If size is zero here, buf must be zero.
37496
37497 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37498
37499         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37500         <bruno@clisp.org>.
37501
37502 2007-03-18  Bruno Haible  <bruno@clisp.org>
37503
37504         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37505         Suggested by Eric Blake.
37506
37507 2007-03-18  Ben Pfaff  <blp@gnu.org>
37508
37509         * doc/relocatable.texi: Recommend using as prefix a directory
37510         that does not exist and will never be created.  Based on
37511         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37512         and others.
37513
37514 2007-03-17  Bruno Haible  <bruno@clisp.org>
37515
37516         * lib/fchownat.c: Include lchown.h.
37517
37518 2007-03-17  Bruno Haible  <bruno@clisp.org>
37519
37520         Fix endless loop when the given allocated size was > INT_MAX.
37521         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37522         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37523         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37524         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37525         * lib/sprintf.c (sprintf): Likewise.
37526
37527 2007-03-17  Bruno Haible  <bruno@clisp.org>
37528
37529         * tests/test-argp-2.sh (func_compare): Output a context diff.
37530
37531 2007-03-17  Bruno Haible  <bruno@clisp.org>
37532
37533         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37534         locale's decimal-point character.
37535
37536 2007-03-17  Bruno Haible  <bruno@clisp.org>
37537
37538         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37539         before comparing it. Needed because on some platforms (e.g. x86) a
37540         'long double' occupies less bytes than sizeof (long double).
37541
37542 2007-03-17  Bruno Haible  <bruno@clisp.org>
37543
37544         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37545         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37546         * tests/test-getaddrinfo.c (simple): Likewise.
37547         * tests/test-read-file.c (main): Likewise.
37548
37549 2007-03-17  Bruno Haible  <bruno@clisp.org>
37550
37551         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37552
37553 2007-03-17  Bruno Haible  <bruno@clisp.org>
37554
37555         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37556         unused variable.
37557
37558 2007-03-17  Bruno Haible  <bruno@clisp.org>
37559
37560         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37561         * tests/test-c-strncasecmp.c: Likewise.
37562
37563 2007-03-17  Bruno Haible  <bruno@clisp.org>
37564
37565         * modules/stdlib (Depends-on): Add unistd.
37566         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37567         Needed for MacOS X 10.3.
37568
37569 2007-03-17  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37572
37573 2007-03-17  Bruno Haible  <bruno@clisp.org>
37574
37575         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37576
37577 2007-03-17  Bruno Haible  <bruno@clisp.org>
37578
37579         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37580         to reflect files copied from gnulib (with or without modifications).
37581         Suggested by Jim Meyering.
37582
37583 2007-03-17  Eric Blake  <ebb9@byu.net>
37584
37585         * NEWS: Document stdlib change from 2007-02-18.
37586
37587 2007-03-17  Jim Meyering  <jim@meyering.net>
37588
37589         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37590         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37591         someone uses a name containing shell meta-characters.
37592         Reported by Alfred M. Szmidt.
37593
37594         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37595
37596 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37597
37598         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37599         and copy gettext configuration files only if configure.ac contains
37600         a use of AM_GNU_GETTEXT_VERSION.
37601
37602 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37603
37604         * build-aux/bootstrap (gnulib_name): New variable.
37605         (gnulib_tool_options): Use it.
37606
37607 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37608
37609         * tests/test-des.c: Use new namespace.
37610
37611 2007-03-15  Bruno Haible  <bruno@clisp.org>
37612
37613         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37614         Reported by James Youngman <jay@gnu.org>.
37615
37616 2007-03-15  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37619         declared prototype. Needed with cc on OSF/1 5.1.
37620
37621 2007-03-15  Bruno Haible  <bruno@clisp.org>
37622
37623         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37624         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37625         (struct gl_list_implementation): Add dispose_fn argument to the
37626         'create_empty', 'create' methods.
37627         (struct gl_list_impl_base): Add field 'dispose_fn'.
37628         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37629         argument.
37630         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37631         dispose_fn argument.
37632         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37633         dispose_fn on the dropped values.
37634         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37635         dispose_fn argument.
37636         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37637         dropped values.
37638         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37639         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37640         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37641         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37642         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37643         argument.
37644         (gl_tree_list_free): Call dispose_fn on the dropped values.
37645         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37646         the dropped values.
37647         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37648         Add dispose_fn argument.
37649         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37650         Call dispose_fn on the dropped values.
37651         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37652         Add dispose_fn argument.
37653         (gl_sublist_create): Initialize the 'dispose_fn' field.
37654         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37655         * tests/test-array_list.c (main): Update.
37656         * tests/test-carray_list.c (main): Update.
37657         * tests/test-avltree_list.c (main): Update.
37658         * tests/test-rbtree_list.c (main): Update.
37659         * tests/test-avltreehash_list.c (main): Update.
37660         * tests/test-rbtreehash_list.c (main): Update.
37661         * tests/test-linked_list.c (main): Update.
37662         * tests/test-linkedhash_list.c (main): Update.
37663         * tests/test-array_oset.c (main): Update.
37664
37665 2007-03-15  Bruno Haible  <bruno@clisp.org>
37666
37667         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37668         (gl_oset_create_empty): Add dispose_fn argument.
37669         (struct gl_oset_implementation): Add dispose_fn argument to
37670         'create_empty' method.
37671         (struct gl_oset_impl_base): Add dispose_fn field.
37672         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37673         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37674         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37675         values.
37676         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37677         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37678         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37679         dropped value.
37680         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37681         dropped value.
37682         * tests/test-array_oset.c (main): Update.
37683         * tests/test-avltree_oset.c (main): Update.
37684         * tests/test-rbtree_oset.c (main): Update.
37685         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37686
37687 2007-03-13  Bruno Haible  <bruno@clisp.org>
37688
37689         * tests/test-stdbool.c (i): Update after last patch.
37690
37691 2007-03-12  Bruno Haible  <bruno@clisp.org>
37692
37693         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37694         the iswprint macro. Needed on Solaris 2.5.1.
37695
37696 2007-03-12  Bruno Haible  <bruno@clisp.org>
37697
37698         * tests/test-printf-frexp.c (main): Declare x as volatile.
37699
37700 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37701
37702         * doc/gnulib.texi (Build robot for gnulib): New section.
37703
37704 2007-03-12  Jim Meyering  <jim@meyering.net>
37705
37706         * build-aux/bootstrap: New file.
37707         * build-aux/bootstrap.conf: New file, from coreutils.
37708
37709 2007-03-11  Bruno Haible  <bruno@clisp.org>
37710
37711         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37712
37713 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37714
37715         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37716         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37717         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37718
37719 2007-03-11  Bruno Haible  <bruno@clisp.org>
37720
37721         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37722         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37723
37724 2007-03-11  Bruno Haible  <bruno@clisp.org>
37725
37726         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37727         formula. Needed for SunPRO C 5.0.
37728
37729 2007-03-11  Bruno Haible  <bruno@clisp.org>
37730
37731         * modules/long-options (Depends-on): Add getopt.
37732
37733 2007-03-11  Bruno Haible  <bruno@clisp.org>
37734
37735         * modules/modechange (Depends-on): Add stdbool.
37736
37737 2007-03-11  Bruno Haible  <bruno@clisp.org>
37738
37739         * modules/i-ring (Depends-on): Add stdbool.
37740
37741 2007-03-11  Bruno Haible  <bruno@clisp.org>
37742
37743         * modules/gc-des (Depends-on): Add stdbool.
37744
37745 2007-03-11  Bruno Haible  <bruno@clisp.org>
37746
37747         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37748
37749 2007-03-11  Bruno Haible  <bruno@clisp.org>
37750
37751         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37752
37753 2007-03-11  Bruno Haible  <bruno@clisp.org>
37754
37755         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37756
37757 2007-03-11  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/vasnprintf.c (sprintf): Undefine.
37760
37761 2007-03-11  Bruno Haible  <bruno@clisp.org>
37762
37763         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37764         initializers in SunPRO C and Compaq C compilers.
37765
37766 2007-03-11  Bruno Haible  <bruno@clisp.org>
37767
37768         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37769         decrementing code ANSI C compliant.
37770
37771 2007-03-11  Bruno Haible  <bruno@clisp.org>
37772
37773         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37774         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37775
37776 2007-03-11  Bruno Haible  <bruno@clisp.org>
37777
37778         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37779         <stdbool.h> substitute doesn't pass.
37780
37781 2007-03-11  Bruno Haible  <bruno@clisp.org>
37782
37783         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37784
37785 2007-03-11  Bruno Haible  <bruno@clisp.org>
37786
37787         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37788         script, for submission to autobuild.josefsson.org.
37789
37790 2007-03-10  Bruno Haible  <bruno@clisp.org>
37791
37792         * modules/canonicalize-lgpl-tests: New file.
37793         * tests/test-canonicalize-lgpl.sh: New file.
37794         * tests/test-canonicalize-lgpl.c: New file.
37795
37796         * modules/c-strcase-tests: New file.
37797         * tests/test-c-strcase.sh: New file.
37798         * tests/test-c-strcasecmp.c: New file.
37799         * tests/test-c-strncasecmp.c: New file.
37800
37801         * modules/atexit-tests: New file.
37802         * tests/test-atexit.sh: New file.
37803         * tests/test-atexit.c: New file.
37804
37805 2007-03-10  Bruno Haible  <bruno@clisp.org>
37806
37807         * tests/test-binary-io.sh: Use temporary filenames that are not so
37808         likely to clash with those of other tests (in a parallel make).
37809         * tests/test-binary-io.c: Likewise.
37810
37811 2007-03-10  Bruno Haible  <bruno@clisp.org>
37812
37813         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37814         fallback; use #error instead.
37815         Suggested by Simon Josefsson.
37816
37817 2007-03-10  Bruno Haible  <bruno@clisp.org>
37818
37819         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37820         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37821         first and the last.
37822
37823 2007-03-10  Bruno Haible  <bruno@clisp.org>
37824
37825         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37826
37827 2007-03-10  Bruno Haible  <bruno@clisp.org>
37828
37829         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37830         "make distcheck".
37831         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37832         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37833         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37834
37835 2007-03-10  Bruno Haible  <bruno@clisp.org>
37836
37837         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37838         variable.
37839         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37840         variable.
37841
37842 2007-03-09  Eric Blake  <ebb9@byu.net>
37843         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37844
37845         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37846         types are not being provided by gnulib.
37847         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37848         types are supported.
37849
37850 2007-03-10  Bruno Haible  <bruno@clisp.org>
37851
37852         * lib/stdio_.h (__attribute__): New macro.
37853         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37854         vsprintf): Specify __attribute__ __format__ for GCC.
37855         Suggested by Eric Blake.
37856
37857 2007-03-09  Bruno Haible  <bruno@clisp.org>
37858
37859         * modules/printf-posix-tests: New file.
37860         * tests/test-printf-posix.sh: New file.
37861         * tests/test-printf-posix.c: New file.
37862
37863         * modules/printf-posix: New file.
37864         * lib/printf.c: New file.
37865         * m4/printf-posix-rpl.m4: New file.
37866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37867         REPLACE_PRINTF.
37868         * lib/stdio_.h (printf): New declaration.
37869         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37870         ____strfmon____): New macros.
37871         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37872         REPLACE_PRINTF.
37873
37874 2007-03-09  Bruno Haible  <bruno@clisp.org>
37875
37876         * tests/test-vasnprintf-posix2.sh: New file.
37877         * tests/test-vasnprintf-posix2.c: New file.
37878         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37879         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37880         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37881
37882         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37883         a locale dependent decimal point, rather than always '.'.
37884
37885 2007-03-09  Eric Blake  <ebb9@byu.net>
37886
37887         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37888         spite of platforms like Tandem/NSK that define it to -1.
37889
37890 2007-03-08  Bruno Haible  <bruno@clisp.org>
37891
37892         * modules/vprintf-posix-tests: New file.
37893         * tests/test-vprintf-posix.sh: New file.
37894         * tests/test-vprintf-posix.c: New file.
37895         * tests/test-printf-posix.h: New file.
37896
37897         * modules/vprintf-posix: New file.
37898         * lib/vprintf.c: New file.
37899         * m4/vprintf-posix.m4: New file.
37900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37901         REPLACE_VPRINTF.
37902         * lib/stdio_.h (vprintf): New declaration.
37903         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37904         REPLACE_VPRINTF.
37905
37906 2007-03-08  Bruno Haible  <bruno@clisp.org>
37907
37908         * modules/fprintf-posix-tests: New file.
37909         * tests/test-fprintf-posix.sh: New file.
37910         * tests/test-fprintf-posix.c: New file.
37911
37912         * modules/fprintf-posix: New file.
37913         * lib/fprintf.c: New file.
37914         * m4/fprintf-posix.m4: New file.
37915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37916         REPLACE_FPRINTF.
37917         * lib/stdio_.h (fprintf): New declaration.
37918         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37919         REPLACE_FPRINTF.
37920
37921 2007-03-08  Bruno Haible  <bruno@clisp.org>
37922
37923         * modules/vfprintf-posix-tests: New file.
37924         * tests/test-vfprintf-posix.sh: New file.
37925         * tests/test-vfprintf-posix.c: New file.
37926         * tests/test-fprintf-posix.h: New file.
37927         * tests/test-fprintf-posix.out: New file.
37928
37929         * modules/vfprintf-posix: New file.
37930         * lib/vfprintf.c: New file.
37931         * m4/vfprintf-posix.m4: New file.
37932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37933         REPLACE_VFPRINTF.
37934         * lib/stdio_.h (vfprintf): New declaration.
37935         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37936         REPLACE_VFPRINTF.
37937
37938 2007-03-08  Bruno Haible  <bruno@clisp.org>
37939
37940         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37941
37942 2007-03-08  Bruno Haible  <bruno@clisp.org>
37943
37944         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37945         instead of 'expr' invocations.
37946         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37947         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37948         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37949         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37950         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37951         Suggested by Paul Eggert.
37952
37953 2007-03-08  Bruno Haible  <bruno@clisp.org>
37954
37955         * modules/fseterr-tests: New file.
37956         * tests/test-fseterr.c: New file.
37957
37958         * modules/fseterr: New file.
37959         * lib/fseterr.h: New file.
37960         * lib/fseterr.c: New file.
37961
37962 2007-03-08  Bruno Haible  <bruno@clisp.org>
37963
37964         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37965         * lib/getopt_.h: Likewise.
37966         * lib/mbswidth.h: Likewise.
37967         * lib/setenv.h: Likewise.
37968         * lib/vasnprintf.h: Likewise.
37969         * lib/vasprintf.h: Likewise.
37970         * lib/verror.h: Likewise.
37971         * lib/xsetenv.h: Likewise.
37972         * lib/xvasprintf.h: Likewise.
37973
37974 2007-03-08  Jim Meyering  <jim@meyering.net>
37975
37976         * users.txt: Add parted.
37977
37978         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37979
37980 2007-03-07  Bruno Haible  <bruno@clisp.org>
37981
37982         * m4/printf.m4: Make the shell script snippets copy&pastable.
37983
37984 2007-03-02  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/netinet_in_.h: New file.
37987         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37988         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37989         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37990         (Depends-on): Add absolute-header.
37991         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37992         into netinet/in.h.
37993
37994 2007-03-03  Bruno Haible  <bruno@clisp.org>
37995
37996         * lib/sys_select_.h: New file.
37997         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37998         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37999         * modules/sys_select (Files): Add lib/sys_select_.h.
38000         (Depends-on): Add absolute-header.
38001         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
38002         into sys/select.h.
38003
38004 2007-03-02  Bruno Haible  <bruno@clisp.org>
38005
38006         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
38007         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
38008         values.
38009         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
38010         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
38011         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
38012         * modules/sys_socket (Depends-on): Add absolute-header.
38013         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
38014         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
38015         (Include): Remove requirement of inclusion of <sys/types.h>.
38016
38017 2007-03-02  Bruno Haible  <bruno@clisp.org>
38018
38019         * lib/byteswap_.h (bswap_32): Fix formula.
38020
38021 2007-03-06  Bruno Haible  <bruno@clisp.org>
38022
38023         * modules/sprintf-posix-tests: New file.
38024         * tests/test-sprintf-posix.c: New file.
38025
38026         * modules/sprintf-posix: New file.
38027         * lib/sprintf.c: New file.
38028         * m4/sprintf-posix.m4: New file.
38029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
38030         REPLACE_SPRINTF.
38031         * lib/stdio_.h (sprintf): New declaration.
38032         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
38033         REPLACE_SPRINTF.
38034
38035 2007-03-06  Bruno Haible  <bruno@clisp.org>
38036
38037         * modules/vsprintf-posix-tests: New file.
38038         * tests/test-vsprintf-posix.c: New file.
38039         * tests/test-sprintf-posix.h: New file.
38040
38041         * modules/vsprintf-posix: New file.
38042         * lib/vsprintf.c: New file.
38043         * m4/vsprintf-posix.m4: New file.
38044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
38045         REPLACE_VSPRINTF.
38046         * lib/stdio_.h (vsprintf): New declaration.
38047         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
38048         REPLACE_VSPRINTF.
38049
38050 2007-03-06  Bruno Haible  <bruno@clisp.org>
38051
38052         * modules/vsnprintf (Depend-on): Remove minmax.
38053
38054 2007-03-06  Bruno Haible  <bruno@clisp.org>
38055
38056         * modules/snprintf-posix-tests: New file.
38057         * tests/test-snprintf-posix.c: New file.
38058
38059         * modules/snprintf-posix: New file.
38060         * m4/snprintf-posix.m4: New file.
38061         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
38062         gl_FUNC_SNPRINTF.
38063         (gl_FUNC_SNPRINTF): Invoke it.
38064         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
38065         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
38066         is set.
38067         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
38068
38069 2007-03-06  Bruno Haible  <bruno@clisp.org>
38070
38071         * modules/vsnprintf-posix-tests: New file.
38072         * tests/test-vsnprintf-posix.c: New file.
38073         * tests/test-snprintf-posix.h: New file.
38074
38075         * modules/vsnprintf-posix: New file.
38076         * m4/vsnprintf-posix.m4: New file.
38077         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
38078         gl_FUNC_VSNPRINTF.
38079         (gl_FUNC_VSNPRINTF): Invoke it.
38080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
38081         * lib/stdio_.h (vsnprintf): Define as a replacement if
38082         REPLACE_VSNPRINTF is set.
38083         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
38084
38085 2007-03-06  Bruno Haible  <bruno@clisp.org>
38086
38087         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
38088         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
38089
38090 2007-03-06  Bruno Haible  <bruno@clisp.org>
38091
38092         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
38093         (asinl): Declare also if HAVE_DECL_ASINL is set.
38094         (atanl): Declare also if HAVE_DECL_ATANL is set.
38095         (ceill): Declare also if HAVE_DECL_CEILL is set.
38096         (cosl): Declare also if HAVE_DECL_COSL is set.
38097         (expl): Declare also if HAVE_DECL_EXPL is set.
38098         (floorl): Declare also if HAVE_DECL_FLOORL is set.
38099         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
38100         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
38101         (logl): Declare also if HAVE_DECL_LOGL is set.
38102         (sinl): Declare also if HAVE_DECL_SINL is set.
38103         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
38104         (tanl): Declare also if HAVE_DECL_TANL is set.
38105         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
38106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
38107         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
38108         declaration of frexpl, ldexpl.
38109         * modules/printf-frexpl (Depends-on): Add math.
38110         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
38111
38112 2007-03-05  Bruno Haible  <bruno@clisp.org>
38113
38114         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
38115         frexpl and ldexpl are declared.
38116         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
38117
38118 2007-03-05  Bruno Haible  <bruno@clisp.org>
38119
38120         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
38121         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
38122
38123 2007-03-05  Bruno Haible  <bruno@clisp.org>
38124
38125         * lib/stdio_.h: Include <stddef.h>.
38126
38127 2007-03-05  Bruno Haible  <bruno@clisp.org>
38128
38129         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
38130
38131 2007-03-05  Bruno Haible  <bruno@clisp.org>
38132
38133         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
38134         NetBSD 4, from Ralf Wildenhues.
38135
38136 2007-03-04  Bruno Haible  <bruno@clisp.org>
38137
38138         * lib/vasprintf.h: Update #if logic for the case when the functions
38139         exist but are overridden.
38140
38141 2007-03-04  Bruno Haible  <bruno@clisp.org>
38142
38143         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
38144         implementations: glibc-2.4 and MacOS X 10.3.
38145         * tests/test-vasnprintf-posix.c (test_function): Test also the case
38146         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
38147         * tests/test-vasprintf-posix.c (test_function): Likewise.
38148
38149 2007-03-04  Bruno Haible  <bruno@clisp.org>
38150
38151         * modules/vasprintf-posix-tests: New file.
38152         * tests/test-vasprintf-posix.c: New file.
38153
38154         * modules/vasprintf-posix: New file.
38155         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
38156         defined.
38157         * m4/vasprintf-posix.m4: New file.
38158         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
38159         gl_FUNC_VASPRINTF.
38160         (gl_FUNC_VASPRINTF): Invoke it.
38161         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
38162         here.
38163         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
38164
38165 2007-03-04  Bruno Haible  <bruno@clisp.org>
38166
38167         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
38168         REPLACE_GETTIMEOFDAY.
38169         * modules/sys_time (Makefile.am): Likewise.
38170         * m4/sys_time_h.m4: Likewise.
38171         * m4/gettimeofday.m4: Likewise.
38172
38173 2007-03-04  Bruno Haible  <bruno@clisp.org>
38174
38175         * modules/vasnprintf-posix-tests: New file.
38176         * tests/test-vasnprintf-posix.c: New file.
38177
38178         * modules/vasnprintf-posix: New file.
38179         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
38180         printf-frexpl.h.
38181         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
38182         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
38183         REPLACE_VASNPRINTF is defined.
38184         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
38185         gl_FUNC_VASNPRINTF.
38186         (gl_FUNC_VASNPRINTF): Invoke it.
38187         * m4/vasnprintf-posix.m4: New file.
38188         * m4/printf.m4: New file.
38189
38190 2007-03-04  Bruno Haible  <bruno@clisp.org>
38191
38192         Compile progreloc.c only if --enable-relocatable is specified.
38193         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
38194         if --enable-relocatable was specified.
38195         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
38196         lib_SOURCES.
38197
38198 2007-03-04  Jim Meyering  <jim@meyering.net>
38199
38200         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
38201         Use it consistently, rather than enumerating errno constants.
38202
38203 2007-03-04  Bruno Haible  <bruno@clisp.org>
38204
38205         * modules/xvasprintf-tests: New file.
38206         * tests/test-xvasprintf.c: New file.
38207
38208         * modules/vasprintf-tests: New file.
38209         * tests/test-vasprintf.c: New file.
38210
38211         * modules/vasnprintf-tests: New file.
38212         * tests/test-vasnprintf.c: New file.
38213
38214         * modules/vsnprintf-tests: New file.
38215         * tests/test-vsnprintf.c: New file.
38216
38217         * modules/snprintf-tests: New file.
38218         * tests/test-snprintf.c: New file.
38219
38220 2007-03-04  Bruno Haible  <bruno@clisp.org>
38221
38222         Compile relocatable.c only if --enable-relocatable is specified.
38223         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
38224         gl_RELOCATABLE_LIBRARY.
38225         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
38226         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
38227         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
38228         gl_RELOCATABLE_LIBRARY.
38229         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
38230         (Makefile.am): Remove lib_SOURCES.
38231         * modules/relocatable-lib-lgpl (configure.ac): Invoke
38232         gl_RELOCATABLE_LIBRARY.
38233         (Makefile.am): Remove lib_SOURCES.
38234         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
38235         always.
38236         * modules/relocatable-prog-wrapper (configure.ac): Invoke
38237         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
38238
38239 2007-03-04  Bruno Haible  <bruno@clisp.org>
38240
38241         * modules/argmatch-tests: New file.
38242         * tests/test-argmatch.c: New file.
38243
38244         * tests/test-allocsa.c (main): Halve the number of loop runs.
38245
38246         * modules/alloca-opt-tests: New file.
38247         * tests/test-alloca-opt.c: New file.
38248
38249 2007-03-04  Jim Meyering  <jim@meyering.net>
38250
38251         Work around difference between Linux ACLs and Solaris 10 ZFS.
38252         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
38253         for EINVAL.
38254
38255 2007-03-03  Bruno Haible  <bruno@clisp.org>
38256
38257         * modules/relocatable-prog (Depends-on): Add back progreloc's
38258         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
38259
38260 2007-03-03  Bruno Haible  <bruno@clisp.org>
38261
38262         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
38263         * modules/relocatable-lib: New file.
38264
38265 2007-03-03  Bruno Haible  <bruno@clisp.org>
38266
38267         * modules/relocatable-prog: Renamed from modules/relocatable.
38268         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
38269
38270 2007-03-03  Bruno Haible  <bruno@clisp.org>
38271
38272         * modules/relocatable-script (Files): Add doc/relocatable.texi,
38273         m4/relocatable-lib.m4.
38274         (Depends-on): Remove 'relocatable'.
38275         (configure.ac): Add gl_RELOCATABLE_NOP.
38276
38277 2007-03-03  Bruno Haible  <bruno@clisp.org>
38278
38279         * modules/relocatable-prog-wrapper: New file.
38280         * modules/relocatable (Depends-on): Add it. Remove all other
38281         dependencies except progname.
38282         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
38283
38284         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
38285         (gl_FUNC_STRERROR): Nop.
38286         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
38287
38288         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
38289         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
38290
38291         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
38292         (gl_FUNC_READLINK): Update.
38293
38294         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
38295
38296 2007-03-03  Bruno Haible  <bruno@clisp.org>
38297
38298         * lib/xreadlink.c: Include <unistd.h> unconditionally.
38299         * modules/xreadlink (Depends-on): Add unistd.
38300         * modules/xreadlink-with-size (Depends-on): Likewise.
38301
38302 2007-03-03  Bruno Haible  <bruno@clisp.org>
38303
38304         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
38305         extracted from gt_FUNC_SETENV.
38306         (gt_FUNC_SETENV): Remove macro.
38307         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
38308         remove gt_FUNC_SETENV.
38309
38310 2007-03-03  Bruno Haible  <bruno@clisp.org>
38311
38312         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
38313         ENABLE_RELOCATABLE here.
38314         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
38315
38316 2007-03-03  Bruno Haible  <bruno@clisp.org>
38317
38318         * modules/rbtreehash-list-tests (Depends-on): Add progname.
38319         * tests/test-rbtreehash_list.c: Include progname.h.
38320         (main): Call set_program_name.
38321
38322         * modules/rbtree-oset-tests (Depends-on): Add progname.
38323         * tests/test-rbtree_oset.c: Include progname.h.
38324         (main): Call set_program_name.
38325
38326         * modules/rbtree-list-tests (Depends-on): Add progname.
38327         * tests/test-rbtree_list.c: Include progname.h.
38328         (main): Call set_program_name.
38329
38330         * modules/linked-list-tests (Depends-on): Add progname.
38331         * tests/test-linked_list.c: Include progname.h.
38332         (main): Call set_program_name.
38333
38334 2007-03-03  Bruno Haible  <bruno@clisp.org>
38335
38336         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38337         All uses of __restrict changed to _Restrict_.
38338         * lib/glob_.h (__restrict): Remove macro.
38339
38340 2007-03-02  Bruno Haible  <bruno@clisp.org>
38341
38342         * modules/gettext (configure.ac): Require gettext infrastructure
38343         from version 0.16.1.
38344
38345 2007-03-02  Bruno Haible  <bruno@clisp.org>
38346
38347         * modules/linkedhash-list-tests (Depends-on): Add progname.
38348         * tests/test-linkedhash_list.c: Include progname.h.
38349         (main): Call set_program_name.
38350
38351         * modules/carray-list-tests (Depends-on): Add progname.
38352         * tests/test-carray_list.c: Include progname.h.
38353         (main): Call set_program_name.
38354
38355         * modules/avltreehash-list-tests (Depends-on): Add progname.
38356         * tests/test-avltreehash_list.c: Include progname.h.
38357         (main): Call set_program_name.
38358
38359         * modules/avltree-oset-tests (Depends-on): Add progname.
38360         * tests/test-avltree_oset.c: Include progname.h.
38361         (main): Call set_program_name.
38362
38363         * modules/avltree-list-tests (Depends-on): Add progname.
38364         * tests/test-avltree_list.c: Include progname.h.
38365         (main): Call set_program_name.
38366
38367         * modules/array-oset-tests (Depends-on): Add progname.
38368         * tests/test-array_oset.c: Include progname.h.
38369         (main): Call set_program_name.
38370
38371         * modules/array-list-tests (Depends-on): Add progname.
38372         * tests/test-array_list.c: Include progname.h.
38373         (main): Call set_program_name.
38374
38375         * modules/argp-tests (Depends-on): Add progname.
38376         * tests/test-argp.c: Include argp.h first. Include progname.h.
38377         (main): Call set_program_name.
38378
38379 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38380
38381         * doc/gnulib-tool.texi (Initial import): Reword description of
38382         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38383         limited effect even if defined after the first system include.
38384
38385 2007-03-01  Bruno Haible  <bruno@clisp.org>
38386
38387         * build-aux/config.libpath: Update to libtool-1.5.22.
38388         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38389
38390 2007-03-01  Bruno Haible  <bruno@clisp.org>
38391
38392         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38393         foo_CFLAGS.
38394         Reported by Ralf Wildenhues.
38395
38396 2007-03-01  Bruno Haible  <bruno@clisp.org>
38397
38398         * build-aux/install-reloc: Remove object files left over by some
38399         compilers.
38400         Reported by Ralf Wildenhues.
38401
38402 2007-03-01  Bruno Haible  <bruno@clisp.org>
38403
38404         * build-aux/install-reloc: Break long lines.
38405
38406 2007-03-01  Bruno Haible  <bruno@clisp.org>
38407
38408         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38409         Reported by Ralf Wildenhues.
38410
38411 2007-03-01  Bruno Haible  <bruno@clisp.org>
38412
38413         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38414         include ordering constraints.
38415
38416 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38417
38418         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38419         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38420         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38421         as another example.
38422         * lib/time_.h: Fix misspelling.
38423         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38424         Require gl_HEADER_TIME_H_DEFAULTS.
38425         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38426         * m4/time_r.m4 (gl_TIME_R): Likewise.
38427         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38428
38429 2007-03-01  Bruno Haible  <bruno@clisp.org>
38430
38431         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38432         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38433
38434 2007-03-01  Jim Meyering  <jim@meyering.net>
38435
38436         * modules/xreadlink (Maintainer): Add my name.
38437         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38438
38439 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38440             Bruno Haible  <bruno@clisp.org>
38441
38442         * build-aux/install-reloc: Compile also c-ctype.c.
38443         * build-aux/relocatable.sh.in: New file.
38444         * doc/relocatable.texi: New file.
38445         * doc/relocatable-maint.texi: New file.
38446         * doc/gnulib.texi: Include relocatable-maint.texi.
38447         * lib/progreloc.c: Include unistd.h unconditionally.
38448         * lib/relocwrapper.c: Include unistd.h unconditionally.
38449         Include c-ctype.h.
38450         (add_dotbin): Use c_tolower.
38451         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38452         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38453         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38454         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38455         to m4/relocatable-lib.m4.
38456         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38457         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38458         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38459         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38460         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38461         * modules/relocatable: New file.
38462         * modules/relocatable-lib: New file.
38463         * modules/relocatable-script: New file.
38464
38465 2007-02-28  Bruno Haible  <bruno@clisp.org>
38466
38467         Import --enable-relocatable infrastructure.
38468         * build-aux/config.libpath: New file, from GNU gettext.
38469         * build-aux/install-reloc: New file, from GNU gettext.
38470         * build-aux/reloc-ldflags: New file, from GNU gettext.
38471         * lib/relocatable.h: New file, from GNU gettext.
38472         * lib/relocatable.c: New file, from GNU gettext.
38473         * lib/relocwrapper.c: New file, from GNU gettext.
38474         * m4/relocatable.m4: New file, from GNU gettext.
38475
38476 2007-02-28  Bruno Haible  <bruno@clisp.org>
38477
38478         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38479
38480         * modules/xreadlink: New file, from GNU gettext with modifications.
38481         * lib/xreadlink.c: New file, from GNU gettext.
38482         * lib/xreadlink.h: Add comments.
38483         (xreadlink): New declaration.
38484
38485         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38486         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38487         lib/xreadlink-with-size.c.
38488         (configure.ac): Remove gl_XREADLINK invocation.
38489         (Makefile.am): Augment lib_SOURCES.
38490         * m4/xreadlink.m4: Remove file.
38491         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38492         (xreadlink_with_size): Renamed from xreadink.
38493         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38494         * modules/canonicalize (Depends-on): Replace xreadlink with
38495         xreadlink-with-size.
38496         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38497
38498 2007-02-25  Jim Meyering  <jim@meyering.net>
38499
38500         * build-aux/announce-gen: When complaining about excess arguments,
38501         list them.
38502
38503 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38504
38505         * README: Document signed integer overflow situation more
38506         accurately.
38507
38508 2007-02-25  Bruno Haible  <bruno@clisp.org>
38509
38510         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38511         'a' or 'A' conversion.
38512
38513 2007-02-25  Bruno Haible  <bruno@clisp.org>
38514
38515         * modules/filename: Renamed from modules/pathname.
38516         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38517         lib/concatpath.c with lib/concat-filename.c.
38518         (Makefile.am): Update.
38519         (Include): Replace pathname.h with filename.h.
38520         * lib/filename.h: Renamed from lib/pathname.h.
38521         (concatenated_filename): Renamed from concatenated_pathname.
38522         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38523         (concatenated_filename): Renamed from concatenated_pathname.
38524         * lib/findprog.c: Include filename.h instead of pathname.h.
38525         (find_in_path): Update.
38526         * lib/javacomp.c: Include filename.h instead of pathname.h.
38527         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38528         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38529         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38530         is_oldgcj_14_13_usable, is_javac_usable): Update.
38531         * lib/javaexec.c: Include filename.h instead of pathname.h.
38532         (execute_java_class): Update.
38533         * modules/findprog: Update.
38534         * modules/javacomp: Update.
38535         * modules/javaexec: Update.
38536         * MODULES.html.sh (File system functions): Add 'filename', remove
38537         'pathname'.
38538
38539 2007-02-25  Bruno Haible  <bruno@clisp.org>
38540
38541         * modules/printf-frexpl-tests: New file.
38542         * tests/test-printf-frexpl.c: New file.
38543
38544         * modules/printf-frexpl: New file.
38545         * lib/printf-frexpl.h: New file.
38546         * lib/printf-frexpl.c: New file.
38547         * m4/printf-frexpl.m4: New file.
38548
38549 2007-02-25  Bruno Haible  <bruno@clisp.org>
38550
38551         * modules/printf-frexp-tests: New file.
38552         * tests/test-printf-frexp.c: New file.
38553
38554         * modules/printf-frexp: New file.
38555         * lib/printf-frexp.h: New file.
38556         * lib/printf-frexp.c: New file.
38557         * m4/printf-frexp.m4: New file.
38558
38559 2007-02-25  Bruno Haible  <bruno@clisp.org>
38560
38561         Assume automake >= 1.10 for the tests.
38562         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38563         * modules/arctwo-tests: Likewise.
38564         * modules/argp-tests: Likewise.
38565         * modules/avltree-list-tests: Likewise.
38566         * modules/avltree-oset-tests: Likewise.
38567         * modules/avltreehash-list-tests: Likewise.
38568         * modules/carray-list-tests: Likewise.
38569         * modules/crc-tests: Likewise.
38570         * modules/des-tests: Likewise.
38571         * modules/gc-arcfour-tests: Likewise.
38572         * modules/gc-arctwo-tests: Likewise.
38573         * modules/gc-des-tests: Likewise.
38574         * modules/gc-hmac-md5-tests: Likewise.
38575         * modules/gc-hmac-sha1-tests: Likewise.
38576         * modules/gc-md2-tests: Likewise.
38577         * modules/gc-md4-tests: Likewise.
38578         * modules/gc-md5-tests: Likewise.
38579         * modules/gc-pbkdf2-sha1-tests: Likewise.
38580         * modules/gc-rijndael-tests: Likewise.
38581         * modules/gc-sha1-tests: Likewise.
38582         * modules/gc-tests: Likewise.
38583         * modules/getaddrinfo-tests: Likewise.
38584         * modules/hmac-md5-tests: Likewise.
38585         * modules/hmac-sha1-tests: Likewise.
38586         * modules/linked-list-tests: Likewise.
38587         * modules/linkedhash-list-tests: Likewise.
38588         * modules/lock-tests: Likewise.
38589         * modules/md2-tests: Likewise.
38590         * modules/md4-tests: Likewise.
38591         * modules/md5-tests: Likewise.
38592         * modules/rbtree-list-tests: Likewise.
38593         * modules/rbtree-oset-tests: Likewise.
38594         * modules/rbtreehash-list-tests: Likewise.
38595         * modules/read-file-tests: Likewise.
38596         * modules/rijndael-tests: Likewise.
38597         * modules/stdint-tests: Likewise.
38598         * modules/tls-tests: Likewise.
38599
38600 2007-02-24  Bruno Haible  <bruno@clisp.org>
38601
38602         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38603         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38604         function; instead check whether isnan with a double argument links.
38605         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38606         function; instead check whether isnan with a 'long double' argument
38607         links.
38608         Reported by Eric Blake <ebb9@byu.net>.
38609
38610 2007-02-24  Bruno Haible  <bruno@clisp.org>
38611
38612         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38613         defined.
38614         * lib/isnanl.c: Remove all code. Just include isnan.c.
38615         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38616
38617 2007-02-25  Jim Meyering  <jim@meyering.net>
38618
38619         Avoid conflicting types for 'unsetenv' on FreeBSD.
38620         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38621         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38622         in stdlib.h.
38623
38624 2007-02-24  Bruno Haible  <bruno@clisp.org>
38625
38626         * modules/isnanl-nolibm-tests: New file.
38627         * tests/test-isnanl.c: New file.
38628
38629         * modules/isnanl-nolibm: New file.
38630         * lib/isnanl.h: New file.
38631         * lib/isnanl.c: New file.
38632         * m4/isnanl.m4: New file.
38633
38634 2007-02-24  Bruno Haible  <bruno@clisp.org>
38635
38636         * modules/isnan-nolibm-tests: New file.
38637         * tests/test-isnan.c: New file.
38638
38639         * modules/isnan-nolibm: New file.
38640         * lib/isnan.h: New file.
38641         * lib/isnan.c: New file.
38642         * m4/isnan.m4: New file.
38643
38644 2007-02-24  Bruno Haible  <bruno@clisp.org>
38645
38646         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38647         assume that an exponent fits in 20 bits.
38648
38649 2007-02-24  Jim Meyering  <jim@meyering.net>
38650
38651         * m4/regex.m4: Update the description of the configure-time option,
38652         --without-included-regex, to state accurately what the defaults are,
38653         and perhaps to give people an idea why using this option is risky.
38654
38655 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38656
38657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38658         loops on small arguments.  This attempts to avoid the problem
38659         Bruno Haible reported for AIX 4.3.2 in
38660         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38661
38662 2007-02-23  Bruno Haible  <bruno@clisp.org>
38663
38664         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38665         Needed for help2man.
38666
38667 2007-02-23  Karl Berry  <karl@gnu.org>
38668
38669         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38670         exists, foo.h should be cvs-ignored, not committed.
38671
38672 2007-02-23  Eric Blake  <ebb9@byu.net>
38673
38674         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38675         * lib/stat-time.h (includes): Likewise.
38676         * lib/utimecmp.c (includes): Likewise.
38677         * lib/utimens.h (includes): Likewise.
38678         * lib/getdate.y (includes): Also include "timespec.h" for use
38679         internal to the module.
38680         * modules/utimens (Depends-on): Revert yesterday's patch.
38681         * modules/nanosleep (Depends-on): Add missing dependency.
38682
38683 2007-02-22  Bruno Haible  <bruno@clisp.org>
38684
38685         * lib/glob.c: Don't include getlogin_r.h.
38686
38687 2007-02-22  Jim Meyering  <jim@meyering.net>
38688
38689         * modules/utimens (Depends-on): Add timespec, required for
38690         utimens.h's inclusion of timespec.h.
38691
38692 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38693
38694         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38695         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38696         Schwab in
38697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38698         I'll try to think of a better way to fix the Solaris problem.
38699
38700         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38701         like glibc; on Solaris 10, it fails with errno == EINVAL.
38702         POSIX says the behavior is unspecified if the first argument is NULL,
38703         so play it safe and never pass NULL to the system getcwd.
38704
38705 2007-02-21  Jim Meyering  <jim@meyering.net>
38706
38707         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38708         of gettimeofday.  It would conflict with the one now always
38709         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38710         an IRIX 6.5 build failure.
38711
38712 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38713
38714         Minor fixups to port to Solaris 10 with Sun C 5.8.
38715         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38716         * modules/getcwd (Depends-on): Add dirfd.
38717         * lib/putenv.c (putenv): #undef it.
38718         (rpl_putenv): New decl.
38719         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38720
38721 2007-02-20  Bruno Haible  <bruno@clisp.org>
38722
38723         * modules/stdio-tests: New file.
38724         * tests/test-stdio.c: New file.
38725
38726         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38727         (Depends-on): Add stdio.
38728         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38729         (Include): Use <stdio.h> instead of vsnprintf.h.
38730         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38731         HAVE_DECL_VSNPRINTF.
38732         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38733
38734         * modules/snprintf (Files): Remove lib/snprintf.h.
38735         (Depends-on): Add stdio.
38736         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38737         (Include): Use <stdio.h> instead of snprintf.h.
38738         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38739         HAVE_DECL_SNPRINTF.
38740         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38741         * lib/getaddrinfo.c: Likewise.
38742
38743         * modules/stdio: New file.
38744         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38745         * lib/snprintf.h: Remove file.
38746         * lib/vsnprintf.h: Remove file.
38747         * lib/.cppi-disable: Remove snprintf.h.
38748         * m4/stdio_h.m4: New file.
38749         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38750
38751 2007-02-20  Jim Meyering  <jim@meyering.net>
38752
38753         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38754         used by e.g., mingw.  From Bruno Haible.
38755
38756 2007-02-19  Bruno Haible  <bruno@clisp.org>
38757
38758         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38759         warnings.
38760         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38761
38762 2007-02-19  Bruno Haible  <bruno@clisp.org>
38763
38764         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38765         from mingw users.
38766
38767 2007-02-19  Bruno Haible  <bruno@clisp.org>
38768
38769         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38770         warnings.
38771         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38772
38773 2007-02-19  Jim Meyering  <jim@meyering.net>
38774
38775         Don't use FD after a successful "fdopendir (fd)".
38776         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38777         Reset it by calling dirfd on the just-obtained DIR*.
38778
38779         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38780         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38781
38782 2007-02-18  Bruno Haible  <bruno@clisp.org>
38783
38784         * lib/readlink.c: Include <unistd.h>.
38785         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38786         HAVE_READLINK.
38787         * modules/readlink (Depends-on): Add unistd.
38788         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38789         (Include): Add <unistd.h>.
38790
38791         * lib/getlogin_r.h: Remove file.
38792         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38793         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38794         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38795         HAVE_DECL_GETLOGIN_R.
38796         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38797         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38798         (Include): Use <unistd.h> instead of getlogin_r.h.
38799
38800         * lib/getcwd.h: Remove file.
38801         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38802         * lib/xgetcwd.c: Likewise.
38803         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38804         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38805         * modules/getcwd (Files): Remove lib/getcwd.h.
38806         (Depends-on): Add unistd.
38807         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38808         (Include): Use <unistd.h> instad of getcwd.h.
38809
38810         * lib/ftruncate.c: Include <unistd.h> first.
38811         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38812         Set HAVE_FTRUNCATE.
38813         * modules/ftruncate (Depends-on): Add unistd.
38814         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38815
38816         * lib/fchdir.c: Include <unistd.h> first.
38817         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38818         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38819         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38820         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38821         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38822
38823         * lib/dup2.c: Include <unistd.h> first.
38824         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38825         HAVE_DUP2.
38826         * modules/dup2 (Depends-on): Add unistd.
38827         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38828
38829         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38830         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38831         REPLACE_CHOWN. Don't define chown as a macro here.
38832         * modules/chown (Depends-on): Add unistd.
38833         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38834
38835         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38836         Add definition for GL_LINK_WARNING.
38837         (chown, dup2): New declarations.
38838         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38839         link warning.
38840         (ftruncate): New declaration.
38841         (getcwd): New declaration, taken from old getcwd.h.
38842         (getlogin_r): New declaration, taken from old getlogin_r.h.
38843         (readlink): New declaration.
38844         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38845         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38846         (gl_PREREQ_UNISTD): Remove macro.
38847         (gl_UNISTD_MODULE_INDICATOR): New macro.
38848         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38849         many new variables. Don't set UNISTD_H.
38850         * modules/unistd (Description): Change.
38851         (Depends-on): Add link-warning.
38852         (configure.ac): Update.
38853         (Makefile.am): Create unistd.h always. Substitute many new variables
38854         into it.
38855
38856 2007-02-18  Bruno Haible  <bruno@clisp.org>
38857
38858         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38859         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38860         HAVE_GETSUBOPT.
38861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38862         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38863         * lib/getsubopt.h: Remove file.
38864         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38865         (Depends-on): Add stdlib.
38866         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38867         (Includes): Use <stdlib.h> instead of getsubopt.h.
38868         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38869         Set HAVE_GETSUBOPT.
38870         * lib/getsubopt.c: Don't include getsubopt.h.
38871
38872 2007-02-18  Bruno Haible  <bruno@clisp.org>
38873
38874         * modules/fchdir (Depends-on): Add dup2.
38875
38876 2007-02-18  Bruno Haible  <bruno@clisp.org>
38877
38878         * lib/stdlib_.h: Handle glibc's special invocation convention
38879         specially.
38880
38881 2007-02-18  Bruno Haible  <bruno@clisp.org>
38882
38883         * modules/stdlib-tests: New file.
38884         * tests/test-stdlib.c: New file.
38885
38886         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38887         (Depends-on): Add stdlib.
38888         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38889         (Includes): Use <stdlib.h> instead of mkstemp.h.
38890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38891         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38892         * lib/mkstemp.c: Don't include mkstemp.h.
38893         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38894         * lib/stdlib--.h: Don't include mkstemp.h.
38895
38896         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38897         (Depends-on): Add stdlib.
38898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38899         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38900         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38901         HAVE_MKDTEMP.
38902         * lib/mkdtemp.c: Don't include mkdtemp.h.
38903         * lib/clean-temp.c: Don't include mkdtemp.h.
38904
38905         * modules/exit (Files): Remove lib/exit.h.
38906         (Depends-on): Add stdlib.
38907         (Makefile.am): Remove lib_SOURCES.
38908         (Include): Use <stdlib.h> instead of exit.h.
38909         * lib/argmatch.c: Don't include exit.h.
38910         * lib/execute.c: Likewise.
38911         * lib/pagealign_alloc.c: Likewise.
38912         * lib/pipe.c: Likewise.
38913         * lib/wait-process.c: Likewise.
38914         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38915         * lib/exitfail.c: Likewise.
38916         * lib/savewd.c: Likewise.
38917         * lib/xsetenv.c: Likewise.
38918
38919         * modules/stdlib: New file.
38920         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38921         and extra comments about mkstemp().
38922         * lib/exit.h: Remove file.
38923         * lib/mkdtemp.h: Remove file.
38924         * lib/mkstemp.h: Remove file.
38925         * m4/stdlib_h.m4: New file.
38926         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38927
38928 2007-02-18  Bruno Haible  <bruno@clisp.org>
38929
38930         * modules/math-tests: New file.
38931         * tests/test-math.c: New file.
38932
38933         * modules/math: New file.
38934         * modules/mathl (Files): Remove lib/mathl.h.
38935         (Depends-on): Add math.
38936         (Makefile.am): Don't mention mathl.h.
38937         (Include): Use <math.h> instead of mathl.h.
38938         * lib/math_.h: New file.
38939         * lib/mathl.h: Remove file.
38940         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38941         mathl.h.
38942         * lib/asinl.c: Likewise.
38943         * lib/atanl.c: Likewise.
38944         * lib/ceill.c: Likewise.
38945         * lib/cosl.c: Likewise.
38946         * lib/expl.c: Likewise.
38947         * lib/floorl.c: Likewise.
38948         * lib/frexpl.c: Likewise.
38949         * lib/ldexpl.c: Likewise.
38950         * lib/logl.c: Likewise.
38951         * lib/sincosl.c: Likewise.
38952         * lib/sinl.c: Likewise.
38953         * lib/sqrtl.c: Likewise.
38954         * lib/tanl.c: Likewise.
38955         * lib/trigl.c: Likewise.
38956         * m4/math_h.m4: New file.
38957         * MODULES.html.sh (Mathematics): Add math.
38958
38959 2007-02-17  Bruno Haible  <bruno@clisp.org>
38960
38961         * modules/wctype-tests: New file.
38962         * tests/test-wctype.c: New file.
38963
38964         * modules/wchar-tests: New file.
38965         * tests/test-wchar.c: New file.
38966
38967         * modules/unistd-tests: New file.
38968         * tests/test-unistd.c: New file.
38969
38970         * modules/time-tests: New file.
38971         * tests/test-time.c: New file.
38972
38973         * modules/sysexits-tests: New file.
38974         * tests/test-sysexits.c: New file.
38975
38976         * modules/sys_time-tests: New file.
38977         * tests/test-sys_time.c: New file.
38978
38979         * modules/sys_stat-tests: New file.
38980         * tests/test-sys_stat.c: New file.
38981
38982         * modules/sys_socket-tests: New file.
38983         * tests/test-sys_socket.c: New file.
38984
38985         * modules/sys_select-tests: New file.
38986         * tests/test-sys_select.c: New file.
38987
38988         * modules/string-tests: New file.
38989         * tests/test-string.c: New file.
38990
38991         * modules/stdbool-tests: New file.
38992         * tests/test-stdbool.c: New file.
38993
38994         * modules/netinet_in-tests: New file.
38995         * tests/test-netinet_in.c: New file.
38996
38997         * modules/inttypes-tests: New file.
38998         * tests/test-inttypes.c: New file.
38999
39000         * modules/fcntl-tests: New file.
39001         * tests/test-fcntl.c: New file.
39002
39003         * modules/byteswap-tests: New file.
39004         * tests/test-byteswap.c: New file.
39005
39006         * modules/arpa_inet-tests: New file.
39007         * tests/test-arpa_inet.c: New file.
39008
39009 2007-02-17  Bruno Haible  <bruno@clisp.org>
39010
39011         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
39012         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
39013         if the corresponding module is not enabled. Emit link warnings if
39014         the function is used nevertheless.
39015         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
39016         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
39017         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
39018         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
39019         * modules/inttypes (Depends-on): Add link-warning.
39020         (Makefile.am): Copy the contents of build-aux/link-warning.h into
39021         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
39022         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
39023         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
39024         * modules/imaxdiv (configure.ac): Likewise.
39025         * modules/strtoimax (configure.ac): Likewise.
39026         * modules/strtoumax (configure.ac): Likewise.
39027
39028 2007-02-17  Bruno Haible  <bruno@clisp.org>
39029
39030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
39031         gl_STRING_MODULE_INDICATOR_DEFAULTS.
39032         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
39033         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
39034
39035 2007-02-17  Bruno Haible  <bruno@clisp.org>
39036
39037         * modules/link-warning: New file.
39038         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
39039         * lib/string_.h (GL_LINK_WARNING): Remove definition.
39040         * modules/string (Depends-on): Add link-warning.
39041         (Makefile.am): Copy the contents of build-aux/link-warning.h into
39042         string.h.
39043         * MODULES.html.sh (Support for building libraries and executables): Add
39044         link-warning.
39045
39046 2007-02-17  Bruno Haible  <bruno@clisp.org>
39047
39048         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
39049         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
39050         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
39051         long lines.
39052
39053 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
39054             Bruno Haible  <bruno@clisp.org>
39055
39056         * modules/tmpfile: New file.
39057         * lib/tmpfile.c: New file.
39058         * m4/tmpfile.m4: New file.
39059         * MODULES.html.sh (func_all_modules): New section "Input/output".
39060
39061 2007-02-15  Bruno Haible  <bruno@clisp.org>
39062
39063         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
39064         (supports_delete_on_close): New function.
39065         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
39066
39067 2007-02-14  Bruno Haible  <bruno@clisp.org>
39068
39069         * modules/mbspcasecmp-tests: New file.
39070         * tests/test-mbspcasecmp.sh: New file.
39071         * tests/test-mbspcasecmp.c: New file.
39072
39073         New module mbspcasecmp.
39074         * modules/mbspcasecmp: New file.
39075         * lib/mbspcasecmp.c: New file.
39076         * lib/string_.h (strncasecmp): Change warning message.
39077         (mbspcasecmp): New declaration.
39078         * m4/mbspcasecmp.m4: New file.
39079         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39080         GNULIB_MBSPCASECMP.
39081         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
39082         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
39083
39084 2007-02-14  Bruno Haible  <bruno@clisp.org>
39085
39086         * modules/mbsncasecmp-tests: New file.
39087         * tests/test-mbsncasecmp.sh: New file.
39088         * tests/test-mbsncasecmp.c: New file.
39089
39090         New module mbsncasecmp.
39091         * modules/mbsncasecmp: New file.
39092         * lib/mbsncasecmp.c: New file.
39093         * lib/string_.h (mbsncasecmp): New declaration.
39094         * m4/mbsncasecmp.m4: New file.
39095         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39096         GNULIB_MBSNCASECMP.
39097         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
39098         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
39099
39100 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
39101
39102         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
39103         Verify that it doesn't overlap with our flags.
39104         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
39105         do not have the desired effect in multibyte locales; instead, use
39106         mbscasecmp.
39107         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
39108         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
39109         we don't require GNU fnmatch ourselves (if our users require it, they
39110         should do so explicitly).
39111
39112         Fix regex code so it doesn't rely on strcasecmp.
39113         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
39114         Otherwise, include gnulib's langinfo.h.
39115         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
39116         undesirable behavior in non-C locales.  Instead, rely on localecharset.
39117         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
39118         * modules/regex (FILES): Remove m4/codeset.m4.
39119         (Depends-on): Add localcharset.  Remove strcase.
39120
39121 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39122
39123         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
39124         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
39125
39126 2007-02-13  Bruno Haible  <bruno@clisp.org>
39127
39128         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
39129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39130
39131 2007-02-12  Bruno Haible  <bruno@clisp.org>
39132
39133         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39134         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
39135         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
39136         time warning rather than a link error.
39137
39138 2007-02-12  Bruno Haible  <bruno@clisp.org>
39139
39140         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
39141         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39142         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39143
39144 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39145
39146         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
39147         args, not 2.
39148
39149 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39150
39151         New module 'time', so that apps can include <time.h> as per
39152         POSIX and GNU instead of separate include files like time_r.h
39153         and timegm.h.  This implementation tries out a simpler approach
39154         for replacing decls in standard include files (as compared to
39155         the string module), somewhat as an experiment.
39156
39157         * config/srclist.txt: Comment out mktime.c for now.
39158         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
39159         since it doesn't apply any more.  Use generic wording instead.
39160         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
39161         'time'.
39162         * lib/time_.h, m4/time_h.m4, modules/time: New files.
39163         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
39164         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
39165         Don't include <sys/types.h>; no longer needed since we assume C89.
39166         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
39167         * lib/strftime.c: Likewise.
39168         * lib/time_r.c: Likewise.
39169         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
39170         * lib/nanosleep.c: Include <time.h> first, to check interface.
39171         * lib/strptime.c: Likewise.
39172         * lib/time_r.c: Likewise.
39173         * lib/timegm.c: Likewise.
39174         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
39175         needed.
39176         * lib/timegm.c: Don't include timegm.h; no longer needed.
39177         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
39178         time.h now handles any problems in that area.
39179         (struct timespec, nanosleep): Remove; time.h now arranges for these.
39180         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
39181         that time.h defines struct timespec.
39182         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
39183         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
39184         handles that.
39185         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
39186         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
39187         needed.  Set REPLACE_LOCALTIME.
39188         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
39189         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
39190         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
39191         nanosleep; time_h.m4 now does that.  Don't require
39192         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
39193         module handles this now.
39194         * modules/getdate (Depends-on): Remove timespec.  Add time.
39195         * modules/nanosleep (Depends-on): Likewise.
39196         * modules/stat-time (Depends-on): Likewise.
39197         * modules/nanosleep (Include): Include time.h, not timespec.h.
39198         * modules/strptime (Files): Remove lib/strptime.h.
39199         (Depends-on): Add extensions, time.
39200         (Include): Include time.h, not strptime.h.
39201         * modules/time_r (Files): Remove lib/time_r.h.
39202         (Depends-on): Add time.
39203         (Include): Include time.h, not time_r.h.
39204         * modules/timegm: Likewise.
39205         * modules/timespec (Description): Now does timespec-related decls
39206         of our own, instead of struct timespec itself.
39207         (Depends-on): Add time; remove extensions.
39208         (Maintainer): Add self.
39209         * modules/utimecmp (Depends-on): Add time; remove timespec.
39210         * modules/utimens (Depends-on): Likewise.
39211         * modules/xnanosleep (Depends-on): Likewise.
39212
39213 2007-02-11  Bruno Haible  <bruno@clisp.org>
39214
39215         * lib/c-strstr.c: Include allocsa.h.
39216         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39217         * lib/c-strcasestr.c: Include allocsa.h.
39218         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39219         * lib/strcasestr.c: Include allocsa.h.
39220         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39221         * lib/mbsstr.c: Include allocsa.h.
39222         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39223         allocsa/freesa instead of malloc/free.
39224         * lib/mbscasestr.c: Include allocsa.h.
39225         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39226         allocsa/freesa instead of malloc/free.
39227         * modules/c-strstr (Depends-on): Add allocsa.
39228         * modules/c-strcasestr (Depends-on): Likewise.
39229         * modules/strcasestr (Depends-on): Likewise.
39230         * modules/mbsstr (Depends-on): Likewise.
39231         * modules/mbscasestr (Depends-on): Likewise.
39232
39233 2007-02-11  Bruno Haible  <bruno@clisp.org>
39234
39235         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
39236
39237         * modules/mbsspn-tests: New file.
39238         * tests/test-mbsspn.sh: New file.
39239         * tests/test-mbsspn.c: New file.
39240
39241 2007-02-11  Bruno Haible  <bruno@clisp.org>
39242
39243         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
39244
39245         * modules/mbspbrk-tests: New file.
39246         * tests/test-mbspbrk.sh: New file.
39247         * tests/test-mbspbrk.c: New file.
39248
39249 2007-02-11  Bruno Haible  <bruno@clisp.org>
39250
39251         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
39252         unneeded cast.
39253
39254         * modules/mbscspn-tests: New file.
39255         * tests/test-mbscspn.sh: New file.
39256         * tests/test-mbscspn.c: New file.
39257
39258 2007-02-11  Bruno Haible  <bruno@clisp.org>
39259
39260         * modules/mbscasecmp-tests: New file.
39261         * tests/test-mbscasecmp.sh: New file.
39262         * tests/test-mbscasecmp.c: New file.
39263
39264 2007-02-11  Bruno Haible  <bruno@clisp.org>
39265
39266         Ensure O(n) worst-case complexity of mbscasestr.
39267         * lib/mbscasestr.c: Include stdbool.h.
39268         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39269         functions.
39270         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
39271         the bookkeeping indicates that it's worth it.
39272         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
39273
39274         * modules/mbscasestr-tests: New file.
39275         * tests/test-mbscasestr1.c: New file.
39276         * tests/test-mbscasestr2.sh: New file.
39277         * tests/test-mbscasestr2.c: New file.
39278         * tests/test-mbscasestr3.sh: New file.
39279         * tests/test-mbscasestr3.c: New file.
39280         * tests/test-mbscasestr4.sh: New file.
39281         * tests/test-mbscasestr4.c: New file.
39282         * m4/locale-tr.m4: New file.
39283
39284 2007-02-11  Bruno Haible  <bruno@clisp.org>
39285
39286         Ensure O(n) worst-case complexity of mbsstr.
39287         * lib/mbsstr.c: Include stdbool.h.
39288         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39289         functions.
39290         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
39291         bookkeeping indicates that it's worth it.
39292         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
39293
39294         * modules/mbsstr-tests: New file.
39295         * tests/test-mbsstr1.c: New file.
39296         * tests/test-mbsstr2.sh: New file.
39297         * tests/test-mbsstr2.c: New file.
39298         * tests/test-mbsstr3.sh: New file.
39299         * tests/test-mbsstr3.c: New file.
39300         * m4/locale-fr.m4: New file.
39301
39302 2007-02-11  Bruno Haible  <bruno@clisp.org>
39303
39304         * lib/mbsrchr.c (mbsrchr): Fix bug.
39305
39306         * modules/mbsrchr-tests: New file.
39307         * tests/test-mbsrchr.sh: New file.
39308         * tests/test-mbsrchr.c: New file.
39309
39310 2007-02-11  Bruno Haible  <bruno@clisp.org>
39311
39312         * lib/mbschr.c (mbschr): Fix bug.
39313
39314         * modules/mbschr-tests: New file.
39315         * tests/test-mbschr.sh: New file.
39316         * tests/test-mbschr.c: New file.
39317         * m4/locale-zh.m4: New file.
39318
39319 2007-02-11  Bruno Haible  <bruno@clisp.org>
39320
39321         Support for copying multibyte string iterators.
39322         * lib/mbiter.h: Include <string.h>.
39323         (mbiter_multi_copy): New function.
39324         (mbi_copy): New macro.
39325         * lib/mbuiter.h: Include <string.h>.
39326         (mbuiter_multi_copy): New function.
39327         (mbui_copy): New macro.
39328
39329 2007-02-11  Bruno Haible  <bruno@clisp.org>
39330
39331         New module mbslen.
39332         * modules/mbslen: New file.
39333         * lib/mbslen.c: New file.
39334         * lib/string_.h (mbslen): New declaration.
39335         * m4/mbslen.m4: New file.
39336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39337         GNULIB_MBSLEN.
39338         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39339         * MODULES.html.sh (Internationalization functions): Add mbslen.
39340
39341 2007-02-11  Bruno Haible  <bruno@clisp.org>
39342
39343         Ensure O(n) worst-case complexity of strcasestr substitute.
39344         * lib/strcasestr.c: Include stdbool.h.
39345         (knuth_morris_pratt): New function.
39346         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39347         bookkeeping indicates that it's worth it.
39348         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39349
39350         * modules/strcasestr-tests: New file.
39351         * tests/test-strcasestr.c: New file.
39352
39353 2007-02-11  Bruno Haible  <bruno@clisp.org>
39354
39355         Ensure O(n) worst-case complexity of c_strcasestr.
39356         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39357         (knuth_morris_pratt): New function.
39358         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39359         the bookkeeping indicates that it's worth it.
39360         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39361
39362         * modules/c-strcasestr-tests: New file.
39363         * tests/test-c-strcasestr.c: New file.
39364
39365 2007-02-11  Bruno Haible  <bruno@clisp.org>
39366
39367         Ensure O(n) worst-case complexity of c_strstr.
39368         * lib/c-strstr.c: Include stdbool.h, string.h.
39369         (knuth_morris_pratt): New function.
39370         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39371         bookkeeping indicates that it's worth it.
39372         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39373
39374         * lib/c-strstr.c: Complete rewrite for maintainability.
39375
39376         * modules/c-strstr-tests: New file.
39377         * tests/test-c-strstr.c: New file.
39378
39379 2007-02-11  Bruno Haible  <bruno@clisp.org>
39380
39381         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39382         5.2.1 and earlier, whereby \055 was treated just like the range
39383         delimiter '-'.
39384         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39385
39386 2007-02-08  Bruno Haible  <bruno@clisp.org>
39387
39388         * modules/regex (Depends-on): Add stdbool.
39389         Reported by Dalibor Topic <robilad@kaffe.org>.
39390
39391 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39392
39393         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39394         Prefer returning from main to exiting from it.
39395         Remove unnecessary parens after sizeof.
39396
39397 2007-02-05  Bruno Haible  <bruno@clisp.org>
39398
39399         New module mbssep.
39400         * modules/mbssep: New file.
39401         * lib/mbssep.c: New file.
39402         * lib/string_.h (strsep): Add a conditional link warning.
39403         (mbssep): New declaration.
39404         * m4/mbssep.m4: New file.
39405         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39406         GNULIB_MBSSEP.
39407         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39408         * MODULES.html.sh (Internationalization functions): Add mbssep.
39409
39410 2007-02-05  Bruno Haible  <bruno@clisp.org>
39411
39412         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39413         Optimize search in case of 1 delimiter.
39414
39415 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39416
39417         * lib/acl.h: Include sys/types.h before sys/acl.h.
39418
39419 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39420
39421         Merge upstream fix for glibc bugzilla #3957:
39422
39423         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39424
39425         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39426         bit for RE_HAT_LISTS_NOT_NEWLINE.
39427         (build_charclass_op): Remove bogus comment.
39428
39429 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39430
39431         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39432
39433 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39434
39435         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39436         * lib/memmem.c [!defined _LIBC]: Include config.h.
39437
39438 2007-02-04  Bruno Haible  <bruno@clisp.org>
39439
39440         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39441         warning message.
39442
39443 2007-02-04  Bruno Haible  <bruno@clisp.org>
39444
39445         New module mbstok_r.
39446         * modules/mbstok_r: New file.
39447         * lib/mbstok_r.c: New file.
39448         * lib/string_.h (strtok_r): Change argument names to match the
39449         comments. Add a conditional link warning.
39450         (mbstok_r): New declaration.
39451         * m4/mbstok_r.m4: New file.
39452         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39453         GNULIB_MBSTOK_R.
39454         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39455         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39456
39457 2007-02-04  Bruno Haible  <bruno@clisp.org>
39458
39459         New module mbsspn.
39460         * modules/mbsspn: New file.
39461         * lib/mbsspn.c: New file.
39462         * lib/string_.h (strspn): Add a conditional link warning.
39463         (mbsspn): New declaration.
39464         * m4/mbsspn.m4: New file.
39465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39466         GNULIB_MBSSPN.
39467         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39468         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39469
39470 2007-02-04  Bruno Haible  <bruno@clisp.org>
39471
39472         New module mbspbrk.
39473         * modules/mbspbrk: New file.
39474         * lib/mbspbrk.c: New file.
39475         * lib/string_.h (strpbrk): Add a conditional link warning.
39476         (mbspbrk): New declaration.
39477         * m4/mbspbrk.m4: New file.
39478         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39479         GNULIB_MBSPBRK.
39480         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39481         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39482
39483 2007-02-04  Bruno Haible  <bruno@clisp.org>
39484
39485         New module mbscspn.
39486         * modules/mbscspn: New file.
39487         * lib/mbscspn.c: New file.
39488         * lib/string_.h (strcspn): Add a conditional link warning.
39489         (mbscspn): New declaration.
39490         * m4/mbscspn.m4: New file.
39491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39492         GNULIB_MBSCSPN.
39493         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39494         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39495
39496 2007-02-04  Bruno Haible  <bruno@clisp.org>
39497
39498         New module mbscasestr, reduced goal of strcasestr.
39499         * modules/mbscasestr: New file.
39500         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39501         (mbscasestr): Renamed from strcasestr.
39502         * lib/strcasestr.c: Don't include mbuiter.h.
39503         (strcasestr): Remove support for multibyte locales.
39504         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39505         Change the conditional link warning.
39506         (mbscasestr): New declaration.
39507         * m4/mbscasestr.m4: New file.
39508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39509         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39510         REPLACE_STRCASESTR.
39511         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39512         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39513         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39514         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39515         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39516         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39517         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39518         (Depends-on): Remove mbuiter.
39519         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39520
39521 2007-02-04  Bruno Haible  <bruno@clisp.org>
39522
39523         Simplify handling of strncasecmp.
39524         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39525         the conditional link warning.
39526         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39527         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39528         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39529         * modules/strcase (configure.ac): Don't invoke
39530         gl_STRING_MODULE_INDICATOR.
39531         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39532
39533 2007-02-04  Bruno Haible  <bruno@clisp.org>
39534
39535         New module mbscasecmp, reduced goal of strcasecmp.
39536         * modules/mbscasecmp: New file.
39537         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39538         (mbscasecmp): Renamed from strcasecmp.
39539         * lib/strcasecmp.c: Don't include mbuiter.h.
39540         (strcasecmp): Remove support for multibyte locales.
39541         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39542         Change the conditional link warning.
39543         (mbscasecmp): New declaration.
39544         * m4/mbscasecmp.m4: New file.
39545         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39546         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39547         REPLACE_STRCASECMP.
39548         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39549         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39550         GNULIB_MBSCASECMP.
39551         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39552         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39553         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39554         (Depends-on): Remove mbuiter.
39555         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39556
39557 2007-02-04  Bruno Haible  <bruno@clisp.org>
39558
39559         New module mbsstr. Remove module strstr.
39560         * modules/mbsstr: New file.
39561         * modules/strstr: Remove file.
39562         * lib/mbsstr.c: Renamed from lib/strstr.c.
39563         (mbsstr): Renamed from strstr.
39564         * lib/string_.h (strstr): Remove declaration. Change the conditional
39565         link warning.
39566         (mbsstr): New declaration.
39567         * m4/mbsstr.m4: New file.
39568         * m4/strstr.m4: Remove file.
39569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39570         REPLACE_STRSTR.
39571         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39572         Don't initialize GNULIB_STRSTR.
39573         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39574         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39575         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39576         (Support for systems lacking ANSI C 89): Remove strstr.
39577
39578 2007-02-04  Bruno Haible  <bruno@clisp.org>
39579
39580         New module mbsrchr.
39581         * modules/mbsrchr: New file.
39582         * lib/mbsrchr.c: New file.
39583         * lib/string_.h (strrchr): Add a conditional link warning.
39584         (mbsrchr): New declaration.
39585         * m4/mbsrchr.m4: New file.
39586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39587         GNULIB_MBSRCHR.
39588         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39589         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39590
39591 2007-02-04  Bruno Haible  <bruno@clisp.org>
39592
39593         New module mbschr.
39594         * modules/mbschr: New file.
39595         * lib/mbschr.c: New file.
39596         * lib/string_.h (strchr): Add a conditional link warning.
39597         (mbschr): New declaration.
39598         * m4/mbschr.m4: New file.
39599         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39600         GNULIB_MBSCHR.
39601         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39602         * MODULES.html.sh (Internationalization functions): Add mbschr.
39603
39604 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39605
39606         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39607
39608         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39609
39610 2007-02-04  Bruno Haible  <bruno@clisp.org>
39611
39612         New module description section 'configure.ac-early'.
39613         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39614         (func_get_autoconf_early_snippet): New function.
39615         (func_import, func_create_testdir): Use it. Remove special cases for
39616         modules 'extensions' and 'lock'.
39617         * modules/extensions (configure.ac-early): Require
39618         gl_USE_SYSTEM_EXTENSIONS.
39619         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39620
39621 2007-02-04  Bruno Haible  <bruno@clisp.org>
39622
39623         Make use of gcj-4.3's -fsource and -ftarget option.
39624         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39625         and if so try the options -fsource and -ftarget.
39626         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39627         source_version, ftarget_option, target_version arguments.
39628         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39629         (is_envjavac_oldgcj_14_14_usable): Renamed from
39630         is_envjavac_gcj_14_14_usable.
39631         (is_envjavac_oldgcj_14_13_usable): Renamed from
39632         is_envjavac_gcj_14_13_usable.
39633         (is_gcj_present): Update.
39634         (is_gcj_43, is_gcj43_usable): New functions.
39635         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39636         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39637         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39638         try the options -fsource and -ftarget.
39639
39640 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39641
39642         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39643         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39644         larger value.
39645
39646 2007-02-03  Jim Meyering  <jim@meyering.net>
39647
39648         Give tools a better chance to allocate space for very large buffers.
39649         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39650
39651         Make pwd and readlink work also when run with an unreadable parent dir
39652         on systems with openat support.
39653         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39654         provided getcwd function, even when we have openat support.
39655         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39656
39657 2007-02-02  Bruno Haible  <bruno@clisp.org>
39658
39659         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39660         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39661         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39662         portability problems if one of these functions is only used on specific
39663         platforms.
39664         Reported by Paul Eggert.
39665
39666 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39667
39668         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39669         is causing more trouble than it's curing.
39670         * lib/regex_internal.h (__mempcpy): Remove.
39671         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39672         (and make the code a tad smaller to boot).
39673         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39674
39675 2007-02-02  Jim Meyering  <jim@meyering.net>
39676
39677         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39678         section, not in the Makefile.am: one.
39679
39680 2007-02-02  Eric Blake  <ebb9@byu.net>
39681
39682         * lib/strchrnul.c: Always include config.h first.
39683
39684         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39685         gnulib strstr is not necessary here.
39686
39687 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39688
39689         * m4/socklen.m4: Fix typo.
39690
39691 2007-02-02  Eric Blake  <ebb9@byu.net>
39692
39693         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39694         * modules/netinet_in (Makefile.am): Likewise.
39695
39696 2007-02-01  Bruno Haible  <bruno@clisp.org>
39697
39698         * lib/string_.h (GL_LINK_WARNING): New macro.
39699         (strcasecmp, strstr, strcasestr): If provided by the system,
39700         conditionally define as a macro that leads to a warning instead of to
39701         an error.
39702         (strncasecmp): Conditionally define as a macro that leads to a warning.
39703
39704 2007-02-01  Karl Berry  <karl@gnu.org>
39705
39706         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39707
39708 2007-02-01  Bruno Haible  <bruno@clisp.org>
39709
39710         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39711         renamings.
39712
39713 2007-02-01  Eric Blake  <ebb9@byu.net>
39714
39715         * modules/regex (Depends-on): Revert dependence on mempcpy.
39716         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39717         module's definition of mempcpy.
39718         Reported by Paul Eggert.
39719
39720 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39721
39722         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39723         the symbol XYZ before redefining it.  This fixes a problem with
39724         programs that don't use XYZ, when compiled on systems that define
39725         XYZ to something else.
39726
39727 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39728
39729         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39730         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39731         writeable to group or other and (2) is intended to have a special
39732         mode bit that is set or cleared.  In such a case, the directory
39733         should be neither group- nor other-writeable until the special
39734         mode bits are right.
39735
39736 2007-01-31  Eric Blake  <ebb9@byu.net>
39737
39738         * modules/mountlist (Depends-on): Add strstr.
39739
39740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39741         bug.
39742         * modules/string (Makefile.am): Remove redundant replacement.
39743         * modules/regex (Depends-on): Add mempcpy.
39744
39745 2007-01-31  Bruno Haible  <bruno@clisp.org>
39746
39747         New module description field 'Link'.
39748         * gnulib-tool (func_usage): Document --extract-link-directive.
39749         (sed_extract_prog): Recognize 'Link' directive.
39750         (func_get_link_directive): New function.
39751         (func_import): Show summary of link directives.
39752         Handle --extract-link-directive option.
39753         * modules/acl (Link): New section.
39754         * modules/clock-time (Link): New section.
39755         * modules/euidaccess (Link): New section.
39756         * modules/gettext (Link): New section.
39757         * modules/iconv (Link): New section.
39758         * modules/lock (Link): New section.
39759         * modules/nanosleep (Link): New section.
39760         * modules/readline (Link): New section.
39761
39762 2007-01-27  Bruno Haible  <bruno@clisp.org>
39763
39764         Enforce the use of gnulib modules for unportable <string.h> functions.
39765         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39766         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39767         (gl_HEADER_STRING_H_BODY): Require it.
39768         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39769         the symbol XYZ to one that gives a link error.
39770         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39771         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39772         * modules/mempcpy (configure.ac): Likewise.
39773         * modules/memrchr (configure.ac): Likewise.
39774         * modules/stpcpy (configure.ac): Likewise.
39775         * modules/stpncpy (configure.ac): Likewise.
39776         * modules/strcase (configure.ac): Likewise.
39777         * modules/strcasestr (configure.ac): Likewise.
39778         * modules/strchrnul (configure.ac): Likewise.
39779         * modules/strdup (configure.ac): Likewise.
39780         * modules/strndup (configure.ac): Likewise.
39781         * modules/strnlen (configure.ac): Likewise.
39782         * modules/strpbrk (configure.ac): Likewise.
39783         * modules/strsep (configure.ac): Likewise.
39784         * modules/strstr (configure.ac): Likewise.
39785         * modules/strtok_r (configure.ac): Likewise.
39786
39787 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39788
39789         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39790
39791 2007-01-30  Jim Meyering  <jim@meyering.net>
39792
39793         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39794
39795 2007-01-29  Bruno Haible  <bruno@clisp.org>
39796
39797         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39798         * lib/execute.c: Likewise.
39799         * lib/pipe.c: Likewise.
39800         * lib/printf-args.h: Likewise.
39801         * lib/printf-args.c: Likewise.
39802         * lib/printf-parse.c: Likewise.
39803         * lib/vasnprintf.c: Likewise.
39804
39805 2007-01-29  Eric Blake  <ebb9@byu.net>
39806
39807         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39808         declaration.
39809
39810 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39811
39812         * lib/strptime.h (strptime): Use 'restrict' for args where
39813         POSIX requires this.
39814         * lib/strptime.c (strptime): Likewise.
39815         Change license notice from LGPL to GPL, since gnulib-tool will
39816         change this as needed.
39817         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39818         defined.
39819         Include "strptime.h" first, to check interface.
39820         Do not #undef _LIBC and _NL_CURRENT.
39821         Do not include <stdlib.h>; no longer needed.
39822         Include "time_r.h" and declare ptime_locale_status
39823         only if _LIBC is not defined.
39824         (__P): Remove unused macro.
39825         (match_string): Bring back glibc version, but use it only if _LIBC
39826         is defined.
39827         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39828         Remove unnecessary assertion and abort() call.
39829         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39830         * m4/strptime.m4: Fix serial number comment.
39831         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39832         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39833         (Depends-on): Add time_r.
39834
39835 2007-01-29  Bruno Haible  <bruno@clisp.org>
39836
39837         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39838         strptime.
39839         * modules/strptime (Depends-on): Add stdbool.
39840         * lib/strptime.h: Include <time.h> always. Add comments.
39841
39842 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39843
39844         * modules/strptime: New file.
39845         * lib/strptime.h: New file.
39846         * lib/strptime.c: New file.
39847         * m4/strptime.m4: New file.
39848
39849 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39850
39851         * MODULES.html.sh: New module mpsort.
39852         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39853
39854         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39855         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39856         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39857         All uses changed.
39858         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39859         All uses changed.
39860         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39861         to _Restrict_.
39862         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39863         the parameter matches the prototype.
39864
39865 2007-01-28  Jim Meyering  <jim@meyering.net>
39866
39867         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39868         sys/time.h here, reverting that part of the previous patch:
39869         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39870
39871 2007-01-28  Bruno Haible  <bruno@clisp.org>
39872
39873         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39874         value of $(SYS_TIME_H).
39875         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39876         remove it conditionally, too. [added by Jim Meyering]
39877         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39878         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39879         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39880         GETTIMEOFDAY_REPLACEMENT to 1.
39881
39882 2007-01-28  Bruno Haible  <bruno@clisp.org>
39883
39884         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39885         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39886         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39887         Set UNISTD_H instead of UNISTD_H2.
39888         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39889
39890 2007-01-28  Bruno Haible  <bruno@clisp.org>
39891
39892         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39893         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39894
39895 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39896
39897         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39898         (func_create_testdir): Ensure C locale for `grep' and `tr'
39899         character ranges.
39900         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39901         ACLOCAL_AMFLAGS parsing state machine.
39902
39903 2007-01-27  Bruno Haible  <bruno@clisp.org>
39904
39905         * modules/unistr/base: Update.
39906
39907 2007-01-27  Bruno Haible  <bruno@clisp.org>
39908
39909         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39910         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39911         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39912         modules/unistr/u32-mbtouc.
39913         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39914         * lib/unistr.h: Update.
39915         * lib/linebreak.c: Update.
39916         * modules/unistr/u32-mbtouc: Renamed from
39917         modules/unistr/u32-mbtouc-safe.
39918         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39919         * lib/unistr.h: Update.
39920         * lib/unistr/u32-to-u8.c: Update.
39921         * lib/unistr/u32-to-u16.c: Update.
39922
39923 2007-01-27  Bruno Haible  <bruno@clisp.org>
39924
39925         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39926         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39927         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39928         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39929         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39930         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39931         modules/unistr/u16-mbtouc.
39932         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39933         * lib/unistr.h: Update.
39934         * lib/linebreak.c: Update.
39935         * modules/linebreak: Update.
39936         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39937         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39938         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39939         * modules/unistr/u16-mbtouc: Renamed from
39940         modules/unistr/u16-mbtouc-safe.
39941         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39942         * lib/unistr.h: Update.
39943         * lib/unistr/u16-to-u8.c: Update.
39944         * modules/unistr/u16-to-u8: Update.
39945         * lib/unistr/u16-to-u32.c: Update.
39946         * modules/unistr/u16-to-u32: Update.
39947
39948 2007-01-27  Bruno Haible  <bruno@clisp.org>
39949
39950         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39951         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39952         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39953         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39954         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39955         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39956         modules/unistr/u8-mbtouc.
39957         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39958         * lib/unistr.h: Update.
39959         * lib/striconveh.c: Update.
39960         * modules/striconveh: Update.
39961         * lib/linebreak.c: Update.
39962         * modules/linebreak: Update.
39963         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39964         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39965         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39966         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39967         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39968         * lib/unistr.h: Update.
39969         * lib/striconveh.c: Update.
39970         * modules/striconveh: Update.
39971         * lib/unistr/u8-to-u16.c: Update.
39972         * modules/unistr/u8-to-u16: Update.
39973         * lib/unistr/u8-to-u32.c: Update.
39974         * modules/unistr/u8-to-u32: Update.
39975
39976 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39977
39978         Sync from Libtool.
39979         * lib/argz.c: Do not include strings.h nor memory.h, include
39980         string.h unconditionally.  Patch by Simon Josefsson.
39981
39982 2007-01-27  Bruno Haible  <bruno@clisp.org>
39983
39984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39985         from gl_HEADER_STRING_H_BODY.
39986         (gl_HEADER_STRING_H_BODY): Require it.
39987         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39988         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39989         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39990         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39991         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39992         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39994         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39995         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39996         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39997         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39998         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39999         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
40000         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40001         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
40002
40003 2007-01-27  Bruno Haible  <bruno@clisp.org>
40004
40005         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
40006         check_PROGRAMS into noinst_PROGRAMS.
40007         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
40008         check_PROGRAMS in this case.
40009         (func_import): Set for_test to false.
40010         (func_create_testdir): Set for_test to true.
40011
40012 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40013             Bruno Haible  <bruno@clisp.org>
40014
40015         * modules/strcasestr (Files): Remove lib/strcasestr.h.
40016         (Depends-on): Add string.
40017         (Includes): Use <string.h> instead of strcasestr.h.
40018         * modules/string (Makefile.am): Also substitute the value of
40019         REPLACE_STRCASESTR.
40020         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
40021         assume strcasestr is declared in <string.h> not <strings.h>. Also
40022         set REPLACE_STRCASESTR.
40023         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
40024         REPLACE_STRCASESTR.
40025         * lib/strcasestr.h: Remove file.
40026         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
40027         * lib/string_.h (strcasestr): New declaration.
40028
40029 2007-01-27  Bruno Haible  <bruno@clisp.org>
40030
40031         * lib/string_.h: Use 'extern'.
40032
40033 2007-01-27  Jim Meyering  <jim@meyering.net>
40034
40035         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
40036         of set-but-not-used local, "q".
40037
40038         * lib/mempcpy.c: Include <config.h> before <string.h>.
40039         This fixes a compilation error on HP-UX, due to the system's
40040         "restrict"-using mempcpy prototype.
40041
40042 2007-01-26  Bruno Haible  <bruno@clisp.org>
40043
40044         Small optimization.
40045         * lib/javacomp.c: Include c-strstr.h.
40046          (is_envjavac_gcj): Use c_strstr instead of strstr.
40047         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
40048
40049 2007-01-26  Bruno Haible  <bruno@clisp.org>
40050
40051         * MODULES.html.sh (Unicode string functions): Add the new modules.
40052
40053         * modules/uniconv/u32-strconv-to-locale: New file.
40054         * lib/uniconv/u32-strconv-to-locale.c: New file.
40055
40056         * modules/uniconv/u16-strconv-to-locale: New file.
40057         * lib/uniconv/u16-strconv-to-locale.c: New file.
40058
40059         * modules/uniconv/u8-strconv-to-locale: New file.
40060         * lib/uniconv/u8-strconv-to-locale.c: New file.
40061
40062         * modules/uniconv/u32-strconv-from-locale: New file.
40063         * lib/uniconv/u32-strconv-from-locale.c: New file.
40064
40065         * modules/uniconv/u16-strconv-from-locale: New file.
40066         * lib/uniconv/u16-strconv-from-locale.c: New file.
40067
40068         * modules/uniconv/u8-strconv-from-locale: New file.
40069         * lib/uniconv/u8-strconv-from-locale.c: New file.
40070
40071         * modules/uniconv/u32-strconv-to-enc: New file.
40072         * lib/uniconv/u32-strconv-to-enc.c: New file.
40073         * modules/uniconv/u32-strconv-to-enc-tests: New file.
40074         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
40075
40076         * modules/uniconv/u16-strconv-to-enc: New file.
40077         * lib/uniconv/u16-strconv-to-enc.c: New file.
40078         * lib/uniconv/u-strconv-to-enc.h: New file.
40079         * modules/uniconv/u16-strconv-to-enc-tests: New file.
40080         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
40081
40082         * modules/uniconv/u8-strconv-to-enc: New file.
40083         * lib/uniconv/u8-strconv-to-enc.c: New file.
40084         * modules/uniconv/u8-strconv-to-enc-tests: New file.
40085         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
40086
40087         * modules/uniconv/u32-strconv-from-enc: New file.
40088         * lib/uniconv/u32-strconv-from-enc.c: New file.
40089         * modules/uniconv/u32-strconv-from-enc-tests: New file.
40090         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
40091
40092         * modules/uniconv/u16-strconv-from-enc: New file.
40093         * lib/uniconv/u16-strconv-from-enc.c: New file.
40094         * modules/uniconv/u16-strconv-from-enc-tests: New file.
40095         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
40096
40097         * modules/uniconv/u8-strconv-from-enc: New file.
40098         * lib/uniconv/u8-strconv-from-enc.c: New file.
40099         * lib/uniconv/u-strconv-from-enc.h: New file.
40100         * modules/uniconv/u8-strconv-from-enc-tests: New file.
40101         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
40102
40103         * modules/uniconv/u32-conv-from-enc: New file.
40104         * lib/uniconv/u32-conv-from-enc.c: New file.
40105         * modules/uniconv/u32-conv-from-enc-tests: New file.
40106         * tests/uniconv/test-u32-conv-from-enc.c: New file.
40107
40108         * modules/uniconv/u16-conv-from-enc: New file.
40109         * lib/uniconv/u16-conv-from-enc.c: New file.
40110         * lib/uniconv/u-conv-from-enc.h: New file.
40111         * modules/uniconv/u16-conv-from-enc-tests: New file.
40112         * tests/uniconv/test-u16-conv-from-enc.c: New file.
40113
40114         * modules/uniconv/u8-conv-from-enc: New file.
40115         * lib/uniconv/u8-conv-from-enc.c: New file.
40116         * modules/uniconv/u8-conv-from-enc-tests: New file.
40117         * tests/uniconv/test-u8-conv-from-enc.c: New file.
40118
40119         * modules/uniconv/base: New file.
40120         * lib/uniconv.h: New file.
40121
40122 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
40123
40124         * doc/gnulib-tool.texi (Initial import): Update to match current
40125         behavior with strdup module.
40126         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
40127         * lib/memmem.h: Remove; all uses removed.  This is now done
40128         by <string.h>.
40129         * lib/mempcpy.h: Likewise.
40130         * lib/memrchr.h: Likewise.
40131         * lib/stpcpy.h: Likewise.
40132         * lib/stpncpy.h: Likewise.
40133         * lib/strcase.h: Likewise.
40134         * lib/strchrnul.h: Likewise.
40135         * lib/strdup.h: Likewise.
40136         * lib/strndup.h: Likewise.
40137         * lib/strnlen.h: Likewise.
40138         * lib/strpbrk.h: Likewise.
40139         * lib/strsep.h: Likewise.
40140         * lib/strstr.h: Likewise.
40141         * lib/strtok_r.h: Likewise.
40142         * lib/string_.h: New file.
40143         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
40144         Rely on <string.h> instead.
40145         * lib/canon-host.c: Likewise.
40146         * lib/chdir-long.c: Likewise.
40147         * lib/concatpath.c: Likewise.
40148         * lib/exclude.c: Likewise.
40149         * lib/fchdir.c: Likewise.
40150         * lib/getaddrinfo.c: Likewise.
40151         * lib/getcwd.c: Likewise.
40152         * lib/getsubopt.c: Likewise.
40153         * lib/glob.c: Likewise.
40154         * lib/hard-locale.c: Likewise.
40155         * lib/iconvme.c: Likewise.
40156         * lib/javacomp.c: Likewise.
40157         * lib/mempcpy.c: Likewise.
40158         * lib/memrchr.c: Likewise.
40159         * lib/regex_internal.h: Likewise.
40160         * lib/stpncpy.c: Likewise.
40161         * lib/strcasecmp.c: Likewise.
40162         * lib/strchrnul.c: Likewise.
40163         * lib/strdup.c: Likewise.
40164         * lib/striconv.c: Likewise.
40165         * lib/striconveh.c: Likewise.
40166         * lib/striconveha.c: Likewise.
40167         * lib/strncasecmp.c: Likewise.
40168         * lib/strndup.c: Likewise.
40169         * lib/strnlen.c: Likewise.
40170         * lib/strsep.c: Likewise.
40171         * lib/strstr.c: Likewise.
40172         * lib/strtok_r.c: Likewise.
40173         * lib/userspec.c: Likewise.
40174         * lib/w32spawn.h: Likewise.
40175         * lib/xstrndup.c: Likewise.
40176         * lib/mountlist.c (strstr): Remove decl.
40177         * m4/string_h.m4: New file.
40178         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
40179         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
40180         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
40181         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
40182         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
40183         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
40184         Set REPLACE_STRCASECMP if necessary.
40185         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
40186         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
40187         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
40188         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
40189         HAVE_DECL_STRDUP if necessary.
40190         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
40191         since gl_FUNC_STRNDUP does that now.
40192         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
40193         Check for decl here...
40194         (gl_PREREQ_STRNLEN): ... not here.
40195         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
40196         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
40197         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
40198         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
40199         necessary.
40200         * modules/string: New file.
40201         * modules/memmem (Files): Remove special-purpose include file.
40202         (Depends-on): Add string.
40203         (Include): Include <string.h>, not the removed file.
40204         * modules/mempcpy: Likewise.
40205         * modules/memrchr: Likewise.
40206         * modules/stpcpy: Likewise.
40207         * modules/stpncpy: Likewise.
40208         * modules/strcase: Likewise.
40209         * modules/strchrnul: Likewise.
40210         * modules/strdup: Likewise.
40211         * modules/strndup: Likewise.
40212         * modules/strnlen: Likewise.
40213         * modules/strpbrk: Likewise.
40214         * modules/strsep: Likewise.
40215         * modules/strstr: Likewise.
40216         * modules/strtok_r: Likewise.
40217         * tests/test-dirname.c: Don't include "strdup.h", since
40218         <string.h> now suffices.
40219         * tests/test-memmem.c: Don't include "memmem.h", since
40220         <string.h> now suffices.
40221
40222 2007-01-25  Bruno Haible  <bruno@clisp.org>
40223
40224         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
40225         *resultp is 0.
40226
40227         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
40228         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
40229         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
40230         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
40231
40232         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
40233         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
40234         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
40235         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
40236         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
40237         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
40238
40239 2007-01-24  Bruno Haible  <bruno@clisp.org>
40240
40241         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
40242         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
40243         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
40244         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
40245         gl_FUNC_FTS_CORE.
40246         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
40247         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
40248         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40249         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
40250         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
40251         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
40252         gl_FUNC_FCHOWNAT.
40253         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
40254         gl_FUNC_STRFTIME.
40255         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
40256         Reported by Ralf Wildenhues.
40257
40258 2007-01-24  Bruno Haible  <bruno@clisp.org>
40259
40260         Drop AC_REQUIRE calls that are redundant with the module dependencies.
40261         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
40262         gl_GETADDRINFO.
40263         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
40264         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
40265         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
40266
40267 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
40268
40269         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
40270         Don't use 'exit'; just return from 'main'.
40271         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
40272
40273         * lib/fnmatch_.h: Readjust white space and comments to match
40274         glibc, to avoid spurious diffs.
40275
40276 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40277
40278         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
40279         2004-12-01 change by Jakub Jelinek, since this code won't compile
40280         if !LIBC.  Problem reported by Bob Proulx.
40281
40282 2007-01-23  Bruno Haible  <bruno@clisp.org>
40283
40284         * lib/striconveh.c: Include c-strcaseeq.h.
40285         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
40286         * modules/striconveh (Depends-on): Add c-strcaseeq.
40287
40288 2007-01-23  Bruno Haible  <bruno@clisp.org>
40289
40290         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
40291
40292         * modules/c-strcaseeq: New file.
40293         * lib/c-strcaseeq.h: New file.
40294
40295         * modules/streq: New file.
40296         * lib/streq.h: New file.
40297
40298 2007-01-23  Bruno Haible  <bruno@clisp.org>
40299
40300         * modules/striconveha-tests: New file.
40301         * tests/test-striconveha.c: New file.
40302
40303         * lib/striconveha.h: Include <stdbool.h>.
40304         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
40305         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
40306         (mem_iconveha_notranslit): Renamed from mem_iconveha.
40307         (mem_iconveha): New function.
40308         (str_iconveha_notranslit): Renamed from str_iconveha.
40309         (str_iconveha): New function.
40310         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
40311         c-strcase.
40312
40313 2007-01-23  Bruno Haible  <bruno@clisp.org>
40314
40315         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
40316         encodings without forgiving before trying any encoding with handler.
40317         (str_iconveha): Try all encodings without forgiving before trying any
40318         encoding with handler.
40319
40320 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40321
40322         Import the following changes from libc.
40323
40324         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40325
40326         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
40327
40328         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40329
40330         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
40331         normal_bracket label.
40332
40333         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40334
40335         [BZ #361]
40336         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40337         to normal_bracket after fetching the next character.
40338
40339 2007-01-22  Bruno Haible  <bruno@clisp.org>
40340
40341         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40342         argument.
40343         * lib/striconveh.c (iconv_carefully_1): New function.
40344         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40345         argument.
40346         (str_cd_iconveh): Update.
40347         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40348         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40349         * tests/test-striconveh.c (MAGIC): New macro.
40350         (new_offsets): New function.
40351         (main): Test call with and without offsets.
40352
40353 2007-01-22  Bruno Haible  <bruno@clisp.org>
40354
40355         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40356         * modules/sys_select (Makefile.am): Likewise.
40357         * modules/sys_socket (Makefile.am): Likewise.
40358         * modules/sys_time (Makefile.am): Likewise.
40359
40360 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40361
40362         * modules/gettimeofday (License): Change from GPL to LGPL, since
40363         gettimeofday is a library function.
40364
40365 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40366
40367         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40368
40369 2007-01-21  Bruno Haible  <bruno@clisp.org>
40370
40371         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40372
40373 2007-01-21  Bruno Haible  <bruno@clisp.org>
40374
40375         * modules/striconveha: New file.
40376         * lib/striconveha.h: New file.
40377         * lib/striconveha.c: New file.
40378         * MODULES.html.sh (Internationalization functions): Add striconveha.
40379         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40380         string.
40381         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40382
40383 2007-01-21  Bruno Haible  <bruno@clisp.org>
40384
40385         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40386         * lib/striconveh.c (str_iconveh): Likewise.
40387
40388 2007-01-21  Bruno Haible  <bruno@clisp.org>
40389
40390         * lib/striconveh.h (mem_iconveh): New declaration.
40391         * lib/striconveh.c (mem_iconveh): New function.
40392         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40393
40394 2007-01-21  Bruno Haible  <bruno@clisp.org>
40395
40396         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40397
40398         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40399         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40400         original result buffer.
40401         (str_cd_iconveh): Update.
40402         * tests/test-striconveh.c (main): Update.
40403
40404         * lib/striconv.h (mem_cd_iconv): Change specification.
40405         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40406         result buffer.
40407         (str_cd_iconv): Update.
40408         * tests/test-striconv.c (main): Update.
40409
40410 2007-01-21  Bruno Haible  <bruno@clisp.org>
40411
40412         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40413
40414 2007-01-20  Jim Meyering  <jim@meyering.net>
40415
40416         * lib/userspec.c (parse_with_separator): If a user or group string
40417         starts with "+", skip the corresponding name-to-ID look-up, since
40418         such a look-up must fail: user and group names may not include "+".
40419
40420 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40421
40422         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40423         since we now assume the sys_time module.
40424         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40425         check for sys/time.h; no longer needed.
40426         * modules/poll (Depends-on): Depend on sys_time.
40427
40428 2007-01-18  Bruno Haible  <bruno@clisp.org>
40429
40430         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40431         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40432
40433         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40434         gettimeofday.
40435
40436         * tests/test-gettimeofday.c: Include <time.h>.
40437         (dummy): Remove variable.
40438
40439         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40440         gl_HEADER_SYS_TIME_H.
40441         (gl_HEADER_SYS_TIME_H): New macro.
40442
40443         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40444         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40445         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40446         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40447         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40448         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40449         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40450         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40451         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40452         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40453         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40454
40455         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40456         last change; it caused a compilation error when cross-compiling to
40457         Cygwin.
40458
40459 2007-01-18  Jim Meyering  <jim@meyering.net>
40460
40461         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40462         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40463         than the race-prone "test -d sys || mkdir sys".
40464         (configure.ac): Use AC_PROG_MKDIR_P.
40465         * modules/sys_select: Likewise.
40466         * modules/sys_socket: Likewise.
40467         * modules/sys_time: Likewise.
40468
40469 2007-01-18  Eric Blake  <ebb9@byu.net>
40470
40471         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40472         replace gettimeofday.
40473         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40474         name, to avoid infinite recursion.
40475
40476 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40477
40478         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40479         module sys_time.
40480         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40481         assume timespec.h defines struct timeval.
40482         * lib/settime.c: Likewise.
40483         * lib/utimens.c: Likewise.
40484         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40485         since we now assume the gettimeofday module.
40486         * lib/tempname.c (__gen_tempname): Likewise.
40487         * lib/gettimeofday.h: Remove.
40488         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40489         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40490         Include <time.h>, for 'time()'.
40491         (localtime_buffer_addr): Also use this workaround if
40492         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40493         to simplify the uses.  All uses changed.
40494         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40495         that #undef is inside {}, and 'const' follows type name consistently.
40496         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40497         (gettimeofday): Do not use the maximum possible value for
40498         tv->tv_usec, since that might break usages other than ls.c.
40499         Instead, we'll leave ls.c alone.  This undoes today's patch
40500         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40501         we've never observed the problem but might as well keep the
40502         canary.
40503         * lib/nanosleep.c: Include timespec.h first, for interface check.
40504         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40505         now assume the sys_time module.
40506         * lib/tempname.c: Likewise.
40507         * lib/timespec.h: Likewise.
40508         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40509         needed.
40510         * lib/strftime.c: Likewise.
40511         * lib/timespec.h: Likewise.
40512         * lib/posixtm.c: Include posixtm.h first, for interface check.
40513         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40514         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40515         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40516         * lib/sys_time_.h: New file.
40517         * lib/timespec.h (struct timespec): Use long int, not long.
40518         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40519         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40520         Remove obsolescent call to AC_HEADER_TIME.
40521         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40523         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40524         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40525         Likewise.
40526         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40527         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40528         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40529         into the sys_time module.  Check for gettimeofday just once.
40530         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40531         for gettimeofday signature to just check the signature.  Merely
40532         compile it, since linking doesn't test signature.  Improve test for
40533         whether gettimeofday.o is actually needed.
40534         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40535         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40536         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40537         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40538         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40539         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40540         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40541         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40542         than worrying about sys/time.h.
40543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40544         Don't bother worrying about TIME_WITH_SYS_TIME.
40545         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40546         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40547         * m4/sys_time_h.m4: New file.
40548         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40549         Don't include sys/time.h.  Return from main rather than exiting.
40550         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40551         all uses changed.
40552         * modules/gethrxtime (Depends-on): Add sys_time.
40553         * modules/gettime (Depends-on): Likewise.
40554         * modules/gettimeofday (Depends-on): Likewise.
40555         * modules/nanosleep (Depends-on): Likewise.
40556         * modules/settime (Depends-on): Likewise.
40557         * modules/tempname (Depends-on): Likewise.
40558         * modules/utimens (Depends-on): Likewise.
40559         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40560         (Include:) Change back to <sys/time.h>.
40561         (Maintainer:) Add self.
40562         * modules/sys_time: New file.
40563         * modules/tempname (Depends-on): Add gettimeofday.
40564         * tests/test-gettimeofday.c: Include <sys/time.h>
40565         rather than gettimeofday.h.
40566
40567 2007-01-17  Bruno Haible  <bruno@clisp.org>
40568
40569         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40570         the license default to GPL.
40571         (func_create_testdir): Don't complain if a module is LGPL and its
40572         tests module depends on GPLed modules.
40573
40574 2007-01-17  Bruno Haible  <bruno@clisp.org>
40575
40576         * lib/gettimeofday.c (gettimeofday): Add code for the case
40577         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40578         maximum possible value for tv->tv_usec, rather than the minimum one.
40579
40580 2005-10-08  Martin Lambers  <marlam@marlam.de>
40581 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40582 2007-01-16  Bruno Haible  <bruno@clisp.org>
40583
40584         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40585         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40586         gl_FUNC_GETTIMEOFDAY.
40587         (Include): Add gettimeofday.h.
40588         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40589         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40590         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40591         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40592         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40593         * lib/gettimeofday.h: New file.
40594         * lib/gettimeofday.c: Include <sys/timeb.h>.
40595         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40596         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40597         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40598         fall back on time().
40599
40600         * tests/test-gettimeofday.c: New file.
40601         * modules/gettimeofday-tests: New file.
40602
40603 2007-01-16  Eric Blake  <ebb9@byu.net>
40604
40605         * modules/fnmatch (Depends-on): Depend on wchar.
40606         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40607         * m4/fnmatch.m4: Likewise.
40608         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40609         * m4/mbchar.m4: Likewise.
40610         * modules/mbswidth (Depends-on): Depend on wchar.
40611         * lib/mbswidth.c: Assume <wchar.h>.
40612         * m4/mbswidth.m4: Likewise.
40613         * modules/quotearg (Depends-on): Depend on wchar.
40614         * lib/quotearg.c: Assume <wchar.h>.
40615         * m4/quotearg.m4: Likewise.
40616         * modules/regex (Depends-on): Depend on wchar.
40617         * lib/regex_internal.h: Assume <wchar.h>.
40618         * m4/regex.m4: Likewise.
40619         * modules/stdint (Depends-on): Depend on wchar.
40620         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40621         * m4/stdint.m4: Likewise.
40622         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40623         * modules/strftime (Depends-on): Depend on wchar.
40624         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40625         * modules/strtol (Depends-on): Depend on wchar.
40626         * lib/strtol.c: Assume <wchar.h>.
40627         * modules/wcwidth (Depends-on): Depend on wchar.
40628         * lib/wcwidth.h: Assume <wchar.h>.
40629         * m4/wcwidth.m4: Likewise.
40630
40631 2007-01-16  Bruno Haible  <bruno@clisp.org>
40632
40633         * modules/csharpexec-script: New, created from...
40634         * modules/csharpexec: ... this.
40635
40636 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40637
40638         * modules/javaexec-script: New, created from...
40639         * modules/javaexec: ... this.
40640
40641 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40642
40643         * modules/poll (Dependencies): Add sys_select.
40644
40645 2007-01-15  Jim Meyering  <jim@meyering.net>
40646
40647         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40648         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40649         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40650         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40651
40652 2007-01-15  Bruno Haible  <bruno@clisp.org>
40653
40654         * modules/striconveh: New file.
40655         * lib/striconveh.h: New file.
40656         * lib/striconveh.c: New file.
40657         * MODULES.html.sh (Internationalization functions): Add striconveh.
40658
40659         * modules/striconveh-tests: New file.
40660         * tests/test-striconveh.c: New file.
40661
40662 2007-01-15  Bruno Haible  <bruno@clisp.org>
40663
40664         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40665         not from GNU libiconv or GNU libc.
40666
40667 2007-01-15  Bruno Haible  <bruno@clisp.org>
40668
40669         * doc/gnulib-intro.texi (Copyright): Explain the different license
40670         terms for module descriptions, autoconf macros, tests, documentation.
40671
40672 2007-01-14  Bruno Haible  <bruno@clisp.org>
40673
40674         * modules/striconv-tests: New file.
40675         * tests/test-striconv.c: New file.
40676
40677 2007-01-14  Bruno Haible  <bruno@clisp.org>
40678
40679         * modules/iconv-tests: New file.
40680         * tests/test-iconv.c: New file.
40681
40682 2007-01-14  Bruno Haible  <bruno@clisp.org>
40683
40684         * gnulib-tool (func_get_license): For test modules, use the license of
40685         the main module.
40686
40687 2007-01-14  Bruno Haible  <bruno@clisp.org>
40688
40689         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40690         if iconv is found to exist.
40691
40692 2007-01-14  Bruno Haible  <bruno@clisp.org>
40693
40694         * modules/c-ctype-tests: New file.
40695         * tests/test-c-ctype.c: New file.
40696
40697 2007-01-14  Bruno Haible  <bruno@clisp.org>
40698
40699         * modules/binary-io-tests: New file.
40700         * tests/test-binary-io.sh: New file.
40701         * tests/test-binary-io.c: New file.
40702
40703 2007-01-14  Bruno Haible  <bruno@clisp.org>
40704
40705         * modules/array-oset-tests: New file.
40706         * tests/test-array_oset.c: New file.
40707
40708 2007-01-14  Bruno Haible  <bruno@clisp.org>
40709
40710         * modules/array-list-tests: New file.
40711         * tests/test-array_list.c: New file.
40712
40713 2007-01-14  Bruno Haible  <bruno@clisp.org>
40714
40715         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40716         and make.
40717         Reported by Simon Josefsson in
40718         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40719
40720 2007-01-14  Bruno Haible  <bruno@clisp.org>
40721
40722         * modules/allocsa-tests: New file.
40723         * tests/test-allocsa.c: New file.
40724
40725 2007-01-14  Bruno Haible  <bruno@clisp.org>
40726
40727         * modules/fchdir (Depends-on): Add absolute-header.
40728         * modules/unistd (Depends-on): Likewise.
40729
40730 2006-12-30  Bruno Haible  <bruno@clisp.org>
40731
40732         * modules/fchdir: New file.
40733         * modules/unistd (Files): Add lib/unistd_.h.
40734         (Makefile.am): Generate unistd.h from unistd_.h.
40735         * lib/fchdir.c: New file.
40736         * lib/dirent_.h: New file.
40737         * lib/unistd_.h: New file.
40738         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40739         * m4/fchdir.m4: New file.
40740         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40741         (gl_HEADER_UNISTD): Invoke it.
40742         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40743         function.
40744         * lib/backupfile.c (opendir, closedir): Undefine.
40745         * lib/chown.c (open, close): Undefine.
40746         * lib/clean-temp.c (open, close): Undefine.
40747         * lib/copy-file.c (open, close): Undefine.
40748         * lib/execute.c (open, close): Undefine.
40749         * lib/fsusage.c (open, close): Undefine.
40750         * lib/gc-gnulib.c (open, close): Undefine.
40751         * lib/getcwd.c (opendir, closedir): Undefine.
40752         * lib/glob.c (opendir, closedir): Undefine.
40753         * lib/javacomp.c (open, close): Undefine.
40754         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40755         * lib/openat-proc.c (open, close): Undefine.
40756         * lib/pagealign_alloc.c (open, close): Undefine.
40757         * lib/pipe.c (open, close): Undefine.
40758         * lib/progreloc.c (open, close): Undefine.
40759         * lib/savedir.c (opendir, closedir): Undefine.
40760         * lib/utime.c (open, close): Undefine.
40761         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40762
40763 2007-01-10  Bruno Haible  <bruno@clisp.org>
40764
40765         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40766
40767 2007-01-12  Eric Blake  <ebb9@byu.net>
40768
40769         Provide a robust <wchar.h>.  Further simplifications are now
40770         possible in other modules, but not included here.
40771         * modules/wchar: New module.
40772         * m4/wchar.m4: New file.
40773         * lib/wchar_.h: Likewise.
40774         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40775         of the new module.
40776         * MODULES.html.sh (Extended multibyte and wide character utilities):
40777         New section.
40778
40779 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40780
40781         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40782         to a reasonable default for memory allocation.
40783         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40784         file system that reports garbage st_size values for symlinks.
40785         Problem reported by Liyang Hu.
40786
40787 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40788
40789         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40790         Emacs .#* auto-save files).
40791
40792 2007-01-11  Bruno Haible  <bruno@clisp.org>
40793
40794         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40795         directory.
40796
40797 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40798
40799         Use @...@ consistently in lib/wctype_.h.
40800         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40801         on it being set to 1 or 0.
40802         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40803         go back to AC_SUBSTing it.
40804         * modules/wctype (Makefile.am): Undo previous change.
40805
40806 2007-01-10  Eric Blake  <ebb9@byu.net>
40807
40808         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40809         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40810         * modules/wctype (Makefile.am): Likewise.
40811         Reported by Chris McGuire.
40812
40813 2007-01-10  Jim Meyering  <jim@meyering.net>
40814
40815         fts.c: a small readability/maintainability improvement
40816         * lib/fts.c (fts_read): Make this code slightly more readable and
40817         maintainable by hoisting the "sp->fts_cur = p" assignments to
40818         immediately follow the statements that set P.  Derived from
40819         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40820
40821 2007-01-10  Eric Blake  <ebb9@byu.net>
40822
40823         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40824         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40826         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40827         Reported by Chris McGuire.
40828
40829 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40830
40831         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40832         in sed script.
40833
40834 2007-01-09  Bruno Haible  <bruno@clisp.org>
40835
40836         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40837         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40838         variables.
40839         (func_module): Use them.
40840
40841 2007-01-09  Bruno Haible  <bruno@clisp.org>
40842
40843         * modules/unistr/base: New file.
40844         * lib/unistr.h: New file.
40845
40846         * modules/unistr/u8-to-u16: New file.
40847         * lib/unistr/u8-to-u16.c: New file.
40848
40849         * modules/unistr/u8-to-u32: New file.
40850         * lib/unistr/u8-to-u32.c: New file.
40851
40852         * modules/unistr/u16-to-u8: New file.
40853         * lib/unistr/u16-to-u8.c: New file.
40854
40855         * modules/unistr/u16-to-u32: New file.
40856         * lib/unistr/u16-to-u32.c: New file.
40857
40858         * modules/unistr/u32-to-u8: New file.
40859         * lib/unistr/u32-to-u8.c: New file.
40860
40861         * modules/unistr/u32-to-u16: New file.
40862         * lib/unistr/u32-to-u16.c: New file.
40863
40864         * modules/unistr/u8-check: New file.
40865         * modules/unistr/u16-check: New file.
40866         * modules/unistr/u32-check: New file.
40867         * lib/unistr/u8-check.c: New file.
40868         * lib/unistr/u16-check.c: New file.
40869         * lib/unistr/u32-check.c: New file.
40870
40871         * modules/unistr/u8-chr: New file.
40872         * modules/unistr/u16-chr: New file.
40873         * modules/unistr/u32-chr: New file.
40874         * lib/unistr/u8-chr.c: New file.
40875         * lib/unistr/u16-chr.c: New file.
40876         * lib/unistr/u32-chr.c: New file.
40877
40878         * modules/unistr/u8-cmp: New file.
40879         * modules/unistr/u16-cmp: New file.
40880         * modules/unistr/u32-cmp: New file.
40881         * lib/unistr/u8-cmp.c: New file.
40882         * lib/unistr/u16-cmp.c: New file.
40883         * lib/unistr/u32-cmp.c: New file.
40884
40885         * modules/unistr/u8-cpy: New file.
40886         * modules/unistr/u16-cpy: New file.
40887         * modules/unistr/u32-cpy: New file.
40888         * lib/unistr/u8-cpy.c: New file.
40889         * lib/unistr/u16-cpy.c: New file.
40890         * lib/unistr/u32-cpy.c: New file.
40891         * lib/unistr/u-cpy.h: New file.
40892
40893         * modules/unistr/u8-cpy-alloc: New file.
40894         * modules/unistr/u16-cpy-alloc: New file.
40895         * modules/unistr/u32-cpy-alloc: New file.
40896         * lib/unistr/u8-cpy-alloc.c: New file.
40897         * lib/unistr/u16-cpy-alloc.c: New file.
40898         * lib/unistr/u32-cpy-alloc.c: New file.
40899         * lib/unistr/u-cpy-alloc.h: New file.
40900
40901         * modules/unistr/u8-endswith: New file.
40902         * modules/unistr/u16-endswith: New file.
40903         * modules/unistr/u32-endswith: New file.
40904         * lib/unistr/u8-endswith.c: New file.
40905         * lib/unistr/u16-endswith.c: New file.
40906         * lib/unistr/u32-endswith.c: New file.
40907         * lib/unistr/u-endswith.h: New file.
40908
40909         * modules/unistr/u8-mblen: New file.
40910         * modules/unistr/u16-mblen: New file.
40911         * modules/unistr/u32-mblen: New file.
40912         * lib/unistr/u8-mblen.c: New file.
40913         * lib/unistr/u16-mblen.c: New file.
40914         * lib/unistr/u32-mblen.c: New file.
40915
40916         * modules/unistr/u8-mbtouc: New file.
40917         * modules/unistr/u16-mbtouc: New file.
40918         * modules/unistr/u32-mbtouc: New file.
40919         * lib/unistr/u8-mbtouc.c: New file.
40920         * lib/unistr/u16-mbtouc.c: New file.
40921         * lib/unistr/u32-mbtouc.c: New file.
40922
40923         * modules/unistr/u8-mbtouc-safe: New file.
40924         * modules/unistr/u16-mbtouc-safe: New file.
40925         * modules/unistr/u32-mbtouc-safe: New file.
40926         * lib/unistr/u8-mbtouc-safe.c: New file.
40927         * lib/unistr/u16-mbtouc-safe.c: New file.
40928         * lib/unistr/u32-mbtouc-safe.c: New file.
40929
40930         * modules/unistr/u8-move: New file.
40931         * modules/unistr/u16-move: New file.
40932         * modules/unistr/u32-move: New file.
40933         * lib/unistr/u8-move.c: New file.
40934         * lib/unistr/u16-move.c: New file.
40935         * lib/unistr/u32-move.c: New file.
40936         * lib/unistr/u-move.h: New file.
40937
40938         * modules/unistr/u8-next: New file.
40939         * modules/unistr/u16-next: New file.
40940         * modules/unistr/u32-next: New file.
40941         * lib/unistr/u8-next.c: New file.
40942         * lib/unistr/u16-next.c: New file.
40943         * lib/unistr/u32-next.c: New file.
40944
40945         * modules/unistr/u8-prev: New file.
40946         * modules/unistr/u16-prev: New file.
40947         * modules/unistr/u32-prev: New file.
40948         * lib/unistr/u8-prev.c: New file.
40949         * lib/unistr/u16-prev.c: New file.
40950         * lib/unistr/u32-prev.c: New file.
40951
40952         * modules/unistr/u8-set: New file.
40953         * modules/unistr/u16-set: New file.
40954         * modules/unistr/u32-set: New file.
40955         * lib/unistr/u8-set.c: New file.
40956         * lib/unistr/u16-set.c: New file.
40957         * lib/unistr/u32-set.c: New file.
40958         * lib/unistr/u-set.h: New file.
40959
40960         * modules/unistr/u8-startswith: New file.
40961         * modules/unistr/u16-startswith: New file.
40962         * modules/unistr/u32-startswith: New file.
40963         * lib/unistr/u8-startswith.c: New file.
40964         * lib/unistr/u16-startswith.c: New file.
40965         * lib/unistr/u32-startswith.c: New file.
40966         * lib/unistr/u-startswith.h: New file.
40967
40968         * modules/unistr/u8-stpcpy: New file.
40969         * modules/unistr/u16-stpcpy: New file.
40970         * modules/unistr/u32-stpcpy: New file.
40971         * lib/unistr/u8-stpcpy.c: New file.
40972         * lib/unistr/u16-stpcpy.c: New file.
40973         * lib/unistr/u32-stpcpy.c: New file.
40974         * lib/unistr/u-stpcpy.h: New file.
40975
40976         * modules/unistr/u8-stpncpy: New file.
40977         * modules/unistr/u16-stpncpy: New file.
40978         * modules/unistr/u32-stpncpy: New file.
40979         * lib/unistr/u8-stpncpy.c: New file.
40980         * lib/unistr/u16-stpncpy.c: New file.
40981         * lib/unistr/u32-stpncpy.c: New file.
40982         * lib/unistr/u-stpncpy.h: New file.
40983
40984         * modules/unistr/u8-strcat: New file.
40985         * modules/unistr/u16-strcat: New file.
40986         * modules/unistr/u32-strcat: New file.
40987         * lib/unistr/u8-strcat.c: New file.
40988         * lib/unistr/u16-strcat.c: New file.
40989         * lib/unistr/u32-strcat.c: New file.
40990         * lib/unistr/u-strcat.h: New file.
40991
40992         * modules/unistr/u8-strchr: New file.
40993         * modules/unistr/u16-strchr: New file.
40994         * modules/unistr/u32-strchr: New file.
40995         * lib/unistr/u8-strchr.c: New file.
40996         * lib/unistr/u16-strchr.c: New file.
40997         * lib/unistr/u32-strchr.c: New file.
40998
40999         * modules/unistr/u8-strcmp: New file.
41000         * modules/unistr/u16-strcmp: New file.
41001         * modules/unistr/u32-strcmp: New file.
41002         * lib/unistr/u8-strcmp.c: New file.
41003         * lib/unistr/u16-strcmp.c: New file.
41004         * lib/unistr/u32-strcmp.c: New file.
41005
41006         * modules/unistr/u8-strcpy: New file.
41007         * modules/unistr/u16-strcpy: New file.
41008         * modules/unistr/u32-strcpy: New file.
41009         * lib/unistr/u8-strcpy.c: New file.
41010         * lib/unistr/u16-strcpy.c: New file.
41011         * lib/unistr/u32-strcpy.c: New file.
41012         * lib/unistr/u-strcpy.h: New file.
41013
41014         * modules/unistr/u8-strcspn: New file.
41015         * modules/unistr/u16-strcspn: New file.
41016         * modules/unistr/u32-strcspn: New file.
41017         * lib/unistr/u8-strcspn.c: New file.
41018         * lib/unistr/u16-strcspn.c: New file.
41019         * lib/unistr/u32-strcspn.c: New file.
41020         * lib/unistr/u-strcspn.h: New file.
41021
41022         * modules/unistr/u8-strdup: New file.
41023         * modules/unistr/u16-strdup: New file.
41024         * modules/unistr/u32-strdup: New file.
41025         * lib/unistr/u8-strdup.c: New file.
41026         * lib/unistr/u16-strdup.c: New file.
41027         * lib/unistr/u32-strdup.c: New file.
41028         * lib/unistr/u-strdup.h: New file.
41029
41030         * modules/unistr/u8-strlen: New file.
41031         * modules/unistr/u16-strlen: New file.
41032         * modules/unistr/u32-strlen: New file.
41033         * lib/unistr/u8-strlen.c: New file.
41034         * lib/unistr/u16-strlen.c: New file.
41035         * lib/unistr/u32-strlen.c: New file.
41036         * lib/unistr/u-strlen.h: New file.
41037
41038         * modules/unistr/u8-strmblen: New file.
41039         * modules/unistr/u16-strmblen: New file.
41040         * modules/unistr/u32-strmblen: New file.
41041         * lib/unistr/u8-strmblen.c: New file.
41042         * lib/unistr/u16-strmblen.c: New file.
41043         * lib/unistr/u32-strmblen.c: New file.
41044
41045         * modules/unistr/u8-strmbtouc: New file.
41046         * modules/unistr/u16-strmbtouc: New file.
41047         * modules/unistr/u32-strmbtouc: New file.
41048         * lib/unistr/u8-strmbtouc.c: New file.
41049         * lib/unistr/u16-strmbtouc.c: New file.
41050         * lib/unistr/u32-strmbtouc.c: New file.
41051
41052         * modules/unistr/u8-strncat: New file.
41053         * modules/unistr/u16-strncat: New file.
41054         * modules/unistr/u32-strncat: New file.
41055         * lib/unistr/u8-strncat.c: New file.
41056         * lib/unistr/u16-strncat.c: New file.
41057         * lib/unistr/u32-strncat.c: New file.
41058         * lib/unistr/u-strncat.h: New file.
41059
41060         * modules/unistr/u8-strncmp: New file.
41061         * modules/unistr/u16-strncmp: New file.
41062         * modules/unistr/u32-strncmp: New file.
41063         * lib/unistr/u8-strncmp.c: New file.
41064         * lib/unistr/u16-strncmp.c: New file.
41065         * lib/unistr/u32-strncmp.c: New file.
41066
41067         * modules/unistr/u8-strncpy: New file.
41068         * modules/unistr/u16-strncpy: New file.
41069         * modules/unistr/u32-strncpy: New file.
41070         * lib/unistr/u8-strncpy.c: New file.
41071         * lib/unistr/u16-strncpy.c: New file.
41072         * lib/unistr/u32-strncpy.c: New file.
41073         * lib/unistr/u-strncpy.h: New file.
41074
41075         * modules/unistr/u8-strnlen: New file.
41076         * modules/unistr/u16-strnlen: New file.
41077         * modules/unistr/u32-strnlen: New file.
41078         * lib/unistr/u8-strnlen.c: New file.
41079         * lib/unistr/u16-strnlen.c: New file.
41080         * lib/unistr/u32-strnlen.c: New file.
41081         * lib/unistr/u-strnlen.h: New file.
41082
41083         * modules/unistr/u8-strpbrk: New file.
41084         * modules/unistr/u16-strpbrk: New file.
41085         * modules/unistr/u32-strpbrk: New file.
41086         * lib/unistr/u8-strpbrk.c: New file.
41087         * lib/unistr/u16-strpbrk.c: New file.
41088         * lib/unistr/u32-strpbrk.c: New file.
41089         * lib/unistr/u-strpbrk.h: New file.
41090
41091         * modules/unistr/u8-strrchr: New file.
41092         * modules/unistr/u16-strrchr: New file.
41093         * modules/unistr/u32-strrchr: New file.
41094         * lib/unistr/u8-strrchr.c: New file.
41095         * lib/unistr/u16-strrchr.c: New file.
41096         * lib/unistr/u32-strrchr.c: New file.
41097
41098         * modules/unistr/u8-strspn: New file.
41099         * modules/unistr/u16-strspn: New file.
41100         * modules/unistr/u32-strspn: New file.
41101         * lib/unistr/u8-strspn.c: New file.
41102         * lib/unistr/u16-strspn.c: New file.
41103         * lib/unistr/u32-strspn.c: New file.
41104         * lib/unistr/u-strspn.h: New file.
41105
41106         * modules/unistr/u8-strstr: New file.
41107         * modules/unistr/u16-strstr: New file.
41108         * modules/unistr/u32-strstr: New file.
41109         * lib/unistr/u8-strstr.c: New file.
41110         * lib/unistr/u16-strstr.c: New file.
41111         * lib/unistr/u32-strstr.c: New file.
41112         * lib/unistr/u-strstr.h: New file.
41113
41114         * modules/unistr/u8-strtok: New file.
41115         * modules/unistr/u16-strtok: New file.
41116         * modules/unistr/u32-strtok: New file.
41117         * lib/unistr/u8-strtok.c: New file.
41118         * lib/unistr/u16-strtok.c: New file.
41119         * lib/unistr/u32-strtok.c: New file.
41120         * lib/unistr/u-strtok.h: New file.
41121
41122         * modules/unistr/u8-uctomb: New file.
41123         * modules/unistr/u16-uctomb: New file.
41124         * modules/unistr/u32-uctomb: New file.
41125         * lib/unistr/u8-uctomb.c: New file.
41126         * lib/unistr/u16-uctomb.c: New file.
41127         * lib/unistr/u32-uctomb.c: New file.
41128
41129         * MODULES.html.sh (Unicode string functions): Add the new modules.
41130
41131 2007-01-08  Bruno Haible  <bruno@clisp.org>
41132
41133         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
41134         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
41135         subdirectories.
41136
41137 2007-01-08  Karl Berry  <karl@gnu.org>
41138
41139         * doc/error.texi: mention that main() fns must set program_name
41140         when progname is used.
41141
41142 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
41143
41144         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
41145         WCTYPE_H is empty, for the benefit of builds from non-distclean
41146         directories.  Problem reported by Eric Blake in
41147         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
41148
41149 2007-01-08  Bruno Haible  <bruno@clisp.org>
41150
41151         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
41152         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
41153         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
41154         PROVIDE_CANONICALIZE_FILENAME_MODE.
41155         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
41156
41157 2007-01-08  Bruno Haible  <bruno@clisp.org>
41158
41159         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
41160         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
41161         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
41162         * lib/fts.c: Likewise.
41163         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
41164
41165 2006-12-25  Bruno Haible  <bruno@clisp.org>
41166
41167         * modules/utf8-ucs4-safe: New file.
41168         * lib/utf8-ucs4-safe.h: New file.
41169         * lib/unistr/utf8-ucs4-safe.c: New file.
41170
41171         * modules/utf16-ucs4-safe: New file.
41172         * lib/utf16-ucs4-safe.h: New file.
41173         * lib/unistr/utf16-ucs4-safe.c: New file.
41174
41175         * MODULES.html.sh (Unicode string functions): Add the new modules.
41176
41177 2007-01-08  Bruno Haible  <bruno@clisp.org>
41178
41179         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
41180         (Depends-on): Add unitypes.
41181         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41182         (u8_mbtouc_aux): Move out to separate file.
41183         (u8_mbtouc): Use ucs4_t, uint8_t types.
41184         * lib/unistr/utf8-ucs4.c: New file.
41185
41186         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
41187         (Depends-on): Add unitypes.
41188         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41189         (u16_mbtouc_aux): Move out to separate file.
41190         (u16_mbtouc): Use ucs4_t, uint16_t types.
41191         * lib/unistr/utf16-ucs4.c: New file.
41192
41193         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
41194         (Depends-on): Add unitypes.
41195         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
41196         (u8_uctomb_aux): Move out to separate file.
41197         (u8_uctomb): Use ucs4_t, uint8_t types.
41198         * lib/unistr/ucs4-utf8.c: New file.
41199
41200         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
41201         (Depends-on): Add unitypes.
41202         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
41203         (u16_uctomb_aux): Move out to separate file.
41204         (u16_uctomb): Use ucs4_t, uint16_t types.
41205         * lib/unistr/ucs4-utf16.c: New file.
41206
41207 2006-12-25  Bruno Haible  <bruno@clisp.org>
41208
41209         * modules/unitypes: New file.
41210         * lib/unitypes.h: New file.
41211         * MODULES.html.sh (func_all_modules): New section "Unicode string
41212         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
41213         this section. Add unitypes.
41214
41215 2007-01-08  Bruno Haible  <bruno@clisp.org>
41216
41217         Avoid variable names that conflict with those from libtool.
41218         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
41219         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
41220         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
41221         library_names_spec to acl_library_names_spec, hardcode_* to
41222         acl_hardcode_*.
41223         Reported by Ralf Wildenhues.
41224
41225 2007-01-08  Bruno Haible  <bruno@clisp.org>
41226
41227         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
41228         definition.
41229         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
41230         definition.
41231         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
41232         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
41233         definition.
41234         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
41235         definition.
41236         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
41237         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
41238         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
41239         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
41240         definition.
41241         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
41242         definition.
41243         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
41244         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
41245         GC_USE_<algorithm>.
41246         * lib/gc-libgcrypt.c: Likewise.
41247         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
41248         * modules/gc-arctwo (configure.ac): Likewise.
41249         * modules/gc-des (configure.ac): Likewise.
41250         * modules/gc-hmac-md5 (configure.ac): Likewise.
41251         * modules/gc-hmac-sha1 (configure.ac): Likewise.
41252         * modules/gc-md2 (configure.ac): Likewise.
41253         * modules/gc-md4 (configure.ac): Likewise.
41254         * modules/gc-md5 (configure.ac): Likewise.
41255         * modules/gc-random (configure.ac): Likewise.
41256         * modules/gc-rijndael (configure.ac): Likewise.
41257         * modules/gc-sha1 (configure.ac): Likewise.
41258
41259 2007-01-08  Bruno Haible  <bruno@clisp.org>
41260
41261         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
41262         macro definition.
41263         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
41264         definition.
41265         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
41266         definition.
41267         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
41268         * modules/fcntl-safer (configure.ac): Likewise.
41269         * modules/fopen-safer (configure.ac): Likewise.
41270         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
41271         GNULIB_FWRITEERROR macro definition.
41272
41273 2007-01-08  Bruno Haible  <bruno@clisp.org>
41274
41275         * m4/gnulib-common.m4: New file.
41276         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
41277         (func_get_filelist): Add m4/gnulib-common.m4.
41278
41279 2007-01-08  Bruno Haible  <bruno@clisp.org>
41280
41281         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
41282         command.
41283
41284 2007-01-08  Jim Meyering  <jim@meyering.net>
41285
41286         Use a more robust test for a "can't happen" condition.
41287         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
41288         narrowed the st_size value.  Presuming the "can't happen" condition
41289         is true, that narrowing could conceivably convert an invalid st_size
41290         value into a valid one.  Instead, use a change based on Matthew
41291         Woehlke's original patch.
41292
41293         Slight readability improvement: use an assert-like macro
41294         in place of literal "abort ()" uses.
41295         * lib/fts.c (fts_assert): Define.
41296         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
41297         Use this macro instead of a bare 'abort'.
41298
41299 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41300
41301         Don't worry about using IRIX 5.3's wctype.h broken definitions;
41302         simply work around them.
41303         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
41304         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
41305         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
41306         declaring.
41307         Don't bother to define as macros, since the standard doesn't require it.
41308         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
41309         longer worry about IRIX 5.3.
41310         (HAVE_WCTYPE_CTMP_BUG): Remove.
41311
41312 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41313
41314         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
41315         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
41316         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41317         Problems reported by Georg Schwarz for IRIX 5.3.
41318
41319         * gnulib-tool (autoconf_minversion): Take the maximum version number
41320         found, not the minimum.  Problem reported by James Youngman.
41321
41322 2007-01-03  Karl Berry  <karl@gnu.org>
41323
41324         * doc/error.texi: new file, explaining interaction with progname.
41325         * doc/gnulib.texi: include it.  Update copyright.
41326
41327 2007-01-03  Simon Josefsson  <simon@josefsson.org>
41328
41329         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
41330         AC_CANONICAL_HOST, to improve autobuild outputs.
41331
41332 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41333             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41334
41335         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41336         sockets, server sockets, and other file descriptors.  Count errors
41337         to compute the return value.  Reorder the code a bit to be easier
41338         to follow.  Don't set event bits that were not requested (except
41339         POLLERR and POLLHUP).
41340
41341 2007-01-01  Bruno Haible  <bruno@clisp.org>
41342
41343         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41344
41345 2007-01-03  Jim Meyering  <jim@meyering.net>
41346
41347         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41348
41349 2007-01-02  Bruno Haible  <bruno@clisp.org>
41350
41351         * modules/settime (Include): Require timespec.h.
41352         * modules/nanosleep (Include): Likewise.
41353
41354 2007-01-01  Bruno Haible  <bruno@clisp.org>
41355
41356         * gnulib-tool (func_emit_copyright_notice): Bump year.
41357         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41358
41359 2007-01-01  Bruno Haible  <bruno@clisp.org>
41360
41361         Improve support for OpenBSD.
41362         * build-aux/config.rpath (libname_spec): Export.
41363         (library_names_spec): New variable. Export.
41364         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41365         library_names_spec from the config.rpath output. Locate shared library
41366         through the name pattern in library_names_spec.
41367
41368 2007-01-01  Eric Blake  <ebb9@byu.net>
41369
41370         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41371
41372 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41373
41374         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41375         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41376         assume the C locale, and avoid an "eval" that could cause trouble.
41377         Problem with SORT reported by Bob Proulx.
41378
41379         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41380         Define.  Trivial patch from Henning Nielsen Lund, originally
41381         sent to bug-grep@gnu.org today.
41382
41383 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41384
41385         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41386         struct stat.  Problem reported by Henning Nielsen Lund.
41387         * lib/acl.c: Include acl.h first, to check interface.  Don't
41388         bother to include sys/types.h and sys/stat.h again.
41389
41390 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41391
41392         Import the following change from libc; problem reported by
41393         Sven Verdoolaege.
41394
41395         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41396
41397         [BZ #1373]
41398         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41399
41400 2006-12-28  Jim Meyering  <jim@meyering.net>
41401
41402         * build-aux/announce-gen: Do not assume that the package
41403         builds any of tar.gz, tar.bz2, and .xdelta files.
41404         Suggestion from Simon Josefsson.
41405
41406 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41407
41408         * modules/announce-gen: New file.
41409
41410 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41411
41412         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41413         handles its gotchas now.
41414         * lib/mbswidth.c: Likewise.
41415         * lib/wcwidth.h: Likewise.
41416         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41417         and iswcntrl; the wctype module does this stuff now.
41418         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41419         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41420         * modules/mbchar (Depends-on): Add wctype.
41421         * modules/mbswidth (Depends-on): Likewise.
41422         * modules/wcwidth (Depends-on): Likewise.
41423
41424 2006-12-27  Eric Blake  <ebb9@byu.net>
41425
41426         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41427         module uses more than what <wctype.h> is required to provide.
41428
41429 2006-12-26  Eric Blake  <ebb9@byu.net>
41430
41431         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41432
41433 2006-12-26  Eric Blake  <ebb9@byu.net>
41434
41435         * modules/absolute-header: New module.
41436         * modules/fcntl (Depends-on): Depend on it.
41437         * modules/inttypes (Depends-on): Likewise.
41438         * modules/stdint (Depends-on): Likewise.
41439         * modules/sys_stat (Depends-on): Likewise.
41440         * modules/wctype (Depends-on): Likewise.
41441         * MODULES.html.sh (Support for building libraries and
41442         executables): Document it.
41443
41444 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41445
41446         * gnulib-tool (SED): Remove, undoing previous change.
41447         The problem was that it broke coreutils on Solaris, because
41448         "sed --posix" leaked into a makefile.
41449         (sed): New alias, if 'alias' and GNU sed.
41450
41451 2006-12-24  Jim Meyering  <jim@meyering.net>
41452
41453         Work around an fchownat bug in glibc-2.4:
41454         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41455         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41456         in spite of the -P option.
41457         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41458         New macros.
41459         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41460         * modules/openat (Files): Add lib/fchownat.c.
41461         * lib/openat.c (fchownat): Don't define here.  Move to...
41462         * lib/fchownat.c: ...this new file.
41463
41464 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41465
41466         Fix bug reported by Bruno Haible in
41467         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41468         where quotearg.c didn't compile on Mac OS X 10.2 because it
41469         lacks <wchar.h> and wint_t.
41470         * lib/wctype_.h (__wctype_wint_t): New type.
41471         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41472         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41473         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41474         Arg is now of type __wctype_wint_t, not wint_t.
41475         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41476         substitute HAVE_WINT_T.
41477         * modules/wctype (Files): Add m4/wint_t.m4.
41478         (wctype.h): Substitute HAVE_WINT_T.
41479
41480 2006-12-23  Bruno Haible  <bruno@clisp.org>
41481
41482         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41483
41484 2006-12-23  Bruno Haible  <bruno@clisp.org>
41485
41486         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41487         S_ISLNK.
41488         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41489         mingw.
41490
41491 2006-12-22  Bruno Haible  <bruno@clisp.org>
41492
41493         * lib/copy-file.c: Include acl.h.
41494         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41495         Close the file descriptors only after being done with copy_acl.
41496         * modules/copy-file (Depends-on): Add acl.
41497
41498 2006-12-22  Bruno Haible  <bruno@clisp.org>
41499
41500         * gnulib-tool (SED): New variable.
41501         Use $SED instead of sed everywhere.
41502
41503 2006-12-22  Bruno Haible  <bruno@clisp.org>
41504
41505         * modules/no-c++: New file.
41506         * m4/no-c++.m4: New file.
41507         * MODULES.html.sh (Support for building libraries and executables):
41508         Add no-c++.
41509
41510 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41511
41512         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41513         Include <limits.h>, and use its INT_MAX to rewrite the
41514         j loop so that it does not overflow 'int'.  Problem reported by
41515         Ralf Wildenhues in
41516         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41517         Play it safe by shifting left by 1 rather than multiplying by 2,
41518         as GCC is less likely to optimize this away when the value
41519         is signed (when it assumes overflow leads to undefined behavior).
41520         Also, don't assume time_t uses two's complement.
41521
41522 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41523
41524         * MODULES.html.sh: New module wctype.
41525         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41526         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41527         <wctype.h>, since the new wctype module should fix this.
41528         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41529         the wctype module should arrange for it.
41530         * lib/regex_internal.h: Likewise.
41531         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41532         since the wctype module should handle this now.
41533         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41534         * modules/fnmatch (Depends-on): Add wctype.
41535         * modules/quotearg (Depends-on): Likewise.
41536         * modules/regex (Depends-on): Likewise.
41537
41538 2006-12-19  Bruno Haible  <bruno@clisp.org>
41539
41540         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41541         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41542
41543 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41544
41545         * modules/savewd (Depends-on): Fix dependency on fcntl.
41546
41547 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41548
41549         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41550         conforms to C99, rather than relying on the user's environment
41551         setting of STDINT_H.
41552
41553 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41554         and Eric Blake  <ebb9@byu.net>
41555
41556         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41557         This is more consistent with the other defines here.
41558         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41559         Port to z/OS.  Problem reported by Paul Gilmartin.
41560         Change local vars to use gl_ prefix rather than ac_.
41561         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41562         with other defines.
41563         * modules/double-slash-root: New module.
41564         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41565         (Depends-on): Add double-slash-root.
41566         * MODULES.html.sh (File system functions): Mention new module.
41567
41568 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41569
41570         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41571         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41572         This is for the benefit of gzip, which doesn't do i18n.
41573
41574 2006-12-12  Jim Meyering  <jim@meyering.net>
41575
41576         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41577         Reported by Andreas Schwab <schwab@suse.de>.
41578
41579 2006-12-12  Bruno Haible  <bruno@clisp.org>
41580
41581         Merge these changes.
41582         2006-09-05  Bruno Haible  <bruno@clisp.org>
41583         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41584         iconv_alloc succeeded.
41585         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41586         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41587         test for " && dest " at the end - dest is always != NULL there. Call
41588         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41589         with 2xNULL arguments, also to flush the state storage. Handle the
41590         IRIX iconv behaviour. Realloc the final result, to throw away unused
41591         memory.
41592
41593 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41594
41595         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41596         and fchmodat unconditionally, since glibc 2.4 has them.
41597         Problem reported by Arkadiusz Miskiewicz.
41598
41599 2006-12-10  Bruno Haible  <bruno@clisp.org>
41600
41601         * gnulib-tool (func_import): Show the include files only for those
41602         modules that are copied and specified.
41603         Reported by Karl Berry.
41604
41605 2006-12-08  Jim Meyering  <jim@meyering.net>
41606
41607         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41608         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41609
41610         * build-aux/announce-gen: Add two new options, both optional:
41611         --bootstrap-tools=TOOL_LIST
41612               a comma-separated list of tools, e.g.,
41613               autoconf,automake,bison,gnulib
41614         --gnulib-snapshot-date=DATE
41615               if gnulib is in the bootstrap tool list,
41616               then report this as the snapshot date.
41617               If not specified, use the current date/time.
41618               If you specify a date here, be sure it's UTC.
41619
41620 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41621
41622         * tests/test-argp-2.sh: Fix test to match actual output.
41623         (func_compare): Fix sed script to be portable.
41624
41625 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41626
41627         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41628         workaround for this case.  It is not autoconfigured now; offhand
41629         it's hard to see how to autoconfigure it.
41630
41631 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41632
41633         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41634         a directory that is about to be chowned.  Such a directory's
41635         initial file permissions should permit the owner only and this
41636         should not be changed until after the chown, since the group and
41637         other bits would be incorrect if they granted permission before
41638         the chown.
41639
41640         Fix porting problem for iswctype reported by Georg Schwarz in:
41641         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41642         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41643         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41644         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41645         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41646
41647 2006-12-03  Jim Meyering  <jim@meyering.net>
41648
41649         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41650         p->fts_statp may not yet be defined.
41651         (fts_read): Instead, set it in the caller, once p->fts_statp is
41652         sure to be defined, and corresponds to a top-level directory.
41653         This bug made du -x fail.  Here's the coreutils test case:
41654         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41655         Reported by Mike Frysinger.
41656
41657 2006-12-01  Jim Meyering  <jim@meyering.net>
41658
41659         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41660         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41661         Reported by Simon Josefsson.
41662
41663 2006-11-30  Jim Meyering  <jim@meyering.net>
41664
41665         * m4/warning.m4: Use the all-permissive copyright notice
41666         recommended by RMS (rather than LGPL).
41667         * m4/vararrays.m4: Likewise.
41668         * m4/flexmember.m4: Likewise.
41669
41670 2006-11-29  Bruno Haible  <bruno@clisp.org>
41671
41672         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41673         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41674         using +=.
41675         Reported by Simon Josefsson <simon@josefsson.org>.
41676
41677 2006-11-28  James Youngman <jay@gnu.org>
41678
41679         * README: Advise users that they might find the bug-gnulib@gnu.org
41680         and autotools-announce@gnu.org mailing lists useful.
41681
41682 2006-11-28  Bruno Haible  <bruno@clisp.org>
41683
41684         * m4/ptrdiff_max.m4: Remove file.
41685
41686 2006-11-21  Bruno Haible  <bruno@clisp.org>
41687
41688         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41689         _AC_COMPUTE_INT.
41690         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41691         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41692         _AC_COMPUTE_INT.
41693         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41694         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41695         _AC_COMPUTE_INT.
41696         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41697
41698 2006-11-28  Jim Meyering  <jim@meyering.net>
41699
41700         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41701         warning from "gcc -Wshadow" about shadowing the builtin.
41702
41703 2006-11-27  Bruno Haible  <bruno@clisp.org>
41704
41705         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41706         _AC_COMPUTE_INT.
41707         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41708
41709 2006-11-27  Bruno Haible  <bruno@clisp.org>
41710             Paul Eggert  <eggert@cs.ucla.edu>
41711
41712         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41713
41714 2006-11-26  Bruno Haible  <bruno@clisp.org>
41715
41716         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41717         noinst_LTLIBRARIES.
41718
41719 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41720             Bruno Haible  <bruno@clisp.org>
41721
41722         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41723         if compiling with "gcc -ansi".
41724
41725 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41726
41727         Fix some incompatibilities with gcc -ansi -pedantic.
41728         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41729         if compiling pedantically with GCC, unless it's C99 or later.
41730         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41731         it mishandles gcc -ansi -pedantic as well.
41732         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41733         if gcc -pedantic.
41734         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41735         initializers for struct if -pedantic, unless it's C99 or later.
41736
41737 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41738
41739         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41740         Don't close an fd more than once. Identical atimes indicate
41741         success, not failure.
41742
41743 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41744
41745         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41746
41747 2006-11-23  Jim Meyering  <jim@meyering.net>
41748
41749         * build-aux/announce-gen: New file.  From coreutils.
41750
41751 2006-11-22  Jim Meyering  <jim@meyering.net>
41752
41753         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41754         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41755         (fts_read): Use a temporary to narrow the overused st_size member
41756         before using it in a switch statement.  Reported by Matthew Woehlke.
41757
41758         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41759         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41760
41761 2006-11-20  Bruno Haible  <bruno@clisp.org>
41762
41763         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41764         changequote instead of pairs of brackets.
41765         Reported by Andreas Schwab <schwab@suse.de>.
41766
41767 2006-11-21  Jim Meyering  <jim@meyering.net>
41768
41769         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41770         so as to remain compatible with older compilers.
41771         Patch from Michael Deutschmann.
41772
41773 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41774
41775         * MODULES.html.sh (File system functions): Add openat.
41776
41777         * lib/openat.h (rpl_fstatat): New macro, if
41778         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41779         (fstatat): Define to rpl_fstatat under the same conditions,
41780         unless COMPILING_FSTATAT.
41781         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41782         seems to have the bug.
41783         * lib/fstatat.c: New file.
41784         * modules/openat (Files): Add it.
41785
41786 2006-11-20  Bruno Haible  <bruno@clisp.org>
41787
41788         * Makefile: New file.
41789
41790 2006-11-20  Jim Meyering  <jim@meyering.net>
41791
41792         The beginnings of syntax-related checks for gnulib.
41793         * lib/Makefile: New file.
41794         * lib/t-idcache: New script.  Ensure that the two halves of
41795         idcache.c stay in sync.
41796
41797         * lib/idcache.c: Adjust comments in user- and group- portions to
41798         be more accurate, and to be consistent with one another.
41799
41800 2006-11-20  Jim Meyering  <jim@meyering.net>
41801
41802         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41803         continue using the flexible array member (thus, this module performs
41804         half as many malloc calls), with the addition that...
41805         (getgroup, getuser): Consistently record a non-match via an empty
41806         "name" string, and map an empty string match to a NULL return value.
41807         * modules/idcache (Depends-on): Re-add flexmember.
41808
41809         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41810         (getuidbyname, getgroup, getgidbyname): Likewise.
41811
41812         Use cleaner syntax: NULL rather than 0.
41813         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41814
41815 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41816
41817         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41818         It mishandled the case where the group was missing.
41819         Problem reported by Greg Schafer.
41820         * modules/idcache: Likewise.
41821
41822 2006-11-18  Jim Meyering  <jim@meyering.net>
41823
41824         * check-module (%exempt_header): Add exception for some
41825         conditionally-included headers.
41826
41827         * modules/i-ring (Depends-on): Add verify.
41828         (License): Change to LGPL.
41829
41830 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41831
41832         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41833         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41834         and inttostr.h.  Use snprintf rather than uinttostr, so that
41835         LGPLed code doesn't depend on GPLed.
41836
41837 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41838
41839         * modules/inline (License): Change from GPL to LGPL.
41840
41841 2006-11-17  Jim Meyering  <jim@meyering.net>
41842
41843         * modules/d-type (License): Switch to LGPL.
41844
41845 2006-11-15  Bruno Haible  <bruno@clisp.org>
41846
41847         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41848
41849 2006-11-15  Eric Blake  <ebb9@byu.net>
41850
41851         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41852         the module dependency.
41853
41854 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41855             Bruno Haible  <bruno@clisp.org>
41856
41857         * gnulib-tool (func_create_testdir): Add license consistency check.
41858
41859 2006-11-15  Eric Blake  <ebb9@byu.net>
41860
41861         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41862         random "(cached)" in configure output.
41863
41864 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41865
41866         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41867         test for conforming inttypes.h is both announced and cached.
41868
41869         * MODULES.html.sh (seen_modules, seen_files): New variables.
41870         (func_module): Rewrite to use a few less gnulib-tool and sed
41871         invocations.  Avoid a couple of quadratic algorithms for ...
41872         (missed_modules, missed_files): ... these, with ...
41873         (func_append, func_tmpdir): ... these new functions, from
41874         gnulib-tool.  Analogously, install traps for cleanup.
41875
41876         * tests/test-gc.c (main): Remove unused variables.
41877         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41878
41879 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41880
41881         * modules/inttostr (License): Change to LGPL.
41882
41883 2006-11-14  Eric Blake  <ebb9@byu.net>
41884
41885         * modules/tempname (License): Change to LGPL.
41886
41887 2006-11-14  Eric Blake  <ebb9@byu.net>
41888
41889         * doc/functions.texi (Function Portability): *printf functions on
41890         Cygwin now understand all POSIX size specifiers.
41891
41892 2006-11-14  Bruno Haible  <bruno@clisp.org>
41893
41894         * modules/c-ctype (License): Change to LGPL.
41895
41896 2006-11-12  Bruno Haible  <bruno@clisp.org>
41897
41898         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41899         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41900         for GNOME libraries, for which the include files are installed in
41901         subdirectories of $prefix/include.
41902
41903 2006-11-12  Bruno Haible  <bruno@clisp.org>
41904
41905         * m4/lib-link.m4: Require at least autoconf-2.54.
41906         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41907         name to underscores for the --with option.
41908
41909 2006-11-13  Bruno Haible  <bruno@clisp.org>
41910
41911         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41912         the tests directory.
41913         Reported by Ralf Wildenhues.
41914
41915 2006-11-13  Bruno Haible  <bruno@clisp.org>
41916
41917         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41918         (func_emit_initmacro_end): Undo the override here.
41919         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41920         Works around the famous automake error in coreutils.
41921
41922 2006-11-13  Eric Blake  <ebb9@byu.net>
41923
41924         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41925         element, not its node.
41926
41927 2006-11-12  Bruno Haible  <bruno@clisp.org>
41928
41929         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41930         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41931
41932 2006-11-12  Bruno Haible  <bruno@clisp.org>
41933
41934         * gnulib-tool: New option --local-symlink.
41935         (func_usage): Document it.
41936         (lsymbolic): New variable.
41937         (func_import, func_create_testdir): If --symlink was not specified,
41938         test whether --local-symlink was specified and the file comes from
41939         the local_gnulib_dir.
41940
41941 2006-11-12  Bruno Haible  <bruno@clisp.org>
41942
41943         * gnulib-tool (func_ln): New function.
41944         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41945
41946 2006-11-12  Bruno Haible  <bruno@clisp.org>
41947
41948         Finish support for source files in subdirectories.
41949         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41950         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41951         AUTOMAKE_OPTIONS.
41952         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41953
41954 2006-11-12  Bruno Haible  <bruno@clisp.org>
41955
41956         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41957         EXTRA_lib_SOURCES augmentation.
41958         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41959
41960 2006-11-12  Jim Meyering  <jim@meyering.net>
41961
41962         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41963         file descriptors.  This also averts a failure on systems with
41964         native openat support when a traversed directory lacks "x" access.
41965         * lib/fts_.h: Include "i-ring.h"
41966         (struct FTS) [fts_fd_ring]: New member.
41967         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41968         (FCHDIR): Add parentheses.
41969         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41970         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41971         When descending, rather than simply closing the previous
41972         fts_cwd_fd value, push that file descriptor onto the ring.
41973         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41974         (fts_open): Initialize the new fd_ring member.
41975         (fts_close): Clear the ring.
41976         (fts_safe_changedir): When possible, use our new fd_ring to skip
41977         the diropen and fstat and dev/ino comparison that would normally
41978         accompany a virtual `chdir ("..")'.
41979
41980         * modules/fts (Depends-on): Add i-ring.
41981         * modules/i-ring: New module.
41982         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41983         * m4/i-ring.m4: New file.
41984
41985 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41986
41987         * gnulib-tool (func_create_testdir): Fix replacement of
41988         `build-aux' in configure.ac.  Run autotools in gltests
41989         subdirectory.
41990         (func_create_testdir, func_create_megatestdir, test): There is
41991         no need for '--force' in most autotool invocations in a new
41992         tree.  Actually fail the whole test if any of the tools, or the
41993         configure or make stages fail.
41994
41995         Sync from Automake.
41996         * build-aux/gnupload: Revert last change.  Add pointer to upload
41997         instructions of the GNU Maintenance Instructions.
41998         Suggestion by Karl Berry.
41999
42000 2006-11-10  Jim Meyering  <jim@meyering.net>
42001
42002         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
42003
42004 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42005
42006         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
42007         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
42008         (bind_textdomain_codeset) [! ENABLE_NLS]:
42009         Evaluate all the arguments.  That way, callers get compatible behavior
42010         if the arguments have side effects.  Also, it avoids some GCC
42011         diagnostics in some cases; Joel E. Denny reported problems when Bison
42012         was configured with --enable-gcc-warnigs.
42013
42014 2006-11-10  Jim Meyering  <jim@meyering.net>
42015
42016         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
42017         relevant options in CFLAGS (like -O, -fno-inline) are taken into
42018         account.
42019
42020 2006-11-10  Jim Meyering  <jim@meyering.net>
42021
42022         * modules/inline: New file/module.
42023         * modules/xalloc (Files): Remove m4/inline.m4.
42024         (Depends-on): Add inline, instead.
42025         * modules/oset: Likewise.
42026         * modules/list: Likewise.
42027
42028 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42029
42030         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
42031         Problem reported by Matthew Woehlke.
42032
42033 2006-11-09  Bruno Haible  <bruno@clisp.org>
42034
42035         * lib/tempname.c (gen_tempname): Remove variant that invokes
42036         __gen_tempname.
42037         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
42038         __gen_tempname.
42039
42040 2006-11-08  Bruno Haible  <bruno@clisp.org>
42041
42042         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
42043         to 'yes' instead of 'cross-compiling'.
42044
42045 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
42046
42047         * lib/quotearg.h (quotearg_free): New decl.
42048         * lib/quotearg.c (quotearg_free): New function.
42049         (slot0, nslots, slotvec0, slotvec):
42050         Now file-scope so that quotearg_free can get at them.
42051
42052 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42053
42054         Sync from Automake.
42055         * build-aux/gnupload: Add missing 'gnu' to example URL.
42056         Report by Karl Berry.
42057
42058 2006-11-08  Bruno Haible  <bruno@clisp.org>
42059
42060         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
42061         Suggested by Paul Eggert.
42062
42063 2006-11-08  Jim Meyering  <jim@meyering.net>
42064
42065         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
42066         It's already included if !_LIBC.
42067         (fts_safe_changedir): Add a comment.
42068
42069 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42070
42071         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
42072         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
42073         Matthew Woehlke.
42074
42075         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
42076         definitions up, to avoid colliding with change below.
42077         (static_inline) [HAVE_INLINE]: New macro.
42078         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
42079         Provide extern decls when !HAVE_INLINE.  Do not define unless
42080         static_inline is defined, either by us or by xmalloc.c.  Use
42081         static_inline rather than static inline.
42082         (XCALLOC): Optimize sizeof(T) = 1 case.
42083         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
42084
42085 2006-11-07  Bruno Haible  <bruno@clisp.org>
42086
42087         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
42088         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
42089         AC_C_INLINE.
42090         * modules/xalloc (Files): Add m4/inline.m4.
42091
42092 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42093
42094         * README: Fix typo.
42095         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
42096         (Miscellanous Notes): ...from this.
42097
42098 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42099
42100         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
42101         Mention that offsetof should be used instead of sizeof.
42102         From Bruno Haible.
42103
42104 2006-11-07  Bruno Haible  <bruno@clisp.org>
42105
42106         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
42107
42108 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42109
42110         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42111         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
42112         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
42113         (gl_tree_add_before, gl_tree_add_after):
42114         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
42115         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
42116         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
42117         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
42118         (gl_linked_add_after, gl_linked_add_at): Likewise.
42119         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
42120         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
42121         (gl_tree_add_before, gl_tree_add_after): Likewise.
42122         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
42123         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
42124         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42125
42126 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42127
42128         * lib/gl_oset.h: Use C comment style, not C++ comment style.
42129
42130 2006-11-06  Bruno Haible  <bruno@clisp.org>
42131
42132         * m4/inline.m4: New file.
42133         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
42134         * modules/list (Files): Add m4/inline.m4.
42135         * modules/oset (Files): Likewise.
42136
42137 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42138
42139         * lib/idcache.c: Include <stddef.h>, for offsetof.
42140         (struct userid.name): Change from char * to a flexible array member.
42141         All uses changed.
42142         * modules/idcache (Depends-on): Add flexmember.
42143
42144         * MODULES.html.sh (Core language properties): New module flexmember.
42145         * modules/flexmember, m4/flexmember.m4: New files.
42146
42147         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
42148         inline functions that are identical with the old xnmalloc_inline,
42149         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
42150         that we can avoid some unnecessary integer multiplications and
42151         divisions in the common case where the element size is known at
42152         compile time.
42153         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
42154         needed.
42155         (xnboundedmalloc): Remove.
42156         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
42157         arguments, for consistency with rest of this header.
42158         (xcharalloc): Rewrite using XNMALLOC.
42159         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
42160         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
42161         versions have been moved to lib/xalloc.h and renamed to be the
42162         non-*_inline versions.
42163         (xmalloc, xrealloc): Implement without reference to the xnmalloc
42164         and xnrealloc functions, since those functions are now inline and
42165         now call us.
42166         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
42167         renaming described above.
42168         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
42169         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
42170         captures the dependency in AC_C_INLINE.
42171
42172         New module canonicalize-lgpl, proposed by Charles Wilson in
42173         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
42174         with a few small changes afterwards.
42175         * MODULES.html.sh (File system functions): New module
42176         canonicalize-lgpl.
42177         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
42178         and canonicalize_file_name.
42179         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
42180         * modules/canonicalize-lgpl: New files.
42181
42182 2006-11-05  Bruno Haible  <bruno@clisp.org>
42183
42184         * gnulib-tool (func_import, func_create_testdir): Create directories
42185         also for files in subdirectories of lib/.
42186
42187 2006-11-05  Bruno Haible  <bruno@clisp.org>
42188
42189         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
42190         ANSI C compliant.
42191
42192 2006-11-03  Bruno Haible  <bruno@clisp.org>
42193
42194         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42195         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
42196         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
42197         (xnboundedmalloc): New inline function.
42198         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
42199         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
42200         xmalloc.
42201         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
42202         xmalloc.
42203         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
42204         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
42205         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
42206         xmalloc.
42207         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42208         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
42209         xmalloc.
42210         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
42211         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42212         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
42213         xmalloc.
42214         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42215         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
42216         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42217         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
42218         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
42219         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
42220         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
42221
42222 2006-11-03  Bruno Haible  <bruno@clisp.org>
42223
42224         * lib/c-ctype.h [C++]: Define functions without name mangling.
42225         * lib/fwriteerror.h [C++]: Likewise.
42226         * lib/gcd.h [C++]: Likewise.
42227         * lib/linebreak.h [C++]: Likewise.
42228
42229 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42230
42231         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
42232         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
42233         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
42234         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42235         Check for functions and headers just once.
42236         Check for declaration of canonicalize_file_name.
42237         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
42238
42239 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42240
42241         * gnulib-tool (func_import): Fix typo in actioncmd.
42242
42243 2006-11-02  Bruno Haible  <bruno@clisp.org>
42244
42245         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
42246         newline sequence in the Makefile.am snippet as a space, like "make"
42247         does.
42248         Reported by Roger Persson <perrog@gmail.com>.
42249
42250 2006-11-01  Bruno Haible  <bruno@clisp.org>
42251
42252         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
42253         already declared in <string.h>.
42254         * lib/strcase.h (strncasecmp): Don't declare it if yes.
42255
42256 2006-11-01  Bruno Haible  <bruno@clisp.org>
42257
42258         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
42259         * lib/strcase.h: Include <string.h>.
42260         (strcasecmp): Define to rpl_strcasecmp here.
42261
42262 2006-11-01  Bruno Haible  <bruno@clisp.org>
42263
42264         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
42265
42266 2006-11-01  Eric Blake  <ebb9@byu.net>
42267
42268         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
42269
42270         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
42271
42272 2006-10-29  Bruno Haible  <bruno@clisp.org>
42273
42274         Make it compile in C++ mode.
42275         * lib/full-write.c (full_rw): Add a cast.
42276
42277 2006-11-01  Bruno Haible  <bruno@clisp.org>
42278
42279         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
42280         be POSIX compliant.
42281         Reported by Roger Persson <perrog@gmail.com>.
42282
42283 2006-11-01  Eric Blake  <ebb9@byu.net>
42284
42285         * lib/getopt_.h: Fix comments.
42286
42287 2006-10-31  Eric Blake  <ebb9@byu.net>
42288
42289         * modules/tmpdir (Depends-on): Add sys_stat.
42290         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
42291         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
42292         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
42293         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
42294         tempname.
42295
42296 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42297
42298         Avoid some C++ diagnostics reported by Bruno Haible.
42299         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
42300         xmalloc.
42301         (quotearg_alloc): Use xcharalloc rather than xmalloc.
42302         (struct slotvec): Move to top level.
42303         (quotearg_n_options): Rewrite to avoid xmalloc.
42304         * lib/xalloc.h (xcharalloc): New function.
42305         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
42306         [defined __cplusplus]: Add function template that provides result
42307         type propagation.  This part of the change is from Bruno Haible.
42308
42309 2006-10-29  Bruno Haible  <bruno@clisp.org>
42310
42311         Make it compile in C++ mode.
42312         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
42313         * lib/strnlen1.c (strnlen1): Cast memchr result.
42314         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
42315         * lib/clean-temp.c (string_equals, string_hash): Add casts.
42316         (create_temp_dir): Rename local variable 'template'.
42317         (compile_csharp_using_sscli): Add cast.
42318         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
42319         * lib/findprog.c (find_in_path): Likewise.
42320         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
42321         * lib/wait-process.c (register_slave_subprocess): Likewise.
42322
42323 2006-10-22  Bruno Haible  <bruno@clisp.org>
42324
42325         * modules/tsearch: New file.
42326         * lib/tsearch.h: New file.
42327         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
42328         * m4/tsearch.m4: New file.
42329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
42330
42331 2006-10-29  Eric Blake  <ebb9@byu.net>
42332
42333         * lib/arcfour.c: Assume config.h.
42334         * lib/arctwo.c: Likewise.
42335         * lib/base64.c: Likewise.
42336         * lib/check-version.c: Likewise.
42337         * lib/crc.c: Likewise.
42338         * lib/des.c: Likewise.
42339         * lib/gc-gnulib.c: Likewise.
42340         * lib/gc-libgcrypt.c: Likewise.
42341         * lib/gc-pbkdf2-sha1.c: Likewise.
42342         * lib/getaddrinfo.c: Likewise.
42343         * lib/getdelim.c: Likewise.
42344         * lib/getline.c: Likewise.
42345         * lib/hmac-md5.c: Likewise.
42346         * lib/hmac-sha1.c: Likewise.
42347         * lib/iconvme.c: Likewise.
42348         * lib/md2.c: Likewise.
42349         * lib/md4.c: Likewise.
42350         * lib/memxor.c: Likewise.
42351         * lib/read-file.c: Likewise.
42352         * lib/readline.c: Likewise.
42353         * lib/rijndael-alg-fst.c: Likewise.
42354         * lib/rijndael-api-fst.c: Likewise.
42355         * lib/xgetdomainname.c: Likewise.
42356
42357 2006-10-28  Eric Blake  <ebb9@byu.net>
42358
42359         * lib/xstrndup.c: Assume config.h.
42360
42361 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42362
42363         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42364         stat-macros.h is now for our own macros, whereas stat_h is for
42365         macros in the <sys/stat.h> name space.
42366         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42367         (STAT_MACROS_H): Remove.
42368         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42369         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42370         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42371         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42372         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42373         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42374         Move these macros to ...
42375         * lib/stat_.h: here.  Don't include stat-macros.h.
42376         * lib/canonicalize.c: Don't include stat-macros.h.
42377         * lib/chown.c: Likewise.
42378         * lib/euidaccess.c: Likewise.
42379         * lib/file-type.c: Likewise.
42380         * lib/filemode.c: Likewise.
42381         * lib/glob.c: Likewise.
42382         * lib/isapipe.c: Likewise.
42383         * lib/lchown.c: Likewise.
42384         * lib/lstat.c: Likewise.
42385         * lib/mkdir-p.c: Likewise.
42386         * lib/rmdir.c: Likewise.
42387         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42388         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42389         unless mkdir isn't declared, to speed up 'configure'.
42390         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42391         would define all the S_* symbols.
42392         * modules/canonicalize (Depends-on):
42393         Depend on sys_stat, not stat-macros.
42394         * modules/chown: Likewise.
42395         * modules/euidaccess: Likewise.
42396         * modules/filemode: Likewise.
42397         * modules/file-type: Likewise.
42398         * modules/glob: Likewise.
42399         * modules/isapipe: Likewise.
42400         * modules/lchown: Likewise.
42401         * modules/lstat: Likewise.
42402         * modules/mkancesdirs: Likewise.
42403         * modules/rmdir: Likewise.
42404         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42405         * modules/modechange: Likewise.
42406         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42407         (configure.ac): Remove gl_STAT_MACROS.
42408         * modules/sys_stat (Depends-on): Remove stat-macros.
42409
42410 2006-10-27  Bruno Haible  <bruno@clisp.org>
42411
42412         * m4/signed.m4: Remove file.
42413         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42414         invocation.
42415         * modules/vasnprintf (Files): Remove m4/signed.m4.
42416
42417 2006-10-27  Bruno Haible  <bruno@clisp.org>
42418
42419         Update to GNU gettext 0.16.
42420         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42421         m4/inttypes-h.m4, m4/signed.m4.
42422         * m4/gettext.m4: Update to GNU gettext 0.16.
42423         * m4/intl.m4: New file, from GNU gettext.
42424         * m4/intldir.m4: New file, from GNU gettext.
42425         * config/srclist.txt: Update
42426
42427 2006-10-27  Eric Blake  <ebb9@byu.net>
42428
42429         * MODULES.html.sh: Document tempname.
42430         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42431         dependencies.
42432         (Files): Move lib/tempname.c...
42433         * modules/tempname: ...to this new module.
42434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42435         (gl_PREREQ_TEMPNAME): Move...
42436         * m4/tempname.m4: ...to this new file.
42437         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42438         * modules/sys_stat (Depends-on): Add stat-macros.
42439         * lib/stat_.h (includes): Pick up stat macros.
42440         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42441         if stat macros are broken.
42442         * lib/tempname.c (includes): No need to include "stat-macros.h".
42443         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42444         (direxists, __path_search) [!_LIBC]: Don't compile these in
42445         gnulib; the tmpdir module covers that.
42446         * lib/tempname.h: New file.
42447
42448 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42449
42450         * COPYING: Explain how gnulib-tool converts licence headers.
42451         Almost all wording by Eric Blake.
42452
42453 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42454
42455         * lib/mbchar.h (is_basic_table): Make read-only.
42456         * lib/mbchar.c (is_basic_table): Likewise.
42457         Reported by John Darrington.
42458
42459 2006-10-25  Bruno Haible  <bruno@clisp.org>
42460
42461         * lib/progname.h (set_program_name): Undefine before defining.
42462
42463 2006-10-25  Bruno Haible  <bruno@clisp.org>
42464
42465         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42466         false for non-gcc C++ compilers.
42467         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42468
42469 2006-10-24  Bruno Haible  <bruno@clisp.org>
42470
42471         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42472         iconv implementations like Irix iconv.
42473
42474 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42475
42476         * modules/vararrays: New file.
42477         * m4/vararrays.m4: New file, taken from diffutils.
42478         * MODULES.html.sh: New module vararrays.
42479
42480 2006-10-24  Karl Berry  <karl@gnu.org>
42481
42482         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42483         Don't call GNU Unix.
42484
42485 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42486
42487         * users.txt: Add Libtool.
42488
42489         Sync from Libtool:
42490
42491         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42492
42493         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42494         to gnulib's policy of including config.h unconditionally.
42495
42496 2006-10-24  Bruno Haible  <bruno@clisp.org>
42497
42498         * modules/wcwidth (Files): Add m4/wint_t.m4.
42499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42500         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42501
42502 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42503
42504         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42505         to pacify GCC with some -W flags enabled.  Problem reported by
42506         Bruno Haible.
42507
42508 2006-10-24  Jim Meyering  <jim@meyering.net>
42509
42510         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42511         Reported by Karl Berry.
42512
42513 2006-10-23  Bruno Haible  <bruno@clisp.org>
42514
42515         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42516
42517 2006-10-24  Bruno Haible  <bruno@clisp.org>
42518
42519         * lib/gl_list.h: Use C comment style, not C++ comment style.
42520
42521 2006-10-23  Eric Blake  <ebb9@byu.net>
42522
42523         * lib/getaddrinfo.c (includes): Add missing include.
42524
42525 2006-10-23  Bruno Haible  <bruno@clisp.org>
42526             Paul Eggert  <eggert@cs.ucla.edu>
42527
42528         Ability to rename obstack_free.
42529         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42530         obstack_free.
42531         (obstack_free): Invoke the __obstack_free macro.
42532         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42533
42534 2006-10-23  Bruno Haible  <bruno@clisp.org>
42535             Paul Eggert  <eggert@cs.ucla.edu>
42536
42537         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42538         __argc, __argv from the declaration. (They are defined as macros on
42539         mingw.)
42540
42541 2006-10-22  Bruno Haible  <bruno@clisp.org>
42542
42543         * doc/gnulib-intro.texi: New file.
42544         * doc/gnulib.texi: Include it.
42545
42546 2006-10-21  Bruno Haible  <bruno@clisp.org>
42547
42548         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42549         "Introduction", "Miscellanous Notes", "Particular Modules".
42550
42551 2006-10-21  Bruno Haible  <bruno@clisp.org>
42552
42553         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42554         Change mostlyclean-local rule to avoid sh syntax error from bash
42555         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42556
42557 2006-10-23  Jim Meyering  <jim@meyering.net>
42558
42559         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42560         in place of snprintf.
42561
42562         * modules/inttostr (Files): Add lib/uinttostr.c.
42563         * lib/uinttostr.c (inttostr): New file/function.
42564         * lib/inttostr.h (uinttostr): Declare.
42565         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42566         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42567         Add uinttostr.
42568         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42569
42570 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42571
42572         * lib/canonicalize.c (ELOOP): Define if not already defined.
42573         Problem reported by Bruno Haible in
42574         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42575
42576 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42577
42578         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42579         Problem reported by Perry Smith and Ville Laurikari.
42580
42581         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42582         uses.
42583
42584 2006-10-19  Bruno Haible  <bruno@clisp.org>
42585
42586         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42587         for mingw.
42588
42589 2006-10-19  Bruno Haible  <bruno@clisp.org>
42590
42591         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42592         Needed for mingw.
42593
42594 2006-10-19  Bruno Haible  <bruno@clisp.org>
42595
42596         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42597
42598 2006-10-19  Bruno Haible  <bruno@clisp.org>
42599
42600         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42601         it.
42602
42603 2006-10-19  Bruno Haible  <bruno@clisp.org>
42604
42605         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42606         invocation.
42607
42608 2006-10-19  Bruno Haible  <bruno@clisp.org>
42609
42610         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42611         mountlist by default.
42612
42613 2006-10-16  Bruno Haible  <bruno@clisp.org>
42614
42615         * lib/c-strstr.c: Include c-strstr.h.
42616
42617 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42618
42619         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42620         in a slash.
42621
42622 2006-10-18  Bruno Haible  <bruno@clisp.org>
42623
42624         * lib/lock.h [C++]: Wrap definitions in extern "C".
42625
42626 2006-10-18  Bruno Haible  <bruno@clisp.org>
42627
42628         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42629         gl_LIBOBJS list.
42630
42631 2006-10-18  Bruno Haible  <bruno@clisp.org>
42632
42633         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42634
42635 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42636
42637         * lib/xstrtol.h: Include gettext.h.
42638         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42639         Problem reported by Eric Blake.
42640         * modules/xstrtol (Depends-on): Add gettext-h.
42641
42642 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42643
42644         * lib/strftime.c (advance): New macro.
42645         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42646         incomplete type, so you can't add 0 to it.  Problem and patch
42647         reported by Eelco Dolstra for dietlibc.
42648
42649 2006-10-18  Jim Meyering  <jim@meyering.net>
42650
42651         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42652         type for a local, and rename it: s/up/user_proc/.
42653
42654 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42655
42656         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42657         READ_UTMP_USER_PROCESS.
42658         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42659
42660 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42661
42662         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42663         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42664
42665 2006-10-17  Eric Blake  <ebb9@byu.net>
42666
42667         * lib/sigprocmask.c (sigprocmask): Fix typo.
42668
42669         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42670
42671         * modules/clean-temp (Makefile.am): Don't add to make output...
42672         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42673         config.h.
42674
42675 2006-10-17  Bruno Haible  <bruno@clisp.org>
42676
42677         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42678         differently if DEFAULT_TEXT_DOMAIN is set.
42679
42680 2006-10-16  Bruno Haible  <bruno@clisp.org>
42681
42682         * lib/clean-temp.c: Include fwriteerror.h.
42683
42684 2006-10-16  Bruno Haible  <bruno@clisp.org>
42685
42686         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42687
42688 2006-10-16  Bruno Haible  <bruno@clisp.org>
42689
42690         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42691         * lib/sigprocmask.h: Include <sys/types.h>.
42692         (sigset_t): Use the system's definition if present.
42693
42694 2006-10-17  Eric Blake  <ebb9@byu.net>
42695
42696         * lib/xvasprintf.c (includes): Assume config.h.
42697         * lib/xasprintf.c (includes): Likewise.
42698
42699 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42700
42701         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42702         at least as wide as intmax_t.
42703
42704 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42705
42706         (Imported from Automake.)
42707         * build-aux/gnupload: Update to version 1.1 of directive file.
42708
42709 2006-10-16  Eric Blake  <ebb9@byu.net>
42710
42711         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42712         match Automake 1.10a.
42713
42714 2006-10-14  Bruno Haible  <bruno@clisp.org>
42715
42716         * modules/sigprocmask: New file.
42717         * lib/sigprocmask.h: New file.
42718         * lib/sigprocmask.c: New file.
42719         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42720         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42721         request sigprocmask.o.
42722         (gl_PREREQ_SIGPROCMASK): New macro.
42723         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42724         (Depends-on): Add sigprocmask.
42725         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42726         gt_SIGNALBLOCKING. Test for 'raise' only once.
42727         * lib/fatal-signal.c: Include sigprocmask.h.
42728         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42729         unblock_fatal_signals): Define always.
42730         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42731         sigprocmask.
42732
42733 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42734
42735         Sync from Automake.
42736         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42737         which incorrectly sets the mode of an existing destination
42738         directory.  In some cases the unpatched install-sh could do the
42739         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42740         system.  We hope this is rare in practice, but it's clearly worth
42741         fixing.  Problem reported by Alex Unleashed in
42742         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42743         Also, don't bother to check for -m bugs unless we're using -m;
42744         suggested by Stepan Kasal.
42745
42746 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42747
42748         Sync from Automake.
42749         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42750         `-c' flag, so they appear at the same position as in %FASTDEP%
42751         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42752         which ignores unknown options only after the first non-option.
42753         Bug report against M4 by Nelson H. F. Beebe.
42754
42755 2006-10-13  Jim Meyering  <jim@meyering.net>
42756
42757         Fix a bug in yesterday's change.
42758         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42759         p->fts_statp->st_dev would be used uninitialized.
42760         Ensures that we always call fts_stat on the very first entry.
42761         Miklos Szeredi reported that find -xdev stopped working.
42762
42763 2006-10-12  Bruno Haible  <bruno@clisp.org>
42764
42765         * gnulib-tool (func_get_automake_snippet): Append an automatically
42766         computed EXTRA_DIST augmentation.
42767         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42768         * modules/alloca-opt (Makefile.am): Likewise.
42769         * modules/allocsa (Makefile.am): Likewise.
42770         * modules/arcfour (Makefile.am): Likewise.
42771         * modules/arctwo (Makefile.am): Likewise.
42772         * modules/argmatch (Makefile.am): Likewise.
42773         * modules/argz (Makefile.am): Likewise.
42774         * modules/atexit (Makefile.am): Likewise.
42775         * modules/backupfile (Makefile.am): Likewise.
42776         * modules/byteswap (Makefile.am): Likewise.
42777         * modules/c-strtod (Makefile.am): Likewise.
42778         * modules/c-strtold (Makefile.am): Likewise.
42779         * modules/calloc (Makefile.am): Likewise.
42780         * modules/canon-host (Makefile.am): Likewise.
42781         * modules/canonicalize (Makefile.am): Likewise.
42782         * modules/chdir-long (Makefile.am): Likewise.
42783         * modules/chdir-safer (Makefile.am): Likewise.
42784         * modules/check-version (Makefile.am): Likewise.
42785         * modules/chown (Makefile.am): Likewise.
42786         * modules/cloexec (Makefile.am): Likewise.
42787         * modules/close-stream (Makefile.am): Likewise.
42788         * modules/closeout (Makefile.am): Likewise.
42789         * modules/crc (Makefile.am): Likewise.
42790         * modules/csharpexec (Makefile.am): Likewise.
42791         * modules/cycle-check (Makefile.am): Likewise.
42792         * modules/des (Makefile.am): Likewise.
42793         * modules/dev-ino (Makefile.am): Likewise.
42794         * modules/dirfd (Makefile.am): Likewise.
42795         * modules/dirname (Makefile.am): Likewise.
42796         * modules/dup2 (Makefile.am): Likewise.
42797         * modules/eealloc (Makefile.am): Likewise.
42798         * modules/error (Makefile.am): Likewise.
42799         * modules/euidaccess (Makefile.am): Likewise.
42800         * modules/exclude (Makefile.am): Likewise.
42801         * modules/exitfail (Makefile.am): Likewise.
42802         * modules/fcntl-safer (Makefile.am): Likewise.
42803         * modules/fcntl (Makefile.am): Likewise.
42804         * modules/file-type (Makefile.am): Likewise.
42805         * modules/fileblocks (Makefile.am): Likewise.
42806         * modules/filemode (Makefile.am): Likewise.
42807         * modules/filenamecat (Makefile.am): Likewise.
42808         * modules/fnmatch (Makefile.am): Likewise.
42809         * modules/fopen-safer (Makefile.am): Likewise.
42810         * modules/fpending (Makefile.am): Likewise.
42811         * modules/fprintftime (Makefile.am): Likewise.
42812         * modules/free (Makefile.am): Likewise.
42813         * modules/fsusage (Makefile.am): Likewise.
42814         * modules/ftruncate (Makefile.am): Likewise.
42815         * modules/fts (Makefile.am): Likewise.
42816         * modules/gc-arcfour (Makefile.am): Likewise.
42817         * modules/gc-des (Makefile.am): Likewise.
42818         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42819         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42820         * modules/gc-md4 (Makefile.am): Likewise.
42821         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42822         * modules/gc-sha1 (Makefile.am): Likewise.
42823         * modules/gc (Makefile.am): Likewise.
42824         * modules/getaddrinfo (Makefile.am): Likewise.
42825         * modules/getcwd (Makefile.am): Likewise.
42826         * modules/getdelim (Makefile.am): Likewise.
42827         * modules/getdomainname (Makefile.am): Likewise.
42828         * modules/getgroups (Makefile.am): Likewise.
42829         * modules/gethostname (Makefile.am): Likewise.
42830         * modules/gethrxtime (Makefile.am): Likewise.
42831         * modules/getline (Makefile.am): Likewise.
42832         * modules/getloadavg (Makefile.am): Likewise.
42833         * modules/getlogin_r (Makefile.am): Likewise.
42834         * modules/getndelim2 (Makefile.am): Likewise.
42835         * modules/getopt (Makefile.am): Likewise.
42836         * modules/getpagesize (Makefile.am): Likewise.
42837         * modules/getpass-gnu (Makefile.am): Likewise.
42838         * modules/getpass (Makefile.am): Likewise.
42839         * modules/getsubopt (Makefile.am): Likewise.
42840         * modules/gettime (Makefile.am): Likewise.
42841         * modules/gettimeofday (Makefile.am): Likewise.
42842         * modules/getugroups (Makefile.am): Likewise.
42843         * modules/getusershell (Makefile.am): Likewise.
42844         * modules/glob (Makefile.am): Likewise.
42845         * modules/group-member (Makefile.am): Likewise.
42846         * modules/hard-locale (Makefile.am): Likewise.
42847         * modules/hash (Makefile.am): Likewise.
42848         * modules/hmac-md5 (Makefile.am): Likewise.
42849         * modules/hmac-sha1 (Makefile.am): Likewise.
42850         * modules/human (Makefile.am): Likewise.
42851         * modules/idcache (Makefile.am): Likewise.
42852         * modules/imaxabs (Makefile.am): Likewise.
42853         * modules/imaxdiv (Makefile.am): Likewise.
42854         * modules/inet_ntop (Makefile.am): Likewise.
42855         * modules/inet_pton (Makefile.am): Likewise.
42856         * modules/intprops (Makefile.am): Likewise.
42857         * modules/inttostr (Makefile.am): Likewise.
42858         * modules/inttypes (Makefile.am): Likewise.
42859         * modules/isapipe (Makefile.am): Likewise.
42860         * modules/javaversion (Makefile.am): Likewise.
42861         * modules/lchmod (Makefile.am): Likewise.
42862         * modules/lchown (Makefile.am): Likewise.
42863         * modules/localcharset (Makefile.am): Likewise.
42864         * modules/long-options (Makefile.am): Likewise.
42865         * modules/lstat (Makefile.am): Likewise.
42866         * modules/malloc (Makefile.am): Likewise.
42867         * modules/mathl (Makefile.am): Likewise.
42868         * modules/mbchar (Makefile.am): Likewise.
42869         * modules/md2 (Makefile.am): Likewise.
42870         * modules/md4 (Makefile.am): Likewise.
42871         * modules/md5 (Makefile.am): Likewise.
42872         * modules/memcasecmp (Makefile.am): Likewise.
42873         * modules/memchr (Makefile.am): Likewise.
42874         * modules/memcmp (Makefile.am): Likewise.
42875         * modules/memcoll (Makefile.am): Likewise.
42876         * modules/memcpy (Makefile.am): Likewise.
42877         * modules/memmem (Makefile.am): Likewise.
42878         * modules/memmove (Makefile.am): Likewise.
42879         * modules/mempcpy (Makefile.am): Likewise.
42880         * modules/memrchr (Makefile.am): Likewise.
42881         * modules/memset (Makefile.am): Likewise.
42882         * modules/memxor (Makefile.am): Likewise.
42883         * modules/mkancesdirs (Makefile.am): Likewise.
42884         * modules/mkdir-p (Makefile.am): Likewise.
42885         * modules/mkdir (Makefile.am): Likewise.
42886         * modules/mkdtemp (Makefile.am): Likewise.
42887         * modules/mkstemp (Makefile.am): Likewise.
42888         * modules/mktime (Makefile.am): Likewise.
42889         * modules/modechange (Makefile.am): Likewise.
42890         * modules/mountlist (Makefile.am): Likewise.
42891         * modules/nanosleep (Makefile.am): Likewise.
42892         * modules/obstack (Makefile.am): Likewise.
42893         * modules/openat (Makefile.am): Likewise.
42894         * modules/pagealign_alloc (Makefile.am): Likewise.
42895         * modules/pathmax (Makefile.am): Likewise.
42896         * modules/physmem (Makefile.am): Likewise.
42897         * modules/poll (Makefile.am): Likewise.
42898         * modules/posixtm (Makefile.am): Likewise.
42899         * modules/posixver (Makefile.am): Likewise.
42900         * modules/putenv (Makefile.am): Likewise.
42901         * modules/quote (Makefile.am): Likewise.
42902         * modules/quotearg (Makefile.am): Likewise.
42903         * modules/raise (Makefile.am): Likewise.
42904         * modules/read-file (Makefile.am): Likewise.
42905         * modules/readline (Makefile.am): Likewise.
42906         * modules/readlink (Makefile.am): Likewise.
42907         * modules/readtokens (Makefile.am): Likewise.
42908         * modules/readutmp (Makefile.am): Likewise.
42909         * modules/realloc (Makefile.am): Likewise.
42910         * modules/regex (Makefile.am): Likewise.
42911         * modules/rename-dest-slash (Makefile.am): Likewise.
42912         * modules/rename (Makefile.am): Likewise.
42913         * modules/rijndael (Makefile.am): Likewise.
42914         * modules/rmdir (Makefile.am): Likewise.
42915         * modules/rpmatch (Makefile.am): Likewise.
42916         * modules/safe-read (Makefile.am): Likewise.
42917         * modules/safe-write (Makefile.am): Likewise.
42918         * modules/same-inode (Makefile.am): Likewise.
42919         * modules/same (Makefile.am): Likewise.
42920         * modules/save-cwd (Makefile.am): Likewise.
42921         * modules/savedir (Makefile.am): Likewise.
42922         * modules/setenv (Makefile.am): Likewise.
42923         * modules/settime (Makefile.am): Likewise.
42924         * modules/sha1 (Makefile.am): Likewise.
42925         * modules/sig2str (Makefile.am): Likewise.
42926         * modules/snprintf (Makefile.am): Likewise.
42927         * modules/stat-macros (Makefile.am): Likewise.
42928         * modules/stat-time (Makefile.am): Likewise.
42929         * modules/stdbool (Makefile.am): Likewise.
42930         * modules/stdint (Makefile.am): Likewise.
42931         * modules/stdlib-safer (Makefile.am): Likewise.
42932         * modules/stpcpy (Makefile.am): Likewise.
42933         * modules/stpncpy (Makefile.am): Likewise.
42934         * modules/strcase (Makefile.am): Likewise.
42935         * modules/strcasestr (Makefile.am): Likewise.
42936         * modules/strchrnul (Makefile.am): Likewise.
42937         * modules/strcspn (Makefile.am): Likewise.
42938         * modules/strdup (Makefile.am): Likewise.
42939         * modules/strerror (Makefile.am): Likewise.
42940         * modules/strftime (Makefile.am): Likewise.
42941         * modules/strndup (Makefile.am): Likewise.
42942         * modules/strnlen (Makefile.am): Likewise.
42943         * modules/strpbrk (Makefile.am): Likewise.
42944         * modules/strsep (Makefile.am): Likewise.
42945         * modules/strstr (Makefile.am): Likewise.
42946         * modules/strtod (Makefile.am): Likewise.
42947         * modules/strtoimax (Makefile.am): Likewise.
42948         * modules/strtok_r (Makefile.am): Likewise.
42949         * modules/strtol (Makefile.am): Likewise.
42950         * modules/strtoll (Makefile.am): Likewise.
42951         * modules/strtoul (Makefile.am): Likewise.
42952         * modules/strtoull (Makefile.am): Likewise.
42953         * modules/strtoumax (Makefile.am): Likewise.
42954         * modules/strverscmp (Makefile.am): Likewise.
42955         * modules/sys_socket (Makefile.am): Likewise.
42956         * modules/sys_stat (Makefile.am): Likewise.
42957         * modules/sysexits (Makefile.am): Likewise.
42958         * modules/time_r (Makefile.am): Likewise.
42959         * modules/timegm (Makefile.am): Likewise.
42960         * modules/timespec (Makefile.am): Likewise.
42961         * modules/tmpfile-safer (Makefile.am): Likewise.
42962         * modules/trim (Makefile.am): Likewise.
42963         * modules/unistd-safer (Makefile.am): Likewise.
42964         * modules/unlinkdir (Makefile.am): Likewise.
42965         * modules/unlocked-io (Makefile.am): Likewise.
42966         * modules/userspec (Makefile.am): Likewise.
42967         * modules/utime (Makefile.am): Likewise.
42968         * modules/utimecmp (Makefile.am): Likewise.
42969         * modules/utimens (Makefile.am): Likewise.
42970         * modules/vasnprintf (Makefile.am): Likewise.
42971         * modules/vasprintf (Makefile.am): Likewise.
42972         * modules/vsnprintf (Makefile.am): Likewise.
42973         * modules/xalloc (Makefile.am): Likewise.
42974         * modules/xgetcwd (Makefile.am): Likewise.
42975         * modules/xnanosleep (Makefile.am): Likewise.
42976         * modules/xreadlink (Makefile.am): Likewise.
42977         * modules/xstrtod (Makefile.am): Likewise.
42978         * modules/xstrtol (Makefile.am): Likewise.
42979         * modules/xstrtold (Makefile.am): Likewise.
42980         * modules/yesno (Makefile.am): Likewise.
42981         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42982
42983 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42984
42985         * modules/error (Makefile.am): Distribute files through
42986         EXTRA_DIST, not lib_SOURCES.
42987
42988 2006-10-12  Eric Blake  <ebb9@byu.net>
42989
42990         * modules/error (Makefile.am): Distribute files in /lib.
42991         * modules/obstack (Makefile.am): Likewise.
42992
42993 2006-10-12  Bruno Haible  <bruno@clisp.org>
42994
42995         * modules/acl (Makefile.am): Distribute all files in lib/ through
42996         EXTRA_DIST.
42997         * modules/arcfour (Makefile.am): Likewise.
42998         * modules/arctwo (Makefile.am): Likewise.
42999         * modules/argmatch (Makefile.am): Likewise.
43000         * modules/argz (Makefile.am): Likewise.
43001         * modules/atexit (Makefile.am): Likewise.
43002         * modules/backupfile (Makefile.am): Likewise.
43003         * modules/c-strtod (Makefile.am): Likewise.
43004         * modules/c-strtold (Makefile.am): Likewise.
43005         * modules/calloc (Makefile.am): Likewise.
43006         * modules/canon-host (Makefile.am): Likewise.
43007         * modules/canonicalize (Makefile.am): Likewise.
43008         * modules/chdir-long (Makefile.am): Likewise.
43009         * modules/chdir-safer (Makefile.am): Likewise.
43010         * modules/check-version (Makefile.am): Likewise.
43011         * modules/chown (Makefile.am): Likewise.
43012         * modules/cloexec (Makefile.am): Likewise.
43013         * modules/close-stream (Makefile.am): Likewise.
43014         * modules/closeout (Makefile.am): Likewise.
43015         * modules/crc (Makefile.am): Likewise.
43016         * modules/cycle-check (Makefile.am): Likewise.
43017         * modules/des (Makefile.am): Likewise.
43018         * modules/dirfd (Makefile.am): Likewise.
43019         * modules/dirname (Makefile.am): Likewise.
43020         * modules/dup2 (Makefile.am): Likewise.
43021         * modules/euidaccess (Makefile.am): Likewise.
43022         * modules/exclude (Makefile.am): Likewise.
43023         * modules/exitfail (Makefile.am): Likewise.
43024         * modules/fcntl-safer (Makefile.am): Likewise.
43025         * modules/file-type (Makefile.am): Likewise.
43026         * modules/fileblocks (Makefile.am): Likewise.
43027         * modules/filemode (Makefile.am): Likewise.
43028         * modules/filenamecat (Makefile.am): Likewise.
43029         * modules/fnmatch (Makefile.am): Likewise.
43030         * modules/fopen-safer (Makefile.am): Likewise.
43031         * modules/fpending (Makefile.am): Likewise.
43032         * modules/fprintftime (Makefile.am): Likewise.
43033         * modules/free (Makefile.am): Likewise.
43034         * modules/fsusage (Makefile.am): Likewise.
43035         * modules/ftruncate (Makefile.am): Likewise.
43036         * modules/fts (Makefile.am): Likewise.
43037         * modules/gc (Makefile.am): Likewise.
43038         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
43039         * modules/getaddrinfo (Makefile.am): Likewise.
43040         * modules/getcwd (Makefile.am): Likewise.
43041         * modules/getdelim (Makefile.am): Likewise.
43042         * modules/getdomainname (Makefile.am): Likewise.
43043         * modules/getgroups (Makefile.am): Likewise.
43044         * modules/gethostname (Makefile.am): Likewise.
43045         * modules/gethrxtime (Makefile.am): Likewise.
43046         * modules/getline (Makefile.am): Likewise.
43047         * modules/getloadavg (Makefile.am): Likewise.
43048         * modules/getlogin_r (Makefile.am): Likewise.
43049         * modules/getopt (Makefile.am): Likewise.
43050         * modules/getpass (Makefile.am): Likewise.
43051         * modules/getpass-gnu (Makefile.am): Likewise.
43052         * modules/getsubopt (Makefile.am): Likewise.
43053         * modules/gettime (Makefile.am): Likewise.
43054         * modules/gettimeofday (Makefile.am): Likewise.
43055         * modules/getugroups (Makefile.am): Likewise.
43056         * modules/getusershell (Makefile.am): Likewise.
43057         * modules/glob (Makefile.am): Likewise.
43058         * modules/group-member (Makefile.am): Likewise.
43059         * modules/hard-locale (Makefile.am): Likewise.
43060         * modules/hash (Makefile.am): Likewise.
43061         * modules/hmac-md5 (Makefile.am): Likewise.
43062         * modules/hmac-sha1 (Makefile.am): Likewise.
43063         * modules/human (Makefile.am): Likewise.
43064         * modules/idcache (Makefile.am): Likewise.
43065         * modules/imaxabs (Makefile.am): Likewise.
43066         * modules/imaxdiv (Makefile.am): Likewise.
43067         * modules/inet_ntop (Makefile.am): Likewise.
43068         * modules/inet_pton (Makefile.am): Likewise.
43069         * modules/inttostr (Makefile.am): Likewise.
43070         * modules/isapipe (Makefile.am): Likewise.
43071         * modules/lchown (Makefile.am): Likewise.
43072         * modules/long-options (Makefile.am): Likewise.
43073         * modules/lstat (Makefile.am): Likewise.
43074         * modules/malloc (Makefile.am): Likewise.
43075         * modules/mathl (Makefile.am): Likewise.
43076         * modules/mbchar (Makefile.am): Likewise.
43077         * modules/md2 (Makefile.am): Likewise.
43078         * modules/md4 (Makefile.am): Likewise.
43079         * modules/md5 (Makefile.am): Likewise.
43080         * modules/memcasecmp (Makefile.am): Likewise.
43081         * modules/memchr (Makefile.am): Likewise.
43082         * modules/memcmp (Makefile.am): Likewise.
43083         * modules/memcoll (Makefile.am): Likewise.
43084         * modules/memcpy (Makefile.am): Likewise.
43085         * modules/memmem (Makefile.am): Likewise.
43086         * modules/memmove (Makefile.am): Likewise.
43087         * modules/mempcpy (Makefile.am): Likewise.
43088         * modules/memrchr (Makefile.am): Likewise.
43089         * modules/memset (Makefile.am): Likewise.
43090         * modules/memxor (Makefile.am): Likewise.
43091         * modules/mkancesdirs (Makefile.am): Likewise.
43092         * modules/mkdir (Makefile.am): Likewise.
43093         * modules/mkdir-p (Makefile.am): Likewise.
43094         * modules/mkdtemp (Makefile.am): Likewise.
43095         * modules/mkstemp (Makefile.am): Likewise.
43096         * modules/mktime (Makefile.am): Likewise.
43097         * modules/modechange (Makefile.am): Likewise.
43098         * modules/mountlist (Makefile.am): Likewise.
43099         * modules/nanosleep (Makefile.am): Likewise.
43100         * modules/openat (Makefile.am): Likewise.
43101         * modules/pagealign_alloc (Makefile.am): Likewise.
43102         * modules/physmem (Makefile.am): Likewise.
43103         * modules/poll (Makefile.am): Likewise.
43104         * modules/posixtm (Makefile.am): Likewise.
43105         * modules/posixver (Makefile.am): Likewise.
43106         * modules/putenv (Makefile.am): Likewise.
43107         * modules/quote (Makefile.am): Likewise.
43108         * modules/quotearg (Makefile.am): Likewise.
43109         * modules/raise (Makefile.am): Likewise.
43110         * modules/read-file (Makefile.am): Likewise.
43111         * modules/readline (Makefile.am): Likewise.
43112         * modules/readlink (Makefile.am): Likewise.
43113         * modules/readtokens (Makefile.am): Likewise.
43114         * modules/readutmp (Makefile.am): Likewise.
43115         * modules/realloc (Makefile.am): Likewise.
43116         * modules/regex (Makefile.am): Likewise.
43117         * modules/rename (Makefile.am): Likewise.
43118         * modules/rename-dest-slash (Makefile.am): Likewise.
43119         * modules/rijndael (Makefile.am): Likewise.
43120         * modules/rmdir (Makefile.am): Likewise.
43121         * modules/rpmatch (Makefile.am): Likewise.
43122         * modules/safe-read (Makefile.am): Likewise.
43123         * modules/safe-write (Makefile.am): Likewise.
43124         * modules/same (Makefile.am): Likewise.
43125         * modules/save-cwd (Makefile.am): Likewise.
43126         * modules/savedir (Makefile.am): Likewise.
43127         * modules/setenv (Makefile.am): Likewise.
43128         * modules/settime (Makefile.am): Likewise.
43129         * modules/sha1 (Makefile.am): Likewise.
43130         * modules/sig2str (Makefile.am): Likewise.
43131         * modules/snprintf (Makefile.am): Likewise.
43132         * modules/stdlib-safer (Makefile.am): Likewise.
43133         * modules/stpcpy (Makefile.am): Likewise.
43134         * modules/stpncpy (Makefile.am): Likewise.
43135         * modules/strcase (Makefile.am): Likewise.
43136         * modules/strcasestr (Makefile.am): Likewise.
43137         * modules/strchrnul (Makefile.am): Likewise.
43138         * modules/strcspn (Makefile.am): Likewise.
43139         * modules/strdup (Makefile.am): Likewise.
43140         * modules/strerror (Makefile.am): Likewise.
43141         * modules/strftime (Makefile.am): Likewise.
43142         * modules/strndup (Makefile.am): Likewise.
43143         * modules/strnlen (Makefile.am): Likewise.
43144         * modules/strpbrk (Makefile.am): Likewise.
43145         * modules/strsep (Makefile.am): Likewise.
43146         * modules/strstr (Makefile.am): Likewise.
43147         * modules/strtod (Makefile.am): Likewise.
43148         * modules/strtoimax (Makefile.am): Likewise.
43149         * modules/strtok_r (Makefile.am): Likewise.
43150         * modules/strtol (Makefile.am): Likewise.
43151         * modules/strtoll (Makefile.am): Likewise.
43152         * modules/strtoul (Makefile.am): Likewise.
43153         * modules/strtoull (Makefile.am): Likewise.
43154         * modules/strtoumax (Makefile.am): Likewise.
43155         * modules/strverscmp (Makefile.am): Likewise.
43156         * modules/time_r (Makefile.am): Likewise.
43157         * modules/timegm (Makefile.am): Likewise.
43158         * modules/tmpfile-safer (Makefile.am): Likewise.
43159         * modules/unistd-safer (Makefile.am): Likewise.
43160         * modules/unlinkdir (Makefile.am): Likewise.
43161         * modules/userspec (Makefile.am): Likewise.
43162         * modules/utime (Makefile.am): Likewise.
43163         * modules/utimecmp (Makefile.am): Likewise.
43164         * modules/utimens (Makefile.am): Likewise.
43165         * modules/vasnprintf (Makefile.am): Likewise.
43166         * modules/vasprintf (Makefile.am): Likewise.
43167         * modules/vsnprintf (Makefile.am): Likewise.
43168         * modules/xalloc (Makefile.am): Likewise.
43169         * modules/xgetcwd (Makefile.am): Likewise.
43170         * modules/xnanosleep (Makefile.am): Likewise.
43171         * modules/xreadlink (Makefile.am): Likewise.
43172         * modules/xstrtod (Makefile.am): Likewise.
43173         * modules/xstrtol (Makefile.am): Likewise.
43174         * modules/xstrtold (Makefile.am): Likewise.
43175         * modules/yesno (Makefile.am): Likewise.
43176
43177 2006-10-12  Jim Meyering  <jim@meyering.net>
43178
43179         * m4/getloadavg.m4: Revert the change below.
43180
43181         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
43182         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
43183         fail with a symlink, which is what coreutils' ./bootstrap now
43184         creates by default.
43185
43186 2006-10-12  Bruno Haible  <bruno@clisp.org>
43187
43188         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
43189         mingw.
43190         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
43191         MSVC and mingw explicitly.
43192
43193 2006-10-11  Simon Josefsson  <jas@extundo.com>
43194             Bruno Haible  <bruno@clisp.org>
43195
43196         Add support for multiple gnulib-tool invocations in the scope of a
43197         single configure.ac file.
43198         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
43199         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
43200         with the same contents as the _LIBADD variable.
43201         (func_emit_initmacro_start, func_emit_initmacro_end,
43202         func_emit_initmacro_done): New functions.
43203         (func_import, func_create_testdir): Invoke them. Allow the identifiers
43204         gl_LIBOBJS and gl_LTLIBOBJS.
43205
43206 2006-10-11  Bruno Haible  <bruno@clisp.org>
43207
43208         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
43209         (func_create_testdir): Don't create po/Makefile.am, don't invoke
43210         autoreconf. Instead, invoke autopoint explicitly but move back the
43211         *.m4 files from gnulib.
43212
43213 2006-10-11  Bruno Haible  <bruno@clisp.org>
43214
43215         * gnulib-tool (func_usage): Make module names after --create-testdir
43216         optional.
43217         (func_create_testdir): If no module was specified, use nearly all
43218         modules.
43219
43220 2006-10-12  Jim Meyering  <jim@meyering.net>
43221
43222         Big performance improvement for fts-based tools that use FTS_NOSTAT.
43223         Avoid spurious inode-mismatch problems on non-POSIX file systems.
43224         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
43225         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
43226         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
43227         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
43228         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
43229         (fts_set_stat_required): New function.
43230         (fts_open): Defer the calls to fts_stat, if possible or requested.
43231         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
43232         into fts_stat itself.
43233         (fts_read): Perform any required (deferred) fts_stat call.
43234         (fts_build): Likewise, for the directory we're about to open and read.
43235         In the readdir loop, carefully decide whether each entry will require
43236         an eventual call to fts_stat, using dirent.d_type info if available.
43237         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
43238         a command line argument into this function.  Update all callers.
43239         Map a return value of FTS_DOT to FTS_D for a command line argument.
43240         * modules/fts (Depends-on): Add d-type.  Alphabetize.
43241         Thanks to Miklos Szeredi for his tenacity and for the initial
43242         bug report about "find" failing on a FUSE-based file system.
43243
43244         * lib/fts.c (fts_open): Use consistent indentation.
43245
43246 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43247
43248         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
43249         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
43250         reported by Jim Meyering.  All uses of cache variables renamed
43251         to match Autoconf's.
43252         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
43253         the other one.
43254
43255         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43256         Fix misspelling in diagnostic.
43257
43258 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43259
43260         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
43261         defined.  Problem reported by Matthew Woehlke.
43262
43263         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
43264         Add support for Tandem NonStop R series.
43265         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
43266         Use new macro.
43267
43268         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
43269         (has_trailing_slash): Omit size arg; all callers changed.
43270         Omit 'inline', since it doesn't help performance and we'd
43271         need to configure it.
43272         Don't count //, ///, etc. as having a trailing slash.
43273         As a side effect, this removes a C99ism reported by Matthew Woehlke.
43274         (rpl_rename_dest_slash): On failure, use rename's errno rather
43275         than (in some cases) an incorrect or junk errno.
43276         Simplify code by removing need to compute length; this does
43277         cause it to make two passes instead of one over the file name,
43278         but it's worth it.
43279
43280         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
43281         change, since Autoconf's version may no longer be appropriate now
43282         that we are using CVS Autoconf's version.  Add support for Tandem.
43283
43284 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43285             Bruno Haible  <bruno@clisp.org>
43286
43287         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
43288         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
43289         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
43290         gl_AC_TYPE_LONG_LONG.
43291
43292         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
43293         instead of HAVE_LONG_LONG.
43294         * lib/printf-args.c (printf_fetchargs): Likewise.
43295         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43296         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43297         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
43298         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
43299         gl_AC_TYPE_LONG_LONG.
43300
43301 2006-10-11  Bruno Haible  <bruno@clisp.org>
43302
43303         * m4/longlong.m4: Add comments.
43304         * m4/ulonglong.m4: Likewise.
43305
43306 2006-10-10  Bruno Haible  <bruno@clisp.org>
43307
43308         Make it possible to #define stpcpy, strdup to aliases.
43309         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
43310         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
43311
43312 2006-10-10  Bruno Haible  <bruno@clisp.org>
43313
43314         Make it possible to #define gcd to an alias.
43315         * lib/gcd.c: Include config.h.
43316
43317 2006-10-10  Bruno Haible  <bruno@clisp.org>
43318
43319         Make it possible to #define c_isascii to an alias.
43320         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
43321         defined. Undefine the macros before defining them, to avoid gcc
43322         warnings.
43323         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
43324         define NO_C_CTYPE_MACROS early.
43325
43326 2006-10-10  Bruno Haible  <bruno@clisp.org>
43327
43328         Make it possible to #define set_program_name to an alias.
43329         * lib/progname.c: Don't undefine set_program_name; instead, undefine
43330         ENABLE_RELOCATABLE early.
43331
43332 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43333
43334         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43335         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43336         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43337         More generally, don't assume that 64-bit signed int is available
43338         if unsigned int is, and vice versa.
43339         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43340         unsigned symbols, not on their signed counterparts.
43341         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43342         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43343         (UINT64_C, UINTMAX_C):
43344         Likewise.
43345         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43346         unsigned counterparts.
43347         (Have_long_long, Unsigned): New macros.
43348         (Int): Renamed from INT.
43349         (strtoimax): Use the new macros.
43350         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43351         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43352         * modules/inttypes (inttypes.h): Substitute
43353         HAVE_UNSIGNED_LONG_LONG_INT.
43354         * modules/stdint (stdint.h): Likewise.
43355         (Files): Add m4/ulonglong.m4.
43356
43357 2006-10-10  Bruno Haible  <bruno@clisp.org>
43358
43359         Fix a gcc -Wshadow warning.
43360         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43361         to 'bucket'.
43362         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43363         gl_linked_indexof_from_to): Likewise.
43364         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43365         Likewise.
43366         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43367         Likewise.
43368         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43369         Reported by Eric Blake.
43370
43371 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43372
43373         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43374         for NetBSD.  Problem reported by Bruno Haible.
43375
43376 2006-10-09  Jim Meyering  <jim@meyering.net>
43377
43378         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43379         Patch from Bruno Haible.
43380
43381 2006-10-09  Jim Meyering  <jim@meyering.net>
43382
43383         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43384         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43385         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43386
43387 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43388
43389         Don't include <config.h> twice; this doesn't work in some cases,
43390         e.g., when config.h has "#define intmax_t long long int" and
43391         we include <config.h>, <inttypes.h>, <config.h> in that order.
43392         Problem reported by Matthew Woehlke in:
43393         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43394         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43395         * lib/fts-cycle.c: Don't include config.h.
43396         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43397         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43398         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43399         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43400         inttypes.h.
43401         * lib/xstrtoumax.c: Likewise.
43402         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43403         __strtol and the like, so that this module is more like its siblings.
43404         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43405         Remove; no longer needed now that we assume gnulib inttypes.h.
43406
43407 2006-10-08  Bruno Haible  <bruno@clisp.org>
43408
43409         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43410         option.
43411
43412 2006-10-07  Jim Meyering  <jim@meyering.net>
43413
43414         * modules/inttypes (inttypes.h): Revert what seems to have been
43415         an inadvertent part of today's change: use "|", not "/" in the
43416         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43417
43418 2006-10-07  Bruno Haible  <bruno@clisp.org>
43419
43420         * modules/sublist: New file.
43421
43422 2006-10-07  Bruno Haible  <bruno@clisp.org>
43423
43424         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43425         * modules/argz (argz.h): Likewise.
43426         * modules/arpa_inet (arpa/inet.h): Likewise.
43427         * modules/byteswap (byteswap.h): Likewise.
43428         * modules/configmake (configmake.h): Likewise.
43429         * modules/fcntl (fcntl.h): Likewise.
43430         * modules/fnmatch (fnmatch.h): Likewise.
43431         * modules/getopt (getopt.h): Likewise.
43432         * modules/glob (glob.h): Likewise.
43433         * modules/inttypes (inttypes.h): Likewise.
43434         * modules/netinet_in (netinet/in.h): Likewise.
43435         * modules/poll (poll.h): Likewise.
43436         * modules/stdbool (stdbool.h): Likewise.
43437         * modules/stdint (stdint.h): Likewise.
43438         * modules/sys_select (sys/select.h): Likewise.
43439         * modules/sys_socket (sys/socket.h): Likewise.
43440         * modules/sys_stat (sys/stat.h): Likewise.
43441         * modules/sysexits (sysexits.h): Likewise.
43442         * modules/unistd (unistd.h): Likewise.
43443         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43444         Add a "DO NOT EDIT" comment to the generated file.
43445         (func_import): Likewise for gnulib-comp.m4.
43446
43447 2006-10-07  Bruno Haible  <bruno@clisp.org>
43448
43449         * lib/gl_sublist.h: New file.
43450         * lib/gl_sublist.c: New file.
43451
43452 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43453
43454         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43455         name (relative to the original working directory) and the file
43456         name component (relative to the temporary working directory).  All
43457         callers changed.
43458         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43459         * lib/mkdir-p.c (make_dir_parents): Likewise.
43460         * lib/mkdir-p.h (make_dir_parents): Likewise.
43461
43462 2006-10-06  Eric Blake  <ebb9@byu.net>
43463
43464         Define several macros for use by the clean-temp module.
43465         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43466         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43467         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43468
43469         * lib/clean-temp.h (close_stream_temp): New declaration.
43470         * lib/clean-temp.c (includes): Pull in headers according to what
43471         other modules are in use.
43472         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43473
43474 2006-10-06  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43477         instead of fopen, fwriteerror.
43478
43479 2006-10-06  Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43482         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43483         int.
43484         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43485         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43486         Return an error indicator.
43487         Suggested by Eric Blake.
43488
43489 2006-10-06  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43492         Reported by Eric Blake.
43493
43494 2006-10-06  Bruno Haible  <bruno@clisp.org>
43495
43496         * modules/closeout (Description): Mention stderr too.
43497
43498 2006-10-06  Bruno Haible  <bruno@clisp.org>
43499         and Paul Eggert  <eggert@cs.ucla.edu>
43500
43501         * lib/closeout.c (close_stdout): Also close stderr.
43502         * lib/closeout.h: Update comment.
43503
43504 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43505
43506         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43507         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43508         * lib/dirchownmod.c: Include lchown.h.
43509         * lib/lchown.c: Don't include files that lchown.h now includes.
43510         Don't declare chown, since lchown.h now does that.
43511         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43512         (lchown): Define to rpl_chown if lchown is declared but
43513         does not exist.  Declare using a prototype if lchown is not
43514         declared.  Add a copyright notice.
43515         * lib/mkstemp.h: Include <unistd.h>.
43516         * lib/openat.c: Include lchown.h.
43517
43518         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43519         we now test for that separately.
43520         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43521         rather than O_NOFOLLOW, when testing whether it's possible to
43522         avoid a race condition reliably.
43523         * lib/savewd.c (savewd_chdir): Likewise.
43524
43525         Remove macros that are no longer needed now that stdint.h is
43526         reliable.
43527         * lib/fsusage.c (UINTMAX_MAX): Remove.
43528         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43529         * lib/utimecmp.c (SIZE_MAX): Remove.
43530
43531         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43532
43533         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43534         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43535         O_NOATIME works.
43536
43537 2006-10-05  Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/gl_list.h (gl_sortedlist_search_from_to,
43540         gl_sortedlist_indexof_from_to): New declarations.
43541         (gl_list_implementation): New fields sortedlist_search_from_to,
43542         sortedlist_indexof_from_to.
43543         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43544         inline functions.
43545         * lib/gl_list.c (gl_sortedlist_search_from_to,
43546         gl_sortedlist_indexof_from_to): New functions.
43547         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43548         function.
43549         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43550         (gl_array_sortedlist_search_from_to): New function.
43551         (gl_array_list_implementation): Update.
43552         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43553         function.
43554         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43555         (gl_carray_sortedlist_search_from_to): New function.
43556         (gl_carray_list_implementation): Update.
43557         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43558         gl_linked_sortedlist_indexof_from_to): New functions.
43559         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43560         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43561         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43562         gl_tree_sortedlist_indexof_from_to): New functions.
43563         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43564         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43565         Update.
43566         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43567         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43568         Update.
43569
43570 2006-10-05  Bruno Haible  <bruno@clisp.org>
43571
43572         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43573         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43574         (struct gl_list_implementation): Add fields search_from_to,
43575         indexof_from_to. Remove fields search, indexof.
43576         (gl_list_search): Use the search_from_to method.
43577         (gl_list_search_from, gl_list_search_from_to): New functions.
43578         (gl_list_indexof): Use the indexof_from_to method.
43579         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43580         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43581         (gl_list_search_from, gl_list_search_from_to): New functions.
43582         (gl_list_indexof): Use the indexof_from_to method.
43583         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43584         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43585         gl_array_indexof. Add start_index, end_index arguments.
43586         (gl_array_search_from_to): Renamed from gl_array_search. Add
43587         start_index, end_index arguments.
43588         (gl_array_remove, gl_array_list_implementation): Update.
43589         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43590         gl_carray_indexof. Add start_index, end_index arguments.
43591         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43592         start_index, end_index arguments.
43593         (gl_carray_remove, gl_carray_list_implementation): Update.
43594         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43595         gl_linked_search. Add start_index, end_index arguments.
43596         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43597         start_index, end_index arguments.
43598         (gl_linked_remove): Update.
43599         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43600         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43601         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43602         field to 'size_t'.
43603         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43604         gl_tree_search. Add start_index, end_index arguments.
43605         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43606         start_index, end_index arguments.
43607         (gl_tree_remove): Update.
43608         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43609         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43610         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43611         function.
43612         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43613         gl_tree_search. Add start_index, end_index arguments.
43614         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43615         start_index, end_index arguments.
43616         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43617         Update.
43618         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43619
43620 2006-10-05  Bruno Haible  <bruno@clisp.org>
43621
43622         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43623
43624         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43625         fwriteerror_temp): New declarations.
43626         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43627         (descriptors): New variable.
43628         (cleanup): First, close the descriptors.
43629         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43630         fclose_temp, fwriteerror_temp): New functions.
43631
43632 2006-10-04  Jim Meyering  <jim@meyering.net>
43633
43634         * lib/fts.c (fts_open): Tiny comment change.
43635
43636 2006-10-04  Bruno Haible  <bruno@clisp.org>
43637
43638         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43639         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43640         gl_LOCK_BODY.
43641         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43642         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43643         gl_LOCK_EARLY_BODY.
43644         (gl_LOCK): Require gl_LOCK_BODY.
43645
43646 2006-10-04  Bruno Haible  <bruno@clisp.org>
43647
43648         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43649         (gl_oset_search_atleast): New declaration.
43650         (struct gl_oset_implementation): Add field 'search_atleast'.
43651         (gl_oset_search_atleast): New inline function.
43652         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43653         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43654         (gl_array_oset_implementation): Update.
43655         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43656         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43657         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43658
43659 2006-10-04  Bruno Haible  <bruno@clisp.org>
43660
43661         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43662
43663 2006-10-03  Bruno Haible  <bruno@clisp.org>
43664
43665         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43666         from gl_avltreehash_list_implementation.
43667
43668 2006-10-03  Bruno Haible  <bruno@clisp.org>
43669
43670         * lib/gl_oset.c (gl_oset_add): Fix return type.
43671
43672 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43673
43674         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43675
43676 2006-10-02  Eric Blake  <ebb9@byu.net>
43677
43678         * modules/strnlen (Depends-on): Add extensions.
43679
43680 2006-10-02  Eric Blake  <ebb9@byu.net>
43681
43682         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43683         definition in 2.60+.
43684
43685 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43686
43687         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43688         checks.
43689
43690 2006-10-02  Bruno Haible  <bruno@clisp.org>
43691
43692         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43693         to the AUTOMAKE_OPTIONS.
43694         Reported by Jim Meyering.
43695
43696 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43697
43698         Work around bug in Solaris 10 /proc file system:
43699         /proc/self/fd/NNN/.. isn't the parent directory of
43700         the directory whose file descriptor is NNN.  This needs to
43701         be worked around at run time, not compile time, since a
43702         program might be built on Solaris 8, where things work, and
43703         run on Solaris 10.
43704         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43705         to use the following interface instead:
43706         (OPENAT_BUFFER_SIZE): New macro.
43707         (openat_proc_name): New function.
43708         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43709         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43710         Likewise.
43711         * lib/openat-proc.c: New file.
43712         * modules/openat (Files): Add lib/openat-proc.c.
43713         (Depends-on): Add same-inode, stdbool.
43714         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43715
43716 2006-09-29  Bruno Haible  <bruno@clisp.org>
43717
43718         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43719         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43720         argument. Set stdout_closed before testing for ferror, not after.
43721         (fwriteerror, fwriteerror_no_ebadf): New functions.
43722
43723 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43724
43725         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43726
43727 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43728
43729         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43730         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43731
43732 2006-09-28  Jim Meyering  <jim@meyering.net>
43733
43734         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43735         Include <unistd.h>.
43736
43737 2006-09-28  Bruno Haible  <bruno@clisp.org>
43738
43739         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43740         * modules/linkedhash-list (Depends-on): Likewise.
43741         * modules/rbtreehash-list (Depends-on): Likewise.
43742
43743 2006-09-28  Bruno Haible  <bruno@clisp.org>
43744
43745         * lib/strndup.h: Simplify the redefinition of strndup.
43746         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43747         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43748
43749 2006-09-28  Bruno Haible  <bruno@clisp.org>
43750
43751         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43752         * lib/gl_linkedhash_list.c: Likewise.
43753         * lib/gl_rbtreehash_list.c: Likewise.
43754
43755 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43756
43757         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43758         getaddrinfo.
43759
43760         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43761         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43762         it causes <stdio_ext.h> to cause a compile-time error.
43763         Problem reported by Nelson H. F. Beebe.
43764         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43765         of HAVE_DECL___PENDING.
43766
43767         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43768         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43769         declaration.
43770
43771 2006-09-27  Jim Meyering  <jim@meyering.net>
43772
43773         This file could end up with a definition for a function
43774         named __strndup, rather than rpl_strndup on a system with
43775         incomplete weak_alias support.
43776         * lib/strndup.c (strndup): Rename from __strndup.
43777         Remove #defines that used to map __strndup to strndup.
43778         Don't use K&R prototypes.
43779         Remove LIBC-related code, since this file is not sync'd with glibc.
43780         * lib/strndup.h: Revamp, accordingly.
43781         * m4/strndup.m4: Modernize.
43782
43783 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43784
43785         * modules/savewd (Depends-on): Add 'raise'.
43786         * lib/savewd.c: Include <signal.h>, for 'raise'.
43787
43788 2006-09-26  Jim Meyering  <jim@meyering.net>
43789
43790         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43791         when we detect Darwin 8.7.0's acl_get_file bug.
43792         Rearrange to perform the new (below) run-test while $LIBS
43793         contains any acl-related library.  Set USE_ACL at the end.
43794         (gl_ACL_GET_FILE): New function.
43795
43796 2006-09-26  Eric Blake  <ebb9@byu.net>
43797
43798         * lib/verror.c: Include <config.h> unconditionally.
43799
43800 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43801
43802         * modules/clock-time (Maintainer): Add self.
43803         * modules/getlogin_r (Depends-on): Add extensions.
43804
43805 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43806
43807         * modules/clock-time: New module.
43808         * modules/nanosleep (Depends-on): Add clock-time.
43809         * modules/gethrxtime (Depends-on): Likewise.
43810         * modules/gettime (Depends-on): Likewise.
43811         * modules/settime (Depends-on): Likewise.
43812
43813         * modules/fts-lgpl: Depend on openat.
43814         * modules/mkancesdirs: Depend on savewd.
43815         * modules/mkdir-p: Likewise.
43816
43817 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43818
43819         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43820
43821         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43822         `gl_have_arbitrary_file_name_length_limit' to
43823         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43824         actually works between configure runs.
43825
43826 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43827             Bruno Haible  <bruno@clisp.org>
43828
43829         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43830
43831 2006-09-25  Jim Meyering  <jim@meyering.net>
43832
43833         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43834         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43835
43836 2006-09-25  Eric Blake  <ebb9@byu.net>
43837
43838         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43839         exec's in 2006-09-18 patch when shuffling fds.
43840
43841 2006-09-25  Bruno Haible  <bruno@clisp.org>
43842
43843         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43844         Reported by Jim Meyering.
43845
43846 2006-09-24  Jim Meyering  <jim@meyering.net>
43847
43848         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43849         compare a pointer against a literal "0".  That caused failures with
43850         at least HP-UX's hpcc.
43851
43852 2006-09-22  Simon Josefsson  <jas@extundo.com>
43853
43854         * modules/gc-sha1:
43855         * modules/gc-md4:
43856         * modules/gc-hmac-sha1:
43857         * modules/gc-hmac-md5:
43858         * modules/gc-des:
43859         * modules/gc-arcfour: Distribute more files.
43860
43861 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43862
43863         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43864         (gl_linked_iterator_from_to): Initialize struct completely.
43865         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43866         (gl_tree_iterator_from_to): Likewise
43867         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43868         * lib/gl_array_list.c [lint] (gl_array_iterator)
43869         (gl_array_iterator_from_to): Likewise.
43870         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43871         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43872         (gl_carray_iterator_from_to): Likewise.
43873
43874         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43875         * lib/md4.c (md4_process_block): Remove unused variable.
43876         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43877         parentheses for clarity.
43878
43879 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43880
43881         * modules/bison-i18n (Depends-on): Add gettext.
43882
43883 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43884
43885         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43886         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43887         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43888         also add missing comma that caused broken test.
43889         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43890         stdlib.h, for `abort'.
43891         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43892         variables.
43893         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43894         include unistd.h if present, for `rmdir'.
43895         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43896         variables.
43897         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43898         in the process include standard headers for prototypes.
43899         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43900         gets declared on GNU/Linux.
43901         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43902         unistd.h, for `rmdir'.
43903         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43904
43905         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43906         always true.
43907         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43908
43909         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43910
43911 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43912
43913         * gnulib-tool (func_version): Create output all at once.  This
43914         may help avoid triggering unnecessary SIGPIPEs, and at any
43915         rate it doesn't hurt.
43916
43917 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43918             Bruno Haible  <bruno@clisp.org>
43919
43920         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43921         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43922         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43923
43924         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43925         (gl_FUNC_VASPRINTF): Invoke it.
43926
43927 2006-09-22  Bruno Haible  <bruno@clisp.org>
43928
43929         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43930         getloadavg.c as first argument.
43931
43932 2006-09-22  Bruno Haible  <bruno@clisp.org>
43933
43934         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43935         at the beginning of the gl_INIT macro.
43936         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43937         gl_GETLOADAVG.
43938
43939 2006-09-22  Bruno Haible  <bruno@clisp.org>
43940
43941         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43942         module.
43943         Suggested by Ralf Wildenhues.
43944
43945 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43946
43947         Import this patch from libc:
43948
43949         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43950
43951         * lib/regex_internal.c (re_string_reconstruct): Handle
43952         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43953         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43954         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43955         re_string_context_at.
43956
43957         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43958         now requires it.
43959         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43960         gl_REGEX now does it for us.
43961         (gl_REGEX): Add test taken from
43962         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43963
43964         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43965         Check that large offsets work.  Modernize Autoconf usages.
43966         Prefer "yes" to mean a good thing rather than a bad.
43967         Don't put "#define mkstemp" in config.h, as this might interfere
43968         with standard system headers that "#define mkstemp mkstemp64".
43969
43970         * modules/mkstemp (Depends-on): Add extensions, so that
43971         mkstemp is visible on some platforms.
43972         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43973         (Include): Change to "mkstemp.h" from <stdlib.h>.
43974         (Files): Add mkstemp.h.
43975
43976         * lib/mkstemp.h: New file, since some standard headers
43977         #define mkstemp.
43978         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43979         Include "mkstemp.h".
43980         Make the _LIBC code resemble glibc original more,
43981         e.g., use K&R style.
43982         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43983         (mkstemp): Remove, since mkstemp.h does this for us.
43984         * lib/stdlib--.h: Include mkstemp.h.
43985
43986         Import this patch from libc:
43987
43988         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43989
43990         * lib/tempname.c (__gen_tempname): Change attempts_min
43991         into a macro.  Use preprocessor to decide how to initialize
43992         attempts [Coverity CID 67].
43993
43994 2006-09-20  Bruno Haible  <bruno@clisp.org>
43995
43996         * lib/mkdtemp.c: Import from libc.
43997         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43998                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43999                 attempts_min into a macro.  Use preprocessor to decide how to
44000                 initialize attempts [Coverity CID 67].
44001         2001-11-27  Paul Eggert  <eggert@twinsun.com>
44002                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
44003                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
44004
44005 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44006
44007         * gnulib-tool (func_exit): New function, to allow to pass the
44008         exit status portably through the trap.  Use everywhere.
44009         (--help, --version): Signal a write error.
44010         (trap): catch SIGPIPE, for write errors.
44011         Exit at the end of the trap, with the correct exit status.
44012
44013 2006-09-19  Karl Berry  <karl@gnu.org>
44014
44015         * doc/gnulib.texi: note about the license texinfo files.
44016
44017 2006-09-19  Eric Blake  <ebb9@byu.net>
44018
44019         * gnulib-tool: Avoid space-tab.
44020
44021 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44022
44023         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
44024         that prevented coreutils 6.1 from building.  Problem reported
44025         by Petter Reinholdtsen.
44026
44027 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44028
44029         * gnulib-tool (avoidlist): Fix typo that broke options like
44030         --avoid=lock that are used by coreutils bootstrap.
44031
44032 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
44033
44034         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
44035         more systematically.
44036
44037 2006-09-18  Jim Meyering  <jim@meyering.net>
44038
44039         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
44040
44041 2006-09-18  Bruno Haible  <bruno@clisp.org>
44042
44043         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
44044
44045 2006-09-18  Bruno Haible  <bruno@clisp.org>
44046
44047         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
44048         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
44049         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
44050         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
44051         * m4/gettext.m4: Require autoconf >= 2.52.
44052         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
44053         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
44054         of gl_cv_header_inttypes_h.
44055
44056 2006-09-18  Bruno Haible  <bruno@clisp.org>
44057
44058         * lib/javaversion.c: Include configmake.h.
44059
44060 2006-09-18  Bruno Haible  <bruno@clisp.org>
44061
44062         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
44063         avoid that the while loops be executed in a subshell.
44064
44065 2006-09-18  Bruno Haible  <bruno@clisp.org>
44066
44067         * MODULES.html.sh (func_module): Break long lines.
44068         Suggested by Bruce Korb <bkorb@gnu.org>.
44069
44070 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44071
44072         Speed up by a factor of 1.12.
44073         * gnulib-tool (nl): New variable.
44074         (func_import): Rewrite include directive extraction to only read each
44075         directive once.
44076
44077 2006-09-17  Bruno Haible  <bruno@clisp.org>
44078
44079         * modules/javaversion (Makefile.am): Remove DEFS setting.
44080         (Depends-on): Add configmake, for PKGDATADIR definition.
44081
44082 2006-09-17  Bruno Haible  <bruno@clisp.org>
44083
44084         * gnulib-tool (func_create_testdir): Rewrite all files at once.
44085
44086 2006-09-17  Bruno Haible  <bruno@clisp.org>
44087
44088         * gnulib-tool (func_append): New function, stolen from libtool.m4.
44089         (func_modules_transitive_closure, func_modules_add_dummy,
44090         func_modules_to_filelist, func_import, func_create_testdir,
44091         func_create_megatestdir, ...): Use it wherever possible.
44092         Suggested by Ralf Wildenhues.
44093
44094 2006-09-16  Karl Berry  <karl@gnu.org>
44095
44096         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
44097         to avoid sectioning errors.
44098         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
44099         [ifinfo]: blank line after @center-ed titles.
44100         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
44101         Spell FSF address consistently with others.
44102         (These changes approved by rms.)
44103
44104 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44105
44106         Speed up by a factor of 1.61.
44107         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
44108         already checked module names again.
44109
44110 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44111
44112         Speed up by a factor of 1.13.
44113         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
44114         for new_files, and the input to func_add_or_update.
44115
44116 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44117
44118         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
44119         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
44120
44121 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44122
44123         * modules/mkancesdirs (Depends-on): Add fcntl.
44124         * modules/savewd: New file.
44125         * MODULES.html.sh (File system functions): Add savewd.
44126
44127         * modules/configmake (Makefile.am): Add support for the
44128         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
44129
44130 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44131
44132         * m4/savewd.m4: New file.
44133
44134 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44135
44136         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
44137         (dirchownmod): New arg FD.  All callers changed.
44138         Use FD rather than opening the directory ourself, as opening is
44139         now the caller's responsibility.
44140         * lib/dirchownmod.h: Likewise.
44141         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
44142         hosts that require <sys/types.h> before <sys/stat.h>.  Include
44143         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
44144         (test_dir): Remove.
44145         (mkancesdirs): Return length of prefix of FILE that has already
44146         been made, or -2 if there is a child doing the work.  Redo
44147         algorithm so that it is O(N) rather than O(N**2).  Optimize away
44148         ".", and treat ".." specially since it might stray back into
44149         already-created areas.  Use a subprocess if necessary.  New arg
44150         WD; all users changed.  MAKE_DIR function should now return 1
44151         if it creates a directory that is not readable.  Return -2 if
44152         a child process is spun off.
44153         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
44154         Adjust signature to match code.
44155         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
44156         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
44157         all users changed.
44158         * lib/savewd.c, lib/savewd.h: New files.
44159
44160 2006-09-15  Jim Meyering  <jim@meyering.net>
44161
44162         * modules/rename-dest-slash: New module.
44163         * MODULES.html.sh (posix_compat): Add it here.
44164
44165         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
44166
44167 2006-09-15  Jim Meyering  <jim@meyering.net>
44168
44169         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
44170         file.
44171
44172         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
44173
44174 2006-09-15  Jim Meyering  <jim@meyering.net>
44175
44176         * lib/rename-dest-slash.c (has_trailing_slash): Use
44177         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
44178         (rpl_rename_dest_slash): Perform the cheaper trailing slash
44179         test before testing whether SRC is a directory.
44180         Suggestions from Bruno Haible.
44181
44182         Avoid a warning about an unused variable.
44183         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
44184         into the #ifdef block where it's used.
44185
44186         * lib/rename-dest-slash.c: New file.
44187
44188 2006-09-14  Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/allocsa.c: Include <config.h> unconditionally.
44191         * lib/asnprintf.c: Likewise.
44192         * lib/asprintf.c: Likewise.
44193         * lib/c-strcasecmp.c: Likewise.
44194         * lib/c-strcasestr.c: Likewise.
44195         * lib/c-strncasecmp.c: Likewise.
44196         * lib/c-strstr.c: Likewise.
44197         * lib/classpath.c: Likewise.
44198         * lib/clean-temp.c: Likewise.
44199         * lib/concatpath.c: Likewise.
44200         * lib/copy-file.c: Likewise.
44201         * lib/csharpcomp.c: Likewise.
44202         * lib/csharpexec.c: Likewise.
44203         * lib/execute.c: Likewise.
44204         * lib/fatal-signal.c: Likewise.
44205         * lib/findprog.c: Likewise.
44206         * lib/fwriteerror.c: Likewise.
44207         * lib/gl_array_list.c: Likewise.
44208         * lib/gl_array_oset.c: Likewise.
44209         * lib/gl_avltree_list.c: Likewise.
44210         * lib/gl_avltree_oset.c: Likewise.
44211         * lib/gl_avltreehash_list.c: Likewise.
44212         * lib/gl_carray_list.c: Likewise.
44213         * lib/gl_linked_list.c: Likewise.
44214         * lib/gl_linkedhash_list.c: Likewise.
44215         * lib/gl_list.c: Likewise.
44216         * lib/gl_oset.c: Likewise.
44217         * lib/gl_rbtree_list.c: Likewise.
44218         * lib/gl_rbtree_oset.c: Likewise.
44219         * lib/gl_rbtreehash_list.c: Likewise.
44220         * lib/imaxabs.c: Likewise.
44221         * lib/imaxdiv.c: Likewise.
44222         * lib/javacomp.c: Likewise.
44223         * lib/javaexec.c: Likewise.
44224         * lib/javaversion.c: Likewise.
44225         * lib/linebreak.c: Likewise.
44226         * lib/localcharset.c: Likewise.
44227         * lib/lock.c: Likewise.
44228         * lib/mbchar.c: Likewise.
44229         * lib/mbswidth.c: Likewise.
44230         * lib/mkdtemp.c: Likewise.
44231         * lib/pipe.c: Likewise.
44232         * lib/printf-args.c: Likewise.
44233         * lib/printf-parse.c: Likewise.
44234         * lib/progname.c: Likewise.
44235         * lib/progreloc.c: Likewise.
44236         * lib/readlink.c: Likewise.
44237         * lib/sh-quote.c: Likewise.
44238         * lib/stpcpy.c: Likewise.
44239         * lib/stpncpy.c: Likewise.
44240         * lib/strcasecmp.c: Likewise.
44241         * lib/strcasestr.c: Likewise.
44242         * lib/strcspn.c: Likewise.
44243         * lib/striconv.c: Likewise.
44244         * lib/strncasecmp.c: Likewise.
44245         * lib/strnlen1.c: Likewise.
44246         * lib/strstr.c: Likewise.
44247         * lib/strtok_r.c: Likewise.
44248         * lib/tls.c: Likewise.
44249         * lib/tmpdir.c: Likewise.
44250         * lib/unicodeio.c: Likewise.
44251         * lib/unsetenv.c: Likewise.
44252         * lib/vasnprintf.c: Likewise.
44253         * lib/vasprintf.c: Likewise.
44254         * lib/wait-process.c: Likewise.
44255         * lib/xallocsa.c: Likewise.
44256         * lib/xsetenv.c: Likewise.
44257         * lib/xstriconv.c: Likewise.
44258
44259 2006-09-13  Simon Josefsson  <jas@extundo.com>
44260
44261         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
44262         that internally, suggested by Ralf Wildenhues
44263         <Ralf.Wildenhues@gmx.de>.
44264
44265 2006-09-13  Simon Josefsson  <jas@extundo.com>
44266
44267         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
44268         @LIBOBJS@.
44269         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44270
44271 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44272
44273         * lib/_fpending.c: Include <config.h> unconditionally, since we no
44274         longer worry about uses that don't define HAVE_CONFIG_H.
44275         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
44276         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
44277         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
44278         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
44279         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
44280         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
44281         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
44282         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
44283         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
44284         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
44285         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
44286         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
44287         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
44288         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
44289         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
44290         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
44291         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
44292         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
44293         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
44294         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
44295         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
44296         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
44297         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
44298         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
44299         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
44300         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
44301         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
44302         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
44303         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
44304         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
44305         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
44306         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
44307         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
44308         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
44309         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
44310         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
44311         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
44312         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
44313         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
44314         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
44315         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
44316         Likewise.
44317
44318 2006-09-13  Eric Blake  <ebb9@byu.net>
44319
44320         * lib/getopt.c: Fix typo in last commit.
44321
44322 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44323
44324         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
44325         dgettext.
44326
44327 2006-09-12  Jim Meyering  <jim@meyering.net>
44328
44329         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
44330         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
44331         Reported by Nelson H. F. Beebe.
44332
44333 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44334
44335         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44336         program_invocation_name and program_invocation_short_name are
44337         initialized.
44338         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44339         and program_invocation_short_name to argp.h, so they are visible
44340         to user programs.
44341         * lib/argp.h: Likewise
44342
44343 2006-09-10  Bruno Haible  <bruno@clisp.org>
44344
44345         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44346         m4/inttypes_h.m4, m4/uintmax_t.m4.
44347
44348 2006-09-10  Bruno Haible  <bruno@clisp.org>
44349
44350         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44351         gl_AC_TYPE_UINTMAX_T.
44352
44353 2006-09-10  Bruno Haible  <bruno@clisp.org>
44354
44355         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44356
44357 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44358
44359         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44360         convention.  Text proposed by Bruno Haible.
44361         (struct argp_option): Document the use of N_() wrappers.
44362
44363         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44364         '\v', and translate the two parts separately, instead of feeding
44365         the whole string to gettext.  This allows to exclude
44366         '\v' from the strings visible to the translator by writing doc
44367         strings as N_("..") "\v" N_("..").
44368
44369 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44370
44371         * config/srclist.txt: Undo latest change; the bug was fixed.
44372
44373 2006-09-09  Bruno Haible  <bruno@clisp.org>
44374
44375         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44376         assignments if building a library without libtool.
44377         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44378         in func_emit_lib_Makefile_am.
44379         (func_import): When building a static library libfoo.a, arrange to
44380         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44381         (func_create_testdir): Likewise.
44382         * modules/gc (configure.ac, Makefile.am): If building statically,
44383         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44384         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44385         * modules/striconv (configure.ac, Makefile.am): Likewise.
44386         Based on a suggestion by Ralf Wildenhues.
44387
44388 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44389
44390         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44391         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44392         Also:
44393
44394         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44395         Add year_2050_test to catch glibc bug 2821
44396         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44397
44398         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44399         Prefer #ifdef to #if.
44400
44401         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44402         Return from 'main' instead of calling 'exit'.
44403
44404 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44405
44406         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44407         returned the maximum time_t value rather than (time_t) -1.
44408         Problem originally reported by William Bardwell
44409         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44410
44411         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44412         Moved to here ...
44413         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44414         ... from here.
44415
44416 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44417
44418         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44419         2821 is fixed.
44420
44421 2006-09-08  Jim Meyering  <jim@meyering.net>
44422
44423         Don't make generated files read-only.  That would bother too many
44424         people.  However, do retain the ability to work when targets are
44425         read-only: remove the destination and temporary files before writing
44426         them (when generated via sed or echo), or by using the -f option for
44427         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44428         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44429         * modules/byteswap, modules/configmake, modules/fcntl:
44430         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44431         * modules/localcharset, modules/netinet_in, modules/poll:
44432         * modules/stdbool, modules/stdint, modules/sys_select:
44433         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44434
44435 2006-09-08  Jim Meyering  <jim@meyering.net>
44436
44437         Avoid new build failure on FreeBSD 6.0.
44438         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44439         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44440         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44441
44442 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44443
44444         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44445
44446 2006-09-07  Jim Meyering  <jim@meyering.net>
44447
44448         Fix global typo in last change: use chmod u-w, not chmod u-x.
44449         Spotted by Paul Eggert and Bruce Korb.
44450         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44451         * modules/byteswap, modules/configmake, modules/fcntl:
44452         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44453         * modules/localcharset, modules/netinet_in, modules/poll:
44454         * modules/stdbool, modules/stdint, modules/sys_select:
44455         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44456
44457 2006-09-06  Jim Meyering  <jim@meyering.net>
44458
44459         Make generated files be read-only.
44460         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44461         Ensure that each generated file is now read-only.
44462         * modules/argz: Likewise.
44463         * modules/arpa_inet: Likewise.
44464         * modules/byteswap: Likewise.
44465         * modules/configmake: Likewise.
44466         * modules/fcntl: Likewise.
44467         * modules/fnmatch: Likewise.
44468         * modules/getopt: Likewise.
44469         * modules/glob: Likewise.
44470         * modules/inttypes: Likewise.
44471         * modules/netinet_in: Likewise.
44472         * modules/poll: Likewise.
44473         * modules/stdbool: Likewise.
44474         * modules/stdint: Likewise.
44475         * modules/sys_select: Likewise.
44476         * modules/sys_socket: Likewise.
44477         * modules/sys_stat: Likewise.
44478         * modules/sysexits: Likewise.
44479         * modules/localcharset: Same as above, but continue using temporary
44480         file named "t-$@" (why different?) rather than the "$@-t" used
44481         everywhere else.
44482
44483         * modules/sysexits (Makefile.am): Replace literal occurrences
44484         of "sysexit.h" more readable, and more consistent, "$@".
44485
44486 2006-09-06  Bruno Haible  <bruno@clisp.org>
44487
44488         * modules/striconv: New file.
44489         * modules/xstriconv: New file.
44490         * MODULES.html.sh (Internationalization functions): Add striconv,
44491         xstriconv.
44492
44493 2006-09-06  Bruno Haible  <bruno@clisp.org>
44494
44495         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44496         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44497         not using libtool correctly.
44498
44499 2006-09-06  Bruno Haible  <bruno@clisp.org>
44500
44501         * lib/striconv.h: New file.
44502         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44503         iconvstring.c.
44504         * lib/xstriconv.h: New file.
44505         * lib/xstriconv.c: New file.
44506
44507 2006-09-06  Bruno Haible  <bruno@clisp.org>
44508
44509         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44510         lib_..._LDFLAGS.
44511
44512 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44513
44514         * lib/argz_.h: Sync from Libtool.
44515
44516         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44517                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44518
44519         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44520
44521 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44522
44523         * modules/trim: New file.
44524
44525 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44526
44527         * lib/trim.h: New file.
44528         * lib/trim.c: New file.
44529
44530 2006-09-05  Bruno Haible  <bruno@clisp.org>
44531
44532         * MODULES.html.sh (String handling): Add trim.
44533
44534 2006-09-04  Karl Berry  <karl@gnu.org>
44535
44536         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44537         until next release.
44538
44539 2006-09-03  Bruno Haible  <bruno@clisp.org>
44540
44541         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44542         correctly.
44543
44544 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44545
44546         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44547         not gl_GETLOADAVG.  Omit unneeded semicolons.
44548         Problems reported by Ralf Wildenhues in
44549         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44550         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44551         at the end, which is the usual gnulib style.
44552
44553         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44554         of doing all the work ourselves.
44555         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44556         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44557
44558 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44559
44560         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44561         Problem reported by Ralf Wildenhues in
44562         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44563
44564         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44565         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44566
44567 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44568
44569         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44570         yesterday's patch by changing test -n to test -z.
44571
44572 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44573
44574         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44575         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44576         the former is now obsolescent.
44577
44578         * modules/chdir-long (Depends-on): Add fcntl.
44579
44580 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44581
44582         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44583         obsolescent, and programs should use gnulib instead.
44584         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44585         but with prefixes changed.
44586
44587 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44588
44589         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44590         or stdbool.h, because they might not exist while configuring.
44591
44592         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44593         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44594         does that for us.
44595         (O_DIRECTORY): Remove.
44596
44597 2006-08-31  Eric Blake  <ebb9@byu.net>
44598
44599         * gnulib-tool: Don't let emacs change spaces to TAB.
44600
44601 2006-08-31  Bruno Haible  <bruno@clisp.org>
44602
44603         * gnulib-tool: When calling func_import more than once, do it in a
44604         subshell.
44605         Reported by Eric Blake <ebb9@byu.net>.
44606
44607 2006-08-31  Bruno Haible  <bruno@clisp.org>
44608
44609         * gnulib-tool (nl): Remove variable.
44610         (sed_transform_lib_file): Use more robust test for config-h module.
44611         (func_import): Fix typo in 2006-08-25 patch.
44612
44613 2006-08-31  Bruno Haible  <bruno@clisp.org>
44614
44615         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44616         specified, augment Makefile.am variables instead of assigning them.
44617
44618 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44619
44620         Work around a bug in both the Linux and SunOS 64-bit kernels:
44621         nanosleep mishandles sleeps for longer than 2**31 seconds.
44622         Problem reported by Frank v Waveren in
44623         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44624         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44625         Check for nanosleep bug.
44626         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44627
44628 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44629
44630         Work around a bug in both the Linux and SunOS 64-bit kernels:
44631         nanosleep mishandles sleeps for longer than 2**31 seconds.
44632         Problem reported by Frank v Waveren in
44633         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44634         * lib/nanosleep.c (BILLION): New constant.
44635         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44636         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44637         implementation.
44638
44639 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44640
44641         * modules/nanosleep (Depends-on): Add gettime.
44642
44643 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44644         and Simon Josefsson  <jas@extundo.com>
44645         and Oskar Liljeblad  <oskar@osk.mine.nu>
44646
44647         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44648         * gnulib-tool (func_import): New license type 'unmodifiable license
44649         text'.
44650         * modules/fdl: Use it.  Longer description.
44651         * module/gpl, module/lgpl: New files.
44652
44653 2006-08-30  Jim Meyering  <jim@meyering.net>
44654
44655         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44656         shadowing the parameter.
44657
44658 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44659
44660         Sync from Libtool:
44661
44662         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44663
44664         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44665         sharing with gnulib.  Report by Eric Blake.
44666
44667 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44668
44669         * modules/isapipe: New file.
44670         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44671
44672 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44673
44674         * modules/configmake (Makefile.am): Add a comment, and omit
44675         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44676         by Bruno Haible.
44677
44678 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44679
44680         * m4/isapipe.m4: New file.
44681
44682 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44683
44684         * lib/isapipe.c, lib/isapipe.h: New files.
44685
44686 2006-08-29  Jim Meyering  <jim@meyering.net>
44687
44688         * modules/configmake (Makefile.am): Make configmake.h depend on
44689         Makefile.  Otherwise, a stale configmake.h could hang around.
44690
44691 2006-08-29  Eric Blake  <ebb9@byu.net>
44692
44693         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44694         resolution of upstream bug 3044.
44695
44696 2006-08-29  Bruno Haible  <bruno@clisp.org>
44697
44698         * modules/localcharset (Depends-on): Add configmake.
44699         (Makefile.am): Remove setting of LIBDIR through DEFS.
44700
44701 2006-08-29  Bruno Haible  <bruno@clisp.org>
44702
44703         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44704         defined.
44705
44706 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44707
44708         * modules/fcntl: New file.
44709         * modules/chdir-safer (Depends-on): Add fcntl.
44710         * modules/fts: Likewise.
44711         * modules/mkdir-p: Likewise.
44712
44713         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44714         This undoes the most recent change, since we're now addressing the
44715         problem in a different way.
44716
44717         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44718         into output, since the output might be called Makefile.am even
44719         if $makefile_name is something different.
44720         (func_import): Use $makefile_am rather than
44721         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44722         empty.
44723
44724         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44725
44726 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44727
44728         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44729         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44730         recent change to stdint.m4, since we're now addressing the problem in a
44731         different way.
44732
44733 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44734
44735         * m4/fcntl_h.m4: New file.
44736
44737 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44738
44739         * lib/fcntl_.h: New file.
44740         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44741         the fcntl module.
44742         * lib/dirchownmod.c: Likewise.
44743         * lib/fts.c: Likewise.
44744
44745         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44746         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44747         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44748         just before including <inttypes.h>, to avoid circular inclusion.
44749
44750 2006-08-28  Jim Meyering  <jim@meyering.net>
44751
44752         * doc/visibility.texi: Actually read and correct the grammar of the
44753         sentence affected by yesterday's change.
44754
44755 2006-08-28  Eric Blake  <ebb9@byu.net>
44756
44757         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44758         needs wrapper.
44759
44760 2006-08-28  Eric Blake  <ebb9@byu.net>
44761
44762         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44763
44764 2006-08-28  Eric Blake  <ebb9@byu.net>
44765
44766         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44767
44768 2006-08-28  Bruno Haible  <bruno@clisp.org>
44769
44770         * modules/c-strstr: New file, from GNU gettext.
44771         * MODULES.html.sh (String handling): Add c-strstr.
44772
44773 2006-08-28  Bruno Haible  <bruno@clisp.org>
44774
44775         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44776         macros.
44777         Reported by Eric Blake.
44778
44779 2006-08-28  Bruno Haible  <bruno@clisp.org>
44780
44781         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44782         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44783         * lib/vasprintf.c: Include errno.h, limits.h.
44784         (EOVERFLOW): New fallback definition.
44785         (vasprintf): Test here whether the string length is > INT_MAX.
44786         * lib/vsnprintf.c: Include errno.h, limits.h.
44787         (EOVERFLOW): New fallback definition.
44788         (vsnprintf): Fix bug when generated string was too long for the buffer.
44789         Test here whether the string length is > INT_MAX.
44790
44791 2006-08-28  Bruno Haible  <bruno@clisp.org>
44792
44793         * lib/inttypes_.h (SCNX*): Remove definitions.
44794         Reported by Eric Blake.
44795
44796 2006-08-28  Bruno Haible  <bruno@clisp.org>
44797
44798         * lib/c-strstr.h: New file, from GNU gettext.
44799         * lib/c-strstr.c: New file, from GNU gettext.
44800
44801 2006-08-28  Bruno Haible  <bruno@clisp.org>
44802
44803         * gnulib-tool: Reorder some statements.
44804
44805 2006-08-28  Bruno Haible  <bruno@clisp.org>
44806
44807         * gnulib-tool: New option --makefile-name.
44808         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44809         $makefile_name.
44810         (func_import): Write $makefile_name to the cache file, and read it from
44811         there unless explicitly specified. Use $makefile_name as file name
44812         instead of Makefile.am. Adjust the recommendations accordingly.
44813
44814 2006-08-28  Bruno Haible  <bruno@clisp.org>
44815
44816         * gnulib-tool (func_verify_module): Check against misapplying patch.
44817
44818 2006-08-28  Bruno Haible  <bruno@clisp.org>
44819
44820         * gnulib-tool (func_relativize, func_relconcat): New functions.
44821         Give an error if --local-dir is given with --update.
44822         Remove trailing slashes from $local_gnulib_dir.
44823         (func_import): Store the relativized $local_gnulib_dir in
44824         gnulib-cache.m4, and read it from there if not specified explicitly.
44825
44826 2006-08-28  Bruno Haible  <bruno@clisp.org>
44827
44828         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44829         is the current directory. Respect also $local_gnulib_dir.
44830
44831 2006-08-28  Bruno Haible  <bruno@clisp.org>
44832             Simon Josefsson  <jas@extundo.com>
44833
44834         BeOS portability.
44835         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44836
44837 2006-08-27  Jim Meyering  <jim@meyering.net>
44838
44839         * doc/visibility.texi: Remove duplicate word: "pointer".
44840
44841 2006-08-26  Bruno Haible  <bruno@clisp.org>
44842
44843         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44844         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44845         (Makefile.am): Create inttypes.h from inttypes_.h.
44846         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44847
44848         * modules/imaxabs: New file.
44849
44850         * modules/imaxdiv: New file.
44851
44852 2006-08-26  Bruno Haible  <bruno@clisp.org>
44853
44854         * m4/inttypes.m4: New file.
44855         * m4/_inttypes_h.m4: Remove file.
44856         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44857         PRI_MACROS_BROKEN.
44858         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44859
44860         * m4/imaxabs.m4: New file.
44861
44862         * m4/imaxdiv.m4: New file.
44863
44864 2006-08-26  Bruno Haible  <bruno@clisp.org>
44865
44866         * lib/inttypes_.h: New file.
44867         * lib/inttypes.h: Remove file.
44868         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44869
44870         * lib/imaxabs.c: New file.
44871
44872         * lib/imaxdiv.c: New file.
44873
44874 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44875
44876         New config-h module, so that "make" output needn't be cluttered
44877         by -DHAVE_CONFIG_H.
44878         * MODULES.html.sh (Support for building libraries and executables):
44879         Add config-h.
44880         * modules/config-h: New file.
44881         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44882         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44883         the config-h module is used.
44884
44885         New configmake module, so that "make" output needn't be cluttered
44886         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44887         * MODULES.html.sh (Support for building libraries and executables):
44888         Add configmake.
44889         * modules/configmake: New file.
44890
44891 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44892
44893         * m4/config-h.m4: New file.
44894
44895 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44896
44897         * config/srclist.txt: Add elisp-comp.
44898
44899 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44900
44901         * MODULES.html.sh (Support for building libraries and executables):
44902         Add elisp-comp.
44903         * build-aux/elisp-comp: New file.
44904         * modules/elisp-comp: New file.
44905
44906 2006-08-24  Bruno Haible  <bruno@clisp.org>
44907
44908         * gnulib-tool (func_create_testdir): Use non-default values of
44909         sourcebase and m4base.
44910
44911 2006-08-24  Bruno Haible  <bruno@clisp.org>
44912
44913         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44914         HTML structure.
44915
44916 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44917
44918         * modules/openat (Depends-on): Add lchown.
44919
44920 2006-08-23  Bruno Haible  <bruno@clisp.org>
44921
44922         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44923         of gl_LOCK_EARLY instead of gl_LOCK.
44924
44925 2006-08-23  Bruno Haible  <bruno@clisp.org>
44926
44927         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44928         on OSF/1 to no.
44929         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44930
44931 2006-08-23  Bruno Haible  <bruno@clisp.org>
44932
44933         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44934         as unusable.
44935
44936         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44937         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44938         (gl_LOCK): New macro.
44939
44940 2006-08-22  Simon Josefsson  <jas@extundo.com>
44941
44942         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44943         to md5 module.
44944
44945 2006-08-22  Simon Josefsson  <jas@extundo.com>
44946
44947         * MODULES.html.sh: Add "Support for maintaining and release
44948         projects".
44949
44950         * build-aux/gnupload: New file, from coreutils.
44951
44952 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44953
44954         Avoid the need for AC_LIBSOURCES in m4 macros.
44955         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44956         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44957         * modules/check-version (EXTRA_DIST): Add check-version.h.
44958         * modules/crc (EXTRA_DIST): Add crc.h.
44959         * modules/des (EXTRA_DIST): Add des.h.
44960         * modules/gc (EXTRA_DIST): Add gc.h.
44961         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44962         * modules/getline (EXTRA_DIST): Add getline.h.
44963         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44964         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44965         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44966         * modules/md2 (EXTRA_DIST): Add md2.h.
44967         * modules/md4 (EXTRA_DIST): Add md4.h.
44968         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44969         * modules/read-file (EXTRA_DIST): Add read-file.h.
44970         * modules/readline (EXTRA_DIST): Add readline.h.
44971         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44972         rijndael-api-fst.h.
44973
44974 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44975
44976         * m4/rijndael.m4 (gl_ARCFOUR):
44977         * m4/arctwo.m4 (gl_ARCTWO):
44978         * m4/check-version.m4 (gl_CHECK_VERSION):
44979         * m4/crc.m4 (gl_CRC):
44980         * m4/des.m4 (gl_DES):
44981         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44982         * m4/gc.m4 (gl_GC):
44983         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44984         * m4/getline.m4 (gl_FUNC_GETLINE):
44985         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44986         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44987         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44988         * m4/md2.m4 (gl_MD2):
44989         * m4/md4.m4 (gl_MD4):
44990         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44991         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44992         * m4/readline.m4 (gl_FUNC_READLINE):
44993         * m4/rijndael.m4 (gl_RIJNDAEL):
44994         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44995         to get the necessary .h files and whatnot.
44996
44997 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44998
44999         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
45000         gnulib rather than the other way around.
45001         * config/srclistvars.sh (COREUTILS): Remove.
45002
45003 2006-08-22  Jim Meyering  <jim@meyering.net>
45004
45005         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
45006
45007         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
45008
45009 2006-08-22  Eric Blake  <ebb9@byu.net>
45010
45011         * modules/regexprops-generic: New file.
45012         * MODULES.html.sh (Support for building documentation): List it.
45013
45014 2006-08-22  Eric Blake  <ebb9@byu.net>
45015
45016         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
45017         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45018         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
45019         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
45020
45021 2006-08-22  Bruno Haible  <bruno@clisp.org>
45022
45023         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
45024         and lib_LTLIBRARIES like the other lib_* variables.
45025
45026 2006-08-22  Bruno Haible  <bruno@clisp.org>
45027
45028         * build-aux/x-to-1.in: New file, from GNU gettext.
45029
45030 2006-08-22  Bruno Haible  <bruno@clisp.org>
45031
45032         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
45033         <utmpx.h> exists.
45034
45035 2006-08-22  Bruno Haible  <bruno@clisp.org>
45036
45037         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
45038         <utmpx.h> exists.
45039
45040 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45041
45042         BeOS portability.
45043         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
45044         exist.
45045         Problem reported by Bruno Haible.
45046
45047 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45048
45049         Avoid the need for AC_LIBSOURCES in m4 macros.
45050         * modules/acl (EXTRA_DIST): Add acl.h.
45051         * modules/argmatch (Files): Add m4/argmatch.m4.
45052         (configure.ac): Add gl_ARGMATCH.
45053         (EXTRA_DIST): Renamed from lib_SOURCES, for
45054         consistency with the other modules.  Remove argmatch.c.
45055         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
45056         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
45057         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
45058         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
45059         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
45060         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
45061         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
45062         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
45063         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
45064         * modules/closeout (EXTRA_DIST): Add closeout.h.
45065         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
45066         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
45067         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
45068         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
45069         dirname.h; remove basename.c and stripslash.c.
45070         * modules/exclude (EXTRA_DIST): Add exclude.h.
45071         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
45072         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
45073         * modules/file-type (EXTRA_DIST): Add file-type.h.
45074         * modules/filemode (EXTRA_DIST): Add filemode.h.
45075         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
45076         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
45077         * modules/fpending (EXTRA_DIST): Add __fpending.h.
45078         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
45079         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
45080         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
45081         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
45082         * modules/getdate (EXTRA_DIST): Add getdate.c.
45083         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
45084         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
45085         * modules/getpass (EXTRA_DIST): Add getpass.h.
45086         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
45087         * modules/group-member (EXTRA_DIST): Add group-member.h.
45088         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
45089         * modules/hash (EXTRA_DIST): Add hash.h.
45090         * modules/human (EXTRA_DIST): Add human.h.
45091         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
45092         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
45093         * modules/lchown (EXTRA_DIST): Add lchown.h.
45094         * modules/long-options (EXTRA_DIST): Add long-options.h.
45095         * modules/lstat (EXTRA_DIST): Add lstat.h.
45096         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
45097         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
45098         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
45099         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
45100         * modules/memxor (EXTRA_DIST): Add memxor.h.
45101         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
45102         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
45103         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
45104         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
45105         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
45106         * modules/physmem (EXTRA_DIST): Add physmem.h.
45107         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
45108         * modules/posixver (EXTRA_DIST): Add posixver.h.
45109         * modules/quote (EXTRA_DIST): Add quote.h.
45110         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
45111         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
45112         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
45113         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
45114         regex_internal.h regexec.c.
45115         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
45116         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
45117         * modules/same (EXTRA_DIST): Add same.h.
45118         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
45119         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
45120         * modules/savedir (EXTRA_DIST): Add savedir.h.
45121         * modules/sha1 (EXTRA_DIST): Add sha1.h.
45122         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
45123         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
45124         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
45125         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
45126         * modules/strdup (EXTRA_DIST): Add strdup.h.
45127         * modules/strftime (EXTRA_DIST): Add strftime.h.
45128         * modules/strndup (EXTRA_DIST): Add strndup.h.
45129         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
45130         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
45131         * modules/time_r (EXTRA_DIST): Add time_r.h.
45132         * modules/timespec (EXTRA_DIST): Add timespec.h.
45133         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
45134         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
45135         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
45136         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
45137         * modules/userspec (EXTRA_DIST): Add userspec.h.
45138         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
45139         * modules/utimens (EXTRA_DIST): Add utimens.h.
45140         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
45141         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
45142         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
45143         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
45144         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
45145         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
45146         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
45147         * modules/yesno (EXTRA_DIST): Add yesno.h.
45148
45149 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45150
45151         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
45152
45153         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
45154         * m4/dev-ino.m4, same-inode.m4: Remove.
45155
45156         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
45157         * m4/acl.m4 (AC_FUNC_ACL):
45158         * m4/backupfile.m4 (gl_BACKUPFILE):
45159         * m4/c-strtod.m4 (gl_C99_STRTOLD):
45160         * m4/canon-host.m4 (gl_CANON_HOST):
45161         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45162         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
45163         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
45164         * m4/cloexec.m4 (gl_CLOEXEC):
45165         * m4/close-stream.m4 (gl_CLOSE_STREAM):
45166         * m4/closeout.m4 (gl_CLOSEOUT):
45167         * m4/dirfd.m4 (gl_FUNC_DIRFD):
45168         * m4/dirname.m4 (gl_DIRNAME):
45169         * m4/exclude.m4 (gl_EXCLUDE):
45170         * m4/exitfail.m4 (gl_EXITFAIL):
45171         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
45172         * m4/file-type.m4 (gl_FILE_TYPE):
45173         * m4/filemode.m4 (gl_FILEMODE):
45174         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
45175         * m4/fpending.m4 (gl_FUNC_FPENDING):
45176         * m4/fprintftime.m4 (gl_FPRINTFTIME):
45177         * m4/fts.m4 (gl_FUNC_FTS):
45178         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
45179         * m4/getdate.m4 (gl_GETDATE):
45180         * m4/gethrxtime.m4 (gl_GETHRXTIME):
45181         * m4/getpagesize.m4 (gl_GETPAGESIZE):
45182         * m4/getpass.m4 (gl_FUNC_GETPASS):
45183         * m4/gettime.m4 (gl_GETTIME):
45184         * m4/getugroups.m4 (gl_GETUGROUPS):
45185         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
45186         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
45187         * m4/hard-locale.m4 (gl_HARD_LOCALE):
45188         * m4/hash.m4 (gl_HASH):
45189         * m4/idcache.m4 (gl_IDCACHE):
45190         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
45191         * m4/lchown.m4 (gl_FUNC_LCHOWN):
45192         * m4/long-options.m4 (gl_LONG_OPTIONS):
45193         * m4/lstat.m4 (gl_FUNC_LSTAT):
45194         * m4/md5.m4 (gl_MD5):
45195         * m4/memcasecmp.m4 (gl_MEMCASECMP):
45196         * m4/memcoll.m4 (gl_MEMCOLL):
45197         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
45198         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
45199         * m4/memxor.m4 (gl_MEMXOR):
45200         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
45201         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
45202         * m4/modechange.m4 (gl_MODECHANGE):
45203         * m4/mountlist.m4 (gl_MOUNTLIST):
45204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45205         * m4/openat.m4 (gl_FUNC_OPENAT):
45206         * m4/pathmax.m4 (gl_PATHMAX):
45207         * m4/physmem.m4 (gl_PHYSMEM):
45208         * m4/posixtm.m4 (gl_POSIXTM):
45209         * m4/posixver.m4 (gl_POSIXVER):
45210         * m4/quote.m4 (gl_QUOTE):
45211         * m4/quotearg.m4 (gl_QUOTEARG):
45212         * m4/readtokens.m4 (gl_READTOKENS):
45213         * m4/readutmp.m4 (gl_READUTMP):
45214         * m4/regex.m4 (gl_REGEX):
45215         * m4/safe-read.m4 (gl_SAFE_READ):
45216         * m4/safe-write.m4 (gl_SAFE_WRITE):
45217         * m4/same.m4 (gl_SAME):
45218         * m4/save-cwd.m4 (gl_SAVE_CWD):
45219         * m4/savedir.m4 (gl_SAVEDIR):
45220         * m4/settime.m4 (gl_SETTIME):
45221         * m4/sha1.m4 (gl_SHA1):
45222         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
45223         * m4/stat-macros.m4 (gl_STAT_MACROS):
45224         * m4/stat-time.m4 (gl_STAT_TIME):
45225         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
45226         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
45227         * m4/strdup.m4 (gl_FUNC_STRDUP):
45228         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
45229         * m4/strndup.m4 (gl_FUNC_STRNDUP):
45230         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
45231         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
45232         * m4/time_r.m4 (gl_TIME_R):
45233         * m4/timespec.m4 (gl_TIMESPEC):
45234         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
45235         * m4/unlinkdir.m4 (gl_UNLINKDIR):
45236         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
45237         * m4/userspec.m4 (gl_USERSPEC):
45238         * m4/utimecmp.m4 (gl_UTIMECMP):
45239         * m4/utimens.m4 (gl_UTIMENS):
45240         * m4/xalloc.m4 (gl_XALLOC):
45241         * m4/xgetcwd.m4 (gl_XGETCWD):
45242         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
45243         * m4/xreadlink.m4 (gl_XREADLINK):
45244         * m4/xstrtod.m4 (gl_XSTRTOD):
45245         * m4/yesno.m4 (gl_YESNO):
45246         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
45247         to get the necessary .h files and whatnot.
45248
45249 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
45250             Bruno Haible  <bruno@clisp.org>
45251
45252         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
45253         /bin/sh understanding of '!' conditional negation.
45254
45255 2006-08-21  Jim Meyering  <jim@meyering.net>
45256
45257         * modules/openat (Depends-on): Really alphabetize.
45258
45259         * modules/acl (Depends-on): Add error and quote.
45260
45261         * check-module (find_included_lib_files): Add at-func.c to the
45262         ok-to-include-more-than-once white list.
45263
45264         * modules/openat (Depends-on): Add lstat.  Alphabetize.
45265
45266 2006-08-21  Bruno Haible  <bruno@clisp.org>
45267
45268         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45269         Emit a pkgdata_DATA variable only if some snippets add contents to it.
45270         Reported by Martin Lambers <marlam@marlam.de>.
45271
45272 2006-08-21  Bruno Haible  <bruno@clisp.org>
45273
45274         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
45275         specify an installation location, don't emit a noinst_LIBRARIES or
45276         noinst_LTLIBRARIES assignment.
45277
45278 2006-08-21  Bruno Haible  <bruno@clisp.org>
45279
45280         BeOS portability.
45281         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
45282         BeOS has mbrtowc() but no <wctype.h>.
45283
45284 2006-08-21  Bruno Haible  <bruno@clisp.org>
45285
45286         BeOS portability.
45287         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
45288         exist.
45289
45290 2006-08-21  Bruno Haible  <bruno@clisp.org>
45291
45292         BeOS portability.
45293         * lib/mbchar.h: Include <wctype.h> only if it exists.
45294
45295 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45296
45297         Remove files that are no longer needed by their respective modules.
45298         * m4/obstack.m4: Remove.
45299         * m4/strerror_r.m4: Remove.
45300         * m4/uint32_t.m4: Remove.
45301         * m4/uintptr_t.m4: Remove.
45302         * m4/ullong_max.m4: Remove.
45303         * m4/xstrtoimax.m4: Remove.
45304         * m4/xstrtoumax.m4: Remove.
45305
45306         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
45307         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
45308         dependencies now capture this.
45309
45310         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
45311         Do not use AC_LIBSOURCES, since gnulib modules now do this.
45312         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
45313         * m4/human.m4 (gl_HUMAN): Likewise.
45314         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
45315         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
45316
45317         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
45318
45319         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
45320         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
45321         stdint.
45322         * m4/human.m4 (gl_HUMAN): Likewise.
45323         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
45324         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
45325         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45326         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45327         * m4/xstrtol (gl_XSTRTOL): Likewise.
45328
45329         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
45330         AC_TYPE_LONG_LONG_INT.
45331         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45332         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45333         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45334         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45335
45336         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45337         on stdbool.
45338
45339         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45340         (gl_PREREQ_XSTRTOUL): Remove.
45341
45342         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45343
45344         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45345         mode.
45346
45347 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45348
45349         Add and change modules to make it easier for coreutils to use
45350         gnulib-tool.
45351         * modules/backupfile (Files): Remove m4/d-ino.m4.
45352         (Depends-on): Add d-ino.
45353         * modules/cycle-check (Depends-on): Add stdint.
45354         (lib_SOURCES): Add cycle-check.h.
45355         * modules/d-ino: New module.
45356         * modules/d-type: New module.
45357         * modules/error (Files): Remove m4/strerror_r.m4.
45358         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45359         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45360         m4/inttypes_h.m4, m4/uintmax_t.m4.
45361         (Depends-on): Add stdint.
45362         (lib_SOURCES): Add fsusage.h.
45363         * modules/getcwd (Files): Remove d-ino.m4.
45364         (Depends-on): Add d-ino.
45365         * modules/getndelim2 (Depends-on): Add stdint.
45366         * modules/glob (Files): Remove m4/d-type.m4.
45367         (Depends-on): Add d-type.
45368         * modules/host-os: New module.
45369         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45370         m4/inttypes_h.m4, m4/uintmax_t.m4.
45371         * Depends-on: Add stdint.
45372         (lib_SOURCES): Add human.h.
45373         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45374         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45375         m4/uintmax_t.m4, m4/ulonglong.m4.
45376         (Depends-on): Add stdint.
45377         (EXTRA_DIST): Add inttostr.h.
45378         * modules/lchmod: New module.
45379         * modules/link-follow: New module.
45380         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45381         (Depends-on): Add lchmod.
45382         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45383         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45384         (Depends-on): Add stdint.
45385         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45386         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45387         (Depends-on): Add stdint.
45388         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45389         * modules/perl: New module.
45390         * modules/regex (Depends-on): Add stdint.
45391         * modules/rmdir-errno: New module.
45392         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45393         m4/intmax_t.m4.
45394         (Depends-on): Add stdint.
45395         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45396         m4/uintmax_t.m4.
45397         (Depends-on): Add stdint.
45398         * modules/unlink-busy: New module.
45399         * modules/utimecmp (Depends-on): Add stdint.
45400         * modules/uptime: New module.
45401         * modules/winsz-ioctl: New module.
45402         * modules/winsz-termios: New module.
45403         * modules/xnanosleep (Depends-on): Add nanosleep.
45404         * modules/ullong_max: Remove.
45405         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45406         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45407         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45408         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45409         (Depends-on): Add inttypes.
45410         (lib_SOURCES): Add xstrtol.h.
45411         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45412         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45413         * MODULES.html.sh: Move 'assert' into the assert section.
45414         Move 'dummy' into the linking section.
45415         Remove ullong_max.
45416         Add section for compatibility checks for POSIX:2001 functions,
45417         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45418         winsz-ioctl, and winsz-termios into it.
45419         Add lchmod.
45420         Add top-level Misc section and put host-os, perl, and uptime
45421         into it.
45422
45423 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45424
45425         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45426         now assume the stdint module.  Do not include inttypes.h.
45427         * lib/fsusage.h: Likewise.
45428         * lib/getndelim2.c: Likewise.
45429         * lib/human.h: Likewise.
45430         * lib/inttostr.h: Likewise.
45431         * lib/obstack.c: Likewise.
45432         * lib/regex_internal.h: Likewise.
45433         * lib/tempname.c: Likewise.
45434         * lib/utimecmp.c: Likewise.
45435         * lib/xstrtol.h: Likewise.
45436
45437         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45438
45439         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45440         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45441         * lib/xtime.h: Likewise.
45442
45443 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45444
45445         * modules/openat (Files): Add lib/fchmodat.c.
45446         Fixes problem reported by Jay Youngman.
45447
45448 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45449
45450         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45451         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45452
45453 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45454             Bruno Haible  <bruno@clisp.org>
45455
45456         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45457         and is a script that invokes bison. Tighten the code. Add comments.
45458
45459 2006-08-18  Jim Meyering  <jim@meyering.net>
45460
45461         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45462         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45463         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45464         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45465
45466 2006-08-18  Bruno Haible  <bruno@clisp.org>
45467
45468         * modules/bison-i18n: New file.
45469         * MODULES.html.sh (Internationalization functions): Add it.
45470
45471 2006-08-18  Bruno Haible  <bruno@clisp.org>
45472
45473         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45474         sys/statvfs.h. When getmntinfo was found, check its declaration and
45475         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45476
45477 2006-08-18  Bruno Haible  <bruno@clisp.org>
45478
45479         * m4/bison-i18n.m4: New file, from bison.
45480
45481 2006-08-18  Bruno Haible  <bruno@clisp.org>
45482
45483         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45484         (ME_DUMMY): Treat "kernfs" as a dummy.
45485         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45486
45487 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45488
45489         Update from coreutils.
45490
45491         2006-08-15  Jim Meyering  <jim@meyering.net>
45492
45493         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45494
45495         2006-01-17  Jim Meyering  <jim@meyering.net>
45496
45497         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45498
45499         2006-01-11  Jim Meyering  <jim@meyering.net>
45500
45501         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45502         Check for the lchmod function.
45503
45504 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45505
45506         Update from coreutils.
45507
45508         * lib/__fpending.h: Add copyright notice.
45509         * lib/fprintftime.h: Likewise.
45510         * lib/savedir.c: Use (C) in copyright notice.
45511         * lib/savedir.h: Likewise.
45512
45513         2006-08-15  Jim Meyering  <jim@meyering.net>
45514
45515         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45516         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45517         in support of the EXPECTED_ERRNO macro.
45518         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45519         definitions.  Instead, define the appropriate symbols and include
45520         "at-func.c".
45521         * lib/mkdirat.c (mkdirat): Likewise.
45522         * lib/fchmodat.c (fchmodat): Likewise.
45523         (ENOSYS): Remove definition.
45524         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45525         it.  Don't include "unistd--.h" -- it wasn't ever used.
45526
45527         2006-01-17  Jim Meyering  <jim@meyering.net>
45528
45529         Rewrite fts.c not to change the current working directory,
45530         by using openat, fstatat, fdopendir, etc..
45531
45532         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45533         (HAVE_OPENAT_SUPPORT): Define.
45534         [_LIBC] (fchdir): Don't undef or define; no longer used.
45535         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45536         Now, this `function' always succeeds, and consumes its file descriptor
45537         parameter -- so callers must not close such FDs.  Update callers.
45538         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45539         (diropen): Add parameter, SP.  Adjust all callers.
45540         Implement using diropen_fd, rather than open.
45541         (fts_open): Initialize new member, fts_cwd_fd.
45542         Remove fts_rft-setting code.
45543         (fts_close): Close fts_cwd_fd, if necessary.
45544         (__opendir2): Define in terms of opendir or opendirat,
45545         depending on whether the FST_NOCHDIR flag is set.
45546         (fts_build): Since fts_safe_changedir consumes its FD, and since
45547         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45548         and close the dup'd file descriptor upon failure.
45549         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45550         (fts_safe_changedir): Tweak semantics to reflect that this function
45551         now calls cwd_advance_fd and hence consumes its FD argument.
45552         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45553         [struct FTS] (fts_rft): Remove now-unused member.
45554         [struct FTS] (fts_cycle.state): Improve comment.
45555
45556         * lib/openat.c (openat_needs_fchdir): New function.
45557         * lib/openat.h (openat_needs_fchdir): Declare it.
45558
45559 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45560
45561         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45562         Problem and fix reported by Pádraig Brady in
45563         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45564
45565 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45566
45567         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45568
45569 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45570
45571         * lib/memcoll.c (memcoll): Optimize for the common case where the
45572         arguments are bytewise equal.
45573
45574 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45575
45576         * doc/regexprops-generic.texi: Add a copyright notice.
45577
45578 2006-08-15  Bruno Haible  <bruno@clisp.org>
45579
45580         * modules/tmpdir (License): Change to LGPL.
45581
45582 2006-08-15  Bruno Haible  <bruno@clisp.org>
45583
45584         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45585         module.
45586
45587 2006-08-14  Simon Josefsson  <jas@extundo.com>
45588
45589         * config/srclist.txt: Add gnupload.
45590
45591 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45592
45593         Change copyright notice from LGPL 2 to GPL 2, since that's the
45594         standard form used in the gnulib repository.
45595         * tests/test-lock.c: Likewise.
45596         * tests/test-stdint.c: Likewise.
45597         * tests/test-tls.c: Likewise.
45598
45599         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45600         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45601         Add copyright notice.
45602
45603         * check-module: Add copyright notice.  Output a copyright
45604         notice if "--version" is specified.
45605         * modules/COPYING: New file.
45606         * tests/test-getaddrinfo.c: Add copyright notice.
45607         * tests/test-verify.c: Likewise.
45608
45609 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45610
45611         Change copyright notice from LGPL 2 to GPL 2, since that's the
45612         standard form used in the gnulib repository.
45613         * lib/lock.c: LGPL -> GPL.
45614         * lib/lock.h: Likewise.
45615         * lib/strnlen1.c: Likewise.
45616         * lib/strnlen1.h: Likewise.
45617         * lib/tls.c: Likewise.
45618         * lib/tls.h: Likewise.
45619         * lib/tmpdir.c: Likewise.
45620
45621         * lib/TODO: Remove; this belongs only in coreutils.
45622
45623 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45624
45625         Add copyright notices to long-enough files that lack them, since
45626         otherwise the files aren't clearly free.  Use the same notice that
45627         getdate.texi already uses.
45628         * doc/alloca-opt.texi: Add copyright notice.
45629         * doc/alloca.texi: Likewise.
45630         * doc/ctime.texi: Likewise.
45631         * doc/functions.texi: Likewise.
45632         * doc/gcd.texi: Likewise.
45633         * doc/gnulib-tool.texi: Likewise.
45634         * doc/inet_ntoa.texi: Likewise.
45635         * doc/visibility.texi: Likewise.
45636
45637         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45638         * doc/quote.texi: Add copyright notice.
45639
45640         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45641         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45642         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45643         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45644         is now obsolete, and give a pointer to the Sun list.
45645         Add copyright notice.
45646
45647 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45648
45649         * config/srclistvars.sh: Add copyright notice.
45650
45651 2006-08-14  Eric Blake  <ebb9@byu.net>
45652
45653         Import the following change from libc:
45654
45655         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45656
45657         Upstream bug 2997.
45658         * lib/misc/error.c: Add space between program name and message if file
45659         name is missing.
45660
45661 2006-08-12  Karl Berry  <karl@gnu.org>
45662
45663         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45664         remove, these originate in gnulib now.
45665
45666 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45667
45668         * doc/Makefile (standards.info standards.html standards.dvi):
45669         Also depend on make-stds.texi.
45670
45671 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45672
45673         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45674         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45675
45676         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45677         in wchar_t.  Problem reported by Eric Blake.
45678
45679         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45680         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45681         Also, help the compiler to keep LEN in a register.
45682
45683 2006-08-11  Eric Blake  <ebb9@byu.net>
45684
45685         * users.txt: Sort.  Add tar.
45686
45687 2006-08-11  Bruno Haible  <bruno@clisp.org>
45688
45689         * users.txt: New file.
45690
45691 2006-08-11  Bruno Haible  <bruno@clisp.org>
45692
45693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45694         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45695
45696 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45697
45698         * modules/snprintf (Depends-on): Remove minmax.
45699         (Maintainer): Add self and Bruno.
45700
45701 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45702
45703         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45704         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45705         (EOVERFLOW): Define if the system does not.
45706         Do not include "minmax.h"; it wasn't used.
45707         (snprintf): Don't assume size_t promotes to an unsigned type.
45708         Fix bug when generated string was too long for the buffer: the
45709         buffer's contents are supposed to be the initial prefix of the
45710         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45711         exceeds INT_MAX; do the check ourselves.
45712
45713         Import the following changes from libc:
45714
45715         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45716
45717         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45718         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45719         set wc to the byte which couldn't be converted.
45720         (re_string_reconstruct): Don't clear valid_raw_len before calling
45721         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45722         tip_context using re_string_context_at.
45723
45724         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45725
45726         * lib/posix/regex.h: g++ still cannot handled [restrict].
45727
45728         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45729
45730         * lib/posix/regex.h: Remove special handling for VMS.
45731
45732 2006-08-10  Jim Meyering  <jim@meyering.net>
45733
45734         * modules/same-inode: New module.
45735         * modules/dev-ino: New module.
45736         * modules/cycle-check: Depend on these modules, rather than simply
45737         including their .h files.
45738         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45739         required via m4/cycle-check.m4.
45740         * modules/same: Depend on new same-inode module, rather than
45741         including same-inode.h.
45742         * modules/chdir-safer: New file.
45743
45744         * modules/chown (Depends-on): Add stat-macros.
45745
45746 2006-08-10  Jim Meyering  <jim@meyering.net>
45747
45748         * m4/cycle-check.m4: New file.
45749         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45750         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45751
45752 2006-08-10  Eric Blake  <ebb9@byu.net>
45753
45754         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45755         in from original proposal.
45756
45757 2006-08-10  Eric Blake  <ebb9@byu.net>
45758         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45759
45760         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45761         namespace.
45762
45763 2006-08-10  Bruno Haible  <bruno@clisp.org>
45764
45765         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45766         as well.
45767
45768 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45769
45770         Sync from coreutils.
45771
45772         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45773
45774         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45775         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45776
45777 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45778
45779         * modules/restrict: Remove; no longer needed now that we assume
45780         Autoconf 2.59 or later.
45781         * MODULES.html.sh: Remove 'restrict'.
45782         * modules/argp (Depends-on): Remove 'restrict'.
45783         * modules/base64 (Depends-on): Likewise.
45784         * modules/gc (Depends-on): Likewise.
45785         * modules/getaddrinfo (Depends-on): Likewise.
45786         * modules/glob (Depends-on): Likewise.
45787         * modules/inet_ntop (Depends-on): Likewise.
45788         * modules/inet_pton (Depends-on): Likewise.
45789         * modules/memxor (Depends-on): Likewise.
45790         * modules/regex (Depends-on): Likewise.
45791         * modules/strtok_r (Depends-on): Likewise.
45792         * modules/time_r (Depends-on): Likewise.
45793
45794 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45795
45796         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45797         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45798         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45799         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45800         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45801         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45802         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45803         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45804
45805         Merge from coreutils.
45806         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45807         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45808         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45809         * m4/time_r.m4 (gl_TIME_R): Likewise.
45810
45811 2006-08-09  Karl Berry  <karl@gnu.org>
45812
45813         * config/srclist.txt: no more gettext-tools, per Bruno.
45814
45815 2006-08-08  Eric Blake  <ebb9@byu.net>
45816
45817         * modules/verror: New module.
45818         * MODULES.html.sh: Document it.
45819
45820 2006-08-08  Eric Blake  <ebb9@byu.net>
45821
45822         * lib/verror.h, lib/verror.c: New files.
45823
45824 2006-08-08  Eric Blake  <ebb9@byu.net>
45825
45826         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45827         verror_at_line output complies with GNU Coding Standards even when
45828         file is NULL.
45829
45830 2006-08-07  Bruno Haible  <bruno@clisp.org>
45831
45832         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45833         versions of AIX.
45834         Reported by Ralf Wildenhues.
45835
45836 2006-08-07  Bruno Haible  <bruno@clisp.org>
45837
45838         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45839         in an AC_DEFUN. Needed so that the autoconf snippets can use
45840         AC_REQUIRE.
45841
45842 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45843
45844         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45845         Initialize pkgdata_DATA.
45846         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45847         overriding it.
45848
45849 2006-08-06  Eric Blake  <ebb9@byu.net>
45850
45851         * lib/error.h: Fold in some upstream changes from glibc.
45852         * lib/error.c: Likewise.
45853
45854 2006-08-04  Bruno Haible  <bruno@clisp.org>
45855
45856         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45857         Make the mostlyclean-local rule depend on mostlyclean-generic.
45858         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45859
45860 2006-07-31  Bruno Haible  <bruno@clisp.org>
45861
45862         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45863         <stdlib.h>, <string.h>.
45864
45865 2006-07-30  Bruno Haible  <bruno@clisp.org>
45866
45867         * modules/readlink (License): Change to LGPL.
45868
45869 2006-07-30  Bruno Haible  <bruno@clisp.org>
45870
45871         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45872         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45873         set PKGDATADIR to point to it.
45874
45875 2006-07-30  Bruno Haible  <bruno@clisp.org>
45876
45877         * modules/csharpexec (configure.ac): Comment out macro invocation.
45878         * modules/javaexec (configure.ac): Likewise.
45879         * modules/javacomp-script (configure.ac): Likewise.
45880
45881         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45882
45883 2006-07-30  Bruno Haible  <bruno@clisp.org>
45884
45885         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45886         linked-list.
45887
45888 2006-07-30  Bruno Haible  <bruno@clisp.org>
45889
45890         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45891
45892 2006-07-30  Bruno Haible  <bruno@clisp.org>
45893
45894         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45895         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45896         get removed.
45897
45898 2006-07-29  Bruno Haible  <bruno@clisp.org>
45899
45900         Make it possible for gnulib-tool to work with locally modified or
45901         augmented gnulib repositories.
45902         * gnulib-tool (func_usage): Document --local-dir option.
45903         (local_gnulib_dir): New variable.
45904         Handle --local-dir option.
45905         (func_lookup_file): New function.
45906         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45907         (func_get_description, func_get_filelist, func_get_description,
45908         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45909         func_get_automake_snippet, func_get_include_directive,
45910         func_get_license, func_get_maintainer): Use func_lookup_file.
45911         (func_import, func_create_testdir): Use func_lookup_file.
45912
45913 2006-07-29  Bruno Haible  <bruno@clisp.org>
45914
45915         * modules/setenv (Depends-on): Add unistd.
45916
45917 2006-07-29  Bruno Haible  <bruno@clisp.org>
45918
45919         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45920
45921 2006-07-29  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45924
45925 2006-07-29  Bruno Haible  <bruno@clisp.org>
45926
45927         * gnulib-tool (import, update): If there is no Makefile.am, look at
45928         aclocal.m4, instead of bailing out.
45929
45930 2006-07-29  Bruno Haible  <bruno@clisp.org>
45931
45932         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45933         Categorize the options by when they are useful.
45934
45935 2006-07-29  Bruno Haible  <bruno@clisp.org>
45936
45937         * gnulib-tool (func_usage): Document option --no-libtool.
45938         Handle option --no-libtool.
45939         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45940         for changed semantics of $libtool variable.
45941         (func_import): Likewise. If libtool is not used, show this through
45942         an option --no-libtool.
45943         (func_create_testdir): Update.
45944
45945 2006-07-29  Bruno Haible  <bruno@clisp.org>
45946
45947         * gnulib-tool (func_import): Extend error message about missing
45948         --doc-base.
45949
45950 2006-07-29  Bruno Haible  <bruno@clisp.org>
45951
45952         * gnulib-tool (func_import): Don't create the $docbase directory if
45953         there is no file to store there.
45954
45955 2006-07-29  Bruno Haible  <bruno@clisp.org>
45956
45957         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45958         relevant, look for configure.ac there, not in the current directory.
45959         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45960
45961 2006-07-29  Bruno Haible  <bruno@clisp.org>
45962
45963         * gnulib-tool (SORT): New variable.
45964         (func_usage): Undocument --assume-autoconf option.
45965         Remove --assume-autoconf option handling.
45966         (autoconf_minversion): Determine from the contents of configure.ac.
45967         (func_import): Remove autoconf_minversion handling.
45968         Suggested by Eric Blake.
45969
45970 2006-07-29  Bruno Haible  <bruno@clisp.org>
45971
45972         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45973
45974 2006-07-29  Bruno Haible  <bruno@clisp.org>
45975
45976         * config/srclist.txt (*setenv.[ch]): Remove rules.
45977
45978 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45979
45980         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45981
45982 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45983
45984         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45985         arpa/inet.h.
45986
45987 2006-07-28  Simon Josefsson  <jas@extundo.com>
45988
45989         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45990         * modules/inet_pton (Depends-on): Likewise.
45991
45992 2006-07-28  Simon Josefsson  <jas@extundo.com>
45993
45994         * m4/netinet_in_h.m4: New file.
45995
45996 2006-07-28  Simon Josefsson  <jas@extundo.com>
45997
45998         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45999         #include's.
46000
46001 2006-07-28  Simon Josefsson  <jas@extundo.com>
46002
46003         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
46004         #include's.
46005
46006 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
46007
46008         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
46009         setgid on directories only if they set these bits.
46010         * lib/modechange.h: Remove obsolete comment about masks.
46011
46012 2006-07-28  Eric Blake  <ebb9@byu.net>
46013
46014         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
46015         macro expansion.
46016
46017 2006-07-28  Bruno Haible  <bruno@clisp.org>
46018
46019         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
46020
46021 2006-07-28  Bruno Haible  <bruno@clisp.org>
46022
46023         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
46024
46025 2006-07-28  Bruno Haible  <bruno@clisp.org>
46026
46027         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46028         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46029         Define fallbacks.
46030         Avoids link error on FreeBSD 4.x.
46031         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46032
46033         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
46034         encoding.
46035         * lib/mbswidth.c (iswcntrl): Likewise.
46036
46037 2006-07-27  Bruno Haible  <bruno@clisp.org>
46038
46039         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
46040         test.
46041
46042 2006-07-27  Bruno Haible  <bruno@clisp.org>
46043
46044         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
46045         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
46046         defined.
46047
46048 2006-07-26  Eric Blake  <ebb9@byu.net>
46049
46050         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
46051
46052 2006-07-26  Eric Blake  <ebb9@byu.net>
46053
46054         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
46055         like mingw that lack mkstemp.
46056         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
46057         avoid compilation warning on mingw.
46058
46059 2006-07-26  Bruno Haible  <bruno@clisp.org>
46060
46061         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
46062         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
46063         INT_FAST*_MIN, INTPTR_MIN.
46064
46065 2006-07-25  Bruno Haible  <bruno@clisp.org>
46066
46067         * modules/version-etc (Depends-on): Add stdarg.
46068
46069 2006-07-25  Bruno Haible  <bruno@clisp.org>
46070
46071         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
46072         complex commands.
46073
46074 2006-07-25  Bruno Haible  <bruno@clisp.org>
46075
46076         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
46077         defined in <stdarg.h> or config.h.
46078
46079 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46080
46081         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
46082         (gl_STDIO_SAFER): Remove.
46083
46084 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46085
46086         * MODULES.html.sh (File stream based Input/Output):
46087         Add fopen-safer, tmpfile-safer; remove stdio-safer.
46088         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
46089         * modules/fopen-safer, modules/tmpfile-safer: New files.
46090         * modules/stdio-safer: Remove.
46091
46092 2006-07-24  Bruno Haible  <bruno@clisp.org>
46093
46094         * modules/tmpdir: New file.
46095         * MODULES.html.sh (File system functions): Add it.
46096
46097 2006-07-24  Bruno Haible  <bruno@clisp.org>
46098
46099         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
46100         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
46101
46102 2006-07-24  Bruno Haible  <bruno@clisp.org>
46103
46104         * modules/clean-temp: New file.
46105
46106 2006-07-24  Bruno Haible  <bruno@clisp.org>
46107
46108         * m4/tmpdir.m4: New file, from GNU gettext.
46109
46110 2006-07-24  Bruno Haible  <bruno@clisp.org>
46111
46112         * lib/tmpdir.h: New file, from GNU gettext.
46113         * lib/tmpdir.c: New file, from GNU gettext.
46114
46115 2006-07-24  Bruno Haible  <bruno@clisp.org>
46116
46117         * lib/clean-temp.h: New file, from GNU gettext.
46118         * lib/clean-temp.c: New file, from GNU gettext.
46119
46120 2006-07-23  Eric Blake  <ebb9@byu.net>
46121
46122         * modules/stdio-safer (Files): Add tmpfile-safer.c.
46123         (Depends-on): Add binary-io.
46124
46125 2006-07-23  Eric Blake  <ebb9@byu.net>
46126
46127         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
46128
46129 2006-07-23  Eric Blake  <ebb9@byu.net>
46130
46131         * lib/tmpfile-safer.c: New file.
46132         * lib/stdio-safer.h (fopen_safer): Add prototype.
46133         * lib/stdio--.h (tmpfile): Make safer.
46134
46135 2006-07-23  Bruno Haible  <bruno@clisp.org>
46136
46137         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
46138         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
46139         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
46140         gl_linked_remove_at): Use it.
46141
46142 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46143         and Simon Josefsson <jas@extundo.com>
46144
46145         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
46146
46147         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
46148
46149 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         * modules/close-stream: New file.
46152         * modules/closeout (Description): Make it clear that it exits
46153         with a diagnostic on error.
46154         (Depends-on): Add close-stream.  Remove fpending, stdbool.
46155         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
46156
46157 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46158
46159         * m4/close-stream.m4: New file.
46160
46161 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46162
46163         * lib/close-stream.c, lib/close-stream.h: New files.
46164
46165 2006-07-22  Bruno Haible  <bruno@clisp.org>
46166
46167         Merge from GNU gettext 0.15.
46168
46169         2006-05-01  Bruno Haible  <bruno@clisp.org>
46170
46171                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
46172
46173         2006-07-22  Bruno Haible  <bruno@clisp.org>
46174
46175                 * modules/javaversion: New file.
46176                 * MODULES.html.sh (Java): Add javaversion.
46177
46178         2006-03-12  Bruno Haible  <bruno@clisp.org>
46179
46180                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
46181
46182         2005-12-04  Bruno Haible  <bruno@clisp.org>
46183
46184                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
46185                 (untested).
46186
46187         2006-06-21  Bruno Haible  <bruno@clisp.org>
46188
46189                 Avoid warnings from recent versions of mcs.
46190                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
46191                 -o, -L, -r any more. Use options documented since mcs-1.0
46192                 instead. Similarly for -g.
46193
46194         2005-12-04  Bruno Haible  <bruno@clisp.org>
46195
46196                 * build-aux/csharpcomp.sh.in: Suffix for resources is
46197                 .resources, not .resource.
46198
46199         2005-07-09  Bruno Haible  <bruno@clisp.org>
46200
46201                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
46202                 add a .dll suffix.
46203                 Reported by Mark Junker <mjscod@gmx.de>.
46204
46205         2006-07-22  Bruno Haible  <bruno@clisp.org>
46206
46207                 * modules/gettext: Upgrade to gettext-0.15.
46208                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
46209                 m4/visibility.m4.
46210                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
46211
46212 2006-07-22  Bruno Haible  <bruno@clisp.org>
46213
46214         Merge from GNU gettext 0.15.
46215
46216         2006-03-25  Bruno Haible  <bruno@clisp.org>
46217
46218                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
46219
46220         2006-07-21  Bruno Haible  <bruno@clisp.org>
46221
46222                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
46223                 "1.1".
46224
46225         2006-05-09  Bruno Haible  <bruno@clisp.org>
46226
46227                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
46228                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
46229                 for the conftestver execution.
46230
46231         2006-05-01  Bruno Haible  <bruno@clisp.org>
46232
46233                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
46234                 optional target-version argument. Verify that the compiler
46235                 groks source of the specified source-version, or add -source
46236                 option as necessary. Verify that the compiler produces
46237                 bytecode in the specified target-version, or add -target and
46238                 -source options as necessary. Make the result of the test
46239                 available as variable CONF_JAVAC. Also log error output in
46240                 config.log.
46241
46242         2006-03-11  Bruno Haible  <bruno@clisp.org>
46243
46244                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
46245
46246         2006-05-09  Bruno Haible  <bruno@clisp.org>
46247
46248                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
46249                 CLASSPATH_SEPARATOR to a semicolon.
46250
46251         2006-03-12  Bruno Haible  <bruno@clisp.org>
46252
46253                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
46254                 available as variable CONF_JAVA, for subsequent autoconf
46255                 tests. Also log error output in config.log.
46256
46257         2006-07-19  Bruno Haible  <bruno@clisp.org>
46258
46259                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
46260                 that getline works on glibc2 systems. Needed to avoid trouble
46261                 in relocatable.c.
46262                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
46263
46264         2005-12-04  Bruno Haible  <bruno@clisp.org>
46265
46266                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
46267                 launcher (untested).
46268
46269         2005-12-04  Bruno Haible  <bruno@clisp.org>
46270
46271                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
46272
46273         2006-07-22  Bruno Haible  <bruno@clisp.org>
46274
46275                 * gettext.m4: Update from GNU gettext-0.15.
46276                 * nls.m4: Likewise.
46277                 * po.m4: Likewise.
46278                 * inttypes-pri.m4: Likewise.
46279                 * inttypes-h.m4: Renamed from inttypes.m4.
46280                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
46281
46282 2006-07-22  Bruno Haible  <bruno@clisp.org>
46283
46284         Merge from GNU gettext 0.15.
46285
46286         2005-07-05  Bruno Haible  <bruno@clisp.org>
46287
46288                 * printf-args.c (printf_fetchargs): Work around broken
46289                 definition of wint_t on mingw.
46290
46291         2005-02-12  Bruno Haible  <bruno@clisp.org>
46292
46293                 * xallocsa.h: Add extern "C" for C++.
46294
46295         2006-05-17  Bruno Haible  <bruno@clisp.org>
46296
46297                 Cygwin portability.
46298                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
46299
46300         2006-04-30  Bruno Haible  <bruno@clisp.org>
46301
46302                 * progreloc.c: Include <mach-o/dyld.h> if available.
46303                 (find_executable): Use _NSGetExecutablePath when possible.
46304
46305         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46306
46307                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
46308                 function.
46309
46310         2005-12-29  Bruno Haible  <bruno@clisp.org>
46311
46312                 * progreloc.c (set_program_name_and_installdir): Fix
46313                 compilation error.
46314
46315         2005-12-04  Bruno Haible  <bruno@clisp.org>
46316
46317                 Cygwin portability.
46318                 * progreloc.c: Include <windows.h> also on Cygwin.
46319                 (find_executable): Add support for Cygwin.
46320                 (set_program_name_and_installdir): Handle also platforms with
46321                 nonempty EXEEXT.
46322
46323         2006-07-11  Bruno Haible  <bruno@clisp.org>
46324
46325                 * javacomp.c: Fix a comment.
46326                 Reported by Jim Meyering.
46327
46328         2006-04-30  Bruno Haible  <bruno@clisp.org>
46329
46330                 * javacomp.h (compile_java_class): Add source_version,
46331                 target_version arguments.
46332                 * javacomp.c: Rewritten to choose only a compiler that
46333                 respects the specified source_version and target_version.
46334
46335         2006-06-27  Bruno Haible  <bruno@clisp.org>
46336
46337                 Assume correct S_ISDIR macro.
46338                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46339
46340         2006-07-22  Bruno Haible  <bruno@clisp.org>
46341
46342                 * javaversion.h: New file, from GNU gettext.
46343                 * javaversion.c: New file, from GNU gettext.
46344                 * javaversion.java: New file, from GNU gettext.
46345                 * javaversion.class: New file, from GNU gettext.
46346
46347         2006-05-17  Bruno Haible  <bruno@clisp.org>
46348
46349                 Cygwin portability.
46350                 * javaexec.c (execute_java_class): Test for jview program
46351                 also on Cygwin.
46352
46353         2006-04-09  Bruno Haible  <bruno@clisp.org>
46354
46355                 * fatal-signal.c: Don't include string.h.
46356                 (at_fatal_signal): Use a copying loop instead of memcpy.
46357
46358         2005-12-04  Bruno Haible  <bruno@clisp.org>
46359
46360                 * csharpexec.c: Add support for 'clix' launcher (untested).
46361                 (execute_csharp_using_sscli): New function.
46362                 (execute_csharp_program): Call it.
46363
46364         2006-06-21  Bruno Haible  <bruno@clisp.org>
46365
46366                 Avoid warnings from recent versions of mcs.
46367                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46368                 -o, -L, -r any more. Use options documented since mcs-1.0
46369                 instead. Similarly for -g.
46370
46371         2005-07-09  Bruno Haible  <bruno@clisp.org>
46372
46373                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46374                 add a .dll suffix.
46375                 Reported by Mark Junker <mjscod@gmx.de>.
46376
46377         2006-06-17  Bruno Haible  <bruno@clisp.org>
46378
46379                 * config.charset: Update for NetBSD 3.0.
46380
46381         2006-05-17  Bruno Haible  <bruno@clisp.org>
46382
46383                 Cygwin portability.
46384                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46385
46386         2006-05-16  Bruno Haible  <bruno@clisp.org>
46387
46388                 * localcharset.c [CYGWIN]: Include <windows.h>.
46389                 (get_charset_aliases): For Cygwin, return the same CPxxx
46390                 aliases list as under WIN32.
46391                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46392                 the environment variables. Fall back to GetACP().
46393
46394         2006-04-05  Bruno Haible  <bruno@clisp.org>
46395
46396                 * config.charset: Update Juan Manuel Guerrero's address.
46397
46398         2005-02-12  Bruno Haible  <bruno@clisp.org>
46399
46400                 * allocsa.h: Add extern "C" for C++.
46401
46402         2005-02-10  Bruno Haible  <bruno@clisp.org>
46403
46404                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46405                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46406
46407         2006-07-22  Bruno Haible  <bruno@clisp.org>
46408
46409                 * gettext.h: Update to GNU gettext-0.15.
46410
46411 2006-07-22  Bruno Haible  <bruno@clisp.org>
46412
46413         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46414         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46415         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46416
46417 2006-07-21  Eric Blake  <ebb9@byu.net>
46418
46419         * modules/stdlib-safer: New file.
46420         * MODULES.html.sh (File stream based Input/Output): Add
46421         stdlib-safer.
46422
46423 2006-07-21  Eric Blake  <ebb9@byu.net>
46424
46425         * lib/stdlib-safer.h: New file from coreutils, required by
46426         stdlib--.h.
46427
46428 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46429
46430         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46431
46432 2006-07-20  Bruno Haible  <bruno@clisp.org>
46433
46434         * gnulib-tool: Recognize new option --assume-autoconf.
46435         (autoconf_minversion): New variable.
46436         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46437
46438 2006-07-20  Bruno Haible  <bruno@clisp.org>
46439
46440         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46441
46442 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46443
46444         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46445         Reindent and repaginate.
46446
46447 2006-07-19  Derek Price  <derek@ximbiot.com>
46448
46449         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46450         Correct grammar.
46451
46452 2006-07-17  Bruno Haible  <bruno@clisp.org>
46453
46454         * modules/list: New file.
46455         * modules/array-list: New file.
46456         * modules/carray-list, modules/carray-list-tests: New files.
46457         * modules/linked-list, modules/linked-list-tests: New files.
46458         * modules/avltree-list, modules/avltree-list-tests: New files.
46459         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46460         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46461         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46462         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46463         * modules/oset: New file.
46464         * modules/array-oset: New file.
46465         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46466         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46467         * tests/test-carray_list.c: New file.
46468         * tests/test-linked_list.c: New file.
46469         * tests/test-avltree_list.c: New file.
46470         * tests/test-rbtree_list.c: New file.
46471         * tests/test-linkedhash_list.c: New file.
46472         * tests/test-avltreehash_list.c: New file.
46473         * tests/test-rbtreehash_list.c: New file.
46474         * tests/test-avltree_oset.c: New file.
46475         * tests/test-rbtree_oset.c: New file.
46476         * MODULES.html.sh (Container data structures): New section.
46477
46478 2006-07-17  Bruno Haible  <bruno@clisp.org>
46479
46480         * m4/gl_list.m4: New file.
46481
46482 2006-07-17  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/gl_list.h: New file.
46485         * lib/gl_list.c: New file.
46486         * lib/gl_array_list.h: New file.
46487         * lib/gl_array_list.c: New file.
46488         * lib/gl_carray_list.h: New file.
46489         * lib/gl_carray_list.c: New file.
46490         * lib/gl_linked_list.h: New file.
46491         * lib/gl_linked_list.c: New file.
46492         * lib/gl_anylinked_list1.h: New file.
46493         * lib/gl_anylinked_list2.h: New file.
46494         * lib/gl_avltree_list.h: New file.
46495         * lib/gl_avltree_list.c: New file.
46496         * lib/gl_anyavltree_list1.h: New file.
46497         * lib/gl_anyavltree_list2.h: New file.
46498         * lib/gl_rbtree_list.h: New file.
46499         * lib/gl_rbtree_list.c: New file.
46500         * lib/gl_anyrbtree_list1.h: New file.
46501         * lib/gl_anyrbtree_list2.h: New file.
46502         * lib/gl_anytree_list1.h: New file.
46503         * lib/gl_anytree_list2.h: New file.
46504         * lib/gl_linkedhash_list.h: New file.
46505         * lib/gl_linkedhash_list.c: New file.
46506         * lib/gl_anyhash_list1.h: New file.
46507         * lib/gl_anyhash_list2.h: New file.
46508         * lib/gl_avltreehash_list.h: New file.
46509         * lib/gl_avltreehash_list.c: New file.
46510         * lib/gl_rbtreehash_list.h: New file.
46511         * lib/gl_rbtreehash_list.c: New file.
46512         * lib/gl_anytreehash_list1.h: New file.
46513         * lib/gl_anytreehash_list2.h: New file.
46514
46515         * lib/gl_oset.h: New file.
46516         * lib/gl_oset.c: New file.
46517         * lib/gl_array_oset.h: New file.
46518         * lib/gl_array_oset.c: New file.
46519         * lib/gl_avltree_oset.h: New file.
46520         * lib/gl_avltree_oset.c: New file.
46521         * lib/gl_rbtree_oset.h: New file.
46522         * lib/gl_rbtree_oset.c: New file.
46523         * lib/gl_anytree_oset.h: New file.
46524
46525 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46526
46527         * m4/mkancesdirs.m4: New file.
46528         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46529         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46530         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46531         it.
46532
46533 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46534
46535         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46536         * lib/mkancesdirs.h: New files.
46537         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46538         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46539         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46540         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46541         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46542         callers changed.  Revamp internals significantly, by not
46543         attempting to create directories that are temporarily more
46544         permissive than the final results.  Do not attempt to use
46545         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46546         This removes some race conditions, fixes some bugs, and simplifies
46547         things.  Use new dirchownmod function to do owner and mode changes.
46548         * lib/mkdir-p.h: Likewise.
46549         * lib/modechange.c (octal_to_mode): New function.
46550         (struct mode_change): New member mentioned.
46551         (make_node_op_equals): New arg mentioned.  All callers changed.
46552         (mode_compile): Keep track of which mode bits the user has explicitly
46553         mentioned.
46554         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46555         New arg PMODE_BITS, to keep track of which mode bits the user
46556         mentioned; it treats S_ISUID and S_ISGID speciall.
46557         All callers changed.
46558         * lib/modechange.h: Likewise.
46559
46560 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46561
46562         * MODULES.html.sh: Add mkancestors.
46563         * modules/mkancesdirs: New module.
46564         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46565         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46566         The chdir-safer and afs files are now orphans; I'll remove them
46567         unless someone speaks up.
46568         Add lib/dirchownmod.c, lib/dirchownmod.h.
46569         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46570         Add lchown, mkancesdirs.
46571         (Maintainer): Add self.
46572
46573 2006-07-15  Karl Berry  <karl@gnu.org>
46574
46575         * gnulib-tool: help message wording/arrangement.
46576
46577 2006-07-14  Simon Josefsson  <jas@extundo.com>
46578
46579         * doc/gnulib.texi (Libtool and Windows): New section.
46580
46581 2006-07-12  Simon Josefsson  <jas@extundo.com>
46582
46583         * modules/gendocs (License): Fix license, approved by Karl.
46584
46585 2006-07-12  Eric Blake  <ebb9@byu.net>
46586
46587         * MODULES.html.sh: Add gendocs.
46588
46589 2006-07-11  Eric Blake  <ebb9@byu.net>
46590
46591         * modules/fdl: New module, to install doc/fdl.texi.
46592         * MODULES.html.sh: Add new section for documentation modules.
46593         * gnulib-tool: Avoid space-tab.
46594         (--doc-base): New option, to manage files from doc.
46595
46596 2006-07-11  Eric Blake  <ebb9@byu.net>
46597
46598         * m4/absolute-header.m4: Fix comments to match recent change.
46599
46600 2006-07-11  Eric Blake  <ebb9@byu.net>
46601
46602         * gnulib-tool: List --doc-base before --tests-base.
46603
46604 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46605
46606         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46607
46608 2006-07-11  Bruno Haible  <bruno@clisp.org>
46609
46610         * README: Mention where to put documentation.
46611
46612 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46613
46614         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46615
46616 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46617
46618         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46619         to stdint.m4.
46620
46621 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46622
46623         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46624         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46625         "no/such/file/stdint.h" when there is no such file, so that
46626         the resulting C code can be parsed by dodgy compilers.
46627         Problems reported by Bob Proulx.
46628
46629 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46630
46631         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46632         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46633         macros into the GNU _D_EXACT_NAMLEN.
46634         * lib/savedir.c:  Likewise.
46635         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46636
46637 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46638         and Paul Eggert  <eggert@cs.ucla.edu>
46639
46640         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46641         * m4/savedir.m4:
46642         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46643         macros into the GNU _D_EXACT_NAMLEN.
46644
46645 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46646
46647         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46648         around the absolute name, to work around a problem with the HP-UX
46649         11.23 native C compiler, reported by Bob Proulx.
46650
46651 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46652
46653         * doc/maintain.texi, make-stds.texi: Sync from
46654         <http://savannah.gnu.org/projects/gnustandards>.
46655
46656 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46657
46658         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46659
46660 2006-07-09  Jim Meyering  <jim@meyering.net>
46661
46662         * m4/glob.m4: Remove a doubled word in a comment.
46663
46664 2006-07-09  Jim Meyering  <jim@meyering.net>
46665
46666         * lib/argp-pv.c: Remove a doubled word in a comment.
46667         * lib/check-version.c (check_version): Likewise.
46668         * lib/javacomp.c (compile_java_class): Likewise.
46669
46670 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46671
46672         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46673         for the benefit of people using Autoconf 2.60.  If you want to
46674         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46675         (or m4/onceonly.m4, if pre-2.57) manually.
46676
46677 2006-07-08  Jim Meyering  <jim@meyering.net>
46678
46679         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46680         comment.
46681         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46682         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46683         comment.
46684
46685 2006-07-08  Jim Meyering  <jim@meyering.net>
46686
46687         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46688
46689 2006-07-07  Simon Josefsson  <jas@extundo.com>
46690
46691         * tests/test-crc.c: Change expected crc value, the test vector
46692         were probably computed using the old broken crc.c?
46693
46694 2006-07-06  Simon Josefsson  <jas@extundo.com>
46695
46696         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46697         now the canonical place for the M4 file).
46698
46699         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46700         from the sys_socket dependency now.
46701
46702         * modules/inet_pton (Files): Ditto.
46703
46704         * modules/inet_ntop (Files): Ditto.
46705
46706 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46707
46708         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46709         not gl_PREREQ_GETUSERSHELL.
46710
46711 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46712
46713         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46714         with only one argument, for Autoconf 2.60.
46715         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46716         expand to nothing, so add a shell command to avoid syntax error.
46717         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46718
46719 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46720
46721         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46722
46723 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46724
46725         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46726         no longer needed.  Check for isblank decl.
46727         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46728         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46729         of existence.
46730
46731 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46732
46733         * lib/getloadavg.c: Use __VMS, not VMS.
46734         * lib/getopt.c: Likewise.
46735         * lib/getpagesize.h: Likewise.
46736         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46737         and probably does not work.
46738
46739 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46740
46741         * lib/.cppi-disable: Add wcwidth.
46742         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46743         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46744         (ISGRAPH): Remove.  All uses changed to isgraph.
46745         (FOLD) [!defined _LIBC]: Remove special case.
46746         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46747         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46748         HAVE_ISBLANK.
46749         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46750         case.
46751
46752 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46753
46754         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46755         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46756         brackets.  Other minor changes to suppress some compiler
46757         warnings.
46758
46759 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46760         and Paul Eggert  <eggert@cs.ucla.edu>
46761
46762         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46763         of invoking obsolescent AC_HEADER_DIRENT macro.
46764         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46765         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46766         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46767         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46768         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46769         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46770         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46771         * m4/readdir.m4: Remove; no longer needed.
46772
46773 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46774         and Paul Eggert  <eggert@cs.ucla.edu>
46775
46776         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46777         Don't worry about this obsolete case any more.
46778         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46779         directories.
46780         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46781         worry about this obsolete case any more.
46782         * lib/fts.c: Likewise.
46783         * lib/getcwd.c: Likewise.
46784         * lib/glob.h: Likewise.
46785         * lib/savedir.c: Likewise.
46786
46787 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46788
46789         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46790         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46791         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46792         needed.
46793         All uses removed.
46794         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46795         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46796         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46797         needed.
46798         * m4/getdate.m4 (gl_GETDATE): Likewise.
46799         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46800         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46801         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46802         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46803         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46804         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46805         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46806         needed.
46807
46808 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46809
46810         * lib/memcasecmp.c: Include <limits.h>.
46811         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46812         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46813         Don't assume isdigit succeeds only on '0' through '9'.
46814
46815 2006-07-05  Eric Blake  <ebb9@byu.net>
46816
46817         * modules/getaddrinfo (Depends-on): Add snprintf.
46818
46819 2006-07-05  Eric Blake  <ebb9@byu.net>
46820
46821         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46822         to avoid 'header present but could not be compiled' on cygwin.
46823
46824 2006-07-05  Eric Blake  <ebb9@byu.net>
46825
46826         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46827         missing from netdb.h.
46828         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46829
46830 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46831
46832         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46833         no longer needed.
46834         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46835         * m4/getdate.m4 (gl_GETDATE): Likewise.
46836         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46837         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46838         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46839         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46840         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46841
46842 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46843
46844         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46845         All uses of is_space replaced by isspace.
46846         * lib/exit.h: Don't talk about STDC_HEADERS.
46847         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46848         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46849         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46850         replaced by isprint etc.
46851         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46852         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46853         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46854         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46855         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46856         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46857
46858 2006-07-05  Bruno Haible  <bruno@clisp.org>
46859
46860         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46861         the function exists, before testing against AIX.
46862         Reported by Martin Lambers <marlam@marlam.de>.
46863
46864 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46865
46866         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46867         From Mark D. Baushke.
46868
46869 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46870
46871         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46872         to the absolute name, not just one, to bypass Sun C 5.8's
46873         "warning: #include of /usr/include/... may be non-portable".
46874
46875 2006-07-04  Eric Blake  <ebb9@byu.net>
46876
46877         * modules/dirname-tests: New test module.
46878         * tests/test-dirname.c: New file, replacing dirname.c
46879         TEST_DIRNAME section that was recently deleted.
46880
46881 2006-07-04  Bruno Haible  <bruno@clisp.org>
46882
46883         Assume ANSI C header files and <ctype.h> functions.
46884         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46885         (mbsnwidth): Use isprint, iscntrl instead.
46886
46887 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46888
46889         Merge from coreutils.
46890         * MODULES.html.sh: Add xstrtold.
46891         * modules/xstrtold: New file.
46892         * modules/cycle-check (Files): Add lib/same-inode.h.
46893         * modules/dirname (Files): Add m4/double-slash-root.m4.
46894         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46895         * modules/mkdir-p (Files): Add lib/same-inode.h.
46896         * modules/same (Files): Add lib/same-inode.h.
46897
46898 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46899
46900         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46901         This is to keep the terminology clean; POSIX talks about
46902         "absolute pathnames", not "full pathnames", but the GNU
46903         Coding Standards say to use "path" for something else;
46904         so use "absolute" to keep both sides happy.
46905         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46906         Set gl_absolute_header, not gl_full_header_path.
46907         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46908         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46909         All uses changed.
46910
46911         Merge from coreutils.
46912
46913         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46914
46915         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46916         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46917         want to require the building of c-strtod.o.
46918         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46919         needs -lm directly.
46920         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46921
46922         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46923
46924         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46925         --as-needed option if available.  Problem reported by Albert Chin in
46926         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46927         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46928         cc merely issues a bunch of annoying warnings for --as-needed
46929         (this problem was reported by Bob Proulx).  Also, try linking with
46930         -lm to detect a bug in binutils 2.16 (this problem was reported
46931         by Ralf Wildenhues).
46932
46933         2006-06-18  Jim Meyering  <jim@meyering.net>
46934
46935         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46936         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46937         macro.
46938         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46939         also check for glibc-2.4's abort-inducing bug.
46940
46941         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46942         Low-probability clean-up should be to use rmdir to get rid of
46943         the just-created directory, not unlink.
46944
46945         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46946         configure fail, and request a bug report to inform us about it.
46947         Add a comment that, barring reports to the contrary, in 2007 we'll
46948         assume ftruncate is universally available.
46949
46950         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46951
46952         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46953
46954         2006-03-12  Jim Meyering  <jim@meyering.net>
46955
46956         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46957         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46958         * m4/same.m4 (gl_SAME): Likewise.
46959         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46960
46961         2006-03-11  Eric Blake  <ebb9@byu.net>
46962
46963         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46964         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46965         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46966         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46967
46968 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46969
46970         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46971         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46972         reported by Mark D. Baushke, one in
46973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46974
46975         Merge from coreutils.
46976
46977         * lib/.cppi-disable: Add stdint_.h.
46978         * lib/.cvsignore: Add stdint.h.
46979
46980         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46981
46982         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46983         both double and long double versions.
46984         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46985         * lib/xstrtold.c: New file.
46986         * lib/xstrtod.h (xstrtold): New decl.
46987
46988         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46989
46990         * lib/filemode.c (setst): Remove.
46991         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46992         (arguably) clearer, and the generated code is a bit smaller on my
46993         Debian GNU/Linux stable x86 host.
46994
46995         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46996
46997         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46998         Assume that filemode.h includes sys/types.h and sys/stat.h.
46999         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
47000         (ftypelet): Reorder to put common cases first, for efficiency.
47001         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
47002         to do 'M'.
47003         (strmode): Renamed from mode_string, and now stores 12 bytes instead
47004         of 10, for compatibility with FreeBSD.  All callers changed.
47005         (filemodestring): Now stores 12 bytes instead of 10, and sets file
47006         types that can't be deduced solely from st_mode.  First arg is now a
47007         const pointer.
47008         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
47009         (strmode): Renamed from mode_string.
47010         (filemodestring): New decl.
47011         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
47012         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
47013         needed.
47014         (S_ISPORT, S_ISWHT): New macros, if not already defined.
47015
47016         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
47017
47018         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
47019         fsusage.h now does that.  Include fsusage.h first, to test interface.
47020         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
47021         at most one method (the old code could have generated decls that
47022         didn't conform to C89, not that this was ever exercised).
47023         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
47024
47025         2006-03-19  Jim Meyering  <jim@meyering.net>
47026
47027         Work even in a chroot where d_ino values for entries in "/"
47028         don't match the stat.st_ino values for the same names.
47029         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
47030         number, iterate through all entries again, using lstat instead.
47031         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
47032         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
47033
47034         * lib/getcwd.c (__getcwd): Clarify a comment.
47035         Use memcpy in place of a call to strcpy.
47036
47037         2006-03-12  Jim Meyering  <jim@meyering.net>
47038
47039         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
47040         matches that of the current directory (which we're about to chdir ".."
47041         out of), then save the dev-ino of the parent, instead.
47042
47043         * lib/same-inode.h (SAME_INODE): New file/macro.
47044         * lib/chdir-safer.c (SAME_INODE): Remove definition.
47045         Include "same-inode.h", instead.
47046         * lib/same.c: Likewise.
47047         * lib/cycle-check.h: Include "same-inode.h".
47048         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
47049         * lib/cycle-check.c (SAME_INODE): Remove definition.
47050         * lib/root-dev-ino.h: Include "same-inode.h".
47051
47052         2006-03-11  Eric Blake  <ebb9@byu.net>
47053
47054         * lib/same.c (same_name): s/base_name/last_component/
47055         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
47056         * lib/filenamecat.c (file_name_concat): Likewise.
47057
47058         2006-03-11  Eric Blake  <ebb9@byu.net>,
47059                     Paul Eggert  <eggert@cs.ucla.edu>
47060
47061         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
47062         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
47063         drive prefix.
47064         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
47065         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
47066         (last_component): New method.
47067         * lib/dirname.c (dir_len): Determine when drive letters need a
47068         subsequent slash.  Preserve // when it is special.
47069         (dir_name): Don't append dot when drive letter is absolute.
47070         [TEST_DIRNAME]: Move into a full-blown gnulib test.
47071         * lib/basename.c (base_name): New semantics - malloc the result.
47072         Preserve // when it is special.  Preserve relative files that look
47073         like drive letters.
47074         (base_len): Preserve // when it is special.
47075         (last_component): New method, similar to old base_name semantics.
47076         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
47077         base_name.  Strip redundant slashes from ///.
47078
47079 2006-07-03  Jim Meyering  <jim@meyering.net>
47080
47081         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
47082         macro is used before the first cycle_check call.
47083
47084 2006-07-03  Eric Blake  <ebb9@byu.net>
47085
47086         * modules/dirname (Depends-on): Add xstrndup.
47087
47088 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47089
47090         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
47091         test cases, so that config.log is a bit easier to follow.
47092
47093 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47094
47095         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
47096         both are 64 bits, since this seems to be the tradition, and this
47097         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
47098         we ever run into a host that prefers long long to long in this
47099         case, we'll need another configure-time test.  Problem reported by
47100         Jim Meyering.
47101
47102 2006-07-02  Eric Blake  <ebb9@byu.net>
47103
47104         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
47105
47106 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47107
47108         * modules/inttypes (Depends-on): No longer depends on stdint.
47109         * modules/stdint (Description): Say more about assumptions.
47110         Say that the fast types might differ.  Say macros are used.
47111         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
47112         (Makefile.am): Revise list of substituted symbols to match
47113         new stdint.m4.
47114         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
47115         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
47116         * tests/test-stdint.c (verify_same_types)
47117         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
47118         the code conforms to C99/C89.
47119         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
47120         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
47121
47122 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47123
47124         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
47125         but fix a bug, by requiring at least 64 bits.
47126         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47127         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
47128         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
47129         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
47130
47131         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
47132         changes.  Make 2.59 a prerequisite.  Check and substitute for
47133         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
47134         inttypes.h.  Do not use special include files; just use the
47135         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
47136         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
47137         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
47138         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
47139         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
47140         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
47141         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
47142         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
47143         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
47144         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
47145         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
47146         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
47147         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
47148         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
47149         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
47150         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
47151         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
47152         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
47153         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
47154         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
47155         WINT_MAX.  Check for C99 conformance more strictly, by detecting
47156         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
47157         not check for things that C99 does not require, e.g., int8_t.  If
47158         a test isn't needed unless <stdint.h> isn't working, and is
47159         unlikely to be needed for any other reason, then don't do it
47160         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
47161         size_t, since we assume C89 freestanding at least.  Do not check
47162         for sig_atomic_t, wchar_t, or wint_t, since the code now does
47163         the right thing even if the types are not defined.  Instead use:
47164         (gl_STDINT_TYPE_PROPERTIES): New macro.
47165         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
47166         testing whether <sys/types.h> clashes, as Autoconf does this for
47167         us now.  All uses removed.
47168         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
47169         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
47170         (gl_CHECK_TYPE_SAME):
47171         Remove; no longer needed.
47172         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
47173         exists, since we'll return 0 anyway in that case.
47174         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
47175
47176 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47177
47178         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
47179         possible collision with system files.
47180         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
47181         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
47182         WCHAR_MIN and WCHAR_MAX in this case.
47183         (<stddef.h>): Do not include; no longer needed.
47184         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
47185         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
47186         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
47187         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
47188         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
47189         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
47190         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
47191         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
47192         !defined(__c99))]: Include in this case too, since it's harmless
47193         now.
47194         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
47195         dangerous to do so.
47196         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
47197         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
47198         (_STDINT_MIN, _STDINT_MAX): New macros.
47199         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
47200         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
47201         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
47202         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
47203         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
47204         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
47205         macros, not typedefs; this simplifies things quite a bit.
47206         Use long int for all types narrower than int64_t.
47207         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
47208         Define in terms of long long int or int64_t or long int,
47209         not int64_t or int32_t.  This saves some compile-time testing.
47210         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
47211         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
47212         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
47213         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
47214         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
47215         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
47216         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
47217         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
47218         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
47219         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
47220         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47221         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47222         undef any previous version and define our own version, for
47223         simplicity and consistency with the new macros for types.
47224         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47225         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47226         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
47227         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
47228         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
47229         @WINT_T_SUFFIX@ to keep things simple here.
47230         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
47231         Simplify by assuming typical 8/16/32/64 host, since we're
47232         already doing that elsewhere anyway.
47233         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
47234         and assume long long int is 64 bits if available.  This
47235         speeds up 'configure'.
47236
47237 2006-07-01  Eric Blake  <ebb9@byu.net>
47238
47239         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
47240         Reported by Andreas Buening.
47241
47242 2006-07-01  Eric Blake  <ebb9@byu.net>
47243
47244         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
47245
47246 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
47247
47248         * lib/getaddrinfo.c: fixed typo
47249
47250 2006-06-29  Jim Meyering  <jim@meyering.net>
47251
47252         * modules/strftime (Maintainer): Add my name, since with the
47253         FPRINTFTIME changes strftime.c has forked from glibc.
47254
47255 2006-06-29  Eric Blake  <ebb9@byu.net>
47256
47257         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
47258
47259 2006-06-29  Eric Blake  <ebb9@byu.net>
47260
47261         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
47262
47263 2006-06-29  Eric Blake  <ebb9@byu.net>
47264
47265         * lib/stat_.h: New file.
47266
47267 2006-06-29  Eric Blake  <ebb9@byu.net>
47268
47269         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
47270         unused static function.
47271
47272 2006-06-29  Eric Blake  <ebb9@byu.net>
47273
47274         * doc/functions.texi (Function Portability): Document missing lstat
47275         on mingw.
47276
47277 2006-06-29  Eric Blake  <ebb9@byu.net>
47278
47279         * MODULES.html.sh: Add sys_stat.
47280         * modules/sys_stat: New module.
47281         * modules/mkstemp (Depends-on): Add sys_stat.
47282
47283 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47284
47285         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
47286
47287 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47288
47289         * m4/c-bs-a.m4: Removed.
47290
47291 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47292
47293         * lib/strftime.c: Assume strftime() exists.
47294
47295 2006-06-29  Derek Price  <derek@ximbiot.com>
47296
47297         * modules/c-bs-a: Removed - \a is C89.
47298         * MODULES.html.sh: Remove c-bs-a.
47299
47300 2006-06-29  Bruno Haible  <bruno@clisp.org>
47301
47302         * modules/wcwidth (License): Change to LGPL.
47303
47304 2006-06-28  Simon Josefsson  <jas@extundo.com>
47305
47306         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
47307         on _WIN32.
47308
47309         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
47310         getnameinfo.
47311
47312 2006-06-28  Simon Josefsson  <jas@extundo.com>
47313
47314         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
47315
47316 2006-06-28  Simon Josefsson  <jas@extundo.com>
47317
47318         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
47319         functions there.  It will succeed on Windows XP, but on Windows
47320         2000 and (presumably) earlier, it will fail, and use the internal
47321         re-implementation.
47322         (use_win32_p): New function.
47323         (getaddrinfo): Use strtoul on servname, to support numeric ports.
47324         Support AI_NUMERICSERV to disable getservbyname.
47325         (getnameinfo): New function, only supports
47326         NI_NUMERICHOST|NI_NUMERICSERV for now.
47327
47328         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
47329         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
47330         getnameinfo.
47331
47332 2006-06-28  Eric Blake  <ebb9@byu.net>
47333
47334         * modules/wcwidth: New file.
47335         * modules/mbchar (Depends-on): Add wcwidth.
47336         * modules/mbswidth (Depends-on): Add wcwidth.
47337         * MODULES.html.sh: Add wcwidth.
47338
47339 2006-06-28  Eric Blake  <ebb9@byu.net>
47340
47341         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47343
47344 2006-06-28  Eric Blake  <ebb9@byu.net>
47345
47346         * lib/xvasprintf.h: Fix comments.
47347
47348 2006-06-28  Eric Blake  <ebb9@byu.net>
47349
47350         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47351         * lib/mbswidth.c (wcwidth): Move from here...
47352         * lib/wcwidth.h: ...to this new file.
47353
47354 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47355
47356         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47357
47358         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47359         it's obsolete.
47360         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47361
47362 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47363
47364         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47365         Autoconf 2.60 says this stuff was obsolete.
47366
47367 2006-06-28  Bruno Haible  <bruno@clisp.org>
47368
47369         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47370
47371 2006-06-28  Bruno Haible  <bruno@clisp.org>
47372
47373         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47374         gt_TYPE_WCHAR_T.
47375
47376 2006-06-28  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47379         declaration for wcwidth.
47380         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47381
47382 2006-06-28  Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47385         (mkdir): Define using _mkdir.
47386
47387 2006-06-28  Bruno Haible  <bruno@clisp.org>
47388
47389         * lib/getaddrinfo.h: Fix POSIX URL.
47390         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47391         _WIN32.
47392         (use_win32_p): Make static.
47393         (getaddrinfo): Reject service name if it is empty or does not consist
47394         solely of decimal digits, or if its value is > 65535.
47395         (getnameinfo): Remove useless casts.
47396
47397 2006-06-27  Simon Josefsson  <jas@extundo.com>
47398
47399         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47400         Eggert and Martin Lambers.
47401
47402 2006-06-27  Simon Josefsson  <jas@extundo.com>
47403
47404         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47405         Eggert and Martin Lambers.
47406
47407 2006-06-27  Bruno Haible  <bruno@clisp.org>
47408
47409         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47410         result to 0, not to empty.
47411         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47412
47413 2006-06-27  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47416
47417 2006-06-26  Simon Josefsson  <jas@extundo.com>
47418
47419         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47420         present.
47421
47422 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47423
47424         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47425         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47426         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47427
47428 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47429
47430         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47431
47432 2006-06-26  Bruno Haible  <bruno@clisp.org>
47433
47434         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47435
47436 2006-06-26  Bruno Haible  <bruno@clisp.org>
47437
47438         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47439
47440 2006-06-26  Bruno Haible  <bruno@clisp.org>
47441
47442         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47443         SGI C compiler in pre-C99 mode.
47444         Suggested by Mark D. Baushke and Larry Jones.
47445
47446 2006-06-26  Bruno Haible  <bruno@clisp.org>
47447
47448         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47449         WCHAR_MAX.
47450         Reported by Mark D. Baushke and Larry Jones.
47451
47452 2006-06-26  Bruno Haible  <bruno@clisp.org>
47453
47454         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47455         in pre-C99 mode.
47456         Suggested by Mark D. Baushke and Larry Jones.
47457
47458 2006-06-23  Simon Josefsson  <jas@extundo.com>
47459             Bruno Haible  <bruno@clisp.org>
47460
47461         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47462         Emit mostlyclean-local rule.
47463         (func_emit_tests_Makefile_am): Likewise.
47464         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47465
47466 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47467
47468         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47469
47470 2006-06-23  Bruno Haible  <bruno@clisp.org>
47471
47472         * tests/test-stdint.c: Update to match ISO C 99 Technical
47473         Corrigendum 1.
47474
47475 2006-06-23  Bruno Haible  <bruno@clisp.org>
47476
47477         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47478
47479 2006-06-23  Bruno Haible  <bruno@clisp.org>
47480
47481         * lib/stdint_.h: Treat IRIX like OpenBSD.
47482
47483 2006-06-23  Bruno Haible  <bruno@clisp.org>
47484
47485         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47486         ISO C 99 Technical Corrigendum 1.
47487
47488 2006-06-22  Simon Josefsson  <jas@extundo.com>
47489
47490         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47491         MinGW.
47492
47493 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47494
47495         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47496         needed.  Some compiler complained about some of them.  Problem reported
47497         by Larry Jones in
47498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47499
47500 2006-06-21  Simon Josefsson  <jas@extundo.com>
47501
47502         * tests/test-getaddrinfo.c: New file.
47503
47504         * modules/getaddrinfo-tests: New file.
47505
47506         * MODULES.html.sh: Add inet_pton.
47507
47508         * modules/inet_pton: New file.
47509
47510 2006-06-21  Simon Josefsson  <jas@extundo.com>
47511
47512         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47513         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47514         of using the (limited) gnulib implementation on Windows XP.
47515
47516         * m4/inet_pton.m4: New file.
47517
47518 2006-06-21  Simon Josefsson  <jas@extundo.com>
47519
47520         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47521         variable.
47522
47523         * lib/socket_.h: Don't define WINVER.
47524
47525         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47526         slightly modified to work in gnulib.
47527
47528 2006-06-21  Simon Josefsson  <jas@extundo.com>
47529
47530         * doc/gnulib.texi (Windows sockets): Add.
47531
47532 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47533
47534         * lib/read-file.c (fread_file): Start with buffer allocation of
47535         0 bytes rather than 1 byte; this simplifies the code.
47536         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47537         code to free buffer and save/restore errno.
47538         (internal_read_file): Remove unused local.
47539
47540 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47541
47542         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47543         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47544         Problem reported by Denis Excoffier in
47545         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47546
47547 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47548
47549         * modules/sys_socket, modules/socklen: Include sys/types since
47550         FreeBSD 4.x's sys/socket.h needs it.
47551
47552 2006-06-19  Simon Josefsson  <jas@extundo.com>
47553
47554         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47555
47556 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47557
47558         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47559
47560 2006-06-19  Bruno Haible  <bruno@clisp.org>
47561
47562         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47563         and FULL_PATH_INTTYPES_H in angle brackets.
47564         Reported by Mark D. Baushke <mdb@gnu.org>.
47565
47566 2006-06-17  Eric Blake  <ebb9@byu.net>
47567
47568         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47569         errno.
47570
47571 2006-06-17  Bruno Haible  <bruno@clisp.org>
47572
47573         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47574         <sys/inttypes.h>.
47575
47576 2006-06-17  Bruno Haible  <bruno@clisp.org>
47577
47578         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47579         whether errno is declared. Assume <errno.h> declares errno.
47580
47581 2006-06-17  Bruno Haible  <bruno@clisp.org>
47582
47583         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47584
47585 2006-06-17  Bruno Haible  <bruno@clisp.org>
47586
47587         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47588         problem on Solaris 2.5.1.
47589
47590 2006-06-16  Eric Blake  <ebb9@byu.net>
47591
47592         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47593         * lib/unicodeio.c [!defined errno]: Likewise.
47594         * lib/strtol.c [!defined errno]: Likewise.
47595         * lib/strtod.c [!defined errno]: Likewise.
47596
47597 2006-06-15  Eric Blake  <ebb9@byu.net>
47598
47599         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47600
47601 2006-06-15  Eric Blake  <ebb9@byu.net>
47602
47603         * config/srclist.txt (ssize_t.m4): Lose sync.
47604
47605 2006-06-15  Bruno Haible  <bruno@clisp.org>
47606
47607         * modules/stdint (Files): Include m4/full-header-path.m4,
47608         m4/size_max.m4, m4/wchar_t.m4.
47609         (Makefile.am): Many more substitutions.
47610         * modules/stdint-tests: New file.
47611         * tests/test-stdint.c: New file.
47612
47613 2006-06-15  Bruno Haible  <bruno@clisp.org>
47614
47615         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47616         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47617         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47618         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47619         gl_CHECK_TYPE_SAME): New macros.
47620
47621 2006-06-15  Bruno Haible  <bruno@clisp.org>
47622
47623         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47624
47625 2006-06-15  Bruno Haible  <bruno@clisp.org>
47626
47627         * lib/stdint_.h: Rewritten to be fully auto-configured.
47628         Fixes bug on HP-UX/IA64.
47629
47630 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47631
47632         * lib/getdate.y (__attribute__): Don't define if already defined.
47633         Problem reported by Larry Jones.
47634         * lib/utimens.c (__attribute__): Likewise.
47635
47636 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47637
47638         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47639         reported by Andreas Schwab.
47640
47641 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47642             Bruno Haible  <bruno@clisp.org>
47643
47644         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47645         check for the declaration of strnlen and a run test that exposes the
47646         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47647         rpl_strndup.
47648
47649 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47650             Bruno Haible  <bruno@clisp.org>
47651
47652         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47653
47654 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47655
47656         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47657         compile test, for Tru64 4.0D.
47658
47659 2006-05-28  Karl Berry  <karl@gnu.org>
47660
47661         * config/srclist.txt (printf-args.c): lose sync.
47662
47663 2006-05-26  Martin Lambers  <marlam@marlam.de>
47664
47665         * lib/getpass.c: Updates the test for the native W32 API, and adds
47666         missing includes, thus fixing compilation warnings.
47667
47668 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47669
47670         * lib/exclude.c (exclude_fnmatch): New function.
47671         (excluded_file_name): Call exclude_fnmatch.
47672         * lib/exclude.h (excluded_file_name): New prototype
47673
47674 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47675
47676         * lib/tempname.c (small_open, large_open): New macros.
47677         (__open, __open64) [!_LIBC]: Remove.
47678         (__gen_tempname): Use small_open and large_open instead of __open
47679         and __open64.  This fixes a portability bug on HP-UX 11.11i
47680         reported by Simon Wing-Tang in
47681         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47682
47683 2006-05-24  Bruno Haible  <bruno@clisp.org>
47684
47685         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47686         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47687         Reported by Thorsten Maerz <torte@netztorte.de> via
47688         Aaron Stone <aaron@serendipity.cx>.
47689
47690 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47691
47692         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47693         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47694         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47695         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47696         not really conditional on the cache.
47697         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47698
47699 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47700
47701         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47702         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47703         (my_usleep): Don't mishandle maximum value.
47704
47705 2006-05-19  Jim Meyering  <jim@meyering.net>
47706
47707         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47708
47709 2006-05-17  Bruno Haible  <bruno@clisp.org>
47710
47711         Cygwin portability.
47712         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47713
47714 2006-05-17  Bruno Haible  <bruno@clisp.org>
47715
47716         * lib/stdint_.h: Fix recognition of Cygwin.
47717
47718 2006-05-15  Bruno Haible  <bruno@clisp.org>
47719
47720         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47721         on libtool patch by Ralf Wildenhues.
47722
47723 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47724
47725         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47726         test for C99 conformance; (bool) 0.5 is an integer constant
47727         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47728         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47729
47730 2006-05-11  Simon Josefsson  <jas@extundo.com>
47731
47732         * m4/xvasprintf.m4: Fix obvious typo.
47733
47734 2006-05-11  Jim Meyering  <jim@meyering.net>
47735
47736         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47737         James Lemley.
47738
47739 2006-05-10  Simon Josefsson  <jas@extundo.com>
47740
47741         * lib/md4.c: Typo fix, update copyright years.
47742         (K1, K2): Don't use L because it turn computations into 64-bit on
47743         64-bit platforms.
47744
47745 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47746
47747         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47748         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47749         unwanted sign propagation, e.g., on hosts with 64-bit int.
47750         There still are some problems with reeelly weird theoretical hosts
47751         (e.g., 33-bit int) but it's not worth worrying about now.
47752         * lib/sha1.c (rol): Likewise.
47753         (K1, K2, K3, K4): Remove unnecessary L suffix.
47754
47755 2006-05-10  Bruno Haible  <bruno@clisp.org>
47756
47757         * lib/des.c: Cast to avoid warnings.
47758
47759 2006-05-09  Bruno Haible  <bruno@clisp.org>
47760
47761         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47762         (Depends-on): Depend also on xsize, stdarg.
47763         (configure.ac): Add gl_XVASPRINTF.
47764
47765 2006-05-09  Bruno Haible  <bruno@clisp.org>
47766
47767         * m4/xvasprintf.m4: New file.
47768
47769 2006-05-09  Bruno Haible  <bruno@clisp.org>
47770
47771         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47772         (EOVERFLOW): Define fallback value.
47773         (xstrcat): New function.
47774         (xvasprintf): Recognize the special case of a string concatenation.
47775
47776 2006-05-08  Eric Blake  <ebb9@byu.net>
47777
47778         * gnulib-tool (func_version): Base copyright year on CVS date.
47779         (func_emit_copyright_notice): New function.
47780         (func_emit_lib_Makefile_am): Use it.
47781         (func_emit_tests_Makefile_am): Likewise.
47782         (func_import): Likewise.
47783
47784 2006-05-08  Bruno Haible  <bruno@clisp.org>
47785
47786         * modules/stdarg: New file.
47787         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47788
47789 2006-05-08  Bruno Haible  <bruno@clisp.org>
47790
47791         * m4/stdarg.m4: New file, from GNU gettext.
47792
47793 2006-05-08  Bruno Haible  <bruno@clisp.org>
47794
47795         * config/srclist.txt (build-aux/config.rpath): different from latest
47796         release.
47797
47798 2006-05-08  Bruno Haible  <bruno@clisp.org>
47799
47800         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47801
47802 2006-05-05  Jim Meyering  <jim@meyering.net>
47803
47804         * m4/warning.m4: New file, derived from bison's file by the same name.
47805
47806 2006-05-03  Bruno Haible  <bruno@clisp.org>
47807
47808         * lib/stdint_.h: Shorter URL.
47809         * lib/inttypes.h: Likewise.
47810
47811 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47812
47813         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47814
47815 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47816
47817         * lib/verify.h: Document the internals better.  Most of this change
47818         was written by Bruno Haible.
47819
47820 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47821
47822         * doc/verify.texi: New file, partly based on a proposal by
47823         Bruno Haible.
47824
47825 2006-05-02  Bruno Haible  <bruno@clisp.org>
47826
47827         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47828         test from here...
47829         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47830
47831 2006-04-29  Bruno Haible  <bruno@clisp.org>
47832
47833         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47834         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47835
47836 2006-04-29  Bruno Haible  <bruno@clisp.org>
47837
47838         * gnulib-tool: Make --update option actually work.
47839
47840 2006-04-29  Bruno Haible  <bruno@clisp.org>
47841
47842         * doc/gcd.texi: New file.
47843         * doc/gnulib.texi: Include it.
47844
47845 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47846
47847         * lib/getdate.y (get_date): When adding relative date, start with the
47848         initial time, not with the result of the first mktime call.
47849
47850 2006-04-25  Bruno Haible  <bruno@clisp.org>
47851
47852         * gnulib-tool (func_import): Output the include directives in three
47853         blocks, sorted separately.
47854         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47855
47856 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47857
47858         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47859         to define main with arguments, for C++.  Reported by Eric Blake.
47860         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47861         Prefer 'int main ()' to 'int main (void)', for C++.
47862         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47863         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47864         for 'main', for C99 and C++.
47865
47866 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47867
47868         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47869         Don't assume that exit status -1 is valid.
47870         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47871         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47872         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47873         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47874         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47875         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47876         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47877         functions can be used without declaring them, or that you can
47878         exit with status -1.
47879         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47880
47881 2006-04-24  Karl Berry  <karl@gnu.org>
47882
47883         * config/srclist.txt (longdouble.m4): sync lost.
47884
47885 2006-04-24  Eric Blake  <ebb9@byu.net>
47886
47887         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47888
47889 2006-04-24  Bruno Haible  <bruno@clisp.org>
47890
47891         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47892         poll() implementation in AIX.
47893         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47894
47895 2006-04-24  Bruno Haible  <bruno@clisp.org>
47896
47897         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47898         assigned exactly once.
47899
47900 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47901             Bruno Haible  <bruno@clisp.org>
47902
47903         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47904         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47905         for AM_CPPFLAGS.
47906
47907 2006-04-23  Bruno Haible  <bruno@clisp.org>
47908
47909         * modules/copy-file: Depend on unistd.
47910         * modules/execute: Likewise.
47911         * modules/fatal-signal: Likewise.
47912         * modules/findprog: Likewise.
47913         * modules/mkdtemp : Likewise.
47914         * modules/pipe: Likewise.
47915         * modules/wait-process: Likewise.
47916
47917 2006-04-23  Bruno Haible  <bruno@clisp.org>
47918
47919         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47920         condition was already detected.
47921         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47922
47923 2006-04-23  Bruno Haible  <bruno@clisp.org>
47924
47925         * lib/copy-file.c: Include <unistd.h> unconditionally.
47926         * lib/execute.c: Likewise.
47927         * lib/fatal-signal.c: Likewise.
47928         * lib/findprog.c: Likewise.
47929         * lib/mkdtemp.c: Likewise.
47930         * lib/pipe.h: Likewise.
47931         * lib/pipe.c: Likewise.
47932         * lib/wait-process.h: Likewise.
47933
47934 2006-04-23  Bruno Haible  <bruno@clisp.org>
47935
47936         * gnulib-tool (func_usage): Fix --import description. Document
47937         --update.
47938         (func_import): Create temporary file in a temporary directory, if
47939         --dry-run is specified. Silence errors from 'grep' when there are no
47940         m4 files in $m4dir.
47941         (func_create_testdir): Silence errors from 'grep' when there are no
47942         m4 files in $m4dir.
47943         Reported by Karl Berry <karl@freefriends.org>.
47944
47945 2006-04-20  Bruno Haible  <bruno@clisp.org>
47946
47947         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47948         one argument, so that the code will be portable to Autoconf 2.60.
47949         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47950         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47951         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47952
47953 2006-04-19  Derek Price  <derek@ximbiot.com>
47954             Eric Blake  <ebb9@byu.net>
47955
47956         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47957         rather than "/full/path.h".  Update comment to match.  Shorten &
47958         generalize m4_translit call via AS_TR_CPP.
47959
47960 2006-04-19  Derek Price  <derek@ximbiot.com>
47961             Eric Blake  <ebb9@byu.net>
47962
47963         * lib/inttypes.h: Correct grammar in comment.
47964
47965 2006-04-18  Derek Price  <derek@ximbiot.com>
47966             Paul Eggert  <eggert@cs.ucla.edu>
47967
47968         * modules/inttypes: New file.
47969         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47970
47971 2006-04-18  Derek Price  <derek@ximbiot.com>
47972             Paul Eggert  <eggert@cs.ucla.edu>
47973
47974         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47975         New files.
47976
47977 2006-04-18  Derek Price  <derek@ximbiot.com>
47978             Paul Eggert  <eggert@cs.ucla.edu>
47979
47980         * lib/inttypes.h: New file.
47981         * lib/strtoimax.c: Assume <inttypes.h>.
47982
47983 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47984
47985         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47986         isn't mounted.  Problem reported by Kir Kolyshkin.
47987
47988 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47989
47990         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47991         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47992         Derek R. Price.
47993         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47994         implementation.
47995
47996 2006-04-12  Eric Blake  <ebb9@byu.net>
47997
47998         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47999         is now done automatically by the corresponding Autoconf macro.
48000
48001 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
48002
48003         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
48004         time_r.h.
48005
48006 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48007
48008         Merge regex changes from libc, removing some of our
48009         POSIX-conformance changes that were rejected and redoing them in a
48010         less-intrusive way.
48011
48012         * lib/regcomp.c (re_compile_internal, init_dfa):
48013         Length arg is now size_t, not Idx.  All uses changed.
48014         (peek_token): Forward decl now says internal_function.
48015         (__re_error_msgid, __re_error_msgid_idx):
48016         Now static rather than extern with attribute_hidden.
48017         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
48018         For some reason libc prefers K&R style defns for external functions.
48019         (regerror) [!defined _LIBC]: Likewise.
48020         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
48021         (seek_collating_symbol_entry, lookup_collation_sequence_value):
48022         (build_range_exp, build_collating_symbol):
48023         Use K&R-style defn.
48024         (re_compile_fastmap): Use '\0' to memset, not 0.
48025         (utf8_sb_map): Make the calculations more obvious.
48026         (init_dfa, parse_bracket_exp, build_charclass_op):
48027         Call calloc and cast result, as glibc does.
48028         (init_word_char, fetch_token, peek_token, peek_token_bracket):
48029         (build_range_exp, build_collating_symbol):
48030         Now internal functions.
48031
48032         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
48033
48034         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
48035         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
48036         Don't depend on VMS; depend on __VMS instead, for POSIX
48037         namespace cleanness.
48038         (regoff_t): Define to ssize_t, not long int.
48039
48040         Remove the REG_ macros named below.  Instead, make the old names
48041         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
48042         __USE_GNU_REGEX.
48043         (REG_BACKSLASH_ESCAPE_IN_LISTS):
48044         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
48045         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
48046         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
48047         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
48048         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
48049         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
48050         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
48051         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
48052         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
48053         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
48054         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
48055         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
48056         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
48057         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
48058         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
48059         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
48060         (REG_NREGS):
48061         Remove.  All uses replaced by the old RE_* names.
48062         (RE_BACKSLASH_ESCAPE_IN_LISTS):
48063         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
48064         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
48065         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
48066         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
48067         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
48068         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
48069         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
48070         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
48071         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
48072         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
48073         Don't bother having these macros be independent of each others'
48074         values, since they no longer exist in the POSIX name space.
48075
48076         Rename the following member names back to their old names,
48077         unless !__USE_GNU_REGEX.  All uses changed back.
48078         (buffer): Renamed from re_buffer.
48079         (allocated): Renamed from re_allocated.
48080         (used): Renamed from re_used.
48081         (syntax): Renamed from re_syntax.
48082         (fastmap): Renamed from re_fastmap.
48083         (translate): Renamed from re_translate.
48084         (can_be_null): Renamed from re_can_be_null.
48085         (regs_allocated): Renamed from re_regs_allocated.
48086         (fastmap_accurate): Renamed from re_fastmap_accurate.
48087         (no_sub): Renamed from re_no_sub.
48088         (not_bol): Renamed from re_not_bol.
48089         (not_eol): Renamed from re_not_eol.
48090         (newline_anchor): Renamed from re_newline_anchor.
48091         (num_regs): Renamed from rm_num_regs.
48092         (start): Renamed from rm_start.
48093         (end): Renamed from rm_end.
48094
48095         (free_state): Move up a bit.
48096
48097         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
48098         #define to be empty.
48099         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
48100         when that is what is intended.
48101         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
48102         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
48103         (MAX): New macro.
48104         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
48105         All uses changed back to re_malloc, etc.  It's now the caller's
48106         responsibility to check for overflow; all callers changed.
48107         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
48108         (re_x2nrealloc): Remove.
48109         (free_state): Remove decl.
48110
48111         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
48112         (re_set_registers, re_exec):
48113         Use K&R-style defn.
48114
48115         2006-01-31  Roland McGrath  <roland@redhat.com>
48116
48117         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
48118         Reported by Mike Frysinger <vapier@gentoo.org>.
48119
48120         2006-01-15  Andreas Jaeger  <aj@suse.de>
48121
48122         [BZ #1950]
48123         * lib/regex_internal.c (re_string_reconstruct): Adjust for
48124         build_wcs_upper_buffer change.
48125         (build_wcs_upper_buffer): Change return type.
48126
48127         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
48128
48129         * lib/regex_internal.h: Include <stdint.h> if available.
48130
48131         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
48132
48133         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
48134
48135         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48136
48137         * lib/regcomp.c: Adjust for changed secondary hash function.
48138
48139         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
48140
48141         * lib/regex.h: Pretty printing.
48142         Clean up namespace a bit.
48143
48144         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
48145
48146         * lib/regexec.c (update_cur_sifted_state, check_arrival,
48147         check_arrival_add_next_nodes): Avoid using uninitialized variable.
48148
48149         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48150                     Ulrich Drepper  <drepper@redhat.com>
48151
48152         [BZ #1302]
48153         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
48154         changed.
48155         (bitset_word_t): Renamed from bitset_word.  All uses changed.
48156
48157         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
48158
48159         [BZ #281]
48160         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
48161         * lib/regcomp.c: Remove unnecessary uses of
48162         unsigned RE_TRANSLATE_TYPE.
48163         * lib/regex_internal.h: Likewise.
48164         * lib/regex_internal.c: Likewise.
48165         * lib/regexec.c: Likewise.
48166         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
48167
48168         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
48169
48170         * lib/regexec.c (find_recover_state): Remove unnecessary
48171         initialization.
48172         (transit_state_bkref): Make DFA a const pointer.
48173         (get_subexp): Likewise.
48174         (check_arrival): Likewise.
48175         (update_cur_sifted_state): Likewise.
48176         (re_search_internal): Likewise.
48177         (prune_impossible_nodes): Likewise.
48178         (acquire_init_state_context): Likewise.
48179         (proceed_next_node): Likewise.
48180         (set_regs): Likewise.
48181         (free_fail_stack_return): Likewise.
48182         (check_arrival_expand_ecl): Mark DFA parameter as const.
48183         (check_arrival_expand_ecl_sub): Likewise.
48184         (check_subexp_limits): Likewise.
48185         (sub_epsilon_src_nodes):  Likewise.
48186         (add_epsilon_src_nodes):  Likewise.
48187         (merge_state_array): Likewise.
48188         (update_regs): Likewise.
48189         (build_trtable): Likewise.
48190         (sift_states_backward): Mark MCTX parameter as const.
48191         (build_sifted_states): Likewise.
48192         (update_cur_sifted_state): Likewise.
48193         (sift_states_mkref): Likewise.
48194         (check_arrival_expand_ecl): Mark eclosure as const.
48195         (check_dst_limits_calc_pos_1): Likewise.
48196         * lib/regex_internal.h (re_match_context_t): Make dfa a const
48197         pointer.
48198
48199         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
48200
48201         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
48202         (transit_state_sb): Likewise.
48203         (transit_state_mb): Likewise.
48204         (sift_states_iter_mb): Likewise.
48205         (check_arrival_add_next_nodes): Likewise.
48206         (check_node_accept_bytes): Change first parameter to pointer-to-const.
48207         [_LIBC] (re_search_2_stub): Use mempcpy.
48208
48209         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
48210         mbrtowc for very simple UTF-8 case.
48211
48212         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
48213         a pointer-to-const.
48214         (re_acquire_state_context): Likewise.
48215         * lib/regex_internal.h: Adjust prototypes.
48216
48217         * lib/regex.c: Prevent using C++ compilers.
48218
48219         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
48220         (re_acquire_state_context): Likewise.
48221
48222 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48223
48224         * modules/regex (Depends-on): Add ssize_t.
48225
48226 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48227
48228         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
48229         translation table.
48230
48231 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48232
48233         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
48234
48235 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
48236             Bruno Haible  <bruno@clisp.org>
48237
48238         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
48239         <sys/types.h> and <inttypes.h>.
48240
48241 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48242
48243         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
48244         `__error_t_defined', so argp.h will not typedef the former.
48245
48246 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48247
48248         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
48249         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
48250         glibc names.  Even if glibc is changed to conform to POSIX, the
48251         traditional names will be available anyway, since regex depends on
48252         the extensions module.  Also, fix a longstanding typo in the
48253         implementation of Spencer ERE test #75 from grep 2.3.  Problems
48254         reported by Emanuele Giaquinta.  Also, change sense of cached
48255         variable, so that the message makes sense.
48256
48257 2006-03-24  Simon Josefsson  <jas@extundo.com>
48258
48259         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
48260         including some doc fixes.
48261         (base64_encode_alloc): Fix +1 bug on allocation failures.
48262
48263 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48264
48265         * lib/base64.c (base64_encode): Do not read past end of array with
48266         unsanitized input on systems with CHAR_BIT > 8.
48267
48268 2006-03-24  Eric Blake  <ebb9@byu.net>
48269
48270         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
48271
48272 2006-03-22  Karl Berry  <karl@gnu.org>
48273
48274         * config/srclist.txt (*setenv.[ch]): get from coreutils.
48275         * config/srclistvars.sh (COREUTILS): new var.
48276
48277 2006-03-17  Jim Meyering  <jim@meyering.net>
48278
48279         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
48280         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
48281
48282 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48283
48284         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
48285         no longer needs it.  Instead, check that regoff_t is as least
48286         as wide as ptrdiff_t.
48287
48288         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
48289         so that our regex.h stays compatible with the installed regex.
48290         This is helpful for installers who configure --without-included-regex.
48291         Problem reported by Emanuele Giaquinta.
48292
48293 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48294
48295         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
48296         Typedef to long int, not to off_, as POSIX will likely change
48297         in that direction.
48298
48299 2006-03-15  Eric Blake  <ebb9@byu.net>
48300
48301         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
48302
48303 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48304
48305         * lib/argp-help.c (validate_uparams): Fix typo
48306         * lib/argp-parse.c (argp_default_options): Consistently begin help
48307         messages with a lowercase letter.
48308
48309 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
48310
48311         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
48312         overrun buffers and shouldn't be used (much as gets shouldn't be
48313         used).
48314         * lib/time_r.c (asctime_r, ctime_r): Likewise.
48315
48316 2006-03-08  Simon Josefsson  <jas@extundo.com>
48317
48318         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
48319         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48320
48321 2006-03-08  Simon Josefsson  <jas@extundo.com>
48322
48323         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
48324         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48325
48326 2006-03-08  Simon Josefsson  <jas@extundo.com>
48327
48328         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
48329         signal that configure disabled the device.
48330
48331 2006-03-08  Simon Josefsson  <jas@extundo.com>
48332
48333         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48334         languages.
48335
48336 2006-03-07  Simon Josefsson  <jas@extundo.com>
48337
48338         * modules/getopt (Depends-on): Add unistd.
48339
48340         * modules/unistd: New file.
48341
48342 2006-03-07  Simon Josefsson  <jas@extundo.com>
48343
48344         * modules/gc-random: New file.
48345
48346 2006-03-07  Simon Josefsson  <jas@extundo.com>
48347
48348         * m4/unistd_h.m4: New file.
48349
48350 2006-03-07  Simon Josefsson  <jas@extundo.com>
48351
48352         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48353         test to be side-effect free by storing the result in the cache
48354         variable gl_cv_lib_readline, and moving the assignment of
48355         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48356         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48357
48358 2006-03-07  Simon Josefsson  <jas@extundo.com>
48359
48360         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48361         error on missing devices (the functions will return an error).
48362
48363         * m4/gc.m4: Move random stuff to gc-random.m4
48364
48365 2006-03-07  Simon Josefsson  <jas@extundo.com>
48366
48367         * lib/unistd_.h: New file.
48368
48369 2006-03-07  Simon Josefsson  <jas@extundo.com>
48370
48371         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48372
48373 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48374
48375         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48376         Problem reported by Juan Manuel Guerrero.
48377
48378 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48379
48380         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48381         the unistd module.
48382         * lib/getlogin_r.c: Likewise.
48383         * lib/getlogin_r.h: Likewise.
48384         * lib/glob.c: Likewise.
48385         * lib/pagealign_alloc.c: Likewise.
48386         * lib/unistd_.h: Remove; no longer needed.
48387
48388 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48389
48390         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48391         Add unistd.
48392         * modules/c-stack (Depends-on): Add unistd.
48393         * modules/getlogin_r: Likewise.
48394         * modules/glob: Likewise.
48395         * modules/pagealign_alloc: Likewise.
48396         * modules/unistd (Files): Remove lib/unistd_.h.
48397         (EXTRA_DIST): Remove.
48398         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48399         need unistd_.h.
48400         (MOSTLYCLEANFILES): Remove unistd.h-t.
48401
48402 2006-03-03  Simon Josefsson  <jas@extundo.com>
48403
48404         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48405
48406 2006-03-03  Simon Josefsson  <jas@extundo.com>
48407
48408         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48409         libidn and bison.
48410
48411 2006-03-03  Simon Josefsson  <jas@extundo.com>
48412
48413         * build-aux/maint.mk: Add indent target.
48414
48415 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48416
48417         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48418         our replacement poll.h in any case, to avoid a differing
48419         declaration from a system header.  Seen on AIX.
48420
48421 2006-03-01  Simon Josefsson  <jas@extundo.com>
48422
48423         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48424         <kasal@ucw.cz>.
48425
48426 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48427
48428         * modules/gettime (Depends-on): Add extensions module.
48429         * modules/nanosleep (Depends-on): Likewise.
48430         * modules/settime (Depends-on): Likewise.
48431
48432 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48433
48434         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48435         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48436         pedantically.
48437         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48438         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48439
48440         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48441         not "==".  Reported by Ralf Wildenhues.
48442
48443 2006-03-01  Karl Berry  <karl@gnu.org>
48444
48445         * doc/Copyright/request-*: new files, synced from gnuorg.
48446
48447 2006-03-01  Karl Berry  <karl@gnu.org>
48448
48449         * config/srclist.txt (Copyright/*): new entries.
48450
48451 2006-02-28  Simon Josefsson  <jas@extundo.com>
48452
48453         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48454
48455 2006-02-27  Simon Josefsson  <jas@extundo.com>
48456
48457         * lib/base64.h: Indent #define's.  From Jim Meyering
48458         <jim@meyering.net>.
48459
48460 2006-02-27  Jim Meyering  <jim@meyering.net>
48461
48462         Revert the change of 2006-02-24, so these files can continue
48463         to be sync'd from gettext.
48464         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48465         of `config.h'.
48466
48467 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48468
48469         * modules/intprops: New file.
48470         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48471         Add intprops.
48472         * modules/getloadavg (Files): Remove lib/intprops.h.
48473         (Depends-on): Add intprops.
48474         * modules/human: Likewise.
48475         * modules/inttostr: Likewise.
48476         * modules/openat: Likewise.
48477         * modules/sig2str: Likewise.
48478         * modules/userspec: Likewise.
48479         * modules/utimecmp: Likewise.
48480         * modules/xnanosleep: Likewise.
48481         * modules/xstrtol: Likewise.
48482
48483 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48484
48485         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48486         * modules/lock-tests (TESTS): Use $(EXEEXT).
48487         * modules/tls-tests: Likewise.
48488         * modules/argp-tests: Likewise.
48489         (check_PROGRAMS): New var, replacing...
48490         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48491
48492 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48493
48494         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48495         `config.h'.
48496
48497 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48498
48499         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48500
48501 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48502
48503         Sync from coreutils.
48504         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48505         gl_CHDIR_SAFER.
48506
48507 2006-02-22  Jim Meyering  <jim@meyering.net>
48508
48509         Sync from coreutils.
48510         * m4/chdir-safer.m4: New file.
48511
48512 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48513
48514         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48515         AT_FDCWD exceeds INT_MAX.
48516         * lib/openat.h (AT_FDCWD): Likewise.
48517
48518 2006-02-17  Eric Blake  <address@hidden>
48519
48520         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48521
48522 2006-02-16  Simon Josefsson  <jas@extundo.com>
48523
48524         * modules/getaddrinfo (Depends-on): Add sys_socket.
48525
48526 2006-02-15  Simon Josefsson  <jas@extundo.com>
48527
48528         * build-aux/maint.mk: Add dsyntax-check rule.
48529
48530 2006-02-15  Eric Blake  <ebb9@byu.net>
48531
48532         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48533         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48534         'present but cannot compile' warnings on cygwin.
48535         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48536         use ws2tcpip.h if sys/socket.h works.
48537         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48538         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48539
48540 2006-02-14  Simon Josefsson  <jas@extundo.com>
48541
48542         * modules/maintainer-makefile (Files): Rename.
48543
48544         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48545         and (the local) Makefile.cfg to maint-cfg.mk.
48546
48547         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48548         to the latter.
48549
48550         * modules/maintainer-makefile: New module.
48551
48552         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48553         severaly stripped to make it possible to build it up from scratch
48554         with reliable tests.
48555
48556         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48557         fixes to permit overriding the default actions when configure and
48558         makefile are not available.
48559
48560 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48561
48562         Sync from coreutils.
48563         * modules/lstat (Depends-on): Don't depend on xalloc.
48564         (License): Change from GPL to LGPL, since this is now simply a
48565         replacement for a libc function.
48566
48567 2006-02-14  Jim Meyering  <jim@meyering.net>
48568
48569         Sync from coreutils.
48570
48571         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48572         failure on deficient systems, and simplify gnulib lgpl dependencies.
48573         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48574         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48575
48576         * lib/xalloc-die.c: Remove unused definition of N_.
48577
48578 2006-02-14  Jim Meyering  <jim@meyering.net>
48579
48580         Sync from coreutils.
48581         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48582         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48583         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48584         double-quote uses of that variable, to accommodate the rare case in
48585         which getmntent is available in none of the libraries checked.  This
48586         happens at least on FreeBSD 5.0.
48587
48588 2006-02-13  Simon Josefsson  <jas@extundo.com>
48589
48590         * gnulib-tool (Usage): Fix --import, from
48591         karl@freefriends.org (Karl Berry).
48592
48593 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48594
48595         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48596
48597 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48598
48599         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48600         "autoupdate" on 2005-12-12.
48601
48602 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48603
48604         * modules/closeout (Depends-on): Remove atexit.
48605
48606 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48607
48608         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48609         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48610
48611 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48612
48613         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48614         __EXTENSIONS__ if this causes compilation to fail.  Problem
48615         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48616         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48617
48618 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48619
48620         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48621         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48622         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48623         All uses changed.
48624
48625 2006-01-26  Simon Josefsson  <jas@extundo.com>
48626
48627         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48628         prototype is visible on mingw32.
48629
48630         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48631         for mingw32.
48632
48633         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48634         mingw32).
48635
48636 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48637
48638         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48639         attempt to open for write; this always fails, at least on POSIX
48640         hosts.  This reinstates the 2006-01-09 change, which was
48641         inadvertently removed.
48642
48643 2006-01-26  Bruno Haible  <bruno@clisp.org>
48644
48645         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48646         Reported by Paul Eggert.
48647
48648 2006-01-26  Bruno Haible  <bruno@clisp.org>
48649             Paul Eggert  <eggert@cs.ucla.edu>
48650
48651         * lib/stdbool_.h (_Bool)
48652         [(! (defined __cplusplus || defined __BEOS__)
48653           && !defined __GNUC__
48654           && !(defined __HP_cc || defined __xlc__
48655                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48656                || defined __sgi))]:
48657         #define to signed char in these cases too; this simplifies
48658         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48659         etc., separately) and makes it more conservative.
48660
48661 2006-01-25  Simon Josefsson  <jas@extundo.com>
48662
48663         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48664         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48665         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48666
48667 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48668
48669         * lib/argp-namefrob.h: Bugfix. Remove stray #
48670
48671 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48672
48673         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48674         so that we test the test.
48675         Check for yet another HP-UX cc bug involving *bool |= bool.
48676
48677 2006-01-25  Karl Berry  <karl@gnu.org>
48678
48679         * config/srclist.txt (vasnprintf.c): sync lost.
48680
48681 2006-01-25  Jim Meyering  <jim@meyering.net>
48682
48683         Sync from the stable (b5) branch of coreutils:
48684
48685         * lib/fts.c (fts_children): Don't let close() clobber errno from
48686         failed fchdir().
48687
48688         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48689         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48690         a dangling symlink.  That can also happen at least for ELOOP.
48691         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48692         FYI, this bug predates the inclusion of fts.c in coreutils.
48693
48694         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48695         in their own block, so pre-c99 compilers don't object.
48696
48697         Avoid the double-free (first in fts_read, second in fts_close) that
48698         would occur when an `active' directory is made inaccessible (e.g.,
48699         via chmod a-x) during a traversal.
48700         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48701         before returning.  Reproduce this failure by
48702         mkdir -p a/b; cd a; chmod a-x . b
48703         Reported by Stavros Passas.
48704
48705 2006-01-25  Jim Meyering  <jim@meyering.net>
48706
48707         * lib/fileblocks.c: Remove more useless parentheses.
48708         * lib/readutmp.h: Likewise.
48709
48710 2006-01-25  Bruno Haible  <bruno@clisp.org>
48711
48712         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48713         warnings.
48714         Reported by Paul Eggert.
48715
48716 2006-01-25  Bruno Haible  <bruno@clisp.org>
48717
48718         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48719         rid of a trap command. For Solaris sh.
48720         Reported by Mark D. Baushke <mdb@gnu.org>.
48721
48722 2006-01-24  Simon Josefsson  <jas@extundo.com>
48723
48724         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48725         Bruno.
48726
48727 2006-01-24  Karl Berry  <karl@gnu.org>
48728
48729         * config/srclist.txt (argp-namefrob.h): sync lost.
48730
48731 2006-01-24  Jim Meyering  <jim@meyering.net>
48732
48733         * modules/openat (Files): Add lib/intprops.h.
48734         From Mark D. Baushke.
48735
48736 2006-01-24  Jim Meyering  <jim@meyering.net>
48737
48738         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48739         Reported by Mark D. Baushke.
48740
48741 2006-01-24  Jim Meyering  <jim@meyering.net>
48742
48743         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48744
48745 2006-01-24  Bruno Haible  <bruno@clisp.org>
48746
48747         * modules/strnlen (Maintainer): Change from glibc to all.
48748
48749 2006-01-24  Bruno Haible  <bruno@clisp.org>
48750
48751         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48752         Patch by Paul Eggert.
48753
48754 2006-01-24  Bruno Haible  <bruno@clisp.org>
48755
48756         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48757         already has it.
48758         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48759         2005-11-26.
48760
48761         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48762         'signed char' to avoid problems with the built-in _Bool type.
48763         Reported by Paul Eggert on 2005-11-26.
48764
48765 2006-01-24  Bruno Haible  <bruno@clisp.org>
48766
48767         * gnulib-tool (func_import): Avoid constructing complicated sed
48768         expressions inside backquote.
48769         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48770
48771 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48772
48773         These changes imported from libc.
48774         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48775         test and two separate function calls.
48776         * lib/strndup.c (__strndup): Add libc_hidden_def.
48777
48778 2006-01-23  Simon Josefsson  <jas@extundo.com>
48779
48780         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48781         Remove the test_*_SOURCES variable: automake infers it by default.
48782         * modules/tls-tests: Likewise.
48783
48784 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48785
48786         Work around porting bugs reported by Dieter in
48787         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48788         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48789         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48790         Include "getopt.h" first, to check interface.
48791         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48792         !HAVE_DECL_GETENV.
48793         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48794         (__strndup): Revert to K&R-style function dfns, the glibc style.
48795         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48796         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48797         Include strnlen.h first, to get prototype properly.
48798         (strnlen): Renamed from __strnlen.
48799         Remove weak alias.
48800
48801 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48802
48803         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48804
48805 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48806
48807         * config/srclist.txt: Adjust to reflect glibc reorganization.
48808         This affects only comments.
48809
48810 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48811
48812          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48813          Reported by Bruce Korb <bkorb@gnu.org>.
48814
48815 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48816
48817         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48818         to pacify gcc -Wswitch-default.
48819
48820 2006-01-22  Bruno Haible  <bruno@clisp.org>
48821
48822         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48823         temporary buffer for sprintf, take into account the precision also
48824         for 'd', 'i', 'u', 'o', 'x', 'X'.
48825
48826 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48827
48828         * modules/argp-tests: New module
48829         * tests/test-argp.c: New file
48830         * tests/test-argp-2.sh: New file
48831
48832 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48833
48834         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48835         (__argp_base_name): Removed
48836         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48837         typo.
48838         (__argp_base_name): Provide macro definition or extern declaration
48839         depending on the configuration
48840
48841 2006-01-20  Simon Josefsson  <jas@extundo.com>
48842
48843         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48844
48845 2006-01-20  Simon Josefsson  <jas@extundo.com>
48846
48847         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48848
48849 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48850
48851         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48852         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48853         Suggested by Bruno Haible.
48854
48855 2006-01-20  Karl Berry  <karl@gnu.org>
48856
48857         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48858         until changes propagate, I guess.
48859
48860 2006-01-19  Simon Josefsson  <jas@extundo.com>
48861
48862         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48863
48864 2006-01-19  Simon Josefsson  <jas@extundo.com>
48865
48866         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48867
48868 2006-01-19  Simon Josefsson  <jas@extundo.com>
48869
48870         * gnulib-tool: Set check_PROGRAMS.
48871
48872         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48873         modules/des-tests, modules/gc-arcfour-tests,
48874         modules/gc-arctwo-tests, modules/gc-des-tests,
48875         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48876         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48877         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48878         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48879         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48880         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48881         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48882         test_*_SOURCES.
48883
48884 2006-01-18  Simon Josefsson  <jas@extundo.com>
48885
48886         * modules/socklen (Depends-on): Depend on sys_socket.
48887
48888 2006-01-18  Simon Josefsson  <jas@extundo.com>
48889
48890         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48891         modules/des-tests, modules/gc-arcfour-tests,
48892         modules/gc-arctwo-tests, modules/gc-des-tests,
48893         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48894         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48895         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48896         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48897         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48898         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48899         $(EXEEXT) to automake TESTS variable, for mingw32.
48900
48901 2006-01-17  Simon Josefsson  <jas@extundo.com>
48902
48903         * modules/socklen (Include): Need sys/socket.h.
48904
48905 2006-01-17  Bruno Haible  <bruno@clisp.org>
48906
48907         * modules/ssize_t (Include): Add <sys/types.h>.
48908
48909 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48910
48911         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48912         it's not portable and it doesn't work with cross-compiles.
48913         Problem reported by Bruno Haible.  Fix missing-$ typo in
48914         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48915         -zignore from being used with Sun's C compiler.
48916
48917 2006-01-12  Simon Josefsson  <jas@extundo.com>
48918
48919         * lib/base64.c: Fix warning, reported by Bruno Haible
48920         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48921
48922 2006-01-12  Bruno Haible  <bruno@clisp.org>
48923
48924         * modules/ldd: New file.
48925         * build-aux/ldd.sh.in: New file.
48926         * MODULES.html.sh (Support for building libraries and executables): Add
48927         ldd.
48928
48929 2006-01-12  Bruno Haible  <bruno@clisp.org>
48930
48931         * m4/ldd.m4: New file.
48932
48933 2006-01-12  Bruno Haible  <bruno@clisp.org>
48934
48935         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48936         endless loop while replacing $auxdir with build-aux.
48937
48938 2006-01-11  Simon Josefsson  <jas@extundo.com>
48939
48940         * lib/stdint_.h (SIZE_MAX): Add missing (.
48941
48942 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48943
48944         Sync from coreutils.
48945         * lib/md5.c: Fix commentary typos.
48946         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48947         * lib/md5.h (__attribute__): Remove; unused.
48948         * lib/sha1.c: Fix commentary to match md5 better.
48949         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48950         so that we don't need to worry about alignment.  All uses changed.
48951         This merges the 2005-10-28 md5 change into sha1.
48952
48953 2006-01-11  Jim Meyering  <jim@meyering.net>
48954
48955         Sync from coreutils.
48956         * lib/md5.c (OP): Fix spacing.
48957
48958 2006-01-11  Bruno Haible  <bruno@clisp.org>
48959
48960         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48961         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48962         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48963
48964 2006-01-11  Bruno Haible  <bruno@clisp.org>
48965
48966         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48967         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48968         the "early" section as well.
48969
48970 2006-01-11  Bruno Haible  <bruno@clisp.org>
48971
48972         Avoid "ar: no archive members specified" error on MacOS X.
48973         * gnulib-tool (func_modules_add_dummy): New function.
48974         (func_import, func_create_testdir): Invoke it.
48975
48976 2006-01-11  Bruno Haible  <bruno@clisp.org>
48977
48978         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48979         with $auxdir in AC_CONFIG_FILES statements.
48980
48981 2006-01-11  Bruno Haible  <bruno@clisp.org>
48982
48983         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48984         Initialize also noinst_HEADERS to empty.
48985
48986 2006-01-11  Bruno Haible  <bruno@clisp.org>
48987
48988         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48989         variables.
48990         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48991         autoreconf.
48992
48993 2006-01-11  Bruno Haible  <bruno@clisp.org>
48994
48995         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48996         overridable by the user.
48997         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48998
48999 2006-01-10  Simon Josefsson  <jas@extundo.com>
49000
49001         * modules/sys_socket: New file.
49002
49003 2006-01-10  Simon Josefsson  <jas@extundo.com>
49004
49005         * m4/sys_socket_h.m4: New file.
49006
49007 2006-01-10  Simon Josefsson  <jas@extundo.com>
49008
49009         * lib/socket_.h: New file.
49010
49011 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49012
49013         * modules/readutmp (Maintainer): Add myself.
49014
49015 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49016
49017         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
49018         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
49019         People who are still concerned with buggy memcmp implementations
49020         can invoke gl_FUNC_MEMCMP themselves.
49021
49022 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49023
49024         * lib/regex_internal.h (BITSET_WORD_BITS):
49025         Work around a bug in 64-bit PGC (before version 6.1-2), where the
49026         preprocessor mishandles large unsigned values as if they were signed.
49027         Problem reported by Claudio Fontana in
49028         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
49029
49030 2006-01-10  Jim Meyering  <jim@meyering.net>
49031
49032         Avoid the double-free (first in fts_read, second in fts_close) that
49033         would occur when an `active' directory is made inaccessible (e.g.,
49034         via chmod a-x) during a traversal.
49035         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
49036         before returning.  Reproduce this failure by
49037         mkdir -p a/b; cd a; chmod a-x . b
49038         Reported by Stavros Passas.
49039
49040         Sync from coreutils.
49041         * lib/sha1.c: Tweak grammar in a comment.
49042
49043 2006-01-10  Jim Meyering  <jim@meyering.net>
49044
49045         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
49046         Patch by Joerg Sonnenberger.
49047
49048 2006-01-10  Bruno Haible  <bruno@clisp.org>
49049
49050         * modules/readutmp: Depend on module free.
49051         * modules/strtok_r: Depend on module restrict.
49052
49053 2006-01-10  Bruno Haible  <bruno@clisp.org>
49054
49055         * modules/gettext (configure.ac): Add an invocation of
49056         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
49057
49058 2006-01-10  Bruno Haible  <bruno@clisp.org>
49059
49060         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
49061         Reported by Werner Lemberg <wl@gnu.org>.
49062
49063 2006-01-10  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/localcharset.c: Update from GNU gettext.
49066
49067 2006-01-10  Bruno Haible  <bruno@clisp.org>
49068
49069         * lib/argp.h (__const): Remove macro. Use const instead.
49070         * lib/argp-fmtstream.h (__const): Likewise.
49071         * lib/glob_.h (__const): Remove macro.
49072         * lib/glob-libc.h: Use const instead of __const.
49073
49074 2006-01-10  Bruno Haible  <bruno@clisp.org>
49075
49076         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
49077         variable.
49078         Needed to avoid an automake error regarding the 'gettext' module.
49079
49080 2006-01-09  Simon Josefsson  <jas@extundo.com>
49081
49082         * modules/inet_ntop (Depends-on): Add restrict.
49083
49084 2006-01-09  Simon Josefsson  <jas@extundo.com>
49085
49086         * modules/gc-rijndael-tests (License): Put under LGPL.
49087
49088         * modules/gc-des-tests (License): Likewise.
49089
49090         * modules/gc-arcfour-tests (License): Likewise.
49091
49092         * modules/gc-arctwo-tests (License): Likewise.
49093
49094         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
49095
49096         * modules/gc-hmac-sha1-tests (Files): Likewise.
49097
49098         * modules/gc-hmac-md5-tests (License): Likewise.
49099
49100         * modules/gc-sha1-tests (License): Likewise.
49101
49102         * modules/gc-md5-tests (License): Likewise.
49103
49104         * modules/gc-md4-tests (License): Likewise.
49105
49106         * modules/gc-md2-tests (License): Likewise.
49107
49108         * modules/gc-tests (License): Likewise.
49109
49110         * modules/des-tests (License): Likewise.
49111
49112         * modules/md4-tests (License): Likewise.
49113
49114         * modules/md2-tests (License): Likewise.
49115
49116 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49117
49118         Sync from coreutils:
49119
49120         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
49121         * modules/lib-ignore: New file.
49122         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
49123         chdir-safer.m4, lchmod.m4.
49124         * modules/openat: Add mkdirat.c, openat-priv.h.
49125
49126 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49127
49128         Sync from coreutils.
49129         * m4/lib-ignore.m4: New file.
49130         * m4/lchmod.m4: New file.
49131
49132 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49133
49134         Sync from coreutils.
49135         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
49136         for write access: POSIX says that must fail.
49137         * lib/fts.c (diropen): Likewise.
49138         * lib/save-cwd.c (save_cwd): Likewise.
49139         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
49140         well, for minor improvements on hosts that lack O_DIRECTORY.
49141         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
49142         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
49143         Fall back on chown if open failed with EACCES.
49144
49145         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
49146         Report an error at compile-time if only a 1-second nominal clock
49147         resolution is found.
49148
49149         * lib/lchmod.h: New file.
49150         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
49151         (make_dir_parents): Use lchown rather than chown, and
49152         lchmod rather than chmod.
49153
49154         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
49155         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
49156         "proc" reported by n0dalus.
49157
49158         * lib/mountlist.c: Include <limits.h>.
49159         (dev_from_mount_options)
49160         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
49161         New function.  It no longer assumes "dev=" has the System V meaning
49162         on Linux (since it doesn't).  It also parses "dev=" more carefully.
49163         (read_file_system_list)
49164         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
49165         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
49166         dev= in that case.
49167
49168         * lib/posixtm.h (PDS_PRE_2000): New macro.
49169         * lib/posixtm.c (year): Arg is now syntax_bits rather than
49170         allow_century.  All usages changed.  Reject dates outside the range
49171         1969-1999 if PDS_PRE_2000 is used.
49172
49173 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49174
49175         Sync from coreutils.
49176         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
49177         (Time of day items): Mention the possibility of leap seconds.
49178         Problem reported by Dr. David Alan Gilbert.
49179
49180 2006-01-09  Jim Meyering  <jim@meyering.net>
49181
49182         Sync from coreutils.
49183
49184         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
49185
49186         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
49187
49188         * lib/modechange.c (mode_compile): Reject an invalid mode string
49189         that starts with an octal digit.  From Andreas Gruenbacher.
49190
49191         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
49192         and dup to open_safer and dup_safer, respectively.
49193         (openat_permissive): Fix typo in comment.
49194
49195         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
49196         "gettext.h"; either no longer needed or are guaranteed by openat.h.
49197         (_): Remove; no longer needed.
49198         (openat): Renamed from rpl_openat; no need for rpl_openat
49199         since openat.h renames openat for us.
49200         Replace most of the body with a call to openat_permissive,
49201         to avoid duplicate code.
49202         Port to (probably hypothetical) environments were mode_t is
49203         wider than int.
49204         (openat_permissive): Require mode arg, so that we can check
49205         types better.  Put it just after flags.  Change cwd failure
49206         indicator from pointer-to-bool to pointer-to-errno-value.
49207         All callers changed.
49208         Invoke openat_save_fail and/or openat_restore_fail if
49209         cwd_errno is null, so that openat can call us.
49210         (openat_permissive, fdopendir, fstatat, unlinkat):
49211         Simplify errno handling to avoid some duplicate code,
49212         as it's OK to set errno on success.
49213         * lib/openat.h: Revamp code so that function macros depend on
49214         __OPENAT_PREFIX only, not also on AT_FDCWD.
49215         (openat_ro): Remove.  Caller changed to use openat_permissive.
49216         (openat_permissive): Now a macro, if not a function.
49217         (openat_restore_fail, openat_save_fail): Now always functions,
49218         since mkdirat needs them even if __OPENAT_PREFIX is defined.
49219
49220         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
49221         and openat.c.
49222         * lib/mkdirat.c: Include openat-priv.h.
49223         Remove definitions of macros defined therein.
49224         * lib/openat.c: Likewise.
49225
49226         * lib/mkdirat.c (mkdirat): New file and function.
49227         * lib/openat.h (mkdirat): Declare.
49228
49229         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
49230
49231         * lib/openat.h (openat_permissive): Declare.
49232         (openat_ro): Define.
49233
49234         * lib/openat.c (EXPECTED_ERRNO): New macro.
49235         (openat_permissive): New function -- used in remove.c rewrite.
49236         (all functions): Set errno just before returning, only if there
49237         was an actual failure.
49238         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
49239
49240         Emulate openat-family functions using Linux's procfs, if possible.
49241         Idea and some code based on Ulrich Drepper's glibc changes.
49242
49243         * lib/openat.c: (BUILD_PROC_NAME): New macro.
49244         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
49245         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
49246         before falling back on save_cwd and restore_cwd.
49247         (fdopendir, fstatat, unlinkat): Likewise.
49248
49249         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
49250         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
49251
49252         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
49253         as second argument to va_arg.  Otherwise, some versions of gcc
49254         warn that `if this code is reached, the program will abort'.
49255
49256 2006-01-09  Jim Meyering  <jim@meyering.net>
49257
49258         Sync from coreutils.
49259         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
49260         Require openat-priv.h.
49261
49262 2006-01-09  Bruno Haible  <bruno@clisp.org>
49263
49264         * modules/strnlen (Include): Use strnlen.h.
49265
49266 2006-01-09  Bruno Haible  <bruno@clisp.org>
49267
49268         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
49269
49270 2006-01-09  Bruno Haible  <bruno@clisp.org>
49271
49272         * lib/sysexit_.h (EX_OK): New macro.
49273         Suggested by Martin Lambers <marlam@marlam.de>.
49274
49275 2006-01-09  Bruno Haible  <bruno@clisp.org>
49276
49277         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
49278         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
49279
49280 2006-01-09  Bruno Haible  <bruno@clisp.org>
49281
49282         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
49283         numbers.
49284
49285 2006-01-09  Bruno Haible  <bruno@clisp.org>
49286
49287         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
49288         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
49289         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
49290         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
49291
49292 2006-01-09  Bruno Haible  <bruno@clisp.org>
49293
49294         * build-aux/javacomp.sh.in: New file, moved from lib/.
49295         * modules/javacomp-script (Files): Update.
49296         (configure.ac): Add AC_CONFIG_FILES invocation.
49297         (EXTRA_DIST): Remove variable.
49298
49299         * build-aux/javaexec.sh.in: New file, moved from lib/.
49300         * modules/javaexec (Files): Update.
49301         (configure.ac): Add AC_CONFIG_FILES invocation.
49302         (EXTRA_DIST): Remove javaexec.sh.in.
49303
49304         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
49305         * modules/csharpcomp-script (Files): Update.
49306         (configure.ac): Add AC_CONFIG_FILES invocation.
49307         (EXTRA_DIST): Remove variable.
49308
49309         * build-aux/csharpexec.sh.in: New file, moved from lib/.
49310         * modules/csharpexec (Files): Update.
49311         (configure.ac): Add AC_CONFIG_FILES invocation.
49312         (EXTRA_DIST): Remove csharpexec.sh.in.
49313
49314 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49315
49316         Sync from coreutils.
49317
49318         Add POSIX ACL support
49319         * lib/acl.h (copy_acl, set_acl): Add declarations.
49320         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
49321         systems other than Linux.
49322         (chmod_or_fchmod): New function: use fchmod when possible,
49323         and chmod otherwise.
49324         (file_has_acl): Add a POSIX ACL implementation, with a
49325         Linux-specific subcase.
49326         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
49327         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
49328         acls are unsupported.
49329         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
49330         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
49331         are unsupported.
49332
49333 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49334
49335         Sync from coreutils.
49336         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49337
49338 2006-01-07  Bruno Haible  <bruno@clisp.org>
49339
49340         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49341         gl_EARLY.
49342
49343 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49344
49345         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49346         Problem reported for Mingw by Mark Junker.
49347
49348 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49349
49350         * README: Gnulib normally doesn't generate a tarball.
49351
49352 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49353
49354         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49355         long int, not int, for nanosecond counts, so that people who are
49356         used to POSIX struct timespec won't be surprised.  Reported by Jim
49357         Meyering.
49358
49359 2005-12-28  Bruno Haible  <bruno@clisp.org>
49360
49361         * build-aux/config.rpath: Update from GNU gettext.
49362
49363 2005-12-16  Jim Meyering  <jim@meyering.net>
49364
49365         * modules/fprintftime: New module.
49366         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49367
49368 2005-12-16  Jim Meyering  <jim@meyering.net>
49369
49370         * m4/fprintftime.m4: New file.
49371
49372 2005-12-16  Jim Meyering  <jim@meyering.net>
49373
49374         * lib/fprintftime.c, lib/fprintftime.h: New files.
49375
49376 2005-12-15  Simon Josefsson  <jas@extundo.com>
49377
49378         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49379         new m4/socklen.m4.
49380
49381 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49382
49383         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49384         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49385
49386 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49387
49388         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49389         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49390         struct uparams is valid. Fall back to the default values if it is
49391         not.
49392
49393 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49394
49395         * modules/argp (Files): Add argp-pin.c
49396         (Depends-on): dirname
49397         (lib_SOURCES): Add argp-pin.c
49398
49399 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49400
49401         * m4/argp.m4:  Check if program_invocation_name and
49402         program_invocation_short_name are declared and define appropriate
49403         macros if they are not.
49404
49405 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49406
49407         * lib/argp-help.c (__argp_base_name): New function
49408         (__argp_short_program_name): Rewrite using __argp_base_name
49409         * lib/argp-namefrob.h: Define program_invocation_name and
49410         program_invocation_short_name if requested
49411         (__argp_base_name): Add prototype
49412         * lib/argp-parse.c (argp_def): Use gettext wrappers
49413         (argp_default_parser): Use __argp_base_name
49414         * lib/argp-pin.c: New file. Defines program_invocation_name and
49415         program_invocation_short_name on systems that lack them.
49416
49417 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49418
49419         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49420         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49421         porting problem reported by Georg Schwarz in
49422         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49423
49424 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49425
49426         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49427         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49428         porting problem reported by Georg Schwarz in
49429         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49430
49431 2005-12-05  Bruno Haible  <bruno@clisp.org>
49432
49433         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49434         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49435         Reported by Mark Junker <mjscod@gmx.de>.
49436
49437 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49438
49439         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49440         Use implementation from Albert Chin, with some
49441         comments/corrections by Stepan Kasal and myself.
49442
49443 2005-12-02  Bruno Haible  <bruno@clisp.org>
49444
49445         * gnulib-tool (func_import): Accept GPLed build tool modules when
49446         --lgpl is given.
49447         * modules/csharpcomp-script: New file.
49448         * modules/csharpcomp: Depend on it.
49449         * modules/javacomp-script: New file.
49450         * modules/javacomp: Depend on it.
49451         Suggested by Simon Josefsson.
49452
49453 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49454
49455         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49456         statement, to work around an HP-UX 10.20 compiler bug reported by
49457         Peter O'Gorman.
49458
49459 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49460
49461         * modules/savedir (Depends-on): Add openat.
49462
49463 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49464
49465         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49466         (uintmax_t) [defined uintmax_t]: Do not declare.
49467         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49468         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49469         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49470         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49471         sake of portability to weird hosts that C allows (though we don't
49472         know of any practical examples).
49473
49474         * lib/savedir.h (fdsavedir): New decl.
49475         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49476         contains most of the former guts of savedir.
49477         (savedir): Use savedirstream.
49478         Include "openat.h".
49479
49480 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49481
49482         * modules/obstack (Files): Add m4/ulonglong.m4.
49483         Problem reported by Davide Angelocola.
49484
49485 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49486
49487         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49488         coreutils no longer futzes with rounding modes.
49489
49490 2005-11-14  Jim Meyering  <jim@meyering.net>
49491
49492         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49493         replacement of mkstemp.
49494
49495 2005-11-10  Simon Josefsson  <jas@extundo.com>
49496
49497         * lib/readline.c: Remove EOL.
49498
49499 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49500
49501         * modules/gethrxtime (Depends-on): Add gettime.
49502
49503 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49504
49505         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49506         or gettimeofday; no longer needed.
49507
49508 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49509
49510         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49511         time business.
49512         (gethrxtime) [! (HAVE_NANOUPTIME
49513         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49514         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49515         our own approximation.
49516
49517 2005-11-08  Eric Blake  <ebb9@byu.net>
49518
49519         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49520
49521 2005-11-08  Eric Blake  <ebb9@byu.net>
49522
49523         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49524
49525 2005-11-04  Bruno Haible  <bruno@clisp.org>
49526
49527         * gnulib-tool: Implement --update mode.
49528
49529 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49530
49531         Fix porting problem reported by Theodoros V. Kalamatianos.
49532         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49533         Don't assume that futimes failing means we must fail.
49534
49535 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49536
49537         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49538         variables to suggest the intended function of the PATH_MAX check.
49539
49540 2005-10-30  Kean Johnston  <jkj@sco.com>
49541
49542         Trivial changes to support SCO systems.
49543         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49544         as PATH_MAX.
49545         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49546         where __ptr is null when no I/O is pending.
49547
49548 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49549
49550         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49551         leave errno alone.  Problem reported by Dmitry V. Levin.
49552
49553 2005-10-28  Simon Josefsson  <jas@extundo.com>
49554
49555         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49556         Test more.
49557
49558         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49559
49560         * modules/md2, modules/md2-tests: New files.
49561
49562 2005-10-28  Simon Josefsson  <jas@extundo.com>
49563
49564         * m4/inet_ntop.m4: More tests.
49565
49566         * m4/gc-md2.m4, md2.m4: New file.
49567
49568 2005-10-28  Simon Josefsson  <jas@extundo.com>
49569
49570         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49571         "restrict" keywords, as per POSIX.  Protect the function
49572         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49573         Don't use K&R prototypes.  Check the sprintf return values.
49574         Re-define EAFNOSUPPORT if not present.  Indent.
49575
49576         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49577         suggested by Bruno Haible <bruno@clisp.org>.
49578
49579         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49580
49581         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49582
49583         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49584         libgcrypt).
49585
49586         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49587
49588         * lib/md2.h, lib/md2.c: New files.
49589
49590 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49591
49592         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49593         errno alone.  Problem reported by Frederic Jolliton.
49594
49595 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49596
49597         * modules/verify (License): Change from GPL to LGPL.  This is a
49598         tiny module and there are apparently near-equivalents that are
49599         under the BSD license.
49600
49601 2005-10-24  Simon Josefsson  <jas@extundo.com>
49602
49603         * modules/sha1: Relicense to LGPL.
49604
49605 2005-10-24  Simon Josefsson  <jas@extundo.com>
49606
49607         * lib/md4.h: Shrink buffer size, now that we changed the type.
49608
49609 2005-10-23  Simon Josefsson  <jas@extundo.com>
49610
49611         * gnulib-tool (func_import): Fix --tests-base.
49612
49613 2005-10-22  Simon Josefsson  <jas@extundo.com>
49614
49615         * modules/arcfour (Depends-on): Need stdint.
49616
49617 2005-10-22  Simon Josefsson  <jas@extundo.com>
49618
49619         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49620         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49621
49622 2005-10-22  Simon Josefsson  <jas@extundo.com>
49623
49624         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49625         suggested by Bruno Haible <bruno@clisp.org>.
49626
49627 2005-10-22  Simon Josefsson  <jas@extundo.com>
49628
49629         * lib/crc.h: Include stddef.h, for size_t.
49630
49631 2005-10-22  Simon Josefsson  <jas@extundo.com>
49632
49633         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49634         arcfour_context struct (simplify test vector testing in GNU
49635         Shishi).
49636
49637 2005-10-21  Simon Josefsson  <jas@extundo.com>
49638
49639         * modules/des, modules/des-tests: New files.
49640
49641         * modules/gc-des, modules/gc-des-tests: New files.
49642
49643         * tests/test-des.c, tests/test-gc-des.c: New file.
49644
49645 2005-10-21  Simon Josefsson  <jas@extundo.com>
49646
49647         * modules/arctwo, modules/arctwo-tests: New files.
49648
49649         * tests/test-arctwo.c: New file.
49650
49651         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49652
49653         * tests/test-gc-arctwo.c: New file.
49654
49655 2005-10-21  Simon Josefsson  <jas@extundo.com>
49656
49657         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49658         Bruno Haible <bruno@clisp.org>.
49659
49660         * m4/gc-des.m4: New file.
49661
49662 2005-10-21  Simon Josefsson  <jas@extundo.com>
49663
49664         * m4/arctwo.m4: New file.
49665
49666         * m4/gc-arctwo.m4: New file.
49667
49668 2005-10-21  Simon Josefsson  <jas@extundo.com>
49669
49670         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49671         block.
49672
49673 2005-10-21  Simon Josefsson  <jas@extundo.com>
49674
49675         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49676         <bruno@clisp.org>.
49677
49678         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49679
49680         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49681         Bruno Haible <bruno@clisp.org>.
49682
49683         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49684         <bruno@clisp.org>.
49685
49686 2005-10-21  Simon Josefsson  <jas@extundo.com>
49687
49688         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49689
49690 2005-10-21  Simon Josefsson  <jas@extundo.com>
49691
49692         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49693
49694 2005-10-21  Simon Josefsson  <jas@extundo.com>
49695
49696         * lib/des.h, lib/des.c: New files.
49697
49698         * lib/gc-gnulib.c: Support DES.c
49699
49700 2005-10-21  Simon Josefsson  <jas@extundo.com>
49701
49702         * lib/arctwo.h, lib/arctwo.c: New files.
49703
49704         * lib/gc-gnulib.c: Support ARCTWO.
49705
49706 2005-10-21  Simon Josefsson  <jas@extundo.com>
49707
49708         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49709         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49710
49711 2005-10-21  Simon Josefsson  <jas@extundo.com>
49712
49713         * gnulib-tool (func_import, func_create_testdir): Define automake
49714         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49715         Makefile.am snippet),
49716         suggested by Bruno Haible <bruno@clisp.org>.
49717
49718         * modules/gc (Makefile.am): Use it.
49719
49720 2005-10-21  Bruno Haible  <bruno@clisp.org>
49721
49722         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49723         patch.
49724
49725 2005-10-19  Simon Josefsson  <jas@extundo.com>
49726
49727         * tests/test-gc-rijndael.c: New file.
49728
49729         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49730
49731 2005-10-19  Simon Josefsson  <jas@extundo.com>
49732
49733         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49734         interface too.
49735
49736 2005-10-19  Simon Josefsson  <jas@extundo.com>
49737
49738         * tests/test-gc-arcfour.c: New file.
49739
49740         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49741
49742 2005-10-19  Simon Josefsson  <jas@extundo.com>
49743
49744         * modules/gc-md4, modules/gc-md4-tests: New file.
49745
49746         * tests/test-gc-md4.c: New file.
49747
49748 2005-10-19  Simon Josefsson  <jas@extundo.com>
49749
49750         * m4/gc-md4.m4: New file.
49751
49752 2005-10-19  Simon Josefsson  <jas@extundo.com>
49753
49754         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49755         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49756         <kasal@ucw.cz>.
49757
49758 2005-10-19  Simon Josefsson  <jas@extundo.com>
49759
49760         * m4/gc-arcfour.m4: New file.
49761
49762         * m4/gc-rijndael.m4: New file.
49763
49764 2005-10-19  Simon Josefsson  <jas@extundo.com>
49765
49766         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49767
49768 2005-10-19  Simon Josefsson  <jas@extundo.com>
49769
49770         * lib/gc-gnulib.c: Support ARCFOUR.
49771
49772 2005-10-19  Simon Josefsson  <jas@extundo.com>
49773
49774         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49775         support.
49776
49777         * lib/gc.h: Add ECB enum type.
49778
49779         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49780
49781 2005-10-18  Simon Josefsson  <jas@extundo.com>
49782
49783         * tests/test-md5.c: New file.
49784
49785         * modules/md5-tests: New file.
49786
49787 2005-10-18  Simon Josefsson  <jas@extundo.com>
49788
49789         * tests/test-md4.c: New file.
49790
49791         * modules/md4, modules/md4-tests: New files.
49792
49793 2005-10-18  Simon Josefsson  <jas@extundo.com>
49794
49795         * m4/md4.m4: New file.
49796
49797 2005-10-18  Simon Josefsson  <jas@extundo.com>
49798
49799         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49800
49801 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49802
49803         * gnulib-tool (func_create_testdir): Omit the second check whether
49804         BUILT_SOURCES in nonempty.
49805
49806 2005-10-17  Simon Josefsson  <jas@extundo.com>
49807
49808         * tests/test-rijndael.c: New file.
49809
49810 2005-10-17  Simon Josefsson  <jas@extundo.com>
49811
49812         * modules/sha1: Depend on stdint instead of md5.
49813
49814         * modules/md5: Depend on stdint, remove uint32_t.
49815
49816 2005-10-17  Simon Josefsson  <jas@extundo.com>
49817
49818         * modules/gc-sha1-tests: New file.
49819
49820         * tests/test-gc-sha1.c: New file.
49821
49822 2005-10-17  Simon Josefsson  <jas@extundo.com>
49823
49824         * m4/md5.m4: Remove call to uint32_t.m4.
49825
49826 2005-10-17  Simon Josefsson  <jas@extundo.com>
49827
49828         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49829
49830         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49831         md5.h.
49832
49833         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49834
49835         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49836
49837 2005-10-17  Simon Josefsson  <jas@extundo.com>
49838
49839         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49840
49841 2005-10-17  Simon Josefsson  <jas@extundo.com>
49842
49843         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49844
49845 2005-10-17  Simon Josefsson  <jas@extundo.com>
49846
49847         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49848
49849         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49850
49851 2005-10-17  Bruno Haible  <bruno@clisp.org>
49852
49853         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49854         that it can also be used in a test.
49855
49856 2005-10-16  Bruno Haible  <bruno@clisp.org>
49857
49858         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49859         TESTS_ENVIRONMENT, so that individual tests can augment it.
49860
49861         * gnulib-tool (func_create_testdir): Use an intermediate target for
49862         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49863         macros, like $(ALLOCA_H), which cannot be passed through the command
49864         line.
49865
49866 2005-10-15  Simon Josefsson  <jas@extundo.com>
49867
49868         * modules/rijndael-tests: New file.
49869
49870         * modules/rijndael: New file.
49871
49872 2005-10-15  Simon Josefsson  <jas@extundo.com>
49873
49874         * m4/rijndael.m4: New file.
49875
49876 2005-10-15  Simon Josefsson  <jas@extundo.com>
49877
49878         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49879
49880         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49881
49882 2005-10-14  Simon Josefsson  <jas@extundo.com>
49883
49884         * tests/test-arcfour.c: New file.
49885
49886         * modules/arcfour, modules/arcfour-tests: New files.
49887
49888 2005-10-14  Simon Josefsson  <jas@extundo.com>
49889
49890         * m4/arcfour.m4: New file.
49891
49892 2005-10-14  Simon Josefsson  <jas@extundo.com>
49893
49894         * lib/arcfour.h, lib/arcfour.c: New files.
49895
49896 2005-10-14  Roland McGrath  <roland@redhat.com>
49897
49898         Import from libc.  [BZ #1331]
49899         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49900         macro argument.
49901         Reported by Matej Vela <vela@debian.org>.
49902
49903 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49904
49905         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49906         include <wchar.h>; no longer needed.
49907
49908 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49909
49910         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49911
49912 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49913         and  Ulrich Drepper  <drepper@redhat.com>
49914
49915         Import from libc.
49916         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49917         instead of inline stream orientation test and two separate
49918         function calls.  Pay no attention to USE_IN_LIBIO.
49919
49920 2005-10-13  Simon Josefsson  <jas@extundo.com>
49921
49922         * modules/gc-hmac-md5-tests: New file.
49923
49924         * tests/test-gc-hmac-sha1.c: New file.
49925
49926         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49927
49928         * modules/gc-hmac-md5-tests: New file.
49929
49930         * tests/test-gc-md5.c: New file.
49931
49932         * modules/gc-md5-tests: New file.
49933
49934 2005-10-13  Simon Josefsson  <jas@extundo.com>
49935
49936         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49937         Move memory allocation outside of loop.
49938
49939 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49940
49941         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49942         intermediate directory is in a read-only file system.  Problem
49943         reported by Eric Blake.
49944
49945 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49946
49947         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49948
49949 2005-10-12  Simon Josefsson  <jas@extundo.com>
49950
49951         * tests/test-hmac-sha1.c: New file.
49952
49953         * modules/hmac-sha1-tests: New file.
49954
49955         * modules/hmac-sha1: New file.
49956
49957 2005-10-12  Simon Josefsson  <jas@extundo.com>
49958
49959         * modules/gc-sha1: New file.
49960
49961 2005-10-12  Simon Josefsson  <jas@extundo.com>
49962
49963         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49964
49965         * tests/test-gc-pbkdf2-sha1.c: New file.
49966
49967 2005-10-12  Simon Josefsson  <jas@extundo.com>
49968
49969         * modules/gc-md5, modules/gc-hmac-md5: New files.
49970
49971         * modules/gc (Files): Remove md5, memxor and hmac files.
49972
49973 2005-10-12  Simon Josefsson  <jas@extundo.com>
49974
49975         * m4/gc-pbkdf2-sha1.m4: New file.
49976
49977         * m4/gc-hmac-sha1.m4: New file.
49978
49979         * m4/gc-sha1: New file.
49980
49981         * m4/hmac-sha1.m4: New file.
49982
49983 2005-10-12  Simon Josefsson  <jas@extundo.com>
49984
49985         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49986
49987         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49988
49989 2005-10-12  Simon Josefsson  <jas@extundo.com>
49990
49991         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49992         suggested by Bruno Haible <bruno@clisp.org>.
49993
49994 2005-10-12  Simon Josefsson  <jas@extundo.com>
49995
49996         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49997
49998 2005-10-12  Simon Josefsson  <jas@extundo.com>
49999
50000         * lib/gc-pbkdf2-sha1.c: New file.
50001
50002         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
50003
50004 2005-10-12  Simon Josefsson  <jas@extundo.com>
50005
50006         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
50007
50008         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
50009
50010 2005-10-12  Simon Josefsson  <jas@extundo.com>
50011
50012         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
50013         GC_USE_HMAC_MD5, respectively.
50014
50015         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
50016         (gc_md5): Fix typo.
50017
50018         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
50019
50020         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
50021
50022         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
50023
50024 2005-10-12  Bruno Haible  <bruno@clisp.org>
50025
50026         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
50027         Reported by Stepan Kasal <kasal@ucw.cz>.
50028
50029 2005-10-11  Simon Josefsson  <jas@extundo.com>
50030
50031         * tests/test-crc.c: New file.
50032
50033         * modules/crc, modules/crc-tests: New files.
50034
50035 2005-10-11  Simon Josefsson  <jas@extundo.com>
50036
50037         * m4/crc.m4: New file.
50038
50039 2005-10-11  Simon Josefsson  <jas@extundo.com>
50040
50041         * lib/gc.h: Add gc_hash and gc_hash_buffer.
50042
50043         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
50044
50045         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
50046
50047 2005-10-11  Simon Josefsson  <jas@extundo.com>
50048
50049         * lib/crc.h, lib/crc.c: New files.
50050
50051         * lib/gc.h (gc_hash_buffer): Add doc.
50052
50053 2005-10-11  Bruno Haible  <bruno@clisp.org>
50054
50055         * modules/c-strcasestr: New file.
50056         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
50057
50058 2005-10-11  Bruno Haible  <bruno@clisp.org>
50059
50060         * modules/c-strcase: New file.
50061         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
50062
50063 2005-10-11  Bruno Haible  <bruno@clisp.org>
50064
50065         * lib/strcasecmp.c: Include limits.h.
50066         (strcasecmp): Avoid integer overflow on exotic platforms.
50067         * lib/strncasecmp.c: Include limits.h.
50068         (strncasecmp): Avoid integer overflow on exotic platforms.
50069         Reported by Paul Eggert.
50070
50071 2005-10-11  Bruno Haible  <bruno@clisp.org>
50072
50073         * lib/c-strcasestr.h: New file, from GNU gettext.
50074         * lib/c-strcasestr.c: New file, from GNU gettext.
50075
50076 2005-10-11  Bruno Haible  <bruno@clisp.org>
50077
50078         * lib/c-strcase.h: New file, from GNU gettext.
50079         * lib/c-strcasecmp.c: New file, from GNU gettext.
50080         * lib/c-strncasecmp.c: New file, from GNU gettext.
50081
50082 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50083
50084         * modules/mempcpy (License): GPL -> LGPL.
50085         * modules/strchrnul (License): Likewise.
50086         * modules/sysexits (License): Likewise.
50087
50088 2005-10-08  Simon Josefsson  <jas@extundo.com>
50089
50090         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
50091
50092 2005-10-07  Simon Josefsson  <jas@extundo.com>
50093
50094         * m4/memxor.m4: Remove gl_C_RESTRICT call.
50095
50096 2005-10-06  Simon Josefsson  <jas@extundo.com>
50097
50098         * tests/test-hmac-md5.c: New file.
50099
50100         * modules/hmac-md5-tests: New file.
50101
50102         * modules/hmac-md5: New file.
50103
50104 2005-10-06  Simon Josefsson  <jas@extundo.com>
50105
50106         * m4/hmac-md5.m4: New file.
50107
50108         * m4/memxor.m4: Require gl_C_RESTRICT.
50109
50110 2005-10-06  Simon Josefsson  <jas@extundo.com>
50111
50112         * lib/memxor.c (memxor): Avoid casts and warnings.
50113
50114 2005-10-06  Simon Josefsson  <jas@extundo.com>
50115
50116         * lib/hmac-md5.c: New file.
50117
50118         * lib/hmac.h: New file.
50119
50120 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50121
50122         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
50123         promotes to int, not unsigned int, to catch the AIX 5.3
50124         compiler bug.
50125
50126 2005-10-05  Simon Josefsson  <jas@extundo.com>
50127
50128         * modules/memxor: New file.
50129
50130         * modules/iconv (Files): Move config.rpath to havelib, it is used
50131         there.
50132
50133         * modules/havelib (Files): Add config.rpath.
50134
50135 2005-10-05  Simon Josefsson  <jas@extundo.com>
50136
50137         * m4/memxor.m4: New file.
50138
50139 2005-10-05  Simon Josefsson  <jas@extundo.com>
50140
50141         * lib/memxor.c (memxor): Fix compiler error.
50142
50143         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
50144         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
50145
50146         * lib/memxor.h, lib/memxor.c: New files.
50147
50148         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
50149         we assume all systems have it, suggested by Jim Meyering
50150         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
50151         any systems lack sys/socket.h; mingw32 is known to lack it, but we
50152         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
50153         same reasons.
50154
50155 2005-10-05  Simon Josefsson  <jas@extundo.com>
50156
50157         * config/srclist.txt: Add glibc bug 1423 for md5.h.
50158
50159 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50160
50161         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
50162         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
50163         needed, since the source code now assumes these .h files.
50164
50165 2005-10-05  Derek Price  <derek@ximbiot.com>
50166
50167         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
50168
50169 2005-10-05  Bruno Haible  <bruno@clisp.org>
50170
50171         * modules/stdint (License): Change to LGPL.
50172
50173 2005-10-04  Simon Josefsson  <jas@extundo.com>
50174
50175         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
50176         D. Baushke" <mdb@gnu.org>.
50177
50178 2005-10-04  Bruno Haible  <bruno@clisp.org>
50179
50180         * lib/verify.h (verify_true): Provide alternative definition for C++.
50181
50182 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
50183
50184         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
50185         (SSIZE_MAX): New macro, if not already defined.
50186         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
50187         than 2 GiB.
50188
50189 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50190
50191         Sync from coreutils.
50192         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
50193         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
50194         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
50195         ULLONG_MAX doesn't work with 2.7.2.1.
50196
50197 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50198
50199         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
50200         From Ben Pfaff.
50201
50202         * modules/exclude (Depends-on): Depend on verify.
50203         * modules/strtoimax (Depends-on): Likewise.
50204         * modules/utimecmp (Depends-on): Likewise.
50205
50206 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50207
50208         * lib/exclude.c: Include verify.h.
50209         (verify): Remove.  All callers changed to use verify.h's version.
50210         * lib/strtoimax.c: Likewise.
50211         * lib/utimecmp.c: Likewis.e
50212
50213         Sync from coreutils.
50214         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
50215         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
50216         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
50217         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
50218         bother returning ENOSYS if settimeofday or stime fails; just let
50219         them return whatever errno they want to return.
50220         * lib/utimens.c: Include unistd.h, for dup2.
50221         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
50222         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
50223
50224 2005-10-02  Jim Meyering  <jim@meyering.net>
50225
50226         Sync from coreutils.
50227         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
50228         from glibc-2.2.5 that fails for read-only files.
50229
50230 2005-10-02  Jim Meyering  <jim@meyering.net>
50231
50232         Sync from coreutils.
50233         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
50234         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
50235         `#if HAVE_CONFIG_H'.
50236         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
50237         Remove AT_FDCWD test.
50238         Do not consume the fd unless successful.
50239         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
50240         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
50241         block, so that we don't even try to compile it if settimeofday is
50242         available.  This works around a compilation failure on OSF1 V5.1,
50243         due to stime requiring a `long int*' while tv_sec is `int'.
50244
50245 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
50246
50247         Sync from coreutils.
50248         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
50249         against `yes', rather than just testing for nonempty.
50250
50251 2005-10-01  Simon Josefsson  <jas@extundo.com>
50252
50253         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
50254         and Darwin.
50255
50256         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
50257         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
50258         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
50259         freeaddrinfo and gai_strerror are declared by the POSIX headers.
50260         Check if struct addrinfo is declared.
50261
50262 2005-10-01  Simon Josefsson  <jas@extundo.com>
50263
50264         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
50265         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
50266         AI_* and EAI_* definitions.  Protect function declarations.
50267
50268 2005-10-01  Jim Meyering  <jim@meyering.net>
50269
50270         Sync from coreutils.
50271
50272         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
50273         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
50274         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
50275         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50276         in the inet and nsl libraries.  Required on Solaris 5.7.
50277
50278 2005-10-01  Jim Meyering  <jim@meyering.net>
50279
50280         Sync from coreutils.
50281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50282         in the inet and nsl libraries.  Required on Solaris 5.7.
50283
50284 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
50285
50286         * lib/getdelim.c (getdelim): Remove unused variables.
50287
50288 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50289
50290         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
50291         so that the code works even with ancient cpp.  Portability problem
50292         with GCC 2.7.2.1 reported by Thomas M.Ott.
50293
50294 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50295
50296         * modules/regex (Depends-on): Add strcase.
50297
50298         * modules/gethostname (Licence): Change from GPL to LGPL, since
50299         gethostname.c is a trivial implementation of a standard library
50300         function.
50301         * modules/poll (License): Change from GPL to LGPL, since it's
50302         derived from LGPL code.
50303
50304 2005-09-27  Jim Meyering  <jim@meyering.net>
50305
50306         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
50307         HAVE_CONFIG_H.
50308
50309         * lib/intprops.h (signed_type_or_expr__): Define.
50310         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
50311         for unsigned types.
50312
50313 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50314
50315         * lib/verify.h (verify_expr): Remove, replacing with:
50316         (verify_true): New macro that returns true instead of void.
50317         (verify_type__): Remove.
50318         (verify): Use verify_true rather than verify_type__.
50319
50320 2005-09-26  Bruno Haible  <bruno@clisp.org>
50321
50322         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
50323         is necessary.
50324         (lib_SOURCES): Remove mbchar.c.
50325         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
50326         (Files): Add m4/mbrtowc.m4.
50327         * modules/mbiter: Likewise.
50328         * modules/mbuiter: Likewise.
50329
50330 2005-09-26  Bruno Haible  <bruno@clisp.org>
50331
50332         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50333         compile mbchar.c if they are not both present.
50334         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50335         * m4/mbiter.m4 (gl_MBITER): Likewise.
50336         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50337         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50338         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50339
50340 2005-09-25  Jim Meyering  <jim@meyering.net>
50341
50342         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50343         also uses socklen_t.
50344
50345 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50346
50347         * lib/utimens.c (ENOSYS): Define if not already defined.
50348         (futimens): Support having a null PATH if the file descriptor
50349         is nonnegative.
50350
50351         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50352         Remove.
50353         (__attribute): Define to empty unless GCC 3.1 or later.
50354         This works around a core dump on OpenBSD 3.4, which has GCC
50355         2.95.3, which dumps core when given __attribute__(()).  It also
50356         simplifies other tests, since we really don't want to bother with
50357         worrying about which ancient version of GCC supported what.
50358         Original problem reported by Yoann Vandoorselaere, with part of
50359         the fix suggested by Derek Price.
50360
50361 2005-09-24  Jim Meyering  <jim@meyering.net>
50362
50363         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50364         so we can once again use a positive bitfield width of 1 -- now we
50365         don't have to explain why we were using a bitfield width of 2.
50366
50367 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50368
50369         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50370         and similarly for the other external symbols.  Problem reported
50371         by James Gallager.
50372
50373         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50374         bug reported by Jim Meyering.
50375
50376         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50377         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50378         not needed, since socklen is a prerequisite module.
50379
50380 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50381
50382         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50383         Problem reported by Eric Blake.
50384         (getaddrinfo): Initialize se so that it's not garbage.
50385         Redo internal storage allocation so that it doesn't make unportable
50386         assumptions about alignment.
50387         Fix a memory leak.
50388
50389         * lib/utimens.c (futimens): Use futimesat if available.
50390         Prefer it to futimes since it doesn't have the futimes bug.
50391
50392         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50393         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50394         Instead, declare a function that returns a pointer to an array,
50395         and use verify_type__ to declare the size of the array.
50396         Problem and germ of a solution reported by Bruno Haible.
50397         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50398         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50399
50400 2005-09-23  Jim Meyering  <jim@meyering.net>
50401
50402         Sync from coreutils.
50403         Correct build failure (socklen_t not defined) on at least
50404         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50405         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50406
50407 2005-09-23  Jim Meyering  <jim@meyering.net>
50408
50409         * modules/getaddrinfo (Depends-on): Add socklen.
50410
50411 2005-09-23  Bruno Haible  <bruno@clisp.org>
50412
50413         * tests/test-verify.c: New file.
50414
50415 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50416
50417         Sync from coreutils.
50418
50419         * modules/argmatch (Depends-on): Add verify.
50420         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50421         unistd-safer.
50422         * modules/save-cwd (Depends-on): Likewise.
50423
50424         * modules/openat (Files): Add lib/openat-die.c.
50425         (Depends-on): Remove error, exitfail.
50426         Add dirname.
50427
50428         * modules/verify: New file.
50429         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50430         with "verify" module.
50431
50432 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50433
50434         Sync from coreutils.
50435
50436         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50437         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50438         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50439         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50440         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50441         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50442         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50443         Don't bother checking for string.h, stdlib.h, unistd.h.
50444         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50445         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50446         module's job.
50447         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50448         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50449
50450         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50451         (gl_GETDATE): Use it.
50452
50453         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50454
50455 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         Sync from coreutils.
50458
50459         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50460         stat-time.h.
50461         * lib/argmatch.h: Include verify.h
50462         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50463         (ARGMATCH_ASSERT): Remove; unused.
50464         * lib/canonicalize.c: Assume STDC_HEADERS.
50465         * lib/exclude.c: Include "strcase.h".
50466         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50467         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50468         and stdio-safer.h.
50469         (getusershell): Call fopen, not fopen_safer.
50470         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50471         Do not include unistd-safer.h.
50472         (save_cwd): Don't call fd_safer; no longer needed
50473         now that we include fcntl--.h.
50474
50475         * lib/getdate.y (relative_time): New type.
50476         (RELATIVE_TIME_0): New constant.
50477         (parser_control): Use relative_time instead of doing it ourselves.
50478         (%union): Add new relative_time rel member.
50479         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50480         Now typeless.
50481         (relunit, relunit_snumber): Now of type rel.
50482         (zone, rel, relunit, get_date): Adjust to above changes.
50483
50484         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50485         Do not include unistd-safer.h.
50486         (getloadavg): Don't call fd_safer; no longer needed
50487         now that we include fcntl--.h.
50488
50489         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50490         (make_dir_parents): Treat ENOSYS like EEXIST.
50491
50492         Improve quality of diagnostics on restore_cwd failure.
50493         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50494         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50495         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50496         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50497         each time through the loop.  Do not diagnose restore_cwd failure;
50498         that is the caller's job (and perhaps the caller does not care).
50499
50500         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50501         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50502         If the file already exists but is not a directory, don't bother
50503         to try to make its parents.
50504         Close potential file descriptor leak if we can't chdir("/") (!).
50505         Don't always return true if chdir($PWD) fails; return true only
50506         if the requested action was done successfully (except for the
50507         chdir($PWD)).
50508         Don't log final directory unless we actually made it.
50509         Refactor to avoid duplicate code to fix up permissions.
50510         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50511
50512         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50513         to make it a bit faster and (I hope) clearer.
50514         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50515         Fix bug in formats like %2N.
50516
50517         * lib/verify.h: New file.
50518
50519 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50520
50521         Sync from coreutils.
50522         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50523
50524 2005-09-22  Jim Meyering  <jim@meyering.net>
50525
50526         Sync from coreutils.
50527
50528         * m4/lstat.m4 (gl_FUNC_LSTAT):
50529         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50530         Remove obsolete comment.
50531         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50532         * m4/xstrtod.m4: Likewise.
50533
50534         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50535
50536 2005-09-22  Jim Meyering  <jim@meyering.net>
50537
50538         Sync from coreutils.
50539
50540         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50541
50542         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50543         the .tm_year member, since otherwise gcc-4.0 would now warn about
50544         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50545
50546         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50547         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50548
50549         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50550         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50551         when run in a time zone for which daylight savings time is in effect
50552         for the starting date.
50553
50554         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50555         stop us from restricting permissions of just-created absolute-named
50556         directories.
50557         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50558         to restore initial working directory.
50559         * lib/mkdir-p.c (make_dir_parents): New parameter:
50560         different_working_dir, to tell caller if/when we change the working
50561         directory and are unable to return to the initial one.
50562         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50563         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50564         `return false'.  This fixes a bug introduced on 2004-07-30.
50565
50566         * lib/openat.c (fdopendir): Be sure to close the supplied
50567         file descriptor before returning.  This makes our replacement
50568         implementation a little closer to Solaris's, where fdopendir
50569         ties the file descriptor to the returned DIR* pointer.
50570         * lib/openat.c (unlinkat): New function.
50571         * lib/openat.h (unlinkat): Add prototype.
50572         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50573         (openat_restore_fail): Rename from openat_restore_die.
50574         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50575
50576         Provide an alternative to exiting immediately upon save_cwd or
50577         restore_cwd failure.  Now, an application can arrange e.g.,
50578         to perform a longjump in that case.
50579         * lib/openat.c: Include dirname.h.
50580         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50581         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50582         and openat_restore_die rather than calling error directly.
50583         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50584
50585         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50586         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50587         define.
50588
50589         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50590         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50591                             int utc, int nanoseconds);
50592         Background:
50593         date should not have to allocate a megabyte of virtual memory to
50594         handle a format argument like +%1048575T.  When implemented with
50595         strftime, it must allocate such a buffer, use strftime to fill it
50596         in, print it, then free it.
50597         With fprintftime, it simply prints everything and exits.
50598         With no need for memory allocation, that's one fewer way to fail.
50599         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50600         optional field width, not before, so we accept %9:z, not %:9z.
50601         (my_strftime): Be sure to use L_('x') for literals.
50602
50603         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50604         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50605         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50606         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50607         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50608         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50609         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50610         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50611         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50612         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50613         * lib/xgethostname.c, lib/xreadlink.c:
50614         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50615
50616         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50617         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50618         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50619         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50620         and don't include <sys/file.h>).
50621
50622 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50623
50624         Sync from coreutils.
50625
50626         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50627         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50628         [!LDAV_DONE]: Avoid unused variable warning.
50629
50630 2005-09-21  Bruno Haible  <bruno@clisp.org>
50631
50632         * lib/unicodeio.h (unicode_to_mb): New declaration.
50633
50634 2005-09-20  Derek Price  <derek@ximbiot.com>
50635
50636         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50637         getaddrinfo.h.
50638
50639 2005-09-20  Bruno Haible  <bruno@clisp.org>
50640
50641         * gnulib-tool: Remove trailing slashes from the values specified for
50642         --source-base, --m4-base, --tests-base, --aux-dir.
50643         Suggested by Simon Josefsson <jas@extundo.com>.
50644
50645 2005-09-20  Bruno Haible  <bruno@clisp.org>
50646
50647         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50648         func_modules_to_filelist, func_import, func_create_testdir): Make all
50649         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50650         change when gnulib-tool is invoked in a different locale.
50651
50652 2005-09-19  Simon Josefsson  <jas@extundo.com>
50653
50654         * m4/socklen.m4: Fix typo.
50655
50656 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50657
50658         Use a consistent style for including <config.h>.
50659         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50660         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50661         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50662         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50663         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50664         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50665         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50666         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50667         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50668         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50669         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50670         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50671         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50672         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50673         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50674         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50675         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50676         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50677         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50678         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50679         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50680         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50681         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50682         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50683         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50684         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50685         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50686         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50687         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50688         lib/xstrtoumax.c, lib/yesno.c:
50689         Standardize inclusion of config.h.
50690         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50691         lib/inttostr.h:  Removed inclusion of config.h from header files.
50692         * lib/inttostr.c:  Adjusted in-tree users.
50693         * lib/timespec.h: Remove superfluous warning to include config.h.
50694         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50695         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50696         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50697         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50698         config.h with HAVE_CONFIG_H.
50699
50700 2005-09-19  Jim Meyering  <jim@meyering.net>
50701
50702         * modules/pathmax (License): Change to LGPL.
50703
50704 2005-09-19  Derek Price  <derek@ximbiot.com>
50705
50706         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50707
50708 2005-09-19  Bruno Haible  <bruno@clisp.org>
50709
50710         * gnulib-tool (import): Provide default for --tests-base.
50711
50712 2005-09-19  Bruno Haible  <bruno@clisp.org>
50713
50714         * doc/quote.texi: New file, extracted from gnulib.texi.
50715         * doc/ctime.texi: New file, extracted from gnulib.texi.
50716         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50717         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50718         * doc/gnulib.texi: Include them.
50719
50720 2005-09-18  Bruno Haible  <bruno@clisp.org>
50721
50722         Portability fix.
50723         * gnulib-tool (func_readlink): New function.
50724         (func_ln_if_changed): Use it.
50725
50726 2005-09-18  Bruno Haible  <bruno@clisp.org>
50727
50728         * gnulib-tool: Support --with-tests also with --import.
50729         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50730         (func_import): Use variables $testsbase and $inctests. Emit a
50731         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50732         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50733         SUBDIRS += $testsdir.
50734         (func_create_testdir): Update.
50735
50736 2005-09-18  Bruno Haible  <bruno@clisp.org>
50737
50738         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50739         instead of $dry_run.
50740         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50741         (func_ln_if_changed): Don't handle dry-run here.
50742         (func_import): In dry-run mode, detect more precisely which actions
50743         would be performed, and don't use "...ing" verbs.
50744
50745 2005-09-18  Bruno Haible  <bruno@clisp.org>
50746
50747         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50748         (func_import): Use join on two temporary files instead of three nested
50749         loops, in order to determine which files are new or old.
50750
50751 2005-09-18  Bruno Haible  <bruno@clisp.org>
50752
50753         * gnulib-tool (func_import): Comment out code that spits out the
50754         new files with --dry-run.
50755
50756 2005-09-18  Bruno Haible  <bruno@clisp.org>
50757
50758         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50759
50760 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50761
50762         * lib/stat-time.h: New file.
50763         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50764         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50765         in a different way.
50766         (timespec_cmp): New function.
50767         * lib/utimecmp.c: Include stat-time.h.
50768         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50769         members exist, not on the obsolescent ST_MTIM_NSEC.
50770         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50771
50772 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50773
50774         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50775
50776 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50777
50778         * MODULES.html.sh (File system functions): Add stat-time.
50779         * modules/stat-time: New file.
50780         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50781         is now done in a different way, by the stat-time module.
50782         * modules/utimecmp (Depends-on): Add stat-time.
50783
50784 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50785
50786         * m4/st_mtim.m4: Remove.  Superseded by...
50787         * m4/stat-time.m4: New file.
50788         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50789         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50790
50791 2005-09-15  Derek Price  <derek@ximbiot.com>
50792
50793         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50794
50795 2005-09-15  Derek Price  <derek@ximbiot.com>
50796
50797         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50798         * lib/regex_internal.c: Ditto, using this...
50799         (__GNUC_PREREQ): ...new macro.
50800         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50801         using...
50802         (__GNUC_PREREQ): ...this new macro.
50803
50804         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50805
50806 2005-09-15  Derek Price  <derek@ximbiot.com>
50807             Paul Eggert  <eggert@cs.ucla.edu>
50808
50809         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50810         changes, consolidating in...
50811         * lib/regex_internal.h: ...this file.
50812
50813 2005-09-13  Jim Meyering  <jim@meyering.net>
50814
50815         * lib/canon-host.c: Filter through gnu indent and reword comments
50816         slightly.
50817         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50818
50819 2005-09-13  Derek Price  <derek@ximbiot.com>
50820
50821         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50822         failure.
50823         Reported by Jim Meyering  <jim@meyering.net>.
50824
50825 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50826
50827         * lib/base64.c: Typo.
50828         (base64_encode): Put b64str in initialized data section.
50829
50830 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50831
50832         Merge glibc and coreutils changes into gnulib, plus a few
50833         extra fixes.
50834         * lib/md5.c: Use #error rather than a string.
50835         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50836         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50837         (__attribute__): Define to empty for non recent-GCC.
50838         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50839         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50840         Renamed from their non-__ counterparts, with new macros replacing
50841         them if not _LIBC.  Add __THROW attribute.
50842         (rol): Remove.
50843         (struct md5_ctx): Align buffer if using GCC.
50844         * lib/sha1.h (struct sha1_ctx): Likewise.
50845         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50846         The old name was backwards.
50847         (NOTSWAP): Remove; not used.
50848         (rol): New macro, moved here from md5.h.
50849         (sha1_process_block): Remove a FIXME that doesn't make sense.
50850
50851 2005-09-12  Derek Price  <derek@ximbiot.com>
50852
50853         Return usable errors from canon-host.
50854         * lib/canon-host.h: New file.
50855         * lib/canon-host.c (canon_host): Wrap...
50856         (canon_host_r): ...this new function, which now relies exclusively on
50857         getaddrinfo.
50858         (ch_strerror): New function.
50859         (last_cherror): New global.
50860         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50861         interface.
50862         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50863         void *.
50864         (freeaddrinfo): Free ai->ai_canonname when set.
50865
50866 2005-09-12  Derek Price  <derek@ximbiot.com>
50867
50868         Make canon-host require getaddrinfo.
50869         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50870         AC_LIBSOURCE canon-host.h.  Call...
50871         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50872         gl_GETADDRINFO.
50873         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50874
50875 2005-09-12  Derek Price  <derek@ximbiot.com>
50876
50877         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50878         LGPL.
50879         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50880
50881 2005-09-12  Derek Price  <derek@ximbiot.com>
50882
50883         * lib/gai_strerror.c: Include config.h when available.  Include
50884         getaddrinfo.h before other headers to test interface.
50885         Reported by Larry Jones <lawrence.jones@ugs.com>.
50886
50887 2005-09-12  Derek Price  <derek@ximbiot.com>
50888             Paul Eggert  <eggert@cs.ucla.edu>
50889
50890         * modules/glob (Files): Add glob-libc.h.
50891
50892 2005-09-12  Derek Price  <derek@ximbiot.com>
50893             Paul Eggert  <eggert@cs.ucla.edu>
50894
50895         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50896         glob_.h, glob-libc.h.
50897         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50898
50899 2005-09-12  Derek Price  <derek@ximbiot.com>
50900             Paul Eggert  <eggert@cs.ucla.edu>
50901
50902         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50903         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50904         protecting things that should be done only in gnulib contexts.
50905         * lib/glob_.h: New file, containing only the glob things needed for
50906         gnulib.
50907         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50908         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50909         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50910         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50911         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50912         and to respect the namespace rules better.
50913
50914 2005-09-08  Simon Josefsson  <jas@extundo.com>
50915
50916         * modules/socklen: New file.
50917
50918 2005-09-08  Simon Josefsson  <jas@extundo.com>
50919
50920         * m4/socklen.m4: New file.
50921
50922 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50923
50924         * modules/utimens (Files): Add m4/utimbuf.m4, since
50925         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50926         Reported by Sergey Poznyakoff.
50927
50928 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50929
50930         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50931         definitions, since that's the preferred style in glibc.
50932         Fix a minor spacing issue, and update copyright notice to match
50933         glibc's.
50934
50935 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50936
50937         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50938
50939 2005-09-06  Simon Josefsson  <jas@extundo.com>
50940
50941         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50942         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50943
50944 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50945
50946         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50947         warning.
50948
50949 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50950
50951         * config/srclist.txt: Add glibc bug 1302.
50952
50953 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50954
50955         Change bitset word type from unsigned int to unsigned long int,
50956         as this has better performance on typical 64-bit hosts.
50957         Port bitset code to hosts with unusual word sizes.
50958         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50959         (build_collating_symbol):
50960         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50961         argument is a bitset.  This is merely a style issue, but it makes
50962         it clearer that an entire array is expected.
50963         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50964         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50965         Port to the case where bitset_word is not the same as unsigned int.
50966         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50967         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50968         Likewise.
50969         * lib/regexec.c (check_dst_limits_calc_pos_1,
50970         check_subexp_matching_top):
50971         (build_trtable, group_nodes_into_DFAstates):
50972         Likewise.
50973         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50974         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50975         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50976         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50977         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50978         * lib/regcomp.c (optimize_subexps, lower_subexp):
50979         Work even if bitset_word has holes in its bitwise representation.
50980         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50981         * lib/regexec.c (check_dst_limits_calc_pos_1,
50982         check_subexp_matching_top):
50983         Likewise.
50984         * lib/regex_internal.c (re_string_reconstruct):
50985         Don't assume UCHAR_MAX == 255.
50986         * lib/regex_internal.h (bitset_set_all): Likewise.
50987         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50988         All uses changed.
50989         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50990         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50991         All uses changed.
50992         (BITSET_WORD_MAX): New macro.
50993         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50994         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50995         (bitset_empty, bitset_copy):
50996         Prefer sizeof (bitset) to multiplying it out ourselves.
50997         (bitset_not_merge): Remove; unused.
50998         (bitset_contain): Return bool, not unsigned int with one bit on.
50999         All callers changed.
51000         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
51001         alignment than re_node_set; do this by defining a new internal
51002         type struct dests_alloc and using it to allocate memory.
51003
51004 2005-09-05  Bruno Haible  <bruno@clisp.org>
51005
51006         * gnulib-tool (func_import): Fix comparison in handling of symbolic
51007         links.
51008
51009 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
51010
51011         * modules/size_max (Makefile.am): Add size_max.h
51012
51013 2005-09-04  Derek Price  <derek@ximbiot.com>
51014
51015         * gnulib-tool (func_import): Fix reversed $symbolic logic.
51016
51017 2005-09-03  Simon Josefsson  <jas@extundo.com>
51018
51019         * gnulib-tool: Fix typo.
51020
51021 2005-09-03  Simon Josefsson  <jas@extundo.com>
51022
51023         * config/srclist.txt: Add glibc bug 1293.
51024
51025 2005-09-03  Derek Price  <derek@ximbiot.com>
51026
51027         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
51028         From Larry Jones <lawrence.jones@ugs.com>.
51029
51030 2005-09-02  Simon Josefsson  <jas@extundo.com>
51031
51032         * modules/socklen: New file.
51033
51034 2005-09-02  Simon Josefsson  <jas@extundo.com>
51035
51036         * modules/havelib: New module.
51037
51038         * modules/gettext, modules/iconv, modules/lock, modules/readline:
51039         Use havelib.
51040
51041 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
51042
51043         Check for arithmetic overflow when calculating sizes, to prevent
51044         some buffer-overflow issues.  These patches are conservative, in the
51045         sense that when I couldn't determine whether an overflow was possible,
51046         I inserted a run-time check.
51047         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
51048         macros.
51049         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
51050         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
51051         (re_xnrealloc, re_x2nrealloc): New inline functions.
51052         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
51053         parse_bracket_exp):
51054         (build_equiv_class, build_charclass): Check for arithmetic overflow
51055         in size expression calculations.
51056         * lib/regex_internal.c (re_string_realloc_buffers):
51057         (build_wcs_upper_buffer, re_node_set_add_intersect):
51058         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
51059         (re_dfa_add_node, register_state): Likewise.
51060         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
51061         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
51062         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
51063         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
51064
51065 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
51066
51067         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51068         m4/ulonglong.m4.  Problem reported by Martin Lambers.
51069
51070 2005-09-02  Bruno Haible  <bruno@clisp.org>
51071
51072         Support for lib vs. lib64 distinction on biarch platforms.
51073         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
51074         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
51075         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
51076
51077 2005-09-02  Bruno Haible  <bruno@clisp.org>
51078
51079         * gnulib-tool (import): In the other first-use case, provide defaults
51080         as well.
51081
51082 2005-09-02  Bruno Haible  <bruno@clisp.org>
51083
51084         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
51085         patches not yet found in the latest gettext release.
51086
51087 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51088
51089         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
51090         to avoid a collision with bits/local_lim.h in glibc.
51091         All uses changed.  Problem reported by Dmitry V. Levin in
51092         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
51093
51094         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
51095         bugs in int versus size_t comparisons.
51096         (re_string_context_at): Fix bug where the code assumed that
51097         Idx is signed.
51098
51099         Use bool where appropriate.
51100         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
51101         All callers changed.
51102         (calc_eclosure_iter): Likewise, for ROOT arg.
51103         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
51104         (build_charclass_op): Likewise, for NON_MATCH arg.
51105         * lib/regex_internal.c (re_string_allocate, re_string_construct):
51106         (re_string_construct_common): Likewise, for ICASE arg.
51107         * lib/regexec.c (re_search_2_stub, re_search_stub):
51108         Likewise, for RET_LEN arg.
51109         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
51110         (set_regs): Likewise, for FL_BACKTRACK arg.
51111         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
51112         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
51113         (calc_eclosure_iter, parse_bracket_exp):
51114         Use bool for internal variables that are booleans.
51115         * lib/regexec.c (re_search_internal, check_matching,
51116         proceed_next_node):
51117         (set_regs, build_sifted_states, sift_states_bkref):
51118         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
51119         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51120         (find_collation_sequence_value):
51121         Likewise.
51122         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
51123         (re_node_set_compare):
51124         Return bool, not int. All callers changed.
51125         * lib/regexec.c (check_halt_node_context, check_dst_limits):
51126         (build_trtable, check_node_accept): Likewise.
51127         * lib/regex_internal.h: Include stdbool.h.
51128
51129         Fix bugs uncovered when converting to bool.
51130         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
51131         failure instead of charging ahead blindly.
51132         * lib/regex_internal.c (register_state): Likewise.
51133         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
51134         for freeing internal storage.
51135         (group_nodes_into_DFA_states): Use unsigned int, not int, for
51136         bitset pieces used as boolean, to avoid undefined behavior
51137         on hosts that do int overflow checking.
51138
51139 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51140
51141         * config/srclist.txt: Add glibc bugs 1285-1287.
51142
51143 2005-09-01  Jim Meyering  <jim@meyering.net>
51144
51145         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
51146         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
51147         Require gl_STAT_MACROS, too.
51148
51149 2005-09-01  Bruno Haible  <bruno@clisp.org>
51150
51151         * gnulib-tool (import): In the first-use case, provide defaults.
51152
51153 2005-09-01  Bruno Haible  <bruno@clisp.org>
51154
51155         * gnulib-tool (func_import): Remove the .tmp files.
51156
51157 2005-09-01  Bruno Haible  <bruno@clisp.org>
51158
51159         * gnulib-tool (func_import): Fix handling of symbolic links.
51160
51161 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51162
51163         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
51164         old glibc regex code mishandles strings longer than 2**31 bytes.
51165         This patch fixes this when the regex code is used in gnulib
51166         (i.e., outside glibc).
51167
51168         This patch should not affect the use of the regex code inside
51169         glibc.  No doubt this problem also needs to be handled for glibc
51170         as well, but the result will be an incompatible change to the
51171         glibc ABI, and the old ABI will have to be supported too.  That
51172         can be the the subject for another patch.
51173
51174         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
51175         governing whether the rest of this patch is active.  By default,
51176         the macro is disabled and the patch has no effect.
51177         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
51178         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
51179         (struct re_pattern_buffer, re_search, re_search_2, re_match):
51180         (re_match_2, re_set_registers): Use the new types.
51181         * lib/regex_internal.h (Idx, re_hashval_t): New types.
51182         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
51183         New macros.
51184         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
51185         (re_string_context_at, bin_tree_t, re_dfastate_t):
51186         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
51187         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
51188         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
51189         (re_string_char_size_at, re_string_wchar_at):
51190         (re_string_elem_size_at):
51191         Use the new types and macros to port to 64-bit hosts.
51192         Use unsigned types for internal values, so that the code
51193         mostly works even for arrays larger than SSIZE_MAX.
51194         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
51195         (search_duplicated_node, calc_eclosure_iter, fetch_number):
51196         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
51197         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
51198         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
51199         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
51200         (calc_inveclosure, parse_dup_op, build_range_exp):
51201         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
51202         (fetch_number, create_token_tree, mark_opt_subexp):
51203         Likewise.
51204         * lib/regex_internal.c (re_string_construct_common,
51205         create_ci_newstate):
51206         (create_cd_newstate, re_string_allocate, re_string_construct):
51207         (re_string_realloc_buffers, build_wcs_upper_buffer):
51208         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51209         (re_string_reconstruct, re_string_peek_byte_case):
51210         (re_string_fetch_byte_case, re_string_context_at):
51211         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51212         (re_node_set_init_copy, re_node_set_add_intersect):
51213         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51214         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51215         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51216         (re_acquire_state, re_acquire_state_context, register_state):
51217         Likewise.
51218         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
51219         search_cur_bkref_entry):
51220         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
51221         (re_search_internal, re_search_2_stub, re_search_stub)
51222         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
51223         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
51224         (update_cur_sifted_state, check_dst_limits):
51225         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51226         (check_subexp_limits, sift_states_bkref, merge_state_array):
51227         (check_subexp_matching_top, get_subexp, get_subexp_sub):
51228         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
51229         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51230         (expand_bkref_cache, check_node_accept_bytes):
51231         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
51232         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
51233         (acquire_init_state_context, check_halt_node_context):
51234         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
51235         (sift_states_backward, clean_state_log_if_needed):
51236         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
51237         (find_recover_state, transit_state_sb, transit_state_mb):
51238         (transit_state_bkref, build_trtable, match_ctx_clean):
51239         Likewise.
51240         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
51241         to work around an assumption that REG_MISSING is negative.
51242
51243         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
51244         (seek_collating_symbol_entry) [defined _LIBC]:
51245         (lookup_collation_sequence_value) [defined _LIBC]:
51246         (build_range_exp, build_collating_symbol) [defined _LIBC]:
51247         Use prototypes rather than old-style function definitions.
51248         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
51249         (transit_state_sb) [0]:
51250         (find_collation_sequence_value) [defined _LIBC]: Likewise.
51251
51252         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
51253         rm_eo.
51254
51255         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
51256         (optimize_subexps, lower_subexp):
51257         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
51258         since the signed shift might overflow.  Use 1u<<31 instead.
51259         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
51260         Likewise.
51261         * lib/regexec.c (check_dst_limits_calc_pos_1,
51262         check_subexp_matching_top): Likewise.
51263
51264         * lib/regcomp.c (optimize_subexps, lower_subexp):
51265         Use CHAR_BIT rather than 8, for clarity.
51266         * lib/regexec.c (check_dst_limits_calc_pos_1):
51267         (check_subexp_matching_top): Likewise.
51268         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
51269         have to worry about portability issues when shifting it left.
51270         Remove no-longer-needed test for table_size > 0.
51271         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
51272         in a word, as the resulting behavior is undefined.
51273         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
51274         in one case, a <= should have been an <, and in another case the
51275         whole test was missing.
51276         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
51277         the standard name CHAR_BIT.
51278         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
51279         this is not true on one's complement and signed-magnitude hosts.
51280
51281         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
51282         next_last_offset.
51283         (struct re_dfa_t): Remove unused member states_alloc.
51284         * lib/regcomp.c (init_dfa): Don't initialize unused members.
51285
51286 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51287
51288         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
51289         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
51290         and large-file glibc and in 32-bit large-file Solaris.
51291
51292 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51293
51294         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
51295         lengths fit in regoff_t; this isn't true if regoff_t is the same
51296         width as size_t.
51297         * lib/regex.c (re_search_internal): 5th arg is LAST_START
51298         (= START + RANGE) instead of RANGE.  This avoids overflow
51299         problems when regoff_t is the same width as size_t.
51300         All callers changed.
51301         (re_search_2_stub): Check for overflow when adding the
51302         sizes of the two strings.
51303         (re_search_stub): Check for overflow when adding START
51304         to RANGE; if it occurs, substitute the extreme value.
51305
51306 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51307
51308         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
51309
51310 2005-08-31  Jim Meyering  <jim@meyering.net>
51311
51312         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
51313         a pointer-to-const.
51314         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
51315         (register_state): Likewise.
51316         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
51317         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51318         (group_nodes_into_DFAstates): Likewise.
51319
51320 2005-08-31  Jim Meyering  <jim@meyering.net>
51321
51322         * check-module: Add a FIXME comment.
51323
51324 2005-08-31  Eric Blake  <ebb9@byu.net>
51325
51326         * modules/unistd-safer (Files): Add unistd--.h.
51327         * modules/stdio-safer (Files): Add stdio--.h.
51328
51329 2005-08-31  Derek Price  <derek@ximbiot.com>
51330
51331         * lib/getdelim.c (getdelim): Return EOF on EOF.
51332         Reported by Larry Jones <lawrence.jones@ugs.com>.
51333
51334 2005-08-31  Bruno Haible  <bruno@clisp.org>
51335
51336         Avoid unnecessary diffs in the generated lib/Makefile.am.
51337         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51338         the generated files.
51339         (func_import): Don't set cmd.
51340
51341 2005-08-31  Bruno Haible  <bruno@clisp.org>
51342
51343         * lib/strstr.c: Include <stddef.h>, for NULL.
51344         * lib/strcasestr.c: Likewise.
51345         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51346
51347 2005-08-31  Bruno Haible  <bruno@clisp.org>
51348
51349         * gnulib-tool: New option --macro-prefix.
51350         (func_import): Use macro_prefix.
51351         (import): Handle option --macro-prefix.
51352
51353 2005-08-31  Bruno Haible  <bruno@clisp.org>
51354
51355         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51356         Also use new variables cached_lgpl, cached_libtool.
51357
51358 2005-08-31  Bruno Haible  <bruno@clisp.org>
51359
51360         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51361         always instantiating them.
51362
51363 2005-08-31  Bruno Haible  <bruno@clisp.org>
51364
51365         * gnulib-tool (func_import): Read the previous cached settings
51366         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51367         earlier added by gnulib but are now dropped. Warn when a gnulib file
51368         overwrites a non-gnulib file.
51369
51370 2005-08-31  Bruno Haible  <bruno@clisp.org>
51371
51372         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51373         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51374         projects that don't keep autogenerated files in CVS. Put into
51375         actioncmd only the specified modules, not the transitive closure.
51376
51377 2005-08-31  Bruno Haible  <bruno@clisp.org>
51378
51379         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51380         Create directories that shall be filled.
51381         (import): Don't look for gl_* macros in configure.ac. Recurse across
51382         all directories containing a gnulib-cache.m4 files, if meaningful.
51383
51384 2005-08-31  Bruno Haible  <bruno@clisp.org>
51385
51386         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51387         (import): Set seen_libtool when we see gl_LIBTOOL.
51388
51389 2005-08-31  Bruno Haible  <bruno@clisp.org>
51390
51391         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51392         declaration macro definitions from generated gnulib.m4.
51393
51394 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51395
51396         * lib/iconvme.h: Add prototype for iconv_alloc.
51397
51398 2005-08-29  Simon Josefsson  <jas@extundo.com>
51399
51400         * lib/iconvme.c: Fix errno.
51401
51402 2005-08-29  Bruno Haible  <bruno@clisp.org>
51403
51404         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51405         that it works when the directory contains spaces.
51406
51407 2005-08-29  Bruno Haible  <bruno@clisp.org>
51408
51409         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51410
51411 2005-08-29  Bruno Haible  <bruno@clisp.org>
51412
51413         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51414         Emit more advice.
51415
51416 2005-08-29  Bruno Haible  <bruno@clisp.org>
51417         and Stepan Kasal  <kasal@ucw.cz>
51418
51419         * check-module: If more parameters are given, check each of them
51420         separately; add more exceptions, as noted by Jim Meyering.
51421         (check_module): New procedure.
51422         (%exempt_header): Now contains all exceptions.
51423
51424 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51425
51426         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51427
51428 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51429
51430         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51431
51432 2005-08-28  Bruno Haible  <bruno@clisp.org>
51433
51434         * m4/gnulib-tool.m4: New file.
51435
51436 2005-08-27  Jim Meyering  <jim@meyering.net>
51437
51438         * modules/unistd-safer (Files): Add pipe-safer.c.
51439         * modules/fcntl-safer (Files): Add creat-safer.c.
51440
51441 2005-08-27  Jim Meyering  <jim@meyering.net>
51442
51443         * m4/stdlib-safer.m4: New file.  From coreutils.
51444         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51445         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51446         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51447         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51448         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51449
51450 2005-08-27  Jim Meyering  <jim@meyering.net>
51451
51452         * lib/fopen-safer.c: Merge minor changes from coreutils.
51453         * lib/dup-safer.c: Likewise.
51454         * lib/fd-safer.c: Likewise.
51455
51456         Merge from coreutils.
51457         * lib/stdio--.h: New file.
51458         * lib/stdlib--.h: New file.
51459         * lib/mkstemp-safer.c: New file.
51460
51461         GNU tar needs these.
51462         * lib/pipe-safer.c: New file.
51463         * lib/creat-safer.c: New file.
51464         * lib/fcntl--.h (creat): Define to creat_safer.
51465         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51466         * lib/unistd--.h (pipe): Define to pipe_safer.
51467         * lib/unistd-safer.h: Declare pipe_safer.
51468
51469 2005-08-26  Simon Josefsson  <jas@extundo.com>
51470
51471         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51472         Haible <bruno@clisp.org>.
51473
51474 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51475
51476         * lib/regex_internal.h: Remove all references to
51477         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51478         or better.
51479         (bitset_not, bitset_merge, bitset_not_merge):
51480         (bitset_mask, re_string_allocate, re_string_construct):
51481         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51482         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51483         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51484         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51485         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51486         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51487         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51488         (re_acquire_state_context):
51489         Remove unnecessary forward decls.
51490         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51491         Put __attribute at function definition,
51492         now that the function decl has been removed.
51493         * lib/regex_internal.c (re_string_peek_byte_case):
51494         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51495         Likewise.
51496
51497 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51498
51499         * m4/regex.m4: Add AC_PREREQ(2.50).
51500         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51501
51502 2005-08-25  Simon Josefsson  <jas@extundo.com>
51503
51504         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51505         __fsetlocking.
51506
51507 2005-08-25  Simon Josefsson  <jas@extundo.com>
51508
51509         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51510         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51511         GLIBC specific code.
51512
51513 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51514
51515         Make regex safe for g++.  This fixes one real bug (an "err"
51516         that should have been "*err").  g++ problem reported by
51517         Sam Steingold.
51518         * lib/regex_internal.h (re_calloc): New macro, consistent with
51519         re_malloc etc.  All callers of calloc changed to use re_calloc.
51520         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51521         not int.  All callers changed.
51522         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51523         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51524         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51525         (find_recover_state): Change "err" to "*err"; this fixes what
51526         appears to be a real bug.
51527         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51528         versus int.
51529
51530 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51531
51532         * modules/regex (Depends-on): Add malloc, since the code
51533         assumes that !malloc(0) means failure.
51534
51535 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51536
51537         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51538
51539         alloca modernization/simplification for regex.
51540         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51541         needs to be at the start of the file, and can be moved into
51542         regex_internal.h and simplified.
51543         * lib/regex_internal.h: Include <alloca.h>.
51544         (__libc_use_alloca) [!defined _LIBC]: New macro.
51545         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51546         now works outside glibc.
51547
51548 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51549
51550         * config/srclist.txt: Add glibc bugs 1241, 1245.
51551
51552 2005-08-25  Jim Meyering  <jim@meyering.net>
51553
51554         * lib/open-safer.c: Include <config.h>.
51555         Otherwise, we'd lose LARGEFILE support in any file using
51556         e.g. "fcntl--.h"
51557
51558 2005-08-25  Bruno Haible  <bruno@clisp.org>
51559
51560         * m4/minmax.m4: Require autoconf 2.52.
51561         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51562         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51563         alternatives of translit over the alphabet.
51564         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51565
51566 2005-08-24  Simon Josefsson  <jas@extundo.com>
51567
51568         * tests/test-getpass.c: New file.
51569
51570 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51571
51572         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51573         for GNU regex features.
51574
51575 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51576
51577         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51578         * lib/regex.h (regerror): Likewise.
51579
51580         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51581         requires this.  (The code never needed it.)
51582
51583         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51584         All uses of recently-renamed identifiers changed to use the new,
51585         POSIX-compliant names.  The code will build and run just fine
51586         without these changes, but it's better to eat our own dog food
51587         and use the standard-conforming names.
51588
51589         * lib/regex.h: Fix a multitude of POSIX name space violations.
51590         These changes have an effect only for programs that define
51591         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51592         do not change anything for programs compiled in the normal way.
51593         Also, there is no effect on the ABI.
51594
51595         (_REGEX_SOURCE): New macro.
51596         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51597         defined and _GNU_SOURCE is not; this fixes a name space violation.
51598
51599         Rename the following macros to obey POSIX requirements.
51600         The old names are still visible as macros if _REGEX_SOURCE is defined.
51601         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51602         RE_BACKSLASH_ESCAPE_IN_LISTS.
51603         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51604         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51605         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51606         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51607         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51608         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51609         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51610         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51611         (REG_INTERVALS): renamed from RE_INTERVALS.
51612         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51613         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51614         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51615         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51616         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51617         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51618         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51619         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51620         RE_UNMATCHED_RIGHT_PAREN_ORD.
51621         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51622         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51623         (REG_DEBUG): renamed from RE_DEBUG.
51624         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51625         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51626         unusual, since we can't clash with the POSIX REG_ICASE.
51627         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51628         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51629         (REG_NO_SUB): renamed from RE_NO_SUB.
51630         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51631         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51632         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51633         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51634         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51635         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51636         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51637         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51638         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51639         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51640         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51641         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51642         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51643         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51644         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51645         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51646         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51647         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51648         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51649         (REG_FIXED): Renamed from REGS_FIXED.
51650         (REG_NREGS): Renamed from RE_NREGS.
51651
51652         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51653         of other REG_* macros, since POSIX says the user is allowed to
51654         #undef these macros selectively.
51655
51656         (reg_errcode_t): Update comment stating what other tables need
51657         to be consistent.
51658
51659         Rename the following enum values to obey POSIX requirements.
51660         The old names are still visible as macros.
51661         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51662         is not defined, since GNU is supposed to be a superset of POSIX as
51663         much as possible, and since we want reg_errcode_t to be a signed
51664         type for implementation consistency.
51665         (_REG_NOERROR): Renamed from REG_NOERROR.
51666         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51667         (_REG_BADPAT): Renamed from REG_BADPAT.
51668         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51669         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51670         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51671         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51672         (_REG_EBRACK): Renamed from REG_EBRACK.
51673         (_REG_EPAREN): Renamed from REG_EPAREN.
51674         (_REG_EBRACE): Renamed from REG_EBRACE.
51675         (_REG_BADBR): Renamed from REG_BADBR.
51676         (_REG_ERANGE): Renamed from REG_ERANGE.
51677         (_REG_ESPACE): Renamed from REG_ESPACE.
51678         (_REG_BADRPT): Renamed from REG_BADRPT.
51679         (_REG_EEND): Renamed from REG_EEND.
51680         (_REG_ESIZE): Renamed from REG_ESIZE.
51681         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51682         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51683         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51684         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51685         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51686
51687         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51688         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51689         changed.  But support the old name if the new one is not defined
51690         and if _REGEX_SOURCE.
51691
51692         Change the following member names in struct re_pattern_buffer.
51693         The old names are still supported if !_REGEX_SOURCE.
51694         The new names are always supported, regardless of _REGEX_SOURCE.
51695         (re_buffer): Renamed from buffer.
51696         (re_allocated): Renamed from allocated.
51697         (re_used): Renamed from used.
51698         (re_syntax): Renamed from syntax.
51699         (re_fastmap): Renamed from fastmap.
51700         (re_translate): Renamed from translate.
51701         (re_can_be_null): Renamed from can_be_null.
51702         (re_regs_allocated): Renamed from regs_allocated.
51703         (re_fastmap_accurate): Renamed from fastmap_accurate.
51704         (re_no_sub): Renamed from no_sub.
51705         (re_not_bol): Renamed from not_bol.
51706         (re_not_eol): Renamed from not_eol.
51707         (re_newline_anchor): Renamed from newline_anchor.
51708
51709         Change the following member names in struct re_registers.
51710         The old names are still supported if !_REGEX_SOURCE.
51711         The new names are always supported, regardless of _REGEX_SOURCE.
51712         (rm_num_regs): Renamed from num_regs.
51713         (rm_start): Renamed from start.
51714         (rm_end): Renamed from end.
51715
51716         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51717         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51718         Prepend __ to parameter names.
51719
51720         Undo yesterday's changes.
51721
51722 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51723
51724         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51725         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51726         lib/regex.c.
51727
51728 2005-08-24  Jim Meyering  <jim@meyering.net>
51729
51730         Sync from coreutils.
51731         * m4/fcntl-safer.m4: New file.
51732
51733         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51734         and object files for this module.
51735
51736 2005-08-24  Jim Meyering  <jim@meyering.net>
51737
51738         Sync from coreutils.
51739         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51740
51741 2005-08-24  Jim Meyering  <jim@meyering.net>
51742
51743         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51744         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51745
51746 2005-08-24  Jim Meyering  <jim@meyering.net>
51747
51748         * modules/fcntl-safer: New module.
51749         * modules/fts (Depends-on): Add fcntl-safer.
51750         * MODULES.html.sh (File descriptor based Input/Output):
51751         Add fcntl-safer.
51752
51753 2005-08-24  Bruno Haible  <bruno@clisp.org>
51754
51755         Support for unit test modules.
51756         * modules/README: Mention tests modules.
51757         * modules/TEMPLATE-TESTS: New file.
51758         * gnulib-tool: New options --extract-tests-module, --with-tests and
51759         --tests-base (unused for the moment).
51760         (testsbase, inctests): New variables.
51761         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51762         (func_verify_module): Exclude TEMPLATE-TESTS.
51763         (func_verify_nontests_module, func_verify_tests_module): New functions.
51764         (func_get_dependencies): Add implicit dependency for tests modules.
51765         (func_get_tests_module): New function.
51766         (func_modules_transitive_closure): When --with-tests was specified,
51767         include the unit tests as well, unless explicitly avoided.
51768         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51769         (func_emit_tests_Makefile_am): New function.
51770         (func_create_testdir): When --with-tests was specified, emit a
51771         tests/ directory.
51772         * MODULES.html.sh (Future developments): Update.
51773
51774 2005-08-24  Bruno Haible  <bruno@clisp.org>
51775
51776         * modules/tls-tests: New file.
51777         * tests/test-tls.c: New file, from GNU gettext.
51778
51779 2005-08-24  Bruno Haible  <bruno@clisp.org>
51780
51781         * modules/lock-tests: New file.
51782         * tests/test-lock.c: New file, from GNU gettext.
51783
51784 2005-08-24  Bruno Haible  <bruno@clisp.org>
51785
51786         * lib/lock.h: Add multiple inclusion guard.
51787         * lib/tls.h: Add multiple inclusion guard.
51788
51789 2005-08-24  Bruno Haible  <bruno@clisp.org>
51790
51791         * gnulib-tool: Add support for the --aux-dir option to
51792         --create-testdir, --create-megatestdir, --test, --megatest.
51793         (func_create_testdir, func_create_megatestdir): Optionally emit a
51794         AC_CONFIG_AUX_DIR directive.
51795         (create-testdir, create-megatestdir, test, megatest): Provide a
51796         default value for $auxdir.
51797
51798 2005-08-24  Bruno Haible  <bruno@clisp.org>
51799
51800         * gnulib-tool (import): Use compound statement instead of subshell
51801         where possible.
51802
51803 2005-08-24  Bruno Haible  <bruno@clisp.org>
51804
51805         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51806
51807 2005-08-24  Bruno Haible  <bruno@clisp.org>
51808
51809         * gnulib-tool (func_version): Update.
51810
51811 2005-08-24  Bruno Haible  <bruno@clisp.org>
51812
51813         * gnulib-tool (func_import, func_create_testdir,
51814         func_create_megatestdir): Quote all autoconf macro arguments.
51815
51816 2005-08-24  Bruno Haible  <bruno@clisp.org>
51817
51818         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51819         option --force, because --force causes the aclocal.m4 of each
51820         subdirectory to be newer than the corresponding config.h.in.
51821
51822 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51823
51824         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51825         All contents moved to gl_REGEX.
51826         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51827         assume that it does.
51828
51829 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51830
51831         * lib/regex.h (REG_NOSYS)
51832         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51833         Define, since POSIX requires it as of 2001.
51834         (_REG_ENOSYS)
51835         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51836         New private symbol, used to keep the enum signed in all cases.
51837         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51838         Youngman in
51839         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51840
51841         * lib/regex_internal.c (re_string_skip_chars, register_state):
51842         (calc_state_hash):
51843         Remove forward decls; no longer needed now that we use prototypes.
51844         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51845         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51846         (clean_state_log_if_needed): Likewise.
51847
51848 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51849
51850         * config/srclist.txt: Add glibc bugs 1231-1233.
51851
51852 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51853
51854         Fix problems reported by Sam Steingold in
51855         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51856         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51857         assumed that reg_errcode_t is a signed type, which is not
51858         necessarily true if _XOPEN_SOURCE is not defined.
51859         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51860         since some compilers warn about it otherwise.
51861
51862 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51863
51864         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51865         (init_word_char, create_initial_state, duplicate_node_closure):
51866         (fetch_token, peek_token_bracket, build_range_exp):
51867         (build_collating_symbol): Remove forward decls; no longer needed
51868         now that we use prototypes.
51869
51870         * lib/regcomp.c:
51871         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51872         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51873         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51874         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51875         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51876         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51877         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51878         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51879         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51880         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51881         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51882         (build_charclass, build_charclass_op, fetch_number, create_tree):
51883         (create_token_tree, mark_opt_subexp, duplicate_tree):
51884         Use prototypes rather than old-style definitions.
51885
51886         * lib/regex_internal.c:
51887         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51888         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51889         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51890         (re_string_reconstruct, re_string_peek_byte_case):
51891         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51892         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51893         (re_node_set_init_copy, re_node_set_add_intersect):
51894         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51895         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51896         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51897         (re_acquire_state, re_acquire_state_context, register_state):
51898         (create_ci_newstate, create_cd_newstate, free_state):
51899         Likewise.
51900         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51901         re_search_2):
51902         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51903         (re_search_internal, prune_impossible_nodes):
51904         (acquire_init_state_context, check_matching, static):
51905         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51906         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51907         (update_regs, sift_states_backward, build_sifted_states):
51908         (clean_state_log_if_needed, merge_state_array):
51909         (update_cur_sifted_state, add_epsilon_src_nodes):
51910         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51911         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51912         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51913         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51914         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51915         (check_arrival, check_arrival_add_next_nodes):
51916         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51917         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51918         (check_node_accept_bytes, check_node_accept, extend_buffers):
51919         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51920         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51921         (sift_ctx_init):
51922         Likewise.
51923
51924         * lib/regex_internal.h:
51925         (re_string_allocate, re_string_construct, re_string_reconstruct):
51926         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51927         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51928         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51929         (re_string_context_at, re_string_peek_byte_case):
51930         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51931         is defined, since we now use prototypes always.
51932
51933         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51934         C89 or better.  All uses removed.
51935
51936 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * config/srclist.txt: Add glibc bugs 1220-1227.
51939
51940 2005-08-20  Jim Meyering  <jim@meyering.net>
51941
51942         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51943         of unused local, dfa.
51944
51945 2005-08-20  Bruno Haible  <bruno@clisp.org>
51946
51947         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51948
51949 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51950
51951         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51952         (re_node_set_insert_last, re_dfa_add_node):
51953         Rename local variables to avoid GCC shadowing warnings.
51954
51955 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51956
51957         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51958         [defined lint]: Suppress bogus uninitialized-variable warnings.
51959
51960         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51961         and let the caller return REG_ESPACE if out of space.  This
51962         removes an uninitialied-variable warning with GCC 4.0.1, and also
51963         avoids taking the address of a local variable.  All callers
51964         changed.
51965
51966 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51967
51968         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51969         $LIBCSRC/posix/regexec.c.
51970         Add glibc bug 1217 for regcomp.c.
51971
51972 2005-08-19  Jim Meyering  <jim@meyering.net>
51973
51974         * lib/regexec.c (proceed_next_node): Redo local variables to
51975         avoid GCC shadowing warnings.
51976
51977 2005-08-18  Bruno Haible  <bruno@clisp.org>
51978
51979         * lib/strstr.c (strstr): Fix return value in multibyte case.
51980         * lib/strcasestr.c (strcasestr): Likewise.
51981
51982 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51983
51984         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51985
51986 2005-08-17  Jim Meyering  <jim@meyering.net>
51987
51988         Make the %s format (seconds since the epoch) work for a negative
51989         number and when used with a zero-padded field width, e.g. %015s.
51990
51991         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51992         label so that it precedes the code to set `digits'.  Otherwise,
51993         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51994         print `00-22'.  Now, it prints `-0022', as it should.
51995
51996 2005-08-17  Bruno Haible  <bruno@clisp.org>
51997
51998         * modules/strstr (Files): Add m4/mbrtowc.m4.
51999         (Depends-on): Add mbuiter.
52000
52001 2005-08-17  Bruno Haible  <bruno@clisp.org>
52002
52003         * modules/strcasestr: New file.
52004         * MODULES.html.sh (String handling, based on ANSI C 89): Add
52005         strcasestr.
52006
52007 2005-08-17  Bruno Haible  <bruno@clisp.org>
52008
52009         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
52010
52011 2005-08-17  Bruno Haible  <bruno@clisp.org>
52012
52013         * modules/mbuiter: New file.
52014         * MODULES.html.sh (Extended multibyte and wide character utilities):
52015         Add mbuiter.
52016
52017 2005-08-17  Bruno Haible  <bruno@clisp.org>
52018
52019         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
52020         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
52021
52022 2005-08-17  Bruno Haible  <bruno@clisp.org>
52023
52024         * m4/strcasestr.m4: New file.
52025
52026 2005-08-17  Bruno Haible  <bruno@clisp.org>
52027
52028         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
52029         * lib/strstr.c: Completely rewritten, with multibyte locale support.
52030
52031 2005-08-17  Bruno Haible  <bruno@clisp.org>
52032
52033         * lib/strcasestr.h: New file.
52034         * lib/strcasestr.c: New file.
52035
52036 2005-08-17  Bruno Haible  <bruno@clisp.org>
52037
52038         * lib/strcasecmp.c: Use mbuiter.h.
52039
52040 2005-08-17  Bruno Haible  <bruno@clisp.org>
52041
52042         * lib/mbuiter.h: New file.
52043
52044 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52045
52046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
52047         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
52048         and gl_GETOPT are both invoked via different paths (as happens
52049         with GNU tar CVS because it uses both argp and getopt), the former
52050         wins.
52051
52052 2005-08-16  Bruno Haible  <bruno@clisp.org>
52053
52054         * modules/tls: New file.
52055         * MODULES.html.sh (Multithreading): Add tls.
52056
52057 2005-08-16  Bruno Haible  <bruno@clisp.org>
52058
52059         * modules/strnlen1: New file.
52060         * MODULES.html.sh (String handling): Add strnlen1.
52061
52062 2005-08-16  Bruno Haible  <bruno@clisp.org>
52063
52064         * modules/strcase (Files): Add m4/mbrtowc.m4.
52065         (Depends-on): Add strnlen1, mbchar.
52066
52067 2005-08-16  Bruno Haible  <bruno@clisp.org>
52068
52069         * modules/mbiter: New file.
52070         * MODULES.html.sh (Extended multibyte and wide character utilities):
52071         Add mbiter.
52072
52073 2005-08-16  Bruno Haible  <bruno@clisp.org>
52074
52075         * modules/mbfile: New file.
52076         * MODULES.html.sh (Extended multibyte and wide character utilities):
52077         Add mbfile.
52078
52079 2005-08-16  Bruno Haible  <bruno@clisp.org>
52080
52081         * modules/mbchar: New file.
52082         * MODULES.html.sh (Extended multibyte and wide character utilities):
52083         New section.
52084
52085 2005-08-16  Bruno Haible  <bruno@clisp.org>
52086
52087         * m4/tls.m4: New file, from GNU gettext.
52088
52089 2005-08-16  Bruno Haible  <bruno@clisp.org>
52090
52091         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
52092         always.
52093         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
52094
52095 2005-08-16  Bruno Haible  <bruno@clisp.org>
52096
52097         * m4/mbiter.m4: New file.
52098
52099 2005-08-16  Bruno Haible  <bruno@clisp.org>
52100
52101         * m4/mbfile.m4: New file.
52102
52103 2005-08-16  Bruno Haible  <bruno@clisp.org>
52104
52105         * m4/mbchar.m4: New file.
52106
52107 2005-08-16  Bruno Haible  <bruno@clisp.org>
52108
52109         * lib/tls.h: New file, from GNU gettext.
52110         * lib/tls.c: New file, from GNU gettext.
52111
52112 2005-08-16  Bruno Haible  <bruno@clisp.org>
52113
52114         * lib/strnlen1.h: New file.
52115         * lib/strnlen1.c: New file.
52116
52117 2005-08-16  Bruno Haible  <bruno@clisp.org>
52118
52119         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
52120         (mbi_init): Update.
52121         (mbi_avail, mbi_advance): Let the iteration end before the terminating
52122         NUL byte, not after it.
52123
52124 2005-08-16  Bruno Haible  <bruno@clisp.org>
52125
52126         * lib/strcase.h (strcasecmp): Add note in comments.
52127         * lib/strncasecmp.c: Use code from strcasecmp.c.
52128         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
52129         (strcasecmp): Work correctly in multibyte locales.
52130
52131 2005-08-16  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/mbiter.h: New file.
52134
52135 2005-08-16  Bruno Haible  <bruno@clisp.org>
52136
52137         * lib/mbfile.h: New file.
52138
52139 2005-08-16  Bruno Haible  <bruno@clisp.org>
52140
52141         * lib/mbchar.h: New file.
52142         * lib/mbchar.c: New file.
52143
52144 2005-08-16  Bruno Haible  <bruno@clisp.org>
52145
52146         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
52147         the valid ones. Makes the comparison operations transitive:
52148         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
52149         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
52150
52151 2005-08-15  Simon Josefsson  <jas@extundo.com>
52152
52153         * modules/ssize_t (License): Change to 'unlimited'.
52154
52155         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
52156
52157 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52158
52159         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
52160         Add comments for each pending glibc patch.
52161
52162 2005-08-15  Bruno Haible  <bruno@clisp.org>
52163
52164         * lib/regex.h (__restrict_arr): Don't define to __restrict if
52165         __cplusplus is defined.
52166
52167 2005-08-14  Jim Meyering  <jim@meyering.net>
52168
52169         Sync from coreutils.
52170
52171         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
52172         Use the hash-table-based cycle-detection code not just when
52173         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
52174         Reported by James Youngman in
52175         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
52176         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
52177         FTS_TIGHT_CYCLE_CHECK.
52178         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
52179         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
52180         once again.
52181         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
52182         * lib/fts.c (fd_safer): Remove decl.
52183         Include fcntl--.h rather than unistd-safer.h
52184         (fts_safe_changedir): Don't call fd_safer; no longer needed
52185         now that we include fcntl--.h.
52186
52187 2005-08-12  Simon Josefsson  <jas@extundo.com>
52188
52189         * modules/getndelim2: Use ssize_t module.
52190         * modules/getnline: Likewise.
52191         * modules/safe-read: Likewise.
52192         * modules/xreadlink: Likewise.
52193
52194         * modules/ssize_t: New file.
52195
52196 2005-08-12  Simon Josefsson  <jas@extundo.com>
52197
52198         * m4/readline.m4: Look for termcap, curses or ncurses if required.
52199
52200 2005-08-12  Simon Josefsson  <jas@extundo.com>
52201
52202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52203         ssize_t.
52204
52205 2005-08-12  Simon Josefsson  <jas@extundo.com>
52206
52207         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
52208         readline, getdelim and check_version.
52209         (Support for systems lacking ISO C 99: Sizes of integer types):
52210         Add size_max.
52211
52212 2005-08-12  Bruno Haible  <bruno@clisp.org>
52213
52214         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
52215
52216 2005-08-11  Simon Josefsson  <jas@extundo.com>
52217
52218         * modules/readline: New file.
52219
52220         * modules/strnlen (Files): Add strnlen.h.
52221
52222 2005-08-11  Simon Josefsson  <jas@extundo.com>
52223
52224         * m4/readline.m4: New file.
52225
52226 2005-08-11  Simon Josefsson  <jas@extundo.com>
52227
52228         * lib/readline.h, readline.c: New file.
52229
52230 2005-08-11  Simon Josefsson  <jas@extundo.com>
52231
52232         * doc/gnulib.texi (Initial import, Finishing touches): Mention
52233         gl_AVOID.
52234
52235 2005-08-11  Bruno Haible  <bruno@clisp.org>
52236
52237         * lib/strnlen.h (strnlen): Change parameter name to match comment.
52238
52239 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
52240
52241         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
52242
52243 2005-08-10  Simon Josefsson  <jas@extundo.com>
52244
52245         * tests/test-iconvme.c: New file.
52246
52247 2005-08-10  Simon Josefsson  <jas@extundo.com>
52248
52249         * m4/strnlen.m4: New file.
52250
52251         * m4/strndup.m4: Don't check for strnlen declaration, done in
52252         strnlen.m4.
52253
52254 2005-08-10  Simon Josefsson  <jas@extundo.com>
52255
52256         * lib/strndup.c: Use strnlen.h.
52257
52258         * lib/strnlen.h: New file.
52259
52260 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52261
52262         * README: Typos.
52263
52264 2005-08-02  Simon Josefsson  <jas@extundo.com>
52265
52266         * modules/readline: New file.
52267
52268 2005-08-02  Simon Josefsson  <jas@extundo.com>
52269
52270         * modules/getdelim: New file.
52271
52272         * modules/getline: Rewrite, don't use getndelim2.
52273
52274 2005-08-02  Simon Josefsson  <jas@extundo.com>
52275
52276         * m4/getline.m4: Separate out getdelim stuff into separate module.
52277
52278         * m4/getdelim.m4: New file.
52279
52280 2005-08-02  Simon Josefsson  <jas@extundo.com>
52281
52282         * lib/getline.h, getline.c: Rewrite.
52283
52284         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
52285
52286 2005-07-31  Bruno Haible  <bruno@clisp.org>
52287
52288         * lib/lock.h (gl_lock_initializer): New macro.
52289         (gl_lock_define_initialized): Use it.
52290         (gl_rwlock_initializer): New macro.
52291         (gl_rwlock_define_initialized): Use it.
52292         (gl_recursive_lock_initializer): New macro.
52293         (gl_recursive_lock_define_initialized): Use it.
52294
52295 2005-07-30  Karl Berry  <karl@gnu.org>
52296
52297         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
52298         Report from Ben Pfaff, regarding getopt.
52299
52300 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
52301
52302         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
52303         normal way.
52304         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
52305         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
52306         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
52307         (gl_GETOPT): Use the new macros.  Most of the implementation
52308         is moved to the new macros.  This is for programs like Emacs
52309         that don't want all the functionality of gl_GETOPT.
52310
52311 2005-07-26  Bruno Haible  <bruno@clisp.org>
52312
52313         * m4/lock.m4: Update from GNU gettext.
52314
52315 2005-07-26  Bruno Haible  <bruno@clisp.org>
52316
52317         * lib/lock.h: Update from GNU gettext.
52318         * lib/lock.c: Update from GNU gettext.
52319
52320 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
52321
52322         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
52323         obsolescent AC_TRY_RUN.  Include the default includes files, for
52324         'exit'.
52325
52326 2005-07-24  Bruno Haible  <bruno@clisp.org>
52327
52328         * modules/visibility: New file.
52329         * MODULES.html.sh (Misc): Add visibility.
52330
52331 2005-07-24  Bruno Haible  <bruno@clisp.org>
52332
52333         * m4/visibility.m4: New file.
52334
52335 2005-07-24  Bruno Haible  <bruno@clisp.org>
52336
52337         * doc/visibility.texi: New file.
52338
52339 2005-07-22  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52342         $(ALLOCA_H), redundant through BUILT_SOURCES.
52343         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52344         redundant through BUILT_SOURCES.
52345         * modules/byteswap (Makefile.am): Remove explicit dependency on
52346         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52347         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52348         $(FNMATCH_H), redundant through BUILT_SOURCES.
52349         * modules/getopt (Makefile.am): Remove explicit dependency on
52350         $(GETOPT_H), redundant through BUILT_SOURCES.
52351         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52352         redundant through BUILT_SOURCES.
52353         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52354         redundant through BUILT_SOURCES.
52355         * modules/stdbool (Makefile.am): Remove explicit dependency on
52356         $(STDBOOL_H), redundant through BUILT_SOURCES.
52357         * modules/stdint (Makefile.am): Remove explicit dependency on
52358         $(STDINT_H), redundant through BUILT_SOURCES.
52359         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52360         Remove explicit dependency on $(SYSEXITS_H).
52361         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52362
52363 2005-07-18  Simon Josefsson  <jas@extundo.com>
52364
52365         * lib/check-version.c (check_version): Accept identical versions too.
52366
52367 2005-07-18  Bruno Haible  <bruno@clisp.org>
52368
52369         * modules/lock: New file.
52370         * MODULES.html.sh (Multithreading): New section.
52371
52372 2005-07-18  Bruno Haible  <bruno@clisp.org>
52373
52374         * m4/lock.m4: New file, from GNU gettext.
52375
52376 2005-07-18  Bruno Haible  <bruno@clisp.org>
52377
52378         * lib/lock.h: New file, from GNU gettext.
52379         * lib/lock.c: New file, from GNU gettext.
52380
52381 2005-07-18  Bruno Haible  <bruno@clisp.org>
52382
52383         * lib/lock.h (gl_once_t): New type.
52384         (gl_once_define, gl_once): New macros.
52385         * lib/lock.c (fresh_once): New variable.
52386         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52387         functions.
52388
52389 2005-07-16  Simon Josefsson  <jas@extundo.com>
52390
52391         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52392         workaround, suggested by Bruno.
52393
52394 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52395
52396         * modules/xalloc (Depends-on): Add xalloc-die.
52397         * modules/xvasprintf (Depends-on): Add xalloc-die.
52398
52399 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52402         with a minor change.
52403
52404 2005-07-15  Bruno Haible  <bruno@clisp.org>
52405
52406         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52407         When using lib/poll.c, define poll as rpl_poll.
52408
52409 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52410
52411         * modules/argp (Depends-on): Remove unlocked-io.
52412
52413 2005-07-14  Derek Price  <derek@ximbiot.com>
52414
52415         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52416         for glob symlink bug.
52417
52418 2005-07-14  Bruno Haible  <bruno@clisp.org>
52419
52420         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52421         Instead, test for *_unlocked function declarations directly.
52422
52423 2005-07-11  Simon Josefsson  <jas@extundo.com>
52424
52425         * modules/size_max: New file.
52426
52427         * modules/xsize: Depend on size_max module for size_max.m4.
52428
52429 2005-07-11  Simon Josefsson  <jas@extundo.com>
52430
52431         * lib/size_max.h: New file.
52432
52433 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52434
52435         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52436         copyright symbol and the year.
52437         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52438         (version_etc_va): Use parameterized copyright notice.
52439         Reword to conform to the current GNU coding standards.
52440
52441 2005-07-11  Karl Berry  <karl@gnu.org>
52442
52443         * doc/gnulib.texi (Quoting): new node.
52444         (Initial import): more info, from Patrice.
52445
52446 2005-07-11  Bruno Haible  <bruno@clisp.org>
52447
52448         * gnulib-tool (func_usage): Document option --avoid.
52449         (Command line options): Handle --avoid.
52450         (func_acceptable): New function.
52451         (func_modules_transitive_closure): Use it.
52452
52453 2005-07-11  Bruno Haible  <bruno@clisp.org>
52454
52455         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52456         Reported by Jim Meyering.
52457
52458 2005-07-10  Bruno Haible  <bruno@clisp.org>
52459
52460         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52461         Needed when size_t is smaller than 'unsigned int'.
52462         Reported by Paul Eggert.
52463
52464 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52465
52466         * modules/argp (Depends-on): Add unlocked-io
52467
52468 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52469
52470         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52471         block of defines.
52472
52473 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52474
52475         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52476         fix now.
52477
52478 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52479         and Paul Eggert  <eggert@cs.ucla.edu>
52480
52481         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52482         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52483
52484 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52485
52486         * modules/regex (Files): Add lib/regex_internal.c,
52487         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52488         (Depends-on): Add extensions.
52489         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52490
52491 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52492
52493         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52494         pathconf.
52495         * m4/same.m4 (gl_SAME): Likewise.
52496         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52497
52498         * m4/regex.m4: Adjust to new libc regex implementation.
52499         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52500         all the .c and .h parts of (the new) regex.
52501         Quote the m4 stuff better.
52502         Check for RE_ICASE bug of old gnulib.
52503         Check for REG_STARTEND of recent libc.
52504         Rename local variables from jm_* to gl_*.
52505         Quote operand of "test -f".
52506         Say "recent enough" version of libc, not "version 2".
52507         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52508         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52509         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52510         Remove check for btowc, isascii.
52511         Require AM_LANGINFO_CODESET.
52512
52513 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52514
52515         * lib/regex.c, regex.h: Sync from libc.
52516         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52517         * lib/regexec.c:
52518         New files, synced from libc, except that regex_internal.h
52519         currently has a small porting fix.
52520
52521 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52522
52523         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52524         regex_internal.c, regexec.c.
52525         Add regex_internal.h too, but as a comment, since the libc version
52526         is currently broken in gnulib mode.
52527
52528 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52529
52530         Support programs like Emacs that use gnulib but not gettext.
52531         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52532         * modules/gettext-h: New file.
52533         * modules/gettext (Files): Remove lib/gettext.h.
52534         (Depends-on): Add gettext-h.
52535         (Makefile.am): Remove lib_SOURCES.
52536         * modules/argmatch, modules/c-stack, modules/closeout:
52537         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52538         * modules/execute, modules/file-type, modules/getaddrinfo:
52539         * modules/getopt, modules/human, modules/javacomp:
52540         * modules/javaexec, modules/mkdir-p, modules/obstack:
52541         * modules/openat, modules/pagealign_alloc, modules/pipe:
52542         * modules/quotearg, modules/regex, modules/rpmatch:
52543         * modules/unicodeio, modules/userspec, modules/version-etc:
52544         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52545         * modules/xsetenv:
52546         Depend on gettext-h, not gettext.
52547
52548 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52549
52550         * gnulib-tool (func_import): Add support for 'public domain' license.
52551         * modules/alloca, modules/atexit, modules/memmove:
52552         Now public domain, not GPL.
52553         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52554         * modules/realloc, modules/strerror, modules/strtod:
52555         Now LGPL, not GPL.
52556
52557 2005-07-05  Bruno Haible  <bruno@clisp.org>
52558
52559         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52560         autoconf CVS. Needed for mingw.
52561
52562 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         Remove the dependency of the strftime module on the tzset module.
52565         * modules/strftime (Depends-on): Remove dependency on tzset.
52566
52567 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52568
52569         Remove the dependency of the strftime module on the tzset module.
52570         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52571         gl_FUNC_TZSET_CLOBBER.
52572
52573 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52574
52575         Remove the dependency of the strftime module on the tzset module.
52576         * lib/strftime.c (my_strftime)
52577         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52578         Copy the input structure, to work around some of the bug with
52579         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52580         Solaris releases, you should also use the tzset module, but we won't
52581         require it as a dependency any more since we don't want LGPLed code
52582         to depend on GPLed code.
52583
52584 2005-07-02  Jim Meyering  <jim@meyering.net>
52585
52586         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52587         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52588         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52589         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52590
52591 2005-07-02  Jim Meyering  <jim@meyering.net>
52592
52593         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52594
52595 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52596
52597         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52598         declares only 'struct timespec;' (!).
52599
52600 2005-07-01  Jim Meyering  <jim@meyering.net>
52601
52602         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52603         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52604         * lib/save-cwd.c, tempname.c:
52605         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52606         and don't include <sys/file.h>).
52607
52608 2005-06-29  Jim Meyering  <jim@meyering.net>
52609
52610         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52611         type name.  Use the variable name instead.
52612         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52613         Likewise.
52614
52615 2005-06-28  Simon Josefsson  <jas@extundo.com>
52616
52617         * modules/check-version (Files): Add check-version.m4.
52618
52619 2005-06-28  Simon Josefsson  <jas@extundo.com>
52620
52621         * m4/check-version.m4: New file, suggested by Jim Meyering
52622         <jim@meyering.net>.
52623
52624 2005-06-28  Simon Josefsson  <jas@extundo.com>
52625
52626         * lib/check-version.h, lib/check-version.c: New files.
52627
52628 2005-06-28  Simon Josefsson  <jas@extundo.com>
52629
52630         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52631         collision with global variable.  Better indentation.  Don't
52632         increment buffer pointer beyond buffer end.  Based on comments
52633         from Paul Eggert <eggert@cs.ucla.edu>.
52634
52635         * lib/base64.h: Indent.
52636
52637 2005-06-28  Simon Josefsson  <jas@extundo.com>
52638
52639         * doc/gnulib.texi (Library version handling): New section.
52640
52641 2005-06-28  Jim Meyering  <jim@meyering.net>
52642
52643         * check-module (find_included_lib_files): Hard-code another
52644         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52645         but modules/fts-lgpl (correctly) does not list those files.
52646
52647         * modules/canonicalize (Files): Add lib/pathmax.h.
52648
52649 2005-06-25  Simon Josefsson  <jas@extundo.com>
52650
52651         * modules/check-version: New file.
52652
52653 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52654
52655         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52656         initializer of struct addrinfo, as an indication that we don't
52657         care how many members the structure has.
52658
52659 2005-06-24  Derek Price  <derek@ximbiot.com>
52660         and Bruno Haible  <bruno@clisp.org>
52661
52662         Remove stat module & update lstat.
52663         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52664         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52665         * m4/stat.m4: Remove this file.
52666
52667 2005-06-24  Derek Price  <derek@ximbiot.com>
52668         and Bruno Haible  <bruno@clisp.org>
52669
52670         Remove stat module & update lstat.
52671         * lib/stat.c: Remove this file...
52672         (slash_aware_lstat): ...moving this content and its support...
52673         * lib/lstat.c (rpl_lstat): ...into here.
52674         * lib/lstat.h: New file.
52675
52676 2005-06-24  Derek Price  <derek@ximbiot.com>
52677         and Bruno Haible  <bruno@clisp.org>
52678
52679         Remove stat module & update lstat.
52680         * config/srclist.txt (libc sources): Remove stat.
52681
52682 2005-06-24  Derek Price  <derek@ximbiot.com>
52683         and Bruno Haible  <bruno@clisp.org>
52684
52685         Remove stat module & update lstat.
52686         * MODULES.html.sh (stat): Remove.
52687         * MODULES.html: Regenerated.
52688         * modules/lstat (Description): Correct function name.
52689         (Files): Add "lstat.h".
52690         (Depends-on): Remove stat, add xalloc, stat-macros.
52691         * modules/stat: Remove this file.
52692         (Include): Add "lstat.h", remove <sys/stat.h>.
52693
52694 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52695
52696         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52697         (ranged_convert): Don't save conversion in a temporary struct.
52698         This causes a warning with GCC 4.0.0, and anyway in the typical
52699         case it's not worth the extra 100 bytes or so of code.
52700         (ranged_convert, __mktime_internal): When calling a function via a
52701         pointer P, use P () rather than (*P) (), as we now assume C89 or
52702         better.
52703
52704 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52705
52706         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52707         "who -r" failed to give output.  Problem reported by Tim Waugh.
52708
52709         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52710         (xcalloc): Use it to avoid needless tests.
52711         Problem reported by Jim Meyering.
52712
52713 2005-06-20  Derek Price  <derek@ximbiot.com>
52714
52715         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52716         unnecessary for Autoconfs > 2.59c.
52717
52718 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52719
52720         * lib/argp.h (__option_is_short): Check upper limit of
52721         __key. Isprint() requires its argument to have the value
52722         of an unsigned char or EOF.
52723
52724 2005-06-16  Jim Meyering  <jim@meyering.net>
52725
52726         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52727         when either N or S is zero.
52728
52729 2005-06-16  Derek Price  <derek@ximbiot.com>
52730
52731         * m4/bison.m4: Declare YACC & YFLAGS precious.
52732
52733 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52736         multibyte string or pattern, fall back on unibyte matching.
52737         Problem reported by James Youngman.
52738
52739 2005-06-08  Bruno Haible  <bruno@clisp.org>
52740
52741         * modules/csharpcomp: New file.
52742         * MODULES.html.sh (C#): Add csharpcomp.
52743
52744 2005-06-08  Bruno Haible  <bruno@clisp.org>
52745
52746         * m4/csharpcomp.m4: New file, from GNU gettext.
52747
52748 2005-06-08  Bruno Haible  <bruno@clisp.org>
52749
52750         * lib/csharpcomp.h: New file, from GNU gettext.
52751         * lib/csharpcomp.c: New file, from GNU gettext.
52752         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52753
52754 2005-06-08  Bruno Haible  <bruno@clisp.org>
52755
52756         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52757         warning on mingw.
52758
52759 2005-06-07  Derek Price  <derek@ximbiot.com>
52760
52761         Sync from CVS.
52762         * lib/glob_.h: Indent nested #ifdef.
52763
52764 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         Sync from coreutils.
52767         Use "file name" when talking about file names, instead of "filename"
52768         or "path", as per the GNU coding standards.
52769         * lib/mkdir-p.c: Renamed from makepath.c.
52770         (make_dir_parents): Renamed from make_path.  All callers changed.
52771         * lib/mkdir-p.h: Likewise.  All includers changed.
52772         * lib/filenamecat.c: Renamed from path-concat.c.
52773         (file_name_concat): Renamed from path_concat.  All callers changed.
52774         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52775         * lib/filenamecat.h: Likewise.  All includers changed.
52776         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52777         in comments or local variable names.
52778         * lib/basename.c: Likewise.
52779         * lib/canonicalize.c, canonicalize.h: Likewise.
52780         * lib/dirname.c, dirname.h: Likewise.
52781         * lib/euidaccess.c: Likewise.
52782         * lib/exclude.c: Likewise
52783         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52784         * lib/fsusage.c, fsuage.h: Likewise.
52785         * lib/fts.c, fts_.h: Likewise.
52786         * lib/getcwd.c: Likewise.
52787         * lib/getloadavg.c: Likewise.
52788         * lib/mkstemp.c: Likewise.
52789         * lib/mountlist.c, mountlist.h: Likewise.
52790         * lib/openat.c, openat.h: Likewise.
52791         * lib/readlink-stub.c: Likewise.
52792         * lib/readutmp.c, readutmp.h: Likewise.
52793         * lib/rename.c: Likewise.
52794         * lib/rmdir.c: Likewise.
52795         * lib/same.c: Likewise.
52796         * lib/savedir.c: Likewise.
52797         * lib/stripslash.c: Likewise.
52798         * lib/tempname.c: Likewise.
52799         * lib/xreadlink.c: Likewise.
52800         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52801         All uses changed.
52802         * lib/exclude.h: Likewise.
52803
52804         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52805         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52806         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52807         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52808         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52809         files have been getting away with it for years (MORE/BSD 4.3
52810         is extinct now).
52811         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52812         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52813
52814         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52815         Define to 256, not 255, as per modern POSIX.
52816
52817 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52818
52819         Sync from coreutils.
52820         Use "file name" when talking about file names, instead of "filename"
52821         or "path", as per the GNU coding standards.
52822         * MODULES.html.sh: mkdir-p renamed from makepath.
52823         filenamecat renamed from path-concat.
52824         * modules/filenamecat: Renamed from modules/path-concat.
52825         (Files): filenamecat.h and filenamecat.c renamed from
52826         path-concat.h and path-concat.c.
52827         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52828         (Include): filenamecat.h, not path-concat.h.
52829         * modules/mkdir-p: Renamed from modules/makepath.
52830         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52831         makepath.c.
52832         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52833         (Include): mkdir-p.h, not makepath.h.
52834
52835 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52836
52837         Sync from coreutils.
52838         * m4/mkdir-p.m4: Renamed from makepath.m4.
52839         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52840         Rename files from makepath.c to mkdir-p.c, and from
52841         makepath.h to mkdir-p.h.
52842         * m4/filenamecat.m4: Renamed from path-concat.m4.
52843         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52844         Rename files from path-concat.c to filenamecat.c,
52845         and from path-concat.h to filenamecat.h.
52846         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52847         "file name" in local variables or comments.
52848         * m4/rename.m4: Likewise.
52849
52850 2005-06-01  Bruno Haible  <bruno@clisp.org>
52851
52852         * modules/csharpexec: New file.
52853         * MODULES.html.sh (C#): New section.
52854
52855 2005-06-01  Bruno Haible  <bruno@clisp.org>
52856
52857         * m4/csharp.m4: New file, from GNU gettext.
52858         * m4/csharpexec.m4: New file, from GNU gettext.
52859
52860 2005-06-01  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/csharpexec.h: New file, from GNU gettext.
52863         * lib/csharpexec.c: New file, from GNU gettext.
52864         * lib/csharpexec.sh.in: New file, from GNU gettext.
52865
52866 2005-05-31  Derek Price  <derek@ximbiot.com>
52867             Paul Eggert  <eggert@cs.ucla.edu>
52868
52869         Sync from cvs.
52870         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52871
52872 2005-05-31  Derek Price  <derek@ximbiot.com>
52873             Paul Eggert  <eggert@cs.ucla.edu>
52874
52875         Sync from cvs.
52876         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52877
52878 2005-05-29  Derek Price  <derek@ximbiot.com>
52879
52880         * config/srclist.txt (glob_.h, glob.c): Add these files.
52881
52882 2005-05-29  Derek Price  <derek@ximbiot.com>
52883
52884         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52885         * modules/glob: New file.
52886         * modules/getlogin_r: Add link to POSIX spec in description.
52887
52888 2005-05-29  Derek Price  <derek@ximbiot.com>
52889             Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         * m4/glob.m4: New file.
52892
52893 2005-05-29  Derek Price  <derek@ximbiot.com>
52894             Paul Eggert  <eggert@cs.ucla.edu>
52895
52896         * lib/glob_.h, lib/glob.c: New files.
52897
52898 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52899
52900         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52901         * modules/fts-lgpl (Depends-on): Remove gettext.
52902
52903 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52904
52905         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52906         and don't require gt_INTTYPES_PRI.
52907
52908 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52909
52910         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52911
52912         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52913         the configuration hassle isn't worth it.
52914         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52915         (LONGEST_MODIFIER, PRIuMAX): Remove.
52916
52917 2005-05-27  Bruno Haible  <bruno@clisp.org>
52918
52919         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52920
52921 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52922
52923         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52924         _POSIX_PTHREAD_SEMANTICS for Solaris.
52925
52926 2005-05-25  Derek Price  <derek@ximbiot.com>
52927
52928         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52929
52930 2005-05-25  Derek Price  <derek@ximbiot.com>
52931             Paul Eggert  <eggert@cs.ucla.edu>
52932
52933         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52934         * lib/getlogin_r.c, getlogin_r.h: New files.
52935
52936 2005-05-25  Bruno Haible  <bruno@clisp.org>
52937             Derek Price  <derek@ximbiot.com>
52938
52939         * lib/getlogin_r.h: Simplify API documentation.
52940
52941 2005-05-23  Derek Price  <derek@ximbiot.com>
52942
52943         * modules/minmax (Files): Add m4/minmax.m4.
52944         (configure.ac): Add gl_MINMAX.
52945
52946 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52947
52948         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52949         so that unistd-safer.h (GPL'ed code) need not be included.
52950
52951 2005-05-22  Bruno Haible  <bruno@clisp.org>
52952
52953         * m4/minmax.m4: New file.
52954         Based on a patch by Derek Price <derek@ximbiot.com>.
52955
52956 2005-05-22  Bruno Haible  <bruno@clisp.org>
52957
52958         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52959         (INT64_MIN): Fix definition.
52960         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52961
52962         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52963         NEED_SIGNED_INT_TYPES.
52964
52965         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52966         HAVE_SYSTEM_INTTYPES.
52967
52968 2005-05-22  Bruno Haible  <bruno@clisp.org>
52969
52970         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52971         Also include <sys/param.h> if it defines MIN, MAX.
52972         Based on a patch by Derek Price <derek@ximbiot.com>.
52973
52974 2005-05-21  Jim Meyering  <jim@meyering.net>
52975
52976         * modules/fts (Files): Add m4/inttypes-pri.m4.
52977         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52978
52979 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52980
52981         New fts module.
52982         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52983         (setup_dir, free_dir): New functions.
52984         (enter_dir, leave_dir): Define trivial
52985         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52986         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52987         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52988         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52989         Move to fts-cycle.c.
52990         (fts_open): Use setup_dir.
52991         (fts_close): Use free_dir.
52992         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52993         This adds a label and some gotos, but the alternatives were messier.
52994         Check for memory allocation failure when entering a dir.
52995         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52996         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52997         (FTS): New member fts_cycle, that is a union that contains the
52998         old active_dir_ht and cycle_state.  All uses changed to mention
52999         fts_cycle.ht and fts_cycle.state.
53000         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
53001         fts.c, with the following changes:
53002         (setup_dir, free_dir): New functions.
53003         (enter_dir): Now returns bool.  Return true if successful, false
53004         if memory exhausted.  All callers changed.
53005         Do not bother partly cleaning up on
53006         memory allocation failure; that is free_dir's job.
53007         However, free ad if hash_insert fails, to avoid memory leak.
53008         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
53009         fts->fts_options to see which union member to use.
53010
53011 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53012
53013         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
53014         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
53015
53016 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53017
53018         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
53019
53020 2005-05-20  Jim Meyering  <jim@meyering.net>
53021
53022         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
53023         Now a macro, to pacify GCC.
53024
53025 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
53026
53027         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
53028         of -1.
53029
53030 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
53031
53032         * lib/chown.c (rpl_chown): Return -1 on failure.
53033
53034 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
53035
53036         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
53037         Don't check for stddef.h.
53038         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
53039         don't use its results.
53040         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
53041         since we include them unconditionally.  Don't require
53042         AM_STDBOOL_H, since stdbool is a prerequisite.
53043         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
53044         since we assume C89 or better.
53045         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
53046         as we don't use their results.
53047         Don't check for fchdir, memmove, memset, strrchr, as we use
53048         them unconditionally.
53049         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
53050         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
53051
53052 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
53053
53054         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
53055         Include <stddef.h> unconditionally, since we assume C89 now.
53056         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
53057         * lib/fts.c: Include fts_.h first, to check interface.
53058         Do not include intprops.h; no longer needed.
53059         Include cycle-check.h and hash.h, since fts_.h no longer does.
53060         Remove unnecessary casts of closedir to void.
53061         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
53062         decide whether to decrement nlinks.
53063         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
53064         (FTS): Use struct hash_table * instead of Hash_table, so that
53065         we no longer need to include hash.h here.
53066
53067 2005-05-18  Jim Meyering  <jim@meyering.net>
53068
53069         * modules/dirfd (License): Change to LGPL.  Most of the code
53070         is already in the public domain.
53071
53072 2005-05-18  Jim Meyering  <jim@meyering.net>
53073
53074         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
53075         Reported by Yoann Vandoorselaere.
53076
53077 2005-05-17  Jim Meyering  <jim@meyering.net>
53078
53079         * m4/fts.m4: New file, from coreutils.
53080
53081 2005-05-17  Jim Meyering  <jim@meyering.net>
53082
53083         * lib/fts.c, lib/fts_.h: New files, from coreutils.
53084
53085 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53086
53087         Sync from coreutils.
53088         * m4/unlinkdir.m4: New file.
53089
53090 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53091
53092         Sync from coreutils.
53093         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
53094         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
53095         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
53096         White space changes only.
53097         * lib/makepath.c (make_path): Port to hosts where leading "//" is
53098         special.
53099         * lib/yesno.c: Include getline.h, not ctype.h.
53100         (yesno): Don't remove leading white space; POSIX doesn't allow it.
53101         Use getline to remove arbitrary restriction on response length.
53102
53103 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53104
53105         * config/srclist-update: Spell out "Street" in FSF postal
53106         mail address; this is the style the FSF seems to prefer.
53107
53108         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
53109         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
53110         this updates FSF postal mail address.
53111
53112         Sync from coreutils.
53113         * modules/unlinkdir: New file.
53114         * modules/yesno (Depends-on): Add getline.
53115         * MODULES.html.sh (File system functions): Add unlinkdir.
53116
53117 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53118
53119         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
53120         lib/strsep.h:
53121         Change the initial comment to refer to GPL, not LGPL.
53122         gnulib-tool will change it to LGPL as needed.
53123
53124         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
53125         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
53126         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
53127         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
53128         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
53129         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
53130         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
53131         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
53132         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
53133         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
53134         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
53135         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
53136         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
53137         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
53138         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
53139         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
53140         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
53141         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
53142         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
53143         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
53144         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
53145         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
53146         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
53147         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
53148         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
53149         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
53150         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
53151         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
53152         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
53153         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
53154         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
53155         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
53156         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
53157         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
53158         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
53159         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
53160         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
53161         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
53162         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
53163         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
53164         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
53165         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
53166         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
53167         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
53168         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
53169         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
53170         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
53171         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
53172         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
53173         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
53174         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53175         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
53176         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
53177         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
53178         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
53179         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
53180         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
53181         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
53182         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
53183         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
53184         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
53185         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
53186         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
53187         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
53188         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
53189         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
53190         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
53191         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
53192         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
53193         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
53194         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
53195         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
53196         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
53197         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
53198         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
53199         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
53200         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
53201         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
53202         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
53203         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
53204         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
53205         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
53206         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
53207         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
53208         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
53209         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
53210         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
53211         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
53212         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
53213         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
53214         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
53215         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
53216         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
53217         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
53218         lib/yesno.c, lib/yesno.h:
53219         Update FSF postal mail address.
53220
53221 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
53224         tests/test-memmem.c, tests/test-stpncpy.c:
53225         Update FSF postal mail address.
53226
53227 2005-05-13  Bruno Haible  <bruno@clisp.org>
53228
53229         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
53230         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
53231         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
53232         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
53233         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
53234         Add support for 64-bit integers in the MSVC compiler.
53235
53236 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53237
53238         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
53239
53240 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
53241
53242         * gnulib-tool (func_import): Sort and uniquify recommended includes.
53243
53244 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
53245
53246         * doc/getdate.texi (General date syntax): Don't say that date
53247         date --iso-8601=ns generates acceptable dates; it doesn't yet.
53248         Problem reported by Nic Ferrier.
53249
53250 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53251
53252         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
53253         specified in ai_socktype. Fix invalid ai_protocol
53254         check. ai_protocol is usually set to 0 or depending on
53255         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
53256         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
53257         ai_socktype / ai_protocol in the returned addrinfo structure.
53258
53259 2005-05-10  Simon Josefsson  <jas@extundo.com>
53260
53261         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
53262         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53263
53264 2005-05-10  Karl Berry  <karl@gnu.org>
53265
53266         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
53267         (from http://www.gnu.org/licenses).
53268         * doc/COPYING.LIB: also rename to COPYING.LESSER.
53269         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
53270         fdl.texi suffices.
53271
53272 2005-05-10  Karl Berry  <karl@gnu.org>
53273
53274         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
53275         (COPYING.DOC): remove.
53276
53277         * config/srclist-update: new FSF address.
53278
53279 2005-05-10  Derek Price  <derek@ximbiot.com>
53280
53281         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
53282         possible.
53283
53284 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53285             Bruno Haible  <bruno@clisp.org>
53286
53287         * modules/inet_ntop: New file.
53288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53289         inet_ntop.
53290
53291 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53292             Bruno Haible  <bruno@clisp.org>
53293
53294         * m4/inet_ntop.m4: New file.
53295
53296 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53297             Bruno Haible  <bruno@clisp.org>
53298
53299         * lib/inet_ntop.h: New file.
53300         * lib/inet_ntop.c: New file, from glibc with modifications.
53301
53302 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
53303
53304         * modules/time_r (License): Change to LGPL.
53305         * modules/extensions (License): Change to LGPL.  Actually,
53306         the license is more permissive than that, but currently gnulib-tool
53307         doesn't know how to handle more-permissive licenses.
53308
53309         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
53310         Problem reported by Dave Love.
53311
53312 2005-05-08  Jim Meyering  <jim@meyering.net>
53313
53314         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
53315         blank.
53316
53317 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53318
53319         * modules/argmatch (Depends-on): Add stdbool.
53320         * modules/backupfile (Depends-on): Likewise.
53321         * modules/chdir-long (Depends-on): Likewise.
53322         * modules/closeout (Depends-on): Likewise.
53323         * modules/cycle-check (Depends-on): Likewise.
53324         * modules/dirname (Depends-on): Likewise.
53325         * modules/fnmatch (Depends-on): Likewise.
53326         * modules/fsusage (Depends-on): Likewise.
53327         * modules/fwriteerror (Depends-on): Likewise.
53328         * modules/getcwd (Depends-on): Likewise.
53329         * modules/getloadavg (Depends-on): Likewise.
53330         * modules/hard-locale (Depends-on): Likewise.
53331         * modules/makepath (Depends-on): Likewise.
53332         * modules/mountlist (Depends-on): Likewise.
53333         * modules/nanosleep (Depends-on): Likewise.
53334         * modules/posixtm (Depends-on): Likewise.
53335         * modules/quotearg (Depends-on): Likewise.
53336         * modules/readtokens (Depends-on): Likewise.
53337         * modules/readtokens0 (Depends-on): Likewise.
53338         * modules/readutmp (Depends-on): Likewise.
53339         * modules/save-cwd (Depends-on): Likewise.
53340         * modules/strftime (Depends-on): Likewise.
53341         * modules/userspec (Depends-on): Likewise.
53342         * modules/utimecmp (Depends-on): Likewise.
53343         * modules/xgetcwd (Depends-on): Likewise.
53344         * modules/xnanosleep (Depends-on): Likewise.
53345         * modules/xstrtod (Depends-on): Likewise.
53346         * modules/yesno (Depends-on): Likewise.
53347
53348 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53349
53350         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53351         needless checks.
53352
53353 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53354
53355         Merge from coreutils.  Among other things,
53356         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53357         * lib/fd-safer.c: New file.
53358         * lib/fcntl-safer.h, open-safer.c: Remove.
53359         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53360         * lib/dup-safer.c: Include unistd-safer.h first.
53361         Don't include errno.h.
53362         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53363         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53364         * lib/file-type.c: Rely on file-type.h change.
53365         * lib/getloadavg.c: Include unistd-safer.h.
53366         (getloadavg): Use safer open.
53367         * lib/getusershell.c: Include "stdio-safer.h".
53368         (getusershell): Use safer fopen.
53369         * lib/long-options.c (long_options): Use NULL rather than 0.
53370         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53371         'free'.
53372         * lib/modechange.c: Likewise.
53373         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53374         (MODE_DONE): New constant.
53375         (struct mode_change): Remove 'next' member.
53376         (make_node_op_equals): New function; like the old one of the
53377         same name, except it allocates an array.
53378         (mode_compile, mode_create_from_ref): Use it.
53379         (mode_compile): Allocate result as an array, not a linked list.
53380         Parse octal string ourself, so that we catch mistakes like "+0".
53381         (mode_adjust): Arg is an array, not a linked list.
53382         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53383         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53384         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53385         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53386         Remove.  This is now stat-macros.h's job.
53387         (talloc): Remove.  All callers replaced by xalloc, so that
53388         our invokers don't have to worry about reporting memory failures.
53389         (make_node_op_equals): Remove.
53390         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53391         New constants.
53392         (struct mode_change): Moved here from modechange.h.
53393         (mode_append_entry): Remove.
53394         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53395         apps to have incorrect behavior.  Use simpler algorithm for head
53396         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53397         Detect more invalid usages rather than having somewhat-random behavior.
53398         Don't insert an "a=" action, as that leads to incorrect behavior.
53399         (mode_compile, mode_create_from_ref): Return NULL on error instead
53400         of an enum, since now there's only one way to have an error.  All
53401         callers changed.
53402         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53403         at the correct time.  Simplify calculation of "+u" and its ilk.
53404         Don't mishandle "+X".
53405         (mode_free): Remove "register" and localize decls.
53406         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53407         (struct mode_change): Move to modechange.c; callers don't
53408         need to see this stuff.
53409         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53410         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53411         (mode_change, mode_adjust): Reflect the new signatures noted above.
53412         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53413         that might redefine system include files.
53414         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53415         (my_usleep): Use NULL rather than (void *) 0.
53416         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53417         Use siginterrupt to specify that system calls should be interrupted.
53418         (rpl_nanosleep): Move initialization of suspended closer to call of
53419         my_usleep.
53420         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53421         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53422         (desirable_utmp_entry): New function.
53423         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53424         using x2nrealloc, to simplify logic.
53425         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53426         size calculation.  Do not assume utmp file is a regular file.
53427         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53428         (READ_UTMP_CHECK_PIDS): New constant.
53429         * lib/save-cwd.c: Include unistd-safer.h.
53430         (save_cwd): Use fd_safer.
53431         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53432         [!_LIBC] Include "stat-macros.h" instead.
53433         * lib/unistd-safer.h (fd_safer): New decl.
53434
53435 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * modules/getloadavg (Depends-on): Add unistd-safer.
53438         * modules/getusershell (Depends-on): Add stdio-safer.
53439         * modules/lstat (Depends-on): Remove xalloc.
53440         * modules/mkstemp (Depends-on): Add stat-macros.
53441         * modules/modechange (Depends-on): Remove xstrtol.
53442         Add stat-macros, xalloc.
53443         * modules/save-cwd (Depends-on): Add unistd-safer.
53444         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53445         * modules/unistd-safer (Files): Add lib/fd-safer.c
53446         (Makefile.am): Remove lib_SOURCES.
53447
53448         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53449         Remove fcntl-safer; unistd-safer supersedes it.
53450
53451 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53452
53453         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53454         AC_HEADER_STAT.
53455         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53456         (gl_PREREQ_CHOWN): Remove.
53457         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53458         it.  Don't require AC_HEADER_STAT.
53459         (gl_PREREQ_LSTAT): Remove.
53460         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53461         Don't require AC_HEADER_STAT.
53462         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53463         (gl_PREREQ_RMDIR): Remove.
53464         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53465         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53466         the stat-macros module a prerequisite.
53467         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53468         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53469         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53470         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53471         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53472         variable names.
53473         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53474         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53475         variable prefixes.
53476         * m4/fcntl-safer.m4: Remove.
53477         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53478         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53479         Invoke gl_PREREQ_FD_SAFER.
53480         (gl_PREREQ_FD_SAFER): New macro.
53481         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53482         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53483         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53484         Remove duplicate call to AC_LIBOBJ(readutmp).
53485         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53486
53487         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53488         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53489
53490 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53491
53492         * MODULES.html.sh (Misc): Add byteswap.
53493
53494 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53495
53496         * modules/getcwd (Depends-on): Add extensions.
53497         * modules/openat (Depends-on): Likewise.
53498
53499 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53500
53501         * modules/byteswap: New file.
53502
53503 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53504
53505         * m4/byteswap.m4: New file.
53506
53507 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53508
53509         * lib/byteswap_.h: New file.
53510
53511 2005-04-25  Karl Berry  <karl@gnu.org>
53512
53513         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53514
53515 2005-04-25  Albert Chin  <china@thewrittenword.com>
53516
53517         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53518         Toolkit C bug.
53519
53520 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53521
53522         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53523         (func_ln_if_changed) Remove forcibly for no error message
53524         in case file does not exist.
53525
53526 2005-04-19  Simon Josefsson  <jas@extundo.com>
53527
53528         * gnulib-tool (Options): Make --symlink mean --symbolic.
53529
53530 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53531
53532         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53533
53534 2005-04-16  Simon Josefsson  <jas@extundo.com>
53535
53536         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53537
53538 2005-04-15  Simon Josefsson  <jas@extundo.com>
53539
53540         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53541
53542 2005-04-15  Simon Josefsson  <jas@extundo.com>
53543
53544         * gnulib-tool: Rename --symlink to --symbolic.
53545
53546 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53547
53548         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53549         symbolic links to files instead of copying/moving.  Add --aux-dir,
53550         specifying directory relative --dir where auxiliary build tools
53551         are placed.
53552
53553 2005-04-14  Bruno Haible  <bruno@clisp.org>
53554
53555         * modules/allocsa (License): Change to LGPL.
53556         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53557
53558 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53559
53560         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53561         that "UTC +1 second" continues to work.  Problem reported
53562         by Dmitry V. Levin.
53563         (relunit_snumber): New rule.
53564         (relunit): Use it.
53565
53566 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53567
53568         * lib/getdate.y (universal_time_zone_table): New constant.
53569         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53570         universal_time_zone_table.
53571         (lookup_zone): Prefer universal_time_zone_table to
53572         local_time_zone_table, so that "GMT" time stamps are allowed in
53573         London during the summer.  Problem reported by Ian Abbott.
53574
53575 2005-04-12  Jim Meyering  <jim@meyering.net>
53576
53577         * lib/human.c (humblock): Set *options even when returning due to
53578         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53579         warning from gcc-4.
53580
53581 2005-04-09  Jim Meyering  <jim@meyering.net>
53582
53583         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53584         -Wuninitialized: initialize tm0.tm_year.
53585
53586 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53587
53588         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53589         count, since there's no maximum.  All uses changed.
53590         Add member dsts_seen.
53591         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53592         not being INT_MAX.
53593         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53594         Use pc_rels_seen to decide whther a date is absolute.
53595
53596         * lib/getdate.y (number): Don't overwrite year.
53597         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53598         check.
53599
53600 2005-04-02  Simon Josefsson  <jas@extundo.com>
53601
53602         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53603         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53604
53605 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53606
53607         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53608         where no absolute path name can be longer than PATH_MAX.
53609
53610 2005-03-27  Jim Meyering  <jim@meyering.net>
53611
53612         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53613
53614 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53615
53616         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53617         "one's complement" -> "ones' complement" in comment, as per Knuth.
53618         "value of type" -> "type or expression" in comment.
53619         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53620
53621 2005-03-26  Jim Meyering  <jim@meyering.net>
53622
53623         Comment nits.
53624         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53625         Correct typos: s/or/of/.
53626
53627 2005-03-26  Jim Meyering  <jim@meyering.net>
53628
53629         * modules/check-include-files: Move to ../ and rename to...
53630         * check-module: ...this.
53631
53632 2005-03-25  Jim Meyering  <jim@meyering.net>
53633
53634         * modules/xvasprintf (Files): Add xalloc.h.
53635
53636 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53637
53638         * modules/gettext (Files): config/config.rpath ->
53639         build-aux/config.rpath
53640         * modules/iconv (Files): Likewise.
53641         Problem reported by Oskar Liljeblad.
53642
53643 2005-03-23  Jim Meyering  <jim@meyering.net>
53644
53645         * modules/check-include-files: New script to check for
53646         missing dependencies, multiple includes, etc.
53647
53648         * modules/c-strtold (Depends-on): Add xalloc.
53649         * modules/c-strtod (Depends-on): Add xalloc.
53650         * modules/hash (Depends-on): Add xalloc.
53651         (Files): Remove lib/xalloc.h.
53652
53653         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53654         * modules/userspec (Files): Add lib/inttostr.h.
53655
53656 2005-03-23  Jim Meyering  <jim@meyering.net>
53657
53658         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53659
53660 2005-03-22  Jim Meyering  <jim@meyering.net>
53661
53662         * modules/stat-macros: New module.
53663         * modules/canonicalize, modules/euidaccess, modules/file-type,
53664         * modules/filemode, modules/lchown, modules/makepath,
53665         * modules/rmdir, modules/stat: Depend on new stat-macros module
53666         rather than listing lib/stat-macros.h manually.
53667         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53668
53669 2005-03-22  Jim Meyering  <jim@meyering.net>
53670
53671         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53672
53673 2005-03-22  Bruno Haible  <bruno@clisp.org>
53674
53675         * config/srclist.txt: Replace target directory 'config' with
53676         'build-aux'.
53677         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53678         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53679         ../build-aux/.
53680
53681 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53682
53683         * modules/chdir-long (Depends-on): Add mempcpy.
53684
53685         * modules/acl, modules/backupfile, modules/c-strtod,
53686         modules/c-strtold, modules/canon-host, modules/canonicalize,
53687         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53688         modules/exclude, modules/exitfail, modules/file-type,
53689         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53690         modules/getdate, modules/getline, modules/getpagesize,
53691         modules/getpass, modules/getugroups, modules/group-member,
53692         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53693         modules/inttostr, modules/long-options, modules/makepath,
53694         modules/md5, modules/memcasecmp, modules/memcoll,
53695         modules/modechange, modules/mountlist, modules/path-concat,
53696         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53697         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53698         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53699         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53700         modules/strftime, modules/strndup, modules/strverscmp,
53701         modules/timespec, modules/unlocked-io, modules/userspec,
53702         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53703         modules/yesno:
53704         Remove lib_SOURCES line from Makefile.am section, as this is now
53705         done automatically by the corresponding Autoconf macro.
53706
53707 2005-03-21  Jim Meyering  <jim@meyering.net>
53708
53709         Changes imported from coreutils.
53710
53711         * lib/cycle-check.c: Don't include xalloc.h.
53712
53713         * lib/path-concat.c: Don't include assert.h.
53714         (path_concat): Remove assertion that would have triggered
53715         for ABASE starting with more than one slash.
53716         Reported by Andreas Schwab.
53717
53718         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53719         properly when ABASE is an absolute file name.
53720         Correct the description of this function.
53721         Include <assert.h>.
53722         Add an assertion and a test driver.
53723         This fixes a bug introduced on 2004-07-02.
53724         Andreas Schwab reported the resulting failure of cp --parents:
53725         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53726
53727 2005-03-21  Jim Meyering  <jim@meyering.net>
53728
53729         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53730         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53731
53732 2005-03-21  Jim Meyering  <jim@meyering.net>
53733         and  Paul Eggert  <eggert@cs.ucla.edu>
53734
53735         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53736         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53737         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53738         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53739         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53740         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53741         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53742         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53743         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53744         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53745         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53746         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53747         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53748         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53749         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53750         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53751         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53752         for these modules.
53753
53754 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53757         (which shouldn't happen), generate nothing instead of returning 0
53758         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53759
53760 2005-03-16  Bruno Haible  <bruno@clisp.org>
53761
53762         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53763         HAVE_LONGLONG_64BIT.
53764
53765 2005-03-16  Bruno Haible  <bruno@clisp.org>
53766
53767         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53768         HAVE_LONGLONG_64BIT.
53769
53770 2005-03-16  Bruno Haible  <bruno@clisp.org>
53771
53772         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53773         HAVE_LONGLONG_64BIT.
53774
53775 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53776
53777         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53778         reliably distinguish strftime failure from empty output on POSIX
53779         hosts.
53780
53781 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53782
53783         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53784         (iconv_string): Don't guess a size-zero buffer, as that might cause
53785         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53786         result would be 'too large', where 'too large' is (heuristically)
53787         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53788         overflow concerns.  This will prevent some unwanted malloc failures
53789         when the inputs are very large.
53790
53791 2005-03-15  Karl Berry  <karl@gnu.org>
53792
53793         * config/srclist.txt (config.rpath): from gettext.
53794         * config/config.rpath: update.
53795
53796 2005-03-15  Bruno Haible  <bruno@clisp.org>
53797
53798         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53799         to 'negate'.
53800
53801         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53802         variable.
53803
53804         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53805         results.
53806
53807 2005-03-14  Simon Josefsson  <jas@extundo.com>
53808
53809         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53810         <fx@gnu.org>.
53811
53812 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53813
53814         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53815         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53816         intprops.h.
53817         * lib/strtol.c: Likewise.
53818
53819 2005-03-14  Jim Meyering  <jim@meyering.net>
53820
53821         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53822         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53823         to be nonzero so that we (and caller) can detect the difference
53824         between a valid zero-length expansion and an error return, even
53825         when the underlying strftime fails before writing anything into
53826         that location.
53827
53828 2005-03-14  Bruno Haible  <bruno@clisp.org>
53829
53830         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53831         Update from GNU gettext 0.14.3.
53832
53833 2005-03-10  Jim Meyering  <jim@meyering.net>
53834
53835         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53836
53837 2005-03-10  Jim Meyering  <jim@meyering.net>
53838
53839         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53840         so that this module works on systems without fchdir.
53841
53842 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53843
53844         Factor int-properties macros into a single file, except for
53845         glibc-related files.
53846         * lib/intprops.h: New file.
53847         * lib/getloadavg.c: Include it instead of limits.h.
53848         (INT_STRLEN_BOUND): Remove.
53849         * lib/human.c: Include intprops.h.
53850         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53851         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53852         302/1000.
53853         * lib/inttostr.h: Include intprops.h instead of limits.h.
53854         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53855         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53856         for consistency with intprops.h.
53857         (time_t_is_integer, twos_complement_arithmetic): Use them.
53858         * lib/sig2str.h: Include <signal.h>, intprops.h.
53859         (INT_STRLEN_BOUND): Remove.
53860         * lib/strftime.c (TYPE_SIGNED): Remove.
53861         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53862         * lib/strtol.c: Adjust comments to match intprops.h.
53863         * lib/userspec.c: Include intprops.h.
53864         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53865         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53866         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53867         instead of rolling our own expressions.
53868         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53869
53870         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53871         instead of int.
53872         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53873         the right thing even if adding 1900 would overflow.  Similarly
53874         for tm_mon + 1 and tm_yday + 1.
53875         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53876         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53877         (DO_SIGNED_NUMBER): New macro.
53878         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53879
53880 2005-03-07  Bruno Haible  <bruno@clisp.org>
53881
53882         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53883
53884 2005-03-07  Bruno Haible  <bruno@clisp.org>
53885
53886         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53887
53888 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53889
53890         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53891         (func_import): Only replace files via --import when they have actually
53892         changed.
53893
53894 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53895
53896         * m4/mmap-anon.m4: New file.
53897         * m4/pagealign_alloc.m4: New file.
53898
53899 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53900             Bruno Haible  <bruno@clisp.org>
53901
53902         * modules/pagealign_alloc: New file.
53903         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53904
53905 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53906             Bruno Haible  <bruno@clisp.org>
53907
53908         * lib/pagealign_alloc.h: New file.
53909         * lib/pagealign_alloc.c: New file.
53910
53911 2005-03-03  Bruno Haible  <bruno@clisp.org>
53912
53913         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53914         Use an all-permissive copyright notice, recommended by RMS.
53915
53916 2005-03-02  Bruno Haible  <bruno@clisp.org>
53917
53918         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53919         of AIX, the replacement has to be done only after <string.h> is
53920         included, therefore not in config.h. stpncpy.h does the replacement,
53921         and stpncpy.c uses it.
53922
53923 2005-03-02  Bruno Haible  <bruno@clisp.org>
53924
53925         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53926         stpncpy.c uses it.
53927
53928 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53929
53930         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53931         The workaround isn't strictly needed for POSIX conformance, and
53932         it's too much of a pain to configure and maintain.  We'll ask
53933         people to fix their kernels instead.
53934         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53935         (NANOSLEEP_BUG_WORKAROUND): Remove.
53936         (xnanosleep): Remove the workaround.
53937
53938 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53939
53940         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53941         Reported by Derek Price.
53942         (Include): Add "timespec.h".
53943
53944         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53945
53946 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53947
53948         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53949         to detect nanosleep bug.
53950
53951 2005-03-01  Bruno Haible  <bruno@clisp.org>
53952
53953         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53954
53955 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53956
53957         * modules/gethrxtime: New file.
53958         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53959         (Depends-on): Add gethrxtime.
53960         (configure.ac): Add gl_XNANOSLEEP.
53961         (Makefile.am): Remove lib_SOURCES line.
53962
53963 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53964
53965         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53966         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53967
53968 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53969
53970         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53971         * lib/timespec.h (gettime): Return void, since it always
53972         succeeds now.  All uses changed.
53973         * lib/gettime.c (gettime) Likewise.
53974         [HAVE_NANOTIME]: Prefer nanotime.
53975         Assume gettimeofday succeeds, as POSIX requires.
53976         Assime time () succeeds, since other code already does.
53977         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53978         (timespec_subtract): Remove.
53979         (NANOSLEEP_BUG_WORKAROUND): New constant.
53980         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53981         things considerably.  Use it only on GNU/Linux hosts, since the
53982         workaround shouldn't be needed elsewhere.
53983
53984 2005-02-24  Bruno Haible  <bruno@clisp.org>
53985
53986         * modules/gettext (Files): Add m4/glibc2.m4.
53987
53988 2005-02-24  Bruno Haible  <bruno@clisp.org>
53989
53990         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53991         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53992         * m4/progtest.m4:
53993         Update from GNU gettext 0.14.2.
53994         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53995
53996 2005-02-24  Bruno Haible  <bruno@clisp.org>
53997
53998         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53999         * lib/config.charset: Update from GNU gettext 0.14.2.
54000
54001 2005-02-24  Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/gettext.h: Update from GNU gettext 0.14.2.
54004
54005 2005-02-23  Simon Josefsson  <jas@extundo.com>
54006
54007         * m4/iconvme.m4: New file.
54008
54009 2005-02-23  Jim Meyering  <jim@meyering.net>
54010
54011         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
54012         change.
54013         Thanks to Bruno Haible for catching it.
54014
54015 2005-02-22  Simon Josefsson  <jas@extundo.com>
54016
54017         * modules/iconvme: New file.
54018
54019         * MODULES.html.sh: Add iconvme.
54020
54021 2005-02-22  Simon Josefsson  <jas@extundo.com>
54022
54023         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
54024
54025 2005-02-22  Simon Josefsson  <jas@extundo.com>
54026
54027         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
54028
54029 2005-02-22  Jim Meyering  <jim@meyering.net>
54030
54031         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
54032         s/ifndef/ifdef/.
54033
54034 2005-02-20  Neil Conway  <neilc@samurai.com>
54035
54036         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
54037         returned by OSX/Darwin if the specified buffer is not large
54038         enough for the hostname.
54039
54040 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54041
54042         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
54043         pass it to _help, otherwise the latter coredumps trying to
54044         dereference state.root_argp.
54045
54046 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54047
54048         * modules/chdir-long (Depends-on): Add memrchr.
54049         * modules/memrchr (Files): Add lib/memrchr.h.
54050         (Include): "memrchr.h".
54051
54052 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54053
54054         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
54055
54056 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54057
54058         * lib/memrchr.h: New file.
54059         * lib/chdir-long.c: Include it.
54060         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
54061         Don't bother including stddef.h.
54062
54063 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54064
54065         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
54066         inclusion.
54067         Include <sys/types.h>, for dev_t.
54068         (ME_DUMMY, ME_REMOTE): Move from here....
54069         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
54070         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
54071         Dmitry V. Levin.
54072         Include mountlist.h first, to test the interface.
54073
54074 2005-01-29  Bruno Haible  <bruno@clisp.org>
54075
54076         * lib/progname.c (program_name): Initialize.
54077         Needed when linking statically on MacOS X.
54078
54079 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54080
54081         Sync from coreutils.
54082         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
54083         (Depends-on): Add c-strtod.
54084         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
54085
54086 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54087
54088         Sync from coreutils.
54089         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
54090
54091         Remove files that are specific to coreutils.
54092         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
54093
54094 2005-01-28  Bruno Haible  <bruno@clisp.org>
54095
54096         * modules/javacomp: New file.
54097         * MODULES.html.sh (Java): Add javacomp.
54098
54099 2005-01-28  Bruno Haible  <bruno@clisp.org>
54100
54101         * m4/javacomp.m4: New file, from GNU gettext.
54102
54103 2005-01-28  Bruno Haible  <bruno@clisp.org>
54104
54105         * lib/javacomp.sh.in: New file, from GNU gettext.
54106         * lib/javacomp.h: New file, from GNU gettext.
54107         * lib/javacomp.c: New file, from GNU gettext.
54108
54109 2005-01-26  Simon Josefsson  <jas@extundo.com>
54110
54111         * lib/gai_strerror.c: Use GPL in header.
54112
54113 2005-01-26  Bruno Haible  <bruno@clisp.org>
54114
54115         * modules/javaexec: New file.
54116         * MODULES.html.sh (Java): Add javaexec.
54117
54118 2005-01-26  Bruno Haible  <bruno@clisp.org>
54119
54120         * m4/javaexec.m4: New file, from GNU gettext.
54121
54122 2005-01-26  Bruno Haible  <bruno@clisp.org>
54123
54124         * lib/javaexec.sh.in: New file, from GNU gettext.
54125         * lib/javaexec.h: New file, from GNU gettext.
54126         * lib/javaexec.c: New file, from GNU gettext.
54127
54128 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54129
54130         * modules/lchown (Depends-on): Remove lchown.h
54131
54132 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54133
54134         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
54135         must be defined if the header file was not found, in order
54136         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
54137
54138 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54139
54140         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
54141         initializers for struct pentry_state.
54142         (__argp_error): Check return value of __asprintf
54143         (__argp_failure): Translate error message
54144
54145         * lib/argp-parse.c: Removed braces around the expansion of N_()
54146
54147 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54148
54149         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
54150         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
54151         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
54152         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
54153         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
54154         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
54155         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
54156         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
54157         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
54158         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
54159         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
54160         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
54161         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
54162         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
54163         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
54164         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
54165         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
54166         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
54167         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
54168         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
54169         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
54170         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
54171         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
54172         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
54173         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
54174         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
54175         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
54176         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
54177         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
54178         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
54179         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
54180         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
54181         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
54182         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
54183         xstrtol.m4, xstrtoumax.m4, yesno.m4:
54184         Use an all-permissive copyright notice, recommended by RMS.
54185
54186 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
54187
54188         * modules/chdir-long (Depends-on): Remove mempcpy.
54189
54190 2005-01-21  Jim Meyering  <jim@meyering.net>
54191
54192         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
54193         same value as for Solaris 9.
54194
54195         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
54196         component length.  This included changing the parameter to be
54197         of type `char *' rather than `char const *'.
54198         * lib/chdir-long.h (chdir_long): Update prototype.
54199
54200         * lib/openat.c (fdopendir, fstatat): New functions.
54201         * lib/openat.h: Include headers required for use of DIR and struct
54202         stat.
54203         [AT_SYMLINK_NOFOLLOW]: Define.
54204         (fdopendir, fstatat): Add prototypes.
54205
54206 2005-01-21  Bruno Haible  <bruno@clisp.org>
54207
54208         * modules/classpath: New file.
54209         * MODULES.html.sh (Java): Add classpath.
54210
54211 2005-01-21  Bruno Haible  <bruno@clisp.org>
54212
54213         * lib/classpath.h: New file, from GNU gettext.
54214         * lib/classpath.c: New file, from GNU gettext.
54215
54216 2005-01-20  Simon Josefsson  <jas@extundo.com>
54217
54218         * modules/version-etc-fsf: New file.
54219
54220 2005-01-20  Simon Josefsson  <jas@extundo.com>
54221
54222         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
54223         * lib/version-etc.c: Remove version_etc_copyright.
54224         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
54225         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
54226
54227 2005-01-20  Simon Josefsson  <jas@extundo.com>
54228
54229         * lib/base64.h (isbase64): Add.
54230
54231         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
54232         using a unsigned prototype, don't inline.
54233         (base64_decode): Use it.
54234
54235 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54236
54237         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
54238         it.
54239
54240 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54241
54242         * lib/save-cwd.c (save_cwd): Remove code to support the case
54243         where fchdir is missing or flaky.
54244
54245 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54246
54247         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
54248
54249 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54250
54251         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
54252         AC_LIBSOURCES now does this.
54253         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
54254         with new ullong_max module.
54255
54256 2005-01-19  Bruno Haible  <bruno@clisp.org>
54257
54258         * modules/sh-quote: New file.
54259         * MODULES.html.sh (Executing programs): Add sh-quote.
54260
54261 2005-01-19  Bruno Haible  <bruno@clisp.org>
54262
54263         * lib/sh-quote.h: New file, from GNU gettext.
54264         * lib/sh-quote.c: New file, from GNU gettext.
54265
54266 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54267
54268         Merge from coreutils.
54269         * m4/ullong_max.m4: New file.
54270         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
54271         (gl_MACROS): Assume localeconv exists.
54272
54273 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54274
54275         Merge changes from coreutils, as described below in several
54276         changelogs dated today.
54277
54278         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
54279         (O_DIRECTORY): Remove; not needed here, since "." must be
54280         a directory.  All uses removed.
54281         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
54282         universal on Suns, and we also need to test for IRIX.
54283         Revamp code to use 'if' rather than '#if'.
54284         Avoid unnecessary comparison of cwd->desc to 0.
54285
54286         * lib/utimens.c (futimens): Robustify the previous patch, by checking
54287         for known valid error numbers rather than observed invalid ones.
54288
54289 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54290
54291         * modules/ullong_max: New file.
54292
54293         * modules/chdir-long, modules/openat: New files.
54294         * modules/save-cwd (Depends-on): Depend on chdir-long.
54295         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
54296
54297 2005-01-18  Jim Meyering  <jim@meyering.net>
54298
54299         Merge from coreutils.
54300         * m4/chdir-long.m4, m4/openat.m4: New files.
54301         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
54302         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
54303         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
54304         is sane and DOES follow symlinks.  Besides, testing 20 different
54305         systems found no broken chown implementations.
54306         Prompted by a change in rsync's copy of this macro.
54307         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
54308
54309         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
54310
54311         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
54312         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
54313         NULL-means-set-to-current-time semantics.
54314         Remove temporary file immediately, rather than waiting
54315         for configure's at-exit trap code to do it.
54316
54317 2005-01-18  Jim Meyering  <jim@meyering.net>
54318
54319         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54320
54321         * lib/utimens.c (futimens): Account for the fact that futimes
54322         can also fail with errno == ENOSYS or errno == ENOENT.
54323         Patch from Dmitry V. Levin.
54324
54325         Change the name of the robust chdir function from chdir to chdir_long.
54326         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
54327         (restore_cwd): Use chdir_long, not chdir.
54328         * lib/chdir-long.c: Renamed from chdir.c.
54329         * lib/chdir-long.h: Renamed from chdir.h.
54330         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
54331         Hurd.
54332
54333 2005-01-18  Bruno Haible  <bruno@clisp.org>
54334
54335         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54336         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54337         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54338         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54339         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54340         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54341         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54342         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54343         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54344         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54345         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54346         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54347         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54348         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54349         Use an all-permissive copyright notice, recommended by RMS.
54350
54351 2005-01-18  Bob Proulx  <bob@proulx.com>
54352
54353         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54354         simplify offsetof() macro construct to avoid compile failure with
54355         native HP-UX 11.0 ANSI C compiler.
54356
54357 2005-01-17  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54360         redundant because stpncpy.m4 takes care of it.
54361
54362 2005-01-17  Bruno Haible  <bruno@clisp.org>
54363
54364         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54365
54366 2005-01-17  Bruno Haible  <bruno@clisp.org>
54367
54368         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54369         used.
54370
54371 2005-01-17  Bruno Haible  <bruno@clisp.org>
54372
54373         * lib/fwriteerror.h (fwriteerror): Change specification to include
54374         fclose.
54375         * lib/fwriteerror.c: Include <stdbool.h>.
54376         (fwriteerror): At the end, close the file stream. Record whether
54377         stdout was already closed.
54378
54379 2005-01-17  Bruno Haible  <bruno@clisp.org>
54380
54381         * lib/execute.c (environ): Declare if needed.
54382         * lib/pipe.c (environ): Likewise.
54383         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54384
54385 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54386
54387         * modules/argp: Depend on vsnprintf
54388
54389 2005-01-10  Jim Meyering  <jim@meyering.net>
54390
54391         * modules/closeout (Depends-on): Add atexit.
54392
54393 2005-01-06  Bruno Haible  <bruno@clisp.org>
54394
54395         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54396
54397 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54398
54399         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54400         definitions to be after all include files, to avoid collisions.
54401         Problem reported by Bob Proulx.
54402
54403 2005-01-04  Jim Meyering  <jim@meyering.net>
54404
54405         Changes imported from coreutils.
54406         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54407         as the mkstemp template, use a temporary directory and an
54408         8.3-friendly template to avoid trouble on systems like DJGPP.
54409         Reported by Juan M. Guerrero via Stepan Kasal.
54410         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54411         close. Remove the temporary directory right away, rather than waiting
54412         for configure's at-exit trap code to do it.
54413         Suggestion from Stepan Kasal.
54414
54415 2005-01-01  Simon Josefsson  <jas@extundo.com>
54416
54417         * gnulib-tool: Print #include directives when --import'ing.
54418
54419 2004-12-28  Simon Josefsson  <jas@extundo.com>
54420
54421         * tests/test-base64.c: Include required header files.  Remove
54422         unused variables.
54423
54424 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54425
54426         * modules/error (Depends-on): Remove gettext.
54427
54428 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54429
54430         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54431         not needed.  This removes a dependency on the gettext module.
54432         [defined _LIBC]: Do not include <libintl.h>; not needed.
54433
54434 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54435
54436         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54437         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54438
54439 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54440
54441         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54442         HAVE_DECL_STRTOLD.
54443
54444 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54445
54446         * modules/getdate (Depends-on): Remove alloca-opt.
54447
54448 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54449
54450         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54451
54452 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54453
54454         * lib/argp-parse.c: Include <stddef.h>.
54455         (alignof, alignto): New macros.
54456         (parser_init): Don't assume that void * is aligned sufficiently
54457         for struct option.
54458
54459         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54460         need to extend the stack.
54461         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54462         large.
54463
54464 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54465
54466         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54467
54468 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54469
54470         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54471         (2004-10-24) change.  Apparently this was a false alarm.
54472
54473         * modules/getdate: Depend on alloca-opt, not alloca.
54474
54475 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54476
54477         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54478         Remove now-obsolete comment about AIX.
54479         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54480         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54481         (YYMAXDEPTH): New macro.
54482
54483 2004-12-18  Simon Josefsson  <jas@extundo.com>
54484
54485         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54486
54487 2004-12-18  Bruno Haible  <bruno@clisp.org>
54488
54489         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54490
54491 2004-12-18  Bruno Haible  <bruno@clisp.org>
54492
54493         * lib/fatal-signal.c (fatal_signals): Make non-const.
54494         (init_fatal_signals): New function.
54495         (uninstall_handlers, install_handlers): Ignore signals that were set to
54496         SIG_IGN.
54497         (at_fatal_signal): Call init_fatal_signals.
54498         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54499         SIG_IGN.
54500         Reported by Paul Eggert.
54501
54502 2004-12-18  Bruno Haible  <bruno@clisp.org>
54503
54504         * doc/alloca.texi: New file.
54505         * doc/alloca-opt.texi: New file.
54506
54507 2004-12-17  Jim Meyering  <jim@meyering.net>
54508
54509         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54510         Otherwise, install-sh could exit with improper exit status when
54511         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54512
54513 2004-12-16  Simon Josefsson  <jas@extundo.com>
54514
54515         * tests/test-base64.c: Add license.
54516
54517 2004-12-15  Stepan Kasal  <address@hidden>
54518
54519         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54520
54521 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54522
54523         * modules/getcwd (Files): Add m4/d-ino.m4.
54524         Suggested by Mark D. Baushke.
54525
54526 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54527
54528         * lib/getdate.y (textint): New member "negative".
54529         (time_zone_hhmm): New function.
54530         Expect 14 shift-reduce conflicts, not 13.
54531         (o_colon_minutes): New rule.
54532         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54533         (yylex): Set the "negative" member of signed numbers.
54534
54535 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54536
54537         * doc/getdate.texi (Time of day items, Time zone items):
54538         Describe new formats +00:00, UTC+00:00.
54539
54540 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54541
54542         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54543         spurious "-l"s.  Problem reported by Stepan Kasal.
54544
54545 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54546
54547         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54548         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54549
54550 2004-12-04  Simon Josefsson  <jas@extundo.com>
54551
54552         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54553         Vandoorselaere <yoann@prelude-ids.org>.
54554
54555 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54556
54557         Changes imported from coreutils.
54558         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54559         exist.
54560         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54561
54562 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         Changes imported from coreutils.
54565         * lib/hard-locale.c: Assume <locale.h> exists.
54566         Include "strdup.h".
54567         (GLIBC_VERSION): New macro.
54568         (hard_locale): Assume setlocale exists.
54569         Rewrite to avoid #ifdef.
54570         Use strdup rather than malloc + strcpy.
54571         * lib/human.c: Assume <locale.h> exists.
54572         (human_readable): Assume localeconv exists.
54573
54574 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54575
54576         * modules/hard-locale (Depends-on): Add strdup.
54577
54578 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54579
54580         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54581         convert T2, not T.  (Imported from libc.)
54582
54583 2004-11-30  Simon Josefsson  <jas@extundo.com>
54584
54585         * modules/restrict (License): Change to LGPL.
54586
54587 2004-11-30  Simon Josefsson  <jas@extundo.com>
54588
54589         * m4/restrict.m4: Add copyright and copying conditions.
54590
54591 2004-11-30  Simon Josefsson  <jas@extundo.com>
54592
54593         * m4/base64.m4: New file.
54594
54595 2004-11-30  Simon Josefsson  <jas@extundo.com>
54596
54597         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54598         base64.
54599
54600         * tests/test-base64.c: New file.
54601
54602         * modules/base64: New file.
54603
54604 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54605
54606         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54607         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54608
54609         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54610
54611 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54612
54613         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54614         (__getcwd.c): Don't restore errno; glibc doesn't.
54615         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54616         first, falling back to our code only if its results look suspicious.
54617         Ensure that the resulting buffer is only as large as necessary.
54618
54619         * lib/readutmp.c: Include readutmp.h first.
54620         Include <errno.h>, since readutmp.h no longer does that.
54621         * lib/readutmp.h: Don't include <errno.h>,
54622         <sys/param.h>, <time.h>; not needed to establish interface.
54623         (errno): Remove decl.
54624         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54625         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54626         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54627
54628 2004-11-28  Simon Josefsson  <jas@extundo.com>
54629
54630         * lib/base64.h, base64.c: New file.
54631
54632 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54633
54634         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54635
54636 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54637
54638         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54639         (Depends-on): Remove pathmax, same.  Add mempcpy.
54640         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54641         (Makefile.am): Append getcwd.h to lib_SOURCES.
54642         (Include): Add getcwd.h.
54643         (Maintainer): Change from Jim Meyering to "all, glibc",
54644         since getdate now uses intended-for-glibc code.
54645         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54646         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54647
54648 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54649
54650         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54651         HP's ANSI C compiler.
54652         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54653         Declaring int functions causes warnings on some modern systems and
54654         shouldn't be needed to compile on ancient ones.
54655         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54656         defined.
54657
54658         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54659         with the following changes.
54660         (__set_errno): Parenthesize properly.
54661         Include <stdbool.h>.
54662         (MIN, MAX, MATCHING_INO): New macros.
54663         (__getcwd): Define with prototype, not K&R form.
54664         Use heuristics to allocate default buffer on stack if possible.
54665         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54666         behavior, and to avoid the PATH_MAX limit when computing
54667         ../../../../...
54668         Use MATCHING_INO to compare inode number to file.
54669         Check for arithmetic overflow in size calculations.
54670         Fix bug in reallocation of dot array that caused getcwd to fail
54671         on directories nested deeper than 75.
54672         Be more careful about saving errno on error.
54673         Do not use realloc; use only free+malloc, as this is a bit
54674         more flexible and avoids a needless copy operation.
54675         Do not inspect st_dev and st_ino for symbolic links; POSIX
54676         doesn't specify the latter.
54677         Check for closedir errors.
54678         Avoid needless casts.
54679         Use "#ifdef weak_alias" around weak_alias, to be like other
54680         glibc code.
54681         The following changes to getcwd.c have effect only when used in
54682         gnulib; they have no effect inside glibc proper.
54683         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54684         as alloca isn't used.
54685         (alloca, __alloca): Likewise.
54686         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54687         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54688         unconditionally, as gnulib assumes C89 or better.
54689         Do not include <sys/param.h>.
54690         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54691         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54692         better.
54693         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54694         Include <dirent.h> in a way that is compatible with modern Autoconf.
54695         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54696         New macros, if not already defined.
54697         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54698         Use "_LIBC", not "defined _LIBC", for consistency.
54699         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54700         a mempcpy module.
54701         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54702         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54703         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54704         credit only to Jim Meyering and adjust the copyright dates.
54705         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54706         <stdlib.h>, <unistd.h>, "pathmax.h".
54707         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54708         (INITIAL_BUFFER_SIZE): Remove.
54709         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54710
54711 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54712
54713         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54714         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54715         Use the _ONCE methods, for efficiency.
54716         Check for fcntl.h.  In test program, include <errno.h>
54717         and <fcntl.h> if available.  Remove old K&R cruft from
54718         test program.  Check for common errors in GNU/Linux,
54719         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54720         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54721         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54722         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54723         name accordingly.
54724         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54725         accommodate new getcwd.c.
54726         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54727         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54728         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54729         that's all we need now.
54730
54731 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54732
54733         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54734         argp-parse.c depends on getopt internals, that means we should
54735         always use our getopt, to be on the safe side.
54736         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54737         order not to spoil the result of an eventual previous invocation
54738         of gl_GETOPT_SUBSTITUTE.
54739
54740 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54741
54742         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54743         redefinition warnings. To avoid them, include the defines
54744         in `#if !defined __need_getopt ... #endif'. The only place
54745         where __getopt_argv_const is used is in definitions
54746         of getopt_long and getopt_long_only below, which are as well
54747         protected by `#ifndef __need_getopt'.
54748         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54749         __need_getopt after including <stdio.h> and <unistd.h> These
54750         headers might have defined it.
54751
54752 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54755
54756 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54757
54758         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54759         (futimens): New function, which uses futimes if available.
54760         (futimens, utimens): Support timespec==NULL, with same semantics
54761         as utime and utimens.
54762         * lib/utimens.h (futimens): New decl.
54763
54764 2004-11-23  Jim Meyering  <jim@meyering.net>
54765
54766         * lib/getopt_.h: Remove trailing blanks.
54767
54768 2004-11-23  Jim Meyering  <jim@meyering.net>
54769
54770         * lib/__fpending.c: Add comment.
54771
54772 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54773
54774         * modules/canonicalize (Depends-on): Add xreadlink.
54775         Problem reported by James Youngman.
54776
54777 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54778
54779         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54780         New macros.
54781         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54782         optopt): Use them instead of invoking ## directly; otherwise, the
54783         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54784
54785 2004-11-19  Bruno Haible  <bruno@clisp.org>
54786
54787         * lib/strtok_r.c: Move comments from here...
54788         * lib/strtok_r.h: ... to here.
54789
54790 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54791
54792         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54793         implementations that mishandle size_t overflow.
54794
54795 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54796
54797         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54798         might fail.  Problem reported by Yoann Vandoorselaere.
54799         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54800         implementations that mishandle size_t overflow.
54801
54802 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54803
54804         * modules/canon-host (Depends-on): Add strdup.
54805
54806 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54809
54810 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54811
54812         * lib/canon-host.c: Include "strdup.h".
54813         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54814         Use strdup instead of malloc/strcpy to duplicate strings.
54815
54816         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54817         (human_space_before_unit): New constant.
54818         * lib/human.c (human_readable): Support it.
54819
54820         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54821         (xgetcwd): Set errno correctly when failing.
54822         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54823         the failure is actually due to a PATH_MAX problem.
54824
54825         Further getopt changes to make it more likely that glibc will
54826         buy the changes back.
54827         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54828         (getopt): Use it, so to preserve glibc semantic
54829         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54830         when compiling for libc.
54831         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54832         (getopt_long, getopt_long_only): Use it.
54833
54834         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54835         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54836         (getopt): Argv is now char * const *, as per standard.
54837         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54838         not char *__getopt_argv_const *.
54839         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54840         _getopt_long_only_r): Likewise.
54841         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54842         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54843         _getopt_long_r, _getopt_long_only_r): Likewise.
54844         * lib/getopt_.h (__getopt_argv_const): Remove.
54845         (getopt): Argv is now char * const *, as per standard.
54846
54847         * lib/getdate.y (tORDINAL): New token.
54848         (day, relunit): Allow it for relative times.
54849         (relative_time_table): Use tORDINAL for ordinals.
54850
54851 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54852
54853         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54854         Document that "second" isn't allowed as an ordinal number.
54855
54856 2004-11-16  Jim Meyering  <jim@meyering.net>
54857
54858         * modules/closeout (Depends-on): Add fpending.
54859
54860 2004-11-15  Jim Meyering  <jim@meyering.net>
54861
54862         * lib/closeout.c: Include "__fpending.h" once again.
54863         Include <stdbool.h>.
54864         (close_stdout): Don't fail just because stdout was closed initially,
54865         since some programs don't write to stdout in the normal course of
54866         operation (other than --version and --help), and we don't want this
54867         function to make e.g. `touch file >&-' fail.
54868         But do fail if it was closed and someone has tried to write to it.
54869         E.g., `printf foo >&-' must fail.
54870
54871 2004-11-13  Jim Meyering  <jim@meyering.net>
54872
54873         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54874
54875 2004-11-12  Simon Josefsson  <jas@extundo.com>
54876
54877         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54878         small doc fix is still pending.
54879
54880 2004-11-11  Simon Josefsson  <jas@extundo.com>
54881
54882         * modules/strtok_r: New file.
54883
54884         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54885         strtok_r.
54886
54887 2004-11-11  Simon Josefsson  <jas@extundo.com>
54888
54889         * m4/strtok_r.m4: New file.
54890
54891         * m4/getopt.m4: Replace opterr.
54892
54893 2004-11-11  Simon Josefsson  <jas@extundo.com>
54894
54895         * lib/strtok_r.h, strtok_r.c: New file.
54896
54897 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54898
54899         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54900         of replacing opterr, getopt, etc.  This should handle the
54901         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54902
54903 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54904
54905         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54906         we can stop lying to compilers about the constness of argv when we
54907         are compiled outside glibc.
54908         (getopt, getopt_long, getopt_long_only): Use it.
54909         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54910         _getopt_internal, getopt): Likewise.
54911         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54912         _getopt_long_only_r): Likewise.
54913         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54914         _getopt_long_r, _getopt_long_only_r): Likewise.
54915
54916         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54917         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54918         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54919         the other external symbols.
54920         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54921         declaration, since the above renaming now works around collisions.
54922
54923 2004-11-11  Jim Meyering  <jim@meyering.net>
54924
54925         * lib/linebreak.c: Remove trailing blanks.
54926         * lib/alloca_.h: Likewise.
54927         * lib/acosl.c: Likewise.
54928         * lib/euidaccess.c: Likewise.
54929         * lib/allocsa.h: Likewise.
54930
54931 2004-11-10  Simon Josefsson  <jas@extundo.com>
54932
54933         * m4/getaddrinfo.m4: New file.
54934
54935 2004-11-10  Simon Josefsson  <jas@extundo.com>
54936
54937         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54938
54939 2004-11-10  Simon Josefsson  <jas@extundo.com>
54940
54941         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54942         getaddrinfo.
54943
54944         * modules/getaddrinfo: New file.
54945
54946 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54947
54948         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54949
54950 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54951
54952         * lib/mktime.c (SHR): New macro, which is a portable
54953         substitute for >> that should work even on Crays.
54954         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54955         Problem reported by Mark D. Baushke in
54956         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54957         * lib/getdate.y (SHR): Likewise.
54958         (tm_diff): Use it.
54959         * lib/strftime.c (SHR): Likewise.
54960         (tm_diff): Use it.
54961         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54962         quote_these_too, so that right shifts are well defined.  All uses
54963         changed.
54964
54965 2004-11-10  Jim Meyering  <jim@meyering.net>
54966
54967         Ensure that no close failure goes unreported.
54968         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54969         return early when it seems there's nothing to flush.
54970         Don't include __fpending.h.
54971
54972 2004-11-10  Jim Meyering  <jim@meyering.net>
54973
54974         * modules/closeout (Depends-on): Remove fpending.
54975
54976 2004-11-10  Jim Meyering  <jim@meyering.net>
54977
54978         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54979
54980 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54981
54982         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54983         gl_FUNC_STRFTIME.
54984         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54985         and AC_REQUIRE when possible, to avoid duplicate checks.
54986         Check for <wchar.h>.
54987
54988 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54989
54990         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54991
54992 2004-11-09  Bruno Haible  <bruno@clisp.org>
54993
54994         * m4/sockpfaf.m4: New file.
54995
54996 2004-11-05  Bruno Haible  <bruno@clisp.org>
54997
54998         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54999         Reported by Mark D. Baushke <mdb@cvshome.org>.
55000
55001 2004-11-04  Bruno Haible  <bruno@clisp.org>
55002
55003         2004-09-11  Bruno Haible  <bruno@clisp.org>
55004                 * allocsa.valgrind: New file.
55005         2004-02-06  Bruno Haible  <bruno@clisp.org>
55006                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
55007                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
55008                 Reported by Christopher Seip <chris.seip@hp.com>.
55009
55010 2004-11-04  Bruno Haible  <bruno@clisp.org>
55011
55012         * modules/allocsa (Files): Add lib/allocsa.valgrind.
55013         (Makefile.am): Distribute it.
55014
55015 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55016
55017         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
55018         with errno == ERANGE if the buffer is too small.
55019         Problem reported by Mark D. Baushke.
55020
55021 2004-11-03  Albert Chin  <china@thewrittenword.com>
55022             Paul Eggert  <eggert@cs.ucla.edu>
55023
55024         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
55025         equivalent, substitute $ac_type for equivalent type rather than
55026         blindly using uint32_t *always* which won't work if uint32_t is not
55027         available.  Define _UINT32_T to work around typedef of uint32_t if
55028         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
55029         2.5.1.
55030
55031 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55032
55033         * m4/jm-macros.m4: Sync from coreutils.
55034         (gl_MACROS): Check for mbrlen, for pathchk.
55035         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
55036
55037 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55038
55039         * lib/xreadlink.c (MAXSIZE): New macro.
55040         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
55041         size does not exceed MAXSIZE.  Avoid cast.
55042         As suggested by Mark D. Baushke in
55043         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
55044         if readlink fails with buffer size just under MAXSIZE, try again
55045         with MAXSIZE.
55046
55047 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55048
55049         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
55050
55051 2004-11-02  Derek R. Price  <derek@ximbiot.com>
55052         and  Paul Eggert  <eggert@cs.ucla.edu>
55053
55054         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
55055         (get_date): Overparenthesize to avoid GCC warning.
55056
55057 2004-11-02  Bruno Haible  <bruno@clisp.org>
55058
55059         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
55060         returns void.
55061
55062 2004-11-02  Bruno Haible  <bruno@clisp.org>
55063
55064         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
55065         function returns void.
55066
55067 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55068
55069         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
55070         fflush_unlocked, flockfile, funlockfile, funlockfile,
55071         fputs_unlocked, putc_unlocked.
55072
55073 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55074
55075         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55076         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
55077         already declared.
55078
55079 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55080
55081         * modules/getdate (Files): Add doc/getdate.texi.
55082         (Depends-on): Add setenv, xalloc.
55083
55084 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55085
55086         * lib/getdate.y: Add support for TZ="foo" within a date string.
55087         Fix some bugs near time_t boundaries.  Reject dates with
55088         out-of-range components, e.g., "Sept 31".
55089         Include <stdlib.h>, "setenv.h", "xalloc.h".
55090         (ISDIGIT_LOCALE): Remove; unused.
55091         Note that the TZ and time functions used here are not reentrant.
55092         (mktime_ok, get_tz): New functions.
55093         (TZBUFSIZE): New constant.
55094         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
55095         This requires that we sometimes generate our own TZ="XXX..." setting.
55096
55097 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55098
55099         * doc/getdate.texi: New file, from coreutils with modifications for
55100         the new TZ parsing.
55101
55102 2004-10-27  Derek R. Price  <derek@ximbiot.com>
55103
55104         * lib/mktime.c (not_equal_tm): Remove redundant check.
55105
55106 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55107
55108         * modules/regex (lib_SOURCES): Add regex.c.
55109         Reported by James Youngman in
55110         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
55111
55112 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55113
55114         * lib/getdate.y: Use Bison 1.875 features, and some minor
55115         code cleanups.  This change does not affect semantics.
55116         Don't include <stdlib.h>; no longer needed.
55117         Don't include unlocked-io.h; only the "#if TEST" code uses
55118         stdio, and performance isn't crucial there.
55119         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
55120         Bison 1.875 features as described below.
55121         All uses of "PC." replaced by "pc->".
55122         (YYSTYPE): Add a forward declaration.
55123         (yylex, yyerror): Use full prototypes in forward decls.
55124         Use "%pure-parser" rather than obsolescent "%pure_parser".
55125         Use %parse-param and %lex-param instead of obsolescent
55126         YYPARSE_PARAM and YYLEX_PARAM.
55127         (meridian_table, month_and_day_table, time_units_table,
55128         relative_time_table, time_zone_table, military_table,
55129         lookup_zone, lookup_word, get_date):
55130         Use NULL instead of 0 where appropriate.
55131         (to_hour): Avoid abort (), to avoid a dependency on
55132         stdlib.h.
55133         (yyerror, yylex): Now accepts parser_control * arg.
55134         (main) [TEST]: Use '\0' rather than 0 for char.
55135
55136 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55137
55138         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
55139
55140 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55141
55142         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
55143         It's now the caller's responsibility to handle the case where
55144         !HAVE_GETPAGESIZE && !defined getpagesize.
55145
55146         * lib/mktime.c (leapyear): Arg is long int, not int.
55147
55148 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
55149
55150         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
55151
55152 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55153
55154         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
55155         missing.  Problem reported by James Youngman.
55156
55157 2004-10-16  Simon Josefsson  <jas@extundo.com>
55158
55159         * gnulib-tool: Fix comments.  Fix parse problem.
55160         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
55161
55162 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
55163
55164         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
55165         implementation of getopt_long.  Problem reported by Alexander Taler in:
55166         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
55167
55168 2004-10-15  Bruno Haible  <bruno@clisp.org>
55169
55170         * gnulib-tool: Untabify. Initialize supplied_libname.
55171         (func_usage): More homogenous output.
55172         (func_modules_transitive_closure, func_modules_to_filelist,
55173         func_emit_lib_Makefile_am): New functions.
55174         (func_import): New function, extracted from big case statement. Use
55175         func_get_license, func_modules_transitive_closure,
55176         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
55177         opt_lgpl. Don't use test -a, as it's not portable.
55178         (func_create_testdir): Use func_modules_transitive_closure,
55179         func_modules_to_filelist, func_emit_lib_Makefile_am.
55180
55181 2004-10-15  Bruno Haible  <bruno@clisp.org>
55182
55183         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
55184
55185 2004-10-15  Bruno Haible  <bruno@clisp.org>
55186
55187         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
55188         the portions belonging to each module.
55189         Suggested by Derek Robert Price <derek@ximbiot.com>.
55190
55191 2004-10-12  Simon Josefsson  <jas@extundo.com>
55192
55193         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55194         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
55195         to real functions.
55196
55197 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55198
55199         * modules/vsnprintf: New file.
55200
55201 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55202
55203         * m4/vsnprintf.m4: New file.
55204
55205 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55206
55207         * lib/vsnprintf.h: New file.
55208         * lib/vsnprintf.c: New file.
55209
55210 2004-10-11  Bruno Haible  <bruno@clisp.org>
55211
55212         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
55213         vsnprintf.
55214
55215 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55216
55217         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
55218
55219 2004-10-07  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
55222         fits into the provided buffer.
55223
55224 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55225
55226         * lib/diacrit.c, diacrit.h: Add GPL notice.
55227
55228         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
55229         notice.
55230         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
55231         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
55232         This avoids a potential constant-folding bug.
55233
55234 2004-10-05  Bruno Haible  <bruno@clisp.org>
55235
55236         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
55237         for the declaration of strsep.
55238
55239 2004-10-05  Bruno Haible  <bruno@clisp.org>
55240
55241         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
55242
55243 2004-10-04  Simon Josefsson  <jas@extundo.com>
55244
55245         * modules/memmem: New file.
55246         * tests/test-memmem.c: New file.
55247         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
55248
55249 2004-10-04  Simon Josefsson  <jas@extundo.com>
55250
55251         * m4/memmem.m4: New file.
55252
55253 2004-10-04  Simon Josefsson  <jas@extundo.com>
55254
55255         * lib/memmem.h: New file.
55256         * lib/memmem.c: New file, taken from glibc.
55257
55258 2004-10-04  Simon Josefsson  <jas@extundo.com>
55259
55260         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
55261         '#ifdef USE_UNLOCKED_IO'.
55262
55263 2004-10-04  Simon Josefsson  <jas@extundo.com>
55264
55265         * config/srclist.txt: Add memmem from glibc.
55266
55267 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55268
55269         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
55270
55271         * modules/argmatch, modules/argp, modules/closeout, modules/error,
55272         modules/exclude, modules/getdate, modules/getline,
55273         modules/getndelim2, modules/getpass, modules/getpass-gnu,
55274         modules/getusershell, modules/linebuffer, modules/md5,
55275         modules/mountlist, modules/posixtm, modules/readtokens,
55276         modules/readutmp, modules/regex, modules/sha1,
55277         modules/version-etc, modules/yesno:
55278         Remove dependency on unlocked-io.
55279
55280 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55281
55282         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
55283
55284         * m4/unlocked-io.m4: Add copyright notice.
55285         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
55286
55287 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55288
55289         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
55290         * lib/xmalloc.c (xmemdup): Likewise.
55291         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
55292         XFREE): Remove these long-obsolescent macros.
55293         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
55294         * lib/xstrdup.c: Remove.
55295
55296         * lib/regex.c (re_comp): Cast gettext return value to char *,
55297         Problem reported by Martin Neitzel via Mark D. Baushke.
55298
55299 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55300
55301         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
55302         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
55303         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
55304         regex.c, sha1.c, version-etc.c, yesno.c:
55305         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
55306         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
55307         the includer's responsibility.
55308
55309         Sync from coreutils.
55310
55311         * lib/modechange.c (mode_compile): Don't decrement a pointer that
55312         points to the start of a string, as the C Standard says the
55313         resulting behavior is undefined.
55314
55315         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
55316         simple -> simple_backups, numbered_existing ->
55317         numbered_existing_backups, numbered -> numbered_backups
55318         to avoid shadowing problems.  All uses changed.
55319         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
55320         * lib/backupfile.c (check_extension, numbered_backup):
55321         Rename locals to avoid shadowing 'basename'.
55322         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
55323         once.
55324
55325         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
55326         * lib/.cvsignore: Add getopt.h.
55327
55328 2004-10-04  Bruno Haible  <bruno@clisp.org>
55329
55330         * modules/README: New file.
55331         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
55332         not a module.
55333
55334 2004-10-02  Jim Meyering  <jim@meyering.net>
55335
55336         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55337
55338 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55339
55340         * modules/strsep: New file.
55341
55342 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55343
55344         * m4/strsep.m4: New file.
55345
55346 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55347
55348         * lib/strsep.h: New file.
55349         * lib/strsep.c: New file.
55350
55351 2004-10-01  Simon Josefsson  <jas@extundo.com>
55352
55353         * lib/snprintf.c (snprintf): Handle size==0.
55354
55355 2004-10-01  Simon Josefsson  <jas@extundo.com>
55356             Bruno Haible  <bruno@clisp.org>
55357
55358         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55359         (snprintf): Declare 'args'.
55360
55361 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55362
55363         * lib/snprintf.c: Remove comments as to why each header is needed.
55364
55365 2004-10-01  Bruno Haible  <bruno@clisp.org>
55366
55367         * MODULES.html.sh: Add strsep.
55368
55369 2004-09-30  Simon Josefsson  <jas@extundo.com>
55370
55371         * modules/snprintf: New file.
55372
55373 2004-09-30  Simon Josefsson  <jas@extundo.com>
55374
55375         * m4/snprintf.m4: New file.
55376
55377 2004-09-30  Simon Josefsson  <jas@extundo.com>
55378
55379         * lib/snprintf.h, lib/snprintf.c: New files.
55380
55381 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55382
55383         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55384         (hol_entry_help): Never translate an empty string.
55385         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55386         * lib/argp.h (OPTION_NO_TRANS): New option.
55387
55388 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55389
55390         * modules/argp (Maintainer): Replace Simon Josefsson
55391         by Sergey Poznyakoff.
55392
55393 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55394
55395         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55396         changes merged back into glibc.
55397
55398 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55399
55400         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55401
55402 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55403
55404         * lib/xvasprintf.c: Include xalloc.h.
55405         (xvasprintf): Use xalloc_die, not xmalloc_die.
55406
55407 2004-09-29  Bruno Haible  <bruno@clisp.org>
55408
55409         * modules/alloca-opt: New file, derived from modules/alloca.
55410         * modules/allocsa: Depend on alloca-opt instead of alloca.
55411         * modules/setenv: Likewise.
55412         * modules/vasnprintf: Likewise.
55413         * MODULES.html.sh: Add alloca-opt.
55414
55415 2004-09-28  Simon Josefsson  <jas@extundo.com>
55416
55417         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55418         LGPL, and to replace license template from GPL to LGPL.
55419
55420 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55421
55422         * modules/dummy: Change license to LGPL.
55423
55424 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55425
55426         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55427
55428 2004-09-24  Simon Josefsson  <jas@extundo.com>
55429
55430         * modules/minmax (License): Change from GPL to LGPL.
55431
55432 2004-09-23  Simon Josefsson  <jas@extundo.com>
55433
55434         * gnulib-tool (--import): Typo.
55435
55436 2004-09-23  Simon Josefsson  <jas@extundo.com>
55437
55438         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55439
55440 2004-09-22  Bruno Haible  <bruno@clisp.org>
55441
55442         * modules/*: Add 'License' field.
55443         * gnulib-tool: Accept --extract-license option.
55444         (func_get_license): New function.
55445
55446 2004-09-21  Bruno Haible  <bruno@clisp.org>
55447
55448         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55449         Reported by Simon Josefsson.
55450
55451 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55452
55453         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55454         gl_AC_TYPE_LONG_LONG.
55455
55456 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55457
55458         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55459
55460 2004-09-18  Simon Josefsson  <jas@extundo.com>
55461         and  Paul Eggert  <eggert@cs.ucla.edu>
55462
55463         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55464         calls with autoreconf.  Define GL_LIB.
55465
55466 2004-09-14  Karl Berry  <karl@gnu.org>
55467
55468         * config/srclist.txt: unsync setenv.c, sigh.
55469
55470 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55473         Problem reported by Bruno Haible in:
55474         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55475
55476 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55477
55478         * config/srclist.txt: Comment out argp-pvh.c.
55479
55480 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55481
55482         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55483         in case some system header has #define'd it.  Problem reported by
55484         Soeren D. Schulze in
55485         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55486
55487 2004-09-09  Karl Berry  <karl@gnu.org>
55488
55489         * regex.[ch]: delete from the root.  These were supposed to be
55490                 synced with emacs cvs, but this has not happened for about
55491                 a year, and anyway nothing else uses emacs regex.[ch].
55492                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55493                 lib/regex[.ch] is untouched.
55494
55495 2004-09-09  Bruno Haible  <bruno@clisp.org>
55496
55497         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55498
55499 2004-09-09  Bruno Haible  <bruno@clisp.org>
55500
55501         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55502         modifications.
55503         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55504
55505 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55506
55507         * modules/xvasprintf: New file.
55508         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55509
55510 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55511
55512         * lib/xvasprintf.h: New file.
55513         * lib/xvasprintf.c: New file.
55514         * lib/xasprintf.c: New file.
55515
55516 2004-09-08  Bruno Haible  <bruno@clisp.org>
55517
55518         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55519
55520 2004-09-08  Bruno Haible  <bruno@clisp.org>
55521
55522         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55523         length is > INT_MAX.
55524         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55525         more.
55526
55527 2004-09-08  Bruno Haible  <bruno@clisp.org>
55528
55529         * lib/stdint_.h: New file, taken from GNU clisp.
55530
55531 2004-09-08  Bruno Haible  <bruno@clisp.org>
55532             Oskar Liljeblad  <oskar@osk.mine.nu>
55533
55534         * modules/stdint: New file.
55535         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55536
55537 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55538
55539         Import from coreutils.
55540         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55541         strings on unbounded length.  alloca's performance benefits aren't
55542         that important here.
55543         (V_STRDUP): Remove.
55544         (parse_with_separator): New function, with most of the internals
55545         of the old parse_user_spec.  Allow user to omit both user and group,
55546         for compatibility with FreeBSD.
55547         Clone only the user name, not the entire spec.
55548         Do not set *uid, *gid unless entirely successful.
55549         Avoid memory leak in some failing cases.
55550         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55551         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55552         (parse_user_spec): Rewrite to use parse_with_separator.
55553
55554 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55555
55556         * modules/userspec: Don't depend on alloca.
55557
55558 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55559
55560         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55561
55562 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55563
55564         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55565         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55566         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55567
55568 2004-08-16  Simon Josefsson  <jas@extundo.com>
55569
55570         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55571         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55572         Add --dry-run for --import.
55573         Let user provided command line parameters override configure.ac
55574         settings.
55575
55576 2004-08-12  Simon Josefsson  <jas@extundo.com>
55577
55578         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55579         as discussed with Paul Eggert in threads rooted at
55580         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55581         and
55582         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55583         Before, the test was empty, and relied on ELIDE_CODE in source
55584         code.)
55585         (gl_PREREQ_GETOPT): New macro.
55586         (gl_GETOPT): Use them.
55587
55588 2004-08-12  Simon Josefsson  <jas@extundo.com>
55589
55590         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55591         * lib/getopt_.h: Renamed from getopt.h.
55592
55593 2004-08-12  Simon Josefsson  <jas@extundo.com>
55594
55595         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55596         Change default library name from libfoo to libgnu.
55597         Now, if you have a configure.ac that says:
55598                 gl_SOURCE_BASE(gl)
55599                 gl_M4_BASE(gl/m4)
55600                 gl_MODULES(error getopt etcetera)
55601                 gl_INIT
55602         you can import all you need by running:
55603                 ../gnulib/gnulib-tool --import
55604
55605         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55606         (Makefile.am): Rewrite, use logic from argz.
55607         (Include): Use <getopt.h> instead of "getopt.h".
55608
55609 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55610
55611         * modules/argp (Files): Add m4/unlocked-io.m4.
55612         (Depends-on): Add extensions.
55613
55614 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55615
55616         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55617         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55618         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55619         Check for program_invocation_name, program_invocation_short_name,
55620         flockfile, funlockfile, features.h, _getopt_long_only_r.
55621
55622 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55623
55624         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55625         its complicated substitute.
55626         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55627         and program_invocation_name.
55628         (__argp_basename) [!_LIBC]: Remove; the only use was
55629         replaced by its body.
55630         (__argp_short_program_name): Change condition from
55631         !defined __argp_short_program_name to
55632         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55633         to match argp-namefrob.h.
55634         (__argp_failure): Don't assume strerror_r returns char *.
55635         * lib/argp-parse.c (N_): Define unconditionally.
55636         (argp_default_options): Fill out initializers with 0 to avoid
55637         gcc warnings.
55638
55639 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55640
55641         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55642         getopt1.c.
55643
55644 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55645
55646         Merge from coreutils.
55647
55648         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55649
55650         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55651         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55652
55653 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55654
55655         Merge from coreutils.
55656
55657         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55658         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55659         for Reliant Unix 5.43.
55660
55661         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55662         (union fooround): Use uintmax_t, not long int.
55663         The rest is a merge from libc:
55664         [defined _LIBC]: Include <shlib-compat.h>.
55665         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55666
55667         * lib/settime.c (settime): Recode to avoid warning with
55668         Sun Forte C 6U2.
55669
55670         * lib/strverscmp.c: Convert to UTF-8.
55671
55672 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55673
55674         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55675         m4/uintmax_t.m4.
55676
55677 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55678
55679         * modules/xalloc-die: New file.
55680         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55681
55682         * modules/md5 (Files): Add m4/uint32_t.m4.
55683         * modules/sha1: Renamed from modules/sha.
55684         (Files):
55685         Rename lib/sha.h to lib/sha1.h.
55686         Rename lib/sha.c to lib/sha1.c.
55687         Rename m4/sha.m4 to m4/sha1.m4.
55688         (lib_SOURCES): Likewise.
55689         (configure.ac): Rename gl_SHA to gl_SHA1.
55690         (Include): sha.h -> sha1.h.
55691
55692 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55693
55694         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55695         * m4/sha1.m4: Renamed from sha.m4.
55696         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55697
55698 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55699
55700         * lib/obstack.h (obstack_empty_p):
55701         Don't assume that chunk->contents is suitably aligned.
55702         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55703         Likewise. Problem reported by Benno in
55704         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55705
55706         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55707         readable.  This could be improved further but it'd take some work.
55708
55709 2004-08-08  Simon Josefsson  <jas@extundo.com>
55710
55711         * modules/xgethostname (Depends-on): Remove exit and error (not
55712         used).
55713
55714         * modules/getpass-gnu: Add getpass.h.
55715         (Depends-on): Add stdbool.
55716         * modules/getpass: Add getpass.h.
55717
55718 2004-08-08  Simon Josefsson  <jas@extundo.com>
55719
55720         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55721         Check getpass declaration.
55722
55723 2004-08-08  Simon Josefsson  <jas@extundo.com>
55724
55725         * lib/xgethostname.c: Don't include error.h (not used).
55726
55727         * lib/getpass.h: Add.
55728         * lib/getpass.c: Include getpass.h first.
55729
55730 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55731
55732         * lib/xalloc-die.c: New file.
55733         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55734         All uses removed.
55735         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55736         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55737         xalloc-die.c.
55738         (_, N_, xalloc_die): Move to xalloc-die.c.
55739         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55740         so that we needn't mess with xalloc_msg_memory_exhausted.
55741
55742         * lib/sha1.h: Renamed from sha.h.
55743         (SHA1_H): Renamed from _SHA_H.
55744         (sha1_ctx): Renamed from sha_ctx.
55745         (sha1_init_ctx): Renamed from sha_init_ctx.
55746         (sha1_process_block): Renamed from sha_process_block.
55747         (sha1_process_bytes): Renamed from sha_process_bytes.
55748         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55749         (sha1_read_ctx): Renamed from sha_read_ctx.
55750         (sha1_stream): Renamed from sha_stream.
55751         (sha1_buffer): Renamed from sha_buffer.
55752         * lib/sha1.c: Likewise; renamed from sha.c.
55753         Do not include <sys/types.h>.
55754         Include <stddef.h> rather than <stdlib.h>.
55755
55756 2004-08-08  Bruno Haible  <bruno@clisp.org>
55757
55758         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55759         FILESYSTEM_PREFIX_LEN.
55760         * lib/progreloc.c: Likewise.
55761         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55762
55763 2004-08-06  Simon Josefsson  <jas@extundo.com>
55764
55765         * modules/progname (Depends-on): Don't depend on stdbool.
55766
55767 2004-08-06  Simon Josefsson  <jas@extundo.com>
55768
55769         * modules/getsubopt: New file.
55770         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55771         getsubopt.
55772
55773 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55774
55775         More merge from coreutils.
55776
55777         * m4/utimens.m4, m4/utimecmp.m4: New files.
55778         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55779         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55780         prereq.m4, sha.m4: Import changes from coreutils.
55781
55782 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55783
55784         More merge from coreutils.
55785         * modules/raise, modules/readtokens0, modules/utimens:
55786         * modules/utimecmp, module/xnanosleep: New files.
55787         * modules/strftime: Add lib/strftime.h.
55788         Change include from <time.h> to "strftime.h".
55789         * modules/yesno: Add lib/yesno.h.
55790         * modules/backupfile: Remove lib/addext.c.
55791         * modules/euidaccess: Add stat-macros.h.
55792         * modules/canonicalize, modules/euidaccess,
55793         modules/filemode, modules/lchown, modules/makepath,
55794         modules/rmdir, modules/stat: Likewise.
55795
55796 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55797
55798         Merge from tar.
55799         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55800         SIZE_MAX is a valid preprocessor constant.
55801         (__argp_basename): Change from "#ifndef _LIBC"
55802         to "#ifndef __argp_short_program_name", so that
55803         we don't compile these functions for tar.
55804
55805         More merges from coreutils.
55806         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55807         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55808         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55809         * lib/addext.c: Remove; no longer needed.
55810         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55811         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55812         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55813         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55814         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55815         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55816         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55817         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55818         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55819         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55820         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55821         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55822         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55823         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55824         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55825         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55826         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55827         Import changes from coreutils.
55828
55829 2004-08-05  Simon Josefsson  <jas@extundo.com>
55830
55831         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55832
55833 2004-08-05  Simon Josefsson  <jas@extundo.com>
55834
55835         * m4/getsubopt.m4: New file.
55836
55837 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55838
55839         Merge from coreutils.
55840
55841         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55842         * m4/getcwd-path-max.m4: New files.
55843
55844         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55845         FILESYSTEM_PREFIX_LEN ->
55846         FILE_SYSTEM_PREFIX_LEN.
55847         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55848         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55849         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55850         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55851
55852         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55853         prerequisite modules now handle the DOS stuff.
55854         Don't check for unistd.h.
55855
55856 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55857
55858         Merge from coreutils.
55859
55860         * lib/.gdb-history: Remove; this doesn't belong here.
55861
55862         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55863         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55864         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55865         * lib/getcwd.c: New files.
55866
55867         * lib/dirname.h: Include <stdbool.h>.
55868         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55869         for consistency with POSIX terminology.  All uses changed.
55870         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55871         (strip_trailing_slashes): Use bool for booleans.
55872         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55873
55874         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55875         sometimes returns a positive errno value even when it succeeds.
55876         (print_errno_message) [!LIBC]: Fall back on strerror if
55877         __strerror_r fails.
55878
55879         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55880         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55881         (longest_relative_suffix): New function.
55882         (path_concat): Use it.  Assume first argument is not NULL.
55883         Port to DOS.  Omit redundant separators.
55884         Report an error instead of returning NULL.
55885         Use mempcpy instead of memcpy.
55886         (xpath_concat): Remove: not declared or used.
55887
55888         * lib/same.h: Include <stdbool.h>
55889         (same_name): Return bool, not int.
55890         * lib/same.c (same_name): Likewise.
55891         (errno): Don't declare; we assume C89 or better now.
55892
55893         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55894         if not already defined.
55895
55896         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55897         * lib/dup-safer.c (errno): Likewise.
55898
55899 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55900
55901         Merge from coreutils.
55902         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55903         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55904         * modules/path-concat: Don't depend on strdup.
55905
55906 2004-08-03  Simon Josefsson  <jas@extundo.com>
55907
55908         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55909         * lib/progname.h: Don't include stdbool.h.
55910
55911 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55912
55913         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55914         * MODULES.html.sh (func_all_modules): Remove fatal.
55915
55916 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55917
55918         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55919
55920 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55921
55922         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55923         working.
55924
55925 2004-08-02  Simon Josefsson  <jas@extundo.com>
55926
55927         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55928         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55929         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55930
55931 2004-08-01  Simon Josefsson  <jas@extundo.com>
55932
55933         * lib/xgetdomainname.c: Include stdlib.h, for free().
55934
55935 2004-07-19  Bruno Haible  <bruno@clisp.org>
55936
55937         * MODULES.html.sh (func_all_modules): Add dummy.
55938
55939 2004-07-16  Simon Josefsson  <jas@extundo.com>
55940
55941         * modules/dummy: New file.
55942
55943 2004-07-16  Simon Josefsson  <jas@extundo.com>
55944
55945         * lib/dummy.c: New file.
55946
55947 2004-07-16  Bruno Haible  <bruno@clisp.org>
55948
55949         * lib/backupfile.h: Add extern "C" for C++.
55950         * lib/closeout.h: Likewise.
55951         * lib/copy-file.h: Likewise.
55952         * lib/findprog.h: Likewise.
55953         * lib/full-write.h: Likewise.
55954         * lib/pathname.h: Likewise.
55955         * lib/progname.h: Likewise.
55956         * lib/stpcpy.h: Likewise.
55957         * lib/stpncpy.h: Likewise.
55958         * lib/strcase.h: Likewise.
55959         * lib/strstr.h: Likewise.
55960         * lib/xalloc.h: Likewise.
55961
55962         * lib/mbswidth.h: Add extern "C" for C++.
55963         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55964
55965 2004-07-13  Robert Millan  <robertmh@gnu.org>
55966
55967         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55968
55969 2004-07-09  Simon Josefsson  <jas@extundo.com>
55970
55971         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55972         failed without this.)
55973
55974 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55975
55976         * modules/chown (Files): Add lib/fchown-stub.c, since
55977         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55978
55979 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55980
55981         * lib/fchown-stub.c: New file.
55982
55983 2004-06-24  Jim Meyering  <jim@meyering.net>
55984
55985         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55986
55987 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55988
55989         * modules/argz: Omit "#include".
55990
55991         * MODULES.html.sh (func_all_modules): Add calloc, to match
55992         2004-06-01 addition of calloc module.
55993
55994 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55995
55996         * m4/argz.m4: New file, which is autoupdated from libtool.
55997
55998 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55999
56000         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
56001         libtool.
56002
56003 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
56004
56005         * config/srclist-update: Don't insist on "USA." before the
56006         close-comment, as libtool omits the period and puts the */ on a
56007         separate line.
56008         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
56009         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
56010
56011 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
56012
56013         * modules/argz: New file.
56014         * MODULES.html.sh (func_all_modules): Add argz.
56015
56016 2004-06-12  Jim Meyering  <jim@meyering.net>
56017         and  Paul Eggert  <eggert@cs.ucla.edu>
56018
56019         * modules/hash (Files): Add lib/xalloc.h.
56020         * modules/pipe (Depends-on): Add wait-process.
56021         * modules/stat (Depends-on): Add xalloc.
56022         * modules/userspec (Files): Add lib/userspec.h.
56023         * modules/xstrto
56024
56025         Upgrade from gettext-0.13.
56026         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
56027         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
56028         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
56029
56030 2004-06-10  Jim Meyering  <jim@meyering.net>
56031
56032         * lib/calloc.c: New file.
56033
56034 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56035
56036         * lib/getdate.y (yylex): Allow space between sign and number.
56037         Problem reported by Dan Jacobson.
56038
56039 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
56040
56041         Merge from coreutils CVS.
56042
56043         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
56044         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
56045         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
56046         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
56047         xstrtol.m4: Fix copyright date and/or serial number.
56048
56049         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
56050         See if we need an fchown replacement.
56051         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
56052         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
56053         and use the replacement function if we detect either defect.
56054
56055         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
56056         gl_UTIMECMP.
56057
56058 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
56059         and  Jim Meyering  <jim@meyering.net>
56060
56061         Merge from coreutils CVS.
56062
56063         * lib/stat-macros.h: New file, with contents from file-type.h
56064         and coreutils' system.h.
56065         * lib/file-type.c: Include "stat-macros.h".
56066         * lib/file-type.h (file_type): Move all macro definitions to new file,
56067         stat-macros.h.
56068
56069         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
56070         Wrap old code with this conditional.
56071         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
56072         function that does not dereference symlinks.
56073         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
56074
56075         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
56076         dependency problems.
56077         (xreadlink): Accept new arg SIZE, for efficiency.
56078         All decls and uses changed.
56079         * lib/xreadlink.h: Include <stddef.h>, for size_t.
56080
56081         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
56082         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
56083
56084         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
56085         sysexits.h.
56086
56087 2004-06-01  Jim Meyering  <jim@meyering.net>
56088
56089         * m4/calloc.m4: New file.
56090
56091 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
56092
56093         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
56094         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
56095         Also, fix a typo in a diagnostic.
56096
56097 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
56098
56099         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
56100         or AC_FUNC_REALLOC.
56101
56102 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
56103
56104         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
56105         macros to be defined.
56106         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
56107         the allocator returns NULL because the requested size is zero.
56108
56109 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56110
56111         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
56112         var.  Add comment explaining why libc still defines it.  This
56113         merges the following patch from glibc:
56114         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
56115
56116 2004-05-20  Andreas Schwab  <schwab@suse.de>
56117
56118         * m4/free.m4: Replace free if it not known to work, not the other
56119         way round.
56120
56121 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56122
56123         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
56124         present in glibc since revision 1.1 of this file.
56125         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
56126         obstack_alignment_mask, obstack_alloc, obstack_base,
56127         obstack_blank, obstack_blank_fast, obstack_chunk_size,
56128         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
56129         obstack_grow0, obstack_init, obstack_int_grow,
56130         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
56131         obstack_next_free, obstack_object_size, obstack_ptr_grow,
56132         obstack_ptr_grow_fast, obstack_room): Remove declarations of
56133         nonexistent functions.
56134
56135 2004-05-18  Karl Berry  <karl@gnu.org>
56136
56137         * config/srclist.txt: break link for vasnprintf.c.
56138
56139 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56140
56141         Port obstack to the AS/400, where pointers are 16 bytes wide and
56142         you cannot cast an integer to a valid pointer.  This patch is
56143         currently waiting to be integrated into glibc; see
56144         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
56145
56146         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
56147         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
56148         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
56149         (struct obstack): temp member is now a union of a pointer and
56150         an integer, instead of an integer.  All integer uses changed.
56151         This does not affect the physical layout of struct obstack,
56152         except on hosts (like the AS/400) where the size or alignment of
56153         void * is greater than that of ptrdiff_t.
56154         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
56155         __STDC__)]: Store temporary in pointer member of union, not
56156         integer member.
56157         * lib/obstack.c: Include <stddef.h>, for offsetof.
56158         (struct fooalign): Remove; it doesn't need a name.
56159         (union fooround): Change double to long double, and add void *.
56160         (DEFAULT_ALIGNMENT): Use offsetof to compute.
56161         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
56162         not a macro.  Hence the values are always int; so remove all
56163         casts-to-int in uses.
56164
56165 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56166
56167         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
56168         we can get this patch merged into glibc.
56169
56170 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56171             Paul Eggert  <eggert@cs.ucla.edu>
56172
56173         * m4/argp: Depend on alloca.
56174
56175 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56176             Paul Eggert  <eggert@cs.ucla.edu>
56177
56178         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
56179         freecoding.
56180
56181 2004-05-17  Bruno Haible  <bruno@clisp.org>
56182
56183         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
56184         precision that consists of a '.' followed by an empty digit string.
56185         Patch by Tor Lillqvist <tml@iki.fi>.
56186
56187 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56188
56189         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
56190         for backward compatibility with older code.  We need our own
56191         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
56192         it under some other name, and our alloca.h will define it.
56193
56194 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56195             Derek Price  <derek@ximbiot.com>
56196
56197         * lib/alloca.c: Include <alloca.h>, to get our interface.
56198         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
56199         include <alloca.h> first.  Use C89 prototype for alloca; this
56200         requires including <stddef.h> for size_t.  Use extern "C" if C++.
56201         Use #elif for simplicity, since we can assume C89 now.
56202         Don't try to source the system alloca.h since it will not be found
56203         and to prevent recursively including its replacement.
56204         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
56205         * lib/regex.c: Likewise.
56206
56207 2004-05-16  Derek Price  <derek@ximbiot.com>
56208             Paul Eggert  <eggert@cs.ucla.edu>
56209
56210         getline cleanup.  This changes the getndelim2 API: both order of
56211         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
56212         no delimiter).
56213
56214         * lib/getline.c: Don't include stddef.h or stdio.h, since our
56215         interface does that.
56216         (getline): Always use getdelim, so that we don't have two
56217         copies of this code.
56218         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
56219         if available.
56220         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
56221         (GETNDELIM2_MAXIMUM): New macro.
56222         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
56223         instead of the old practice of delim2==0.  All callers changed.
56224         Return -1 on overflow, instead of returning junk.
56225         Do not set *linesize unless allocation succeeds.
56226         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
56227         that we include sys/types.h.
56228         * lib/getnline.h: Likewise.
56229         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
56230         (getndelim2): Reorder arguments.
56231         * lib/getnline.c (getnline, getndelim):
56232         Don't discard the NMAX argument.
56233         (getnline): Invoke getndelim, to avoid code duplication.
56234         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
56235         of (size_t) -1 by callers of the getnline family.
56236
56237 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56238
56239         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
56240         Check for gettimeofday.
56241         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
56242         Check for settimeofday, stime.
56243
56244 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56245
56246         * lib/nanosleep.c (suspended): Change its type from int to
56247         sig_atomic_t volatile.
56248         (first_call): Make it private to rpl_nanosleep, and have it
56249         be zero initially as that's a bit faster.
56250         (my_usleep): Round up fractional times instead of truncating them,
56251         as this is the usual meaning for 'sleep'.
56252
56253         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
56254         doesn't work.
56255         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
56256         (ENOSYS): Define if not defined.
56257         (settime): Fall back on stime if it exists and settimeofday fails.
56258         But don't bother with fallbacks if a method fails with errno == EPERM.
56259
56260 2004-05-11  Jim Meyering  <jim@meyering.net>
56261
56262         Prior to this change, the save_cwd caller required read access to the
56263         current directory on most systems (ones with the fchdir function).
56264
56265         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
56266         fails, try write-only, and finally, resort to using xgetcwd.
56267
56268 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56269
56270         * lib/obstack.c, obstack.h: Import changes from libc.
56271
56272 2004-04-28  Bruno Haible  <bruno@clisp.org>
56273
56274         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
56275         also implicitly appends .exe to executables.
56276         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
56277         accepts Windows pathnames.
56278         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56279         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56280         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56281         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56282         Reported by Derek Robert Price <derek@ximbiot.com>.
56283
56284 2004-04-21  Karl Berry  <karl@gnu.org>
56285
56286         * config/srclist.txt (localcharset.c): break sync.
56287
56288 2004-04-20  Paul Eggert  <eggert@twinsun.com>
56289
56290         * m4/host-os.m4: Add a copyright notice.
56291
56292 2004-04-20  Jim Meyering  <jim@meyering.net>
56293
56294         Change UTILS_ to gl_ in AC_DEFINE'd names.
56295         Change utils_- and jm_-prefixed variables, too.
56296         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
56297         UTILS_FUNC_MKDIR_TRAILING_SLASH.
56298         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
56299
56300         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
56301         Don't emit trailing blanks.
56302         Also rename jm_-prefixed variables to have gl_ prefix.
56303
56304         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
56305         Also rename jm_-prefixed variables to have gl_ prefix.
56306
56307         * m4/jm-macros.m4: Reflect the renamings.
56308         * m4/prereq.m4: Likewise.
56309
56310 2004-04-20  Jim Meyering  <jim@meyering.net>
56311
56312         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
56313         memory.
56314
56315 2004-04-20  Jim Meyering  <jim@meyering.net>
56316             Bruno Haible  <bruno@clisp.org>
56317
56318         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
56319         memory when realloc fails.
56320
56321 2004-04-19  Jim Meyering  <jim@meyering.net>
56322
56323         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
56324         now that readutmp.c may call `free (0)'.
56325
56326 2004-04-19  Bruno Haible  <bruno@clisp.org>
56327
56328         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
56329         * m4/inttypes_h.m4: Likewise.
56330         * m4/stdint_h.m4: Likewise.
56331         * m4/intmax_t.m4: Likewise.
56332         * m4/uintmax_t.m4: Likewise.
56333
56334 2004-04-18  Jim Meyering  <jim@meyering.net>
56335
56336         * m4/prereq.m4: Don't forbid jm_ prefix.
56337
56338         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56339         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56340         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56341         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56342         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56343         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56344         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56345         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56346         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56347         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56348         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56349         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56350         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56351         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56352         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56353         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56354         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56355         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56356         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56357
56358 2004-04-18  Jim Meyering  <jim@meyering.net>
56359
56360         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56361         failure, don't leak memory and do call END_UTMP_ENT.
56362
56363 2004-04-16  Jim Meyering  <jim@meyering.net>
56364
56365         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56366         coreutils' stat program.
56367         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56368
56369 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56370
56371         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56372         C89.
56373         (CHAR_BIT): Remove, since we assume C89.
56374         Include <stdint.h> if available, as per current Autoconf CVS advice.
56375
56376 2004-03-31  Jim Meyering  <jim@meyering.net>
56377
56378         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56379         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56380         * m4/xalloc.m4: Likewise.
56381
56382 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56383
56384         Merge from coreutils.
56385
56386         * m4/inttostr.m4: New file.
56387         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56388         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56389         Require gl_CLOCK_TIME.
56390         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56391
56392 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56393
56394         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56395         not bool, to be more consistent with Unix conventions.
56396         Suggested by Bruno Haible.
56397
56398         Merge from coreutils.
56399
56400         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56401         * lib/umaxtostr.c: New files.
56402
56403         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56404         the usual <time.h> dance.
56405         (get_date): Change signature to support fractional time stamps.
56406         All callers changed.
56407         * lib/getdate.y: Include "getdate.h" first, as we can now
56408         assume C89 and don't need to worry about 'const'.
56409         Similarly, include "unlocked-io.h" near start, not in middle.
56410         Include <limits.h>.
56411         (textint.value): Use long int rather than int.
56412         (textint.digits): Use size_t rather than int.
56413         (BILLION, LOG10_BILLION): New constants.
56414         (parser_control): New member rel_ns.  Members day_ordinal,
56415         time_zone, month, day, hour, minutes, rel_year, rel_month,
56416         rel_day, rel_hour, rel_minutes, rel_seconds
56417         are now long int, not int.  Member seconds is now struct timespec,
56418         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56419         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56420         not int.
56421         (%union.intval): Now long int, not int.
56422         New member timespec.
56423         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56424         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56425         (spec): Now is a timespec or an item list.
56426         (timespec, items): New nonterminals.
56427         (time, rel, relunit, number, get_date):
56428         Add support for fractional seconds.
56429         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56430         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56431         (to_hour): First arg is now long int, not int.
56432         (to_year): Returns long int, not int.
56433         Don't treat year -70 like 70.
56434         (tm_diff): Returns long int, not int.
56435         (lookup_word): Use bool instead of int when appropriate.
56436         (yylex): Use size_t for count, not int.
56437         Detect overflow when parsing large integer constants.
56438         Add support for fractions.
56439         (get_date): Make pointers 'const' if possible.
56440         Use more-portable code to detect integer overflow.
56441         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56442         Don't use ctime; it's not reliable if the year has >4 digits.
56443
56444         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56445         This is for compatibility with BSD.
56446
56447         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56448         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56449         From coreutils' system.h.
56450
56451         * lib/userspec.c: Don't include "posixver.h".
56452         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56453         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56454         compatible extension.  Simplify code by removing a boolean int
56455         that was always nonzero if a string was nonnull.
56456
56457 2004-03-30  Jim Meyering  <jim@meyering.net>
56458
56459         Merge from coreutils.
56460
56461         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56462         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56463         on some systems one must include <grp.h> before it.
56464         Reported by Christian Krackowizer.
56465
56466 2004-03-30  Jim Meyering  <jim@meyering.net>
56467
56468         Merge from coreutils.
56469
56470         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56471
56472         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56473         an empty input stream.
56474
56475         * lib/readtokens.c: Include <stdbool.h>.
56476         (readtoken): Use `size_t' rather than int/long.
56477         All callers adjusted.
56478         Use `bool' rather than `int' where appropriate.
56479         Use memset rather than an explicit loop.
56480         Use x2nrealloc rather than xrealloc.
56481         Allow the use of `\0' as a delimiter.
56482         (readtokens): Likewise.
56483         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56484
56485 2004-03-30  Jim Meyering  <jim@meyering.net>
56486
56487         * m4/realloc.m4: Remove file, since now it does no more than
56488         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56489         the `configure.ac' section of module/realloc.
56490         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56491
56492 2004-03-30  Bruno Haible  <bruno@clisp.org>
56493
56494         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56495         nonnull.
56496
56497 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56498
56499         Merge changes to getloadavg.c from coreutils and Emacs.
56500
56501         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56502         Define to an expression, not to the empty string.
56503         Include cloexec.h and xalloc.h.
56504         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56505         Use set_cloexec_flag rather than rolling our own.
56506         * lib/cloexec.c, lib/cloexec.h: New files.
56507
56508 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56509
56510         * m4/cloexec.m4: New file.
56511
56512 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56513
56514         * lib/getopt.h: Sync with libc CVS.
56515
56516 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56517             Bruno Haible  <bruno@clisp.org>
56518
56519         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56520         mbswidth.
56521
56522 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56523             Bruno Haible  <bruno@clisp.org>
56524
56525         * lib/mbswidth.h: Include <wchar.h> only if
56526         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56527         <wchar.h>.
56528         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56529
56530 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56531
56532         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56533         Sync with libc CVS.
56534         * lib/getopt_int.h: New file, also synced from libc.
56535
56536 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56537
56538         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56539         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56540         Bring back getopt.c, getopt.h, getopt1.c.
56541
56542 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56543
56544         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56545         All uses changed.  Check for sa_sigaction member; this fixes
56546         a bug first reported by Jason Andrade in
56547         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56548
56549 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56550
56551         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56552         '#if' expressions.  Unlike the code it replaces, it does not
56553         depend on (defined _SC_PAGESIZE).  However, it does depend on
56554         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56555         first reported by Jason Andrade in
56556         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56557
56558 2004-02-25  Simon Josefsson  <jas@extundo.com>
56559
56560         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56561
56562 2004-02-25  Simon Josefsson  <jas@extundo.com>
56563
56564         * lib/strdup.h: New file.
56565         * lib/strdup.c: Include it.
56566         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56567         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56568
56569 2004-02-23  Karl Berry  <karl@gnu.org>
56570
56571         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56572         (from fencepost.gnu.org:/gd/gnuorg).
56573
56574 2004-02-23  Karl Berry  <karl@gnu.org>
56575
56576         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56577         * config/srclist.txt: add maintain/standards documents.
56578
56579 2004-02-18  Bruno Haible  <bruno@clisp.org>
56580
56581         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56582         Reported by Derek Robert Price <derek@ximbiot.com>.
56583
56584 2004-02-16  Karl Berry  <karl@gnu.org>
56585
56586         * config/mkinstalldirs, install-sh: update from automake.
56587
56588 2004-02-06  Karl Berry  <karl@gnu.org>
56589
56590         * m4/po.m4: update from gettext 0.14.1.
56591
56592 2004-02-06  Karl Berry  <karl@gnu.org>
56593
56594         * lib/config.charset: update from gettext 0.14.1.
56595
56596 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56597
56598         Add comments and code, prompted by suggestions from Bruno Haible
56599         for sh-quote.
56600         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56601         describing the enum quoting_style values.
56602         * lib/quotearg.c (quotearg_alloc): New function.
56603         (quotearg_buffer_restyled): Treat lone { and } as special.
56604         Treat = as special.  Work around bug with older shells
56605         that "see" a '\' that is really the 2nd byte of a multibyte char.
56606         Quote empty string with shell_quoting_style.
56607
56608 2004-02-03  Bruno Haible  <bruno@clisp.org>
56609
56610         * m4/pipe.m4: New file, from GNU gettext.
56611
56612 2004-02-03  Bruno Haible  <bruno@clisp.org>
56613
56614         * lib/pipe.h: New file, from GNU gettext.
56615         * lib/pipe.c: New file, from GNU gettext.
56616
56617 2004-01-27  Bruno Haible  <bruno@clisp.org>
56618
56619         * m4/execute.m4: New file, from GNU gettext.
56620
56621 2004-01-27  Bruno Haible  <bruno@clisp.org>
56622
56623         * lib/execute.h: New file, from GNU gettext.
56624         * lib/execute.c: New file, from GNU gettext.
56625         * lib/w32spawn.h: New file, from GNU gettext.
56626
56627 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56628
56629         Merge from diffutils.
56630
56631         * lib/file-type.c (file_type): Add typed memory objects.
56632         * lib/file-type.h (S_TYPEISTMO): New macro.
56633
56634         * lib/c-stack.h (c_stack_action): Remove argv argument.
56635         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56636         (die): Don't calculate message unless segv_action returns.
56637         (get_stack_location, min_address_from_argv, max_address_from_argv,
56638         volatile stack_base, volatile_stack_size): Remove.
56639         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56640         that every segmentation violation is a stack overflow.  (Ouch!)
56641         See Debian bug 136249 (still outstanding) for more info about why
56642         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56643
56644 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56645
56646         Exit-status fix from coreutils.
56647
56648         Use exit_failure consistently in place of EXIT_FAILURE,
56649         so that program exit statuses are consistent on failure.
56650
56651         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56652         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56653         * lib/argmatch.h: Comment fix to match the above.
56654         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56655         Now a macro referring to exit_failure, instead of a separate
56656         variable.  Include "exitfail.h" to get it.
56657         * lib/xstrtol.h: Include "exitfail.h".
56658         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56659
56660         * lib/long-options.c (parse_long_options): Use prototype
56661         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56662         for clarity.
56663
56664 2004-01-21  Jim Meyering  <jim@meyering.net>
56665
56666         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56667         so as not to conflict with a different-sized __mktime_internal
56668         function in GNU libc.
56669         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56670         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56671
56672 2004-01-20  Karl Berry  <karl@gnu.org>
56673
56674         * config/config.guess: update from config.
56675
56676         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56677
56678 2004-01-20  Bruno Haible  <bruno@clisp.org>
56679
56680         Safer stack allocation.
56681         * lib/setenv.c: Include allocsa.h.
56682         (alloca): Remove fallback definition.
56683         (freea): Remove macro.
56684         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56685         instead of freea.
56686
56687 2004-01-20  Bruno Haible  <bruno@clisp.org>
56688
56689         * m4/eealloc.m4: New file, from GNU gettext.
56690
56691 2004-01-20  Bruno Haible  <bruno@clisp.org>
56692
56693         * m4/allocsa.m4: New file, from GNU gettext.
56694
56695 2004-01-20  Bruno Haible  <bruno@clisp.org>
56696
56697         * lib/xallocsa.h: New file, from GNU gettext.
56698         * lib/xallocsa.c: New file, from GNU gettext.
56699
56700 2004-01-20  Bruno Haible  <bruno@clisp.org>
56701
56702         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56703
56704 2004-01-20  Bruno Haible  <bruno@clisp.org>
56705
56706         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56707         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56708         specially.
56709
56710 2004-01-20  Bruno Haible  <bruno@clisp.org>
56711
56712         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56713         patch.
56714
56715 2004-01-20  Bruno Haible  <bruno@clisp.org>
56716
56717         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56718
56719 2004-01-20  Bruno Haible  <bruno@clisp.org>
56720
56721         * lib/eealloc.h: New file.
56722
56723 2004-01-20  Bruno Haible  <bruno@clisp.org>
56724
56725         * lib/binary-io.h: Avoid warnings on Cygwin.
56726
56727 2004-01-20  Bruno Haible  <bruno@clisp.org>
56728
56729         * lib/allocsa.h: New file, from GNU gettext.
56730         * lib/allocsa.c: New file, from GNU gettext.
56731
56732 2004-01-18  Karl Berry  <karl@gnu.org>
56733
56734         * doc/gpl.texi, doc/lgpl.texi: new files.
56735
56736 2004-01-18  Karl Berry  <karl@gnu.org>
56737
56738         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56739         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56740
56741 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56742
56743         Merge from coreutils.
56744
56745         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56746         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56747         (gl_DEFAULT_POSIX2_VERSION): Move
56748         the documentation from 'configure' into 'config.hin',
56749         so that 'configure --help' isn't burdened by it and
56750         we don't have to worry about its formatting there.
56751         Reword the documentation so that it's more succinct
56752         and can be run together into a single paragraph.
56753         * m4/same.m4 (gl_SAME): Check for pathconf.
56754
56755 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56756
56757         Merge from coreutils.
56758
56759         * lib/posixver.c: Include posixver.h.
56760
56761         * lib/same.c: Include <stdbool.h>, <limits.h>.
56762         (_POSIX_NAME_MAX): Define if not defined.
56763         (MIN): New macro.
56764         (same_name): If file names are silently truncated, report
56765         that the file names are the same if they are the same after
56766         the silent truncation.
56767
56768         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56769         conversion function.
56770         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56771         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56772         longer needed.
56773
56774 2004-01-15  Jim Meyering  <jim@meyering.net>
56775
56776         Merge from coreutils.
56777
56778         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56779         if no library is required.
56780         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56781         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56782         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56783         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56784         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56785         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56786         value, $ac_cv_search_crypt, if it's "none required".
56787         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56788         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56789         not gl_FUNC_GETLOADAVG.
56790         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56791         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56792
56793 2004-01-15  Jim Meyering  <jim@meyering.net>
56794
56795         Merge from coreutils.
56796
56797         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56798         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56799         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56800
56801         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56802         optional configure-time default.
56803
56804         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56805
56806         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56807
56808 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56809
56810         Merge from coreutils.
56811
56812         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56813         value, $ac_cv_search_nanosleep, if it's "none required".
56814
56815 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56816
56817         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56818         with like-named macro in fnmatch.c.
56819         (EXT): Use an internal constant instead.
56820
56821         Merge fnmatch patches from glibc.
56822         * lib/fnmatch.c (mbsinit): Remove define.
56823         Add libc_hidden_ver (__fnmatch, fnmatch).
56824         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56825         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56826
56827 2004-01-14  Karl Berry  <karl@gnu.org>
56828
56829         * config/install-sh: update from automake.
56830
56831 2004-01-13  Karl Berry  <karl@gnu.org>
56832
56833         * config/install-sh: update from automake.
56834
56835 2004-01-09  Karl Berry  <karl@gnu.org>
56836
56837         * config/install-sh: update from automake.
56838
56839 2004-01-05  Karl Berry  <karl@gnu.org>
56840
56841         * config/config.{sub,guess}: update from config.
56842
56843 2003-12-31  Karl Berry  <karl@gnu.org>
56844
56845         * config/depcomp: update from automake.
56846
56847 2003-12-14  Karl Berry  <karl@gnu.org>
56848
56849         * lib/config.charset: update from gettext-runtime.
56850
56851 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56852
56853         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56854         Bug reported by Alfred M. Szmidt.
56855
56856 2003-12-03  Bruno Haible  <bruno@clisp.org>
56857
56858         * m4/gettext.m4: Upgrade from gettext-0.13.
56859         * m4/po.m4: Upgrade from gettext-0.13.
56860         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56861         * m4/intmax.m4: New file, from gettext-0.13.
56862         * m4/printf-posix.m4: New file, from gettext-0.13.
56863
56864 2003-11-29  Karl Berry  <karl@gnu.org>
56865
56866         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56867
56868 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56869             Bruno Haible  <bruno@clisp.org>
56870
56871         * lib/printf-parse.h: Don't include sys/types.h.
56872         (ARG_NONE): New macro.
56873         (char_directive): Change type of *arg_index fields to size_t.
56874         * lib/printf-parse.c: Don't include sys/types.h.
56875         (SSIZE_MAX): Remove macro.
56876         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56877         Remove unnecessary overflow check.
56878         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56879         fields.
56880
56881 2003-11-25  Bruno Haible  <bruno@clisp.org>
56882
56883         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56884
56885 2003-11-25  Bruno Haible  <bruno@clisp.org>
56886
56887         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56888         gt_TYPE_SSIZE_T.
56889
56890 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56891
56892         * modules/alloca: Remove dependency on xalloc.
56893
56894 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56895
56896         * lib/alloca.c: Remove dependency on xalloc module.
56897         (xalloc_die): Remove.
56898         (memory_full) [!defined emacs]: New macro.
56899         [!defined emacs]: Don't include xalloc.h.
56900         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56901         address arithmetic overflows.  Change datatypes a bit to avoid
56902         unnecessary casts.
56903
56904 2003-11-22  Jim Meyering  <jim@meyering.net>
56905
56906         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56907         s/size/size_t/.
56908
56909 2003-11-21  Karl Berry  <karl@gnu.org>
56910
56911         * config/config.{sub,guess}: update from config.
56912
56913 2003-11-18  Karl Berry  <karl@gnu.org>
56914
56915         * config/config.{sub,guess}: update from config.
56916
56917         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56918
56919 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56920
56921         * README: Mention that S+T cannot overflow if S is the size of
56922         an existing object and T is sufficiently small.
56923
56924 2003-11-17  Jim Meyering  <jim@meyering.net>
56925
56926         On systems without utime and without a utimes function capable of
56927         dealing with a NULL struct utimbuf* argument, this utime replacement
56928         could -- in unusual circumstances -- leak a file descriptor.
56929         * lib/utime.c: Include <unistd.h> and <errno.h>.
56930         (utime_null): Be sure to close `fd' and to preserve errno.
56931         Reported by Geoff Collyer via Arnold Robbins.
56932
56933 2003-11-17  Bruno Haible  <bruno@clisp.org>
56934
56935         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56936         (Depends-on): Add xsize.
56937
56938 2003-11-17  Bruno Haible  <bruno@clisp.org>
56939
56940         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56941
56942 2003-11-17  Bruno Haible  <bruno@clisp.org>
56943
56944         * lib/vasnprintf.c (alloca): Remove fallback definition.
56945         (freea): Remove definition.
56946         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56947         Reported by Paul Eggert.
56948
56949 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56950             Bruno Haible  <bruno@clisp.org>
56951
56952         Protect against address arithmetic overflow.
56953         * lib/printf-args.h: Include stddef.h.
56954         (arguments): Change type of field 'count' to size_t.
56955         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56956         'unsigned int' where appropriate.
56957         * lib/printf-parse.h: Include sys/types.h.
56958         (char_directive): Change type of *arg_index fields to ssize_t.
56959         (char_directives): Change type of fields 'count', max_*_length to
56960         size_t.
56961         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56962         (SSIZE_MAX): Define fallback value.
56963         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56964         instead of 'int' where appropriate. Check a_allocated, d_allocated
56965         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56966         * lib/vasnprintf.c: Include xsize.h.
56967         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56968         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56969         overflow. Avoid wraparound when converting a width or precision from
56970         decimal to binary.
56971
56972 2003-11-16  Bruno Haible  <bruno@clisp.org>
56973
56974         Update from GNU gettext.
56975         * lib/printf-parse.c: Generalize to it can be compiled for wide
56976         strings.
56977         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56978         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56979         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56980         SNPRINTF): New macros.
56981         Don't include <alloca.h> if the file is used inside libintl.
56982         (local_wcslen): New function, for Solaris 2.5.1.
56983         (VASNPRINTF): Use it instead of wcslen.
56984
56985 2003-11-16  Bruno Haible  <bruno@clisp.org>
56986
56987         * lib/xsize.h (xmax): New function.
56988         (xsum, xsum3, xsum4): Declare as "pure" functions.
56989
56990 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56991
56992         * modules/xalloc (Files): Undo latest change, since xalloc.h
56993         no longer needs SIZE_MAX or PTRDIFF_MAX.
56994
56995 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56996
56997         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56998         gl_PTRDIFF_MAX.
56999
57000 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57001
57002         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
57003         "return", to pacify some unknown compiler.  Problem reported
57004         by Joerg Schilling.
57005
57006 2003-11-12  Paul Eggert  <eggert@twinsun.com>
57007
57008         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
57009         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
57010         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
57011         heuristic is just as accurate as far as we know, and it removes a
57012         dependency on size_max.m4 and ptrdiff_max.m4.
57013
57014 2003-11-11  Bruno Haible  <bruno@clisp.org>
57015
57016         * modules/xsize (Files): Add m4/size_max.m4.
57017         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
57018
57019 2003-11-11  Bruno Haible  <bruno@clisp.org>
57020
57021         * m4/size_max.m4: New file.
57022         * m4/ptrdiff_max.m4: New file.
57023         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
57024         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
57025         (gl_XALLOC): Invoke it.
57026
57027 2003-11-11  Bruno Haible  <bruno@clisp.org>
57028
57029         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
57030         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
57031         defined.
57032
57033 2003-11-10  Paul Eggert  <eggert@twinsun.com>
57034
57035         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
57036         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
57037         rejected some allocations of exactly SIZE_MAX - 2 bytes.
57038         From Bruno Haible.
57039         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
57040         not (size_t) -1, since it's defined here.
57041
57042 2003-11-09  Karl Berry  <karl@gnu.org>
57043
57044         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
57045
57046 2003-11-06  Paul Eggert  <eggert@twinsun.com>
57047
57048         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
57049         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
57050         Reject sizes of exactly SIZE_MAX bytes.
57051         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
57052         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
57053
57054 2003-11-05  Bruno Haible  <bruno@clisp.org>
57055
57056         * lib/xsize.h: Include limits.h, to avoid a possible collision with
57057         SIZE_MAX defined in <limits.h> on Solaris.
57058
57059 2003-11-04  Jim Meyering  <jim@meyering.net>
57060
57061         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
57062         variable names, rather than @VAR@.
57063         * modules/poll: Likewise.
57064
57065 2003-11-04  Bruno Haible  <bruno@clisp.org>
57066
57067         * modules/xsize: New file.
57068         * modules/linebreak: Depend on xsize.
57069         * MODULES.html.sh (func_all_modules): Add xsize.
57070
57071 2003-11-04  Bruno Haible  <bruno@clisp.org>
57072
57073         * m4/xsize.m4: New file.
57074
57075 2003-11-04  Bruno Haible  <bruno@clisp.org>
57076
57077         * lib/xsize.h: New file.
57078         * lib/linebreak.c: Include xsize.h.
57079         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
57080         argument for overflow.
57081         Suggested by Paul Eggert.
57082
57083 2003-11-03  Karl Berry  <karl@gnu.org>
57084
57085         * config/config.{guess,sub}: update from config.
57086
57087 2003-11-03  Jim Meyering  <jim@meyering.net>
57088
57089         * modules/userspec (lib_SOURCES): Add userspec.h.
57090         (Include): Add "userspec.h".
57091         Improve description.
57092
57093 2003-11-03  Jim Meyering  <jim@meyering.net>
57094
57095         * lib/userspec.c: Include "userspec.h".
57096         * lib/userspec.h: New file.
57097
57098 2003-11-03  Bruno Haible  <bruno@clisp.org>
57099
57100         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
57101
57102 2003-11-03  Bruno Haible  <bruno@clisp.org>
57103
57104         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
57105         available, to avoid (extremely rare) race condition.
57106         Suggested by Paul Eggert.
57107
57108 2003-11-02  Karl Berry  <karl@gnu.org>
57109
57110         * config/srclist.txt (vasprintf.c): sync broken, sigh.
57111
57112 2003-10-31  Paul Eggert  <eggert@twinsun.com>
57113
57114         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
57115         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
57116         (read_filesystem_list): Set and use me_type_malloced.
57117         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
57118         whatever the type happens to be), for brevity and consistency.
57119         Check for size calculation overflow on Alphas running OSF/1.
57120
57121 2003-10-31  Jim Meyering  <jim@meyering.net>
57122
57123         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
57124
57125         * lib/linebuffer.c: Include <string.h> for declaration of memset.
57126
57127 2003-10-30  Paul Eggert  <eggert@twinsun.com>
57128             Bruno Haible  <bruno@clisp.org>
57129
57130         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
57131         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
57132
57133 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57134
57135         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
57136         netbsd*-gnu*.  Suggested by Robert Millan.
57137
57138 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57139
57140         * modules/group-member: Depend on stdbool.
57141
57142 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57143
57144         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
57145
57146 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57147
57148         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
57149         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
57150         after the 'gnu' in these cases.  This fixes some bugs in the
57151         previous change, and is based on suggestions by Robert Millan.
57152
57153 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57154
57155         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
57156         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
57157         no longer needed.
57158         * lib/quotearg.c (quotearg_n_options): Use it.
57159         * lib/group-member.c: Include <stdbool.h>.
57160         (free_group_info): Arg is now const *; don't free arg.
57161         (get_group_info): Now returns bool and accepts struct group_info *,
57162         rather than returning a malloc'ed struct group_info *.
57163         All uses changed.  Check for overflow in internal size calculation.
57164
57165         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
57166         rather than xmalloc/xrealloc.
57167         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
57168         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
57169         conformance bug: the old code used a pointer after freeing the
57170         storage that it addressed.
57171         * lib/hash.c (hash_initialize): Simplify the code by using
57172         xalloc_oversized rather than doing it by hand.
57173         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
57174         the buffer preserved.  Use free and xmalloc instead.
57175         * lib/quotearg.c (quotearg_n_options): Likewise.
57176         Use a simpler test for size overflow.  Don't use xalloc_oversized
57177         because unsigned int might be wider than size_t (!); this suggests
57178         that we should switch from unsigned int to size_t for slot numbers.
57179
57180 2003-10-28  Paul Eggert  <eggert@twinsun.com>
57181
57182         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
57183         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
57184         NetBSD kernels.  Requested by Richard Stallman.
57185
57186 2003-10-27  Paul Eggert  <eggert@twinsun.com>
57187
57188         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
57189         to allocate the returned structure.  Do not allocate a subarray,
57190         as x2nrealloc will do that.
57191         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
57192         instead of xnrealloc.
57193         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
57194
57195 2003-10-27  Bruno Haible  <bruno@clisp.org>
57196
57197         * lib/stdbool_.h: Better support for BeOS.
57198
57199 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57200
57201         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
57202         now uses inline.
57203
57204 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57205
57206         * lib/xalloc.h (xalloc_oversized): New static inline function, for
57207         callers that want to do their own size-overflow checking.  Include
57208         <stdbool.h>, since xalloc_oversized returns bool.
57209         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
57210         to use xalloc_oversized.
57211
57212         Add two functions x2realloc, x2nrealloc, for programs that grow
57213         arrays dynamically by doubling their sizes.
57214         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
57215         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
57216         New functions.
57217
57218         Port to C99 semantics for 'inline' of external functions.
57219         Bug reported by Bruno Haible.
57220         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
57221         with the old contents of xnmalloc.
57222         (xnmalloc, xmalloc): Use it.
57223         (xnrealloc_inline): New static inline function,
57224         with the old contents of xnrealloc.
57225         (xnrealloc, xrealloc): Use it.
57226
57227         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
57228         that.
57229
57230 2003-10-26  Karl Berry  <karl@gnu.org>
57231
57232         * config/srclist.txt (COPYING.DOC): no longer available from
57233         /gd/gnuorg; don't know where the ultimate source is.
57234
57235 2003-10-25  Paul Eggert  <eggert@twinsun.com>
57236
57237         Fix several address-calculation bugs in the hash modules,
57238         plus some minor code cleanup.
57239
57240         * lib/hash.h: Include <stdbool.h>, for bool.
57241         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
57242         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
57243         hash_get_n_entries, hash_get_max_bucket_length,
57244         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
57245         hash_rehash): Use size_t rather than unsigned.
57246         * lib/hash.c (struct hash_table, hash_get_n_buckets,
57247         hash_get_n_buckets_used, hash_get_n_entries,
57248         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
57249         hash_get_entries, hash_do_for_each, hash_string, is_prime,
57250         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
57251         Likewise.
57252         (SIZE_MAX): Define if not defined.
57253         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
57254         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
57255         hash_print):
57256         Use const * when possible.
57257         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
57258         (check_tuning): Fix bug: if tuning parameters were very close to
57259         0 or 1, rounding errors could have caused subscript violations.
57260         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
57261         (hash_initialize): Add 'fail:' label
57262         to free table and return NULL, and use it to simplify code.
57263         Use calloc rather than clearing the storage ourself.
57264         (hash_initialize, hash_rehash): Check for arithmetic overflow in
57265         buffer size calculations.
57266         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
57267         Include <stddef.h>, for size_t.
57268         * lib/hash-pjw.c (hash_pjw): Likewise.
57269         Switch to method described by Bruno Haible.
57270         Include <limits.h>, for CHAR_BIT.
57271         (SIZE_BITS): New macro.
57272
57273 2003-10-23  Paul Eggert  <eggert@twinsun.com>
57274
57275         * m4/getline.m4 (AM_FUNC_GETLINE):
57276         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
57277         hosts.  Problem reported by Derek Robert Price in
57278         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
57279         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
57280         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
57281
57282 2003-10-21  Paul Eggert  <eggert@twinsun.com>
57283
57284         * lib/getndelim2.c (getndelim2): When size calculation overflows,
57285         ceiling the allocation at NMAX bytes rather than silently
57286         discarding input bytes before NMAX is reached.  This makes
57287         a difference only if NMAX exceeds SIZE_MAX / 2.
57288
57289         * lib/obstack.c: Merge from glibc.
57290         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
57291         Add libc_hidden_def (_obstack_newchunk).
57292         (_obstack_free) [! defined _LIBC]: Remove.
57293         [defined _LIBC]: Make a strong alias from obstack_free, rather than
57294         a clone of the function body.
57295         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
57296         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
57297
57298         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
57299         glibc.
57300         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
57301         arg to memcpy.
57302
57303         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
57304         (obstack_ptr_grow_fast, obstack_int_grow_fast):
57305         Don't use lvalue casts, as GCC plans to remove support for them
57306         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
57307         was also present in the non-GCC version, indicating that this
57308         code had always been buggy and had never been widely used.
57309         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
57310         Use the fast variant of each macro, rather than copying the
57311         definiens of the fast variant; that way, we'll be more likely to
57312         catch future bugs in the fast variants.
57313
57314 2003-10-20  Bruno Haible  <bruno@clisp.org>
57315
57316         * modules/wait-process: New file.
57317         * MODULES.html.sh (func_all_modules): Add wait-process.
57318
57319 2003-10-20  Bruno Haible  <bruno@clisp.org>
57320
57321         * m4/wait-process.m4: New file.
57322
57323 2003-10-20  Bruno Haible  <bruno@clisp.org>
57324
57325         * lib/wait-process.h: New file, from GNU gettext.
57326         * lib/wait-process.c: New file, from GNU gettext.
57327
57328 2003-10-19  Jim Meyering  <jim@meyering.net>
57329
57330         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
57331         HPUX 10.20.
57332
57333 2003-10-18  Karl Berry  <karl@gnu.org>
57334
57335         * config/config.guess: update from config.
57336
57337 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57338
57339         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57340         (getgroups): First arg is int, not size_t.
57341         Don't let 'free' mangle errno.
57342
57343 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57344
57345         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57346
57347 2003-10-16  Karl Berry  <karl@gnu.org>
57348
57349         * config/config.{guess,sub}: update from config.
57350
57351 2003-10-16  Jim Meyering  <jim@meyering.net>
57352
57353         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57354         memcpy.
57355
57356 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57357
57358         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57359         (SIZE_MAX): Remove.
57360         (new_exclude, add_exclude_file): Initial size no longer needs to
57361         be a power of 2.
57362         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57363         our own address arithmetic overflow checking.
57364
57365         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57366         (fnmatch): Do not alloca more than 2000 wide characters;
57367         instead, use malloc for large buffers.
57368         Check for address arithmetic overflow, and return -1
57369         with errno set to ENOMEM in that case.
57370         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57371         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57372         instead, return -1.  Check for address arithmetic overflow.
57373
57374 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57375
57376         Handle invalid suffixes and overflow independently, so that
57377         callers can treat them independently as needed.  Fix some bugs in
57378         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57379         suffix for a human-readable blocksize.  The major caller-visible
57380         change is the addition of a new
57381         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57382         that both overflow and suffix chars were found.
57383
57384         * lib/human.c (humblock): Don't check separately for invalid suffix
57385         char; that is xstrtoumax's job (now that its bug is fixed).
57386         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57387         INTMAX_MAX]: New macros.
57388         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57389         TYPE_MAXIMUM): New macros.
57390         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57391         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57392         if overflow occurs, as it's what __strtol does and it's more useful
57393         in practice.
57394         (__xstrtol): If __strtol reports some error other than ERANGE,
57395         reflect it to the caller as LONGINT_INVALID.  If it reports
57396         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57397         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57398         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57399         value.
57400         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57401         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57402         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57403         [defined UINTMAX_MAX]: New macros.
57404
57405 2003-10-14  Bruno Haible  <bruno@clisp.org>
57406
57407         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57408
57409 2003-10-14  Bruno Haible  <bruno@clisp.org>
57410
57411         * m4/sig_atomic_t: New file, from GNU gettext.
57412         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57413
57414 2003-10-14  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57417         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57418         Also use volatile where needed.
57419
57420 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57421
57422         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57423         Change maintainer from Bruno Haible to 'all'.
57424
57425 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57426
57427         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57428
57429 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57430
57431         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57432         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57433         and define in terms of the other primitives.
57434         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57435         (SIZE_MAX): Define if not already defined.
57436         (array_size_overflow): New function.
57437         (xalloc_die): Abort instead of exiting if 'error' returns.
57438         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57439         (xmalloc, xrealloc): Use them.
57440         (xcalloc): Check for address arithmetic overflow.
57441         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57442         a bit faster than strcpy.
57443
57444 2003-10-10  Simon Josefsson  <jas@extundo.com>
57445
57446         * modules/argp (Depends-on): Add restrict and strcase.
57447
57448 2003-10-10  Simon Josefsson  <jas@extundo.com>
57449
57450         * m4/argp.m4: Add AC_C_INLINE.
57451
57452 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57453
57454         Merge getpass from libc, plus a few fixes.
57455
57456         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57457         Include <stdbool.h>.
57458         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57459         __fsetlocking to empty.
57460         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57461         do include <bits/libc-lock.h>.
57462         Do not include <fcntl.h>; not needed.
57463         [_LIBC]: Include <wchar.h>.
57464         (NOTCANCEL_MODE): New macro.
57465         (flockfile, funlockfile) [_LIBC]: New macros.
57466         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57467         [!_LIBC]: New macros.
57468         (call_fclose): New function.
57469         (getpass): Use it.  Save tty stream separately; this simplifies the
57470         code and makes it more reliable if stdin happens to equal stdout.
57471         Invoke __fsetlocking on tty.
57472         Handle thread cancellation if needed.
57473         Namespace cleanup (use __tcgetattr, __getline).
57474         Use bool for Booleans.
57475         [USE_IN_LIBIO]: Handle wide streams.
57476         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57477         stream might go where.
57478
57479         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57480         doesn't have to include <stdio.h> before us.
57481         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57482         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57483         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57484         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57485         if not declared, so that we can use getpass.c code from libc without
57486         rewriting it.
57487         (flockfile, ftrylockfile, funlockfile): New macros.
57488
57489 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57490
57491         * modules/getpass: Depend on stdbool.
57492
57493 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57494
57495         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57496
57497 2003-10-07  Karl Berry  <karl@gnu.org>
57498
57499         * config/config.{guess,sub}: update from config.
57500
57501 2003-10-06  Jim Meyering  <jim@meyering.net>
57502             Bruno Haible  <bruno@clisp.org>
57503
57504         This lets translators provide better translations for the
57505         "Written by ..." part of --version output.
57506         * lib/version-etc.h: Include stdarg.h.
57507         (version_etc_copyright): Declare as readonly.
57508         (version_etc): Make this function variadic with a NULL-terminated list
57509         of author name strings.
57510         (version_etc_va): New declaration.
57511         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57512         (version_etc_copyright): Declare as readonly.
57513         (version_etc_va): New function. Provide a different translatable string
57514         for each possible number of authors < 10. Abbreviate when there are 10
57515         authors or more.
57516         (version_etc): Make this function variadic. Call version_etc_va.
57517         Suggestion from Gary V. Vaughan.
57518
57519         * lib/long-options.h (parse_long_options): Change prototype: the
57520         authors string is moved to the end and becomes variadic.
57521         * lib/long-options.c: Include stdarg.h.
57522         (parse_long_options): Make this function variadic, too.
57523         Call version_etc_va, not version_etc.
57524
57525 2003-10-06  Bruno Haible  <bruno@clisp.org>
57526
57527         * modules/version-etc-2: Remove file.
57528         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57529
57530 2003-10-06  Bruno Haible  <bruno@clisp.org>
57531
57532         * modules/fatal-signal: New file.
57533         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57534
57535 2003-10-06  Bruno Haible  <bruno@clisp.org>
57536
57537         * m4/fatal-signal.m4: New file.
57538         * m4/signalblocking.m4: New file, from GNU gettext.
57539
57540 2003-10-06  Bruno Haible  <bruno@clisp.org>
57541
57542         * lib/version-etc-2.h: Remove file.
57543         * lib/version-etc-2.c: Remove file.
57544
57545 2003-10-06  Bruno Haible  <bruno@clisp.org>
57546
57547         * lib/fatal-signal.h: New file, from GNU gettext.
57548         * lib/fatal-signal.c: New file, from GNU gettext.
57549
57550 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57551
57552         * README: Rework advice for preventing empty .o files.
57553         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57554         not <sys/types.h>.
57555
57556 2003-10-04  Karl Berry  <karl@gnu.org>
57557
57558         * lib/argp*: update from libc.
57559
57560 2003-10-04  Karl Berry  <karl@gnu.org>
57561
57562         * config/config.{guess,sub}: update from config.
57563
57564 2003-10-02  Bruno Haible  <bruno@clisp.org>
57565
57566         * modules/lchown (Include): Add lchown.h.
57567         * modules/time_r (Include): Use "..." syntax.
57568         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57569
57570 2003-10-01  Simon Josefsson  <jas@extundo.com>
57571
57572         * MODULES.html.sh (func_all_modules): Move gethostname from section
57573         'based on' to section 'lacking' POSIX:2001.
57574
57575 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57576
57577         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57578         to output mode on the same stream.
57579
57580 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57581
57582         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57583         Fix arg typo in previous patch.
57584
57585 2003-09-28  Jim Meyering  <jim@meyering.net>
57586
57587         * lib/error.c: Correct cpp indentation.
57588
57589 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57590
57591         * modules/free: New file.
57592
57593 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57594
57595         * m4/free.m4: New file.
57596
57597 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57598
57599         * lib/minmax.h (MIN, MAX)
57600         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57601         Omit the special code that used __typeof__, since we worry that
57602         it could be more trouble than it's worth.  See:
57603         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57604         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57605
57606         * lib/free.c: New file.
57607
57608 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57609
57610         Trivial fixes to Makefile.am parts of module listings.
57611         * modules/strstr: Append strstr.h to lib_SOURCES.
57612         * modules/strcase: Likewise, for strcase.h.
57613
57614 2003-09-27  Karl Berry  <karl@gnu.org>
57615
57616         * config/mkinstalldirs: update from automake.
57617
57618 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57619
57620         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57621         (error_tail): Do not loop, reallocating temporary buffer, since
57622         the output cannot contain more wide characters than the input
57623         contains bytes, the size must be big enough already.  This avoids
57624         one potential size overflow calculation.  Check for size overflow
57625         when calculating temporary buffer size.  Free temporary buffer
57626         when done, if it was allocated with malloc; this plugs a memory
57627         leak.  Remove casts from void * to pointers, that are no longer
57628         needed now that we're assuming C89 or better.
57629
57630         Merge error changes from glibc.
57631
57632         * lib/error.c, error.h: Update copyright notice header to match glibc.
57633         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57634         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57635         Disable cancellation while printing error.
57636         * lib/error.h: Prepend __ to parameter names.
57637
57638 2003-09-26  Jim Meyering  <jim@meyering.net>
57639
57640         * lib/error.c (error_tail): Move some declarations
57641         into inner scope where the local variables are used.
57642
57643 2003-09-26  Bruno Haible  <bruno@clisp.org>
57644
57645         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57646         stpncpy().
57647         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57648
57649 2003-09-26  Bruno Haible  <bruno@clisp.org>
57650
57651         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57652         (stpncpy): Define as alias for gnu_stpncpy.
57653         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57654
57655 2003-09-25  Simon Josefsson  <jas@extundo.com>
57656
57657         * lib/xgetdomainname.h: New file.
57658         * lib/xgetdomainname.c: New file.
57659
57660 2003-09-25  Simon Josefsson  <jas@extundo.com>
57661             Bruno Haible  <bruno@clisp.org>
57662
57663         * modules/getdomainname: New file.
57664         * modules/xgetdomainname: New file.
57665         * MODULES.html.sh (func_all_modules): Add getdomainname,
57666         xgetdomainname.
57667
57668 2003-09-25  Simon Josefsson  <jas@extundo.com>
57669             Bruno Haible  <bruno@clisp.org>
57670
57671         * m4/getdomainname.m4: New file.
57672
57673 2003-09-25  Simon Josefsson  <jas@extundo.com>
57674             Bruno Haible  <bruno@clisp.org>
57675
57676         * lib/getdomainname.h: New file.
57677         * lib/getdomainname.c: New file.
57678
57679 2003-09-25  Karl Berry  <karl@gnu.org>
57680
57681         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57682
57683 2003-09-25  Karl Berry  <karl@gnu.org>
57684
57685         * config/install-sh: update from automake.
57686
57687 2003-09-25  Bruno Haible  <bruno@clisp.org>
57688
57689         * modules/version-etc-2: New file, from modules/version-etc with
57690         modifications.
57691         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57692
57693 2003-09-25  Bruno Haible  <bruno@clisp.org>
57694
57695         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57696         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57697
57698 2003-09-24  Simon Josefsson  <jas@extundo.com>
57699
57700         * modules/xgethostname: Add xgethostname.h.
57701
57702 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57703
57704         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57705         the buffer associated with the argument.  Bug reported by
57706         Simon Josefsson.
57707
57708 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57709
57710         * README: Document assumptions that 'int' is at least 32 bits
57711         wide, that integer arithmetic is 2's complement without overflow,
57712         that there are no holes in integer values, that adding sizes of
57713         two nonoverlapping objects can't overflow, and that all-bits-zero
57714         yields scalar zero.  Fix spelling and capitalization typos.
57715
57716 2003-09-19  Karl Berry  <karl@gnu.org>
57717
57718         * lib/argp.h: update from libc.
57719
57720 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57721
57722         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57723         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57724         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57725
57726 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57727
57728         * gnulib-tool: Use "test -h", not "test -L", for portability
57729         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57730         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57731         (sed_extract_prog): Issue s commands one-by-one, rather than
57732         using \| in one s command.
57733
57734 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57735
57736         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57737         input error, instead of returning NULL the next time we are called
57738         (and therefore losing track of errno).
57739
57740 2003-09-16  Bruno Haible  <bruno@clisp.org>
57741
57742         * gnulib-tool (func_create_testdir): Warn about duplicated
57743         dependencies.
57744
57745 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57746
57747         * modules/argmatch, modules/fatal, modules/obstack,
57748         modules/xalloc, modules/xgethostname: Sort dependencies by
57749         importance, not alphabetically.
57750
57751 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57752
57753         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57754         fails, so that the caller gets the proper errno.
57755
57756         * lib/readutmp.c (read_utmp): Likewise.
57757         Check for fstat error.  Close stream and free storage
57758         when failing.
57759
57760 2003-09-14  Karl Berry  <karl@gnu.org>
57761
57762         * config/srclist.txt (strdup.c): disable for c89 changes.
57763
57764 2003-09-14  Jim Meyering  <jim@meyering.net>
57765
57766         * lib/getloadavg.c: Correct cpp indentation.
57767         * lib/strdup.c: Likewise.
57768         * lib/vasnprintf.c: Likewise.
57769
57770 2003-09-14  Bruno Haible  <bruno@clisp.org>
57771
57772         * modules/fwriteerror: New file.
57773         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57774
57775 2003-09-14  Bruno Haible  <bruno@clisp.org>
57776
57777         * lib/fwriteerror.h: New file.
57778         * lib/fwriteerror.c: New file.
57779
57780 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57781
57782         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57783         modules/xgethostname, modules/xalloc: Depend on exit.
57784
57785 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57786
57787         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57788
57789         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57790         and AC_MINIX, too, so that their extensions are available.
57791
57792         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57793         This macro has been superseded by gl_BACKUPFILE.
57794
57795         More patches to assume C89 or better.
57796
57797         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57798
57799         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57800         unconditionally.
57801         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57802         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57803         Include <string.h>, <stdlib.h> unconditionally.
57804         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57805         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57806         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57807         headers or for string.h.
57808         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57809         or strtoul.
57810
57811         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57812         headers.
57813         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57814         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57815         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57816         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57817         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57819         memcpy, memset.
57820         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57821         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57822         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57823         strtol.
57824         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57825         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57826         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57827         strtoul.
57828
57829 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57830
57831         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57832         * lib/obstack.c [!defined _LIBC]: Likewise.
57833         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57834         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57835         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57836
57837         More changes to assume C89 or better.
57838
57839         * lib/error.c (error_tail): Assume vprintf.
57840
57841         * lib/argmatch.c (getenv): Remove decl.
57842         * lib/progreloc.c (get_full_program_name): Define via prototype.
57843         * lib/setenv.c (clearenv): Likewise.
57844         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57845         needed.
57846         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57847         (malloc, memcpy): Remove decls.
57848         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57849         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57850         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57851         (memcpy): Remove macro.
57852         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57853         (__P): Remove.  All uses removed.
57854         (PTR): Remove.  All uses changed to void *.
57855         (CHAR_BIT, NULL): Remove.
57856         (spaces, zeros, memset_space, memset_zero)
57857         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57858         Remove.
57859         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57860         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57861         Define with prototype.
57862         Remove now-unnecessary prototype decl.
57863         (extra_args_spec): Assume ANSI C.  All uses changed.
57864         (extra_args_spec_iso): Remove.
57865         (my_strftime, emacs_strftimeu): Define via prototype.
57866         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57867         unconditionally.
57868         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57869         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57870         (strtoul, strtol): Remove decls.
57871         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57872         LONG_MAX): Remove.
57873         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57874         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57875         (LOCALE_PARAM_PROTO): New macro.
57876         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57877         (INTERNAL (strtol), strtol): Define with a prototype.
57878         (PARAMS): Remove.  All uses removed.
57879         * lib/tempname.c: Include <string.h> unconditionally.
57880         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57881         * lib/xgethostname.c (main): Define with a prototype.
57882         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57883         Include <stdlib.h> unconditionally.
57884         (calloc, malloc, realloc, free): Remove decls.
57885         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57886         Include <stdlib.h> unconditionally.  Sort include file names.
57887         (strtod): Remove.
57888         (xstrtod): Define with a prototype.
57889         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57890         (strtol, strtoul): Remove decls.
57891
57892 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57893
57894         More patches to assume C89 or better.
57895         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57896         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57897         string.h, memchr, STDC_HEADERS.
57898
57899 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57900
57901         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57902         Include <stdlib.h>, <string.h> unconditionally.
57903         Remove now-unnecessary cast to char *.
57904         * lib/strnlen.c: Include <string.h> unconditionally.
57905         * lib/yesno.c (yesno): Define with a prototype.
57906
57907 2003-09-11  Bruno Haible  <bruno@clisp.org>
57908
57909         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57910
57911 2003-09-10  Jim Meyering  <jim@meyering.net>
57912
57913         * lib/error.c: Correct indentation of cpp directives.
57914
57915 2003-09-10  Bruno Haible  <bruno@clisp.org>
57916
57917         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57918         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57919         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57920         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57921         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57922         <stdlib.h> and <string.h> checks.
57923         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57924         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57925
57926 2003-09-10  Bruno Haible  <bruno@clisp.org>
57927
57928         * lib/strcspn.c: Include <string.h> unconditionally.
57929         * lib/strpbrk.c: Include <string.h> unconditionally.
57930         * lib/strstr.c: Include <string.h> unconditionally.
57931         * lib/unicodeio.c: Include <string.h> unconditionally.
57932         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57933         * lib/unsetenv.c: Likewise.
57934         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57935         * lib/yesno.c: Include <stdlib.h> unconditionally.
57936         (rpmatch): Add prototype.
57937
57938 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57939
57940         More patches to assume C89 or better.
57941         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57942         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57943         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57944         or for string.h.
57945         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57946         stdlib.h.
57947         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57948         C headers.
57949         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57950         string.h.
57951         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57952         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57953         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57954         or for string.h.
57955         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57956         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57957         C headers.
57958         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57959         memcpy.
57960         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57961         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57962         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57963         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57964         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57965         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57966         string.h, free.
57967         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57968         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57969         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57970         C headers, or for string.h.
57971         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57972         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57973         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57974         headers, memory.h, stdlib.h, string.h, strings.h.
57975         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57976         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57977         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57978         strchr.
57979         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57980         headers, memory.h, string.h.
57981         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57982         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57983         free.
57984         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57985         headers.
57986         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57987         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57988         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57989         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57990         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57991
57992 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57993
57994         More K&R removal.
57995
57996         * lib/acosl.c (main): Use a prototype.
57997         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57998         tanl.c: Likewise.
57999
58000         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
58001
58002         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
58003         (getopt, etopt_long, getopt_long_only, _getopt_internal)
58004         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
58005         with a prototype.
58006         * lib/getopt.c (const): Remove macro.
58007         Include <string.h> unconditionally.
58008         (my_index): Remove; all uses changed to strchr.
58009         (strlen): Remove decl.
58010         (exchange): Remove forward decl; no longer needed.
58011         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
58012         Define with prototype.
58013         * lib/getopt1.c (const): Remove macro.
58014         (getopt_long, getopt_long_only, main): Define with prototype.
58015
58016         * lib/getugroups.c: Include <string.h> unconditionally.
58017
58018         * lib/getusershell.c: Include <stdlib.h> unconditionally.
58019         (getusershell, setusershell, endusershell, readname, main):
58020         Define with prototypes.
58021
58022         * lib/group-member.c: Include group-member.h first.
58023         Include <stdlib.h> unconditionally.
58024
58025         * lib/hard-locale.c: Include hard-locale.h first.
58026         Include <stdlib.h>, <string.h> unconditionally.
58027
58028         * lib/hash.c (free, malloc): Remove decls.
58029         Include <stdlib.h> unconditionally.
58030
58031         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
58032         (getenv): Do not declare.
58033
58034         * lib/idcache.c: Include <string.h> unconditionally.
58035
58036         * lib/long-options.c: Include long-options.h first, to test interface.
58037         Include <stdlib.h> unconditionally.
58038
58039         * lib/makepath.c: Include makepath.h first, to test interface.
58040         Include <stdlib.h> and <string.h> unconditionally.
58041
58042         * lib/linebuffer.c: Include <stdlib.h>.
58043         (free): Remove decl.
58044
58045         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
58046         stddef.h. rpl_malloc returns void *, not char *.
58047         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
58048         prototype.
58049
58050         * lib/md5.h: Include <limits.h> unconditionally.
58051         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
58052         (__P): Remove; all uses removed.
58053         * lib/md5.c: Include "md5.h" first.
58054         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
58055         md5_buffer, md5_process_bytes, md5_process_block):
58056         Define with prototypes.
58057         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
58058         * lib/sha.c: Include "sha.h" first.
58059         Include <stdlib.h>, <string.h> unconditionally.
58060
58061         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
58062         * lib/memcmp.c (__ptr_t): Likewise.
58063         * lib/memrchr.c (__ptr_t): Likewise.
58064         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
58065         Include <string.h> unconditionally.
58066         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
58067         * lib/memchr.c: Include <stdlib.h> unconditionally.
58068         * lib/memchr.c (LONG_MAX): Remove.
58069         * lib/memrchr.c (LONG_MAX): Likewise.
58070         * lib/memchr.c (__memchr): Define via a prototype.
58071         * lib/memrchr.c (__memrchr): Likewise.
58072         * lib/memcmp.c (__P): Remove, and remove all uses.
58073         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
58074         Remove forward decls; no longer needed.
58075         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
58076         Use types required by C89 in prototype.
58077
58078         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
58079         * lib/savedir.c: Likewise.
58080         * lib/mkdir.c (free): Remove decl.
58081         * lib/rmdir.c (rmdir): Define with a prototype.
58082         * lib/savedir.c: Include savedir.h first, to test interface.
58083
58084         * lib/mktime.c (STDC_HEADERS): Remove.
58085         Include <stdlib.h>, <string.h> unconditionally.
58086
58087         * lib/modechange.c: Include <stdlib.h> unconditionally.
58088         (malloc): Remove decl.
58089
58090         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
58091         (free): Remove decl.
58092
58093         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
58094         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
58095         (This type really should be intptr_t, but that's a C99ism.)
58096         (_obstack_memcpy): Remove: all uses changed to memcpy.
58097         Include <string.h> unconditionally.
58098         (struct obstack): Assume __STDC__ for types of members
58099         chunkfun, freefun, extra_arg.
58100         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
58101         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
58102         obstack_begin, obstack_specify_allocation,
58103         obstack_specify_allocation_with_arg, obstack_chunkfun,
58104         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
58105         Remove unprototyped decls and the macros that use them.
58106         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
58107         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
58108         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
58109         (defined __STDC__ && __STDC__)]:
58110         Remove nonprototyped code.
58111         Include <stdlib.h> unconditionally.
58112         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
58113         _obstack_allocated_p, _obstack_free, obstack_free,
58114         _obstack_memory_used, print_and_abort):
58115         Define using prototypes.
58116         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
58117         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
58118         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
58119         obstack_next_free, obstack_object_size, obstack_room) [0]:
58120         Remove unused, unprototyped code.
58121
58122         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
58123
58124         * lib/physmem.c (physmem_total, physmem_available, main): Define
58125         with prototypes.
58126
58127         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
58128         (main): Define with a prototype.
58129
58130         * lib/posixver.c (getenv): Remove decl.
58131
58132         * lib/putenv.c (malloc): Returns void *, not char *.
58133         Include <string.h> unconditionally.
58134         (strchr, memcpy, NULL): Do not define.
58135
58136         * lib/readtokens.c: Include readtokens.h first, to test interface.
58137         Include <stdlib.h>, <string.h> unconditionally.
58138         (init_tokenbuffer): Define with a prototype.
58139
58140         * lib/regex.c (PARAMS): Remove.  All uses removed.
58141         All uses of _RE_ARGS removed, too.
58142         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58143         unconditionally.
58144         (bzero): Assume memset exists.
58145         (memcmp, memcpy, NULL): Remove.
58146         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
58147         char, or assignments to local vars of type signed char.
58148         (init_syntax_once, PREFIX(extract_number_and_incr),
58149         PREFIX(print_partial_compiled_pattern),
58150         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
58151         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
58152         PREFIX(regex_grow_registers), PREFIX(regex_compile),
58153         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
58154         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
58155         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
58156         wcs_compile_range, byte_compile_range, truncate_wchar,
58157         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
58158         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
58159         count_mbs_length, wcs_re_match_2_internal,
58160         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
58161         PREFIX(alt_match_null_string_p),
58162         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
58163         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
58164         regfree, PREFIX(extract_number)): Define with prototype.  Remove
58165         now-unnecessary declaration, if any.
58166         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
58167         regcomp, regexec):
58168         Remove now-unnecessary casts among pointer types.
58169         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
58170
58171         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
58172         (free): Remove decl.
58173
58174         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
58175
58176         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
58177         (free): Remove decl.
58178
58179         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
58180         * lib/xgetcwd.c: Likewise.
58181
58182         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
58183         (free): Remove decl.
58184
58185         * lib/strchrnul.c (strchrnul): Define with a prototype.
58186         Fix bug: c_in was not converted to char before searching.
58187
58188         The following changes are not K&R related:
58189
58190         * lib/group-member.h: Include <sys/types.h>, so that this file is
58191         self-contained.
58192         * lib/makepath.h: Likewise.
58193
58194         * lib/getusershell.c (readname, default_index, line_size, readname):
58195         Use size_t, not int, for sizes.
58196         (readname): If the size overflows, report an error instead of
58197         looping forever.
58198
58199 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58200
58201         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
58202         libc.
58203
58204 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58205
58206         * README: New section: portability guidelines.
58207
58208 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58209
58210         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
58211         C89 spec.
58212
58213 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58214
58215         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
58216
58217 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58218
58219         Assume C89 or better; remove K&R cruft.
58220         A few of these changes were first proposed by Derek Robert Price
58221         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
58222
58223         * lib/addext.c: Include <string.h> unconditionally.
58224         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
58225         Don't declare getenv or malloc.
58226
58227         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
58228         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
58229         (NULL): Remove.
58230         (find_stack_direction, alloca): Use prototypes.
58231
58232         * lib/atexit.c (atexit): Define using a prototype.
58233
58234         * lib/basename.c, dirname.c, stripslash.c:
58235         Include <string.h> unconditionally.
58236
58237         * lib/bcopy.c: Include <stddef.h>.
58238         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
58239
58240         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
58241
58242         * lib/error.h (error, error_at_line, error_print_progname)
58243         [! (defined (__STDC__) && __STDC__)]: Remove decls.
58244         * lib/error.c: Include error.h first, to check interface.
58245         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58246         (VA_START): Remove; all uses changeed to va_start.
58247         (exit, strerror): Remove decls.
58248         (error_print_progname): Prototype uncondionally.
58249         Don't include <errno.h>; no longer needed.
58250         (private_strerror): Remove.
58251         (error_tail): Always define.
58252         (error, error_at_line): Assume C89 or better; always use prototypes.
58253         * lib/fatal.c: Include "fatal.h" first, to test interface.
58254         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58255         (VA_START): Remove; all uses changed to va_start.
58256         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
58257         this case.
58258         (exit): Remove decl.
58259         (fatal): Prototype unconditionally.  Assume va_start works.
58260         Abort at end, to pacify gcc.
58261
58262         * lib/euidaccess.c (main): Define with a prototype.
58263
58264         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
58265
58266         * lib/exitfail.c: Include <stdlib.h> unconditionally.
58267
58268         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
58269         prototypes.
58270         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
58271         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
58272         (getenv): Remove decl.
58273         (fnmatch): Define using a prototype.
58274         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
58275         (FCT): Define using a prototype.
58276
58277         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
58278
58279         * lib/gethostname.c: Include <stddef.h>.
58280         (gethostname): Define with prototype.  Length is size_t, not int.
58281
58282 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58283
58284         Assume C89 or better; remove K&R cruft.
58285         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
58286         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
58287         string.h, getenv, malloc.
58288         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
58289         headers.
58290         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
58291         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
58292         do not check for strerror.
58293         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
58294         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
58295         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
58296         do not check for doprnt or vprintf.
58297         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
58298         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
58299
58300 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58301
58302         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
58303         getversion.c should have been removed then, but was accidentally
58304         preserved.
58305
58306         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
58307         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
58308
58309 2003-09-08  Karl Berry  <karl@gnu.org>
58310
58311         * config/config.sub, config.guess, srclistvars.sh: update from savannah
58312                 config, forget about prep.
58313
58314         * config/depcomp, missing: update from automake.
58315
58316 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58317
58318         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
58319         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58320
58321 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58322
58323         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
58324         copy_tm_result.  Bug reported by Simon Josefsson in
58325         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58326
58327 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58328
58329         * m4/time_r.m4: New file.
58330         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
58331         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
58332         is. Check for timegm declaration.
58333         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58334         Do not check for gmtime_r.
58335         Replace mktime if __mktime_internal does not exist and if mktime
58336         hasn't been replaced already.
58337
58338 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58339
58340         * lib/time_r.c, lib/time_r.h: New files.
58341
58342         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58343         __localtime_r.
58344         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58345         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58346
58347         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58348         __gmtime_r.
58349         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58350         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58351         Include <time_r.h>.
58352
58353         * lib/timegm.c: Switch to glibc implementation, with the following
58354         changes:
58355         [defined HAVE_CONFIG_H]: Include <config.h>.
58356         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58357         (__mktime_internal) [!defined _LIBC]: New decl.
58358         (__gmtime_r) [!defined _LIBC]: New macro and function.
58359         (timegm): Use a prototype, since gnulib assumes C89.
58360         Do not bother declaring tmp to be const, as it's not really usefu.
58361         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58362         (timegm): Declare only if HAVE_DECL_TIMEGM.
58363
58364 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58365
58366         * MODULES.html.sh (func_all_modules): Add time_r.
58367         * modules/time_r: New file.
58368         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58369         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58370
58371 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58372
58373         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58374         Bug reported by Lute Kamstra in
58375         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58376
58377         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58378         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58379         course with correspondingly smaller numbers for tomorrow and
58380         yesterday.  From Tadayoshi Funaba.  Originally installed into
58381         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58382         coreutils merge?).
58383
58384 2003-08-31  Simon Josefsson  <jas@extundo.com>
58385
58386         * modules/timegm: New file.
58387         * MODULES.html.sh (func_all_modules): Add timegm.
58388
58389 2003-08-31  Simon Josefsson  <jas@extundo.com>
58390
58391         * m4/timegm.m4: New file.
58392
58393 2003-08-31  Simon Josefsson  <jas@extundo.com>
58394
58395         * lib/timegm.h: New file.
58396         * lib/timegm.c: New file.  Based on
58397         wget-1.8.2/src/http.c:mktime_from_utc.
58398
58399 2003-08-31  Karl Berry  <karl@gnu.org>
58400
58401         * lib/argp.h: update from libc.
58402
58403 2003-08-28  Bruno Haible  <bruno@clisp.org>
58404
58405         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58406         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58407         followed by '#define fnmatch fnmatch_posix' gives an error.
58408
58409 2003-08-28  Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58412         warning on QNX, which defines O_BINARY to 000000.
58413
58414 2003-08-27  Jim Meyering  <jim@meyering.net>
58415
58416         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58417         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58418         would fail after 32.  Reported by Danny Levinson.  Details here:
58419         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58420
58421 2003-08-24  Bruno Haible  <bruno@clisp.org>
58422
58423         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58424         MSVC7 <stdio.h> is included later.
58425
58426 2003-08-22  Simon Josefsson  <jas@extundo.com>
58427
58428         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58429
58430 2003-08-20  Karl Berry  <karl@gnu.org>
58431
58432         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58433
58434 2003-08-20  Bruno Haible  <bruno@clisp.org>
58435
58436         * modules/progname: New file.
58437         * MODULES.html.sh (func_all_modules): Add progname.
58438
58439 2003-08-20  Bruno Haible  <bruno@clisp.org>
58440
58441         * lib/progname.h: New file, from GNU gettext.
58442         * lib/progname.c: New file, from GNU gettext.
58443         * lib/progreloc.c: New file, from GNU gettext.
58444
58445 2003-08-19  Jim Meyering  <jim@meyering.net>
58446
58447         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58448         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58449
58450 2003-08-19  Bruno Haible  <bruno@clisp.org>
58451
58452         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58453         more.
58454
58455 2003-08-19  Bruno Haible  <bruno@clisp.org>
58456
58457         * lib/xstrdup.c: Assume <string.h> exists.
58458
58459 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58460
58461         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58462         in makefile rules.
58463
58464 2003-08-18  Jim Meyering  <jim@meyering.net>
58465
58466         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58467         * m4/lib-ld.m4: Likewise.
58468
58469 2003-08-18  Jim Meyering  <jim@meyering.net>
58470
58471         * lib/setenv.h: Indent nested cpp directive.
58472         * lib/vasnprintf.c: Remove trailing blanks.
58473
58474 2003-08-17  Simon Josefsson  <jas@extundo.com>
58475
58476         * modules/xstrndup: New file.
58477         * MODULES.html.sh (func_all_modules): Add xstrndup.
58478
58479 2003-08-17  Simon Josefsson  <jas@extundo.com>
58480
58481         * modules/argp: Fix autoconf macro name. Add more dependencies.
58482
58483 2003-08-17  Simon Josefsson  <jas@extundo.com>
58484
58485         * m4/xstrndup.m4: New file.
58486
58487 2003-08-17  Simon Josefsson  <jas@extundo.com>
58488
58489         * m4/argp.m4: New file.
58490
58491 2003-08-17  Simon Josefsson  <jas@extundo.com>
58492             Bruno Haible  <bruno@clisp.org>
58493
58494         * lib/xstrndup.h: New file.
58495         * lib/xstrndup.c: New file.
58496
58497 2003-08-17  Bruno Haible  <bruno@clisp.org>
58498
58499         * modules/strndup (Files, Include): Add lib/strndup.h.
58500
58501 2003-08-17  Bruno Haible  <bruno@clisp.org>
58502
58503         * modules/euidaccess (Files): Add lib/euidaccess.h.
58504
58505 2003-08-17  Bruno Haible  <bruno@clisp.org>
58506
58507         * lib/strndup.h: New file.
58508
58509 2003-08-17  Bruno Haible  <bruno@clisp.org>
58510
58511         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58512         like AC_GNU_SOURCE.
58513         * modules/extensions (configure.ac): Comment out the invocation of
58514         gl_USE_SYSTEM_EXTENSIONS.
58515
58516 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58517
58518         Merges from coreutils, etc.
58519         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58520         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58521         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58522         fixing a typo.
58523         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58524         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58525
58526 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58527
58528         Document merge from coreutils.
58529         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58530         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58531         * modules/utime: Add m4/utimes-null.m4.
58532
58533 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58534
58535         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58536         space, undoing this 2003-08-12 change:
58537         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58538
58539 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58540
58541         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58542         strtoul.c from libc, undoing this 2003-08-12 change:
58543         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58544
58545 2003-08-16  Jim Meyering  <jim@meyering.net>
58546
58547         Merges from coreutils.
58548         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58549         prefix.  Adjust cache variables similarly.  Create 500 rather than
58550         just 300 files, to exercise bug on Darwin6.5, too.
58551         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58552         $missing_dir.
58553         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58554         AM_SYS_POSIX_TERMIOS.
58555         Reported by mkc@mathdogs.com.
58556         Also change use of $am_cv_sys_posix_termios
58557         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58558         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58559         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58560         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58561         in /proc/mounts until it finds one with matching device number.  This
58562         is unnecessary when the FILE argument *is* a mount point.  No stat call
58563         is necessary in that case.  So, disable the statvfs-testing code on
58564         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58565         as RedHat bug# 84846.
58566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58567         to 1MB, so as not to render systems with no stack size limit (e.g.,
58568         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58569         Include <unistd.h>.  On some systems,
58570         it is required for the definition of _SC_PAGESIZE.
58571
58572 2003-08-16  Jim Meyering  <jim@meyering.net>
58573
58574         Merge from coreutils.
58575         * lib/xstrtoimax.c: #else #if -> #elif.
58576         * lib/xstrtoumax.c: Likewise.
58577
58578 2003-08-16  Jim Meyering  <jim@meyering.net>
58579
58580         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58581         * m4/utimes.m4: Removed.
58582         * m4/utimes-null.m4: Renamed from utimes.m4.
58583
58584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58585         to 1MB, so as not to render systems with no stack size limit (e.g.,
58586         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58587         Include <unistd.h>.  On some systems,
58588         it is required for the definition of _SC_PAGESIZE.
58589
58590 2003-08-16  Jim Meyering  <jim@meyering.net>
58591         and Paul Eggert  <eggert@cs.ucla.edu>
58592
58593         Merges from coreutils, etc.
58594
58595         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58596         using the latest version from cvs.  This avoids problems with #line
58597         directives using a vendor (Sun) compiler.
58598         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58599         Don't set GETGROUPS_LIB here; now it's
58600         done via getgroups.m4's wrapper function.
58601         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58602         rather than just in sh-util/configure.in, so that the
58603         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58604         same.
58605         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58606         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58607         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58608         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58609         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58610         Remove code that is now done by the newly-required macros.
58611         Append $(EXEEXT) to DF_PROG.
58612         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58613         Do not invoke or require the following here,
58614         since prereq.m4 or some gnulib .m4 now does this for us:
58615         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58616         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58617         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58618         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58619         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58620         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58621         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58622         AC_FUNC_OBSTACK.
58623         Do not replace the following functions, as this is now the job
58624         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58625         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58626         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58627         atexit getpass, strdup, getpagesize.
58628         Replace 'raise'.
58629         Do not check for the following functions, as this is now the job
58630         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58631         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58632         setregid.
58633         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58634         Check for sys/sysctl.h.
58635         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58636         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58637         of checking for ssize_t ourselves.
58638
58639         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58640         Require every macro that gnulib/modules/* suggests for us.
58641         (jm_PREREQ_ADDEXT): New macro.
58642         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58643         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58644
58645         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58646         (gl_PHYSMEM): Use it.
58647         Also check for `table' function.
58648         Check for new headers and functions.
58649         Add check for sys/sysmp.h.
58650         With suggestions from Kaveh Ghazi.
58651         Ignore headers that are present but cannot be compiled.  This
58652         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58653         C 5.4.
58654
58655 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58656
58657         Document merge from coreutils.
58658         * modules/userspec: Depend on posixver.
58659         * modules/strftime: Depend on tzset.
58660
58661 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58662
58663         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58664         rather than tab, after '#' in shell-script copyright notices.
58665         Suggested by Bruno Haible.
58666
58667 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58668
58669         * config/srclist-update: Use three spaces, rather than tab, after '#'
58670         in shell-script copyright notices.  Suggested by Bruno Haible.
58671         Remove unnecessary parenthesization in regular expression.
58672
58673 2003-08-15  Jim Meyering  <jim@meyering.net>
58674
58675         Merge from coreutils.
58676         * lib/xgethostname.c: Include <stdlib.h>.
58677         (xghostname): Don't exit for anything other than memory-related
58678         failure; just return NULL.
58679         * lib/userspec.c: Include "posixver.h".
58680         (parse_user_spec): Accept `.' as a separator only
58681         in pre-POSIX-200112 mode.
58682         * lib/strtoimax.c: Use #elif rather than #else #if.
58683         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58684         Remove function, now that we can rely on a working tzset function.
58685         [!_LIBC]: Ensure that the required autoconf test has been run.
58686         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58687         Use underlying_strftime for %r.
58688         * lib/sha.c: Merge in some clean-up and optimization changes from
58689         glibc.
58690         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58691         Ensure that it is a multiple of 64.
58692         Rearrange loop exit tests so as to avoid performing an
58693         additional fread after encountering an error or EOF.
58694         * lib/realloc.c: Update copyright date.
58695
58696 2003-08-15  Jim Meyering  <jim@meyering.net>
58697         and Paul Eggert  <eggert@twinsun.com>
58698
58699         Merge from coreutils.
58700         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58701         member but strut utmpx does not.  Needed for AIX 4.3.3.
58702         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58703
58704 2003-08-15  Jim Meyering  <jim@meyering.net>
58705         and Paul Eggert  <eggert@cs.ucla.edu>
58706
58707         Merges from coreutils, etc.
58708         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58709         Require gl_FUNC_TZSET_CLOBBER.
58710         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58711         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58712         members.
58713
58714 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58715
58716         Help the merge from coreutils.
58717         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58718         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58719         * m4/tzset.m4: Use it too.
58720
58721 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58722
58723         * modules/tzset: New file.
58724
58725 2003-08-14  Jim Meyering  <jim@meyering.net>
58726
58727         Merges from coreutils.
58728         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58729         variable names, rather than @FNMATCH_H@.
58730         * modules/alloca: Likewise for $(ALLOCA_H).
58731
58732         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58733         the three copies of the literal target, `fnmatch.h'.
58734         * modules/alloca (alloca.h): Likewise.
58735
58736 2003-08-14  Jim Meyering  <jim@meyering.net>
58737
58738         Merge from coreutils.
58739         * m4/tzset.m4: New file.
58740         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58741         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58742         otherwise, AIX 5.1 systems would end up using the latter.
58743         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58744         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58745         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58746         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58747
58748 2003-08-14  Jim Meyering  <jim@meyering.net>
58749
58750         Merge from coreutils.
58751         * lib/obstack.h: Whitespace changes.
58752         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58753         and xcalloc return values.
58754         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58755         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58756         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58757         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58758         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58759         error from mntctl.
58760         Use mntctl's return value to drive the entry-processing loop, since
58761         we can't rely on the value of the vmt_length member in the last
58762         entry.  On some systems doing so could result in exhausting
58763         virtual memory.  Based in part on a patch from Mike Jetzer.
58764
58765 2003-08-14  Jim Meyering  <jim@meyering.net>
58766         and Paul Eggert  <eggert@twinsun.com>
58767
58768         Merges from coreutils, plus other fixes.
58769         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58770         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58771         for credits and details.  Thanks to Kaveh Ghazi for helping
58772         to keep these files in sync.
58773         (ARRAY_SIZE): Define it.
58774         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58775         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58776         (memcasecmp): Don't assume size_t fits in unsigned int.
58777         Remove casts and duplicate code.
58778         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58779         (memcpy): Remove definition.
58780         Merge in some clean-up and optimization changes from glibc.
58781         [BLOCKSIZE]: Move definition to top of file.
58782         Ensure that it is a multiple of 64.
58783         Rearrange loop exit tests so as to avoid performing an
58784         additional fread after encountering an error or EOF.
58785         * lib/md5.h (md5_uintptr): Define.
58786         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58787         return to the initial working directory.  Preserve errno
58788         for caller.
58789         * lib/idcache.c: Include "xalloc.h".
58790         (xmalloc, xrealloc): Remove decls.
58791         (getuser): Remove casts no longer required in C89.
58792         * lib/human.c: Include stdio.h, for sprintf.
58793         * lib/group-member.c: Include "xalloc.h".
58794         (xmalloc, xrealloc): Remove decls.
58795         (get_group_info): Remove casts no longer required in C89.
58796         * lib/getusershell.c (readname): Remove casts no longer required in
58797         C89.
58798         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58799         * lib/getline.c: Whitespace fix, from coreutils.
58800
58801 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58802
58803         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58804         Check for isascii.
58805
58806         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58807         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58808         Undo previous (whitespace-only) change.
58809
58810 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58811
58812         * lib/exclude.c: Include <ctype.h>
58813         (IN_CTYPE_DOMAIN): New macro.
58814         (is_space): New fn.
58815         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58816         and empty lines.
58817
58818         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58819         Undo previous (whitespace-only) change.
58820
58821 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58822
58823         * config/srclist-update: Change update back to the old behavior,
58824         leaving whitespace alone.  Use one 'sed' command rather than a
58825         pipeline.
58826         (fixlicense): Now a variable, not a function.
58827         (remove_trailing_blanks): Remove.
58828         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58829         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58830         Undo previous (whitespace-only) change.
58831
58832 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58833
58834         Merge from coreutils.
58835         * modules/euidaccess: Add lib_SOURCES, include for new
58836         file euidaccess.h
58837
58838 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58839
58840         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58841         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58842         Normalize leading white space and remove trailing white space.
58843
58844         Merge from coreutils
58845         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58846
58847         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58848         0.12.1.  These files are now being upgraded automatically by
58849         ../config/srclist-update.
58850
58851 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58852
58853         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58854         Normalize leading white space and remove trailing white space.
58855         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58856         notice, as per ../config/srclist-update.
58857
58858         Merge from coreutils.
58859         * lib/euidaccess.h: New file.
58860         * lib/euidaccess.c: Include it.
58861         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58862         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58863         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58864
58865 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58866
58867         * config/srclist-update: Add copyright notice.
58868         (remove_id_lines, remove_trailing_blanks): New constants.
58869         (fixfile): Use them to normalize spacing a bit in copied files.
58870         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58871         Normalize leading white space and remove trailing white space.
58872
58873         * config/texinfo.tex: Sync with texinfo.
58874
58875         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58876         strtoul.c from libc, to merge coreutils whitespace changes.
58877
58878         * config/srclist.txt: Get the following m4 files from gettext:
58879         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58880         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58881         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58882         wint_t.m4.
58883
58884 2003-08-12  Karl Berry  <karl@gnu.org>
58885
58886         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58887         been made.
58888
58889 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58890
58891         * modules/gnu-source, m4/gnu-source.m4:
58892         Remove; we're assuming Autoconf 2.54 or later now.
58893         Suggested by Bruno Haible.
58894         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58895
58896 2003-08-11  Bruno Haible  <bruno@clisp.org>
58897
58898         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58899
58900 2003-08-11  Bruno Haible  <bruno@clisp.org>
58901
58902         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58903         (vasnprintf): Use it instead of wcslen.
58904
58905 2003-08-11  Bruno Haible  <bruno@clisp.org>
58906
58907         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58908         value to ensure that _Bool promotes to int. Use #define for _Bool when
58909         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58910
58911 2003-08-10  Karl Berry  <karl@gnu.org>
58912
58913         * lib/regex.h: update from libc (whitespace fix).
58914
58915 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58916
58917         Merge some files from coreutils.  These changes were
58918         originally made by Jim Meyering.
58919         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58920         many older Unixes require this.
58921         * lib/alloca.c (alloca): Remove cast to argument of free;
58922         no longer needed in C89.
58923         * lib/alloca_.h, regex.h: Fix white space to match
58924         what GNU indent does.
58925
58926 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58927
58928         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58929         apparently Emacs's Unicode mode got confused before my 2003-08-05
58930         checkin.
58931
58932 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58933
58934         * m4/extensions.m4: New file.
58935         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58936         Require gl_USE_SYSTEM_EXTENSIONS.
58937         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58938         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58939
58940 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58941
58942         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58943         * modules/extensions, modules/gnu-source: New files.
58944         * modules/timespec, modules/unlocked-io: Depend on extensions.
58945
58946 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58947
58948         * modules/restrict: New file.
58949         * MODULES.html.sh (func_all_modules): Add restrict.
58950         * modules/regex: Depend on restrict.
58951
58952 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58953
58954         * m4/restrict.m4: New file.
58955         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58956
58957 2003-08-07  Bruno Haible  <bruno@clisp.org>
58958
58959         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58960         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58961
58962 2003-08-07  Bruno Haible  <bruno@clisp.org>
58963
58964         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58965         makes the module 'getndelim2' compatible with the module 'getline'.
58966
58967 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58968
58969         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58970         byte with "\201" to avoid glitches when editing that source file
58971         with multi-gnome-terminal.
58972
58973 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58974
58975         * lib/bumpalloc.h: Remove.
58976
58977 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58978
58979         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58980         * modules/bumpalloc: Remove.
58981
58982 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58983
58984         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58985         GNU coding style.
58986
58987         Merge from coreutils.
58988         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58989         1. From glibc.
58990         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58991         from Karl Berry, implemented by Jim Meyering.
58992         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58993         from Dmitry V. Levin.
58994         Remove anachronistic cast of xrealloc.
58995         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58996         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58997         type. Otherwise, it wouldn't compile with at least /bin/cc on
58998         ymp-cray-unicos9.0.2.X.
58999         Combine two mostly-identical uses of alloca into one.
59000         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
59001
59002 2003-08-04  Dave Love  <d.love@dl.ac.uk>
59003
59004         [From Emacs.]
59005
59006         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
59007         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
59008         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
59009         obsolete NLIST_NAME_UNION.
59010         [__GNU__]: Undef BSD and FSCALE.
59011         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
59012
59013 2003-08-03  Paul Eggert  <eggert@twinsun.com>
59014
59015         * lib/stdbool_.h (_Bool): Make it signed char, instead of
59016         an enum type, so that it's guaranteed to promote to int.  See:
59017         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
59018
59019 2003-08-03  Karl Berry  <karl@gnu.org>
59020
59021         * config/depcomp: update from automake.
59022
59023 2003-07-31  Paul Eggert  <eggert@twinsun.com>
59024
59025         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
59026         (strerror): Don't assume that a printable int fits in 14 bytes.
59027
59028 2003-07-31  Bruno Haible  <bruno@clisp.org>
59029
59030         * modules/getpass-gnu: New file.
59031         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
59032
59033 2003-07-31  Bruno Haible  <bruno@clisp.org>
59034
59035         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
59036
59037 2003-07-24  Karl Berry  <karl@gnu.org>
59038
59039         * config/missing: update from automake.
59040
59041 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
59042             Bruno Haible  <bruno@clisp.org>
59043
59044         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
59045         * lib/getline.c (getline, getdelim): Likewise.
59046         Remove _GNU_SOURCE define; now it's defined in config.h through
59047         m4/getline.m4.
59048
59049 2003-07-23  Karl Berry  <karl@gnu.org>
59050
59051         * config/config.sub: update from prep.
59052
59053 2003-07-22  Paul Eggert  <eggert@twinsun.com>
59054
59055         * modules/xalloc (Depends-on): Add exitfail.
59056         * modules/xmemcoll: Likewise.
59057
59058 2003-07-22  Paul Eggert  <eggert@twinsun.com>
59059
59060         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
59061         over-parenthesization in macros.
59062
59063         Sync with coreutils.
59064
59065         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
59066         required by C99.
59067
59068         Use `exit_failure' for xalloc and xmemcoll instead of their own
59069         private exit-failure variables.
59070         * lib/xalloc.h (xalloc_exit_failure): Remove.
59071         * lib/xmalloc.c: Likewise.  Include exitfail.h.
59072         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
59073         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
59074         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
59075         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
59076
59077 2003-07-20  Jim Meyering  <jim@meyering.net>
59078
59079         * modules/closeout (Depends-on): Add exitfail.
59080         Suggestion from Bruno Haible.
59081
59082 2003-07-19  Karl Berry  <karl@gnu.org>
59083
59084         * config/config.sub: update from prep.
59085
59086 2003-07-18  Paul Eggert  <eggert@twinsun.com>
59087
59088         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
59089         Remove.
59090         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
59091         to test that it can stand by itself.  Include "exitfail.h".
59092         Clients should set exit_failure instead.
59093         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
59094
59095 2003-07-18  Bruno Haible  <bruno@clisp.org>
59096
59097         * modules/getndelim2: New file.
59098         * modules/getline: Share files with module getndelim2.
59099         * modules/getnline: Depend on getndelim2 instead of sharing files with
59100         it. Add getnline.c to lib_SOURCES.
59101         * MODULES.html.sh (func_all_modules): Add getndelim2.
59102
59103 2003-07-18  Bruno Haible  <bruno@clisp.org>
59104
59105         * m4/getndelim2.m4: New file.
59106         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
59107         invoke gl_PREREQ_GETNDELIM2.
59108         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
59109         gl_PREREQ_GETNDELIM2.
59110         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
59111         gl_GETNDELIM2.
59112
59113 2003-07-18  Bruno Haible  <bruno@clisp.org>
59114
59115         * lib/getndelim2.h: New file.
59116         * lib/getndelim2.c: Make into a module of its own. Include config.h,
59117         getndelim2.h.
59118         (getndelim2): Make non-static. Change return type to ssize_t.
59119         * lib/getline.h: Change argument names.
59120         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
59121         * lib/getnline.c: Include getndelim2.h.
59122
59123 2003-07-18  Andreas Schwab  <schwab@suse.de>
59124
59125         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
59126
59127 2003-07-17  Karl Berry  <karl@gnu.org>
59128
59129         * config/config.sub: update from prep.
59130
59131 2003-07-17  Bruno Haible  <bruno@clisp.org>
59132
59133         * modules/getnline: New file.
59134         * modules/getline: Add lib/getndelim2.c to source file list.
59135         * MODULES.html.sh (func_all_modules): Add getnline.
59136
59137 2003-07-17  Bruno Haible  <bruno@clisp.org>
59138
59139         * m4/getnline.m4: New file.
59140
59141 2003-07-17  Bruno Haible  <bruno@clisp.org>
59142
59143         * m4/Makefile.am.in: Remove file.
59144         * m4/Makefile.am: Remove file.
59145         * m4/Makefile.in: Remove file.
59146
59147 2003-07-17  Bruno Haible  <bruno@clisp.org>
59148
59149         * lib/getnline.h: New file.
59150         * lib/getnline.c: New file.
59151         * lib/getndelim2.c: New file, extracted from getline.c.
59152         (getndelim2): Renamed from getdelim2, with added nmax argument.
59153         * lib/getline.c: Include getndelim2.c.
59154         (getdelim2): Moved out to getndelim2.c.
59155         (getline, getdelim): Update.
59156
59157 2003-07-17  Bruno Haible  <bruno@clisp.org>
59158
59159         * lib/Makefile.am: Remove file.
59160         * lib/Makefile.in: Remove file.
59161
59162 2003-07-17  Bruno Haible  <bruno@clisp.org>
59163
59164         * configure.in: Remove file.
59165         * Makefile.in: Remove file.
59166
59167 2003-07-17  Bruno Haible  <bruno@clisp.org>
59168
59169         * MODULES.html.sh: Put the </BODY> right before </HTML>.
59170
59171 2003-07-16  Karl Berry  <karl@gnu.org>
59172
59173         * config/srclist-update: was running fixlicense twice, which caused
59174                 texinfo.tex to be nullified for some reason.  Simplify,
59175                 $gplsrc is no longer needed as far as I can see?
59176
59177 2003-07-16  Jim Meyering  <jim@meyering.net>
59178
59179         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
59180
59181 2003-07-15  Paul Eggert  <eggert@twinsun.com>
59182
59183         * config/srclist.txt: Get the following files from gettext-runtime/intl
59184         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
59185         ref-del.sin.  From Bruno Haible.
59186         * config/srclist-update (fixfile): Change grep pattern again, since the
59187         previous fix didn't work (there was another trailing $).  Use
59188         '[$]' to escape the $s.
59189
59190 2003-07-15  Karl Berry  <karl@gnu.org>
59191
59192         * lib/vasnprintf.c: update from gettext.
59193
59194 2003-07-15  Karl Berry  <karl@gnu.org>
59195
59196         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
59197         gets expanded when surrounded by '$'.
59198
59199 2003-07-15  Jim Meyering  <jim@meyering.net>
59200
59201         * modules/save-cwd: Don't depend on error.  From Derek Price.
59202
59203 2003-07-15  Jim Meyering  <jim@meyering.net>
59204
59205         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
59206
59207 2003-07-14  Simon Josefsson  <jas@extundo.com>
59208
59209         * modules/mempcpy: New file.
59210         * MODULES.html.sh (func_all_modules): Add mempcpy.
59211
59212 2003-07-14  Simon Josefsson  <jas@extundo.com>
59213
59214         * m4/mempcpy.m4: New file.
59215
59216 2003-07-14  Simon Josefsson  <jas@extundo.com>
59217
59218         * lib/mempcpy.h: New file.
59219         * lib/mempcpy.c: New file.
59220
59221 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59222
59223         * modules/getdate, modules/posixtm: Depend on mktime.
59224
59225 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59226
59227         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
59228         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
59229         unicodeio.c, unicodeio.h, unlocked-io.h:
59230         Switch from LGPL to GPL.
59231
59232 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59233
59234         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
59235         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
59236         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
59237         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
59238         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
59239         updated automatically by ../config/srclist-update.  This changes
59240         their license from LPGL to GPL.
59241
59242 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59243
59244         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
59245         assumed to refer to the root of the most recent stable gettext version.
59246         * config/srclistvars.sh: Add defaults for eggert.
59247         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
59248         Match "This program" as well as "The program".  This is needed
59249         for gettext.
59250
59251 2003-07-14  Jim Meyering  <jim@meyering.net>
59252
59253         Don't emit diagnostics.  Let callers do that.
59254         * lib/save-cwd.c: Don't include "error.h".
59255         (save_cwd): Don't call error.  Ensure that errno is valid
59256         when returning nonzero.
59257
59258         * lib/save-cwd.h (restore_cwd): Update prototype.
59259         * lib/save-cwd.c (restore_cwd): Remove two parameters.
59260         Simplify.  Don't call error upon failure.  Let callers do that.
59261         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
59262         when auditing is enabled.  But don't bother updating the #if.
59263
59264 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
59265
59266         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
59267         it breaks C++ compilation.
59268         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
59269
59270 2003-07-10  Simon Josefsson  <jas@extundo.com>
59271
59272         * modules/strchrnul (Makefile.am): Add strchrnul.h.
59273
59274 2003-07-10  Jim Meyering  <jim@meyering.net>
59275
59276         * m4/clock_time.m4: Remove trailing blank.
59277         * m4/intmax_t.m4: Likewise.
59278
59279 2003-07-10  Jim Meyering  <jim@meyering.net>
59280
59281         * lib/vasnprintf.c: Remove trailing blanks.
59282         Make cpp indentation consistent.
59283
59284 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59285
59286         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
59287         posixver.c, strftime.c, strnlen.c, strverscmp.c:
59288         Switch from LGPL to GPL.
59289
59290 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59291
59292         * config/srclist.txt: Sort sublists.  Add
59293         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
59294         that differ from gnulib for one reason or another; we'd like this list
59295         to be smaller but for now let's document what we have.
59296
59297 2003-07-08  Paul Eggert  <eggert@twinsun.com>
59298
59299         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
59300         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
59301         and sweeter "eval x=$x".
59302         * config/srclist.txt: Get lib/argp* from glibc.
59303
59304 2003-07-07  Paul Eggert  <eggert@twinsun.com>
59305
59306         * lib/mktime.c: Fix some boundary cases and remove need for floating
59307         point.
59308
59309         Issue a compile-time diagnostic if time_t is floating point, or if
59310         two's complement arithmetic is not in effect, or if arithmetic
59311         right shift does not propagate the sign.  These assumptions were
59312         all in the original code but they weren't checked.
59313
59314         (TIME_T_MIDPOINT, verify): New macros.
59315         (__isleap): Remove; it has integer overflow problems.
59316         (leapyear): New function, without those problems.
59317         (ydhms_tm_diff): Remove; splitting into two parts.
59318         (ydhms_diff): New function, containing the arithmetic part of
59319         the old ydhms_tm_diff function.  Issue a compile-time
59320         diagnostic if we are not using C99 integer division.
59321         Avoid casts when possible.
59322         (guess_time_tm): New function, containing the checking part of
59323         the old ydhms_tm_diff function.  Return the new value, rather than
59324         the difference between it and the old.  Accept a new argument T
59325         so that *T specifies the old value.  Check for overflow in the result.
59326
59327         (__mktime_internal): Use a time_t offset, not a long int offset.
59328         This undoes the 2003-06-04 change, which is no longer needed now
59329         that we have better overflow checking.
59330         (localtime_offset): Likewise.
59331
59332         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59333         and long are 64-bit but int is only 32-bit.
59334         (ydhms_diff): Use long int to store year1 and yday1.
59335         Issue a compile-time diagnostic if long int is not wide enough.
59336
59337         (__mktime_internal): Use long int to store adjusted year and yday.
59338         Use plain C rather than preprocessor commands, if that doesn't
59339         affect efficiency.
59340         Check for overflow (and try to repair) after each probe
59341         rather than checking only at the very end.  This avoids some bugs
59342         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59343         does not equal GMT offset at maximum time).
59344         Use integer to check for overflow rather than floating point; this
59345         is more portable to non-IEEE hosts, and is a tad faster.
59346         When we detect that we are oscillating between two values,
59347         don't check whether tm_isdst has the requested value, since
59348         we already know the answer.  When tm_isdst has the wrong value,
59349         use a different heuristic to find the right one, based on the
59350         extreme values actually observed in practice in tz2003a,
59351         rather than the (overly optimistic) "previous 3 calendar quarters".
59352
59353         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59354         "T const" to accommodate glibc style.
59355         (check_result): Use less-confusing report format.  "long" -> "long int.
59356         (main): Likewise.
59357         Don't loop if the iteration overflows time_t.
59358         Allow a negative step in the iteration.
59359
59360 2003-07-06  Karl Berry  <karl@gnu.org>
59361
59362         * config/depcomp: update from automake.
59363         * config/config.sub: update from prep.
59364
59365 2003-07-03  Karl Berry  <karl@gnu.org>
59366
59367         * config/config.guess: update from prep.
59368
59369 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59370
59371         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59372         xreadlink.c now includes it unconditionally.
59373
59374 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59375
59376         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59377         having it depend on HAVE_SYS_TYPES_H.
59378
59379 2003-07-01  Bruno Haible  <bruno@clisp.org>
59380
59381         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59382         <sys/types.h> should be sufficient.
59383         Reported by Paul Eggert.
59384
59385 2003-06-26  Karl Berry  <karl@gnu.org>
59386
59387         * config/depcomp: update from automake.
59388
59389 2003-06-26  Bruno Haible  <bruno@clisp.org>
59390
59391         * modules/human: Depend on module stdbool.
59392
59393 2003-06-25  Bruno Haible  <bruno@clisp.org>
59394
59395         * modules/readlink: New file.
59396         * modules/xreadlink: Depend on it.
59397         * MODULES.html.sh (func_all_modules): Add readlink.
59398
59399 2003-06-25  Bruno Haible  <bruno@clisp.org>
59400
59401         * m4/readlink.m4: New file.
59402
59403 2003-06-25  Bruno Haible  <bruno@clisp.org>
59404
59405         * lib/readlink.c: New file.
59406
59407 2003-06-22  Karl Berry  <karl@gnu.org>
59408
59409         * config/srclist.txt: update mkinstalldirs from automake.
59410         * config/mkinstalldirs: update.
59411
59412 2003-06-22  Bruno Haible  <bruno@clisp.org>
59413
59414         Portability to mingw32.
59415         * m4/ssize_t.m4: New file, from GNU gettext.
59416         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59417         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59418
59419 2003-06-22  Bruno Haible  <bruno@clisp.org>
59420
59421         * modules/safe-read: Add m4/ssize_t.m4.
59422         * modules/xreadlink: Add m4/ssize_t.m4.
59423
59424 2003-06-20  Bruno Haible  <bruno@clisp.org>
59425
59426         Assume C89, so PARAMS isn't needed.
59427         * lib/unicodeio.h (PARAMS): Remove.
59428         * lib/unicodeio.c: Don't use PARAMS.
59429
59430 2003-06-18  Karl Berry  <karl@gnu.org>
59431
59432         * config/config.{guess,sub}: update from prep.
59433
59434 2003-06-18  Jim Meyering  <jim@meyering.net>
59435
59436         Merge changes from coreutils.
59437         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59438         Remove explicit declarations of xmalloc and realloc.
59439         Include xalloc.h.
59440         (read_utmp): Remove anachronistic cast of xmalloc.
59441
59442 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59443
59444         Assume C89, so PARAMS isn't needed.
59445         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59446         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59447         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59448         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59449         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59450         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59451         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59452         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59453         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59454         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59455         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59456         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59457         no longer needed. Anyway, config.h should always be included before any
59458         other file.
59459
59460 2003-06-11  Simon Josefsson  <jas@extundo.com>
59461
59462         * modules/sysexits: New file.
59463         * MODULES.html.sh (func_all_modules): Add sysexits.
59464
59465 2003-06-11  Simon Josefsson  <jas@extundo.com>
59466
59467         * lib/sysexit_.h: New file.
59468
59469 2003-06-11  Derek Price  <derek@ximbiot.com>
59470
59471         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59472         necessary.
59473
59474 2003-06-11  Bruno Haible  <bruno@clisp.org>
59475
59476         * m4/sysexits.m4: New file.
59477
59478 2003-06-10  Simon Josefsson  <jas@extundo.com>
59479
59480         * lib/argp.h: New file, from glibc.
59481         * lib/argp-ba.c: New file, from glibc.
59482         * lib/argp-eexst.c: New file, from glibc.
59483         * lib/argp-fmtstream.c: New file, from glibc.
59484         * lib/argp-fmtstream.h: New file, from glibc.
59485         * lib/argp-fs-xinl.c: New file, from glibc.
59486         * lib/argp-help.c: New file, from glibc.
59487         * lib/argp-namefrob.h: New file, from glibc.
59488         * lib/argp-parse.c: New file, from glibc.
59489         * lib/argp-pv.c: New file, from glibc.
59490         * lib/argp-pvh.c: New file, from glibc.
59491         * lib/argp-xinl.c: New file, from glibc.
59492
59493 2003-06-10  Simon Josefsson  <jas@extundo.com>
59494
59495         * modules/strchrnul: New file.
59496
59497 2003-06-10  Simon Josefsson  <jas@extundo.com>
59498
59499         * modules/argp: New file.
59500
59501 2003-06-10  Simon Josefsson  <jas@extundo.com>
59502
59503         * m4/strchrnul.m4: New file.
59504
59505 2003-06-10  Simon Josefsson  <jas@extundo.com>
59506
59507         * lib/strchrnul.h: New file.
59508         * lib/strchrnul.c: New file.
59509
59510 2003-06-10  Bruno Haible  <bruno@clisp.org>
59511
59512         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59513
59514 2003-06-07  Karl Berry  <karl@gnu.org>
59515
59516         * config/config.{guess,sub}: update from prep.
59517
59518 2003-06-07  Jim Meyering  <jim@meyering.net>
59519
59520         * modules/strtod: Use $(...) notation, not @...@ for
59521         AC_REPLACE'd variables.
59522         * modules/localcharset: Likewise.
59523
59524 2003-06-07  Jim Meyering  <jim@meyering.net>
59525
59526         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59527         in place of my name in the copyright comment.
59528         Remove definition and uses of __P.
59529
59530         From coreutils.
59531         * lib/stat.c: Don't declare xmalloc explicitly.
59532         Instead, include "xalloc.h".
59533         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59534         xrealloc, and xcalloc return values.
59535         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59536         Improve comment.
59537         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59538
59539 2003-06-07  Bruno Haible  <bruno@clisp.org>
59540
59541         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59542         avoid AC_CONFIG_LINKS.
59543         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59544         fnmatch.h, to avoid AC_CONFIG_LINKS.
59545         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59546
59547 2003-06-07  Bruno Haible  <bruno@clisp.org>
59548
59549         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59550         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59551         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59552         directory.
59553         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59554         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59555         directory.
59556
59557 2003-06-06  Jim Meyering  <jim@meyering.net>
59558
59559         Merge from coreutils.
59560         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59561         Consolidate declarations and initializations of *_base* locals.
59562
59563         Merge from coreutils.
59564         This avoids a core dump on systems without GNU putenv,
59565         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59566         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59567         (unsetenv): New static function, from GNU libc.
59568         (rpl_putenv): Use it.
59569
59570         * lib/modechange.c: Remove trailing blanks.
59571
59572         Merge from coreutils.
59573         * lib/fsusage.c: Remove declaration of statfs.
59574         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59575
59576         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59577
59578 2003-06-06  Jim Meyering  <jim@meyering.net>
59579
59580         * lib/stdbool_.h: Renamed from stdbool.h.in.
59581
59582 2003-06-06  Jim Meyering  <jim@meyering.net>
59583             Bruno Haible  <bruno@clisp.org>
59584
59585         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59586         Adjust Makefile.am snippet not to redirect directly to target.
59587         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59588
59589 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59590
59591         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59592         mismatch, look in future quarters as well as past.  This fixes a
59593         bug when processing fall-backwards gaps immediately after a long
59594         period of daylight-saving time.
59595
59596         * lib/mktime.c: Assume freestanding C89 or better.
59597         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59598         (__P): Remove; not used.
59599         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59600         (mktime, not_equal_tm, print_tm, check_result,
59601         main): Use prototypes.  Use const * where appropriate.
59602         (main): Fix typo in testing code that uncovered by above changes.
59603         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59604
59605 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59606
59607         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59608         locale.h, localeconv.  This merges changes from coreutils.
59609
59610         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59611         It can be removed after the next Autoconf is released.
59612         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59613         needed.
59614
59615 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59616
59617         * lib/mktime.c: Fix Debian bug 177940
59618         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59619         (localtime_offset): Now long int, not time_t, because we want it
59620         to be guaranteed to be signed.  All uses changed.
59621         (__mktime_internal): If overflow would occur when adding offset,
59622         don't add it.
59623
59624         Merge 'human' changes from coreutils.  Rewrite to support
59625         locale-specific notations like thousands separators.
59626         * lib/human.c: Simplify authorship notice.
59627         Include human.h immediately after config.h.
59628         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59629         <limits.h>: Do not include, since human.h does.
59630         (SIZE_MAX, UINTMAX_MAX): New macros.
59631         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59632         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59633         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59634         (power_letter): Renamed from suffixes.
59635         (generate_suffix_backwards): Remove.
59636         (adjust_value): Now takes int style (because of human.h changes)
59637         and long double value (for greater precision on some platforms).
59638         (group_number): New function.
59639         (human_readable): Use it.  Use integer options, not enum.
59640         Put the options before the sizes in the arg list.
59641         Support all the new options.
59642         The old human_readable function has been removed;
59643         use inttostr.h instead.
59644         (human_readable, default_block_size, humblock):
59645         Use uintmax_t, not int, for block sizes.
59646         (human_readable_inexact, block_size_types): Remove.
59647         (block_size_opts): New constant.
59648         (human_options): Renamed from human_block_size, with new signature
59649         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59650         * lib/human.h: Add copyright and authorship notice.
59651         Include <limits.h> and <stdbool.h> unconditionally.
59652         (PARAMS): Remove.  All uses removed.
59653         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59654         (enum human_inexact_style): Remove tag; now a nameless enum.
59655         (human_floor, human_ceiling, human_round_to_even): Now have
59656         values 2, 0, 1 rather than -1, 1, 0.
59657         (human_group_digits, human_suppress_point_zero, human_autoscale,
59658         human_base_1024, human_SI, human_B): New constants.
59659         (human_readable_inexact, human_block_size): Remove.
59660         (human_readable): Size args are now uintmax_t, not int.
59661         (human_options): New decl.
59662
59663         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59664         unnecessary now that we assume C89 or better.  This change
59665         imported from coreutils.
59666
59667         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59668         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59669         in the 2003-05-30 sync from glibc.
59670
59671         .h files should stand alone, but we shouldn't include <sys/types.h>
59672         if we can get away with just <stddef.h>.
59673
59674         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59675         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59676         rather than <sys/types.h>, as we merely need size_t.
59677         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59678         to get size_t.
59679         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59680         Include <stdio.h>, to get FILE.
59681         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59682         memcasecmp.h has included <stddef.h> and all we need is size_t.
59683         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59684         our interface, instead of including <sys/types.h>
59685
59686 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59687
59688         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59689         now, as glibc mktime is buggy on non-glibc systems.
59690
59691 2003-06-03  Karl Berry  <karl@gnu.org>
59692
59693         * config/config.sub: update from prep.
59694
59695 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59696
59697         [from coreutils]
59698         Fix some minor time-related bugs with POSIX time arguments.
59699         Some valid time stamps were being rejected (notably -1, and
59700         time stamps before 1900 on 64-bit hosts).  And some invalid
59701         time stamps were being accepted, e.g. September 31.
59702
59703         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59704         that we can return (time_t) -1 successfully.
59705         * lib/posixtm.c: Likewise.
59706         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59707         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59708         (t): Remove static var.
59709         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59710         of static var.  All uses changed.
59711         (year): Do not reject years before 1900; they can occur with
59712         64-bit time_t.
59713         (posix_time_parse): Do not check for out-of-range components;
59714         that is now the caller's responsibility, since our checks were
59715         only approximations.
59716         (posixtime): Use mktime to check for out-of-range components,
59717         since it knows them exactly.
59718         If mktime returns (time_t) -1, check whether an error actually occurred
59719         by invoking localtime on -1.
59720         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59721         posixtime failures better.
59722         Improve the test data (in comments only).
59723
59724 2003-06-02  Karl Berry  <karl@gnu.org>
59725
59726         * config/mkinstalldirs (version): new variable.
59727         (--version): new option.
59728         (usage): improve message.
59729
59730 2003-05-30  Karl Berry  <karl@gnu.org>
59731
59732         * lib/mktime.c: update from libc.
59733
59734 2003-05-30  Bruno Haible  <bruno@clisp.org>
59735
59736         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59737         * config/config.rpath: Upgrade to gettext-0.12.1.
59738
59739 2003-05-30  Bruno Haible  <bruno@clisp.org>
59740
59741         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59742         * m4/nls.m4: New file, from gettext-0.12.1.
59743         * m4/po.m4: New file, from gettext-0.12.1.
59744         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59745
59746 2003-05-30  Bruno Haible  <bruno@clisp.org>
59747
59748         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59749         * lib/localcharset.h: Likewise.
59750         * lib/localcharset.c: Likewise.
59751
59752 2003-05-29  Karl Berry  <karl@gnu.org>
59753
59754         * config/config.rpath: update from gettext.
59755
59756 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59757
59758         Assume the headers required for C89 freestanding compilers.
59759         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59760         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59761         * m4/human.m4 (gl_HUMAN): Likewise.
59762         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59763         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59764         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59765         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59766         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59767         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59768
59769 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59770
59771         Assume the headers required for C89 freestanding compilers.
59772         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59773         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59774         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59775         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59776         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59777         define, since <limits.h> is guaranteed to do that.
59778         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59779         * lib/exclude.c: Include <stdbool.h> unconditionally.
59780         * lib/tempname.c: Include <stddef.h> unconditionally.
59781         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59782         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59783         <stddef.h> does that.
59784         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59785         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59786         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59787         needed.
59788         * lib/xstrtol.c: Likewise.
59789         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59790         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59791
59792         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59793         warnings on some platforms.
59794
59795         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59796         arbitrarily.
59797
59798 2003-05-26  Jim Meyering  <jim@meyering.net>
59799
59800         Merge in a change from coreutils:
59801         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59802         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59803         that condition, rather than `-1' which is slightly misleading.
59804         Change the name of the cache variable to have the gl_ prefix.
59805         Prompted by a patch from Richard Dawe for DJGPP.
59806
59807 2003-05-24  Karl Berry  <karl@gnu.org>
59808
59809         * config/config.guess: update from prep.
59810
59811 2003-05-22  Karl Berry  <karl@gnu.org>
59812
59813         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59814
59815 2003-05-20  Karl Berry  <karl@gnu.org>
59816
59817         * config/config.guess: update from prep.
59818
59819 2003-05-18  Karl Berry  <karl@gnu.org>
59820
59821         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59822         might actually be set by the user.
59823
59824         * config/depcomp, install-sh, mdate-sh: update from automake.
59825
59826 2003-05-17  Bruno Haible  <bruno@clisp.org>
59827
59828         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59829         invalid expansion for AC_EGREP_CPP.
59830         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59831         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59832         Suggested by Akim Demaille <akim@epita.fr> in
59833         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59834
59835 2003-05-12  Jim Meyering  <jim@meyering.net>
59836
59837         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59838         the space-padded-by-default conversion specifiers, %e, %k, %l.
59839
59840 2003-05-12  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59843         the string is longer than 4 KB.
59844
59845 2003-05-11  Karl Berry  <karl@gnu.org>
59846
59847         * config/config.{guess,sub}: update from prep.
59848
59849 2003-05-09  Bruno Haible  <bruno@clisp.org>
59850
59851         * modules/error: Add m4/strerror_r.m4 to file list.
59852
59853 2003-05-03  Bruno Haible  <bruno@clisp.org>
59854
59855         Upgrade to Unicode-4.0.
59856         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59857         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59858         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59859         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59860         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59861         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59862         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59863         Change width of U+E0100..U+E01EF from 1 to 0.
59864
59865 2003-04-25  Jim Meyering  <jim@meyering.net>
59866
59867         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59868         of type size_t, not int.
59869
59870 2003-04-25  Bruno Haible  <bruno@clisp.org>
59871
59872         * lib/copy-file.c: Include <stddef.h>, for size_t.
59873
59874 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59875
59876         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59877         code which expansion is under static control.  Patch imported from
59878         Akim Demaille's patch to Bison; see
59879         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59880
59881 2003-04-14  Bruno Haible  <bruno@clisp.org>
59882
59883         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59884
59885 2003-04-11  Jim Meyering  <jim@meyering.net>
59886
59887         Merge changes from Coreutils.
59888
59889         2003-03-22  Jim Meyering  <jim@meyering.net>
59890
59891         * lib/strftime.c (widen): Cast alloca return value to proper type.
59892
59893         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59894
59895         From GNU libc.
59896         * lib/strftime.c (my_strftime): Handle very large width
59897         specifications for numeric values correctly.  Improve checks for
59898         overflow.
59899
59900         2003-01-19  Jim Meyering  <jim@meyering.net>
59901
59902         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59903         definitions.
59904         (nl_get_alt_digit) [! defined my_strftime]: Define.
59905         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59906         _nl_get_alt_digit and _nl_get_walt_digit.
59907
59908         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59909         libc. These changes have no effect outside of _LIBC.
59910
59911 2003-04-10  Bruno Haible  <bruno@clisp.org>
59912
59913         * modules/findprog: New file.
59914         * MODULES.html.sh (func_all_modules): Add it.
59915
59916 2003-04-10  Bruno Haible  <bruno@clisp.org>
59917
59918         * m4/findprog.m4: New file.
59919         * m4/eaccess.m4: New file.
59920
59921 2003-04-10  Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/findprog.h: New file, from GNU gettext.
59924         * lib/findprog.c: New file, from GNU gettext.
59925
59926 2003-04-05  Jim Meyering  <jim@meyering.net>
59927
59928         Merge changes from Coreutils.
59929
59930         * lib/exclude.h (PARAMS): Remove definition and uses.
59931         * lib/exclude.c: Remove uses of `PARAMS'.
59932
59933         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59934         Add test-cases for DOS filenames. Declare program_name.
59935         (main): Set up program_name.  Patch by Rich Dawe.
59936
59937         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59938         error from mntctl.
59939         Use mntctl's return value to drive the entry-processing loop, since
59940         we can't rely on the value of the vmt_length member in the last
59941         entry.  On some systems doing so could result in exhausting
59942         virtual memory.  Based in part on a patch from Mike Jetzer.
59943
59944 2003-04-04  Bruno Haible  <bruno@clisp.org>
59945
59946         * modules/linebreak: New file.
59947         * MODULES.html.sh (func_all_modules): Add it.
59948
59949 2003-04-04  Bruno Haible  <bruno@clisp.org>
59950
59951         * m4/linebreak.m4: New file.
59952
59953 2003-04-04  Bruno Haible  <bruno@clisp.org>
59954
59955         * lib/linebreak.h: New file, from GNU gettext.
59956         * lib/linebreak.c: New file, from GNU gettext with slight
59957         modifications.
59958         * lib/lbrkprop.h: New file, from GNU gettext.
59959
59960 2003-04-03  Bruno Haible  <bruno@clisp.org>
59961
59962         * modules/utf8-ucs4: New file.
59963         * modules/utf16-ucs4: New file.
59964         * modules/ucs4-utf8: New file.
59965         * modules/ucs4-utf16: New file.
59966         * MODULES.html.sh (func_all_modules): Add them.
59967
59968 2003-04-03  Bruno Haible  <bruno@clisp.org>
59969
59970         * m4/utf-ucs4.m4: New file.
59971         * m4/ucs4-utf.m4: New file.
59972
59973 2003-04-03  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/utf8-ucs4.h: New file, from GNU gettext.
59976         * lib/utf16-ucs4.h: New file, from GNU gettext.
59977         * lib/ucs4-utf8.h: New file, from GNU gettext.
59978         * lib/ucs4-utf16.h: New file, from GNU gettext.
59979
59980 2003-04-02  Bruno Haible  <bruno@clisp.org>
59981
59982         * modules/binary-io: New file.
59983         * MODULES.html.sh (func_all_modules): Add it.
59984
59985 2003-04-02  Bruno Haible  <bruno@clisp.org>
59986
59987         * lib/binary-io.h: New file, from GNU gettext.
59988
59989 2003-04-01  Bruno Haible  <bruno@clisp.org>
59990
59991         * modules/pathname: New file.
59992         * MODULES.html.sh (func_all_modules): Add it.
59993
59994 2003-04-01  Bruno Haible  <bruno@clisp.org>
59995
59996         * lib/pathname.h: New file, from GNU gettext.
59997         * lib/concatpath.c: New file, from GNU gettext.
59998
59999 2003-03-30  Bruno Haible  <bruno@clisp.org>
60000
60001         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
60002
60003 2003-03-30  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
60006         function chown() doesn't exist.
60007
60008 2003-03-28  Bruno Haible  <bruno@clisp.org>
60009
60010         * modules/copy-file: New file.
60011         * MODULES.html.sh (func_all_modules): Add it.
60012
60013 2003-03-28  Bruno Haible  <bruno@clisp.org>
60014
60015         * m4/copy-file.m4: New file.
60016
60017 2003-03-28  Bruno Haible  <bruno@clisp.org>
60018
60019         * lib/copy-file.h: New file, from GNU gettext.
60020         * lib/copy-file.c: New file, from GNU gettext.
60021
60022 2003-03-18  Jim Meyering  <jim@meyering.net>
60023
60024         * lib/quote.c (quote_n): Fix typo in comment.
60025
60026 2003-03-18  Bruno Haible  <bruno@clisp.org>
60027
60028         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
60029         checking.
60030         * m4/onceonly_2_57.m4: Likewise.
60031
60032 2003-03-17  Bruno Haible  <bruno@clisp.org>
60033
60034         * m4/onceonly.m4: Require autoconf 2.54 or newer.
60035         (m4_quote): Remove macro.
60036         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
60037
60038 2003-03-14  Jim Meyering  <jim@meyering.net>
60039
60040         Merge changes from Coreutils.
60041         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
60042         to be const, in order to avoid warnings.
60043         (obstack_room): Likewise.
60044         (obstack_empty_p): Likewise.
60045
60046 2003-03-14  Bruno Haible  <bruno@clisp.org>
60047
60048         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
60049         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
60050
60051 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60052
60053         Merge changes from Bison.
60054         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
60055         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
60056         when compiling Bison 1.875's `bitset bset = obstack_alloc
60057         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
60058         * lib/hash.c: Include <stdbool.h> unconditionally.
60059
60060 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60061
60062         * m4/onceonly.m4 (m4_quote): New macro.
60063         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
60064         Quote AC_FOREACH variable-expansions properly.
60065
60066 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60067
60068         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
60069
60070 2003-03-09  Paul Eggert  <eggert@twinsun.com>
60071
60072         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
60073         Reported by Bruce Becker; see:
60074         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
60075
60076 2003-03-03  Paul Eggert  <eggert@twinsun.com>
60077             Bruno Haible  <bruno@clisp.org>
60078
60079         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
60080         Reported by John Hughes, see
60081         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
60082
60083 2003-02-20  Bruno Haible  <bruno@clisp.org>
60084
60085         * MODULES.html.sh (func_all_modules): Add poll.
60086
60087 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60088
60089         * modules/poll: New file.
60090
60091 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60092
60093         * lib/poll_.h: New file.
60094         * lib/poll.c: New file.
60095
60096 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60097
60098         * m4/poll.m4: New file.
60099
60100 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60101
60102         * modules/mathl: New file.
60103
60104 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60105
60106         * lib/mathl.h: New file.
60107         * lib/acosl.c: New file.
60108         * lib/asinl.c: New file.
60109         * lib/atanl.c: New file.
60110         * lib/ceill.c: New file.
60111         * lib/cosl.c: New file.
60112         * lib/expl.c: New file.
60113         * lib/floorl.c: New file.
60114         * lib/frexpl.c: New file.
60115         * lib/ldexpl.c: New file.
60116         * lib/logl.c: New file.
60117         * lib/sincosl.c: New file.
60118         * lib/sinl.c: New file.
60119         * lib/sqrtl.c: New file.
60120         * lib/tanl.c: New file.
60121         * lib/trigl.c: New file.
60122         * lib/trigl.h: New file.
60123
60124 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60125
60126         * m4/mathl.m4: New file.
60127
60128 2003-02-18  Bruno Haible  <bruno@clisp.org>
60129
60130         * MODULES.html.sh (func_all_modules): Add mathl.
60131
60132 2003-02-17  Bruno Haible  <bruno@clisp.org>
60133
60134         * modules/mkdtemp: New module.
60135         * MODULES.html.sh (func_all_modules): Add it.
60136
60137 2003-02-17  Bruno Haible  <bruno@clisp.org>
60138
60139         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
60140
60141 2003-02-17  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/mkdtemp.h: New file, from GNU gettext.
60144         * lib/mkdtemp.c: New file, from GNU gettext.
60145
60146 2003-02-02  Jim Meyering  <jim@meyering.net>
60147
60148         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
60149         e.g. glibc-2.2.93.
60150
60151 2003-01-31  Bruno Haible  <bruno@clisp.org>
60152
60153         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
60154         'rpl_rename'.
60155         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
60156         'rpl_strnlen'.
60157         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
60158         'rpl_strtod'.
60159         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
60160         'rpl_utime'.
60161
60162 2003-01-31  Bruno Haible  <bruno@clisp.org>
60163
60164         * lib/rename.c: #undef rename before defining rpl_rename.
60165         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
60166
60167 2003-01-30  Bruno Haible  <bruno@clisp.org>
60168
60169         * modules/vasnprintf, modules/vasprintf: New modules.
60170         * MODULES.html.sh (func_all_modules): Add them.
60171
60172 2003-01-30  Bruno Haible  <bruno@clisp.org>
60173
60174         * m4/signed.m4: New file, from GNU gettext.
60175         * m4/longdouble.m4: New file, from GNU gettext.
60176         * m4/wchar_t.m4: New file, from GNU gettext.
60177         * m4/wint_t.m4: New file, from GNU gettext.
60178         * m4/vasnprintf.m4: New file.
60179         * m4/vasprintf.m4: New file.
60180
60181 2003-01-30  Bruno Haible  <bruno@clisp.org>
60182
60183         * lib/printf-args.h: New file, from GNU gettext.
60184         * lib/printf-args.c: New file, from GNU gettext.
60185         * lib/printf-parse.h: New file, from GNU gettext.
60186         * lib/printf-parse.c: New file, from GNU gettext.
60187         * lib/vasnprintf.h: New file, from GNU gettext.
60188         * lib/vasnprintf.c: New file, from GNU gettext.
60189         * lib/asnprintf.c: New file, from GNU gettext.
60190         * lib/vasprintf.h: New file, from GNU gettext with modifications.
60191         * lib/vasprintf.c: New file, from GNU gettext.
60192         * lib/asprintf.c: New file, from GNU gettext.
60193
60194 2003-01-29  Bruno Haible  <bruno@clisp.org>
60195
60196         * modules/stpncpy: New module.
60197         * MODULES.html.sh (func_all_modules): Add it.
60198
60199 2003-01-29  Bruno Haible  <bruno@clisp.org>
60200
60201         * m4/stpncpy.m4: New file.
60202
60203 2003-01-29  Bruno Haible  <bruno@clisp.org>
60204
60205         * lib/stpncpy.h: New file, from GNU gettext with modifications.
60206         * lib/stpncpy.c: New file, from GNU gettext with modifications.
60207
60208 2003-01-28  Bruno Haible  <bruno@clisp.org>
60209
60210         * modules/c-ctype: New module.
60211         * MODULES.html.sh (func_all_modules): Add it.
60212
60213 2003-01-28  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
60216         Paul Eggert.
60217         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
60218         Paul Eggert.
60219
60220 2003-01-27  Bruno Haible  <bruno@clisp.org>
60221
60222         * modules/xsetenv: New module.
60223         * MODULES.html.sh (func_all_modules): Add it.
60224
60225 2003-01-27  Bruno Haible  <bruno@clisp.org>
60226
60227         * lib/xsetenv.h: New file, from GNU gettext.
60228         * lib/xsetenv.c: New file, from GNU gettext.
60229
60230 2003-01-23  Jim Meyering  <jim@meyering.net>
60231
60232         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
60233         from working on systems without dirfd (at least Irix and OSF1/Tru64).
60234
60235 2003-01-23  Bruno Haible  <bruno@clisp.org>
60236
60237         * modules/minmax: New module.
60238         * MODULES.html.sh (func_all_modules): Add it.
60239
60240 2003-01-23  Bruno Haible  <bruno@clisp.org>
60241
60242         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
60243         Eggert.
60244
60245 2003-01-22  Bruno Haible  <bruno@clisp.org>
60246
60247         * modules/exit: New module.
60248         * MODULES.html.sh (func_all_modules): Add it.
60249
60250 2003-01-22  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/exit.h: New file, from GNU gettext.
60253
60254 2003-01-19  Bruno Haible  <bruno@clisp.org>
60255
60256         * gnulib-tool: Recognize option --extract-maintainer.
60257         (func_get_maintainer): New function.
60258         * modules/*: Add Maintainer entry.
60259
60260 2003-01-16  Jim Meyering  <jim@meyering.net>
60261
60262         * m4/regex.m4: The `regex' struct is both input and output.
60263         Initialize it before each use.  Patch by Tim Waugh.
60264
60265 2003-01-16  Bruno Haible  <bruno@clisp.org>
60266
60267         * MODULES.html.sh: Add a table of contents. Add the module name as
60268         leftmost column. Add hyperlinks.
60269
60270 2003-01-15  Bruno Haible  <bruno@clisp.org>
60271
60272         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
60273
60274 2003-01-15  Bruno Haible  <bruno@clisp.org>
60275
60276         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
60277         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
60278         suffix.
60279
60280 2003-01-15  Bruno Haible  <bruno@clisp.org>
60281
60282         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
60283
60284 2003-01-15  Bruno Haible  <bruno@clisp.org>
60285
60286         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
60287         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
60288
60289 2003-01-14  Jim Meyering  <jim@meyering.net>
60290
60291         * lib/same.c (same_name): Tweak a comment.
60292
60293 2003-01-14  Bruno Haible  <bruno@clisp.org>
60294
60295         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
60296         when a string comparison is sufficient.
60297
60298 2003-01-14  Bruno Haible  <bruno@clisp.org>
60299
60300         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
60301         'unsigned int'.
60302
60303 2003-01-14  Bruno Haible  <bruno@clisp.org>
60304
60305         * lib/hash-pjw.c: Add comment about low quality of this function.
60306
60307 2003-01-13  Bruno Haible  <bruno@clisp.org>
60308
60309         * modules/stpcpy: Distribute lib/stpcpy.h.
60310         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
60311
60312 2003-01-13  Bruno Haible  <bruno@clisp.org>
60313
60314         * modules/*: Add a description.
60315         * modules/strpbrk: Fix Makefile.am snippet.
60316         * modules/strtoimax: Fix dependencies.
60317         * modules/strtoumax: Likewise.
60318
60319 2003-01-13  Bruno Haible  <bruno@clisp.org>
60320
60321         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
60322         * modules/alloca (Makefile.am): All object files depend on alloca.h.
60323         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
60324
60325 2003-01-13  Bruno Haible  <bruno@clisp.org>
60326
60327         * gnulib-tool (func_create_testdir): Store config/* files in the main
60328         directory.
60329         * config.rpath: Move to ...
60330         * config/config.rpath: ... here.
60331         * modules/gettext: Contains config/config.rpath, not config.rpath.
60332         * modules/iconv: Likewise.
60333
60334 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60335
60336         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60337         to avoid collisions with libcurses and libreadline.
60338
60339         * m4/getstr.m4: Remove.
60340         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60341
60342 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60343
60344         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60345         to avoid collisions with libcurses and libreadline.
60346
60347         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60348         * lib/getstr.h, getstr.c: Remove.
60349         * lib/getline.c: Include "getline.h", to check interface.
60350         Move body of old getstr.c here: this defines MIN_CHUNK and
60351         declares getdelim2, which is renamed from getstr.
60352         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60353
60354         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60355         All uses changed.
60356         * lib/linebuffer.h: Likewise.
60357         (readline): Remove backward-compatibility macro.
60358
60359 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60360
60361         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60362         to avoid collisions with libcurses and libreadline.
60363         * getstr: Remove.
60364         * MODULES.html.sh: Remove getstr.
60365         * modules/getline: Depend on unlocked-io, not getstr.
60366
60367 2003-01-12  Jim Meyering  <jim@meyering.net>
60368
60369         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60370
60371 2003-01-10  Bruno Haible  <bruno@clisp.org>
60372
60373         * modules/alloca: Change Makefile.am requirements. Simplify Include
60374         requirements. Add lib/alloca_.h to file list.
60375
60376 2003-01-10  Bruno Haible  <bruno@clisp.org>
60377
60378         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60379
60380 2003-01-10  Bruno Haible  <bruno@clisp.org>
60381
60382         * lib/alloca_.h: New file.
60383         * lib/getdate.y: Unconditionally include alloca.h.
60384         * lib/makepath.c: Likewise.
60385         * lib/setenv.c: Likewise.
60386         * lib/userspec.c: Likewise.
60387
60388 2003-01-09  Karl Berry  <karl@gnu.org>
60389
60390         * MODULES.html.sh: include `dirname $0` in PATH, to find
60391         gnulib-tool.
60392
60393 2003-01-09  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60396         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60397
60398 2003-01-09  Bruno Haible  <bruno@clisp.org>
60399
60400         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60401
60402 2003-01-09  Bruno Haible  <bruno@clisp.org>
60403
60404         * lib/stdbool.h.in: New file.
60405
60406 2003-01-09  Bruno Haible  <bruno@clisp.org>
60407
60408         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60409         * MODULES.html.sh: Likewise.
60410
60411 2003-01-08  Jim Meyering  <jim@meyering.net>
60412
60413         * lib/full-write.c: Undefine and define-away `const' after inclusion
60414         of errno.h, not before.  Suggestion from Bruno Haible.
60415
60416 2003-01-08  Bruno Haible  <bruno@clisp.org>
60417
60418         * modules/full-read: Depend on full-write.
60419
60420 2003-01-08  Bruno Haible  <bruno@clisp.org>
60421
60422         * lib/safe-read.c: Include specification header first, to ensure its
60423         selfcontainedness.
60424         * lib/full-write.c: Likewise.
60425
60426 2003-01-07  Jim Meyering  <jim@meyering.net>
60427
60428         * lib/full-write.c: Rework so that it may serve to define full_read,
60429         too.
60430         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60431
60432 2003-01-07  Bruno Haible  <bruno@clisp.org>
60433
60434         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60435         <inttypes.h>.
60436         * lib/xstrtol.h: Likewise.
60437         * lib/xstrtoimax.c: Likewise.
60438         * lib/xstrtoumax.c: Likewise.
60439         * lib/human.h: Likewise.
60440
60441         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60442         on systems that have <inttypes.h> but not <stdint.h>.
60443
60444 2003-01-07  Bruno Haible  <bruno@clisp.org>
60445
60446         * MODULES.html.sh: Add copyright notice.
60447         (missed_files): Omit CVS directory entries.
60448         (func_module): Make it work with sed-3.02.
60449         * MODULES.txt: Remove file.
60450
60451 2003-01-06  Jim Meyering  <jim@meyering.net>
60452
60453         * lib/version-etc.c: Update year in translatable copyright string.
60454
60455 2003-01-03  Karl Berry  <karl@gnu.org>
60456
60457         * config/config.{guess,sub}: update from prep.
60458
60459 2003-01-02  Karl Berry  <karl@gnu.org>
60460
60461         * doc/COPYING.DOC: belatedly updated to 1.2.
60462
60463 2003-01-01  Karl Berry  <karl@gnu.org>
60464
60465         * gnulib-tool (func_verify_module): report module name $module in
60466         error message, not $1.
60467         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60468         be created, only if it doesn't exist.
60469         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60470
60471 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60472
60473         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60474
60475 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60476
60477         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60478         memcmp if strcoll doesn't work.
60479
60480 2002-12-31  Bruno Haible  <bruno@clisp.org>
60481
60482         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60483         nonempty.
60484
60485 2002-12-31  Bruno Haible  <bruno@clisp.org>
60486
60487         * lib/memcoll.c (STRCOLL): New macro.
60488         (memcoll): Use it.
60489
60490 2002-12-31  Bruno Haible  <bruno@clisp.org>
60491
60492         * lib/localcharset.h: New file.
60493         * lib/localcharset.c: Include it.
60494         * lib/unicodeio.c: Likewise.
60495
60496 2002-12-31  Bruno Haible  <bruno@clisp.org>
60497
60498         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60499         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60500
60501 2002-12-31  Bruno Haible  <bruno@clisp.org>
60502
60503         * lib/getline.h: Include <stddef.h>, for size_t.
60504
60505         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60506         * lib/unicodeio.c: Don't include <stddef.h>.
60507
60508 2002-12-31  Bruno Haible  <bruno@clisp.org>
60509
60510         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60511         HAVE_TM_ZONE.
60512
60513 2002-12-24  Karl Berry  <karl@gnu.org>
60514
60515         * config/config.guess: update from prep.
60516
60517 2002-12-24  Bruno Haible  <bruno@clisp.org>
60518
60519         General infrasructure.
60520         * m4/README: Rewritten.
60521         * m4/onceonly.m4: New file.
60522         * m4/onceonly_2_57.m4: New file.
60523
60524         Module atexit.
60525         * m4/atexit.m4: New file.
60526
60527         Module strtod.
60528         * m4/strtod.m4: New file.
60529
60530         Module strtol.
60531         * m4/strtol.m4: New file.
60532
60533         Module strtoul.
60534         * m4/strtoul.m4: New file.
60535
60536         Module memchr.
60537         * m4/memchr.m4: New file.
60538
60539         Module memcmp.
60540         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60541         (jm_FUNC_MEMCMP): Invoke it.
60542
60543         Module memcpy.
60544         * m4/memcpy.m4: New file.
60545
60546         Module memmove.
60547         * m4/memmove.m4: New file.
60548
60549         Module memset.
60550         * m4/memset.m4: New file.
60551
60552         Module strcspn.
60553         * m4/strcspn.m4: New file.
60554
60555         Module strpbrk.
60556         * m4/strpbrk.m4: New file.
60557
60558         Module strstr.
60559         * m4/strstr.m4: New file.
60560
60561         Module strerror.
60562         * m4/strerror.m4: New file.
60563
60564         Module mktime.
60565         * m4/mktime.m4: Renamed from jm-mktime.m4.
60566         (gl_PREREQ_MKTIME): New macro.
60567         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60568
60569         Module malloc.
60570         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60571         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60572         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60573
60574         Module realloc.
60575         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60576         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60577         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60578
60579         Module strftime.
60580         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60581         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60582         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60583         gl_TM_GMTOFF.
60584         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60585
60586         Module xalloc.
60587         * m4/xalloc.m4: New file.
60588
60589         Module alloca.
60590         * m4/alloca.m4: New file.
60591
60592         Module putenv.
60593         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60594         (jm_FUNC_PUTENV): Invoke it.
60595
60596         Module setenv.
60597         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60598         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60599         when invoked twice.
60600         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60601         gt_FUNC_SETENV.
60602
60603         Module memrchr.
60604         * m4/memrchr.m4: New file.
60605
60606         Module stpcpy.
60607         * m4/stpcpy.m4: New file.
60608
60609         Module strcase.
60610         * m4/strcase.m4: New file.
60611
60612         Module strdup.
60613         * m4/strdup.m4: New file.
60614
60615         Module strnlen.
60616         * m4/strnlen.m4: New file.
60617
60618         Module strndup.
60619         * m4/strndup.m4: New file.
60620
60621         Module xstrtod.
60622         * m4/xstrtod.m4: New file.
60623
60624         Module xstrtol.
60625         * m4/xstrtol.m4: New file.
60626
60627         Module getdate.
60628         * m4/getdate.m4: New file.
60629
60630         Module unlocked-io.
60631         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60632         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60633         * m4/jm-glibc-io.m4n: Remove file.
60634
60635         Module long-options.
60636         * m4/long-options.m4: New file.
60637
60638         Module md5.
60639         * m4/md5.m4: New file.
60640
60641         Module sha.
60642         * m4/sha.m4: New file.
60643
60644         Module getstr.
60645         * m4/getstr.m4: New file.
60646
60647         Module getline.
60648         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60649         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60650         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60651         simply getline. Infoke gl_PREREQ_GETLINE.
60652
60653         Module obstack.
60654         * m4/obstack.m4: New file.
60655
60656         Module hash.
60657         * m4/hash.m4: New file.
60658
60659         Module readtokens.
60660         * m4/readtokens.m4: New file.
60661
60662         Module strverscmp.
60663         * m4/strverscmp.m4: New file.
60664
60665         Module stdbool.
60666         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60667         OSF/1.
60668
60669         Module strtoll.
60670         * m4/strtoll.m4: New file.
60671
60672         Module strtoull.
60673         * m4/strtoull.m4: New file.
60674
60675         Module strtoimax.
60676         * m4/strtoimax.m4: New file.
60677
60678         Module strtoumax.
60679         * m4/strtoumax.m4: New file.
60680
60681         Module xstrtoimax.
60682         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60683         jm_AC_PREREQ_XSTRTOIMAX.
60684         Moved the strtol prerequisites to strtol.m4.
60685         Moved the strtoll prerequisites to strtoll.m4.
60686         Moved the strtoimax prerequisites to strtoimax.m4.
60687
60688         Module xstrtoumax.
60689         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60690         jm_AC_PREREQ_XSTRTOUMAX.
60691         Moved the strtoul prerequisites to strtoul.m4.
60692         Moved the strtoull prerequisites to strtoull.m4.
60693         Moved the strtoumax prerequisites to strtoumax.m4.
60694
60695         Module chown.
60696         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60697         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60698
60699         Module dup2.
60700         * m4/dup2.m4: New file.
60701
60702         Module ftruncate.
60703         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60704         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60705
60706         Module getgroups.
60707         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60708         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60709
60710         Module gettimeofday.
60711         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60712         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60713         gl_PREREQ_GETTIMEOFDAY.
60714
60715         Module mkdir.
60716         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60717         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60718
60719         Module mkstemp.
60720         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60721         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60722         jm_AC_TYPE_UINTMAX_T.
60723         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60724
60725         Module stat.
60726         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60727         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60728
60729         Module lstat.
60730         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60731         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60732
60733         Module timespec.
60734         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60735         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60736         * m4/st_mtim.m4: Indentation.
60737
60738         Module nanosleep.
60739         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60740         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60741         gl_PREREQ_NANOSLEEP.
60742
60743         Module regex.
60744         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60745         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60746         (gl_REGEX): New macro.
60747
60748         Module rename.
60749         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60750         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60751
60752         Module rmdir.
60753         * m4/rmdir.m4: New file.
60754
60755         Module utime.
60756         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60757         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60758         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60759
60760         Module dirname.
60761         * m4/dirname.m4: New file.
60762
60763         Module getopt.
60764         * m4/getopt.m4: New file.
60765
60766         Module unistd-safer.
60767         * m4/unistd-safer.m4: New file.
60768
60769         Module fnmatch.
60770         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60771         declaration.
60772         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60773         (gl_FUNC_FNMATCH_POSIX): New macro.
60774         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60775         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60776         simply fnmatch.
60777
60778         Module exclude.
60779         * m4/exclude.m4: New file.
60780
60781         Module human.
60782         * m4/human.m4: New file.
60783
60784         Module acl.
60785         * m4/acl.m4: Nop.
60786
60787         Module backupfile.
60788         * m4/backupfile.m4: New file.
60789         * m4/d-ino.m4: Indentation.
60790
60791         Module fsusage.
60792         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60793         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60794         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60795
60796         Module dirfd.
60797         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60798         requirements.
60799
60800         Module euidaccess.
60801         * m4/euidaccess.m4: New file.
60802
60803         Module file-type.
60804         * m4/file-type.m4: New file.
60805
60806         Module fileblocks.
60807         * m4/fileblocks.m4: New file.
60808
60809         Module filemode.
60810         * m4/filemode.m4: New file.
60811
60812         Module isdir.
60813         * m4/isdir.m4: New file.
60814
60815         Module lchown.
60816         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60817         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60818
60819         Module makepath.
60820         * m4/makepath.m4: New file.
60821
60822         Module modechange.
60823         * m4/modechange.m4: New file.
60824
60825         Module mountlist.
60826         * m4/mountlist.m4: New file.
60827         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60828         Indentation.
60829
60830         Module path-concat.
60831         * m4/path-concat.m4: New file.
60832
60833         Module pathmax.
60834         * m4/pathmax.m4: New file.
60835
60836         Module same.
60837         * m4/same.m4: New file.
60838
60839         Module save-cwd.
60840         * m4/save-cwd.m4: New file.
60841
60842         Module savedir.
60843         * m4/savedir.m4: New file.
60844
60845         Module xgetcwd.
60846         * m4/xgetcwd.m4: New file.
60847         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60848
60849         Module xreadlink.
60850         * m4/xreadlink.m4: New file.
60851
60852         Module safe-read.
60853         * m4/safe-read.m4: New file.
60854
60855         Module safe-write.
60856         * m4/safe-write.m4: New file.
60857
60858         Module closeout.
60859         * m4/closeout.m4: New file.
60860
60861         Module stdio-safer.
60862         * m4/stdio-safer.m4: New file.
60863
60864         Module getpass.
60865         * m4/getpass.m4: New file.
60866
60867         Module getugroups.
60868         * m4/getugroups.m4: New file.
60869
60870         Module group-member.
60871         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60872         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60873
60874         Module idcache.
60875         * m4/idcache.m4: New file.
60876
60877         Module userspec.
60878         * m4/userspec.m4: New file.
60879
60880         Module gettime.
60881         * m4/clock_time.m4: New file.
60882         * m4/gettime.m4: New file.
60883
60884         Module settime.
60885         * m4/settime.m4: New file.
60886
60887         Module posixtm.
60888         * m4/posixtm.m4: New file.
60889
60890         Module gethostname.
60891         * m4/gethostname.m4: New file.
60892
60893         Module canon-host.
60894         * m4/canon-host.m4: New file.
60895
60896         Module gettext.
60897         * m4/codeset.m4: New file, from gettext-0.11.5.
60898         * m4/gettext.m4: New file, from gettext-0.11.5.
60899         * m4/glibc21.m4: New file, from gettext-0.11.5.
60900         * m4/iconv.m4: New file, from gettext-0.11.5.
60901         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60902         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60903         * m4/inttypes.m4: New file, from gettext-0.11.5.
60904         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60905         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60906         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60907         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60908         * m4/lib-link.m4: New file, from gettext-0.11.5.
60909         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60910         * m4/progtest.m4: New file, from gettext-0.11.5.
60911         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60912         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60913         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60914
60915         Module localcharset.
60916         * m4/localcharset.m4: New file.
60917
60918         Module hard-locale.
60919         * m4/hard-locale.m4: New file.
60920
60921         Module mbswidth.
60922         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60923         onceonly macros.
60924         * m4/mbrtowc.m4: Add comment.
60925
60926         Module memcasecmp.
60927         * m4/memcasecmp.m4: New file.
60928
60929         Module memcoll.
60930         * m4/memcoll.m4: New file.
60931
60932         Module unicodeio.
60933         * m4/unicodeio.m4: New file.
60934
60935         Module rpmatch.
60936         * m4/rpmatch.m4: New file.
60937
60938         Module yesno.
60939         * m4/yesno.m4: New file.
60940
60941         Module exitfail.
60942         * m4/exitfail.m4: New file.
60943
60944         Module c-stack.
60945         * m4/c-stack.m4 (gl_C_STACK): New macro.
60946         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60947
60948         Module error.
60949         * m4/error.m4 (gl_ERROR): New macro.
60950         (jm_PREREQ_ERROR): Use onceonly macros.
60951
60952         Module fatal.
60953         * m4/fatal.m4: New file.
60954
60955         Module getloadavg.
60956         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60957         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60958
60959         Module getpagesize.
60960         * m4/getpagesize.m4: New file.
60961
60962         Module getusershell.
60963         * m4/getusershell.m4: New file.
60964
60965         Module physmem.
60966         * m4/physmem.m4: New file.
60967
60968         Module posixver.
60969         * m4/posixver.m4: New file.
60970
60971         Module quotearg.
60972         * m4/quotearg.m4: New file.
60973
60974         Module quote.
60975         * m4/quote.m4: New file.
60976
60977         Module readutmp.
60978         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60979
60980         Module sig2str.
60981         * m4/sig2str.m4: New file.
60982
60983         Other.
60984         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60985         ulonglong.m4.
60986         * m4/intmax_t.m4: New file.
60987         * m4/d-type.m4: Indentation.
60988         * m4/jm-macros.m4: Update.
60989         * m4/prereq.m4 (jm_PREREQ): Update.
60990         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60991         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60992         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60993         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60994         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60995         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60996         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60997         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60998         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60999         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
61000         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
61001         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
61002         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
61003         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
61004         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
61005         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
61006         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
61007         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
61008         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
61009
61010 2002-12-24  Bruno Haible  <bruno@clisp.org>
61011
61012         * MODULES.txt: Update according to m4/ changes.
61013
61014         Module gettext.
61015         * config.rpath: New file, from gettext-0.11.5.
61016
61017         * modules/*: New module descriptions.
61018         * gnulib-tool: New file.
61019         * MODULES.html.sh: New file.
61020
61021 2002-12-21  Karl Berry  <karl@gnu.org>
61022
61023         * doc/fdl.texi: update to version 1.2.
61024
61025 2002-12-19  Karl Berry  <karl@gnu.org>
61026
61027         * config/config.guess: update from prep.
61028
61029 2002-12-18  Bruno Haible  <bruno@clisp.org>
61030
61031         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
61032         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
61033
61034 2002-12-17  Bruno Haible  <bruno@clisp.org>
61035
61036         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
61037         stdlib.h, string.h.
61038
61039 2002-12-17  Bruno Haible  <bruno@clisp.org>
61040
61041         * lib/canon-host.c (strdup): Remove unused declaration.
61042
61043         * lib/fsusage.c: Include full_read.h.
61044         (get_fs_usage): Use full_read instead of safe_read.
61045
61046         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
61047
61048 2002-12-12  Karl Berry  <karl@gnu.org>
61049
61050         * config/config.guess: update from prep.
61051
61052 2002-12-11  Bruno Haible  <bruno@clisp.org>
61053
61054         * m4/setenv.m4: New file, from gettext-0.11.5.
61055
61056 2002-12-11  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
61059         not unsetenv().
61060         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
61061         modifications:
61062
61063         2002-12-11  Bruno Haible  <bruno@clisp.org>
61064
61065                 * setenv.c (alloca): Fall back to malloc.
61066                 (freea): New macro.
61067                 (setenv): Use freea() to free memory allocated with alloca().
61068
61069         2002-11-13  Bruno Haible  <bruno@clisp.org>
61070
61071                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
61072                 function declarations.
61073                 * unsetenv.c (unsetenv): Likewise.
61074
61075         2002-03-04  Bruno Haible  <bruno@clisp.org>
61076
61077                 Portability to AIX 4.3.3.
61078                 * unsetenv.c: New file, extracted from setenv.c.
61079                 * setenv.c: Move the unsetenv() function to unsetenv.c.
61080
61081         2001-12-20  Bruno Haible  <bruno@clisp.org>
61082
61083                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
61084                 use malloc instead. For SunOS 4.
61085
61086         2001-12-11  Bruno Haible  <bruno@clisp.org>
61087
61088                 * setenv.c: Declare alloca.
61089                 (compar_fn_t): New typedef.
61090                 (KNOWN_VALUE, STORE_VALUE): Use it.
61091
61092         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
61093         setenv.h.
61094
61095 2002-12-10  Paul Eggert  <eggert@twinsun.com>
61096
61097         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
61098         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
61099         Choose values that are less likely to collide with system fnmatch
61100         options.
61101         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
61102         defined (e.g., a pure POSIX system).
61103         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
61104         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
61105
61106 2002-12-06  Paul Eggert  <eggert@twinsun.com>
61107
61108         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
61109         a pain in practice to deal with generated m4 files.  This change
61110         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
61111
61112         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
61113         and jm-glibc-io.m4, as they are no longer a special case.
61114         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
61115         kludge and the auto-generation stuff.  Check only whether the
61116         functions are declared, not whether they exist, since older hosts
61117         that don't declare the functions can't use the optimization anyway.
61118
61119 2002-12-06  Jim Meyering  <jim@meyering.net>
61120
61121         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
61122
61123         Merge in changes from libc's misc/error.c, in preparation
61124         for the merge of gnulib's changes back into libc.
61125
61126         * lib/error.c (_): Define only if not already defined.
61127         Move definition to follow all #include directives.
61128         Include unlocked-io.h only if !_LIBC.
61129         [_LIBC]: Include <libio/libioP.h>.
61130         [USE_IN_LIBIO]: Include <libio/iolibio.h>
61131         (fflush): Tweak definition to use INTUSE.
61132         (putc): Define.
61133
61134 2002-12-05  Paul Eggert  <eggert@twinsun.com>
61135
61136         * lib/alloca.c [defined emacs]: Include "lisp.h".
61137         (xalloc_die) [defined emacs]: New macro.
61138         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
61139         [! defined emacs]: Include <xalloc.h>.
61140         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
61141         (pointer): Typedef to POINTER_TYPE *.
61142         (malloc): Remove decl; we now always use xmalloc.
61143         (alloca): Use old-style definition, since Emacs needs this.
61144         Check for arithmetic overflow when computing combined size.
61145
61146 2002-12-04  Paul Eggert  <eggert@twinsun.com>
61147
61148         Do not generate unlocked-io.h automatically, since it's easier to
61149         maintain it by hand.
61150
61151         * lib/unlocked-io.h: New file, from GNU diffutils,
61152         but with proper copyright notice and attribution.
61153         * lib/gen-uio: Remove.
61154         * lib/Makefile.am: Add copyright notice.
61155         (libfetish_a_SOURCES): Add unlocked-io.h.
61156         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
61157         (DISTCLEANFILES, io_functions): Remove macros.
61158         (EXTRA_DIST): Remove gen_uio.
61159         (unlocked-io.h): Remove rule.
61160
61161 2002-12-04  Jim Meyering  <jim@meyering.net>
61162
61163         Reflect the fact that stat.c and lstat.c are no longer generated.
61164         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
61165         (DISTCLEANFILES): Likewise.
61166         (EXTRA_DIST): Likewise.
61167         (all_local): Don't depend on stat.c or lstat.c.
61168         (stat.c, lstat.c): Remove rules.
61169         (EXTRA_DIST): Remove xstat.in.
61170
61171         * lib/xstat.in: Remove file.  Contents moved into stat.c.
61172         * lib/stat.c: New file.  Contents mostly from xstat.in.
61173         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
61174         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
61175
61176         * lib/safe-read.c: Rework so that it may serve to define safe_write,
61177         too.
61178         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
61179
61180 2002-12-03  Jim Meyering  <jim@meyering.net>
61181
61182         * lib/safe-read.c, safe-write.c: Change variable names and comments,
61183         but not semantics, to minimize the differences between these two files.
61184         (safe_read): Change comment to mention SAFE_READ_ERROR.
61185
61186         * lib/safe-read.c (IS_EINTR): Define.
61187         (safe_read): Use IS_EINTR in place of in-function cpp directives.
61188
61189 2002-12-02  Jim Meyering  <jim@meyering.net>
61190
61191         * lib/safe-read.c (EINTR): Define.
61192         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61193         (INT_MAX): Provide fallback.
61194         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
61195
61196         * lib/safe-read.h (SAFE_READ_ERROR): Define.
61197
61198 2002-12-02  Bruno Haible  <bruno@clisp.org>
61199
61200         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
61201         Define, taken from safe-read.c.
61202         (INT_MAX): Provide fallback.
61203         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
61204         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
61205
61206         * lib/safe-read.c (EINTR): Remove definition.
61207         (safe_read): Don't use EINTR if it is absent.
61208
61209 2002-12-01  Jim Meyering  <jim@meyering.net>
61210
61211         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
61212         zero.
61213         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
61214
61215 2002-11-27  Paul Eggert  <eggert@twinsun.com>
61216
61217         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
61218         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
61219         with `if (! (value < limit)) abort ();', for readability.
61220
61221 2002-11-26  Karl Berry  <karl@gnu.org>
61222
61223         * lib/strdup.c: copy from libc again, with jim's ok.
61224         * lib/.cppi-disable: re-add strdup.c
61225
61226 2002-11-25  Karl Berry  <karl@gnu.org>
61227
61228         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
61229         instead of "strtol.c".
61230
61231 2002-11-25  Karl Berry  <karl@gnu.org>
61232
61233         * config/install-sh: update from automake for variable quoting, $0 in
61234         error msgs, etc.
61235
61236         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
61237         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
61238         entry.
61239
61240 2002-11-25  Jim Meyering  <jim@meyering.net>
61241
61242         * lib/mktime.c: Sync from libc, now that it has the latest fix.
61243
61244 2002-11-24  Karl Berry  <karl@gnu.org>
61245
61246         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
61247         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
61248
61249 2002-11-24  Jim Meyering  <jim@meyering.net>
61250
61251         Update from coreutils:
61252
61253         * lib/mktime.c: Merge in changes from libc.
61254
61255         Avoid a link-time failure on some Linux systems.
61256         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
61257         (otherwise).
61258         (__mon_yday): Declare with the STATIC attribute.
61259         (__mktime_internal): Likewise.
61260         Based on a report from Greg Schafer.
61261
61262 2002-11-23  Jim Meyering  <jim@meyering.net>
61263
61264         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
61265         Use `unsigned', not `int', as type of index.
61266
61267         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
61268
61269         * lib/fsusage.c: Remove unneeded parentheses around operands of
61270         `defined'.
61271
61272 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61273
61274         * lib/quotearg.h: Allow multiple inclusion by surrounding with
61275         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
61276         so that we can be included first.
61277         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
61278         * lib/quotearg.c: Include quotearg.h immediately after config.h.
61279         No need to include stddef.h or sys/types.h any more.
61280         Surround local include files with "", not "<>".
61281         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
61282         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
61283         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
61284         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
61285         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
61286         (ISPRINT): Remove; no longer needed now that we assume C89.
61287
61288         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
61289         Preserve errno.
61290
61291         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
61292         quotearg_char): Use SIZE_MAX rather than
61293         (size_t) -1 when we are talking about "infinity".
61294
61295         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
61296
61297 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61298
61299         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
61300         hint that one should use `if (! x) abort ();' rather than `assert
61301         (x);', and anyway it's one less thing to worry about configuring.
61302         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
61303         hash_rehash, hash_insert): Use abort rather than assert.
61304
61305 2002-11-22  Bruno Haible  <bruno@clisp.org>
61306
61307         * lib/safe-read.h: Assume C89. Add comments.
61308         (safe_read): Change return type to size_t.
61309         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
61310         byte counts > SSIZE_MAX correctly.
61311         * lib/safe-write.h: New file.
61312         * lib/safe-write.c: New file.
61313         * lib/full-read.h: New file.
61314         * lib/full-read.c: New file.
61315         * lib/full-write.h: Assume C89. Add comments.
61316         * lib/full-write.c: Include safe-write.h.
61317         (full_write): Rewritten to use safe_write.
61318         Suggested by Jim Meyering and Paul Eggert.
61319
61320 2002-11-21  Jim Meyering  <jim@meyering.net>
61321
61322         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
61323
61324         Merge in changes from the coreutils.
61325
61326         2002-09-25  Paul Eggert  <eggert@twinsun.com>
61327         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
61328         <stdint.h>.
61329         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
61330         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
61331         int.  Work more efficiently if X is the same width as uintmax_t.
61332         Do not compare X to -1, to avoid bogus compiler warning.
61333         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61334         Don't assume that f_frsize and f_bsize are the same type.
61335
61336         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61337         warning on FreeBSD.
61338
61339         * lib/makepath.c (make_path): Restore umask *before* creating the final
61340         component.
61341         (make_path): Minor reformatting.
61342
61343         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61344         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61345         HAVE_MALLOC/HAVE_REALLOC.
61346
61347         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61348         dummy ones.  At least on GNU/Linux systems, `auto' means something
61349         else.
61350         From Michael Stone.
61351
61352 2002-11-21  Bruno Haible  <bruno@clisp.org>
61353
61354         Remove case insensitive option matching.
61355         * lib/argmatch.h (argcasematch): Remove declaration.
61356         (ARGCASEMATCH): Remove macro.
61357         (__xargmatch_internal): Remove case_sensitive argument.
61358         (XARGMATCH): Update.
61359         (XARGCASEMATCH): Remove macro.
61360         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61361         case_sensitive argument.
61362         (argcasematch): Remove function.
61363         (__xargmatch_internal): Remove case_sensitive argument.
61364         (main): Use XARGMATCH instead of XARGCASEMATCH.
61365
61366         * lib/xmalloc.c: Change compile-time error message. Add comment about
61367         required autoconf version.
61368
61369 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61370
61371         Merge argmatch cleanups from Bison.  Assume C89.
61372
61373         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61374         Include stdlib.h, for EXIT_FAILURE.
61375         Always include <string.h>, since we assume C89.
61376         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61377         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61378         Include <stddef.h> instead, since it's all we need for size_t.
61379         (PARAMS): Remove.  All uses removed.
61380         (ARRAY_CARDINALITY): Do not bother to #undef.
61381         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61382         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61383         Remove unnecessary parentheses.
61384         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61385         Insert necessary parentheses.
61386         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61387         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61388
61389 2002-11-19  Bruno Haible  <bruno@clisp.org>
61390
61391         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61392         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61393
61394         * lib/mbswidth.h (PARAMS): Remove macro.
61395         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61396         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61397
61398         * lib/gcd.h (PARAMS): Remove macro.
61399         (gcd): Use ANSI C function declarations.
61400         * lib/gcd.c (gcd): Likewise.
61401
61402 2002-11-15  Bruno Haible  <bruno@clisp.org>
61403
61404         * lib/strcspn.c: Include <stddef.h>.
61405         (strcspn): Use ANSI C function declaration. Change return type to
61406         size_t. Use NULL.
61407         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61408         (strpbrk): Use NULL.
61409         * lib/strpbrk.h (PARAMS): Remove macro.
61410         (strpbrk): Use ANSI C function declaration.
61411         * lib/strstr.c: Don't include <sys/types.h>.
61412         * lib/strstr.h (PARAMS): Remove macro.
61413         (strstr): Use ANSI C function declarations.
61414
61415 2002-11-14  Karl Berry  <karl@gnu.org>
61416
61417         * config/mkinstalldirs: `do' on separate line, instead of
61418         `for var; do'.
61419
61420 2002-11-06  Bruno Haible  <bruno@clisp.org>
61421
61422         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61423         * lib/gcd.c (gcd): Likewise.
61424
61425 2002-11-05  Bruno Haible  <bruno@clisp.org>
61426
61427         * lib/gcd.h: New file, from gettext-0.11.5.
61428         * lib/gcd.c: New file, from gettext-0.11.5.
61429
61430 2002-11-05  Bruno Haible  <bruno@clisp.org>
61431
61432         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61433         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61434         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61435         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61436
61437         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61438         <libintl.h>.
61439         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61440         <libintl.h>.
61441
61442         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61443         * lib/human.c: Include gettext.h instead of <libintl.h>.
61444         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61445         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61446         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61447         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61448         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61449         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61450         (textdomain): Remove definition.
61451         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61452
61453         * lib/long-options.c: Remove include of <libintl.h> and definition of
61454         _.
61455         * lib/same.c: Remove include of <libintl.h> and definition of _.
61456
61457 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61458
61459         * lib/config.charset: A few additions for Solaris.
61460
61461 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61462
61463         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61464         * lib/localcharset.c (locale_charset): Declare as extern "C".
61465
61466 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61467
61468         * lib/config.charset: msdos in uk_UA uses CP1125.
61469
61470 2002-11-04  Bruno Haible  <bruno@clisp.org>
61471
61472         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61473         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61474         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61475         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61476         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61477
61478 2002-11-04  Bruno Haible  <bruno@clisp.org>
61479
61480         * lib/localcharset.c (locale_charset): Don't return an empty string.
61481
61482 2002-11-04  Bruno Haible  <bruno@clisp.org>
61483
61484         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61485         aliases.
61486
61487 2002-11-04  Bruno Haible  <bruno@clisp.org>
61488
61489         * lib/config.charset: Update for newest glibc. Add canonical names
61490         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61491
61492 2002-11-04  Bruno Haible  <bruno@clisp.org>
61493
61494         * lib/config.charset: Add support for NetBSD.
61495
61496 2002-11-04  Bruno Haible  <bruno@clisp.org>
61497
61498         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61499
61500 2002-11-01  Bruno Haible  <bruno@clisp.org>
61501
61502         * configure.in: Add AC_CONFIG_AUX_DIR call.
61503         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61504         test/Makefile.
61505         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61506
61507 2002-09-28  Karl Berry  <karl@gnu.org>
61508
61509         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61510         installed automake until the next release, since changes have been
61511         made.
61512
61513 2002-09-25  Karl Berry  <karl@gnu.org>
61514
61515         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61516         * lib/getopt*: copy from libc/posix.
61517         * lib/gettext.h: copy from gettext.
61518         * lib/.cppi-disable: add strdup.c, gettext.h.
61519
61520 2002-09-25  Karl Berry  <karl@gnu.org>
61521
61522         * config/srclist.txt: enable gettext.h check.
61523         * config/config.{guess,sub}: update from prep.
61524         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61525                 from automake 1.6.3.
61526         See srclist*.
61527
61528 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61529
61530         * regex.c (PATFETCH): Remove the translating fetch.
61531         (PATFETCH_RAW): Rename to PATFETCH.
61532         (set_image_of_range): New fun.
61533         (SET_RANGE_TABLE_WORK_AREA): Use it.
61534         (regex_compile): Don't translate the pattern chars so eagerly.
61535         Only do it when inserting an `exactn' bytecode or when handling
61536         a char-range.
61537         (mutually_exclusive_p): Avoid empty statement.
61538
61539 2002-07-06  Jim Meyering  <meyering@lucent.com>
61540
61541         * m4/README: Don't mention Makefile.am.in.
61542         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61543
61544 2002-07-01  Jim Meyering  <meyering@lucent.com>
61545
61546         * lib/c-stack.c: Include sys/time.h.
61547         From Volker Borchert.
61548
61549 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61550
61551         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61552
61553 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61554
61555         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61556         New macro.  Use it uniformly instead of
61557         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61558         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61559         reported by Vin Shelton.
61560
61561 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61562
61563         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61564         Do not assume SA_SIGINFO behavior.
61565         Bug reported by Jim Meyering on NetBSD 1.5.2.
61566
61567 2002-06-22  Jim Meyering  <meyering@lucent.com>
61568
61569         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61570         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61571
61572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61573         now that configure.ac uses AC_GNU_SOURCE.
61574         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61575         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61576
61577         Update to latest tools.  Suggestions from Paul Eggert.
61578         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61579         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61580         * m4/fnmatch.m4: Likewise.
61581         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61582         to AC_HEADER_STDBOOL
61583
61584 2002-06-22  Jim Meyering  <meyering@lucent.com>
61585
61586         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61587         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61588
61589 2002-06-22  Jim Meyering  <meyering@lucent.com>
61590
61591         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61592
61593         * lib/exitfail.c, exitfail.h: Likewise.
61594         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61595
61596         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61597         of fnmatch.h.
61598         (EXTRA_DIST): Add fnmatch_loop.c.
61599         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61600
61601         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61602         * lib/fnmatch.c: Update from diffutils-2.8.2.
61603         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61604         * lib/fnmatch.h: Remove file.
61605
61606 2002-06-21  Jim Meyering  <meyering@lucent.com>
61607
61608         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61609         * m4/mbrtowc.m4: Likewise.
61610
61611         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61612         * m4/mbswidth.m4: Reflect name change:
61613         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61614         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61615
61616         * m4/lib-link.m4: Update from gettext-0.11.2.
61617         * m4/gettext.m4: Likewise.
61618
61619         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61620         From Alfred M. Szmidt.
61621
61622 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61623
61624         * lib/file-type.h: Report an error if neither S_ISREG nor
61625         S_IFREG is defined, instead of using a test specific to glibc
61626         2.2.  This should be safe, since POSIX requires S_ISREG and
61627         Unix Version 7 had S_IFREG.  We don't need to check for
61628         <sys/types.h> since we don't use any symbols that it defines.
61629
61630 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61631
61632         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61633         $@-t, so that each temporary file name is unique and valid in the first
61634         8 characters, for operation under DOS.
61635
61636 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61637
61638         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61639
61640 2002-06-15  Jim Meyering  <meyering@lucent.com>
61641
61642         Work even with DJGPP 2.03, which lacks support for symlinks.
61643         From Richard Dawe.
61644         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61645         is defined.
61646         * lib/lchown.c (S_ISLNK): Likewise.
61647
61648 2002-06-15  Jim Meyering  <meyering@lucent.com>
61649
61650         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61651         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61652         have been included before this file.
61653
61654 2002-06-14  Jim Meyering  <meyering@lucent.com>
61655
61656         * lib/file-type.h: Use the version from diffutils-2.8.2.
61657         * lib/file-type.c: Likewise.
61658
61659 2002-06-07  Jim Meyering  <meyering@lucent.com>
61660
61661         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61662         They're needed at least for NetBSD 1.5.2.
61663         ($statxfs_includes): Include those same headers.
61664         ($statxfs_includes): Include sys/vfs.h if available.
61665         ($statxfs_includes): Likewise for sys/statvfs.h.
61666         Check for the following members in both structs statfs and statvfs:
61667         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61668
61669 2002-06-01  Jim Meyering  <meyering@lucent.com>
61670
61671         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61672         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61673
61674 2002-05-28  Jim Meyering  <meyering@lucent.com>
61675
61676         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61677         Reported by Volker Borchert.
61678
61679 2002-05-27  Jim Meyering  <meyering@lucent.com>
61680
61681         Fix a problem seen only on nonconforming systems whereby ls.c's
61682         use of localtime, and then of gettimeofday would cause trouble:
61683         the localtime call used to initialize rpl_gettimeofday's save
61684         mechanism would clobber ls's current local time information so
61685         that in any long listing the first file would always be listed
61686         with date 1970-01-01.  Analysis by Volker Borchert.
61687
61688         * lib/gettimeofday.c (localtime): Undefine.
61689         (rpl_localtime): New function.
61690
61691 2002-05-27  Jim Meyering  <meyering@lucent.com>
61692
61693         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61694         localtime.
61695
61696         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61697         use the replacement function; it wouldn't resolve at link time.
61698         Reported by Volker Borchert.
61699
61700 2002-05-22  Jim Meyering  <meyering@lucent.com>
61701
61702         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61703         file-type.h.
61704         * lib/file-type.h: New file.
61705         * lib/file-type.c (file_type): New file/function.  Extracted from
61706         diffutils.
61707
61708 2002-04-30  Jim Meyering  <meyering@lucent.com>
61709
61710         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61711
61712 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61713
61714         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61715
61716 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61717
61718         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61719         Do not check for alloca.h (no longer used) or stdbool.h (was never
61720         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61721
61722 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61723
61724         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61725
61726 2002-04-29  Jim Meyering  <meyering@lucent.com>
61727
61728         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61729         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61730         Use AC_FUNC_STRNLEN here instead.
61731
61732         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61733         With autoconf-2.53a, it's part of AC_PROG_CC.
61734
61735 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61736
61737         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61738         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61739
61740 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61741
61742         * lib/sig2str.h, lib/sig2str.c: New files.
61743         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61744
61745 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61746
61747         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61748         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61749         of 127, since 64 is the largest conceivable number for ancient
61750         nonstandard hosts.
61751         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61752
61753 2002-04-28  Jim Meyering  <meyering@lucent.com>
61754
61755         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61756
61757 2002-04-24  Jim Meyering  <meyering@lucent.com>
61758
61759         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61760         (jm_PREREQ): Use it.
61761
61762         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61763         mach/mach.h fcntl.h.
61764         Check for this function: setlocale.
61765
61766 2002-04-24  Jim Meyering  <meyering@lucent.com>
61767
61768         * lib/gettext.h: New file, from Gettext.
61769         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61770         (libfetish_a_SOURCES): Add gettext.h.
61771
61772 2002-04-16  Jim Meyering  <meyering@lucent.com>
61773
61774         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61775         ut_pid, ut_id, ut_exit.
61776
61777 2002-04-16  Jim Meyering  <meyering@lucent.com>
61778
61779         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61780         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61781         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61782
61783 2002-04-12  Jim Meyering  <meyering@lucent.com>
61784
61785         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61786         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61787         existence of the getmntinfo function.  Needed for Darwin 5.3.
61788
61789         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61790         This is necessary at least on Darwin 5.3.
61791
61792         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61793         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61794         strnlen.o in the library, and that makes some versions of ranlib
61795         object.
61796
61797 2002-04-12  Jim Meyering  <meyering@lucent.com>
61798
61799         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61800
61801 2002-04-09  Jim Meyering  <meyering@lucent.com>
61802
61803         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61804         to be more precise.  Rather than saying we're checking whether the
61805         function `works', say what we're testing.
61806         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61807         Reported by Bruno Haible.
61808
61809 2002-03-10  Jim Meyering  <meyering@lucent.com>
61810
61811         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61812         Suggestion from Santiago Vila.
61813
61814 2002-03-08  Jim Meyering  <meyering@lucent.com>
61815
61816         * lib/rename.c: Mention that this wrapper is needed also on
61817         mips-dec-ultrix4.4 systems.
61818
61819 2002-03-02  Jim Meyering  <meyering@lucent.com>
61820
61821         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61822         not HAVE_CLOCK_SETTIME.
61823
61824 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61825
61826         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61827         Check for clock_settime.
61828
61829 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61830
61831         * lib/nanosleep.h: Rename to....
61832         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61833
61834         * lib/gettime.c: New file.
61835         * lib/settime.c: New file.
61836         * lib/stime.c: Remove.
61837
61838         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61839         timespec.h.  Remove nanosleep.h.
61840
61841 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61842
61843         * m4/acl.m4: New file.
61844         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61845         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61846
61847 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61848
61849         * lib/acl.c, lib/acl.h: New files.
61850         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61851
61852 2002-02-24  Jim Meyering  <meyering@lucent.com>
61853
61854         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61855         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61856         cause trouble.  Reported by Nelson Beebe.
61857
61858 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61859
61860         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61861         compilers that don't know that xalloc_die never returns.
61862
61863 2002-02-20  Jim Meyering  <meyering@lucent.com>
61864
61865         * lib/getdate.c: Regenerate using bison-1.33.
61866
61867 2002-02-17  Jim Meyering  <meyering@lucent.com>
61868
61869         * config/config.guess (main): Don't use `head -1'; it's no longer
61870         portable. Use `sed 1q' instead.
61871
61872 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61873
61874         * m4/codeset.m4: Upgrade to gettext-0.11.
61875         * m4/gettext.m4: Upgrade to gettext-0.11.
61876         * m4/glibc21.m4: Upgrade to gettext-0.11.
61877         * m4/iconv.m4: Upgrade to gettext-0.11.
61878         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61879         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61880         * m4/lib-ld.m4: New file, from gettext-0.11.
61881         * m4/lib-link.m4: New file, from gettext-0.11.
61882         * m4/lib-prefix.m4: New file, from gettext-0.11.
61883         * m4/progtest.m4: Upgrade to gettext-0.11.
61884
61885 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61886
61887         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61888         (jm_PREREQ): Use it.
61889
61890 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61891
61892         * lib/posixver.c, lib/posixver.h: New files.
61893         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61894
61895 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61896             Bruno Haible  <bruno@clisp.org>
61897
61898         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61899         (fwrite_success_callback): New declaration.
61900         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61901         print_unicode_char. Call failure callback instead of error.
61902         (fwrite_success_callback): New function.
61903         (exit_failure_callback): New function.
61904         (fallback_failure_callback): New function.
61905         (print_unicode_char): Call unicode_to_mb.
61906
61907 2002-01-26  Jim Meyering  <meyering@lucent.com>
61908
61909         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61910         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61911
61912 2002-01-26  Jim Meyering  <meyering@lucent.com>
61913
61914         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61915
61916 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61917
61918         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61919
61920 2002-01-22  Jim Meyering  <meyering@lucent.com>
61921
61922         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61923         Otherwise, some versions of automake would omit the rule that makes
61924         Makefile from Makefile.in.
61925
61926 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61927
61928         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61929         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61930         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61931         (memcoll): Set errno to zero if there is no error.
61932
61933         * lib/quotearg.c (quotearg_buffer_restyled):
61934         Fix bug with quoting buffers containing NUL when backslashing escapes.
61935         This bug was exposed by the other changes in this patch.
61936         (quotearg_n_options): New arg ARGSIZE.
61937         All callers changed.
61938         (quoting_options_from_style): New function.
61939         (quotearg_n_style): Use it.
61940         (quotearg_n_style_mem): New function.
61941
61942         * lib/quotearg.h (quotearg_n_style_mem): New function.
61943
61944 2002-01-19  Jim Meyering  <meyering@lucent.com>
61945
61946         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61947         Remove useless quotes: DF_PROG="df".
61948         * m4/strnlen.m4: New file.
61949
61950 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61951
61952         * lib/backupfile.c (ISDIGIT): Comment fix.
61953         * lib/getdate.y (ISDIGIT): Likewise.
61954         * lib/posixtm.c (ISDIGIT, year): Likewise.
61955         * lib/strverscmp.c (ISDIGIT): Likewise.
61956         * lib/userspec.c (ISDIGIT): Likewise.
61957
61958 2002-01-16  Jim Meyering  <meyering@lucent.com>
61959
61960         * lib/getdate.y: Add three semicolons, each just before a closing
61961         brace. Bison (as of version 1.31) no longer papers over that mistake.
61962
61963 2002-01-05  Jim Meyering  <meyering@lucent.com>
61964
61965         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61966
61967 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61968
61969         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61970         not silently exit merely because the output buffer happens to
61971         have nothing pending.
61972
61973 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61974
61975         See the big note in ../ChangeLog.
61976         * lib/human.c (suffixes): Prefer K to k for 1024.
61977         (generate_suffix_backwards): New function.
61978         (human_readable_inexact): Use it.
61979         * lib/xstrtol.c (__xstrtol): If there is no number but there
61980         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61981         Accept 'K' as well as 'k'.
61982
61983 2001-12-15  Jim Meyering  <meyering@lucent.com>
61984
61985         * lib/regex.h (__restrict_arr): Update from libc.
61986
61987         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61988         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61989         (STREQ): Define.
61990
61991 2001-12-14  Jim Meyering  <meyering@lucent.com>
61992
61993         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61994         Suggestion from Bruno Haible.
61995
61996 2001-12-10  Jim Meyering  <meyering@lucent.com>
61997
61998         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61999         xrealloc, Instead, include "xalloc.h".
62000         (initbuffer): Don't cast xmalloc return value to char*.
62001         (readline): Reword comment.
62002         Don't cast xrealloc return value to char*
62003         Return NULL, not 0.
62004
62005 2001-12-09  Jim Meyering  <meyering@lucent.com>
62006
62007         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
62008         about `signed and unsigned type in conditional expression'.
62009         * lib/posixtm.c (posix_time_parse): Likewise.
62010
62011         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
62012
62013         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
62014         to avoid a pedantic warning.
62015
62016         * lib/getstr.c: Don't include assert.h.
62017         (getstr): Remove warning-evoking assertions.
62018         Return -1 if offset parameter is out of bounds.
62019         Change the type of a local from int to size_t.
62020
62021         * lib/strftime.c (my_strftime_localtime_r): Include this function
62022         definition in the `#if ! HAVE_TM_GMTOFF' block.
62023
62024         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
62025         Include xalloc.h instead.
62026
62027 2001-12-02  Jim Meyering  <meyering@lucent.com>
62028
62029         * lib/tempname.c: Don't declare getenv, thus reverting the change of
62030         2001-11-18.  It's no longer necessary, now that stdlib.h is always
62031         included.
62032
62033         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
62034         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
62035
62036 2001-11-30  Akim Demaille  <akim@epita.fr>
62037
62038         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
62039         before being defined.
62040
62041 2001-11-27  Paul Eggert  <eggert@twinsun.com>
62042
62043         * lib/quotearg.h (quotearg_n, quotearg_n_style):
62044         First arg is int, not unsigned.
62045         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
62046         (SIZE_MAX, UINT_MAX): New macros.
62047         (quotearg_n_options): Abort if N is negative.
62048         Avoid overflow check on hosts where size_t is 64 bits and int
62049         is 32 bits, as overflow is impossible there.
62050         Fix off-by-one typo that caused unnecessary reallocation.
62051
62052 2001-11-27  Jim Meyering  <meyering@lucent.com>
62053
62054         * lib/tempname.c: Merge with version from libc.
62055         * lib/regex.c: Likewise.
62056
62057         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
62058         systems for which STDC_HEADERS is 0, it was not included, resulting in
62059         a warning about an integer-to-pointer conversion problem with getenv.
62060         Reported by Volker Borchert.
62061
62062 2001-11-26  Jim Meyering  <meyering@lucent.com>
62063
62064         * lib/gtod.h: Remove file.
62065         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
62066         * lib/gettimeofday.c: Don't include gtod.h.
62067         (GTOD_init): Remove function.
62068         (rpl_gettimeofday): Do its job here instead, rather than aborting.
62069         Suggestion from Volker Borchert.
62070
62071 2001-11-23  Jim Meyering  <meyering@lucent.com>
62072
62073         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
62074         it.
62075         * lib/hash.c (struct hash_table): Define it here instead.
62076
62077 2001-11-22  Jim Meyering  <meyering@lucent.com>
62078
62079         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
62080
62081 2001-11-20  Jim Meyering  <meyering@lucent.com>
62082
62083         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
62084         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
62085
62086 2001-11-19  Jim Meyering  <meyering@lucent.com>
62087
62088         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
62089         directory.  Use "conftestXXXXXX" as the template.
62090         Suggestion from Paul Eggert.
62091
62092         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
62093         immediately, so the test doesn't mistakenly hit the max-open-files
62094         limit.
62095
62096 2001-11-18  Paul Eggert  <eggert@twinsun.com>
62097
62098         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
62099         (TEMPORARIES): New macro.
62100         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
62101         removes an artificial limitation (e.g. HP-UX 10.20, where
62102         TMP_MAX is 17576).
62103
62104 2001-11-18  Jim Meyering  <meyering@lucent.com>
62105
62106         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
62107
62108 2001-11-18  Jim Meyering  <meyering@lucent.com>
62109
62110         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
62111         on SunOS 4.
62112
62113         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
62114         files will be created before anything else.
62115
62116 2001-11-17  Paul Eggert  <eggert@twinsun.com>
62117
62118         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
62119         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
62120
62121 2001-11-17  Jim Meyering  <meyering@lucent.com>
62122
62123         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
62124         Prompted by a report from Bob Proulx.
62125
62126         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
62127         Instead, require UTILS_FUNC_MKSTEMP.
62128
62129 2001-11-17  Jim Meyering  <meyering@lucent.com>
62130
62131         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
62132         Now, that's done as part of AC_FUNC_STRTOD.
62133
62134 2001-11-17  Jim Meyering  <meyering@lucent.com>
62135
62136         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
62137         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
62138         rather than group writable.  Patch by Juan F. Codagnone.
62139
62140         * lib/readtokens.c: Remove explicit declarations of xmalloc and
62141         xrealloc, Instead, include "xalloc.h".
62142
62143         * lib/mountlist.c: Include unlocked-io.h after all system headers.
62144         Remove explicit declarations of xmalloc, xrealloc,
62145         and xstrdup.  Instead, include "xalloc.h".
62146
62147         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
62148         unlocked-io.h.
62149         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
62150         Likewise.
62151         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
62152
62153         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
62154         Reported by Padraig Brady.
62155
62156         * lib/mkstemp.c: #undef mkstemp.
62157         Include config.h.
62158         (rpl_mkstemp): Rename from mkstemp.
62159         Protoize.
62160
62161 2001-11-16  Jim Meyering  <meyering@lucent.com>
62162
62163         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
62164         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
62165         determine the amount of total physical memory, use pstat_getstatic.
62166         HPUX-11 doesn't define _SC_PHYS_PAGES.
62167         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
62168         If sysconf couldn't be used to determine the amount of available
62169         physical memory, use both pstat_getstatic and pstat_getdynamic.
62170         Based on a patch from Bob Proulx.
62171
62172 2001-11-10  Jim Meyering  <meyering@lucent.com>
62173
62174         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
62175         (jm_PREREQ): Use it.
62176
62177 2001-11-09  Jim Meyering  <meyering@lucent.com>
62178
62179         * m4/jm-macros.m4: Require autoconf-2.52f.
62180         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
62181         Use these AC_-prefixed names, not the AM_-prefixed ones.
62182
62183         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
62184
62185 2001-11-05  Jim Meyering  <meyering@lucent.com>
62186
62187         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
62188
62189 2001-11-04  Jim Meyering  <meyering@lucent.com>
62190
62191         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
62192         $DEFS.
62193
62194 2001-11-03  Jim Meyering  <meyering@lucent.com>
62195
62196         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
62197         of AC_DEFUN.
62198
62199         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
62200         know the name of the variable in the macro definition.
62201
62202 2001-11-03  Jim Meyering  <meyering@lucent.com>
62203
62204         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
62205         in argmatch_to_argument call.
62206
62207         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
62208         argument.
62209
62210         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
62211         e.g., a fault due to an attempt to free a NULL pointer.
62212
62213 2001-11-01  Jim Meyering  <meyering@lucent.com>
62214
62215         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
62216         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
62217
62218 2001-11-01  Jim Meyering  <meyering@lucent.com>
62219
62220         * lib/dirfd.c, lib/dirfd.h: New files.
62221         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
62222
62223         * lib/hash.c (hash_print) [TESTING]: Clean up.
62224
62225 2001-10-22  Paul Eggert  <eggert@twinsun.com>
62226
62227         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
62228         to avoid a warning if -Wall.
62229
62230 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
62231
62232         * README: New file
62233         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
62234         (per RMS's instructions, this is now the canonical source)
62235         * lgpl/, gpl/: New directories.
62236
62237 2001-10-21  Paul Eggert  <eggert@twinsun.com>
62238
62239         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
62240
62241 2001-10-21  Jim Meyering  <meyering@lucent.com>
62242
62243         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
62244         this code would end up calling gettext even in packages built
62245         with --disable-nls.
62246         * lib/getopt.c (_): Likewise.
62247         * lib/regex.c (_): Likewise.
62248
62249 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62250
62251         * m4/error.m4 (jm_PREREQ_ERROR):
62252         Do not invoke AC_CHECK_FUNCS with strerror_r, as
62253         AC_FUNC_STRERROR_R does that.
62254         Check for strerror declaration.
62255
62256         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
62257         are supposed to have them these days.
62258         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
62259         Merge changes from latest Autoconf CVS.
62260         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
62261         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
62262         POSIX decided to standardize on the int flavor of strerror_r.
62263
62264 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62265
62266         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
62267         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
62268         Use strerror_r that is only a macro, even if it is not a function.
62269         (strerror): Check for HAVE_DECL_STRERROR before declaring.
62270         (private_strerror): Use prototypes, not old-style function definition.
62271         (print_errno_message): New function.
62272         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
62273         char*-flavored one.
62274         (error_tail, error, error_at_line): Use it.
62275
62276 2001-10-11  Jim Meyering  <meyering@lucent.com>
62277
62278         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
62279         and quote_n (1, ... to avoid clobbering a buffer.
62280
62281 2001-10-05  Jim Meyering  <meyering@lucent.com>
62282
62283         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
62284         hash-pjw.h.
62285         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
62286         * lib/hash-pjw.h: New file.
62287
62288 2001-09-30  Jim Meyering  <meyering@lucent.com>
62289
62290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
62291         `struct fsstat' has the `f_fstypename' member.
62292         Use that to define FS_TYPE, which is now used to make
62293         the getfsstat link test tighter.
62294
62295 2001-09-30  Jim Meyering  <meyering@lucent.com>
62296
62297         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
62298         Include <sys/ucred.h>, for Apple Darwin.
62299         Include sys/mount.h and sys/fs_types.h only if available.
62300         (FS_TYPE): Define.
62301         (read_filesystem_list): Use FS_TYPE.
62302
62303 2001-09-29  Paul Eggert  <eggert@twinsun.com>
62304
62305         * lib/exclude.c (excluded_filename): 0 -> false, since it's
62306         a boolean context.
62307
62308 2001-09-29  Jim Meyering  <meyering@lucent.com>
62309
62310         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62311         [one-argument getmntent function]): Include stdio.h before mntent.h.
62312         SunOS 4.1.x needs it for the declaration of `FILE'.
62313         Patch by Volker Borchert.
62314
62315         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62316         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
62317         sys/fs_types.h, and make the link-test for getfsstat guard #include
62318         directives with appropriate #if HAVE_*_H tests so that we can
62319         detect getfsstat on Apple Darwin1.3.7 systems.
62320         Reported by Nelson Beebe.
62321         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
62322
62323 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62324
62325         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62326         #defines strtoimax.  Also treat the other strto* functions
62327         like strtoimax.
62328
62329         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62330         Check for strtoul and strtoumax,
62331         as those declarations are made even in the signed case.
62332         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62333         Likewise, for strtol and strtoimax.
62334
62335 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62336
62337         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62338         #defines strtoimax.  Also treat the other strto* functions
62339         like strtoimax.
62340
62341         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62342         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62343         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62344
62345 2001-09-26  Jim Meyering  <meyering@lucent.com>
62346
62347         Most macros in unlocked-io.h had the wrong number of arguments.
62348         * lib/gen-uio: New script.
62349         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62350         * lib/unlocked-io.hin: Remove file.
62351         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62352         rather than trying to embed it here.
62353         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62354         Reported by Padraig Brady.
62355
62356 2001-09-25  Volker Borchert  <bt@teknon.de>
62357
62358         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62359         `result'.
62360
62361 2001-09-24  Jim Meyering  <meyering@lucent.com>
62362
62363         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62364
62365 2001-09-23  Jim Meyering  <meyering@lucent.com>
62366
62367         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62368         instead of the mere test for existence of mntent.h.  The latter
62369         would get a false-positive on AIX 3.4 systems.
62370         In the outer getmntent if-block, don't die if neither of the getmntent
62371         tests succeeds.  Instead, just fall through and continue with the
62372         remaining tests.
62373
62374 2001-09-23  Jim Meyering  <meyering@lucent.com>
62375
62376         * lib/mountlist.c: Remove useless parentheses in #if directives.
62377         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62378         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62379
62380 2001-09-22  Jim Meyering  <meyering@lucent.com>
62381
62382         * m4/gettext.m4: New file.  From gettext.
62383         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62384         * m4/progtest.m4: Likewise
62385         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62386         * m4/glibc21.m4: Likewise.
62387
62388         * m4/libintl.m4: Remove.  No longer used.
62389
62390 2001-09-22  Jim Meyering  <meyering@lucent.com>
62391
62392         * lib/localcharset.c: Update from latest gettext.
62393         * lib/config.charset: Likewise.
62394
62395 2001-09-20  Jim Meyering  <meyering@lucent.com>
62396
62397         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62398         strtoimax.
62399         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62400         strtoumax.
62401
62402 2001-09-20  Jim Meyering  <meyering@lucent.com>
62403
62404         * lib/xstrtol.c (strtoimax): Guard declaration with
62405         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62406         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62407         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62408         (strtoumax): Likewise, for completeness (it wasn't necessary).
62409
62410 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62411
62412         * lib/strtoimax.c (HAVE_LONG_LONG):
62413         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62414         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62415         to work around bug in IBM C compiler.
62416
62417 2001-09-17  Jim Meyering  <meyering@lucent.com>
62418
62419         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62420         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62421         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62422         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62423         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62424         whenever the right hand side need not be expanded by the shell.
62425
62426 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62427
62428         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62429         library.  It's not correct, as some older glibcs are buggy.
62430         fnmatch wasn't fixed until glibc 2.2.
62431
62432         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62433         special shell magic here.
62434
62435 2001-09-16  Jim Meyering  <meyering@lucent.com>
62436
62437         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62438         * m4/jm-macros.m4: Require it.
62439
62440 2001-09-16  Jim Meyering  <meyering@lucent.com>
62441
62442         * lib/mkdir.c: New file.
62443
62444 2001-09-15  Jim Meyering  <meyering@lucent.com>
62445
62446         * m4/jm-macros.m4: Check for help2man.
62447
62448 2001-09-11  Jim Meyering  <meyering@lucent.com>
62449
62450         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62451         The body, by Paul Eggert, was moved here from configure.in.
62452         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62453
62454 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62455
62456         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62457         (jm_PREREQ): Use it.
62458
62459 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62460
62461         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62462         Use ssize_t, not int, to store result of readlink.
62463         Check for ssize_t overflow as well as size_t overflow,
62464         as POSIX says the result of readlink is implementation-defined
62465         when ssize_t overflows.
62466         Remove unnecessary cast to char*.
62467         Use free+malloc instead of realloc, as the storage doesn't need
62468         to be preserved and it's clearer and can be more efficient that way.
62469         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62470         * lib/xreadlink.h (xreadlink): Update prototype.
62471
62472 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62473
62474         * lib/xgetcwd.c: Revert some of the previous change; intead,
62475         fix the HAVE_GETCWD_NULL code to behave more like the
62476         !HAVE_GETCWD_NULL code used to.
62477
62478         Include "xalloc.h".
62479         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62480         invoke xalloc_die.
62481
62482 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62483
62484         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62485         sys/param.h, as pathmax.h includes them.
62486
62487 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62488
62489         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62490         (jm_PREREQ_XGETCWD): New macro.
62491
62492         * m4/getcwd.m4: New file.
62493
62494 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62495
62496         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62497         like the HAVE_GETCWD_NULL code.
62498         Include pathmax.h if not HAVE_GETCWD.
62499         Do not include xalloc.h.
62500         (INITIAL_BUFFER_SIZE): New symbol.
62501         Do not use xmalloc / xrealloc, since the caller is responsible for
62502         handling errors.  Preserve errno around `free' during failure.
62503         Do not overrun buffer when using getwd.
62504
62505 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62506
62507         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62508         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62509         getcwd (NULL, 0).
62510
62511 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62512
62513         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62514         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62515         spotted by Jim Meyering.
62516
62517 2001-09-03  Jim Meyering  <meyering@lucent.com>
62518
62519         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62520         failure.
62521
62522 2001-09-02  Jim Meyering  <meyering@lucent.com>
62523
62524         * lib/error.c: Update from GNU libc.
62525
62526 2001-09-01  Jim Meyering  <meyering@lucent.com>
62527
62528         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62529         Used by df.
62530
62531 2001-09-01  Jim Meyering  <meyering@lucent.com>
62532
62533         * lib/xreadlink.c: New file.
62534         * lib/xreadlink.h: New file.
62535         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62536         xreadlink.h.
62537
62538         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62539         doesn't conflict with sparc Solaris 7's definition in
62540         /usr/include/sys/int_types.h.
62541
62542         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62543         files.
62544         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62545         and strncasecmp as r-values.  Unixware didn't have declarations.
62546
62547 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62548
62549         * lib/xstrtol.h: Add copyright notice.
62550         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62551         LONGINT_INVALID_SUFFIX_CHAR.
62552
62553 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62554
62555         * lib/xstrtol.c (strtoimax): New decl.
62556
62557 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62558
62559         * lib/xgetcwd.c: Don't include pathmax.h.
62560         Include stdlib.h and unistd.h if available.
62561         Include xalloc.h.
62562         (xmalloc, xstrdup, free): Remove decls.
62563         (xgetcwd): Don't assume sizes fit in unsigned.
62564         Check for overflow when computing sizes.
62565         Simplify reallocation code.
62566
62567 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62568
62569         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62570         a directory's st_size can have an arbitrary value, so the old
62571         usage could waste an arbitrary amount of memory.  All uses
62572         changed.
62573         * lib/savedir.h: Update prototype.
62574
62575 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62576
62577         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62578
62579         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62580         old strtoimax.c.
62581
62582         Also, make the following further changes to make this file's
62583         configuration more similar to that of strtol.c:
62584         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62585         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62586         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62587         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62588         changed to signed values.
62589
62590         And make the following changes as well:
62591         Fix copyright notice, as 1999 was missing.
62592         (verify): New macro.
62593         (strtoimax): Check sizes at compile-time, not run-time.
62594         Prefer strtol to strtoll if both work.
62595         (main): Remove; it was not that useful and was a pain to maintain.
62596
62597         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62598
62599 2001-08-31  Jim Meyering  <meyering@lucent.com>
62600
62601         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62602         Use an initial, malloc'd, buffer of length 128 rather than
62603         a statically allocated one of length 1024.
62604
62605 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62606
62607         Simplify code, partly by assuming autoconf 2.52 semantics.
62608
62609         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62610
62611         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62612         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62613         All uses removed.
62614         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62615         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62616         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62617         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62618         jm_AC_HEADER_INTTYPES_H.
62619         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62620
62621         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62622
62623         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62624         Quote first arg of AC_DEFUN.
62625         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62626         since they are needed to parse the include file even if we need
62627         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62628         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62629         but with opposite signedness.
62630
62631 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62632
62633         Merge 'exclude' changes from tar 1.13.22.
62634         This fixes one or two unlikely storage allocation overflow bugs,
62635         but doesn't change user-visible behavior otherwise.
62636
62637 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62638
62639         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62640         (jm_PREREQ_EXCLUDE): New macro.
62641
62642 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62643
62644         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62645         tm to be declared.
62646
62647 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62648
62649         * lib/hash.c: Remove '2001' from copyright notice.
62650
62651 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62652
62653         * lib/full-write.h: New file.
62654         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62655         * lib/full-write.c: Correct credits, as cccp.c no longer
62656         exists and anyway it was so heavily changed from the old cccp
62657         code as to be unrecognizable.  Include full-write.h.
62658         (full_write) Return size_t, with short writes meaning failure.
62659         All callers changed.  This fixes a bug with large buffers
62660         on 64-bit hosts.
62661         * lib/utime.c: Include full-write.h.
62662
62663 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62664
62665         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62666         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62667         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62668         Include if available.
62669         (<xalloc.h>): Include
62670         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62671         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62672         collide with FNM macros.
62673         (struct patopts): New struct.
62674         (struct exclude): Use it, as exclude patterns now come with options.
62675         (new_exclude): Support above changes.
62676         (new_exclude, add_exclude_file):
62677         Initial size must now be a power of two to simplify overflow checking.
62678         (free_exclude, fnmatch_no_wildcards): New function.
62679         (excluded_filename): No longer requires options arg, as the options
62680         are determined by add_exclude.  Now returns bool, not int.
62681         (excluded_filename, add_exclude):
62682         Add support for the fancy new exclusion options.
62683         (add_exclude, add_exclude_file): Now takes int options arg.
62684         Check for arithmetic overflow when computing sizes.
62685         (add_exclude_file): xrealloc might modify errno, so don't
62686         realloc until after errno might be used.
62687
62688         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62689         New macros.
62690         (free_exclude): New decl.
62691         (add_exclude, add_exclude_file): Now takes int options arg.
62692         (excluded_filename): No longer requires options arg, as the options
62693         are determined by add_exclude.  Now returns bool, not int.
62694
62695 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62696
62697         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62698
62699 2001-08-27  Jim Meyering  <meyering@lucent.com>
62700
62701         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62702
62703         * lib/version-etc.c (N_): Remove definition.
62704         Revert most of last change.
62705         Instead, simply don't mark the `Copyright...' string for translation.
62706         Based on advice from Paul Eggert.
62707
62708         * lib/strtoxmax.c: Tweak comment.
62709
62710 2001-08-26  Jim Meyering  <meyering@lucent.com>
62711
62712         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62713
62714         * m4/xstrtoimax.m4: New file.
62715         * m4/xstrtoumax.m4: Add comments explaining why we
62716         AC_REPLACE_FUNCS(strtol).
62717
62718 2001-08-26  Jim Meyering  <meyering@lucent.com>
62719
62720         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62721         of copyright with `%s' so translators don't get an untranslated
62722         message in 2002.
62723         (COPYRIGHT_YEAR): Define.
62724         (version_etc): Use fprintf rather than fputs.
62725         Suggestion from Ulrich Drepper.
62726
62727         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62728
62729         * lib/strtoll.c: New file, from GNU libc.
62730         * lib/xstrtoimax.c: New file.
62731
62732         * lib/xstrtol.h: Add xstrtoimax.
62733         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62734         * lib/strtoimax.c: New file.  Likewise, but first define
62735         STRTOUXMAX_SIGNED.
62736
62737         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62738         ...
62739         * lib/strtoxmax.c: ... then renamed to this.
62740
62741 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62742
62743         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62744         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62745         (jm_AC_TYPE_INTMAX_T): New macro.
62746         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62747
62748         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62749
62750         * m4/longlong.m4: Renamed from ulonglong.m4.
62751         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62752         * m4/uintmax_t.m4: Removed.
62753
62754 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62755
62756         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62757         Port to Solaris 8, where 'sed' requires a space after the 'r'
62758         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62759         Redirect output to $tmp just once.
62760
62761 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62762
62763         * lib/addext.c (<errno.h>): Include.
62764         (errno): Declare if not defined.
62765         (addext): Work correctly when pathconf returns -1 and leaves
62766         errno alone because there is no limit.  Also, work even if
62767         pathconf returns a value greater than SIZE_MAX.
62768
62769 2001-08-12  Jim Meyering  <meyering@lucent.com>
62770
62771         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62772         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62773         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62774         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62775         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62776         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62777         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62778         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62779         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62780         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62781         utime.m4, utimes.m4, xstrtoumax.m4:
62782         Quote the first argument in each use of AC_DEFUN.
62783
62784 2001-08-12  Jim Meyering  <meyering@lucent.com>
62785
62786         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62787         Simply `return getcwd (NULL, 0);'.
62788         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62789         Use 1300 as initial value for length, not PATH_MAX.
62790
62791         * lib/pathmax.h: Clean up cpp syntax.
62792
62793 2001-08-12  Jim Meyering  <meyering@lucent.com>
62794
62795         * lib/gettimeofday.c: New file.
62796         * lib/gtod.h: New file.
62797         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62798
62799 2001-08-05  Jim Meyering  <meyering@lucent.com>
62800
62801         * m4/jm-macros.m4: Require autoconf-2.52.
62802
62803 2001-08-04  Jim Meyering  <meyering@lucent.com>
62804
62805         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62806         stmt, to get in sync with glibc.
62807
62808 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62809
62810         The following changes are from gettext 0.10.39 as maintained by
62811         Bruno Haible.
62812
62813         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62814         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62815         with inverted sense.  All uses changed.
62816
62817         * lib/mbswidth.c: Don't include <limits.h>.
62818         Include <stdlib.h> and <string.h> unconditionally.
62819         (iswcntrl, mbsinit, ISCNTRL): New macros.
62820         (mbsnwidth): Use K&R style function declarations.
62821         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62822         can optimize it when MB_CUR_MAX == 1.
62823         The width of control characters is zero, not 1.
62824
62825 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62826
62827         The following changes are from gettext 0.10.39 as maintained by
62828         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62829
62830         * m4/codeset.m4: Upgrade to serial AM1.
62831         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62832         all uses changed.  Quote first arg of AC_DEFUN.
62833         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62834
62835         * m4/iconv.m4: Upgrade to serial AM2.
62836         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62837         Add --with-libconv-prefix.
62838         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62839         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62840         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62841         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62842         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62843
62844         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62845         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62846         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62847         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62848         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62849         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62850         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62851         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62852         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62853
62854         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62855         string.h any more.
62856
62857         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62858         not the default value.
62859
62860         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62861         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62862         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62863         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62864         Also check for iswcntrl, used for wcwidth fallback.
62865         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62866         to Autoconf 2.13.
62867
62868 2001-08-03  Jim Meyering  <meyering@lucent.com>
62869
62870         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62871         as it was in the original.  Reported by Paul Eggert.
62872
62873 2001-07-16  Jim Meyering  <meyering@lucent.com>
62874
62875         * m4/gettimeofday.m4: New file.
62876         Prompted by a report from Bernhard Baehr.
62877
62878 2001-07-15  Jim Meyering  <meyering@lucent.com>
62879
62880         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62881         stuff. Now it's in ../Makefile.cfg.
62882
62883 2001-07-15  Jim Meyering  <meyering@lucent.com>
62884
62885         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62886         (BUILT_SOURCES): Add unlocked-io.h.
62887         (io_functions): Define.
62888         (unlocked-io.h): New rule.
62889         (DISTCLEANFILES): Add unlocked-io.h.
62890         (all-local): Depend on unlocked-io.h, to ensure it is created.
62891
62892         * lib/unlocked-io.hin: New file
62893
62894         * lib/regex.c: Update from glibc.
62895
62896 2001-07-05  Jim Meyering  <meyering@lucent.com>
62897
62898         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62899         recommendation.
62900         (libfetish_a_SOURCES): Put all .h files here instead.
62901         Remove a thus-exposed (better checks in automake) duplicate and
62902         two unnecessary .h files.
62903
62904 2001-07-04  Jim Meyering  <meyering@lucent.com>
62905
62906         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62907         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62908         distcheck failure.
62909
62910 2001-07-02  Jim Meyering  <meyering@lucent.com>
62911
62912         The following changes were prompted by suggestions from Bruno Haible.
62913
62914         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62915         is now generated.
62916         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62917         definition of EXTRA_DIST.
62918         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62919         ensure that the generated file is created/updated whenever the list
62920         of $(unlocked_functions) is changed.
62921         (jm-glibc-io.m4): New rule.
62922         (unlocked-io.h): New rule -- currently unused.
62923
62924 2001-06-24  Jim Meyering  <meyering@lucent.com>
62925
62926         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62927         unmatched right bracket, rather than kludging it with an extra,
62928         falsely-matching quote in a comment.  Patch by Akim Demaille.
62929
62930 2001-06-11  Jim Meyering  <meyering@lucent.com>
62931
62932         * lib/regex.c: Update from GNU libc.
62933
62934 2001-05-27  Jim Meyering  <meyering@lucent.com>
62935
62936         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62937         Check for ut_type in struct utmp.
62938
62939 2001-05-27  Jim Meyering  <meyering@lucent.com>
62940
62941         * lib/readutmp.h (UT_TYPE): Define.
62942
62943 2001-05-24  Jim Meyering  <meyering@lucent.com>
62944
62945         * lib/argmatch.c: Include "quote.h".
62946         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62947         quote function.  Reported by Göran Uddeborg.
62948
62949 2001-05-22  Jim Meyering  <meyering@lucent.com>
62950
62951         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62952         now that we use the package-supplied version unconditionally.
62953         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62954
62955 2001-05-21  Jim Meyering  <meyering@lucent.com>
62956
62957         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62958         shell syntax errors.
62959
62960 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62961
62962         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62963
62964 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62965
62966         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62967         Don't bother to check library strftime, since
62968         we'll be using our own my_strftime function anyway.
62969         Define my_strftime instead of strftime.
62970
62971 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62972
62973         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62974         which is not yet declared.
62975
62976 2001-05-15  Jim Meyering  <meyering@lucent.com>
62977
62978         * m4/regex.m4: Use proper quoting so brackets appear in the test
62979         program.
62980         Reported by, and with help from, Bruno Haible.
62981
62982 2001-05-13  Jim Meyering  <meyering@lucent.com>
62983
62984         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62985         undefined.
62986
62987 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62988
62989         dirname code cleanup.  base_name now behaves more compatibly
62990         with POSIX basename when given file names that have trailing
62991         slashes, and similarly for dir_name.  Add new primitives
62992         base_len and dir_len.  Put the directory-name-related decls
62993         into dirname.h.
62994
62995         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62996         * lib/backupfile.c (base_name): Likewise.
62997         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62998         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62999         * lib/makepath.c (strip_trailing_slashes): Likewise.
63000         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
63001         ISSLASH): Likewise.
63002         * lib/rename.c (strip_trailing_slashes): Likewise.
63003         * lib/same.c (base_name): Likewise.
63004         * lib/stripslash.c (ISSLASH): Likewise.
63005
63006         * lib/addext.c: Include <dirname.h> after size_t is defined.
63007         * lib/backupfile.c: Likewise.
63008
63009         * lib/addext.c (addext): Use base_len to trim redundant
63010         trailing slashes instead of doing it ourselves.
63011         But do not trim the last slash if it is not redundant.
63012
63013         * lib/backupfile.c (find_backup_file_name,
63014         max_backup_version): Use base_len instead of rolling it ourselves.
63015         Handle the case of "" and (on DOS) "C:" correctly.
63016
63017         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
63018         needed. Include <string.h>, <dirname.h>.
63019         (base_name): Allow file names ending in slashes, other than names
63020         that are all slashes.  In this case, return the basename followed
63021         by the slashes.  This is more general, and can be used in places
63022         where the original base_name purposely had an assertion failure.
63023         (base_len): New function.
63024
63025         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
63026         Do not include <assert.h>; no longer needed.
63027         Include xalloc.h.
63028         (memrchr): Remove decl.
63029         (dir_name_r): Remove.
63030         (dir_len): Renamed from dirlen.  All callers changed.
63031         Rewrite in terms of base_name, for simplicity and consistency.
63032         (dir_name): Never return NULL.  All callers changed.
63033         Do not include <stdlib.h> in test program; no longer needed.
63034         return 0; is fine for test program.
63035
63036         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
63037         New macros.
63038         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
63039
63040         * lib/path-concat.c (path_concat): Use base_len to compute
63041         base length, not strlen; this means we cannot rely on memcpy
63042         to null-terminate.
63043
63044         * lib/same.c (STREQ): Remove.
63045         (same_name): Handle the case where the basename ends in trailing '/'.
63046
63047         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
63048         a slash was stripped.  Do not strip the last slash after a
63049         file system prefix.
63050
63051 2001-05-11  Paul Eggert  <eggert@twinsun.com>
63052
63053         * lib/Makefile.am (libfetish_a_SOURCES):
63054         Add strftime.c, since we now compile it on all hosts.
63055
63056         * lib/strftime.c (my_strftime):
63057         Define to nstrftime if emacs, but only if my_strftime is not defined.
63058         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
63059         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
63060         Add one more extra argument: a nanoseconds value.
63061         All uses changed.
63062         (ns): New macro.
63063         (my_strftime function): Add %N format.
63064         (emacs_strftimeu): Renamed from emacs_strftime,
63065         with extra ut argument.
63066
63067 2001-05-09  Paul Eggert  <eggert@twinsun.com>
63068
63069         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
63070
63071 2001-04-21  Jim Meyering  <meyering@lucent.com>
63072
63073         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
63074         doesn't interfere.
63075
63076 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
63077
63078         * m4/ftruncate.m4: Check for chsize.
63079         Link with ftruncate.o unconditionally if ftruncate is missing.
63080         This was required when cross-compiling to i586-mingw32msvc.
63081
63082 2001-04-08  Jim Meyering  <meyering@lucent.com>
63083
63084         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
63085         recomputed; that's necessary when the offset spans a DST transition.
63086         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
63087
63088 2001-04-02  Jim Meyering  <meyering@lucent.com>
63089
63090         * lib/regex.h, regex.c: Update from GNU libc.
63091
63092 2001-03-24  Jim Meyering  <meyering@lucent.com>
63093
63094         * m4/jm-macros.m4: Require autoconf-2.49d.
63095
63096 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
63097
63098         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
63099
63100 2001-03-19  Paul Eggert  <eggert@twinsun.com>
63101
63102         * lib/version-etc.c (version_etc_copyright): Update to 2001.
63103
63104 2001-03-17  Jim Meyering  <meyering@lucent.com>
63105
63106         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
63107         now that the version in autoconf is equivalent.
63108         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
63109
63110         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
63111         Suggestion from Akim Demaille.
63112
63113         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
63114         (jm_PREREQ_TEMPNAME): New function.
63115
63116 2001-03-16  Paul Eggert  <eggert@twinsun.com>
63117
63118         * lib/tempname.c (uint64_t): Define to uintmax_t if
63119         not defined, and if UINT64_MAX is not defined.
63120         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
63121         Reported by John David Anglin.
63122
63123 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
63124
63125         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
63126         resolve alias if codeset is empty.
63127         * lib/config.charset (BeOS): Use wildcard syntax.
63128
63129 2001-03-13  Jim Meyering  <meyering@lucent.com>
63130
63131         * lib/path-concat.c (path_concat)
63132         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
63133         concatenating e.g., `C:' and `foo'.
63134         From Bruno Haible.
63135
63136 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63137
63138         * lib/localcharset.c (locale_charset): Don't use
63139         setlocale(LC_CTYPE,NULL). Don't return NULL.
63140         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
63141
63142 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63143
63144         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
63145         support for DOS/DJGPP.
63146
63147 2001-03-01  Paul Eggert  <eggert@twinsun.com>
63148
63149         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
63150         lacks mkstemp.  Compile our own tempname.c if we compile our own
63151         mkstemp.c, as mkstemp relies on tempname.
63152
63153 2001-03-01  Jim Meyering  <meyering@lucent.com>
63154
63155         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
63156         AH_VERBATIM really does output its argument verbatim.
63157
63158 2001-02-28  Paul Eggert  <eggert@twinsun.com>
63159
63160         * lib/Makefile.am (libfetish_a_SOURCES):
63161         Add dup-safer.c, fopen-safer.c.
63162         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
63163
63164         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
63165         * lib/unistd-safer.h: New files.
63166
63167 2001-02-25  Paul Eggert  <eggert@twinsun.com>
63168
63169         The mkstemp replacement is taken from glibc 2.2.2, with some
63170         portability fixes for use outside glibc, as follows:
63171
63172         * lib/tempname.c (struct_stat64): New macro.
63173         (direxists, __gen_tempname): Use it.
63174         This avoids a portability problem with Solaris 8.
63175
63176         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
63177         (<stddef.h>, <stdint.h>, <string.h>):
63178         Include only if STDC_HEADERS || _LIBC.
63179         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
63180         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
63181         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
63182         (__set_errno): Define this macro if <errno.h> doesn't.
63183         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
63184         Define these macros if <stdio.h> doesn't.
63185         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
63186         Define these macros if <sys/stat.h>
63187         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
63188         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
63189         __xstat64): Define if not _LIBC.
63190         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
63191         (__gen_tempname): Invoke gettimeofday only if
63192         HAVE_GETTIMEOFDAY || _LIBC;
63193         otherwise, fall back on plain "time".
63194         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
63195
63196         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
63197
63198         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
63199
63200 2001-02-18  Paul Eggert  <eggert@twinsun.com>
63201
63202         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
63203
63204 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63205
63206         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
63207         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
63208         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
63209         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63210
63211 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63212
63213         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
63214         Remove workaround macros for hosts that have mbrtowc but not
63215         mbstate_t, as we now insist on proper declarations for both
63216         before using mbrtowc.
63217
63218 2001-02-17  Jim Meyering  <meyering@lucent.com>
63219
63220         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
63221         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
63222         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
63223         UnixWare 7.1.1.
63224
63225         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
63226         rather than AC_CACHE_VAL.
63227
63228 2001-02-17  Jim Meyering  <meyering@lucent.com>
63229
63230         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
63231         around included file name.
63232
63233         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
63234
63235         * lib/strftime.c: Update from GNU libc (the only changes were to
63236         comments).
63237
63238 2001-02-17  Jim Meyering  <meyering@lucent.com>
63239
63240         * lib/regex.c: Update from libc.
63241
63242 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
63243
63244         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
63245         clash.
63246
63247 2001-02-16  Paul Eggert  <eggert@twinsun.com>
63248
63249         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
63250         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
63251         Reported by Mark Hounschell via Paul Eggert.
63252
63253 2001-02-07  Jim Meyering  <meyering@lucent.com>
63254
63255         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
63256
63257 2001-02-05  Jim Meyering  <meyering@lucent.com>
63258
63259         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
63260         it includes the patch required for `large file' support with at least
63261         HP-UX's 10.20 /bin/cc.
63262
63263 2001-02-03  Jim Meyering  <meyering@lucent.com>
63264
63265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
63266         AS_IF, now that it works once again (mysteriously).
63267         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63268
63269 2001-01-30  Jim Meyering  <meyering@lucent.com>
63270
63271         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
63272         * m4/chown.m4: Rename conftestchown to conftest.chown.
63273         * m4/rename.m4: s/conftestdir/conftest.d1/ and
63274         s/conftestdir2/conftest.d2/.
63275         * m4/utimes.m4: s/conftestdata/conftest.data/
63276         Inspired by Pavel Roskin's change in autoconf.
63277
63278 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
63279
63280         * lib/config.charset: Update for FreeBSD 4.2.
63281
63282 2001-01-27  Jim Meyering  <meyering@lucent.com>
63283
63284         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
63285         a use of AS_IF.
63286         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63287
63288 2001-01-26  Jim Meyering  <meyering@lucent.com>
63289
63290         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
63291         quotearg.c includes it.
63292
63293 2001-01-26  Jim Meyering  <meyering@lucent.com>
63294
63295         * lib/quotearg.c: Include stddef.h.
63296         * lib/quote.c: Include stddef.h.
63297         Reported by Axel Kittenberger.
63298
63299         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
63300         line in double quotes so that it evokes a better diagnostic.
63301         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
63302         Reported by Axel Kittenberger.
63303
63304 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
63305
63306         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
63307         as if it was a `charset'.
63308
63309 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63310
63311         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
63312         has const.
63313
63314 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63315
63316         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
63317         to avoid a warning.  Add back 'const' to inptr.
63318
63319 2001-01-20  Jim Meyering  <meyering@lucent.com>
63320
63321         Be sure that headers are checked before used in code compiled
63322         for the type checks.
63323         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
63324         In place of that, invoke jm_CHECK_ALL_TYPES.
63325         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
63326         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
63327         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
63328         The check for ssize_t was mistakenly run before the test for unistd.h.
63329
63330         The configure-time check for stdbool.h was missing.
63331         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
63332         (jm_PREREQ_HASH): New function.
63333
63334 2001-01-17  Jim Meyering  <meyering@lucent.com>
63335
63336         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63337         for autoconf-2.49c.
63338         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63339
63340 2001-01-16  Jim Meyering  <meyering@lucent.com>
63341
63342         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63343         From Bruno Haible.
63344
63345 2001-01-14  Jim Meyering  <meyering@lucent.com>
63346
63347         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63348         foo and bar.  Create conftestdir/ in the script, not in the C code.
63349         Remove directories in the script, not in the C code.
63350         Remove conftestdir{,2} before trying to create the directory.
63351         Make the entire configure script fail if the mkdir fails.
63352
63353 2001-01-14  Jim Meyering  <meyering@lucent.com>
63354
63355         * lib/rename.c: New file.  From Volker Borchert.
63356         Include stdlib.h, string.h or strings.h, and xalloc.h.
63357         Use strip_trailing_slashes rather than open-coding it.
63358
63359 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63360
63361         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63362
63363 2001-01-03  Jim Meyering  <meyering@lucent.com>
63364
63365         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63366         of local `inptr' to avoid warning with some system declarations of
63367         iconv.
63368
63369 2001-01-02  Volker Borchert  <bt@teknon.de>
63370
63371         * m4/rename.m4: New file.
63372         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63373
63374 2001-01-01  Jim Meyering  <meyering@lucent.com>
63375
63376         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63377         even on systems with utmpx.h.  It's necessary for the declaration of
63378         utmp's ut_user member.  Reported by Andreas Jaeger.
63379
63380         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63381         available. They are required for the declarations of getgrgid and
63382         getpwuid resp.
63383         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63384         Reported by Andreas Jaeger.
63385
63386 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63387
63388         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63389         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63390         so `make install' also works in VPATH builds.
63391
63392 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63393
63394         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63395         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63396         can be used in subdirectories.
63397
63398 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63399
63400         * lib/modechange.c: Do not assume that mode_t uses the
63401         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63402         the other-execute bit of FOO even if S_IXOTH != 1.
63403
63404         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63405         WOTH, XOTH, ALLM): New macros.
63406         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63407          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63408         Use them.
63409         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63410         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63411         (mode_compile):
63412         No need to use uintmax_t; unsigned long is long enough.
63413         Don't bother to get suffix since we don't use it.
63414
63415 2000-12-26  Jim Meyering  <meyering@lucent.com>
63416
63417         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63418         better with autoheader.
63419
63420 2000-12-24  Jim Meyering  <meyering@lucent.com>
63421
63422         * lib/hash.c (is_prime): Return explicit boolean values.
63423         (hash_get_first): Return NULL to appease Irix5.6's 89.
63424         Reported by Nelson Beebe.
63425
63426 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63427
63428         * lib/localcharset.c (locale_charset): Add support for Win32.
63429
63430 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63431
63432         * lib/physmem.h, lib/physmem.c: New files.
63433
63434         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63435         (noinst_HEADERS): Add physmem.h.
63436
63437         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63438         't' for compatibility with Solaris 8 sort.
63439
63440 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63441
63442         * lib/config.charset: Add support for BeOS.
63443
63444 2000-12-17  Jim Meyering  <meyering@lucent.com>
63445
63446         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63447         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63448
63449 2000-12-16  Jim Meyering  <meyering@lucent.com>
63450
63451         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63452         N and M) would have treated it like `chown N:N FILE'.
63453
63454         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63455
63456 2000-12-16  Jim Meyering  <meyering@lucent.com>
63457
63458         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63459         SHELLS_FILE to a file name that's useful on djgpp systems.
63460         Include stdlib.h.
63461         (ADDITIONAL_DEFAULT_SHELLS): Define.
63462         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63463         Based mostly on a patch from Prashant TR.
63464
63465 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63466
63467         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63468         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63469         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63470
63471 2000-12-08  Andreas Schwab  <schwab@suse.de>
63472
63473         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63474         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63475
63476 2000-12-07  Jim Meyering  <meyering@lucent.com>
63477
63478         * lib/stripslash.c (ISSLASH): Define.
63479         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63480         `/'.
63481         From Prashant TR.
63482
63483         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63484         (dir_name_r): Declare this function as static.
63485         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63486         manifest itself on a name containing a mix of slashes and
63487         backslashes.
63488         Make this function work with names starting with a DOS-style
63489         drive letter and colon prefix.
63490         (dir_name): Append `.' if necessary.
63491         Based mostly on patches from Prashant TR and Eli Zaretskii.
63492
63493         * lib/dirname.h (dir_name_r): Remove prototype.
63494
63495 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63496
63497         * m4/off_t-format.m4: Remove this file.
63498         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63499
63500 2000-12-06  Jim Meyering  <meyering@lucent.com>
63501
63502         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63503         replacement strtoull, we may well need the replacement strtoul, too.
63504         Check for declarations of strtoul and strtoull.
63505         Check for strtol.  Mainly as a cue to cause automake to include
63506         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63507         Check for limits.h -- strtol.c needs it.
63508
63509 2000-12-05  Jim Meyering  <meyering@lucent.com>
63510
63511         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63512
63513 2000-12-04  Jim Meyering  <meyering@lucent.com>
63514
63515         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63516         Also include memory.h, stdlib.h, unistd.h if appropriate.
63517         Reported by Andreas Jaeger (conflicting declaration of malloc).
63518
63519 2000-12-02  Jim Meyering  <meyering@lucent.com>
63520
63521         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63522         * m4/jm-macros.m4 (jm_MACROS): require it.
63523
63524 2000-12-02  Jim Meyering  <meyering@lucent.com>
63525
63526         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63527
63528 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63529
63530         * lib/memrchr.c: Include <config.h> before any system include file.
63531
63532 2000-11-30  Jim Meyering  <meyering@lucent.com>
63533
63534         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63535
63536 2000-11-30  Jim Meyering  <meyering@lucent.com>
63537
63538         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63539
63540 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63541
63542         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63543
63544 2000-11-26  Jim Meyering  <meyering@lucent.com>
63545
63546         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63547
63548 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63549
63550         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63551         size of (size_t) -1; it's not portable.
63552
63553 2000-11-17  Jim Meyering  <meyering@lucent.com>
63554
63555         * lib/strstr.c: Update from GNU libc.
63556
63557 2000-11-17  Akim Demaille  <akim@epita.fr>
63558
63559         * lib/obstack.h: Formatting changes.
63560         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63561         prevent type checking.
63562         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63563         cast the value to (void *): assigning a `foo *' to a `void *'
63564         variable is valid.
63565         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63566
63567 2000-11-16  Jim Meyering  <meyering@lucent.com>
63568
63569         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63570
63571 2000-11-11  Jim Meyering  <meyering@lucent.com>
63572
63573         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63574
63575 2000-11-10  Jim Meyering  <meyering@lucent.com>
63576
63577         * lib/obstack.h: Update from GNU libc.
63578         * lib/obstack.c: Likewise.
63579
63580 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63581
63582         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63583
63584 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63585
63586         * lib/getusershell.c (setusershell): Use rewind rather than
63587         fseek/fseeko, to avoid configuration hassles with fseeko.
63588         Don't bother opening SHELLS_FILE if shellstream is NULL;
63589         it's not necessary.
63590
63591 2000-11-05  Jim Meyering  <meyering@lucent.com>
63592
63593         * lib/makepath.h (make_dir): Declare.
63594         * lib/makepath.c (make_dir): Remove `static' attribute.
63595         Tweak a comment.
63596
63597 2000-11-04  Jim Meyering  <meyering@lucent.com>
63598
63599         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63600
63601 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63602
63603         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63604         last one in a bucket, advance to the next bucket.
63605
63606 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63607
63608         * lib/fnmatch.c: Do not comment out all the code if we are using
63609         the GNU C library, because in some cases we are replacing buggy
63610         code in the GNU C library itself.
63611
63612 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63613
63614         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63615         (regex_compile): Catch bogus \(\1\).
63616
63617 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63618
63619         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63620         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63621         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63622
63623 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63624
63625         * lib/error.h, getline.h, modechange.h:
63626         Remove "2000" from Copyright line, as the file hasn't been
63627         changed this year other than in the copyright notice.
63628
63629         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63630         was changed this year.
63631
63632 2000-10-29  Jim Meyering  <meyering@lucent.com>
63633
63634         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63635         renaming.
63636         * m4/ls-mntd-fs.m4: Likewise
63637
63638 2000-10-29  Jim Meyering  <meyering@lucent.com>
63639
63640         * lib/xstat.in: Fix grammar in comment.
63641
63642 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63643
63644         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63645         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63646         doesn't define __restrict_arr.
63647
63648 2000-10-28  Jim Meyering  <meyering@lucent.com>
63649
63650         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63651         (jm_PREREQ_MEMCHR): New function.
63652
63653 2000-10-28  Jim Meyering  <meyering@lucent.com>
63654
63655         * lib/memchr.c: Update from libc.
63656         Adjust for portability:
63657         [HAVE_STDLIB_H]: Include stdlib.h.
63658         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63659         Undef __memchr, too.
63660         [!weak_alias]: Define __memchr to memchr.
63661
63662         * lib/regex.c: Update from libc.
63663         * lib/regex.h: Likewise.
63664         * lib/getopt1.c: Likewise.
63665         * lib/memcmp.c: Likewise.
63666
63667         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63668         Avoid using fseek, when possible -- it's broken by design.
63669         Patch by Ulrich Drepper.
63670
63671 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63672
63673         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63674         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63675         Giving in to popular pressure to shut up the compiler with casts.
63676
63677 2000-10-26  Jim Meyering  <meyering@lucent.com>
63678
63679         * lib/strftime.c: Update from libc.
63680
63681 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63682
63683         * regex.c: More `unsigned char' -> `re_char' changes.
63684         Also change several `int' into `re_wchar_t'.
63685         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63686         (PUSH_FAILURE_POINTER): Don't cast any more.
63687         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63688         We want GCC to complain, since this piece of code makes
63689         re_match non-reentrant, which *should* be fixed.
63690         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63691         (EXTEND_BUFFER): Use RETALLOC.
63692         (SET_LIST_BIT): Don't cast.
63693         (re_wchar_t): New type.
63694         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63695         that those two functions will always properly return.
63696         (IMMEDIATE_QUIT_CHECK): Cast to void.
63697         (analyse_first): Use recursion rather than an explicit stack.
63698         (re_compile_fastmap): Can't fail anymore.
63699         (re_search_2): Don't check re_compile_fastmap for failure.
63700         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63701         Now also sets the new value (passed in a new argument).
63702         (re_match_2_internal): Use it.
63703         Also, use a new var `reg' of type size_t when looping through regs
63704         rather than reuse the inappropriate `mcnt'.
63705
63706 2000-10-25  Jim Meyering  <meyering@lucent.com>
63707
63708         * lib/obstack.c: Update from libc.
63709
63710 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63711
63712         * regex.c (regex_compile): Change the way of handling a range from
63713         a char less than 256 to a char not less than 256.
63714
63715 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63716
63717         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63718         NT-Emacs only.
63719         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63720         so that re_search functions only quit when callers expect them to.
63721
63722 2000-10-23  Jim Meyering  <meyering@lucent.com>
63723
63724         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63725         wrong.  That set_locale call must not have any side effects.
63726         From Paul Eggert.
63727
63728 2000-10-22  Jim Meyering  <meyering@lucent.com>
63729
63730         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63731         [CYCLIC]: Remove now-unused definition.
63732
63733         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63734         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63735         Suggestion from Ulrich Drepper.
63736
63737 2000-10-21  Jim Meyering  <meyering@lucent.com>
63738
63739         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63740         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63741         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63742
63743 2000-10-21  Jim Meyering  <meyering@lucent.com>
63744
63745         * lib/dirname.c (memrchr): Declare if necessary.
63746         (dir_name): Remove the restriction that there be no
63747         trailing slashes.  Now, this code skips past them, effectively
63748         ignoring them.
63749         [TEST_DIRNAME] (main): New unit tests.
63750
63751         * lib/memrchr.c: New file from GNU libc.
63752         Undef __memrchr, too.
63753         [!weak_alias]: Define __memrchr to memrchr.
63754         Guard weak_alias use with `#ifdef weak_alias'.
63755
63756 2000-10-21  Jim Meyering  <meyering@lucent.com>
63757
63758         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63759         (dir_name): Use dir_name_r.
63760         * lib/dirname.h (dir_name_r): Declare it.
63761
63762 2000-10-17  Jim Meyering  <meyering@lucent.com>
63763
63764         * lib/quote.h (PARAMS): Define and use.
63765         Reported by Akim Demaille.
63766
63767         * lib/getopt.c: Update from libc.
63768
63769 2000-10-16  Jim Meyering  <meyering@lucent.com>
63770
63771         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63772         setlocale.
63773         From Jan Fedak.
63774
63775 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63776
63777         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63778
63779 2000-09-25  Jim Meyering  <meyering@lucent.com>
63780
63781         * lib/md5.h (rol): Define (from GnuPG).
63782
63783         * lib/sha.c: Give credit (GnuPG) where due.
63784         (M): Use rol rather than open-coding it.
63785         Add a FIXME comment.
63786
63787 2000-09-21  Jim Meyering  <meyering@lucent.com>
63788
63789         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63790         Reported by Michael Stone.
63791
63792 2000-09-20  Jim Meyering  <meyering@lucent.com>
63793
63794         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63795         (noinst_HEADERS): Add sha.h.
63796         Based on code from Scott G. Miller and from GnuPG.
63797
63798 2000-09-18  Jim Meyering  <meyering@lucent.com>
63799
63800         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63801         LIBS. Otherwise, everyone ends up linking with -lelf for some
63802         configurations.
63803         Reported by Mike Stone.
63804
63805 2000-09-15  Jim Meyering  <meyering@lucent.com>
63806
63807         * lib/regex.c: Update from libc.
63808
63809 2000-09-10  Jim Meyering  <meyering@lucent.com>
63810
63811         * lib/getopt.c (_getopt_internal): Update from glibc.
63812
63813 2000-09-09  Jim Meyering  <meyering@lucent.com>
63814
63815         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63816         think it should be used as a general replacement for isascii.
63817         * lib/fnmatch.c: Likewise.
63818         * lib/mbswidth.c: Likewise
63819         * lib/regex.c: Likewise.
63820
63821         Don't use atoi.
63822         * lib/userspec.c: Include sys/param.h and limits.h.
63823         Include xstrtol.h.
63824         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63825         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63826         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63827         UID, GID.  Check range.
63828
63829 2000-09-06  Jim Meyering  <meyering@lucent.com>
63830
63831         * lib/getopt.c (_getopt_internal): Update from glibc.
63832
63833 2000-08-30  Jim Meyering  <meyering@lucent.com>
63834
63835         * lib/strftime.c: Merge in changes from GNU libc.
63836
63837 2000-08-26  Jim Meyering  <meyering@lucent.com>
63838
63839         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63840         * m4/fpending.m4: New file.
63841
63842 2000-08-26  Jim Meyering  <meyering@lucent.com>
63843
63844         * lib/closeout.c: Include "__fpending.h".
63845         (close_stdout_status): Return right away if there's nothing to flush.
63846
63847         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63848         * lib/__fpending.c: New file.
63849         * lib/__fpending.h: New file.
63850
63851 2000-08-20  Jim Meyering  <meyering@lucent.com>
63852
63853         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63854         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63855         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63856
63857 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63858
63859         Improve fileutils installation on systems where running
63860         programs (like install) can't be unlinked.
63861         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63862         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63863
63864 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63865
63866         Standardize on "memory exhausted" instead of "Memory exhausted"
63867         or "virtual memory exhausted".
63868         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63869         "virtual memory exhausted".
63870         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63871         our own message.
63872         * lib/userspec.c (parse_user_spec): Likewise.
63873         * lib/bumpalloc.h: comment fix
63874         * lib/same.c, userspec.c: Include xalloc.h.
63875
63876         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63877         not char *const and pointing to a constant array.
63878         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63879         (xrealloc): Comment fix.
63880
63881         * lib/userspec.c (parse_user_spec):
63882         Don't translate a message until just before returning,
63883         to avoid unnecessary translation.
63884
63885 2000-08-07  Jim Meyering  <meyering@lucent.com>
63886
63887         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63888         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63889         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63890         getgroups.c, gethostname.c, getopt.h, group-member.c,
63891         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63892         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63893         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63894         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63895         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63896         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63897         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63898         yesno.c: Back out Copyright date changes for each file with no change
63899         this year.  This eases coordination with other programs using the same
63900         source code modules.  From Paul Eggert.
63901
63902 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63903
63904         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63905         not char, for compatibility with glibc 2.1.3 strftime.c.
63906
63907 2000-08-03  Greg McGary  <greg@mcgary.org>
63908
63909         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63910         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63911         (EXTEND_BUFFER): Use them.
63912
63913 2000-08-01  Jim Meyering  <meyering@lucent.com>
63914
63915         * lib/dirname.c (ISSLASH): Define.
63916         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63917         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63918         both `\' and `/' may be use as path separators.
63919         Based on a patch from Prashant TR.
63920
63921 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63922
63923         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63924         slot vector a constant, since it might get modified.
63925
63926 2000-07-31  Jim Meyering  <meyering@lucent.com>
63927
63928         * lib/xmalloc.c: Use `virtual memory exhausted', not
63929         `Memory exhausted'.
63930         * lib/obstack.c (print_and_abort): Likewise.
63931
63932 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63933
63934         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63935         buffer, so that the caller can always quote one small
63936         component of a "memory exhausted" message in slot 0.
63937         From a suggestion by Jim Meyering.
63938
63939 2000-07-30  Jim Meyering  <meyering@lucent.com>
63940
63941         * lib/makepath.c (make_path): Quote the other instance, too.
63942
63943         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63944         (STATIC_BUF_SIZE): Define.
63945         (quotearg_n_options): Use only statically allocated storage when
63946         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63947         than STATIC_BUF_SIZE.
63948
63949 2000-07-29  Jim Meyering  <meyering@lucent.com>
63950
63951         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63952         * lib/dirname.c (dir_name): Likewise.
63953
63954         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63955         `/'.
63956
63957         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63958         (dir_name): Assert that there are no trailing slashes.
63959
63960 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63961
63962         * lib/mbswidth.h (mbswidth): Add a flags argument.
63963         (mbswidth): New declaration.
63964         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63965         * lib/mbswidth.c (mbswidth): Add a flags argument.
63966         (mbsnwidth): New function.
63967
63968 2000-07-24  Jim Meyering  <meyering@lucent.com>
63969
63970         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63971
63972 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63973
63974         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63975
63976 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63977
63978         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63979         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63980         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63981         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63982         invoke multibyte primitives.
63983
63984 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63985
63986         * lib/quotearg.c:
63987         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63988         so that mbstate_t is always defined.
63989
63990         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63991         be 1 in at least one GCC installation, and this configuration
63992         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63993         performance on hosts that have mbrtowc but have only unibyte
63994         locales, but I assume these hosts are rare.
63995
63996 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63997
63998         * lib/mbswidth.c (_XOPEN_SOURCE):
63999         Don't define; this causes problems on Solaris 7.
64000         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
64001
64002 2000-07-23  Jim Meyering  <meyering@lucent.com>
64003
64004         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
64005         too: getgrgid, getpwuid, getuid.
64006
64007 2000-07-23  Jim Meyering  <meyering@lucent.com>
64008
64009         * lib/basename.c (base_name): Add an assertion.
64010
64011 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
64012
64013         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
64014         shadow its mbsinit function.
64015
64016 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
64017
64018         * lib/mbswidth.h: New file.
64019         * lib/mbswidth.c: New file.
64020         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
64021         (noinst_HEADERS): Add mbswidth.h.
64022
64023 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
64024
64025         * lib/config.charset: Add support for FreeBSD. Improve support for
64026         HP-UX and IRIX 6.
64027
64028 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
64029
64030         * m4/mbswidth.m4: New file.
64031         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
64032
64033 2000-07-15  Jim Meyering  <meyering@lucent.com>
64034
64035         * lib/makepath.c: Include quote.h.
64036         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
64037         corresponding argument in a `quote (...)' call.
64038         Give better diagnostics.
64039
64040         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
64041         (noinst_HEADERS): Add quote.h.
64042
64043         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
64044         from tar's src/misc.c.
64045         * lib/quote.h: New file.  Prototypes for same.
64046
64047 2000-07-14  Paul Eggert  <eggert@twinsun.com>
64048
64049         From a suggestion by Bruno Haible.
64050         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
64051         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
64052         to decide whether to define the BeOS workaround macro;
64053         this adjusts to the change to AC_MBSTATE_T.
64054
64055 2000-07-14  Jim Meyering  <meyering@lucent.com>
64056
64057         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
64058         jm_AC_TYPE_UINTMAX_T.
64059
64060 2000-07-13  Paul Eggert  <eggert@twinsun.com>
64061
64062         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
64063
64064         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
64065         quotearg_buffer_restyled): Add support for
64066         clocale_quoting_style.  Undo previous change to
64067         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
64068         and "{RIGHT QUOTATION MARK}" msgids.
64069
64070 2000-07-10  Paul Eggert  <eggert@twinsun.com>
64071
64072         From a suggestion by Bruno Haible.
64073         * m4/mbstate_t.m4 (AC_MBSTATE_T):
64074         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
64075         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
64076         and mbstate_t, to a single-part test that simply defines mbstate_t.
64077         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
64078         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
64079
64080 2000-07-10  Jim Meyering  <meyering@lucent.com>
64081
64082         * m4/strerror_r.m4: Mirror the correction made in autoconf.
64083
64084         * m4/gnu-source.m4: Output to confdefs.h directly.
64085         Suggestion from Akim Demaille.
64086
64087 2000-07-09  Paul Eggert  <eggert@twinsun.com>
64088
64089         The old behavior of quoting `like this' doesn't look good with
64090         newer, ISO-style fonts.  See:
64091         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
64092
64093         Instead, quote "like this" by default.  Let the translator
64094         tailor the locale-specific quoting behavior by providing
64095         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
64096
64097         * lib/quotearg.c (N_): New macro.
64098         (gettext_default): New function.
64099         (quotearg_buffer_restyled): Use
64100         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
64101         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
64102
64103 2000-07-09  Jim Meyering  <meyering@lucent.com>
64104
64105         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
64106         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
64107
64108         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
64109         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
64110
64111 2000-07-09  Jim Meyering  <meyering@lucent.com>
64112
64113         * lib/Most files: Update copyright dates to include 2000.
64114
64115 2000-07-08  Jim Meyering  <meyering@lucent.com>
64116
64117         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
64118         if not defined.
64119         (xgethostname): Remove now-unnecessary #ifdef.
64120         Move declaration of `err' into loop where it's used.
64121
64122 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64123         and Bruno Haible  <haible@clisp.cons.org>
64124
64125         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
64126         only if the test for an object-type mbstate_t fails.  This
64127         prevents us from mistakenly reporting that mbstate_t is a
64128         system object type after we "#define mbstate_t int" to work
64129         around its lack.
64130
64131 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64132         and Bruno Haible  <haible@clisp.cons.org>
64133
64134         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
64135
64136 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64137
64138         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
64139         to strerror_r.
64140         Include <ctype.h> for use of isalpha.
64141
64142 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64143
64144         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
64145         by allocating a larger buffer. Test the gethostname return value for
64146         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
64147         returns an error and ENAMETOOLONG isn't defined.
64148
64149 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64150
64151         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
64152         dimension.
64153
64154 2000-07-04  Jim Meyering  <meyering@lucent.com>
64155
64156         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
64157         of the deprecated AC_CHECKING.
64158
64159 2000-07-04  Jim Meyering  <meyering@lucent.com>
64160
64161         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
64162         Reported by Bruno Haible.
64163
64164 2000-07-04  Jim Meyering  <meyering@lucent.com>
64165
64166         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
64167         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
64168         lacks mbrtowc.
64169
64170 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64171
64172         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
64173         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
64174
64175 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64176         and Bruno Haible  <haible@clisp.cons.org>
64177
64178         * lib/quotearg.c (mbrtowc):
64179         Assign to *pwc, and return 1 only if result is nonzero.
64180         (iswprint): Use ISPRINT when substituting our own mbrtowc.
64181
64182 2000-07-03  Jim Meyering  <meyering@lucent.com>
64183
64184         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
64185
64186 2000-07-03  Jim Meyering  <meyering@lucent.com>
64187
64188         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
64189         This is necessary to get a definition of e.g., UTMP_FILE on
64190         HP-UX 10.20.
64191         From Bob Proulx.
64192
64193 2000-07-02  Jim Meyering  <meyering@lucent.com>
64194
64195         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
64196
64197         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
64198         AC_LIBOBJ(function_name).
64199         * m4/chown.m4: Likewise.
64200         * m4/fnmatch.m4: Likewise.
64201         * m4/ftruncate.m4: Likewise.
64202         * m4/getgroups.m4: Likewise.
64203         * m4/getline.m4: Likewise.
64204         * m4/group-member.m4: Likewise.
64205         * m4/jm-macros.m4: Likewise.
64206         * m4/lstat.m4: Likewise.
64207         * m4/malloc.m4: Likewise.
64208         * m4/memcmp.m4: Likewise.
64209         * m4/nanosleep.m4: Likewise.
64210         * m4/putenv.m4: Likewise.
64211         * m4/realloc.m4: Likewise.
64212         * m4/regex.m4: Likewise.
64213         * m4/stat.m4: Likewise.
64214         * m4/strftime.m4: Likewise.
64215
64216 2000-07-02  Jim Meyering  <meyering@lucent.com>
64217
64218         * lib/quotearg.c (mbstate_t): Don't define here.
64219
64220 2000-07-02  Jim Meyering  <meyering@lucent.com>
64221
64222         * lib/nanosleep.c (SIGCONT): Define if not already defined.
64223
64224 2000-07-01  Jim Meyering  <meyering@lucent.com>
64225
64226         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
64227
64228 2000-07-01  Jim Meyering  <meyering@lucent.com>
64229
64230         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
64231         problem.
64232
64233 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64234
64235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
64236         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
64237
64238 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64239
64240         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
64241         per change in ../m4/ls-mntd-fs.m4.
64242         (read_filesystem_list): Ignore symbolic links.
64243
64244 2000-06-29  Jim Meyering  <meyering@lucent.com>
64245
64246         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
64247         for declaration of strcmp.
64248
64249         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
64250
64251         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
64252         Avoid warning by casting result to `char *' to remove `const'.
64253
64254 2000-06-28  Jim Meyering  <meyering@lucent.com>
64255
64256         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
64257         included by quotearg.c, for which we perform this test.  From
64258         Bruno Haible.
64259
64260 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64261
64262         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
64263         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
64264         <utmpx.h> exists, put readutmp.o into LIBOBJS.
64265
64266 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64267
64268         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
64269
64270 2000-06-26  Paul Eggert  <eggert@twinsun.com>
64271
64272         savedir now sets errno on failure and invokes xmalloc to get memory.
64273         Fix a couple of other minor bugs while we're at it.
64274
64275         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
64276         (NAMLEN): Remove macro.
64277         (malloc, realloc): Remove decls.
64278         (stpcpy): Likewise.
64279         ("xalloc.h"): Include.
64280         (NAME_SIZE_DEFAULT): New macro.
64281         (savedir): Use xmalloc / xrealloc to allocate memory.
64282         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
64283         Skip "" directory entries.
64284         Use strlen to calculate directory entry length, since the old method
64285         is rarely used these days and isn't worth supporting.
64286         Don't use a pointer after freeing it.
64287         Check for integer overflow when calculating allocation size.
64288         Use memcpy to copy entries, instead of stpcpy.
64289         Set errno properly when returning NULL.
64290         Check for readdir error.
64291
64292 2000-06-26  Jim Meyering  <meyering@lucent.com>
64293
64294         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
64295
64296 2000-06-25  Jim Meyering  <meyering@lucent.com>
64297
64298         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
64299         Linux header bug when _XOPEN_SOURCE is defined to 500.
64300
64301 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64302
64303         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
64304         deficiency.
64305
64306 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64307
64308         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
64309         Include xalloc.h.
64310         Don't include <stdlib.h>.  Don't declare malloc, realloc.
64311
64312 2000-06-24  Jim Meyering  <meyering@lucent.com>
64313
64314         * m4/strerror_r.m4: Revive this file -- to try out an experimental
64315         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
64316         for which strerror does return char*, but which lacks a conveniently
64317         accessible declaration of the function.  If the compile-test says
64318         strerror_r doesn't work, then resort to a `run'-test that works on
64319         BeOS and segfaults on DEC Unix.
64320
64321 2000-06-24  Jim Meyering  <meyering@lucent.com>
64322
64323         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
64324
64325 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64326
64327         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
64328         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
64329
64330 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64331
64332         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64333         (mbrtowc, mbstate_t): Define substitutes if
64334         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64335         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64336         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64337
64338 2000-06-23  Jim Meyering  <meyering@lucent.com>
64339
64340         * m4/afs.m4: Add missing AC_MSG_RESULT.
64341         Reported by Bruno Haible.
64342
64343         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64344         Suggestion from Bruno Haible.
64345
64346 2000-06-23  Jim Meyering  <meyering@lucent.com>
64347
64348         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64349
64350 2000-06-21  Jim Meyering  <meyering@lucent.com>
64351
64352         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64353
64354 2000-06-21  Jim Meyering  <meyering@lucent.com>
64355
64356         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64357         (noinst_HEADERS): Add getstr.h.
64358
64359         * lib/getline.c (getstr): Move into a separate file.
64360         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64361         the following changes: new parameter, delim2; both delim[12]
64362         parameters have type `int', not `char'.  The latter would lose
64363         with 8-bit delimiters.
64364         * lib/getstr.h: New file.
64365
64366 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64367
64368         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64369         than 1024, return a memory chunk of least possible size, instead
64370         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64371         Use free/xmalloc instead of xrealloc to avoid copying for very long
64372         paths.
64373
64374 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64375
64376         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64377         the empty string.
64378
64379 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64380
64381         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64382         address, not strdup.  Include <stdlib.h> and don't declare free().
64383
64384 2000-06-19  Jim Meyering  <meyering@lucent.com>
64385
64386         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64387
64388 2000-06-18  Jim Meyering  <meyering@lucent.com>
64389
64390         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64391
64392         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64393         `checking whether...' message to be consistent with that of the
64394         lstat test.
64395
64396 2000-06-18  Jim Meyering  <meyering@lucent.com>
64397
64398         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64399         Besides, these days every porting target provides a mkdir function.
64400
64401         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64402         needed. (this snippet comes from src/system.h).
64403
64404 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64405
64406         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64407
64408 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64409
64410         * lib/human.c (adjust_value): New function.
64411         (human_readable_inexact): Apply rounding style even when
64412         printing approximate values.
64413
64414 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64415
64416         * lib/human.c (human_readable_inexact): Allow an input block
64417         size that is not a multiple of the output block size, and vice versa.
64418         Reported by Piergiorgio Sartor.
64419
64420 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64421
64422         * lib/getdate.y (get_date): Apply relative times after time
64423         zone indicator, not before.  Reported by Todd A. Jacobs.
64424
64425 2000-06-13  Jim Meyering  <meyering@lucent.com>
64426
64427         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64428
64429         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64430
64431 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64432
64433         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64434
64435 2000-06-12  Jim Meyering  <meyering@lucent.com>
64436
64437         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64438         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64439         optional argument.
64440         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64441         the optional argument, `lib'.
64442
64443 2000-06-08  Jim Meyering  <meyering@lucent.com>
64444
64445         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64446
64447 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64448
64449         Rewrite largefile configuration so that we don't need to run
64450         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64451         AC_CANONICAL_HOST in configure.in -- jmm]
64452
64453         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64454         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64455         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64456         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64457         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64458         All uses changed.
64459         Instead of inspecting the output of getconf, try to compile the
64460         test program without and with the macro definition.
64461         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64462         for getconf.  Instead, check for the needed flags by compiling
64463         test programs.
64464
64465 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64466
64467         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64468
64469 2000-06-04  Jim Meyering  <meyering@lucent.com>
64470
64471         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64472         SunOS 4.1.4 for which gid_t is an unsigned type.
64473
64474 2000-06-03  Jim Meyering  <meyering@lucent.com>
64475
64476         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64477         now that autoconf requires that.
64478
64479         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64480         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64481         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64482
64483 2000-06-03  Jim Meyering  <meyering@lucent.com>
64484
64485         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64486
64487 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64488
64489         * m4/glibc21.m4: New file.
64490         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64491
64492 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64493
64494         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64495         newer, don't install charset.alias.
64496         * lib/config.charset: Change the Linux/glibc rules so they become empty
64497         on glibc-2.1 or newer.
64498
64499 2000-06-02  Jim Meyering  <meyering@lucent.com>
64500
64501         * lib/mountlist.c: Back out last change.  Instead, do this...
64502         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64503         me_dummy member using the same `ignore'-testing code.
64504         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64505         fs_type strings.
64506         From Mark D. Roth.
64507
64508 2000-05-29  Jim Meyering  <meyering@lucent.com>
64509
64510         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64511         mounts with the `ignore' attribute.  Based on a patch from
64512         Mark D. Roth.
64513
64514 2000-05-28  Jim Meyering  <meyering@lucent.com>
64515
64516         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64517         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64518         * m4/stat.m4: Likewise.
64519         * m4/lstat.m4: Likewise.
64520         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64521
64522         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64523         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64524
64525 2000-05-26  Jim Meyering  <meyering@lucent.com>
64526
64527         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64528
64529 2000-05-24  Jim Meyering  <meyering@lucent.com>
64530
64531         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64532         autoconf requires that.
64533         * m4/lib-check.m4: Likewise.
64534         * m4/jm-macros.m4: Likewise.
64535         * m4/strftime.m4: Likewise.
64536
64537         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64538         AC_CHECK_DECLS, now that autoconf requires that.
64539
64540 2000-05-22  Jim Meyering  <meyering@lucent.com>
64541
64542         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64543         * m4/lstat.m4: Likewise.
64544
64545 2000-05-22  Jim Meyering  <meyering@lucent.com>
64546
64547         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64548
64549 2000-05-20  Jim Meyering  <meyering@lucent.com>
64550
64551         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64552         (jm_PREREQ): Use it.
64553
64554 2000-05-18  Jim Meyering  <meyering@lucent.com>
64555
64556         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64557         back, too, since it may have been modified by allocate_entry.
64558         (hash_delete): Rewrite to use neither the assignment operator
64559         nor the comma operator in an if-expression.
64560
64561 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64562
64563         * lib/closeout.c:
64564         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64565         Remove; no longer needed.
64566         "quotearg.h": Add include.
64567         (file_name): Do not bother to explicitly initialize to NULL; it's less
64568         efficient on some hosts.
64569         (close_stdout_status): Remove test as to whether stdout was already
64570         closed; it breaks for the case "echo x | sort >&-".
64571         Quote file name colons.
64572         Do not assume that _("write error") lacks format strings.
64573
64574 2000-05-15  Jim Meyering  <meyering@lucent.com>
64575
64576         * lib/version-etc.c (version_etc_copyright): Update the copyright
64577         string used in all --version output.
64578
64579 2000-05-14  Jim Meyering  <meyering@lucent.com>
64580
64581         * lib/closeout.c (close_stdout_set_file_name): New function.
64582         (close_stdout_status): Use new file-scoped global.
64583         Return right away if fstat says the stdout file descriptor is invalid.
64584         * lib/closeout.h (close_stdout_set_file_name): Declare.
64585
64586 2000-05-10  Jim Meyering  <meyering@lucent.com>
64587
64588         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64589         (close_stdout_set_status): New function.
64590         * lib/closeout.h (close_stdout_set_status): Declare.
64591
64592 2000-05-09  Jim Meyering  <meyering@lucent.com>
64593
64594         * m4/gettext.m4: Rename this...
64595         * m4/libintl.m4: ...to this.
64596
64597 2000-05-08  Jim Meyering  <meyering@lucent.com>
64598
64599         * lib/long-options.c: Don't include closeout.h.
64600         (parse_long_options): Don't call close_stdout for --version.
64601
64602 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64603
64604         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64605         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64606         2.1.3 bug.  This avoids a clash when files like regex.c define
64607         _GNU_SOURCE.
64608
64609 2000-05-06  Jim Meyering  <meyering@lucent.com>
64610
64611         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64612         (AC_REPLACE_FUNCS): Add strnlen.
64613
64614         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64615         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64616
64617         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64618         AC_SEARCH_LIBS call for nanosleep.
64619         (LIB_NANOSLEEP): Set and AC_SUBST.
64620
64621 2000-05-06  Jim Meyering  <meyering@lucent.com>
64622
64623         * lib/strnlen.c: Undefine __strnlen and strnlen.
64624         [!weak_alias]: Define __strnlen to strnlen.
64625
64626         * lib/atexit.c: New file, from libiberty.
64627
64628 2000-05-06  Jim Meyering  <meyering@lucent.com>
64629
64630         * lib/closeout.c (close_stdout_status): Also check for errors on the
64631         stderr stream.
64632
64633 2000-05-05  Jim Meyering  <meyering@lucent.com>
64634
64635         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64636         AC_SEARCH_LIBS call for clock_gettime.
64637         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64638
64639         * m4/search-libs.m4: Update from autoconf.
64640
64641         su doesn't work on Solaris 2.6.
64642         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64643         <shadow.h>.  Reported by Dragos Harabor.
64644
64645 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64646
64647         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64648         memcpy instead of xmalloc, xrealloc, path_concat.
64649         (locale_charset): Treat empty environment variables as absent.
64650         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64651
64652 2000-05-04  Jim Meyering  <meyering@lucent.com>
64653
64654         * lib/getopt.c: Update from glibc.
64655         * lib/obstack.c: Likewise.
64656         * lib/obstack.h: Likewise.
64657         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64658         file
64659
64660         * lib/regex.h: Likewise.
64661         * lib/strndup.c: Likewise.
64662         * lib/strnlen.c: New file, from glibc.
64663
64664 2000-05-03  Jim Meyering  <meyering@lucent.com>
64665
64666         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64667
64668 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64669
64670         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64671         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64672         compile-time test, rather than inspecting host and OS, to
64673         decide whether to define _LARGEFILE_SOURCE.
64674
64675 2000-05-01  Jim Meyering  <meyering@lucent.com>
64676
64677         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64678
64679         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64680         Based on a patch from Bruno Haible.
64681
64682 2000-05-01  Jim Meyering  <meyering@lucent.com>
64683
64684         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64685
64686 2000-04-29  Jim Meyering  <meyering@lucent.com>
64687
64688         * lib/path-concat.c: Declare strdup only if it's not defined.
64689         * lib/canon-host.c: Likewise.
64690
64691 2000-04-28  Jim Meyering  <meyering@lucent.com>
64692
64693         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64694         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64695         is included first, then limits.h is included by locale.h by libintl.h.
64696         From John David Anglin.
64697
64698 2000-04-25  Jim Meyering  <meyering@lucent.com>
64699
64700         * lib/makepath.c (S_IRWXUGO): Define.
64701         (make_path): Always perform explicit chmod if MODE specifies any
64702         of the `special' permission bits.  Prompted by a bug report against
64703         install from Mate Wierdl and Joost van Baal.
64704
64705 2000-04-18  Jim Meyering  <meyering@lucent.com>
64706
64707         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64708         (jm_PREREQ): Use it.
64709
64710 2000-04-18  Jim Meyering  <meyering@lucent.com>
64711
64712         * lib/README: New file.
64713
64714         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64715         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64716
64717 2000-04-17  Jim Meyering  <meyering@lucent.com>
64718
64719         Get it right :-)
64720         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64721         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64722         Suggestion from Akim Demaille.
64723
64724 2000-04-17  Jim Meyering  <meyering@lucent.com>
64725
64726         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64727         the definition of it to rpl_strftime also defined-away the system's
64728         declaration.
64729
64730 2000-04-15  Jim Meyering  <meyering@lucent.com>
64731
64732         Use `C' to denote so-called `contiguous' files, the same way
64733         that tar does.
64734         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64735         (ftypelet): Use S_ISCTG.
64736         From Michael Deutschmann.
64737
64738 2000-04-14  Jim Meyering  <meyering@lucent.com>
64739
64740         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64741         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64742         clobbered.
64743
64744 2000-04-14  Jim Meyering  <meyering@lucent.com>
64745
64746         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64747
64748 2000-04-13  Jim Meyering  <meyering@lucent.com>
64749
64750         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64751         AH_VERBATIM to insert required #ifndef into config.h.in.
64752         Suggestion from Akim Demaille.
64753
64754 2000-04-12  Jim Meyering  <meyering@lucent.com>
64755
64756         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64757         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64758         Christian Krackowizer.
64759
64760         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64761         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64762         (AC_SYS_LARGEFILE): Require.
64763         (AM_C_PROTOTYPES): Require.
64764
64765 2000-04-08  Jim Meyering  <meyering@lucent.com>
64766
64767         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64768         names don't conflict.  Reported by Eli Zaretskii.
64769
64770 2000-04-07  Jim Meyering  <meyering@lucent.com>
64771
64772         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64773         sys/types.h, to work around system header problems on AIX 3.2.5.
64774         From Bruno Haible.
64775
64776 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64777
64778         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64779         bug.  Deal with the different error behavior of Irix iconv.
64780
64781 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64782
64783         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64784         IRIX if the installer said otherwise.
64785
64786 2000-04-05  Jim Meyering  <meyering@lucent.com>
64787
64788         Portability tweaks required for ultrix4.3.
64789         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64790         (jm_CHECK_DECLS): Add getutent to the list of functions.
64791         (_jm_DECL_HEADERS): Add utmpx.h.
64792         From John David Anglin.
64793
64794         * m4/strftime.m4: Back out the 2000-04-02 change.
64795         Instead of that change, simply undefine putenv in the test program.
64796
64797 2000-04-05  Jim Meyering  <meyering@lucent.com>
64798
64799         Portability tweaks required for ultrix4.3.
64800         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64801         getutent.
64802         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64803         * lib/canon-host.c: Declare strdup.
64804         * lib/path-concat.c: Likewise.
64805         From John David Anglin.
64806
64807 2000-04-04  Jim Meyering  <meyering@lucent.com>
64808
64809         Be more DOS 8.3-friendly.
64810         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64811         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64812         * lib/Makefile.am: Reflect renaming.
64813         Reported by Eli Zaretskii.
64814
64815         Use a temporary file name that won't clash with `charset.alias'
64816         in the DOS 8.3 name space.
64817         * lib/Makefile.am (charset_tmp): Define.
64818         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64819         (uninstall-local): Likewise.
64820         Reported by Eli Zaretskii.
64821
64822 2000-04-03  Jim Meyering  <meyering@lucent.com>
64823
64824         * m4/gettext.m4: Fix typo in comment.
64825
64826         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64827         textutils/configure.in).  Suggestion from Paul Eggert.
64828         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64829
64830 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64831
64832         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64833         variable in the shell rather than using putenv, which isn't
64834         portable.  This avoids the configure-time inter-test dependency
64835         on the potentially-renamed putenv function.
64836
64837 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64838
64839         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64840         before checking struct stat.st_blksize, so that
64841         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64842
64843 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64844
64845         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64846         since strftime.c uses HAVE_STRFTIME to decide whether to use
64847         the underlying strftime.
64848
64849 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64850
64851         * lib/time/strftime.c (my_strftime): Make sure we call the system
64852         strftime, not ourselves, when invoking the underlying strftime.
64853
64854 2000-03-24  Jim Meyering  <meyering@lucent.com>
64855
64856         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64857         (charset_alias): Define.
64858         (install-exec-local): Factor out common code.
64859         (uninstall-local): Split lines longer than 80.
64860         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64861         (SUFFIXES): Define.
64862         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64863         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64864
64865 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64866
64867         * lib/config.charset: Output a line containing "Packages using this
64868         file".
64869         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64870         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64871         ref-del.sed): New rules.
64872
64873 2000-03-17  Jim Meyering  <meyering@lucent.com>
64874
64875         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64876         Otherwise, include <strings.h>
64877
64878 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64879
64880         * lib/unicodeio.c (utf8_wctomb): New function.
64881         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64882         format instead of in UCS-4 with platform dependent endianness.
64883
64884 2000-03-10  Jim Meyering  <meyering@lucent.com>
64885
64886         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64887         From Marco Franzen.
64888
64889 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64890
64891         * lib/savedir.c (savedir): Work even if directory size is
64892         negative; this can happen with some screwy NFS configurations.
64893
64894 2000-03-06  Jim Meyering  <meyering@lucent.com>
64895
64896         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64897         if it's NULL (because we ran out of memory).  From Bruno Haible.
64898
64899 2000-03-05  Jim Meyering  <meyering@lucent.com>
64900
64901         * lib/localcharset.c ("path-concat.h"): Include.
64902         (get_charset_aliases): Use path_concat instead of ANSI string
64903         concatenation.
64904
64905         * lib/unicodeio.h (PARAMS): Define.
64906         Use it to guard prototype.
64907
64908 2000-03-04  Jim Meyering  <meyering@lucent.com>
64909
64910         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64911         for lib/localcharset.c.
64912
64913 2000-03-04  Jim Meyering  <meyering@lucent.com>
64914
64915         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64916         installing into it.
64917         (uninstall-local): Uncomment this rule so `make distcheck' works
64918         once again.
64919
64920         * lib/unicodeio.c (<errno.h>): Include it.
64921         (errno): Declare if not defined.
64922
64923         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64924
64925         * lib/config.charset: New version, incorporating remarks from a linux
64926         i18n mailing list.  From Bruno Haible.
64927
64928 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64929
64930         * m4/codeset.m4: New file.
64931         * m4/iconv.m4: New file.
64932         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64933
64934 2000-03-03  Jim Meyering  <meyering@lucent.com>
64935
64936         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64937
64938 2000-03-02  Jim Meyering  <meyering@lucent.com>
64939
64940         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64941         the messages come out on separate lines.
64942
64943         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64944         rather than jm_CHECK_DECLARATIONS.
64945         * m4/decl.m4: Remove now-unused file.
64946
64947         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64948         geteuid.
64949
64950 2000-03-02  Jim Meyering  <meyering@lucent.com>
64951
64952         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64953
64954 2000-03-01  Jim Meyering  <meyering@lucent.com>
64955
64956         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64957         * lib/unicodeio.c: Likewise.
64958
64959 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64960
64961         * lib/config.charset: New file.
64962         * lib/localcharset.c: New file.
64963         * lib/unicodeio.h, lib/unicodeio.c: New files.
64964         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64965         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64966         (noinst_HEADERS): Add unicodeio.h.
64967         (all-local, install-exec-local, charset.alias): New targets.
64968
64969 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64970
64971         * lib/quotearg.c (ALERT_CHAR): New macro.
64972         (quotearg_buffer_restyled): Use it.
64973
64974 2000-02-27  Jim Meyering  <meyering@lucent.com>
64975
64976         * m4/check-decl.m4: Add getenv to the list.
64977
64978 2000-02-27  Jim Meyering  <meyering@lucent.com>
64979
64980         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64981         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64982
64983         * lib/backupfile.c: Guard inclusion of stdlib.h with
64984         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64985         Declare malloc if needed.
64986
64987         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64988         `#ifndef HAVE_DECL..'
64989         now that autoconf always defines the HAVE_DECL_ symbols.
64990         * lib/human.c: Likewise.
64991         * lib/same.c: Likewise.
64992         * lib/strtoumax.c: Likewise.
64993
64994         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64995         declaration check was not run.
64996         * lib/hash.c: Likewise.
64997         * lib/human.c: Likewise.
64998         * lib/same.c: Likewise.
64999         * lib/strtoumax.c: Likewise.
65000
65001         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
65002         `.', then first look up the entire `.'-containing string as a login
65003         name.
65004
65005 2000-02-23  Jim Meyering  <meyering@lucent.com>
65006
65007         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
65008         in place of my hack.
65009
65010 2000-02-18  Paul Eggert  <eggert@twinsun.com>
65011
65012         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
65013         (textint): New typedef.
65014         (parser_control): Member year changed from int to textint.
65015         All uses changed.
65016         (YYSTYPE): Removed; replaced by %union with int and textint members.
65017         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
65018         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
65019         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
65020         (tSNUMBER, tUNUMBER): Now of type <textintval>.
65021         (date, number, to_year): Use width of number in digits, not its value,
65022         to determine whether it's a 2-digit year, or a 2-digit time.
65023         (yylex): Store number of digits of numeric tokens.
65024         Reported by John Kendall.
65025
65026         (parser_control): Changed from struct parser_control to typedef (for
65027         consistency).  All uses changed.
65028
65029         (tID): Removed; not used.
65030         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
65031
65032 2000-02-14  Paul Eggert  <eggert@twinsun.com>
65033
65034         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
65035         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
65036
65037 2000-02-12  Jim Meyering  <meyering@lucent.com>
65038
65039         * lib/userspec.c (ISDIGIT): Define it.
65040         (isdigit): Remove definition.
65041         (is_number): Use ISDIGIT, not isdigit.
65042         <libintl.h>: Include.
65043         (_ and N_): Define.
65044         (parse_user_spec): Mark translatable strings.
65045
65046 2000-02-10  Jim Meyering  <meyering@lucent.com>
65047
65048         With these changes, nanosleep.[ch] are finally enough like the other
65049         lib/* replacement files to compile on a few more losing systems.
65050
65051         * lib/nanosleep.h: Don't include config.h.
65052         Remove prototype from declaration of nanosleep.
65053         (PARAMS): Remove now-unneeded definition.
65054         * lib/nanosleep.c: #undef nanosleep.
65055         (rpl_nanosleep): Rename from nanosleep.
65056
65057 2000-02-10  Jim Meyering  <meyering@lucent.com>
65058
65059         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
65060         gnu_nanosleep to rpl_nanosleep.
65061
65062 2000-02-09  Jim Meyering  <meyering@lucent.com>
65063
65064         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
65065         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
65066
65067 2000-02-08  Akim Demaille  <akim@epita.fr>
65068
65069         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
65070         `[' and `]' and remove uses of `changequote'.
65071         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
65072         (AC_SYS_LARGEFILE): Likewise.
65073         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65074         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
65075         of changequote.
65076         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
65077         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
65078         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
65079         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
65080
65081 2000-02-05  Jim Meyering  <meyering@lucent.com>
65082
65083         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
65084         Remove explicit use of AC_HEADER_TIME.  It is required by
65085         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
65086         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
65087         in autoconf whereby the expansion of the latter ended up preceding
65088         the expansion of its prerequisite, AC_HEADER_TIME.
65089         Reported by Volker Borchert.
65090
65091 2000-02-03  Jim Meyering  <meyering@lucent.com>
65092
65093         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
65094
65095 2000-02-03  Jim Meyering  <meyering@lucent.com>
65096
65097         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
65098         rather than with `#if HAVE_UTMPNAME'.
65099
65100 2000-02-02  Jim Meyering  <meyering@lucent.com>
65101
65102         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
65103         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
65104         Reported by Eli Zaretskii.
65105
65106 2000-02-01  Jim Meyering  <meyering@lucent.com>
65107
65108         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
65109
65110 2000-01-31  Jim Meyering  <meyering@lucent.com>
65111
65112         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
65113         functions.  Add the time.h and sys/time.h headers along with the
65114         AC_REQUIRE'ment of AC_HEADER_TIME.
65115
65116 2000-01-31  Jim Meyering  <meyering@lucent.com>
65117
65118         * lib/nanosleep.h (nanosleep): Guard declaration with
65119         `#if ! HAVE_DECL_NANOSLEEP'.
65120         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
65121         the declaration in that vendor's sys/timers.h.
65122         Reported by Christian Krackowizer.
65123
65124         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
65125         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
65126         (ISPRINT): Likewise.
65127         Reported by Tom Tromey.
65128
65129 2000-01-30  Jim Meyering  <meyering@lucent.com>
65130
65131         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
65132
65133         * m4/prereq.m4 (utmp_includes): Define.
65134         Check for ut_user and ut_name members in both struct utmpx
65135         and struct utmp.
65136
65137 2000-01-30  Jim Meyering  <meyering@lucent.com>
65138
65139         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
65140         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
65141         header files where only utmpx.ut_user is declared.
65142
65143         * lib/readutmp.h (UT_USER): Define.
65144
65145 2000-01-29  Jim Meyering  <meyering@lucent.com>
65146
65147         * m4/lib-check.m4: New file containing library-related checks from
65148         fileutils and sh-utils (textutils had none).
65149
65150 2000-01-28  Jim Meyering  <meyering@lucent.com>
65151
65152         * m4/perl.m4: Change format of warning message to look more like that
65153         from the missing script.  Suggestion from François Pinard.
65154
65155 2000-01-25  Jim Meyering  <meyering@lucent.com>
65156
65157         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
65158         well as time.h in the compile check.
65159         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
65160         Fix typo in cross-compiling case: s/yes/no/.
65161
65162 2000-01-23  Jim Meyering  <meyering@lucent.com>
65163
65164         * m4/jm-macros.m4: Move df-related tests here from
65165         fileutils/configure.in
65166
65167         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
65168         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
65169
65170         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
65171         s/space/ac_fsusage_space/.
65172         (jm_FILE_SYSTEM_USAGE): Take two parameters.
65173
65174         * m4/ftruncate.m4: New file (derived from part of
65175         fileutils/configure.in).
65176         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
65177         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
65178
65179         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
65180         AC_SUBST these here, rather than just in sh-util/configure.in, so
65181         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
65182         all the same.
65183         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
65184         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
65185         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
65186         (AC_SUBST(POW_LIBM)): Likewise.
65187         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
65188
65189 2000-01-23  Jim Meyering  <meyering@lucent.com>
65190
65191         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
65192         obstack.c.
65193
65194 2000-01-22  Jim Meyering  <meyering@lucent.com>
65195
65196         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
65197
65198         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
65199
65200         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
65201         configure.in
65202         (AC_CHECK_HEADERS): Likewise for sh-utils.
65203         (AC_CHECK_HEADERS): Likewise for textutils.
65204         Merge the three lists of headers.
65205
65206         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
65207         from fileutils' configure.in.
65208
65209         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
65210         code. Moved tests into their own function (_jm_DECL_HEADERS) in
65211         check-decl.m4.
65212
65213         * m4/check-decl.m4: Use #if rather than #ifdef.
65214         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
65215         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
65216         (_jm_DECL_HEADERS): Define new function.
65217         (jm_CHECK_DECLARATIONS): Require it.
65218
65219 2000-01-22  Jim Meyering  <meyering@lucent.com>
65220
65221         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
65222         [! HAVE_DECL_STRTOULL]: Declare strtoull.
65223         Required for some AIX systems.  Reported by Christian Krackowizer.
65224         [TESTING] (main): New function.
65225
65226         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
65227         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
65228         letters.
65229
65230         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
65231         iswprint.
65232
65233         * lib/strverscmp.c (ISDIGIT): Define.
65234         (strverscmp): Use ISDIGIT, not isdigit.
65235
65236 2000-01-19  Jim Meyering  <meyering@lucent.com>
65237
65238         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
65239         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
65240         defines `struct timespec' in <sys/time.h>
65241
65242         * m4/c-bs-a.m4: Remove uses of changequote altogether.
65243         Thanks to Akim for explaining.
65244
65245 2000-01-17  Paul Eggert  <eggert@twinsun.com>
65246
65247         * lib/nanosleep.c (nanosleep):
65248         Don't use SA_INTERRUPT to decide whether to call sigaction, as
65249         POSIX.1 doesn't require SA_INTERRUPT and some systems
65250         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
65251         it's been part of POSIX.1 since day 1 (in 1988).
65252
65253 2000-01-17  Jim Meyering  <meyering@lucent.com>
65254
65255         * lib/interlock: Remove unused file.  Reported by François Pinard.
65256
65257 2000-01-16  Paul Eggert  <eggert@twinsun.com>
65258
65259         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
65260         alert, backslash, formfeed, and vertical tab unnecessarily in
65261         shell quoting style.
65262
65263 2000-01-16  Jim Meyering  <meyering@lucent.com>
65264
65265         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
65266         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
65267         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
65268         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
65269
65270 2000-01-16  Jim Meyering  <meyering@lucent.com>
65271
65272         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
65273         because the latter didn't work.
65274
65275 2000-01-15  Jim Meyering  <meyering@lucent.com>
65276
65277         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
65278         (AC_REPLACE_FUNCS): Add memcpy and memset.
65279         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
65280         Add strpbrk.
65281         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
65282
65283 2000-01-12  Jim Meyering  <meyering@lucent.com>
65284
65285         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
65286         (jm_PREREQ): Use it.
65287         (jm_PREREQ_READUTMP): New macro.
65288         (jm_PREREQ): Use it.
65289
65290 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65291
65292         Quote multibyte characters correctly.
65293         * m4/c-bs-a.m4: New file.
65294         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
65295         (jm_PREREQ): Use it.
65296
65297 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65298
65299         * m4/uintmax_t.m4: Port to autoconf 2.13.
65300
65301 2000-01-08  Jim Meyering  <meyering@ascend.com>
65302
65303         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
65304         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
65305
65306 2000-01-04  Jim Meyering  <meyering@ascend.com>
65307
65308         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
65309         jm_STRUCT_DIRENT_D_TYPE.
65310         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
65311         jm_STRUCT_DIRENT_D_INO.
65312         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
65313         jm_STRUCT_UTIMBUF.
65314         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
65315         renamings.
65316         * m4/utime.m4: Likewise.
65317
65318         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
65319         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
65320
65321 2000-01-03  Paul Eggert  <eggert@twinsun.com>
65322
65323         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
65324         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
65325
65326 2000-01-02  Jim Meyering  <meyering@ascend.com>
65327
65328         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
65329         remember if this is necessary.
65330
65331 1999-12-26  Jim Meyering  <meyering@ascend.com>
65332
65333         * m4/jm-macros.m4: Use it here.
65334         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65335
65336 1999-12-23  Jim Meyering  <meyering@ascend.com>
65337
65338         * m4/jm-macros.m4: Check for clock_gettime (moved from
65339         fileutils/configure.in)
65340         Check for gettimeofday.
65341
65342 1999-12-20  Jim Meyering  <meyering@ascend.com>
65343
65344         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65345         autoconf-2.14a-1999-12-20.
65346
65347 1999-12-19  Jim Meyering  <meyering@ascend.com>
65348
65349         * m4/lstat-slash.m4: New file.
65350         * m4/jm-macros.m4: Use the new macro:
65351         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65352
65353 1999-12-07  Jim Meyering  <meyering@ascend.com>
65354
65355         * m4/perl.m4: Require that File::Compare be available, too.
65356         Too many systems seem to lack it.
65357
65358         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65359         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65360
65361 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65362
65363         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65364         problem with the QNX 4.25 shell, which doesn't propagate exit
65365         status of failed commands inside shell assignments.
65366
65367 1999-11-17  Jim Meyering  <meyering@ascend.com>
65368
65369         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65370
65371 1999-11-07  Jim Meyering  <meyering@ascend.com>
65372
65373         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65374
65375 1999-11-06  Jim Meyering  <meyering@ascend.com>
65376
65377         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65378         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65379
65380 1999-11-05  Jim Meyering  <meyering@ascend.com>
65381
65382         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65383         configure.in of textutils, fileutils, and sh-utils into this one
65384         (shared between those packages) file.
65385         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65386         AC_STRUCT_ST_BLKSIZE.
65387
65388 1999-11-03  Jim Meyering  <meyering@ascend.com>
65389
65390         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65391         of AC_CHECK_TYPE checks includes unistd.h.
65392         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65393         Suggestion from Akim Demaille.
65394
65395 1999-10-30  Jim Meyering  <meyering@ascend.com>
65396
65397         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65398         m4-quoted string.
65399         * m4/ls-mntd-fs.m4: Likewise.
65400         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65401         * m4/jm-winsz1.m4: Likewise.
65402
65403         * m4/const.m4: Remove file, since the fix made it into the experimental
65404         version of autoconf.
65405         * m4/mktime.m4: Likewise.
65406
65407         * m4/check-type.m4: Remove file, now that the latest version of
65408         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65409
65410         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65411         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65412         AC_CHECK_TYPE.
65413
65414 1999-10-04  Jim Meyering  <meyering@ascend.com>
65415
65416         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65417
65418 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65419
65420         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65421         2.95.1 bug with HP-UX 10.20.
65422
65423 1999-09-17  Jim Meyering  <meyering@ascend.com>
65424
65425         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65426         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65427         due to missing strdup (against sh-utils-2.0).
65428
65429 1999-08-29  Jim Meyering  <meyering@ascend.com>
65430
65431         * m4/jm-macros.m4: Require jm_BISON.
65432         * m4/bison.m4: New file.
65433
65434 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65435
65436         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65437         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65438
65439 1999-08-05  Jim Meyering  <meyering@ascend.com>
65440
65441         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65442         to avoid conflicts with `conftest' on 8+3 filesystems.
65443         Suggestion from Eli Zaretskii.
65444
65445 1999-08-04  Jim Meyering  <meyering@ascend.com>
65446
65447         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65448         fileutils and sh-utils (textutils's getline test was inadequate).
65449         (AM_FUNC_GETLINE): Run this test.
65450         (AC_CHECK_FUNCS): Check for getdelim.
65451         Reported by Bob Proulx.
65452
65453 1999-08-02  Jim Meyering  <meyering@ascend.com>
65454
65455         * m4/jm-macros.m4: Add a comment.
65456
65457 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65458
65459         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65460         <inttypes.h> defines strtoumax as a macro (and not as a
65461         function).
65462
65463 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65464
65465         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65466         that we can shift, multiply and divide unsigned long long
65467         values; Ultrix cc can't do it.
65468
65469 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65470
65471         * m4/mktime.m4: New file, which is a preview of what should appear
65472         in the next public autoconf release.
65473
65474 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65475
65476         * m4/lfs.m4: Remove this file.
65477         * m4/largefile.m4: New file.  It contains the old contents of
65478         lfs.m4, except that all names with prefix AC_LFS have been
65479         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65480         compatible with future autoconf versions.  Also, some minor m4
65481         quoting problems have been fixed.
65482
65483 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65484
65485         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65486         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65487         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65488         and simplify the shell code.
65489
65490 1999-08-01  Jim Meyering  <meyering@ascend.com>
65491
65492         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65493         m4.
65494
65495 1999-07-20  Jim Meyering  <meyering@ascend.com>
65496
65497         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65498
65499 1999-07-15  Jim Meyering  <meyering@ascend.com>
65500
65501         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65502
65503 1999-05-22  Jim Meyering  <meyering@ascend.com>
65504
65505         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65506
65507 1999-05-20  Jim Meyering  <meyering@ascend.com>
65508
65509         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65510         Add a colon after each `then' in case $4 is empty.
65511
65512 1999-05-16  Jim Meyering  <meyering@ascend.com>
65513
65514         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65515
65516 1999-05-10  Jim Meyering  <meyering@ascend.com>
65517
65518         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65519
65520         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65521         AC_FUNC_MKTIME.
65522
65523 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65524
65525         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65526
65527 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65528
65529         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65530         not CPPFLAGS, so that linking works correctly in IRIX.
65531
65532 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65533
65534         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65535
65536 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65537
65538         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65539         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65540         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65541         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65542         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65543
65544         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65545
65546 1999-04-20  Jim Meyering  <meyering@ascend.com>
65547
65548         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65549         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65550         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65551
65552 1999-04-18  Jim Meyering  <meyering@ascend.com>
65553
65554         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65555         * m4/jm-macros.m4: Use it.
65556
65557 1999-04-06  Jim Meyering  <meyering@ascend.com>
65558
65559         * m4/strftime.m4: Remove test for %f.
65560
65561 1999-03-29  Jim Meyering  <meyering@ascend.com>
65562
65563         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65564         superset of the AC_TYPE_* checks in the textutils, fileutils,
65565         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65566         AC_TYPE_PID_T.
65567
65568 1999-03-28  Jim Meyering  <meyering@ascend.com>
65569
65570         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65571         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65572         replaced e.g., in the *.sh files of the sh-utils.
65573
65574 1999-03-20  Jim Meyering  <meyering@ascend.com>
65575
65576         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65577         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65578         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65579
65580 1999-03-19  Jim Meyering  <meyering@ascend.com>
65581
65582         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65583
65584 1999-03-12  Jim Meyering  <meyering@ascend.com>
65585
65586         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65587
65588 1999-03-07  Jim Meyering  <meyering@ascend.com>
65589
65590         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65591         declared.
65592
65593 1999-02-17  Jim Meyering  <meyering@ascend.com>
65594
65595         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65596         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65597
65598 1999-02-07  Jim Meyering  <meyering@ascend.com>
65599
65600         * m4/group-member.m4: New file -- extracted from sh-utils'
65601         configure.in.
65602
65603         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65604         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65605
65606 1999-02-06  Jim Meyering  <meyering@ascend.com>
65607
65608         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65609         * m4/fnmatch.m4: Likewise.
65610         * m4/getgroups.m4: Likewise.
65611         * m4/lstat.m4: Likewise.
65612         * m4/malloc.m4: Likewise.
65613         * m4/putenv.m4: Likewise.
65614         * m4/realloc.m4: Likewise.
65615         * m4/regex.m4: Likewise.
65616         * m4/stat.m4: Likewise.
65617         * m4/strftime.m4: Likewise.
65618         Suggestion from Alain Magloire.
65619
65620         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65621         * m4/fnmatch.m4: Likewise.
65622         * m4/getgroups.m4: Likewise.
65623         * m4/getline.m4: Likewise.
65624         * m4/lstat.m4: Likewise.
65625         * m4/malloc.m4: Likewise.
65626         * m4/memcmp.m4: Likewise.
65627         * m4/putenv.m4: Likewise.
65628         * m4/realloc.m4: Likewise.
65629         * m4/regex.m4: Likewise.
65630         * m4/stat.m4: Likewise.
65631         * m4/strftime.m4: Likewise.
65632         Suggestion from Alain Magloire.
65633
65634         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65635         an argument.
65636
65637         * m4/regex.m4: Add a run-time Test for proper operation of
65638         re_compile_pattern.
65639
65640 1999-01-31  Jim Meyering  <meyering@ascend.com>
65641
65642         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65643
65644 1999-01-30  Jim Meyering  <meyering@ascend.com>
65645
65646         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65647
65648         * m4/jm-mktime.m4: Make this a wrapper around the official
65649         AM_FUNC_MKTIME rather than my private copy, now that the official one
65650         is up to date.
65651         * m4/mktime.m4: Remove file.
65652
65653         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65654         * m4/uptime.m4: Likewise.
65655         * m4/uintmax_t.m4: Likewise.
65656
65657 1999-01-28  Jim Meyering  <meyering@ascend.com>
65658
65659         * m4/jm-macros.m4: Use jm_AFS.
65660         * m4/afs.m4: New file (from fileutils' configure.in).
65661
65662         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65663         * m4/chown.m4: Likewise.
65664         * m4/d-ino.m4: Likewise.
65665         * m4/d-type.m4: Likewise.
65666         * m4/fnmatch.m4: Likewise.
65667         * m4/getgroups.m4: Likewise.
65668         * m4/gettext.m4: Likewise.
65669         * m4/jm-mktime.m4: Likewise.
65670         * m4/jm-winsz2.m4: Likewise.
65671         * m4/lcmessage.m4: Likewise.
65672         * m4/ls-mntd-fs.m4: Likewise.
65673         * m4/malloc.m4: Likewise.
65674         * m4/memcmp.m4: Likewise.
65675         * m4/putenv.m4: Likewise.
65676         * m4/realloc.m4: Likewise.
65677         * m4/st_mtim.m4: Likewise.
65678         * m4/strftime.m4: Likewise.
65679
65680 1999-01-16  Jim Meyering  <meyering@ascend.com>
65681
65682         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65683         (ARGMATCH_DIE_DECL): Define.
65684
65685 1999-01-12  Jim Meyering  <meyering@ascend.com>
65686
65687         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65688         Reported by Lars Hecking.
65689
65690 1999-01-10  Jim Meyering  <meyering@ascend.com>
65691
65692         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65693         gross kludge.
65694         * m4/inttypes_h.m4: Likewise.
65695         * m4/lstat.m4: Likewise.
65696         * m4/malloc.m4: Likewise.
65697         * m4/readdir.m4: Likewise.
65698         * m4/realloc.m4: Likewise.
65699         * m4/st_dm_mode.m4: Likewise.
65700         * m4/stat.m4: Likewise.
65701         * m4/utimbuf.m4: Likewise.
65702         * m4/utimes.m4: Likewise.
65703
65704         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65705         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65706         comments in config.h.in are meaningful.
65707
65708         * m4/jm-macros.m4: Require autoconf-2.13 here.
65709
65710         * m4/regex.m4: By default, don't use the included regex.c on systems
65711         with glibc 2.  Suggestion from Uli Drepper.
65712
65713 1999-01-02  Jim Meyering  <meyering@ascend.com>
65714
65715         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65716
65717 1998-12-18  Jim Meyering  <meyering@ascend.com>
65718
65719         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65720         Based on a suggestion from Lars Hecking.
65721
65722 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65723
65724         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65725
65726 1998-11-16  Jim Meyering  <meyering@ascend.com>
65727
65728         * m4/lfs.m4: Double-quote the `uname...` expression.
65729
65730 1998-11-14  Jim Meyering  <meyering@ascend.com>
65731
65732         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65733         * m4/stat.m4: Likewise.
65734
65735 1998-11-03  Jim Meyering  <meyering@ascend.com>
65736
65737         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65738         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65739
65740 1998-10-18  Jim Meyering  <meyering@ascend.com>
65741
65742         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65743
65744 1998-10-17  Jim Meyering  <meyering@ascend.com>
65745
65746         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65747         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65748         calls for those previously hard-coded headers.  Instead, take a new
65749         parameter.
65750         (jm_CHECK_DECLARATIONS): Reflect interface change.
65751         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65752         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65753
65754         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65755
65756 1998-10-14  Jim Meyering  <meyering@ascend.com>
65757
65758         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65759         instead of "TZ=America/Vancouver".  From Paul Eggert.
65760
65761 1998-10-11  Jim Meyering  <meyering@ascend.com>
65762
65763         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65764         This adds a test for a recently added compatibility fix for mktime.c.
65765         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65766
65767 1998-09-27  Jim Meyering  <meyering@ascend.com>
65768
65769         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65770
65771         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65772         ../configure.in, including a change from Gordon Matzigkeit to allow
65773         cross-compiling for the Hurd.
65774
65775         * m4/glibc.m4: New file/macro to test for the GNU C Library
65776         versions 1 and 2.  From Gordon Matzigkeit.
65777         Indent.
65778
65779 1998-09-21  Jim Meyering  <meyering@ascend.com>
65780
65781         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65782
65783 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65784
65785         Port nanosecond-resolution times to UnixWare 2.1.2 and
65786         pedantic Solaris 2.6.
65787
65788         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65789         AC_STRUCT_ST_MTIM.
65790         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65791         Generate name of ns member, instead of just 1 or undef.
65792         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65793
65794 1998-08-15  Jim Meyering  <meyering@ascend.com>
65795
65796         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65797         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65798         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65799         instead of jm_TYPE_SSIZE_T.
65800
65801 1998-08-12  Jim Meyering  <meyering@ascend.com>
65802
65803         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65804
65805 1998-08-02  Jim Meyering  <meyering@ascend.com>
65806
65807         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65808         in acconfig.h manually.
65809
65810 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65811
65812         * m4/st_mtim.m4: New file.
65813
65814 1998-07-28  Jim Meyering  <meyering@ascend.com>
65815
65816         * m4/utimes.m4: Undef stat.
65817
65818 1998-07-25  Jim Meyering  <meyering@ascend.com>
65819
65820         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65821         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65822
65823 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65824
65825         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65826         uid and gid actually remain unchanged.
65827
65828 1998-07-07  Jim Meyering  <meyering@ascend.com>
65829
65830         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65831
65832 1998-07-04  Jim Meyering  <meyering@ascend.com>
65833
65834         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65835         to prove that this macro can be used in packages without regex.c.
65836
65837 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65838
65839         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65840         is to be used.
65841
65842 1998-07-03  Jim Meyering  <meyering@ascend.com>
65843
65844         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65845
65846         * m4/gettext.m4: New file -- from gettext-0.10.35.
65847         * m4/lcmessage.m4: Likewise.
65848         * m4/progtest.m4: Likewise.
65849
65850         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65851         * m4/jm-macros.m4: Require the new macro.
65852
65853 1998-06-29  Jim Meyering  <meyering@ascend.com>
65854
65855         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65856         for the definition of NGROUPS (used in a system header included
65857         by sys/mount.h).
65858
65859 1998-06-28  Jim Meyering  <meyering@ascend.com>
65860
65861         * m4/ls-mntd-fs.m4: New file.
65862         * m4/fstypename.m4: New file.
65863
65864         * m4/jm-macros.m4: Require the new macro.
65865         * m4/jm-glibc-io.m4: New file.
65866
65867 1998-05-19  Jim Meyering  <meyering@ascend.com>
65868
65869         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65870         * m4/lchown.m4: New file.
65871
65872         * m4/Makefile.am.in: New file.
65873         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65874
65875 1998-05-14  Jim Meyering  <meyering@ascend.com>
65876
65877         * m4/Makefile.am (EXTRA_DIST): Add them.
65878         * m4/jm-macros.m4: New file.
65879         * m4/utimbuf.m4: New file.
65880
65881 1998-05-12  Jim Meyering  <meyering@ascend.com>
65882
65883         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65884
65885 1998-05-11  Jim Meyering  <meyering@ascend.com>
65886
65887         * m4/isc-posix.m4: New file.
65888
65889 1998-05-10  Jim Meyering  <meyering@ascend.com>
65890
65891         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65892
65893 1998-05-09  Jim Meyering  <meyering@ascend.com>
65894
65895         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65896         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65897         with automake.
65898
65899         * m4/ssize_t.m4: New file.
65900         * m4/mktime.m4: Remove file -- the new automake has this now.
65901
65902 1998-04-26  Jim Meyering  <meyering@ascend.com>
65903
65904         * m4/assert.m4: New file.
65905         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65906
65907 1998-04-05  Jim Meyering  <meyering@ascend.com>
65908
65909         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65910         (jm_PREREQ): Use it here.
65911
65912 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65913
65914         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65915         in acconfig.h.
65916
65917 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65918
65919         * m4/prereq.m4: New file.
65920         * m4/error.m4: New file.
65921         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65922
65923 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65924
65925         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65926         cache-check for the same variable -- that defeated the purpose of
65927         the test; the test program was never run.  This was a problem only
65928         on systems with losing getline functions -- HP-UX 10.20 is one.
65929         Reported by Bjorn Helgaas.
65930
65931 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65932
65933         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65934
65935 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65936
65937         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65938
65939         * m4/const.m4: New file.  Use an initializer in this declaration
65940         typedef int charset[2]; const charset x;
65941         Reported by Bob Glickstein.
65942
65943 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65944
65945         * m4/chown.m4: Fix reversed types on -1 args to chown.
65946         From Kaveh Ghazi.
65947
65948 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65949
65950         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65951         Add lseek and memchr.
65952
65953         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65954         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65955         have a 20-character limit on names.
65956
65957 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65958
65959         * m4/inttypes_h.m4: New file.
65960         * m4/uintmax_t.m4: New file.
65961         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65962
65963
65964         -----
65965
65966         Local Variables:
65967         coding: utf-8
65968         End:
65969
65970         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65971
65972         Copying and distribution of this file, with or without
65973         modification, are permitted provided the copyright notice
65974         and this notice are preserved.