Override netdb.h always.
[gnulib.git] / ChangeLog
1 2010-04-16  Bruno Haible  <bruno@clisp.org>
2
3         Override netdb.h always.
4         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
6         Reported by Ludovic Courtès <ludo@gnu.org>.
7
8 2010-04-15  Bruno Haible  <bruno@clisp.org>
9
10         openpty: Fix mistake from 2010-03-21.
11         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
12         Reported by Simon Josefsson.
13
14 2010-04-15  Eric Blake  <eblake@redhat.com>
15
16         test-forkpty: fix expected signature
17         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
18         Reported by Simon Josefsson.
19
20 2010-04-15  Jim Meyering  <meyering@redhat.com>
21
22         maint.mk: texinfo_suffix_re_: correct the default regexp
23         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24
25         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26         make it configurable via texinfo_suffix_re_.
27
28 2010-04-14  Eric Blake  <eblake@redhat.com>
29
30         strtok_r: relax license to LGPLv2+
31         * modules/strtok_r (License): Relax license.
32         Reported by Matthias Bolte.
33
34 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35
36         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
37         version 1.4.4 by default instead of requiring the libgcrypt
38         version used during build.  This makes it possible to use the
39         application with older but still binary compatible libgcrypt
40         versions.
41
42 2010-04-13  Eric Blake  <eblake@redhat.com>
43
44         getopt-gnu: match recent glibc fixes and posix ruling
45         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
46         '+' handling, when requesting extensions.
47         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
48         'W;' handling.
49         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
50         * doc/posix-functions/getopt.texi (getopt): Document this.
51         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
52         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53         Likewise.
54
55         getopt: merge bug fixes from glibc
56         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
57         diagnostics.  Honor '+:' correctly.  Reject ';'.
58
59         getopt-posix: detect MacOS bug
60         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
61         optind when missing a required argument.
62         * doc/posix-functions/getopt.texi (getopt): Document the bug.
63         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
64         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
65         Likewise.
66
67         getopt-posix: avoid spurious failure on Solaris
68         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
69         an indicator that setting optind=1 is sufficient for reset.
70
71         getopt-posix: avoid spurious failure on FreeBSD
72         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
73         in POSIX mode, since the m4 test uses it.
74
75         gnulib-tool: silence warning on BSD sh
76         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
77
78 2010-04-13  Jim Meyering  <meyering@redhat.com>
79
80         doc: users.txt: GNU patch now uses gnulib
81         * users.txt: Add patch.
82
83 2010-04-12  Jim Meyering  <meyering@redhat.com>
84
85         maint.mk: generate more concise timing data for syntax-check rules
86         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
87         " done" from each line that reports a syntax-check test duration.
88
89 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
90
91         git-version-gen: use "git update-index..." rather than "git status"
92         * build-aux/git-version-gen: Use git update-index --refresh, not
93         "git status".  With some versions of git, "git status" would fail
94         to update the index and result in an unwarranted "-dirty" suffix.
95
96 2010-04-11  Jim Meyering  <meyering@redhat.com>
97
98         openat: correct formatting (no semantic change)
99         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
100         Suggested by Bruno Haible.
101
102 2010-04-11  Bruno Haible  <bruno@clisp.org>
103
104         Stricter declaration checking in testdirs.
105         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
106         If for_tests is true, augment AM_CPPFLAGS to define
107         GNULIB_STRICT_CHECKING.
108         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
109         GNULIB_STRICT_CHECKING is defined, verify that the function is
110         declared.
111
112 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
113             Bruno Haible  <bruno@clisp.org>
114
115         libunistring: Improve configure output.
116         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
117         Don't say "consider installing GNU libunistring" when checking again
118         with libiconv.
119
120 2010-04-11  Bruno Haible  <bruno@clisp.org>
121
122         libunistring: Correct value of $LTLIBUNISTRING.
123         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
124         correct the value of $LTLIBUNISTRING.
125
126 2010-04-11  Bruno Haible  <bruno@clisp.org>
127
128         havelib: Add static libraries to LIBS in the right order.
129         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
130         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
131
132 2010-04-11  Bruno Haible  <bruno@clisp.org>
133
134         libunistring: Detect libunistring also when it depends on libiconv.
135         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
136         the second AC_LIB_HAVE_LINKFLAGS invocation.
137
138 2010-04-11  James Youngman  <jay@gnu.org>
139
140         close-stream: declare local scalars to be "const"
141         * lib/close-stream.c (close_stream): Make boolean variables const
142         to document the fact that we set but do not change them.
143
144 2010-04-11  Bruno Haible  <bruno@clisp.org>
145
146         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
147
148 2010-04-11  Jim Meyering  <meyering@redhat.com>
149
150         maint.mk: don't include dist-check.mk
151         * top/maint.mk: Remove bogus include directive.
152
153         maint.mk: improve empty-line-at-EOF check
154         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
155         solution, rather than tail+Perl-based one.  The latter would read
156         a few kilobytes from the end of each file, and did not handle empty
157         files properly.
158
159         maint.mk: print the elapsed time for each syntax-check rule
160         * top/maint.mk (sc_m_rules_): Save start time in a file.
161         (sc_z_rules_): New rules: remove temp file and print elapsed time.
162         (local-check): Interpose the .z rules
163
164 2010-04-11  Jim Meyering  <meyering@redhat.com>
165
166         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
167         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
168         empty file with one that ends in an empty line.
169
170 2010-04-10  Bruno Haible  <bruno@clisp.org>
171
172         mkdir: Make it work on mingw64.
173         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
174         * lib/mkdir.c: Update comment.
175         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
176
177 2010-04-10  Bruno Haible  <bruno@clisp.org>
178
179         Don't override improved macro from newer autoconf.
180         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
181         autoconf >= 2.62.
182         Reported by Joel E. Denny <jdenny@clemson.edu>.
183
184 2010-04-10  Jim Meyering  <meyering@redhat.com>
185
186         maint.mk: new syntax-check rule: prohibit empty lines at end of file
187         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
188
189         maint.mk: correct a diagnostic
190         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
191         in diagnostic; now use $prohibit.
192
193 2010-04-10  Bruno Haible  <address@hidden>
194
195         fchownat: Fix a C++ test error on Solaris 8.
196         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
197         the function does not exist.
198
199 2010-04-10  Bruno Haible  <bruno@clisp.org>
200
201         vasnprintf: Add more tests.
202         * tests/test-vasnprintf-posix.c: Include <errno.h>.
203         (test_function): Test converting an invalid wide string.
204
205         vasnprintf: Correct handling of unconvertible wide string arguments.
206         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
207         VASNPRINTF.
208         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
209         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
210         smaller than the expected maximum need for the directive. Set errno to
211         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
212         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
214         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
215         * modules/vasnprintf (Files): Add m4/printf.m4.
216         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
217
218 2010-04-10  Bruno Haible  <bruno@clisp.org>
219
220         vasnprintf: Fix crash in %ls directive.
221         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
222         string is passed as argument to %ls, with no precision and no width.
223         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
224
225 2010-04-10  Bruno Haible  <bruno@clisp.org>
226
227         vasnprintf: Fix multiple test failures on mingw.
228         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
229         _snprintf, or snwprintf, not _snwprintf.
230
231 2010-04-10  Bruno Haible  <bruno@clisp.org>
232
233         write: Fix a C++ test error on mingw.
234         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
235
236 2010-04-10  Bruno Haible  <bruno@clisp.org>
237
238         vasnprintf test: Reduce code duplication.
239         * tests/test-vasnprintf.c (test_function): New function, extracted from
240         test_vasnprintf.
241         (test_vasnprintf, test_asnprintf): Invoke it.
242
243 2010-04-10  Bruno Haible  <bruno@clisp.org>
244
245         strnlen: Fix warning in C++ mode on MacOS X.
246         * lib/string.in.h (strnlen): Use the modern idiom.
247         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
248         defining strnlen as a macro already in <config.h>.
249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
250         REPLACE_STRNLEN.
251         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
252         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
253
254 2010-04-08  James Youngman  <jay@gnu.org>
255
256         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
257         the example.
258
259 2010-04-09  Jim Meyering  <meyering@redhat.com>
260
261         maint.mk: print better diagnostic when there is no $(_hv_file)
262         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
263         announce that when $(_hv_file) (aka help-version) does not exist.
264
265         init.sh: run tr in the "C" locale to avoid multibyte interpretation
266         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
267         not try to interpret its random input bytes.  Jarno Rajahalme reported
268         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
269         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
270         (mktempd_): Likewise, just in case.
271
272         ftruncate: add two years to projected module removal date: 2012
273         * m4/ftruncate.m4: Adjust comments.
274
275         ftruncate: mark module as obsolete; even MinGW provides it, now
276         * modules/ftruncate (Status): Obsolete.
277         (Notice): Say that.
278         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
279         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
280
281 2010-04-08  Bruno Haible  <bruno@clisp.org>
282
283         Fix side effects from tests-related modules.
284         * modules/dprintf-posix (Comment): New section.
285         * modules/fprintf-posix (Comment): Likewise.
286         * modules/obstack-printf-posix (Comment): Likewise.
287         * modules/printf-posix (Comment): Likewise.
288         * modules/snprintf-posix (Comment): Likewise.
289         * modules/sprintf-posix (Comment): Likewise.
290         * modules/vasnprintf-posix (Comment): Likewise.
291         * modules/vasprintf-posix (Comment): Likewise.
292         * modules/vdprintf-posix (Comment): Likewise.
293         * modules/vfprintf-posix (Comment): Likewise.
294         * modules/vprintf-posix (Comment): Likewise.
295         * modules/vsnprintf-posix (Comment): Likewise.
296         * modules/vsprintf-posix (Comment): Likewise.
297         * modules/xprintf-posix (Comment): Likewise.
298         * modules/xvasprintf-posix (Comment): Likewise.
299         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
300         * modules/floorf-tests (Depends-on): Likewise.
301         * modules/round-tests (Depends-on): Likewise.
302         * modules/roundf-tests (Depends-on): Likewise.
303         * modules/trunc-tests (Depends-on): Likewise.
304         * modules/truncf-tests (Depends-on): Likewise.
305         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
306         'fprintf-posix' module is not present.
307         * tests/test-floorf2.c (check): Likewise.
308         * tests/test-trunc2.c (check): Likewise.
309         * tests/test-truncf2.c (check): Likewise.
310         * tests/test-round2.c (equal): Likewise.
311         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
312
313 2010-04-07  Karl Berry  <karl@gnu.org>
314
315         * config/srclist.txt,
316         * config/srclistvars.sh,
317         * config/srclist-update: doc fixes.
318
319 2010-04-07  Jim Meyering  <meyering@redhat.com>
320
321         maint.mk: add a PATH crosschecking syntax-check rule
322         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
323         Useful if you use a test like the one in help-version (coreutils,
324         diffutils, grep, gzip) that ensures $(VERSION) matches what is
325         printed by prog --version.
326
327 2010-04-06  Bruno Haible  <bruno@clisp.org>
328
329         Fix link error on mingw.
330         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
331         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
332
333 2010-04-06  Bruno Haible  <bruno@clisp.org>
334
335         Assume rmdir exists.
336         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
337
338 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
339
340         doc: update users.txt
341         * users.txt: Add gcal.
342
343 2010-04-06  Jim Meyering  <meyering@redhat.com>
344
345         init.sh: simply unset TMPDIR rather than risking env -i
346         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
347         although it probably works fine on all Unix-based systems, some
348         systems (Cygwin?) cannot tolerate a totally cleared environment.
349         Suggestion from Eric Blake.
350
351 2010-04-06  Jim Meyering  <meyering@redhat.com>
352
353         init.sh: portability fix: use env's POSIX-specified -i option not -u
354         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
355         than unportable env -u.  Solaris 5.11's env lacks support for -u.
356
357 2010-04-05  Bruno Haible  <bruno@clisp.org>
358
359         btowc: Work around Cygwin 1.7.2 bug.
360         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
361         does not map NUL to 0.
362         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
363
364 2010-04-05  Bruno Haible  <bruno@clisp.org>
365
366         Make the multithread modules work on Cygwin 1.7.2.
367         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
368         imported symbols can be declared weak, so that it returns "no" on
369         Cygwin 1.7.2.
370
371 2010-04-05  Bruno Haible  <bruno@clisp.org>
372
373         Use the module 'strncat'.
374         * modules/unistr/u8-strncat (Depends-on): Add strncat.
375
376         Tests for module 'strncat'.
377         * modules/strncat-tests: New file.
378         * tests/test-strncat.c: New file.
379
380         New module 'strncat'.
381         * lib/string.in.h (strncat): New declaration.
382         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
383         * m4/strncat.m4: New file, based on m4/memchr.m4.
384         * modules/strncat: New file.
385         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
386         is declared.
387         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
388         REPLACE_STRNCAT.
389         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
390         REPLACE_STRNCAT.
391         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
392         module.
393         * tests/test-string-c++.cc: Check signature of strncat.
394
395 2010-04-05  Jim Meyering  <meyering@redhat.com>
396
397         xstrtoumax-tests: convert to use init.sh
398         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
399         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
400         Use Exit, not exit.
401         Remove uses of $EXEEXT and "./" to run a program in the current dir.
402
403         xstrtoimax-tests: convert to use init.sh
404         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
405         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
406         Use Exit, not exit.
407         Remove uses of $EXEEXT and "./" to run a program in the current dir.
408
409 2010-04-05  Bruno Haible  <bruno@clisp.org>
410
411         sys_socket: Avoid #define replacements in C++ mode.
412         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
413         warning to the function if possible, rather than #defining the symbol
414         to a dysfunctional alias.
415
416 2010-04-05  Bruno Haible  <bruno@clisp.org>
417
418         fseeko: Fix C++ test error on mingw.
419         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
420         gl_FUNC_FSEEKO.
421         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
422         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
423         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
424         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
425
426 2010-04-05  Bruno Haible  <bruno@clisp.org>
427
428         duplocale: Improve test output.
429         * tests/test-duplocale.c (main): Print reason for skipped test.
430
431 2010-04-05  Bruno Haible  <bruno@clisp.org>
432
433         Assume rmdir exists.
434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
435         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
436
437 2010-04-05  Bruno Haible  <bruno@clisp.org>
438
439         Fix link error on Solaris 8 with cc.
440         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
441
442 2010-04-05  Bruno Haible  <bruno@clisp.org>
443
444         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
445         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
446
447 2010-04-05  Bruno Haible  <bruno@clisp.org>
448
449         vasprintf: Update documentation.
450         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
451
452 2010-04-05  Bruno Haible  <bruno@clisp.org>
453
454         ptsname: Improve test.
455         * tests/test-ptsname.c (main): Also try the various master names of BSD
456         systems.
457
458 2010-04-05  Bruno Haible  <bruno@clisp.org>
459
460         memchr: Avoid a possible C++ test error.
461         * lib/string.in.h (memchr): Provide declaration if function is missing.
462         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
463         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
465         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
466
467 2010-04-05  Bruno Haible  <bruno@clisp.org>
468
469         strtok_r: Improve idiom.
470         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
471         AC_LIBOBJ is used.
472
473 2010-04-05  Bruno Haible  <bruno@clisp.org>
474
475         strdup: Improve idiom.
476         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
477         AC_LIBOBJ is used.
478         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
479         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
480         when AC_LIBOBJ is used.
481
482 2010-04-05  Bruno Haible  <bruno@clisp.org>
483
484         mbsinit, mbrtowc, wcrtomb: Improve idioms.
485         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
486         don't set REPLACE_MBSINIT to 1.
487         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
488         don't set REPLACE_MBRTOWC to 1.
489         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
490         exist, don't set REPLACE_MBSRTOWCS to 1.
491         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
492         exist, don't set REPLACE_MBSNRTOWCS to 1.
493         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
494         don't set REPLACE_WCRTOMB to 1.
495         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
496         exist, don't set REPLACE_WCSRTOMBS to 1.
497         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
498         exist, don't set REPLACE_WCSNRTOMBS to 1.
499
500 2010-04-05  Bruno Haible  <bruno@clisp.org>
501
502         ldexpl: Improve idiom.
503         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
504         make sure to set HAVE_DECL_LDEXPL to 0.
505
506 2010-04-05  Jim Meyering  <meyering@redhat.com>
507
508         xstrtol-tests: convert to use init.sh
509         * modules/xstrtol-tests (Files): Add tests/init.sh.
510         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
511         Use Exit, not exit.
512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
513
514         atexit-tests: convert to use init.sh
515         * modules/atexit-tests (Files): Add tests/init.sh.
516         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
517         Use Exit, not exit.
518         Remove uses of $EXEEXT and "./" to run a program in the current dir.
519
520         init.sh: fix typo
521         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
522
523         init.sh: make it easier for a test script to write to the tty, ...
524         when using automake's parallel-tests mode.
525         * tests/init.sh (stderr_fileno_): Define overridable variable.
526         (warn_): New function, to use it.
527         (fail_, skip_, framework_failure_): Use warn_.
528
529 2010-04-04  Bruno Haible  <bruno@clisp.org>
530
531         btowc: Avoid warning.
532         * lib/btowc.c: Include <stdlib.h>.
533         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
534
535 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
536             Bruno Haible  <bruno@clisp.org>
537
538         wchar: Port to NetBSD 1.5.
539         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
540         * lib/wctype.in.h (WEOF): Likewise.
541
542 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
543             Bruno Haible  <bruno@clisp.org>
544
545         Port extended stdio to NetBSD 1.5.
546         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
547         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
548         older.
549
550 2010-04-04  Bruno Haible  <bruno@clisp.org>
551
552         string: Remove unused substitution.
553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
554         HAVE_DECL_STRERROR.
555         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
556
557 2010-04-04  Bruno Haible  <bruno@clisp.org>
558
559         strtod: Avoid a possible C++ test error.
560         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
561         set REPLACE_STRTOD.
562
563 2010-04-04  Bruno Haible  <bruno@clisp.org>
564
565         strerror: Update documentation.
566         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
567
568 2010-04-04  Bruno Haible  <bruno@clisp.org>
569
570         stdio: Fix some C++ test errors on Solaris 8 with GCC.
571         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
572         _GL_CXXALIAS_SYS_CAST.
573
574 2010-04-04  Bruno Haible  <bruno@clisp.org>
575
576         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
577         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
578         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
579         REPLACE_FREXPL to 1.
580         * doc/posix-functions/frexpl.texi: Update documentation.
581
582 2010-04-04  Bruno Haible  <bruno@clisp.org>
583
584         math: Fix some C++ test errors on Solaris 8 and Cygwin.
585         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
586
587 2010-04-04  Bruno Haible  <bruno@clisp.org>
588
589         Implement nanosleep for native Windows.
590         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
591
592 2010-04-04  Bruno Haible  <bruno@clisp.org>
593
594         math: Fix some C++ test errors on Solaris 8.
595         * lib/math.in.h (truncf, trunc): Use simpler idiom.
596
597 2010-04-04  Bruno Haible  <bruno@clisp.org>
598
599         math: Fix some C++ test errors on Cygwin.
600         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
601         truncl): Provide declaration if the system does not have it.
602         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
603         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
604         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
605         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
606         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
607         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
608         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
609         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
610         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
611         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
612         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
613         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
614         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
615         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
616         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
617         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
619         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
620         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
621         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
622         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
623         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
624
625 2010-04-04  Bruno Haible  <bruno@clisp.org>
626
627         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
628         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
629         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
630         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
631         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
632         * m4/isinf.m4 (gl_ISINF): Likewise.
633         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
634
635 2010-04-04  Bruno Haible  <bruno@clisp.org>
636
637         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
638         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
639
640 2010-04-04  Bruno Haible  <bruno@clisp.org>
641
642         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
643         * modules/tmpfile (configure.ac): Update.
644
645         tmpfile: Fix C++ test error on mingw.
646         * lib/stdio.in.h (tmpfile): New declaration.
647         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
648         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
649         * modules/tmpfile (Depends-on): Add stdio.
650         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
651         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
652         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
653         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
654         REPLACE_TMPFILE.
655         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
656
657 2010-04-04  Bruno Haible  <bruno@clisp.org>
658
659         ioctl: Fix C++ test error on mingw.
660         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
661         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
662         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
663
664 2010-04-03  Bruno Haible  <bruno@clisp.org>
665
666         wcwidth: Fix C++ test error on mingw.
667         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
669         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
670
671 2010-04-03  Bruno Haible  <bruno@clisp.org>
672
673         nanosleep: Fix C++ test error on mingw.
674         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
675         * lib/time.in.h (nanosleep): Use modern idiom.
676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
677         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
678         REPLACE_NANOSLEEP to 1.
679         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
680         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
681
682 2010-04-03  Bruno Haible  <bruno@clisp.org>
683
684         strptime: Fix C++ test error on mingw.
685         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
686         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
687         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
688         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
689         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
690         not REPLACE_STRPTIME.
691         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
692         REPLACE_STRPTIME.
693
694 2010-04-03  Bruno Haible  <bruno@clisp.org>
695
696         timegm: Fix C++ test error on mingw.
697         * lib/time.in.h (timegm): Use modern idiom.
698         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
699         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
700         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
701         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
702
703 2010-04-03  Bruno Haible  <bruno@clisp.org>
704
705         timegm: Assume declaration if function exists.
706         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
707         if it exists. Don't clobber ac_cv_func_timegm.
708
709 2010-04-03  Bruno Haible  <bruno@clisp.org>
710
711         time_r: Fix C++ test error on mingw.
712         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
713         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
714         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
715         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
716         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
717
718 2010-04-03  Bruno Haible  <bruno@clisp.org>
719
720         time_r: Minor updates.
721         * modules/time_r (Description): Mention the provided functions.
722         * lib/time_r.c: Don't include <string.h>.
723         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
724         * doc/posix-functions/localtime_r.texi: Likewise.
725
726 2010-04-03  Bruno Haible  <bruno@clisp.org>
727
728         time: Fix regression introduced on 2010-03-08.
729         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
730         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
731
732 2010-04-03  Jim Meyering  <meyering@redhat.com>
733
734         maint.mk: don't silently disable project-specific syntax-check rules
735         * top/maint.mk (_prohibit_regexp): Define, to help people realize
736         that they need to convert their project-specific syntax-check rules
737         to use the new _sc_search_regexp.
738
739 2010-04-03  Bruno Haible  <bruno@clisp.org>
740
741         fchdir: Fix regression introduced on 2010-03-08.
742         * lib/unistd.in.h (fchdir): Fix declaration.
743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
745         REPLACE_FCHDIR.
746         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
747         REPLACE_FCHDIR.
748
749 2010-04-03  Bruno Haible  <bruno@clisp.org>
750
751         getpagesize: Fix C++ test error on mingw.
752         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
753         system does not declare the function.
754         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
755         declared.
756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
757         HAVE_DECL_GETPAGESIZE.
758         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
759
760 2010-04-03  Bruno Haible  <bruno@clisp.org>
761
762         stdio: Make C++ tests work on mingw.
763         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
764         does not declare the function.
765
766 2010-04-03  Bruno Haible  <bruno@clisp.org>
767
768         ftello: Fix C++ test error on mingw.
769         * lib/stdio.in.h (ftello): Use modern idiom.
770         * lib/ftello.c (ftello): Renamed from rpl_ftello.
771         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
772         is missing and that it needs to be replaced.
773         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
775         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
776
777 2010-04-03  Bruno Haible  <bruno@clisp.org>
778
779         fseeko: Fix C++ test error on mingw.
780         * lib/stdio.in.h (fseeko): Use modern idiom.
781         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
782         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
783         is missing and that it needs to be replaced.
784         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
786         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
787
788 2010-04-03  Bruno Haible  <bruno@clisp.org>
789
790         mkstemp: Fix C++ test error on mingw.
791         * lib/stdlib.in.h (mkstemp): Use modern idiom.
792         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
793         function is missing and that it needs to be replaced.
794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
795         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
796
797 2010-04-03  Bruno Haible  <bruno@clisp.org>
798
799         stpncpy: Fix C++ test error on mingw.
800         * lib/string.in.h (stpncpy): Use modern idiom.
801         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
802         function is missing and that it needs to be replaced.
803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
804         REPLACE_STPNCPY.
805         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
806
807 2010-04-03  Bruno Haible  <bruno@clisp.org>
808
809         sys_stat: Fix C++ test error on mingw.
810         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
811         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
812
813 2010-04-03  Bruno Haible  <bruno@clisp.org>
814
815         pty: Update doc.
816         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
817
818 2010-04-03  Bruno Haible  <bruno@clisp.org>
819
820         unistd: Fix C++ test error on mingw.
821         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
822
823 2010-04-03  Bruno Haible  <bruno@clisp.org>
824
825         Update doc regarding mingw.
826         * doc/glibc-functions/openpty.texi: Update regarding mingw.
827         * doc/glibc-functions/login_tty.texi: Likewise.
828         * doc/glibc-functions/forkpty.texi: Likewise.
829
830 2010-04-03  Bruno Haible  <bruno@clisp.org>
831
832         stdlib: Avoid compilation failure of c-strtold on mingw.
833         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
834
835 2010-04-03  Bruno Haible  <bruno@clisp.org>
836
837         locale: Make C++ tests work on Cygwin and mingw.
838         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
839         cannot provide the function.
840         Reported by Simon Josefsson.
841
842 2010-04-03  Bruno Haible  <bruno@clisp.org>
843
844         localename: Port to MacOS X 10.6.
845         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
846         memory layout of the locales in MacOS X 10.6 as well.
847         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
848
849 2010-04-02  Bruno Haible  <bruno@clisp.org>
850
851         gnulib-tool: Ensure that long-running tests are executed last.
852         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
853         running tests after the one for the other tests.
854
855 2010-04-02  Bruno Haible  <bruno@clisp.org>
856
857         gnulib-tool: Ensure the tests in the main directory are executed first.
858         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
859         start with the current directory.
860
861 2010-04-02  Bruno Haible  <bruno@clisp.org>
862
863         Tests for module 'havelib', moved here from GNU gettext.
864         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
865         modifications.
866         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
867         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
868         with modifications.
869         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
870         modifications.
871         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
872         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
873         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
874         with modifications.
875         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
876         with modifications.
877         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
878         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
879         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
880         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
881         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
882         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
883         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
884         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
885         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
886         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
887         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
888         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
889         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
890         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
891         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
892         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
893         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
894         with modifications.
895         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
896         with modifications.
897         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
898         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
899         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
900         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
901         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
902         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
903         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
904         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
905         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
906         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
907         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
908         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
909         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
910         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
911         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
912         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
913         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
914         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
915         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
916         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
917         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
918         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
919         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
920         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
921         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
922         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
923         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
924         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
925         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
926         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
927         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
928         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
929         * tests/havelib/rpathx/rpathx.c: New file, from
930         gettext/autoconf-lib-link.
931         * tests/havelib/rpathx/Makefile.am: New file, from
932         gettext/autoconf-lib-link.
933         * tests/havelib/rpathx/configure.ac: New file, from
934         gettext/autoconf-lib-link with modifications.
935         * tests/havelib/rpathy/rpathy.c: New file, from
936         gettext/autoconf-lib-link.
937         * tests/havelib/rpathy/Makefile.am: New file, from
938         gettext/autoconf-lib-link.
939         * tests/havelib/rpathy/configure.ac: New file, from
940         gettext/autoconf-lib-link with modifications.
941         * tests/havelib/rpathz/rpathz.c: New file, from
942         gettext/autoconf-lib-link.
943         * tests/havelib/rpathz/Makefile.am: New file, from
944         gettext/autoconf-lib-link.
945         * tests/havelib/rpathz/configure.ac: New file, from
946         gettext/autoconf-lib-link with modifications.
947         * tests/havelib/rpathlx/usex.c: New file, from
948         gettext/autoconf-lib-link.
949         * tests/havelib/rpathlx/Makefile.am: New file, from
950         gettext/autoconf-lib-link.
951         * tests/havelib/rpathlx/configure.ac: New file, from
952         gettext/autoconf-lib-link with modifications.
953         * tests/havelib/rpathly/usey.c: New file, from
954         gettext/autoconf-lib-link.
955         * tests/havelib/rpathly/Makefile.am: New file, from
956         gettext/autoconf-lib-link.
957         * tests/havelib/rpathly/configure.ac: New file, from
958         gettext/autoconf-lib-link with modifications.
959         * tests/havelib/rpathlz/usez.c: New file, from
960         gettext/autoconf-lib-link.
961         * tests/havelib/rpathlz/Makefile.am: New file, from
962         gettext/autoconf-lib-link.
963         * tests/havelib/rpathlz/configure.ac: New file, from
964         gettext/autoconf-lib-link with modifications.
965         * tests/havelib/rpathlyx/usey.c: New file, from
966         gettext/autoconf-lib-link.
967         * tests/havelib/rpathlyx/Makefile.am: New file, from
968         gettext/autoconf-lib-link.
969         * tests/havelib/rpathlyx/configure.ac: New file, from
970         gettext/autoconf-lib-link with modifications.
971         * tests/havelib/rpathlzyx/usez.c: New file, from
972         gettext/autoconf-lib-link.
973         * tests/havelib/rpathlzyx/Makefile.am: New file, from
974         gettext/autoconf-lib-link.
975         * tests/havelib/rpathlzyx/configure.ac: New file, from
976         gettext/autoconf-lib-link with modifications.
977         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
978         with modifications.
979
980 2010-04-02  Bruno Haible  <bruno@clisp.org>
981
982         gnulib-tool: Create distributed built sources also for the tests.
983         * gnulib-tool (func_create_testdir): Also generate distributed built
984         sources in the tests directory.
985
986 2010-04-02  Bruno Haible  <bruno@clisp.org>
987
988         gnulib-tool: Obey user's environment variables.
989         * gnulib-tool (func_create_testdir): When creating built sources,
990         respect the environment variables for autoconf, automake, etc. given by
991         the user.
992
993 2010-04-02  Bruno Haible  <bruno@clisp.org>
994
995         gnulib-tool: Provide the value of --m4-base to modules.
996         * gnulib-tool (func_import, func_create_testdir): Emit a definition
997         of gl_m4_base.
998
999 2010-04-02  Eric Blake  <eblake@redhat.com>
1000
1001         maint.mk: fix some fallout
1002         * NEWS: Document the incompatible change, and its effect on cfg.mk.
1003         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
1004
1005 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
1006
1007         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
1008         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
1009         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
1010         (sc_cast_of_x_alloc_return_value): Likewise.
1011         (sc_cast_of_alloca_return_value): Likewise.
1012         (sc_space_tab): Likewise.
1013         (sc_prohibit_atoi_atof): Likewise.
1014         (sc_prohibit_magic_number_exit): Likewise.
1015         (sc_error_exit_success): Likewise.
1016         (sc_file_system): Likewise.
1017         (sc_prohibit_have_config_h): Likewise.
1018         (sc_require_config_h): Likewise.
1019         (sc_prohibit_HAVE_MBRTOWC): Likewise.
1020         (sc_obsolete_symbols): Likewise.
1021         (sc_changelog): Likewise.
1022         (sc_program_name): Likewise.
1023         (sc_the_the): Likewise.
1024         (sc_trailing_blank): Likewise.
1025         (sc_two_space_separator_in_usage): Likewise.
1026         (sc_useless_cpp_parens): Likewise.
1027         (sc_GPL_version): Likewise.
1028         (sc_GFDL_version): Likewise.
1029         (sc_texinfo_acronym): Likewise.
1030         (sc_prohibit_cvs_keyword): Likewise.
1031         (sc_prohibit_stat_st_blocks): Likewise.
1032         (sc_prohibit_S_IS_definition): Likewise.
1033         (sc_redundant_const): Likewise.
1034         (sc_makefile_TAB_only_indentation): Likewise.
1035         (sc_m4_quote_check): Likewise.
1036         (sc_makefile_path_separator_check): Likewise.
1037         (sc_copyright_check): Likewise.
1038         (sc_Wundef_boolean): Likewise.
1039         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1040
1041         maint.mk: match 0 or more whitespace-before-function-call '('
1042         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
1043         that have zero or two-and-more spaces between the function name
1044         and the open parenthesis.
1045         (sc_error_message_warn_fatal): Likewise.
1046         (sc_error_message_uppercase): Likewise.
1047         (sc_error_message_period): Likewise.
1048
1049 2010-03-31  Eric Blake  <eblake@redhat.com>
1050
1051         maint.mk: check for [ as well as test
1052         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
1053         Based on a libvirt report by Matthias Bolte.
1054
1055         gnumakefile: don't squelch _version output
1056         * top/GNUmakefile (_version): Create one-shot dependency rather
1057         than using $(shell) when version must be regenerated.
1058         (_autoreconf): Run verbosely, by default.
1059
1060         sys_time: avoid compiler warnings
1061         * lib/sys_time.in.h (includes): Ensure gcc pragma is
1062         unconditional, fixing regression from 2010-03-29.
1063         Reported by Simon Josefsson.
1064
1065 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
1066
1067         maint.mk: s/_header_without_use/_sc_header_without_use/
1068         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
1069         (sc_prohibit_assert_without_use): Use the new name.
1070         (sc_prohibit_close_stream_without_use): Likewise.
1071         (sc_prohibit_getopt_without_use): Likewise.
1072         (sc_prohibit_quotearg_without_use): Likewise.
1073         (sc_prohibit_quote_without_use): Likewise.
1074         (sc_prohibit_long_options_without_use): Likewise.
1075         (sc_prohibit_inttostr_without_use): Likewise.
1076         (sc_prohibit_ignore_value_without_use): Likewise.
1077         (sc_prohibit_error_without_use): Likewise.
1078         (sc_prohibit_xalloc_without_use): Likewise.
1079         (sc_prohibit_hash_without_use): Likewise.
1080         (sc_prohibit_hash_pjw_without_use): Likewise.
1081         (sc_prohibit_safe_read_without_use): Likewise.
1082         (sc_prohibit_argmatch_without_use): Likewise.
1083         (sc_prohibit_canonicalize_without_use): Likewise.
1084         (sc_prohibit_root_dev_ino_without_use): Likewise.
1085         (sc_prohibit_openat_without_use): Likewise.
1086         (sc_prohibit_c_ctype_without_use): Likewise.
1087         (sc_prohibit_signal_without_use): Likewise.
1088         (sc_prohibit_intprops_without_use): Likewise.
1089
1090 2010-03-30  Eric Blake  <eblake@redhat.com>
1091
1092         maint: improve module indicators
1093         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
1094         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
1095         columns, and avoid extra macro expansion.
1096
1097         fdopendir: work around FreeBSD bug
1098         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
1099         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
1100         * modules/dirent (Makefile.am): Substitute it.
1101         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
1102         declaration.
1103         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
1104         fix.
1105         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1106
1107 2010-03-29  Bruno Haible  <bruno@clisp.org>
1108
1109         Emit #pragma system_header after the inclusion guard, not before.
1110         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
1111         guard that spans the entire file, not before. This enables an
1112         optimization in GCC's preprocessor.
1113         * lib/ctype.in.h: Likewise.
1114         * lib/dirent.in.h: Likewise.
1115         * lib/errno.in.h: Likewise.
1116         * lib/float.in.h: Likewise.
1117         * lib/getopt.in.h: Likewise.
1118         * lib/iconv.in.h: Likewise.
1119         * lib/langinfo.in.h: Likewise.
1120         * lib/locale.in.h: Likewise.
1121         * lib/math.in.h: Likewise.
1122         * lib/netdb.in.h: Likewise.
1123         * lib/netinet_in.in.h: Likewise.
1124         * lib/pty.in.h: Likewise.
1125         * lib/sched.in.h: Likewise.
1126         * lib/se-selinux.in.h: Likewise.
1127         * lib/search.in.h: Likewise.
1128         * lib/spawn.in.h: Likewise.
1129         * lib/stdarg.in.h: Likewise.
1130         * lib/stdint.in.h: Likewise.
1131         * lib/string.in.h: Likewise.
1132         * lib/strings.in.h: Likewise.
1133         * lib/sys_file.in.h: Likewise.
1134         * lib/sys_ioctl.in.h: Likewise.
1135         * lib/sys_time.in.h: Likewise.
1136         * lib/sys_times.in.h: Likewise.
1137         * lib/sys_utsname.in.h: Likewise.
1138         * lib/sys_wait.in.h: Likewise.
1139         * lib/sysexits.in.h: Likewise.
1140         * lib/wctype.in.h: Likewise.
1141
1142 2010-03-28  James Youngman  <jay@gnu.org>
1143
1144         save-cwd: don't leak a file descriptor when the caller execs.
1145         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
1146         saved file descriptor.
1147         * modules/save-cwd (Depends-on): Depend on cloexec.
1148
1149 2010-03-29  Bruno Haible  <bruno@clisp.org>
1150
1151         Remove vestiges of fts-lgpl module.
1152         * lib/fts_.h: Assume GNULIB_FTS is 1.
1153         * lib/fts.c: Likewise.
1154         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1155
1156 2010-03-28  Bruno Haible  <bruno@clisp.org>
1157
1158         Fix definition of tests witness macro.
1159         * gnulib-tool (func_import): Fix definition of witness macro.
1160
1161 2010-03-28  Bruno Haible  <bruno@clisp.org>
1162
1163         Fix ioctl's protoype on glibc systems.
1164         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
1165         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
1166         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
1167         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
1168         signature. If not, arrange to replace the ioctl function.
1169         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1170         REPLACE_IOCTL.
1171         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
1172         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
1173         Reported by Ludovic Courtès <ludo@gnu.org>.
1174
1175 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
1176
1177         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
1178         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
1179         made it so grep -r --include=GLOB* ... did not work.
1180
1181 2010-03-26  Jim Meyering  <meyering@redhat.com>
1182             Eric Blake  <eblake@redhat.com>
1183
1184         maint.mk: prohibit use of test's -o and -a operators
1185         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
1186
1187 2010-03-28  Bruno Haible  <bruno@clisp.org>
1188
1189         Remove unused GNULIB_XYZ macro definitions.
1190         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
1191         invocation.
1192
1193 2010-03-28  Bruno Haible  <bruno@clisp.org>
1194
1195         Mark privileged tests modules.
1196         * modules/idpriv-drop-tests (Status): New section.
1197         * modules/idpriv-droptemp-tests (Status): New section.
1198
1199 2010-03-28  Bruno Haible  <bruno@clisp.org>
1200
1201         Split C++ tests into separate tests modules.
1202         * modules/dirent-c++-tests: New file, extracted from
1203         modules/dirent-tests.
1204         * modules/dirent-tests: Depend on it.
1205         * modules/fcntl-h-c++-tests: New file, extracted from
1206         modules/fcntl-h-tests.
1207         * modules/fcntl-h-tests: Depend on it.
1208         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
1209         * modules/glob-tests: Depend on it.
1210         * modules/iconv-h-c++-tests: New file, extracted from
1211         modules/iconv-h-tests.
1212         * modules/iconv-h-tests: Depend on it.
1213         * modules/langinfo-c++-tests: New file, extracted from
1214         modules/langinfo-tests.
1215         * modules/langinfo-tests: Depend on it.
1216         * modules/locale-c++-tests: New file, extracted from
1217         modules/locale-tests.
1218         * modules/locale-tests: Depend on it.
1219         * modules/math-c++-tests: New file, extracted from modules/math-tests.
1220         * modules/math-tests: Depend on it.
1221         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
1222         * modules/pty-tests: Depend on it.
1223         * modules/search-c++-tests: New file, extracted from
1224         modules/search-tests.
1225         * modules/search-tests: Depend on it.
1226         * modules/signal-c++-tests: New file, extracted from
1227         modules/signal-tests.
1228         * modules/signal-tests: Depend on it.
1229         * modules/spawn-c++-tests: New file, extracted from
1230         modules/spawn-tests.
1231         * modules/spawn-tests: Depend on it.
1232         * modules/stdio-c++-tests: New file, extracted from
1233         modules/stdio-tests.
1234         * modules/stdio-tests: Depend on it.
1235         * modules/stdlib-c++-tests: New file, extracted from
1236         modules/stdlib-tests.
1237         * modules/stdlib-tests: Depend on it.
1238         * modules/string-c++-tests: New file, extracted from
1239         modules/string-tests.
1240         * modules/string-tests: Depend on it.
1241         * modules/sys_ioctl-c++-tests: New file, extracted from
1242         modules/sys_ioctl-tests.
1243         * modules/sys_ioctl-tests: Depend on it.
1244         * modules/sys_select-c++-tests: New file, extracted from
1245         modules/sys_select-tests.
1246         * modules/sys_select-tests: Depend on it.
1247         * modules/sys_socket-c++-tests: New file, extracted from
1248         modules/sys_socket-tests.
1249         * modules/sys_socket-tests: Depend on it.
1250         * modules/sys_stat-c++-tests: New file, extracted from
1251         modules/sys_stat-tests.
1252         * modules/sys_stat-tests: Depend on it.
1253         * modules/sys_time-c++-tests: New file, extracted from
1254         modules/sys_time-tests.
1255         * modules/sys_time-tests: Depend on it.
1256         * modules/time-c++-tests: New file, extracted from modules/time-tests.
1257         * modules/time-tests: Depend on it.
1258         * modules/unistd-c++-tests: New file, extracted from
1259         modules/unistd-tests.
1260         * modules/unistd-tests: Depend on it.
1261         * modules/wchar-c++-tests: New file, extracted from
1262         modules/wchar-tests.
1263         * modules/wchar-tests: Depend on it.
1264         * modules/wctype-c++-tests: New file, extracted from
1265         modules/wctype-tests.
1266         * modules/wctype-tests: Depend on it.
1267         Reported by Simon Josefsson.
1268
1269 2010-03-28  Bruno Haible  <bruno@clisp.org>
1270
1271         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
1272         * gnulib-tool (func_exists_module): New function, extracted from
1273         func_verify_module.
1274         (func_verify_module): Use it.
1275         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
1276         'foo' only if 'foo' exists.
1277         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
1278         module.
1279
1280 2010-03-28  Bruno Haible  <bruno@clisp.org>
1281
1282         gnulib-tool: Add support for special categories of tests.
1283         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
1284         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
1285         (func_usage): Document them.
1286         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
1287         inc_unportable_tests, inc_all_tests): New variables.
1288         (func_acceptable): Consider these variables.
1289         (func_modules_transitive_closure): Make it work when the 'Status' field
1290         consists of multiple words.
1291         (func_import): Store and restore the values of inc_cxx_tests,
1292         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
1293         inc_all_tests in gnulib-comp.m4.
1294         (func_create_testdir): Set inc_all_tests to true.
1295         * doc/gnulib.texi (Extra tests modules): New section.
1296         Suggested by Jim Meyering.
1297
1298 2010-03-28  Bruno Haible  <bruno@clisp.org>
1299
1300         ansi-c++-opt: Allow turning off the C++ build by default.
1301         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
1302         gl_CXX_CHOICE_DEFAULT_NO is defined.
1303         Requested by Eric Blake.
1304
1305 2010-03-28  Bruno Haible  <bruno@clisp.org>
1306
1307         unistd: Avoid #define replacements in C++ mode.
1308         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1309         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1310         setsockopt, shutdown, select): In C++, attach a warning to the function
1311         if possible, rather than #defining the symbol to a dysfunctional alias.
1312         Reported by John W. Eaton <jwe@gnu.org>.
1313
1314 2010-03-28  Bruno Haible  <bruno@clisp.org>
1315
1316         Fix link errors on mingw.
1317         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1318         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1319         $(LIBSOCKET).
1320         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1321         $(LIBSOCKET).
1322
1323 2010-03-28  Bruno Haible  <bruno@clisp.org>
1324             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1325
1326         lib-ignore: Determine different options for different compilers.
1327         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1328         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1329         Add comments.
1330         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1331         * NEWS: Mention the change.
1332
1333 2010-03-27  Bruno Haible  <bruno@clisp.org>
1334
1335         Remove unused GNULIB_XYZ macro definitions.
1336         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1337         * modules/fseek (configure.ac): Likewise.
1338         * modules/ioctl (configure.ac): Likewise.
1339         * modules/open (configure.ac): Likewise.
1340         * modules/stdlib-safer (configure.ac): Likewise.
1341
1342 2010-03-27  Bruno Haible  <bruno@clisp.org>
1343
1344         Add a remark about certain modules.
1345         * modules/malloc (Comment): New section.
1346         * modules/realloc (Comment): Likewise.
1347         * modules/sigpipe (Comment): Likewise.
1348
1349 2010-03-27  Bruno Haible  <bruno@clisp.org>
1350
1351         Resolve conflict between the two kinds of module indicators.
1352         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1353         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1354         * modules/canonicalize (configure.ac): Invoke
1355         gl_MODULE_INDICATOR_FOR_TESTS.
1356         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1357         GNULIB_XYZ.
1358         * tests/test-dirent-c++.cc: Likewise.
1359         * tests/test-dirent-safer.c: Likewise.
1360         * tests/test-dup2.c: Likewise.
1361         * tests/test-fchdir.c: Likewise.
1362         * tests/test-fcntl-h-c++.cc: Likewise.
1363         * tests/test-getopt.c: Likewise.
1364         * tests/test-getopt.h: Likewise.
1365         * tests/test-langinfo-c++.cc: Likewise.
1366         * tests/test-locale-c++.cc: Likewise.
1367         * tests/test-math-c++.cc: Likewise.
1368         * tests/test-pty-c++.cc: Likewise.
1369         * tests/test-search-c++.cc: Likewise.
1370         * tests/test-signal-c++.cc: Likewise.
1371         * tests/test-spawn-c++.cc: Likewise.
1372         * tests/test-stdio-c++.cc: Likewise.
1373         * tests/test-stdlib-c++.cc: Likewise.
1374         * tests/test-string-c++.cc: Likewise.
1375         * tests/test-sys_ioctl-c++.cc: Likewise.
1376         * tests/test-sys_select-c++.cc: Likewise.
1377         * tests/test-sys_socket-c++.cc: Likewise.
1378         * tests/test-sys_stat-c++.cc: Likewise.
1379         * tests/test-sys_time-c++.cc: Likewise.
1380         * tests/test-time-c++.cc: Likewise.
1381         * tests/test-unistd-c++.cc: Likewise.
1382         * tests/test-wchar-c++.cc: Likewise.
1383         * tests/uninorm/test-u8-nfc.c: Likewise.
1384         * tests/uninorm/test-u8-nfd.c: Likewise.
1385         * tests/uninorm/test-u8-nfkc.c: Likewise.
1386         * tests/uninorm/test-u8-nfkd.c: Likewise.
1387         * tests/uninorm/test-u16-nfc.c: Likewise.
1388         * tests/uninorm/test-u16-nfd.c: Likewise.
1389         * tests/uninorm/test-u16-nfkc.c: Likewise.
1390         * tests/uninorm/test-u16-nfkd.c: Likewise.
1391         * tests/uninorm/test-u32-nfc.c: Likewise.
1392         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1393         * tests/uninorm/test-u32-nfd.c: Likewise.
1394         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1395         * tests/uninorm/test-u32-nfkc.c: Likewise.
1396         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1397         * tests/uninorm/test-u32-nfkd.c: Likewise.
1398         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1399         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1400
1401 2010-03-27  Bruno Haible  <bruno@clisp.org>
1402
1403         Distinguish two kinds of module indicators.
1404         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1405         gl_MODULE_INDICATOR.
1406         (gl_MODULE_INDICATOR): New macro.
1407         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1408         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1409         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1410         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1411         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1412         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1413         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1414         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1415         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1416         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1417         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1418         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1419         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1420         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1421         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1422         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1423         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1424         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1425         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1426         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1427         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1428         * modules/cloexec (configure.ac): Likewise.
1429         * modules/getopt-gnu (configure.ac): Likewise.
1430         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1431         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1432         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1433         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1434
1435 2010-03-27  Bruno Haible  <bruno@clisp.org>
1436
1437         New module description field 'Comment'.
1438         * gnulib-tool: New option --extract-comment.
1439         (func_usage): Document it.
1440         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1441         (func_get_comment): New function.
1442         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1443
1444 2010-03-27  Bruno Haible  <bruno@clisp.org>
1445
1446         Addendum to 2010-02-07 commit.
1447         * gnulib-tool (func_usage): Document --extract-applicability option.
1448
1449 2010-03-27  Bruno Haible  <bruno@clisp.org>
1450
1451         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1452         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1453         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1454         rather than link errors.
1455
1456 2010-03-27  Bruno Haible  <bruno@clisp.org>
1457
1458         Avoid side effects from tests-related modules on the compilation of lib.
1459         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1460         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1461         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1462         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1463         macro.
1464         (func_import): Define a witness macro. Assign it a value that depends
1465         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1466         tests-related modules.
1467         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1468         Reported by Jim Meyering.
1469
1470 2010-03-27  Bruno Haible  <bruno@clisp.org>
1471
1472         Factorize common .m4 code.
1473         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1474         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1475         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1476         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1477         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1478         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1479         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1480         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1481         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1482         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1483         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1484         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1485         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1486         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1487         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1488         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1489         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1490         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1492         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1493         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1494         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1495         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1496         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1497         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1498         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1499         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1500         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1501         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1502         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1503         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1504         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1505
1506 2010-03-27  Bruno Haible  <bruno@clisp.org>
1507
1508         Fix a compilation error on Cygwin with g++ >= 4.3.
1509         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1510         if it is undefined or if we alias it to chmod.
1511         (lstat): Don't warn about the use of this function if it is undefined
1512         or if we alias it to stat.
1513         Reported by Simon Josefsson.
1514
1515 2010-03-27  Bruno Haible  <bruno@clisp.org>
1516
1517         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1518         * modules/getlogin (configure.ac): Update.
1519
1520         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1521         * modules/getlogin_r (configure.ac): Update.
1522
1523         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1524         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1525         * modules/inet_ntop (configure.ac): Update.
1526
1527         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1528         * modules/inet_pton (configure.ac): Update.
1529
1530         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1531         * modules/mbslen (configure.ac): Update.
1532
1533         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1534         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1535         * modules/forkpty (configure.ac): Update.
1536         * modules/openpty (configure.ac): Update.
1537
1538 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1539
1540         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1541         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1542
1543 2010-03-25  Eric Blake  <eblake@redhat.com>
1544
1545         maint: use pragma consistently across replacement headers
1546         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1547         * lib/dirent.in.h (system_header): Likewise.
1548         * lib/errno.in.h (system_header): Likewise.
1549         * lib/float.in.h (system_header): Likewise.
1550         * lib/getopt.in.h (system_header): Likewise.
1551         * lib/iconv.in.h (system_header): Likewise.
1552         * lib/inttypes.in.h (system_header): Likewise.
1553         * lib/langinfo.in.h (system_header): Likewise.
1554         * lib/locale.in.h (system_header): Likewise.
1555         * lib/math.in.h (system_header): Likewise.
1556         * lib/netdb.in.h (system_header): Likewise.
1557         * lib/netinet_in.in.h (system_header): Likewise.
1558         * lib/pty.in.h (system_header): Likewise.
1559         * lib/sched.in.h (system_header): Likewise.
1560         * lib/se-selinux.in.h (system_header): Likewise.
1561         * lib/search.in.h (system_header): Likewise.
1562         * lib/spawn.in.h (system_header): Likewise.
1563         * lib/stdarg.in.h (system_header): Likewise.
1564         * lib/stdint.in.h (system_header): Likewise.
1565         * lib/string.in.h (system_header): Likewise.
1566         * lib/strings.in.h (system_header): Likewise.
1567         * lib/sys_file.in.h (system_header): Likewise.
1568         * lib/sys_ioctl.in.h (system_header): Likewise.
1569         * lib/sys_socket.in.h (system_header): Likewise.
1570         * lib/sys_times.in.h (system_header): Likewise.
1571         * lib/sys_utsname.in.h (system_header): Likewise.
1572         * lib/sys_wait.in.h (system_header): Likewise.
1573         * lib/sysexits.in.h (system_header): Likewise.
1574         * lib/unistd.in.h (system_header): Likewise.
1575         * lib/wctype.in.h (system_header): Likewise.
1576
1577         arpa/inet: fix mingw compilation warning
1578         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1579         Reported by Matthew Bolte.
1580
1581 2010-03-25  Bruno Haible  <bruno@clisp.org>
1582
1583         Avoid collision between gnulib wrapper and libintl wrapper.
1584         * lib/printf.c (printf): Don't define if a printf wrapper is already
1585         defined in intl/printf.c.
1586         Reported by Michel Boaventura <michel@michelboaventura.com>.
1587
1588 2010-03-25  Bruno Haible  <bruno@clisp.org>
1589
1590         Use ANSI C.
1591         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1592
1593 2010-03-25  Bruno Haible  <bruno@clisp.org>
1594
1595         Minor formatting changes.
1596         * lib/acosl.c: Insert space before function argument list.
1597         * lib/argz.c: Likewise.
1598         * lib/asinl.c: Likewise.
1599         * lib/expl.c: Likewise.
1600         * lib/gen-uni-tables.c: Likewise.
1601         * lib/gettext.h: Likewise.
1602         * lib/glthread/lock.h: Likewise.
1603         * lib/tanl.c: Likewise.
1604         * lib/uniname/uniname.c: Likewise.
1605         * tests/test-idpriv-drop.c: Likewise.
1606         * tests/test-idpriv-droptemp.c: Likewise.
1607         * tests/test-lock.c: Likewise.
1608         * tests/test-tls.c: Likewise.
1609         * lib/argp-help.c: Insert space before function-like macro argument
1610         list.
1611         * lib/memcmp.c: Likewise.
1612         * tests/test-base64.c: Likewise.
1613         * lib/localename.c: Insert space before sizeof's argument list.
1614         * lib/safe-alloc.h: Likewise.
1615         * lib/file-set.h: Insert space before macro argument list.
1616         * tests/test-argp.c: Likewise.
1617         * lib/argp-namefrob.h: Insert space before function parameter list.
1618         * lib/getaddrinfo.c: Likewise.
1619         * lib/netdb.in.h: Likewise.
1620         * lib/parse-duration.h: Likewise.
1621         * lib/parse-duration.c: Likewise.
1622         * lib/poll.c: Likewise.
1623         * lib/select.c: Likewise.
1624         * lib/trim.h: Likewise.
1625         * tests/test-usleep.c: Likewise.
1626         * lib/ldexpl.c: Insert space before function parameter list and before
1627         function argument list.
1628         * lib/logl.c: Likewise.
1629         * lib/sqrtl.c: Likewise.
1630         * lib/trim.c: Likewise.
1631         * lib/cosl.c: Use GNU style indentation. Insert space before function
1632         argument list.
1633         * lib/sinl.c: Likewise.
1634         * lib/tsearch.c: Insert space after 'for'.
1635         Reported by Jim Meyering.
1636
1637 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1638
1639         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1640         config header before grepping, as it's not present before
1641         autoreconf/configure are run.  Reported by Simon Josefsson.
1642
1643 2010-03-23  Bruno Haible  <bruno@clisp.org>
1644
1645         pt_chown: Make it work with automake < 1.11.
1646         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1647         Reported by Simon Josefsson.
1648
1649 2010-03-23  Bruno Haible  <bruno@clisp.org>
1650
1651         pt_chown: Don't depend on GPLed modules.
1652         * lib/pt_chown.c: Don't include idpriv.h.
1653         (main): Don't drop privileges.
1654         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1655         Reported by Simon Josefsson.
1656
1657 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1658
1659         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1660         suggestions from karl@freefriends.org (Karl Berry).
1661
1662 2010-03-22  Eric Blake  <eblake@redhat.com>
1663
1664         gethostname: further tweaks
1665         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1666         are overriding gethostname.
1667         Suggested by Bruno Haible.
1668
1669 2010-03-21  Bruno Haible  <bruno@clisp.org>
1670
1671         Fix comments.
1672         * lib/forkpty.c (rpl_forkpty): Fix comment.
1673         * lib/openpty.c (rpl_openpty): Likewise.
1674         Reported by Eric Blake.
1675
1676 2010-03-22  Eric Blake  <eblake@redhat.com>
1677
1678         gethostname: fix build on mingw
1679         * lib/unistd.in.h (includes): Work around fact that mingw
1680         <winsock2.h> re-includes <unistd.h>, by avoiding any
1681         redeclarations if we are being included by <winsock2.h>.
1682         Reported by Matthias Bolte.
1683
1684 2010-03-21  Bruno Haible  <bruno@clisp.org>
1685
1686         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1687         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1688         modifications.
1689         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1690         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1691         provide the replacement.
1692         * modules/forkpty (Depends-on): Add openpty, login_tty.
1693         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1694         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1695         * doc/glibc-functions/forkpty.texi: More supported platforms.
1696         * config/srclist.txt: Add forkpty.c (commented).
1697
1698 2010-03-21  Bruno Haible  <bruno@clisp.org>
1699
1700         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1701         (Makefile.am): Verify that PTY_LIB is defined.
1702
1703         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1704
1705 2010-03-21  Bruno Haible  <bruno@clisp.org>
1706
1707         Tests for module 'login_tty'.
1708         * modules/login_tty-tests: New file.
1709         * tests/test-login_tty.c: New file.
1710
1711         New module 'login_tty'.
1712         * lib/login_tty.c: New file.
1713         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1714         * modules/login_tty: New file.
1715         * doc/glibc-functions/login_tty.texi: Mention the new module.
1716
1717 2010-03-21  Bruno Haible  <bruno@clisp.org>
1718
1719         login_tty: Documentation.
1720         * doc/glibc-functions/login_tty.texi: New file.
1721         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1722
1723 2010-03-21  Bruno Haible  <bruno@clisp.org>
1724
1725         pty: Consistent macro naming.
1726         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1727         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1728         * modules/pty (configure.ac): Update.
1729
1730 2010-03-21  Bruno Haible  <bruno@clisp.org>
1731
1732         Tests for openpty: Make stricter.
1733         * tests/test-openpty.c (main): Add test of canonical processing and
1734         erase.
1735         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1736
1737         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1738         * lib/openpty.c (openpty): New replacement function.
1739         * lib/pty.in.h: Include <termios.h>.
1740         (openpty): Update declaration. Add comments.
1741         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1742         is not declared, arrange to provide the replacement. Check for _getpty
1743         and posix_openpt.
1744         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1745         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1746         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1747         * modules/pty-tests (test_pty_c___LDADD): New variable.
1748         * doc/glibc-functions/openpty.texi: More supported platforms.
1749
1750 2010-03-21  Bruno Haible  <bruno@clisp.org>
1751
1752         setenv: Tweaks.
1753         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1754         the test program.
1755         * doc/posix-functions/setenv.texi: Update platforms list.
1756
1757 2010-03-21  Bruno Haible  <bruno@clisp.org>
1758
1759         New module 'unlockpt'.
1760         * lib/unlockpt.c: New file, from glibc with modifications.
1761         * m4/unlockpt.m4: New file.
1762         * modules/unlockpt: New file.
1763         * lib/stdlib.in.h (unlockpt): New declaration.
1764         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1765         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1766         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1767         HAVE_UNLOCKPT.
1768         * doc/posix-functions/unlockpt.texi: Mention the new module.
1769         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1770         * config/srclist.txt: Add unlockpt.c (commented).
1771
1772 2010-03-21  Jim Meyering  <meyering@redhat.com>
1773
1774         maint.mk: prohibit inclusion of "intprops.h" without use
1775         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1776
1777 2010-03-21  Bruno Haible  <bruno@clisp.org>
1778
1779         New module 'grantpt'.
1780         * lib/grantpt.c: New file, from glibc with modifications.
1781         * m4/grantpt.m4: New file.
1782         * modules/grantpt: New file.
1783         * lib/stdlib.in.h (grantpt): New declaration.
1784         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1785         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1786         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1787         HAVE_GRANTPT.
1788         * doc/posix-functions/grantpt.texi: Mention the new module.
1789         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1790         * config/srclist.txt: Add grantpt.c (commented).
1791
1792 2010-03-21  Bruno Haible  <bruno@clisp.org>
1793
1794         New module 'pt_chown'.
1795         * lib/pt_chown.c: New file, from glibc with modifications.
1796         * lib/pty-private.h: New file, from glibc with modifications.
1797         * modules/pt_chown: New file.
1798         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1799
1800 2010-03-21  Bruno Haible  <bruno@clisp.org>
1801
1802         Tests for module 'ptsname'.
1803         * modules/ptsname-tests: New file.
1804         * tests/test-ptsname.c: New file.
1805
1806         New module 'ptsname'.
1807         * lib/ptsname.c: New file, from glibc with modifications.
1808         * m4/ptsname.m4: New file.
1809         * modules/ptsname: New file.
1810         * lib/stdlib.in.h (ptsname): New declaration.
1811         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1812         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1813         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1814         HAVE_PTSNAME.
1815         * doc/posix-functions/ptsname.texi: Mention the new module.
1816         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1817         * config/srclist.txt: Add ptsname.c (commented).
1818
1819 2010-03-21  Bruno Haible  <bruno@clisp.org>
1820
1821         Tests for module 'ttyname_r'.
1822         * modules/ttyname_r-tests: New file.
1823         * tests/test-ttyname_r.c: New file.
1824
1825         New module 'ttyname_r'.
1826         * lib/ttyname_r.c: New file.
1827         * m4/ttyname_r.m4: New file.
1828         * modules/ttyname_r: New file.
1829         * lib/unistd.in.h (ttyname_r): New declaration.
1830         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1831         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1832         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1833         HAVE_TTYNAME_R.
1834         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1835         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1836
1837 2010-03-20  Bruno Haible  <bruno@clisp.org>
1838
1839         signal: Undefine macro definitions in C++ mode.
1840         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1841         sigfillset): Undefine macro definitions from the system header in C++
1842         mode.
1843         Reported by John W. Eaton <jwe@gnu.org>.
1844
1845 2010-03-20  Bruno Haible  <bruno@clisp.org>
1846
1847         Ensure no #include statements inside extern "C" { ... }.
1848         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1849         contain #include statements.
1850         * lib/time.in.h: Likewise.
1851
1852 2010-03-20  Bruno Haible  <bruno@clisp.org>
1853
1854         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1855         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1856         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1857         Reported by John W. Eaton <jwe@gnu.org>.
1858
1859 2010-03-20  Bruno Haible  <bruno@clisp.org>
1860
1861         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1862         Reported by Jim Meyering.
1863
1864 2010-03-20  Bruno Haible  <bruno@clisp.org>
1865
1866         pipe: Set errno upon failure.
1867         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1868         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1869         errno value in error message.
1870
1871 2010-03-20  Bruno Haible  <bruno@clisp.org>
1872             Jim Meyering  <meyering@redhat.com>
1873
1874         lchown: Avoid "unused variable" warning.
1875         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1876
1877 2010-03-20  Bruno Haible  <bruno@clisp.org>
1878
1879         Work around unlink() bug on MacOS X 10.5.6.
1880         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1881         attempting to unlink a parent directory.
1882         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1883         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1884         activate for the replacement function.
1885         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1886
1887 2010-03-20  Bruno Haible  <bruno@clisp.org>
1888
1889         Fix link errors on Solaris 8.
1890         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1891         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1892
1893 2010-03-19  Jim Meyering  <meyering@redhat.com>
1894
1895         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1896         The _LIBC implementation of build_range_exp correctly honors the
1897         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1898         However, the non-_LIBC implementation would ignore that syntax-bit
1899         flag and return REG_ERANGE unconditionally.
1900         This change makes it honor that flag.
1901         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1902         Make two pointer parameters "const".
1903         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1904         (parse_bracket_exp): Update caller.
1905
1906         regex.m4: correct the reversed range endpoint ([b-a]) test
1907         * m4/regex.m4: When requiring that [b-a] evoke failure,
1908         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1909         test pass once again for x86-based systems.
1910
1911 2010-03-19  Bruno Haible  <bruno@clisp.org>
1912
1913         scandir: Fix link error on Solaris 8.
1914         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1915         macros.
1916
1917 2010-03-19  Bruno Haible  <bruno@clisp.org>
1918
1919         getusershell: Fix documentation.
1920         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1921         module.
1922         * doc/glibc-functions/setusershell.texi: Likewise.
1923
1924         getusershell: Provide declaration, missing on Solaris 9.
1925         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1926         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1927         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1928         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1930         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1931         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1932         HAVE_GETUSERSHELL.
1933         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1934
1935 2010-03-19  Bruno Haible  <bruno@clisp.org>
1936
1937         wctype: Provide iswblank function.
1938         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1939         exists and is fine.
1940         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1941         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1942         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1943         * doc/posix-functions/iswblank.texi: Update.
1944
1945 2010-03-19  Bruno Haible  <bruno@clisp.org>
1946
1947         Tests of module 'pty' in C++ mode.
1948         * modules/pty-tests: New file.
1949         * tests/test-pty-c++.cc: New file.
1950         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1951
1952 2010-03-19  Eric Blake  <eblake@redhat.com>
1953
1954         logb: fix documentation
1955         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1956         1.5 declaration bug.
1957
1958         forkpty, openpty: prefer glibc's const-safe prototype
1959         * lib/forkpty.c (rpl_forkpty): New file.
1960         * lib/openpty.c (rpl_openpty): Likewise.
1961         * modules/forkpty (Files): Distribute it.
1962         * modules/openpty (Files): Likewise.
1963         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1964         check...
1965         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1966         replacement for for non-const BSD signature.
1967         * modules/pty (Makefile.am): Substitute witnesses.
1968         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1969         * tests/test-forkpty.c: Update signature check.
1970         * tests/test-openpty.c: Likewise.
1971         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1972         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1973
1974         forkpty, openpty: split functions into new modules
1975         * modules/pty (Makefile.am): Substitute new witnesses.
1976         (Libraries): Move library detection...
1977         * modules/forkpty: ...into new module.
1978         * modules/openpty: Another new module.
1979         * modules/pty-tests: Rename and split...
1980         * modules/forkpty-tests: ...to this...
1981         * modules/openpty-tests: ...and this.
1982         * tests/test-pty.c: Rename and split...
1983         * tests/test-forkpty.c: ...to this...
1984         * tests/test-openpty.c: ...and this.
1985         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1986         (gl_PTY): Split library searching...
1987         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1988         (gl_FORKPTY, gl_OPENPTY): New macros.
1989         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1990         * NEWS: Mention the split.
1991         * MODULES.html.sh (Misc): Document the modules.
1992         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1993         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1994
1995         pty: improve replacement header
1996         * lib/pty.in.h: New file.
1997         * modules/pty (Files): Ship it.
1998         (Makefile.am): Always build replacement.
1999         * m4/pty.m4: Rename...
2000         * m4/pty_h.m4: ...to this.
2001         (gl_PTY): Modernize setting of witness macros; update check of
2002         forkpty to take proper advantage of cache.
2003         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
2004
2005         getopt: avoid compiler warning
2006         * lib/getopt.c (attribute_hidden): Remove unused macro.
2007
2008 2010-03-18  Bruno Haible  <bruno@clisp.org>
2009
2010         Fix link errors on Solaris 8.
2011         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
2012         * modules/search-tests (test_search_c___LDADD): Likewise.
2013         * modules/signal-tests (test_signal_c___LDADD): Likewise.
2014         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
2015         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
2016         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
2017         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
2018         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
2019         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
2020
2021 2010-03-18  Bruno Haible  <bruno@clisp.org>
2022
2023         Fix bug introduced on 2010-03-14.
2024         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
2025         (gl_SPAWN_H): Require it.
2026         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
2027         Reported by Simon Josefsson.
2028
2029 2010-03-18  Bruno Haible  <bruno@clisp.org>
2030
2031         Fix typo introduced on 2009-12-31.
2032         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
2033         posix_spawn_file_actions_adddup2.
2034
2035 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
2036         and Eric Blake  <eblake@redhat.com>
2037
2038         test-vc-list-files-git: make more robust
2039         * tests/test-vc-list-files-git.sh: Unset problematic environment
2040         variables.  Chain commands together.
2041
2042 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
2043
2044         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
2045         `AC_CHECK_DECL' invocation.
2046
2047 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
2048
2049         * lib/inttostr.c (inttostr): Make sure the invocation of verify
2050         appears before executable statements. Suggested by Petr Sumbera
2051         <Petr.Sumbera@Sun.COM>.
2052
2053 2010-03-14  Bruno Haible  <bruno@clisp.org>
2054
2055         * tests/test-flock.c (test_exclusive): Comment out a test that causes
2056         portability problems. Instead use a simpler test.
2057         (main): Check that invalid arguments are rejected only on Linux.
2058
2059 2010-03-14  Bruno Haible  <bruno@clisp.org>
2060
2061         Fix bug introduced on 2009-12-31.
2062         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2063         gl_PREREQ_SYS_H_WINSOCK2 always.
2064         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
2065         SYS_SOCKET_H variable.
2066         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
2067         Update comments.
2068         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
2069         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2071         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
2072         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2073
2074 2010-03-14  Bruno Haible  <bruno@clisp.org>
2075
2076         Fix values returned by sinl, cosl.
2077         * lib/trigl.h: Add specification comments.
2078         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
2079         that combines the values from the precomputed table with the values of
2080         the Chebyshev polynomials.
2081
2082 2010-03-14  Bruno Haible  <bruno@clisp.org>
2083
2084         Fix compilation error when modules 'posix_spawn[p]' are not used.
2085         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
2086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
2087
2088 2010-03-14  Bruno Haible  <bruno@clisp.org>
2089
2090         Fix compilation error on mingw when module 'time_r' is not used.
2091         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
2092         is 1.
2093         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
2094         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2095         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
2096         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
2097
2098 2010-03-14  Bruno Haible  <bruno@clisp.org>
2099
2100         Fix compilation error with Sun C.
2101         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
2102         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
2103         instead of GCC specific ULONG_LONG_MAX.
2104         * lib/xstrtoll.c: Likewise.
2105         * lib/xstrtoull.c: Likewise.
2106
2107 2010-03-13  Bruno Haible  <bruno@clisp.org>
2108
2109         Allow the user to disable C++ code and tests.
2110         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
2111         (gl_PROG_ANSI_CXX): Require it.
2112
2113 2010-03-13  Bruno Haible  <bruno@clisp.org>
2114
2115         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
2116         cases.
2117
2118 2010-03-13  Bruno Haible  <bruno@clisp.org>
2119
2120         Test that gnulib does not break the standard C++ headers.
2121         * tests/test-locale-c++2.cc: New file.
2122         * modules/locale-tests (Files): Add it.
2123         (Makefile.am): Compile it for test-locale-c++.
2124         * tests/test-math-c++2.cc: New file.
2125         * modules/math-tests (Files): Add it.
2126         (Makefile.am): Compile it for test-math-c++.
2127         * tests/test-signal-c++2.cc: New file.
2128         * modules/signal-tests (Files): Add it.
2129         (Makefile.am): Compile it for test-signal-c++.
2130         * tests/test-stdio-c++2.cc: New file.
2131         * modules/stdio-tests (Files): Add it.
2132         (Makefile.am): Compile it for test-stdio-c++.
2133         * tests/test-stdlib-c++2.cc: New file.
2134         * modules/stdlib-tests (Files): Add it.
2135         (Makefile.am): Compile it for test-stdlib-c++.
2136         * tests/test-string-c++2.cc: New file.
2137         * modules/string-tests (Files): Add it.
2138         (Makefile.am): Compile it for test-string-c++.
2139         * tests/test-time-c++2.cc: New file.
2140         * modules/time-tests (Files): Add it.
2141         (Makefile.am): Compile it for test-time-c++.
2142         Reported by John W. Eaton <jwe@gnu.org>.
2143
2144 2010-03-13  Bruno Haible  <bruno@clisp.org>
2145
2146         * gnulib-tool (func_usage): Clarify which options are available for
2147         --create-testdir and --create-megatestdir.
2148
2149 2010-03-13  Bruno Haible  <bruno@clisp.org>
2150
2151         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
2152         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
2153         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
2154         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2155         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
2156         when appropriate.
2157         Reported by Jim Meyering.
2158
2159 2010-03-12  Simon Josefsson  <simon@josefsson.org>
2160
2161         * gnulib-tool (func_import): Explain origin of code.
2162
2163 2010-03-12  Bruno Haible  <bruno@clisp.org>
2164
2165         Fix problem with automake's definition of CXXLINK.
2166         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
2167         Reported by Simon Josefsson and Ludovic Courtès.
2168
2169 2010-03-12  Bruno Haible  <bruno@clisp.org>
2170
2171         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
2172         stable releases.
2173
2174 2010-03-11  Bruno Haible  <bruno@clisp.org>
2175
2176         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
2177         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
2178         whether the system provides one variant or multiple variants of the
2179         function.
2180         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
2181         C++ compilers.
2182         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
2183         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
2184         Reported by Jim Meyering.
2185
2186 2010-03-09  Simon Josefsson  <simon@josefsson.org>
2187
2188         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
2189
2190 2010-03-08  Bruno Haible  <bruno@clisp.org>
2191
2192         gnulib-tool: Add support for --libtool in --create-testdir.
2193         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
2194         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
2195
2196 2010-03-08  Eric Blake  <eblake@redhat.com>
2197
2198         gnulib-tool.texi: mention possibility of git submodule
2199         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
2200         submodules.
2201         * doc/.gitignore: Ignore another generated file.
2202
2203 2010-03-08  Karl Berry  <karl@gnu.org>
2204
2205         * doc/gnulib-tool.texi (VCS Issues): Mention third option
2206         of committing gnulib files while skipping others.
2207
2208 2010-03-07  Bruno Haible  <bruno@clisp.org>
2209
2210         Tests of module 'wctype' in C++ mode.
2211         * tests/test-wctype-c++.cc: New file.
2212         * modules/wctype-tests (Files): Add it and tests/signature.h.
2213         (Depends-on): Add ansi-c++-opt.
2214         (Makefile.am): Arrange to compile and run test-wctype-c++.
2215
2216         Tests of module 'wchar' in C++ mode.
2217         * tests/test-wchar-c++.cc: New file.
2218         * modules/wchar-tests (Files): Add it and tests/signature.h.
2219         (Depends-on): Add ansi-c++-opt.
2220         (Makefile.am): Arrange to compile and run test-wchar-c++.
2221         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
2222         gl_MODULE_INDICATOR.
2223
2224         Tests of module 'unistd' in C++ mode.
2225         * tests/test-unistd-c++.cc: New file.
2226         * modules/unistd-tests (Files): Add it and tests/signature.h.
2227         (Depends-on): Add ansi-c++-opt.
2228         (Makefile.am): Arrange to compile and run test-unistd-c++.
2229         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
2230         gl_MODULE_INDICATOR.
2231
2232         Tests of module 'time' in C++ mode.
2233         * tests/test-time-c++.cc: New file.
2234         * modules/time-tests (Files): Add it and tests/signature.h.
2235         (Depends-on): Add ansi-c++-opt.
2236         (Makefile.am): Arrange to compile and run test-time-c++.
2237         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2238
2239         Tests of module 'sys_time' in C++ mode.
2240         * tests/test-sys_time-c++.cc: New file.
2241         * modules/sys_time-tests (Files): Add it and tests/signature.h.
2242         (Depends-on): Add ansi-c++-opt.
2243         (Makefile.am): Arrange to compile and run test-sys_time-c++.
2244         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
2245         gl_MODULE_INDICATOR.
2246
2247         Tests of module 'sys_stat' in C++ mode.
2248         * tests/test-sys_stat-c++.cc: New file.
2249         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
2250         (Depends-on): Add ansi-c++-opt.
2251         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
2252         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
2253         gl_MODULE_INDICATOR.
2254
2255         Tests of module 'sys_socket' in C++ mode.
2256         * tests/test-sys_socket-c++.cc: New file.
2257         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
2258         (Depends-on): Add ansi-c++-opt.
2259         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
2260         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
2261         gl_MODULE_INDICATOR.
2262
2263         Tests of module 'sys_select' in C++ mode.
2264         * tests/test-sys_select-c++.cc: New file.
2265         * modules/sys_select-tests (Files): Add it and tests/signature.h.
2266         (Depends-on): Add ansi-c++-opt.
2267         (Makefile.am): Arrange to compile and run test-sys_select-c++.
2268         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
2269         gl_MODULE_INDICATOR.
2270
2271         Tests of module 'sys_ioctl' in C++ mode.
2272         * tests/test-sys_ioctl-c++.cc: New file.
2273         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
2274         (Depends-on): Add ansi-c++-opt.
2275         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
2276         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
2277         gl_MODULE_INDICATOR.
2278
2279         Tests of module 'string' in C++ mode.
2280         * tests/test-string-c++.cc: New file.
2281         * modules/string-tests (Files): Add it and tests/signature.h.
2282         (Depends-on): Add ansi-c++-opt.
2283         (Makefile.am): Arrange to compile and run test-string-c++.
2284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
2285         gl_MODULE_INDICATOR.
2286
2287         Tests of module 'stdlib' in C++ mode.
2288         * tests/test-stdlib-c++.cc: New file.
2289         * modules/stdlib-tests (Files): Add it and tests/signature.h.
2290         (Depends-on): Add ansi-c++-opt.
2291         (Makefile.am): Arrange to compile and run test-stdlib-c++.
2292         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
2293         gl_MODULE_INDICATOR.
2294
2295         Tests of module 'stdio' in C++ mode.
2296         * tests/test-stdio-c++.cc: New file.
2297         * modules/stdio-tests (Files): Add it and tests/signature.h.
2298         (Depends-on): Add ansi-c++-opt.
2299         (Makefile.am): Arrange to compile and run test-stdio-c++.
2300         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
2301         gl_MODULE_INDICATOR.
2302
2303         Tests of module 'spawn' in C++ mode.
2304         * tests/test-spawn-c++.cc: New file.
2305         * modules/spawn-tests (Files): Add it and tests/signature.h.
2306         (Depends-on): Add ansi-c++-opt.
2307         (Makefile.am): Arrange to compile and run test-spawn-c++.
2308         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
2309         gl_MODULE_INDICATOR.
2310
2311         Tests of module 'signal' in C++ mode.
2312         * tests/test-signal-c++.cc: New file.
2313         * modules/signal-tests (Files): Add it and tests/signature.h.
2314         (Depends-on): Add ansi-c++-opt.
2315         (Makefile.am): Arrange to compile and run test-signal-c++.
2316         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2317         gl_MODULE_INDICATOR.
2318
2319         Tests of module 'search' in C++ mode.
2320         * tests/test-search-c++.cc: New file.
2321         * modules/search-tests (Files): Add it and tests/signature.h.
2322         (Depends-on): Add ansi-c++-opt.
2323         (Makefile.am): Arrange to compile and run test-search-c++.
2324         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2325         gl_MODULE_INDICATOR.
2326
2327         Tests of module 'math' in C++ mode.
2328         * tests/test-math-c++.cc: New file.
2329         * modules/math-tests (Files): Add it and tests/signature.h.
2330         (Depends-on): Add ansi-c++-opt.
2331         (Makefile.am): Arrange to compile and run test-math-c++.
2332         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2333
2334         Tests of module 'locale' in C++ mode.
2335         * tests/test-locale-c++.cc: New file.
2336         * modules/locale-tests (Files): Add it and tests/signature.h.
2337         (Depends-on): Add ansi-c++-opt.
2338         (Makefile.am): Arrange to compile and run test-locale-c++.
2339         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2340         gl_MODULE_INDICATOR.
2341
2342         Tests of module 'langinfo' in C++ mode.
2343         * tests/test-langinfo-c++.cc: New file.
2344         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2345         (Depends-on): Add ansi-c++-opt.
2346         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2347         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2348         gl_MODULE_INDICATOR.
2349
2350         Tests of module 'iconv-h' in C++ mode.
2351         * tests/test-iconv-h-c++.cc: New file.
2352         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2353         (Depends-on): Add ansi-c++-opt.
2354         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2355
2356         Tests of module 'glob' in C++ mode.
2357         * tests/test-glob-c++.cc: New file.
2358         * modules/glob-tests (Files): Add it.
2359         (Depends-on): Add ansi-c++-opt.
2360         (Makefile.am): Arrange to compile and run test-glob-c++.
2361
2362         Tests of module 'fcntl-h' in C++ mode.
2363         * tests/test-fcntl-h-c++.cc: New file.
2364         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2365         (Depends-on): Add ansi-c++-opt.
2366         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2367         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2368         gl_MODULE_INDICATOR.
2369
2370         Tests of module 'dirent' in C++ mode.
2371         * tests/test-dirent-c++.cc: New file.
2372         * modules/dirent-tests (Files): Add it and tests/signature.h.
2373         (Depends-on): Add ansi-c++-opt.
2374         (Makefile.am): Arrange to compile and run test-dirent-c++.
2375         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2376         gl_MODULE_INDICATOR.
2377
2378         New module 'ansi-c++-opt'.
2379         * modules/ansi-c++-opt: New file.
2380         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2381
2382         Document C++ namespace mode.
2383         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2384
2385         wctype: Avoid #define replacements in C++ mode.
2386         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2387         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2388         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2389         In C++, define a namespaced alias symbol.
2390         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2391         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2392         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2393         rule.
2394
2395         wchar: Avoid #define replacements in C++ mode.
2396         * lib/wchar.in.h: Include c++defs.h.
2397         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2398         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2399         symbol.
2400         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2401         * modules/wchar (Depends-on): Add c++defs.
2402         (Makefile.am): Update wchar.h rule.
2403
2404         unistd: Avoid #define replacements in C++ mode.
2405         * lib/unistd.in.h: Include c++defs.h.
2406         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2407         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2408         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2409         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2410         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2411         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2412         symbol.
2413         (environ): Update.
2414         * modules/unistd (Depends-on): Add c++defs.
2415         (Makefile.am): Update unistd.h rule.
2416
2417         time: Avoid #define replacements in C++ mode.
2418         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2419         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2420         define a namespaced alias symbol.
2421         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2422         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2423         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2424         * modules/time (Depends-on): Add c++defs, warn-on-use.
2425         (Makefile.am): Update time.h rule.
2426         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2427         * modules/nanosleep (configure.ac): Likewise.
2428         * modules/strptime (configure.ac): Likewise.
2429         * modules/timegm (configure.ac): Likewise.
2430
2431         sys_time: Avoid #define replacements in C++ mode.
2432         * lib/sys_time.in.h: Include c++defs.h.
2433         (gettimeofday): In C++, define a namespaced alias symbol.
2434         * modules/sys_time (Depends-on): Add c++defs.
2435         (Makefile.am): Update sys/time.h rule.
2436
2437         sys_stat: Avoid #define replacements in C++ mode.
2438         * lib/sys_stat.in.h: Include c++defs.h.
2439         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2440         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2441         namespaced alias symbol.
2442         In C++, define a namespaced alias symbol.
2443         * modules/sys_stat (Depends-on): Add c++defs.
2444         (Makefile.am): Update sys/stat.h rule.
2445
2446         sys_socket: Avoid #define replacements in C++ mode.
2447         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2448         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2449         definitions also when the system has a <sys/socket.h>.
2450         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2451         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2452         In C++, define a namespaced alias symbol.
2453         * modules/sys_socket (Depends-on): Add c++defs.
2454         (Makefile.am): Update sys/socket.h rule.
2455
2456         sys_select: Avoid #define replacements in C++ mode.
2457         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2458         definitions also when the system has a <sys/select.h>.
2459         (select): In C++, define a namespaced alias symbol.
2460         * modules/sys_select (Depends-on): Add c++defs.
2461         (Makefile.am): Update sys/select.h rule.
2462
2463         sys_ioctl: Avoid #define replacements in C++ mode.
2464         * lib/sys_ioctl.in.h: Include c++defs.h.
2465         (ioctl): In C++, define a namespaced alias symbol.
2466         * modules/sys_ioctl (Depends-on): Add c++defs.
2467         (Makefile.am): Update sys/ioctl.h rule.
2468
2469         string: Avoid #define replacements in C++ mode.
2470         * lib/string.in.h: Include c++defs.h.
2471         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2472         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2473         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2474         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2475         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2476         * modules/string (Depends-on): Add c++defs.
2477         (Makefile.am): Update string.h rule.
2478
2479         stdlib: Avoid #define replacements in C++ mode.
2480         * lib/stdlib.in.h: Include c++defs.h.
2481         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2482         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2483         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2484         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2485         symbol.
2486         * modules/stdlib (Depends-on): Add c++defs.
2487         (Makefile.am): Update stdlib.h rule.
2488
2489         stdio: Avoid #define replacements in C++ mode.
2490         * lib/stdio.in.h: Include c++defs.h.
2491         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2492         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2493         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2494         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2495         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2496         namespaced alias symbol.
2497         * modules/stdio (Depends-on): Add c++defs.
2498         (Makefile.am): Update stdio.h rule.
2499
2500         spawn: Avoid #define replacements in C++ mode.
2501         * lib/spawn.in.h: Include c++defs.h.
2502         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2503         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2504         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2505         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2506         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2507         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2508         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2509         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2510         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2511         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2512         In C++, define a namespaced alias symbol.
2513         * modules/spawn (Depends-on): Add c++defs.
2514         (Makefile.am): Update spawn.h rule.
2515
2516         signal: Avoid #define replacements in C++ mode.
2517         * lib/signal.in.h: Include c++defs.h.
2518         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2519         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2520         namespaced alias symbol.
2521         * modules/signal (Depends-on): Add c++defs.
2522         (Makefile.am): Update signal.h rule.
2523
2524         search: Avoid #define replacements in C++ mode.
2525         * lib/search.in.h: Include c++defs.h.
2526         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2527         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2528         symbol.
2529         * modules/search (Depends-on): Add c++defs.
2530         (Makefile.am): Update search.h rule.
2531
2532         math: Avoid #define replacements in C++ mode.
2533         * lib/math.in.h: Include c++defs.h.
2534         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2535         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2536         trunc, truncl): In C++, define a namespaced alias symbol.
2537         * modules/math (Depends-on): Add c++defs.
2538         (Makefile.am): Update math.h rule.
2539
2540         locale: Avoid #define replacements in C++ mode.
2541         * lib/locale.in.h: Include c++defs.h.
2542         (duplocale): In C++, define a namespaced alias symbol.
2543         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2544         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2545         * modules/locale (Depends-on): Add c++defs.
2546         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2547
2548         langinfo: Avoid #define replacements in C++ mode.
2549         * lib/langinfo.in.h: Include c++defs.h.
2550         (nl_langinfo): In C++, define a namespaced alias symbol.
2551         * modules/langinfo (Depends-on): Add c++defs.
2552         (Makefile.am): Update langinfo.h rule.
2553
2554         iconv-h: Avoid #define replacements in C++ mode.
2555         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2556         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2557         symbol.
2558         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2559         whenever iconv is present.
2560         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2561         (Makefile.am): Update iconv.h rule.
2562
2563         glob: Avoid #define replacements in C++ mode.
2564         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2565         (_gl_glob_errfunc_fn): New type.
2566         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2567         symbol.
2568         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2569         (Makefile.am): Update glob.h rule.
2570
2571         fcntl-h: Avoid #define replacements in C++ mode.
2572         * lib/fcntl.in.h: Include c++defs.h.
2573         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2574         * modules/fcntl-h (Depends-on): Add c++defs.
2575         (Makefile.am): Update fcntl.h rule.
2576
2577         dirent: Avoid #define replacements in C++ mode.
2578         * lib/dirent.in.h: Include c++defs.h.
2579         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2580         namespaced alias symbol.
2581         (dirfd): Update declaration.
2582         * modules/dirent (Depends-on): Add c++defs.
2583         (Makefile.am): Update dirent.h rule.
2584
2585         ctype: Make it usable in C++ code.
2586         * lib/ctype.in.h: Include c++defs.h.
2587         (isblank): Declare as extern "C".
2588         * modules/ctype (Depends-on): Add c++defs.
2589         (Makefile.am): Update ctype.h rule.
2590
2591         New module 'c++defs'.
2592         * modules/c++defs: New file.
2593         * build-aux/c++defs.h: New file.
2594         Reported by John W. Eaton <jwe@gnu.org>.
2595
2596 2010-03-07  Bruno Haible  <bruno@clisp.org>
2597
2598         logb: Provide missing declaration for Cygwin.
2599         * lib/math.in.h (logb): New declaration.
2600         * m4/logb.m4: New file.
2601         * modules/logb (Files): Add m4/logb.m4.
2602         (Depends-on): Add math.
2603         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2604         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2606         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2607         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2608
2609 2010-03-07  Bruno Haible  <bruno@clisp.org>
2610
2611         Fix test-cond link error.
2612         * tests/test-cond.c: Include <stdio.h>.
2613
2614 2010-03-07  Bruno Haible  <bruno@clisp.org>
2615
2616         Fix test-dirent-safer link error.
2617         * modules/dirent-safer-tests (Makefile.am): Define
2618         test_dirent_safer_LDADD.
2619
2620 2010-03-07  Bruno Haible  <bruno@clisp.org>
2621
2622         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2623         among default module list.
2624
2625 2010-03-07  Bruno Haible  <bruno@clisp.org>
2626
2627         Fix link error on platforms with GNU libiconv.
2628         * modules/unistr/u8-strcoll-tests (Makefile): Define
2629         test_u8_strcoll_LDADD.
2630         * modules/unistr/u16-strcoll-tests (Makefile): Define
2631         test_u16_strcoll_LDADD.
2632         * modules/unistr/u32-strcoll-tests (Makefile): Define
2633         test_u32_strcoll_LDADD.
2634
2635 2010-03-07  Bruno Haible  <bruno@clisp.org>
2636
2637         Use POSIX declarations for socket functions.
2638         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2639         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2640         rpl_sendto): Change declaration to match POSIX.
2641         * lib/connect.c (rpl_connect): Likewise.
2642         * lib/accept.c (rpl_accept): Likewise.
2643         * lib/bind.c (rpl_bind): Likewise.
2644         * lib/getpeername.c (rpl_getpeername): Likewise.
2645         * lib/getsockname.c (rpl_getsockname): Likewise.
2646         * lib/recv.c (rpl_recv): Likewise.
2647         * lib/send.c (rpl_send): Likewise.
2648         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2649         * lib/sendto.c (rpl_sendto): Likewise.
2650
2651 2010-03-06  Bruno Haible  <bruno@clisp.org>
2652
2653         Clarify access, euidaccess, faccessat.
2654         * doc/posix-functions/faccessat.texi: Mention security problem under
2655         "Other problems", not "Portability problems".
2656         * doc/posix-functions/access.texi: Likewise. Mention a related security
2657         problem.
2658         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2659         * lib/euidaccess.c: Add comments about platforms.
2660         * lib/unistd.in.h (access, euidaccess): Add warnings.
2661
2662 2010-03-07  Bruno Haible  <bruno@clisp.org>
2663
2664         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2665         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2666         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2667         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2668         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2669         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2670         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2671         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2672         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2673         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2674         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2675         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2676         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2677         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2678         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2679         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2680         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2681         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2682         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2683         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2684         Likewise.
2685         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2686         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2687         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2688         Likewise.
2689         * tests/test-spawn.c (main): Make it work when
2690         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2691
2692 2010-03-07  Bruno Haible  <bruno@clisp.org>
2693
2694         Fix incorrect Makefile.am generation in German locale.
2695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2696         Execute sed command with character range in C locale.
2697
2698 2010-03-06  Bruno Haible  <bruno@clisp.org>
2699
2700         Tests for module 'iconv-h'.
2701         * modules/iconv-h-tests: New file.
2702         * tests/test-iconv-h.c: New file.
2703
2704         New module 'iconv-h'.
2705         * modules/iconv-h: New file.
2706         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2707         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2708         (configure.ac): Remove gl_ICONV_H.
2709         (Makefile.am): Remove rule for iconv.h.
2710
2711 2010-03-06  Bruno Haible  <bruno@clisp.org>
2712
2713         More consistent naming of *.m4 files.
2714         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2715         * modules/wctype (Files): Update.
2716
2717         More consistent naming of *.m4 files.
2718         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2719         * modules/wchar (Files): Update.
2720
2721 2010-03-06  Jim Meyering  <meyering@redhat.com>
2722
2723         euidaccess: relax license to LGPLv2+
2724         * modules/euidaccess (License): Relax to LGPLv2+.
2725
2726 2010-03-06  Bruno Haible  <bruno@clisp.org>
2727
2728         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2729         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2730         (Makefile.am): Augment lib_SOURCES instead.
2731
2732 2010-03-04  Jim Meyering  <meyering@redhat.com>
2733
2734         utime: remove obsolete module
2735         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2736         unnecessary for years, and has been marked as obsolete for 10 months.
2737         * modules/utime: Remove file.
2738         * lib/utime.c: Remove file.
2739         * m4/utime.m4: Remove file.
2740         * m4/utimes-null.m4: Remove file.
2741         * doc/posix-functions/utime.texi (utime): Remove reference to
2742         the module.  Move the sole "fixed by gnulib" item into the
2743         "problems not fixed by Gnulib" list.
2744         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2745
2746 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2747
2748         * modules/exit (License): Relax license to LGPLv2+.
2749         (Status): Mark as obsolete.
2750         * NEWS: Mention deprecated 'exit' module.
2751         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2752         of now obsolete 'exit'.
2753
2754 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2755
2756         fts-lgpl: remove unused module
2757         * modules/fts-lgpl: Remove.
2758         * MODULES.html.sh (func_all_modules): Adjust.
2759         * check-module (find_included_lib_files): Adjust.
2760         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2761
2762 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2763
2764         copy-acl: enhance Solaris ACL error handling
2765         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2766         * lib/set-mode-acl.c (qset_acl): Likewise.
2767
2768 2010-03-02  Bruno Haible  <bruno@clisp.org>
2769
2770         spawn: Don't override the system defined values on FreeBSD 8.
2771         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2772         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2773         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2774         if HAVE_POSIX_SPAWN is 1.
2775         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2776
2777 2010-03-01  Bruno Haible  <bruno@clisp.org>
2778
2779         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2780         regarding Automake.
2781
2782 2010-02-25  Bruno Haible  <bruno@clisp.org>
2783
2784         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2785         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2786         setting, not afterwards.
2787         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2788
2789 2010-02-24  Eric Blake  <eblake@redhat.com>
2790
2791         bootstrap, git-version-gen: use timestamp
2792         * build-aux/git-version-gen (scriptversion): Force UTC.
2793         * build-aux/bootstrap (scriptversion): New variable.
2794
2795         bootstrap: allow older git
2796         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2797         older than 1.6.4.  Requested by the libvirt project.
2798
2799 2010-02-23  Eric Blake  <eblake@redhat.com>
2800
2801         warn-on-use: work with old autoconf
2802         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2803         AS_VAR semantics of autoconf 2.60.
2804         Reported by Bruno Haible.
2805
2806         bootstrap: improve some comments
2807         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2808         clarification comments.
2809
2810         gettimeofday: provide correct function
2811         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2812         when replacement is declared, otherwise provide gettimeofday.
2813         Reported by Michael Goffioul.
2814
2815 2010-02-23  Jim Meyering  <meyering@redhat.com>
2816
2817         lib-ignore: relax license to "unlimited", not LGPLv2+
2818         * modules/lib-ignore (License): Relax to "unlimited".
2819
2820 2010-02-23  Jim Meyering  <meyering@redhat.com>
2821
2822         lib-ignore: relax license to LGPLv2+
2823         * modules/lib-ignore (License): Relax to LGPLv2+.
2824
2825 2010-02-22  Eric Blake  <eblake@redhat.com>
2826
2827         lseek: avoid bash 3.2 broken pipe bug
2828         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2829         warning from bash 3.2.
2830         Reported by Ben Pfaff, with analysis from Bruno Haible.
2831
2832         bootstrap: support non-FSF copyright holder
2833         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2834         bootstrap.conf override of COPYRIGHT_HOLDER.
2835         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2836
2837         bootstrap: interoperate with gettext 0.14.1
2838         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2839
2840         bootstrap: allow for alternate submodule location
2841         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2842         hardcoding submodule location.
2843         (gnulib_mk): Allow direct use of Makefile.am.
2844
2845         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2846         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2847         rather than reconfiguring where the submodule points.
2848
2849         gettimeofday: restore support for platforms that lack function
2850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2851         replacement if function is missing.
2852         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2853         * modules/sys_time (Makefile.am): Substitute it.
2854         * lib/sys_time.in.h (gettimeofday): Check it.
2855         Reported by Michael Goffioul.
2856
2857 2010-02-21  Bruno Haible  <bruno@clisp.org>
2858
2859         * lib/stdio.in.h (obstack_printf): Fix typo.
2860
2861 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2862
2863         vc-list-files: use bzr ls's -R option
2864         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2865         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2866
2867 2010-02-21  Jim Meyering  <meyering@redhat.com>
2868
2869         init.sh: fix EXEEXT shims to work also for names like test-prog
2870         * tests/init.sh: Re-exec a better shell, when needed.
2871         If the current shell lacks support for posix $(...), an init.sh-using
2872         test will now try to find a shell that supports that.  If EXEEXT is
2873         nonempty, we also require support for hyphen-in-alias-name and shell
2874         substitutions like ${var#glob}.  Failure to find such a shell results
2875         in a skipped test.
2876
2877 2010-02-21  Bruno Haible  <bruno@clisp.org>
2878
2879         Really work around around "broken pipe" error message from bash 3.2.
2880         * gnulib-tool (func_reset_sigpipe): Remove function.
2881         (echo): In bash 3.2, define to a function that uses printf.
2882         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2883
2884 2010-02-20  Bruno Haible  <bruno@clisp.org>
2885
2886         Restore support for automake 1.9.6 with autoconf 2.61.
2887         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2888         Reported by James Youngman <jay@gnu.org>.
2889
2890 2010-02-20  Bruno Haible  <bruno@clisp.org>
2891
2892         Improve *printf warning condition.
2893         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2894         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2895         and the function is overridden due to SIGPIPE emulation.
2896
2897 2010-02-20  Bruno Haible  <bruno@clisp.org>
2898
2899         * lib/stdio.in.h: Tweak comments.
2900
2901 2010-02-19  Bruno Haible  <bruno@clisp.org>
2902
2903         Make it easier to find modules. New gnulib-tool option '--find'.
2904         * gnulib-tool: New option --find.
2905         (func_usage): Document it.
2906         (func_sanitize_modulelist): New function, extracted from
2907         func_all_modules.
2908         (func_all_modules): Invoke it.
2909         * doc/gnulib-tool.texi (Which modules?): New node.
2910
2911 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2912
2913         * lib/sys_select.in.h: Provide select replacement even if
2914         sys/select.h exists on a system, for Interix.
2915
2916 2010-02-18  Jim Meyering  <meyering@redhat.com>
2917
2918         init.sh: don't use $(...) just yet
2919         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2920         to accommodate e.g., Solaris' /bin/sh.
2921
2922 2010-02-17  Bruno Haible  <bruno@clisp.org>
2923
2924         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2925         Reported by Ludovic Courtès <ludo@gnu.org>.
2926
2927 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2928
2929         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2930         linking with -lintl.
2931
2932 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2933
2934         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2935         if not provided by the system's netdb.h.  Reported by
2936         ludo@gnu.org (Ludovic Courtès).
2937
2938 2010-02-15  Jim Meyering  <meyering@redhat.com>
2939
2940         init.sh: improve portability and efficiency
2941         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2942         "dummy" in a for loop.
2943         Use '!', not '^' to select the complement of a character set used
2944         in a "case" statement.
2945         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2946         Suggestions from Eric Blake.
2947
2948         init.sh: automatically accommodate programs with the .exe suffix
2949         Automatically arrange for an invocation of "prog" to execute the
2950         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2951         may use the simpler "prog", yet still work when built on a system
2952         that requires specifying the added suffix.
2953         Do this by constructing a function named "prog" that invokes
2954         "prog.exe" for each .exe file in selected directories.
2955         * tests/init.sh (find_exe_basenames_): New function.
2956         (create_exe_shim_functions_): New function.
2957         (path_prepend_): Use it.
2958
2959         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2960         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2961         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2962
2963 2010-02-14  Jim Meyering  <meyering@redhat.com>
2964
2965         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2966         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2967         (sc_prohibit_hash_pjw_without_use): New rule.
2968
2969         maint.mk: allow the default upload destination dir to be overridden
2970         * top/maint.mk (upload_dest_dir_): Define with a default that
2971         preserves the status quo.
2972         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2973         Reported by Peter Simons.
2974
2975         maint.mk: prohibit inclusion of "hash.h" without_use
2976         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2977
2978 2010-02-10  Jim Meyering  <meyering@redhat.com>
2979
2980         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2981         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2982
2983 2010-02-09  Eric Blake  <ebb9@byu.net>
2984         and Bruno Haible  <bruno@clisp.org>
2985
2986         obstack-printf-posix: ensure declaration
2987         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2988         extracted from gl_FUNC_OBSTACK_PRINTF.
2989         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2990         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2991         Likewise.
2992         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2993         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2994         0.
2995
2996 2010-02-08  Bruno Haible  <bruno@clisp.org>
2997
2998         gnulib-tool: Fix typo in 2010-02-07 commit.
2999         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
3000         Reported by Eric Blake.
3001
3002 2010-02-07  Bruno Haible  <bruno@clisp.org>
3003
3004         gnulib-tool: Fix up caching patches.
3005         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
3006         option --no-cache. Use associative arrays when supported by the shell.
3007         (sed_comments): New variable.
3008         (modcache): Renamed from do_cache.
3009         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
3010         abbreviate unnecessarily.
3011         (have_associative): New variable.
3012         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
3013         way also for ksh and zsh.
3014         (func_init_sed_convert_to_cache_statements): New function, extracted
3015         from func_cache_lookup_module. Add support for associative arrays.
3016         Don't set the c_MODULE_cached variable here. Ignore all lines before
3017         the first field header. Remove only the final newline, not all trailing
3018         newlines. Support empty fields correctly. Limit the use of 'eval' to
3019         assignments.
3020         (func_get_description, func_get_status, func_get_notice,
3021         func_get_applicability, func_get_filelist, func_get_dependencies,
3022         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
3023         func_get_automake_snippet, func_get_include_directive,
3024         func_get_link_directive, func_get_license, func_get_maintainer):
3025         Update documentation. List the unoptimized code first. Add support for
3026         associative arrays. Limit the use of 'eval' to assignments.
3027         (func_get_applicability): Undo stylistic pessimisations.
3028         (func_get_automake_snippet, func_get_include_directive): Reduce code
3029         duplication.
3030         (func_modules_transitive_closure, func_modules_add_dummy,
3031         func_modules_notice, func_modules_to_filelist, func_add_file,
3032         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
3033         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
3034         func_create_testdir, func_create_megatestdir): Update documentation.
3035
3036 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3037
3038         * gnulib-tool (func_cache_lookup_module): Store the module name
3039         belonging to the cache variable; error out if two different
3040         module names map to the same cache variable name.
3041
3042 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3043
3044         gnulib-tool: Make caching optional.
3045         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
3046         Update matching short versions of --no-changelog.
3047         (func_usage): Update.
3048         (sed_extract_cache_prog): Renamed from ...
3049         (sed_extract_prog): ... this; revert to old extraction script.
3050         (func_get_description, func_get_status)
3051         (func_get_notice, func_get_applicability, func_get_filelist)
3052         (func_get_dependencies, func_get_autoconf_early_snippet)
3053         (func_get_autoconf_snippet, func_get_automake_snippet)
3054         (func_get_include_directive, func_get_link_directive)
3055         (func_get_license, func_get_maintainer): If $do_cache is false,
3056         use old, non-caching extraction scripts.
3057         Suggestion by Bruno Haible.
3058
3059 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3060
3061         gnulib-tool: cache module metainformation.
3062         * gnulib-tool (sed_extract_prog): Match newline before each
3063         header, and rewrite header to a shell variable suffix.
3064         (func_cache_var, func_cache_lookup_module): New functions,
3065         to turn a module name into a cache variable prefix, and to
3066         look up and cache module metainformation.
3067         (func_get_description, func_get_status)
3068         (func_get_notice, func_get_applicability, func_get_filelist)
3069         (func_get_dependencies, func_get_autoconf_early_snippet)
3070         (func_get_autoconf_snippet, func_get_automake_snippet)
3071         (func_get_include_directive, func_get_link_directive)
3072         (func_get_license, func_get_maintainer): Use
3073         func_cache_lookup_module.
3074
3075 2010-02-07  Bruno Haible  <bruno@clisp.org>
3076
3077         fnctl: Fix missing dependency.
3078         * modules/fcntl (Depends-on): Add getdtablesize.
3079         Reported by John W. Eaton <jwe@gnu.org>.
3080
3081 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
3082
3083         Argp: fix recognition of short alias options.
3084
3085         * lib/argp-parse.c (convert_options): Fix improper use of
3086         `|' between character values.
3087         * tests/test-argp.c (group1_option): New alias option
3088         --read (-r).
3089         (group1_parser): Special handling for 'r'.
3090         (test15): New test case.
3091         (test_fun): Add test15.
3092         * tests/test-argp-2.sh: Update expected --help and --usage
3093         outputs.
3094
3095 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
3096
3097         * tests/test-argp.c: Fix indentation.
3098
3099 2010-02-04  Eric Blake  <ebb9@byu.net>
3100
3101         gettimeofday: expose type of second argument
3102         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
3103         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
3104         * tests/test-gettimeofday.c: Use it to silence warning.
3105         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
3106         the issue.
3107
3108 2010-02-03  Jim Meyering  <meyering@redhat.com>
3109
3110         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
3111         * lib/regcomp.c (TYPE_SIGNED): Define.
3112         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
3113
3114         regcomp.c: avoid a new -Wshadow warning
3115         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
3116
3117 2010-02-01  Jim Meyering  <meyering@redhat.com>
3118
3119         removing useless parentheses in cpp #define directives
3120         For motivation, see commit c0221df4, "define STREQ(a,b)
3121         consistently, removing useless parentheses"
3122         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
3123         * lib/mountlist.c (MNT_IGNORE): Likewise.
3124         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
3125
3126 2010-02-01  Eric Blake  <ebb9@byu.net>
3127
3128         sys_time: use link-warning
3129         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
3130         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
3131         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
3132         * modules/sys_time (Depends-on): Add warn-on-use.
3133         (Makefile.am): Always build replacement.
3134         (configure.ac): Update substitutions.
3135         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
3136         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
3137         bother with SYS_TIME_H.
3138         * modules/gettimeofday (configure.ac): Declare indicator.
3139         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
3140         in use.
3141
3142         closein-tests: silence compiler warning
3143         * tests/test-closein.c (main): Ignore fread result.
3144         * modules/closein-tests (Depends-on): Add ignore-value.
3145
3146         tests: silence warning about system return
3147         * tests/test-areadlink-with-size.c (main): Ignore system result.
3148         * tests/test-areadlink.c (main): Likewise.
3149         * tests/test-areadlinkat-with-size.c (main): Likewise.
3150         * tests/test-areadlinkat.c (main): Likewise.
3151         * tests/test-canonicalize-lgpl.c (main): Likewise.
3152         * tests/test-canonicalize.c (main): Likewise.
3153         * tests/test-chown.c (main): Likewise.
3154         * tests/test-fchownat.c (main): Likewise.
3155         * tests/test-fdutimensat.c (main): Likewise.
3156         * tests/test-fstatat.c (main): Likewise.
3157         * tests/test-futimens.c (main): Likewise.
3158         * tests/test-lchown.c (main): Likewise.
3159         * tests/test-link.c (main): Likewise.
3160         * tests/test-linkat.c (main): Likewise.
3161         * tests/test-lstat.c (main): Likewise.
3162         * tests/test-mkdir.c (main): Likewise.
3163         * tests/test-mkdirat.c (main): Likewise.
3164         * tests/test-mkfifo.c (main): Likewise.
3165         * tests/test-mkfifoat.c (main): Likewise.
3166         * tests/test-mknod.c (main): Likewise.
3167         * tests/test-readlink.c (main): Likewise.
3168         * tests/test-remove.c (main): Likewise.
3169         * tests/test-rename.c (main): Likewise.
3170         * tests/test-renameat.c (main): Likewise.
3171         * tests/test-rmdir.c (main): Likewise.
3172         * tests/test-symlink.c (main): Likewise.
3173         * tests/test-symlinkat.c (main): Likewise.
3174         * tests/test-unlink.c (main): Likewise.
3175         * tests/test-unlinkat.c (main): Likewise.
3176         * tests/test-utimens.c (main): Likewise.
3177         * tests/test-utimensat.c (main): Likewise.
3178         * modules/areadlink-tests (Depends-on): Add ignore-value.
3179         * modules/areadlink-with-size-tests (Depends-on): Likewise.
3180         * modules/areadlinkat-tests (Depends-on): Likewise.
3181         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
3182         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3183         * modules/canonicalize-tests (Depends-on): Likewise.
3184         * modules/chown-tests (Depends-on): Likewise.
3185         * modules/fdutimensat-tests (Depends-on): Likewise.
3186         * modules/futimens-tests (Depends-on): Likewise.
3187         * modules/lchown-tests (Depends-on): Likewise.
3188         * modules/link-tests (Depends-on): Likewise.
3189         * modules/linkat-tests (Depends-on): Likewise.
3190         * modules/lstat-tests (Depends-on): Likewise.
3191         * modules/mkdir-tests (Depends-on): Likewise.
3192         * modules/mkfifo-tests (Depends-on): Likewise.
3193         * modules/mkfifoat-tests (Depends-on): Likewise.
3194         * modules/mknod-tests (Depends-on): Likewise.
3195         * modules/openat-tests (Depends-on): Likewise.
3196         * modules/readlink-tests (Depends-on): Likewise.
3197         * modules/remove-tests (Depends-on): Likewise.
3198         * modules/rename-tests (Depends-on): Likewise.
3199         * modules/renameat-tests (Depends-on): Likewise.
3200         * modules/rmdir-tests (Depends-on): Likewise.
3201         * modules/symlink-tests (Depends-on): Likewise.
3202         * modules/symlinkat-tests (Depends-on): Likewise.
3203         * modules/unlink-tests (Depends-on): Likewise.
3204         * modules/utimens-tests (Depends-on): Likewise.
3205         * modules/utimensat-tests (Depends-on): Likewise.
3206
3207 2010-01-31  Bruno Haible  <bruno@clisp.org>
3208
3209         Perform the same test for many <math.h> functions.
3210         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
3211         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
3212         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
3213         of gl_MATHFUNC.
3214         * modules/acos (configure.ac): Likewise.
3215         * modules/asin (configure.ac): Likewise.
3216         * modules/atan (configure.ac): Likewise.
3217         * modules/atan2 (configure.ac): Likewise.
3218         * modules/cbrt (configure.ac): Likewise.
3219         * modules/copysign (configure.ac): Likewise.
3220         * modules/cos (configure.ac): Likewise.
3221         * modules/cosh (configure.ac): Likewise.
3222         * modules/erf (configure.ac): Likewise.
3223         * modules/erfc (configure.ac): Likewise.
3224         * modules/exp (configure.ac): Likewise.
3225         * modules/fmod (configure.ac): Likewise.
3226         * modules/hypot (configure.ac): Likewise.
3227         * modules/j0 (configure.ac): Likewise.
3228         * modules/j1 (configure.ac): Likewise.
3229         * modules/jn (configure.ac): Likewise.
3230         * modules/lgamma (configure.ac): Likewise.
3231         * modules/log (configure.ac): Likewise.
3232         * modules/log10 (configure.ac): Likewise.
3233         * modules/log1p (configure.ac): Likewise.
3234         * modules/pow (configure.ac): Likewise.
3235         * modules/remainder (configure.ac): Likewise.
3236         * modules/sin (configure.ac): Likewise.
3237         * modules/sinh (configure.ac): Likewise.
3238         * modules/tan (configure.ac): Likewise.
3239         * modules/tanh (configure.ac): Likewise.
3240         * modules/y0 (configure.ac): Likewise.
3241         * modules/y1 (configure.ac): Likewise.
3242         * modules/yn (configure.ac): Likewise.
3243         Suggested by Paolo Bonzini.
3244
3245 2010-01-31  Bruno Haible  <bruno@clisp.org>
3246
3247         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
3248
3249 2010-01-31  Bruno Haible  <bruno@clisp.org>
3250
3251         Work around getdelim() bug on FreeBSD 8.0.
3252         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
3253         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
3254         not work.
3255         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
3256         is 1.
3257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
3258         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
3259         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
3260         a non-zero size.
3261         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
3262
3263 2010-01-31  Bruno Haible  <bruno@clisp.org>
3264
3265         Work around getline() bug on FreeBSD 8.0.
3266         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
3267         and a non-zero size.
3268         * tests/test-getline.c (main): Likewise.
3269         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
3270         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
3271
3272 2010-01-28  Eric Blake  <ebb9@byu.net>
3273
3274         regex: fix build failure
3275         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
3276         platforms.
3277
3278 2010-01-28  Jim Meyering  <meyering@redhat.com>
3279
3280         regex: do not ignore memory allocation failure
3281         * lib/regex_internal.c (create_cd_newstate): Detect
3282         re_node_set_init_copy failure.   Extracted from glibc commit
3283         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3284
3285         regex: sync more white-space changes from libc
3286         * lib/regex_internal.c: White-space only changes.
3287         * lib/regexec.c: Likewise.
3288
3289         regex: add many uses of __attribute_warn_unused_result__
3290         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
3291         * lib/regexec.c: Likewise.
3292         Extracted from a messy glibc commit.
3293
3294         regcomp.c: spelling and merge-artifact from glibc
3295         * lib/regcomp.c: Merge remainder of glibc's
3296         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3297
3298         regcomp.c: sync white-space changes from glibc
3299         * lib/regcomp.c: Merge to accommodate white space
3300         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3301
3302         regcomp.c: do not ignore internal return values
3303         * lib/regcomp.c: Do not ignore internal return values.
3304         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
3305         but without its white-space changes and spelling fixes.
3306
3307         regex_internal.h: define __attribute_warn_unused_result__
3308         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
3309
3310         maint: add a syntax-check rule to check for vulnerable Makefile.in
3311         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3312
3313 2010-01-27  Jim Meyering  <meyering@redhat.com>
3314
3315         ncftpput-ftp: clean up spaces
3316         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3317         Remove trailing blanks.
3318
3319 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3320
3321         * build-aux/git-version-gen: Fix copyright statement.
3322         * build-aux/gnupload: Likewise.
3323         * tests/test-arcfour.c: Likewise.
3324         * tests/test-arctwo.c: Likewise.
3325         * tests/test-count-one-bits.c: Likewise.
3326         * tests/test-crc.c: Likewise.
3327         * tests/test-des.c: Likewise.
3328         * tests/test-gc-arcfour.c: Likewise.
3329         * tests/test-gc-arctwo.c: Likewise.
3330         * tests/test-gc-des.c: Likewise.
3331         * tests/test-gc-hmac-md5.c: Likewise.
3332         * tests/test-gc-hmac-sha1.c: Likewise.
3333         * tests/test-gc-md2.c: Likewise.
3334         * tests/test-gc-md4.c: Likewise.
3335         * tests/test-gc-md5.c: Likewise.
3336         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3337         * tests/test-gc-rijndael.c: Likewise.
3338         * tests/test-gc-sha1.c: Likewise.
3339         * tests/test-gc.c: Likewise.
3340         * tests/test-gethostname.c: Likewise.
3341         * tests/test-gettimeofday.c: Likewise.
3342         * tests/test-hash.c: Likewise.
3343         * tests/test-hmac-md5.c: Likewise.
3344         * tests/test-hmac-sha1.c: Likewise.
3345         * tests/test-md2.c: Likewise.
3346         * tests/test-md4.c: Likewise.
3347         * tests/test-md5.c: Likewise.
3348         * tests/test-memchr.c: Likewise.
3349         * tests/test-memchr2.c: Likewise.
3350         * tests/test-memcmp.c: Likewise.
3351         * tests/test-memmem.c: Likewise.
3352         * tests/test-memrchr.c: Likewise.
3353         * tests/test-rawmemchr.c: Likewise.
3354         * tests/test-read-file.c: Likewise.
3355         * tests/test-rijndael.c: Likewise.
3356         * tests/test-sockets.c: Likewise.
3357         * tests/test-strchrnul.c: Likewise.
3358         * tests/test-strstr.c: Likewise.
3359         * tests/test-strtod.c: Likewise.
3360         * build-aux/ncftpput-ftp: Likewise.
3361
3362 2010-01-26  Eric Blake  <ebb9@byu.net>
3363
3364         ignore-value: update recommended header name
3365         * modules/ignore-value (Include): Only use <> for headers that
3366         exist in glibc.
3367
3368 2010-01-26  Jim Meyering  <meyering@redhat.com>
3369
3370         test-userspec.c: avoid compiler warnings
3371         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3372         and "initialization discards qualifiers..." warnings.
3373         Put the first "uid" in its own scope, and make char* members "const".
3374
3375 2010-01-25  Bruno Haible  <bruno@clisp.org>
3376
3377         gnulib-tool: Make warning diagnostics consistent.
3378         * gnulib-tool (func_warning): New function.
3379         Use it everywhere where gnulib-tool produces output to stderr and it is
3380         not a fatal error.
3381
3382 2010-01-25  Bruno Haible  <bruno@clisp.org>
3383
3384         Fix test dependencies.
3385         * modules/xstrtol-tests (Depends-on): Add inttypes.
3386         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3387
3388 2010-01-25 Pádraig Brady <P@draigBrady.com>
3389
3390         syntax-check: detect incorrect boolean macro values in config.h
3391         * modules/maintainer-makefile (configure.ac): Parameterize the location
3392         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3393         The logic is from Eric Blake and the location indicated by Jim Meyering.
3394         Note the more natural CONFIG_HEADER name is prohibited by automake
3395         for backwards compatibility reasons.
3396         * top/maint.mk (sc_Wundef_boolean): New rule.
3397
3398 2010-01-25  Jim Meyering  <meyering@redhat.com>
3399
3400         bootstrap: detect MacOS 10.6's shasum, too
3401         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3402         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3403
3404 2010-01-23  Jim Meyering  <meyering@redhat.com>
3405
3406         xstrtoll: new module
3407         * modules/xstrtoll: New file.
3408         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3409         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3410         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3411         ./configure fails if you use this module and lack "long long".
3412         * modules/xstrtoll-tests: New module.
3413         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3414         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3415         new init.sh-based test framework.
3416
3417 2010-01-24  Bruno Haible  <bruno@clisp.org>
3418
3419         Tests for module 'yn'.
3420         * modules/yn-tests: New file.
3421         * tests/test-yn.c: New file.
3422
3423         Tests for module 'y1'.
3424         * modules/y1-tests: New file.
3425         * tests/test-y1.c: New file.
3426
3427         Tests for module 'y0'.
3428         * modules/y0-tests: New file.
3429         * tests/test-y0.c: New file.
3430
3431         Tests for module 'tanh'.
3432         * modules/tanh-tests: New file.
3433         * tests/test-tanh.c: New file.
3434
3435         Tests for module 'tan'.
3436         * modules/tan-tests: New file.
3437         * tests/test-tan.c: New file.
3438
3439         Tests for module 'sqrt'.
3440         * modules/sqrt-tests: New file.
3441         * tests/test-sqrt.c: New file.
3442
3443         Tests for module 'sinh'.
3444         * modules/sinh-tests: New file.
3445         * tests/test-sinh.c: New file.
3446
3447         Tests for module 'sin'.
3448         * modules/sin-tests: New file.
3449         * tests/test-sin.c: New file.
3450
3451         Tests for module 'rint'.
3452         * modules/rint-tests: New file.
3453         * tests/test-rint.c: New file.
3454
3455         Tests for module 'remainder'.
3456         * modules/remainder-tests: New file.
3457         * tests/test-remainder.c: New file.
3458
3459         Tests for module 'pow'.
3460         * modules/pow-tests: New file.
3461         * tests/test-pow.c: New file.
3462
3463         Tests for module 'nextafter'.
3464         * modules/nextafter-tests: New file.
3465         * tests/test-nextafter.c: New file.
3466
3467         Tests for module 'modf'.
3468         * modules/modf-tests: New file.
3469         * tests/test-modf.c: New file.
3470
3471         Tests for module 'logb'.
3472         * modules/logb-tests: New file.
3473         * tests/test-logb.c: New file.
3474
3475         Tests for module 'log1p'.
3476         * modules/log1p-tests: New file.
3477         * tests/test-log1p.c: New file.
3478
3479         Tests for module 'log10'.
3480         * modules/log10-tests: New file.
3481         * tests/test-log10.c: New file.
3482
3483         Tests for module 'log'.
3484         * modules/log-tests: New file.
3485         * tests/test-log.c: New file.
3486
3487         Tests for module 'lgamma'.
3488         * modules/lgamma-tests: New file.
3489         * tests/test-lgamma.c: New file.
3490
3491         Tests for module 'ldexp'.
3492         * modules/ldexp-tests: New file.
3493         * tests/test-ldexp.c: New file.
3494
3495         Tests for module 'jn'.
3496         * modules/jn-tests: New file.
3497         * tests/test-jn.c: New file.
3498
3499         Tests for module 'j1'.
3500         * modules/j1-tests: New file.
3501         * tests/test-j1.c: New file.
3502
3503         Tests for module 'j0'.
3504         * modules/j0-tests: New file.
3505         * tests/test-j0.c: New file.
3506
3507         Tests for module 'hypot'.
3508         * modules/hypot-tests: New file.
3509         * tests/test-hypot.c: New file.
3510
3511         Tests for module 'fmod'.
3512         * modules/fmod-tests: New file.
3513         * tests/test-fmod.c: New file.
3514
3515         Tests for module 'fabs'.
3516         * modules/fabs-tests: New file.
3517         * tests/test-fabs.c: New file.
3518
3519         Tests for module 'exp'.
3520         * modules/exp-tests: New file.
3521         * tests/test-exp.c: New file.
3522
3523         Tests for module 'erfc'.
3524         * modules/erfc-tests: New file.
3525         * tests/test-erfc.c: New file.
3526
3527         Tests for module 'erf'.
3528         * modules/erf-tests: New file.
3529         * tests/test-erf.c: New file.
3530
3531         Tests for module 'cosh'.
3532         * modules/cosh-tests: New file.
3533         * tests/test-cosh.c: New file.
3534
3535         Tests for module 'cos'.
3536         * modules/cos-tests: New file.
3537         * tests/test-cos.c: New file.
3538
3539         Tests for module 'copysign'.
3540         * modules/copysign-tests: New file.
3541         * tests/test-copysign.c: New file.
3542
3543         Tests for module 'cbrt'.
3544         * modules/cbrt-tests: New file.
3545         * tests/test-cbrt.c: New file.
3546
3547         Tests for module 'atan2'.
3548         * modules/atan2-tests: New file.
3549         * tests/test-atan2.c: New file.
3550
3551         Tests for module 'atan'.
3552         * modules/atan-tests: New file.
3553         * tests/test-atan.c: New file.
3554
3555         Tests for module 'asin'.
3556         * modules/asin-tests: New file.
3557         * tests/test-asin.c: New file.
3558
3559         Tests for module 'acos'.
3560         * modules/acos-tests: New file.
3561         * tests/test-acos.c: New file.
3562
3563 2010-01-24  Bruno Haible  <bruno@clisp.org>
3564
3565         Fix tests for common <math.h> functions.
3566         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3567         code snippet that references the function pointer, rather than merely
3568         calling the function. Substitute the FUNC_LIBM variable.
3569         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3570         * modules/acos (configure.ac): Likewise.
3571         * modules/asin (configure.ac): Likewise.
3572         * modules/atan (configure.ac): Likewise.
3573         * modules/atan2 (configure.ac): Likewise.
3574         * modules/cbrt (configure.ac): Likewise.
3575         * modules/copysign (configure.ac): Likewise.
3576         * modules/cos (configure.ac): Likewise.
3577         * modules/cosh (configure.ac): Likewise.
3578         * modules/erf (configure.ac): Likewise.
3579         * modules/erfc (configure.ac): Likewise.
3580         * modules/exp (configure.ac): Likewise.
3581         * modules/fabs (configure.ac): Likewise.
3582         * modules/fmod (configure.ac): Likewise.
3583         * modules/hypot (configure.ac): Likewise.
3584         * modules/j0 (configure.ac): Likewise.
3585         * modules/j1 (configure.ac): Likewise.
3586         * modules/jn (configure.ac): Likewise.
3587         * modules/ldexp (configure.ac): Likewise.
3588         * modules/lgamma (configure.ac): Likewise.
3589         * modules/log (configure.ac): Likewise.
3590         * modules/log10 (configure.ac): Likewise.
3591         * modules/log1p (configure.ac): Likewise.
3592         * modules/logb (configure.ac): Likewise.
3593         * modules/modf (configure.ac): Likewise.
3594         * modules/nextafter (configure.ac): Likewise.
3595         * modules/pow (configure.ac): Likewise.
3596         * modules/remainder (configure.ac): Likewise.
3597         * modules/rint (configure.ac): Likewise.
3598         * modules/sin (configure.ac): Likewise.
3599         * modules/sinh (configure.ac): Likewise.
3600         * modules/tan (configure.ac): Likewise.
3601         * modules/tanh (configure.ac): Likewise.
3602         * modules/y0 (configure.ac): Likewise.
3603         * modules/y1 (configure.ac): Likewise.
3604         * modules/yn (configure.ac): Likewise.
3605
3606 2010-01-24  Bruno Haible  <bruno@clisp.org>
3607
3608         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3609         * tests/test-acosl.c (x): New variable.
3610         (main): Store argument in x and fetch it from x.
3611         * tests/test-asinl.c (x): New variable.
3612         (main): Store argument in x and fetch it from x.
3613         * tests/test-atanl.c (x): New variable.
3614         (main): Store argument in x and fetch it from x.
3615         * tests/test-cosl.c (x): New variable.
3616         (main): Store argument in x and fetch it from x.
3617         * tests/test-expl.c (x): New variable.
3618         (main): Store argument in x and fetch it from x.
3619         * tests/test-logl.c (x): New variable.
3620         (main): Store argument in x and fetch it from x.
3621         * tests/test-sinl.c (x): New variable.
3622         (main): Store argument in x and fetch it from x.
3623         * tests/test-sqrtl.c (x): New variable.
3624         (main): Store argument in x and fetch it from x.
3625         * tests/test-tanl.c (x): New variable.
3626         (main): Store argument in x and fetch it from x.
3627
3628 2010-01-24  Bruno Haible  <bruno@clisp.org>
3629
3630         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3631         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3632         assignments to the initial TESTS_ENVIRONMENT.
3633         * doc/gnulib.texi (Unit test modules): Document it.
3634         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3635         TESTS_ENVIRONMENT.
3636         * modules/btowc-tests (Makefile.am): Likewise.
3637         * modules/c-stack-tests (Makefile.am): Likewise.
3638         * modules/c-strcase-tests (Makefile.am): Likewise.
3639         * modules/copy-file-tests (Makefile.am): Likewise.
3640         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3641         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3642         * modules/mbrtowc-tests (Makefile.am): Likewise.
3643         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3644         * modules/mbscasestr-tests (Makefile.am): Likewise.
3645         * modules/mbschr-tests (Makefile.am): Likewise.
3646         * modules/mbscspn-tests (Makefile.am): Likewise.
3647         * modules/mbsinit-tests (Makefile.am): Likewise.
3648         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3649         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3650         * modules/mbspbrk-tests (Makefile.am): Likewise.
3651         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3652         * modules/mbsrchr-tests (Makefile.am): Likewise.
3653         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3654         * modules/mbsspn-tests (Makefile.am): Likewise.
3655         * modules/mbsstr-tests (Makefile.am): Likewise.
3656         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3657         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3658         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3659         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3660         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3661         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3662         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3663         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3664         * modules/wcrtomb-tests (Makefile.am): Likewise.
3665         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3666         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3667         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3668         assignments from TESTS_ENVIRONMENT.
3669         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3670         augmentation.
3671         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3672         * modules/atexit-tests (Makefile.am): Likewise.
3673         * modules/binary-io-tests (Makefile.am): Likewise.
3674         * modules/closein-tests (Makefile.am): Likewise.
3675         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3676         * modules/exclude-tests (Makefile.am): Likewise.
3677         * modules/fflush-tests (Makefile.am): Likewise.
3678         * modules/fpending-tests (Makefile.am): Likewise.
3679         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3680         * modules/freadahead-tests (Makefile.am): Likewise.
3681         * modules/freadptr-tests (Makefile.am): Likewise.
3682         * modules/freadseek-tests (Makefile.am): Likewise.
3683         * modules/fseek-tests (Makefile.am): Likewise.
3684         * modules/fseeko-tests (Makefile.am): Likewise.
3685         * modules/ftell-tests (Makefile.am): Likewise.
3686         * modules/ftello-tests (Makefile.am): Likewise.
3687         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3688         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3689         * modules/lseek-tests (Makefile.am): Likewise.
3690         * modules/parse-duration-tests (Makefile.am): Likewise.
3691         * modules/perror-tests (Makefile.am): Likewise.
3692         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3693         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3694         * modules/pipe-tests (Makefile.am): Likewise.
3695         * modules/pread-tests (Makefile.am): Likewise.
3696         * modules/printf-posix-tests (Makefile.am): Likewise.
3697         * modules/select-tests (Makefile.am): Likewise.
3698         * modules/sigpipe-tests (Makefile.am): Likewise.
3699         * modules/tsearch-tests (Makefile.am): Likewise.
3700         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3701         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3702         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3703         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3704         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3705         * modules/version-etc-tests (Makefile.am): Likewise.
3706         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3707         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3708         * modules/xalloc-die-tests (Makefile.am): Likewise.
3709         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3710         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3711         * modules/xstrtol-tests (Makefile.am): Likewise.
3712         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3713         * modules/yesno-tests (Makefile.am): Likewise.
3714         Suggested by Jim Meyering.
3715
3716 2010-01-24  Bruno Haible  <bruno@clisp.org>
3717
3718         More documentation.
3719         * doc/gnulib.texi (Writing modules): New chapter.
3720         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3721         the new chapter.
3722
3723 2010-01-24  Jim Meyering  <meyering@redhat.com>
3724
3725         maint.mk: do not prepend "./" after filtering
3726         * top/maint.mk (_prepend_srcdir_prefix): New variable
3727         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3728         "./" when $(srcdir) is ".".
3729
3730         define STREQ(a,b) consistently, removing useless parentheses
3731         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3732         since the only risk is that "a" or "b" contains an unparenthesized
3733         comma, but if either did that, STREQ would have 3 or more arguments.
3734         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3735         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3736         * lib/hash-triple.c (STREQ): Likewise.
3737         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3738         * lib/getugroups.c (STREQ): Likewise.
3739
3740 2010-01-23  Jim Meyering  <meyering@redhat.com>
3741
3742         maint.mk: fix syntax-check in a non-srcdir build directory
3743         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3744         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3745
3746 2010-01-22  Jim Meyering  <meyering@redhat.com>
3747
3748         userspec: add unit tests
3749         * tests/test-userspec.c: New file.
3750         * modules/userspec-tests: Likewise.
3751
3752 2010-01-21  Jim Meyering  <meyering@redhat.com>
3753
3754         maint.mk: handle source file names containing "." robustly
3755         * top/maint.mk (_dot_escaped_srcdir): Define.
3756         (VC_LIST): Use it in LHS of sed substitution.
3757
3758 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3759
3760         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3761         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3762         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3763         from a non-srcdir build.
3764
3765 2010-01-20  Eric Blake  <ebb9@byu.net>
3766
3767         warn-on-use: use instead of link-warning
3768         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3769         * modules/unistd (Depends-on, Makefile.am): Likewise.
3770         * modules/arpa_inet (Depends-on): Replace link-warning with
3771         warn-on-use.
3772         (Makefile.am): Update rules accordingly.
3773         * modules/ctype (Depends-on, Makefile.am): Likewise.
3774         * modules/dirent (Depends-on, Makefile.am): Likewise.
3775         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3776         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3777         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3778         * modules/locale (Depends-on, Makefile.am): Likewise.
3779         * modules/math (Depends-on, Makefile.am): Likewise.
3780         * modules/search (Depends-on, Makefile.am): Likewise.
3781         * modules/signal (Depends-on, Makefile.am): Likewise.
3782         * modules/spawn (Depends-on, Makefile.am): Likewise.
3783         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3784         * modules/string (Depends-on, Makefile.am): Likewise.
3785         * modules/strings (Depends-on, Makefile.am): Likewise.
3786         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3787         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3788         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3789         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3790         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3791         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3792         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3793         * modules/wchar (Depends-on, Makefile.am): Likewise.
3794         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3795         should be poisoned.
3796         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3797         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3798         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3799         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3800         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3801         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3802         * m4/math_h.m4 (gl_MATH_H): Likewise.
3803         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3804         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3805         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3806         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3807         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3808         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3809         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3810         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3811         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3812         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3813         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3815         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3816         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3817         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3818         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3819         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3820         GL_LINK_WARNING.
3821         * lib/ctype.in.h: Likewise.
3822         * lib/dirent.in.h: Likewise.
3823         * lib/fcntl.in.h: Likewise.
3824         * lib/inttypes.in.h: Likewise.
3825         * lib/langinfo.in.h: Likewise.
3826         * lib/locale.in.h: Likewise.
3827         * lib/math.in.h: Likewise.
3828         * lib/search.in.h: Likewise.
3829         * lib/signal.in.h: Likewise.
3830         * lib/spawn.in.h: Likewise.
3831         * lib/stdio.in.h: Likewise.
3832         * lib/stdlib.in.h: Likewise.
3833         * lib/string.in.h: Likewise.
3834         * lib/strings.in.h: Likewise.
3835         * lib/sys_file.in.h: Likewise.
3836         * lib/sys_ioctl.in.h: Likewise.
3837         * lib/sys_select.in.h: Likewise.
3838         * lib/sys_socket.in.h: Likewise.
3839         * lib/sys_stat.in.h: Likewise.
3840         * lib/sys_times.in.h: Likewise.
3841         * lib/sys_utsname.in.h: Likewise.
3842         * lib/unistd.in.h: Likewise.
3843         * lib/wchar.in.h: Likewise.
3844
3845 2010-01-20  Bruno Haible  <bruno@clisp.org>
3846
3847         Avoid duplicate -lm.
3848         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3849         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3850         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3851         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3852         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3853         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3854         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3855         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3856         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3857         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3858         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3859         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3860         Reported by Paolo Bonzini.
3861
3862 2010-01-19  Bruno Haible  <bruno@clisp.org>
3863
3864         langinfo, nl_langinfo: Relicense under LGPLv2+.
3865         * modules/langinfo (License): Change to LGPLv2+.
3866         * modules/nl_langinfo (License): Likewise.
3867         Patch by David Lutterkort <lutter@redhat.com>.
3868
3869 2010-01-19  Bruno Haible  <bruno@clisp.org>
3870
3871         Avoid compilation error with cc on OSF/1 5.1.
3872         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3873         statement, not before.
3874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3875
3876 2010-01-18  Bruno Haible  <bruno@clisp.org>
3877
3878         Avoid a link error due to the __printf__ symbol.
3879         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3880         and 2.6.x.
3881         (__format__, __printf__): Remove definitions.
3882         * lib/argp-fmtstream.h: Likewise.
3883         * lib/argp.h: Likewise.
3884         * lib/error.h: Likewise.
3885         * lib/vasnprintf.h: Likewise.
3886         * lib/xprintf.h: Likewise.
3887         * lib/xvasprintf.h: Likewise.
3888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3889
3890 2010-01-18  Bruno Haible  <bruno@clisp.org>
3891
3892         Tests for module 'tanl'.
3893         * modules/tanl-tests: New file.
3894         * tests/test-tanl.c: New file.
3895
3896         Tests for module 'sqrtl'.
3897         * modules/sqrtl-tests: New file.
3898         * tests/test-sqrtl.c: New file.
3899
3900         Tests for module 'sinl'.
3901         * modules/sinl-tests: New file.
3902         * tests/test-sinl.c: New file.
3903
3904         Tests for module 'logl'.
3905         * modules/logl-tests: New file.
3906         * tests/test-logl.c: New file.
3907
3908         Tests for module 'expl'.
3909         * modules/expl-tests: New file.
3910         * tests/test-expl.c: New file.
3911
3912         Tests for module 'cosl'.
3913         * modules/cosl-tests: New file.
3914         * tests/test-cosl.c: New file.
3915
3916         Tests for module 'atanl'.
3917         * modules/atanl-tests: New file.
3918         * tests/test-atanl.c: New file.
3919
3920         Tests for module 'asinl'.
3921         * modules/asinl-tests: New file.
3922         * tests/test-asinl.c: New file.
3923
3924         Tests for module 'acosl'.
3925         * modules/acosl-tests: New file.
3926         * tests/test-acosl.c: New file.
3927
3928         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3929         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3930         tanl): Use the standard gnulib idiom.
3931         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3932         * lib/sinl.c: Likewise.
3933         * lib/tanl.c: Don't include trigl.c.
3934         (kernel_tanl): Make static.
3935         * lib/sincosl.c: Include trigl.h first.
3936         * lib/trigl.c: Likewise.
3937         * m4/acosl.m4: New file.
3938         * m4/asinl.m4: New file.
3939         * m4/atanl.m4: New file.
3940         * m4/cosl.m4: New file.
3941         * m4/expl.m4: New file.
3942         * m4/logl.m4: New file.
3943         * m4/sinl.m4: New file.
3944         * m4/sqrtl.m4: New file.
3945         * m4/tanl.m4: New file.
3946         * m4/mathl.m4: Remove file.
3947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3948         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3949         Don't initialize GNULIB_MATHL.
3950         * modules/acosl: New file.
3951         * modules/asinl: New file.
3952         * modules/atanl: New file.
3953         * modules/cosl: New file.
3954         * modules/expl: New file.
3955         * modules/logl: New file.
3956         * modules/sinl: New file.
3957         * modules/sqrtl: New file.
3958         * modules/tanl: New file.
3959         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3960         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3961         substitute GNULIB_MATHL.
3962         * modules/mathl: Rewritten.
3963         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3964         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3965         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3966         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3967         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3968         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3969         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3970         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3971         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3972
3973 2010-01-18  Bruno Haible  <bruno@clisp.org>
3974
3975         sqrt: Make gl_FUNC_SQRT requirable.
3976         * m4/sqrt.m4: New file.
3977         * modules/sqrt (Files): Add it.
3978         (configure.ac): Invoke gl_FUNC_SQRT.
3979
3980 2010-01-18  Bruno Haible  <bruno@clisp.org>
3981
3982         New modules for common <math.h> functions.
3983         * m4/mathfunc.m4: New file.
3984         * modules/acos: New file.
3985         * modules/asin: New file.
3986         * modules/atan: New file.
3987         * modules/atan2: New file.
3988         * modules/cbrt: New file.
3989         * modules/copysign: New file.
3990         * modules/cos: New file.
3991         * modules/cosh: New file.
3992         * modules/erf: New file.
3993         * modules/erfc: New file.
3994         * modules/exp: New file.
3995         * modules/fabs: New file.
3996         * modules/fmod: New file.
3997         * modules/hypot: New file.
3998         * modules/j0: New file.
3999         * modules/j1: New file.
4000         * modules/jn: New file.
4001         * modules/ldexp: New file.
4002         * modules/lgamma: New file.
4003         * modules/log: New file.
4004         * modules/log10: New file.
4005         * modules/log1p: New file.
4006         * modules/logb: New file.
4007         * modules/modf: New file.
4008         * modules/nextafter: New file.
4009         * modules/pow: New file.
4010         * modules/remainder: New file.
4011         * modules/rint: New file.
4012         * modules/sin: New file.
4013         * modules/sinh: New file.
4014         * modules/sqrt: New file.
4015         * modules/tan: New file.
4016         * modules/tanh: New file.
4017         * modules/y0: New file.
4018         * modules/y1: New file.
4019         * modules/yn: New file.
4020         * doc/posix-functions/acos.texi: Mention the 'acos' module.
4021         * doc/posix-functions/asin.texi: Mention the 'asin' module.
4022         * doc/posix-functions/atan.texi: Mention the 'atan' module.
4023         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
4024         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
4025         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
4026         * doc/posix-functions/cos.texi: Mention the 'cos' module.
4027         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
4028         * doc/posix-functions/erf.texi: Mention the 'erf' module.
4029         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
4030         * doc/posix-functions/exp.texi: Mention the 'exp' module.
4031         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
4032         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
4033         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
4034         * doc/posix-functions/j0.texi: Mention the 'j0' module.
4035         * doc/posix-functions/j1.texi: Mention the 'j1' module.
4036         * doc/posix-functions/jn.texi: Mention the 'jn' module.
4037         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
4038         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
4039         * doc/posix-functions/log.texi: Mention the 'log' module.
4040         * doc/posix-functions/log10.texi: Mention the 'log10' module.
4041         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
4042         * doc/posix-functions/logb.texi: Mention the 'logb' module.
4043         * doc/posix-functions/modf.texi: Mention the 'modf' module.
4044         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
4045         * doc/posix-functions/pow.texi: Mention the 'pow' module.
4046         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
4047         * doc/posix-functions/rint.texi: Mention the 'rint' module.
4048         * doc/posix-functions/sin.texi: Mention the 'sin' module.
4049         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
4050         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
4051         * doc/posix-functions/tan.texi: Mention the 'tan' module.
4052         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
4053         * doc/posix-functions/y0.texi: Mention the 'y0' module.
4054         * doc/posix-functions/y1.texi: Mention the 'y1' module.
4055         * doc/posix-functions/yn.texi: Mention the 'yn' module.
4056
4057 2010-01-18  Jim Meyering  <meyering@redhat.com>
4058
4059         ignore-value: relax license to LGPLv2+
4060         * modules/ignore-value (License): Relax to LGPLv2+.
4061
4062         getdate: don't leak when TZ contains two or more '"'s
4063         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
4064         double quote in TZ after the first one.
4065
4066         readtokens: do not leak internal token_lengths buffer
4067         * lib/readtokens.c (readtokens): Free the local, lengths,
4068         when the supplied "token_lengths" parameter is NULL.
4069
4070 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4071
4072         Fix a couple of missing LIBTHREAD link failures on AIX.
4073         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
4074         $(LIBTHREAD).
4075         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
4076
4077         Link test-poll against INET_PTON_LIB.
4078         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
4079         for inet_pton on Solaris 10.
4080
4081 2010-01-17  Bruno Haible  <bruno@clisp.org>
4082
4083         unistdio/*-sprintf: Fix typo in module description.
4084         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
4085         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
4086         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
4087         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
4088         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
4089         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
4090         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
4091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4092
4093 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4094
4095         gnulib-tool: fix filelist for AIX, HP-UX ksh.
4096         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
4097         variables in shell case patterns, for AIX and HP-UX ksh.
4098
4099         Split large sed scripts, for HP-UX sed.
4100         * modules/stdio: Split sed scripts around 50 sed commands,
4101         to avoid HP-UX limit of 99 commands, in the near future.
4102         * modules/string: Likewise.
4103         * modules/unistd: Likewise.
4104
4105         gnulib-tool: avoid writing in the current directory.
4106         * gnulib-tool (func_emit_lib_Makefile_am)
4107         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
4108         not in the current directory, so concurrent gnulib-tool
4109         instances do not interfere.
4110
4111 2010-01-16  Jim Meyering  <meyering@redhat.com>
4112
4113         doc: update users.txt
4114         * users.txt: Add grep.
4115         (diffutils, gzip): Update URLs.
4116
4117 2010-01-12  Bruno Haible  <bruno@clisp.org>
4118
4119         posix_spawn: Avoid test failure on Cygwin.
4120         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
4121         characters.
4122         Reported by Simon Josefsson.
4123
4124 2010-01-12  Bruno Haible  <bruno@clisp.org>
4125
4126         * tests/test-cond.c (main): When skipping the test, show the reason.
4127
4128 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4129
4130         * lib/striconv.c (str_cd_iconv): Avoid if before free.
4131
4132 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4133
4134         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
4135         VC_LIST_ALWAYS_EXCLUDE_REGEX.
4136
4137 2010-01-12  Eric Blake  <ebb9@byu.net>
4138
4139         build: guarantee AS_VAR_IF
4140         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
4141         (gl_AS_VAR_IF): Move...
4142         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
4143         Reported by Simon Josefsson.
4144
4145 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4146
4147         * lib/stdio.in.h: Fix typo.
4148
4149 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4150
4151         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
4152         libgpg-error.
4153
4154 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4155
4156         * tests/test-xalloc-die.sh: Use $EXEEXT.
4157
4158 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4159             Bruno Haible  <bruno@clisp.org>
4160
4161         getlogin, getlogin_r: Avoid test failure.
4162         * tests/test-getlogin.c: Include <stdio.h>.
4163         (main): Skip the test when the function fails because stdin is not a
4164         tty.
4165         * tests/test-getlogin_r.c: Include <stdio.h>.
4166         (main): Skip the test when the function fails because stdin is not a
4167         tty.
4168
4169 2010-01-11  Eric Blake  <ebb9@byu.net>
4170
4171         tests: avoid more large file warnings
4172         * tests/test-fflush.c: Avoid warning about ftell use.
4173         * tests/test-fseek.c: Avoid warning about fseek use.
4174
4175 2010-01-10  Bruno Haible  <bruno@clisp.org>
4176
4177         nproc: Work better on Linux when /proc and /sys are not mounted.
4178         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
4179         as lower bound when, on glibc/Linux systems,
4180         sysconf (_SC_NPROCESSORS_CONF) returns 1.
4181         Suggested by Pádraig Brady <P@draigbrady.com>.
4182         Reported by Dmitry V. Levin <ldv@altlinux.org>.
4183
4184         nproc: Refactor.
4185         * lib/nproc.c (num_processors_via_affinity_mask): New function,
4186         extracted from num_processors.
4187         (num_processors): Call it.
4188
4189 2010-01-11  Jim Meyering  <meyering@redhat.com>
4190
4191         utimecmp: avoid new warning from upcoming gcc-4.5.0
4192         * lib/utimecmp.c (BILLION): Define using #define rather than an
4193         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
4194
4195 2010-01-11  Eric Blake  <ebb9@byu.net>
4196
4197         math: add portability warnings for classification macros
4198         * modules/math (Depends-on): Add warn-on-use.
4199         (Makefile.am): Provide new substitutions.
4200         * m4/math_h.m4 (gl_MATH_H): Require inline.
4201         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
4202         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
4203         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
4204         implement warnings.
4205
4206         unistd: warn on use of environ without module
4207         * modules/unistd (Depends-on): Add warn-on-use.
4208         (Makefile.am): Provide new substitutions.
4209         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
4210         * lib/unistd.in.h (environ): Wrap with a warning helper function.
4211
4212         stdio: warn on suspicious uses
4213         * modules/stdio (Depends-on): Add warn-on-use.
4214         (Makefile.am): Provide new substitutions.
4215         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
4216         fseeko.
4217         * lib/stdio.in.h (gets): Always warn on use.
4218         (fseek, ftell): Adjust when warnings are issued, and honor
4219         _GL_NO_LARGE_FILES as a way to silence the warning.
4220         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
4221         any warning about large file offsets.
4222         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
4223         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
4224         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
4225         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
4226         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
4227         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
4228         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
4229         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
4230
4231         warn-on-use: new module
4232         * modules/warn-on-use: New file.
4233         * build-aux/warn-on-use.h: Likewise.
4234         * m4/warn-on-use.m4: Likewise.
4235         * MODULES.html.sh (Support for building): Mention it.
4236
4237 2010-01-10  Bruno Haible  <bruno@clisp.org>
4238
4239         Tests for module 'unistr/u32-strdup'.
4240         * modules/unistr/u32-strdup-tests: New file.
4241         * tests/unistr/test-u32-strdup.c: New file.
4242
4243         Tests for module 'unistr/u16-strdup'.
4244         * modules/unistr/u16-strdup-tests: New file.
4245         * tests/unistr/test-u16-strdup.c: New file.
4246
4247         Tests for module 'unistr/u8-strdup'.
4248         * modules/unistr/u8-strdup-tests: New file.
4249         * tests/unistr/test-u8-strdup.c: New file.
4250         * tests/unistr/test-strdup.h: New file.
4251
4252         Tests for module 'unistr/u32-strncmp'.
4253         * modules/unistr/u32-strncmp-tests: New file.
4254         * tests/unistr/test-u32-strncmp.c: New file.
4255
4256         Tests for module 'unistr/u16-strncmp'.
4257         * modules/unistr/u16-strncmp-tests: New file.
4258         * tests/unistr/test-u16-strncmp.c: New file.
4259
4260         Tests for module 'unistr/u8-strncmp'.
4261         * modules/unistr/u8-strncmp-tests: New file.
4262         * tests/unistr/test-u8-strncmp.c: New file.
4263         * tests/unistr/test-strncmp.h: New file.
4264
4265         Tests for module 'unistr/u32-strcoll'.
4266         * modules/unistr/u32-strcoll-tests: New file.
4267         * tests/unistr/test-u32-strcoll.c: New file.
4268
4269         Tests for module 'unistr/u16-strcoll'.
4270         * modules/unistr/u16-strcoll-tests: New file.
4271         * tests/unistr/test-u16-strcoll.c: New file.
4272
4273         Tests for module 'unistr/u8-strcoll'.
4274         * modules/unistr/u8-strcoll-tests: New file.
4275         * tests/unistr/test-u8-strcoll.c: New file.
4276
4277         Tests for module 'unistr/u32-strcmp'.
4278         * modules/unistr/u32-strcmp-tests: New file.
4279         * tests/unistr/test-u32-strcmp.c: New file.
4280         * tests/unistr/test-u32-strcmp.h: New file.
4281
4282         Tests for module 'unistr/u16-strcmp'.
4283         * modules/unistr/u16-strcmp-tests: New file.
4284         * tests/unistr/test-u16-strcmp.c: New file.
4285         * tests/unistr/test-u16-strcmp.h: New file.
4286
4287         Tests for module 'unistr/u8-strcmp'.
4288         * modules/unistr/u8-strcmp-tests: New file.
4289         * tests/unistr/test-u8-strcmp.c: New file.
4290         * tests/unistr/test-u8-strcmp.h: New file.
4291         * tests/unistr/test-strcmp.h: New file.
4292
4293         Tests for module 'unistr/u32-strncat'.
4294         * modules/unistr/u32-strncat-tests: New file.
4295         * tests/unistr/test-u32-strncat.c: New file.
4296
4297         Tests for module 'unistr/u16-strncat'.
4298         * modules/unistr/u16-strncat-tests: New file.
4299         * tests/unistr/test-u16-strncat.c: New file.
4300
4301         Tests for module 'unistr/u8-strncat'.
4302         * modules/unistr/u8-strncat-tests: New file.
4303         * tests/unistr/test-u8-strncat.c: New file.
4304         * tests/unistr/test-strncat.h: New file.
4305
4306         Tests for module 'unistr/u32-strcat'.
4307         * modules/unistr/u32-strcat-tests: New file.
4308         * tests/unistr/test-u32-strcat.c: New file.
4309
4310         Tests for module 'unistr/u16-strcat'.
4311         * modules/unistr/u16-strcat-tests: New file.
4312         * tests/unistr/test-u16-strcat.c: New file.
4313
4314         Tests for module 'unistr/u8-strcat'.
4315         * modules/unistr/u8-strcat-tests: New file.
4316         * tests/unistr/test-u8-strcat.c: New file.
4317         * tests/unistr/test-strcat.h: New file.
4318
4319         Tests for module 'unistr/u32-stpncpy'.
4320         * modules/unistr/u32-stpncpy-tests: New file.
4321         * tests/unistr/test-u32-stpncpy.c: New file.
4322
4323         Tests for module 'unistr/u16-stpncpy'.
4324         * modules/unistr/u16-stpncpy-tests: New file.
4325         * tests/unistr/test-u16-stpncpy.c: New file.
4326
4327         Tests for module 'unistr/u8-stpncpy'.
4328         * modules/unistr/u8-stpncpy-tests: New file.
4329         * tests/unistr/test-u8-stpncpy.c: New file.
4330         * tests/unistr/test-stpncpy.h: New file.
4331
4332         Tests for module 'unistr/u32-strncpy'.
4333         * modules/unistr/u32-strncpy-tests: New file.
4334         * tests/unistr/test-u32-strncpy.c: New file.
4335
4336         Tests for module 'unistr/u16-strncpy'.
4337         * modules/unistr/u16-strncpy-tests: New file.
4338         * tests/unistr/test-u16-strncpy.c: New file.
4339
4340         Tests for module 'unistr/u8-strncpy'.
4341         * modules/unistr/u8-strncpy-tests: New file.
4342         * tests/unistr/test-u8-strncpy.c: New file.
4343         * tests/unistr/test-strncpy.h: New file.
4344
4345         Tests for module 'unistr/u32-stpcpy'.
4346         * modules/unistr/u32-stpcpy-tests: New file.
4347         * tests/unistr/test-u32-stpcpy.c: New file.
4348
4349         Tests for module 'unistr/u16-stpcpy'.
4350         * modules/unistr/u16-stpcpy-tests: New file.
4351         * tests/unistr/test-u16-stpcpy.c: New file.
4352
4353         Tests for module 'unistr/u8-stpcpy'.
4354         * modules/unistr/u8-stpcpy-tests: New file.
4355         * tests/unistr/test-u8-stpcpy.c: New file.
4356         * tests/unistr/test-stpcpy.h: New file.
4357
4358         Tests for module 'unistr/u32-strcpy'.
4359         * modules/unistr/u32-strcpy-tests: New file.
4360         * tests/unistr/test-u32-strcpy.c: New file.
4361
4362         Tests for module 'unistr/u16-strcpy'.
4363         * modules/unistr/u16-strcpy-tests: New file.
4364         * tests/unistr/test-u16-strcpy.c: New file.
4365
4366         Tests for module 'unistr/u8-strcpy'.
4367         * modules/unistr/u8-strcpy-tests: New file.
4368         * tests/unistr/test-u8-strcpy.c: New file.
4369         * tests/unistr/test-strcpy.h: New file.
4370
4371         Tests for module 'unistr/u32-strnlen'.
4372         * modules/unistr/u32-strnlen-tests: New file.
4373         * tests/unistr/test-u32-strnlen.c: New file.
4374
4375         Tests for module 'unistr/u16-strnlen'.
4376         * modules/unistr/u16-strnlen-tests: New file.
4377         * tests/unistr/test-u16-strnlen.c: New file.
4378
4379         Tests for module 'unistr/u8-strnlen'.
4380         * modules/unistr/u8-strnlen-tests: New file.
4381         * tests/unistr/test-u8-strnlen.c: New file.
4382         * tests/unistr/test-strnlen.h: New file.
4383
4384         Tests for module 'unistr/u32-strlen'.
4385         * modules/unistr/u32-strlen-tests: New file.
4386         * tests/unistr/test-u32-strlen.c: New file.
4387
4388         Tests for module 'unistr/u16-strlen'.
4389         * modules/unistr/u16-strlen-tests: New file.
4390         * tests/unistr/test-u16-strlen.c: New file.
4391
4392         Tests for module 'unistr/u8-strlen'.
4393         * modules/unistr/u8-strlen-tests: New file.
4394         * tests/unistr/test-u8-strlen.c: New file.
4395
4396         Tests for module 'unistr/u32-prev'.
4397         * modules/unistr/u32-prev-tests: New file.
4398         * tests/unistr/test-u32-prev.c: New file.
4399
4400         Tests for module 'unistr/u16-prev'.
4401         * modules/unistr/u16-prev-tests: New file.
4402         * tests/unistr/test-u16-prev.c: New file.
4403
4404         Tests for module 'unistr/u8-prev'.
4405         * modules/unistr/u8-prev-tests: New file.
4406         * tests/unistr/test-u8-prev.c: New file.
4407
4408         Tests for module 'unistr/u32-next'.
4409         * modules/unistr/u32-next-tests: New file.
4410         * tests/unistr/test-u32-next.c: New file.
4411
4412         Tests for module 'unistr/u16-next'.
4413         * modules/unistr/u16-next-tests: New file.
4414         * tests/unistr/test-u16-next.c: New file.
4415
4416         Tests for module 'unistr/u8-next'.
4417         * modules/unistr/u8-next-tests: New file.
4418         * tests/unistr/test-u8-next.c: New file.
4419
4420         Tests for module 'unistr/u32-strmbtouc'.
4421         * modules/unistr/u32-strmbtouc-tests: New file.
4422         * tests/unistr/test-u32-strmbtouc.c: New file.
4423
4424         Tests for module 'unistr/u16-strmbtouc'.
4425         * modules/unistr/u16-strmbtouc-tests: New file.
4426         * tests/unistr/test-u16-strmbtouc.c: New file.
4427
4428         Tests for module 'unistr/u8-strmbtouc'.
4429         * modules/unistr/u8-strmbtouc-tests: New file.
4430         * tests/unistr/test-u8-strmbtouc.c: New file.
4431
4432         Tests for module 'unistr/u32-strmblen'.
4433         * modules/unistr/u32-strmblen-tests: New file.
4434         * tests/unistr/test-u32-strmblen.c: New file.
4435
4436         Tests for module 'unistr/u16-strmblen'.
4437         * modules/unistr/u16-strmblen-tests: New file.
4438         * tests/unistr/test-u16-strmblen.c: New file.
4439
4440         Tests for module 'unistr/u8-strmblen'.
4441         * modules/unistr/u8-strmblen-tests: New file.
4442         * tests/unistr/test-u8-strmblen.c: New file.
4443
4444         Tests for module 'unistr/u32-cpy-alloc'.
4445         * modules/unistr/u32-cpy-alloc-tests: New file.
4446         * tests/unistr/test-u32-cpy-alloc.c: New file.
4447
4448         Tests for module 'unistr/u16-cpy-alloc'.
4449         * modules/unistr/u16-cpy-alloc-tests: New file.
4450         * tests/unistr/test-u16-cpy-alloc.c: New file.
4451
4452         Tests for module 'unistr/u8-cpy-alloc'.
4453         * modules/unistr/u8-cpy-alloc-tests: New file.
4454         * tests/unistr/test-u8-cpy-alloc.c: New file.
4455         * tests/unistr/test-cpy-alloc.h: New file.
4456
4457         Tests for module 'unistr/u32-mbsnlen'.
4458         * modules/unistr/u32-mbsnlen-tests: New file.
4459         * tests/unistr/test-u32-mbsnlen.c: New file.
4460
4461         Tests for module 'unistr/u16-mbsnlen'.
4462         * modules/unistr/u16-mbsnlen-tests: New file.
4463         * tests/unistr/test-u16-mbsnlen.c: New file.
4464
4465         Tests for module 'unistr/u8-mbsnlen'.
4466         * modules/unistr/u8-mbsnlen-tests: New file.
4467         * tests/unistr/test-u8-mbsnlen.c: New file.
4468
4469         Tests for module 'unistr/u32-chr'.
4470         * modules/unistr/u32-chr-tests: New file.
4471         * tests/unistr/test-u32-chr.c: New file.
4472
4473         Tests for module 'unistr/u16-chr'.
4474         * modules/unistr/u16-chr-tests: New file.
4475         * tests/unistr/test-u16-chr.c: New file.
4476
4477         Tests for module 'unistr/u8-chr'.
4478         * modules/unistr/u8-chr-tests: New file.
4479         * tests/unistr/test-u8-chr.c: New file.
4480         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4481
4482         Tests for module 'unistr/u32-cmp2'.
4483         * modules/unistr/u32-cmp2-tests: New file.
4484         * tests/unistr/test-u32-cmp2.c: New file.
4485
4486         Tests for module 'unistr/u16-cmp2'.
4487         * modules/unistr/u16-cmp2-tests: New file.
4488         * tests/unistr/test-u16-cmp2.c: New file.
4489
4490         Tests for module 'unistr/u8-cmp2'.
4491         * modules/unistr/u8-cmp2-tests: New file.
4492         * tests/unistr/test-u8-cmp2.c: New file.
4493         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4494
4495         Tests for module 'unistr/u32-cmp'.
4496         * modules/unistr/u32-cmp-tests: New file.
4497         * tests/unistr/test-u32-cmp.c: New file.
4498
4499         Tests for module 'unistr/u16-cmp'.
4500         * modules/unistr/u16-cmp-tests: New file.
4501         * tests/unistr/test-u16-cmp.c: New file.
4502
4503         Tests for module 'unistr/u8-cmp'.
4504         * modules/unistr/u8-cmp-tests: New file.
4505         * tests/unistr/test-u8-cmp.c: New file.
4506         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4507
4508         Tests for module 'unistr/u32-set'.
4509         * modules/unistr/u32-set-tests: New file.
4510         * tests/unistr/test-u32-set.c: New file.
4511
4512         Tests for module 'unistr/u16-set'.
4513         * modules/unistr/u16-set-tests: New file.
4514         * tests/unistr/test-u16-set.c: New file.
4515
4516         Tests for module 'unistr/u8-set'.
4517         * modules/unistr/u8-set-tests: New file.
4518         * tests/unistr/test-u8-set.c: New file.
4519         * tests/unistr/test-set.h: New file.
4520
4521         Tests for module 'unistr/u32-move'.
4522         * modules/unistr/u32-move-tests: New file.
4523         * tests/unistr/test-u32-move.c: New file.
4524
4525         Tests for module 'unistr/u16-move'.
4526         * modules/unistr/u16-move-tests: New file.
4527         * tests/unistr/test-u16-move.c: New file.
4528
4529         Tests for module 'unistr/u8-move'.
4530         * modules/unistr/u8-move-tests: New file.
4531         * tests/unistr/test-u8-move.c: New file.
4532         * tests/unistr/test-move.h: New file.
4533
4534         Tests for module 'unistr/u32-cpy'.
4535         * modules/unistr/u32-cpy-tests: New file.
4536         * tests/unistr/test-u32-cpy.c: New file.
4537
4538         Tests for module 'unistr/u16-cpy'.
4539         * modules/unistr/u16-cpy-tests: New file.
4540         * tests/unistr/test-u16-cpy.c: New file.
4541
4542         Tests for module 'unistr/u8-cpy'.
4543         * modules/unistr/u8-cpy-tests: New file.
4544         * tests/unistr/test-u8-cpy.c: New file.
4545         * tests/unistr/test-cpy.h: New file.
4546
4547 2010-01-09  Bruno Haible  <bruno@clisp.org>
4548
4549         Tests for module 'unistr/u32-uctomb'.
4550         * modules/unistr/u32-uctomb-tests: New file.
4551         * tests/unistr/test-u32-uctomb.c: New file.
4552
4553         Tests for module 'unistr/u16-uctomb'.
4554         * modules/unistr/u16-uctomb-tests: New file.
4555         * tests/unistr/test-u16-uctomb.c: New file.
4556
4557         Tests for module 'unistr/u8-uctomb'.
4558         * modules/unistr/u8-uctomb-tests: New file.
4559         * tests/unistr/test-u8-uctomb.c: New file.
4560
4561         Tests for module 'unistr/u32-mbtoucr'.
4562         * modules/unistr/u32-mbtoucr-tests: New file.
4563         * tests/unistr/test-u32-mbtoucr.c: New file.
4564
4565         Tests for module 'unistr/u16-mbtoucr'.
4566         * modules/unistr/u16-mbtoucr-tests: New file.
4567         * tests/unistr/test-u16-mbtoucr.c: New file.
4568
4569         Tests for module 'unistr/u8-mbtoucr'.
4570         * modules/unistr/u8-mbtoucr-tests: New file.
4571         * tests/unistr/test-u8-mbtoucr.c: New file.
4572
4573         Tests for module 'unistr/u32-mbtouc'.
4574         * modules/unistr/u32-mbtouc-tests: New file.
4575         * tests/unistr/test-u32-mbtouc.c: New file.
4576
4577         Tests for module 'unistr/u16-mbtouc'.
4578         * modules/unistr/u16-mbtouc-tests: New file.
4579         * tests/unistr/test-u16-mbtouc.c: New file.
4580
4581         Tests for module 'unistr/u8-mbtouc'.
4582         * modules/unistr/u8-mbtouc-tests: New file.
4583         * tests/unistr/test-u8-mbtouc.c: New file.
4584
4585         Tests for module 'unistr/u32-mbtouc-unsafe'.
4586         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4587         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4588         * tests/unistr/test-u32-mbtouc.h: New file.
4589
4590         Tests for module 'unistr/u16-mbtouc-unsafe'.
4591         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4592         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4593         * tests/unistr/test-u16-mbtouc.h: New file.
4594
4595         Tests for module 'unistr/u8-mbtouc-unsafe'.
4596         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4597         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4598         * tests/unistr/test-u8-mbtouc.h: New file.
4599
4600         Tests for module 'unistr/u32-mblen'.
4601         * modules/unistr/u32-mblen-tests: New file.
4602         * tests/unistr/test-u32-mblen.c: New file.
4603
4604         Tests for module 'unistr/u16-mblen'.
4605         * modules/unistr/u16-mblen-tests: New file.
4606         * tests/unistr/test-u16-mblen.c: New file.
4607
4608         Tests for module 'unistr/u8-mblen'.
4609         * modules/unistr/u8-mblen-tests: New file.
4610         * tests/unistr/test-u8-mblen.c: New file.
4611
4612         Tests for module 'unistr/u32-to-u16'.
4613         * modules/unistr/u32-to-u16-tests: New file.
4614         * tests/unistr/test-u32-to-u16.c: New file.
4615
4616         Tests for module 'unistr/u32-to-u8'.
4617         * modules/unistr/u32-to-u8-tests: New file.
4618         * tests/unistr/test-u32-to-u8.c: New file.
4619
4620         Tests for module 'unistr/u16-to-u32'.
4621         * modules/unistr/u16-to-u32-tests: New file.
4622         * tests/unistr/test-u16-to-u32.c: New file.
4623
4624         Tests for module 'unistr/u16-to-u8'.
4625         * modules/unistr/u16-to-u8-tests: New file.
4626         * tests/unistr/test-u16-to-u8.c: New file.
4627
4628         Tests for module 'unistr/u8-to-u32'.
4629         * modules/unistr/u8-to-u32-tests: New file.
4630         * tests/unistr/test-u8-to-u32.c: New file.
4631
4632         Tests for module 'unistr/u8-to-u16'.
4633         * modules/unistr/u8-to-u16-tests: New file.
4634         * tests/unistr/test-u8-to-u16.c: New file.
4635
4636         Tests for module 'unistr/u32-check'.
4637         * modules/unistr/u32-check-tests: New file.
4638         * tests/unistr/test-u32-check.c: New file.
4639
4640         Tests for module 'unistr/u16-check'.
4641         * modules/unistr/u16-check-tests: New file.
4642         * tests/unistr/test-u16-check.c: New file.
4643
4644         Tests for module 'unistr/u8-check'.
4645         * modules/unistr/u8-check-tests: New file.
4646         * tests/unistr/test-u8-check.c: New file.
4647
4648         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4649         (category_equals): New function.
4650         (main): Add more tests.
4651         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4652
4653         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4654
4655 2010-01-10  Bruno Haible  <bruno@clisp.org>
4656
4657         unistr/u*-strcoll: Try harder to distinguish different strings.
4658         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4659         compare s1 and s2 to see if they are different.
4660
4661 2010-01-10  Bruno Haible  <bruno@clisp.org>
4662
4663         unistr/u*-stpncpy: Fix the return value.
4664         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4665         description of the return value consistent with stpncpy in glibc.
4666         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4667         written non-NUL unit.
4668
4669 2010-01-10  Bruno Haible  <bruno@clisp.org>
4670
4671         unistr/u*-next: Add missing dependencies.
4672         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4673         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4674         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4675
4676 2010-01-10  Bruno Haible  <bruno@clisp.org>
4677
4678         unistr/u8-mbsnlen: Fix return value for incomplete character.
4679         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4680         u8_mblen.
4681         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4682         Remove unistr/u8-mblen.
4683         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4684         u16_mblen.
4685         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4686         Remove unistr/u16-mblen.
4687
4688 2010-01-10  Bruno Haible  <bruno@clisp.org>
4689
4690         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4691         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4692         Reported by Brian Gough <bjg@gnu.org> and
4693         Chris Clayton <chris2553@googlemail.com> via
4694         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4695
4696 2010-01-09  Bruno Haible  <bruno@clisp.org>
4697
4698         unistr/u16-to-u32: Reject invalid input.
4699         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4700         u16_mbtouc.
4701         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4702         Remove unistr/u16-mbtouc.
4703
4704         unistr/u16-to-u8: Reject invalid input.
4705         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4706         u16_mbtouc.
4707         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4708         Remove unistr/u16-mbtouc.
4709
4710         unistr/u8-to-u32: Reject invalid input.
4711         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4712         u8_mbtouc.
4713         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4714         Remove unistr/u8-mbtouc.
4715
4716         unistr/u8-to-u16: Reject invalid input.
4717         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4718         u8_mbtouc.
4719         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4720         Remove unistr/u8-mbtouc.
4721
4722 2010-01-09  Bruno Haible  <bruno@clisp.org>
4723
4724         Tests for module 'getlogin'.
4725         * modules/getlogin-tests: New file.
4726         * tests/test-getlogin.c: New file.
4727
4728         New module 'getlogin'.
4729         * lib/unistd.in.h (getlogin): New declaration.
4730         * lib/getlogin.c: New file.
4731         * m4/getlogin.m4: New file.
4732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4733         HAVE_GETLOGIN.
4734         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4735         HAVE_GETLOGIN.
4736         * modules/getlogin: New file.
4737         * doc/posix-functions/getlogin.texi: Mention the new module.
4738         Reported by John W. Eaton <jwe@gnu.org>.
4739
4740 2010-01-09  Bruno Haible  <bruno@clisp.org>
4741
4742         getlogin_r: Support for native Windows.
4743         * lib/getlogin_r.c: Include <windows.h>
4744         (getlogin_r): Implement for native Windows.
4745         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4746         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4747         via John W. Eaton <jwe@gnu.org>.
4748
4749 2010-01-09  Bruno Haible  <bruno@clisp.org>
4750
4751         getlogin_r: Small fixes.
4752         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4753         succeeds.
4754         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4755         before testing whether getlogin_r is declared. No need to set
4756         HAVE_DECL_GETLOGIN_R to 1.
4757         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4758
4759 2010-01-09  Bruno Haible  <bruno@clisp.org>
4760
4761         * lib/unistd.in.h (getlogin_r): Add comment.
4762
4763 2010-01-09  Bruno Haible  <bruno@clisp.org>
4764
4765         Tests for module 'getlogin_r'.
4766         * modules/getlogin_r-tests: New file.
4767         * tests/test-getlogin_r.c: New file.
4768
4769 2010-01-09  Jim Meyering  <meyering@redhat.com>
4770
4771         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4772         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4773         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4774
4775 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4776
4777         * lib/dup2.c (rpl_dup2): Improve comment.
4778
4779 2010-01-08  Eric Blake  <ebb9@byu.net>
4780
4781         maint.mk: allow packages to add makefile @@ exceptions
4782         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4783         (sc_makefile_check): Rename...
4784         (sc_makefile_at_at_check): ...to this, and use hook.
4785
4786         dup2: work around mingw bug
4787         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4788         Reported by Simon Josefsson.
4789
4790 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4791
4792         glob: Fix C++ compilation.
4793         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4794         C++.
4795
4796 2010-01-07  Bruno Haible  <bruno@clisp.org>
4797
4798         Fix indentation of wctype.in.h, broken since 2007-01-06.
4799         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4800
4801 2010-01-07  Bruno Haible  <bruno@clisp.org>
4802
4803         mbslen: Avoid collision with system function.
4804         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4805         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4806         * m4/mbslen.m4: New file.
4807         * modules/mbslen (Files): Add it.
4808         (configure.ac): Invoke gl_MBSLEN.
4809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4810         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4811         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4812         via Ian Beckwith <ianb@erislabs.net>.
4813
4814 2010-01-07  Bruno Haible  <bruno@clisp.org>
4815
4816         dirent: Document the last fix.
4817         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4818
4819 2010-01-07  Bruno Haible  <bruno@clisp.org>
4820
4821         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4822         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4823         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4824         va_list are defined.
4825         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4826         Reported by Eric Blake.
4827
4828 2010-01-07  Bruno Haible  <bruno@clisp.org>
4829
4830         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4831         * modules/xlist (Depends-on): Add 'list',
4832         * modules/xoset (Depends-on): Add 'oset'.
4833         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4834
4835 2010-01-07  Bruno Haible  <bruno@clisp.org>
4836
4837         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4838         * doc/posix-functions/strncasecmp.texi: Likewise.
4839
4840 2010-01-07  Bruno Haible  <bruno@clisp.org>
4841
4842         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4843
4844 2010-01-07  John W. Eaton  <jwe@octave.org>
4845
4846         wctype: allow C++ use
4847         * lib/wctype.in.h: Add extern "C" block for C++.
4848
4849 2010-01-06  Eric Blake  <ebb9@byu.net>
4850
4851         maint.mk: detect incorrect GFDL usage
4852         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4853
4854 2010-01-06  Jim Meyering  <meyering@redhat.com>
4855         and Eric Blake  <ebb9@byu.net>
4856
4857         maint.mk: ignore multi-line copyright in NEWS
4858         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4859
4860 2010-01-06  Eric Blake  <ebb9@byu.net>
4861
4862         select: add missing dependency
4863         * modules/select-tests (Depends-on): Move sockets dependency...
4864         * modules/select (Depends-on): ...here.
4865         Reported by Ian Beckwith.
4866
4867         doc: regenerate INSTALL
4868         * doc/INSTALL: Reflect recent autoconf update.
4869         * doc/INSTALL.ISO: Likewise.
4870         * doc/INSTALL.UTF-8: Likewise.
4871
4872         pread: fix compilation on glibc
4873         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4874         Reported by Ralf Wildenhues.
4875
4876         dirent: fix test failure
4877         * lib/dirent.in.h (includes): Guarantee ino_t.
4878         Reported by Ralf Wildenhues.
4879
4880 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4881
4882         linkat, renameat: avoid bad free
4883         * lib/at-func2.c (at_func2): Fix typo.
4884         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4885
4886 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4887
4888         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4889         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4890         to avoid failure of symlink test later.
4891
4892 2010-01-06  Eric Blake  <ebb9@byu.net>
4893
4894         stdio, unistd: guarantee ssize_t
4895         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4896         2008 are exposed when needed.
4897         * lib/stdio.in.h (includes): Likewise.
4898         Reported by Ralf Wildenhues.
4899
4900 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4901
4902         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4903         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4904         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4905
4906 2010-01-06  Jim Meyering  <meyering@redhat.com>
4907
4908         readtokens: this module *does* require xalloc.h
4909         It uses only functions that were omitted by the old syntax-check rule.
4910         * lib/readtokens.c: Include "xalloc.h" once again.
4911         * modules/readtokens (Depends-on): Add xalloc.
4912         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4913
4914 2010-01-05  Eric Blake  <ebb9@byu.net>
4915
4916         maint: support 'make announcement' from a VPATH build
4917         * top/maint.mk (announcement): Look for correct NEWS file.
4918
4919 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4920
4921         utimens (fdutimens): ignore a negative FD, per contract
4922         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4923         when we have a valid file descriptor.  Otherwise, using a brand
4924         new glibc (with just-patched futimens that now fails with EBADF)
4925         would cause this function to fail with ENOSYS.
4926         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4927         See also http://bugzilla.redhat.com/552320.
4928
4929 2010-01-05  Eric Blake  <ebb9@byu.net>
4930
4931         strcase: document what it provides
4932         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4933         gnulib module.
4934         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4935         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4936
4937 2010-01-05  Jim Meyering  <meyering@redhat.com>
4938
4939         maint: remove useless inclusions of "xalloc.h"
4940         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4941         * lib/readtokens.c: Likewise.
4942         * lib/same.c: Likewise.
4943         * modules/getloadavg (Depends-on): Remove xalloc.
4944         * modules/readtokens: Likewise.
4945         * modules/same: Likewise.
4946
4947         maint.mk: include 4 more function names in alloca.h-checking regexp
4948         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4949         regexp.  Before, we would give a false-positive (saying alloca.h
4950         is included unnecessarily) when the only uses involved omitted symbols.
4951
4952         xalloc.h: use consistent formatting
4953         * lib/xalloc.h: Move declarations to start in the first column.
4954
4955 2010-01-05  Eric Blake  <ebb9@byu.net>
4956
4957         mkdir: avoid xalloc
4958         * lib/mkdir.c (includes): Drop unused header.
4959         Reported by John W. Eaton.
4960
4961 2010-01-04  Jim Meyering  <meyering@redhat.com>
4962
4963         nl_langinfo: avoid configure-time syntax error
4964         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4965         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4966         the empty string.  Don't let that provoke a shell syntax error.
4967
4968         regcomp, regexec, fnmatch: avoid array bounds read error
4969         * lib/regcomp.c (build_equiv_class): From glibc:
4970         Use only the low 24 bits of a findidx return value as an index
4971         into the weights array.  Patch by Ulrich Drepper:
4972         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4973         * lib/regexec.c (check_node_accept_bytes): Likewise.
4974         * lib/fnmatch_loop.c (FCT): Likewise.
4975
4976         regcomp: skip collseq lookup when there are no rules
4977         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4978         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4979
4980         regcomp: recognize ill-formed { } expressions
4981         * lib/regcomp.c (parse_dup_op): From glibc:
4982         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4983
4984         regcomp: fix typo in comment
4985         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4986         s/satisfy/satisfies/.
4987
4988         regcomp: sync from glibc: remove dead store
4989         * lib/regcomp.c (duplicate_node_closure): Remove useless
4990         search_duplicated_node call and dead store.
4991
4992         regcomp: sync from glibc; always use nl_langinfo
4993         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4994         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4995         * modules/regex (Depends-on): Add nl_langinfo.
4996
4997 2010-01-04  Eric Blake  <ebb9@byu.net>
4998
4999         fdopendir: fix configure test
5000         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
5001
5002 2010-01-01  Bruno Haible  <bruno@clisp.org>
5003
5004         wchar: Remove unused configure check.
5005         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
5006
5007 2010-01-01  Eric Blake  <ebb9@byu.net>
5008
5009         headers: make check of system header explicit
5010         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
5011         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
5012         ourselves.
5013         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5014         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5015         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
5016         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
5017         internals.
5018         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
5019         missing.
5020         Suggested by Bruno Haible.
5021
5022 2010-01-01  Jim Meyering  <meyering@redhat.com>
5023
5024         ChangeLog: tweak to eliminate unnecessary copyright line
5025         * ChangeLog: Remove a copyright line that was mistakenly updated
5026         by today's update-copyright run.  Reported by Eric Blake.
5027
5028         test-update-copyright: don't let envvar setting cause test failure
5029         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5030
5031 2010-01-01  Bruno Haible  <bruno@clisp.org>
5032
5033         localename: Avoid gcc warning.
5034         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
5035         function if it is not used.
5036
5037 2010-01-01  Jim Meyering  <meyering@redhat.com>
5038
5039         update nearly all FSF copyright year lists to include 2010
5040         Use the same procedure as for 2009, outlined in
5041         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
5042
5043         version-etc: set COPYRIGHT_YEAR to 2010
5044         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
5045
5046 2009-12-31  Eric Blake  <ebb9@byu.net>
5047
5048         doc: correct availability of cygwin 1.5.x getopt
5049         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
5050         variables.
5051         * doc/posix-functions/opterr.texi (opterr): Likewise.
5052         * doc/posix-functions/optind.texi (optind): Likewise.
5053         * doc/posix-functions/optopt.texi (optopt): Likewise.
5054         * doc/posix-functions/tzname.texi (tzname): Likewise.
5055
5056         openat: update maintainer
5057         * modules/openat (Maintainer): Add myself.
5058
5059         utimens: avoid shadowing warning
5060         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
5061         buffers into one, to avoid shadowing, as well as avoiding a
5062         redundant stat.
5063         Reported by Jim Meyering.
5064
5065         test-dup2: avoid compiler warning
5066         * tests/test-dup2.c (is_inheritable): Only define if used.
5067
5068 2010-01-01  Bruno Haible  <bruno@clisp.org>
5069
5070         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
5071         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
5072         defined, use wctomb instead of wcrtomb.
5073
5074 2010-01-01  Bruno Haible  <bruno@clisp.org>
5075
5076         iconv: Reject native Solaris iconv.
5077         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
5078         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
5079
5080 2009-12-31  Bruno Haible  <bruno@clisp.org>
5081
5082         * tests/test-signal.c (main): Remove test of 'SIG'.
5083
5084 2009-12-31  Bruno Haible  <bruno@clisp.org>
5085
5086         spawn: Fix incomplete fix.
5087         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
5088         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
5089         warnings for GNULIB_POSIXCHECK again.
5090         Reported by Eric Blake.
5091
5092 2009-12-31  Bruno Haible  <bruno@clisp.org>
5093
5094         Avoid namespace pollution on glibc systems.
5095         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
5096         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
5097         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
5098         glibc systems.
5099
5100 2009-12-31  Bruno Haible  <bruno@clisp.org>
5101
5102         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
5103         (gl_REPLACE_WCHAR_H): Turn into a no-op.
5104         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
5105         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5106         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5107         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5108         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5109
5110 2009-12-31  Bruno Haible  <bruno@clisp.org>
5111
5112         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5113         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
5114         afterwards.
5115
5116 2009-12-31  Bruno Haible  <bruno@clisp.org>
5117
5118         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
5119         SYS_UTSNAME_H.
5120
5121 2009-12-31  Bruno Haible  <bruno@clisp.org>
5122
5123         spawn: Fix misapplied patch.
5124         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
5125         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
5126         warnings for GNULIB_POSIXCHECK.
5127
5128 2009-12-31  Bruno Haible  <bruno@clisp.org>
5129
5130         times: Update after sys_times changed.
5131         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
5132         * modules/times (Files): Add it.
5133         (configure.ac): Invoke gl_FUNC_TIMES.
5134
5135 2009-12-31  Bruno Haible  <bruno@clisp.org>
5136
5137         Use AC_C_INLINE where necessary.
5138         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
5139         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
5140         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
5141         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
5142         * m4/mbfile.m4 (gl_MBFILE): Likewise.
5143         * m4/mbiter.m4 (gl_MBITER): Likewise.
5144         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5145         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5146         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
5147         * modules/u64 (configure.ac): Likewise.
5148
5149 2009-12-31  Bruno Haible  <bruno@clisp.org>
5150
5151         Use AC_C_INLINE instead of module 'inline' where possible.
5152         * modules/inline (Description): Clarify purpose.
5153         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
5154         * modules/count-one-bits (Depends-on): Remove inline.
5155         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
5156         * modules/openat (Depends-on): Remove inline.
5157         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
5158         instead of depending on module 'inline'.
5159         * modules/filevercmp (Depends-on, configure.ac): Likewise.
5160         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
5161         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
5162         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
5163         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
5164         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
5165         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
5166         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
5167         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
5168         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
5169         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
5170         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
5171         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
5172         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
5173         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
5174         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
5175         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
5176         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
5177         Likewise.
5178         * modules/unictype/property-ascii-hex-digit (Depends-on,
5179         configure.ac): Likewise.
5180         * modules/unictype/property-bidi-arabic-digit (Depends-on,
5181         configure.ac): Likewise.
5182         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
5183         configure.ac): Likewise.
5184         * modules/unictype/property-bidi-block-separator (Depends-on,
5185         configure.ac): Likewise.
5186         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
5187         configure.ac): Likewise.
5188         * modules/unictype/property-bidi-common-separator (Depends-on,
5189         configure.ac): Likewise.
5190         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
5191         Likewise.
5192         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
5193         configure.ac): Likewise.
5194         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
5195         configure.ac): Likewise.
5196         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
5197         configure.ac): Likewise.
5198         * modules/unictype/property-bidi-european-digit (Depends-on,
5199         configure.ac): Likewise.
5200         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
5201         configure.ac): Likewise.
5202         * modules/unictype/property-bidi-left-to-right (Depends-on,
5203         configure.ac): Likewise.
5204         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
5205         configure.ac): Likewise.
5206         * modules/unictype/property-bidi-other-neutral (Depends-on,
5207         configure.ac): Likewise.
5208         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
5209         Likewise.
5210         * modules/unictype/property-bidi-segment-separator (Depends-on,
5211         configure.ac): Likewise.
5212         * modules/unictype/property-bidi-whitespace (Depends-on,
5213         configure.ac): Likewise.
5214         * modules/unictype/property-combining (Depends-on, configure.ac):
5215         Likewise.
5216         * modules/unictype/property-composite (Depends-on, configure.ac):
5217         Likewise.
5218         * modules/unictype/property-currency-symbol (Depends-on,
5219         configure.ac): Likewise.
5220         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
5221         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
5222         Likewise.
5223         * modules/unictype/property-default-ignorable-code-point (Depends-on,
5224         configure.ac): Likewise.
5225         * modules/unictype/property-deprecated (Depends-on, configure.ac):
5226         Likewise.
5227         * modules/unictype/property-diacritic (Depends-on, configure.ac):
5228         Likewise.
5229         * modules/unictype/property-extender (Depends-on, configure.ac):
5230         Likewise.
5231         * modules/unictype/property-format-control (Depends-on, configure.ac):
5232         Likewise.
5233         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
5234         Likewise.
5235         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
5236         Likewise.
5237         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
5238         Likewise.
5239         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
5240         Likewise.
5241         * modules/unictype/property-hyphen (Depends-on, configure.ac):
5242         Likewise.
5243         * modules/unictype/property-id-continue (Depends-on, configure.ac):
5244         Likewise.
5245         * modules/unictype/property-id-start (Depends-on, configure.ac):
5246         Likewise.
5247         * modules/unictype/property-ideographic (Depends-on, configure.ac):
5248         Likewise.
5249         * modules/unictype/property-ids-binary-operator (Depends-on,
5250         configure.ac): Likewise.
5251         * modules/unictype/property-ids-trinary-operator (Depends-on,
5252         configure.ac): Likewise.
5253         * modules/unictype/property-ignorable-control (Depends-on,
5254         configure.ac): Likewise.
5255         * modules/unictype/property-iso-control (Depends-on, configure.ac):
5256         Likewise.
5257         * modules/unictype/property-join-control (Depends-on, configure.ac):
5258         Likewise.
5259         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
5260         Likewise.
5261         * modules/unictype/property-line-separator (Depends-on, configure.ac):
5262         Likewise.
5263         * modules/unictype/property-logical-order-exception (Depends-on,
5264         configure.ac): Likewise.
5265         * modules/unictype/property-lowercase (Depends-on, configure.ac):
5266         Likewise.
5267         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
5268         * modules/unictype/property-non-break (Depends-on, configure.ac):
5269         Likewise.
5270         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
5271         Likewise.
5272         * modules/unictype/property-numeric (Depends-on, configure.ac):
5273         Likewise.
5274         * modules/unictype/property-other-alphabetic (Depends-on,
5275         configure.ac): Likewise.
5276         * modules/unictype/property-other-default-ignorable-code-point
5277         (Depends-on, configure.ac): Likewise.
5278         * modules/unictype/property-other-grapheme-extend (Depends-on,
5279         configure.ac): Likewise.
5280         * modules/unictype/property-other-id-continue (Depends-on,
5281         configure.ac): Likewise.
5282         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
5283         Likewise.
5284         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
5285         Likewise.
5286         * modules/unictype/property-other-math (Depends-on, configure.ac):
5287         Likewise.
5288         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
5289         Likewise.
5290         * modules/unictype/property-paired-punctuation (Depends-on,
5291         configure.ac): Likewise.
5292         * modules/unictype/property-paragraph-separator (Depends-on,
5293         configure.ac): Likewise.
5294         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
5295         Likewise.
5296         * modules/unictype/property-pattern-white-space (Depends-on,
5297         configure.ac): Likewise.
5298         * modules/unictype/property-private-use (Depends-on, configure.ac):
5299         Likewise.
5300         * modules/unictype/property-punctuation (Depends-on, configure.ac):
5301         Likewise.
5302         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
5303         Likewise.
5304         * modules/unictype/property-radical (Depends-on, configure.ac):
5305         Likewise.
5306         * modules/unictype/property-sentence-terminal (Depends-on,
5307         configure.ac): Likewise.
5308         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
5309         Likewise.
5310         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
5311         * modules/unictype/property-terminal-punctuation (Depends-on,
5312         configure.ac): Likewise.
5313         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5314         Likewise.
5315         * modules/unictype/property-unassigned-code-value (Depends-on,
5316         configure.ac): Likewise.
5317         * modules/unictype/property-unified-ideograph (Depends-on,
5318         configure.ac): Likewise.
5319         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5320         Likewise.
5321         * modules/unictype/property-variation-selector (Depends-on,
5322         configure.ac): Likewise.
5323         * modules/unictype/property-white-space (Depends-on, configure.ac):
5324         Likewise.
5325         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5326         Likewise.
5327         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5328         Likewise.
5329         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5330         Likewise.
5331         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5332         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5333         Likewise.
5334
5335 2009-12-31  Bruno Haible  <bruno@clisp.org>
5336
5337         Remove unnecessary AC_C_INLINE invocation.
5338         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5339         since 2009-08-21.
5340
5341 2009-12-31  Jim Meyering  <meyering@redhat.com>
5342
5343         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5344         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5345         With this change, we can all remove the gpg_key_ID = ... definition
5346         from our respective cfg.mk files.
5347
5348         maint.mk: create announcement template in ~/, not in /tmp
5349         * top/maint.mk (emit_upload_commands): Adjust.
5350         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5351         Remove temporary file, .ci-msg.
5352
5353 2009-12-31  Eric Blake  <ebb9@byu.net>
5354
5355         link-warning: always build headers with link warnings
5356         * modules/arpa_inet (Makefile.am): Always build replacement
5357         header.
5358         * modules/ctype (Makefile.am): Likewise.
5359         * modules/dirent (Makefile.am): Likewise.
5360         * modules/inttypes (Makefile.am): Likewise.
5361         * modules/langinfo (Makefile.am): Likewise.
5362         * modules/locale (Makefile.am): Likewise.
5363         * modules/spawn (Makefile.am): Likewise.
5364         * modules/sys_file (Makefile.am): Likewise.
5365         * modules/sys_ioctl (Makefile.am): Likewise.
5366         * modules/sys_select (Makefile.am): Likewise.
5367         * modules/sys_socket (Makefile.am): Likewise.
5368         * modules/sys_times (Makefile.am): Likewise.
5369         * modules/sys_utsname (Makefile.am): Likewise.
5370         * modules/sys_wait (Makefile.am): Likewise.
5371         * modules/wchar (Makefile.am): Likewise.
5372         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5373         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5374         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5375         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5376         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5377         Likewise.
5378         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5379         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5380         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5381         Likewise.
5382         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5383         Likewise.
5384         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5385         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5386         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5388         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5389         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5390         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5391         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5392         (gl_WCHAR_H_DEFAULTS): Likewise.
5393
5394 2009-12-31  Eric Blake  <ebb9@byu.net>
5395
5396         signal, spawn: use link warnings
5397         * lib/signal.in.h (sigset_t): Make unconditional.
5398         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5399         (sigpending, sigprocmask, sigaction): Add link warnings.
5400         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5401         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5402         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5403         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5404         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5405         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5406         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5407         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5408         (posix_spawn_file_actions_destroy)
5409         (posix_spawn_file_actions_addopen)
5410         (posix_spawn_file_actions_addclose)
5411         (posix_spawn_file_actions_adddup2): Likewise.
5412         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5413         * tests/test-signal.c (main): Enhance test.
5414
5415         spawn: improve wrapper support
5416         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5417         (gl_SPAWN_H_DEFAULTS): New defaults.
5418         * modules/spawn (Makefile.am): Substitute them.
5419         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5420         Only declare if missing or broken.
5421
5422         sys_times, sys_utsname: use include_next
5423         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5424         header.
5425         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5426         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5427         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5428         * modules/sys_times (Depends-on): Add include_next.
5429         (Makefile.am): Substitute additional values.
5430         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5431         * lib/sys_times.in.h (includes): Include native header, if
5432         available.
5433         * lib/sys_utsname.in.h (includes): Likewise.
5434         * tests/test-sys_times.c (main): Enhance test.
5435
5436         fdutimensat: revert prior patch
5437         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5438         utimens.h.
5439         Reported by Bruno Haible.
5440
5441 2009-12-30  Eric Blake  <ebb9@byu.net>
5442
5443         sys_wait: drop link-warning dependency
5444         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5445         link-warning efforts.
5446         * lib/sys_wait.in.h: Likewise.
5447
5448         fdutimensat: remove bogus dependency
5449         * modules/fdutimensat (Depends-on): Drop inline.
5450
5451         unistd: fix typo
5452         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5453
5454 2009-12-30  Bruno Haible  <bruno@clisp.org>
5455
5456         Fix compilation error with Solaris cc.
5457         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5458         * lib/unicase/u16-is-invariant.c: Likewise.
5459         * lib/unicase/u32-is-invariant.c: Likewise.
5460         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5461
5462 2009-12-30  Bruno Haible  <bruno@clisp.org>
5463
5464         Fix test crash.
5465         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5466         locales.
5467         Reported by Simon Josefsson <simon@josefsson.org>.
5468
5469 2009-12-30  Bruno Haible  <bruno@clisp.org>
5470
5471         Fix compilation error on most platforms.
5472         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5473         Reported by Simon Josefsson <simon@josefsson.org>
5474         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5475
5476 2009-12-30  Eric Blake  <ebb9@byu.net>
5477
5478         futimens, utimensat: work around ntfs-3g bug
5479         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5480         a ctime bug is present, and expand workaround to cover ntfs-3g.
5481         * lib/utimens.c (fdutimens, lutimens): Likewise.
5482         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5483         (validate_timespec): Adjust return value.
5484         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5485         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5486         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5487
5488 2009-12-29  Eric Blake  <ebb9@byu.net>
5489
5490         link-warning: make usage consistent
5491         * modules/ctype (Depends-on): Add link-warning.
5492         (Makefile.am): Update rules accordingly.
5493         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5494         * modules/locale (Depends-on, Makefile.am): Likewise.
5495         * modules/sys_file (Makefile.am): Likewise.
5496         * modules/getopt-posix (Makefile.am): Delete unused link warning
5497         efforts.
5498         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5499         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5500         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5501         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5502
5503         stdio: remove unused variables
5504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5505         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5506         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5507
5508         tests: test more substitute headers
5509         * modules/ctype-tests: New file.
5510         * modules/dirent-tests: Likewise.
5511         * modules/spawn-tests: Likewise.
5512         * modules/sys_file-tests: Likewise.
5513         * modules/sys_ioctl-tests: Likewise.
5514         * modules/sys_wait-tests: Likewise.
5515         * tests/test-ctype.c: Likewise.
5516         * tests/test-dirent.c: Likewise.
5517         * tests/test-spawn.c: Likewise.
5518         * tests/test-sys_file.c: Likewise.
5519         * tests/test-sys_ioctl.c: Likewise.
5520         * tests/test-sys_wait.c: Likewise.
5521         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5522         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5523         whether or not flock is in use.
5524
5525         tests: remove License section from module
5526         * modules/arpa_inet-tests: Remove unneeded section.
5527         * modules/byteswap-tests: Likewise.
5528         * modules/ceilf-tests: Likewise.
5529         * modules/ceill-tests: Likewise.
5530         * modules/crypto/des-tests: Likewise.
5531         * modules/crypto/gc-arcfour-tests: Likewise.
5532         * modules/crypto/gc-arctwo-tests: Likewise.
5533         * modules/crypto/gc-des-tests: Likewise.
5534         * modules/crypto/gc-hmac-md5-tests: Likewise.
5535         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5536         * modules/crypto/gc-md2-tests: Likewise.
5537         * modules/crypto/gc-md4-tests: Likewise.
5538         * modules/crypto/gc-md5-tests: Likewise.
5539         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5540         * modules/crypto/gc-rijndael-tests: Likewise.
5541         * modules/crypto/gc-sha1-tests: Likewise.
5542         * modules/crypto/gc-tests: Likewise.
5543         * modules/crypto/md2-tests: Likewise.
5544         * modules/crypto/md4-tests: Likewise.
5545         * modules/fcntl-h-tests: Likewise.
5546         * modules/floorf-tests: Likewise.
5547         * modules/floorl-tests: Likewise.
5548         * modules/frexp-nolibm-tests: Likewise.
5549         * modules/frexp-tests: Likewise.
5550         * modules/frexpl-nolibm-tests: Likewise.
5551         * modules/frexpl-tests: Likewise.
5552         * modules/getaddrinfo-tests: Likewise.
5553         * modules/inttypes-tests: Likewise.
5554         * modules/isfinite-tests: Likewise.
5555         * modules/isinf-tests: Likewise.
5556         * modules/ldexpl-tests: Likewise.
5557         * modules/locale-tests: Likewise.
5558         * modules/math-tests: Likewise.
5559         * modules/netdb-tests: Likewise.
5560         * modules/netinet_in-tests: Likewise.
5561         * modules/printf-frexp-tests: Likewise.
5562         * modules/printf-frexpl-tests: Likewise.
5563         * modules/priv-set-tests: Likewise.
5564         * modules/random_r-tests: Likewise.
5565         * modules/round-tests: Likewise.
5566         * modules/roundf-tests: Likewise.
5567         * modules/roundl-tests: Likewise.
5568         * modules/search-tests: Likewise.
5569         * modules/select-tests: Likewise.
5570         * modules/signal-tests: Likewise.
5571         * modules/stdbool-tests: Likewise.
5572         * modules/stddef-tests: Likewise.
5573         * modules/stdint-tests: Likewise.
5574         * modules/stdio-tests: Likewise.
5575         * modules/stdlib-tests: Likewise.
5576         * modules/string-tests: Likewise.
5577         * modules/strings-tests: Likewise.
5578         * modules/sys_select-tests: Likewise.
5579         * modules/sys_socket-tests: Likewise.
5580         * modules/sys_stat-tests: Likewise.
5581         * modules/sys_time-tests: Likewise.
5582         * modules/sys_utsname-tests: Likewise.
5583         * modules/sysexits-tests: Likewise.
5584         * modules/time-tests: Likewise.
5585         * modules/trunc-tests: Likewise.
5586         * modules/truncf-tests: Likewise.
5587         * modules/truncl-tests: Likewise.
5588         * modules/tsearch-tests: Likewise.
5589         * modules/unistd-tests: Likewise.
5590         * modules/wchar-tests: Likewise.
5591         * modules/wctype-tests: Likewise.
5592
5593         tests: fix license on several tests
5594         * tests/test-des.c: Update to GPLv3+.
5595         * tests/test-flock.c: Likewise.
5596         * tests/test-fsync.c: Likewise.
5597         * tests/test-futimens.h: Likewise.
5598         * tests/test-gc-arcfour.c: Likewise.
5599         * tests/test-gc-arctwo.c: Likewise.
5600         * tests/test-gc-des.c: Likewise.
5601         * tests/test-gc-hmac-md5.c: Likewise.
5602         * tests/test-gc-hmac-sha1.c: Likewise.
5603         * tests/test-gc-md2.c: Likewise.
5604         * tests/test-gc-md4.c: Likewise.
5605         * tests/test-gc-md5.c: Likewise.
5606         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5607         * tests/test-gc-rijndael.c: Likewise.
5608         * tests/test-gc-sha1.c: Likewise.
5609         * tests/test-gc.c: Likewise.
5610         * tests/test-getcwd.c: Likewise.
5611         * tests/test-link.c: Likewise.
5612         * tests/test-link.h: Likewise.
5613         * tests/test-lutimens.h: Likewise.
5614         * tests/test-md2.c: Likewise.
5615         * tests/test-md4.c: Likewise.
5616         * tests/test-mkdir.h: Likewise.
5617         * tests/test-rename.c: Likewise.
5618         * tests/test-rename.h: Likewise.
5619         * tests/test-safe-alloc.c: Likewise.
5620         * tests/test-utimens-common.h: Likewise.
5621         * tests/test-utimens.h: Likewise.
5622
5623         maint: sync license texts
5624         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5625         * doc/gpl-3.0.texi: Revert copyright year update.
5626         * doc/lgpl-3.0.texi: Likewise.
5627
5628 2009-12-29  Jim Meyering  <meyering@redhat.com>
5629
5630         update nearly all FSF copyright year lists to include 2009
5631         The files named by the following are exempted:
5632             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5633               test -f "$dst" && { echo "$dst"; continue; }
5634               test -d "$dst" || continue
5635               echo "$dst"/$(basename "$src")
5636             done > exempt
5637             git ls-files tests/unictype >> exempt
5638         In the remaining files, convert to all-interval notation if
5639         - there is already at least one year interval like 2000-2003
5640         - the file is maintained by me
5641         - the file is in lib/uni*/, where that style already prevails
5642         Otherwise, use update-copyright's default.
5643
5644 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5645         and Eric Blake  <ebb9@byu.net>
5646
5647         tests: don't require debug system() to pass
5648         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5649         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5650         * tests/test-unlink.h (test_unlink_func): Likewise.
5651         * tests/test-fstatat.c (main): ...into callers.
5652         * tests/test-lstat.c (main): Likewise.
5653         * tests/test-rmdir.c (main): Likewise.
5654         * tests/test-unlink.c (main): Likewise.
5655         * tests/test-unlinkat.c (main): Likewise.
5656         * tests/test-areadlink-with-size.c (main): Don't require a
5657         debug-only system call to pass, aiding cross-testing to mingw.
5658         * tests/test-areadlink.c (main): Likewise.
5659         * tests/test-areadlinkat-with-size.c (main): Likewise.
5660         * tests/test-areadlinkat.c (main): Likewise.
5661         * tests/test-canonicalize-lgpl.c (main): Likewise.
5662         * tests/test-canonicalize.c (main): Likewise.
5663         * tests/test-chown.c (main): Likewise.
5664         * tests/test-fchownat.c (main): Likewise.
5665         * tests/test-lchown.c (main): Likewise.
5666         * tests/test-fdutimensat.c (main): Likewise.
5667         * tests/test-futimens.c (main): Likewise.
5668         * tests/test-link.c (main): Likewise.
5669         * tests/test-linkat.c (main): Likewise.
5670         * tests/test-mkdir.c (main): Likewise.
5671         * tests/test-mkdirat.c (main): Likewise.
5672         * tests/test-mkfifo.c (main): Likewise.
5673         * tests/test-mkfifoat.c (main): Likewise.
5674         * tests/test-mknod.c (main): Likewise.
5675         * tests/test-readlink.c (main): Likewise.
5676         * tests/test-remove.c (main): Likewise.
5677         * tests/test-rename.c (main): Likewise.
5678         * tests/test-renameat.c (main): Likewise.
5679         * tests/test-symlink.c (main): Likewise.
5680         * tests/test-symlinkat.c (main): Likewise.
5681         * tests/test-utimens.c (main): Likewise.
5682         * tests/test-utimensat.c (main): Likewise.
5683
5684 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5685
5686         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5687         on $(UNUSED_PARAMETER_H) to avoid build failure.
5688
5689 2009-12-28  Jim Meyering  <meyering@redhat.com>
5690
5691         update-copyright: you may specify a max. line length other than 72
5692         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5693
5694         maint: use consistent FSF copyright line syntax
5695         * lib/posixtm.c: Add missing comma in FSF copyright line.
5696         * lib/posixtm.h: Likewise.
5697         * lib/getugroups.c: Add missing ", Inc.".
5698
5699         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5700         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5701         FSF copyright line.  Remove trailing blanks.
5702
5703 2009-12-28  Eric Blake  <ebb9@byu.net>
5704
5705         test-dup2: reduce dependencies
5706         * modules/cloexec (Configure.ac): Set witness.
5707         * modules/dup2-tests (Depends-on): Drop cloexec.
5708         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5709         not present.
5710         Suggested by Bruno Haible.
5711
5712 2009-12-26  Bruno Haible  <bruno@clisp.org>
5713
5714         Remove an unneeded dependency.
5715         * modules/fseterr (Depends-on): Remove dup2.
5716
5717 2009-12-26  Eric Blake  <ebb9@byu.net>
5718
5719         tests: use macros.h in more places
5720         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5721         (ASSERT_STREAM): Provide default of stderr.
5722         * tests/test-dirent-safer.c: Include macros.h, using alternate
5723         stream for assertions.
5724         * tests/test-dup-safer.c: Likewise.
5725         * tests/test-freopen-safer.c: Likewise.
5726         * tests/test-getopt.c: Likewise.
5727         * tests/test-openat-safer.c: Likewise.
5728         * tests/test-pipe.c: Likewise.
5729         * tests/test-popen-safer.c: Likewise.
5730         * modules/dirent-safer-tests (Files): Include macros.h.
5731         * modules/unistd-safer-tests (Files): Likewise.
5732         * modules/freopen-safer-tests (Files): Likewise.
5733         * modules/getopt-posix-tests (Files): Likewise.
5734         * modules/openat-safer-tests (Files): Likewise.
5735         * modules/pipe-tests (Files): Likewise.
5736
5737 2009-12-26  Bruno Haible  <bruno@clisp.org>
5738
5739         javacomp: Portability fix.
5740         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5741         that it also works on Solaris.
5742
5743 2009-12-26  Bruno Haible  <bruno@clisp.org>
5744
5745         localename: Fix storage allocation of gl_locale_name_thread's result.
5746         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5747         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5748         all platforms that have 'uselocale'.
5749         (gl_locale_name_thread_unsafe): New function, extracted from
5750         gl_locale_name_thread.
5751         (gl_locale_name_thread): Call struniq on all platforms that have
5752         'uselocale'.
5753         * tests/test-localename.c (test_locale_name_thread): Check that the
5754         resulting strings are permanently allocated.
5755         * modules/localename-tests (Depends-on): Add strdup.
5756
5757 2009-12-26  Bruno Haible  <bruno@clisp.org>
5758
5759         * tests/test-localename.c (categories): Fill in the strings.
5760
5761 2009-12-26  Jim Meyering  <meyering@redhat.com>
5762
5763         isdir: complete the removal of m4/isdir.m4
5764         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5765
5766         isdir: clean up, since at least grep still uses it
5767         * lib/isdir.c: Include "isdir.h".
5768         (S_ISDIR): Remove now-unneeded definition.
5769         * modules/isdir (Files): Add lib/isdir.h.
5770         * lib/isdir.h: New file, with declaration.
5771         * m4/isdir.m4: Remove file -- unneeded.
5772
5773 2009-12-25  Bruno Haible  <bruno@clisp.org>
5774
5775         selinux-h: Make generated .h files standalone.
5776         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5777         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5778         * lib/se-selinux.in.h: Likewise.
5779         * modules/selinux-h (Depends-on): Add unused-parameter.
5780         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5781         selinux/selinux.h and selinux/context.h.
5782         Suggested by Eric Blake.
5783
5784 2009-12-25  Bruno Haible  <bruno@clisp.org>
5785
5786         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5787         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5788         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5789         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5790         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5791
5792 2009-12-24  Bruno Haible  <bruno@clisp.org>
5793
5794         openat: Fix warning.
5795         * lib/openat-proc.c: Include <unistd.h>.
5796
5797 2009-12-24  Bruno Haible  <bruno@clisp.org>
5798
5799         New module 'unused-parameter'.
5800         * build-aux/unused-parameter.h: New file, extracted from earlier
5801         gnulib-common.m4.
5802         * modules/unused-parameter: New file.
5803         * lib/unistr.h: Include unused-parameter.h.
5804         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5805         _GL_UNUSED.
5806         * modules/unistr/base (Depends-on): Add unused-parameter.
5807
5808 2009-12-24  Bruno Haible  <bruno@clisp.org>
5809
5810         Add missing dependencies to 'extensions' module.
5811         * m4/extensions.m4: Add comment.
5812         * modules/accept4 (Depends-on): Add extensions.
5813         * modules/dup3 (Depends-on): Likewise.
5814         * modules/fcntl (Depends-on): Likewise.
5815         * modules/futimens (Depends-on): Likewise.
5816         * modules/mknod (Depends-on): Likewise.
5817         * modules/pipe2 (Depends-on): Likewise.
5818         * modules/stat-time (Depends-on): Likewise.
5819         * modules/strcasestr-simple (Depends-on): Likewise.
5820         * modules/strsignal (Depends-on): Likewise.
5821         * modules/utimensat (Depends-on): Likewise.
5822         * modules/localcharset (Depends-on): Likewise. Needed because of
5823         gl_FCNTL_O_FLAGS.
5824         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5825         AC_TYPE_MBSTATE_T.
5826         * modules/wcsnrtombs (Depends-on): Likewise.
5827         * modules/wcsrtombs (Depends-on): Likewise.
5828
5829 2009-12-24  Bruno Haible  <bruno@clisp.org>
5830
5831         binary-io: Avoid gcc warning due to SET_BINARY.
5832         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5833         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5834
5835 2009-12-24  Bruno Haible  <bruno@clisp.org>
5836
5837         Avoid future namespace pollution on glibc systems.
5838         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5839         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5840         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5841         glibc systems.
5842
5843 2009-12-24  Bruno Haible  <bruno@clisp.org>
5844
5845         Refactor common macros used in tests.
5846         * tests/macros.h: New file.
5847         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5848         and/or <stdlib.h>, if appropriate.
5849         (ASSERT, SIZEOF): Remove macros.
5850         * tests/test-areadlink-with-size.c: Likewise.
5851         * tests/test-areadlinkat.c: Likewise.
5852         * tests/test-areadlinkat-with-size.c: Likewise.
5853         * tests/test-argmatch.c: Likewise.
5854         * tests/test-argv-iter.c: Likewise.
5855         * tests/test-array-mergesort.c: Likewise.
5856         * tests/test-array_list.c: Likewise.
5857         * tests/test-array_oset.c: Likewise.
5858         * tests/test-avltree_list.c: Likewise.
5859         * tests/test-avltree_oset.c: Likewise.
5860         * tests/test-avltreehash_list.c: Likewise.
5861         * tests/test-base64.c: Likewise.
5862         * tests/test-binary-io.c: Likewise.
5863         * tests/test-bitrotate.c: Likewise.
5864         * tests/test-btowc.c: Likewise.
5865         * tests/test-byteswap.c: Likewise.
5866         * tests/test-c-ctype.c: Likewise.
5867         * tests/test-c-stack.c: Likewise.
5868         * tests/test-c-strcasecmp.c: Likewise.
5869         * tests/test-c-strcasestr.c: Likewise.
5870         * tests/test-c-strncasecmp.c: Likewise.
5871         * tests/test-c-strstr.c: Likewise.
5872         * tests/test-canonicalize-lgpl.c: Likewise.
5873         * tests/test-canonicalize.c: Likewise.
5874         * tests/test-carray_list.c: Likewise.
5875         * tests/test-ceilf1.c: Likewise.
5876         * tests/test-ceilf2.c: Likewise.
5877         * tests/test-ceill.c: Likewise.
5878         * tests/test-chown.c: Likewise.
5879         * tests/test-cloexec.c: Likewise.
5880         * tests/test-copy-acl.c: Likewise.
5881         * tests/test-copy-file.c: Likewise.
5882         * tests/test-count-one-bits.c: Likewise.
5883         * tests/test-dprintf-posix.c: Likewise.
5884         * tests/test-dup2.c: Likewise.
5885         * tests/test-dup3.c: Likewise.
5886         * tests/test-duplocale.c: Likewise.
5887         * tests/test-fbufmode.c: Likewise.
5888         * tests/test-fchdir.c: Likewise.
5889         * tests/test-fchownat.c: Likewise.
5890         * tests/test-fcntl-safer.c: Likewise.
5891         * tests/test-fcntl.c: Likewise.
5892         * tests/test-fdopendir.c: Likewise.
5893         * tests/test-fdutimensat.c: Likewise.
5894         * tests/test-fflush2.c: Likewise.
5895         * tests/test-file-has-acl.c: Likewise.
5896         * tests/test-filevercmp.c: Likewise.
5897         * tests/test-flock.c: Likewise.
5898         * tests/test-floorf1.c: Likewise.
5899         * tests/test-floorf2.c: Likewise.
5900         * tests/test-floorl.c: Likewise.
5901         * tests/test-fnmatch.c: Likewise.
5902         * tests/test-fopen.h: Likewise.
5903         * tests/test-fpending.c: Likewise.
5904         * tests/test-fprintf-posix.c: Likewise.
5905         * tests/test-fpurge.c: Likewise.
5906         * tests/test-freadable.c: Likewise.
5907         * tests/test-freadahead.c: Likewise.
5908         * tests/test-freading.c: Likewise.
5909         * tests/test-freadptr.c: Likewise.
5910         * tests/test-freadptr2.c: Likewise.
5911         * tests/test-freadseek.c: Likewise.
5912         * tests/test-freopen.c: Likewise.
5913         * tests/test-frexp.c: Likewise.
5914         * tests/test-frexpl.c: Likewise.
5915         * tests/test-fseek.c: Likewise.
5916         * tests/test-fseeko.c: Likewise.
5917         * tests/test-fstatat.c: Likewise.
5918         * tests/test-fstrcmp.c: Likewise.
5919         * tests/test-fsync.c: Likewise.
5920         * tests/test-ftell.c: Likewise.
5921         * tests/test-ftello.c: Likewise.
5922         * tests/test-func.c: Likewise.
5923         * tests/test-futimens.c: Likewise.
5924         * tests/test-fwritable.c: Likewise.
5925         * tests/test-fwriting.c: Likewise.
5926         * tests/test-getcwd.c: Likewise.
5927         * tests/test-getdate.c: Likewise.
5928         * tests/test-getdelim.c: Likewise.
5929         * tests/test-getdtablesize.c: Likewise.
5930         * tests/test-getgroups.c: Likewise.
5931         * tests/test-getline.c: Likewise.
5932         * tests/test-getndelim2.c: Likewise.
5933         * tests/test-glob.c: Likewise.
5934         * tests/test-hash.c: Likewise.
5935         * tests/test-i-ring.c: Likewise.
5936         * tests/test-iconv-utf.c: Likewise.
5937         * tests/test-iconv.c: Likewise.
5938         * tests/test-idpriv-drop.c: Likewise.
5939         * tests/test-idpriv-droptemp.c: Likewise.
5940         * tests/test-inet_ntop.c: Likewise.
5941         * tests/test-inet_pton.c: Likewise.
5942         * tests/test-isblank.c: Likewise.
5943         * tests/test-isfinite.c: Likewise.
5944         * tests/test-isinf.c: Likewise.
5945         * tests/test-isnan.c: Likewise.
5946         * tests/test-isnand.h: Likewise.
5947         * tests/test-isnanf.h: Likewise.
5948         * tests/test-isnanl.h: Likewise.
5949         * tests/test-lchown.c: Likewise.
5950         * tests/test-ldexpl.c: Likewise.
5951         * tests/test-link.c: Likewise.
5952         * tests/test-linkat.c: Likewise.
5953         * tests/test-linked_list.c: Likewise.
5954         * tests/test-linkedhash_list.c: Likewise.
5955         * tests/test-localename.c: Likewise.
5956         * tests/test-lseek.c: Likewise.
5957         * tests/test-lstat.c: Likewise.
5958         * tests/test-mbmemcasecmp.c: Likewise.
5959         * tests/test-mbmemcasecoll.c: Likewise.
5960         * tests/test-mbrtowc.c: Likewise.
5961         * tests/test-mbscasecmp.c: Likewise.
5962         * tests/test-mbscasestr1.c: Likewise.
5963         * tests/test-mbscasestr2.c: Likewise.
5964         * tests/test-mbscasestr3.c: Likewise.
5965         * tests/test-mbscasestr4.c: Likewise.
5966         * tests/test-mbschr.c: Likewise.
5967         * tests/test-mbscspn.c: Likewise.
5968         * tests/test-mbsinit.c: Likewise.
5969         * tests/test-mbsncasecmp.c: Likewise.
5970         * tests/test-mbsnrtowcs.c: Likewise.
5971         * tests/test-mbspbrk.c: Likewise.
5972         * tests/test-mbspcasecmp.c: Likewise.
5973         * tests/test-mbsrchr.c: Likewise.
5974         * tests/test-mbsrtowcs.c: Likewise.
5975         * tests/test-mbsspn.c: Likewise.
5976         * tests/test-mbsstr1.c: Likewise.
5977         * tests/test-mbsstr2.c: Likewise.
5978         * tests/test-mbsstr3.c: Likewise.
5979         * tests/test-memchr.c: Likewise.
5980         * tests/test-memchr2.c: Likewise.
5981         * tests/test-memcmp.c: Likewise.
5982         * tests/test-memmem.c: Likewise.
5983         * tests/test-memrchr.c: Likewise.
5984         * tests/test-mkdir.c: Likewise.
5985         * tests/test-mkdirat.c: Likewise.
5986         * tests/test-mkfifo.c: Likewise.
5987         * tests/test-mkfifoat.c: Likewise.
5988         * tests/test-mknod.c: Likewise.
5989         * tests/test-nanosleep.c: Likewise.
5990         * tests/test-nl_langinfo.c: Likewise.
5991         * tests/test-obstack-printf.c: Likewise.
5992         * tests/test-open.c: Likewise.
5993         * tests/test-openat.c: Likewise.
5994         * tests/test-pipe-filter-gi1.c: Likewise.
5995         * tests/test-pipe-filter-gi2-main.c: Likewise.
5996         * tests/test-pipe-filter-ii1.c: Likewise.
5997         * tests/test-pipe-filter-ii2-main.c: Likewise.
5998         * tests/test-pipe2.c: Likewise.
5999         * tests/test-popen.h: Likewise.
6000         * tests/test-posixtm.c: Likewise.
6001         * tests/test-pread.c: Likewise.
6002         * tests/test-printf-frexp.c: Likewise.
6003         * tests/test-printf-frexpl.c: Likewise.
6004         * tests/test-printf-posix.c: Likewise.
6005         * tests/test-priv-set.c: Likewise.
6006         * tests/test-quotearg.c: Likewise.
6007         * tests/test-random_r.c: Likewise.
6008         * tests/test-rawmemchr.c: Likewise.
6009         * tests/test-rbtree_list.c: Likewise.
6010         * tests/test-rbtree_oset.c: Likewise.
6011         * tests/test-rbtreehash_list.c: Likewise.
6012         * tests/test-readlink.c: Likewise.
6013         * tests/test-remove.c: Likewise.
6014         * tests/test-rename.c: Likewise.
6015         * tests/test-renameat.c: Likewise.
6016         * tests/test-rmdir.c: Likewise.
6017         * tests/test-round1.c: Likewise.
6018         * tests/test-roundf1.c: Likewise.
6019         * tests/test-roundl.c: Likewise.
6020         * tests/test-safe-alloc.c: Likewise.
6021         * tests/test-sameacls.c: Likewise.
6022         * tests/test-set-mode-acl.c: Likewise.
6023         * tests/test-setenv.c: Likewise.
6024         * tests/test-sigaction.c: Likewise.
6025         * tests/test-signbit.c: Likewise.
6026         * tests/test-sleep.c: Likewise.
6027         * tests/test-snprintf-posix.c: Likewise.
6028         * tests/test-snprintf.c: Likewise.
6029         * tests/test-sprintf-posix.c: Likewise.
6030         * tests/test-stat-time.c: Likewise.
6031         * tests/test-stat.c: Likewise.
6032         * tests/test-strcasestr.c: Likewise.
6033         * tests/test-strchrnul.c: Likewise.
6034         * tests/test-strerror.c: Likewise.
6035         * tests/test-striconv.c: Likewise.
6036         * tests/test-striconveh.c: Likewise.
6037         * tests/test-striconveha.c: Likewise.
6038         * tests/test-strsignal.c: Likewise.
6039         * tests/test-strstr.c: Likewise.
6040         * tests/test-strtod.c: Likewise.
6041         * tests/test-strverscmp.c: Likewise.
6042         * tests/test-symlink.c: Likewise.
6043         * tests/test-symlinkat.c: Likewise.
6044         * tests/test-trunc1.c: Likewise.
6045         * tests/test-trunc2.c: Likewise.
6046         * tests/test-truncf1.c: Likewise.
6047         * tests/test-truncf2.c: Likewise.
6048         * tests/test-truncl.c: Likewise.
6049         * tests/test-uname.c: Likewise.
6050         * tests/test-unlink.c: Likewise.
6051         * tests/test-unlinkat.c: Likewise.
6052         * tests/test-unsetenv.c: Likewise.
6053         * tests/test-usleep.c: Likewise.
6054         * tests/test-utimens.c: Likewise.
6055         * tests/test-utimensat.c: Likewise.
6056         * tests/test-vasnprintf-posix.c: Likewise.
6057         * tests/test-vasnprintf-posix2.c: Likewise.
6058         * tests/test-vasnprintf.c: Likewise.
6059         * tests/test-vasprintf-posix.c: Likewise.
6060         * tests/test-vasprintf.c: Likewise.
6061         * tests/test-vdprintf-posix.c: Likewise.
6062         * tests/test-vfprintf-posix.c: Likewise.
6063         * tests/test-vprintf-posix.c: Likewise.
6064         * tests/test-vsnprintf-posix.c: Likewise.
6065         * tests/test-vsnprintf.c: Likewise.
6066         * tests/test-vsprintf-posix.c: Likewise.
6067         * tests/test-wcrtomb.c: Likewise.
6068         * tests/test-wcsnrtombs.c: Likewise.
6069         * tests/test-wcsrtombs.c: Likewise.
6070         * tests/test-wctype.c: Likewise.
6071         * tests/test-wcwidth.c: Likewise.
6072         * tests/test-xfprintf-posix.c: Likewise.
6073         * tests/test-xmemdup0.c: Likewise.
6074         * tests/test-xprintf-posix.c: Likewise.
6075         * tests/test-xvasprintf.c: Likewise.
6076         * tests/unicase/test-locale-language.c: Likewise.
6077         * tests/unicase/test-mapping-part1.h: Likewise.
6078         * tests/unicase/test-predicate-part1.h: Likewise.
6079         * tests/unicase/test-u8-casecmp.c: Likewise.
6080         * tests/unicase/test-u8-casecoll.c: Likewise.
6081         * tests/unicase/test-u8-casefold.c: Likewise.
6082         * tests/unicase/test-u8-is-cased.c: Likewise.
6083         * tests/unicase/test-u8-is-casefolded.c: Likewise.
6084         * tests/unicase/test-u8-is-lowercase.c: Likewise.
6085         * tests/unicase/test-u8-is-titlecase.c: Likewise.
6086         * tests/unicase/test-u8-is-uppercase.c: Likewise.
6087         * tests/unicase/test-u8-tolower.c: Likewise.
6088         * tests/unicase/test-u8-totitle.c: Likewise.
6089         * tests/unicase/test-u8-toupper.c: Likewise.
6090         * tests/unicase/test-u16-casecmp.c: Likewise.
6091         * tests/unicase/test-u16-casecoll.c: Likewise.
6092         * tests/unicase/test-u16-casefold.c: Likewise.
6093         * tests/unicase/test-u16-is-cased.c: Likewise.
6094         * tests/unicase/test-u16-is-casefolded.c: Likewise.
6095         * tests/unicase/test-u16-is-lowercase.c: Likewise.
6096         * tests/unicase/test-u16-is-titlecase.c: Likewise.
6097         * tests/unicase/test-u16-is-uppercase.c: Likewise.
6098         * tests/unicase/test-u16-tolower.c: Likewise.
6099         * tests/unicase/test-u16-totitle.c: Likewise.
6100         * tests/unicase/test-u16-toupper.c: Likewise.
6101         * tests/unicase/test-u32-casecmp.c: Likewise.
6102         * tests/unicase/test-u32-casecoll.c: Likewise.
6103         * tests/unicase/test-u32-casefold.c: Likewise.
6104         * tests/unicase/test-u32-is-cased.c: Likewise.
6105         * tests/unicase/test-u32-is-casefolded.c: Likewise.
6106         * tests/unicase/test-u32-is-lowercase.c: Likewise.
6107         * tests/unicase/test-u32-is-titlecase.c: Likewise.
6108         * tests/unicase/test-u32-is-uppercase.c: Likewise.
6109         * tests/unicase/test-u32-tolower.c: Likewise.
6110         * tests/unicase/test-u32-totitle.c: Likewise.
6111         * tests/unicase/test-u32-toupper.c: Likewise.
6112         * tests/unicase/test-ulc-casecmp.c: Likewise.
6113         * tests/unicase/test-ulc-casecoll.c: Likewise.
6114         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
6115         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
6116         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
6117         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
6118         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
6119         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
6120         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
6121         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
6122         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
6123         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
6124         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
6125         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
6126         * tests/unictype/test-bidi_byname.c: Likewise.
6127         * tests/unictype/test-bidi_name.c: Likewise.
6128         * tests/unictype/test-bidi_of.c: Likewise.
6129         * tests/unictype/test-bidi_test.c: Likewise.
6130         * tests/unictype/test-block_list.c: Likewise.
6131         * tests/unictype/test-block_of.c: Likewise.
6132         * tests/unictype/test-block_test.c: Likewise.
6133         * tests/unictype/test-categ_and.c: Likewise.
6134         * tests/unictype/test-categ_and_not.c: Likewise.
6135         * tests/unictype/test-categ_byname.c: Likewise.
6136         * tests/unictype/test-categ_name.c: Likewise.
6137         * tests/unictype/test-categ_none.c: Likewise.
6138         * tests/unictype/test-categ_of.c: Likewise.
6139         * tests/unictype/test-categ_or.c: Likewise.
6140         * tests/unictype/test-categ_test_withtable.c: Likewise.
6141         * tests/unictype/test-combining.c: Likewise.
6142         * tests/unictype/test-decdigit.c: Likewise.
6143         * tests/unictype/test-digit.c: Likewise.
6144         * tests/unictype/test-mirror.c: Likewise.
6145         * tests/unictype/test-numeric.c: Likewise.
6146         * tests/unictype/test-pr_byname.c: Likewise.
6147         * tests/unictype/test-pr_test.c: Likewise.
6148         * tests/unictype/test-predicate-part1.h: Likewise.
6149         * tests/unictype/test-scripts.c: Likewise.
6150         * tests/unictype/test-sy_c_ident.c: Likewise.
6151         * tests/unictype/test-sy_java_ident.c: Likewise.
6152         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
6153         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
6154         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
6155         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
6156         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
6157         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
6158         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
6159         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
6160         * tests/uninorm/test-canonical-decomposition.c: Likewise.
6161         * tests/uninorm/test-compat-decomposition.c: Likewise.
6162         * tests/uninorm/test-composition.c: Likewise.
6163         * tests/uninorm/test-decomposing-form.c: Likewise.
6164         * tests/uninorm/test-decomposition.c: Likewise.
6165         * tests/uninorm/test-u8-nfc.c: Likewise.
6166         * tests/uninorm/test-u8-nfd.c: Likewise.
6167         * tests/uninorm/test-u8-nfkc.c: Likewise.
6168         * tests/uninorm/test-u8-nfkd.c: Likewise.
6169         * tests/uninorm/test-u8-normcmp.c: Likewise.
6170         * tests/uninorm/test-u8-normcoll.c: Likewise.
6171         * tests/uninorm/test-u16-nfc.c: Likewise.
6172         * tests/uninorm/test-u16-nfd.c: Likewise.
6173         * tests/uninorm/test-u16-nfkc.c: Likewise.
6174         * tests/uninorm/test-u16-nfkd.c: Likewise.
6175         * tests/uninorm/test-u16-normcmp.c: Likewise.
6176         * tests/uninorm/test-u16-normcoll.c: Likewise.
6177         * tests/uninorm/test-u32-nfc.c: Likewise.
6178         * tests/uninorm/test-u32-nfd.c: Likewise.
6179         * tests/uninorm/test-u32-nfkc.c: Likewise.
6180         * tests/uninorm/test-u32-nfkd.c: Likewise.
6181         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6182         * tests/uninorm/test-u32-normcmp.c: Likewise.
6183         * tests/uninorm/test-u32-normcoll.c: Likewise.
6184         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
6185         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
6186         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
6187         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
6188         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
6189         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
6190         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6191         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6192         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
6193         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
6194         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
6195         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
6196         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
6197         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6198         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6199         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6200         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
6201         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
6202         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
6203         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
6204         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6205         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6206         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
6207         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
6208         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
6209         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
6210         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
6211         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6212         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6213         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
6214         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
6215         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
6216         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
6217         * tests/uniwidth/test-u8-strwidth.c: Likewise.
6218         * tests/uniwidth/test-u8-width.c: Likewise.
6219         * tests/uniwidth/test-u16-strwidth.c: Likewise.
6220         * tests/uniwidth/test-u16-width.c: Likewise.
6221         * tests/uniwidth/test-u32-strwidth.c: Likewise.
6222         * tests/uniwidth/test-u32-width.c: Likewise.
6223         * tests/uniwidth/test-uc_width.c: Likewise.
6224         * tests/uniwidth/test-uc_width2.c: Likewise.
6225         * modules/acl-tests (Files): Add tests/macros.h.
6226         * modules/areadlink-tests (Files): Likewise.
6227         * modules/areadlink-with-size-tests (Files): Likewise.
6228         * modules/areadlinkat-tests (Files): Likewise.
6229         * modules/areadlinkat-with-size-tests (Files): Likewise.
6230         * modules/argmatch-tests (Files): Likewise.
6231         * modules/argv-iter-tests (Files): Likewise.
6232         * modules/array-list-tests (Files): Likewise.
6233         * modules/array-mergesort-tests (Files): Likewise.
6234         * modules/array-oset-tests (Files): Likewise.
6235         * modules/avltree-list-tests (Files): Likewise.
6236         * modules/avltree-oset-tests (Files): Likewise.
6237         * modules/avltreehash-list-tests (Files): Likewise.
6238         * modules/base64-tests (Files): Likewise.
6239         * modules/binary-io-tests (Files): Likewise.
6240         * modules/bitrotate-tests (Files): Likewise.
6241         * modules/btowc-tests (Files): Likewise.
6242         * modules/byteswap-tests (Files): Likewise.
6243         * modules/c-ctype-tests (Files): Likewise.
6244         * modules/c-stack-tests (Files): Likewise.
6245         * modules/c-strcase-tests (Files): Likewise.
6246         * modules/c-strcasestr-tests (Files): Likewise.
6247         * modules/c-strstr-tests (Files): Likewise.
6248         * modules/canonicalize-lgpl-tests (Files): Likewise.
6249         * modules/canonicalize-tests (Files): Likewise.
6250         * modules/carray-list-tests (Files): Likewise.
6251         * modules/ceilf-tests (Files): Likewise.
6252         * modules/ceill-tests (Files): Likewise.
6253         * modules/chown-tests (Files): Likewise.
6254         * modules/cloexec-tests (Files): Likewise.
6255         * modules/copy-file-tests (Files): Likewise.
6256         * modules/count-one-bits-tests (Files): Likewise.
6257         * modules/dprintf-posix-tests (Files): Likewise.
6258         * modules/dup2-tests (Files): Likewise.
6259         * modules/dup3-tests (Files): Likewise.
6260         * modules/duplocale-tests (Files): Likewise.
6261         * modules/fbufmode-tests (Files): Likewise.
6262         * modules/fchdir-tests (Files): Likewise.
6263         * modules/fcntl-safer-tests (Files): Likewise.
6264         * modules/fcntl-tests (Files): Likewise.
6265         * modules/fdopendir-tests (Files): Likewise.
6266         * modules/fdutimensat-tests (Files): Likewise.
6267         * modules/fflush-tests (Files): Likewise.
6268         * modules/filevercmp-tests (Files): Likewise.
6269         * modules/flock-tests (Files): Likewise.
6270         * modules/floorf-tests (Files): Likewise.
6271         * modules/floorl-tests (Files): Likewise.
6272         * modules/fnmatch-tests (Files): Likewise.
6273         * modules/fopen-safer-tests (Files): Likewise.
6274         * modules/fopen-tests (Files): Likewise.
6275         * modules/fpending-tests (Files): Likewise.
6276         * modules/fprintf-posix-tests (Files): Likewise.
6277         * modules/fpurge-tests (Files): Likewise.
6278         * modules/freadable-tests (Files): Likewise.
6279         * modules/freadahead-tests (Files): Likewise.
6280         * modules/freading-tests (Files): Likewise.
6281         * modules/freadptr-tests (Files): Likewise.
6282         * modules/freadseek-tests (Files): Likewise.
6283         * modules/freopen-tests (Files): Likewise.
6284         * modules/frexp-nolibm-tests (Files): Likewise.
6285         * modules/frexp-tests (Files): Likewise.
6286         * modules/frexpl-nolibm-tests (Files): Likewise.
6287         * modules/frexpl-tests (Files): Likewise.
6288         * modules/fseek-tests (Files): Likewise.
6289         * modules/fseeko-tests (Files): Likewise.
6290         * modules/fstrcmp-tests (Files): Likewise.
6291         * modules/fsync-tests (Files): Likewise.
6292         * modules/ftell-tests (Files): Likewise.
6293         * modules/ftello-tests (Files): Likewise.
6294         * modules/func-tests (Files): Likewise.
6295         * modules/futimens-tests (Files): Likewise.
6296         * modules/fwritable-tests (Files): Likewise.
6297         * modules/fwriting-tests (Files): Likewise.
6298         * modules/getcwd-tests (Files): Likewise.
6299         * modules/getdate-tests (Files): Likewise.
6300         * modules/getdelim-tests (Files): Likewise.
6301         * modules/getdtablesize-tests (Files): Likewise.
6302         * modules/getgroups-tests (Files): Likewise.
6303         * modules/getline-tests (Files): Likewise.
6304         * modules/getndelim2-tests (Files): Likewise.
6305         * modules/glob-tests (Files): Likewise.
6306         * modules/hash-tests (Files): Likewise.
6307         * modules/i-ring-tests (Files): Likewise.
6308         * modules/iconv-tests (Files): Likewise.
6309         * modules/iconv_open-utf-tests (Files): Likewise.
6310         * modules/idpriv-drop-tests (Files): Likewise.
6311         * modules/idpriv-droptemp-tests (Files): Likewise.
6312         * modules/inet_ntop-tests (Files): Likewise.
6313         * modules/inet_pton-tests (Files): Likewise.
6314         * modules/isblank-tests (Files): Likewise.
6315         * modules/isfinite-tests (Files): Likewise.
6316         * modules/isinf-tests (Files): Likewise.
6317         * modules/isnan-tests (Files): Likewise.
6318         * modules/isnand-nolibm-tests (Files): Likewise.
6319         * modules/isnand-tests (Files): Likewise.
6320         * modules/isnanf-nolibm-tests (Files): Likewise.
6321         * modules/isnanf-tests (Files): Likewise.
6322         * modules/isnanl-nolibm-tests (Files): Likewise.
6323         * modules/isnanl-tests (Files): Likewise.
6324         * modules/lchown-tests (Files): Likewise.
6325         * modules/ldexpl-tests (Files): Likewise.
6326         * modules/link-tests (Files): Likewise.
6327         * modules/linkat-tests (Files): Likewise.
6328         * modules/linked-list-tests (Files): Likewise.
6329         * modules/linkedhash-list-tests (Files): Likewise.
6330         * modules/localename-tests (Files): Likewise.
6331         * modules/lseek-tests (Files): Likewise.
6332         * modules/lstat-tests (Files): Likewise.
6333         * modules/mbmemcasecmp-tests (Files): Likewise.
6334         * modules/mbmemcasecoll-tests (Files): Likewise.
6335         * modules/mbrtowc-tests (Files): Likewise.
6336         * modules/mbscasecmp-tests (Files): Likewise.
6337         * modules/mbscasestr-tests (Files): Likewise.
6338         * modules/mbschr-tests (Files): Likewise.
6339         * modules/mbscspn-tests (Files): Likewise.
6340         * modules/mbsinit-tests (Files): Likewise.
6341         * modules/mbsncasecmp-tests (Files): Likewise.
6342         * modules/mbsnrtowcs-tests (Files): Likewise.
6343         * modules/mbspbrk-tests (Files): Likewise.
6344         * modules/mbspcasecmp-tests (Files): Likewise.
6345         * modules/mbsrchr-tests (Files): Likewise.
6346         * modules/mbsrtowcs-tests (Files): Likewise.
6347         * modules/mbsspn-tests (Files): Likewise.
6348         * modules/mbsstr-tests (Files): Likewise.
6349         * modules/memchr-tests (Files): Likewise.
6350         * modules/memchr2-tests (Files): Likewise.
6351         * modules/memcmp-tests (Files): Likewise.
6352         * modules/memmem-tests (Files): Likewise.
6353         * modules/memrchr-tests (Files): Likewise.
6354         * modules/mkdir-tests (Files): Likewise.
6355         * modules/mkfifo-tests (Files): Likewise.
6356         * modules/mkfifoat-tests (Files): Likewise.
6357         * modules/mknod-tests (Files): Likewise.
6358         * modules/nanosleep-tests (Files): Likewise.
6359         * modules/nl_langinfo-tests (Files): Likewise.
6360         * modules/obstack-printf-tests (Files): Likewise.
6361         * modules/open-tests (Files): Likewise.
6362         * modules/openat-tests (Files): Likewise.
6363         * modules/pipe-filter-gi-tests (Files): Likewise.
6364         * modules/pipe-filter-ii-tests (Files): Likewise.
6365         * modules/pipe2-tests (Files): Likewise.
6366         * modules/popen-safer-tests (Files): Likewise.
6367         * modules/popen-tests (Files): Likewise.
6368         * modules/posixtm-tests (Files): Likewise.
6369         * modules/pread-tests (Files): Likewise.
6370         * modules/printf-frexp-tests (Files): Likewise.
6371         * modules/printf-frexpl-tests (Files): Likewise.
6372         * modules/printf-posix-tests (Files): Likewise.
6373         * modules/priv-set-tests (Files): Likewise.
6374         * modules/quotearg-tests (Files): Likewise.
6375         * modules/random_r-tests (Files): Likewise.
6376         * modules/rawmemchr-tests (Files): Likewise.
6377         * modules/rbtree-list-tests (Files): Likewise.
6378         * modules/rbtree-oset-tests (Files): Likewise.
6379         * modules/rbtreehash-list-tests (Files): Likewise.
6380         * modules/readlink-tests (Files): Likewise.
6381         * modules/remove-tests (Files): Likewise.
6382         * modules/rename-tests (Files): Likewise.
6383         * modules/renameat-tests (Files): Likewise.
6384         * modules/rmdir-tests (Files): Likewise.
6385         * modules/round-tests (Files): Likewise.
6386         * modules/roundf-tests (Files): Likewise.
6387         * modules/roundl-tests (Files): Likewise.
6388         * modules/safe-alloc-tests (Files): Likewise.
6389         * modules/setenv-tests (Files): Likewise.
6390         * modules/sigaction-tests (Files): Likewise.
6391         * modules/signbit-tests (Files): Likewise.
6392         * modules/sleep-tests (Files): Likewise.
6393         * modules/snprintf-posix-tests (Files): Likewise.
6394         * modules/snprintf-tests (Files): Likewise.
6395         * modules/sprintf-posix-tests (Files): Likewise.
6396         * modules/stat-tests (Files): Likewise.
6397         * modules/stat-time-tests (Files): Likewise.
6398         * modules/strcasestr-tests (Files): Likewise.
6399         * modules/strchrnul-tests (Files): Likewise.
6400         * modules/strerror-tests (Files): Likewise.
6401         * modules/striconv-tests (Files): Likewise.
6402         * modules/striconveh-tests (Files): Likewise.
6403         * modules/striconveha-tests (Files): Likewise.
6404         * modules/strsignal-tests (Files): Likewise.
6405         * modules/strstr-tests (Files): Likewise.
6406         * modules/strtod-tests (Files): Likewise.
6407         * modules/strverscmp-tests (Files): Likewise.
6408         * modules/symlink-tests (Files): Likewise.
6409         * modules/symlinkat-tests (Files): Likewise.
6410         * modules/trunc-tests (Files): Likewise.
6411         * modules/truncf-tests (Files): Likewise.
6412         * modules/truncl-tests (Files): Likewise.
6413         * modules/uname-tests (Files): Likewise.
6414         * modules/unicase/cased-tests (Files): Likewise.
6415         * modules/unicase/ignorable-tests (Files): Likewise.
6416         * modules/unicase/locale-language-tests (Files): Likewise.
6417         * modules/unicase/tolower-tests (Files): Likewise.
6418         * modules/unicase/totitle-tests (Files): Likewise.
6419         * modules/unicase/toupper-tests (Files): Likewise.
6420         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6421         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6422         * modules/unicase/u8-casefold-tests (Files): Likewise.
6423         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6424         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6425         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6426         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6427         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6428         * modules/unicase/u8-tolower-tests (Files): Likewise.
6429         * modules/unicase/u8-totitle-tests (Files): Likewise.
6430         * modules/unicase/u8-toupper-tests (Files): Likewise.
6431         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6432         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6433         * modules/unicase/u16-casefold-tests (Files): Likewise.
6434         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6435         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6436         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6437         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6438         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6439         * modules/unicase/u16-tolower-tests (Files): Likewise.
6440         * modules/unicase/u16-totitle-tests (Files): Likewise.
6441         * modules/unicase/u16-toupper-tests (Files): Likewise.
6442         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6443         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6444         * modules/unicase/u32-casefold-tests (Files): Likewise.
6445         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6446         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6447         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6448         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6449         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6450         * modules/unicase/u32-tolower-tests (Files): Likewise.
6451         * modules/unicase/u32-totitle-tests (Files): Likewise.
6452         * modules/unicase/u32-toupper-tests (Files): Likewise.
6453         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6454         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6455         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6456         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6457         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6458         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6459         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6460         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6461         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6462         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6463         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6464         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6465         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6466         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6467         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6468         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6469         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6470         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6471         * modules/unictype/block-list-tests (Files): Likewise.
6472         * modules/unictype/block-of-tests (Files): Likewise.
6473         * modules/unictype/block-test-tests (Files): Likewise.
6474         * modules/unictype/category-C-tests (Files): Likewise.
6475         * modules/unictype/category-Cc-tests (Files): Likewise.
6476         * modules/unictype/category-Cf-tests (Files): Likewise.
6477         * modules/unictype/category-Cn-tests (Files): Likewise.
6478         * modules/unictype/category-Co-tests (Files): Likewise.
6479         * modules/unictype/category-Cs-tests (Files): Likewise.
6480         * modules/unictype/category-L-tests (Files): Likewise.
6481         * modules/unictype/category-Ll-tests (Files): Likewise.
6482         * modules/unictype/category-Lm-tests (Files): Likewise.
6483         * modules/unictype/category-Lo-tests (Files): Likewise.
6484         * modules/unictype/category-Lt-tests (Files): Likewise.
6485         * modules/unictype/category-Lu-tests (Files): Likewise.
6486         * modules/unictype/category-M-tests (Files): Likewise.
6487         * modules/unictype/category-Mc-tests (Files): Likewise.
6488         * modules/unictype/category-Me-tests (Files): Likewise.
6489         * modules/unictype/category-Mn-tests (Files): Likewise.
6490         * modules/unictype/category-N-tests (Files): Likewise.
6491         * modules/unictype/category-Nd-tests (Files): Likewise.
6492         * modules/unictype/category-Nl-tests (Files): Likewise.
6493         * modules/unictype/category-No-tests (Files): Likewise.
6494         * modules/unictype/category-P-tests (Files): Likewise.
6495         * modules/unictype/category-Pc-tests (Files): Likewise.
6496         * modules/unictype/category-Pd-tests (Files): Likewise.
6497         * modules/unictype/category-Pe-tests (Files): Likewise.
6498         * modules/unictype/category-Pf-tests (Files): Likewise.
6499         * modules/unictype/category-Pi-tests (Files): Likewise.
6500         * modules/unictype/category-Po-tests (Files): Likewise.
6501         * modules/unictype/category-Ps-tests (Files): Likewise.
6502         * modules/unictype/category-S-tests (Files): Likewise.
6503         * modules/unictype/category-Sc-tests (Files): Likewise.
6504         * modules/unictype/category-Sk-tests (Files): Likewise.
6505         * modules/unictype/category-Sm-tests (Files): Likewise.
6506         * modules/unictype/category-So-tests (Files): Likewise.
6507         * modules/unictype/category-Z-tests (Files): Likewise.
6508         * modules/unictype/category-Zl-tests (Files): Likewise.
6509         * modules/unictype/category-Zp-tests (Files): Likewise.
6510         * modules/unictype/category-Zs-tests (Files): Likewise.
6511         * modules/unictype/category-and-not-tests (Files): Likewise.
6512         * modules/unictype/category-and-tests (Files): Likewise.
6513         * modules/unictype/category-byname-tests (Files): Likewise.
6514         * modules/unictype/category-name-tests (Files): Likewise.
6515         * modules/unictype/category-none-tests (Files): Likewise.
6516         * modules/unictype/category-of-tests (Files): Likewise.
6517         * modules/unictype/category-or-tests (Files): Likewise.
6518         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6519         * modules/unictype/combining-class-tests (Files): Likewise.
6520         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6521         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6522         * modules/unictype/ctype-blank-tests (Files): Likewise.
6523         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6524         * modules/unictype/ctype-digit-tests (Files): Likewise.
6525         * modules/unictype/ctype-graph-tests (Files): Likewise.
6526         * modules/unictype/ctype-lower-tests (Files): Likewise.
6527         * modules/unictype/ctype-print-tests (Files): Likewise.
6528         * modules/unictype/ctype-punct-tests (Files): Likewise.
6529         * modules/unictype/ctype-space-tests (Files): Likewise.
6530         * modules/unictype/ctype-upper-tests (Files): Likewise.
6531         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6532         * modules/unictype/decimal-digit-tests (Files): Likewise.
6533         * modules/unictype/digit-tests (Files): Likewise.
6534         * modules/unictype/mirror-tests (Files): Likewise.
6535         * modules/unictype/numeric-tests (Files): Likewise.
6536         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6537         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6538         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6539         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6540         Likewise.
6541         * modules/unictype/property-bidi-block-separator-tests (Files):
6542         Likewise.
6543         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6544         Likewise.
6545         * modules/unictype/property-bidi-common-separator-tests (Files):
6546         Likewise.
6547         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6548         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6549         Likewise.
6550         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6551         Likewise.
6552         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6553         Likewise.
6554         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6555         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6556         Likewise.
6557         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6558         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6559         Likewise.
6560         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6561         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6562         * modules/unictype/property-bidi-segment-separator-tests (Files):
6563         Likewise.
6564         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6565         * modules/unictype/property-byname-tests (Files): Likewise.
6566         * modules/unictype/property-combining-tests (Files): Likewise.
6567         * modules/unictype/property-composite-tests (Files): Likewise.
6568         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6569         * modules/unictype/property-dash-tests (Files): Likewise.
6570         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6571         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6572         Likewise.
6573         * modules/unictype/property-deprecated-tests (Files): Likewise.
6574         * modules/unictype/property-diacritic-tests (Files): Likewise.
6575         * modules/unictype/property-extender-tests (Files): Likewise.
6576         * modules/unictype/property-format-control-tests (Files): Likewise.
6577         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6578         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6579         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6580         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6581         * modules/unictype/property-hyphen-tests (Files): Likewise.
6582         * modules/unictype/property-id-continue-tests (Files): Likewise.
6583         * modules/unictype/property-id-start-tests (Files): Likewise.
6584         * modules/unictype/property-ideographic-tests (Files): Likewise.
6585         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6586         * modules/unictype/property-ids-trinary-operator-tests (Files):
6587         Likewise.
6588         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6589         * modules/unictype/property-iso-control-tests (Files): Likewise.
6590         * modules/unictype/property-join-control-tests (Files): Likewise.
6591         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6592         * modules/unictype/property-line-separator-tests (Files): Likewise.
6593         * modules/unictype/property-logical-order-exception-tests (Files):
6594         Likewise.
6595         * modules/unictype/property-lowercase-tests (Files): Likewise.
6596         * modules/unictype/property-math-tests (Files): Likewise.
6597         * modules/unictype/property-non-break-tests (Files): Likewise.
6598         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6599         * modules/unictype/property-numeric-tests (Files): Likewise.
6600         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6601         * modules/unictype/property-other-default-ignorable-code-point-tests
6602         (Files): Likewise.
6603         * modules/unictype/property-other-grapheme-extend-tests (Files):
6604         Likewise.
6605         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6606         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6607         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6608         * modules/unictype/property-other-math-tests (Files): Likewise.
6609         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6610         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6611         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6612         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6613         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6614         * modules/unictype/property-private-use-tests (Files): Likewise.
6615         * modules/unictype/property-punctuation-tests (Files): Likewise.
6616         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6617         * modules/unictype/property-radical-tests (Files): Likewise.
6618         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6619         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6620         * modules/unictype/property-space-tests (Files): Likewise.
6621         * modules/unictype/property-terminal-punctuation-tests (Files):
6622         Likewise.
6623         * modules/unictype/property-test-tests (Files): Likewise.
6624         * modules/unictype/property-titlecase-tests (Files): Likewise.
6625         * modules/unictype/property-unassigned-code-value-tests (Files):
6626         Likewise.
6627         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6628         * modules/unictype/property-uppercase-tests (Files): Likewise.
6629         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6630         * modules/unictype/property-white-space-tests (Files): Likewise.
6631         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6632         * modules/unictype/property-xid-start-tests (Files): Likewise.
6633         * modules/unictype/property-zero-width-tests (Files): Likewise.
6634         * modules/unictype/scripts-tests (Files): Likewise.
6635         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6636         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6637         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6638         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6639         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6640         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6641         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6642         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6643         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6644         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6645         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6646         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6647         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6648         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6649         * modules/uninorm/composition-tests (Files): Likewise.
6650         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6651         * modules/uninorm/decomposition-tests (Files): Likewise.
6652         * modules/uninorm/filter-tests (Files): Likewise.
6653         * modules/uninorm/nfc-tests (Files): Likewise.
6654         * modules/uninorm/nfd-tests (Files): Likewise.
6655         * modules/uninorm/nfkc-tests (Files): Likewise.
6656         * modules/uninorm/nfkd-tests (Files): Likewise.
6657         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6658         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6659         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6660         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6661         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6662         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6663         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6664         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6665         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6666         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6667         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6668         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6669         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6670         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6671         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6672         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6673         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6674         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6675         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6676         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6677         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6678         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6679         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6680         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6681         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6682         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6683         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6684         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6685         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6686         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6687         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6688         * modules/uniwidth/u8-width-tests (Files): Likewise.
6689         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6690         * modules/uniwidth/u16-width-tests (Files): Likewise.
6691         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6692         * modules/uniwidth/u32-width-tests (Files): Likewise.
6693         * modules/uniwidth/width-tests (Files): Likewise.
6694         * modules/unlink-tests (Files): Likewise.
6695         * modules/unsetenv-tests (Files): Likewise.
6696         * modules/usleep-tests (Files): Likewise.
6697         * modules/utimens-tests (Files): Likewise.
6698         * modules/utimensat-tests (Files): Likewise.
6699         * modules/vasnprintf-posix-tests (Files): Likewise.
6700         * modules/vasnprintf-tests (Files): Likewise.
6701         * modules/vasprintf-posix-tests (Files): Likewise.
6702         * modules/vasprintf-tests (Files): Likewise.
6703         * modules/vdprintf-posix-tests (Files): Likewise.
6704         * modules/vfprintf-posix-tests (Files): Likewise.
6705         * modules/vprintf-posix-tests (Files): Likewise.
6706         * modules/vsnprintf-posix-tests (Files): Likewise.
6707         * modules/vsnprintf-tests (Files): Likewise.
6708         * modules/vsprintf-posix-tests (Files): Likewise.
6709         * modules/wcrtomb-tests (Files): Likewise.
6710         * modules/wcsnrtombs-tests (Files): Likewise.
6711         * modules/wcsrtombs-tests (Files): Likewise.
6712         * modules/wctype-tests (Files): Likewise.
6713         * modules/wcwidth-tests (Files): Likewise.
6714         * modules/xmemdup0-tests (Files): Likewise.
6715         * modules/xprintf-posix-tests (Files): Likewise.
6716         * modules/xvasprintf-tests (Files): Likewise.
6717
6718 2009-12-24  Eric Blake  <ebb9@byu.net>
6719
6720         test-nanosleep: fix typo
6721         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6722         patch.
6723         Reported by Bruno Haible.
6724
6725 2009-12-24  Bruno Haible  <bruno@clisp.org>
6726
6727         Reduce namespace pollution on glibc systems.
6728         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6729         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6730         systems.
6731         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6732         <getopt.h> on glibc systems.
6733         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6734         systems.
6735         * lib/fcntl.c: Include <unistd.h> here instead.
6736
6737 2009-12-24  Bruno Haible  <bruno@clisp.org>
6738
6739         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6740
6741 2009-12-24  Eric Blake  <ebb9@byu.net>
6742
6743         tests: add signature checks
6744         * tests/signature.h (SIGNATURE_CHECK): New file.
6745         * modules/atexit-tests (Files): Use it.
6746         * modules/btowc-tests (Files): Likewise.
6747         * modules/canonicalize-lgpl-tests (Files): Likewise.
6748         * modules/ceilf-tests (Files): Likewise.
6749         * modules/ceill-tests (Files): Likewise.
6750         * modules/chown-tests (Files): Likewise.
6751         * modules/dprintf-posix-tests (Files): Likewise.
6752         * modules/dup2-tests (Files): Likewise.
6753         * modules/dup3-tests (Files): Likewise.
6754         * modules/duplocale-tests (Files): Likewise.
6755         * modules/fchdir-tests (Files): Likewise.
6756         * modules/fcntl-tests (Files): Likewise.
6757         * modules/fdopendir-tests (Files): Likewise.
6758         * modules/fflush-tests (Files): Likewise.
6759         * modules/flock-tests (Files): Likewise.
6760         * modules/floorf-tests (Files): Likewise.
6761         * modules/floorl-tests (Files): Likewise.
6762         * modules/fnmatch-tests (Files): Likewise.
6763         * modules/fopen-tests (Files): Likewise.
6764         * modules/fprintf-posix-tests (Files): Likewise.
6765         * modules/freopen-tests (Files): Likewise.
6766         * modules/frexp-nolibm-tests (Files): Likewise.
6767         * modules/frexp-tests (Files): Likewise.
6768         * modules/frexpl-nolibm-tests (Files): Likewise.
6769         * modules/frexpl-tests (Files): Likewise.
6770         * modules/fseek-tests (Files): Likewise.
6771         * modules/fseeko-tests (Files): Likewise.
6772         * modules/fsync-tests (Files): Likewise.
6773         * modules/ftell-tests (Files): Likewise.
6774         * modules/ftello-tests (Files): Likewise.
6775         * modules/futimens-tests (Files): Likewise.
6776         * modules/getaddrinfo-tests (Files): Likewise.
6777         * modules/getcwd-tests (Files): Likewise.
6778         * modules/getdelim-tests (Files): Likewise.
6779         * modules/getdtablesize-tests (Files): Likewise.
6780         * modules/getgroups-tests (Files): Likewise.
6781         * modules/gethostname-tests (Files): Likewise.
6782         * modules/getline-tests (Files): Likewise.
6783         * modules/getopt-posix-tests (Files): Likewise.
6784         * modules/gettimeofday-tests (Files): Likewise.
6785         * modules/glob-tests (Files): Likewise.
6786         * modules/iconv-tests (Files): Likewise.
6787         * modules/inet_ntop-tests (Files): Likewise.
6788         * modules/inet_pton-tests (Files): Likewise.
6789         * modules/isblank-tests (Files): Likewise.
6790         * modules/lchown-tests (Files): Likewise.
6791         * modules/ldexpl-tests (Files): Likewise.
6792         * modules/link-tests (Files): Likewise.
6793         * modules/linkat-tests (Files): Likewise.
6794         * modules/lseek-tests (Files): Likewise.
6795         * modules/lstat-tests (Files): Likewise.
6796         * modules/mbrtowc-tests (Files): Likewise.
6797         * modules/mbsinit-tests (Files): Likewise.
6798         * modules/mbsnrtowcs-tests (Files): Likewise.
6799         * modules/mbsrtowcs-tests (Files): Likewise.
6800         * modules/memchr-tests (Files): Likewise.
6801         * modules/memcmp-tests (Files): Likewise.
6802         * modules/memmem-tests (Files): Likewise.
6803         * modules/memrchr-tests (Files): Likewise.
6804         * modules/mkdir-tests (Files): Likewise.
6805         * modules/mkfifo-tests (Files): Likewise.
6806         * modules/mkfifoat-tests (Files): Likewise.
6807         * modules/mknod-tests (Files): Likewise.
6808         * modules/nanosleep-tests (Files): Likewise.
6809         * modules/nl_langinfo-tests (Files): Likewise.
6810         * modules/obstack-printf-tests (Files): Likewise.
6811         * modules/open-tests (Files): Likewise.
6812         * modules/openat-tests (Files): Likewise.
6813         * modules/perror-tests (Files): Likewise.
6814         * modules/pipe2-tests (Files): Likewise.
6815         * modules/poll-tests (Files): Likewise.
6816         * modules/popen-tests (Files): Likewise.
6817         * modules/posix_spawn-tests (Files): Likewise.
6818         * modules/posix_spawnp-tests (Files): Likewise.
6819         * modules/pread-tests (Files): Likewise.
6820         * modules/printf-posix-tests (Files): Likewise.
6821         * modules/pty-tests (Files): Likewise.
6822         * modules/random_r-tests (Files): Likewise.
6823         * modules/rawmemchr-tests (Files): Likewise.
6824         * modules/readlink-tests (Files): Likewise.
6825         * modules/remove-tests (Files): Likewise.
6826         * modules/rename-tests (Files): Likewise.
6827         * modules/renameat-tests (Files): Likewise.
6828         * modules/rmdir-tests (Files): Likewise.
6829         * modules/round-tests (Files): Likewise.
6830         * modules/roundf-tests (Files): Likewise.
6831         * modules/roundl-tests (Files): Likewise.
6832         * modules/select-tests (Files): Likewise.
6833         * modules/setenv-tests (Files): Likewise.
6834         * modules/sigaction-tests (Files): Likewise.
6835         * modules/sleep-tests (Files): Likewise.
6836         * modules/snprintf-posix-tests (Files): Likewise.
6837         * modules/snprintf-tests (Files): Likewise.
6838         * modules/sprintf-posix-tests (Files): Likewise.
6839         * modules/stat-tests (Files): Likewise.
6840         * modules/strcasestr-tests (Files): Likewise.
6841         * modules/strchrnul-tests (Files): Likewise.
6842         * modules/strerror-tests (Files): Likewise.
6843         * modules/strsignal-tests (Files): Likewise.
6844         * modules/strstr-tests (Files): Likewise.
6845         * modules/strtod-tests (Files): Likewise.
6846         * modules/strverscmp-tests (Files): Likewise.
6847         * modules/symlink-tests (Files): Likewise.
6848         * modules/symlinkat-tests (Files): Likewise.
6849         * modules/times-tests (Files): Likewise.
6850         * modules/trunc-tests (Files): Likewise.
6851         * modules/truncf-tests (Files): Likewise.
6852         * modules/truncl-tests (Files): Likewise.
6853         * modules/tsearch-tests (Files): Likewise.
6854         * modules/uname-tests (Files): Likewise.
6855         * modules/unlink-tests (Files): Likewise.
6856         * modules/unsetenv-tests (Files): Likewise.
6857         * modules/usleep-tests (Files): Likewise.
6858         * modules/utimensat-tests (Files): Likewise.
6859         * modules/vasprintf-tests (Files): Likewise.
6860         * modules/vdprintf-posix-tests (Files): Likewise.
6861         * modules/vfprintf-posix-tests (Files): Likewise.
6862         * modules/vprintf-posix-tests (Files): Likewise.
6863         * modules/vsnprintf-posix-tests (Files): Likewise.
6864         * modules/vsnprintf-tests (Files): Likewise.
6865         * modules/vsprintf-posix-tests (Files): Likewise.
6866         * modules/wcrtomb-tests (Files): Likewise.
6867         * modules/wcsnrtombs-tests (Files): Likewise.
6868         * modules/wcsrtombs-tests (Files): Likewise.
6869         * modules/wcwidth-tests (Files): Likewise.
6870         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6871         * tests/test-isinf.c (isinf): Likewise.
6872         * tests/test-isnan.c (isnan): Likewise.
6873         * tests/test-signbit.c (signbit): Likewise.
6874         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6875         declaration, either as macro or with correct signature.
6876         (select): Ensure function under test is declared with correct
6877         signature in correct header.
6878         * tests/test-atexit.c (atexit): Likewise.
6879         * tests/test-btowc.c (btowc): Likewise.
6880         * tests/test-canonicalize-lgpl.c (realpath)
6881         (canonicalize_file_name): Likewise.
6882         * tests/test-ceilf1.c (ceilf): Likewise.
6883         * tests/test-ceill.c (ceill): Likewise.
6884         * tests/test-chown.c (chown): Likewise.
6885         * tests/test-dprintf-posix.c (dprintf): Likewise.
6886         * tests/test-dup2.c (dup2): Likewise.
6887         * tests/test-dup3.c (dup3): Likewise.
6888         * tests/test-duplocale.c (duplocale): Likewise.
6889         * tests/test-fchdir.c (fchdir): Likewise.
6890         * tests/test-fchownat.c (fchownat): Likewise.
6891         * tests/test-fcntl.c (fcntl): Likewise.
6892         * tests/test-fdopendir.c (fdopendir): Likewise.
6893         * tests/test-fflush.c (fflush): Likewise.
6894         * tests/test-flock.c (flock): Likewise.
6895         * tests/test-floorf1.c (floorf): Likewise.
6896         * tests/test-floorl.c (floorl): Likewise.
6897         * tests/test-fnmatch.c (fnmatch): Likewise.
6898         * tests/test-fopen.c (fopen): Likewise.
6899         * tests/test-fprintf-posix.c (fprintf): Likewise.
6900         * tests/test-freopen.c (freopen): Likewise.
6901         * tests/test-frexp.c (frexp): Likewise.
6902         * tests/test-frexpl.c (frexpl): Likewise.
6903         * tests/test-fseek.c (fseek): Likewise.
6904         * tests/test-fseeko.c (fseeko): Likewise.
6905         * tests/test-fstatat.c (fstatat): Likewise.
6906         * tests/test-fsync.c (fsync): Likewise.
6907         * tests/test-ftell.c (ftell): Likewise.
6908         * tests/test-ftello.c (ftello): Likewise.
6909         * tests/test-futimens.c (futimens): Likewise.
6910         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6911         (gai_strerror): Likewise.
6912         * tests/test-getcwd.c (getcwd): Likewise.
6913         * tests/test-getdelim.c (getdelim): Likewise.
6914         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6915         * tests/test-getgroups.c (getgroups): Likewise.
6916         * tests/test-gethostname.c (gethostname): Likewise.
6917         * tests/test-getline.c (getline): Likewise.
6918         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6919         Likewise.
6920         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6921         * tests/test-glob.c (glob, globfree): Likewise.
6922         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6923         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6924         * tests/test-inet_pton.c (inet_pton): Likewise.
6925         * tests/test-isblank.c (isblank): Likewise.
6926         * tests/test-lchown.c (lchown): Likewise.
6927         * tests/test-ldexpl.c (ldexpl): Likewise.
6928         * tests/test-link.c (link): Likewise.
6929         * tests/test-linkat.c (linkat): Likewise.
6930         * tests/test-lseek.c (lseek): Likewise.
6931         * tests/test-lstat.c (lstat): Likewise.
6932         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6933         * tests/test-mbsinit.c (mbsinit): Likewise.
6934         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6935         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6936         * tests/test-memchr.c (memchr): Likewise.
6937         * tests/test-memcmp.c (memcmp): Likewise.
6938         * tests/test-memmem.c (memmem): Likewise.
6939         * tests/test-memrchr.c (memrchr): Likewise.
6940         * tests/test-mkdir.c (mkdir): Likewise.
6941         * tests/test-mkdirat.c (mkdirat): Likewise.
6942         * tests/test-mkfifo.c (mkfifo): Likewise.
6943         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6944         * tests/test-mknod.c (mknod): Likewise.
6945         * tests/test-nanosleep.c (nanosleep): Likewise.
6946         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6947         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6948         Likewise.
6949         * tests/test-open.c (open): Likewise.
6950         * tests/test-openat.c (openat): Likewise.
6951         * tests/test-perror.c (perror): Likewise.
6952         * tests/test-pipe2.c (pipe2): Likewise.
6953         * tests/test-poll.c (poll): Likewise.
6954         * tests/test-popen.c (popen, pclose): Likewise.
6955         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6956         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6957         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6958         (posix_spawn_file_actions_destroy)
6959         (posix_spawn_file_actions_addclose)
6960         (posix_spawn_file_actions_addopen)
6961         (posix_spawn_file_actions_adddup2): Likewise.
6962         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6963         * tests/test-pread.c (pread): Likewise.
6964         * tests/test-printf-posix.c (printf): Likewise.
6965         * tests/test-pty.c (openpty, forkpty): Likewise.
6966         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6967         (random_r): Likewise.
6968         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6969         * tests/test-readlink.c (readlink): Likewise.
6970         * tests/test-remove.c (remove): Likewise.
6971         * tests/test-rename.c (rename): Likewise.
6972         * tests/test-renameat.c (renameat): Likewise.
6973         * tests/test-rmdir.c (rmdir): Likewise.
6974         * tests/test-round1.c (round): Likewise.
6975         * tests/test-roundf1.c (roundf): Likewise.
6976         * tests/test-roundl.c (roundl): Likewise.
6977         * tests/test-setenv.c (setenv): Likewise.
6978         * tests/test-sigaction.c (sigaction): Likewise.
6979         * tests/test-sleep.c (sleep): Likewise.
6980         * tests/test-snprintf.c (snprintf): Likewise.
6981         * tests/test-sprintf-posix.c (sprintf): Likewise.
6982         * tests/test-stat.c (stat): Likewise.
6983         * tests/test-stpncpy.c (stpncpy): Likewise.
6984         * tests/test-strcasestr.c (strcasestr): Likewise.
6985         * tests/test-strchrnul.c (strchrnul): Likewise.
6986         * tests/test-strerror.c (strerror): Likewise.
6987         * tests/test-strsignal.c (strsignal): Likewise.
6988         * tests/test-strstr.c (strstr): Likewise.
6989         * tests/test-strtod.c (strtod): Likewise.
6990         * tests/test-strverscmp.c (strverscmp): Likewise.
6991         * tests/test-symlink.c (symlink): Likewise.
6992         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6993         * tests/test-times.c (times): Likewise.
6994         * tests/test-trunc1.c (trunc): Likewise.
6995         * tests/test-truncf1.c (truncf): Likewise.
6996         * tests/test-truncl.c (truncl): Likewise.
6997         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6998         Likewise.
6999         * tests/test-uname.c (uname): Likewise.
7000         * tests/test-unlink.c (unlink): Likewise.
7001         * tests/test-unlinkat.c (unlinkat): Likewise.
7002         * tests/test-unsetenv.c (unsetenv): Likewise.
7003         * tests/test-usleep.c (usleep): Likewise.
7004         * tests/test-utimensat.c (utimensat): Likewise.
7005         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
7006         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
7007         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
7008         * tests/test-vprintf-posix.c (vprintf): Likewise.
7009         * tests/test-vsnprintf.c (vsnprintf): Likewise.
7010         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
7011         * tests/test-wcrtomb.c (wcrtomb): Likewise.
7012         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
7013         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
7014         * tests/test-wcwidth.c (wcwidth): Likewise.
7015
7016         build: pull in conditional headers during GNULIB_POSIXCHECK
7017         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
7018         definitions from any conditionally-included headers.
7019         * lib/stdlib.in.h (includes): Likewise.
7020         * lib/unistd.in.h (includes): Likewise.
7021
7022 2009-12-24  Bruno Haible  <bruno@clisp.org>
7023
7024         * tests/test-argv-iter.c: Include header file being tested immediately
7025         after config.h.
7026         * tests/test-base64.c: Likewise.
7027         * tests/test-flock.c: Likewise.
7028         * tests/test-fsync.c: Likewise.
7029         * tests/test-getdate.c: Likewise.
7030         * tests/test-getndelim2.c: Likewise.
7031         * tests/test-isfinite.c: Likewise.
7032         * tests/test-isinf.c: Likewise.
7033         * tests/test-strerror.c: Likewise.
7034         * tests/test-strsignal.c: Likewise.
7035
7036 2009-12-23  Eric Blake  <ebb9@byu.net>
7037
7038         unistd: work around cygwin bug
7039         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
7040         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
7041         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7042
7043 2009-12-23  Bruno Haible  <bruno@clisp.org>
7044
7045         localename: More tests.
7046         * tests/test-localename.c (SIZEOF): New macro.
7047         (categories): New variable.
7048         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
7049         test_locale_name_default): Add test w.r.t. thread locale.
7050         (test_locale_name_thread): New function.
7051         (main): Invoke it.
7052
7053         localename: Make aware of thread locale.
7054         * lib/localename.h (gl_locale_name_thread): New declaration.
7055         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
7056         behaviour with respect to thread locale.
7057         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
7058         <langinfo.h>, glthread/lock.h.
7059         (SIZE_BITS): New macro.
7060         (string_hash): New function.
7061         (struct hash_node): New type.
7062         (HASH_TABLE_SIZE): New macro.
7063         (struniq_hash_table, struniq_lock): New variables.
7064         (struniq): New function.
7065         (gl_locale_name_thread): New function.
7066         (gl_locale_name): Invoke it.
7067         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
7068         * modules/localename (Depends-on): Add lock.
7069         Reported by Mike Gran <spk121@yahoo.com>.
7070
7071 2009-12-23  Eric Blake  <ebb9@byu.net>
7072
7073         va-args: new module
7074         * modules/va-args: New file.
7075         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
7076         * MODULES.html.sh (Core language properties): Mention it.
7077
7078         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
7079         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
7080         named alias for __attribute__((__unused__)).
7081         * lib/chown.c: Update client.
7082         * lib/fchmodat.c: Likewise.
7083         * lib/fts.c: Likewise.
7084         * lib/getdate.y: Likewise.
7085         * lib/getgroups.c: Likewise.
7086         * lib/getopt.c: Likewise.
7087         * lib/getugroups.c: Likewise.
7088         * lib/mkdir.c: Likewise.
7089         * lib/mkfifo.c: Likewise.
7090         * lib/mkfifoat.c: Likewise.
7091         * lib/mknod.c: Likewise.
7092         * lib/mknodat.c: Likewise.
7093         * lib/readlink.c: Likewise.
7094         * lib/se-context.in.h: Likewise.
7095         * lib/se-selinux.in.h: Likewise.
7096         * lib/sockets.c: Likewise.
7097         * lib/symlink.c: Likewise.
7098         * lib/symlinkat.c: Likewise.
7099         * lib/unicodeio.c: Likewise.
7100         * lib/unistr.h: Likewise.
7101         * tests/test-areadlink.c: Likewise.
7102         * tests/test-areadlinkat.c: Likewise.
7103         * tests/test-filenamecat.c: Likewise.
7104         * tests/test-fseeko.c: Likewise.
7105         * tests/test-ftello.c: Likewise.
7106         * tests/test-getdate.c: Likewise.
7107         * tests/test-getgroups.c: Likewise.
7108         * tests/test-gethostname.c: Likewise.
7109         * tests/test-quotearg.c: Likewise.
7110         * tests/test-version-etc.c: Likewise.
7111         * tests/test-xalloc-die.c: Likewise.
7112         * tests/test-xfprintf-posix.c: Likewise.
7113         * tests/test-xprintf-posix.c: Likewise.
7114         * tests/test-xvasprintf.c: Likewise.
7115
7116         tests: avoid compiler warnings
7117         * tests/test-fcntl.c (main): Delete unused parameters.
7118         * tests/test-freopen-safer.c (main): Likewise.
7119         * tests/test-xalloc-die.c (main): Mark unused parameters.
7120         * tests/test-fseeko.c (main): Likewise.
7121         * tests/test-ftello.c (main): Likewise.
7122         * tests/test-nanosleep.c (main): Avoid declaration warning.
7123         * tests/test-sleep.c (main): Likewise.
7124         * tests/test-unsetenv.c (main): Silence warning about string
7125         literal.
7126         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
7127
7128 2009-12-23  Bruno Haible  <bruno@clisp.org>
7129
7130         * tests/test-localename.c (test_locale_name): New function, extracted
7131         from main. Also test mixed situations.
7132         (test_locale_name_posix, test_locale_name_environ,
7133         test_locale_name_default): New functions.
7134         (main): Invoke them all.
7135         * modules/localename-tests (configure.ac): Test for newlocale.
7136
7137 2009-12-23  Bruno Haible  <bruno@clisp.org>
7138
7139         unistd: Ensure getcwd gets declared before being overridden.
7140         * lib/unistd.in.h: Conditionally include <io.h>.
7141
7142 2009-12-22  Bruno Haible  <bruno@clisp.org>
7143
7144         wchar: Diagnose broken combination of glibc and gcc versions and flags.
7145         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
7146         (gl_WCHAR_H): Invoke it.
7147         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
7148         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
7149         Reported by Karl Berry <karl@freefriends.org>.
7150
7151 2009-12-22  Eric Blake  <ebb9@byu.net>
7152
7153         math, unistd: avoid redundant includes
7154         * lib/math.in.h (isnan): No need to re-include <math.h>.
7155         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
7156
7157         getsubopt: work around cygwin bug
7158         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
7159         avoid conflicting with system getsubopt.
7160         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
7161         bug.
7162
7163         getopt: synchronize from glibc
7164         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
7165         parameter order.  Adjust all callers.
7166         (_getopt_internal_r, main): Adjust quoting in error messages.
7167         Drop considerations for outdated POSIX 1003.2 error message.
7168         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
7169         callers.
7170         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
7171
7172         test-getopt: test stderr behavior
7173         * modules/getopt-posix-tests (Depends-on): Add dup2.
7174         * tests/test-getopt.c (ASSERT): Avoid stderr.
7175         (main): Move stderr to a temporary file.
7176         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
7177         Instead, add parameter to inform caller if output occurred.
7178         (test_getopt): Adjust all existing tests to expect silence, and
7179         add new tests of leading ":".
7180         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7181         glibc shortcomings with leading "-:" or "+:" in optstring.
7182         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7183         Likewise.
7184         * doc/posix-functions/getopt.texi (getopt): Likewise.
7185
7186         test-getopt: enhance test
7187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
7188         supports optind=0.
7189         * tests/test-getopt.c (OPTIND_MIN): Move...
7190         * tests/test-getopt.h (OPTIND_MIN): ...here.
7191         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
7192         Require that optind=0 works, since modern BSD supports it in
7193         addition to optreset, and since coreutils expects it.
7194         (test_getopt_long_only): New test.
7195         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7196         glibc shortcomings with 'W;', and enforcement of optind=0.
7197         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7198         Likewise.
7199
7200 2009-12-21  Bruno Haible  <bruno@clisp.org>
7201
7202         localename: Improvements for MacOS X and Cygwin.
7203         * lib/localename.h (gl_locale_name_environ): New declaration.
7204         * lib/localename.c (gl_locale_name_environ): New function, extracted from
7205         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
7206         (gl_locale_name_posix): Invoke it.
7207         (gl_locale_name_default): Add comments. Use Windows native API also on
7208         Cygwin.
7209
7210 2009-12-21  Bruno Haible  <bruno@clisp.org>
7211
7212         Update list of Win32 locale ids.
7213         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
7214         (LANG_SAMI): Renamed from LANG_SAAMI.
7215         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
7216         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
7217         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
7218         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
7219         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
7220         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
7221         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
7222         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
7223         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
7224         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
7225         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
7226         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
7227         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
7228         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
7229         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
7230         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
7231         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
7232         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
7233         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
7234         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
7235         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
7236         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
7237         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
7238         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
7239         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
7240         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
7241         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
7242         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
7243         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
7244         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
7245         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
7246         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
7247         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
7248         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
7249         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
7250         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
7251         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
7252         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
7253         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
7254         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
7255         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
7256         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
7257         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
7258         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
7259         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
7260         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
7261         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
7262         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
7263         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
7264         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
7265         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
7266         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
7267         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
7268         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
7269         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
7270         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
7271         Add more languages and countries for Sami, Sorbian. Add more countries
7272         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
7273         for Pashto. Change country for Syriac, Tswana.
7274
7275 2009-12-21  Eric Blake  <ebb9@byu.net>
7276
7277         test-utimens: avoid spurious failure
7278         * tests/test-chown.h (nap): Factor...
7279         * tests/nap.h: ...into new file.
7280         * tests/test-lchown.h (nap): Avoid duplication.
7281         * tests/test-utimens-common.h (nap): Use shared implementation,
7282         necessary on file systems with 1-second resolution.
7283         * modules/chown-tests (Files): Include new file.
7284         * modules/fdutimensat-tests (Files): Likewise.
7285         * modules/futimens-tests (Files): Likewise.
7286         * modules/lchown-tests (Files): Likewise.
7287         * modules/openat-tests (Files): Likewise.
7288         * modules/utimens-tests (Files): Likewise.
7289         * modules/utimensat-tests (Files): Likewise.
7290
7291 2009-12-19  Eric Blake  <ebb9@byu.net>
7292
7293         futimens, utimensat: work around Linux bug
7294         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
7295         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7296         * lib/utimensat.c (rpl_utimensat): Work around it.
7297         * lib/futimens.c (rpl_futimens): Adjust comment.
7298
7299         utimens: work around Linux ctime bug
7300         * lib/utimens.c (detect_ctime_bug): New helper function.
7301         (update_timespec): Differentiate between workaround needed for
7302         this bug vs. what is needed for systems that lack utimensat.
7303         (fdutimens, lutimens): Work around bug.
7304
7305         utimens: check for ctime update
7306         * tests/test-utimens-common.h (check_ctime): Define.
7307         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
7308         * tests/test-futimens.h (test_futimens): Likewise.
7309         * tests/test-lutimens.h (test_lutimens): Likewise.
7310         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7311         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7312
7313 2009-12-19  Bruno Haible  <bruno@clisp.org>
7314
7315         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7316         * tests/test-dprintf-posix2.sh: New file.
7317         * tests/test-dprintf-posix2.c: New file.
7318         * modules/dprintf-posix-tests (Files): Add them.
7319         (configure.ac): Check for getrlimit and setrlimit.
7320         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7321
7322 2009-12-19  Bruno Haible  <bruno@clisp.org>
7323
7324         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7325         * tests/test-fprintf-posix3.sh: New file.
7326         * tests/test-fprintf-posix3.c: New file.
7327         * modules/fprintf-posix-tests (Files): Add them.
7328         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7329
7330 2009-12-19  Eric Blake  <ebb9@byu.net>
7331
7332         dirfd: fix prototype
7333         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7334         * lib/dirfd.c (dirfd): Likewise.
7335
7336         canonicalize: reduce memory usage
7337         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7338         allocation to size.
7339         Reported by Solar Designer <solar@openwall.com>.
7340
7341 2009-12-19  Bruno Haible  <bruno@clisp.org>
7342
7343         New module attribute 'Applicability'.
7344         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7345         * gnulib-tool: New option --extract-applicability.
7346         (func_usage): Document it.
7347         (sed_extract_prog): Recognize it.
7348         (func_get_applicability): New function.
7349         (func_import): Generalize handling of 'link-warning' module.
7350         * modules/link-warning (Applicability): New section.
7351         * modules/arg-nonnull (Applicability): New section.
7352         Repoted by Simon Josefsson <simon@josefsson.org>.
7353
7354 2009-12-19  Bruno Haible  <bruno@clisp.org>
7355
7356         fflush: tweak
7357         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7358         * lib/fseeko.c (rpl_fseeko): Likewise.
7359
7360 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7361
7362         * lib/gl_list.h: Fix typo in comment.
7363
7364 2009-12-16  Eric Blake  <ebb9@byu.net>
7365
7366         fcntl: use to simplify other modules
7367         * modules/cloexec (Depends-on): Add fcntl.
7368         * modules/fchdir (Depends-on): Likewise.
7369         * modules/fd-safer-flag (Depends-on): Likewise.
7370         * modules/unistd-safer (Depends-on): Likewise.
7371         * modules/dup3 (configure.ac): Set module indicator.
7372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7373         missing.
7374         * lib/fchdir.c (_gl_register_dup): Fix comment.
7375         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7376         * lib/dup-safer.c (dup_safer): Likewise.
7377         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7378         * lib/dup3.c (dup3): Likewise.
7379         * tests/test-fchdir.c (main): Enhance test.
7380         Fixes a dup_cloexec bug reported by Ondřej Vašík.
7381
7382         fcntl: port portions of fcntl to mingw
7383         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7384         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7385         replacement for mingw.
7386         * modules/fcntl (Description): Update.
7387         (Depends-on): Add dup2.
7388         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7389         * modules/fcntl-h (Makefile.am): Substitute it.
7390         * lib/fcntl.in.h (fcntl): Update declaration.
7391         (F_DUPFD, F_GETFD): New macros, when needed.
7392         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7393         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7394         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7395         we now guarantee.
7396
7397         fcntl: work around cygwin bug in F_DUPFD
7398         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7399         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7400         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7401         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7402         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7403
7404         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7405         * modules/fcntl (Files): List new files.
7406         (configure.ac): Run a test.
7407         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7408         * lib/fcntl.c (rpl_fcntl): Likewise.
7409         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7410         (gl_FCNTL_H): Always replace fcntl.h.
7411         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7412         * lib/fcntl.in.h (fcntl): Declare replacement.
7413         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7414         needed, plus a witness.
7415         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7416         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7417         * tests/test-fcntl.c: New file.
7418         * modules/fcntl-tests: Likewise.
7419
7420         binary-io: avoid potential compilation warning
7421         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7422         directives.
7423
7424         fflush: avoid compilation error on NetBSD
7425         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7426         between off_t and fpos_t, since the latter is sometimes a struct.
7427         * lib/fseeko.c (rpl_fseeko): Likewise.
7428         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7429
7430 2009-12-15  Eric Blake  <ebb9@byu.net>
7431
7432         fcntl-h, stdio, sys_ioctl: fix declarations
7433         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7434         function must not take arguments.
7435         * lib/sys_ioctl.in.h (ioctl): Likewise.
7436         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7437         (open): Add a link warning.
7438
7439 2009-12-15  Jim Meyering  <meyering@redhat.com>
7440
7441         areadlink, areadlink-with-size: relax license to LGPLv2+
7442         * modules/areadlink (License): Relax to LGPLv2+.
7443         * modules/areadlink-with-size (License): Likewise.
7444
7445 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7446             Bruno Haible  <bruno@clisp.org>
7447
7448         *printf: Fix memory leak.
7449         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7450         * lib/vfprintf.c (vfprintf): Likewise.
7451         * lib/dprintf.c (dprintf): Likewise.
7452         * lib/vdprintf.c (vdprintf): Likewise.
7453
7454 2009-12-14  Eric Blake  <ebb9@byu.net>
7455
7456         accept4: adjust module dependencies
7457         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7458
7459         utimens: one more try at avoiding compiler warning
7460         * lib/utimens.c (lutimens): Lower scope of result.
7461
7462 2009-12-13  Bruno Haible  <bruno@clisp.org>
7463
7464         Move the malloc checking from module 'list' to new module 'xlist'.
7465         * modules/xlist: New file.
7466         * lib/gl_xlist.h: New file.
7467         * lib/gl_xlist.c: New file.
7468         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7469         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7470         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7471         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7472         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7473         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7474         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7475         gl_sortedlist_nx_add): New declarations.
7476         (struct gl_list_implementation): Rename and change methods accordingly.
7477         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7478         (gl_list_nx_create): Renamed from gl_list_create.
7479         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7480         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7481         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7482         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7483         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7484         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7485         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7486         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7487         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7488         gl_list_create_empty.
7489         (gl_list_nx_create): Renamed from gl_list_create.
7490         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7491         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7492         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7493         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7494         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7495         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7496         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7497         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7498         * lib/gl_array_list.c: Don't include xalloc.h.
7499         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7500         NULL upon out-of-memory.
7501         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7502         out-of-memory.
7503         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7504         Change return type to 'int'.
7505         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7506         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7507         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7508         upon out-of-memory.
7509         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7510         upon out-of-memory.
7511         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7512         upon out-of-memory.
7513         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7514         upon out-of-memory.
7515         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7516         out-of-memory.
7517         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7518         Update.
7519         (gl_array_list_implementation): Update.
7520         * lib/gl_carray_list.c: Don't include xalloc.h.
7521         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7522         Return NULL upon out-of-memory.
7523         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7524         out-of-memory.
7525         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7526         Change return type to 'int'.
7527         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7528         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7529         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7530         upon out-of-memory.
7531         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7532         upon out-of-memory.
7533         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7534         out-of-memory.
7535         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7536         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7537         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7538         Update.
7539         (gl_carray_list_implementation): Update.
7540         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7541         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7542         gl_linked_create_empty. Return NULL upon out-of-memory.
7543         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7544         out-of-memory.
7545         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7546         Change return type to 'int'. Return -1 upon out-of-memory.
7547         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7548         out-of-memory.
7549         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7550         upon out-of-memory.
7551         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7552         upon out-of-memory.
7553         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7554         NULL upon out-of-memory.
7555         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7556         upon out-of-memory.
7557         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7558         out-of-memory.
7559         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7560         Update.
7561         * lib/gl_linked_list.c: Don't include xalloc.h.
7562         (gl_linked_list_implementation): Update.
7563         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7564         (add_to_bucket): Change return type to 'int'.
7565         (gl_linkedhash_list_implementation): Update.
7566         * lib/gl_anytree_list1.h (free_subtree): New function.
7567         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7568         gl_tree_create_empty. Return NULL upon out-of-memory.
7569         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7570         Change return type to 'int'. Return -1 upon out-of-memory.
7571         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7572         out-of-memory.
7573         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7574         (gl_tree_remove_node): New function, moved here from
7575         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7576         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7577         Update.
7578         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7579         malloc, not xmalloc. Return NULL upon out-of-memory.
7580         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7581         out-of-memory.
7582         (gl_tree_remove_node_from_tree): New function, extracted from
7583         gl_tree_remove_node.
7584         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7585         upon out-of-memory.
7586         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7587         out-of-memory.
7588         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7589         upon out-of-memory.
7590         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7591         upon out-of-memory.
7592         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7593         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7594         not xmalloc. Return NULL upon out-of-memory.
7595         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7596         out-of-memory.
7597         (gl_tree_remove_node_from_tree): New function, extracted from
7598         gl_tree_remove_node.
7599         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7600         upon out-of-memory.
7601         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7602         out-of-memory.
7603         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7604         upon out-of-memory.
7605         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7606         upon out-of-memory.
7607         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7608         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7609         gl_anytree_list1.h before gl_anyavltree_list2.h.
7610         (gl_avltree_list_implementation): Update.
7611         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7612         gl_anytree_list1.h before gl_anyavltree_list2.h.
7613         (gl_rbtree_list_implementation): Update.
7614         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7615         Change return type to 'int'. Return -1 upon out-of-memory. Use
7616         __builtin_expect.
7617         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7618         (gl_avltreehash_list_implementation): Update.
7619         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7620         (gl_rbtreehash_list_implementation): Update.
7621         * modules/array-list (Depends-on): Remove xalloc.
7622         * modules/carray-list (Depends-on): Likewise.
7623         * modules/linked-list (Depends-on): Likewise.
7624         * modules/linkedhash-list (Depends-on): Likewise.
7625         * modules/avltree-list (Depends-on): Likewise.
7626         * modules/rbtree-list (Depends-on): Likewise.
7627         * modules/avltreehash-list (Depends-on): Likewise.
7628         * modules/rbtreehash-list (Depends-on): Likewise.
7629
7630         * modules/xsublist: New file.
7631         * lib/gl_xsublist.h: New file.
7632         * lib/gl_xsublist.c: New file.
7633         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7634         (gl_sublist_nx_create): New declaration.
7635         * lib/gl_sublist.c: Don't include xalloc.h.
7636         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7637         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7638         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7639         Change return type to 'int'. Return -1 upon out-of-memory.
7640         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7641         upon out-of-memory.
7642         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7643         NULL upon out-of-memory.
7644         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7645         upon out-of-memory.
7646         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7647         NULL upon out-of-memory.
7648         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7649         NULL upon out-of-memory.
7650         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7651         upon out-of-memory.
7652         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7653         (gl_sublist_list_implementation): Update.
7654         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7655         upon out-of-memory.
7656         * modules/sublist (Depends-on): Remove xalloc.
7657
7658         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7659         * tests/test-carray_list.c: Likewise.
7660         * tests/test-linked_list.c: Likewise.
7661         * tests/test-linkedhash_list.c: Likewise.
7662         * tests/test-avltree_list.c: Likewise.
7663         * tests/test-rbtree_list.c: Likewise.
7664         * tests/test-avltreehash_list.c: Likewise.
7665         * tests/test-rbtreehash_list.c: Likewise.
7666         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7667         * modules/carray-list-tests (Makefile.am): Likewise.
7668         * modules/linked-list-tests (Makefile.am): Likewise.
7669         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7670         * modules/avltree-list-tests (Makefile.am): Likewise.
7671         * modules/rbtree-list-tests (Makefile.am): Likewise.
7672         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7673         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7674
7675         * NEWS: Mention the changes.
7676
7677         * lib/clean-temp.c: Include gl_xlist.h.
7678         * modules/clean-temp (Depends-on): Add xlist.
7679
7680         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7681         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7682
7683         * tests/test-array_oset.c: Include gl_xlist.h.
7684         * modules/array-oset-tests (Depends-on): Add xlist.
7685
7686         Reported by José E. Marchesi <jemarch@gnu.org>.
7687
7688 2009-12-13  Bruno Haible  <bruno@clisp.org>
7689
7690         Move the malloc checking from module 'oset' to new module 'xoset'.
7691         * modules/xoset: New file.
7692         * lib/gl_xoset.h: New file.
7693         * lib/gl_xoset.c: New file.
7694         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7695         declarations.
7696         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7697         (struct gl_oset_implementation): Rename and change methods accordingly.
7698         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7699         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7700         'int'. Mark as __warn_unused_result__.
7701         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7702         gl_oset_create_empty.
7703         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7704         'int'.
7705         * lib/gl_array_oset.c: Don't include xalloc.h.
7706         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7707         malloc, not xmalloc.
7708         (grow): Change return type to 'int'. Don't call xalloc_die.
7709         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7710         to 'int'.
7711         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7712         'int'.
7713         (gl_array_oset_implementation): Update.
7714         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7715         gl_tree_create_empty.
7716         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7717         'int'.
7718         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7719         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7720         xmalloc.
7721         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7722         not xmalloc.
7723         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7724         xmalloc.
7725         (gl_avltree_oset_implementation): Update.
7726         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7727         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7728         xmalloc.
7729         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7730         not xmalloc.
7731         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7732         xmalloc.
7733         (gl_rbtree_oset_implementation): Update.
7734         * modules/array-oset (Depends-on): Remove xalloc.
7735         * modules/avltree-oset (Depends-on): Likewise.
7736         * modules/rbtree-oset (Depends-on): Likewise.
7737         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7738         * tests/test-avltree_oset.c: Likewise.
7739         * tests/test-rbtree_oset.c: Likewise.
7740         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7741         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7742         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7743         * NEWS: Mention the change.
7744
7745 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7746
7747         maint.mk: allow a project to override release-prep commands
7748         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7749         commands into a new rule.
7750         (release-prep): New rule.
7751         (release-prep-hook): New overridable variable.
7752
7753 2009-12-13  Bruno Haible  <bruno@clisp.org>
7754
7755         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7756
7757 2009-12-13  Jim Meyering  <meyering@redhat.com>
7758
7759         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7760         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7761
7762 2009-12-12  Bruno Haible  <bruno@clisp.org>
7763
7764         duplocale: Tweak.
7765         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7766
7767 2009-12-12  Karl Berry  <karl@gnu.org>
7768
7769         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7770
7771 2009-12-12  Bruno Haible  <bruno@clisp.org>
7772
7773         * m4/po.m4: Undo incorrect untabification.
7774
7775 2009-12-12  Bruno Haible  <bruno@clisp.org>
7776
7777         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7778         * modules/c-strtod (Depends-on): Add locale.
7779         * modules/c-strtold (Depends-on): Likewise.
7780
7781 2009-12-12  Bruno Haible  <bruno@clisp.org>
7782
7783         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7784
7785 2009-12-11  Eric Blake  <ebb9@byu.net>
7786
7787         setenv: relax requirement in light of POSIX ruling
7788         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7789         not NULL.
7790         * tests/test-setenv.c (main): Relax test.
7791         * tests/test-unsetenv.c (main): Likewise.
7792         * doc/posix-functions/setenv.texi (setenv): Document this.
7793         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7794
7795 2009-12-11  Bruno Haible  <bruno@clisp.org>
7796
7797         New module 'fd-safer-flag'.
7798         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7799         * lib/dup-safer.c (dup_safer_flag): Remove function.
7800         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7801         * lib/fd-safer.c (fd_safer_flag): Remove function.
7802         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7803         * modules/cloexec (configure.ac): Drop indicator macro.
7804         * modules/fd-safer-flag: New file.
7805         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7806         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7807         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7808
7809 2009-12-11  Bruno Haible  <bruno@clisp.org>
7810
7811         Tests for module 'nl_langinfo'.
7812         * modules/nl_langinfo-tests: New file.
7813         * tests/test-nl_langinfo.sh: New file.
7814         * tests/test-nl_langinfo.c: New file.
7815
7816         New module 'nl_langinfo'.
7817         * lib/nl_langinfo.c: New file.
7818         * m4/nl_langinfo.m4: New file.
7819         * modules/nl_langinfo: New file.
7820         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7821
7822 2009-12-11  Bruno Haible  <bruno@clisp.org>
7823
7824         Tests for module 'langinfo'.
7825         * modules/langinfo-tests: New file.
7826         * tests/test-langinfo.c: New file.
7827
7828         New module 'langinfo'.
7829         * lib/langinfo.in.h: New file.
7830         * m4/langinfo_h.m4: New file.
7831         * modules/langinfo: New file.
7832         * doc/posix-headers/langinfo.texi: Mention the new module.
7833
7834 2009-12-11  Bruno Haible  <bruno@clisp.org>
7835
7836         * lib/config.charset: Untabify.
7837
7838 2009-12-11  Bruno Haible  <bruno@clisp.org>
7839
7840         * modules/unistd-safer (configure.ac): Drop indicator macro.
7841
7842 2009-12-11  Bruno Haible  <bruno@clisp.org>
7843
7844         Move pipe2-safer code to its own file.
7845         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7846         * lib/pipe-safer.c (pipe2_safer): Remove function.
7847         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7848         (Makefile.am): Add it to lib_SOURCES.
7849
7850 2009-12-10  Bruno Haible  <bruno@clisp.org>
7851
7852         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7853
7854 2009-12-10  Bruno Haible  <bruno@clisp.org>
7855
7856         Declare which arguments expect non-NULL values, for GCC and clang.
7857         * build-aux/arg-nonnull.h: New file.
7858         * modules/arg-nonnull: New file.
7859         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7860         (inet_ntop, inet_pton): Use it.
7861         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7862         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7863         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7864         (open, openat): Use it.
7865         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7866         (fnmatch): Use it.
7867         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7868         (getopt, getopt_long, getopt_long_only): Use it.
7869         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7870         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7871         Use it.
7872         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7873         (iconv_open): Use it.
7874         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7875         (strtoimax, strtoumax): Use it.
7876         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7877         (duplocale): Use it.
7878         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7879         (frexp, frexpl): Use it.
7880         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7881         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7882         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7883         (tsearch, tfind, tdelete, twalk): Use it.
7884         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7885         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7886         sigpending): Use it.
7887         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7888         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7889         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7890         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7891         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7892         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7893         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7894         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7895         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7896         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7897         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7898         Use it.
7899         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7900         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7901         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7902         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7903         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7904         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7905         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7906         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7907         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7908         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7909         strtoull, unsetenv): Use it.
7910         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7911         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7912         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7913         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7914         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7915         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7916         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7917         (strcasecmp, strncasecmp): Use it.
7918         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7919         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7920         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7921         rpl_setsockopt): Use it.
7922         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7923         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7924         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7925         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7926         (gettimeofday): Use it.
7927         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7928         (times): Use it.
7929         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7930         (uname): Use it.
7931         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7932         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7933         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7934         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7935         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7936         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7937         unlinkat, write): Use it.
7938         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7939         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7940         * lib/argv-iter.h: Include arg-nonnull.h.
7941         (_ATTRIBUTE_NONNULL_): Remove macro.
7942         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7943         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7944         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7945         optimization.
7946         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7947         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7948         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7949         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7950         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7951         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7952         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7953         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7954         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7955         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7956         * modules/dirent (Depends-on): Add arg-nonnull.
7957         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7958         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7959         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7960         * modules/fnmatch (Depends-on): Add arg-nonnull.
7961         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7962         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7963         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7964         * modules/glob (Depends-on): Add arg-nonnull.
7965         (Makefile.am): Insert arg-nonnull.h into glob.h.
7966         * modules/iconv_open (Depends-on): Add arg-nonnull.
7967         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7968         * modules/inttypes (Depends-on): Add arg-nonnull.
7969         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7970         * modules/locale (Depends-on): Add arg-nonnull.
7971         (Makefile.am): Insert arg-nonnull.h into locale.h.
7972         * modules/math (Depends-on): Add arg-nonnull.
7973         (Makefile.am): Insert arg-nonnull.h into math.h.
7974         * modules/netdb (Depends-on): Add arg-nonnull.
7975         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7976         * modules/search (Depends-on): Add arg-nonnull.
7977         (Makefile.am): Insert arg-nonnull.h into search.h.
7978         * modules/signal (Depends-on): Add arg-nonnull.
7979         (Makefile.am): Insert arg-nonnull.h into signal.h.
7980         * modules/spawn (Depends-on): Add arg-nonnull.
7981         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7982         * modules/stdio (Depends-on): Add arg-nonnull.
7983         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7984         * modules/stdlib (Depends-on): Add arg-nonnull.
7985         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7986         * modules/string (Depends-on): Add arg-nonnull.
7987         (Makefile.am): Insert arg-nonnull.h into string.h.
7988         * modules/strings (Depends-on): Add arg-nonnull.
7989         (Makefile.am): Insert arg-nonnull.h into strings.h.
7990         * modules/sys_socket (Depends-on): Add arg-nonnull.
7991         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7992         * modules/sys_stat (Depends-on): Add arg-nonnull.
7993         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7994         * modules/sys_time (Depends-on): Add arg-nonnull.
7995         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7996         * modules/sys_times (Depends-on): Add arg-nonnull.
7997         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7998         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7999         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
8000         * modules/time (Depends-on): Add arg-nonnull.
8001         (Makefile.am): Insert arg-nonnull.h into time.h.
8002         * modules/unistd (Depends-on): Add arg-nonnull.
8003         (Makefile.am): Insert arg-nonnull.h into unistd.h.
8004         * modules/wchar (Depends-on): Add arg-nonnull.
8005         (Makefile.am): Insert arg-nonnull.h into wchar.h.
8006         * modules/argv-iter (Depends-on): Add arg-nonnull.
8007         * tests/test-canonicalize.c (null_ptr): New function.
8008         (main): Use it.
8009         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
8010         (main): Use it.
8011         * tests/test-memmem.c (null_ptr): New function.
8012         (main): Use it.
8013         Reported by Jim Meyering.
8014
8015 2009-12-10  Bruno Haible  <bruno@clisp.org>
8016
8017         Use spaces for indentation, not tabs.
8018         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
8019         * m4/*.m4: Untabify.
8020         * build-aux/*.h: Untabify.
8021         * tests/**/*.[hc]: Untabify.
8022         * README: New section "Indent with spaces, not TABs", based on
8023         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
8024         * NEWS: Mention the change.
8025
8026 2009-12-10  Bruno Haible  <bruno@clisp.org>
8027
8028         pty test: Fix link error.
8029         * modules/pty-tests (Makefile.am): Add the default LDADD value to
8030         test_pty_LDADD.
8031
8032 2009-12-07  Simon Josefsson  <simon@josefsson.org>
8033
8034         * modules/pty: New file.
8035         * modules/pty-tests: New file.
8036         * m4/pty.m4: New file.
8037         * tests/test-pty.c: New file.
8038         * doc/glibc-headers/pty.texi: Modified.
8039         * doc/glibc-functions/forkpty.texi: Modified.
8040         * doc/glibc-functions/openpty.texi: Modified.
8041
8042 2009-12-10  Bruno Haible  <bruno@clisp.org>
8043
8044         Avoid syntax error in C++ mode.
8045         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
8046
8047 2009-12-10  Bruno Haible  <bruno@clisp.org>
8048
8049         Use sed with option -e.
8050         * gnulib-tool (func_version, func_emit_copyright_notice,
8051         func_emit_initmacro_end, func_import, func_create_testdir): Pass
8052         option -e to sed.
8053         * modules/link-warning (Makefile.am): Likewise.
8054
8055 2009-12-10  Jim Meyering  <meyering@redhat.com>
8056
8057         mgetgroups: do not write bytes beyond end of malloc'd buffer
8058         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
8059         username, we call getgroups with a one-element-shorter buffer,
8060         but still told it the length was original, max_n_groups.
8061
8062 2009-12-09  Eric Blake  <ebb9@byu.net>
8063
8064         cloexec: relax license
8065         * modules/cloexec (Maintainer): Add myself.
8066         (License): Use LGPL, not GPL.
8067
8068         link-warning: optimize generation
8069         * modules/link-warning (Makefile.am): Reduce process usage.
8070
8071 2009-12-09  Bruno Haible  <bruno@clisp.org>
8072
8073         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
8074         workaround was added on 2009-11-17.
8075
8076 2009-12-09  Jim Meyering  <meyering@redhat.com>
8077             Bruno Haible  <bruno@clisp.org>
8078
8079         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
8080         * modules/link-warning (Makefile.am): Make the comment-removing sed
8081         command more robust in the face of bootstrap-prepended comment lines.
8082
8083 2009-12-09  Bruno Haible  <bruno@clisp.org>
8084
8085         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
8086         most one group.
8087
8088 2009-12-09  Simon Josefsson <simon@josefsson.org>
8089             Bruno Haible  <bruno@clisp.org>
8090
8091         * build-aux/link-warning.h: Add copyright notice.
8092         * modules/link-warning (Makefile.am): Generate link-warning.h from
8093         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
8094         * NEWS: Mention change in link-warning module.
8095         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
8096         * modules/dirent (Makefile.am): Add dependency to dirent.h.
8097         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
8098         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
8099         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
8100         * modules/math (Makefile.am): Add dependency to math.h.
8101         * modules/search (Makefile.am): Add dependency to search.h.
8102         * modules/signal (Makefile.am): Add dependency to signal.h.
8103         * modules/spawn (Makefile.am): Add dependency to spawn.h.
8104         * modules/stdio (Makefile.am): Add dependency to stdio.h.
8105         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
8106         * modules/string (Makefile.am): Add dependency to string.h.
8107         * modules/strings (Makefile.am): Add dependency to strings.h.
8108         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
8109         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
8110         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
8111         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
8112         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
8113         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
8114         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
8115         * modules/unistd (Makefile.am): Add dependency to unistd.h.
8116         * modules/wchar (Makefile.am): Add dependency to wchar.h.
8117
8118 2009-12-09  Bruno Haible  <bruno@clisp.org>
8119
8120         fchdir: Optimize away rpl_fstat when possible.
8121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
8122         REPLACE_OPEN_DIRECTORY.
8123         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
8124
8125 2009-12-09  Bruno Haible  <bruno@clisp.org>
8126
8127         * lib/fchdir.c: Update comment.
8128
8129 2009-12-09  Bruno Haible  <bruno@clisp.org>
8130
8131         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
8132
8133 2009-12-08  Eric Blake  <ebb9@byu.net>
8134
8135         fchdir: avoid memory leak on re-registration.
8136         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
8137
8138 2009-12-08  Jim Meyering  <meyering@redhat.com>
8139
8140         init.sh: avoid Solaris 10 /bin/sh portability problem
8141         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
8142         sourced script:
8143           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
8144           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
8145           bar
8146         tests/init.sh relied on that, accepting a --set-path=DIR argument,
8147         and two tests used that idiom.
8148         * tests/init.sh: Update suggested usage comments.
8149         (path_prepend_): New function, to be used in place
8150         of the --src-path=DIR option.
8151         (setup_): Move PATH-prepending code into path_prepend_.
8152         * tests/test-pread.sh: Adapt to new usage.
8153         * tests/test-xalloc-die.sh: Likewise.
8154
8155 2009-12-08  Simon Josefsson  <simon@josefsson.org>
8156
8157         * doc/gnulib.texi (Glibc pty.h): Add.
8158         * doc/glibc-functions/forkpty.texi: Add.
8159         * doc/glibc-functions/openpty.texi: Add.
8160         Suggested by Bruno Haible.
8161
8162 2009-12-08  Eric Blake  <ebb9@byu.net>
8163
8164         fchdir: fix logic bugs
8165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
8166         * tests/test-fchdir.c (main): Enhance test.
8167         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
8168         is in use.
8169
8170         dup2: fix logic bugs
8171         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
8172         REPLACE_DUP2 to decide when rpl_dup2 is needed.
8173         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
8174         exists.
8175         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
8176
8177 2009-12-07  Eric Blake  <ebb9@byu.net>
8178
8179         unlink: fix m4 detection
8180         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
8181
8182         unistd-safer: add unit test
8183         * modules/unistd-safer-tests: New file.
8184         * tests/test-dup-safer.c: Likewise.
8185         * tests/test-cloexec.c (setmode): Avoid compiler warning.
8186         * tests/test-dup2.c (setmode): Likewise.
8187         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
8188
8189         cloexec: preserve text vs. binary across dup_cloexec
8190         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
8191         mode.
8192         * modules/dup2-tests (Depends-on): Add binary-io.
8193         * modules/cloexec-tests (Depends-on): Likewise.
8194         * tests/test-dup2.c (setmode, is_mode): New helpers.
8195         (main): Add tests that translation mode is preserved.
8196         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
8197         Reported by Bruno Haible.
8198
8199         mgetgroups: reduce duplicate listings
8200         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
8201         resulting array.
8202         * tests/test-chown.h (test_chown): Simplify client.
8203         * tests/test-lchown.h (test_lchown): Likewise.
8204
8205 2009-12-06  Bruno Haible  <bruno@clisp.org>
8206
8207         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
8208         value.
8209
8210 2009-12-06  Bruno Haible  <bruno@clisp.org>
8211
8212         * lib/progname.c: Include stdio.h, stdlib.h.
8213         (set_program_name): Reject a NULL argument.
8214
8215 2009-12-05  Eric Blake  <ebb9@byu.net>
8216
8217         pipe2-safer: new module
8218         * modules/pipe2-safer: New file.
8219         * lib/unistd-safer.h (pipe2_safer): New prototype.
8220         * lib/unistd--.h (pipe2): New wrapper.
8221         * lib/pipe-safer.c (pipe2_safer): New function.
8222         * modules/pipe (Depends-on): Add pipe2-safer.
8223         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
8224
8225         stdlib-safer: preserve cloexec flag for mkostemp[s]
8226         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
8227         fd_safer_flag.
8228
8229         unistd-safer: allow preservation of cloexec status via flag
8230         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
8231         prototypes.
8232         * lib/dup-safer.c (dup_safer_flag): New function.
8233         * lib/fd-safer.c (fd_safer_flag): Likewise.
8234         * modules/cloexec (configure.ac): Set witness.
8235
8236         test-dup2: enhance test
8237         * modules/dup2-tests (Depends-on): Add cloexec.
8238         * tests/test-dup2.c (main): Enhance test.
8239
8240         cloexec: add dup_cloexec
8241         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
8242         header and comments.
8243         * lib/cloexec.c (set_cloexec_flag): Add comments.
8244         (dup_cloexec): New function, with mingw implementation borrowed
8245         from...
8246         * lib/w32spawn.h (dup_noinherit): ...here.
8247         * modules/execute (Depends-on): Add cloexec.
8248         * modules/pipe (Depends-on): Likewise.
8249         * modules/cloexec (Depends-on): Add dup2.
8250         * modules/cloexec-tests (Files): New file.
8251         * tests/test-cloexec.c: Likewise.
8252
8253         test-xalloc-die: fix test for mingw
8254         * modules/xalloc-die-tests (Files): Add tests/init.sh.
8255         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
8256         directory and .exe suffix off argv[0] output.
8257
8258         test-fseeko: fix test for mingw
8259         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
8260         than undefining fseek, so test will pass on mingw.
8261
8262 2009-12-05  Bruno Haible  <bruno@clisp.org>
8263
8264         * lib/progname.h (set_program_name): Clarify specification.
8265         * lib/progname.c (set_program_name): Likewise.
8266         Reported by Jim Meyering.
8267
8268 2009-12-05  Jim Meyering  <meyering@redhat.com>
8269
8270         maint.mk: backslash-escape parens in default regexp
8271         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
8272         backslash-escape the literal parentheses.
8273
8274         maint.mk: news-date-check: use grep -E
8275         * top/maint.mk (today): Define a Make variable, not a...
8276         (news-date-check): ...shell variable.
8277         (news-date-regexp): Use the Make variable.
8278         Use grep's -E option.  Change the failing diagnostic to mention
8279         the variable, $(news-date-regexp).
8280
8281 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
8282
8283         maintainer-makefile: allow customization of NEWS entry format
8284         * top/maint.mk (news-date-regexp): New overridable variable.
8285         (news-date-check): Use it.
8286
8287 2009-12-04  Eric Blake  <ebb9@byu.net>
8288
8289         mgetgroups: add xgetgroups, and avoid ENOSYS failures
8290         * lib/mgetgroups.h (xgetgroups): New prototype.
8291         * lib/mgetgroups.c (xgetgroups): New wrapper.
8292         (mgetgroups): Handle ENOSYS.
8293         * modules/mgetgroups (Depends-on): Add realloc.
8294         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
8295
8296         mgetgroups: avoid argument promotion issues with -1
8297         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
8298         for invalid gid_t.
8299         * tests/test-chown.h (getegid, test_chown): Likewise.
8300         * tests/test-lchown.h (getegid, test_lchown): Likewise.
8301
8302 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
8303
8304         exclude: Fix header file problems.
8305         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
8306
8307 2009-12-01  Jim Meyering  <meyering@redhat.com>
8308
8309         fts: fts_open: do not let an empty string cause immediate failure
8310         This is required in support of GNU rm, for which the command
8311         "rm A '' B" must process and remove both A and B, in spite of
8312         the empty string argument.
8313         * lib/fts.c (fts_open): Do not let the presence of an empty string
8314         cause fts_open to fail immediately.  Most fts-using tools must be
8315         able to process all arguments, in order, and can be expected to
8316         diagnose such arguments themselves.
8317
8318 2009-11-30  Eric Blake  <ebb9@byu.net>
8319
8320         utimens: fix compilation error
8321         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8322         Declare variable at right scope.
8323
8324 2009-11-29  Jim Meyering  <meyering@redhat.com>
8325
8326         bootstrap: handle perl-5.11's changed --version output
8327         * build-aux/bootstrap (get_version): Handle perl separately,
8328         since perl-5.11's --version output is different.
8329
8330 2009-11-28  Jim Meyering  <meyering@redhat.com>
8331
8332         userspec: depend on the inttostr module, too
8333         * modules/userspec (Depends-on): Add inttostr.
8334
8335         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8336         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8337         number of MAXUID when it evaluates to (uid_t) -1.
8338         Likewise for group ID.  Reported by Matt McCutchen in
8339         <http://savannah.gnu.org/bugs/?28113>
8340
8341         userspec: reformat to use spaces, not TABs
8342         * lib/userspec.c: Expand TABs to spaces.
8343         Add Emacs' "indent-tabs-mode: nil" hint.
8344
8345 2009-11-27  Eric Blake  <ebb9@byu.net>
8346
8347         getopt-gnu: flush out another BSD bug
8348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8349         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8350         flush out BSD bug.
8351         * tests/test-getopt.h (test_getopt): End lists with NULL.
8352         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8353         (test_getopt_long_posix): Enhance test.
8354         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8355         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8356         getopt-gnu.
8357         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8358         Likewise.
8359
8360 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8361
8362         * modules/idpriv-droptemp-tests (Notice): Fix text.
8363
8364 2009-11-27  Jim Meyering  <meyering@redhat.com>
8365
8366         test-xalloc-die: avoid spurious failure due to libtool argv difference
8367         In a libtool-enabled project, this test would fail due to a difference
8368         in the emitted program name, e.g.,
8369         -test-xalloc-die: memory exhausted
8370         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8371         Use program to avoid that.
8372         * modules/xalloc-die-tests (Depends-on): Add progname.
8373         * tests/test-xalloc-die.c: Include progname.h".
8374         (program_name): Remove decl.
8375         (main): Call set_program_name.
8376         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8377
8378 2009-11-26  Richard Jones  <rjones@redhat.com>
8379
8380         w32sock: leave win32 error in place.
8381         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8382
8383 2009-11-26  Eric Blake  <ebb9@byu.net>
8384
8385         init.sh: suggest to use skip_ and fail_ functions in comments
8386         * tests/init.sh: Add a sentence.
8387
8388 2009-11-25  Bruno Haible  <bruno@clisp.org>
8389
8390         init.sh: add documentation in comments
8391         * tests/init.sh: Add some developer and user documentation.
8392
8393 2009-11-26  Jim Meyering  <meyering@redhat.com>
8394
8395         init.sh: accommodate even those who specify bogus srcdir manually
8396         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8397         configure-time tests to be sanitized, so that there is no need to
8398         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8399         (with no double quotes) suffices.  However, since tests may be
8400         invoked manually, and since you may explicitly set srcdir to the
8401         name of a directory containing spaces, do quote its uses here.
8402         * tests/test-pread.sh: Likewise.
8403         Suggested by Bruno Haible.
8404
8405         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8406         * tests/test-pread.sh: Write no data into the pipe, because
8407         test-pread actually reads none.  This avoids a diagnostic,
8408         "bash: echo: write error: Broken pipe", that arises in the unusual
8409         event something is ignoring SIGPIPE, and might be interpreted
8410         as some sort of failure.  Reported by Bruno Haible.
8411
8412 2009-11-25  Jim Meyering  <meyering@redhat.com>
8413
8414         test-pread: cover failure with ESPIPE and EINVAL
8415         * tests/test-pread.c (main): Test for failure, too.
8416         * tests/test-pread.sh: Invoke with stdin on a pipe.
8417         Suggested by Eric Blake.
8418
8419         pread: improvement and fix
8420         * modules/pread (Depends-on): Depend on lseek, for portability to
8421         e.g., mingw.  Suggested by Eric Blake.
8422         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8423
8424         unistd.in.h: correct declaration of pread
8425         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8426         Reported by Richard W.M. Jones.
8427
8428         test-pread.sh: distribute the test script
8429         * modules/pread-tests (Files): Include test-pread.sh.
8430
8431         test-pread.sh: clean up
8432         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8433         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8434         That is unnecessary, since it's always ".".
8435         Suggestion from Eric Blake.
8436
8437         test-pread.sh: make executable
8438         * tests/test-pread.sh: Set executable bit.
8439         Reported by Eric Blake.
8440
8441         correct typo in test-pread.sh
8442         * tests/test-pread.sh: Add #! line.
8443
8444         test pread
8445         * tests/test-pread.c: New file.
8446         * tests/test-pread.sh: Likewise.
8447         * modules/pread-tests: Likewise.
8448
8449         pread: new module
8450         * modules/pread: New file.
8451         * lib/unistd.in.h (pread): Define/declare.
8452         * lib/pread.c (pread): New file.
8453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8454         * modules/unistd (Makefile.am): Substitute witnesses.
8455         * doc/posix-functions/pread.texi (pread): Update.
8456         * MODULES.html.sh: Add pread.
8457
8458 2009-11-25  Jim Meyering  <meyering@redhat.com>
8459
8460         tests/init.sh: new file to be used via most *.sh tests
8461         * tests/init.sh: New file.
8462
8463 2009-11-25  Eric Blake  <ebb9@byu.net>
8464
8465         utimens: work around older Linux failure with symlinks
8466         * lib/utimens.c (lutimensat_works_really): New variable.
8467         (fdutimens, lutimens): Use it to manage kernels that support
8468         nanosecond times on files, but not on symlinks.
8469         Reported by Ondřej Vašík.
8470
8471         utimes: fix configure grammar
8472         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8473
8474 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8475
8476         regex: Fix fastmap for multibyte character ranges.
8477         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8478         characters when a multibyte character range is included.
8479
8480 2009-11-22  Andy Wingo  <wingo@pobox.com>
8481
8482         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8483         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8484
8485 2009-11-24  Bruno Haible  <bruno@clisp.org>
8486
8487         doc: Most *_l functions exist in MacOS X 10.5.
8488         * doc/posix-functions/duplocale.texi: Update platforms list.
8489         * doc/posix-functions/freelocale.texi: Likewise.
8490         * doc/posix-functions/newlocale.texi: Likewise.
8491         * doc/posix-functions/uselocale.texi: Likewise.
8492         * doc/posix-functions/isalnum_l.texi: Likewise.
8493         * doc/posix-functions/isalpha_l.texi: Likewise.
8494         * doc/posix-functions/isblank_l.texi: Likewise.
8495         * doc/posix-functions/iscntrl_l.texi: Likewise.
8496         * doc/posix-functions/isdigit_l.texi: Likewise.
8497         * doc/posix-functions/isgraph_l.texi: Likewise.
8498         * doc/posix-functions/islower_l.texi: Likewise.
8499         * doc/posix-functions/isprint_l.texi: Likewise.
8500         * doc/posix-functions/ispunct_l.texi: Likewise.
8501         * doc/posix-functions/isspace_l.texi: Likewise.
8502         * doc/posix-functions/isupper_l.texi: Likewise.
8503         * doc/posix-functions/iswalnum_l.texi: Likewise.
8504         * doc/posix-functions/iswalpha_l.texi: Likewise.
8505         * doc/posix-functions/iswblank_l.texi: Likewise.
8506         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8507         * doc/posix-functions/iswctype_l.texi: Likewise.
8508         * doc/posix-functions/iswdigit_l.texi: Likewise.
8509         * doc/posix-functions/iswgraph_l.texi: Likewise.
8510         * doc/posix-functions/iswlower_l.texi: Likewise.
8511         * doc/posix-functions/iswprint_l.texi: Likewise.
8512         * doc/posix-functions/iswpunct_l.texi: Likewise.
8513         * doc/posix-functions/iswspace_l.texi: Likewise.
8514         * doc/posix-functions/iswupper_l.texi: Likewise.
8515         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8516         * doc/posix-functions/isxdigit_l.texi: Likewise.
8517         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8518         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8519         * doc/posix-functions/strcoll_l.texi: Likewise.
8520         * doc/posix-functions/strfmon_l.texi: Likewise.
8521         * doc/posix-functions/strftime_l.texi: Likewise.
8522         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8523         * doc/posix-functions/strxfrm_l.texi: Likewise.
8524         * doc/posix-functions/tolower_l.texi: Likewise.
8525         * doc/posix-functions/toupper_l.texi: Likewise.
8526         * doc/posix-functions/towctrans_l.texi: Likewise.
8527         * doc/posix-functions/towlower_l.texi: Likewise.
8528         * doc/posix-functions/towupper_l.texi: Likewise.
8529         * doc/posix-functions/wcscoll_l.texi: Likewise.
8530         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8531         * doc/posix-functions/wctrans_l.texi: Likewise.
8532         * doc/posix-functions/wctype_l.texi: Likewise.
8533         * doc/glibc-functions/strptime_l.texi: Likewise.
8534         * doc/glibc-functions/strtod_l.texi: Likewise.
8535         * doc/glibc-functions/strtof_l.texi: Likewise.
8536         * doc/glibc-functions/strtol_l.texi: Likewise.
8537         * doc/glibc-functions/strtold_l.texi: Likewise.
8538         * doc/glibc-functions/strtoll_l.texi: Likewise.
8539         * doc/glibc-functions/strtoul_l.texi: Likewise.
8540         * doc/glibc-functions/strtoull_l.texi: Likewise.
8541         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8542         * doc/glibc-functions/wcstod_l.texi: Likewise.
8543         * doc/glibc-functions/wcstof_l.texi: Likewise.
8544         * doc/glibc-functions/wcstol_l.texi: Likewise.
8545         * doc/glibc-functions/wcstold_l.texi: Likewise.
8546         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8547         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8548         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8549
8550 2009-11-24  Bruno Haible  <bruno@clisp.org>
8551
8552         duplocale: Fix logic bug.
8553         * lib/duplocale.c: Don't include <langinfo.h>.
8554         (_NL_LOCALE_NAME): Remove macro.
8555         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8556         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8557
8558 2009-11-23  Jim Meyering  <meyering@redhat.com>
8559
8560         test-update-copyright: don't hard-code /usr/bin/perl
8561         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8562         perl to print the current year.  Gilles Espinasse reported that
8563         the replaced use of perl was hard-coded as /usr/bin/perl.
8564
8565 2009-11-23  Bruno Haible  <bruno@clisp.org>
8566
8567         duplocale: Add support for glibc 2.3.x.
8568         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8569
8570 2009-11-22  Bruno Haible  <bruno@clisp.org>
8571
8572         vasnprintf: Tiny optimization.
8573         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8574         MacOS X.
8575
8576 2009-11-22  Bruno Haible  <bruno@clisp.org>
8577
8578         Tests for module 'duplocale'.
8579         * modules/duplocale-tests: New file.
8580         * tests/test-duplocale.c: New file.
8581
8582         New module 'duplocale'.
8583         * m4/duplocale.m4: New file.
8584         * lib/locale.in.h (duplocale): New declaration.
8585         * lib/duplocale.c: New file.
8586         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8587         gl_LOCALE_H_DEFAULTS): New macros.
8588         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8589         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8590         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8591         REPLACE_DUPLOCALE.
8592         * modules/duplocale: New file.
8593         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8594
8595 2009-11-22  Bruno Haible  <bruno@clisp.org>
8596
8597         * modules/locale-tests (configure.ac): Test for newlocale function.
8598         * tests/test-locale.c: When the system has extended locale functions,
8599         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8600
8601         locale: Make locale_t available when possible.
8602         * lib/locale.in.h: Include <xlocale.h> when it exists.
8603         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8604         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8605         * modules/locale (Depends-on): Add extensions.
8606         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8607         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8608
8609 2009-11-22  Bruno Haible  <bruno@clisp.org>
8610
8611         Add comments.
8612         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8613         invocation.
8614         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8615         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8616         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8617
8618 2009-11-22  Bruno Haible  <bruno@clisp.org>
8619
8620         error: account for the possibility of freopen (stdout).
8621         * lib/error.c: Include <unistd.h>.
8622         (flush_stdout): New function, extracted from error and error_at_line.
8623         Determine stdout's fd dynamically.
8624         (error, error_at_line): Invoke flush_stdout.
8625         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8626         * modules/error (Depends-on): Add unistd.
8627
8628 2009-11-22  Bruno Haible  <bruno@clisp.org>
8629
8630         diffseq: Add comment.
8631         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8632
8633 2009-11-22  Jim Meyering  <meyering@redhat.com>
8634
8635         c-stack: avoid defining an unused static function
8636         * lib/c-stack.c (find_stack_direction): Do not define this function
8637         when it will not be used.
8638
8639         diffseq: avoid spurious gcc warnings
8640         * lib/diffseq.h (IF_LINT2): Define.
8641         (compareseq): Use it to initialize two members of "part".
8642         This avoids two used-uninitialized warnings.
8643
8644 2009-11-21  Jim Meyering  <meyering@redhat.com>
8645
8646         c-stack: avoid "ignoring return value of `write'" warning
8647         * lib/c-stack.c: Include "ignore-value.h".
8648         (die): Explicitly ignore each write return value.
8649         * modules/c-stack (Depends-on): Add ignore-value.
8650
8651 2009-11-21  Bruno Haible  <bruno@clisp.org>
8652
8653         diffseq: reduce scope of variable 'best'.
8654         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8655         variable, earlier used for two different purposes.
8656
8657 2009-11-21  Jim Meyering  <meyering@redhat.com>
8658
8659         diffseq: remove useless assignment to "best"
8660         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8661         assignment.  At that point "best" is already guaranteed to be zero.
8662
8663 2009-11-20  Eric Blake  <ebb9@byu.net>
8664
8665         build: mention ftp redirector in release announcements
8666         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8667         values that used to come from cfg.mk; mention FTP redirect URL.
8668         * build-aux/announce-gen: Mention the mirror list.
8669         Suggested by Karl Berry.
8670
8671         nanosleep: improve port to mingw
8672         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8674         LIB_NANOSLEEP, but only when needed.
8675         * modules/select (Link): Document LIBSOCKET.
8676         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8677         enough.
8678
8679         nanosleep: work around cygwin bug
8680         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8681         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8682         bug.
8683         (getnow): Delete, not needed.
8684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8685         LIB_CLOCK_GETTIME.
8686         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8687         clock-time, gettime.
8688         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8689         bug.
8690         * modules/nanosleep-tests: New test.
8691         * tests/test-nanosleep.c: New file.
8692
8693         sleep: work around cygwin bug
8694         * lib/sleep.c (rpl_sleep): Work around the bug.
8695         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8696         (gl_PREREQ_SLEEP): Delete unused macro.
8697         * modules/sleep (Depends-on): Add verify.
8698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8699         * modules/unistd (Makefile.am): Substitute witness.
8700         * lib/unistd.in.h (sleep): Update prototype.
8701         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8702         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8703         * modules/sleep-tests (Depends-on): Check for alarm.
8704
8705 2009-11-20  Jim Meyering  <meyering@redhat.com>
8706
8707         maint.mk: improve sc_prohibit_magic_number_exit
8708         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8709         so it does not match uses like System.exit(1).
8710         Add comments showing how to correct all offenders.
8711
8712 2009-11-19  Eric Blake  <ebb9@byu.net>
8713
8714         xalloc-die-tests: add missing library
8715         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8716
8717         test-xvasprintf: silence compiler warnings
8718         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8719         empty string from gcc.
8720
8721 2009-11-19  Jim Meyering  <meyering@redhat.com>
8722
8723         xfreopen: new module, from coreutils
8724         * modules/xfreopen: New module.
8725         * lib/xfreopen.c: New file.
8726         * lib/xfreopen.h: New file.
8727         * MODULES.html.sh (File stream based Input/Output"): Add it.
8728
8729 2009-11-19  Eric Blake  <ebb9@byu.net>
8730
8731         manywarnings: depend on warnings
8732         * modules/manywarnings (Depends-on): Add warnings.
8733
8734         build: avoid compiler warnings
8735         * lib/select.c (rpl_select): Delete unused variable.
8736         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8737
8738 2009-11-18  Eric Blake  <ebb9@byu.net>
8739
8740         tests: avoid false negative with --with-packager
8741         * tests/test-version-etc.sh: Discard packager information.
8742         * tests/test-argp-version-etc-1.sh: Likewise.
8743         Reported by Mike Frysinger.
8744
8745         utimens: fix regression on Solaris
8746         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8747         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8748         can only change fd timestamps via futimesat.  Instead, use an
8749         additional witness macro to avoid BSD bug.
8750         Reported by Jim Meyering.
8751
8752 2009-11-17  Eric Blake  <ebb9@byu.net>
8753
8754         usleep: use it to simplify tests
8755         * modules/stat-time-tests (Depends-on): Add usleep.
8756         (configure.ac): Drop usleep check.
8757         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8758         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8759         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8760         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8761         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8762         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8763         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8764         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8765         Likewise.
8766         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8767         * tests/test-lchown.h (nap): Likewise.
8768         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8769         * tests/test-stat-time.c (nap): Likewise.
8770         * tests/test-utimens-common.h (nap): Update comments.
8771
8772         usleep: new module
8773         * modules/usleep: New file.
8774         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8775         * lib/usleep.c (usleep): Likewise.
8776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8777         * modules/unistd (Makefile.am): Substitute witnesses.
8778         * lib/unistd.in.h (usleep): Add declaration.
8779         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8780         * MODULES.html.sh (Date and time): Likewise.
8781         * modules/usleep-tests (Depends-on): New test.
8782         * tests/test-usleep.c: New file.
8783
8784         chown: work around OpenBSD bug
8785         * lib/chown.c (rpl_chown): Work around the bug.
8786         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8787         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8788         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8789         * modules/chown (Depends-on): Add stdbool.
8790         * modules/lchown (Depends-on): Likewise.
8791         * doc/posix-functions/chown.texi (chown): Document the bug.
8792         * doc/posix-functions/lchown.texi (lchown): Likewise.
8793         * tests/test-lchown.h (test_chown): Relax test.
8794
8795         mkstemp: avoid conflict with C++ keyword template
8796         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8797         * lib/mkostemp.c (mkostemp): Likewise.
8798         * lib/mkostemps.c (mkostemps): Likewise.
8799         * lib/mkstemp.c (mkstemp): Likewise.
8800         * lib/mkstemps.c (mkstemps): Likewise.
8801
8802         xalloc-die-tests: optimize
8803         * tests/test-xalloc-die.sh: Reduce number of processes.
8804
8805 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8806
8807         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8808         patch from ludo@gnu.org (Ludovic Courtès).
8809
8810 2009-11-17  Jim Meyering  <meyering@redhat.com>
8811
8812         version-etc: use proper license string
8813         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8814         * modules/version-etc-fsf: Likewise.
8815
8816 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8817
8818         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8819         printed to stdout.  Deal with EOL differences.
8820
8821 2009-11-17  Eric Blake  <ebb9@byu.net>
8822
8823         unsetenv: work around Solaris bug
8824         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8825         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8826         Reported by Jim Meyering.
8827
8828         vasnprintf: avoid compiler warnings
8829         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8830         variables.
8831         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8832
8833 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8834
8835         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8836         settings since xalloc-die is no longer the self test,
8837         xalloc-die.sh is.
8838
8839 2009-11-17  Jim Meyering  <meyering@redhat.com>
8840
8841         test-xalloc-die.sh: make the code agree with the commit log
8842         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8843         at the end, just in case you happen to have a test-xalloc-die
8844         program in some other PATH directory.
8845
8846         test-xalloc-die.sh: fix a portability bug
8847         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8848         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8849         Otherwise, argv[0] (as often seen in diagnostics) would be too
8850         system-dependent, sometimes with, and sometimes without the leading "./".
8851
8852         version-etc-fsf: relax license to LGPLv3+
8853         * modules/version-etc-fsf (License): Relax license.
8854
8855 2009-11-16  Eric Blake  <ebb9@byu.net>
8856
8857         xalloc-die-tests: avoid printing null pointer
8858         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8859         shell script.
8860         * tests/test-xalloc-die.c (program_name): Declare.
8861         * tests/test-xalloc-die.sh (tmpfiles): New file.
8862
8863         setenv, unsetenv: work around various bugs
8864         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8865         (setenv) [HAVE_SETENV]: Work around bugs.
8866         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8867         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8868         for bugs.
8869         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8870         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8872         * modules/stdlib (Makefile.am): Update substitutions.
8873         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8874         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8875         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8876         * modules/setenv-tests: New test.
8877         * modules/unsetenv-tests: Likewise.
8878         * tests/test-setenv.c: New file.
8879         * tests/test-unsetenv.c: Likewise.
8880
8881 2009-11-16  Jim Meyering  <meyering@redhat.com>
8882
8883         version-etc: relax license to LGPLv3+
8884         * modules/version-etc (License): Relax license.
8885
8886         better AC_REQUIRE expanded-before-required-warning avoidance
8887         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8888         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8889         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8890         which is no longer needed.
8891
8892 2009-11-16  Eric Blake  <ebb9@byu.net>
8893
8894         test-freading: clean up temporary file
8895         * tests/test-freading.c (main): Remove file on success, and use
8896         ASSERT more liberally.
8897         Reported by Jim Meyering.
8898
8899 2009-11-16  Jim Meyering  <meyering@redhat.com>
8900
8901         avoid new AC_REQUIRE expanded-before-required warnings
8902         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8903         merely using it.
8904         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8905         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8906
8907 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8908
8909         * tests/test-xalloc-die.c: New file.
8910         * modules/xalloc-die-tests: New file.
8911         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8912         XFAIL_TESTS so it can be appended by modules.
8913
8914 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8915
8916         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8917         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8918
8919 2009-11-14  Eric Blake  <ebb9@byu.net>
8920
8921         fnmatch: avoid compiler warning
8922         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8923         to silence compiler warning about mismatch signedness in ?:.
8924         Reported by Robert Millan.
8925
8926         intprops: add double-inclusion guard
8927         * lib/intprops.h: Allow idempotent includes.
8928         Suggested by Bruce Korb.
8929
8930         openat: detect Solaris fchownat bug
8931         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8932         penalizing glibc chownat when only lchownat is broken.
8933         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8934         trailing slash bugs.
8935         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8936         * modules/openat-tests (Files): Include more files.
8937         (Depends-on): Add mgetgroups, sleep, stat-time.
8938         (configure.ac): Add additional checks.
8939         (Makefile.am): Build new test.
8940         * tests/test-fchownat.c: New file.
8941
8942         lchown: detect Solaris and FreeBSD bug
8943         * lib/lchown.c (rpl_lchown): Work around bug.
8944         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8946         * modules/unistd (Makefile.am): Populate it.
8947         * lib/unistd.in.h (lchown): Update declaration.
8948         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8949         * modules/lchown-tests: New file.
8950         * tests/test-lchown.h (test_lchown): Likewise.
8951         * tests/test-lchown.c (main): Likewise.
8952
8953         chown: detect Solaris and FreeBSD bug
8954         * lib/chown.c (rpl_chown): Work around bug.
8955         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8956         (gl_PREREQ_CHOWN): Delete.
8957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8958         * modules/unistd (Makefile.am): Populate it.
8959         * lib/unistd.in.h (chown): Update declaration.
8960         * lib/lchown.c (chown): Update client.
8961         * modules/lchown (Depends-on): Add lstat.
8962         * doc/posix-functions/chown.texi (chown): Document the bug.
8963         * doc/posix-functions/getgroups.texi (getgroups): Document
8964         getgroups pitfall.
8965         * modules/chown-tests: New file.
8966         * tests/test-chown.h (test_chown): Likewise.
8967         * tests/test-chown.c (main): Likewise.
8968
8969 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8970
8971         gnulib-tool: correctly detect absence of m4 directories
8972         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8973
8974 2009-11-14  Jim Meyering  <meyering@redhat.com>
8975
8976         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8977         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8978
8979 2009-11-14  John W. Eaton  <jwe@gnu.org>
8980
8981         strftime.h: wrap funtion declaration in extern "C" block
8982         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8983
8984 2009-11-13  Eric Blake  <ebb9@byu.net>
8985
8986         getgroups: avoid compiler warning
8987         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8988
8989         getgroups: work around FreeBSD bug
8990         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8991         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8992         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8993         * tests/test-getgroups.c (main): Fix buffer overrun.
8994
8995         getgroups: avoid compilation failure
8996         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8997         * modules/getgroups (Depends-on): Add stdint.
8998
8999 2009-11-13  Jim Meyering  <meyering@redhat.com>
9000
9001         test-getgroups: avoid compilation failure
9002         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
9003
9004 2009-11-13  Eric Blake  <ebb9@byu.net>
9005
9006         mgetgroups: new module, taken from coreutils
9007         * modules/mgetgroups: New file.
9008         * lib/mgetgroups.h: Likewise.
9009         * lib/mgetgroups.c (mgetgroups): Likewise.
9010         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
9011         * MODULES.html.sh (Users and groups): Mention it.
9012
9013         getgroups: don't expose GETGROUPS_T to user
9014         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
9015         an element at a time if GETGROUPS_T is wrong size.
9016         * lib/getugroups.h (getugroups): Change signature.
9017         * lib/unistd.in.h (getgroups): Likewise.
9018         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
9019         signature needs fixing.
9020         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
9021         AC_TYPE_GETGROUPS.
9022         * modules/group-member (Depends-on): Add getgroups.
9023         * lib/group-member.c (group_info, get_group_info): Use gid_t.
9024         (group_member): Rely on getgroups replacement.
9025         * lib/getugroups.c (getugroups): Use gid_t.
9026         * tests/test-getgroups.c (main): Likewise.
9027         * NEWS: Mention the signature change.
9028         * doc/posix-functions/getgroups.texi (getgroups): Mention the
9029         problem with signature.
9030         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
9031         GETGROUPS_T is still useful for setgroups.
9032
9033         getgroups, getugroups: provide stubs for mingw
9034         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
9035         * lib/getugroups.c (getugroups): Likewise.
9036         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
9037         function.  Modernize replacement scheme.
9038         (gl_PREREQ_GETGROUPS): Delete.
9039         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
9040         * modules/getgroups (configure.ac): Declare witness.
9041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
9042         * modules/unistd (Depends-on): Substitute witness.
9043         * lib/unistd.in.h (getgroups): Declare replacement.
9044
9045         getgroups: avoid calling exit
9046         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
9047         drop xalloc.
9048         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
9049         dependencies.
9050         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
9051         exiting, in the rare case of malloc failure.
9052
9053         getgroups: fix logic error
9054         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
9055         has more than 20 groups.
9056         * modules/getgroups-tests: New test.
9057         * tests/test-getgroups.c: New file.
9058
9059 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9060
9061         * tests/test-base64.c: Improve.
9062
9063 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9064
9065         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
9066         Blake <ebb9@byu.net>.
9067
9068 2009-11-13  Simon Josefsson  <simon@josefsson.org>
9069
9070         * tests/test-xvasprintf.c: Add %s%s related checks.
9071
9072 2009-11-12  Eric Blake  <ebb9@byu.net>
9073
9074         version-etc: match standards.texi style
9075         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
9076         and use <> only for URLs.
9077
9078 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
9079
9080         fts: do not fail on a submount during traversal
9081         * lib/fts.c (fts_build): Read the stat info again after opening
9082         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
9083         Original report at http://bugzilla.redhat.com/501848.
9084
9085 2009-11-12  Jim Meyering  <meyering@redhat.com>
9086
9087         bootstrap: sync from coreutils
9088         * build-aux/bootstrap (bootstrap_epilogue): New function.
9089         Use git_modules_config in one more place.  This make bootstrap's
9090         --gnulib-srcdir option more useful for testing.
9091
9092         bootstrap: generalize autoheader check
9093         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
9094         AC_CONFIG_HEADERS.
9095
9096 2009-11-11  Eric Blake  <ebb9@byu.net>
9097
9098         mkfifoat: use new modules for Solaris and BSD bugs
9099         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
9100         * lib/mkfifoat.c (mknodat): Split...
9101         * lib/mknodat.c (mknodat): ...into new file.
9102         * modules/mkfifoat (Files): Ship new file.
9103         (Depends-on): Add mkfifo, mknod.
9104         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
9105         (Depends-on): Add symlink.
9106         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
9107         redundant with test_mkfifo.h.
9108         (do_mkfifoat, do_mknodat): New helpers.
9109
9110         mknod: new module
9111         * modules/mknod: New file.
9112         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
9113         * lib/mknod.c (mknod): Likewise.
9114         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9115         defaults.
9116         * modules/sys_stat (Makefile.am): Substitute them.
9117         * lib/sys_stat.in.h (mknod): Declare replacement.
9118         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9119         Document it.
9120         * doc/posix-functions/mknod.texi (mknod): Likewise.
9121         * modules/mknod-tests: New test.
9122         * tests/test-mknod.c: Likewise.
9123
9124         mkfifo: new module
9125         * modules/mkfifo: New file.
9126         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9127         * lib/mkfifo.c (mkfifo): Likewise.
9128         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9129         defaults.
9130         * modules/sys_stat (Makefile.am): Substitute them.
9131         * lib/sys_stat.in.h (mkfifo): Declare replacement.
9132         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9133         Document it.
9134         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
9135         * modules/mkfifo-tests: New test.
9136         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
9137         from test-mkfifoat.c.
9138         * tests/test-mkfifo.c: New file.
9139
9140         readlink: detect FreeBSD bug
9141         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
9142         slash on symlink.
9143         * doc/posix-functions/readlink.texi (readlink): Document the bug.
9144         * tests/test-readlink.h (test_readlink): Enhance test.
9145
9146         symlink: detect FreeBSD bug
9147         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
9148         slash on symlink.
9149         * doc/posix-functions/symlink.texi (symlink): Document the bug.
9150         * tests/test-symlink.h (test_symlink): Enhance test.
9151
9152 2009-11-10  Eric Blake  <ebb9@byu.net>
9153
9154         link: detect FreeBSD bug
9155         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
9156         symlink.
9157         * doc/posix-functions/link.texi (link): Document the bug.
9158         * tests/test-link.h (test_link): Enhance test.
9159         * tests/test-linkat.c (main): Update caller.
9160
9161         unlink, remove: detect FreeBSD bug
9162         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
9163         slash on symlink.
9164         * doc/posix-functions/unlink.texi (unlink): Document the bug.
9165         * doc/posix-functions/remove.texi (remove): Likewise.
9166         * tests/test-unlink.h (test_unlink): Enhance test.
9167         * tests/test-remove.c (main): Likewise.
9168
9169 2009-11-09  Eric Blake  <ebb9@byu.net>
9170
9171         rename: detect FreeBSD bug
9172         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
9173         slash on symlink.
9174         * modules/renameat-tests (Depends-on): Add filenamecat.
9175         * tests/test-rename.h (test_rename): Allow one more errno.
9176         * tests/test-renameat.c (main): Likewise.
9177         * doc/posix-functions/rename.texi (rename): Document the bug.
9178
9179         open: detect FreeBSD bug
9180         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
9181         symlink.
9182         * doc/posix-functions/open.texi (open): Document the bug.
9183         * doc/posix-functions/utimes.texi (utimes): Likewise.
9184         * tests/test-open.h (test_open): Add parameters, and test symlink
9185         handling.
9186         * tests/test-open.c (main): Adjust caller.
9187         * tests/test-fcntl-safer.c (main): Likewise.
9188         * modules/open-tests (Depends-on): Add stdbool, symlink.
9189         * modules/fcntl-safer-tests (Depends-on): Likewise.
9190         * tests/test-openat.c (main): Add test-open tests.
9191
9192         stat: detect FreeBSD bug
9193         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
9194         symlink.
9195         * doc/posix-functions/stat.texi (stat): Document the bug.
9196         * tests/test-stat.h (test_stat_func): Add argument.
9197         * tests/test-stat.c (main): Adjust caller.
9198         * tests/test-fstatat.c (main): Likewise.
9199         * modules/stat-tests (Depends-on): Add stdbool, symlink.
9200         Reported by Jim Meyering.
9201
9202 2009-11-09  James Youngman  <jay@gnu.org>
9203
9204         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
9205         * lib/strftime.c: Correct placement of #include "ignore-value.h".
9206
9207 2009-11-08  Jim Meyering  <meyering@redhat.com>
9208
9209         utimens: remove invalid futimesat call
9210         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
9211         It used the file descriptor of the target file as the DIR_FD
9212         parameter and NULL as the file name.  That caused failure with
9213         errno == EFAULT on FreeBSD-8.0-rc2
9214
9215 2009-11-07  Eric Blake  <ebb9@byu.net>
9216
9217         fflush, freadseek: use fseeko, not fseek
9218         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9219         (clear_ungetc_buffer): Avoid potential problems on large files.
9220         * lib/freadseek.c (freadseek): Likewise.
9221         * modules/freadseek (Depends-on): Add fseeko.
9222         * modules/fseek (configure.ac): Set a witness.
9223         * tests/test-fflush.c (main): Use fseeko.
9224         * tests/test-fpurge.c (fseek): Disable link warning.
9225         * tests/test-freadable.c (fseek): Likewise.
9226         * tests/test-freading.c (fseek): Likewise.
9227         * tests/test-fseeko.c (fseek): Likewise.
9228         * tests/test-ftell.c (fseek): Likewise.
9229         * tests/test-ftello.c (fseek): Likewise.
9230         * tests/test-fwritable.c (fseek): Likewise.
9231         * tests/test-fwriting.c (fseek): Likewise.
9232
9233 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9234
9235         * modules/memchr (Depends-on): Drop getpagesize dependency.
9236
9237 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9238
9239         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
9240         Reported by Ludovic Courtès.
9241         * build-aux/pmccabe2html: Improve example usage.
9242         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
9243
9244 2009-11-06  Jim Meyering  <meyering@redhat.com>
9245
9246         do-release-commit-and-tag: New module.
9247         Automate the release-commit and tag process.
9248         * build-aux/do-release-commit-and-tag: New script, from coreutils.
9249         * modules/do-release-commit-and-tag: New file.
9250         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9251
9252 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9253
9254         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
9255         because test-select.c uses inet_pton.
9256
9257 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9258
9259         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
9260         GETADDRINFO_LIB.  Bump serial number.
9261         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
9262         Suggested by Eric Blake <ebb9@byu.net>.
9263
9264 2009-11-05  Eric Blake  <ebb9@byu.net>
9265
9266         strtod: detect darwin bug
9267         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
9268         Reported by Leo Davis.
9269
9270         freopen-safer: new module
9271         * modules/freopen-safer: New module.
9272         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
9273         * lib/freopen-safer.c (freopen_safer): New file.
9274         * lib/stdio-safer.h (freopen_safer): New declaration.
9275         * lib/stdio--.h (freopen): New override.
9276         * MODULES.html.sh (File stream based Input/Output): Mention it.
9277         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
9278         freopen-safer module.
9279         * doc/posix-functions/stderr.texi (stderr): Likewise.
9280         * doc/posix-functions/stdin.texi (stdin): Likewise.
9281         * doc/posix-functions/stdout.texi (stdout): Likewise.
9282         * modules/freopen-safer-tests: New test.
9283         * tests/test-reopen-safer.c: New file.
9284
9285 2009-11-05  Jim Meyering  <meyering@redhat.com>
9286
9287         maint.mk: Prohibit inclusion of "close-stream.h" without use.
9288         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9289
9290 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9291
9292         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
9293
9294 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9295
9296         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
9297
9298 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9299
9300         Fix link error.
9301         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9302         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9303
9304 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9305
9306         * tests/test-func.c: Also test value of __func__.
9307
9308 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9309
9310         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
9311         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9312
9313 2009-11-05  Bruno Haible  <bruno@clisp.org>
9314
9315         Fix link error.
9316         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9317         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9318         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9319
9320 2009-11-05  Bruno Haible  <bruno@clisp.org>
9321
9322         Tests for module 'inet_pton'.
9323         * modules/inet_pton-tests: New file.
9324         * tests/test-inet_pton.c: New file.
9325
9326 2009-11-05  Bruno Haible  <bruno@clisp.org>
9327
9328         Tests for module 'inet_ntop'.
9329         * modules/inet_ntop-tests: New file.
9330         * tests/test-inet_ntop.c: New file.
9331
9332 2009-11-04  Eric Blake  <ebb9@byu.net>
9333
9334         stdlib-safer: wrap all mkstemp variants
9335         * modules/mkostemp (configure.ac): Set witness.
9336         * modules/mkostemps (configure.ac): Likewise.
9337         * modules/mkstemps (configure.ac): Likewise.
9338         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9339         (mkstemps_safer): Wrap more functions.
9340         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9341         wrapping.
9342         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9343         (mkstemps_safer): Implement the wrappers.
9344
9345         mkstemps, mkostemps: new modules
9346         * modules/mkostemps: New module.
9347         * modules/mkstemps: Likewise.
9348         * lib/mkostemps.c (mkostemps): New file.
9349         * lib/mkstemps.c (mkstemps): Likewise.
9350         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9351         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9353         * modules/stdlib (Makefile.am): Substitute them.
9354         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9355         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9356         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9357         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9358         * MODULES.html.sh (File system functions): Mention them.
9359
9360         tempname: resync from glibc
9361         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9362         same values for __GT_FILE as glibc.  Abort even when assertions
9363         are disabled.
9364         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9365         match its value otherwise.  Allow idempotent inclusion.
9366         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9367         * lib/mkostemp.c (mkostemp): Likewise.
9368         * lib/mkstemp.c (mkstemp): Likewise.
9369         * lib/tmpfile.c (tmpfile): Likewise.
9370         * NEWS: Document this.
9371
9372         utimens: fix use of futimens on older Linux
9373         * lib/utimens.c (fdutimens): Use updated, rather than original,
9374         timespec to avoid bug in older Linux kernel.
9375         Reported by Simon Josefsson.
9376
9377 2009-11-04  Bruno Haible  <bruno@clisp.org>
9378
9379         Make num_processors more flexible and consistent.
9380         * lib/nproc.h (enum nproc_query): New type.
9381         (num_processors): Add a 'query' argument.
9382         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9383         (num_processors): Add a 'query' argument. Test the value of the
9384         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9385         mingw, count the number of CPUs available for the current process.
9386         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9387         Check for sched_getaffinity and sched_getaffinity_np.
9388         * modules/nproc (Depends-on): Add c-ctype, extensions.
9389         * NEWS: Mention the change.
9390
9391 2009-11-03  Bruno Haible  <bruno@clisp.org>
9392
9393         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9394
9395 2009-11-03  Jim Meyering  <meyering@redhat.com>
9396
9397         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9398         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9399         if it is defined.
9400
9401 2009-11-02  Eric Blake  <ebb9@byu.net>
9402
9403         mktime, timegm: share common declaration
9404         * lib/mktime-internal.h: New file.
9405         * lib/mktime.c: Use it rather than open-coding a declaration.
9406         * lib/timegm.c: Likewise.
9407         * modules/mktime (Files): Ship it.
9408         * modules/timegm (Files): Likewise.
9409         Suggested by Bruno Haible.
9410
9411         test-update-copyright: update test to match script changes
9412         * tests/test-update-copyright.sh: Avoid hard-coding perl
9413         location.  Don't update *.bak created by earlier runs.
9414
9415 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9416             Simon Josefsson  <simon@josefsson.org>
9417             Bruno Haible  <bruno@clisp.org>
9418
9419         Fix link error on Solaris 8.
9420         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9421         also in libnsl. Define also INET_PTON_LIB.
9422         * modules/inet_pton (Link): New section.
9423
9424 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9425             Bruno Haible  <bruno@clisp.org>
9426
9427         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9428         * modules/inet_ntop (Link): New section.
9429         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9430
9431 2009-11-02  Eric Blake  <ebb9@byu.net>
9432
9433         maint: avoid compiler warnings in m4 macros
9434         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9436
9437 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9438
9439         * m4/pmccabe2html.m4: Remove file.
9440         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9441         function.  Change maintainer.
9442         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9443         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9444         Courtès).
9445
9446 2009-10-31  Eric Blake  <ebb9@byu.net>
9447
9448         fseeko: fix m4 regression
9449         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9450         regression from 2009-10-27.
9451         Reported by Ralf Wildenhues.
9452
9453 2009-10-31  Jim Meyering  <meyering@redhat.com>
9454
9455         inttostr: aesthetics and improved (compile-time) safety
9456         Define inttype_is_signed rather than inttype_is_unsigned,
9457         since the sole use is via "#if inttype_is_signed".
9458         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9459         inttype_is_unsigned.
9460         * lib/offtostr.c (inttype_is_signed): Likewise.
9461         * lib/uinttostr.c (inttype_is_signed): Likewise.
9462         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9463         * lib/inttostr.c (inttostr): Use verify to cross-check the
9464         inttype_is_signed value and the signedness of the actual type.
9465         * modules/inttostr (Depends-on): Add verify.
9466
9467 2009-10-30  Eric Blake  <ebb9@byu.net>
9468
9469         build: avoid compiler warnings
9470         * lib/fchmodat.c (lchmod): Mark unused variables.
9471         * lib/getopt.c (_getopt_initialize): Likewise.
9472         * lib/mktime.c (__mktime_internal): Provide prototype.
9473         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9474         older gcc that do not understand #pragma GCC diagnostic.
9475         * lib/uinttostr.c (inttype_is_unsigned): Define.
9476         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9477
9478 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9479
9480         stat: fix compilation on AIX
9481         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9482         only see struct stat64.
9483
9484 2009-10-30  Eric Blake  <ebb9@byu.net>
9485
9486         exclude: make more robust
9487         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9488         rather than masking a coding bug.
9489         Suggested by Bruno Haible.
9490
9491 2009-10-30  Jim Meyering  <meyering@redhat.com>
9492
9493         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9494         Rather than putting #!/usr/bin/perl on the first line,
9495         start with a variant of what's recommended by "man perlrun" that
9496         invokes the first "perl" program from your shell's search path.
9497         * build-aux/gitlog-to-changelog: Replace #!... as above.
9498         Add a "Local Variables" perl mode setting.
9499         Prompted by a patch from Ludovic Courtès.
9500         Improved by Eric Blake.
9501         * build-aux/useless-if-before-free: Likewise.
9502         * build-aux/announce-gen: Likewise.
9503         * build-aux/update-copyright: Likewise.
9504
9505 2009-10-29  Eric Blake  <ebb9@byu.net>
9506
9507         filenamecat-lgpl: adjust clients
9508         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9509         filenamecat.
9510         * modules/renameat (Depends-on): Likewise.
9511
9512         filenamecat: split into filenamecat-lgpl
9513         * modules/filenamecat-lgpl: New module.
9514         * modules/filenamecat (Files): Move library-safe files into
9515         filenamecat-lgpl.
9516         (Depends-on): Add filenamecat-lgpl.
9517         (configure.ac): Declare witness.
9518         * lib/filenamecat.h (file_name_concat): Only declare when using
9519         GPL module.
9520         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9521         Move...
9522         * lib/filenamecat-lgpl.c: ...into new file.
9523         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9524         (gl_FILE_NAME_CONCAT): Use it.
9525         * MODULES.html.sh (File system functions): Mention new module.
9526
9527         argp: avoid memory leak
9528         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9529         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9530         base_name, since the latter malloc()s and can call exit().
9531         Leak introduced 2006-07-03.
9532
9533         dirname-lgpl: adjust clients that don't need full dirname
9534         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9535         * modules/filenamecat (Depends-on): Likewise.
9536         * modules/linkat (Depends-on): Likewise.
9537         * modules/mkancesdirs (Depends-on): Likewise.
9538         * modules/mkdir (Depends-on): Likewise.
9539         * modules/openat (Depends-on): Likewise.
9540         * modules/savewd (Depends-on): Likewise.
9541         * modules/rename (Depends-on): Likewise.
9542         (License): Relax license.
9543         * modules/mkdir-tests (Depends-on): Drop progname.
9544         (Makefile.am): Delete unneeded LDADD.
9545         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9546
9547         dirname: split into dirname-lgpl
9548         * modules/dirname-lgpl: New module.
9549         * modules/dirname (Files): Move library-safe files into
9550         dirname-lgpl.
9551         (Depends-on): Add dirname-lgpl.
9552         (configure.ac): Declare witness.
9553         * modules/double-slash-root (License): Relax license.
9554         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9555         module.
9556         * lib/dirname.c (dir_len, mdir_name): Move...
9557         * lib/dirname-lgpl.c: ...into new file.
9558         * lib/basename.c (last_component, base_len): Move...
9559         * lib/basename-lgpl.c: ...into new file.
9560         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9561         (gl_DIRNAME): Use it.
9562         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9563         Mention new module.
9564         * modules/dirname-tests (Depends-on): Add progname.
9565         * tests/test-dirname.c (program_name): Delete.
9566
9567         mkdir: make safe for libraries
9568         * modules/mkdir (Depends-on): Drop xalloc.
9569         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9570         exit.
9571
9572         tests: avoid some compiler warnings
9573         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9574         literals.
9575         * tests/test-memchr.c (main): Avoid type mismatch.
9576         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9577         * tests/test-base64.c (main): Likewise.
9578         * tests/test-getdelim.c (main): Likewise.
9579         * tests/test-gethostname.c (main): Likewise.
9580         * tests/test-getline.c (main): Likewise.
9581         * tests/test-netinet_in.c (main): Likewise.
9582         * tests/test-select.c (open_server_socket, main): Likewise.
9583         * tests/test-select-stdin.c (main): Likewise.
9584         * tests/test-sockets.c (main): Likewise.
9585         * tests/test-strsignal.c (main): Likewise.
9586         * tests/test-sys_select.c (main): Likewise.
9587         * tests/test-sys_socket.c (main): Likewise.
9588         * tests/test-u64.c (main): Likewise.
9589         * tests/test-xfprintf-posix.c (main): Likewise.
9590         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9591
9592         sockets: avoid compiler warning
9593         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9594
9595         maint: detect usage(1) and other suspicious exits
9596         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9597
9598 2009-10-29  Jim Meyering  <meyering@redhat.com>
9599
9600         timespec: long-to-int truncation could make timespec_cmp malfunction
9601         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9602         a multiple of 2^32 nanoseconds as no difference.
9603
9604 2009-10-28  Jim Meyering  <meyering@redhat.com>
9605
9606         fprintftime: wrap macro code argument in "do {...} while(0)"
9607         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9608         cpy macro must be a statement that can be followed by a semicolon.
9609         Now that the else clause contains a comment and is hence longer
9610         than one line, I require curly braces.  That in turn requires
9611         that we wrap this code block in the standard do...while(0).
9612
9613         fprintftime: remove stray semicolon from previous change
9614         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9615
9616         fprintftime: avoid a warning about ignored fwrite return value
9617         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9618         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9619         that is unsafe.
9620         * modules/fprintftime (Depends-on): Add ignore-value.
9621
9622         exclude: avoid an unwarranted warning
9623         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9624
9625 2009-10-27  Eric Blake  <ebb9@byu.net>
9626
9627         fseek: avoid compilation failure when fflush is replaced
9628         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9629         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9630         module is in use.
9631         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9632         module is not in use; since REPLACE_FSEEK worked otherwise.
9633         (GNULIB_FTELLO): Likewise for ftell.
9634         Reported by Ian Beckwith and others.
9635
9636 2009-10-27  Bruno Haible  <bruno@clisp.org>
9637
9638         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9639         Reported by Jim Meyering.
9640
9641 2009-10-27  Jim Meyering  <jim@meyering.net>
9642             Bruno Haible  <bruno@clisp.org>
9643
9644         Avoid warning despite dropping the return value of fwrite.
9645         * lib/unicodeio.c: Include ignore-value.h.
9646         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9647         * modules/unicodeio (Depends-on): Add ignore-value.
9648
9649 2009-10-26  Eric Blake  <ebb9@byu.net>
9650
9651         areadlinkat: fix fallback path
9652         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9653         pointer and zero.
9654
9655 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9656
9657         Use a better IO block size for modern systems
9658         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9659         * lib/md2.c: Likewise.
9660         * lib/md4.c: Likewise.
9661         * lib/md5.c: Likewise.
9662         * lib/sha1.c: Likewise.
9663         * lib/sha256.c: Likewise.
9664         * lib/sha512.c: Likewise.
9665
9666 2009-10-22  Eric Blake  <ebb9@byu.net>
9667
9668         tests: avoid several compiler warnings
9669         * tests/test-getcwd.c (main): Avoid buffer underflow.
9670         * tests/test-getdate.c (main): String literals are not safe with
9671         putenv, so use setenv.  Declare unused argument.
9672         * modules/getdate-tests (Depends-on): Add setenv.
9673         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9674         problems with string literals in char *.
9675         * tests/test-hash.c (main): Avoid shadowing declaration.
9676         (insert_new): Treat string literals as char const *.
9677         * tests/test-getopt.h (test_getopt): Likewise.
9678         (getopt_loop): Alter types to minimize casting elsewhere.
9679         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9680         (test_getopt_long_posix): Likewise.
9681         (do_getopt_long): Add wrapper to minimize casting.
9682         * tests/test-atexit.c (clear_temp_file): Use void.
9683         * tests/test-areadlink-with-size.c (main): Declare unused
9684         arguments.
9685         * tests/test-areadlink.c (main): Likewise.
9686         * tests/test-areadlinkat-with-size.c (main): Likewise.
9687         * tests/test-areadlinkat.c (main): Likewise.
9688         * tests/test-canonicalize-lgpl.c (main): Likewise.
9689         * tests/test-canonicalize.c (main): Likewise.
9690         * tests/test-dirent-safer.c (main): Likewise.
9691         * tests/test-dirname.c (main): Likewise.
9692         * tests/test-dup2.c (main): Likewise.
9693         * tests/test-fchdir.c (main): Likewise.
9694         * tests/test-fcntl-h.c (main): Likewise.
9695         * tests/test-fcntl-safer.c (main): Likewise.
9696         * tests/test-fdopendir.c (main): Likewise.
9697         * tests/test-fdutimensat.c (main): Likewise.
9698         * tests/test-fflush.c (main): Likewise.
9699         * tests/test-filenamecat.c (main): Likewise.
9700         * tests/test-filevercmp.c (main): Likewise.
9701         * tests/test-fopen-safer.c (main): Likewise.
9702         * tests/test-fopen.c (main): Likewise.
9703         * tests/test-fpending.c (main): Likewise.
9704         * tests/test-fpurge.c (main): Likewise.
9705         * tests/test-freading.c (main): Likewise.
9706         * tests/test-fstatat.c (main): Likewise.
9707         * tests/test-fsync.c (main): Likewise.
9708         * tests/test-futimens.c (main): Likewise.
9709         * tests/test-getndelim2.c (main): Likewise.
9710         * tests/test-gettimeofday.c (main): Likewise.
9711         * tests/test-getopt.c (main): Likewise.
9712         * tests/test-i-ring.c (main): Likewise.
9713         * tests/test-inttypes.c (main): Likewise.
9714         * tests/test-link.c (main): Likewise.
9715         * tests/test-lstat.c (main): Likewise.
9716         * tests/test-math.c (main): Likewise.
9717         * tests/test-md5.c (main): Likewise.
9718         * tests/test-memchr2.c (main): Likewise.
9719         * tests/test-memrchr.c (main): Likewise.
9720         * tests/test-mkdir.c (main): Likewise.
9721         * tests/test-mkdirat.c (main): Likewise.
9722         * tests/test-mkfifoat.c (main): Likewise.
9723         * tests/test-open.c (main): Likewise.
9724         * tests/test-openat-safer.c (main): Likewise.
9725         * tests/test-openat.c (main): Likewise.
9726         * tests/test-quotearg.c (main): Likewise.
9727         * tests/test-rawmemchr.c (main): Likewise.
9728         * tests/test-readlink.c (main): Likewise.
9729         * tests/test-remove.c (main): Likewise.
9730         * tests/test-rename.c (main): Likewise.
9731         * tests/test-renameat.c (main): Likewise.
9732         * tests/test-rmdir.c (main): Likewise.
9733         * tests/test-sha1.c (main): Likewise.
9734         * tests/test-signal.c (main): Likewise.
9735         * tests/test-sigaction.c (main): Likewise.
9736         * tests/test-stat.c (main): Likewise.
9737         * tests/test-stat-time.c (main): Likewise.
9738         * tests/test-stddef.c (main): Likewise.
9739         * tests/test-stdint.c (main): Likewise.
9740         * tests/test-stdio.c (main): Likewise.
9741         * tests/test-stdlib.c (main): Likewise.
9742         * tests/test-strchrnul.c (main): Likewise.
9743         * tests/test-strerror.c (main): Likewise.
9744         * tests/test-string.c (main): Likewise.
9745         * tests/test-strtod.c (main): Likewise.
9746         * tests/test-strverscmp.c (main): Likewise.
9747         * tests/test-symlink.c (main): Likewise.
9748         * tests/test-symlinkat.c (main): Likewise.
9749         * tests/test-sys_stat.c (main): Likewise.
9750         * tests/test-sys_time.c (main): Likewise.
9751         * tests/test-time.c (main): Likewise.
9752         * tests/test-unistd.c (main): Likewise.
9753         * tests/test-unlink.c (main): Likewise.
9754         * tests/test-unlinkat.c (main): Likewise.
9755         * tests/test-utimens.c (main): Likewise.
9756         * tests/test-utimensat.c (main): Likewise.
9757         * tests/test-version-etc.c (main): Likewise.
9758         * tests/test-wchar.c (main): Likewise.
9759         * tests/test-wctype.c (main): Likewise.
9760         * tests/test-xprintf-posix.c (main): Likewise.
9761         * tests/test-posixtm.c (main): Likewise.
9762         (STREQ): Delete unused macro.
9763         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9764         shadowed variables.
9765         * tests/test-memchr.c (main): Likewise.
9766
9767 2009-10-21  Eric Blake  <ebb9@byu.net>
9768
9769         areadlinkat: avoid failure on older glibc
9770         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9771         rather than mis-comparing 0 against FUNC_RESULT of char*.
9772
9773 2009-10-21  Bruno Haible  <bruno@clisp.org>
9774
9775         * modules/stpncpy (License): Relicense under LGPLv2+.
9776         Reported by David Lutterkort <lutter@redhat.com>.
9777
9778 2009-10-20  Eric Blake  <ebb9@byu.net>
9779
9780         utimensat: work around Solaris 9 bug
9781         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9782         has trailing slash bugs.
9783         * tests/test-lutimens.h (test_lutimens): Enhance test.
9784         * tests/test-utimens.h (test_utimens): Likewise.
9785         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9786         * doc/posix-functions/utimes.texi (utimes): Likewise.
9787         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9788         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9789         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9790         * doc/posix-functions/futimens.texi (futimens): Likewise.
9791
9792         fdutimensat: new module
9793         * modules/fdutimensat: New file.
9794         * lib/fdutimensat.c (fdutimensat): Likewise.
9795         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9796         * MODULES.html.sh (File system functions): Mention module.
9797         * modules/fdutimensat-tests: New test.
9798         * tests/test-fdutimensat.c: Likewise.
9799
9800         doc: regenerate INSTALL
9801         * doc/INSTALL: Reflect recent autoconf update.
9802         * doc/INSTALL.ISO: Likewise.
9803         * doc/INSTALL.UTF-8: Likewise.
9804
9805 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9806
9807         acl: warn if ACL support is not detected
9808         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9809
9810 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9811
9812         * lib/nproc.h: Add extern "C" block for C++.
9813
9814 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9815             Bruno Haible  <bruno@clisp.org>
9816
9817         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9818         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9819         * doc/posix-functions/isalpha.texi: Likewise.
9820         * doc/posix-functions/isblank.texi: Likewise.
9821         * doc/posix-functions/iscntrl.texi: Likewise.
9822         * doc/posix-functions/isdigit.texi: Likewise.
9823         * doc/posix-functions/isgraph.texi: Likewise.
9824         * doc/posix-functions/islower.texi: Likewise.
9825         * doc/posix-functions/isprint.texi: Likewise.
9826         * doc/posix-functions/ispunct.texi: Likewise.
9827         * doc/posix-functions/isspace.texi: Likewise.
9828         * doc/posix-functions/isupper.texi: Likewise.
9829         * doc/posix-functions/isxdigit.texi: Likewise.
9830
9831 2009-10-18  Bruno Haible  <bruno@clisp.org>
9832
9833         Tests for module 'isblank'.
9834         * modules/isblank-tests: New file.
9835         * tests/test-isblank.c: New file.
9836
9837         New module 'isblank'.
9838         * lib/isblank.c: New file.
9839         * m4/isblank.m4: New file.
9840         * modules/isblank: New file.
9841         * doc/posix-functions/isblank.texi: Mention the new module.
9842
9843 2009-10-18  Bruno Haible  <bruno@clisp.org>
9844
9845         New module 'ctype'.
9846         * lib/ctype.in.h: New file.
9847         * m4/ctype.m4: New file.
9848         * modules/ctype: New file.
9849         * doc/posix-headers/ctype.texi: Mention the new module.
9850
9851 2009-10-18  Jim Meyering  <meyering@redhat.com>
9852
9853         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9854         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9855         right after its initialization, rather than farther down.
9856         Keeping these in close proximity makes it easier to ensure
9857         that each such variable is initialized.  E.g.,
9858
9859             LIB_CLOCK_GETTIME=
9860             AC_SUBST([LIB_CLOCK_GETTIME])
9861
9862         This change also increments these serial numbers.
9863         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9864         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9866
9867 2009-10-18  Bruno Haible  <bruno@clisp.org>
9868
9869         Don't let environment variables perturb build.
9870         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9871         (gl_PREREQ_GETHRXTIME): ... not here.
9872
9873 2009-10-18  Bruno Haible  <bruno@clisp.org>
9874
9875         Avoid symlink attack in localcharset module.
9876         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9877         (O_NOFOLLOW): Define fallback.
9878         (get_charset_aliases): Don't open the file if it is a symbolic link.
9879         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9880         gl_FCNTL_H.
9881         (gl_FCNTL_H): Require it.
9882         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9883         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9884         Reported by Fergal Glynn <fglynn@veracode.com>.
9885
9886 2009-10-18  Bruno Haible  <bruno@clisp.org>
9887
9888         Implement nproc for mingw.
9889         * lib/nproc.c: Include <windows.h>
9890         (num_processors): On native Windows platforms, try GetSystemInfo.
9891
9892 2009-10-18  Bruno Haible  <bruno@clisp.org>
9893
9894         Implement nproc for IRIX.
9895         * lib/nproc.c: Include <sys/sysmp.h>.
9896         (num_processors): On IRIX systems, try sysmp.
9897         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9898
9899 2009-10-18  Bruno Haible  <bruno@clisp.org>
9900
9901         Implement nproc for HP-UX.
9902         * lib/nproc.c: Include <sys/pstat.h>
9903         (num_processors): On HP-UX systems, try pstat_getdynamic.
9904         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9905         pstat_getdynamic.
9906
9907 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9908             Bruno Haible  <bruno@clisp.org>
9909
9910         Implement nproc for NetBSD, OpenBSD.
9911         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9912         (ARRAY_SIZE): New macro.
9913         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9914         * m4/nproc.m4: New file.
9915         * modules/nproc (Files): Add m4/nproc.m4.
9916         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9917         (Makefile.am): Instead, augment lib_SOURCES.
9918
9919 2009-10-18  Bruno Haible  <bruno@clisp.org>
9920
9921         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9922         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9923         sys/param.h.
9924
9925 2009-10-16  Eric Blake  <ebb9@byu.net>
9926
9927         utimensat: new module
9928         * modules/utimensat: New file.
9929         * lib/utimensat.c (utimensat): Likewise.
9930         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9931         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9932         so we can work around Linux bugs.
9933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9934         * modules/sys_stat (Makefile.am): Substitute them.
9935         * lib/sys_stat.in.h (utimensat): Declare it.
9936         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9937         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9938         * modules/utimensat-tests: New test.
9939         * tests/test-utimensat.c: Likewise.
9940
9941         utimens: let lutimens work on non-symlinks
9942         * lib/utimens.c (lutimens): Fall back to utimens rather than
9943         failing with ENOSYS, when file is not a symlink.
9944         (utimens): Reduce redirection.
9945         * tests/test-lutimens.h (test_lutimens): Update test to cover
9946         non-symlinks.
9947         * tests/test-utimens.h (test_utimens): Update test to cover
9948         symlinks.
9949         * tests/test-utimens.c (main): Update caller.
9950
9951         utimens: cache whether utimensat syscall works
9952         * lib/utimens.c (utimensat_works_really): New cache variable.
9953         (fdutimens, lutimens): Use it to avoid failing syscall.
9954
9955         test-stat-time, test-utimens: improve portability
9956         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9957         ext4 on alpha, and for cygwin.
9958         * tests/test-utimens-common.h: New file.
9959         (nap): Factor delays into single function.
9960         * tests/test-lutimens.h (test_lutimens): Use new header.
9961         * tests/test-futimens.h (test_futimens): Likewise.
9962         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9963         timestamps to occur from same machine, as was done previously for
9964         test_utimens.
9965         * modules/utimens-tests (Files): Ship new file.
9966         * modules/futimens-tests (Files): Likewise.
9967         Reported in part by Jim Meyering.
9968
9969         sys_stat: sort replacement declarations
9970         * lib/sys_stat.in.h: Sort declarations.
9971         * lib/futimens.c (futimens): Fix typo.
9972
9973 2009-10-15  Jim Meyering  <meyering@redhat.com>
9974
9975         don't let environment settings perturb build
9976         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9977         could cause a configure-time and/or build-time malfunction.
9978         Typically, a configure-time function-in-library test is performed
9979         via code like this:
9980
9981           LIB_VAR=
9982           AC_SUBST([LIB_VAR])
9983           prefix_saved_LIBS=$LIBS
9984             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9985                        [test "$ac_cv_search_FUNC" = "none required" ||
9986                         LIB_VAR=$ac_cv_search_FUNC])
9987           LIBS=$prefix_saved_LIBS
9988
9989         However, in each of the files affected by this change, the LIB_VAR=
9990         initialization was omitted.  Thus, when set in the environment, its
9991         value would propagate into generated Makefiles when FUNC is not found
9992         in LIB_NAME.
9993         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9994         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9995         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9996
9997 2009-10-14  Eric Blake  <ebb9@byu.net>
9998
9999         fchdir: avoid infinite recursion in mingw
10000         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
10001         recursing.
10002
10003         test-stat-time: port to mingw
10004         * tests/test-stat-time.c (force_unlink): Return a value.
10005         (test_ctime) [W32]: Fix compilation error.
10006         (nap): Don't call usleep with too large an argument.  Use
10007         force_unlink.
10008         * doc/pastposix-functions/usleep.texi (usleep): Document the
10009         portability issue.
10010
10011 2009-10-13  Jim Meyering  <meyering@redhat.com>
10012
10013         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
10014         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
10015         * modules/pipe-filter-ii: Likewise.
10016         * modules/sys_socket-tests: Likewise.
10017         * modules/tsearch-tests: Likewise.
10018         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
10019         (check): Depend on it.
10020
10021 2009-10-12  Eric Blake  <ebb9@byu.net>
10022
10023         utimens-tests: port to NFS file systems
10024         * tests/test-utimens.h (test_utimens): Refactor utimecmp
10025         comparisons to avoid spurious failures from timestamp drift
10026         between NFS machines.
10027
10028 2009-10-12  Eric Blake  <ebb9@byu.net>
10029
10030         stat-time-tests: minor cleanups
10031         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
10032         * tests/test-stat-time.c (nap): Separate assignment from call.
10033         Suggested by Paolo Bonzini and Bruno Haible.
10034
10035         sys_stat: guarantee struct timespec
10036         * lib/sys_stat.in.h (includes): Always include <time.h>
10037         * modules/sys_stat (Depends-on): Add time.
10038         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
10039         mode_t permission values.
10040         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
10041         get at subsecond timestamps.
10042
10043 2009-10-10  Eric Blake  <ebb9@byu.net>
10044
10045         futimens: new module
10046         * modules/futimens: New file.
10047         * lib/futimens.c (futimens): Likewise.
10048         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
10049         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
10050         we can work around Linux bugs.
10051         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10052         * modules/sys_stat (Makefile.am): Substitute them.
10053         * lib/sys_stat.in.h (futimens): Declare it.
10054         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10055         * doc/posix-functions/futimens.texi (futimens): Likewise.
10056         * modules/futimens-tests: New test.
10057         * tests/test-futimens.c: Likewise.
10058
10059         utimens: introduce fdutimens
10060         * lib/utimens.h (fdutimens): New prototype.
10061         * lib/utimens.c (gl_futimens): Move guts...
10062         (fdutimens): ...to new interface.
10063         * tests/test-utimens.c (do_fdutimens): Use it.
10064
10065         utimens: add UTIME_NOW and UTIME_OMIT support
10066         * lib/utimens.c (validate_timespec, update_timespec): New helper
10067         functions.
10068         (gl_futimens, lutimens): Use them.
10069         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
10070         stdbool, sys_stat.
10071         (Link): Mention resulting library dependency.
10072         * modules/utimecmp (Link): Likewise.
10073         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
10074         (Makefile.am): Pick up library dependency.
10075         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
10076         definition.
10077         * tests/test-sys_stat.c: Test the definitions.
10078         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
10079         * NEWS: Document library dependency.
10080
10081         utimecmp: support symlink timestamps
10082         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
10083         hashing when possible.  Use pathconf when available.
10084         (SYSCALL_RESOLUTION): Recognize tighter resolution.
10085         * modules/utimecmp (Depends-on): Add lstat.
10086
10087         utimens: add lutimens interface
10088         * lib/utimens.c (lutimens): New function.
10089         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
10090         * lib/utimens.h (lutimens): Declare new interface.
10091         * tests/test-utimens.c (main): Enhance test.
10092         * tests/test-lutimens.h (test_lutimens): New file.
10093         * modules/utimens-tests (Files): Distribute it.
10094         (Depends-on): Add symlink.
10095         (configure.ac): Check for usleep.
10096
10097         utimens: validate futimens usage
10098         * lib/utimens.c (gl_futimens): Require valid fd up front, using
10099         fewer syscalls on failure later on.  Avoid compiler warning on
10100         mingw.
10101         * modules/utimens (Depends-on): Add dup2.
10102
10103         utimens: add test
10104         * modules/utimens-tests: New test.
10105         * tests/test-utimens.h: New file.
10106         * tests/test-futimens.h: Likewise.
10107         * tests/test-utimens.c: Likewise.
10108
10109         doc: mention timestamp portability issues
10110         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
10111         instead.
10112         * doc/posix-functions/utime.texi (utime): Likewise.
10113         * doc/posix-functions/utimes.texi (utimes): Likewise.
10114         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
10115         instead.
10116         * doc/posix-functions/futimens.texi (futimens): Mention utimens
10117         module.
10118         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10119         Mention weakness with symlink timestamps.
10120         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
10121         to utimensat/futimens instead.
10122         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
10123
10124         test-dup2: enhance test
10125         * tests/test-dup2.c (main): Also check AT_FDCWD.
10126
10127         test-stat-time: avoid more spurious failures
10128         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
10129         xfs; and avoid race if the two timestamps cross quantization edge.
10130
10131         relocatable: prefer 'file system' over 'filesystem'
10132         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
10133         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
10134         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
10135         * doc/relocatable.texi (Enabling Relocatability): Likewise.
10136         * lib/relocatable.c (compute_curr_prefix): Likewise.
10137
10138 2009-10-10  Jim Meyering  <meyering@redhat.com>
10139
10140         stat-time-tests: check for the usleep function
10141         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
10142
10143 2009-10-10  Bruno Haible  <bruno@clisp.org>
10144
10145         * modules/xnanosleep: Put the Link section after the Include section.
10146
10147 2009-10-09  Eric Blake  <ebb9@byu.net>
10148
10149         dup2: work around FreeBSD 6.1 bug
10150         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
10151         * doc/posix-functions/dup2.texi (dup2): Document it.
10152         Reported by Nelson H. F. Beebe and Jim Meyering.
10153
10154         test-stat-time: port to buggy NFS clients
10155         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
10156         (test_ctime): Also skip test if mtime and ctime are skewed.
10157
10158         maint: prefer 'file system' over 'filesystem'
10159         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10160         * doc/posix-functions/lstat.texi (lstat): Likewise.
10161         * lib/file-has-acl.c (file_has_acl): Likewise.
10162         * lib/fwriteerror.c [TEST]: Likewise.
10163         * tests/test-areadlink.h (test_areadlink): Likewise.
10164         * tests/test-areadlinkat-with-size.c (main): Likewise.
10165         * tests/test-areadlinkat.c (main): Likewise.
10166         * tests/test-canonicalize-lgpl.c (main): Likewise.
10167         * tests/test-canonicalize.c (main): Likewise.
10168         * tests/test-fstatat.c (main): Likewise.
10169         * tests/test-linkat.c (main): Likewise.
10170         * tests/test-lstat.h (test_lstat_func): Likewise.
10171         * tests/test-mkdir.h (test_mkdir): Likewise.
10172         * tests/test-readlink.h (test_readlink): Likewise.
10173         * tests/test-remove.c (main): Likewise.
10174         * tests/test-rename.h (test_rename): Likewise.
10175         * tests/test-renameat.c (main): Likewise.
10176         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10177         * tests/test-symlink.h (test_symlink): Likewise.
10178         * tests/test-symlinkat.c (main): Likewise.
10179         * tests/test-unlink.h (test_unlink_func): Likewise.
10180         * tests/test-unlinkat.c (main): Likewise.
10181
10182         maint: make realtime library usage explicit
10183         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
10184         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
10185         * modules/settime (Link): Likewise.
10186         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
10187
10188         test-stat-time: speed up execution
10189         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
10190         warning on mingw.
10191         (nap): New helper function.
10192         (prepare_test): Use it to reduce sleep time.
10193         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
10194         execution.
10195         * modules/stat-time-tests (configure.ac): Check for usleep.
10196
10197 2009-10-09  Jim Meyering  <meyering@redhat.com>
10198
10199         selinux-h: always use getfilecon wrappers
10200         * lib/getfilecon.c: New file.
10201         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
10202         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
10203         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
10204         (fgetfilecon): Provide a stub.
10205         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
10206         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
10207         file unconditionally.
10208         When <selinux/selinux.h> is found, arrange to use wrappers.
10209         * modules/selinux-h (Files): Add getfilecon.c.
10210         (Makefile.am): Substitute include-next-related bits
10211         into the now-always-generated selinux/selinux.h file.
10212         * doc/glibc-functions/lgetfilecon.texi: New file.
10213         * doc/glibc-functions/fgetfilecon.texi: New file.
10214         * doc/glibc-functions/getfilecon.texi: New file.
10215         * doc/glibc-functions/getfilecon-desc.texi: New file.
10216         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
10217         which to pull in the new files.
10218         * MODULES.html.sh (Misc): Add selinux-h.
10219
10220 2009-10-08  Jim Meyering  <meyering@redhat.com>
10221
10222         unistd: fix comment typo
10223         * lib/unistd.in.h (euidaccess): Fix a comment typo.
10224
10225 2009-10-08  Eric Blake  <ebb9@byu.net>
10226
10227         areadlink: use SIZE_MAX consistently
10228         * modules/areadlink (Depends-on): Add stdint.
10229         * modules/areadlink-with-size (Depends-on): Likewise.
10230         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
10231         gives NULL; drop sys/types, since unistd gives size_t; and add
10232         stdint for SIZE_MAX.
10233         (SIZE_MAX): Rely on headers.
10234         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
10235         and add stdint.
10236         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
10237         (SIZE_MAX): Likewise.
10238         (INITIAL_BUF_SIZE): Turn into enum.
10239         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
10240
10241 2009-10-08  Jim Meyering  <meyering@redhat.com>
10242
10243         areadlinkat: avoid compilation failure
10244         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
10245         Fix typo in comment.
10246
10247 2009-10-07  Eric Blake  <ebb9@byu.net>
10248
10249         areadlinkat-with-size: new module
10250         * modules/areadlinkat-with-size: New module.
10251         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
10252         * lib/areadlink.h (areadlinkat): Declare it.
10253         * MODULES.html.sh (File system functions): Mention it.
10254         * modules/areadlinkat-with-size-tests: New test.
10255         * tests/test-areadlinkat-with-size.c: New file.
10256
10257         xreadlinkat: new module
10258         * modules/xreadlinkat: New module.
10259         * lib/xreadlinkat.c (xreadlinkat): New file.
10260         * lib/xreadlink.h (xreadlinkat): Declare it.
10261         * MODULES.html.sh (File system functions): Mention it.
10262
10263         areadlinkat: new module
10264         * lib/at-func.c (FUNC_FAIL): New define.
10265         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
10266         * modules/areadlinkat: New module.
10267         * lib/linkat.c (areadlinkat): Move...
10268         * lib/areadlinkat.c (areadlinkat): ...to new file.
10269         * lib/areadlink.h (areadlinkat): Declare it.
10270         * modules/linkat (Depends-on): Add areadlinkat.
10271         * MODULES.html.sh (File system functions): Mention it.
10272         * modules/areadlinkat-tests: New test.
10273         * tests/test-areadlinkat.c: New file.
10274
10275         areadlink, areadlink-with-size: add tests
10276         * modules/areadlink-tests: New test.
10277         * modules/areadlink-with-size-tests: Likewise.
10278         * tests/test-areadlink.h: New file.
10279         * tests/test-areadlink.c: Likewise.
10280         * tests/test-areadlink-with-size.c: Likewise.
10281
10282         maint: minor cleanups
10283         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
10284         _UNUSED_PARAMETER_ instead.
10285         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
10286         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
10287         * modules/linkat-tests (Files): Distribute test-link.h.
10288
10289         openat, utimens: whitespace cleanup
10290         * lib/openat.c: Prefer space throughout, rather than mix of 8
10291         spaces vs. tabs.
10292         * lib/at-func.c: Likewise.
10293         * lib/utimens.c: Likewise.
10294
10295         openat: avoid using wrong fd
10296         * lib/openat.c (openat_permissive): Reject user's fd if saving the
10297         working directory chooses same fd.
10298         * lib/at-func.c (AT_FUNC_NAME): Likewise.
10299
10300         mkdir, mkdirat: fix cygwin 1.5.x bug
10301         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
10302         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
10303         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
10304         bug.
10305         (gl_PREREQ_MKDIR): Delete unused macro.
10306         * modules/mkdir (Files): Track file rename.
10307         (configure.ac): Update macro name.
10308         * modules/openat (Depends-on): Add mkdir.
10309         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
10310
10311         mkdir, mkdirat: add tests
10312         * modules/mkdir-tests: New test.
10313         * tests/test-mkdir.h: New file.
10314         * tests/test-mkdir.c: Likewise.
10315         * tests/test-mkdirat.c: Likewise.
10316         * modules/openat-tests (Files): Add new files.
10317         (Makefile.am): Run new test.
10318
10319 2009-10-06  Eric Blake  <ebb9@byu.net>
10320
10321         doc: tweak *at function documentation
10322         * doc/posix-functions/faccessat.texi (faccessat): Mention
10323         known issue with replacement.
10324         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10325         * doc/posix-functions/linkat.texi (linkat): Likewise.
10326         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10327         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10328         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10329         * doc/posix-functions/renameat.texi (renameat): Likewise.
10330         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10331
10332         openat: fix GNU/Hurd bug in unlinkat
10333         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10334         broken.
10335         * doc/posix-functions/unlink.texi (unlink): Document this.
10336         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10337
10338         fdopendir: fix GNU/Hurd bug
10339         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10340         allowing non-directory fds.
10341         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10342         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10343         * modules/dirent (Makefile.am): Substitute it.
10344         * lib/dirent.in.h (fdopendir): Declare replacement.
10345         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10346         * tests/test-fdopendir.c (main): Test something other than
10347         /dev/null, since on Hurd that behaves like a directory.
10348
10349         test-symlink: port to GNU/Hurd
10350         * tests/test-symlink.h (test_symlink): Relax expected errno.
10351
10352         doc: tweak more cygwin information
10353         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10354         now compatible with glibc.
10355         * doc/posix-functions/getopt.texi (getopt): Likewise.
10356
10357         getopt-gnu: add another test
10358         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10359         guarantee behavior relied on by m4.
10360         * tests/test-getopt.c (main): Use it.
10361         * modules/getopt-posix-tests (Depends-on): Add setenv.
10362         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10363
10364         getopt: fix compilation on darwin
10365         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10366         include.
10367         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10368         Reported by Ludovic Courtès.
10369
10370 2009-10-06  Bruno Haible  <bruno@clisp.org>
10371
10372         * modules/size_max (Description): Discourage its use.
10373         Reported by Simon Josefsson.
10374
10375 2009-10-06  Jim Meyering  <meyering@redhat.com>
10376
10377         linkat: avoid compilation failure
10378         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10379
10380 2009-10-05  Eric Blake  <ebb9@byu.net>
10381
10382         linkat: support Linux 2.6.17
10383         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10384         linkat on Linux, but allow cache variable override.
10385         * lib/linkat.c (rpl_linkat): Define override.
10386         * modules/linkat (Depends-on): Add symlinkat.
10387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10388         * modules/unistd (Makefile.am): Substitute it.
10389         * lib/unistd.in.h (linkat): Declare replacement.
10390         Reported by Pádraig Brady.
10391
10392         quotearg: port test to systems with C.UTF-8 locale
10393         * tests/test-quotearg.c (struct result_strings): Add another
10394         member, differentiating between C.ASCII and C.UTF-8 handling.
10395         (compare_strings): Add parameter.
10396         (main): Adjust all callers.
10397
10398         getopt: avoid clash with FreeBSD _getopt_internal
10399         * lib/getopt.in.h (_getopt_internal): Override the name.
10400         * lib/getopt_int.h (includes): Pick up any overrides.
10401         Reported by Reuben Thomas.
10402
10403         hash: allow C89 compilation
10404         * lib/hash.c (check_tuning): Move declaration before statement.
10405         Reported by Reuben Thomas.
10406
10407 2009-10-05  Karl Berry  <karl@gnu.org>
10408
10409         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10410
10411 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10412             Bruno Haible  <bruno@clisp.org>
10413
10414         * lib/uname.c (uname): Use a table-driven algorithm to compute
10415         Windows NT versions.
10416
10417 2009-10-04  Bruno Haible  <bruno@clisp.org>
10418
10419         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10420         program_invocation_short_name.
10421         * modules/progname (configure.ac): Test for presence of
10422         program_invocation_short_name.
10423         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10424
10425 2009-10-04  Bruno Haible  <bruno@clisp.org>
10426
10427         * lib/progname.c (set_program_name): Fix comment.
10428         Reported by Jim Meyering.
10429
10430 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10431             Bruno Haible  <bruno@clisp.org>
10432
10433         * lib/uname.c: Include <string.h>.
10434         (uname): Do only one call to GetVersionEx in the common case.
10435
10436 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10437             Bruno Haible  <bruno@clisp.org>
10438
10439         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10440         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10441         (uname): Add support for Windows CE and various non-x86 CPU types.
10442
10443 2009-10-03  Bruno Haible  <bruno@clisp.org>
10444
10445         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10446         invocation to tests/configure.ac.
10447         Reported by Ian Beckwith <ianb@erislabs.net>.
10448
10449 2009-10-02  Eric Blake  <ebb9@byu.net>
10450
10451         fchdir: avoid compiler warning
10452         * lib/fchdir.c (canonicalize_file_name)
10453         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10454
10455         test-open: support mingw errno values
10456         * tests/test-open.h (test_open): Relax test.
10457         * tests/test-fopen.h (test_fopen): Likewise.
10458         * tests/test-openat-safer.c (main): Likewise.
10459
10460         open: fix opening directory on mingw
10461         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10462
10463         test-open: on GNU/Hurd, /dev/null is a directory
10464         * tests/test-fopen.h (main): Rename...
10465         (test_fopen): ...to this.  Use a guaranteed non-directory when
10466         confirming open behavior on trailing slash.
10467         * tests/test-openat-safer.c (main): Likewise.
10468         * tests/test-open.h (main): Likewise....
10469         (test_open): ...to this.
10470         * tests/test-fopen.c (main): Adjust caller.
10471         * tests/test-fopen-safer.c (main): Likewise.
10472         * tests/test-open.c (main): Likewise.
10473         * tests/test-fcntl-safer.c (main): Likewise.
10474         Reported by Samuel Thibault.
10475
10476         rename, fchdir: don't ignore chdir failure
10477         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10478         * lib/rename.c (rpl_rename) [W32]: Likewise.
10479         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10480         an empty destination directory if source cannot be renamed,
10481         although there is still possibility for failure.
10482         * doc/posix-functions/rename.texi (rename): Document the race.
10483         Reported by Jim Meyering.
10484
10485         maint: cleanup whitespace in recent commits
10486         * lib/rename.c (rpl_rename): Remove tabs.
10487         * tests/test-link.h (test_link): Likewise.
10488         * lib/fchdir.c (get_name): Likewise.
10489         Reported by Jim Meyering.
10490
10491 2009-10-02  Ben Pfaff  <blp@gnu.org>
10492
10493         relocatable-prog-wrapper: Add missing dependency on
10494         double-slash-root.
10495         * modules/relocatable-prog-wrapper: Add dependency.
10496         Reported by Ian Beckwith <ianb@erislabs.net>.
10497
10498 2009-10-02  Eric Blake  <ebb9@byu.net>
10499
10500         renameat: fix Solaris bugs
10501         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10502         needed fixing.
10503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10504         * modules/stdio (Makefile.am): Substitute it.
10505         * lib/stdio.in.h (renameat): Declare replacement.
10506         * lib/renameat.c (rpl_renameat): Implement fix.
10507
10508         renameat: new module
10509         * modules/renameat: New file.
10510         * lib/renameat.c (renameat): Likewise.
10511         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10513         * modules/stdio (Makefile.am): Substitute them.
10514         * lib/stdio.in.h (renameat): Declare it.
10515         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10516         * doc/posix-functions/renameat.texi (renameat): Likewise.
10517         * modules/renameat-tests: New test.
10518         * tests/test-renameat.c: Likewise.
10519
10520         rename: fix mingw bugs
10521         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10522         directory overwrite bugs.
10523
10524         rename: fix another cygwin 1.5 bug
10525         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10526         checks.
10527         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10528         unnecessary cygwin workarounds.  Also work around bug with moving
10529         full directory onto an empty one.
10530         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10531
10532         rename-dest-slash: merge into rename module
10533         * modules/rename-dest-slash (Status): Mark obsolete.
10534         (Depends-on): Add rename.
10535         (Files): Let rename do it all.
10536         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10537         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10538         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10539         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10540         * lib/rename.c (rpl_rename): Update comments.
10541
10542         rename: fix cygwin 1.5.x bugs
10543         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10544         * lib/rename.c (rpl_rename): Work around them.
10545         * modules/rename (Depends-on): Add same-inode.
10546
10547         rename: fix Solaris 10 bug
10548         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10549         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10550         was the only bug.
10551
10552         rename: fix Solaris 9 bug
10553         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10554         on non-directory.  Avoid calling exit.
10555         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10556         strdup.
10557         * modules/rename-tests (Depends-on): Drop lstat.
10558         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10559         (gl_PREREQ_RENAME): Delete unused macro.
10560
10561         rename-dest-slash: fix NetBSD bug
10562         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10563         links.
10564         * modules/rename-dest-slash (Depends-on): Add same-inode.
10565
10566         rename-tests: new test, exposes several platform bugs
10567         * modules/rename-tests: New file.
10568         * tests/test-rename.h: Likewise.
10569         * tests/test-rename.c: Likewise.
10570         * doc/posix-functions/rename.texi (rename): Improve documentation,
10571         including bugs that will eventually be fixed in gnulib.
10572
10573 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10574
10575         * lib/uname.c: Include <stdlib.h>
10576         (uname): Assume version info is available.
10577
10578 2009-10-02  Jim Meyering  <meyering@redhat.com>
10579
10580         gnu-web-doc-update: correct --help output
10581         * build-aux/gnu-web-doc-update: Make --help output relevant.
10582
10583         gnu-web-doc-update: add standard options
10584         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10585
10586         gnu-web-doc-update: New module.
10587         Use this script to automatically update the on-line web documentation
10588         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10589         * modules/gnu-web-doc-update: New file, from coreutils.
10590         * build-aux/gnu-web-doc-update: New script.
10591
10592 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10593
10594         link: LoadLibrary is not needed.
10595         * lib/link.c: Use GetModuleHandle.
10596
10597 2009-10-01  Eric Blake  <ebb9@byu.net>
10598
10599         getopt: bump serial number
10600         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10601         change.
10602
10603         tests: tighten link, rmdir, and remove tests
10604         * tests/test-link.h (includes): No need to use <config.h> here.
10605         Clean up if directory hard link was created, otherwise test for
10606         trailing '.'.
10607         * tests/test-linkat.c (main): Simplify.
10608         * tests/test-remove.c (main): Enhance test for trailing '.'.
10609         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10610
10611 2009-10-01  Jim Meyering  <meyering@redhat.com>
10612
10613         maint.mk: requiring "make major" was annoying, for a "minor" release.
10614         What is intended is "stable", to contrast with alpha and beta,
10615         so require "make stable", not "make major".
10616         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10617         (get_tool_versions): Likewise.
10618         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10619
10620 2009-09-30  Ben Pfaff  <blp@gnu.org>
10621
10622         Fix broken build of replacement for Windows tmpfile().
10623         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10624         flags argument added along with the 'mkostemp' module.
10625
10626 2009-09-28  Bruno Haible  <bruno@clisp.org>
10627
10628         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10629         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10630         to 'remove_elt'.
10631         (gl_list_remove): Update.
10632         * lib/gl_list.c (gl_list_remove): Update.
10633         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10634         to 'remove_elt'.
10635         (gl_oset_remove): Update.
10636         * lib/gl_list.c (gl_oset_remove): Update.
10637         Reported by Eric Blake.
10638
10639 2009-09-28  Eric Blake  <ebb9@byu.net>
10640
10641         doc: mention yet more cygwin 1.7 status
10642         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10643         cygwin.
10644         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10645         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10646
10647         argp: fix test failure
10648         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10649         that are not upper-case.  Pass correct range to tolower.
10650
10651 2009-09-27  Jim Meyering  <meyering@redhat.com>
10652
10653         test-yesno: work around sparc-dash here-document infelicity
10654         Without this change, the literal \177 byte in a here document
10655         would make dash 0.5.5.1-3 access uninitialized memory.
10656         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10657         Instead, use a marker, "@", and filter through tr to create the desired
10658         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10659
10660 2009-09-27  Bruno Haible  <bruno@clisp.org>
10661
10662         Disable untested support for new flavours of ACLs on AIX.
10663         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10664         progress.
10665         * lib/set-mode-acl.c (qset_acl): Likewise.
10666
10667 2008-12-07  Bruno Haible  <bruno@clisp.org>
10668
10669         Add support for new flavours of ACLs on AIX. (Untested.)
10670         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10671         (file_has_acl): Add support for newer AIX.
10672         * lib/set-mode-acl.c (qset_acl): Likewise.
10673         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10674         Rainer Tammer <tammer@tammer.net>.
10675
10676 2009-09-26  Eric Blake  <ebb9@byu.net>
10677
10678         argp: fix compilation of getopt
10679         * lib/getopt.in.h (includes): Use different guard than glibc.
10680         Reported by Sergey Poznyakoff.
10681
10682         doc: mention more cygwin 1.7 status
10683         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10684         bug.
10685         * doc/posix-functions/execl.texi (execl): Likewise.
10686         * doc/posix-functions/execle.texi (execle): Likewise.
10687         * doc/posix-functions/execlp.texi (execlp): Likewise.
10688         * doc/posix-functions/execv.texi (execv): Likewise.
10689         * doc/posix-functions/execve.texi (execve): Likewise.
10690         * doc/posix-functions/execvp.texi (execvp): Likewise.
10691         * doc/glibc-functions/canonicalize_file_name.texi
10692         (canonicalize_file_name): Cygwin 1.7 now provides this.
10693         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10694         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10695         on AT_SYMLINK_NOFOLLOW.
10696
10697 2009-09-24  Eric Blake  <ebb9@byu.net>
10698
10699         test-linkat: make test more robust
10700         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10701
10702         getopt: fix inclusion guards for cygwin
10703         * modules/getopt-posix (Depends-on): Add include-next.
10704         (Makefile.am): Substitute more items in replacement header.
10705         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10706         <getopt.h>.
10707         * lib/getopt.in.h (includes): Use split inclusion guard, and
10708         prefer <getopt.h> over include <unistd.h> when one is present.
10709         (option): Also override name of 'struct option'.
10710
10711         same-inode: revert prior change; it is not yet ready
10712         * NEWS: Undo mention of this change.
10713         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10714         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10715         * lib/cycle-check.c (cycle_check): Likewise.
10716         * lib/same.c (same_name): Likewise.
10717         * lib/at-func2.c (at_func2): Likewise.
10718
10719 2009-09-23  Eric Blake  <ebb9@byu.net>
10720
10721         linkat: new module
10722         * modules/linkat: New file.
10723         * lib/at-func2.c (at_func2): Likewise.
10724         * lib/linkat.c (linkat): Likewise.
10725         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10726         * lib/openat-priv.h (at_func2): Add declaration.
10727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10728         * modules/unistd (Makefile.am): Substitute them.
10729         * lib/unistd.in.h (linkat): Declare it.
10730         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10731         * doc/posix-functions/linkat.texi (linkat): Likewise.
10732         * doc/posix-functions/link.texi (link): Tweak wording.
10733         * tests/test-link.c (main): Move guts...
10734         * tests/test-link.h (test_link): ...into new file.
10735         * modules/linkat-tests: New test.
10736         * tests/test-linkat.c: Likewise.
10737         * modules/link-tests (Files): Ship new file.
10738         (Depends-on): Add stdbool.
10739
10740         dirname: add library-safe mdir_name
10741         * lib/dirname.h (mdir_name): New prototype.
10742         * lib/dirname.c (dir_name): Move guts...
10743         (mdir_name): ...to new function that avoids xalloc_die.
10744
10745         fchdir: another mingw fix
10746         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10747         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10748         on mingw (where it has not yet been ported), and make it optional
10749         elsewhere.
10750         (_gl_register_fd): Use it.
10751
10752         same-inode: make SAME_INODE tri-state, to port to mingw
10753         * NEWS: Mention this change.
10754         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10755         st_ino always being 0.
10756         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10757         * lib/cycle-check.c (cycle_check): Likewise.
10758         * lib/same.c (same_name): Likewise.
10759
10760         lstat: avoid mingw compilation error
10761         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10762         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10763         lstat ourselves.
10764         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10765         was adequate.
10766         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10767         the checks for lstat.
10768         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10769
10770         link: fix test failure on Solaris 9
10771         * lib/link.c (rpl_link): Don't assume link will catch bogus
10772         trailing slash on source.
10773
10774         test-symlinkat: enhance test
10775         * tests/test-readlink.c (main): Move guts...
10776         * tests/test-readlink.h (test_readlink): ...into new file.
10777         * tests/test-symlink.c (main): Move guts...
10778         * tests/test-symlink.h (test_symlink): ...into new file.
10779         * tests/test-symlinkat.c (main): Use new files for further
10780         coverage.
10781         (do_symlink, do_readlink): New helper functions.
10782         * modules/symlink-tests (Files): Ship new file.
10783         (Depends-on): Add stdbool.
10784         * modules/readlink-tests (Files): Ship new file.
10785         (Depends-on): Add stdbool.
10786         * modules/symlinkat-tests (Files): Use new files.
10787
10788 2009-09-23  Eric Blake  <ebb9@byu.net>
10789
10790         readlink: document portability issue with symlink length
10791         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10792         systems have bogus st_size on symlinks, and mention the
10793         areadlink-with-size module.
10794         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10795         * doc/posix-functions/readlink.texi (readlink): Mention the
10796         areadlink module, and ERANGE failure.
10797         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10798         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10799
10800         readlink: fix Solaris 9 bug with trailing slash
10801         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10802         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10803         * doc/posix-functions/readlink.texi (readlink): Document this.
10804         * modules/readlink-tests: New test.
10805         * tests/test-readlink.c: Likewise.
10806
10807         readlink: fix cygwin 1.5.x bug with return type
10808         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10809         * lib/unistd.in.h (readlink): Use ssize_t.
10810         * lib/readlink.c (readlink): Likewise.
10811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10812         * modules/unistd (Makefile.am): Substitute it.
10813         * lib/unistd.in.h (readlink): Declare replacement.
10814         * doc/posix-functions/readlink.texi (readlink): Document this.
10815
10816         symlink: use throughout gnulib
10817         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10818         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10819         symlink is not used.
10820         * modules/symlinkat (Depends-on): Add symlink.
10821         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10822         * modules/canonicalize-tests (Depends-on): Likewise.
10823         * modules/lstat-tests (Depends-on): Likewise.
10824         * modules/openat-tests (Depends-on): Likewise.
10825         * modules/remove-tests (Depends-on): Likewise.
10826         * modules/rmdir-tests (Depends-on): Likewise.
10827         * modules/unlink-tests (Depends-on): Likewise.
10828         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10829         * tests/test-canonicalize.c (symlink): Likewise.
10830         * tests/test-fstatat.c (symlink): Likewise.
10831         * tests/test-lstat.c (symlink): Likewise.
10832         * tests/test-remove.c (symlink): Likewise.
10833         * tests/test-rmdir.c (symlink): Likewise.
10834         * tests/test-unlink.c (symlink): Likewise.
10835         * tests/test-unlinkat.c (symlink): Likewise.
10836
10837         symlink: new module, for Solaris 9 bug
10838         * modules/symlink: New file.
10839         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10840         * lib/symlink.c: Likewise.
10841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10842         * modules/unistd (Makefile.am): Substitute them.
10843         * lib/unistd.in.h (symlink): Declare replacement.
10844         * MODULES.html.sh (File system functions): Mention it.
10845         * doc/posix-functions/symlink.texi (symlink): Likewise.
10846         * modules/symlink-tests: New test.
10847         * tests/test-symlink.c: Likewise.
10848
10849 2009-09-23  Bruno Haible  <bruno@clisp.org>
10850
10851         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10852         when needed.
10853         Test case: gnulib-tool --import --with-tests atexit inttypes.
10854         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10855
10856 2009-09-23  Bruno Haible  <bruno@clisp.org>
10857
10858         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10859         subcommand, not in a subshell.
10860
10861 2009-09-22  Eric Blake  <ebb9@byu.net>
10862
10863         unistd: sort replacement declarations
10864         * lib/unistd.in.h: Sort declarations.
10865
10866         open, openat: minor optimization
10867         * lib/open.c (open): If open succeeded, len is non-zero.
10868         * lib/openat.c (rpl_openat): Likewise.
10869
10870         link-follow: ensure correct result
10871         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10872         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10873         distinguish between possible failures.
10874
10875 2009-09-21  Eric Blake  <ebb9@byu.net>
10876
10877         fts: avoid compiler warning
10878         * lib/fts.c (dirent_inode_sort_may_be_useful)
10879         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10880
10881 2009-09-19  Bruno Haible  <bruno@clisp.org>
10882
10883         * lib/progreloc.c (canonicalize_file_name): New declaration.
10884
10885 2009-09-19  Eric Blake  <ebb9@byu.net>
10886
10887         link: fix quoting
10888         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10889
10890         openat: fix openat bugs on Solaris 9
10891         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10892         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10893         * modules/openat (Depends-on): Add open.
10894         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10895         * modules/fcntl-h (Makefile.am): Substitute it.
10896         * lib/fcntl.in.h (openat): Declare replacement.
10897         * doc/posix-functions/openat.texi (openat): Document this.
10898
10899         openat: move fstatat and unlinkat into correct files
10900         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10901         compiled.
10902         * lib/openat.c (fstatat, unlinkat): Move...
10903         * lib/fstatat.c (fstatat): ...into correct files.
10904         * lib/unlinkat.c (unlinkat): Likewise.
10905
10906         openat: fix unlinkat bugs on Solaris 9
10907         * lib/unlinkat.c (unlinkat): New file.
10908         * modules/openat (Depends-on): Add unlink.
10909         (Files): Distribute it.
10910         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10911         trailing slash behavior is broken.
10912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10913         * modules/unistd (Makefile.am): Substitute it.
10914         * lib/unistd.in.h (unlinkat): Declare replacement.
10915         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10916
10917         openat: fix fstatat bugs on Solaris 9
10918         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10919         stat.
10920         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10921
10922         test-unlinkat: enhance test, to expose Solaris 9 bug
10923         * tests/test-unlink.c (main): Factor guts...
10924         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10925         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10926         * tests/test-rmdir.c (main): Adjust caller.
10927         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10928         (unlinker): New helper function.
10929         (rmdirat): Enhance check.
10930         * modules/rmdir-tests (Depends-on): Add stdbool.
10931         * modules/unlink-tests (Depends-on): Likewise.
10932         (Files): Add test-unlink.h.
10933         * modules/openat-tests (Files): Likewise.
10934         (Depends-on): Add unlinkdir.
10935
10936         test-fstatat: new test, to expose Solaris 9 bugs
10937         * tests/test-stat.c (main): Factor guts...
10938         * tests/test-stat.h (test_stat_func): ...into new file.
10939         * tests/test-lstat.c (main): Factor guts...
10940         * tests/test-lstat.h (test_lstat_func): ...into new file.
10941         * tests/test-fstatat.c: New file.
10942         * modules/stat-tests (Files): Add test-stat.h.
10943         * modules/lstat-tests (Files): Add test-lstat.h.
10944         (Depends-on): Add stdbool.
10945         * modules/openat-tests (Depends-on): Add pathmax.
10946         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10947         (Makefile.am): Run new test.
10948
10949         remove: new module, for mingw and Solaris 9 bugs
10950         * modules/remove: New file.
10951         * lib/remove.c: Likewise.
10952         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10954         * modules/stdio (Makefile.am): Use them.
10955         * lib/stdio.in.h (remove): Declare replacement.
10956         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10957         * doc/posix-functions/remove.texi (remove): Likewise.
10958         * modules/remove-tests: New test.
10959         * tests/test-remove.c: Likewise.
10960
10961         unlink: new module, for Solaris 9 bug
10962         * modules/unlink: New file.
10963         * lib/unlink.c: Likewise.
10964         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10966         * modules/unistd (Makefile.am): Use them.
10967         * lib/unistd.in.h (stat): Declare replacement.
10968         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10969         * doc/posix-functions/unlink.texi (unlink): Likewise.
10970         * modules/unlink-tests: New test.
10971         * tests/test-unlink.c: Likewise.
10972
10973         lstat: fix Solaris 9 bug
10974         * lib/lstat.c (lstat): Also check for trailing slash on
10975         non-symlink, non-directories.  Use stat module to simplify logic.
10976         * doc/posix-functions/lstat.texi (lstat): Document it.
10977         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10978         (configure.ac): Check for symlink.
10979         * tests/test-lstat.c (main): Add more tests.
10980
10981         stat: add as dependency to other modules
10982         * modules/chown (Depends-on): Add stat.
10983         * modules/euidaccess (Depends-on): Likewise.
10984         * modules/fchdir (Depends-on): Likewise.
10985         * modules/isdir (Depends-on): Likewise.
10986         * modules/link (Depends-on): Likewise.
10987         * modules/lstat (Depends-on): Likewise.
10988         * modules/mkdir-p (Depends-on): Likewise.
10989         * modules/modechange (Depends-on): Likewise.
10990         * modules/open (Depends-on): Likewise.
10991         * modules/readlink (Depends-on): Likewise.
10992         * modules/same (Depends-on): Likewise.
10993
10994         stat: fix Solaris 9 bug
10995         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10996         slash.
10997         * lib/stat.c (rpl_stat): Work around it.
10998         * doc/posix-functions/stat.texi (stat): Update documentation.
10999
11000         stat: new module, for mingw bug
11001         * modules/stat: New file.
11002         * lib/stat.c: Likewise.
11003         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11005         * modules/sys_stat (Makefile.am): Use them.
11006         * lib/sys_stat.in.h (stat): Declare replacement.
11007         * lib/openat.c (fstatat): Deal with lstat and stat being function
11008         macros.
11009         * modules/openat (Depends-on): Add inline.
11010         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
11011         * doc/posix-functions/stat.texi (stat): Likewise.
11012         * modules/stat-tests: New test.
11013         * tests/test-stat.c: Likewise.
11014
11015 2009-09-19  Jim Meyering  <meyering@redhat.com>
11016
11017         syntax-check: detect unnecessary inclusion of canonicalize.h
11018         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
11019
11020 2009-09-19  Eric Blake  <ebb9@byu.net>
11021
11022         canonicalize-lgpl: adjust clients to use correct header
11023         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
11024         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
11025         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
11026         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
11027         * lib/progreloc.c (includes): Likewise.
11028
11029 2009-09-19  Jim Meyering  <meyering@redhat.com>
11030
11031         test-posixtm.c: correct a comment
11032         * tests/test-posixtm.c: Correct first-line comment.
11033         Spotted by Eric Blake.
11034
11035 2009-09-16  Jim Meyering  <meyering@redhat.com>
11036
11037         posixtm-tests: make T const-correct; add a test case
11038         * tests/test-posixtm.c (T): Declare const.
11039         Add a test for -(2^31+1).
11040         Remove useless can-succeed-only-in-2002 test.
11041
11042         posixtm-tests: adjust the sole failing test
11043         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
11044         expected output matches what mktime now produces.  Cross-checked via
11045         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
11046
11047         posixtm: move #ifdef'd tests into a new module
11048         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
11049         * tests/test-posixtm.c: ... this new file.
11050         * modules/posixtm-tests: New module.
11051
11052 2009-09-19  Eric Blake  <ebb9@byu.net>
11053
11054         openat: simplify use of at-func.c
11055         * lib/at-func.c (includes): Include prerequisites here, to
11056         simplify requirements on client files.
11057         * lib/openat-priv.h: Add double-inclusion guard.
11058         * lib/faccessat.c (includes): Simplify.
11059         * lib/fchmodat.c (includes): Likewise.
11060         * lib/fchownat.c (includes): Likewise.
11061         * lib/mkdirat.c (includes): Likewise.
11062         * lib/mkfifoat.c (includes): Likewise.
11063         * lib/symlinkat.c (includes): Likewise.
11064
11065         openat: allow return of fd 0
11066         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
11067         * modules/save-cwd (Depends-on): Replace fcntl-safer with
11068         unistd-safer.
11069         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
11070         <fcntl.h>; this module does not leak fds.
11071         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
11072         must be allowed to return 0, leaving openat_safer to add the
11073         safety.
11074         (openat_permissive): Avoid writing to just-opened fd 2 if
11075         restoring the current directory fails.
11076         * lib/openat-die.c (openat_restore_fail): Add comment.
11077         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
11078         (save_cwd): Guarantee safe fd, but without use of open_safer.
11079         * tests/test-openat.c: New test.
11080         * modules/openat-tests (Files, Makefile.am): Distribute and build
11081         new file.
11082
11083         relocatable-prog-wrapper: fix build
11084         * modules/relocatable-prog-wrapper (Files): Update name of
11085         canonicalize m4 file, broken on 2009-09-17.
11086         Reported by emad hajjar <aleppos@hotmail.com>.
11087
11088 2009-09-19  Bruno Haible  <bruno@clisp.org>
11089
11090         * lib/safe-alloc.h: Use the standard header with GPL copyright.
11091         * lib/safe-alloc.c: Likewise.
11092         Reported by Ian Beckwith <ianb@erislabs.net>.
11093
11094 2009-09-18  Bruno Haible  <bruno@clisp.org>
11095
11096         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
11097         Reported by <erobles@sensacd.com.mx>.
11098
11099 2009-09-17  Eric Blake  <ebb9@byu.net>
11100
11101         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
11102         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
11103         slashes when checking if last component is missing.
11104         * tests/test-canonicalize.c (main): Test this.
11105
11106         canonicalize, canonicalize-lgpl: honor // if distinct from /
11107         * modules/canonicalize (Files): Add double-slash-root.m4.
11108         * modules/canonicalize-lgpl (Files): Likewise.
11109         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
11110         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
11111         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
11112         fallback definition.
11113         (canonicalize_filename_mode): Use it to protect //.
11114         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
11115         (__realpath): Likewise.
11116         * tests/test-canonicalize.c (main): Test this.
11117         * tests/test-canonicalize-lgpl.c (main): Likewise.
11118         * modules/canonicalize-tests (Depends-on): Add same-inode.
11119         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11120
11121         canonicalize-lgpl: fix glibc bug with trailing slash
11122         * m4/canonicalize-lgpl.m4: Move contents...
11123         * m4/canonicalize.m4: ...here.
11124         (gl_CANONICALIZE_LGPL): Factor realpath check...
11125         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
11126         glibc 2.3.5 bug, fixed 2005-04-27.
11127         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
11128         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
11129         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
11130         * modules/canonicalize-lgpl (Files): Manage file rename.
11131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11132         * modules/stdlib (Makefile.am): Substitute witness.
11133         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
11134         is needed.
11135         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
11136         replacement is required.
11137         * lib/canonicalize.c (canonicalize_file_name): Likewise.
11138         * doc/glibc-functions/canonicalize_file_name.texi
11139         (canonicalize_file_name): Document this.
11140         * doc/posix-functions/realpath.texi (realpath): Likewise.
11141
11142         canonicalize-lgpl: reject non-directory with trailing slash
11143         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
11144         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
11145         catches failures in glibc 2.3.5.
11146         * tests/test-canonicalize.c (main): Likewise.
11147
11148         canonicalize-lgpl: use native realpath if it works
11149         * lib/canonicalize-lgpl.c (realpath): Guard with
11150         FUNC_REALPATH_WORKS.
11151         * lib/stdlib.in.h (realpath): Make declaration optional based on
11152         HAVE_REALPATH.
11153         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
11154         native realpath works.
11155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11156         * modules/stdlib (Makefile.am): Substitute witness.
11157
11158         canonicalize, canonicalize-lgpl: use <stdlib.h>
11159         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
11160         (Include): Mention <stdlib.h>.
11161         (configure.ac): Mention functions we provide.
11162         * modules/canonicalize (configure.ac): Likewise.
11163         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
11164         realpath if canonicalize_file_name is missing.
11165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
11166         * modules/stdlib (Makefile.am): Substitute witnesses.
11167         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
11168         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
11169         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
11170         * NEWS: Document this.
11171         * doc/glibc-functions/canonicalize_file_name.texi
11172         (canonicalize_file_name): Likewise.
11173         * doc/posix-functions/realpath.texi (realpath): Likewise.
11174         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
11175
11176         test-canonicalize: consolidate into single C program
11177         * tests/test-canonicalize.sh: Delete; move setup into...
11178         * tests/test-canonicalize.c (main): ...the program, making it
11179         easier to run in debugger.  Add some tests.
11180         * modules/canonicalize-tests (Files): Remove unused file.
11181         (Depends-on): Add progname.
11182         (configure.ac, Makefile.am): Simplify.
11183
11184         test-canonicalize-lgpl: consolidate into single C program
11185         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
11186         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
11187         easier to run in debugger.  Add some tests.
11188         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
11189         (configure.ac, Makefile.am): Simplify.
11190
11191         canonicalize: avoid resolvepath
11192         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
11193         unnecessary checks.
11194         * lib/canonicalize.c (includes): Simplify.
11195         (canonicalize_file_name): Drop resolvepath implementation.
11196         * modules/canonicalize (Depends-on): Drop filenamecat.
11197
11198         canonicalize: don't lose errno
11199         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
11200         over calls to free.
11201
11202         canonicalize: simplify errno handling
11203         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
11204         assignment.
11205
11206         canonicalize, canonicalize-lgpl: update module dependencies
11207         * modules/canonicalize (Depends-on): Add extensions, lstat,
11208         pathmax, stdlib.
11209         (Files): Drop pathmax.h.
11210         (configure.ac): Adjust macro name.
11211         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
11212         lstat, stdlib, sys_stat.
11213         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
11214         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
11215         extensions.
11216         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
11217         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
11218         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
11219         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
11220         declaration, if available.
11221         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
11222         we can rely on the readlink module.
11223         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
11224         (includes): Use <unistd.h> unconditionally.
11225
11226 2009-09-17  Eric Blake  <ebb9@byu.net>
11227
11228         maint: make Include sections of modules consistent
11229         * modules/alloca: Use only header name; no need to list #include.
11230         * modules/alloca-opt: Likewise.
11231         * modules/arpa_inet: Likewise.
11232         * modules/canon-host: Likewise.
11233         * modules/configmake: Likewise.
11234         * modules/dirent: Likewise.
11235         * modules/eealloc: Likewise.
11236         * modules/environ: Likewise.
11237         * modules/fchdir: Likewise.
11238         * modules/fcntl: Likewise.
11239         * modules/fcntl-h: Likewise.
11240         * modules/gethrxtime: Likewise.
11241         * modules/gettime: Likewise.
11242         * modules/ignore-value: Likewise.
11243         * modules/inet_ntop: Likewise.
11244         * modules/inet_pton: Likewise.
11245         * modules/inttypes: Likewise.
11246         * modules/isnand-nolibm: Likewise.
11247         * modules/isnanf-nolibm: Likewise.
11248         * modules/mbchar: Likewise.
11249         * modules/mbfile: Likewise.
11250         * modules/mbiter: Likewise.
11251         * modules/mbuiter: Likewise.
11252         * modules/netdb: Likewise.
11253         * modules/netinet_in: Likewise.
11254         * modules/nproc: Likewise.
11255         * modules/pagealign_alloc: Likewise.
11256         * modules/poll: Likewise.
11257         * modules/printf-frexp: Likewise.
11258         * modules/pthread: Likewise.
11259         * modules/putenv: Likewise.
11260         * modules/random_r: Likewise.
11261         * modules/relocatable-prog: Likewise.
11262         * modules/search: Likewise.
11263         * modules/select: Likewise.
11264         * modules/selinux-h: Likewise.
11265         * modules/settime: Likewise.
11266         * modules/signal: Likewise.
11267         * modules/size_max: Likewise.
11268         * modules/socklen: Likewise.
11269         * modules/ssize_t: Likewise.
11270         * modules/stdarg: Likewise.
11271         * modules/stdbool: Likewise.
11272         * modules/stddef: Likewise.
11273         * modules/stdint: Likewise.
11274         * modules/stdio: Likewise.
11275         * modules/stdlib: Likewise.
11276         * modules/string: Likewise.
11277         * modules/strings: Likewise.
11278         * modules/sys_file: Likewise.
11279         * modules/sys_ioctl: Likewise.
11280         * modules/sys_select: Likewise.
11281         * modules/sys_socket: Likewise.
11282         * modules/sys_stat: Likewise.
11283         * modules/sys_time: Likewise.
11284         * modules/sys_times: Likewise.
11285         * modules/sys_utsname: Likewise.
11286         * modules/sys_wait: Likewise.
11287         * modules/sysexits: Likewise.
11288         * modules/time: Likewise.
11289         * modules/times: Likewise.
11290         * modules/tmpfile: Likewise.
11291         * modules/trim: Likewise.
11292         * modules/unistd: Likewise.
11293         * modules/wchar: Likewise.
11294         * modules/wctype: Likewise.
11295
11296 2009-09-17  Bruno Haible  <bruno@clisp.org>
11297
11298         Make getdate.y compile on QNX and NetBSD 5 / i386.
11299         * m4/getdate.m4 (gl_GETDATE): Conditionally define
11300         TIME_T_FITS_IN_LONG_INT.
11301         * lib/getdate.y (long_time_t): New type.
11302         (relative_time): Change type of 'seconds' field to long_time_t.
11303         (get_date): Update types of local variables. Check against overflow
11304         during conversion from long_time_t to time_t.
11305         Reported by Matt Kraai <kraai@ftbfs.org>
11306         and Hasso Tepper <hasso@netbsd.org>.
11307
11308 2009-09-17  Bruno Haible  <bruno@clisp.org>
11309
11310         * modules/COPYING: Update copyright years.
11311         * modules/README: Likeiwse.
11312         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11313         Reported by Ian Beckwith <ianb@erislabs.net>.
11314
11315 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11316
11317         * users.txt: Update references for gnuit package.
11318
11319 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11320
11321         * m4/getdelim.m4: Fix typo in copyright line.
11322
11323 2009-09-17  Bruno Haible  <bruno@clisp.org>
11324
11325         * lib/atoll.c: Use the standard header with GPL copyright.
11326         * lib/argz.in.h: Likewise.
11327         * lib/glob.c: Likewise.
11328         * lib/glob-libc.h: Likewise.
11329         * lib/random_r.c: Likewise.
11330         * lib/siglist.h: Likewise.
11331         * lib/strsignal.c: Likewise.
11332         Reported by Ian Beckwith <ianb@erislabs.net>.
11333
11334 2009-09-17  Eric Blake  <ebb9@byu.net>
11335
11336         rmdir: ensure correct dependency order
11337         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11338
11339 2009-09-17  Bruno Haible  <bruno@clisp.org>
11340
11341         Disable assertion that fails on NetBSD 5 / i386.
11342         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11343         Reported by Sam Steingold <sds@gnu.org>
11344         and Hasso Tepper <hasso@netbsd.org>.
11345
11346 2009-09-16  Eric Blake  <ebb9@byu.net>
11347
11348         unlinkdir: port to mingw
11349         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11350         on which no one can unlink a directory.
11351
11352         stdlib: sort witness names
11353         * modules/stdlib (Makefile.am): Sort replacements.
11354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11355         * lib/stdlib.in.h: Likewise.
11356
11357         parse-duration-tests: avoid link failure
11358         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11359         LIBINTL.
11360         Reported by Tom G. Christensen.
11361
11362         openat-tests: ensure unlinkat behaves like rmdir
11363         * tests/test-rmdir.c (main): Factor guts...
11364         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11365         * modules/rmdir-tests (Files): Ship new file.
11366         * modules/openat-tests: New test.
11367         * tests/test-unlinkat.c: Likewise.
11368
11369         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11370         * modules/rmdir-errno (Status, Notice): Now obsolete.
11371
11372         rmdir: work around cygwin 1.5.x and mingw bugs
11373         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11374         * lib/rmdir.c (rmdir): Work around it.
11375         * modules/rmdir (Status, Notice): No longer obsolete.
11376         (Files): Add dos.m4.
11377         (Depends-on): Add unistd.
11378         (configure.ac): Set witnesses.
11379         (License): Relax to LGPLv2+.
11380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11381         * modules/unistd (Makefile.am): Substitute witnesses.
11382         * lib/unistd.in.h (rmdir): Declare replacement.
11383         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11384         * modules/rmdir-tests: New tests.
11385         * tests/test-rmdir.c: Likewise.
11386
11387 2009-09-15  Eric Blake  <ebb9@byu.net>
11388
11389         fchdir: improve use of replacement functions
11390         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11392         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11393         REPLACE_CLOSEDIR.
11394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11395         * modules/sys_stat (Makefile.am): Substitute correct witness.
11396         * modules/dirent (Makefile.am): Likewise.
11397         * modules/unistd (Makefile.am): Likewise.
11398         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11399         * lib/unistd.in.h (dup): Likewise.
11400         * lib/sys_stat.in.h (fstat): Likewise.
11401
11402         maint: ignore gnulib-tool temp files
11403         * .gitignore: Ignore files created during gnulib-tool --test.
11404
11405 2009-09-13  Jim Meyering  <meyering@redhat.com>
11406
11407         posixtm: don't reject a time that specify "60" as the number of seconds
11408         * lib/posixtm.c (posixtime): The code to reject invalid dates
11409         would also reject a time specified with the .60 suffix.
11410         But POSIX allows that, in order to accommodate leap seconds.
11411         So don't reject it.
11412         (main): Adjust tests accordingly.
11413         * modules/posixtm (Depends-on): Add stpcpy.
11414
11415 2009-09-11  Jim Meyering  <meyering@redhat.com>
11416
11417         announce-gen: include [$release_type] in emitted Subject:
11418         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11419         e.g., [stable] in the emitted Subject: line.
11420
11421 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11422
11423         Remove obsolete macros from several modules.
11424         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11425         obsolete Autoconf macros with their modern counterparts.
11426         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11427         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11428         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11429         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11430         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11431         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11433         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11434         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11435         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11436         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11437         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11438         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11439         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11440         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11441         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11442         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11443         * m4/time_r.m4 (gl_TIME_R): Likewise.
11444         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11445         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11446         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11447
11448         Fix copyright header in build-aux scripts.
11449         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11450         recommendation.
11451         * build-aux/ncftpput-ftp: Likewise.
11452         * build-aux/update-copyright: Likewise.
11453
11454 2009-09-09  Eric Blake  <ebb9@byu.net>
11455
11456         test-link: allow Linux choice of errno
11457         * tests/test-link.c (main): Relax test for alternate error.
11458
11459         strndup: fix improper m4 caching
11460         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11461         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11462         (gl_PREREQ_STRNDUP): Delete.
11463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11464         * modules/string (Makefile.am): Substitute it.
11465         * lib/string.in.h (strndup): Modernize prototype.
11466
11467         getcwd: port to mingw
11468         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11469         different from the POSIX assumptions made throughout the getcwd
11470         module; fortunately, the mingw getcwd does not need replacement.
11471         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11472         * modules/getcwd-tests: New test.
11473         * tests/test-getcwd.c: Likewise.
11474
11475         link: fix platform bugs
11476         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11477         * lib/link.c (link): Work around them.  Fix related mingw bug.
11478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11479         * modules/unistd (Makefile.am): Substitute it.
11480         * lib/unistd.in.h (link): Declare replacement.
11481         * doc/posix-functions/link.texi (link): Document this.
11482         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11483
11484         test-link: consolidate into single C program, test more cases
11485         * tests/test-link.sh: Delete.
11486         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11487         at least Cygwin and Solaris.
11488         * modules/link-tests (Files): Remove unused file.
11489         (Depends-on): Add errno, sys_stat.
11490         (Makefile.am): Simplify.
11491
11492 2009-09-08  Bruno Haible  <bruno@clisp.org>
11493
11494         Work around towlower, towupper bug on mingw.
11495         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11496         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11497         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11498         * doc/posix-functions/towupper.texi: Likewise.
11499         Reported by Eric Blake.
11500
11501 2009-09-08  Jim Meyering  <meyering@redhat.com>
11502
11503         build: don't try to run autoheader if we don't use it
11504         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11505         is not used in configure.ac.
11506
11507 2009-09-08  Eric Blake  <ebb9@byu.net>
11508
11509         euidaccess: fix compilation error
11510         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11511
11512         rawmemchr: relax license
11513         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11514         okay.
11515         Reported by Jim Meyering.
11516
11517         mkfifoat: new module
11518         * modules/mkfifoat: New file.
11519         * lib/mkfifoat.c: Likewise.
11520         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11521         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11522         * modules/sys_stat (Makefile.am): Use them.
11523         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11524         * MODULES.html.sh (File system functions): Mention module.
11525         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11526         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11527         * modules/mkfifoat-tests: New test.
11528         * tests/test-mkfifoat.c: Likewise.
11529
11530         strchrnul: relax license
11531         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11532         okay.
11533         Reported by Jim Meyering.
11534
11535 2009-09-08  Eric Blake  <ebb9@byu.net>
11536
11537         fstatat: fix compilation on Solaris
11538         * lib/fstatat.c (includes): Add fcntl.h.
11539         Reported by Pádraig Brady.
11540
11541 2009-09-07  Eric Blake  <ebb9@byu.net>
11542
11543         rename: modernize replacement
11544         * modules/rename (Depends-on): Add stdio.
11545         (configure.ac): Declare witness.
11546         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11547         stdio take care of replacement.
11548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11549         * modules/stdio (Makefile.am): Substitute them.
11550         * lib/stdio.in.h (rename): Declare replacement.
11551         * lib/rename.c (includes): Allow cross-compilation to non-windows
11552         machines.
11553         * doc/posix-functions/rename.texi (rename): Improve
11554         documentation.
11555
11556         stdio: sort witness names
11557         * modules/stdio (Makefile.am): Sort replacements.
11558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11559         * lib/stdio.in.h: Likewise.
11560
11561         getcwd: minor cleanups
11562         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11563         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11564
11565         openat: provide more convenience names
11566         * modules/faccessat (configure.ac): Add C witness.
11567         * lib/unistd.in.h (readlinkat): Fix typo.
11568         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11569         convenience wrappers.
11570         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11571         wrappers in syntax checks.
11572
11573 2009-09-06  Eric Blake  <ebb9@byu.net>
11574
11575         doc: fix comments in recent patches
11576         * lib/faccessat.c: Mention correct function.
11577         * lib/fchmodat.c: Likewise.
11578         * lib/fchownat.c: Likewise.
11579         * lib/symlinkat.c: Likewise.
11580         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11581         constants.
11582
11583         faccessat, symlinkat: continue cleanup of previous patch
11584         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11585         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11586         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11588         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11589         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11590         set.
11591
11592 2009-09-06  Bruno Haible  <bruno@clisp.org>
11593
11594         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11595         (fstatat): Declare if GNULIB_FSTATAT is set.
11596         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11597         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11598         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11599         * modules/fcntl-h (Files): Remove m4/openat.m4.
11600         * modules/sys_stat (Files): Remove m4/openat.m4.
11601         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11602         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11603         * modules/unistd (Files): Remove m4/openat.m4.
11604         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11605         GNULIB_OPENAT.
11606         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11607         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11608         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11609         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11610         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11611         gl_OPENAT_DEFAULTS.
11612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11613         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11614         Don't require gl_OPENAT_DEFAULTS.
11615         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11616         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11617         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11618         (gl_OPENAT_DEFAULTS): Remove macro.
11619
11620 2009-09-06  Bruno Haible  <bruno@clisp.org>
11621
11622         * modules/openat (configure.ac): Remove unneeded witness.
11623
11624 2009-09-06  Bruno Haible  <bruno@clisp.org>
11625
11626         Set errno to ENOSYS when a function is entirely unsupported.
11627         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11628         EOPNOTSUPP.
11629         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11630         * modules/chown (Depends-on): Remove errno.
11631
11632 2009-09-06  Bruno Haible  <bruno@clisp.org>
11633
11634         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11635
11636 2009-09-06  Bruno Haible  <bruno@clisp.org>
11637
11638         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11639
11640 2009-09-06  Ben Pfaff  <blp@gnu.org>
11641             Bruno Haible  <bruno@clisp.org>
11642
11643         Work around a glibc bug in strtok_r.
11644         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11645         Undefine if UNDEFINE_STRTOK_R is set.
11646         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11648         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11649         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11650         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11651         UNDEFINE_STRTOK_R.
11652         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11653
11654 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11655
11656         exclude: minor fix
11657         * lib/exclude.c: Include wctype.h
11658
11659 2009-09-06  Akim Demaille  <demaille@gostai.com>
11660
11661         bootstrap: improve error message
11662         * build-aux/bootstrap (find_tool): Upon failure, report the list
11663         of candidates.
11664         Honor the initial value of the envvar.
11665
11666 2009-09-05  Eric Blake  <ebb9@byu.net>
11667
11668         symlinkat: new module
11669         * modules/symlinkat: New file.
11670         * lib/symlinkat.c: Likewise.
11671         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11673         * modules/unistd (Makefile.am): Use them.
11674         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11675         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11676         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11677         * MODULES.html.sh (File system functions): Mention module.
11678         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11679         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11680         * modules/symlinkat-tests: New test.
11681         * tests/test-symlinkat.c: Likewise.
11682
11683         test-openat-safer: add more checks
11684         * tests/test-openat-safer.c (main): Check more code paths.
11685
11686 2009-09-05  Jim Meyering  <meyering@redhat.com>
11687
11688         syntax-check: detect unnecessary inclusion of openat.h
11689         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11690
11691 2009-09-05  Bruno Haible  <bruno@clisp.org>
11692
11693         Support towlower, towupper.
11694         * doc/posix-functions/towlower.texi: Mention module wctype.
11695         * doc/posix-functions/towupper.texi: Likewise.
11696         * lib/wctype.in.h (towlower, towupper): New functions.
11697         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11698         (ASSERT): New macro.
11699         (e): New variable.
11700         (main): Test also towlower, towupper. Test WEOF argument.
11701         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11702
11703 2009-09-05  Bruno Haible  <bruno@clisp.org>
11704
11705         Fix conversion behaviour when the input is invalid.
11706         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11707         mark occurring in first pass of indirect conversion.
11708         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11709         input.
11710         Found by clang's static analyzer.
11711
11712 2009-09-05  Bruno Haible  <bruno@clisp.org>
11713
11714         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11715         where direct conversion is possible.
11716
11717 2009-09-04  Eric Blake  <ebb9@byu.net>
11718
11719         openat: fail with ENOENT on empty name
11720         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11721         buffer.
11722
11723         link-follow: fix logic bug in prior patch
11724         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11725         reversed sense of yes and no in prior patch.  Avoid confusing
11726         compilation failure with desired semantics.
11727
11728         link-follow: accomodate mingw and cross-compilation
11729         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11730         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11731         cross-compilation results to -1, to make linkat easier to
11732         implement when cross-compiling.  Trivially support mingw.
11733         * modules/link-follow (configure.ac): Call new name.
11734         * NEWS: Mention this.
11735
11736 2009-09-03  Eric Blake  <ebb9@byu.net>
11737
11738         faccessat: compile replacement
11739         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11740         needed.
11741
11742         fts: fix compilation error
11743         * lib/fts.c (includes): Re-add "openat.h", for
11744         openat_needs_fchdir.
11745
11746         faccessat: new module
11747         * modules/faccessat: New file.
11748         * lib/faccessat.c: Likewise.
11749         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11751         * modules/unistd (Makefile.am): Use it.
11752         * lib/unistd.in.h (faccessat): Declare it.
11753         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11754         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11755         * MODULES.html.sh (File system functions): Mention it.
11756         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11757         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11758
11759         euidaccess: prefer POSIX over non-standard implementation
11760         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11761         * lib/euidaccess.c (euidaccess): Use it if available.
11762
11763         openat: make template easier to use
11764         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11765         AT_FUNC_F2 to be undefined.
11766         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11767         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11768         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11769         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11770         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11771         Likewise.
11772         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11773         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11774         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11775         Likewise.
11776
11777         openat: declare in POSIX headers
11778         * NEWS: Mention this.
11779         * modules/openat (configure.ac): Declare witnesses.
11780         (Depends-on): Add fcntl-h, sys_stat, unistd.
11781         (Include): Mention correct headers.
11782         * modules/fcntl-h (Depends-on): Add link-warning.
11783         (Files): Add openat.m4.
11784         (Makefile.am): Substitute witnesses.
11785         * modules/sys_stat (Files, Makefile.am): Likewise.
11786         * modules/unistd (Files, Makefile.am): Likewise.
11787         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11788         (gl_OPENAT_DEFAULTS): New macro.
11789         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11791         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11792         (SYS_STAT_H): Remove unused variable.
11793         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11794         * lib/fcntl--.h (includes): Remove unneeded header.
11795         * lib/openat-safer.c (includes): Likewise.
11796         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11797         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11798         appropriate headers.
11799         (__OPENAT_PREFIX): Delete.
11800         * lib/fcntl.in.h (openat): Provide declaration.
11801         (AT_FDCWD): Fix Solaris bug.
11802         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11803         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11804         * lib/fchmodat.c (includes):  Adjust to find declaration.
11805         * lib/fchownat.c (includes): Likewise.
11806         * lib/mkdirat.c (includes): Likewise.
11807         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11808         still visible.
11809
11810 2009-09-02  Eric Blake  <ebb9@byu.net>
11811
11812         errno: use consistently
11813         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11814         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11815         * lib/canonicalize.c (ELOOP): Likewise.
11816         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11817         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11818         * lib/lchown.c (EOPNOTSUPP): Likewise.
11819         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11820         * lib/savewd.c (ESTALE): Likewise.
11821         * lib/settime.c (ENOSYS): Likewise.
11822         * lib/utimens.c (ENOSYS): Likewise.
11823         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11824         * lib/chdir-safer.c (ELOOP): Likewise.
11825         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11826         * modules/c-stack (Depends-on): Add errno.
11827         * modules/canonicalize (Depends-on): Likewise.
11828         * modules/chdir-safer (Depends-on): Likewise.
11829         * modules/fdopendir (Depends-on): Likewise.
11830         * modules/inet_ntop (Depends-on): Likewise.
11831         * modules/inet_pton (Depends-on): Likewise.
11832         * modules/lchown (Depends-on): Likewise.
11833         * modules/openat (Depends-on): Likewise.
11834         * modules/savewd (Depends-on): Likewise.
11835         * modules/settime (Depends-on): Likewise.
11836         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11837
11838         fts: avoid leaking fds
11839         * modules/fts (Depends-on): Add cloexec.
11840         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11841         flag.
11842
11843         fts: make directory fds more robust
11844         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11845         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11846
11847         backupfile, chdir-long, fts, savedir: make safer
11848         * lib/backupfile.c (includes): Use "dirent--.h", since
11849         numbered_backup can write to stderr during readdir.
11850         * lib/savedir.c (includes): Likewise.
11851         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11852         emulation can write to stderr on failure.
11853         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11854         * lib/getcwd.c: Document why opendir_safer is unused.
11855         * lib/glob.c: Likewise.
11856         * lib/scandir.c: Likewise.
11857         * lib/openat-proc.c: Likewise, for open_safer.
11858         * modules/backupfile (Depends-on): Add dirent-safer.
11859         * modules/savedir (Depends-on): Likewise.
11860         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11861         * modules/chdir-long (Depends-on): Add openat-safer.
11862
11863         openat-safer: new module
11864         * modules/openat-safer: New file.
11865         * lib/openat-safer.c: Likewise.
11866         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11867         * lib/fcntl-safer.h (openat_safer): Declare.
11868         * lib/fcntl--.h (openat): Override.
11869         * MODULES.html.sh (File descriptor based I/O): Mention it.
11870         * lib/openat.h: Add double-inclusion guards.
11871         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11872         "fcntl--.h", so we can implement openat.
11873         * modules/openat-safer-tests: New test.
11874         * tests/test-openat-safer.c: New file.
11875
11876         dirent-safer: new module
11877         * modules/dirent-safer: New file.
11878         * lib/dirent--.h: Likewise.
11879         * lib/dirent-safer.h: Likewise.
11880         * lib/opendir-safer.c: Likewise.
11881         * m4/dirent-safer.m4: Likewise.
11882         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11883         * modules/dirent-safer-tests: New test.
11884         * tests/test-dirent-safer.c: New file.
11885         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11886
11887         fdopendir: optimize on mingw
11888         * lib/unistd.in.h (_gl_directory_name): New prototype.
11889         * lib/fchdir.c (_gl_directory_name): Implement it.
11890         (fchdir): Use it to simplify implementation.
11891         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11892         fchdir, when available, to avoid calling [f]chdir().
11893
11894         fdopendir: split into its own module
11895         * lib/openat.c (fdopendir): Move...
11896         * lib/fdopendir.c: ...into new file.
11897         * modules/fdopendir: New module.
11898         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11899         * modules/openat (Depends-on): Add fdopendir.
11900         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11901         fdopendir here.
11902         * modules/savedir (Depends-on): Only need fdopendir, not full
11903         openat.
11904         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11905         * lib/openat.h (fdopendir): Drop prototype.
11906         * lib/dirent.in.h (fdopendir): Provide prototype.
11907         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11908         * modules/dirent (Makefile.am): Substitute them.
11909         * MODULES.html.sh (File system functions): Mention it.
11910         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11911         * modules/fdopendir-tests: New file.
11912         * tests/test-fdopendir.c: Likewise.
11913
11914         fchdir: use more consistent macro convention
11915         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11916         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11917         REPLACE_FCHDIR, rather than relying on config.h macros.
11918         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11919         inside a single make-time REPLACE_FCHDIR block, rather than using
11920         the config.h FCHDIR_REPLACEMENT.
11921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11922         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11923         Manage fstat replacement.
11924         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11925         REPLACE_FCHDIR.
11926         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11927         (Makefile.am): Substitute REPLACE_FCHDIR.
11928         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11929         FCHDIR_REPLACEMENT.
11930         * lib/dup-safer.c (dup_safer): Likewise.
11931         * lib/dup2.c (rpl_dup2): Likewise.
11932         * lib/dup3.c (rpl_dup3): Likewise.
11933         * lib/open.c (rpl_open): Likewise.
11934
11935         fchdir: simplify error handling, and support dup3
11936         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11937         stdbool, malloc-posix, realloc-posix.
11938         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11939         (ensure_dirs_slot): Return false on allocation failure.
11940         (rpl_dup2): Delete.
11941         (_gl_register_dup): New function.
11942         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11943         (_gl_register_fd): Close fd on allocation failure.
11944         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11945         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11946         prototype.
11947         (rpl_dup2_fchdir): Delete prototype.
11948         * lib/open.c (open): Update caller.
11949         * lib/dup2.c (dup2): Track fchdir metadata.
11950         * lib/dup3.c (dup3): Likewise.
11951         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11953
11954 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11955
11956         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11957         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11958         don't pass arguments to AC_OUTPUT.
11959
11960 2009-09-02  Bruno Haible  <bruno@clisp.org>
11961
11962         * modules/mkdtemp (License): Relicense under LGPLv2+.
11963         Reported by Paolo Bonzini.
11964
11965 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11966
11967         Replace uses of obsolete autoconf macros in Jim's modules.
11968         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11969         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11970         can evoke a warning from autoconf when run with -Wobsolete
11971         enabled.  They were declared obsolete for good reasons (see
11972         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11973         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11974         should not continue using the deprecated macros.
11975         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11976         obsolete Autoconf macros with modern counterparts.
11977         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11978         * m4/dos.m4 (gl_AC_DOS): Likewise.
11979         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11980         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11981         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11982         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11983         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11984         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11985         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11986         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11987         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11988         Likewise.
11989         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11990         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11991         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11992         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11993         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11994         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11995
11996 2009-09-01  Eric Blake  <ebb9@byu.net>
11997
11998         fchdir: fix off-by-one bug in previous patch
11999         * lib/fchdir.c (rpl_fstat): Use correct bounds.
12000         (_gl_unregister_fd): Delete useless if.
12001
12002 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
12003
12004         maint.mk: sort the list of syntax-check rules
12005         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
12006         easier to get a sense of progress when the rules are run sequentially
12007         and take a long time.
12008
12009 2009-09-01  Simon Josefsson  <simon@josefsson.org>
12010
12011         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
12012         * modules/netinet_in: Likewise.
12013         * modules/sys_file: Likewise.
12014         * modules/sys_ioctl: Likewise.
12015         * modules/sys_select: Likewise.
12016         * modules/sys_socket: Likewise.
12017         * modules/sys_stat: Likewise.
12018         * modules/sys_time: Likewise.
12019         * modules/sys_times: Likewise.
12020         * modules/sys_utsname: Likewise.
12021         * modules/sys_wait: Likewise.
12022
12023 2009-09-01  Jim Meyering  <meyering@redhat.com>
12024
12025         fts: help ensure that return values are not ignored
12026         * lib/fts_.h (__GNUC_PREREQ): Define.
12027         (__attribute_warn_unused_result__): Define.
12028         (fts_children, fts_close, fts_open, fts_read): Declare with
12029         __attribute_warn_unused_result__.
12030
12031         fts: fts_close now fails also when closing a dir file descriptor fails
12032         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
12033         and propagate to caller, along with errno.
12034
12035         announce-gen: correct formatting in --help output
12036         * build-aux/announce-gen (usage): Move the one-line description in
12037         --help output "up", to where it belongs, just after Usage:.
12038
12039 2009-08-31  Eric Blake  <ebb9@byu.net>
12040
12041         fchdir: port to mingw
12042         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
12043         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
12044         opened, then use a substitute.
12045         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
12046         replacement.
12047         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
12048         (_gl_register_fd): No need to check stat if open already filters
12049         all directories.
12050         (fchdir): Fix error condition to match POSIX.
12051         * modules/fchdir (Depends-on): Add sys_stat.
12052         * doc/posix-functions/open.texi (open): Document the limitation.
12053         * modules/fchdir-tests: New file.
12054         * tests/test-fchdir.c: Likewise.
12055
12056         canonicalize: allow cross-testing from cygwin to mingw
12057         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
12058         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
12059         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
12060         Likewise.
12061         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
12062         target does not support symlinks.
12063         * tests/test-canonicalize-lgpl.sh: Likewise.
12064
12065         chown: avoid compilation warning on mingw
12066         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
12067         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
12068         mingw.
12069         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
12070         * modules/chown (Depends-on): Add errno.
12071
12072 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12073
12074         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
12075         command.
12076
12077 2009-08-31  Jim Meyering  <meyering@redhat.com>
12078
12079         canonicalize: remove useless initialization
12080         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
12081         initialization of local, "end".
12082
12083 2009-08-30  Bruno Haible  <bruno@clisp.org>
12084
12085         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
12086         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
12087         ENOSYS.
12088
12089 2009-08-30  Bruno Haible  <bruno@clisp.org>
12090
12091         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
12092         /usr/xpg4/bin/tr when it exists.
12093         * tests/test-pipe-filter-gi1.sh: Likewise.
12094
12095 2009-08-30  Bruno Haible  <bruno@clisp.org>
12096
12097         Work around deficient /usr/bin/id program on Solaris.
12098         * tests/test-file-has-acl.sh (ID): New variable.
12099         * tests/test-set-mode-acl.sh (ID): Likewise.
12100         * tests/test-copy-acl.sh (ID): Likewise.
12101         * tests/test-copy-file.sh (ID): Likewise.
12102
12103 2009-08-30  Bruno Haible  <bruno@clisp.org>
12104
12105         New module 'xstriconveh'.
12106         * lib/xstriconveh.h: New file.
12107         * lib/xstriconveh.c: New file.
12108         * modules/xstriconveh: New file.
12109
12110 2009-08-30  Bruno Haible  <bruno@clisp.org>
12111
12112         Make it easier to use mem_cd_iconveh.
12113         * lib/striconveh.h (iconveh_t): New type.
12114         (iconveh_open, iconveh_close): New declarations.
12115         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12116         with a single 'const iconveh_t *' argument.
12117         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
12118         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12119         with a single 'const iconveh_t *' argument.
12120         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
12121         * tests/test-striconveh.c (main): Update.
12122         * NEWS: Mention the change.
12123
12124 2009-08-30  Bruno Haible  <bruno@clisp.org>
12125
12126         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
12127         problem.
12128
12129 2009-08-30  Bruno Haible  <bruno@clisp.org>
12130
12131         Work around iconv_open problem on Solaris.
12132         * lib/iconv_open-solaris.gperf: New file.
12133         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
12134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
12135         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
12136         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
12137         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
12138         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
12139
12140 2009-08-29  Jim Meyering  <meyering@redhat.com>
12141
12142         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
12143         * top/maint.mk (cvs-check): Remove target; it was just an alias
12144         to the better-named vc-diff-check.
12145         (maintainer-distcheck): Remove rule.  It was used only from
12146         the (alpha/beta/major) target, and all of its commands but one
12147         were coreutils-specific.
12148         (vc-dist): Remove rule.
12149         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
12150         Run vc-diff-check, not vc-dist.
12151         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
12152
12153 2009-08-27  Bruno Haible  <bruno@clisp.org>
12154
12155         * tests/test-bitrotate.c (main): Remove test that uses a shift count
12156         of 0.
12157
12158 2009-08-27  Bruno Haible  <bruno@clisp.org>
12159
12160         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
12161         compilers.
12162         * doc/func.texi: Document the SunPRO C bug.
12163
12164 2009-08-27  Bruno Haible  <bruno@clisp.org>
12165
12166         Fix link error on Solaris.
12167         * tests/test-parse-duration.c (xstrdup): Remove function.
12168
12169 2009-08-26  Pádraig Brady  <P@draigbrady.com>
12170
12171         ignore-value: handle pointer types, too
12172         * lib/ignore-value.h (__attribute__): Remove definition.
12173         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
12174         of a more concise and more-often effective "(void) i" statement.
12175         (ignore_ptr): New function to suppress warnings from functions that
12176         return pointers, and to make it explicit that one function doesn't
12177         handle all cases.
12178
12179 2009-08-25  Bruno Haible  <bruno@clisp.org>
12180
12181         dup2: work around a Linux bug.
12182         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
12183         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
12184         * doc/posix-functions/dup2.texi: Mention the Linux bug.
12185         Reported by Simon Josefsson.
12186
12187 2009-08-25  Jim Meyering  <meyering@redhat.com>
12188
12189         libguestfs uses gnulib
12190         * users.txt: Add libguestfs.
12191
12192 2009-08-24  Eric Blake  <ebb9@byu.net>
12193
12194         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
12195         * lib/pipe2.c (includes): Add binary-io.h.
12196         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
12197
12198 2009-08-24  Bruno Haible  <bruno@clisp.org>
12199
12200         Tolerate declared but missing accept4 syscall.
12201         * lib/accept4.c (accept4): Invoke original accept4 function first, if
12202         available.
12203         * lib/sys_socket.in.h (accept4): If the function is already present,
12204         override it.
12205         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
12206         * modules/accept4 (Makefile.am): Compile accept4.c always.
12207         Reported by Paolo Bonzini and Eric Blake.
12208
12209 2009-08-23  Bruno Haible  <bruno@clisp.org>
12210
12211         New module 'accept4'.
12212         * lib/sys_socket.in.h (accept4): New declaration.
12213         * lib/accept4.c: New file.
12214         * m4/accept4.m4: New file.
12215         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12216         GNULIB_ACCEPT4, HAVE_ACCEPT4.
12217         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
12218         HAVE_ACCEPT4.
12219         * modules/accept4: New file.
12220         * doc/glibc-functions/accept4.texi: Mention the new module.
12221
12222 2009-08-24  Jim Meyering  <meyering@redhat.com>
12223
12224         progname: also set global program_invocation_name, when possible
12225         Before this change, a libtool-enabled program that calls glibc's
12226         error function would report the program name as
12227         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
12228         * modules/progname (configure.ac): Check for a declaration of
12229         program_invocation_name.
12230         * lib/progname.c:  Include <errno.h>.
12231         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
12232         Set program_invocation_name.
12233
12234 2009-08-23  Bruno Haible  <bruno@clisp.org>
12235
12236         * lib/dup3.c: Include <string.h>.
12237
12238 2009-08-23  Bruno Haible  <bruno@clisp.org>
12239
12240         * lib/dup3.c (dup3): Test only once whether the system actually exists.
12241         * lib/pipe2.c (pipe2): Likewise.
12242         Suggested by Eric Blake.
12243
12244 2009-08-23  Bruno Haible  <bruno@clisp.org>
12245
12246         Tolerate declared but missing dup3 syscall.
12247         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
12248         * lib/unistd.in.h (dup3): If the function is already present,
12249         override it.
12250         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
12251         * modules/dup3 (Makefile.am): Compile dup3.c always.
12252         Reported by Paolo Bonzini.
12253
12254 2009-08-23  Bruno Haible  <bruno@clisp.org>
12255
12256         Tolerate declared but missing pipe2 syscall.
12257         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
12258         available.
12259         * lib/unistd.in.h (pipe2): If the function is already present,
12260         override it.
12261         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
12262         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
12263         Reported by Paolo Bonzini.
12264
12265 2009-08-23  Bruno Haible  <bruno@clisp.org>
12266
12267         * lib/pipe2.c (pipe2): Move #ifs inside function.
12268
12269 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12270
12271         quotearg: document limitations of quote_these_too
12272         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
12273         those limitations are created.
12274         * lib/quotearg.h (set_char_quoting): Document that digits and
12275         letters that are special after backslash are not permitted.
12276         (quotearg_char): Cross-reference set_char_quoting documentation.
12277
12278 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
12279
12280         quotearg: implement custom_quoting_style
12281         * lib/quotearg.c: (struct quoting_options): Add left_quote and
12282         right_quote fields.
12283         (set_custom_quoting): New public function.
12284         (quotearg_buffer_restyled): Add left_quote and right_quote
12285         arguments, handle them very much like locale quoting, and update
12286         all uses.
12287         (quotearg_n_custom): New public function.
12288         (quotearg_n_custom_mem): New public function.
12289         (quotearg_custom): New public function.
12290         (quotearg_custom_mem): New public function.
12291         * lib/quotearg.h: Prototype and document new public functions.
12292         (enum quoting_style): For escape_quoting_style and
12293         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
12294         ignored even though they're otherwise like c_quoting_style.
12295         Add custom_quoting_style member and document with comparison to
12296         clocale_quoting_style.
12297         * tests/test-quotearg.c (custom_quotes): New array.
12298         (custom_results): New array.
12299         (main): Extend to test custom quoting.
12300
12301 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12302
12303         quotearg: fix right quote escaping when it's in quote_these_too
12304         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
12305         quote, be sure to prepend only one backslash.
12306         * tests/test-quotearg.c (use_quote_double_quotes): New function.
12307         (main): Test it.
12308
12309 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12310
12311         quotearg-tests: test escaping of embedded locale quotes
12312         * tests/test-quotearg.c (struct result_strings): Add member for
12313         new input.
12314         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12315         (inputs): Add new input.
12316         (results_g): Add expected results.
12317         (flag_results): Likewise.
12318         (locale_results): Likewise.
12319         (compare_strings): Check those.
12320
12321 2009-08-23  Bruno Haible  <bruno@clisp.org>
12322
12323         Tests for module 'dup3'.
12324         * modules/dup3-tests: New file.
12325         * tests/test-dup3.c: New file.
12326
12327         New module 'dup3'.
12328         * lib/unistd.in.h (dup3): New declaration.
12329         * lib/dup3.c: New file.
12330         * m4/dup3.m4: New file.
12331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12332         HAVE_DUP3.
12333         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12334         * modules/dup3: New file.
12335         * doc/glibc-functions/dup3.texi: Mention the new module.
12336
12337 2009-08-23  Bruno Haible  <bruno@clisp.org>
12338
12339         Tweak the dup2 test.
12340         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12341         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12342         the test file is still empty. Fix argument order of lseek.
12343
12344 2009-08-23  Bruno Haible  <bruno@clisp.org>
12345
12346         Avoid test link errors when the modules getopt-gnu, gettext are used.
12347         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12349
12350 2009-08-23  Bruno Haible  <bruno@clisp.org>
12351
12352         Fix getdtablesize() on mingw.
12353         * lib/getdtablesize.c (getdtablesize): Implement differently.
12354         * lib/unistd.in.h (getdtablesize): Improve comment.
12355
12356 2009-08-23  Bruno Haible  <bruno@clisp.org>
12357
12358         New module 'mkostemp'.
12359         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12360         * lib/stdlib.in.h (mksotemp): New declaration.
12361         * lib/mkostemp.c: New file, from glibc with modifications.
12362         * lib/tempname.h (GT_FILE): Remove outdated comment.
12363         (gen_tempname): Add flags argument.
12364         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12365         (__GT_FILE): Map to 1.
12366         (small_open, large_open): Remove macros.
12367         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12368         * lib/mkstemp.c (mkstemp): Update.
12369         * lib/mkdtemp.c (mkdtemp): Likewise.
12370         * m4/mkostemp.m4: New file.
12371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12372         HAVE_MKOSTEMP.
12373         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12374         HAVE_MKOSTEMP.
12375         * modules/mkostemp: New file, based on modules/mkstemp.
12376         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12377         * NEWS: Mention the change.
12378
12379 2009-08-23  Bruno Haible  <bruno@clisp.org>
12380
12381         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12382         Reported by Eric Blake.
12383
12384 2009-08-23  Bruno Haible  <bruno@clisp.org>
12385
12386         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12387         Reported by Eric Blake.
12388
12389 2009-08-23  Bruno Haible  <bruno@clisp.org>
12390
12391         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12392         * modules/pipe2 (Depends-on): Likewise.
12393
12394 2009-08-23  Eric Blake  <ebb9@byu.net>
12395
12396         fcntl-h: add O_TTY_INIT support
12397         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12398         * tests/test-fcntl-h.c (o): Test it.
12399         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12400
12401         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12402         * modules/fcntl: Move <fcntl.h> header replacement...
12403         * modules/fcntl-h: ...to new name, so as not to collide with
12404         like-named function.
12405         * tests/test-fcntl.c: Rename...
12406         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12407         * modules/fcntl-tests: Rename...
12408         * modules/fcntl-h-tests: ...to this.  Update test file name.
12409         * modules/chdir-long (Depends-on): Update clients.
12410         * modules/chdir-safer (Depends-on): Likewise.
12411         * modules/fcntl-safer (Depends-on): Likewise.
12412         * modules/fts (Depends-on): Likewise.
12413         * modules/mkancesdirs (Depends-on): Likewise.
12414         * modules/mkdir-p (Depends-on): Likewise.
12415         * modules/open (Depends-on): Likewise.
12416         * modules/savewd (Depends-on): Likewise.
12417         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12418         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12419
12420 2009-08-22  Bruno Haible  <bruno@clisp.org>
12421
12422         * modules/binary-io (License): Relicense under LGPL.
12423         * modules/pipe2 (License): Likewise.
12424
12425 2009-08-22  Bruno Haible  <bruno@clisp.org>
12426
12427         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12428         return value.
12429         * lib/pipe-filter-gi.c (filter_init): Likewise.
12430         Reported by Eric Blake.
12431
12432 2009-08-22  Bruno Haible  <bruno@clisp.org>
12433
12434         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12435         * modules/pipe (Depends-on): Add pipe2.
12436
12437 2009-08-22  Bruno Haible  <bruno@clisp.org>
12438
12439         Tests for module 'pipe2'.
12440         * modules/pipe2-tests: New file.
12441         * tests/test-pipe2.c: New file.
12442
12443         New module 'pipe2'.
12444         * lib/unistd.in.h (pipe2): New declaration.
12445         * lib/pipe2.c: New file.
12446         * m4/pipe2.m4: New file.
12447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12448         HAVE_PIPE2.
12449         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12450         * modules/pipe2: New file.
12451         * doc/glibc-functions/pipe2.texi: Mention the new module.
12452
12453 2009-08-22  Bruno Haible  <bruno@clisp.org>
12454
12455         Reference some new glibc functions.
12456         * doc/glibc-functions/accept4.texi: New file.
12457         * doc/glibc-functions/dup3.texi: New file.
12458         * doc/glibc-functions/mkostemp.texi: New file.
12459         * doc/glibc-functions/pipe2.texi: New file.
12460         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12461         (Glibc sys/socket.h): Refer to accept4.
12462         (Glibc unistd.h): Refer to dup3, pipe2.
12463         Reported by Eric Blake.
12464
12465 2009-08-22  Jim Meyering  <meyering@redhat.com>
12466             Bruno Haible  <bruno@clisp.org>
12467
12468         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12469         This makes it so packages using automake-1.11's silent-rules option
12470         can print e.g., a single "GEN    configmake.h" line, rather than
12471         the 30+ statements that perform the job.  If you want to see the
12472         actual commands, you can still run "make V=1".
12473         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12474         so that make output is abbreviated when those variables are defined
12475         appropriately.
12476         * modules/argz: Likewise.
12477         * modules/arpa_inet: Likewise.
12478         * modules/byteswap: Likewise.
12479         * modules/configmake: Likewise.
12480         * modules/dirent: Likewise.
12481         * modules/errno: Likewise.
12482         * modules/fcntl: Likewise.
12483         * modules/float: Likewise.
12484         * modules/fnmatch: Likewise.
12485         * modules/getopt-posix: Likewise.
12486         * modules/glob: Likewise.
12487         * modules/iconv_open: Likewise.
12488         * modules/inttypes: Likewise.
12489         * modules/localcharset: Likewise.
12490         * modules/locale: Likewise.
12491         * modules/math: Likewise.
12492         * modules/netdb: Likewise.
12493         * modules/netinet_in: Likewise.
12494         * modules/poll: Likewise.
12495         * modules/posix_spawnp-tests: Likewise.
12496         * modules/sched: Likewise.
12497         * modules/search: Likewise.
12498         * modules/selinux-h: Likewise.
12499         * modules/signal: Likewise.
12500         * modules/spawn: Likewise.
12501         * modules/stdarg: Likewise.
12502         * modules/stdbool: Likewise.
12503         * modules/stddef: Likewise.
12504         * modules/stdint: Likewise.
12505         * modules/stdio: Likewise.
12506         * modules/stdlib: Likewise.
12507         * modules/string: Likewise.
12508         * modules/strings: Likewise.
12509         * modules/sys_file: Likewise.
12510         * modules/sys_ioctl: Likewise.
12511         * modules/sys_select: Likewise.
12512         * modules/sys_socket: Likewise.
12513         * modules/sys_stat: Likewise.
12514         * modules/sys_time: Likewise.
12515         * modules/sys_times: Likewise.
12516         * modules/sys_utsname: Likewise.
12517         * modules/sys_wait: Likewise.
12518         * modules/sysexits: Likewise.
12519         * modules/time: Likewise.
12520         * modules/unistd: Likewise.
12521         * modules/wchar: Likewise.
12522         * modules/wctype: Likewise.
12523
12524 2009-08-22  Jim Meyering  <meyering@redhat.com>
12525
12526         announce-gen: detect write failure
12527         * build-aux/announce-gen: Add Coda at end.
12528         Remove equivalent-but-more-verbose block at top.
12529
12530 2009-08-19  Akim Demaille  <demaille@gostai.com>
12531
12532         bootstrap: --help to stdout.
12533         * bootstrap (usage): Don't send --help to stderr.
12534         Use a here doc instead of a long string.
12535
12536 2009-08-21  Eric Blake  <ebb9@byu.net>
12537
12538         test-popen-safer: split from test-popen
12539         * tests/test-popen.c (main): Move...
12540         * tests/test-popen.h: ...into new file.
12541         * tests/test-popen-safer2.c: New file.
12542         * modules/popen-tests (Files): Add test-popen.h.
12543         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12544         Suggested by Bruno Haible.
12545
12546         test-fcntl-safer: split from test-open
12547         * tests/test-open.c (main): Move...
12548         * tests/test-open.h: ...into new file.
12549         * tests/test-fcntl-safer.c: New file.
12550         * modules/open-tests (Files): Add test-open.h.
12551         * modules/fcntl-safer-tests: New file.
12552         Suggested by Bruno Haible.
12553
12554         test-fopen-safer: split from test-fopen
12555         * tests/test-fopen.c (main): Move...
12556         * tests/test-fopen.h: ...into new file.
12557         * tests/test-fopen-safer.c: New file.
12558         * modules/fopen-tests (Files): Add test-fopen.h.
12559         * modules/fopen-safer-tests: New file.
12560         Suggested by Bruno Haible.
12561
12562 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12563
12564         popen-safer: test O_CLOEXEC at run-time.
12565         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12566
12567 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12568
12569         fcntl: move more flags to the header
12570         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12571         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12572         * lib/fcntl.in.h: Do both things here.
12573
12574 2009-08-21  Jim Meyering  <meyering@redhat.com>
12575
12576         consistently remove $@-t before redirecting to it
12577         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12578         * modules/alloca-opt: Likewise.
12579         * modules/byteswap: Likewise.
12580         * modules/fnmatch: Likewise.
12581         * modules/getopt-posix: Likewise.
12582         * modules/glob: Likewise.
12583         * modules/poll: Likewise.
12584         * modules/posix_spawnp-tests: Likewise.
12585         * modules/sys_socket: Likewise.
12586         * modules/sysexits: Likewise.
12587
12588 2009-08-21  Eric Blake  <ebb9@byu.net>
12589
12590         popen: simplify access to original popen
12591         * lib/popen.c (rpl_popen): No need to worry about popen being a
12592         macro.
12593         Reported by Bruno Haible.
12594
12595 2009-08-20  Eric Blake  <ebb9@byu.net>
12596
12597         build: avoid some compiler warnings
12598         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12599         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12600         type.
12601         (new_exclude_segment, excluded_file_pattern_p)
12602         (excluded_file_name_p): Reduce scope.
12603         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12604         old-style declaration.
12605
12606 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12607
12608         * tests/test-exclude1.sh: Handle Windows EOL.
12609         * tests/test-exclude2.sh: Likewise.
12610         * tests/test-exclude3.sh: Likewise.
12611         * tests/test-exclude4.sh: Likewise.
12612         * tests/test-exclude5.sh: Likewise.
12613         * tests/test-exclude6.sh: Likewise.
12614         * tests/test-exclude7.sh: Likewise.
12615
12616 2009-08-19  Akim Demaille  <demaille@gostai.com>
12617
12618         bootstrap: find sha1sum when named gsha1sum.
12619         * bootstrap (find_tool): New.
12620         ($SHA1SUM): New.
12621         Use it.
12622
12623 2009-08-20  Jim Meyering  <meyering@redhat.com>
12624
12625         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12626         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12627         expression that converts "." in a file name to "\." in the resulting
12628         regexp.  Start with a dummy statement, so that prior shell variable
12629         definitions are expanded portably.  Reported by Simon Josefsson.
12630
12631 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12632
12633         Fix polling for writeability of a screen buffer.
12634         * lib/poll.c: Distinguish input and screen buffers for the
12635         Win32 implementation.
12636         * lib/select.c: Likewise.
12637
12638 2009-08-19  Eric Blake  <ebb9@byu.net>
12639
12640         popen-safer: prevent popen from clobbering std descriptors
12641         * modules/popen-safer: New file.
12642         * lib/popen-safer.c: Likewise.
12643         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12644         * lib/stdio--.h (popen): Provide override.
12645         * lib/stdio-safer.h (popen_safer): Provide declaration.
12646         * tests/test-popen.c (includes): Partially test this.
12647         * modules/popen-safer-tests: New file, for more tests.
12648         * tests/test-popen-safer.c: Likewise.
12649         * MODULES.html.sh (file stream based Input/Output): Mention it.
12650
12651         tests: test some of the *-safer modules
12652         * modules/fopen-safer (Depends-on): Add fopen.
12653         * modules/fcntl-safer (Depends-on): Add fcntl.
12654         * modules/stdlib-safer (Depends-on): Add stdlib.
12655         (configure.ac): Set indicator.
12656         * modules/unistd-safer (configure.ac): Likewise.
12657         * modules/tmpfile-safer (configure.ac): Likewise.
12658         (Depends-on): Add tmpfile.
12659         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12660         active.
12661         * tests/test-fopen.c (includes): Test safer versions when they are
12662         in use.
12663         * tests/test-open.c (includes): Likewise.
12664
12665         popen: fix cygwin 1.5 bug when stdin closed
12666         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12667         * modules/popen: New file.
12668         * modules/popen-tests: Likewise.
12669         * tests/test-popen.c: Likewise.
12670         * m4/popen.m4: Likewise.
12671         * lib/popen.c: Likewise.
12672         * lib/stdio.in.h (popen): New declaration.
12673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12674         * modules/stdio (Makefile.am): Likewise.
12675         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12676
12677 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12678
12679         maint.mk: give full control over update-copyright exclusions
12680         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12681         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12682         (update-copyright): Don't force inclusion of top-level
12683         ChangeLog.  Don't force exclusion of all COPYING files, but make
12684         them the default exclusion instead.
12685
12686 2009-08-16  Bruno Haible  <bruno@clisp.org>
12687
12688         Fix test failures on Solaris 10.
12689         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12690         tests when Solaris iconv() is used.
12691         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12692         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12693         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12694         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12695         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12696
12697 2009-08-16  Bruno Haible  <bruno@clisp.org>
12698
12699         Fix test failures on Solaris 10.
12700         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12701         'tr' program and pass it as first argument.
12702         * tests/test-pipe-filter-gi1.sh: Likewise.
12703         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12704         program as first argument.
12705         * tests/test-pipe-filter-gi1.c (main): Likewise.
12706
12707 2009-08-16  Eric Blake  <ebb9@byu.net>
12708
12709         fpurge: fix previous commits
12710         * modules/fpurge (Makefile.am): Make replacement conditional,
12711         partially reverting 2007-04-29 change; missed in previous
12712         attempt.
12713         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12714         is missing.
12715
12716 2009-08-16  Bruno Haible  <bruno@clisp.org>
12717
12718         Clarify fpurge's effect on the file position.
12719         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12720         * tests/test-fpurge.c (main): Make a second pass for checking the file
12721         position.
12722
12723 2009-08-16  Bruno Haible  <bruno@clisp.org>
12724
12725         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12726         declaration of fpurge is missing.
12727         * tests/test-fpurge.c (main): Check that the file has not more contents
12728         than expected. Close the file before removing it.
12729
12730 2009-08-15  Eric Blake  <ebb9@byu.net>
12731
12732         fpurge: don't wrap working cygwin implementation
12733         * lib/fpurge.c (fpurge): Fix comment typo.
12734         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12735         1.7 to avoid replacement.
12736         * tests/test-fpurge.c (main): Enhance test.
12737
12738 2009-08-15  Eric Blake  <ebb9@byu.net>
12739         and Jim Meyering  <meyering@redhat.com>
12740
12741         test-update-copyright: skip if perl is insufficient
12742         * tests/test-update-copyright.sh: Failure to run maintainer tool
12743         should not cause testsuite failure on cygwin 1.5.
12744
12745 2009-08-14  Eric Blake  <ebb9@byu.net>
12746
12747         doc: mention more functions added in cygwin 1.7.0
12748         * doc/posix-headers/limits.texi (limits.h): Update for recent
12749         cygwin additions.
12750         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12751         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12752         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12753         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12754         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12755
12756 2009-08-14  Eric Blake  <ebb9@byu.net>
12757
12758         maint.mk: simplify update-copyright rule
12759         * top/maint.mk (update-copyright-local): Delete, and document how
12760         to do it in cfg.mk instead.
12761         (update-copyright-exclude-regexp): Delete, and document how to do
12762         it in .x-update-copyright instead.
12763         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12764         exclude ChangeLog.
12765
12766 2009-08-14  Bruno Haible  <bruno@clisp.org>
12767
12768         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12769
12770 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12771
12772         maint.mk: support update-copyright-env
12773         * top/maint.mk (update-copyright-env): Define place-holder.
12774         (update-copyright): Expand $(update-copyright-env) before
12775         invoking update-copyright.
12776
12777 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12778
12779         update-copyright: implement forced reformatting
12780         * build-aux/update-copyright: Implement and document
12781         UPDATE_COPYRIGHT_FORCE.
12782         * tests/test-update-copyright.sh: Test it.
12783
12784 2009-08-14  Eric Blake  <ebb9@byu.net>
12785         and Bruno Haible  <bruno@clisp.org>
12786
12787         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12788         * tests/test-locale.c: Revert previous patch related to NULL.
12789         * tests/test-stdio.c: Likewise.
12790         * tests/test-stdlib.c: Likewise.
12791         * tests/test-string.c: Likewise.
12792         * tests/test-unistd.c: Likewise.
12793         * modules/time-tests (Depends-on): Add verify.
12794         * modules/wchar-tests (Depends-on): Likewise.
12795         * tests/test-time.c: Test for NULL compliance.
12796         * tests/test-wchar.c: Likewise.
12797         * modules/locale (Depends-on): Add stddef.
12798         * modules/stdio (Depends-on): Likewise.
12799         * modules/stdlib (Depends-on): Likewise.
12800         * modules/string (Depends-on): Likewise.
12801         * modules/time (Depends-on): Likewise.
12802         * modules/unistd (Depends-on): Likewise.
12803         * modules/wchar (Depends-on): Likewise.
12804         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12805         * lib/stdlib.in.h (includes): Likewise.
12806         * lib/string.in.h (includes): Likewise.
12807         * lib/time.in.h (includes): Likewise.
12808         * lib/unistd.in.h (includes): Likewise.
12809         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12810         replaced.
12811         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12812         * m4/stddef_h.m4: New file.
12813         * modules/stddef: Likewise.
12814         * lib/stddef.in.h: Likewise.
12815         * modules/stddef-tests: Likewise.
12816         * tests/test-stddef.c: Likewise.
12817         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12818         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12819         * doc/posix-headers/locale.texi (locale.h): Likewise.
12820         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12821         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12822         * doc/posix-headers/string.texi (string.h): Likewise.
12823         * doc/posix-headers/time.texi (time.h): Likewise.
12824         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12825         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12826
12827 2009-08-14  Eric Blake  <ebb9@byu.net>
12828
12829         doc: improve git diff of texinfo files
12830         * .gitattributes: Add rule for *.texi files, with hint on how to
12831         use it.
12832         Copied from m4, and based on a report by Bruno Haible.
12833
12834 2009-08-14  Bruno Haible  <bruno@clisp.org>
12835
12836         Disable multithread support by default on Cygwin 1.5.x for real.
12837         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12838
12839 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12840
12841         update-copyright: much ado about intervals
12842         * build-aux/update-copyright: Implement and document
12843         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12844         of copyright year intervals.
12845         Also, document UPDATE_COPYRIGHT_YEAR.
12846         * tests/test-update-copyright.sh: Test it.
12847
12848         update-copyright: convert 2-digit to 4-digit years
12849         * build-aux/update-copyright: Implement and document.
12850         * tests/test-update-copyright.sh: Update.
12851
12852 2009-08-14  Jim Meyering  <meyering@redhat.com>
12853
12854         test-exclude: avoid coreutils "make check" failure
12855         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12856         just as in test-argmatch.c.
12857
12858 2009-08-13  Eric Blake  <ebb9@byu.net>
12859
12860         test-dup2: fix bad assumption
12861         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12862         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12863
12864         test-version-etc: fix CRLF portability issue
12865         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12866         recognize \r.
12867         * tests/test-argp-version-etc-1.sh: Likewise.
12868
12869         getopt: update client modules
12870         * modules/argp (Depends-on): Use getopt-gnu.
12871         * modules/git-merge-changelog (Depends-on): Likewise.
12872         * modules/long-options (Depends-on): Likewise.
12873         * modules/xstrtol (Depends-on): Likewise.
12874
12875 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12876
12877         * tests/test-version-etc.sh: Don't fail on different
12878         project/version.  Don't fail on CRLF differences.  Rewrite to use
12879         multiple -e instead of multiple sed forks, suggested by Eric Blake
12880         <ebb9@byu.net>.
12881         * tests/test-argp-version-etc-1.sh: Likewise.
12882
12883 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12884
12885         * tests/test-version-etc.sh: Don't fail on different
12886         project/version.
12887
12888 2009-08-12  Bruno Haible  <bruno@clisp.org>
12889
12890         Tests for modules 'getopt-posix', 'getopt-gnu'.
12891         * modules/getopt-posix-tests: New file.
12892         * tests/test-getopt.c: New file.
12893         * tests/test-getopt.h: New file.
12894         * tests/test-getopt_long.h: New file.
12895
12896         New modules 'getopt-posix', 'getopt-gnu'.
12897         * modules/getopt-gnu: New file, renamed from modules/getopt.
12898         * modules/getopt-posix: New file.
12899         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12900         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12901         (gl_GETOPT): Remove macro.
12902         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12903         Disable the test against BSD systems that declare optreset. Test
12904         against mingw bug. Test against lack of support of optional arguments
12905         on many platforms.
12906         * doc/glibc-headers/getopt.texi: Update module name and list of
12907         relevant platforms.
12908         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12909         'getopt-gnu' and more portability problems.
12910         * NEWS: Mention the changes.
12911
12912 2009-08-12  Bruno Haible  <bruno@clisp.org>
12913
12914         Ensure that optarg etc. get declared by <unistd.h>.
12915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12916         AC_USE_SYSTEM_EXTENSIONS.
12917         * modules/getopt (Depends-on): Add 'extensions'.
12918
12919 2009-08-12  Bruno Haible  <bruno@clisp.org>
12920
12921         Avoid test link errors.
12922         * modules/pipe-filter-ii-tests (Makefile.am): Define
12923         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12924         * modules/pipe-filter-gi-tests (Makefile.am): Define
12925         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12927
12928 2009-08-12  Bruno Haible  <bruno@clisp.org>
12929
12930         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12931         gl_GETOPT_SUBSTITUTE before.
12932         (gl_GETOPT): Use it.
12933         * m4/argp.m4 (gl_ARGP): Update.
12934         Reported by Sergey Poznyakoff.
12935
12936         * m4/getopt.m4: Reorder macros.
12937         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12938         (gl_GETOPT_SUBSTITUTE): Remove macro.
12939
12940 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12941
12942         Minor improvement in gitlog-to-changelog
12943
12944         * build-aux/gitlog-to-changelog: New option `--format' makes
12945         output format string configurable.
12946
12947 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12948
12949         Optimize exclude: use hash tables for non-wildcard patterns.
12950
12951         * lib/exclude.c: Include hash.h and mbuiter.h
12952         (struct exclude_pattern, exclude_segment): New data types.
12953         (struct exclude): Rewrite.
12954         (fnmatch_pattern_has_wildcards): New function.
12955         (new_exclude_segment, free_exclude_segment): New functions.
12956         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12957         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12958         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12959         * modules/exclude: Depend on hash and mbuiter.
12960
12961         * modules/exclude-tests: New file.
12962         * tests/test-exclude.c: New file.
12963         * tests/test-exclude1.sh: New file.
12964         * tests/test-exclude2.sh: New file.
12965         * tests/test-exclude3.sh: New file.
12966         * tests/test-exclude4.sh: New file.
12967         * tests/test-exclude5.sh: New file.
12968         * tests/test-exclude6.sh: New file.
12969         * tests/test-exclude7.sh: New file.
12970
12971 2009-08-12  Bruno Haible  <bruno@clisp.org>
12972
12973         Ensure that getopt() gets declared by <unistd.h>.
12974         * lib/unistd.in.h: Conditionally include getopt.h.
12975         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12976         Set GNULIB_UNISTD_H_GETOPT.
12977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12978         GNULIB_UNISTD_H_GETOPT.
12979         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12980
12981 2009-08-12  Bruno Haible  <bruno@clisp.org>
12982
12983         Clarify logic.
12984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12985         gl_replace_getopt instead of GETOPT_H.
12986
12987 2009-08-12  Bruno Haible  <bruno@clisp.org>
12988
12989         * m4/getopt.m4: Add comments.
12990
12991 2009-08-12  Bruno Haible  <bruno@clisp.org>
12992
12993         Disable multithread support by default on Cygwin 1.5.x.
12994         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12995         set gl_use_threads=no if not specified otherwise.
12996
12997 2009-08-11  Bruno Haible  <bruno@clisp.org>
12998
12999         Avoid compilation error on NetBSD 5.0.
13000         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
13001         * tests/test-stdio.c: Likewise.
13002         * tests/test-stdlib.c: Likewise.
13003         * tests/test-string.c: Likewise.
13004         * tests/test-unistd.c: Likewise.
13005         Reported by Greg Troxel <gdt@ir.bbn.com>
13006         at <https://savannah.gnu.org/support/?106973>.
13007
13008 2009-08-11  Bruno Haible  <bruno@clisp.org>
13009
13010         * modules/dup2-tests (Depends-on): Remove close.
13011
13012         Undo 2009-07-19 commit.
13013         * modules/acl-tests (Depends-on): Remove close.
13014         * modules/binary-io-tests (Depends-on): Likewise.
13015         * modules/closein-tests (Depends-on): Likewise.
13016         * modules/flock-tests (Depends-on): Likewise.
13017         * modules/fsync-tests (Depends-on): Likewise.
13018         * modules/lseek-tests (Depends-on): Likewise.
13019         * modules/pipe-tests (Depends-on): Likewise.
13020         * modules/posix_spawn-tests (Depends-on): Likewise.
13021         * modules/posix_spawnp-tests (Depends-on): Likewise.
13022         * modules/stat-time-tests (Depends-on): Likewise.
13023         * modules/yesno-tests (Depends-on): Likewise.
13024
13025 2009-08-10  Bruno Haible  <bruno@clisp.org>
13026
13027         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
13028
13029 2009-08-10  Bruno Haible  <bruno@clisp.org>
13030
13031         Fix a gcc warning.
13032         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
13033
13034 2009-08-10  Bruno Haible  <bruno@clisp.org>
13035
13036         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
13037         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
13038         not only the first time.
13039         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
13040         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
13041         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
13042         is 1, not only the the first time.
13043
13044 2009-08-10  Bruno Haible  <bruno@clisp.org>
13045
13046         Make it possible to use module 'gethostname' without module 'close'.
13047         * lib/unistd.in.h (close): Evoke a link error only if
13048         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
13049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13050         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13051         * modules/unistd (Makefile.am): Substitute
13052         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13053         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
13054         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
13055         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
13056         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13057         * modules/sys_ioctl (Makefile.am): Substitute
13058         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13059         * modules/socket (configure.ac): On native Windows, set
13060         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
13061         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
13062         Reported by Sam Steingold <sds@gnu.org>.
13063
13064 2009-08-10  Bruno Haible  <bruno@clisp.org>
13065
13066         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
13067         * modules/ioctl (configure.ac): Likewise.
13068
13069 2009-08-10  Bruno Haible  <bruno@clisp.org>
13070
13071         Avoid collision between gnulib wrapper and libintl wrapper.
13072         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
13073         already defined in intl/printf.c.
13074         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
13075         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
13076
13077 2009-08-09  Bruno Haible  <bruno@clisp.org>
13078
13079         Make <sys/select.h> really self-contained, also on Solaris 10.
13080         * lib/sys_select.in.h: Include <string.h>.
13081         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
13082         Solaris 10 problem.
13083         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
13084         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
13085         Reported by Jim Meyering.
13086
13087 2009-08-09  Bruno Haible  <bruno@clisp.org>
13088
13089         Avoid warnings from 'aclocal' that are due to a use of macro name
13090         AM_XGETTEXT_OPTION that is not defined in automake.
13091         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
13092         automake.
13093         * modules/error (configure.ac): Likewise.
13094         * modules/propername (configure.ac): Likewise.
13095         * modules/vasprintf (configure.ac): Likewise.
13096         * modules/verror (configure.ac): Likewise.
13097         * modules/xprintf (configure.ac): Likewise.
13098         * modules/xvasprintf (configure.ac): Likewise.
13099
13100 2009-08-08  Bruno Haible  <bruno@clisp.org>
13101
13102         Avoid compilation error in C++ mode.
13103         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
13104         Reported by Sam Steingold <sds@gnu.org>.
13105
13106 2009-08-08  Bruno Haible  <bruno@clisp.org>
13107
13108         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
13109         for the various Unix platforms.
13110         * doc/posix-headers/limits.texi: Update platforms list regarding
13111         HOST_NAME_MAX.
13112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13113
13114 2009-08-07  Jim Meyering  <meyering@redhat.com>
13115
13116         selinux-at: fix typo in a comment
13117         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
13118         Spotted by Paolo Bonzini.
13119
13120         selinux-at: remove redundant m4 code, add documentation
13121         * modules/selinux-at (configure.ac): Remove redundant code.
13122         LIB_SELINUX is already set via the dependent module, selinux-h.
13123         (Include): Add quotes around selinux-at.h.
13124         * lib/selinux-at.h: Add documentation.
13125         Reported by Bruno Haible in
13126         http://marc.info/?l=gnulib-bug&m=124958988300749
13127
13128 2009-08-07  Bruno Haible  <bruno@clisp.org>
13129
13130         Avoid link error on MacOS X 10.3 and 10.4.
13131         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
13132         on non-ELF systems.
13133         * lib/argp-pv.c (argp_program_version): Likewise.
13134         Reported by Simon Josefsson.
13135
13136 2009-08-07  Simon Josefsson  <simon@josefsson.org>
13137
13138         * tests/test-version-etc.sh: Use $EXEEXT.
13139
13140 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
13141
13142         update-copyright: update documentation to point to maint.mk
13143         * build-aux/update-copyright: Here.
13144
13145 2009-08-06  Jim Meyering  <meyering@redhat.com>
13146
13147         maint.mk: support update-copyright-local
13148         * top/maint.mk (update-copyright-local): Define place-holder.
13149         (update-copyright): Depend on $(update-copyright-local).
13150
13151 2009-08-06  Jim Meyering  <meyering@redhat.com>
13152
13153         selinux-at: new module
13154         Initially written for coreutils, this module will soon be
13155         used by findutils, too.
13156         * MODULES.html.sh [Misc]: Add selinux-at.
13157         * lib/selinux-at.h: New file, from coreutils.
13158         * lib/selinux-at.c: Likewise.
13159         * modules/selinux-at: Likewise.
13160         (License): Change from LGPL to GPL, since it depends
13161         on the GPL'd openat module.
13162
13163         doc: update README
13164         * README: Remove references to cogito.
13165         Remove cvs-repo-updating instructions from 2007.
13166         Don't imply that CVS is better if you have limited disk space.
13167
13168 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13169
13170         update-copyright: support C-style comments
13171         * build-aux/update-copyright: Implement and document.
13172         * tests/test-update-copyright.sh: Test.
13173
13174 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13175
13176         update-copyright: support omitted "(C)"
13177         * build-aux/update-copyright: Implement and document.  Also,
13178         allow variable whitespace before "(C)".
13179         * tests/test-update-copyright.sh: Test.
13180
13181 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13182
13183         update-copyright: don't trip on non-FSF copyright statements
13184         * build-aux/update-copyright: Fix so that the first correctly
13185         formatted FSF copyright statement is recognized no matter what
13186         appears before it.  Update documentation.
13187         * tests/test-update-copyright.sh: Test that.
13188
13189 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13190
13191         update-copyright: clean up code a little
13192         * build-aux/update-copyright: Append "_re" to the name of any
13193         variable holding a regular expression.
13194         Replace "old" and "new" with "stmt" in variable names.
13195         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
13196         handled correctly.
13197         Format code more consistently.
13198
13199 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13200
13201         update-copyright-tests: improve portability
13202         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
13203         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
13204
13205 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13206
13207         update-copyright: support @copyright{} and &copy;
13208         * build-aux/update-copyright: Implement and document.
13209         * tests/test-update-copyright.sh: Test.
13210
13211 2009-08-04  Jim Meyering  <meyering@redhat.com>
13212
13213         update-copyright-tests: correctly test EOL=\r\n handling
13214         * tests/test-update-copyright.sh: Put \r at the end of some lines
13215         for the dos-eol tests.  Based on a patch by Joel E. Denny.
13216
13217         maint.mk: make update-copyright exclusion list more configurable
13218         * top/maint.mk (update-copyright): Default to excluding COPYING,
13219         but allow an override, in case someone does want to update that file.
13220
13221         maint.mk: don't update copyright date in COPYING
13222         * top/maint.mk (update-copyright): Exclude COPYING.
13223
13224         maint.mk: add a copyright-updating rule
13225         * top/maint.mk (update-copyright): New rule.
13226         Derived from coreutils/Makefile.am.
13227
13228         update-copyright: rename some variables
13229         * build-aux/update-copyright: Rename a few variables for clarity.
13230         Tweak syntax.  List Joel E. Denny as coauthor.
13231
13232 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13233
13234         update-copyright: fix bug for 2-digit last year and add tests
13235         * build-aux/update-copyright: Fix bug.
13236         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
13237         specified.
13238         * modules/update-copyright-tests: New
13239         * tests/test-update-copyright.sh: New.
13240
13241 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13242
13243         update-copyright: handle leading tabs in line prefix
13244         * build-aux/update-copyright: Count leading tabs as 8 spaces
13245         when computing margin.  This helps with the formatting of
13246         ChangeLogs, for example.
13247         Fix documentation a little.
13248
13249 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13250
13251         update-copyright: support EOL=\r\n
13252         * build-aux/update-copyright: Implement that.
13253
13254 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13255
13256         update-copyright: automatically format copyright statements
13257         * build-aux/update-copyright: Implement that.
13258         Also, be a little more predictable and safer by always failing
13259         when the full copyright format is not perfectly recognized as an
13260         unbroken whole.  Discussed at
13261         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
13262         Rewrite documentation.
13263
13264 2009-08-03  Bruno Haible  <bruno@clisp.org>
13265
13266         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
13267
13268 2009-08-02  Bruno Haible  <bruno@clisp.org>
13269
13270         Tests for module 'uname'.
13271         * modules/uname-tests: New file.
13272         * tests/test-uname.c: New file.
13273
13274         New module 'uname'.
13275         * lib/uname.c: New file.
13276         * m4/uname.m4: New file.
13277         * modules/uname: New file.
13278         * doc/posix-functions/uname.texi: Mention the new module.
13279
13280 2009-08-02  Bruno Haible  <bruno@clisp.org>
13281
13282         Tests for module 'sys_utsname'.
13283         * modules/sys_utsname-tests: New file.
13284         * tests/test-sys_utsname.c: New file.
13285
13286         New module 'sys_utsname'.
13287         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
13288         * m4/sys_utsname_h.m4: New file.
13289         * modules/sys_utsname: New file.
13290         * doc/posix-headers/sys_utsname.texi: Mention the new module.
13291
13292 2009-08-02  Bruno Haible  <bruno@clisp.org>
13293
13294         Implicitly initialize the sockets library.
13295         * lib/gethostname.c: Include sockets.h.
13296         (rpl_gethostname): Invoke gl_sockets_startup.
13297         * lib/socket.c: Include sockets.h.
13298         (rpl_socket): Invoke gl_sockets_startup.
13299         * modules/gethostname (Depends-on): Add sockets.
13300         * modules/socket (Depends-on): Likewise.
13301         * tests/test-poll.c: Don't include sockets.h.
13302         (main): Don't invoke gl_sockets_startup.
13303         * tests/test-select.c: Don't include sockets.h.
13304         (main): Don't invoke gl_sockets_startup.
13305
13306 2009-08-02  Bruno Haible  <bruno@clisp.org>
13307
13308         Allow multiple calls to gl_sockets_startup.
13309         * lib/sockets.c (initialized_sockets_version): New variable.
13310         (gl_sockets_startup): Do nothing if already called for this or a higher
13311         version.
13312         (gl_sockets_cleanup): Reset initialized_sockets_version.
13313
13314 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13315
13316         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13317         different project/version.
13318
13319 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13320             Bruno Haible  <bruno@clisp.org>
13321
13322         Tests for module 'pipe-filter-gi'.
13323         * modules/pipe-filter-gi-tests: New file.
13324         * tests/test-pipe-filter-gi1.sh: New file.
13325         * tests/test-pipe-filter-gi1.c: New file.
13326         * tests/test-pipe-filter-gi2.sh: New file.
13327         * tests/test-pipe-filter-gi2-main.c: New file.
13328         * tests/test-pipe-filter-gi2-child.c: New file.
13329
13330         New module 'pipe-filter-gi'.
13331         * lib/pipe-filter-gi.c: New file.
13332         * modules/pipe-filter-gi: New file.
13333
13334 2009-08-02  Bruno Haible  <bruno@clisp.org>
13335             Paolo Bonzini  <bonzini@gnu.org>
13336
13337         Tests for module 'pipe-filter-ii'.
13338         * modules/pipe-filter-ii-tests: New file.
13339         * tests/test-pipe-filter-ii1.sh: New file.
13340         * tests/test-pipe-filter-ii1.c: New file.
13341         * tests/test-pipe-filter-ii2.sh: New file.
13342         * tests/test-pipe-filter-ii2-main.c: New file.
13343         * tests/test-pipe-filter-ii2-child.c: New file.
13344
13345         New module 'pipe-filter-ii'.
13346         * lib/pipe-filter.h: New file.
13347         * lib/pipe-filter-ii.c: New file.
13348         * lib/pipe-filter-aux.h: New file.
13349         * modules/pipe-filter-ii: New file.
13350
13351 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13352
13353         * lib/gc-libgcrypt.c: Change copyright to FSF.
13354         * lib/gc-gnulib.c: Likewise.
13355
13356 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13357
13358         * lib/gethostname.c: Include limits.h.
13359
13360 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13361             Bruno Haible  <bruno@clisp.org>
13362
13363         Ensure HOST_NAME_MAX as part of the gethostname module.
13364         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13365         define also HOST_NAME_MAX.
13366         * tests/test-gethostname.c: Include <limits.h>.
13367         (main): Check also HOST_NAME_MAX.
13368         * doc/posix-headers/limits.texi: Document the mingw problem.
13369
13370 2009-08-02  Bruno Haible  <bruno@clisp.org>
13371
13372         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13373         Add comments.
13374
13375 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13376
13377         * lib/gethostname.c: Add Windows wrapper.
13378         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13379         * modules/gethostname: Depend on sys_socket & errno, for also
13380         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13381         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13382
13383 2009-07-31  Jim Meyering  <meyering@redhat.com>
13384
13385         getloadavg: fix symbol name in comment
13386         * lib/getloadavg.c: Correct a typo I introduced when adding
13387         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13388         Matt Kraai spotted the problem.
13389
13390 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13391
13392         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13393         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13394         code also if ! defined N_NAME_POINTER.
13395         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13396         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13397         but the n_name member is a 12-byte array.
13398
13399 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13400
13401         update-copyright: generalize comment handling
13402         * build-aux/update-copyright: Handle copyright statements
13403         within more comment styles.
13404         Document usage.
13405         Report any file with an external copyright holder or parse failure.
13406
13407 2009-07-29  Jim Meyering  <meyering@redhat.com>
13408
13409         mktime: correct setting of REPLACE_MKTIME
13410         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13411
13412         update-copyright: new module
13413         * modules/update-copyright: New file.
13414         * build-aux/update-copyright: New file.
13415         * MODULES.html.sh (maint+release support): Add update-copyright.
13416
13417 2009-07-27  Bruno Haible  <bruno@clisp.org>
13418
13419         Fix compilation error when <ctime> is used and mktime is replaced.
13420         * lib/time.in.h (mktime): New declaration.
13421         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13422         REPLACE_MKTIME instead of defining mktime in config.h.
13423         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13424         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13425         Reported by Ross McFarland <rwmcfa1@neces.com>.
13426
13427 2009-07-27  Bruno Haible  <bruno@clisp.org>
13428
13429         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13430         Reported by Matt Kraai <mkraai@beckman.com>.
13431
13432 2009-07-25  Jim Meyering  <meyering@redhat.com>
13433
13434         maint.mk: avoid warnings about missing files
13435         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13436         diagnostic when .prev-version does not exist.
13437         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13438         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13439         nonexistent cfg.mk.
13440         Suggestions from Simon Josefsson.
13441
13442 2009-07-25  Bruno Haible  <bruno@clisp.org>
13443
13444         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13445         defined as macros. Needed on QNX 6.4.1.
13446         Reported by Matt Kraai <mkraai@beckman.com>.
13447
13448 2009-07-23  Jim Meyering  <meyering@redhat.com>
13449
13450         maint.mk: invoke "make dist" with a working value of XZ_OPT
13451         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13452
13453 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13454
13455         Make fseeko.c compile on QNX.
13456         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13457
13458 2009-07-22  Peter Simons  <simons@cryp.to>
13459
13460         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13461         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13462         * lib/md4.h: Likewise.
13463         * lib/md5.h: Likewise.
13464         * lib/sha1.h: Likewise.
13465         * lib/sha256.h: Likewise.
13466         * lib/sha512.h: Likewise.
13467
13468         tests-sha1: don't assign literal string to 'char *' variable
13469         * tests/test-sha1.c (main): Declare locals with "const" to match
13470         attributes of the right hand side.
13471
13472 2009-07-21  Eric Blake  <ebb9@byu.net>
13473
13474         dup2: fix more mingw problems
13475         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13476         fd to itself.
13477         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13478         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13479         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13480         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13481         care of mingw bugs.
13482
13483 2009-07-21  Jim Meyering  <meyering@redhat.com>
13484
13485         vc-list-files: avoid failure when /bin/sh is dash
13486         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13487         On some Debian based systems, /bin/sh is a symlink to dash, and running
13488         this command would omit the "/" following each 'tests' prefix:
13489           dash -x build-aux/vc-list-files -C . tests
13490         That is because bash and dash work differently:
13491           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13492           bash ok
13493           dash odd
13494
13495 2009-07-21  Eric Blake  <ebb9@byu.net>
13496
13497         dup2-tests: test previous patch
13498         * modules/dup2-tests: New file.
13499         * tests/test-dup2.c: Likewise.
13500         * tests/test-open.c (main): Avoid unspecified behavior.
13501         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13502         test.
13503
13504         dup2: work around mingw and cygwin 1.5 bug
13505         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13507         * modules/unistd (Makefile.am): Substitute it.
13508         * lib/unistd.in.h (dup2): Declare the replacement.
13509         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13510         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13511         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13512         * modules/execute (Depends-on): Add dup2.
13513         * modules/fseterr (Depends-on): Likewise.
13514         * modules/pipe (Depends-on): Likewise.
13515         * modules/posix_spawn-internal (Depends-on): Likewise.
13516
13517 2009-07-21  Bruno Haible  <bruno@clisp.org>
13518
13519         * modules/.gitattributes: New file.
13520
13521 2009-07-20  Bruno Haible  <bruno@clisp.org>
13522
13523         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13524         (main): Use it.
13525
13526 2009-07-20  Eric Blake  <ebb9@byu.net>
13527
13528         test-pipe: make a bit more robust.
13529         * tests/test-pipe.c (myerr): Allow error messages regardless of
13530         what we do to stderr.
13531         (test_pipe): Rearrange to avoid deadlock.
13532         (child_main): Try a larger read, to ensure we avoided deadlock.
13533         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13534         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13535         if misused.
13536
13537 2009-07-19  Jim Meyering  <meyering@redhat.com>
13538
13539         fts: avoid false-positive cycle-detection
13540         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13541         for each new command line argument.
13542
13543 2009-07-19  Bruno Haible  <bruno@clisp.org>
13544
13545         Fix build error on mingw with the modules sys_select and unistd.
13546         * modules/acl-tests (Depends-on): Add close.
13547         * modules/binary-io-tests (Depends-on): Likewise.
13548         * modules/closein-tests (Depends-on): Likewise.
13549         * modules/flock-tests (Depends-on): Likewise.
13550         * modules/fsync-tests (Depends-on): Likewise.
13551         * modules/lseek-tests (Depends-on): Likewise.
13552         * modules/pipe-tests (Depends-on): Likewise.
13553         * modules/posix_spawn-tests (Depends-on): Likewise.
13554         * modules/posix_spawnp-tests (Depends-on): Likewise.
13555         * modules/stat-time-tests (Depends-on): Likewise.
13556         * modules/yesno-tests (Depends-on): Likewise.
13557
13558 2009-07-19  Bruno Haible  <bruno@clisp.org>
13559
13560         Unify conditionals.
13561         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13562         macros, not at the compiler macros.
13563         * lib/pipe.c: Likewise.
13564         * lib/execute.c: Likewise.
13565         * lib/spawni.c: Likewise.
13566
13567 2009-07-19  Bruno Haible  <bruno@clisp.org>
13568
13569         Fix handling of closed stdin/stdout/stderr on mingw.
13570         * lib/w32spawn.h: Include unistd.h.
13571         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13572         file descriptor with O_NOINHERIT flag.
13573         (fd_safer_noinherit): New function, based on fd-safer.c.
13574         (dup_safer_noinherit): New function, based on dup-safer.c.
13575         (undup_safer_noinherit): New function.
13576         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13577         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13578         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13579         instead of fd_safer.
13580         * tests/test-pipe.c: Include <windows.h>.
13581         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13582
13583         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13584         from main.
13585         (test_pipe): Pass an extra argument for disambiguation.
13586         (main): Invoke parent_main or child_main.
13587
13588         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13589         consistently.
13590
13591 2009-07-18  Eric Blake  <ebb9@byu.net>
13592
13593         test-pipe: fix mingw build
13594         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13595
13596 2009-07-18  Bruno Haible  <bruno@clisp.org>
13597
13598         * modules/pipe-tests (Makefile.am): Fix typo.
13599
13600 2009-07-18  Eric Blake  <ebb9@byu.net>
13601
13602         error: fix mingw build
13603         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13604         Reported by Bruno Haible.
13605
13606         error: avoid undefined use of stdout
13607         * lib/error.c (error, error_at_line): Check that fd 1 is open
13608         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13609         is handling faults and the close_stdout module wants to report the
13610         detection of closed stdout as an error.
13611
13612 2009-07-17  Eric Blake  <ebb9@byu.net>
13613
13614         pipe: be robust in face of closed fds
13615         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13616         should cause child to misbehave.
13617         * modules/pipe-tests: New module.
13618         * tests/test-pipe.c: New file.
13619         * tests/test-pipe.sh: New file.
13620         Reported by Akim Demaille.
13621
13622 2009-07-14  Bruno Haible  <bruno@clisp.org>
13623
13624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13625         Reported by anonymous kc.
13626
13627 2009-07-07  Jim Meyering  <meyering@redhat.com>
13628
13629         maint.mk: don't look for translatable strings in *.m4 or *.mk
13630         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13631         when searching for translatable strings.
13632
13633 2009-07-05  Jim Meyering  <meyering@redhat.com>
13634
13635         remove superfluous parentheses in STREQ definition
13636         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13637         * lib/getugroups.c (STREQ): Likewise.
13638         * lib/fnmatch.c (STREQ): Likewise.
13639         Spotted by Bruno Haible.
13640
13641 2009-07-04  Jim Meyering  <meyering@redhat.com>
13642
13643         argv-iter: new module
13644         * MODULES.html.sh: Add argv-iter.
13645         * lib/argv-iter.c, lib/argv-iter.h: New files.
13646         * modules/argv-iter: New file.
13647         * modules/argv-iter-tests: New file.
13648         * tests/test-argv-iter.c: Test it.
13649
13650 2009-07-04  Bruno Haible  <bruno@clisp.org>
13651
13652         Fix assertion.
13653         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13654         contains more exact copies of a given entry than file2, leave the extra
13655         copies unpaired rather than aborting.
13656         Reported by Eric Blake.
13657
13658 2009-07-02  Bruno Haible  <bruno@clisp.org>
13659
13660         Speedup git-merge-changelog for git cherry-pick.
13661         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13662         (entries_mapping_get): New function, extracted from compute_mapping.
13663         (entries_mapping_reverse_get): New function.
13664         (compute_mapping): Add a 'full' argument. Return the result in a
13665         'struct entries_mapping'.
13666         (main): Update. Access the mappings through entries_mapping_get.
13667         Reported by Eric Blake.
13668
13669 2009-07-02  Bruno Haible  <bruno@clisp.org>
13670
13671         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13672         best_i.
13673
13674 2009-07-02  Bruno Haible  <bruno@clisp.org>
13675
13676         Speed up approximate search for matching ChangeLog entries.
13677         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13678         argument. Call fstrcmp_bounded instead of fstrcmp.
13679         (compute_mapping, try_split_merged_entry, main): Update callers.
13680
13681 2009-07-02  Bruno Haible  <bruno@clisp.org>
13682
13683         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13684
13685 2009-06-30  Bruno Haible  <bruno@clisp.org>
13686
13687         Reduce the number of uc_is_cased calls.
13688         * lib/unicase.h (casing_suffix_context_t): Add
13689         'first_char_except_ignorable' field.
13690         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13691         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13692         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13693         Update initializer.
13694         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13695         case-ignorable characters.
13696         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13697         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13698         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13699         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13700         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13701
13702 2009-06-30  Bruno Haible  <bruno@clisp.org>
13703
13704         Tests for module 'unicase/ignorable'.
13705         * modules/unicase/ignorable-tests: New file.
13706         * tests/unicase/test-ignorable.c: New file, generated by
13707         gen-uni-tables.
13708
13709         Tests for module 'unicase/cased'.
13710         * modules/unicase/cased-tests: New file.
13711         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13712         * tests/unicase/test-predicate-part1.h: New file, derived from
13713         tests/unictype/test-predicate-part1.h.
13714         * tests/unicase/test-predicate-part2.h: New file, same as
13715         tests/unictype/test-predicate-part2.h.
13716
13717         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13718         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13719         (output_casing_properties): New function.
13720         (main): Call it.
13721         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13722         * lib/unicase/cased.c: Include unictype/bitmap.h.
13723         (uc_is_cased): Define through a bitmap lookup.
13724         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13725         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13726         (uc_is_case_ignorable): Define through a bitmap lookup.
13727         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13728         lib/unictype/bitmap.h.
13729         (Depends-on): Add inline. Clean up.
13730         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13731         lib/unictype/bitmap.h.
13732         (Depends-on): Add inline. Clean up.
13733         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13734         recognition.
13735         * tests/unicase/test-u16-tolower.c (main): Likewise.
13736         * tests/unicase/test-u32-tolower.c (main): Likewise.
13737
13738 2009-06-30  Bruno Haible  <bruno@clisp.org>
13739
13740         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13741         * lib/unicase/u16-casemap.c: Likewise.
13742         * lib/unicase/u32-casemap.c: Likewise.
13743
13744 2009-06-29  Bruno Haible  <bruno@clisp.org>
13745
13746         Define u32_casefold as a wrapper around u32_ct_casefold.
13747         * lib/unicase/u32-casefold.c: Update.
13748         * modules/unicase/u32-casefold (Depends-on): Add
13749         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13750         unicase/empty-suffix-context. Clean up.
13751
13752         Define u16_casefold as a wrapper around u16_ct_casefold.
13753         * lib/unicase/u16-casefold.c: Update.
13754         * modules/unicase/u16-casefold (Depends-on): Add
13755         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13756         unicase/empty-suffix-context. Clean up.
13757
13758         Define u8_casefold as a wrapper around u8_ct_casefold.
13759         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13760         * lib/unicase/u8-casefold.c: Update.
13761         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13762         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13763
13764         Define u32_totitle as a wrapper around u32_ct_totitle.
13765         * lib/unicase/u32-totitle.c: Update.
13766         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13767         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13768
13769         Define u16_totitle as a wrapper around u16_ct_totitle.
13770         * lib/unicase/u16-totitle.c: Update.
13771         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13772         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13773
13774         Define u8_totitle as a wrapper around u8_ct_totitle.
13775         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13776         functions.
13777         (FUNC): Delegate to U_CT_TOTITLE.
13778         * lib/unicase/u8-totitle.c: Update.
13779         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13780         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13781
13782         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13783         invocation.
13784         * modules/unicase/u32-tolower (Depends-on): Add
13785         unicase/empty-prefix-context, unicase/empty-suffix-context.
13786
13787         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13788         invocation.
13789         * modules/unicase/u16-tolower (Depends-on): Add
13790         unicase/empty-prefix-context, unicase/empty-suffix-context.
13791
13792         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13793         * modules/unicase/u8-tolower (Depends-on): Add
13794         unicase/empty-prefix-context, unicase/empty-suffix-context.
13795
13796         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13797         invocation.
13798         * modules/unicase/u32-toupper (Depends-on): Add
13799         unicase/empty-prefix-context, unicase/empty-suffix-context.
13800
13801         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13802         invocation.
13803         * modules/unicase/u16-toupper (Depends-on): Add
13804         unicase/empty-prefix-context, unicase/empty-suffix-context.
13805
13806         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13807         * modules/unicase/u8-toupper (Depends-on): Add
13808         unicase/empty-prefix-context, unicase/empty-suffix-context.
13809
13810         New module 'unicase/u32-ct-casefold'.
13811         * lib/unicase/u32-ct-casefold.c: New file.
13812         * modules/unicase/u32-ct-casefold: New file.
13813
13814         New module 'unicase/u16-ct-casefold'.
13815         * lib/unicase/u16-ct-casefold.c: New file.
13816         * modules/unicase/u16-ct-casefold: New file.
13817
13818         New module 'unicase/u8-ct-casefold'.
13819         * lib/unicase/u8-ct-casefold.c: New file.
13820         * lib/unicase/u-ct-casefold.h: New file, derived from
13821         lib/unicase/u-casefold.h.
13822         * modules/unicase/u8-ct-casefold: New file.
13823
13824         New module 'unicase/u32-ct-totitle'.
13825         * lib/unicase/u32-ct-totitle.c: New file.
13826         * modules/unicase/u32-ct-totitle: New file.
13827
13828         New module 'unicase/u16-ct-totitle'.
13829         * lib/unicase/u16-ct-totitle.c: New file.
13830         * modules/unicase/u16-ct-totitle: New file.
13831
13832         New module 'unicase/u8-ct-totitle'.
13833         * lib/unicase/u8-ct-totitle.c: New file.
13834         * lib/unicase/u-ct-totitle.h: New file, derived from
13835         lib/unicase/u-totitle.h.
13836         * modules/unicase/u8-ct-totitle: New file.
13837
13838         New module 'unicase/u32-ct-tolower'.
13839         * lib/unicase/u32-ct-tolower.c: New file.
13840         * modules/unicase/u32-ct-tolower: New file.
13841
13842         New module 'unicase/u16-ct-tolower'.
13843         * lib/unicase/u16-ct-tolower.c: New file.
13844         * modules/unicase/u16-ct-tolower: New file.
13845
13846         New module 'unicase/u8-ct-tolower'.
13847         * lib/unicase/u8-ct-tolower.c: New file.
13848         * modules/unicase/u8-ct-tolower: New file.
13849
13850         New module 'unicase/u32-ct-toupper'.
13851         * lib/unicase/u32-ct-toupper.c: New file.
13852         * modules/unicase/u32-ct-toupper: New file.
13853
13854         New module 'unicase/u16-ct-toupper'.
13855         * lib/unicase/u16-ct-toupper.c: New file.
13856         * modules/unicase/u16-ct-toupper: New file.
13857
13858         New module 'unicase/u8-ct-toupper'.
13859         * lib/unicase/u8-ct-toupper.c: New file.
13860         * modules/unicase/u8-ct-toupper: New file.
13861
13862         Add context arguments to u*_casemap functions.
13863         * lib/unicase/unicasemap.h: Include unicase.h.
13864         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13865         suffix_context arguments.
13866         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13867         functions.
13868         (FUNC): Add prefix_context and suffix_context arguments. Use
13869         uc_is_cased and uc_is_case_ignorable.
13870         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13871         * lib/unicase/u16-casemap.c: Likewise.
13872         * lib/unicase/u32-casemap.c: Likewise.
13873         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13874         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13875         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13876         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13877         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13878         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13879
13880         New module 'unicase/u32-suffix-context'.
13881         * lib/unicase/u32-suffix-context.c: New file.
13882         * modules/unicase/u32-suffix-context: New file.
13883
13884         New module 'unicase/u16-suffix-context'.
13885         * lib/unicase/u16-suffix-context.c: New file.
13886         * modules/unicase/u16-suffix-context: New file.
13887
13888         New module 'unicase/u8-suffix-context'.
13889         * lib/unicase/u8-suffix-context.c: New file.
13890         * lib/unicase/u-suffix-context.h: New file.
13891         * modules/unicase/u8-suffix-context: New file.
13892
13893         New module 'unicase/empty-suffix-context'.
13894         * lib/unicase/empty-suffix-context.c: New file.
13895         * modules/unicase/empty-suffix-context: New file.
13896
13897         New module 'unicase/u32-prefix-context'.
13898         * lib/unicase/u32-prefix-context.c: New file.
13899         * modules/unicase/u32-prefix-context: New file.
13900
13901         New module 'unicase/u16-prefix-context'.
13902         * lib/unicase/u16-prefix-context.c: New file.
13903         * modules/unicase/u16-prefix-context: New file.
13904
13905         New module 'unicase/u8-prefix-context'.
13906         * lib/unicase/u8-prefix-context.c: New file.
13907         * lib/unicase/u-prefix-context.h: New file.
13908         * lib/unicase/context.h: New file.
13909         * modules/unicase/u8-prefix-context: New file.
13910
13911         New module 'unicase/empty-prefix-context'.
13912         * lib/unicase/empty-prefix-context.c: New file.
13913         * modules/unicase/empty-prefix-context: New file.
13914
13915         New module 'unicase/ignorable'.
13916         * lib/unicase/ignorable.c: New file.
13917         * modules/unicase/ignorable: New file.
13918
13919         New module 'unicase/cased'.
13920         * lib/unicase/caseprop.h: New file.
13921         * lib/unicase/cased.c: New file.
13922         * modules/unicase/cased: New file.
13923
13924         New functions for case mapping of substrings.
13925         * lib/unicase.h (casing_prefix_context_t): New type.
13926         (unicase_empty_prefix_context): New variable.
13927         (u8_casing_prefix_context, u16_casing_prefix_context,
13928         u32_casing_prefix_context, u8_casing_prefixes_context,
13929         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13930         declarations.
13931         (casing_suffix_context_t): New type.
13932         (unicase_empty_suffix_context): New variable.
13933         (u8_casing_suffix_context, u16_casing_suffix_context,
13934         u32_casing_suffix_context, u8_casing_suffixes_context,
13935         u16_casing_suffixes_context, u32_casing_suffixes_context,
13936         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13937         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13938         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13939         declarations.
13940
13941 2009-06-28  Jim Meyering  <meyering@redhat.com>
13942
13943         boostrap: indent only with spaces
13944         * build-aux/bootstrap: Indent only with spaces, never TABs.
13945
13946         bootstrap: split long lines
13947         * build-aux/bootstrap: Keep line length < 80.
13948
13949         bootstrap: sync from coreutils
13950         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13951         just as autoreconf does.  Verify a list of prerequisite
13952         package-name,version-number pairs if defined in bootstrap.conf.
13953         Refer to README-prereq, if prerequisites are not satisfied.
13954
13955 2009-06-27  Eric Blake  <ebb9@byu.net>
13956
13957         tests: add test for bogus NULL definition
13958         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13959         * tests/test-stdlib.c: Likewise.
13960         * tests/test-string.c: Likewise.
13961         * tests/test-locale.c: Likewise.
13962         * tests/test-unistd.c: Likewise.
13963         * modules/stdio-tests (Depends-on): Add verify.
13964         * modules/stdlib-tests (Depends-on): Likewise.
13965         * modules/string-tests (Depends-on): Likewise.
13966         * modules/locale-tests (Depends-on): Likewise.
13967         * modules/unistd-tests (Depends-on): Likewise.
13968
13969 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13970
13971         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13972         self-explaining comment.
13973         * m4/selinux-selinux-h: Update serial.
13974         (gl_LIBSELINUX): New macro, adding a warning for missing development
13975         packages to code extracted from...
13976         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13977         Add warning for missing development packages here, too.
13978
13979 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13980
13981         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13982
13983 2009-06-25  Eric Blake  <ebb9@byu.net>
13984
13985         version-etc: fix regression
13986         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13987         gcc.
13988         (version_etc): Use it, to catch bugs with trailing NULL.
13989         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13990         (version_etc_va): Fix logic bug.
13991         * modules/version-etc-tests: Add test.
13992         * tests/test-version-etc.c: New file.
13993         * tests/test-version-etc.sh: Likewise.
13994
13995 2009-06-25  Sam Steingold  <sds@gnu.org>
13996
13997         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13998         mbtowc declaration.
13999
14000 2009-06-25  Eric Blake  <ebb9@byu.net>
14001
14002         fpurge: migrate into <stdio.h>
14003         * lib/fpurge.h: Delete...
14004         * lib/stdio.in.h (fpurge): ...and declare here, instead.
14005         * lib/fpurge.c (fpurge): Change declaring header.
14006         * modules/fpurge (Files): Drop deleted file.
14007         (Depends-on): Add stdio.
14008         (configure.ac): Set witness.
14009         * modules/stdio (Makefile.am): Support fpurge macros.
14010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14011         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
14012         * lib/fflush.c: Update client.
14013         * tests/test-fpurge.c: Likewise.
14014         * NEWS: Mention the change.
14015
14016 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14017
14018         * lib/argp-version-etc.c (program_authors): Add const
14019         qualifier.
14020         * lib/version-etc.c: Fix typos in the comments.
14021         * modules/argp-version-etc: Depends on version-etc.
14022
14023 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14024
14025         argp-version-etc: new module.
14026
14027         * lib/argp-version-etc.c: New file.
14028         * lib/argp-version-etc.h: New file.
14029         * modules/argp-version-etc: New file.
14030         * modules/argp-version-etc-tests: New file.
14031         * tests/test-argp-version-etc.c: New test.
14032         * tests/test-argp-version-etc-1.sh: New test.
14033
14034 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
14035
14036         Provide additional interfaces and documentation for version-etc
14037         module.
14038
14039         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
14040         interfaces.
14041         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
14042         prototypes.
14043
14044 2009-06-24  Bruno Haible  <bruno@clisp.org>
14045
14046         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
14047         HAVE_LIB${NAME} macro.
14048         Reported by Sam Steingold <sds@gnu.org>.
14049
14050 2009-06-23  Simon Josefsson  <simon@josefsson.org>
14051
14052         * modules/hash-tests (test_hash_LDADD): Link to libintl when
14053         needed.
14054
14055 2009-06-21  Bruno Haible  <bruno@clisp.org>
14056
14057         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
14058         work.
14059         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
14060         together with LIB${NAME}, LTLIB${NAME}.
14061         Reported by Sam Steingold <sds@gnu.org>.
14062
14063 2009-06-20  Jim Meyering  <meyering@redhat.com>
14064
14065         tests: make sc_require_test_exit_idiom more generic
14066         * top/maint.mk (Exit_witness_file): New overridable variable.
14067         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
14068         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
14069
14070 2009-06-19  Jim Meyering  <meyering@redhat.com>
14071
14072         hash: reverse order of src/dst parameters in an internal interface
14073         * lib/hash.c (transfer_entries): Reverse order of parameters to
14074         put DST before SRC.  Adjust callers.
14075
14076         tests: test-hash: avoid wholesale duplication
14077         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
14078         Instead, use a loop and add a single conditional.
14079
14080         tests: test-hash: allow seed selection via a command line argument
14081         * tests/test-hash.c (get_seed): New function.
14082         (main): Use it.
14083
14084 2009-06-19  Eric Blake  <ebb9@byu.net>
14085
14086         hash: avoid memory leak on allocation failure
14087         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
14088         failure.  Factor repeated algorithm...
14089         (transfer_entries): ...into new helper routine.
14090         (hash_delete): React to hash_rehash return value.
14091
14092         hash: reduce memory pressure in hash_rehash no-op case
14093         * lib/hash.c (next_prime): Avoid overflow.
14094         (hash_initialize): Factor bucket size computation...
14095         (compute_bucket_size): ...into new helper function.
14096         (hash_rehash): Use new function and open coding to reduce memory
14097         pressure, and avoid a memory leak in USE_OBSTACK code.
14098         Reported by Jim Meyering.
14099
14100 2009-06-18  Eric Blake  <ebb9@byu.net>
14101
14102         hash: make rotation more obvious
14103         * modules/hash (Depends-on): Add bitrotate and stdint.
14104         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
14105         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
14106         (SIZE_MAX): Rely on headers for definition.
14107         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
14108         (raw_hasher): Use rotr_sz.
14109         Suggested by Jim Meyering.
14110
14111         hash: fix memory leak in last patch
14112         * lib/hash.c (hash_rehash): Avoid memory leak.
14113
14114         hash: avoid no-op rehashing
14115         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
14116
14117         hash: provide default callback functions
14118         * lib/hash.c (raw_hasher, raw_comparator): New functions.
14119         (hash_initialize): Use them as defaults.
14120         * tests/test-hash.c (main): Test this.
14121
14122         hash: minor optimization
14123         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
14124         when possible.
14125         (hash_initialize): Document this promise.
14126         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
14127         * tests/test-hash.c (hash_compare_strings): Test this.
14128
14129 2009-06-18  Bruno Haible  <bruno@clisp.org>
14130
14131         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
14132         going to be replaced anyway.
14133
14134 2009-06-18  Bruno Haible  <bruno@clisp.org>
14135
14136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
14137         in one place.
14138         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
14139         be replaced anyway.
14140
14141 2009-06-18  Eric Blake  <ebb9@byu.net>
14142
14143         hash: check for resize before insertion
14144         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
14145         threshold before insertion, so that a pathological hash_rehash
14146         that fills every bucket can still trigger another rehash.
14147
14148 2009-06-18  Jim Meyering  <meyering@redhat.com>
14149
14150         hash-tests: add a loop around the small tests
14151         * tests/test-hash.c (main): Repeat small tests with selected
14152         small initial table sizes.
14153
14154 2009-06-17  Eric Blake  <ebb9@byu.net>
14155
14156         hash: minor cleanups
14157         * lib/hash.h (hash_entry): Make opaque, by moving...
14158         * lib/hash.c (hash_entry): ...here.
14159         (hash_insert): Clarify restrictions on what can be inserted.
14160         (hash_get_next): Clarify when it is safe to remove an element
14161         during traversal.
14162         (check_tuning): Skip verification when tuning is known safe.
14163         (hash_initialize): Clarify restrictions on tuning.
14164
14165 2009-06-17  Jim Meyering  <jim@meyering.net>
14166         and Eric Blake  <ebb9@byu.net>
14167
14168         hash-tests: new module
14169         * modules/hash-tests: New file.
14170         * tests/test-hash.c: New file.
14171
14172 2009-06-17  Eric Blake  <ebb9@byu.net>
14173
14174         strstr-simple: document new module
14175         * MODULES.html.sh: Document new module.
14176
14177         strstr, strcasestr: replace on platforms with broken memchr
14178         * modules/strstr: Split into...
14179         * modules/strstr-simple: ...new module that does not care about
14180         performance, but does care about glibc bug.
14181         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
14182         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
14183         if platform memchr is broken, per Debian bug 521737.
14184         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
14185         memchr.
14186         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
14187         * doc/posix-functions/strstr.texi (strstr): Document the fix.
14188         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14189         * modules/mountlist (Depends-on): Add strstr-simple.
14190         * modules/gen-uni-tables (Depends-on): Likewise.
14191         * modules/argz (Depends-on): Add strstr.
14192
14193 2009-06-17  Bruno Haible  <bruno@clisp.org>
14194
14195         * modules/posix_spawn-internal (Depends-on): Add errno.
14196
14197 2009-06-17  Bruno Haible  <bruno@clisp.org>
14198
14199         Define missing ESTALE on Interix 3.5.
14200         * lib/errno.in.h (ESTALE): Assign a value if missing.
14201         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
14202         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
14203         missing.
14204         * doc/posix-headers/errno.texi: Mention the Interix bug.
14205         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
14206
14207 2009-06-15  Eric Blake  <ebb9@byu.net>
14208
14209         memchr, memchr2: add valgrind exception
14210         * lib/memchr.valgrind: New file.
14211         * lib/memchr2.valgrind: New file.
14212         * modules/memchr (Files): Distribute valgrind file.
14213         * modules/memchr2 (Files): Likewise.
14214
14215         docs: memchr is no longer obsolete
14216         * MODULES.html.sh: Move memchr from obsolete to string.h section.
14217         * lib/string.in.h (memchr): Simplify logic.
14218
14219 2009-06-14  Jim Meyering  <meyering@redhat.com>
14220
14221         link-follow: fix the "checking..." message to not mention trailing slash
14222         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
14223         never considered trailing slashes.
14224
14225 2009-06-14  Bruno Haible  <bruno@clisp.org>
14226
14227         * m4/memchr.m4: Mention also the bug on IA-64.
14228         * doc/posix-functions/memchr.texi: Likewise.
14229
14230 2009-06-12  Eric Blake  <ebb9@byu.net>
14231
14232         memchr: detect broken x86_64 and alpha implementations
14233         * modules/memchr-tests (Depends-on): Move mmap detection...
14234         * modules/memchr (Depends-on): ...here.
14235         (configure.ac): Set indicator.
14236         * lib/string.in.h (memchr): Declare replacement.
14237         * modules/string (Makefile.am): Trigger replacement.
14238         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
14239         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
14240         bugs.
14241         * doc/posix-functions/memchr.texi (memchr): Document the bug.
14242         * modules/getpagesize (License): Relax license.
14243
14244 2009-06-11  Bruno Haible  <bruno@clisp.org>
14245
14246         * lib/idpriv.h: Add more references.
14247
14248 2009-06-08  Bruno Haible  <bruno@clisp.org>
14249
14250         Tests for module 'idpriv-droptemp'.
14251         * modules/idpriv-droptemp-tests: New file.
14252         * tests/test-idpriv-droptemp.sh: New file.
14253         * tests/test-idpriv-droptemp.su.sh: New file.
14254         * tests/test-idpriv-droptemp.c: New file.
14255
14256         New module 'idpriv-droptemp'.
14257         * lib/idpriv-droptemp.c: New file.
14258         * modules/idpriv-droptemp: New file.
14259
14260 2009-06-08  Bruno Haible  <bruno@clisp.org>
14261
14262         Tests for module 'idpriv-drop'.
14263         * modules/idpriv-drop-tests: New file.
14264         * tests/test-idpriv-drop.sh: New file.
14265         * tests/test-idpriv-drop.su.sh: New file.
14266         * tests/test-idpriv-drop.c: New file.
14267
14268         New module 'idpriv-drop'.
14269         * lib/idpriv.h: New file.
14270         * lib-idpriv-drop.c: New file.
14271         * m4/idpriv.m4: New file.
14272         * modules/idpriv-drop: New file.
14273
14274 2009-06-08  Bruno Haible  <bruno@clisp.org>
14275
14276         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
14277         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14278         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14279         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14280         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14281         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14282         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14283
14284 2009-06-08  Eric Blake  <ebb9@byu.net>
14285
14286         test-strstr: use memory fence, when possible
14287         * tests/test-strstr.c (main): Use memory fence, in order to be
14288         more likely to trigger Debian bug 521737.
14289         * modules/strstr-tests (Files): Pull in additional files.
14290
14291         memchr: no longer obsolete, for wider field testing
14292         * modules/memchr (Status, Notice): Delete, this module is no
14293         longer obsolete.
14294         * modules/vasnprintf (Depends-on): Add memchr.
14295
14296 2009-06-07  Jim Meyering  <meyering@redhat.com>
14297
14298         hash: declare some functions with the warn_unused_result attribute
14299         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
14300
14301 2009-06-07  Bruno Haible  <bruno@clisp.org>
14302
14303         * tests/test-alignof.c: Don't test int64_t if it does not exist.
14304         Reported by Eric Blake.
14305
14306 2009-06-06  Eric Blake  <ebb9@byu.net>
14307
14308         test-alignof: fix typo with long double
14309         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
14310         compiler error.
14311
14312 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14313
14314         Escape non-texinfo { and }s.
14315         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14316         markup error.
14317
14318 2009-06-04  Jim Meyering  <meyering@redhat.com>
14319
14320         gitlog-to-changelog: don't infloop on an empty commit log
14321         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14322         Reported by Boris Petersen <transacid@centerim.org>.
14323
14324 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14325
14326         version-etc: extend for packagers
14327         Add three new configure options, intended for packagers:
14328           --with-packager="packager name"
14329           --with-packager-version="packager-specific version"
14330           --with-packager-bug-reports="packager bug reporting"
14331         An example with coreutils:
14332           $ ./configure \
14333             --with-packager=Gentoo \
14334             --with-packager-bug-report=http://bugs.gentoo.org/ \
14335             --with-packager-version="patchset 1.6"
14336           $ ./src/ls --version | head -n2
14337           ls (GNU coreutils) 7.1-dirty
14338           Packaged by Gentoo (patchset 1.6)
14339         Note that the bug reporting info via --help doesn't show up because
14340         coreutils uses its own custom emit_bug_reporting_address() implementation
14341         in src/system.h.  If it didn't, it'd look like:
14342           $ ./src/ls --help | tail -n4
14343           Report bugs to <bug-coreutils@gnu.org>.
14344           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14345           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14346           General help using GNU software: <http://www.gnu.org/gethelp/>.
14347         * lib/version-etc.c: Print new information, if provided.
14348         * m4/version-etc.m4: New file.
14349         * modules/version-etc (Files): Add m4/version-etc.m4.
14350         (configure.ac): Add gl_VERSION_ETC.
14351
14352 2009-05-31  Bruno Haible  <bruno@clisp.org>
14353
14354         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14355         and 'int64_t'.
14356         * modules/alignof-tests (Dependencies): Add stdint.
14357         Reported by Eric Blake.
14358
14359 2009-05-31  Bruno Haible  <bruno@clisp.org>
14360
14361         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14362         restriction due to compiler bugs.
14363         Reported by Eric Blake.
14364
14365 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14366             Bruno Haible  <bruno@clisp.org>
14367
14368         Fix test-alignof failure.
14369         * lib/alignof.h (alignof_slot): New macro.
14370         (alignof_type): New macro, with the same semantics as the previous
14371         'alignof'.
14372         (alignof): Alias to alignof_slot.
14373         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14374         check that the results are usable as constant expressions.
14375
14376 2009-05-31  Bruno Haible  <bruno@clisp.org>
14377
14378         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14379         * tests/test-memchr.c (main): Check that memchr does not read past the
14380         first occurrence of the byte.
14381         * tests/test-strstr.c (main): Update comment.
14382         Suggested by Eric Blake.
14383
14384 2009-05-30  Bruno Haible  <bruno@clisp.org>
14385
14386         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14387         detail how to use dumpbin.
14388         Reported by David Byron <dbyron@dbyron.com>.
14389
14390 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14391
14392         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14393
14394 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14395
14396         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14397
14398 2009-05-28  Bruno Haible  <bruno@clisp.org>
14399
14400         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14401         build-aux/ files.
14402
14403 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14404
14405         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14406
14407 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14408
14409         * gnulib-tool (sed_transform_main_lib_file)
14410         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14411         regexps.
14412
14413 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14414
14415         * tests/test-strstr.c: Add another self-test.
14416         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14417         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14418
14419 2009-05-23  Bruno Haible  <bruno@clisp.org>
14420
14421         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14422         change.
14423
14424 2009-05-21  Bruno Haible  <bruno@clisp.org>
14425
14426         Simplify use of mode_t varargs.
14427         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14428         uses 'mode_t' or 'int'.
14429         * lib/openat.c (openat): Likewise.
14430         * lib/open-safer.c (open_safer): Likewise.
14431         * m4/mode_t.m4: New file.
14432         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14433         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14434         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14435         * modules/open (Files): Add m4/mode_t.m4.
14436         * modules/openat (Files): Likewise.
14437         * modules/fcntl-safer (Files): Likewise.
14438         Suggested by Eric Blake.
14439
14440 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14441
14442         * doc/glibc-functions/fallocate.texi: New file.
14443         * doc/gnulib.texi: Include it.
14444
14445 2009-05-21  Eric Blake  <ebb9@byu.net>
14446             Bruno Haible  <bruno@clisp.org>
14447
14448         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14449         invocations.
14450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14451
14452 2009-05-21  Eric Blake  <ebb9@byu.net>
14453             Bruno Haible  <bruno@clisp.org>
14454
14455         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14456         include_next. Fix of 2008-11-20 commit.
14457         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14458         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14459         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14460         NEXT_MATH_H.
14461         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14462         instead of NEXT_MATH_H.
14463
14464 2009-05-21  Bruno Haible  <bruno@clisp.org>
14465
14466         Avoid redefinition warnings for SIZE_MAX.
14467         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14468         Reported by Simon Josefsson.
14469
14470 2009-05-21  Bruno Haible  <bruno@clisp.org>
14471
14472         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14473         AC_CACHE_VAL.
14474
14475 2009-05-20  Bruno Haible  <bruno@clisp.org>
14476
14477         Make zeroptr.h work on mingw.
14478         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14479         mprotect.
14480         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14481         * modules/memchr2-tests (configure.ac): Likewise.
14482         * modules/memcmp-tests (configure.ac): Likewise.
14483         * modules/memmem-tests (configure.ac): Likewise.
14484         * modules/memrchr-tests (configure.ac): Likewise.
14485         Reported by Simon Josefsson.
14486
14487 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14488
14489         * tests/test-glob.c: Include string.h for strcmp prototype.
14490
14491 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14492
14493         * modules/getdelim (Depends-on): Add explicit stdint, although it
14494         was implicitly already pulled in via realloc-posix.
14495         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14496
14497 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14498
14499         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14500         G. Christensen" <tgc@jupiterrise.com>.
14501         * m4/sys_socket_h.m4: Check for sa_family_t.
14502         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14503         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14504         * tests/test-sys_socket.c: Check that sa_family_t works.
14505
14506 2009-05-18  Eric Blake  <ebb9@byu.net>
14507
14508         maint.mk: allow gnulib_dir in VPATH build
14509         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14510
14511 2009-05-15  Jim Meyering  <meyering@redhat.com>
14512
14513         maint.mk: Give gnulib_dir a default definition.
14514         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14515         Thus, most packages no longer need to specify this variable in cfg.mk
14516
14517 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14518
14519         rename.m4: fix typos that would make non-mingw cross-configure fail
14520         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14521
14522 2009-05-13  Eric Blake  <ebb9@byu.net>
14523
14524         mmap-anon: avoid out-of-order autoconf expansion
14525         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14526         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14527         * modules/memchr-tests (Depends-on): Add extensions.
14528         * modules/memchr2-tests (Depends-on): Add extensions.
14529         * modules/memcmp-tests (Depends-on): Add extensions.
14530         * modules/memmem-tests (Depends-on): Add extensions.
14531         * modules/memrchr-tests (Depends-on): Add extensions.
14532
14533 2009-05-13  Bruno Haible  <bruno@clisp.org>
14534
14535         Make some tests ISO C 99 compliant.
14536         * tests/zerosize-ptr.h: New file.
14537         * tests/test-memchr.c: Include zerosize-ptr.h.
14538         (main): Use a zero-size object pointer instead of NULL.
14539         * tests/test-memchr2.c: Include zerosize-ptr.h.
14540         (main): Use a zero-size object pointer instead of NULL.
14541         * tests/test-memcmp.c: Include zerosize-ptr.h.
14542         (main): Use a zero-size object pointer instead of NULL.
14543         * tests/test-memmem.c: Include zerosize-ptr.h.
14544         (main): Use a zero-size object pointer instead of NULL.
14545         * tests/test-memrchr.c: Include zerosize-ptr.h.
14546         (main): Use a zero-size object pointer instead of NULL.
14547         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14548         m4/mmap-anon.m4.
14549         (Depends-on): Add getpagesize.
14550         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14551         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14552         m4/mmap-anon.m4.
14553         (Depends-on): Add getpagesize.
14554         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14555         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14556         m4/mmap-anon.m4.
14557         (Depends-on): Add getpagesize.
14558         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14559         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14560         m4/mmap-anon.m4.
14561         (Depends-on): Add getpagesize.
14562         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14563         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14564         m4/mmap-anon.m4.
14565         (Depends-on): Add getpagesize.
14566         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14567
14568 2009-05-12  Bruno Haible  <bruno@clisp.org>
14569
14570         Tests for module 'alignof'.
14571         * modules/alignof-tests: New file.
14572         * tests/test-alignof.c: New file.
14573
14574 2009-05-12  Bruno Haible  <bruno@clisp.org>
14575
14576         Fix alignof macro.
14577         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14578         vendor compilers that are always correct.
14579
14580 2009-05-12  Bruno Haible  <bruno@clisp.org>
14581
14582         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14583         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14584         not whether its fully works.
14585
14586 2009-05-12  Bruno Haible  <bruno@clisp.org>
14587
14588         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14589
14590 2009-05-12  Jim Meyering  <meyering@redhat.com>
14591
14592         * top/maint.mk: Adjust backslash alignment.
14593
14594 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14595
14596         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14597
14598 2009-05-11  Eric Blake  <ebb9@byu.net>
14599
14600         argp: avoid undefined behavior
14601         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14602         macros.
14603
14604 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14605
14606         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14607         user.name to prevent git commit from complaining.
14608
14609 2009-05-10  Bruno Haible  <bruno@clisp.org>
14610
14611         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14612         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14613         it rewrites every file name only once.
14614         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14615
14616 2009-05-08  Bruno Haible  <bruno@clisp.org>
14617
14618         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14619         instead of 'max'.
14620
14621 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14622
14623         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14624         sockaddr_storage test.
14625
14626 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14627
14628         * modules/sys_socket (Makefile.am): Substitute
14629         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14630         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14631         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14632         * tests/test-sys_socket.c: Check sockaddr_storage.
14633
14634 2009-05-08  Bruno Haible  <bruno@clisp.org>
14635
14636         New module 'alignof'.
14637         * lib/alignof.h: New file.
14638         * modules/alignof: New file.
14639
14640 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14641             Bruno Haible  <bruno@clisp.org>
14642
14643         Fix test-file-has-acl on FreeBSD.
14644         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14645         mask is implicitly added.
14646         * tests/test-file-has-acl.c: Include <signal.h>.
14647         (main): Terminate the test after 5 seconds.
14648         * modules/acl-tests (configure.ac): Check for alarm function.
14649
14650 2009-05-04  Bruno Haible  <bruno@clisp.org>
14651
14652         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14653         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14654         * modules/errno (configure.ac): Drop AC_REQUIRE.
14655         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14656         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14657
14658 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14659
14660         * modules/glob-tests: New module.
14661         * tests/test-glob.c: Add.
14662
14663 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14664
14665         * modules/fnmatch-tests: New module.
14666         * tests/test-fnmatch.c: Add.
14667
14668 2009-05-04  Eric Blake  <ebb9@byu.net>
14669
14670         maint: make the new no-submodule-changes rule VPATH-safe
14671         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14672
14673 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14674             Bruno Haible  <bruno@clisp.org>
14675
14676         acl: Fix infinite loop on FreeBSD.
14677         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14678         of return value from acl_get_entry.
14679         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14680         Likewise.
14681
14682 2009-05-03  Bruno Haible  <bruno@clisp.org>
14683
14684         * lib/acl-internal.h (acl_entries): Clarify return value.
14685         * lib/acl_entries.c (acl_entries): Likewise.
14686
14687 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14688
14689         Bug fix in acl module.
14690         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14691
14692 2009-05-03  Bruno Haible  <bruno@clisp.org>
14693
14694         Create gperf-generated file in the source dir, not in the build dir.
14695         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14696         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14697         * modules/unicase/locale-language (unicase/locale-languages.h):
14698         Likewise.
14699         * modules/unicase/special-casing (unicase/special-casing-table.h):
14700         Likewise.
14701         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14702         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14703         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14704         Reported by Ralf Wildenhues.
14705
14706 2009-05-03  Bruno Haible  <bruno@clisp.org>
14707
14708         * modules/fnmatch (Description, configure.ac): Taken from
14709         fnmatch-posix.
14710         * modules/fnmatch-posix: Turn into a symbolic reference to the
14711         'fnmatch' module, and deprecate.
14712         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14713
14714 2009-05-03  Bruno Haible  <bruno@clisp.org>
14715
14716         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14717         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14718         Reported by Ralf Wildenhues.
14719
14720 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14721
14722         * m4/fnmatch.m4: Fix fnmatch re-define.
14723
14724 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14725
14726         priv-set: new module and tests; adapt write-any-file
14727         * lib/priv-set.c: New file.
14728         * lib/priv-set.h: New file.
14729         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14730         * lib/write-any-file.c: Simplify by using priv-set module.
14731         * m4/priv-set.m4: New file.
14732         * modules/priv-set: New file.
14733         * modules/unlinkdir: Add dependency on priv-set module.
14734         * modules/write-any-file: Likewise.
14735
14736         Tests for module 'priv-set'.
14737         * modules/priv-set-tests: New file.
14738         * tests/test-priv-set.c: New file.
14739
14740 2009-05-03  Jim Meyering  <meyering@redhat.com>
14741             Bruno Haible  <bruno@clisp.org>
14742
14743         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14744         use the converted UTF-8 variant of the name instead.
14745
14746 2009-05-03  Jim Meyering  <meyering@redhat.com>
14747
14748         tests: tighten some getdate tests
14749         * tests/test-getdate.c (main): Tighten tests: require equality,
14750         not just greater than.  Set TZ envvar to UTC0.
14751
14752 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14753
14754         getdate: correctly interpret "next monday" when run on a Monday
14755         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14756         that e.g., "next tues" (when run on a tuesday) results in a date
14757         that is one week in the future, and not today's date.
14758         I.e., add a week when the wday is the same as the current one.
14759         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14760         and earlier by Martin Bernreuther and Jan Minář.
14761         * tests/test-getdate.c (main): Check that "next DAY" is always in
14762         the future and that "last DAY" is always in the past.
14763
14764 2009-05-02  Jim Meyering  <meyering@redhat.com>
14765
14766         build: ensure that a release build fails when a submodule is unclean
14767         * top/maint.mk (no-submodule-changes): New rule.
14768         (alpha beta major): Depend on it.
14769
14770 2009-05-02  Bruno Haible  <bruno@clisp.org>
14771
14772         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14773         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14774         shell variable gl_fnmatch_required to detect which variant is
14775         requested.
14776         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14777         gl_FUNC_FNMATCH_POSIX.
14778         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14779         exclude fnmatch-posix.
14780
14781 2009-05-02  Bruno Haible  <bruno@clisp.org>
14782
14783         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14784         * modules/mbsrtowcs (License): Change to LGPLv2+.
14785         * modules/strnlen1 (License): Likewise.
14786         Reported by Simon Josefsson.
14787
14788 2009-05-02  Bruno Haible  <bruno@clisp.org>
14789
14790         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14791         "cross".
14792         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14793         gnulib-tool was called with option --source-base=lib.
14794
14795 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14796
14797         Use automake *-local hooks without commands, for extensibility.
14798         * modules/localcharset (Makefile.am): Rename install-exec-local
14799         rule to install-exec-localcharset, and make it a prerequisite of
14800         install-exec-local.  Likewise, rename the uninstall-local rule to
14801         uninstall-localcharset, and make it a prerequisite of the former.
14802
14803 2009-05-01  Bruno Haible  <bruno@clisp.org>
14804
14805         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14806         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14807         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14808         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14809         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14810         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14811         m4/locale-zh.m4, m4/codeset.m4.
14812
14813         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14814         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14815         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14816         m4/locale-zh.m4.
14817
14818         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14819         REPLACE_WCRTOMB if mbstate_t must be replaced.
14820         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14821         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14822
14823 2009-05-01  Bruno Haible  <bruno@clisp.org>
14824
14825         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14826         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14827         dngettext, dcngettext, textdomain, bindtextdomain,
14828         bind_textdomain_codeset): Undefine before redefining.
14829
14830 2009-04-30  Bruno Haible  <bruno@clisp.org>
14831
14832         Fix bug introduced on 2009-04-25.
14833         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14834         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14835         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14836         is defined.
14837         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14838         is defined.
14839         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14840         is defined.
14841         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14842
14843 2009-04-28  Bruno Haible  <bruno@clisp.org>
14844
14845         Comment tweaks.
14846         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14847         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14848         * lib/unicase.h (u*_casexfrm): Likewise.
14849         Reported by Paolo Bonzini.
14850
14851 2009-04-28  Bruno Haible  <bruno@clisp.org>
14852
14853         Fix a compilation error.
14854         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14855         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14856         Reported by Jim Meyering.
14857
14858 2009-04-27  Bruno Haible  <bruno@clisp.org>
14859
14860         New module 'libunistring'.
14861         * modules/libunistring: New file.
14862         * m4/libunistring.m4: New file.
14863         * MODULES.html.sh (Unicode string functions): Add it.
14864
14865 2009-04-27  Eric Blake  <ebb9@byu.net>
14866
14867         maint.mk: allow package-specific header to provide <config.h>
14868         * top/maint.mk (sc_require_config_h): New variable.
14869         (sc_require_config_h, sc_require_config_h_first): Use it.
14870
14871 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14872
14873         * top/maint.mk (sc_avoid_if_before_free): Except
14874         useless-if-before-free script.
14875
14876 2009-04-27  Eric Blake  <ebb9@byu.net>
14877
14878         maintainer-makefile: depend on all required helper scripts
14879         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14880         useless-if-before-free.
14881         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14882         version, rather than assuming gnulib checkout is available.
14883         Reported by Simen Josefsson.
14884
14885 2009-04-26  Bruno Haible  <bruno@clisp.org>
14886
14887         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14888         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14889         "../" or "..".
14890
14891 2009-04-26  Bruno Haible  <bruno@clisp.org>
14892
14893         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14894         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14895         AC_LIB_HAVE_LINKFLAGS.
14896
14897 2009-04-26  Bruno Haible  <bruno@clisp.org>
14898
14899         Simplify calling convention of u*_conv_from_encoding.
14900         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14901         u32_conv_from_encoding): Expect a resultbuf argument and return the
14902         result directly as a pointer.
14903         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14904         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14905         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14906         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14907         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14908         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14909         Update.
14910         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14911         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14912         * lib/vasnprintf.c (VASNPRINTF): Update.
14913         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14914         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14915         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14916         * NEWS: Mention the change.
14917
14918 2009-04-26  Bruno Haible  <bruno@clisp.org>
14919
14920         Simplify calling convention of u*_conv_to_encoding.
14921         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14922         u32_conv_to_encoding): Expect a resultbuf argument and return the
14923         result directly as a pointer.
14924         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14925         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14926         freeing scaled_offsets if mem_iconveha failed.
14927         * lib/unicase/u-casexfrm.h (FUNC): Update.
14928         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14929         * lib/vasnprintf.c (VASNPRINTF): Update.
14930         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14931         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14932         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14933         * NEWS: Mention the change.
14934
14935 2009-04-26  Bruno Haible  <bruno@clisp.org>
14936
14937         Avoid test failures on AIX and OSF/1.
14938         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14939         malloc(0).
14940         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14941         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14942         Likewise.
14943         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14944         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14945         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14946         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14947         * doc/posix-functions/malloc.texi: Document the portability problem
14948         related to malloc(0).
14949
14950 2009-04-26  Bruno Haible  <bruno@clisp.org>
14951
14952         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14953         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14954         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14955
14956 2009-04-25  Bruno Haible  <bruno@clisp.org>
14957
14958         Avoid link error when creating a namespace clean library.
14959         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14960         as macro with arguments if already defined as an alias.
14961         * lib/signbitf.c (gl_signbitf): Don't undefine.
14962         * lib/signbitd.c (gl_signbitd): Don't undefine.
14963         * lib/signbitl.c (gl_signbitl): Don't undefine.
14964
14965 2009-04-25  Jim Meyering  <meyering@redhat.com>
14966
14967         vc-list-files: fix another quoting bug
14968         * build-aux/vc-list-files: Avoid sed backslash expansion
14969         of pathological directory names.
14970
14971 2009-04-25  Eric Blake  <ebb9@byu.net>
14972
14973         vc-list-files: fix shell quoting error
14974         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14975         timestamp.
14976
14977 2009-04-25  Jim Meyering  <meyering@redhat.com>
14978
14979         vc-list-files: restore lost functionality with subdir argument
14980         * build-aux/vc-list-files: When given a non-"." sub-directory
14981         argument, substitute the $dir/ prefix back onto each resulting name.
14982         Otherwise, coreutils' root_tests check would fail.
14983
14984 2009-04-24  Eric Blake  <ebb9@byu.net>
14985
14986         vc-list-files: ignore git symlinks
14987         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14988         than ls-files, to ignore git symlinks.
14989
14990         maint.mk: import improvements from m4
14991         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14992         (move_if_change): Delete unused macro.
14993         (news-date-check, vc-diff-check): Support VPATH builds.
14994         (announcement): Likewise.  Split --bootstrap-tools list...
14995         (boostrap-tools): ...into separate list, which can be overridden
14996         in cfg.mk.
14997         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14998         requiring dependency on useless-if-before-free module.
14999         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
15000         Support VPATH builds.
15001
15002 2009-04-24  Jim Meyering  <meyering@redhat.com>
15003
15004         maint.mk: remove coreutils-specific rules and variables
15005         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
15006         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
15007         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
15008
15009         maint.mk: remove obsolete rule
15010         * top/maint.mk (rel-check): Remove rule.
15011         (WGET, WGETFLAGS): Remove now-unused variables.
15012
15013 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15014
15015         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
15016         consistency.
15017
15018         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
15019         '$(PATH_SEPARATOR)' instead of ':'.
15020
15021 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15022
15023         * lib/getopt1.c (main): Use 'const' for static array.
15024
15025 2009-04-24  Simon Josefsson  <simon@josefsson.org>
15026
15027         * top/maint.mk: Sync with coreutils.
15028         * NEWS: Explain incompatibilities.
15029
15030 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15031             Bruno Haible  <bruno@clisp.org>
15032
15033         Fix cross-compilation results.
15034         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
15035         statement, as third argument of AC_TRY_RUN.
15036         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15037         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
15038         Likewise.
15039         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15040         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15041         Likewise.
15042         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15043         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
15044         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
15045
15046 2009-04-20  Bruno Haible  <bruno@clisp.org>
15047
15048         Avoid test failure on mingw.
15049         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
15050
15051 2009-04-20  Bruno Haible  <bruno@clisp.org>
15052
15053         Avoid compilation error on mingw.
15054         * modules/localename-tests (Depends-on): Add locale.
15055
15056 2009-04-19  Bruno Haible  <bruno@clisp.org>
15057
15058         Support for building a shared library on Windows platforms.
15059         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
15060         (main): Test the presence of UNINORM_NFC here.
15061         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
15062         (main): Test the presence of UNINORM_NFD here.
15063         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
15064         (main): Test the presence of UNINORM_NFKC here.
15065         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
15066         (main): Test the presence of UNINORM_NFKD here.
15067
15068 2009-04-19  Bruno Haible  <bruno@clisp.org>
15069
15070         Avoid a compiler warning.
15071         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
15072         Change type of variable 'sequence'.
15073
15074 2009-04-19  Bruno Haible  <bruno@clisp.org>
15075
15076         * modules/configmake (Makefile.am): When the contents of configmake.h
15077         does not change, arrange to preserve its modification time.
15078
15079 2009-04-17  Simon Josefsson  <simon@josefsson.org>
15080
15081         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
15082         gettext domain.
15083
15084 2009-04-16  Jim Meyering  <meyering@redhat.com>
15085
15086         useless-if-before-free: improve conversion code
15087         * build-aux/useless-if-before-free: Adjust code-in-comment to match
15088         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
15089
15090 2009-04-14  Bruno Haible  <bruno@clisp.org>
15091
15092         * modules/fcntl (Depends-on): Add extensions.
15093         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
15094
15095 2009-04-12  Ben Pfaff  <blp@gnu.org>
15096
15097         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
15098         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
15099
15100 2009-03-20  Ben Pfaff  <blp@gnu.org>
15101
15102         Make rename replace existing destinations on Windows.
15103         * m4/rename.m4: Add test for Mingw.
15104         * lib/rename.c: Add rename replacement that uses MoveFileEx with
15105         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
15106         * doc/posix-functions/rename.texi: Document.
15107
15108 2009-04-10  Bruno Haible  <bruno@clisp.org>
15109
15110         New include file "iconveh.h".
15111         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
15112         * lib/striconveh.h: Include it.
15113         (enum iconv_ilseq_handler): Remove definition.
15114         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
15115         striconveh.h.
15116         * lib/striconveha.c: Include striconveh.h.
15117         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
15118         * modules/striconveh (Files): Add lib/iconveh.h.
15119         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
15120         lib/striconveh.h.
15121
15122 2009-04-10  Bruno Haible  <bruno@clisp.org>
15123
15124         * lib/uniconv.h: Update comment.
15125
15126 2009-04-10  Bruno Haible  <bruno@clisp.org>
15127
15128         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
15129         always.
15130         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
15131         * lib/unistr/u16-mbtouc-aux.c: Likewise.
15132         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
15133         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
15134         "unistring-notinline.h", so that the function gets defined always.
15135         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
15136         * lib/unistr/u8-uctomb.c: Likewise.
15137         * lib/unistr/u16-mbtouc.c: Likewise.
15138         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
15139         * lib/unistr/u16-uctomb.c: Likewise.
15140         * lib/unistr/u32-mbtouc.c: Likewise.
15141         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
15142         * lib/unistr/u32-uctomb.c: Likewise.
15143
15144 2009-04-10  Bruno Haible  <bruno@clisp.org>
15145
15146         Mark 'utime' obsolete.
15147         * modules/utime (Status, Notice): New sections.
15148         Suggested by Jim Meyering.
15149
15150         Fix cross-compile guess for utime test.
15151         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
15152         autoconf.
15153         * doc/posix-functions/utime.texi: Give more precisions.
15154         Reported by Jan <ipif@ymail.com>.
15155
15156 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
15157
15158         filevercmp: correct today's change
15159         * lib/filevercmp.c: Also handle coreutils' test inputs.
15160         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
15161
15162         Fix regression in 'filevercmp' module. Thanks Sven Joachim
15163         for reporting it.
15164         * lib/filevercmp.c: Special handle for "", "." and "..".
15165         * tests/test-filevercmp.c: Enlarge the set suite.
15166
15167 2009-04-07  Jim Meyering  <meyering@redhat.com>
15168
15169         useless-if-before-free: show how to remove braced useless free, too
15170         * build-aux/useless-if-before-free: still only in a comment, though.
15171
15172 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
15173
15174         maint.mk: import changes to syntax-check macros from coreutils
15175         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
15176         Use them in the relevant macros.
15177
15178 2009-04-06  Bruno Haible  <bruno@clisp.org>
15179
15180         Fix unportable use of bit-fields.
15181         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
15182         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
15183         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
15184
15185 2009-04-06  Bruno Haible  <bruno@clisp.org>
15186
15187         Avoid test failures on AIX and OSF/1.
15188         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
15189         that malloc(0) = NULL.
15190         * tests/unicase/test-u8-tolower.c (check): Likewise.
15191         * tests/unicase/test-u8-totitle.c (check): Likewise.
15192         * tests/unicase/test-u8-toupper.c (check): Likewise.
15193         * tests/unicase/test-u16-casefold.c (check): Likewise.
15194         * tests/unicase/test-u16-tolower.c (check): Likewise.
15195         * tests/unicase/test-u16-totitle.c (check): Likewise.
15196         * tests/unicase/test-u16-toupper.c (check): Likewise.
15197         * tests/unicase/test-u32-casefold.c (check): Likewise.
15198         * tests/unicase/test-u32-tolower.c (check): Likewise.
15199         * tests/unicase/test-u32-totitle.c (check): Likewise.
15200         * tests/unicase/test-u32-toupper.c (check): Likewise.
15201         * tests/uninorm/test-u8-nfc.c (check): Likewise.
15202         * tests/uninorm/test-u8-nfd.c (check): Likewise.
15203         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
15204         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
15205         * tests/uninorm/test-u16-nfc.c (check): Likewise.
15206         * tests/uninorm/test-u16-nfd.c (check): Likewise.
15207         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
15208         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
15209         * tests/uninorm/test-u32-nfc.c (check): Likewise.
15210         * tests/uninorm/test-u32-nfd.c (check): Likewise.
15211         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
15212         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
15213
15214 2009-04-05  Bruno Haible  <bruno@clisp.org>
15215
15216         Work around an autoconf limitation.
15217         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
15218         comment line if it would be longer than 3 KB.
15219
15220 2009-04-05  Bruno Haible  <bruno@clisp.org>
15221
15222         Avoid test failure with libiconv-1.13.
15223         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
15224         of the expected test results.
15225
15226 2009-04-05  Bruno Haible  <bruno@clisp.org>
15227
15228         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
15229         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
15230         that it should be installed.
15231
15232 2009-04-05  Bruno Haible  <bruno@clisp.org>
15233
15234         * gnulib-tool: New option --copy-file.
15235         (func_usage): Document it.
15236         (func_dest_tmpfilename): Moved out of func_import.
15237         (func_add_file, func_update_file): New functions, extracted from
15238         func_import.
15239         (func_import): Update.
15240
15241 2009-04-05  Karl Berry  <karl@gnu.org>
15242
15243         * README: prominently mention gnulib-tool.
15244         Rearrange sections so getting the code is near the top.
15245
15246 2009-04-05  Bruno Haible  <bruno@clisp.org>
15247
15248         * lib/unicase.h: Mention u*_cmp2.
15249         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15250         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
15251         * lib/unicase/ulc-casecmp.c: Likewise.
15252         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
15253         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
15254         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
15255         unistr/u8-cmp.
15256         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
15257         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
15258         unistr/u16-cmp.
15259         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
15260         unistr/u32-cmp.
15261
15262         * lib/uninorm.h: Mention u*_cmp2.
15263         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15264         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
15265         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
15266         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
15267         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
15268         unistr/u8-cmp.
15269         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
15270         unistr/u16-cmp.
15271         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
15272         unistr/u32-cmp.
15273
15274         New module 'unistr/u32-cmp2'.
15275         * lib/unistr/u32-cmp2.c: New file.
15276         * modules/unistr/u32-cmp2: New file.
15277
15278         New module 'unistr/u16-cmp2'.
15279         * lib/unistr/u16-cmp2.c: New file.
15280         * modules/unistr/u16-cmp2: New file.
15281
15282         New module 'unistr/u8-cmp2'.
15283         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
15284         * lib/unistr/u8-cmp2.c: New file.
15285         * lib/unistr/u-cmp2.h: New file.
15286         * modules/unistr/u8-cmp2: New file.
15287
15288 2009-04-05  Bruno Haible  <bruno@clisp.org>
15289
15290         * lib/unictype.h (uc_property_is_valid): New macro.
15291         * tests/unictype/test-pr_byname.c (main): Use it.
15292
15293         * lib/unistr.h: Doc fixes.
15294         * lib/uniconv.h: Doc fixes.
15295         * lib/unictype.h: Doc fixes.
15296
15297 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
15298
15299         Port coreutils 7.2 to Solaris 8.
15300
15301         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
15302         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
15303         for Solaris 8.  This is a bit of a hack, as it means it's the
15304         caller's responsibility to add -lnsl if needed, but most likely it
15305         won't be needed since only getaddrinfo uses this and getaddrinfo
15306         isn't needed on Solaris 8.
15307
15308         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
15309         problem to Solaris 8 encountered with coreutils 7.2, which
15310         resulted in a message "fnmatch.c:292: warning: passing argument 4
15311         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15312         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15313
15314 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15315
15316         * m4/ld-version-script.m4: Add FIXME comment.
15317
15318 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15319
15320         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15321         SOVERSION variable.
15322
15323 2009-04-02  Bruno Haible  <bruno@clisp.org>
15324
15325         * Makefile (info, html, dvi, pdf): Combine the rules.
15326         Suggested by Jim Meyering.
15327
15328 2009-04-01  Bruno Haible  <bruno@clisp.org>
15329
15330         * Makefile (info, html, dvi, pdf): New targets.
15331         Reported by Reuben Thomas <rrt@sc3d.org>.
15332
15333 2009-04-01  Bruno Haible  <bruno@clisp.org>
15334
15335         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15336         can be put into PATH.
15337         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15338
15339 2009-04-01  Bruno Haible  <bruno@clisp.org>
15340
15341         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15342
15343 2009-04-01  Bruno Haible  <bruno@clisp.org>
15344
15345         Rename module 'visibility'.
15346         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15347         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15348         * doc/gnulib.texi: Update.
15349         * MODULES.html.sh (Misc): Update.
15350         * NEWS: Mention the change.
15351
15352 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15353
15354         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15355         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15356         Eric Blake <ebb9@byu.net> for review.
15357         * MODULES.html.sh: Add lib-msvc-compat.
15358         * doc/gnulib.texi: Link to new section.
15359         * m4/ld-output-def.m4: New file.
15360         * doc/ld-output-def.texi: New file.
15361
15362 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15363
15364         Rename ld-version-script to lib-symbol-versions.  Suggested by
15365         Bruno Haible <bruno@clisp.org>.
15366         * modules/ld-version-script: Renamed to lib-symbol-versions.
15367         * doc/ld-version-script.texi: Fix module name.
15368         * MODULES.html.sh: Add lib-symbol-versions.
15369
15370 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15371
15372         * modules/u64-tests: New file.
15373         * tests/test-u64.c: New file.
15374
15375 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15376
15377         * MODULES.html.sh: Mention u64.
15378         * modules/u64: New module.
15379         * modules/crypto/sha512: Depend on u64 module instead of providing
15380         u64.h.
15381
15382 2009-03-27  Eric Blake  <ebb9@byu.net>
15383
15384         test-strerror: make debugging EAI_SYSTEM easier
15385         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15386         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15387         failure was EAI_SYSTEM.
15388
15389 2009-03-25  Bruno Haible  <bruno@clisp.org>
15390
15391         Fix a problem with --enable-relocatable on Solaris 7.
15392         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15393         since 2008-02-24.
15394
15395 2009-03-25  Eric Blake  <ebb9@byu.net>
15396
15397         test-sockets: avoid gcc warning
15398         * tests/test-sockets.c (main): Silence compiler warning.
15399
15400 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15401
15402         New modules nproc, pthread, contributed by Glen Lenker.
15403
15404         * MODULES.html.sh: Add pthread, nproc.
15405         * lib/nproc.c: New file.
15406         * lib/nproc.h: New file.
15407         * lib/pthread.in.h: New file.
15408         * m4/pthread.m4: New file.
15409         * modules/nproc: New file.
15410         * modules/pthread: New file.
15411
15412 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15413
15414         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15415         New variable.
15416
15417 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15418
15419         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15420         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15421         * tests/test-filevercmp.c: Add tests for backup suffixes.
15422
15423 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15424
15425         * modules/stdlib (Depends-on): Add stdint, needed when defining
15426         struct random_data on, for example, HP-UX 10.20.  Reported by
15427         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15428
15429 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15430
15431         * lib/readline.c (readline): Call fflush on stdout after printing
15432         prompt.
15433
15434 2009-03-20  Bruno Haible  <bruno@clisp.org>
15435
15436         Remove dependency from 'close' module to -lws2_32 on native Windows.
15437         * lib/close-hook.h: New file.
15438         * lib/close-hook.c: New file.
15439         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15440         w32sock.h.
15441         (_gl_close_fd_maybe_socket): Remove function.
15442         (rpl_close): Invoke execute_all_close_hooks instead of
15443         _gl_close_fd_maybe_socket.
15444         * lib/sockets.c: Include close-hook.h, w32sock.h.
15445         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15446         (close_sockets_hook): New variable.
15447         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15448         (gl_sockets_cleanup): Unregister it.
15449         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15450         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15451         * modules/close-hook: New file.
15452         * modules/close (Files): Remove lib/w32sock.h.
15453         (Depends-on): Add close-hook.
15454         (Link): Remove section.
15455         * modules/sockets (Files): Add lib/w32sock.h.
15456         (Depends-on): Add close-hook.
15457         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15458         invocation.
15459         * NEWS: Mention that LIB_CLOSE is gone.
15460
15461 2009-03-23  Eric Blake  <ebb9@byu.net>
15462
15463         signal-tests: test previous patch
15464         * tests/test-signal.c: New file.
15465         * modules/signal-tests: Likewise.
15466
15467         signal.h: always support 'volatile sig_atomic_t'
15468         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15469         (gl_SIGNAL_H_DEFAULTS): Add a default.
15470         * modules/signal (Makefile.am): Substitute if needed.
15471         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15472         users can blindly add volatile.
15473         * doc/posix-headers/signal.texi (signal.h): Document it.
15474         Reported by Matthew Woehlke.
15475
15476 2009-03-23  Jim Meyering  <meyering@redhat.com>
15477
15478         pathmax: PATH_MAX: use pathconf only when available
15479         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15480         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15481         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15482         This avoids a link failure in a PSP cross-compilation environment
15483         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15484
15485         * lib/vasnprintf.c (divide): Fix typo in comment.
15486
15487 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15488
15489         * gnulib-tool (func_filter_filelist): Fix comment.
15490
15491 2009-03-20  Bruno Haible  <bruno@clisp.org>
15492
15493         Make sockets.h self-contained.
15494         * lib/sockets.c: Include sockets.h first.
15495         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15496
15497 2009-03-19  Eric Blake  <ebb9@byu.net>
15498
15499         doc: mention more functions added in cygwin 1.7.0
15500         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15501         addition.
15502         * doc/posix-functions/log2f.texi: Likewise.
15503
15504 2009-03-19  Jim Meyering  <meyering@redhat.com>
15505
15506         fsusage: avoid syntax error due to statement-before-declaration
15507         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15508         after all declarations.  Reported by Matthew Woehlke in
15509         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15510
15511 2009-03-18  Eric Blake  <ebb9@byu.net>
15512
15513         build-aux/compile: sync from automake
15514         * build-aux/compile: New file, from automake.
15515         * config/srclist.txt: Mention build-aux/compile.
15516
15517 2009-03-17  Bruno Haible  <bruno@clisp.org>
15518
15519         * lib/git-merge-changelog.c: Fix typo in comment.
15520         Reported by Reuben Thomas <rrt@sc3d.org>.
15521
15522 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15523
15524         * m4/regex.m4: update and improve help for
15525         --without-included-regex.
15526
15527 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15528
15529         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15530         failure on missing include files.
15531
15532 2009-03-17  Eric Blake  <ebb9@byu.net>
15533
15534         doc: mention more functions added in cygwin 1.7.0
15535         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15536         addition.
15537         * doc/posix-functions/fwscanf.texi: Likewise.
15538         * doc/posix-functions/swprintf.texi: Likewise.
15539         * doc/posix-functions/swscanf.texi: Likewise.
15540         * doc/posix-functions/vfwprintf.texi: Likewise.
15541         * doc/posix-functions/vfwscanf.texi: Likewise.
15542         * doc/posix-functions/vswprintf.texi: Likewise.
15543         * doc/posix-functions/vswscanf.texi: Likewise.
15544         * doc/posix-functions/vwprintf.texi: Likewise.
15545         * doc/posix-functions/vwscanf.texi: Likewise.
15546         * doc/posix-functions/wcscasecmp.texi: Likewise.
15547         * doc/posix-functions/wcsdup.texi: Likewise.
15548         * doc/posix-functions/wcsftime.texi: Likewise.
15549         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15550         * doc/posix-functions/wprintf.texi: Likewise.
15551         * doc/posix-functions/wscanf.texi: Likewise.
15552         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15553
15554 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15555
15556         maint.mk: really add $(AM_MAKEFLAGS)
15557         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15558         was inadvertently omitted in the last commit.
15559         Spotted by Bruno Haible.
15560
15561         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15562         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15563         $(AM_MAKEFLAGS)' rather than plain `make'.
15564
15565         gnulib-tool: execute $MAKE not make
15566         * gnulib-tool: Default $MAKE to 'make'.
15567         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15568         than make.  Initialize $MAKE in the do-autobuild script.
15569
15570         gnulib-tool: use $MAKE not make in generated files
15571         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15572         make, in generated files.  Initialize $MAKE in the do-autobuild
15573         script.
15574
15575         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15576
15577         GNUmakefile: disable parallelism only for multiple, recursive targets
15578         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15579         additions in the Makefile.
15580         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15581         by Automake.
15582         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15583         are listed on the command line and at least one of them is
15584         listed in $(ALL_RECURSIVE_TARGETS).
15585
15586 2009-03-14  Bruno Haible  <bruno@clisp.org>
15587
15588         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15589         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15590         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15591         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15592         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15593         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15594         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15595         unistr/u8-uctomb.
15596         * modules/unistr/u8-strchr (Depends-on): Likewise.
15597         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15598         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15599         unistr/u16-uctomb.
15600         * modules/unistr/u16-strchr (Depends-on): Likewise.
15601         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15602
15603 2009-03-12  Bruno Haible  <bruno@clisp.org>
15604
15605         Work around select() bug on Interix 3.5.
15606         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15607         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15608         * m4/select.m4: New file.
15609         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15610         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15611         * modules/select (Files): Add m4/select.m4.
15612         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15613         * modules/nanosleep (Depends-on): Add select.
15614         * modules/poll (Depends-on): Likewise.
15615         * doc/posix-functions/select.texi: Mention the Interix bug.
15616         Reported by Markus Duft <mduft@gentoo.org>.
15617
15618         * lib/select.c: Renamed from lib/winsock-select.c.
15619         * modules/select (Files): Add lib/select.c, remove
15620         lib/winsock-select.c.
15621         (configure.ac): Update.
15622
15623 2009-03-12  Jim Meyering  <meyering@redhat.com>
15624
15625         avoid gcc warnings about unused macro definitions
15626         * lib/readtokens.c (STREQ): Remove unused definition.
15627         * lib/xmalloc.c (SIZE_MAX): Likewise.
15628         * lib/openat-die.c (N_): Likewise.
15629         * lib/mountlist.c (SIZE_MAX): Remove definition.
15630         Instead, include <stdint.h>.
15631         * lib/readutmp.c: Likewise.
15632         * modules/readutmp (Depends-on): Add stdint.
15633         * modules/mountlist (Depends-on): Add stdint.
15634         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15635
15636 2009-03-10  Bruno Haible  <bruno@clisp.org>
15637
15638         Tests for module 'mbmemcasecoll'.
15639         * modules/mbmemcasecoll-tests: New file.
15640         * tests/test-mbmemcasecoll1.sh: New file.
15641         * tests/test-mbmemcasecoll2.sh: New file.
15642         * tests/test-mbmemcasecoll3.sh: New file.
15643         * tests/test-mbmemcasecoll.c: New file.
15644
15645         New module 'mbmemcasecoll'.
15646         * lib/mbmemcasecoll.h: New file.
15647         * lib/mbmemcasecoll.c: New file.
15648         * modules/mbmemcasecoll: New file.
15649
15650         * tests/test-mbmemcasecmp.h: New file, extracted from
15651         tests/test-mbmemcasecmp.c.
15652         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15653         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15654         (main): Update.
15655         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15656
15657 2009-03-09  Bruno Haible  <bruno@clisp.org>
15658
15659         Tests for module 'mbmemcasecmp'.
15660         * modules/mbmemcasecmp-tests: New file.
15661         * tests/test-mbmemcasecmp1.sh: New file.
15662         * tests/test-mbmemcasecmp2.sh: New file.
15663         * tests/test-mbmemcasecmp3.sh: New file.
15664         * tests/test-mbmemcasecmp.c: New file.
15665
15666         New module 'mbmemcasecmp'.
15667         * lib/mbmemcasecmp.h: New file.
15668         * lib/mbmemcasecmp.c: New file.
15669         * modules/mbmemcasecmp: New file.
15670
15671 2009-03-09  Bruno Haible  <bruno@clisp.org>
15672
15673         Tests for module 'unicase/ulc-casecoll'.
15674         * modules/unicase/ulc-casecoll-tests: New file.
15675         * tests/unicase/test-ulc-casecoll1.sh: New file.
15676         * tests/unicase/test-ulc-casecoll2.sh: New file.
15677         * tests/unicase/test-ulc-casecoll.c: New file.
15678
15679         New module 'unicase/ulc-casecoll'.
15680         * lib/unicase.h (ulc_casecoll): New declaration.
15681         * lib/unicase/ulc-casecoll.c: New file.
15682         * modules/unicase/ulc-casecoll: New file.
15683
15684         New module 'unicase/ulc-casexfrm'.
15685         * lib/unicase.h (ulc_casexfrm): New declaration.
15686         * lib/unicase/ulc-casexfrm.c: New file.
15687         * modules/unicase/ulc-casexfrm: New file.
15688
15689 2009-03-09  Bruno Haible  <bruno@clisp.org>
15690
15691         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15692         invocations.
15693
15694         * m4/mbscasecmp.m4: Remove file.
15695         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15696         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15697
15698         * m4/mbscasestr.m4: Remove file.
15699         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15700         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15701
15702         * m4/mbschr.m4: Remove file.
15703         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15704         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15705
15706         * m4/mbscspn.m4: Remove file.
15707         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15708         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15709
15710         * m4/mbslen.m4: Remove file.
15711         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15712         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15713
15714         * m4/mbsncasecmp.m4: Remove file.
15715         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15716         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15717
15718         * m4/mbsnlen.m4: Remove file.
15719         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15720         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15721
15722         * m4/mbspbrk.m4: Remove file.
15723         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15724         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15725
15726         * m4/mbspcasecmp.m4: Remove file.
15727         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15728         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15729
15730         * m4/mbsrchr.m4: Remove file.
15731         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15732         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15733
15734         * m4/mbssep.m4: Remove file.
15735         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15736         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15737
15738         * m4/mbsspn.m4: Remove file.
15739         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15740         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15741
15742         * m4/mbsstr.m4: Remove file.
15743         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15744         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15745
15746         * m4/mbstok_r.m4: Remove file.
15747         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15748         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15749
15750         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15751
15752         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15753         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15754
15755         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15756
15757 2009-03-08  Bruno Haible  <bruno@clisp.org>
15758
15759         Tests for module 'unicase/ulc-casecmp'.
15760         * modules/unicase/ulc-casecmp-tests: New file.
15761         * tests/unicase/test-ulc-casecmp1.sh: New file.
15762         * tests/unicase/test-ulc-casecmp2.sh: New file.
15763         * tests/unicase/test-ulc-casecmp.c: New file.
15764
15765         New module 'unicase/ulc-casecmp'.
15766         * lib/unicase.h (ulc_casecmp): New declaration.
15767         * lib/unicase/ulc-casecmp.c: New file.
15768         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15769         'const SRC_UNIT *'.
15770         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15771         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15772         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15773         * modules/unicase/ulc-casecmp: New file.
15774
15775         Tests for module 'unicase/u32-is-cased'.
15776         * modules/unicase/u32-is-cased-tests: New file.
15777         * tests/unicase/test-u32-is-cased.c: New file.
15778
15779         Tests for module 'unicase/u16-is-cased'.
15780         * modules/unicase/u16-is-cased-tests: New file.
15781         * tests/unicase/test-u16-is-cased.c: New file.
15782
15783         Tests for module 'unicase/u8-is-cased'.
15784         * modules/unicase/u8-is-cased-tests: New file.
15785         * tests/unicase/test-u8-is-cased.c: New file.
15786         * tests/unicase/test-is-cased.h: New file.
15787
15788         New module 'unicase/u32-is-cased'.
15789         * lib/unicase/u32-is-cased.c: New file.
15790         * modules/unicase/u32-is-cased: New file.
15791
15792         New module 'unicase/u16-is-cased'.
15793         * lib/unicase/u16-is-cased.c: New file.
15794         * modules/unicase/u16-is-cased: New file.
15795
15796         New module 'unicase/u8-is-cased'.
15797         * lib/unicase/u8-is-cased.c: New file.
15798         * lib/unicase/u-is-cased.h: New file.
15799         * modules/unicase/u8-is-cased: New file.
15800
15801         Tests for module 'unicase/u32-is-casefolded'.
15802         * modules/unicase/u32-is-casefolded-tests: New file.
15803         * tests/unicase/test-u32-is-casefolded.c: New file.
15804
15805         Tests for module 'unicase/u16-is-casefolded'.
15806         * modules/unicase/u16-is-casefolded-tests: New file.
15807         * tests/unicase/test-u16-is-casefolded.c: New file.
15808
15809         Tests for module 'unicase/u8-is-casefolded'.
15810         * modules/unicase/u8-is-casefolded-tests: New file.
15811         * tests/unicase/test-u8-is-casefolded.c: New file.
15812         * tests/unicase/test-is-casefolded.h: New file.
15813
15814         New module 'unicase/u32-is-casefolded'.
15815         * lib/unicase/u32-is-casefolded.c: New file.
15816         * modules/unicase/u32-is-casefolded: New file.
15817
15818         New module 'unicase/u16-is-casefolded'.
15819         * lib/unicase/u16-is-casefolded.c: New file.
15820         * modules/unicase/u16-is-casefolded: New file.
15821
15822         New module 'unicase/u8-is-casefolded'.
15823         * lib/unicase/u8-is-casefolded.c: New file.
15824         * modules/unicase/u8-is-casefolded: New file.
15825
15826         Tests for module 'unicase/u32-is-titlecase'.
15827         * modules/unicase/u32-is-titlecase-tests: New file.
15828         * tests/unicase/test-u32-is-titlecase.c: New file.
15829
15830         Tests for module 'unicase/u16-is-titlecase'.
15831         * modules/unicase/u16-is-titlecase-tests: New file.
15832         * tests/unicase/test-u16-is-titlecase.c: New file.
15833
15834         Tests for module 'unicase/u8-is-titlecase'.
15835         * modules/unicase/u8-is-titlecase-tests: New file.
15836         * tests/unicase/test-u8-is-titlecase.c: New file.
15837         * tests/unicase/test-is-titlecase.h: New file.
15838
15839         New module 'unicase/u32-is-titlecase'.
15840         * lib/unicase/u32-is-titlecase.c: New file.
15841         * modules/unicase/u32-is-titlecase: New file.
15842
15843         New module 'unicase/u16-is-titlecase'.
15844         * lib/unicase/u16-is-titlecase.c: New file.
15845         * modules/unicase/u16-is-titlecase: New file.
15846
15847         New module 'unicase/u8-is-titlecase'.
15848         * lib/unicase/u8-is-titlecase.c: New file.
15849         * modules/unicase/u8-is-titlecase: New file.
15850
15851         Tests for module 'unicase/u32-is-lowercase'.
15852         * modules/unicase/u32-is-lowercase-tests: New file.
15853         * tests/unicase/test-u32-is-lowercase.c: New file.
15854
15855         Tests for module 'unicase/u16-is-lowercase'.
15856         * modules/unicase/u16-is-lowercase-tests: New file.
15857         * tests/unicase/test-u16-is-lowercase.c: New file.
15858
15859         Tests for module 'unicase/u8-is-lowercase'.
15860         * modules/unicase/u8-is-lowercase-tests: New file.
15861         * tests/unicase/test-u8-is-lowercase.c: New file.
15862         * tests/unicase/test-is-lowercase.h: New file.
15863
15864         New module 'unicase/u32-is-lowercase'.
15865         * lib/unicase/u32-is-lowercase.c: New file.
15866         * modules/unicase/u32-is-lowercase: New file.
15867
15868         New module 'unicase/u16-is-lowercase'.
15869         * lib/unicase/u16-is-lowercase.c: New file.
15870         * modules/unicase/u16-is-lowercase: New file.
15871
15872         New module 'unicase/u8-is-lowercase'.
15873         * lib/unicase/u8-is-lowercase.c: New file.
15874         * modules/unicase/u8-is-lowercase: New file.
15875
15876         Tests for module 'unicase/u32-is-uppercase'.
15877         * modules/unicase/u32-is-uppercase-tests: New file.
15878         * tests/unicase/test-u32-is-uppercase.c: New file.
15879
15880         Tests for module 'unicase/u16-is-uppercase'.
15881         * modules/unicase/u16-is-uppercase-tests: New file.
15882         * tests/unicase/test-u16-is-uppercase.c: New file.
15883
15884         Tests for module 'unicase/u8-is-uppercase'.
15885         * modules/unicase/u8-is-uppercase-tests: New file.
15886         * tests/unicase/test-u8-is-uppercase.c: New file.
15887         * tests/unicase/test-is-uppercase.h: New file.
15888
15889         New module 'unicase/u32-is-uppercase'.
15890         * lib/unicase/u32-is-uppercase.c: New file.
15891         * modules/unicase/u32-is-uppercase: New file.
15892
15893         New module 'unicase/u16-is-uppercase'.
15894         * lib/unicase/u16-is-uppercase.c: New file.
15895         * modules/unicase/u16-is-uppercase: New file.
15896
15897         New module 'unicase/u8-is-uppercase'.
15898         * lib/unicase/u8-is-uppercase.c: New file.
15899         * modules/unicase/u8-is-uppercase: New file.
15900
15901         New module 'unicase/u32-is-invariant'.
15902         * lib/unicase/u32-is-invariant.c: New file.
15903         * modules/unicase/u32-is-invariant: New file.
15904
15905         New module 'unicase/u16-is-invariant'.
15906         * lib/unicase/u16-is-invariant.c: New file.
15907         * modules/unicase/u16-is-invariant: New file.
15908
15909         New module 'unicase/u8-is-invariant'.
15910         * lib/unicase/u8-is-invariant.c: New file.
15911         * lib/unicase/invariant.h: New file.
15912         * lib/unicase/u-is-invariant.h: New file.
15913         * modules/unicase/u8-is-invariant: New file.
15914
15915         Tests for module 'unicase/u32-casecoll'.
15916         * modules/unicase/u32-casecoll-tests: New file.
15917         * tests/unicase/test-u32-casecoll.c: New file.
15918
15919         Tests for module 'unicase/u16-casecoll'.
15920         * modules/unicase/u16-casecoll-tests: New file.
15921         * tests/unicase/test-u16-casecoll.c: New file.
15922
15923         Tests for module 'unicase/u8-casecoll'.
15924         * modules/unicase/u8-casecoll-tests: New file.
15925         * tests/unicase/test-u8-casecoll.c: New file.
15926
15927         New module 'unicase/u32-casecoll'.
15928         * lib/unicase/u32-casecoll.c: New file.
15929         * modules/unicase/u32-casecoll: New file.
15930
15931         New module 'unicase/u16-casecoll'.
15932         * lib/unicase/u16-casecoll.c: New file.
15933         * modules/unicase/u16-casecoll: New file.
15934
15935         New module 'unicase/u8-casecoll'.
15936         * lib/unicase/u8-casecoll.c: New file.
15937         * lib/unicase/u-casecoll.h: New file.
15938         * modules/unicase/u8-casecoll: New file.
15939
15940         New module 'unicase/u32-casexfrm'.
15941         * lib/unicase/u32-casexfrm.c: New file.
15942         * modules/unicase/u32-casexfrm: New file.
15943
15944         New module 'unicase/u16-casexfrm'.
15945         * lib/unicase/u16-casexfrm.c: New file.
15946         * modules/unicase/u16-casexfrm: New file.
15947
15948         New module 'unicase/u8-casexfrm'.
15949         * lib/unicase/u8-casexfrm.c: New file.
15950         * lib/unicase/u-casexfrm.h: New file.
15951         * modules/unicase/u8-casexfrm: New file.
15952
15953         Tests for module 'unicase/u32-casecmp'.
15954         * modules/unicase/u32-casecmp-tests: New file.
15955         * tests/unicase/test-u32-casecmp.c: New file.
15956
15957         Tests for module 'unicase/u16-casecmp'.
15958         * modules/unicase/u16-casecmp-tests: New file.
15959         * tests/unicase/test-u16-casecmp.c: New file.
15960
15961         Tests for module 'unicase/u8-casecmp'.
15962         * modules/unicase/u8-casecmp-tests: New file.
15963         * tests/unicase/test-u8-casecmp.c: New file.
15964         * tests/unicase/test-casecmp.h: New file.
15965
15966         New module 'unicase/u32-casecmp'.
15967         * lib/unicase/u32-casecmp.c: New file.
15968         * modules/unicase/u32-casecmp: New file.
15969
15970         New module 'unicase/u16-casecmp'.
15971         * lib/unicase/u16-casecmp.c: New file.
15972         * modules/unicase/u16-casecmp: New file.
15973
15974         New module 'unicase/u8-casecmp'.
15975         * lib/unicase/u8-casecmp.c: New file.
15976         * lib/unicase/u-casecmp.h: New file.
15977         * modules/unicase/u8-casecmp: New file.
15978
15979         Tests for module 'unicase/u32-casefold'.
15980         * modules/unicase/u32-casefold-tests: New file.
15981         * tests/unicase/test-u32-casefold.c: New file.
15982
15983         Tests for module 'unicase/u16-casefold'.
15984         * modules/unicase/u16-casefold-tests: New file.
15985         * tests/unicase/test-u16-casefold.c: New file.
15986
15987         Tests for module 'unicase/u8-casefold'.
15988         * modules/unicase/u8-casefold-tests: New file.
15989         * tests/unicase/test-u8-casefold.c: New file.
15990
15991         New module 'unicase/u32-casefold'.
15992         * lib/unicase/u32-casefold.c: New file.
15993         * modules/unicase/u32-casefold: New file.
15994
15995         New module 'unicase/u16-casefold'.
15996         * lib/unicase/u16-casefold.c: New file.
15997         * modules/unicase/u16-casefold: New file.
15998
15999         New module 'unicase/u8-casefold'.
16000         * lib/unicase/u8-casefold.c: New file.
16001         * lib/unicase/u-casefold.h: New file.
16002         * modules/unicase/u8-casefold: New file.
16003
16004         New module 'unicase/tocasefold'.
16005         * lib/unicase/casefold.h: New file.
16006         * lib/unicase/tocasefold.c: New file.
16007         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
16008         * modules/unicase/tocasefold: New file.
16009
16010         Tests for module 'unicase/u32-totitle'.
16011         * modules/unicase/u32-totitle-tests: New file.
16012         * tests/unicase/test-u32-totitle.c: New file.
16013
16014         Tests for module 'unicase/u16-totitle'.
16015         * modules/unicase/u16-totitle-tests: New file.
16016         * tests/unicase/test-u16-totitle.c: New file.
16017
16018         Tests for module 'unicase/u8-totitle'.
16019         * modules/unicase/u8-totitle-tests: New file.
16020         * tests/unicase/test-u8-totitle.c: New file.
16021
16022         New module 'unicase/u32-totitle'.
16023         * lib/unicase/u32-totitle.c: New file.
16024         * modules/unicase/u32-totitle: New file.
16025
16026         New module 'unicase/u16-totitle'.
16027         * lib/unicase/u16-totitle.c: New file.
16028         * modules/unicase/u16-totitle: New file.
16029
16030         New module 'unicase/u8-totitle'.
16031         * lib/unicase/u8-totitle.c: New file.
16032         * lib/unicase/u-totitle.h: New file.
16033         * modules/unicase/u8-totitle: New file.
16034
16035         Tests for module 'unicase/u32-tolower'.
16036         * modules/unicase/u32-tolower-tests: New file.
16037         * tests/unicase/test-u32-tolower.c: New file.
16038
16039         Tests for module 'unicase/u16-tolower'.
16040         * modules/unicase/u16-tolower-tests: New file.
16041         * tests/unicase/test-u16-tolower.c: New file.
16042
16043         Tests for module 'unicase/u8-tolower'.
16044         * modules/unicase/u8-tolower-tests: New file.
16045         * tests/unicase/test-u8-tolower.c: New file.
16046
16047         New module 'unicase/u32-tolower'.
16048         * lib/unicase/u32-tolower.c: New file.
16049         * modules/unicase/u32-tolower: New file.
16050
16051         New module 'unicase/u16-tolower'.
16052         * lib/unicase/u16-tolower.c: New file.
16053         * modules/unicase/u16-tolower: New file.
16054
16055         New module 'unicase/u8-tolower'.
16056         * lib/unicase/u8-tolower.c: New file.
16057         * modules/unicase/u8-tolower: New file.
16058
16059         Tests for module 'unicase/u32-toupper'.
16060         * modules/unicase/u32-toupper-tests: New file.
16061         * tests/unicase/test-u32-toupper.c: New file.
16062
16063         Tests for module 'unicase/u16-toupper'.
16064         * modules/unicase/u16-toupper-tests: New file.
16065         * tests/unicase/test-u16-toupper.c: New file.
16066
16067         Tests for module 'unicase/u8-toupper'.
16068         * modules/unicase/u8-toupper-tests: New file.
16069         * tests/unicase/test-u8-toupper.c: New file.
16070
16071         New module 'unicase/u32-toupper'.
16072         * lib/unicase/u32-toupper.c: New file.
16073         * modules/unicase/u32-toupper: New file.
16074
16075         New module 'unicase/u16-toupper'.
16076         * lib/unicase/u16-toupper.c: New file.
16077         * modules/unicase/u16-toupper: New file.
16078
16079         New module 'unicase/u8-toupper'.
16080         * lib/unicase/u8-toupper.c: New file.
16081         * modules/unicase/u8-toupper: New file.
16082
16083         New module 'unicase/u32-casemap'.
16084         * lib/unicase/u32-casemap.c: New file.
16085         * modules/unicase/u32-casemap: New file.
16086
16087         New module 'unicase/u16-casemap'.
16088         * lib/unicase/u16-casemap.c: New file.
16089         * modules/unicase/u16-casemap: New file.
16090
16091         New module 'unicase/u8-casemap'.
16092         * lib/unicase/unicasemap.h: New file.
16093         * lib/unicase/u8-casemap.c: New file.
16094         * lib/unicase/u-casemap.h: New file.
16095         * modules/unicase/u8-casemap: New file.
16096
16097         New module 'unicase/special-casing'.
16098         * lib/unicase/special-casing.h: New file.
16099         * lib/unicase/special-casing.c: New file.
16100         * lib/unicase/special-casing-table.gperf: New file, generated by
16101         gen-uni-tables.c.
16102         * modules/unicase/special-casing: New file.
16103
16104         Tests for module 'unicase/locale-language'.
16105         * modules/unicase/locale-language-tests: New file.
16106         * tests/unicase/test-locale-language.sh: New file.
16107         * tests/unicase/test-locale-language.c: New file.
16108
16109         New module 'unicase/locale-language'.
16110         * lib/unicase/locale-language.c: New file.
16111         * lib/unicase/locale-languages.gperf: New file.
16112         * modules/unicase/locale-language: New file.
16113
16114         Generate more tables for case conversion and case folding.
16115         * lib/gen-uni-tables.c (SCC_*): New enum items.
16116         (struct special_casing_rule): New type.
16117         (casing_rules, num_casing_rules, allocated_casing_rules): New
16118         variables.
16119         (add_casing_rule, fill_casing_rules): New functions.
16120         (struct casefold_rule): New type.
16121         (casefolding_rules, num_casefolding_rules,
16122         allocated_casefolding_rules): New variables.
16123         (fill_casefolding_rules): New function.
16124         (unicode_casefold): New variable.
16125         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
16126         sort_casing_rules, output_casing_rules): New functions.
16127         (main): Accept to more arguments: SpecialCasing.txt and
16128         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
16129         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
16130         Output mapping for casefolding.
16131
16132         * lib/unicase.h: Include stdbool.h, uninorm.h.
16133         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
16134         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
16135         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
16136         arguments.
16137         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
16138         resultp arguments.
16139         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
16140         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
16141         resultp arguments.
16142         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
16143         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
16144         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
16145         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
16146         declarations.
16147         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
16148
16149 2009-03-08  Bruno Haible  <bruno@clisp.org>
16150
16151         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16152         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
16153         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
16154         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16155
16156 2009-03-07  Bruno Haible  <bruno@clisp.org>
16157
16158         Adjust u*_normcmp, u*_normcoll API.
16159         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16160         u16_normcoll, u32_normcoll): Change failure conventions.
16161         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
16162         errno and return -1.
16163         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16164
16165 2009-03-07  Bruno Haible  <bruno@clisp.org>
16166
16167         Tests for module 'uninorm/u32-normcoll'.
16168         * modules/uninorm/u32-normcoll-tests: New file.
16169         * tests/uninorm/test-u32-normcoll.c: New file.
16170
16171         Tests for module 'uninorm/u16-normcoll'.
16172         * modules/uninorm/u16-normcoll-tests: New file.
16173         * tests/uninorm/test-u16-normcoll.c: New file.
16174
16175         Tests for module 'uninorm/u8-normcoll'.
16176         * modules/uninorm/u8-normcoll-tests: New file.
16177         * tests/uninorm/test-u8-normcoll.c: New file.
16178
16179 2009-03-07  Bruno Haible  <bruno@clisp.org>
16180
16181         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
16182         tests/uninorm/test-u32-normcmp.c.
16183         * tests/uninorm/test-u32-normcmp.c: Include it.
16184         (test_nonascii): New function, extracted from main. Add some more
16185         tests.
16186         (main): Invoke test_ascii and test_nonascii.
16187         * modules/uninorm/u32-normcmp-tests (Files): Add
16188         tests/uninorm/test-u32-normcmp.h.
16189         (Depends-on): Remove uninorm/u32-normcmp.
16190
16191         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
16192         tests/uninorm/test-u16-normcmp.c.
16193         * tests/uninorm/test-u16-normcmp.c: Include it.
16194         (test_nonascii): New function, extracted from main. Add some more
16195         tests.
16196         (main): Invoke test_ascii and test_nonascii.
16197         * modules/uninorm/u16-normcmp-tests (Files): Add
16198         tests/uninorm/test-u16-normcmp.h.
16199         (Depends-on): Remove uninorm/u16-normcmp.
16200
16201         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
16202         tests/uninorm/test-u8-normcmp.c.
16203         * tests/uninorm/test-u8-normcmp.c: Include it.
16204         (test_nonascii): New function, extracted from main. Add some more
16205         tests.
16206         (main): Invoke test_ascii and test_nonascii.
16207         * modules/uninorm/u8-normcmp-tests (Files): Add
16208         tests/uninorm/test-u8-normcmp.h.
16209         (Depends-on): Remove uninorm/u8-normcmp.
16210
16211 2009-03-07  Bruno Haible  <bruno@clisp.org>
16212
16213         New module 'uninorm/u32-normcoll'.
16214         * lib/uninorm/u32-normcoll.c: New file.
16215         * modules/uninorm/u32-normcoll: New file.
16216
16217         New module 'uninorm/u16-normcoll'.
16218         * lib/uninorm/u16-normcoll.c: New file.
16219         * modules/uninorm/u16-normcoll: New file.
16220
16221         New module 'uninorm/u8-normcoll'.
16222         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
16223         declarations.
16224         * lib/uninorm/u8-normcoll.c: New file.
16225         * lib/uninorm/u-normcoll.h: New file.
16226         * modules/uninorm/u8-normcoll: New file.
16227
16228         New module 'uninorm/u32-normxfrm'.
16229         * lib/uninorm/u32-normxfrm.c: New file.
16230         * modules/uninorm/u32-normxfrm: New file.
16231
16232         New module 'uninorm/u16-normxfrm'.
16233         * lib/uninorm/u16-normxfrm.c: New file.
16234         * modules/uninorm/u16-normxfrm: New file.
16235
16236         New module 'uninorm/u8-normxfrm'.
16237         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
16238         declarations.
16239         * lib/uninorm/u8-normxfrm.c: New file.
16240         * lib/uninorm/u-normxfrm.h: New file.
16241         * modules/uninorm/u8-normxfrm: New file.
16242
16243 2009-03-07  Bruno Haible  <bruno@clisp.org>
16244
16245         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
16246         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
16247         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
16248
16249 2009-03-07  Bruno Haible  <bruno@clisp.org>
16250
16251         New module 'memxfrm'.
16252         * lib/memxfrm.h: New file.
16253         * lib/memxfrm.c: New file.
16254         * modules/memxfrm: New file.
16255
16256 2009-03-07  Bruno Haible  <bruno@clisp.org>
16257
16258         New module 'memcmp2'.
16259         * lib/memcmp2.h: New file.
16260         * lib/memcmp2.c: New file.
16261         * modules/memcmp2: New file.
16262
16263 2009-03-07  Bruno Haible  <bruno@clisp.org>
16264
16265         Tests for module 'uninorm/decomposing-form'.
16266         * modules/uninorm/decomposing-form-tests: New file.
16267         * tests/uninorm/test-decomposing-form.c: New file.
16268
16269         New module 'uninorm/decomposing-form'.
16270         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
16271         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
16272         Add 'decomposing_variant' field.
16273         * lib/uninorm/decomposing-form.c: New file.
16274         * lib/uninorm/nfc.c (uninorm_nfc): Update.
16275         * lib/uninorm/nfd.c (uninorm_nfd): Update.
16276         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
16277         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
16278         * modules/uninorm/decomposing-form: New file.
16279         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
16280         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
16281
16282 2009-03-07  Bruno Haible  <bruno@clisp.org>
16283
16284         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
16285         strings.
16286
16287 2009-03-06  Bruno Haible  <bruno@clisp.org>
16288
16289         Tests for module 'uninorm/u32-normcmp'.
16290         * tests/uninorm/test-u32-normcmp.c: New file.
16291         * modules/uninorm/u32-normcmp-tests: New file.
16292
16293         Tests for module 'uninorm/u16-normcmp'.
16294         * tests/uninorm/test-u16-normcmp.c: New file.
16295         * modules/uninorm/u16-normcmp-tests: New file.
16296
16297         Tests for module 'uninorm/u8-normcmp'.
16298         * tests/uninorm/test-u8-normcmp.c: New file.
16299         * modules/uninorm/u8-normcmp-tests: New file.
16300
16301         New module 'uninorm/u32-normcmp'.
16302         * lib/uninorm/u32-normcmp.c: New file.
16303         * modules/uninorm/u32-normcmp: New file.
16304
16305         New module 'uninorm/u16-normcmp'.
16306         * lib/uninorm/u16-normcmp.c: New file.
16307         * modules/uninorm/u16-normcmp: New file.
16308
16309         New module 'uninorm/u8-normcmp'.
16310         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
16311         declarations.
16312         * lib/uninorm/u8-normcmp.c: New file.
16313         * lib/uninorm/u-normcmp.h: New file.
16314         * modules/uninorm/u8-normcmp: New file.
16315
16316 2009-03-06  Bruno Haible  <bruno@clisp.org>
16317
16318         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16319         Reported by Eric Blake.
16320
16321 2009-03-06  Eric Blake  <ebb9@byu.net>
16322             Bruno Haible  <bruno@clisp.org>
16323
16324         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16325         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16326         condition.
16327         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16328         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16329         condition.
16330         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16331
16332 2009-03-06  Eric Blake  <ebb9@byu.net>
16333
16334         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16335         to avoid compiler warnings.
16336         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16337
16338 2009-03-05  Bruno Haible  <bruno@clisp.org>
16339
16340         * tests/test-ftell.c (main): Disable test beyond end of file on
16341         FreeMiNT.
16342         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16343
16344 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16345
16346         * lib/filevercmp.c: Move hidden files up in ordering.
16347         * tests/test-filevercmp.c: Add tests for hidden files.
16348
16349 2009-03-04  Bruno Haible  <bruno@clisp.org>
16350
16351         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16352         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16353         AM_CFLAGS.
16354         Reported by Simon Josefsson.
16355
16356 2009-03-03  Bruno Haible  <bruno@clisp.org>
16357
16358         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16359         Reported by Simon Josefsson.
16360
16361         * doc/ld-version-script.texi: Update node reference.
16362
16363 2009-03-03  Bruno Haible  <bruno@clisp.org>
16364
16365         * modules/visibility (License): Change to 'unlimited'.
16366         Suggested by Simon Josefsson.
16367
16368 2009-03-03  Jim Meyering  <meyering@redhat.com>
16369
16370         unlinkdir: cannot_unlink_dir may modify process state
16371         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16372         it's neither thread-safe nor appropriate for use in a library.
16373
16374 2009-03-03  Eric Blake  <ebb9@byu.net>
16375
16376         test-closein: silence test under Darwin
16377         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16378         care if it dies from EPIPE or EBADF.
16379
16380 2009-03-03  Bruno Haible  <bruno@clisp.org>
16381
16382         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16383         earlier.
16384         * doc/visibility.texi: Fix @node and @section.
16385
16386 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16387
16388         * doc/gnulib.texi: Link to sections for ld version script and
16389         visibility.
16390         * doc/visibility.texi: Add @node and @section.
16391         * modules/ld-version-script: New module.
16392         * m4/ld-version-script.m4: New file.
16393         * doc/ld-version-script.texi: New file.
16394
16395 2009-03-02  David Lutterkort  <lutter@redhat.com>
16396
16397         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16399
16400 2009-03-02  Bruno Haible  <bruno@clisp.org>
16401
16402         * doc/visibility.texi: Mention libtool's -export-symbols option.
16403
16404 2009-03-02  Jim Meyering  <meyering@redhat.com>
16405
16406         announce-gen: new option: --no-print-checksums
16407         * build-aux/announce-gen (usage): Describe it.
16408         (print_checksums): Print a newline here, not in the [*] footnote.
16409         (main): Honor it.
16410
16411 2009-03-01  Bruno Haible  <bruno@clisp.org>
16412
16413         Use socklen_t in the native Windows replacements prototypes.
16414         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16415         instead of 'int'.
16416         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16417         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16418         * modules/getsockopt (Depends-on): Add socklen.
16419         * modules/setsockopt (Depends-on): Add socklen.
16420
16421 2009-03-01  Bruno Haible  <bruno@clisp.org>
16422
16423         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16424         least 4.2.
16425
16426 2009-03-01  Eric Blake  <ebb9@byu.net>
16427             Bruno Haible  <bruno@clisp.org>
16428
16429         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16430         error messages.
16431         * lib/wait-process.c (wait_subprocess): Omit error message about
16432         deadly signal sent to the child of termsigp != NULL.
16433
16434 2009-03-01  Eric Blake  <ebb9@byu.net>
16435
16436         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16437
16438 2009-03-01  Bruno Haible  <bruno@clisp.org>
16439
16440         Avoid a gcc warning.
16441         * tests/test-sched.c (b): Make global.
16442         Reported by Eric Blake.
16443
16444 2009-01-19  Martin Lambers  <marlam@marlam.de>
16445
16446         Provide POSIX semantics for socket timeout options on W32.
16447         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16448         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16449         * modules/setsockopt: Depend on sys_time module for struct timeval.
16450         * modules/getsockopt: Depend on sys_time module for struct timeval.
16451
16452 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16453
16454         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16455         __USE_GNU, for consistency with netdb.in.h.
16456         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16457
16458 2009-03-01  Bruno Haible  <bruno@clisp.org>
16459
16460         More support for FreeMiNT.
16461         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16462         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16463
16464 2009-03-01  Bruno Haible  <bruno@clisp.org>
16465
16466         More support for FreeMiNT.
16467         * lib/fpurge.c (fpurge): Correct last commit.
16468         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16469
16470 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16471
16472         Fix unportable awk script in vc-list-files.
16473         * build-aux/vc-list-files: In the replacement awk script, use
16474         substr with a second argument of 1, not zero.
16475         Report by Simon Josefsson.
16476
16477 2009-02-28  Bruno Haible  <bruno@clisp.org>
16478
16479         More support for FreeMiNT.
16480         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16481         to FreeMiNT today.
16482         * lib/fwriting.c (fwriting): Likewise.
16483         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16484
16485 2009-02-28  Bruno Haible  <bruno@clisp.org>
16486
16487         * tests/test-freadseek.c (main): Disable test beyond end of file on
16488         FreeMiNT.
16489         * tests/test-ftello.c (main): Likewise.
16490         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16491
16492 2009-02-28  Bruno Haible  <bruno@clisp.org>
16493
16494         Add tentative support for FreeMiNT.
16495         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16496         * lib/fpurge.c (fpurge): Likewise.
16497         * lib/freadable.c (freadable): Likewise.
16498         * lib/freading.c (freading): Likewise.
16499         * lib/freadptr.c (freadptr): Likewise.
16500         * lib/freadseek.c (freadptrinc): Likewise.
16501         * lib/fseeko.c (rpl_fseeko): Likewise.
16502         * lib/fseterr.c (fseterr): Likewise.
16503         * lib/fwritable.c (fwritable): Likewise.
16504         * lib/fwriting.c (fwriting): Likewise.
16505         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16506         Hourihane.
16507         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16508
16509 2009-02-28  Bruno Haible  <bruno@clisp.org>
16510
16511         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16512         SIGCHLD.
16513         Reported by Jim Meyering.
16514
16515 2009-02-28  Bruno Haible  <bruno@clisp.org>
16516
16517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16518         Mention the results of these tests on various platforms.
16519         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16520         order.
16521         * doc/posix-functions/printf.texi: Likewise.
16522         * doc/posix-functions/snprintf.texi: Likewise.
16523         * doc/posix-functions/sprintf.texi: Likewise.
16524         * doc/posix-functions/vfprintf.texi: Likewise.
16525         * doc/posix-functions/vprintf.texi: Likewise.
16526         * doc/posix-functions/vsnprintf.texi: Likewise.
16527         * doc/posix-functions/vsprintf.texi: Likewise.
16528         * doc/glibc-functions/obstack_printf.texi: Likewise.
16529         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16530
16531 2009-02-28  Bruno Haible  <bruno@clisp.org>
16532
16533         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16534         Reported by Loïc Minier <lool@dooz.org>.
16535
16536 2009-02-27  Bruno Haible  <bruno@clisp.org>
16537
16538         * gnulib-tool (func_import): Make the sed expression used to create the
16539         sed script for updating the .gitignore file POSIX compliant.
16540         Reported by Eric Blake.
16541
16542 2009-02-27  Bruno Haible  <bruno@clisp.org>
16543
16544         * gnulib-tool (sed): Don't alias as "sed --posix".
16545         Reported by Eric Blake.
16546
16547 2009-02-27  Bruno Haible  <bruno@clisp.org>
16548
16549         Avoid test link errors.
16550         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16551         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16552         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16553         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16554         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16555
16556 2009-02-27  Bruno Haible  <bruno@clisp.org>
16557
16558         Avoid spurious "(cached)" in configure output.
16559         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16560         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16561         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16562         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16563         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16564         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16565         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16566         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16567         Reported by Eric Blake.
16568
16569 2009-02-27  Eric Blake  <ebb9@byu.net>
16570
16571         printf: fix regression in previous patch
16572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16573
16574 2009-02-27  Bruno Haible  <bruno@clisp.org>
16575
16576         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16577         value.
16578         * lib/stdint.in.h: Likewise.
16579         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16580
16581 2009-02-27  Eric Blake  <ebb9@byu.net>
16582
16583         doc: mention more functions added in cygwin 1.7.0
16584         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16585         addition.
16586         * doc/posix-functions/open_wmemstream.texi: Likewise.
16587         * doc/posix-functions/wcsnlen.texi: Likewise.
16588         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16589         * doc/posix-functions/wcstod.texi: Likewise.
16590         * doc/posix-functions/wcstof.texi: Likewise.
16591         * doc/posix-functions/wcstoimax.texi: Likewise.
16592         * doc/posix-functions/wcstok.texi: Likewise.
16593         * doc/posix-functions/wcstoumax.texi: Likewise.
16594
16595         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16596         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16597         * doc/posix-functions/fprintf.texi: Update.
16598         * doc/posix-functions/printf.texi: Update.
16599         * doc/posix-functions/snprintf.texi: Update.
16600         * doc/posix-functions/sprintf.texi: Update.
16601         * doc/posix-functions/vfprintf.texi: Update.
16602         * doc/posix-functions/vprintf.texi: Update.
16603         * doc/posix-functions/vsnprintf.texi: Update.
16604         * doc/posix-functions/vsprintf.texi: Update.
16605         * doc/glibc-functions/obstack_printf.texi: Update.
16606         * doc/glibc-functions/obstack_vprintf.texi: Update.
16607
16608 2009-02-26  Eric Blake  <ebb9@byu.net>
16609
16610         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16611         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16612         compilation bug by using runtime conversion.
16613         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16614         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16615         * modules/ceill-tests (Files): Use nan.h.
16616         * modules/floorl-tests (Files): Likewise.
16617         * modules/frexpl-tests (Files): Likewise.
16618         * modules/isnanl-tests (Files): Likewise.
16619         * modules/ldexpl-tests (Files): Likewise.
16620         * modules/roundl-tests (Files): Likewise.
16621         * modules/truncl-tests (Files): Likewise.
16622         * tests/test-ceill.c (main): Use a working NaN.
16623         * tests/test-floorl.c (main): Likewise.
16624         * tests/test-frexpl.c (main): Likewise.
16625         * tests/test-isnan.c (test_long_double): Likewise.
16626         * tests/test-isnanl.h (main): Likewise.
16627         * tests/test-ldexpl.h (main): Likewise.
16628         * tests/test-roundl.h (main): Likewise.
16629         * tests/test-truncl.h (main): Likewise.
16630         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16631
16632 2009-02-26  Eric Blake  <ebb9@byu.net>
16633             Bruno Haible  <bruno@clisp.org>
16634
16635         Work around a *printf bug with %ls on Solaris.
16636         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16637         precision is specified, sprintf stops converting the wide string
16638         argument when the number of bytes that have been produced by this
16639         conversion equals or exceeds the precision.
16640         * doc/posix-functions/fprintf.texi: Update.
16641         * doc/posix-functions/printf.texi: Update.
16642         * doc/posix-functions/snprintf.texi: Update.
16643         * doc/posix-functions/sprintf.texi: Update.
16644         * doc/posix-functions/vfprintf.texi: Update.
16645         * doc/posix-functions/vprintf.texi: Update.
16646         * doc/posix-functions/vsnprintf.texi: Update.
16647         * doc/posix-functions/vsprintf.texi: Update.
16648         * doc/glibc-functions/obstack_printf.texi: Update.
16649         * doc/glibc-functions/obstack_vprintf.texi: Update.
16650
16651 2009-02-26  Eric Blake  <ebb9@byu.net>
16652
16653         stdlib: favor compiler check of random.h
16654         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16655         to avoid an ObjC random.h installed by Swarm.
16656
16657 2009-02-26  Bruno Haible  <bruno@clisp.org>
16658
16659         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16660         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16661         Reported by Gary V. Vaughan <gary@gnu.org>.
16662
16663 2009-02-26  Bruno Haible  <bruno@clisp.org>
16664
16665         Fix *printf behaviour regarding the %ls directive.
16666         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16667         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16668         NEED_PRINTF_DIRECTIVE_LS.
16669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16670         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16671         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16672         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16673         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16674         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16675         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16676         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16677         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16678         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16679         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16680         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16681         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16682         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16683         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16684         * doc/posix-functions/fprintf.texi: Update.
16685         * doc/posix-functions/printf.texi: Update.
16686         * doc/posix-functions/snprintf.texi: Update.
16687         * doc/posix-functions/sprintf.texi: Update.
16688         * doc/posix-functions/vfprintf.texi: Update.
16689         * doc/posix-functions/vprintf.texi: Update.
16690         * doc/posix-functions/vsnprintf.texi: Update.
16691         * doc/posix-functions/vsprintf.texi: Update.
16692         * doc/glibc-functions/obstack_printf.texi: Update.
16693         * doc/glibc-functions/obstack_vprintf.texi: Update.
16694         Reported by Eric Blake.
16695
16696 2009-02-25  Bruno Haible  <bruno@clisp.org>
16697
16698         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16699         with known value.
16700         Reported by Gary V. Vaughan <gary@gnu.org>.
16701
16702 2009-02-25  Bruno Haible  <bruno@clisp.org>
16703
16704         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16705         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16706         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16707         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16708         Reported by Gary V. Vaughan <gary@gnu.org>.
16709
16710 2009-02-25  Bruno Haible  <bruno@clisp.org>
16711
16712         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16713         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16714         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16715         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16716         Reported by Gary V. Vaughan <gary@gnu.org>.
16717
16718 2009-02-25  Eric Blake  <ebb9@byu.net>
16719
16720         tests: skip fseek/ftell tests if ungetc is broken
16721         * m4/ungetc.m4: New file.
16722         * modules/fseek-tests: Split test, so ungetc dependency is
16723         separate from rest of test.
16724         * modules/fseeko-tests: Likewise.
16725         * modules/ftell-tests: Likewise.
16726         * modules/ftello-tests: Likewise.
16727         * tests/test-fseek.c (main): Isolate ungetc dependency.
16728         * tests/test-fseeko.c (main): Likewise.
16729         * tests/test-ftell.c (main): Likewise.
16730         * tests/test-ftello.c (main): Likewise.
16731         * tests/test-fseek2.sh: New file.
16732         * tests/test-fseeko2.sh: Likewise.
16733         * tests/test-ftell2.sh: Likewise.
16734         * tests/test-ftello2.sh: Likewise.
16735
16736 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
16737
16738         test-getaddrinfo: fix usage of skip return code 77
16739         * tests/test-gettaddrinfo.c: Return skip code 77 only
16740         for first occurance of skip (4x77 is not 77)
16741
16742 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16743
16744         strtod: avoid C99 decl-after-statement
16745         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16746
16747 2009-02-24  Eric Blake  <ebb9@byu.net>
16748
16749         strtod: detect HP-UX 11.31 bug
16750         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16751         Reported by Gary V. Vaughan.
16752
16753 2009-02-23  Bruno Haible  <bruno@clisp.org>
16754
16755         Fix invalid read past end of memory block.
16756         * lib/vasnprintf.c (DCHAR_SET): Define.
16757         (local_wcslen): Define only when needed.
16758         (local_strnlen, local_wcsnlen): New functions.
16759         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16760         directives that involve a conversion ourselves.
16761         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16762         wcsnlen, mbrtowc, wcrtomb.
16763         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16764         * tests/test-vasprintf-posix.c (test_function): Likewise.
16765         * tests/test-snprintf-posix.h (test_function): Likewise.
16766         * tests/test-sprintf-posix.h (test_function): Likewise.
16767         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16768
16769 2009-02-22  Bruno Haible  <bruno@clisp.org>
16770
16771         Implement new clarified decomposition of Hangul syllables.
16772         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16773         of type LTV, return only a pairwise decomposition.
16774         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16775         Likewise.
16776         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16777         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16778         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16779
16780 2009-02-22  Bruno Haible  <bruno@clisp.org>
16781
16782         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16783         zero-length results and shrink excess allocated memory.
16784         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16785         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16786         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16787         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16788         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16789         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16790         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16791         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16792         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16793         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16794         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16795         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16796
16797 2009-02-21  Bruno Haible  <bruno@clisp.org>
16798
16799         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16800         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16801         spaces after a period. Put a space between a macro name and its
16802         argument list. Trivial rewordings.
16803         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16804         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16805         (main): Return 0 explicitly.
16806
16807 2009-02-21  Bruno Haible  <bruno@clisp.org>
16808
16809         Tests for module 'uninorm/filter'.
16810         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16811         * modules/uninorm/filter-tests: New file.
16812
16813         New module 'uninorm/filter'.
16814         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16815         uninorm_filter_flush, uninorm_filter_free): New declarations.
16816         * lib/uninorm/uninorm-filter.c: New file.
16817         * modules/uninorm/filter: New file.
16818
16819 2009-02-21  Bruno Haible  <bruno@clisp.org>
16820
16821         Tests for module 'uninorm/nfkc'.
16822         * tests/uninorm/test-nfkc.c: New file.
16823         * tests/uninorm/test-u8-nfkc.c: New file.
16824         * tests/uninorm/test-u16-nfkc.c: New file.
16825         * tests/uninorm/test-u32-nfkc.c: New file.
16826         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16827         * tests/uninorm/test-u32-nfkc-big.c: New file.
16828         * modules/uninorm/nfkc-tests: New file.
16829
16830         New module 'uninorm/nfkc'.
16831         * lib/uninorm/nfkc.c: New file.
16832         * modules/uninorm/nfkc: New file.
16833
16834         Tests for module 'uninorm/nfkd'.
16835         * tests/uninorm/test-nfkd.c: New file.
16836         * tests/uninorm/test-u8-nfkd.c: New file.
16837         * tests/uninorm/test-u16-nfkd.c: New file.
16838         * tests/uninorm/test-u32-nfkd.c: New file.
16839         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16840         * tests/uninorm/test-u32-nfkd-big.c: New file.
16841         * modules/uninorm/nfkd-tests: New file.
16842
16843         New module 'uninorm/nfkd'.
16844         * lib/uninorm/nfkd.c: New file.
16845         * modules/uninorm/nfkd: New file.
16846
16847         Tests for module 'uninorm/nfc'.
16848         * tests/uninorm/test-nfc.c: New file.
16849         * tests/uninorm/test-u8-nfc.c: New file.
16850         * tests/uninorm/test-u16-nfc.c: New file.
16851         * tests/uninorm/test-u32-nfc.c: New file.
16852         * tests/uninorm/test-u32-nfc-big.sh: New file.
16853         * tests/uninorm/test-u32-nfc-big.c: New file.
16854         * modules/uninorm/nfc-tests: New file.
16855
16856         New module 'uninorm/nfc'.
16857         * lib/uninorm/nfc.c: New file.
16858         * modules/uninorm/nfc: New file.
16859
16860         Tests for module 'uninorm/nfd'.
16861         * tests/uninorm/test-nfd.c: New file.
16862         * tests/uninorm/test-u8-nfd.c: New file.
16863         * tests/uninorm/test-u16-nfd.c: New file.
16864         * tests/uninorm/test-u32-nfd.c: New file.
16865         * tests/uninorm/test-u32-nfd-big.sh: New file.
16866         * tests/uninorm/test-u32-nfd-big.c: New file.
16867         * tests/uninorm/test-u32-normalize-big.h: New file.
16868         * tests/uninorm/test-u32-normalize-big.c: New file.
16869         * tests/uninorm/NormalizationTest.txt: New file, created from
16870         Unicode 5.1.0 NormalizationTest.txt.
16871         * modules/uninorm/nfd-tests: New file.
16872
16873         New module 'uninorm/nfd'.
16874         * lib/uninorm/nfd.c: New file.
16875         * modules/uninorm/nfd: New file.
16876
16877         New module 'uninorm/u32-normalize'.
16878         * lib/uninorm/u32-normalize.c: New file.
16879         * modules/uninorm/u32-normalize: New file.
16880
16881         New module 'uninorm/u16-normalize'.
16882         * lib/uninorm/u16-normalize.c: New file.
16883         * modules/uninorm/u16-normalize: New file.
16884
16885         New module 'uninorm/u8-normalize'.
16886         * lib/uninorm/u8-normalize.c: New file.
16887         * lib/uninorm/normalize-internal.h: New file.
16888         * lib/uninorm/u-normalize-internal.h: New file.
16889         * modules/uninorm/u8-normalize: New file.
16890
16891         New module 'uninorm/decompose-internal'.
16892         * lib/uninorm/decompose-internal.c: New file.
16893         * modules/uninorm/decompose-internal: New file.
16894
16895         Tests for module 'uninorm/composition'.
16896         * tests/uninorm/test-composition.c: New file.
16897         * modules/uninorm/composition-tests: New file.
16898
16899         New module 'uninorm/composition'.
16900         * lib/uninorm/composition.c: New file.
16901         * lib/uninorm/composition-table.gperf: New file, generated by
16902         gen-uni-tables.
16903         * modules/uninorm/composition: New file.
16904
16905         Tests for module 'uninorm/compat-decomposition'.
16906         * tests/uninorm/test-compat-decomposition.c: New file.
16907         * modules/uninorm/compat-decomposition-tests: New file.
16908
16909         New module 'uninorm/compat-decomposition'.
16910         * lib/uninorm/decompose-internal.h: New file.
16911         * lib/uninorm/compat-decomposition.c: New file.
16912         * modules/uninorm/compat-decomposition: New file.
16913
16914         Tests for module 'uninorm/canonical-decomposition'.
16915         * tests/uninorm/test-canonical-decomposition.c: New file.
16916         * modules/uninorm/canonical-decomposition-tests: New file.
16917
16918         New module 'uninorm/canonical-decomposition'.
16919         * lib/uninorm/canonical-decomposition.c: New file.
16920         * modules/uninorm/canonical-decomposition: New file.
16921
16922         Tests for module 'uninorm/decomposition'.
16923         * tests/uninorm/test-decomposition.c: New file.
16924         * modules/uninorm/decomposition-tests: New file.
16925
16926         New module 'uninorm/decomposition'.
16927         * lib/uninorm/decomposition.c: New file.
16928         * modules/uninorm/decomposition: New file.
16929
16930         New module 'uninorm/decomposition-table'.
16931         * lib/uninorm/decomposition-table.h: New file.
16932         * lib/uninorm/decomposition-table.c: New file.
16933         * lib/uninorm/decomposition-table1.h: New file, generated by
16934         gen-uni-tables.
16935         * lib/uninorm/decomposition-table2.h: New file, generated by
16936         gen-uni-tables.
16937         * modules/uninorm/decomposition-table: New file.
16938
16939         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16940         (UC_DECOMP_*): New enumeration items.
16941         (get_decomposition): New function.
16942         (struct decomp_table): New type.
16943         (output_decomposition, output_decomposition_tables): New functions.
16944         (unicode_composition_exclusions): New variable.
16945         (fill_composition_exclusions, debug_output_composition_tables): New
16946         functions.
16947         (main): Accept one more argument. Invoke fill_composition_exclusions.
16948         Output decomposition and composition tables.
16949
16950         New module 'uninorm/base'.
16951         * lib/uninorm.h: New file.
16952         * lib/unictype.h: Update comment.
16953         * modules/uninorm/base: New file.
16954
16955 2009-02-21  David Lutterkort  <lutter@redhat.com>
16956
16957         Tests for module 'safe-alloc'.
16958         * tests/test-safe-alloc.c: New file.
16959         * modules/safe-alloc-tests: New file.
16960
16961         New module 'safe-alloc'.
16962         * lib/safe-alloc.h: New file.
16963         * lib/safe-alloc.c: New file.
16964         * m4/safe-alloc.m4: New file.
16965         * modules/safe-alloc: New file.
16966         * doc/safe-alloc.texi: New file.
16967         * doc/gnulib.texi: Include it.
16968         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16969         safe-alloc.
16970
16971 2009-02-18  Bruno Haible  <bruno@clisp.org>
16972
16973         Fix link error on non-glibc systems.
16974         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16975         variable.
16976         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16977
16978 2009-02-18  Jim Meyering  <meyering@redhat.com>
16979
16980         fts: avoid used-uninitialized error due to recent change
16981         * lib/fts.c (fts_read): Guard uses of the new member,
16982         parent->fts_n_dirs_remaining, since it's not relevant for
16983         the parent of a directory specified on the command-line.
16984
16985 2009-02-17  James Youngman  <jay@gnu.org>
16986             Bruno Haible  <bruno@clisp.org>
16987
16988         * m4/include_next.m4: Reformulate comment.
16989
16990 2009-02-16  Jim Meyering  <meyering@redhat.com>
16991
16992         fts: add #if guards so that the fts_lgpl module still builds
16993         * lib/fts.c: Guard just-added hash-table-using parts with
16994         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16995         Reported by Simon Josefsson.
16996
16997 2009-02-15  Bruno Haible  <bruno@clisp.org>
16998
16999         * modules/array-mergesort-tests: New file.
17000         * tests/test-array-mergesort.c: New file.
17001
17002         New module 'array-mergesort'.
17003         * modules/array-mergesort: New file.
17004         * lib/array-mergesort.h: New file.
17005
17006 2009-02-15  Bruno Haible  <bruno@clisp.org>
17007
17008         Fix 2009-02-07 commit.
17009         * lib/gen-uni-tables.c (output_predicate, output_category,
17010         output_combclass, output_bidi_category, output_decimal_digit,
17011         output_digit, output_numeric, output_mirror, output_scripts,
17012         output_ident_category, output_simple_mapping): Fix format directives.
17013         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
17014
17015 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
17016
17017         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
17018         fixes are available from IBM.
17019
17020 2009-02-13  Jim Meyering  <meyering@redhat.com>
17021
17022         fts: arrange not to stat non-directories in more cases
17023         This makes GNU find (when it doesn't need to stat each file)
17024         *much* more efficient at traversing reiserfs file systems.
17025         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
17026         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
17027         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
17028         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
17029         (leaf_optimization_applies): New function.
17030         (LCO_hash, LCO_compare): New helper functions.
17031         (link_count_optimize_ok): New function.
17032         (fts_stat): Initialize new member (if dir).
17033         (fts_read): Decrement parent's fts_n_dirs_remaining count if
17034         we've just stat'ed a directory.  Skip the stat call when possible.
17035         ---
17036         Note this AFS-related exchange:
17037         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
17038         and note find's pioctl call in find/fstype.c.
17039         But that is necessary only if you want to enable the
17040         optimization for AFS, and for now, I don't.
17041
17042         fts: move a function definition "up" (no semantic change)
17043         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
17044         "up" to precede upcoming use of a related function.
17045
17046 2009-02-11  Jim Meyering  <meyering@redhat.com>
17047
17048         fts: correct internal computation of nlinks (optimization-related)
17049         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
17050         whether the current entry is a directory, so don't test it.
17051
17052 2009-02-10  Bruno Haible  <bruno@clisp.org>
17053
17054         Tests for module 'uniwbrk/ulc-wordbreaks'.
17055         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
17056         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
17057         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
17058
17059         Tests for module 'uniwbrk/u32-wordbreaks'.
17060         * modules/uniwbrk/u32-wordbreaks-tests: New file.
17061         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
17062
17063         Tests for module 'uniwbrk/u16-wordbreaks'.
17064         * modules/uniwbrk/u16-wordbreaks-tests: New file.
17065         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
17066
17067         Tests for module 'uniwbrk/u8-wordbreaks'.
17068         * modules/uniwbrk/u8-wordbreaks-tests: New file.
17069         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
17070
17071 2009-02-10  Bruno Haible  <bruno@clisp.org>
17072
17073         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
17074         property.
17075         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
17076         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
17077         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
17078
17079 2009-02-10  Simon Josefsson  <simon@josefsson.org>
17080
17081         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
17082         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
17083
17084 2009-02-10  Bruno Haible  <bruno@clisp.org>
17085
17086         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
17087         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
17088         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
17089         * lib/unilbrk/u8-possible-linebreaks.c: Update.
17090         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
17091         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
17092
17093 2009-02-09  Simon Josefsson  <simon@josefsson.org>
17094
17095         * lib/sockets.h (gl_fd_to_handle): New function.
17096
17097         * tests/test-sockets.c: Call gl_fd_to_handle.
17098
17099 2009-02-09  Bruno Haible  <bruno@clisp.org>
17100
17101         * doc/havelib.texi: Document the conventions on bi-arch systems.
17102
17103 2009-02-08  Bruno Haible  <bruno@clisp.org>
17104
17105         Document the AC_LIB_LINKFLAGS macro.
17106         * doc/havelib.texi: New file, mostly written on 2005-05-24.
17107         * doc/gnulib.texi: Include it.
17108
17109 2009-02-08  Bruno Haible  <bruno@clisp.org>
17110
17111         Fix wrong order of sections, compared to TOC.
17112         * doc/gnulib.texi: Include relocatable-maint.texi after the
17113         "Regular expressions" node, not before.
17114
17115 2009-02-08  Bruno Haible  <bruno@clisp.org>
17116
17117         Tests for module 'unicase/totitle'.
17118         * modules/unicase/totitle-tests: New file.
17119
17120         Tests for module 'unicase/tolower'.
17121         * modules/unicase/tolower-tests: New file.
17122
17123         Tests for module 'unicase/toupper'.
17124         * modules/unicase/toupper-tests: New file.
17125         * tests/unicase/test-mapping-part1.h: New file.
17126         * tests/unicase/test-mapping-part2.h: New file.
17127
17128         New module 'unicase/totitle'.
17129         * modules/unicase/totitle: New file.
17130         * lib/unicase/totitle.c: New file.
17131
17132         New module 'unicase/tolower'.
17133         * modules/unicase/tolower: New file.
17134         * lib/unicase/tolower.c: New file.
17135
17136         New module 'unicase/toupper'.
17137         * modules/unicase/toupper: New file.
17138         * lib/unicase/toupper.c: New file.
17139         * lib/unicase/simple-mapping.h: New file.
17140
17141         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
17142         (mapping_table): New structure.
17143         (output_simple_mapping): New function.
17144         (main): Invoke output_simple_mapping_test and output_simple_mapping.
17145         * modules/gen-uni-tables (Description): Update.
17146         * lib/unicase/toupper.h: New file, automatically generated by
17147         gen-uni-tables.
17148         * lib/unicase/tolower.h: New file, automatically generated by
17149         gen-uni-tables.
17150         * lib/unicase/totitle.h: New file, automatically generated by
17151         gen-uni-tables.
17152         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
17153         gen-uni-tables.
17154         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
17155         gen-uni-tables.
17156         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
17157         gen-uni-tables.
17158
17159         New module 'unicase/base'.
17160         * modules/unicase/base: New file.
17161         * lib/unicase.h: New file.
17162
17163 2009-02-08  Bruno Haible  <bruno@clisp.org>
17164
17165         New module 'uniwbrk/ulc-wordbreaks'.
17166         * modules/uniwbrk/ulc-wordbreaks: New file.
17167         * lib/uniwbrk/ulc-wordbreaks.c: New file.
17168
17169         New module 'uniwbrk/u32-wordbreaks'.
17170         * modules/uniwbrk/u32-wordbreaks: New file.
17171         * lib/uniwbrk/u32-wordbreaks.c: New file.
17172
17173         New module 'uniwbrk/u16-wordbreaks'.
17174         * modules/uniwbrk/u16-wordbreaks: New file.
17175         * lib/uniwbrk/u16-wordbreaks.c: New file.
17176
17177         New module 'uniwbrk/u8-wordbreaks'.
17178         * modules/uniwbrk/u8-wordbreaks: New file.
17179         * lib/uniwbrk/u8-wordbreaks.c: New file.
17180         * lib/uniwbrk/u-wordbreaks.h: New file.
17181
17182         New module 'uniwbrk/table'.
17183         * modules/uniwbrk/table: New file.
17184         * lib/uniwbrk/wbrktable.h: New file.
17185         * lib/uniwbrk/wbrktable.c: New file.
17186
17187         New module 'uniwbrk/wordbreak-property'.
17188         * modules/uniwbrk/wordbreak-property: New file.
17189         * lib/uniwbrk/wordbreak-property.c: New file.
17190
17191         * lib/gen-uni-tables.c (WBP_*): New enum items.
17192         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
17193         (unicode_org_wbp): New variable.
17194         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
17195         New functions.
17196         (wbp_table): New structure.
17197         (output_wbp, output_wbrk_tables): New functions.
17198         (main): Accept additional argument. Invoke fill_org_wbp,
17199         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
17200         output_wbrk_tables.
17201         * modules/gen-uni-tables (Description): Update.
17202         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
17203         gen-uni-tables.
17204
17205         New module 'uniwbrk/base'.
17206         * modules/uniwbrk/base: New file.
17207         * lib/uniwbrk.h: New file.
17208
17209 2009-02-08  Bruno Haible  <bruno@clisp.org>
17210
17211         Update to Unicode 5.1.0.
17212         * lib/gen-uni-tables.c (is_property_alphabetic): Include
17213         U+2185..U+2188.
17214         (is_property_default_ignorable_code_point): Don't include characters
17215         of category Cc or Cs and not-a-characters.
17216         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
17217         U+0D79, U+109E, U+109F, U+A60C.
17218         * lib/unictype/bidi_of.h: Regenerated.
17219         * lib/unictype/blocks.h: Regenerated.
17220         * lib/unictype/categ_C.h: Regenerated.
17221         * lib/unictype/categ_Cf.h: Regenerated.
17222         * lib/unictype/categ_Cn.h: Regenerated.
17223         * lib/unictype/categ_L.h: Regenerated.
17224         * lib/unictype/categ_Ll.h: Regenerated.
17225         * lib/unictype/categ_Lm.h: Regenerated.
17226         * lib/unictype/categ_Lo.h: Regenerated.
17227         * lib/unictype/categ_Lu.h: Regenerated.
17228         * lib/unictype/categ_M.h: Regenerated.
17229         * lib/unictype/categ_Mc.h: Regenerated.
17230         * lib/unictype/categ_Me.h: Regenerated.
17231         * lib/unictype/categ_Mn.h: Regenerated.
17232         * lib/unictype/categ_N.h: Regenerated.
17233         * lib/unictype/categ_Nd.h: Regenerated.
17234         * lib/unictype/categ_Nl.h: Regenerated.
17235         * lib/unictype/categ_No.h: Regenerated.
17236         * lib/unictype/categ_P.h: Regenerated.
17237         * lib/unictype/categ_Pd.h: Regenerated.
17238         * lib/unictype/categ_Pe.h: Regenerated.
17239         * lib/unictype/categ_Pf.h: Regenerated.
17240         * lib/unictype/categ_Pi.h: Regenerated.
17241         * lib/unictype/categ_Po.h: Regenerated.
17242         * lib/unictype/categ_Ps.h: Regenerated.
17243         * lib/unictype/categ_S.h: Regenerated.
17244         * lib/unictype/categ_Sk.h: Regenerated.
17245         * lib/unictype/categ_Sm.h: Regenerated.
17246         * lib/unictype/categ_So.h: Regenerated.
17247         * lib/unictype/categ_of.h: Regenerated.
17248         * lib/unictype/combining.h: Regenerated.
17249         * lib/unictype/ctype_alnum.h: Regenerated.
17250         * lib/unictype/ctype_alpha.h: Regenerated.
17251         * lib/unictype/ctype_graph.h: Regenerated.
17252         * lib/unictype/ctype_lower.h: Regenerated.
17253         * lib/unictype/ctype_print.h: Regenerated.
17254         * lib/unictype/ctype_punct.h: Regenerated.
17255         * lib/unictype/ctype_upper.h: Regenerated.
17256         * lib/unictype/decdigit.h: Regenerated.
17257         * lib/unictype/digit.h: Regenerated.
17258         * lib/unictype/mirror.h: Regenerated.
17259         * lib/unictype/numeric.h: Regenerated.
17260         * lib/unictype/pr_alphabetic.h: Regenerated.
17261         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
17262         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
17263         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
17264         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
17265         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
17266         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
17267         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
17268         * lib/unictype/pr_combining.h: Regenerated.
17269         * lib/unictype/pr_dash.h: Regenerated.
17270         * lib/unictype/pr_decimal_digit.h: Regenerated.
17271         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
17272         * lib/unictype/pr_deprecated.h: Regenerated.
17273         * lib/unictype/pr_diacritic.h: Regenerated.
17274         * lib/unictype/pr_extender.h: Regenerated.
17275         * lib/unictype/pr_format_control.h: Regenerated.
17276         * lib/unictype/pr_grapheme_base.h: Regenerated.
17277         * lib/unictype/pr_grapheme_extend.h: Regenerated.
17278         * lib/unictype/pr_grapheme_link.h: Regenerated.
17279         * lib/unictype/pr_id_continue.h: Regenerated.
17280         * lib/unictype/pr_id_start.h: Regenerated.
17281         * lib/unictype/pr_ideographic.h: Regenerated.
17282         * lib/unictype/pr_ignorable_control.h: Regenerated.
17283         * lib/unictype/pr_lowercase.h: Regenerated.
17284         * lib/unictype/pr_math.h: Regenerated.
17285         * lib/unictype/pr_numeric.h: Regenerated.
17286         * lib/unictype/pr_other_alphabetic.h: Regenerated.
17287         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
17288         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
17289         * lib/unictype/pr_other_id_continue.h: Regenerated.
17290         * lib/unictype/pr_other_lowercase.h: Regenerated.
17291         * lib/unictype/pr_other_math.h: Regenerated.
17292         * lib/unictype/pr_punctuation.h: Regenerated.
17293         * lib/unictype/pr_sentence_terminal.h: Regenerated.
17294         * lib/unictype/pr_soft_dotted.h: Regenerated.
17295         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
17296         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
17297         * lib/unictype/pr_unified_ideograph.h: Regenerated.
17298         * lib/unictype/pr_uppercase.h: Regenerated.
17299         * lib/unictype/pr_xid_continue.h: Regenerated.
17300         * lib/unictype/pr_xid_start.h: Regenerated.
17301         * lib/unictype/pr_zero_width.h: Regenerated.
17302         * lib/unictype/scripts.h: Regenerated.
17303         * lib/unictype/scripts_byname.gperf: Regenerated.
17304         * lib/unictype/sy_java_ident.h: Regenerated.
17305         * lib/unilbrk/lbrkprop1.h: Regenerated.
17306         * lib/unilbrk/lbrkprop2.h: Regenerated.
17307         * tests/unictype/test-categ_C.c: Regenerated.
17308         * tests/unictype/test-categ_Cf.c: Regenerated.
17309         * tests/unictype/test-categ_Cn.c: Regenerated.
17310         * tests/unictype/test-categ_L.c: Regenerated.
17311         * tests/unictype/test-categ_Ll.c: Regenerated.
17312         * tests/unictype/test-categ_Lm.c: Regenerated.
17313         * tests/unictype/test-categ_Lo.c: Regenerated.
17314         * tests/unictype/test-categ_Lu.c: Regenerated.
17315         * tests/unictype/test-categ_M.c: Regenerated.
17316         * tests/unictype/test-categ_Mc.c: Regenerated.
17317         * tests/unictype/test-categ_Me.c: Regenerated.
17318         * tests/unictype/test-categ_Mn.c: Regenerated.
17319         * tests/unictype/test-categ_N.c: Regenerated.
17320         * tests/unictype/test-categ_Nd.c: Regenerated.
17321         * tests/unictype/test-categ_Nl.c: Regenerated.
17322         * tests/unictype/test-categ_No.c: Regenerated.
17323         * tests/unictype/test-categ_P.c: Regenerated.
17324         * tests/unictype/test-categ_Pd.c: Regenerated.
17325         * tests/unictype/test-categ_Pe.c: Regenerated.
17326         * tests/unictype/test-categ_Pf.c: Regenerated.
17327         * tests/unictype/test-categ_Pi.c: Regenerated.
17328         * tests/unictype/test-categ_Po.c: Regenerated.
17329         * tests/unictype/test-categ_Ps.c: Regenerated.
17330         * tests/unictype/test-categ_S.c: Regenerated.
17331         * tests/unictype/test-categ_Sk.c: Regenerated.
17332         * tests/unictype/test-categ_Sm.c: Regenerated.
17333         * tests/unictype/test-categ_So.c: Regenerated.
17334         * tests/unictype/test-ctype_alnum.c: Regenerated.
17335         * tests/unictype/test-ctype_alpha.c: Regenerated.
17336         * tests/unictype/test-ctype_graph.c: Regenerated.
17337         * tests/unictype/test-ctype_lower.c: Regenerated.
17338         * tests/unictype/test-ctype_print.c: Regenerated.
17339         * tests/unictype/test-ctype_punct.c: Regenerated.
17340         * tests/unictype/test-ctype_upper.c: Regenerated.
17341         * tests/unictype/test-decdigit.h: Regenerated.
17342         * tests/unictype/test-digit.h: Regenerated.
17343         * tests/unictype/test-numeric.h: Regenerated.
17344         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17345         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17346         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17347         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17348         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17349         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17350         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17351         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17352         * tests/unictype/test-pr_combining.c: Regenerated.
17353         * tests/unictype/test-pr_dash.c: Regenerated.
17354         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17355         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17356         * tests/unictype/test-pr_deprecated.c: Regenerated.
17357         * tests/unictype/test-pr_diacritic.c: Regenerated.
17358         * tests/unictype/test-pr_extender.c: Regenerated.
17359         * tests/unictype/test-pr_format_control.c: Regenerated.
17360         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17361         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17362         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17363         * tests/unictype/test-pr_id_continue.c: Regenerated.
17364         * tests/unictype/test-pr_id_start.c: Regenerated.
17365         * tests/unictype/test-pr_ideographic.c: Regenerated.
17366         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17367         * tests/unictype/test-pr_lowercase.c: Regenerated.
17368         * tests/unictype/test-pr_math.c: Regenerated.
17369         * tests/unictype/test-pr_numeric.c: Regenerated.
17370         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17371         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17372         Regenerated.
17373         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17374         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17375         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17376         * tests/unictype/test-pr_other_math.c: Regenerated.
17377         * tests/unictype/test-pr_punctuation.c: Regenerated.
17378         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17379         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17380         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17381         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17382         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17383         * tests/unictype/test-pr_uppercase.c: Regenerated.
17384         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17385         * tests/unictype/test-pr_xid_start.c: Regenerated.
17386         * tests/unictype/test-pr_zero_width.c: Regenerated.
17387
17388         Update to Unicode 5.1.0.
17389         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17390         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17391         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17392         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17393         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17394         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17395         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17396         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17397         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17398         (nonspacing_table_ind): Update.
17399         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17400
17401         Update to Unicode 5.1.0.
17402         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17403         code transform.
17404         * lib/uniname/uniname.c (unicode_character_name,
17405         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17406         * lib/uniname/uninames.h: Regenerated.
17407         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17408
17409 2009-02-07  Bruno Haible  <bruno@clisp.org>
17410
17411         Merge gen-ctype and gen-lbrk into a single program.
17412         * lib/gen-uni-tables.c: New file, incorporating
17413         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17414         Add directory prefixes to the names of the generated files.
17415         * lib/unictype/gen-ctype.c: Remove file.
17416         * lib/unilbrk/gen-lbrk.c: Remove file.
17417         * modules/gen-uni-tables: New file.
17418         * modules/unictype/gen-ctype: Remove file.
17419         * modules/unilbrk/gen-lbrk: Remove file.
17420
17421 2009-02-07  Bruno Haible  <bruno@clisp.org>
17422
17423         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17424
17425         New module 'unistr/u32-strcoll'.
17426         * modules/unistr/u32-strcoll: New file.
17427         * lib/unistr/u32-strcoll.c: New file.
17428
17429         New module 'unistr/u16-strcoll'.
17430         * modules/unistr/u16-strcoll: New file.
17431         * lib/unistr/u16-strcoll.c: New file.
17432
17433         New module 'unistr/u8-strcoll'.
17434         * modules/unistr/u8-strcoll: New file.
17435         * lib/unistr/u8-strcoll.c: New file.
17436         * lib/unistr/u-strcoll.h: New file.
17437
17438 2009-02-07  Bruno Haible  <bruno@clisp.org>
17439
17440         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17441         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17442         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17443         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17444         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17445         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17446
17447 2009-02-07  Bruno Haible  <bruno@clisp.org>
17448
17449         Make 64-bit clean.
17450         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17451         output_combclass, output_bidi_category, output_decimal_digit,
17452         output_digit, output_numeric, output_mirror, output_scripts,
17453         output_ident_category): Use proper width specifier in format strings.
17454
17455 2009-02-07  Bruno Haible  <bruno@clisp.org>
17456
17457         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17458         failure behaviour.
17459
17460 2009-02-07  Jim Meyering  <meyering@redhat.com>
17461
17462         regex: avoid compilation failure with upcoming gcc-4.4
17463         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17464         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17465         "... error: integer overflow in preprocessor expression".
17466
17467 2009-02-05  Ben Pfaff  <blp@gnu.org>
17468
17469         Fix link errors on Windows when close module is used.
17470         * modules/close: Add $(LIB_CLOSE) to Link section.
17471         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17472         $(LIB_CLOSE) on Windows.
17473
17474 2009-02-05  Jim Meyering  <meyering@redhat.com>
17475
17476         still avoid unused-parameter warnings, but do it cleanly
17477         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17478         (get_fs_usage): Cast to void instead.
17479         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17480         (dev_from_mount_options, read_file_system_list): Cast to void.
17481         Prompted by Bruno Haible.
17482
17483 2009-02-04  Jim Meyering  <meyering@redhat.com>
17484
17485         fsusage.c: correct copyright year
17486         * lib/fsusage.c: Reflect year in which the change is pushed into
17487
17488         avoid misc. warnings
17489         * lib/fsusage.c (UNUSED_PARAM): Define.
17490         (get_fs_usage): Mark parameter "disk" as unused.
17491         * lib/getugroups.c (getgrent): Use "void" in prototype.
17492         * lib/mountlist.c: Mark unused parameters.
17493         (read_file_system_list): Declare a local with "const".
17494         * lib/nanosleep.c (getnow): Declare static.
17495         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17496
17497         dirfd: set errno upon failure
17498         * lib/dirfd.c: Include <errno.h>.
17499         Set errno to ENOTSUP when returning -1.
17500         * modules/dirfd (Depends-on): Add errno.
17501         Suggested by John Kodis <kodis@comcast.net>.
17502
17503 2009-02-01  Bruno Haible  <bruno@clisp.org>
17504
17505         Don't assume sizeof (long) >= sizeof (void *).
17506         * lib/memcmp.c: Include stdint.h.
17507         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17508         srcp2 to 'const byte *'.
17509         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17510         types to uintptr_t.
17511         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17512         * modules/memcmp (Depends-on): Add stdint.
17513         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17514
17515 2009-01-30  Eric Blake  <ebb9@byu.net>
17516
17517         fix more require-before-expand issues
17518         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17519         expand, AC_PROG_AWK.
17520         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17521
17522 2009-01-28  Eric Blake  <ebb9@byu.net>
17523
17524         version-etc: use consistent URL formatting
17525         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17526         Improve formatting.  Use fputs for string without %.
17527
17528 2009-01-28  Jim Meyering  <meyering@redhat.com>
17529
17530         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17531         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17532         "underquoted definition of NAME" from autoconf-2.59.
17533
17534 2009-01-28  Bruno Haible  <bruno@clisp.org>
17535
17536         * doc/gnulib.texi: Add "Obsolete modules" to index.
17537
17538 2009-01-28  Jim Meyering  <meyering@redhat.com>
17539
17540         useless-if-before-free: recognize more variants
17541         * build-aux/useless-if-before-free: Also recognize e.g.,
17542         if (NULL != p) free (p);
17543
17544 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17545
17546         test-getaddrinfo: skip (don't fail) this test when there's no network
17547         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17548         on the presumption that it means you lack network access.
17549
17550 2009-01-26  Jim Meyering  <meyering@redhat.com>
17551
17552         fflush: avoid warnings on modern systems
17553         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17554         pos and result, into scopes where they're used.
17555
17556 2009-01-26  Eric Blake  <ebb9@byu.net>
17557
17558         Silence warning reintroduced by recent extensions patch.
17559         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17560         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17561         autoconf.
17562
17563         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17564         * m4/00gnulib.m4: New file.
17565         * gnulib-tool (func_get_filelist): Always use it.
17566         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17567         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17568
17569 2009-01-25  Bruno Haible  <bruno@clisp.org>
17570
17571         Make test-quotearg work on MacOS X and AIX.
17572         * tests/test-quotearg.sh: New file.
17573         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17574         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17575         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17576         include <libintl.h>.
17577         (fake_locale): Remove variable.
17578         (gettext, dgettext, dcgettext): Remove functions.
17579         (main): Instead of setting a fake locale, set a real locale. Call
17580         textdomain and bindtextdomain.
17581         * modules/quotearg-tests (Files): Add the new files.
17582         (Depends-on): Add gettext, setenv, unsetenv.
17583         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17584         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17585         Augment TESTS_ENVIRONMENT.
17586
17587 2009-01-25  Bruno Haible  <bruno@clisp.org>
17588
17589         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17590         fr_FR.ISO8859-1 locale on MacOS X.
17591         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17592         ja_JP.eucJP locale on MacOS X.
17593         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17594         zh_CN.GB18030 locale on MacOS X.
17595
17596 2009-01-25  Bruno Haible  <bruno@clisp.org>
17597
17598         Avoid link errors on MacOS X 10.3.
17599         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17600         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17601
17602 2009-01-25  Bruno Haible  <bruno@clisp.org>
17603
17604         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17605         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17606         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17607         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17608         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17609         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17610         posix_spawnattr_init, posix_spawnattr_setsigmask,
17611         posix_spawnattr_setflags, posix_spawnattr_destroy.
17612
17613         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17614         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17615         * modules/execute (Files): Remove m4/posix_spawn.m4.
17616         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17617         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17618         posix_spawnattr_init, posix_spawnattr_setsigmask,
17619         posix_spawnattr_setflags, posix_spawnattr_destroy.
17620
17621 2009-01-25  Bruno Haible  <bruno@clisp.org>
17622
17623         * lib/glthread/threadlib.c: Include <stdlib.h>.
17624
17625 2009-01-25  Bruno Haible  <bruno@clisp.org>
17626
17627         * lib/glthread/threadlib.c (dummy): New declaration.
17628
17629 2009-01-25  Bruno Haible  <bruno@clisp.org>
17630
17631         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17632         multibyte characters also for the GB18030 encoding. Don't crash when
17633         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17634
17635 2009-01-25  Bruno Haible  <bruno@clisp.org>
17636
17637         Avoid redefining 'struct random_data' on OSF/1 5.1.
17638         * lib/stdlib.in.h: Include <random.h> if it exists.
17639         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17640         HAVE_RANDOM_H. Include <random.h> when testing whether
17641         'struct random_data' exists.
17642         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17643
17644 2009-01-25  Bruno Haible  <bruno@clisp.org>
17645
17646         Don't install charset.alias on MacOS X >= 10.3.
17647         * lib/localcharset.c (DARWIN7): New macro.
17648         (get_charset_aliases): Hardcode the result for Darwin7.
17649         * modules/localcharset (install-exec-local): Don't install
17650         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17651
17652 2009-01-25  Bruno Haible  <bruno@clisp.org>
17653
17654         Don't install charset.alias on mingw and Cygwin.
17655         * modules/localcharset (install-exec-local): Don't install
17656         charset.alias on mingw and Cygwin, if the file does not yet exist.
17657         The result for these platforms is hardcoded in localcharset.c.
17658
17659 2009-01-25  Bruno Haible  <bruno@clisp.org>
17660
17661         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17662         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17663         before requiring AC_USE_SYSTEM_EXTENSIONS.
17664
17665 2009-01-25  Jim Meyering  <meyering@redhat.com>
17666
17667         c-strtod: avoid warnings
17668         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17669         "assignment discards qualifiers from pointer target type" warnings.
17670
17671 2009-01-24  Bruno Haible  <bruno@clisp.org>
17672
17673         Add support for non-UTF-8 locales on MacOS X.
17674         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17675         canonical encodings. For Darwin 7 and newer, don't map traditional
17676         encodings to UTF-8.
17677         Reported by Vincent Lefevre <vincent@vinc17.org>
17678         at <http://savannah.gnu.org/bugs/?25235>.
17679
17680 2009-01-24  Bruno Haible  <bruno@clisp.org>
17681
17682         * doc/gnulib.texi (Obsolete modules): New section.
17683         Reported by Mike Frysinger <vapier@gentoo.org>.
17684
17685 2009-01-24  Bruno Haible  <bruno@clisp.org>
17686
17687         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17688         (%.dvi): New rule.
17689
17690 2009-01-24  Bruno Haible  <bruno@clisp.org>
17691
17692         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17693         Reported by Eric Blake.
17694
17695 2009-01-24  Bruno Haible  <bruno@clisp.org>
17696
17697         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17698         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17699         Reported by Gary V. Vaughan <gary@gnu.org>.
17700
17701 2009-01-24  Bruno Haible  <bruno@clisp.org>
17702
17703         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17704
17705 2009-01-23  Bruno Haible  <bruno@clisp.org>
17706
17707         Make c-strtod, c-strtold usable in libraries.
17708         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17709         (C_STRTOD): Call strdup instead of xstrdup.
17710         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17711         * modules/c-strtold (Depends-on): Likewise.
17712         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17713         * NEWS: Mention the change.
17714         Reported by Michael Gold <mgold@ncf.ca>.
17715
17716 2009-01-23  Jim Meyering  <meyering@redhat.com>
17717
17718         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17719         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17720         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17721
17722 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17723
17724         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17725         GNU CoreUtils.
17726         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17727         * modules/version-etc (Description): Update.
17728
17729 2009-01-22  Bruno Haible  <bruno@clisp.org>
17730
17731         Cache the C locale object.
17732         * lib/c-strtod.c (c_locale_cache): New variable.
17733         (c_locale): New function.
17734         (C_STRTOD): Use it, and don't call freelocale.
17735         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17736         Suggested by Paolo Bonzini.
17737
17738 2009-01-21  Bruno Haible  <bruno@clisp.org>
17739
17740         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17741         conditions other than overflow.
17742
17743 2009-01-21  Bruno Haible  <bruno@clisp.org>
17744
17745         * lib/c-strtod.c: Include errno.h.
17746         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17747         value from STRTOD_L and STRTOD.
17748
17749 2009-01-21  Bruno Haible  <bruno@clisp.org>
17750         and Jim Meyering  <meyering@redhat.com>
17751
17752         nanosleep: skip configure test (fail it) for apple universal builds
17753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17754         universal builds, assume that nanosleep does not work.
17755         * modules/nanosleep (Depends-on): Add multiarch.
17756
17757         mktime: skip configure test (fail it) for apple universal builds
17758         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17759         universal builds, assume that mktime does not work.
17760         * modules/mktime (Depends-on): Add multiarch.
17761
17762 2009-01-21  Eric Blake  <ebb9@byu.net>
17763
17764         multiarch: avoid expand-before-require warning
17765         * modules/multiarch (configure.ac): Require, rather than expand,
17766         gl_MULTIARCH.
17767         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17768         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17769         enforce that all clients require it.  Partial reversion of
17770         2008-12-29 patch.
17771
17772         error: avoid expand-before-require warning
17773         * modules/errno (configure.ac): Require, rather than expand,
17774         gl_HEADER_ERRNO_H.
17775         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17776         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17777         enforce that all clients require it.
17778
17779         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17780         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17781         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17782         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17783
17784 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17785
17786         Revert:
17787         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17788
17789         regex: do not depend on obsolete modules.
17790         * modules/regex: Remove memcmp and memmove.
17791
17792 2009-01-20  Bruno Haible  <bruno@clisp.org>
17793
17794         Make the 'link' module link on Windows NT 4.
17795         * lib/link.c (_WIN32_WINNT): Don't define.
17796         (CreateHardLinkFuncType): New type.
17797         (CreateHardLinkFunc, initialized): New variables.
17798         (initialize): New function.
17799         (link): Invoke CreateHardLink indirectly through the function pointer.
17800
17801 2009-01-20  Bruno Haible  <bruno@clisp.org>
17802
17803         Fix compilation failure on mingw.
17804         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17805
17806 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17807
17808         * doc/c-strtod.texi: Mention a couple of restrictions.
17809
17810 2009-01-20  Jim Meyering  <meyering@redhat.com>
17811
17812         gettimeofday: move more declarations out of functions
17813         * lib/gettimeofday.c: Move extern declarations of tzset and
17814         gmtime out of containing functions.  Prompted by Bruno Haible.
17815
17816 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17817
17818         regex: do not depend on obsolete modules.
17819         * modules/regex: Remove memcmp and memmove.
17820
17821 2009-01-19  Bruno Haible  <bruno@clisp.org>
17822
17823         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17824         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17825         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17826         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17827         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17828
17829 2009-01-19  Bruno Haible  <bruno@clisp.org>
17830
17831         * tests/test-link.c: Include <errno.h>.
17832         (main): Exit with code 77 when a hard link cannot be created due to
17833         the file system.
17834         * tests/test-link.sh: Skip test when a hard link cannot be created due
17835         to the file system.
17836         Suggested by Eric Blake.
17837
17838 2009-01-19  Martin Lambers  <marlam@marlam.de>
17839
17840         * modules/link-tests: New file.
17841         * tests/test-link.sh: New file.
17842         * tests/test-link.c: New file.
17843
17844 2009-01-19  Eric Blake  <ebb9@byu.net>
17845
17846         doc: mention another function added in cygwin 1.7.0
17847         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17848         Another new function in cygwin 1.7.
17849
17850 2009-01-19  Bruno Haible  <bruno@clisp.org>
17851
17852         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17853         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17854         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17855         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17856         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17857         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17858         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17859         * m4/md4.m4 (gl_MD4): Likewise.
17860         * m4/md5.m4 (gl_MD5): Likewise.
17861         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17862         * m4/sha1.m4 (gl_SHA1): Likewise.
17863         * m4/sha256.m4 (gl_SHA256): Likewise.
17864         * m4/sha512.m4 (gl_SHA512): Likewise.
17865
17866 2009-01-19  Bruno Haible  <bruno@clisp.org>
17867
17868         * modules/uniname/uniname-tests (Depends-on): Add progname.
17869         * tests/uniname/test-uninames.c: Include progname.h.
17870         (main): Call set_program_name.
17871
17872         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17873         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17874         (main): Call set_program_name.
17875
17876         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17877         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17878         (main): Call set_program_name.
17879
17880         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17881         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17882         (main): Call set_program_name.
17883
17884         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17885         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17886         (main): Call set_program_name.
17887
17888         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17889         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17890         (main): Call set_program_name.
17891
17892         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17893         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17894         (main): Call set_program_name.
17895
17896         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17897         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17898         (main): Call set_program_name.
17899
17900         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17901         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17902         (main): Call set_program_name.
17903
17904 2009-01-19  Eric Blake  <ebb9@byu.net>
17905
17906         test-unistd: test previous patch
17907         * tests/test-unistd.c: Test *_FILENO macros.
17908
17909         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17910         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17911         Guarantee a definition.
17912         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17913         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17914         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17915         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17916         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17917         Likewise.
17918         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17919         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17920         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17921         Likewise.
17922         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17923         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17924         (STDERR_FILENO): Likewise.
17925         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17926         (STDERR_FILENO): Likewise.
17927         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17928         (STDERR_FILENO): Likewise.
17929         Reported by Elbert Pol.
17930
17931 2009-01-19  Eric Blake  <ebb9@byu.net>
17932
17933         doc: mention more functions added in cygwin 1.7.0
17934         * doc/posix-functions/abort.texi (abort): Update wording related
17935         to cygwin.
17936         * doc/posix-functions/daylight.texi (daylight): Likewise.
17937         * doc/posix-functions/optarg.texi (optarg): Likewise.
17938         * doc/posix-functions/optarg.texi (opterr): Likewise.
17939         * doc/posix-functions/optarg.texi (optind): Likewise.
17940         * doc/posix-functions/optarg.texi (optopt): Likewise.
17941         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17942         worked in 1.5.x, and was withdrawn in 1.7.
17943         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17944         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17945         cygwin versions.
17946         * doc/posix-functions/perror.texi (perror): Likewise.
17947         * doc/posix-functions/printf.texi (printf): Likewise.
17948         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17949         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17950         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17951         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17952         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17953         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17954         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17955         Likewise.
17956         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17957         Likewise.
17958         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17959         this function.
17960         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17961         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17962         Likewise.
17963         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17964         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17965         * doc/posix-functions/confstr.texi (confstr): Likewise.
17966         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17967         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17968         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17969         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17970         * doc/posix-functions/fputws.texi (fputws): Likewise.
17971         * doc/posix-functions/fwide.texi (fwide): Likewise.
17972         * doc/posix-functions/getwc.texi (getwc): Likewise.
17973         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17974         * doc/posix-functions/putwc.texi (putwc): Likewise.
17975         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17976         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17977         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17978         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17979         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17980         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17981         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17982         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17983         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17984         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17985         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17986
17987 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17988
17989         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17990         * lib/ioctl.c: Include <sys/ioctl.h>.
17991
17992 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17993
17994         * modules/getdate-tests (Depends-on): Add progname.
17995         * tests/test-getdate.c: Use progname module, to avoid link errors
17996         on non-glibc systems.
17997
17998 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17999
18000         * modules/filenamecat-tests (Depends-on): Add progname.
18001         * modules/fstrcmp-tests (Depends-on): Likewise.
18002
18003         * tests/test-filenamecat.c: Use progname module, to avoid link
18004         errors on non-glibc systems.
18005         * tests/test-fstrcmp.c: Likewise.
18006
18007 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
18008
18009         gettimeofday: avoid warning: nested extern declaration of 'localtime'
18010         * lib/gettimeofday.c: Move extern declaration out of function.
18011
18012 2009-01-18  Bruno Haible  <bruno@clisp.org>
18013
18014         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
18015         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
18016         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
18017
18018 2009-01-18  Bruno Haible  <bruno@clisp.org>
18019
18020         * lib/strftime.c (MEMPCPY): Remove unused macro.
18021         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
18022
18023 2009-01-18  Martin Lambers  <marlam@marlam.de>
18024
18025         New module 'link'.
18026         * lib/unistd.in.h (link): New declaration.
18027         * lib/link.c: New file.
18028         * m4/link.m4: New file.
18029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
18030         HAVE_LINK.
18031         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
18032         * modules/link: New file.
18033         * doc/posix-functions/link.texi: Mention the new module.
18034
18035 2009-01-18  Bruno Haible  <bruno@clisp.org>
18036
18037         * tests/test-avltree_list.c (main): Call set_program_name.
18038         * tests/test-avltree_oset.c (main): Likewise.
18039         * tests/test-obstack-printf.c: Include progname.h.
18040         (main): Call set_program_name.
18041         * tests/test-quotearg.c: Include progname.h.
18042         (main): Call set_program_name.
18043         * tests/test-xmemdup0.c: Include progname.h.
18044         (main): Call set_program_name.
18045
18046 2009-01-18  Bruno Haible  <bruno@clisp.org>
18047
18048         New module 'alphasort'.
18049         * lib/dirent.in.h (alphasort): New declaration.
18050         * lib/alphasort.c: New file, from glibc with modifications.
18051         * m4/alphasort.m4: New file.
18052         * modules/alphasort: New file.
18053         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
18054         HAVE_ALPHASORT.
18055         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
18056         HAVE_ALPHASORT.
18057         * doc/posix-functions/alphasort.texi: Mention the new module and the
18058         portability problems.
18059
18060 2009-01-18  Bruno Haible  <bruno@clisp.org>
18061
18062         New module 'scandir'.
18063         * lib/dirent.in.h (scandir): New declaration.
18064         * lib/scandir.c: New file, from glibc with modifications.
18065         * m4/scandir.m4: New file.
18066         * modules/scandir: New file.
18067         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
18068         HAVE_SCANDIR.
18069         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
18070         HAVE_SCANDIR.
18071         * doc/posix-functions/scandir.texi: Mention the new module and the
18072         portability problems.
18073
18074 2009-01-17  Bruno Haible  <bruno@clisp.org>
18075
18076         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
18077         Update documentation.
18078         (func_remove_suffix): Escape all dots in the suffix. Update
18079         documentation.
18080         (func_filter_filelist): Update documentation.
18081         Reported by Ralf Wildenhues.
18082
18083 2009-01-17  Bruno Haible  <bruno@clisp.org>
18084
18085         * modules/dprintf-posix-tests: New file.
18086         * tests/test-dprintf-posix.sh: New file.
18087         * tests/test-dprintf-posix.c: New file.
18088
18089         New modules 'dprintf', 'dprintf-posix'.
18090         * lib/stdio.in.h (dprintf): New declaration.
18091         * lib/dprintf.c: New file.
18092         * m4/dprintf.m4: New file.
18093         * m4/dprintf-posix.m4: New file.
18094         * modules/dprintf: New file.
18095         * modules/dprintf-posix: New file.
18096         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
18097         HAVE_DPRINTF, REPLACE_DPRINTF.
18098         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
18099         HAVE_DPRINTF, REPLACE_DPRINTF.
18100         * doc/posix-functions/dprintf.texi: Mention the new modules.
18101
18102 2009-01-17  Bruno Haible  <bruno@clisp.org>
18103
18104         * modules/vdprintf-posix-tests: New file.
18105         * tests/test-vdprintf-posix.sh: New file.
18106         * tests/test-vdprintf-posix.c: New file.
18107
18108         New modules 'vdprintf', 'vdprintf-posix'.
18109         * lib/stdio.in.h (vdprintf): New declaration.
18110         * lib/vdprintf.c: New file.
18111         * m4/vdprintf.m4: New file.
18112         * m4/vdprintf-posix.m4: New file.
18113         * modules/vdprintf: New file.
18114         * modules/vdprintf-posix: New file.
18115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
18116         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18117         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
18118         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18119         * doc/posix-functions/vdprintf.texi: Mention the new modules.
18120
18121 2009-01-17  Bruno Haible  <bruno@clisp.org>
18122
18123         Fix replacement of fopen on mingw.
18124         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
18125         mingw.
18126
18127 2009-01-17  Bruno Haible  <bruno@clisp.org>
18128
18129         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
18130         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
18131
18132 2009-01-17  Bruno Haible  <bruno@clisp.org>
18133
18134         Avoid test-fflush2.sh failure on mingw.
18135         * tests/test-fflush2.c: Include binary-io.h.
18136         (main): Put standard input into binary mode.
18137         * modules/fflush-tests (Depends-on): Add binary-io.
18138
18139 2009-01-17  Bruno Haible  <bruno@clisp.org>
18140
18141         * lib/wchar.in.h: In another particular situation, include only the
18142         system's <wchar.h> file.
18143         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
18144         Reported by Albert Chin-A-Young <china@thewrittenword.com>
18145         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
18146
18147 2009-01-17  Bruno Haible  <bruno@clisp.org>
18148
18149         Support for stripping executables in --enable-relocatable.
18150         * build-aux/install-reloc: Expect one more argument, or an environment
18151         variable RELOC_STRIP_PROG. If set, strip the destination program and
18152         its wrapper.
18153         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
18154         RELOC_STRIP_PROG.
18155         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
18156         to set RELOCATABLE_STRIP.
18157         * NEWS: Mention the new Makefile requirement.
18158
18159 2009-01-17  Bruno Haible  <bruno@clisp.org>
18160
18161         * build-aux/install-reloc: Remove debugging information left over by
18162         C compiler on MacOS X.
18163
18164 2009-01-17  Bruno Haible  <bruno@clisp.org>
18165
18166         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
18167         * lib/progreloc.c (find_executable): Fix type of pointer passed to
18168         _NSGetExecutablePath.
18169
18170 2009-01-16  Jim Meyering  <meyering@redhat.com>
18171
18172         strerror: avoid warnings about discarding "const"
18173         * lib/strerror.c (rpl_strerror): Instead of returning a const
18174         string from each and every "case", use a variable, and add a single
18175         cast after the switch.
18176
18177 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
18178
18179         * lib/arpa_inet.in.h: Add extern "C" block for C++.
18180
18181 2009-01-16  Bruno Haible  <bruno@clisp.org>
18182
18183         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
18184         array initializer syntax that also works in C++ mode.
18185         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18186
18187 2009-01-16  Jim Meyering  <meyering@redhat.com>
18188
18189         poll: suppress a warning
18190         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
18191         to ignore "...unsigned expression < 0 is always false" warnings.
18192
18193 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
18194
18195         poll: remove declarations of unused variables
18196         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
18197         sockbuf and optlen.
18198
18199 2009-01-15  Bruno Haible  <bruno@clisp.org>
18200
18201         Make fflush-after-ungetc POSIX compliant on BSD systems.
18202         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
18203         (clear_ungetc_buffer): Implement also for other systems.
18204         (rpl_fflush): On glibc systems, invoke
18205         clear_ungetc_buffer_preserving_position. Otherwise, invoke
18206         clear_ungetc_buffer after fetching the stream's position, not before.
18207
18208 2009-01-15  Bruno Haible  <bruno@clisp.org>
18209
18210         Make fflush-after-ungetc POSIX compliant on glibc systems.
18211         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
18212         after ungetc.
18213         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
18214         (rpl_fflush): On glibc systems, simply call the system's fflush
18215         function after clearing the ungetc buffer.
18216         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
18217         Instead, lseek only to the end of file, then use the system's fseeko
18218         for the rest. On glibc systems, reset the EOF indicator bit.
18219
18220 2009-01-15  Jim Meyering  <meyering@redhat.com>
18221
18222         openmp.m4: revert quote-adding change, for portability to older autoconf
18223         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
18224         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
18225         Simon Josefsson noticed the problem when using autoconf-2.61.
18226
18227 2009-01-15  Bruno Haible  <bruno@clisp.org>
18228
18229         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
18230         * tests/test-fflush2.c (ASSERT): Always fail.
18231         (main): Add two tests for fflush() after ungetc(), taking into account
18232         the Austin Group's clarification.
18233         Suggested by Eric Blake.
18234
18235 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
18236
18237         mktime.m4: remove K&R-style function prototypes
18238         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
18239         for the Sun C++ compiler.
18240
18241 2009-01-14  Bruno Haible  <bruno@clisp.org>
18242
18243         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
18244         while including <wchar.h>.
18245         * lib/wchar.in.h: In two particular situations on HP-UX, include only
18246         the system's <wchar.h> file.
18247         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18248
18249 2009-01-14  Bruno Haible  <bruno@clisp.org>
18250
18251         * m4/csharp.m4: Don't mention gettext on the serial number line.
18252         * m4/csharpexec.m4: Likewise.
18253         * m4/eaccess.m4: Likewise.
18254         * m4/javaexec.m4: Likewise.
18255         * m4/sig_atomic_t.m4: Likewise.
18256         * m4/tmpdir.m4: Likewise.
18257         * m4/intldir.m4: Bump gettext version.
18258         * m4/lib-ld.m4: Likewise.
18259
18260 2009-01-14  Bruno Haible  <bruno@clisp.org>
18261
18262         * lib/progname.c (set_program_name): Add more comments.
18263         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18264
18265 2009-01-14  Simon Josefsson  <simon@josefsson.org>
18266
18267         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
18268         were sys/stat.h does not define it.
18269
18270 2009-01-14  Jim Meyering  <meyering@redhat.com>
18271
18272         many *.m4 files: improve m4 quoting
18273         99% of this change was performed by running the following commands:
18274         git ls-files | grep '\.m4$' | xargs perl -pi \
18275           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
18276           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18277           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18278           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
18279         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
18280         The remainder were to add Copyright dates, increment serial numbers,
18281         undo some changes in comments, exclude m4/intl.m4, and add quotes
18282         around the "1" in ",1" where the unusual spacing prohibited the
18283         above regexps from doing the job.  For more details, see
18284         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
18285         * m4/acl.m4: Modified.
18286         * m4/afs.m4: Likewise.
18287         * m4/alloca.m4: Likewise.
18288         * m4/argp.m4: Likewise.
18289         * m4/argz.m4: Likewise.
18290         * m4/atexit.m4: Likewise.
18291         * m4/bison-i18n.m4: Likewise.
18292         * m4/bison.m4: Likewise.
18293         * m4/byteswap.m4: Likewise.
18294         * m4/c-stack.m4: Likewise.
18295         * m4/c-strtod.m4: Likewise.
18296         * m4/calloc.m4: Likewise.
18297         * m4/canonicalize-lgpl.m4: Likewise.
18298         * m4/chown.m4: Likewise.
18299         * m4/clock_time.m4: Likewise.
18300         * m4/codeset.m4: Likewise.
18301         * m4/copy-file.m4: Likewise.
18302         * m4/csharp.m4: Likewise.
18303         * m4/csharpcomp.m4: Likewise.
18304         * m4/csharpexec.m4: Likewise.
18305         * m4/d-ino.m4: Likewise.
18306         * m4/d-type.m4: Likewise.
18307         * m4/dirfd.m4: Likewise.
18308         * m4/double-slash-root.m4: Likewise.
18309         * m4/eaccess.m4: Likewise.
18310         * m4/eealloc.m4: Likewise.
18311         * m4/environ.m4: Likewise.
18312         * m4/errno_h.m4: Likewise.
18313         * m4/euidaccess.m4: Likewise.
18314         * m4/execute.m4: Likewise.
18315         * m4/fatal-signal.m4: Likewise.
18316         * m4/fchdir.m4: Likewise.
18317         * m4/fcntl_h.m4: Likewise.
18318         * m4/fileblocks.m4: Likewise.
18319         * m4/filenamecat.m4: Likewise.
18320         * m4/findprog.m4: Likewise.
18321         * m4/flexmember.m4: Likewise.
18322         * m4/fnmatch.m4: Likewise.
18323         * m4/fopen.m4: Likewise.
18324         * m4/fpending.m4: Likewise.
18325         * m4/fprintf-posix.m4: Likewise.
18326         * m4/free.m4: Likewise.
18327         * m4/frexp.m4: Likewise.
18328         * m4/frexpl.m4: Likewise.
18329         * m4/fsusage.m4: Likewise.
18330         * m4/ftruncate.m4: Likewise.
18331         * m4/gc-camellia.m4: Likewise.
18332         * m4/gc-random.m4: Likewise.
18333         * m4/gc.m4: Likewise.
18334         * m4/getaddrinfo.m4: Likewise.
18335         * m4/getcwd-abort-bug.m4: Likewise.
18336         * m4/getcwd-path-max.m4: Likewise.
18337         * m4/getdate.m4: Likewise.
18338         * m4/getdomainname.m4: Likewise.
18339         * m4/getgroups.m4: Likewise.
18340         * m4/gethostname.m4: Likewise.
18341         * m4/gethrxtime.m4: Likewise.
18342         * m4/getline.m4: Likewise.
18343         * m4/getloadavg.m4: Likewise.
18344         * m4/getndelim2.m4: Likewise.
18345         * m4/getpass.m4: Likewise.
18346         * m4/gettext.m4: Likewise.
18347         * m4/gettime.m4: Likewise.
18348         * m4/gettimeofday.m4: Likewise.
18349         * m4/gnulib-common.m4: Likewise.
18350         * m4/group-member.m4: Likewise.
18351         * m4/host-os.m4: Likewise.
18352         * m4/iconv.m4: Likewise.
18353         * m4/iconv_open.m4: Likewise.
18354         * m4/inet_ntop.m4: Likewise.
18355         * m4/inet_pton.m4: Likewise.
18356         * m4/inline.m4: Likewise.
18357         * m4/intldir.m4: Likewise.
18358         * m4/intlmacosx.m4: Likewise.
18359         * m4/intmax.m4: Likewise.
18360         * m4/intmax_t.m4: Likewise.
18361         * m4/inttypes.m4: Likewise.
18362         * m4/inttypes_h.m4: Likewise.
18363         * m4/inttypes-pri.m4: Likewise.
18364         * m4/isapipe.m4: Likewise.
18365         * m4/isnand.m4: Likewise.
18366         * m4/isnanf.m4: Likewise.
18367         * m4/isnanl.m4: Likewise.
18368         * m4/javacomp.m4: Likewise.
18369         * m4/javaexec.m4: Likewise.
18370         * m4/jm-winsz1.m4: Likewise.
18371         * m4/jm-winsz2.m4: Likewise.
18372         * m4/lchown.m4: Likewise.
18373         * m4/lcmessage.m4: Likewise.
18374         * m4/ldexpl.m4: Likewise.
18375         * m4/lib-ld.m4: Likewise.
18376         * m4/lib-link.m4: Likewise.
18377         * m4/libsigsegv.m4: Likewise.
18378         * m4/link-follow.m4: Likewise.
18379         * m4/localcharset.m4: Likewise.
18380         * m4/locale-fr.m4: Likewise.
18381         * m4/locale-ja.m4: Likewise.
18382         * m4/locale-tr.m4: Likewise.
18383         * m4/locale-zh.m4: Likewise.
18384         * m4/lock.m4: Likewise.
18385         * m4/longlong.m4: Likewise.
18386         * m4/ls-mntd-fs.m4: Likewise.
18387         * m4/lstat.m4: Likewise.
18388         * m4/malloc.m4: Likewise.
18389         * m4/mathl.m4: Likewise.
18390         * m4/mbrtowc.m4: Likewise.
18391         * m4/mbstate_t.m4: Likewise.
18392         * m4/mbswidth.m4: Likewise.
18393         * m4/memchr.m4: Likewise.
18394         * m4/memcmp.m4: Likewise.
18395         * m4/memcpy.m4: Likewise.
18396         * m4/memmem.m4: Likewise.
18397         * m4/memmove.m4: Likewise.
18398         * m4/mempcpy.m4: Likewise.
18399         * m4/memrchr.m4: Likewise.
18400         * m4/memset.m4: Likewise.
18401         * m4/minmax.m4: Likewise.
18402         * m4/mkdir-slash.m4: Likewise.
18403         * m4/mkdtemp.m4: Likewise.
18404         * m4/mktime.m4: Likewise.
18405         * m4/mmap-anon.m4: Likewise.
18406         * m4/mountlist.m4: Likewise.
18407         * m4/nanosleep.m4: Likewise.
18408         * m4/nls.m4: Likewise.
18409         * m4/nocrash.m4: Likewise.
18410         * m4/open.m4: Likewise.
18411         * m4/openat.m4: Likewise.
18412         * m4/openmp.m4: Likewise.
18413         * m4/pathmax.m4: Likewise.
18414         * m4/perl.m4: Likewise.
18415         * m4/physmem.m4: Likewise.
18416         * m4/pipe.m4: Likewise.
18417         * m4/po.m4: Likewise.
18418         * m4/poll.m4: Likewise.
18419         * m4/posixtm.m4: Likewise.
18420         * m4/posixver.m4: Likewise.
18421         * m4/printf-frexp.m4: Likewise.
18422         * m4/printf-frexpl.m4: Likewise.
18423         * m4/printf-posix.m4: Likewise.
18424         * m4/printf-posix-rpl.m4: Likewise.
18425         * m4/printf.m4: Likewise.
18426         * m4/progtest.m4: Likewise.
18427         * m4/putenv.m4: Likewise.
18428         * m4/readline.m4: Likewise.
18429         * m4/readlink.m4: Likewise.
18430         * m4/readutmp.m4: Likewise.
18431         * m4/realloc.m4: Likewise.
18432         * m4/regex.m4: Likewise.
18433         * m4/relocatable.m4: Likewise.
18434         * m4/relocatable-lib.m4: Likewise.
18435         * m4/rename-dest-slash.m4: Likewise.
18436         * m4/rename.m4: Likewise.
18437         * m4/rmdir-errno.m4: Likewise.
18438         * m4/rmdir.m4: Likewise.
18439         * m4/roundf.m4: Likewise.
18440         * m4/roundl.m4: Likewise.
18441         * m4/rpmatch.m4: Likewise.
18442         * m4/save-cwd.m4: Likewise.
18443         * m4/selinux-selinux-h.m4: Likewise.
18444         * m4/setenv.m4: Likewise.
18445         * m4/settime.m4: Likewise.
18446         * m4/sig2str.m4: Likewise.
18447         * m4/sig_atomic_t.m4: Likewise.
18448         * m4/signalblocking.m4: Likewise.
18449         * m4/signbit.m4: Likewise.
18450         * m4/sigpipe.m4: Likewise.
18451         * m4/sockets.m4: Likewise.
18452         * m4/sockpfaf.m4: Likewise.
18453         * m4/st_dm_mode.m4: Likewise.
18454         * m4/stat-time.m4: Likewise.
18455         * m4/stdbool.m4: Likewise.
18456         * m4/stdint.m4: Likewise.
18457         * m4/stdint_h.m4: Likewise.
18458         * m4/stpcpy.m4: Likewise.
18459         * m4/stpncpy.m4: Likewise.
18460         * m4/strcase.m4: Likewise.
18461         * m4/strchrnul.m4: Likewise.
18462         * m4/strcspn.m4: Likewise.
18463         * m4/strdup.m4: Likewise.
18464         * m4/strftime.m4: Likewise.
18465         * m4/strndup.m4: Likewise.
18466         * m4/strnlen.m4: Likewise.
18467         * m4/strpbrk.m4: Likewise.
18468         * m4/strptime.m4: Likewise.
18469         * m4/strsep.m4: Likewise.
18470         * m4/strtod.m4: Likewise.
18471         * m4/strtoimax.m4: Likewise.
18472         * m4/strtok_r.m4: Likewise.
18473         * m4/strtol.m4: Likewise.
18474         * m4/strtoll.m4: Likewise.
18475         * m4/strtoul.m4: Likewise.
18476         * m4/strtoull.m4: Likewise.
18477         * m4/strtoumax.m4: Likewise.
18478         * m4/strverscmp.m4: Likewise.
18479         * m4/threadlib.m4: Likewise.
18480         * m4/timegm.m4: Likewise.
18481         * m4/tm_gmtoff.m4: Likewise.
18482         * m4/tmpdir.m4: Likewise.
18483         * m4/tmpfile.m4: Likewise.
18484         * m4/tzset.m4: Likewise.
18485         * m4/uintmax_t.m4: Likewise.
18486         * m4/unlinkdir.m4: Likewise.
18487         * m4/unlocked-io.m4: Likewise.
18488         * m4/uptime.m4: Likewise.
18489         * m4/userspec.m4: Likewise.
18490         * m4/utimbuf.m4: Likewise.
18491         * m4/utime.m4: Likewise.
18492         * m4/utimes-null.m4: Likewise.
18493         * m4/utimes.m4: Likewise.
18494         * m4/vararrays.m4: Likewise.
18495         * m4/vasnprintf.m4: Likewise.
18496         * m4/vfprintf-posix.m4: Likewise.
18497         * m4/vprintf-posix.m4: Likewise.
18498         * m4/wait-process.m4: Likewise.
18499         * m4/wchar_t.m4: Likewise.
18500         * m4/wint_t.m4: Likewise.
18501         * m4/write-any-file.m4: Likewise.
18502         * m4/yield.m4: Likewise.
18503
18504 2009-01-13  Bruno Haible  <bruno@clisp.org>
18505
18506         Avoid test-copy-file.sh failures when ACL support insufficient.
18507         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18508         TESTS_ENVIRONMENT.
18509         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18510         Reported by Jim Meyering.
18511
18512 2009-01-13  Bruno Haible  <bruno@clisp.org>
18513
18514         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18515         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18516         * modules/unistdio/u8-printf-parse (Files): Likewise.
18517         * modules/unistdio/u32-printf-parse (Files): Likewise.
18518         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18519
18520 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18521
18522         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18523         and m4/inttypes_h.m4 too.
18524
18525 2009-01-12  Eric Blake  <ebb9@byu.net>
18526
18527         tests: IRIX 6.2 cc can't compile -0.0 into .data
18528         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18529         rather than at compile-time.
18530         * tests/test-floorl.c (minus_zero): Likewise.
18531         * tests/test-frexpl.c (minus_zero): Likewise.
18532         * tests/test-isnan.c (minus_zerol): Likewise.
18533         * tests/test-isnanl.h (minus_zero): Likewise.
18534         * tests/test-ldexpl.c (minus_zero): Likewise.
18535         * tests/test-roundl.c (minus_zero): Likewise.
18536         * tests/test-signbit.c (minus_zerol): Likewise.
18537         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18538         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18539         * tests/test-truncl.c (minus_zero): Likewise.
18540         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18541         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18542         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18543
18544 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18545
18546         regex: fix glibc bug 9697
18547         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18548         handling.
18549
18550 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18551
18552         regex: fix glibc bug 697
18553         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18554         being NULL also if there are no backreferences.
18555
18556 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18557
18558         regex: merge glibc changes
18559         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18560         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18561         re_string_skip_chars, re_string_reconstruct): Likewise.
18562         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18563
18564 2009-01-07  Jim Meyering  <meyering@redhat.com>
18565
18566         poll: filter through cppi
18567         * lib/poll.c: Indent cpp directives to reflect nesting.
18568
18569 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18570
18571         poll: don't return uninitialized
18572         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18573
18574 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18575
18576         avoid compile failure on AIX 6.1
18577         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18578         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18579
18580 2009-01-04  Jim Meyering  <meyering@redhat.com>
18581
18582         remove duplicate inclusion of <stdio.h>
18583         * tests/test-fprintf-posix.c: Likewise.
18584         * tests/test-printf-posix.c: Likewise.
18585         * tests/test-snprintf-posix.c: Likewise.
18586         * tests/test-sprintf-posix.c: Likewise.
18587         * tests/test-vasprintf-posix.c: Likewise.
18588         * tests/test-vfprintf-posix.c: Likewise.
18589         * tests/test-vprintf-posix.c: Likewise.
18590         * tests/test-vsnprintf-posix.c: Likewise.
18591         * tests/test-vsprintf-posix.c: Likewise.
18592
18593 2009-01-03  Jim Meyering  <meyering@redhat.com>
18594
18595         gnulib-tool: fix sed-based filtering
18596         * gnulib-tool (func_filter_filelist): Remove extra backslash
18597         in sed_fff_filter definition.
18598
18599 2009-01-02  Jim Meyering  <meyering@redhat.com>
18600
18601         strftime: avoid compilation failure on Solaris 2.6
18602         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18603         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18604         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18605         be available.  Reported by Tom G. Christensen.  Details in
18606         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18607
18608 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18609             Bruno Haible  <bruno@clisp.org>
18610
18611         Speed up gnulib-tool by doing more string processing through shell
18612         built-ins.
18613         * gnulib-tool (fast_func_append): New variable.
18614         (func_remove_prefix, func_remove_suffix): New functions.
18615         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18616         (func_filter_filelist): New function.
18617         (func_get_dependencies): Use func_remove_suffix instead of sed.
18618         (func_get_automake_snippet): Use func_filter_filelist instead of a
18619         subshell and sed invocation.
18620
18621 2009-01-01  Bruno Haible  <bruno@clisp.org>
18622
18623         Fix a security bug.
18624         * gnulib-tool (func_import, import, update): Don't allow the characters
18625         '"', '$', '`', '\' in macro arguments that become part of commands that
18626         are evaluated.
18627
18628 2009-01-01  Bruno Haible  <bruno@clisp.org>
18629
18630         * gnulib-tool (func_reset_sigpipe): Add more comments.
18631
18632 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18633
18634         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18635         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18636         already know the answer.
18637
18638 2009-01-01  Jim Meyering  <meyering@redhat.com>
18639
18640         * lib/version-etc.c (version_etc_va): Update copyright year.
18641
18642 2008-12-30  Bruno Haible  <bruno@clisp.org>
18643
18644         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18645         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18646         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18647
18648 2008-12-29  Eric Blake  <ebb9@byu.net>
18649
18650         multiarch: avoid autoconf AC_REQUIRE bug
18651         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18652         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18653         2.63 and older.
18654         Reported by Bruno Haible, and analyzed in
18655         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18656
18657 2008-12-29  Bruno Haible  <bruno@clisp.org>
18658
18659         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18660         files in subdirectories correctly.
18661         Reported by Ralf Wildenhues.
18662
18663 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18664
18665         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18666         rather than 'join FILE -', for Solaris join.
18667
18668 2008-12-29  Bruno Haible  <bruno@clisp.org>
18669
18670         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18671         quoting.
18672         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18673         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18674         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18675         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18676         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18677         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18678         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18679         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18680         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18681         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18682         * m4/nls.m4 (AM_NLS): Likewise.
18683         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18684         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18685         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18686         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18687         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18688         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18689         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18690         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18691         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18692         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18693         * m4/xsize.m4 (gl_XSIZE): Likewise.
18694         Suggested by Jim Meyering.
18695
18696 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18697
18698         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18699         * lib/parse-duration.c: use a switch instead of cascading if's.
18700
18701 2008-12-29  Eric Blake  <ebb9@byu.net>
18702
18703         wchar.h: supply WEOF on Irix 5.3
18704         * lib/wchar.in.h (wint_t): Also supply WEOF.
18705         * lib/wctype.in.h (wint_t): Likewise.
18706         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18707         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18708         Reported by Tom G. Christensen.
18709
18710 2008-12-26  Bruno Haible  <bruno@clisp.org>
18711
18712         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18713         i486, i586, i686.
18714
18715 2008-12-26  Bruno Haible  <bruno@clisp.org>
18716
18717         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18718
18719 2008-12-26  Bruno Haible  <bruno@clisp.org>
18720
18721         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18722         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18723         not __STDC_CONSTANT_MACROS.
18724         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18725
18726 2008-12-25  Bruno Haible  <bruno@clisp.org>
18727
18728         Add support for universal builds to vasnprintf.
18729         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18730         universal builds, guess no.
18731         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18732         * modules/vasprintf-posix (Depends-on): Likewise.
18733         * modules/fprintf-posix (Depends-on): Likewise.
18734         * modules/vfprintf-posix (Depends-on): Likewise.
18735         * modules/snprintf-posix (Depends-on): Likewise.
18736         * modules/vsnprintf-posix (Depends-on): Likewise.
18737         * modules/sprintf-posix (Depends-on): Likewise.
18738         * modules/vsprintf-posix (Depends-on): Likewise.
18739         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18740         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18741         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18742         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18743         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18744         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18745         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18746
18747         Add support for universal builds to <inttypes.h>.
18748         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18749         _SCNu64_PREFIX): In Apple
18750         universal builds, define directly, using _LP64.
18751         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18752         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18753         * modules/inttypes (Depends-on): Add multiarch.
18754         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18755
18756         Add support for universal builds to <stdint.h>.
18757         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18758         universal builds, define directly, using _LP64.
18759         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18760         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18761         and size_t.
18762         * modules/stdint (Depends-on): Add multiarch.
18763         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18764
18765         New module 'multiarch'.
18766         * modules/multiarch: New file.
18767         * m4/multiarch.m4: New file.
18768
18769 2008-12-25  Bruno Haible  <bruno@clisp.org>
18770
18771         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18772
18773 2008-12-25  Bruno Haible  <bruno@clisp.org>
18774
18775         * modules/btowc (License): Relicense under LGPLv2+.
18776         * modules/mbsinit (License): Likewise.
18777         * modules/mbrtowc (License): Likewise.
18778         * modules/wcrtomb (License): Likewise.
18779         * modules/streq (License): Likewise.
18780         Reported by David Lutterkort <lutter@redhat.com>.
18781
18782 2008-12-23  Bruno Haible  <bruno@clisp.org>
18783
18784         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18785
18786 2008-12-23  Bruno Haible  <bruno@clisp.org>
18787
18788         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18789         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18790         GETADDRINFO_LIB, not in LIBS.
18791         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18792         * modules/canon-host (Link): Likewise.
18793         * NEWS: Mention the change.
18794         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18795         GETADDRINFO_LIB.
18796
18797 2008-12-22  Bruno Haible  <bruno@clisp.org>
18798
18799         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18800         * doc/posix-functions/iswalpha_l.texi: Likewise.
18801         * doc/posix-functions/iswblank_l.texi: Likewise.
18802         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18803         * doc/posix-functions/iswctype_l.texi: Likewise.
18804         * doc/posix-functions/iswdigit_l.texi: Likewise.
18805         * doc/posix-functions/iswgraph_l.texi: Likewise.
18806         * doc/posix-functions/iswlower_l.texi: Likewise.
18807         * doc/posix-functions/iswprint_l.texi: Likewise.
18808         * doc/posix-functions/iswpunct_l.texi: Likewise.
18809         * doc/posix-functions/iswspace_l.texi: Likewise.
18810         * doc/posix-functions/iswupper_l.texi: Likewise.
18811         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18812         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18813         * doc/posix-functions/open_wmemstream.texi: Likewise.
18814         * doc/posix-functions/swscanf.texi: Likewise.
18815         * doc/posix-functions/towctrans_l.texi: Likewise.
18816         * doc/posix-functions/towlower.texi: Likewise.
18817         * doc/posix-functions/towlower_l.texi: Likewise.
18818         * doc/posix-functions/towupper.texi: Likewise.
18819         * doc/posix-functions/towupper_l.texi: Likewise.
18820         * doc/posix-functions/vfwprintf.texi: Likewise.
18821         * doc/posix-functions/vfwscanf.texi: Likewise.
18822         * doc/posix-functions/vswscanf.texi: Likewise.
18823         * doc/posix-functions/vwprintf.texi: Likewise.
18824         * doc/posix-functions/vwscanf.texi: Likewise.
18825         * doc/posix-functions/wcpcpy.texi: Likewise.
18826         * doc/posix-functions/wcpncpy.texi: Likewise.
18827         * doc/posix-functions/wcscasecmp.texi: Likewise.
18828         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18829         * doc/posix-functions/wcscoll_l.texi: Likewise.
18830         * doc/posix-functions/wcsdup.texi: Likewise.
18831         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18832         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18833         * doc/posix-functions/wcsnlen.texi: Likewise.
18834         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18835         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18836         * doc/posix-functions/wctrans_l.texi: Likewise.
18837         * doc/posix-functions/wctype_l.texi: Likewise.
18838         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18839         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18840         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18841         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18842         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18843         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18844         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18845         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18846         * doc/glibc-functions/wcschrnul.texi: Likewise.
18847         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18848         * doc/glibc-functions/wcstod_l.texi: Likewise.
18849         * doc/glibc-functions/wcstof_l.texi: Likewise.
18850         * doc/glibc-functions/wcstol_l.texi: Likewise.
18851         * doc/glibc-functions/wcstold_l.texi: Likewise.
18852         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18853         * doc/glibc-functions/wcstoq.texi: Likewise.
18854         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18855         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18856         * doc/glibc-functions/wcstouq.texi: Likewise.
18857         * doc/glibc-functions/wmempcpy.texi: Likewise.
18858
18859 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18860             Eric Blake  <ebb9@byu.net>
18861             Paolo Bonzini  <bonzini@gnu.org>
18862             Bruno Haible  <bruno@clisp.org>
18863
18864         Make c-stack work on Haiku.
18865         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18866         (c_stack_action): Use SA_ONSTACK flag.
18867
18868 2008-12-22  Bruno Haible  <bruno@clisp.org>
18869
18870         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18871
18872 2008-12-22  Bruno Haible  <bruno@clisp.org>
18873
18874         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18875         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18876         being overridden.
18877         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18878         New macros.
18879         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18880         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18881         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18882         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18883
18884 2008-12-22  Bruno Haible  <bruno@clisp.org>
18885
18886         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18887         from test code.
18888
18889 2008-12-22  Eric Blake  <ebb9@byu.net>
18890
18891         Avoid gcc warnings on cygwin.
18892         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18893         Avoid unused variable.
18894         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18895         Likewise.
18896
18897 2008-12-22  Bruno Haible  <bruno@clisp.org>
18898
18899         Remove HAVE_MBRTOWC conditionals.
18900         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18901         (mbscasecmp): Assume mbrtowc function.
18902         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18903         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18904         * lib/mbschr.c: Include mbuiter.h unconditionally.
18905         (mbschr): Assume mbrtowc function.
18906         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18907         (mbscspn): Assume mbrtowc function.
18908         * lib/mbslen.c: Include mbuiter.h unconditionally.
18909         (mbslen): Assume mbrtowc function.
18910         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18911         (mbsncasecmp): Assume mbrtowc function.
18912         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18913         (mbsnlen): Assume mbrtowc function.
18914         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18915         (mbspbrk): Assume mbrtowc function.
18916         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18917         (mbspcasecmp): Assume mbrtowc function.
18918         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18919         (mbsrchr): Assume mbrtowc function.
18920         * lib/mbssep.c: Include mbuiter.h unconditionally.
18921         (mbssep): Assume mbrtowc function.
18922         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18923         (mbsspn): Assume mbrtowc function.
18924         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18925         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18926         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18927         (mbstok_r): Assume mbrtowc function.
18928         * lib/propername.c: Include mbuiter.h unconditionally.
18929         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18930         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18931         (trim2): Assume mbrtowc function.
18932         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18933         (mbsnwidth): Assume mbrtowc function.
18934         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18935         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18936         fallback definitions.
18937         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18938
18939 2008-12-22  Bruno Haible  <bruno@clisp.org>
18940
18941         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18942
18943 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18944
18945         * modules/regex: Request emulations for the mb*/wc* functions we need.
18946         * m4/regex.m4: Don't look for those functions here.
18947         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18948
18949 2008-12-22  Bruno Haible  <bruno@clisp.org>
18950
18951         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18952
18953 2008-12-21  Bruno Haible  <bruno@clisp.org>
18954
18955         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18956         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18957         (Include): Remove conditionalization.
18958         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18959         (Include): Remove conditionalization.
18960         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18961         (Include): Remove conditionalization.
18962         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18963         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18964         * NEWS: Mention the change.
18965         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18966         via Sergey Poznyakoff <gray@gnu.org.ua>.
18967
18968 2008-12-21  Bruno Haible  <bruno@clisp.org>
18969
18970         * MODULES.html.sh (Extended multibyte and wide character utilities
18971         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18972         wcrtomb, wcsrtombs.
18973         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18974         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18975         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18976         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18977
18978 2008-12-21  Bruno Haible  <bruno@clisp.org>
18979
18980         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18981
18982 2008-12-21  Bruno Haible  <bruno@clisp.org>
18983
18984         * modules/wcsnrtombs-tests: New file.
18985         * tests/test-wcsnrtombs1.sh: New file.
18986         * tests/test-wcsnrtombs2.sh: New file.
18987         * tests/test-wcsnrtombs3.sh: New file.
18988         * tests/test-wcsnrtombs4.sh: New file.
18989         * tests/test-wcsnrtombs.c: New file.
18990
18991         New module 'wcsnrtombs'.
18992         * lib/wchar.in.h (wcsnrtombs): New declaration.
18993         * lib/wcsnrtombs.c: New file.
18994         * lib/wcsrtombs-state.c: New file.
18995         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18996         (internal_state): Remove variable.
18997         * m4/wcsnrtombs.m4: New file.
18998         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18999         compilation units.
19000         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
19001         HAVE_WCSNRTOMBS.
19002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
19003         HAVE_WCSNRTOMBS.
19004         * modules/wcsnrtombs: New file.
19005         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
19006         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
19007
19008 2008-12-21  Bruno Haible  <bruno@clisp.org>
19009
19010         * modules/wcsrtombs-tests: New file.
19011         * tests/test-wcsrtombs1.sh: New file.
19012         * tests/test-wcsrtombs2.sh: New file.
19013         * tests/test-wcsrtombs3.sh: New file.
19014         * tests/test-wcsrtombs4.sh: New file.
19015         * tests/test-wcsrtombs.c: New file.
19016
19017         New module 'wcsrtombs'.
19018         * lib/wchar.in.h (wcsrtombs): New declaration.
19019         * lib/wcsrtombs.c: New file.
19020         * m4/wcsrtombs.m4: New file.
19021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
19022         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
19023         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
19024         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
19025         * modules/wcsrtombs: New file.
19026         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
19027         bugs.
19028
19029 2008-12-21  Bruno Haible  <bruno@clisp.org>
19030
19031         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
19032         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
19033         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
19034         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
19035         if not correct.
19036         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
19037         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
19038         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19039         m4/locale-zh.m4, m4/codeset.m4.
19040         * doc/posix-functions/wcrtomb.texi: Document the bug.
19041
19042 2008-12-21  Bruno Haible  <bruno@clisp.org>
19043
19044         Work around a btowc() bug on IRIX 6.5.
19045         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
19046         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
19047         REPLACE_WTOBC if not.
19048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
19049         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
19050         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
19051
19052 2008-12-21  Bruno Haible  <bruno@clisp.org>
19053
19054         * modules/wcrtomb-tests: New file.
19055         * tests/test-wcrtomb.sh: New file.
19056         * tests/test-wcrtomb.c: New file.
19057
19058         New module 'wcrtomb'.
19059         * lib/wchar.in.h (wcrtomb): New declaration.
19060         * lib/wcrtomb.c: New file.
19061         * m4/wcrtomb.m4: New file.
19062         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
19063         HAVE_WCRTOMB.
19064         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
19065         HAVE_WCRTOMB.
19066         * modules/wcrtomb: New file.
19067         * doc/posix-functions/wcrtomb.texi: Mention the new module.
19068
19069 2008-12-21  Bruno Haible  <bruno@clisp.org>
19070
19071         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
19072         * modules/mbsrtowcs (Files): Likewise.
19073         * modules/wctob (Files): Likewise.
19074         * modules/c-strcase-tests (Files): Likewise.
19075         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
19076         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
19077         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
19078         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
19079         * modules/vasnprintf-posix-tests (Files): Likewise.
19080
19081 2008-12-21  William Pursell  <bill.pursell@gmail.com>
19082
19083         gitlog-to-changelog: pass all command-line arguments to git-log
19084         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
19085         it is sometimes convenient to filter the commits in various ways.
19086         gitlog-to-changelog only allows --since to specify a start date,
19087         but git-log itself supports many other filtering mechanisms.
19088         At the moment, I want to filter by branch name.  Rather than
19089         adding a --branch option to gitlog-to-changelog, it seems more
19090         flexible to simply pass all options directly to git-log and let
19091         git do the work.  Notice that this effectively makes --since a
19092         redundant option for gitlog-to-changelog, but removing it would
19093         require current usage to change since calls would then require
19094         an additional '--'.
19095
19096 2008-12-21  Bruno Haible  <bruno@clisp.org>
19097
19098         * modules/mbsnrtowcs-tests: New file.
19099         * tests/test-mbsnrtowcs1.sh: New file.
19100         * tests/test-mbsnrtowcs2.sh: New file.
19101         * tests/test-mbsnrtowcs3.sh: New file.
19102         * tests/test-mbsnrtowcs4.sh: New file.
19103         * tests/test-mbsnrtowcs.c: New file.
19104
19105         New module 'mbsnrtowcs'.
19106         * lib/wchar.in.h (mbsnrtowcs): New declaration.
19107         * lib/mbsnrtowcs.c: New file.
19108         * lib/mbsrtowcs-state.c: New file.
19109         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
19110         (internal_state): Remove variable.
19111         * m4/mbsnrtowcs.m4: New file.
19112         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
19113         compilation units.
19114         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
19115         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19116         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
19117         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19118         * modules/mbsnrtowcs: New file.
19119         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
19120         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
19121         portability problem.
19122
19123 2008-12-21  Bruno Haible  <bruno@clisp.org>
19124
19125         Work around mbsrtowcs bug.
19126         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
19127         (gl_FUNC_MBSRTOWCS): Invoke it.
19128         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19129         m4/locale-zh.m4.
19130         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
19131
19132 2008-12-21  Bruno Haible  <bruno@clisp.org>
19133
19134         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
19135
19136 2008-12-21  Bruno Haible  <bruno@clisp.org>
19137
19138         Update doc for AIX.
19139         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
19140         16-bit wchar_t type.
19141         * doc/posix-functions/btowc.texi: Likewise.
19142         * doc/posix-functions/fgetwc.texi: Likewise.
19143         * doc/posix-functions/fgetws.texi: Likewise.
19144         * doc/posix-functions/fputwc.texi: Likewise.
19145         * doc/posix-functions/fputws.texi: Likewise.
19146         * doc/posix-functions/fwide.texi: Likewise.
19147         * doc/posix-functions/fwprintf.texi: Likewise.
19148         * doc/posix-functions/fwscanf.texi: Likewise.
19149         * doc/posix-functions/getwchar.texi: Likewise.
19150         * doc/posix-functions/getwc.texi: Likewise.
19151         * doc/posix-functions/iswalnum.texi: Likewise.
19152         * doc/posix-functions/iswalpha.texi: Likewise.
19153         * doc/posix-functions/iswblank.texi: Likewise.
19154         * doc/posix-functions/iswcntrl.texi: Likewise.
19155         * doc/posix-functions/iswctype.texi: Likewise.
19156         * doc/posix-functions/iswdigit.texi: Likewise.
19157         * doc/posix-functions/iswgraph.texi: Likewise.
19158         * doc/posix-functions/iswlower.texi: Likewise.
19159         * doc/posix-functions/iswprint.texi: Likewise.
19160         * doc/posix-functions/iswpunct.texi: Likewise.
19161         * doc/posix-functions/iswspace.texi: Likewise.
19162         * doc/posix-functions/iswupper.texi: Likewise.
19163         * doc/posix-functions/iswxdigit.texi: Likewise.
19164         * doc/posix-functions/mbrtowc.texi: Likewise.
19165         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19166         * doc/posix-functions/mbstowcs.texi: Likewise.
19167         * doc/posix-functions/mbtowc.texi: Likewise.
19168         * doc/posix-functions/putwchar.texi: Likewise.
19169         * doc/posix-functions/putwc.texi: Likewise.
19170         * doc/posix-functions/swprintf.texi: Likewise.
19171         * doc/posix-functions/tolower.texi: Likewise.
19172         * doc/posix-functions/toupper.texi: Likewise.
19173         * doc/posix-functions/towctrans.texi: Likewise.
19174         * doc/posix-functions/ungetwc.texi: Likewise.
19175         * doc/posix-functions/vswprintf.texi: Likewise.
19176         * doc/posix-functions/wcrtomb.texi: Likewise.
19177         * doc/posix-functions/wcscat.texi: Likewise.
19178         * doc/posix-functions/wcschr.texi: Likewise.
19179         * doc/posix-functions/wcscmp.texi: Likewise.
19180         * doc/posix-functions/wcscoll.texi: Likewise.
19181         * doc/posix-functions/wcscpy.texi: Likewise.
19182         * doc/posix-functions/wcscspn.texi: Likewise.
19183         * doc/posix-functions/wcsftime.texi: Likewise.
19184         * doc/posix-functions/wcslen.texi: Likewise.
19185         * doc/posix-functions/wcsncat.texi: Likewise.
19186         * doc/posix-functions/wcsncmp.texi: Likewise.
19187         * doc/posix-functions/wcsncpy.texi: Likewise.
19188         * doc/posix-functions/wcspbrk.texi: Likewise.
19189         * doc/posix-functions/wcsrchr.texi: Likewise.
19190         * doc/posix-functions/wcsrtombs.texi: Likewise.
19191         * doc/posix-functions/wcsspn.texi: Likewise.
19192         * doc/posix-functions/wcsstr.texi: Likewise.
19193         * doc/posix-functions/wcstod.texi: Likewise.
19194         * doc/posix-functions/wcstof.texi: Likewise.
19195         * doc/posix-functions/wcstoimax.texi: Likewise.
19196         * doc/posix-functions/wcstok.texi: Likewise.
19197         * doc/posix-functions/wcstold.texi: Likewise.
19198         * doc/posix-functions/wcstoll.texi: Likewise.
19199         * doc/posix-functions/wcstol.texi: Likewise.
19200         * doc/posix-functions/wcstombs.texi: Likewise.
19201         * doc/posix-functions/wcstoull.texi: Likewise.
19202         * doc/posix-functions/wcstoul.texi: Likewise.
19203         * doc/posix-functions/wcstoumax.texi: Likewise.
19204         * doc/posix-functions/wcswidth.texi: Likewise.
19205         * doc/posix-functions/wcsxfrm.texi: Likewise.
19206         * doc/posix-functions/wctob.texi: Likewise.
19207         * doc/posix-functions/wctomb.texi: Likewise.
19208         * doc/posix-functions/wctrans.texi: Likewise.
19209         * doc/posix-functions/wctype.texi: Likewise.
19210         * doc/posix-functions/wcwidth.texi: Likewise.
19211         * doc/posix-functions/wmemchr.texi: Likewise.
19212         * doc/posix-functions/wmemcmp.texi: Likewise.
19213         * doc/posix-functions/wmemcpy.texi: Likewise.
19214         * doc/posix-functions/wmemmove.texi: Likewise.
19215         * doc/posix-functions/wmemset.texi: Likewise.
19216         * doc/posix-functions/wprintf.texi: Likewise.
19217         * doc/posix-functions/wscanf.texi: Likewise.
19218
19219 2008-12-21  Bruno Haible  <bruno@clisp.org>
19220
19221         Update doc for HP-UX 11.11.
19222         * doc/posix-functions/btowc.texi: Clarify that the function is missing
19223         in HP-UX version 11.00, not in all versions of HP-UX 11.
19224         * doc/posix-functions/fwide.texi: Likewise.
19225         * doc/posix-functions/fwprintf.texi: Likewise.
19226         * doc/posix-functions/fwscanf.texi: Likewise.
19227         * doc/posix-functions/inet_ntop.texi: Likewise.
19228         * doc/posix-functions/inet_pton.texi: Likewise.
19229         * doc/posix-functions/mbrlen.texi: Likewise.
19230         * doc/posix-functions/mbrtowc.texi: Likewise.
19231         * doc/posix-functions/mbsinit.texi: Likewise.
19232         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19233         * doc/posix-functions/swprintf.texi: Likewise.
19234         * doc/posix-functions/swscanf.texi: Likewise.
19235         * doc/posix-functions/towctrans.texi: Likewise.
19236         * doc/posix-functions/vfwprintf.texi: Likewise.
19237         * doc/posix-functions/vswprintf.texi: Likewise.
19238         * doc/posix-functions/vwprintf.texi: Likewise.
19239         * doc/posix-functions/wcrtomb.texi: Likewise.
19240         * doc/posix-functions/wcsrtombs.texi: Likewise.
19241         * doc/posix-functions/wcsstr.texi: Likewise.
19242         * doc/posix-functions/wctob.texi: Likewise.
19243         * doc/posix-functions/wctrans.texi: Likewise.
19244         * doc/posix-functions/wmemchr.texi: Likewise.
19245         * doc/posix-functions/wmemcmp.texi: Likewise.
19246         * doc/posix-functions/wmemcpy.texi: Likewise.
19247         * doc/posix-functions/wmemmove.texi: Likewise.
19248         * doc/posix-functions/wmemset.texi: Likewise.
19249         * doc/posix-functions/wprintf.texi: Likewise.
19250         * doc/posix-functions/wscanf.texi: Likewise.
19251
19252 2008-12-21  Bruno Haible  <bruno@clisp.org>
19253
19254         Work around a portability problem.
19255         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
19256         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
19257
19258 2008-12-20  Bruno Haible  <bruno@clisp.org>
19259
19260         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
19261         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
19262         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
19263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
19264         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
19265
19266         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
19267         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
19268         set.
19269         (GNULIB_defined_mbstate_t): New macro.
19270         (mbsinit): Redefine if REPLACE_MBSINIT is set.
19271         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
19272         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
19273         reuses the system's mbrtowc function but works around the bugs.
19274         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
19275         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
19276         macros.
19277         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
19278         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
19279         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
19280         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
19281         REPLACE_MBSINIT if mbsinit needs to be overridden.
19282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
19283         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19284         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
19285         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19286         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19287         m4/locale-zh.m4.
19288         (Depends): Add mbsinit.
19289         * modules/mbsinit (Depends): Add mbrtowc.
19290         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
19291
19292 2008-12-20  Bruno Haible  <bruno@clisp.org>
19293
19294         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
19295         so that there are no conversion errors on AIX.
19296         * tests/test-mbsrtowcs.c (main): LIkewise.
19297
19298 2008-12-20  Bruno Haible  <bruno@clisp.org>
19299
19300         Work around wctob bug on Solaris <= 9.
19301         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
19302         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
19303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
19304         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
19305         * modules/wctob (Files): Add m4/locale-fr.m4.
19306         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
19307
19308 2008-12-20  Bruno Haible  <bruno@clisp.org>
19309
19310         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
19311         /dev/null.
19312         * tests/test-select-in.sh: Likewise.
19313         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19314
19315 2008-12-20  Bruno Haible  <bruno@clisp.org>
19316
19317         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19318         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19319         Cygwin 1.5.x.
19320
19321 2008-12-20  Bruno Haible  <bruno@clisp.org>
19322
19323         Ensure mbstate_t is defined on HP-UX 11.11.
19324         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19325         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19326         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19327         AC_USE_SYSTEM_EXTENSIONS.
19328         * modules/fnmatch (Depends-on): Add extensions.
19329         * modules/mbrlen (Depends-on): Likewise.
19330         * modules/mbrtowc (Depends-on): Likewise.
19331         * modules/mbsinit (Depends-on): Likewise.
19332         * modules/mbsrtowcs (Depends-on): Likewise.
19333         * modules/mbswidth (Depends-on): Likewise.
19334         * modules/quotearg (Depends-on): Likewise.
19335         * modules/strftime (Depends-on): Likewise.
19336
19337 2008-12-20  Bruno Haible  <bruno@clisp.org>
19338
19339         Ensure wctob is declared on IRIX 6.5.
19340         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19341         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19342         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19344         of HAVE_WCTOB.
19345         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19346         HAVE_WCTOB.
19347         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19348
19349 2008-12-19  Bruno Haible  <bruno@clisp.org>
19350
19351         * modules/mbsrtowcs-tests: New file.
19352         * tests/test-mbsrtowcs1.sh: New file.
19353         * tests/test-mbsrtowcs2.sh: New file.
19354         * tests/test-mbsrtowcs3.sh: New file.
19355         * tests/test-mbsrtowcs4.sh: New file.
19356         * tests/test-mbsrtowcs.c: New file.
19357
19358         New module 'mbsrtowcs'.
19359         * lib/wchar.in.h (mbsrtowcs): New declaration.
19360         * lib/mbsrtowcs.c: New file.
19361         * m4/mbsrtowcs.m4: New file.
19362         * modules/mbsrtowcs: New file.
19363         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19364         HAVE_MBSRTOWCS.
19365         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19366         HAVE_MBSRTOWCS.
19367         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19368
19369 2008-12-19  Bruno Haible  <bruno@clisp.org>
19370
19371         New module 'mbrlen'.
19372         * lib/wchar.in.h (mbrlen): New declaration.
19373         * lib/mbrlen.c: New file.
19374         * m4/mbrlen.m4: New file.
19375         * modules/mbrlen: New file.
19376         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19377         HAVE_MBRLEN.
19378         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19379         HAVE_MBRLEN.
19380         * doc/posix-functions/mbrlen.texi: Document the new module.
19381
19382 2008-12-19  Bruno Haible  <bruno@clisp.org>
19383
19384         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19385         * modules/mbrtowc (Depends-on): Add verify.
19386         Suggested by Paul Eggert.
19387
19388 2008-12-18  Bruno Haible  <bruno@clisp.org>
19389
19390         * modules/mbsinit-tests: New file.
19391         * tests/test-mbsinit.sh: New file.
19392         * tests/test-mbsinit.c: New file.
19393
19394 2008-12-18  Bruno Haible  <bruno@clisp.org>
19395
19396         * modules/mbrtowc-tests: New file.
19397         * tests/test-mbrtowc1.sh: New file.
19398         * tests/test-mbrtowc2.sh: New file.
19399         * tests/test-mbrtowc3.sh: New file.
19400         * tests/test-mbrtowc4.sh: New file.
19401         * tests/test-mbrtowc.c: New file.
19402
19403         New module 'mbrtowc'.
19404         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19405         mbsinit and mbrtowc.
19406         (mbrtowc): New declaration.
19407         * lib/mbrtowc.c: New file.
19408         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19409         * modules/mbrtowc: New file.
19410         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19411         HAVE_MBRTOWC.
19412         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19413         HAVE_MBRTOWC.
19414         * doc/posix-functions/mbrtowc.texi: Document the new module.
19415
19416 2008-12-18  Bruno Haible  <bruno@clisp.org>
19417
19418         New module 'wctob'.
19419         * lib/wchar.in.h (wctob): New declaration.
19420         * lib/wctob.c: New file.
19421         * m4/wctob.m4: New file.
19422         * modules/wctob: New file.
19423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19424         HAVE_WCTOB.
19425         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19426         * doc/posix-functions/wctob.texi: Document the new module.
19427
19428 2008-12-18  Bruno Haible  <bruno@clisp.org>
19429
19430         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19431         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19432
19433 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19434
19435         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19436         G. Christensen" <tgc@jupiterrise.com>.
19437
19438         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19439         G. Christensen" <tgc@jupiterrise.com>.
19440
19441         * lib/flock.c: Need to include string.h.  Reported by "Tom
19442         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19443         <ebb9@byu.net>.
19444
19445 2008-12-18  Bruno Haible  <bruno@clisp.org>
19446
19447         * m4/locale-ja.m4: New file, from GNU gettext.
19448
19449 2008-12-17  Bruno Haible  <bruno@clisp.org>
19450
19451         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19452         Suggested by Eric Blake.
19453
19454 2008-12-17  Bruno Haible  <bruno@clisp.org>
19455
19456         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19457
19458 2008-12-17  Bruno Haible  <bruno@clisp.org>
19459
19460         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19461         * modules/mbsinit (Depends-on): Add verify.
19462         Suggested by Paul Eggert.
19463
19464 2008-12-17  Bruno Haible  <bruno@clisp.org>
19465
19466         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19467         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19468         gl_FUNC_MBRTOWC.
19469         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19470         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19471         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19472         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19473         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19474         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19475         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19476         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19477         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19478         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19479         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19480         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19481         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19482         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19483         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19484         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19485         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19486         * modules/trim (configure.ac): Likewise.
19487
19488 2008-12-17  Bruno Haible  <bruno@clisp.org>
19489
19490         * modules/btowc-tests: New file.
19491         * tests/test-btowc1.sh: New file.
19492         * tests/test-btowc2.sh: New file.
19493         * tests/test-btowc.c: New file.
19494
19495         New module 'btowc'.
19496         * lib/wchar.in.h (btowc): New declaration.
19497         * lib/btowc.c: New file.
19498         * m4/btowc.m4: New file.
19499         * modules/btowc: New file.
19500         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19501         HAVE_BTOWC.
19502         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19503         * doc/posix-functions/btowc.texi: Document the new module.
19504
19505 2008-12-17  Bruno Haible  <bruno@clisp.org>
19506
19507         New module 'mbsinit'.
19508         * lib/wchar.in.h (mbsinit): New declaration.
19509         * lib/mbsinit.c: New file.
19510         * m4/mbsinit.m4: New file.
19511         * modules/mbsinit: New file.
19512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19513         HAVE_MBSINIT.
19514         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19515         HAVE_MBSINIT.
19516         * doc/posix-functions/mbsinit.texi: Document the new module.
19517
19518 2008-12-16  Bruno Haible  <bruno@clisp.org>
19519
19520         * lib/unistd.in.h: Add comment.
19521         * tests/test-environ.c: Don't include <stdlib.h>.
19522
19523 2008-12-16  Bruno Haible  <bruno@clisp.org>
19524
19525         * lib/parse-duration.h (parse_duration): Document return value
19526         convention.
19527         * lib/parse-duration.c: Include specification header first. Add
19528         comments.
19529         (_): Remove macro.
19530         (parse_year_month_day, parse_hour_minute_second): Move side effects
19531         outside of strchr call.
19532         (parse_non_iso8601): Move side effects outside of isspace call.
19533         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19534         call.
19535
19536 2008-12-16  Bruno Haible  <bruno@clisp.org>
19537
19538         * tests/test-parse-duration.sh: Produce no output when the test
19539         succeeds.
19540
19541 2008-12-16  Bruno Haible  <bruno@clisp.org>
19542
19543         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19544         expressions.
19545
19546 2008-12-15  Bruno Haible  <bruno@clisp.org>
19547
19548         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19549         * doc/glibc-functions/flistxattr.texi: Likewise.
19550         * doc/glibc-functions/fopencookie.texi: Likewise.
19551         * doc/glibc-functions/fremovexattr.texi: Likewise.
19552         * doc/glibc-functions/fsetxattr.texi: Likewise.
19553         * doc/glibc-functions/getxattr.texi: Likewise.
19554         * doc/glibc-functions/lgetxattr.texi: Likewise.
19555         * doc/glibc-functions/listxattr.texi: Likewise.
19556         * doc/glibc-functions/llistxattr.texi: Likewise.
19557         * doc/glibc-functions/lremovexattr.texi: Likewise.
19558         * doc/glibc-functions/lsetxattr.texi: Likewise.
19559         * doc/glibc-functions/removexattr.texi: Likewise.
19560         * doc/glibc-functions/setxattr.texi: Likewise.
19561         * doc/posix-functions/open_memstream.texi: Likewise.
19562
19563 2008-12-15  Eric Blake  <ebb9@byu.net>
19564
19565         Update doc for cygwin 1.7.
19566         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19567         functions.
19568         * doc/posix-functions/fchmodat.texi: Likewise.
19569         * doc/posix-functions/fchownat.texi: Likewise.
19570         * doc/posix-functions/fdopendir.texi: Likewise.
19571         * doc/posix-functions/fmemopen.texi: Likewise.
19572         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19573         * doc/posix-functions/fstatat.texi: Likewise.
19574         * doc/posix-functions/futimens.texi: Likewise.
19575         * doc/posix-functions/gai_strerror.texi: Likewise.
19576         * doc/posix-functions/getaddrinfo.texi: Likewise.
19577         * doc/posix-functions/getnameinfo.texi: Likewise.
19578         * doc/posix-functions/if_freenameindex.texi: Likewise.
19579         * doc/posix-functions/if_indextoname.texi: Likewise.
19580         * doc/posix-functions/if_nameindex.texi: Likewise.
19581         * doc/posix-functions/if_nametoindex.texi: Likewise.
19582         * doc/posix-functions/insque.texi: Likewise.
19583         * doc/posix-functions/linkat.texi: Likewise.
19584         * doc/posix-functions/llrint.texi: Likewise.
19585         * doc/posix-functions/llrintf.texi: Likewise.
19586         * doc/posix-functions/llrintl.texi: Likewise.
19587         * doc/posix-functions/lockf.texi: Likewise.
19588         * doc/posix-functions/lrintl.texi: Likewise.
19589         * doc/posix-functions/mkdirat.texi: Likewise.
19590         * doc/posix-functions/mkfifoat.texi: Likewise.
19591         * doc/posix-functions/mknodat.texi: Likewise.
19592         * doc/posix-functions/mq_close.texi: Likewise.
19593         * doc/posix-functions/mq_getattr.texi: Likewise.
19594         * doc/posix-functions/mq_notify.texi: Likewise.
19595         * doc/posix-functions/mq_open.texi: Likewise.
19596         * doc/posix-functions/mq_receive.texi: Likewise.
19597         * doc/posix-functions/mq_send.texi: Likewise.
19598         * doc/posix-functions/mq_setattr.texi: Likewise.
19599         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19600         * doc/posix-functions/mq_timedsend.texi: Likewise.
19601         * doc/posix-functions/mq_unlink.texi: Likewise.
19602         * doc/posix-functions/open_memstream.texi: Likewise.
19603         * doc/posix-functions/openat.texi: Likewise.
19604         * doc/posix-functions/posix_fadvise.texi: Likewise.
19605         * doc/posix-functions/posix_fallocate.texi: Likewise.
19606         * doc/posix-functions/posix_madvise.texi: Likewise.
19607         * doc/posix-functions/posix_memalign.texi: Likewise.
19608         * doc/posix-functions/posix_openpt.texi: Likewise.
19609         * doc/posix-functions/readlinkat.texi: Likewise.
19610         * doc/posix-functions/remque.texi: Likewise.
19611         * doc/posix-functions/renameat.texi: Likewise.
19612         * doc/posix-functions/rintl.texi: Likewise.
19613         * doc/posix-functions/sem_unlink.texi: Likewise.
19614         * doc/posix-functions/shm_open.texi: Likewise.
19615         * doc/posix-functions/shm_unlink.texi: Likewise.
19616         * doc/posix-functions/signgam.texi: Likewise.
19617         * doc/posix-functions/sigset.texi: Likewise.
19618         * doc/posix-functions/stpcpy.texi: Likewise.
19619         * doc/posix-functions/stpncpy.texi: Likewise.
19620         * doc/posix-functions/strerror.texi: Likewise.
19621         * doc/posix-functions/strtod.texi: Likewise.
19622         * doc/posix-functions/symlinkat.texi: Likewise.
19623         * doc/posix-functions/unlinkat.texi: Likewise.
19624         * doc/posix-functions/utimensat.texi: Likewise.
19625         * doc/glibc-functions/bindresvport.texi: Likewise.
19626         * doc/glibc-functions/dn_expand.texi: Likewise.
19627         * doc/glibc-functions/exp10.texi: Likewise.
19628         * doc/glibc-functions/exp10f.texi: Likewise.
19629         * doc/glibc-functions/fgetxattr.texi: Likewise.
19630         * doc/glibc-functions/flistxattr.texi: Likewise.
19631         * doc/glibc-functions/fopencookie.texi: Likewise.
19632         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19633         * doc/glibc-functions/fremovexattr.texi: Likewise.
19634         * doc/glibc-functions/fsetxattr.texi: Likewise.
19635         * doc/glibc-functions/getifaddrs.texi: Likewise.
19636         * doc/glibc-functions/getxattr.texi: Likewise.
19637         * doc/glibc-functions/lgetxattr.texi: Likewise.
19638         * doc/glibc-functions/listxattr.texi: Likewise.
19639         * doc/glibc-functions/llistxattr.texi: Likewise.
19640         * doc/glibc-functions/lremovexattr.texi: Likewise.
19641         * doc/glibc-functions/lsetxattr.texi: Likewise.
19642         * doc/glibc-functions/pow10.texi: Likewise.
19643         * doc/glibc-functions/pow10f.texi: Likewise.
19644         * doc/glibc-functions/rcmd_af.texi: Likewise.
19645         * doc/glibc-functions/removexattr.texi: Likewise.
19646         * doc/glibc-functions/res_init.texi: Likewise.
19647         * doc/glibc-functions/res_mkquery.texi: Likewise.
19648         * doc/glibc-functions/res_query.texi: Likewise.
19649         * doc/glibc-functions/res_querydomain.texi: Likewise.
19650         * doc/glibc-functions/res_send.texi: Likewise.
19651         * doc/glibc-functions/rresvport_af.texi: Likewise.
19652         * doc/glibc-functions/setxattr.texi: Likewise.
19653         * doc/glibc-functions/strcasestr.texi: Likewise.
19654
19655 2008-12-15  Bruno Haible  <bruno@clisp.org>
19656
19657         Fix compilation error on OSF/1 4.0.
19658         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19659         <sys/time.h>, simply delegate to the system header.
19660         Reported by Daniel Richard G. <oss@teragram.com>.
19661
19662 2008-12-15  Bruno Haible  <bruno@clisp.org>
19663
19664         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19665         * doc/posix-functions/fchmodat.texi: Likewise.
19666         * doc/posix-functions/fchownat.texi: Likewise.
19667         * doc/posix-functions/fdopendir.texi: Likewise.
19668         * doc/posix-functions/fstatat.texi: Likewise.
19669         * doc/posix-functions/mkdirat.texi: Likewise.
19670         * doc/posix-functions/unlinkat.texi: Likewise.
19671
19672 2008-12-14  Bruno Haible  <bruno@clisp.org>
19673
19674         Update doc for POSIX:2008.
19675         * doc/posix-functions/faccessat.texi: New file.
19676         * doc/posix-functions/fchmodat.texi: New file.
19677         * doc/posix-functions/fchownat.texi: New file.
19678         * doc/posix-functions/fdopendir.texi: New file.
19679         * doc/posix-functions/fstatat.texi: New file.
19680         * doc/posix-functions/futimens.texi: New file.
19681         * doc/posix-functions/linkat.texi: New file.
19682         * doc/posix-functions/mkdirat.texi: New file.
19683         * doc/posix-functions/mkfifoat.texi: New file.
19684         * doc/posix-functions/mknodat.texi: New file.
19685         * doc/posix-functions/open_wmemstream.texi: New file.
19686         * doc/posix-functions/openat.texi: New file.
19687         * doc/posix-functions/psiginfo.texi: New file.
19688         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19689         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19690         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19691         * doc/posix-functions/readlinkat.texi: New file.
19692         * doc/posix-functions/renameat.texi: New file.
19693         * doc/posix-functions/strerror_l.texi: New file.
19694         * doc/posix-functions/symlinkat.texi: New file.
19695         * doc/posix-functions/unlinkat.texi: New file.
19696         * doc/posix-functions/utimensat.texi: New file.
19697         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19698
19699 2008-12-14  Bruno Haible  <bruno@clisp.org>
19700
19701         Update doc for POSIX:2008.
19702         * doc/posix-functions/alphasort.texi: Renamed from
19703         doc/glibc-functions/alphasort.texi.
19704         * doc/posix-functions/dirfd.texi: Renamed from
19705         doc/glibc-functions/dirfd.texi.
19706         * doc/posix-functions/dprintf.texi: Renamed from
19707         doc/glibc-functions/dprintf.texi.
19708         * doc/posix-functions/duplocale.texi: Renamed from
19709         doc/glibc-functions/duplocale.texi.
19710         * doc/posix-functions/fexecve.texi: Renamed from
19711         doc/glibc-functions/fexecve.texi.
19712         * doc/posix-functions/fmemopen.texi: Renamed from
19713         doc/glibc-functions/fmemopen.texi.
19714         * doc/posix-functions/freelocale.texi: Renamed from
19715         doc/glibc-functions/freelocale.texi.
19716         * doc/posix-functions/getdate_err.texi: Renamed from
19717         doc/glibc-functions/getdate_err.texi.
19718         * doc/posix-functions/isalnum_l.texi: Renamed from
19719         doc/glibc-functions/isalnum_l.texi.
19720         * doc/posix-functions/isalpha_l.texi: Renamed from
19721         doc/glibc-functions/isalpha_l.texi.
19722         * doc/posix-functions/isblank_l.texi: Renamed from
19723         doc/glibc-functions/isblank_l.texi.
19724         * doc/posix-functions/iscntrl_l.texi: Renamed from
19725         doc/glibc-functions/iscntrl_l.texi.
19726         * doc/posix-functions/isdigit_l.texi: Renamed from
19727         doc/glibc-functions/isdigit_l.texi.
19728         * doc/posix-functions/isgraph_l.texi: Renamed from
19729         doc/glibc-functions/isgraph_l.texi.
19730         * doc/posix-functions/islower_l.texi: Renamed from
19731         doc/glibc-functions/islower_l.texi.
19732         * doc/posix-functions/isprint_l.texi: Renamed from
19733         doc/glibc-functions/isprint_l.texi.
19734         * doc/posix-functions/ispunct_l.texi: Renamed from
19735         doc/glibc-functions/ispunct_l.texi.
19736         * doc/posix-functions/isspace_l.texi: Renamed from
19737         doc/glibc-functions/isspace_l.texi.
19738         * doc/posix-functions/isupper_l.texi: Renamed from
19739         doc/glibc-functions/isupper_l.texi.
19740         * doc/posix-functions/iswalnum_l.texi: Renamed from
19741         doc/glibc-functions/iswalnum_l.texi.
19742         * doc/posix-functions/iswalpha_l.texi: Renamed from
19743         doc/glibc-functions/iswalpha_l.texi.
19744         * doc/posix-functions/iswblank_l.texi: Renamed from
19745         doc/glibc-functions/iswblank_l.texi.
19746         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19747         doc/glibc-functions/iswcntrl_l.texi.
19748         * doc/posix-functions/iswctype_l.texi: Renamed from
19749         doc/glibc-functions/iswctype_l.texi.
19750         * doc/posix-functions/iswdigit_l.texi: Renamed from
19751         doc/glibc-functions/iswdigit_l.texi.
19752         * doc/posix-functions/iswgraph_l.texi: Renamed from
19753         doc/glibc-functions/iswgraph_l.texi.
19754         * doc/posix-functions/iswlower_l.texi: Renamed from
19755         doc/glibc-functions/iswlower_l.texi.
19756         * doc/posix-functions/iswprint_l.texi: Renamed from
19757         doc/glibc-functions/iswprint_l.texi.
19758         * doc/posix-functions/iswpunct_l.texi: Renamed from
19759         doc/glibc-functions/iswpunct_l.texi.
19760         * doc/posix-functions/iswspace_l.texi: Renamed from
19761         doc/glibc-functions/iswspace_l.texi.
19762         * doc/posix-functions/iswupper_l.texi: Renamed from
19763         doc/glibc-functions/iswupper_l.texi.
19764         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19765         doc/glibc-functions/iswxdigit_l.texi.
19766         * doc/posix-functions/isxdigit_l.texi: Renamed from
19767         doc/glibc-functions/isxdigit_l.texi.
19768         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19769         doc/glibc-functions/mbsnrtowcs.texi.
19770         * doc/posix-functions/mkdtemp.texi: Renamed from
19771         doc/glibc-functions/mkdtemp.texi.
19772         * doc/posix-functions/newlocale.texi: Renamed from
19773         doc/glibc-functions/newlocale.texi.
19774         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19775         doc/glibc-functions/nl_langinfo_l.texi.
19776         * doc/posix-functions/open_memstream.texi: Renamed from
19777         doc/glibc-functions/open_memstream.texi.
19778         * doc/posix-functions/opterr.texi: Renamed from
19779         doc/glibc-functions/opterr.texi.
19780         * doc/posix-functions/optind.texi: Renamed from
19781         doc/glibc-functions/optind.texi.
19782         * doc/posix-functions/optopt.texi: Renamed from
19783         doc/glibc-functions/optopt.texi.
19784         * doc/posix-functions/psignal.texi: Renamed from
19785         doc/glibc-functions/psignal.texi.
19786         * doc/posix-functions/scandir.texi: Renamed from
19787         doc/glibc-functions/scandir.texi.
19788         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19789         doc/glibc-functions/sched_get_priority_min.texi.
19790         * doc/posix-functions/signgam.texi: Renamed from
19791         doc/glibc-functions/signgam.texi.
19792         * doc/posix-functions/stpcpy.texi: Renamed from
19793         doc/glibc-functions/stpcpy.texi.
19794         * doc/posix-functions/stpncpy.texi: Renamed from
19795         doc/glibc-functions/stpncpy.texi.
19796         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19797         doc/glibc-functions/strcasecmp_l.texi.
19798         * doc/posix-functions/strcoll_l.texi: Renamed from
19799         doc/glibc-functions/strcoll_l.texi.
19800         * doc/posix-functions/strfmon_l.texi: Renamed from
19801         doc/glibc-functions/strfmon_l.texi.
19802         * doc/posix-functions/strftime_l.texi: Renamed from
19803         doc/glibc-functions/strftime_l.texi.
19804         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19805         doc/glibc-functions/strncasecmp_l.texi.
19806         * doc/posix-functions/strndup.texi: Renamed from
19807         doc/glibc-functions/strndup.texi.
19808         * doc/posix-functions/strnlen.texi: Renamed from
19809         doc/glibc-functions/strnlen.texi.
19810         * doc/posix-functions/strsignal.texi: Renamed from
19811         doc/glibc-functions/strsignal.texi.
19812         * doc/posix-functions/strxfrm_l.texi: Renamed from
19813         doc/glibc-functions/strxfrm_l.texi.
19814         * doc/posix-functions/timer_gettime.texi: Renamed from
19815         doc/glibc-functions/timer_gettime.texi.
19816         * doc/posix-functions/tolower_l.texi: Renamed from
19817         doc/glibc-functions/tolower_l.texi.
19818         * doc/posix-functions/toupper_l.texi: Renamed from
19819         doc/glibc-functions/toupper_l.texi.
19820         * doc/posix-functions/towctrans_l.texi: Renamed from
19821         doc/glibc-functions/towctrans_l.texi.
19822         * doc/posix-functions/towlower_l.texi: Renamed from
19823         doc/glibc-functions/towlower_l.texi.
19824         * doc/posix-functions/towupper_l.texi: Renamed from
19825         doc/glibc-functions/towupper_l.texi.
19826         * doc/posix-functions/uselocale.texi: Renamed from
19827         doc/glibc-functions/uselocale.texi.
19828         * doc/posix-functions/vdprintf.texi: Renamed from
19829         doc/glibc-functions/vdprintf.texi.
19830         * doc/posix-functions/wcpcpy.texi:
19831         Renamed from doc/glibc-functions/wcpcpy.texi.
19832         * doc/posix-functions/wcpncpy.texi: Renamed from
19833         doc/glibc-functions/wcpncpy.texi.
19834         * doc/posix-functions/wcscasecmp.texi: Renamed from
19835         doc/glibc-functions/wcscasecmp.texi.
19836         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19837         doc/glibc-functions/wcscasecmp_l.texi.
19838         * doc/posix-functions/wcscoll_l.texi: Renamed from
19839         doc/glibc-functions/wcscoll_l.texi.
19840         * doc/posix-functions/wcsdup.texi: Renamed from
19841         doc/glibc-functions/wcsdup.texi.
19842         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19843         doc/glibc-functions/wcsncasecmp.texi.
19844         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19845         doc/glibc-functions/wcsncasecmp_l.texi.
19846         * doc/posix-functions/wcsnlen.texi: Renamed from
19847         doc/glibc-functions/wcsnlen.texi.
19848         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19849         doc/glibc-functions/wcsnrtombs.texi.
19850         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19851         doc/glibc-functions/wcsxfrm_l.texi.
19852         * doc/posix-functions/wctrans_l.texi: Renamed from
19853         doc/glibc-functions/wctrans_l.texi.
19854         * doc/posix-functions/wctype_l.texi: Renamed from
19855         doc/glibc-functions/wctype_l.texi.
19856         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19857         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19858         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19859         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19860         these subsections.
19861         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19862         Remove sections.
19863
19864 2008-12-14  Bruno Haible  <bruno@clisp.org>
19865
19866         Update doc for POSIX:2008.
19867         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19868
19869 2008-12-14  Bruno Haible  <bruno@clisp.org>
19870
19871         Update doc for POSIX:2008.
19872         * doc/pastposix-functions/bcmp.texi: Renamed from
19873         doc/posix-functions/bcmp.texi.
19874         * doc/pastposix-functions/bcopy.texi: Renamed from
19875         doc/posix-functions/bcopy.texi.
19876         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19877         doc/posix-functions/bsd_signal.texi.
19878         * doc/pastposix-functions/bzero.texi: Renamed from
19879         doc/posix-functions/bzero.texi.
19880         * doc/pastposix-functions/ecvt.texi: Renamed from
19881         doc/posix-functions/ecvt.texi.
19882         * doc/pastposix-functions/fcvt.texi: Renamed from
19883         doc/posix-functions/fcvt.texi.
19884         * doc/pastposix-functions/ftime.texi: Renamed from
19885         doc/posix-functions/ftime.texi.
19886         * doc/pastposix-functions/gcvt.texi: Renamed from
19887         doc/posix-functions/gcvt.texi.
19888         * doc/pastposix-functions/getcontext.texi: Renamed from
19889         doc/posix-functions/getcontext.texi.
19890         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19891         doc/posix-functions/gethostbyaddr.texi.
19892         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19893         doc/posix-functions/gethostbyname.texi.
19894         * doc/pastposix-functions/getwd.texi: Renamed from
19895         doc/posix-functions/getwd.texi.
19896         * doc/pastposix-functions/h_errno.texi: Renamed from
19897         doc/posix-functions/h_errno.texi.
19898         * doc/pastposix-functions/index.texi: Renamed from
19899         doc/posix-functions/index.texi.
19900         * doc/pastposix-functions/makecontext.texi: Renamed from
19901         doc/posix-functions/makecontext.texi.
19902         * doc/pastposix-functions/mktemp.texi: Renamed from
19903         doc/posix-functions/mktemp.texi.
19904         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19905         doc/posix-functions/pthread_attr_getstackaddr.texi.
19906         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19907         doc/posix-functions/pthread_attr_setstackaddr.texi.
19908         * doc/pastposix-functions/rindex.texi: Renamed from
19909         doc/posix-functions/rindex.texi.
19910         * doc/pastposix-functions/scalb.texi: Renamed from
19911         doc/posix-functions/scalb.texi.
19912         * doc/pastposix-functions/setcontext.texi: Renamed from
19913         doc/posix-functions/setcontext.texi.
19914         * doc/pastposix-functions/swapcontext.texi: Renamed from
19915         doc/posix-functions/swapcontext.texi.
19916         * doc/pastposix-functions/ualarm.texi: Renamed from
19917         doc/posix-functions/ualarm.texi.
19918         * doc/pastposix-functions/usleep.texi: Renamed from
19919         doc/posix-functions/usleep.texi.
19920         * doc/pastposix-functions/vfork.texi: Renamed from
19921         doc/posix-functions/vfork.texi.
19922         * doc/pastposix-functions/wcswcs.texi: Renamed from
19923         doc/posix-functions/wcswcs.texi.
19924         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19925         (Function Substitutes): Update.
19926
19927 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19928
19929         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19930         m4/strerror.m4.
19931
19932 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19933             Bruno Haible  <bruno@clisp.org>
19934
19935         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19936
19937 2008-12-13  Bruno Haible  <bruno@clisp.org>
19938
19939         * modules/strtoull (Depends-on): Remove unistd.
19940
19941 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19942
19943         * modules/strtoull (Depends-on): Add stdlib.
19944
19945 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19946
19947         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19948
19949 2008-12-10  Jim Meyering  <meyering@redhat.com>
19950
19951         gl_ASSERT: don't say assertions are disabled when they're not
19952         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19953         "checking whether to enable assertions... no", when they are in
19954         fact enabled.  This is solely a bug in the output of configure.
19955         In spite of saying "no", NDEBUG was not defined in that case.
19956         Also, as noted by Eric Blake, leave assertions enabled upon
19957         --enable-assert=INVALID.
19958
19959 2008-12-10  Bruno Haible  <bruno@clisp.org>
19960
19961         Change MODULES.html to refer to POSIX:2008 where possible.
19962         * MODULES.html.sh (POSIX2008_URL): New variable.
19963         (posix_headers): Remove sys/timeb, ucontext.
19964         (posix2001_headers): New variable.
19965         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19966         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19967         index, makecontext, mktemp, pthread_attr_getstackaddr,
19968         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19969         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19970         (posix2001_functions): New variable.
19971         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19972         otherwise.
19973
19974 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19975
19976         add missing include to parse-duration.c
19977         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19978         * modules/parse-duration (Depends-on): Add xalloc.
19979
19980         fix sed script reading maint.mk
19981         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19982         (syntax-check-rules): Use it.
19983
19984 2008-12-09  Bruno Haible  <bruno@clisp.org>
19985
19986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19987         MacOS X 10.4/PowerPC.
19988         Reported by Simon Josefsson.
19989
19990 2008-12-08  Jim Meyering  <meyering@redhat.com>
19991
19992         work around mingw's lack of some S_IF definitions
19993         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19994         Reported by Simon Josefsson.
19995
19996 2008-12-08  Bruno Haible  <bruno@clisp.org>
19997
19998         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19999         applied to variables. Needed on MacOS X 10.4/PowerPC.
20000         Reported by Simon Josefsson.
20001
20002 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
20003         and Eric Blake  <ebb9@byu.net>
20004
20005         assert: honor --enable-assert
20006         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
20007         order to honor --enable-assert, rather than treating it as a
20008         synonym for --disable-assert.
20009
20010 2008-12-08  Jim Meyering  <meyering@redhat.com>
20011
20012         * lib/posixtm.c: Remove now-useless declaration of mktime.
20013
20014         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
20015
20016 2008-12-07  Bruno Haible  <bruno@clisp.org>
20017
20018         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
20019         test_once): Mark functions as static.
20020         * tests/test-tls.c (test_tls): Likewise.
20021
20022 2008-12-07  Bruno Haible  <bruno@clisp.org>
20023
20024         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
20025         iconv_register_autodetect.
20026
20027 2008-12-07  Jim Meyering  <meyering@redhat.com>
20028
20029         posixtm.c: avoid a warning
20030         * lib/posixtm.c (posixtime): Don't initialize tm0.
20031         It's no longer needed to placate gcc4's -Wuninitialized,
20032         and the attempt to placate would elicit a new warning.
20033
20034         unicodeio.c: mark unused parameters
20035         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
20036         (fallback_failure_callback): Likewise.
20037
20038 2008-12-07  Bruno Haible  <bruno@clisp.org>
20039
20040         * gnulib-tool (func_create_testdir): When building the tests
20041         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
20042         Reported by Simon Josefsson.
20043
20044 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20045
20046         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
20047
20048 2008-12-06  Bruno Haible  <bruno@clisp.org>
20049
20050         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
20051         Suggested by Eric Blake.
20052
20053 2008-12-06  Bruno Haible  <bruno@clisp.org>
20054
20055         Fix a c-stack test failure on MacOS X.
20056         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
20057         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
20058         handler for SIGBUS as well.
20059         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
20060         install a signal handler for SIGBUS as well.
20061         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
20062
20063 2008-12-06  Bruno Haible  <bruno@clisp.org>
20064
20065         Advocacy documentation.
20066         * doc/gnulib-intro.texi (Benefits): New section.
20067         * doc/gnulib.texi: Update.
20068
20069 2008-12-06  Bruno Haible  <bruno@clisp.org>
20070
20071         Document the 'manywarnings' module.
20072         * doc/manywarnings.texi: New file.
20073         * doc/gnulib.texi: Include it.
20074
20075 2008-12-05  Eric Blake  <ebb9@byu.net>
20076
20077         tests: silence some gcc warnings
20078         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
20079         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
20080         type mismatches.
20081
20082 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20083             Bruno Haible  <bruno@clisp.org>
20084
20085         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
20086
20087 2008-11-29  Jim Meyering  <meyering@redhat.com>
20088
20089         unicodeio.c: mark unused parameters
20090         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
20091         (fallback_failure_callback): Likewise.
20092
20093         fts: fix a thinko
20094         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
20095         (set_stat_type): Return S_IF*-valued "type" directly.
20096         Prompted by James Youngman's spotting a related bug.
20097         Confirmed by further testing through find.
20098
20099         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
20100         * lib/fts.c (D_TYPE): Define.
20101         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
20102         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
20103         (s_ifmt_shift_bits): New function.
20104         (set_stat_type): New function.
20105         (fts_build): When not calling fts_stat, call set_stat_type
20106         to propagate dirent.d_type info to fts_read caller.
20107         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
20108         fts_statp->st_mode type information may be valid.
20109
20110 2008-11-28  Simon Josefsson  <simon@josefsson.org>
20111
20112         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
20113         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
20114         <sds@gnu.org>.
20115
20116 2008-11-20  Bruno Haible  <bruno@clisp.org>
20117
20118         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
20119         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
20120         INCLUDE_NEXT.
20121         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
20122         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
20123         * modules/math (Makefile.am): Substitute
20124         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
20125         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20126
20127 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20128             Bruno Haible  <bruno@clisp.org>
20129
20130         * lib/stdint.in.h: Define all type macros so that their expansion is
20131         a single typedef'ed token. Fixes a compilation failure in Boost which
20132         does "using ::int8_t;".
20133
20134 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20135
20136         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
20137         gl_MANYWARN_ALL_GCC.
20138         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
20139         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
20140         * modules/manywarnings: New file.
20141         * MODULES.html.sh: Mention manywarnings module.
20142
20143 2008-11-18  Bruno Haible  <bruno@clisp.org>
20144
20145         * doc/gnulib-tool.texi (Unit tests): New section.
20146
20147 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20148
20149         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
20150         paths like 'lib/po/foo.po'.
20151
20152 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20153
20154         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
20155         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
20156
20157 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20158
20159         * m4/warnings.m4: Use CPPFLAGS to really check whether the
20160         parameter works.
20161
20162 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20163
20164         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
20165
20166 2008-11-17  Bruce Korb  <bkorb@gnu.org>
20167
20168         * modules/parse-duration-tests: New file.
20169         * tests/test-parse-duration.sh: New file.
20170         * tests/test-parse-duration.c: New file.
20171
20172         New module 'parse-duration'.
20173         * lib/parse-duration.h: New file.
20174         * lib/parse-duration.c: New file.
20175         * modules/parse-duration: New file.
20176
20177 2008-11-17  Bruno Haible  <bruno@clisp.org>
20178
20179         * tests/test-select-out.sh: Comment out the first pipe test.
20180         Reported by Simon Josefsson.
20181
20182 2008-11-17  Bruno Haible  <bruno@clisp.org>
20183
20184         * modules/getaddrinfo (Depends-on): Add servent, hostent.
20185         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
20186         gl_HOSTENT.
20187
20188 2008-11-17  Bruno Haible  <bruno@clisp.org>
20189
20190         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
20191         -lnetwork and -lnet. Needed for Haiku and BeOS.
20192
20193 2008-11-16  Bruno Haible  <bruno@clisp.org>
20194
20195         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
20196
20197 2008-11-16  Bruno Haible  <bruno@clisp.org>
20198
20199         Avoid test failure on Haiku.
20200         * tests/test-fsync.c: Include <errno.h>.
20201         (main): Don't require that fsync (0) fails.
20202
20203 2008-11-15  Bruno Haible  <bruno@clisp.org>
20204
20205         New module 'hostent'.
20206         * modules/hostent: New file.
20207         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
20208
20209 2008-11-15  Bruno Haible  <bruno@clisp.org>
20210
20211         New module 'servent'.
20212         * modules/servent: New file.
20213         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
20214
20215 2008-11-15  Bruno Haible  <bruno@clisp.org>
20216
20217         Avoid generating same test program with two different rules.
20218         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
20219         test-frexp to test-frexp-nolibm.
20220         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
20221         test-frexpl to test-frexpl-nolibm.
20222
20223 2008-11-15  Bruno Haible  <bruno@clisp.org>
20224
20225         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
20226         $(FREXPL_LIBM).
20227
20228 2008-11-15  Bruno Haible  <bruno@clisp.org>
20229
20230         * lib/netdb.in.h: Activate the definitions also when the system's
20231         <netdb.h> has 'struct addrinfo'.
20232         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
20233         EAI_OVERFLOW or AI_NUMERICSERV.
20234         * doc/posix-headers/netdb.texi: Document the problem.
20235
20236 2008-11-15  Bruno Haible  <bruno@clisp.org>
20237
20238         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
20239
20240         Make the 'sched' module work on platforms where <sched.h> exists but
20241         is incomplete (such as Haiku).
20242         * lib/sched.in.h; Include the system's <sched.h> if it exists.
20243         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
20244         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
20245         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
20246         HAVE_STRUCT_SCHED_PARAM.
20247         * modules/sched (Depends-on): Add include_next.
20248         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
20249         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
20250         * doc/posix-headers/sched.texi: Document the issue.
20251
20252 2008-11-13  Jim Meyering  <meyering@redhat.com>
20253
20254         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
20255         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
20256         test would fail due to the difference in the Report bugs to ...
20257         line.  The expected address is empty, "<>", while the actual
20258         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
20259
20260 2008-11-12  Bruno Haible  <bruno@clisp.org>
20261
20262         lstat: don't compile lstat.c on systems lacking lstat
20263         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
20264         which don't have lstat; this is handled by lib/sys_stat.in.h already.
20265         Reported by Daniel P. Berrange via Jim Meyering.
20266
20267 2008-11-12  Jim Meyering  <meyering@redhat.com>
20268
20269         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
20270
20271 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20272
20273         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
20274         instead.
20275
20276 2008-11-12  Bruno Haible  <bruno@clisp.org>
20277
20278         * lib/unicodeio.c: Include unistr.h.
20279         (utf8_wctomb): Remove function.
20280         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
20281
20282 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20283
20284         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
20285         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
20286         <bruno@clisp.org>.
20287         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
20288
20289 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20290
20291         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
20292         * doc/gnulib.texi: Add section for warnings.
20293
20294 2008-11-11  Bruno Haible  <bruno@clisp.org>
20295
20296         * lib/sockets.h: Add a comment.
20297
20298 2008-11-11  Karl Berry  <karl@gnu.org>
20299
20300         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
20301
20302 2008-11-11  Eric Blake  <ebb9@byu.net>
20303
20304         fdl.texi: avoid git symlinks
20305         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
20306
20307 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20308
20309         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
20310
20311 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20312
20313         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20314         (gl_WARN_ADD): Substitute $2 if literal.
20315
20316 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20317
20318         * m4/warning.m4: Remove.
20319
20320 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20321
20322         * m4/warnings.m4: Almost complete rewrite. :-)
20323
20324 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20325
20326         * modules/warnings: New module.
20327         * m4/warnings.m4: New file.
20328         * MODULES.html.sh: Mention warnings module.
20329         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20330         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20331
20332 2008-11-10  Eric Blake  <ebb9@byu.net>
20333
20334         fdl.texi: make a symlink to the latest version
20335         * doc/standards.texi: Revert today's earlier change.
20336         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20337         * doc/fdl.texi: ...and replace this with a symlink to the newer
20338         fdl-1.3.texi.
20339
20340 2008-11-10  Bruno Haible  <bruno@clisp.org>
20341
20342         * tests/test-select-fd.c (main): Accept the result file name as fourth
20343         argument.
20344         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20345         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20346
20347 2008-11-10  Bruno Haible  <bruno@clisp.org>
20348
20349         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20350         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20351         as autoconf-substituted macros.
20352         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20353         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20354         gl_NETDB_H_DEFAULTS. Set these variables.
20355         * modules/netdb (Makefile.am): Substitute these variables.
20356
20357 2008-11-10  Eric Blake  <ebb9@byu.net>
20358
20359         standards.texi: include correct file for FDL 1.3
20360         * doc/standards.texi (GNU Free Documentation License): Change
20361         include file to pull in FDL 1.3, not 1.2.
20362
20363         fdl.texi: revert accidental change to license
20364         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20365
20366 2008-11-10  Bruno Haible  <bruno@clisp.org>
20367
20368         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20369         cross-compiling guesses also when the native compile gives no result.
20370
20371 2008-11-10  Bruno Haible  <bruno@clisp.org>
20372
20373         * lib/spawni.c (__spawni): Force variable into the stack.
20374
20375 2008-11-10  Bruno Haible  <bruno@clisp.org>
20376
20377         Add support for Haiku.
20378         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20379         glibc and BeOS, but also on Haiku.
20380         * lib/fpurge.c (fpurge): Likewise.
20381         * lib/freadable.c (freadable): Likewise.
20382         * lib/freadahead.c (freadahead): Likewise.
20383         * lib/freading.c (freading): Likewise.
20384         * lib/freadptr.c (freadptr): Likewise.
20385         * lib/freadseek.c (freadptrinc): Likewise.
20386         * lib/fseeko.c (rpl_fseeko): Likewise.
20387         * lib/fseterr.c (fseterr): Likewise.
20388         * lib/fwritable.c (fwritable): Likewise.
20389         * lib/fwriting.c (fwriting): Likewise.
20390         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20391
20392 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20393
20394         * lib/config.charset: Treat Haiku like BeOS.
20395
20396 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20397
20398         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20399         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20400
20401 2008-11-08  Bruno Haible  <bruno@clisp.org>
20402
20403         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20404         AC_CACHE_CHECK.
20405
20406 2008-11-08  Bruno Haible  <bruno@clisp.org>
20407
20408         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20409
20410 2008-11-08  Bruno Haible  <bruno@clisp.org>
20411
20412         * tests/test-select-fd.c: New file.
20413         * tests/test-select-in.sh: New file.
20414         * tests/test-select-out.sh: New file.
20415         * tests/test-select-stdin.c: New file.
20416         * modules/select-tests (Files): Add the new files.
20417         (Depends-on): Add gettimeofday.
20418         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20419         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20420         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20421
20422 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20423             Bruno Haible  <bruno@clisp.org>
20424
20425         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20426
20427 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20428
20429         * build-aux/pmccabe2html: Added support for C++ source files.
20430
20431 2008-11-05  Ben Pfaff  <blp@gnu.org>
20432
20433         Fix lib/close.c build on Windows.
20434         * modules/close (Files): Add lib/w32sock.h.
20435
20436 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20437
20438         Accept Bison's NEWS format.
20439         * build-aux/announce-gen (print_news_deltas): Tweak
20440         $re_prefix.
20441
20442 2008-11-04  Bruno Haible  <bruno@clisp.org>
20443
20444         * modules/random_r (Maintainer): Add glibc.
20445
20446 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20447
20448         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20449         by karl@freefriends.org (Karl Berry).
20450         * doc/alloca.texi: Likewise.
20451         * doc/c-ctype.texi: Likewise.
20452         * doc/c-strcase.texi: Likewise.
20453         * doc/c-strcaseeq.texi: Likewise.
20454         * doc/c-strcasestr.texi: Likewise.
20455         * doc/c-strstr.texi: Likewise.
20456         * doc/c-strtod.texi: Likewise.
20457         * doc/c-strtold.texi: Likewise.
20458         * doc/ctime.texi: Likewise.
20459         * doc/error.texi: Likewise.
20460         * doc/fdl.texi: Likewise.
20461         * doc/gcd.texi: Likewise.
20462         * doc/getdate.texi: Likewise.
20463         * doc/gnulib-intro.texi: Likewise.
20464         * doc/gnulib-tool.texi: Likewise.
20465         * doc/gnulib.texi: Likewise.
20466         * doc/inet_ntoa.texi: Likewise.
20467         * doc/maintain.texi: Likewise.
20468         * doc/make-stds.texi: Likewise.
20469         * doc/quote.texi: Likewise.
20470         * doc/regexprops-generic.texi: Likewise.
20471         * doc/standards.texi: Likewise.
20472         * doc/verify.texi: Likewise.
20473         * doc/visibility.texi: Likewise.
20474         * doc/gnulib.texi (GNU Free Documentation License): Include
20475         fdl-1.3.texi instead of fdl.texi.
20476
20477 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20478
20479         * doc/fdl-1.3.texi: New file, from
20480         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20481         * modules/fdl-1.3: Add.
20482         * MODULES.html.sh: Add fdl-1.3.
20483
20484 2008-11-03  Bruno Haible  <bruno@clisp.org>
20485
20486         Make determination of absolute name of header file work with AIX xlc.
20487         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20488         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20489         preprocessing.
20490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20491         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20492
20493 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20494
20495         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20496         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20497         <ludo@gnu.org>.
20498
20499 2008-11-02  Bruno Haible  <bruno@clisp.org>
20500
20501         Mark 'strpbrk' obsolete.
20502         * modules/strpbrk (Status, Notice): New sections.
20503         * modules/strtok_r (Depends-on): Add strpbrk.
20504
20505 2008-11-02  Bruno Haible  <bruno@clisp.org>
20506
20507         Mark 'strdup' obsolete.
20508         * modules/strdup (Status, Notice): New sections.
20509         * modules/findprog (Depends-on): Add strdup.
20510         * modules/getaddrinfo (Depends-on): Likewise.
20511         * modules/localename (Depends-on): Likewise.
20512         * modules/relocatable-lib (Depends-on): Likewise.
20513         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20514         * modules/relocatable-prog (Depends-on): Likewise.
20515         * modules/trim (Depends-on): Likewise.
20516         * modules/unictype/gen-ctype (Depends-on): Likewise.
20517         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20518
20519 2008-11-02  Bruno Haible  <bruno@clisp.org>
20520
20521         Mark 'strcspn' obsolete.
20522         * modules/strcspn (Status, Notice): New sections.
20523
20524 2008-11-02  Bruno Haible  <bruno@clisp.org>
20525
20526         Mark 'rmdir' obsolete.
20527         * modules/rmdir (Status, Notice): New sections.
20528         * modules/clean-temp (Depends-on): Add rmdir.
20529         * modules/openat (Depends-on): Likewise.
20530
20531 2008-11-02  Bruno Haible  <bruno@clisp.org>
20532
20533         Mark 'raise' obsolete.
20534         * modules/raise (Status, Notice): New sections.
20535         (Include): Specify <signal.h>.
20536         * modules/stdio (Depends-on): Add raise.
20537         * modules/write (Depends-on): Likewise.
20538
20539 2008-11-02  Bruno Haible  <bruno@clisp.org>
20540
20541         Mark 'memset' obsolete.
20542         * modules/memset (Status, Notice): New sections.
20543
20544 2008-11-02  Bruno Haible  <bruno@clisp.org>
20545
20546         Mark 'memmove' obsolete.
20547         * modules/memmove (Status, Notice): New sections.
20548         * modules/argp (Depends-on): Add memmove.
20549         * modules/argz (Depends-on): Likewise.
20550         * modules/canonicalize (Depends-on): Likewise.
20551         * modules/canonicalize-lgpl (Depends-on): Likewise.
20552         * modules/fts (Depends-on): Likewise.
20553         * modules/getcwd (Depends-on): Likewise.
20554         * modules/human (Depends-on): Likewise.
20555         * modules/regex (Depends-on): Likewise.
20556         * modules/striconveh (Depends-on): Likewise.
20557         * modules/trim (Depends-on): Likewise.
20558         * modules/unistr/u8-move (Depends-on): Likewise.
20559         * modules/unistr/u16-move (Depends-on): Likewise.
20560         * modules/unistr/u32-move (Depends-on): Likewise.
20561
20562 2008-11-02  Bruno Haible  <bruno@clisp.org>
20563
20564         Mark 'memcpy' obsolete.
20565         * modules/memcpy (Status, Notice): New sections.
20566
20567 2008-11-02  Bruno Haible  <bruno@clisp.org>
20568
20569         Mark 'memcmp' obsolete.
20570         * modules/memcmp (Status, Notice): New sections.
20571         * modules/argmatch (Depends-on): Add memchr.
20572         * modules/backupfile (Depends-on): Likewise.
20573         * modules/c-strcasestr (Depends-on): Likewise.
20574         * modules/crypto/des (Depends-on): Likewise.
20575         * modules/csharpcomp (Depends-on): Likewise.
20576         * modules/fnmatch (Depends-on): Likewise.
20577         * modules/git-merge-changelog (Depends-on): Likewise.
20578         * modules/isnand (Depends-on): Likewise.
20579         * modules/isnand-nolibm (Depends-on): Likewise.
20580         * modules/isnanf (Depends-on): Likewise.
20581         * modules/isnanf-nolibm (Depends-on): Likewise.
20582         * modules/isnanl (Depends-on): Likewise.
20583         * modules/isnanl-nolibm (Depends-on): Likewise.
20584         * modules/mbchar (Depends-on): Likewise.
20585         * modules/memcoll (Depends-on): Likewise.
20586         * modules/quotearg (Depends-on): Likewise.
20587         * modules/regex (Depends-on): Likewise.
20588         * modules/relocatable-prog (Depends-on): Likewise.
20589         * modules/same (Depends-on): Likewise.
20590         * modules/signbit (Depends-on): Likewise.
20591         * modules/strcasestr-simple (Depends-on): Likewise.
20592         * modules/unictype/gen-ctype (Depends-on): Likewise.
20593         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20594         * modules/uniname/uniname (Depends-on): Likewise.
20595         * modules/unistr/u8-cmp (Depends-on): Likewise.
20596
20597 2008-11-02  Bruno Haible  <bruno@clisp.org>
20598
20599         Mark 'memchr' obsolete.
20600         * modules/memchr (Status, Notice): New sections.
20601         * modules/argp (Depends-on): Add memchr.
20602         * modules/base64 (Depends-on): Likewise.
20603         * modules/c-strcasestr (Depends-on): Likewise.
20604         * modules/chdir-long (Depends-on): Likewise.
20605         * modules/fnmatch (Depends-on): Likewise.
20606         * modules/getsubopt (Depends-on): Likewise.
20607         * modules/git-merge-changelog (Depends-on): Likewise.
20608         * modules/glob (Depends-on): Likewise.
20609         * modules/strcasestr-simple (Depends-on): Likewise.
20610         * modules/strnlen (Depends-on): Likewise.
20611
20612 2008-11-02  Bruno Haible  <bruno@clisp.org>
20613
20614         Mark 'atexit' obsolete.
20615         * modules/atexit (Status, Notice): New sections.
20616         * modules/chdir-long (Depends-on): Add atexit.
20617         * modules/wait-process (Depends-on): Likewise.
20618
20619 2008-11-02  Bruno Haible  <bruno@clisp.org>
20620
20621         * gnulib-tool: New option --with-obsolete.
20622         (func_usage): Document it.
20623         (func_modules_transitive_closure): Drop obsolete dependencies if
20624         incobsolete is not true.
20625         (func_import): Read and save the incobsolete variable to the cache.
20626
20627 2008-11-02  Bruno Haible  <bruno@clisp.org>
20628
20629         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20630         * gnulib-tool: New option --extract-status.
20631         (func_usage): Document it.
20632         (sed_extract_prog): Recognize it.
20633         (func_get_status): New function.
20634
20635 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20636
20637         * modules/sockets (License): Change from LGPL to LGPLv2+.
20638
20639 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20640
20641         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20642
20643 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20644
20645         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20646         Mention times and sys_times.
20647         * modules/sys_times, modules/sys_times-tests: New modules.
20648         * modules/times, modules/times-tests: Likewise
20649         * m4/sys_times_h.m4: New file.
20650         * lib/sys_times.in.h: Likewise
20651         * lib/times.c: Likewise.
20652         * tests/test-sys_times.c: Likewise.
20653         * tests/test-times.c: Likewise.
20654         * doc/posix-headers/sys_times.texi: Update.
20655         * doc/posix-functions/times.texi: Update.
20656
20657 2008-10-28  Jim Meyering  <meyering@redhat.com>
20658
20659         * modules/tempname (Depends-on): Add lstat.
20660
20661         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20662
20663 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20664
20665         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20666         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20667         using idiom used elsewhere in gnulib.
20668
20669 2008-10-27  Jim Meyering  <meyering@redhat.com>
20670
20671         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20672
20673 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20674
20675         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20676         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20677         programs.
20678         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20679
20680 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20681
20682         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20683
20684 2008-10-27  Bruno Haible  <bruno@clisp.org>
20685
20686         * tests/test-lstat.c: Include <stdio.h>.
20687
20688 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20689
20690         * modules/lstat-tests: New module.
20691         * tests/test-lstat.c: New file.
20692
20693 2008-10-26  Jim Meyering  <meyering@redhat.com>
20694
20695         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20696
20697 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20698             Bruno Haible  <bruno@clisp.org>
20699
20700         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20701         * modules/configmake (Include): Add a note that the include must come
20702         after all system headers.
20703         * lib/javaversion.c: Include configmake.h after all other includes.
20704
20705 2008-10-26  Bruno Haible  <bruno@clisp.org>
20706
20707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20708         HAVE_STRUCT_RANDOM_DATA to 1.
20709         (gl_STDLIB_H): Simplify.
20710
20711 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20712
20713         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20714         substitute HAVE_STRUCT_RANDOM_DATA.
20715         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20716         random_data.
20717         * modules/stdlib (Makefile.am): Substitute
20718         HAVE_STRUCT_RANDOM_DATA.
20719
20720 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20721
20722         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20723         * doc/gnulib-intro.texi (Copyright): Likewise.
20724
20725 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20726
20727         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20728         findings.
20729
20730 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20731             Bruno Haible  <bruno@clisp.org>
20732
20733         * lib/unistd.in.h: Include <winsock2.h>.
20734         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20735         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20736         Provide dummy declarations.
20737         (gethostname): Override.
20738         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20739         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20740         gl_PREREQ_SYS_H_WINSOCK2.
20741         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20742         * doc/posix-functions/gethostname.texi: More details.
20743
20744 2008-10-25  Bruno Haible  <bruno@clisp.org>
20745
20746         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20747         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20748         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20749
20750         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20751         here ...
20752         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20754         gl_UNISTD_H_DEFAULTS.
20755
20756 2008-10-25  Eric Blake  <ebb9@byu.net>
20757
20758         signbit: avoid spurious compiler failure
20759         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20760         declarations inside function.
20761
20762 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20763             Bruno Haible  <bruno@clisp.org>
20764
20765         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20766         * modules/random_r (Depends-on): Add stdint.
20767
20768 2008-10-24  Bruno Haible  <bruno@clisp.org>
20769
20770         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20771         Eggert.
20772         * modules/strerror (License): Likewise.
20773
20774 2008-10-24  Jim Meyering  <meyering@redhat.com>
20775
20776         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20777         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20778
20779 2008-10-24  Eric Blake  <ebb9@byu.net>
20780
20781         getgroups: fix compilation when getgroups is available
20782         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20783         but with <config.h> override of getgroups disabled.
20784
20785 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20786
20787         * doc/gnulib.texi (Header files): Add note about C++ problems.
20788         Explained by Bruno Haible <bruno@clisp.org>.
20789
20790 2008-10-23  Bruno Haible  <bruno@clisp.org>
20791
20792         Define a dummy SA_NODEFER macro on Interix.
20793         * lib/signal.in.h (SA_NODEFER): Define fallback.
20794         Reported by Aleksey Cheusov <cheusov@tut.by> via
20795         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20796
20797 2008-10-23  Bruno Haible  <bruno@clisp.org>
20798
20799         * modules/freadahead (License): Change to LGPLv2+.
20800         Suggested by Simon Josefsson.
20801
20802 2008-10-23  Jim Meyering  <meyering@redhat.com>
20803
20804         random_r: new module
20805         * modules/random_r: New file.
20806         * m4/random_r.m4: New file.
20807         * lib/random_r.c: New file, from glibc.
20808         * modules/random_r-tests: New file.
20809         * tests/test-random_r.c: New file.
20810         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20811          Declare.
20812         (RAND_MAX): Define.
20813         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20814         * modules/stdlib: Substitute them, too.
20815         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20816         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20817         * doc/glibc-functions/random_r.texi: Likewise.
20818         * doc/glibc-functions/setstate_r.texi: Likewise.
20819         * doc/glibc-functions/srandom_r.texi: Likewise.
20820         * config/srclist.txt: Mention it.
20821
20822 2008-10-23  David Lutterkort  <lutter@redhat.com>
20823
20824         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20825         link requirement
20826
20827 2008-10-23  Jim Meyering  <meyering@redhat.com>
20828
20829         selinux-h: mark parameters of stub functions as intentionally unused
20830         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20831         * lib/se-context.in.h: Likewise.
20832
20833 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20834
20835         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20836
20837 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20838
20839         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20840
20841 2008-10-22  Eric Blake  <ebb9@byu.net>
20842
20843         glthread/thread: avoid compiler warning
20844         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20845         Add unreachable abort to silence compiler.
20846
20847 2008-10-22  Eric Blake  <ebb9@byu.net>
20848
20849         netdb: also supply struct addrinfo for cygwin 1.5.x
20850         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20851         older cygwin.
20852         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20853         cygwin.
20854         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20855
20856 2008-10-22  Bruno Haible  <bruno@clisp.org>
20857
20858         * users.txt: Update entry about pspp.
20859
20860 2008-10-21  Bruno Haible  <bruno@clisp.org>
20861
20862         Simplification.
20863         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20864         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20865
20866         Simplification.
20867         * lib/ioctl.c (ioctl): Don't undefine.
20868         * lib/socket.c (socket): Don't undefine.
20869
20870         Remove unused module indicator macros.
20871         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20872         GNULIB_$1 as a C macro.
20873
20874         * doc/posix-functions/close.texi: Undo last change.
20875         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20876         Windows platforms.
20877
20878 2008-10-21  Bruno Haible  <bruno@clisp.org>
20879
20880         Add gethostname() declaration to <unistd.h>.
20881         * lib/unistd.in.h (gethostname): New declaration.
20882         * lib/gethostname.c: Include <unistd.h>.
20883         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20884         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20886         and HAVE_GETHOSTNAME.
20887         * modules/gethostname (Depends-on): Add unistd.
20888         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20889         (Include): Specify <unistd.h>.
20890         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20891         HAVE_GETHOSTNAME.
20892         * tests/test-gethostname.c: Include <unistd.h> first.
20893
20894 2008-10-21  Bruno Haible  <bruno@clisp.org>
20895
20896         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20897         * modules/select-tests (Depends-on): Likewise.
20898         Reported by Simon Josefsson.
20899
20900 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20901
20902         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20903         * lib/accept.c: New file, based on winsock.c.
20904         * lib/bind.c: New file, based on winsock.c.
20905         * lib/connect.c: New file, based on winsock.c.
20906         * lib/getpeername.c: New file, based on winsock.c.
20907         * lib/getsockname.c: New file, based on winsock.c.
20908         * lib/getsockopt.c: New file, based on winsock.c.
20909         * lib/ioctl.c: New file, based on winsock.c.
20910         * lib/listen.c: New file, based on winsock.c.
20911         * lib/recv.c: New file, based on winsock.c.
20912         * lib/recvfrom.c: New file, based on winsock.c.
20913         * lib/send.c: New file, based on winsock.c.
20914         * lib/sendto.c: New file, based on winsock.c.
20915         * lib/setsockopt.c: New file, based on winsock.c.
20916         * lib/shutdown.c: New file, based on winsock.c.
20917         * lib/socket.c: New file, based on winsock.c.
20918         * lib/w32sock.h: New file, based on winsock.c.
20919         * lib/winsock.c: Remove file.
20920         * modules/accept: Likewise.
20921         * modules/bind: Likewise.
20922         * modules/connect: Likewise.
20923         * modules/getpeername: Likewise.
20924         * modules/getsockname: Likewise.
20925         * modules/getsockopt: Likewise.
20926         * modules/ioctl: Likewise.
20927         * modules/listen: Likewise.
20928         * modules/recv: Likewise.
20929         * modules/recvfrom: Likewise.
20930         * modules/send: Likewise.
20931         * modules/sendto: Likewise.
20932         * modules/setsockopt: Likewise.
20933         * modules/shutdown: Likewise.
20934         * modules/socket: Use socket.c instead of winsock.c.
20935         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20936         * doc/posix-functions/accept.texi: Doc fix.
20937         * doc/posix-functions/bind.texi: Doc fix.
20938         * doc/posix-functions/close.texi: Doc fix.
20939         * doc/posix-functions/connect.texi: Doc fix.
20940         * doc/posix-functions/getpeername.texi: Doc fix.
20941         * doc/posix-functions/getsockname.texi: Doc fix.
20942         * doc/posix-functions/getsockopt.texi: Doc fix.
20943         * doc/posix-functions/ioctl.texi: Doc fix.
20944         * doc/posix-functions/listen.texi: Doc fix.
20945         * doc/posix-functions/recv.texi: Doc fix.
20946         * doc/posix-functions/recvfrom.texi: Doc fix.
20947         * doc/posix-functions/send.texi: Doc fix.
20948         * doc/posix-functions/sendto.texi: Doc fix.
20949         * doc/posix-functions/setsockopt.texi: Doc fix.
20950         * doc/posix-functions/shutdown.texi: Doc fix.
20951         * doc/posix-functions/socket.texi: Doc fix.
20952
20953 2008-10-20  Bruno Haible  <bruno@clisp.org>
20954
20955         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20956         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20957         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20958         as an alias for SIGABRT.
20959         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20960         (sigaction): Map it to SIGABRT.
20961         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20962
20963 2008-10-20  Bruno Haible  <bruno@clisp.org>
20964
20965         * lib/fts.c: Don't include lstat.h.
20966         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20967
20968         Move the lstat() declaration to <sys/stat.h>.
20969         * lib/lstat.h: Remove file.
20970         * lib/sys_stat.in.h: Add special invocation convention.
20971         (lstat): New declaration.
20972         * lib/lstat.c (orig_lstat): New function.
20973         (rpl_lstat): Use orig_lstat instead of lstat.
20974         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20975         AC_C_INLINE. Set REPLACE_LSTAT.
20976         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20977         and REPLACE_LSTAT.
20978         * modules/lstat (Files): Remove lib/lstat.h.
20979         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20980         (Include): Specify <sys/stat.h> instead of lstat.h.
20981         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20982         REPLACE_LSTAT.
20983         * NEWS: Mention the change.
20984
20985 2008-10-20  Bruno Haible  <bruno@clisp.org>
20986
20987         * modules/posix_spawn-tests: New file.
20988         * tests/test-posix_spawn3.c: New file.
20989
20990 2008-10-20  Bruno Haible  <bruno@clisp.org>
20991
20992         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20993         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20994         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20995         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20996         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20997
20998 2008-10-20  Bruno Haible  <bruno@clisp.org>
20999
21000         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
21001         of posix_spawn on AIX 5.3.
21002
21003 2008-10-20  Bruno Haible  <bruno@clisp.org>
21004
21005         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
21006
21007 2008-10-20  Bruno Haible  <bruno@clisp.org>
21008
21009         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
21010         of AC_LANG_PROGRAM.
21011
21012 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21013
21014         * lib/netdb.in.h: Don't define GNU specific constants until they
21015         are supported or needed.  Reported by Bruno Haible
21016         <bruno@clisp.org>.
21017
21018 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21019
21020         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
21021
21022 2008-10-20  Simon Josefsson  <simon@josefsson.org>
21023
21024         * lib/getaddrinfo.h: Remove file.
21025         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
21026         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
21027         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
21028         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
21029         * modules/netdb: Substitute GNULIB_GETADDRINFO.
21030         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
21031         * tests/test-getaddrinfo.c: Likewise.
21032         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
21033         * NEWS: Mention change.
21034
21035 2008-10-19  Bruno Haible  <bruno@clisp.org>
21036
21037         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
21038
21039 2008-10-19  Bruno Haible  <bruno@clisp.org>
21040
21041         * lib/wait-process.c: Include simply <sys/wait.h>.
21042         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
21043         WIFSTOPPED): Remove fallback definitions.
21044         * modules/wait-process (Depends-on): Add sys_wait.
21045
21046         New module 'sys_wait'.
21047         * modules/sys_wait: New file.
21048         * lib/sys_wait.in.h: New file, partially copied from
21049         lib/wait-process.c.
21050         * m4/sys_wait_h.m4: New file.
21051         * doc/posix-headers/sys_wait.texi: Mention the new module.
21052
21053 2008-10-19  Bruno Haible  <bruno@clisp.org>
21054
21055         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
21056
21057 2008-10-19  Bruno Haible  <bruno@clisp.org>
21058
21059         Assume that waitpid() fills an 'int' status, not a 'union wait'.
21060         * lib/wait-process.c (WAIT_T): Remove type.
21061         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
21062         (wait_subprocess): Update.
21063
21064 2008-10-19  Bruno Haible  <bruno@clisp.org>
21065
21066         New module 'atoll'.
21067         * modules/atoll: New file.
21068         * lib/stdlib.in.h (atoll): New declaration.
21069         * lib/atoll.c: New file, from glibc with modifications.
21070         * m4/atoll.m4: New file.
21071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
21072         HAVE_ATOLL.
21073         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
21074         * doc/posix-functions/atoll.texi: Mention the new module.
21075
21076 2008-10-19  Bruno Haible  <bruno@clisp.org>
21077
21078         Add strtoull() declaration to <stdlib.h>.
21079         * lib/stdlib.in.h (strtoull): New declaration.
21080         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
21081         Set HAVE_STRTOULL.
21082         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
21083         HAVE_STRTOULL.
21084         * modules/strtoull (Depends-on): Add stdlib.
21085         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21086         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
21087         HAVE_STRTOULL.
21088
21089 2008-10-19  Bruno Haible  <bruno@clisp.org>
21090
21091         Add strtoll() declaration to <stdlib.h>.
21092         * lib/stdlib.in.h (strtoll): New declaration.
21093         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
21094         Set HAVE_STRTOLL.
21095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
21096         HAVE_STRTOLL.
21097         * modules/strtoll (Depends-on): Add stdlib.
21098         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21099         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
21100
21101 2008-10-19  Bruno Haible  <bruno@clisp.org>
21102
21103         * modules/bcopy (Depends-on): Add strings.
21104         (Include): Specify <strings.h>.
21105
21106 2008-10-19  Bruno Haible  <bruno@clisp.org>
21107
21108         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
21109
21110 2008-10-19  Bruno Haible  <bruno@clisp.org>
21111
21112         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
21113         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
21114         mingw.
21115
21116 2008-10-19  Bruno Haible  <bruno@clisp.org>
21117
21118         * lib/atanl.c: Don't include isnanl.h.
21119         * lib/cosl.c: Likewise.
21120         * lib/ldexpl.c: Likewise.
21121         * lib/logl.c: Likewise.
21122         * lib/sinl.c: Likewise.
21123         * lib/sqrtl.c: Likewise.
21124         * lib/tanl.c: Likewise.
21125
21126         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
21127         * lib/isnanf.h: Remove file.
21128         * lib/isnand.h: Remove file.
21129         * lib/isnanl.h: Remove file.
21130         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
21131         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
21132         macros.
21133         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
21134         HAVE_ISNANF, don't define it as a C macro.
21135         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
21136         HAVE_ISNAND, don't define it as a C macro.
21137         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
21138         HAVE_ISNANL, don't define it as a C macro.
21139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
21140         HAVE_ISNAN[FDL].
21141         * modules/isnanf (Files): Remove lib/isnanf.h.
21142         (Depends-on): Add math.
21143         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21144         (Include): Specify <math.h> instead of isnanf.h.
21145         * modules/isnand (Files): Remove lib/isnand.h.
21146         (Depends-on): Add math.
21147         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21148         (Include): Specify <math.h> instead of isnand.h.
21149         * modules/isnanl (Files): Remove lib/isnanl.h.
21150         (Depends-on): Add math.
21151         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21152         (Include): Specify <math.h> instead of isnanl.h.
21153         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
21154         HAVE_ISNAN[FDL].
21155         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
21156         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
21157         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
21158         * NEWS: Mention the change.
21159
21160 2008-10-18  Bruno Haible  <bruno@clisp.org>
21161
21162         Add getusershell(), setusershell(), endusershell() declarations to
21163         <unistd.h>.
21164         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
21165         declarations.
21166         * lib/getusershell.c: Include unistd.h.
21167         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
21168         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21169         HAVE_GETUSERSHELL.
21170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
21171         and HAVE_GETUSERSHELL.
21172         * modules/getusershell (Depends-on): Add unistd, extensions.
21173         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21174         (Include): Specify <unistd.h>.
21175         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
21176         HAVE_GETUSERSHELL.
21177
21178 2008-10-18  Bruno Haible  <bruno@clisp.org>
21179
21180         Add a getloadavg() declaration to <stdlib.h>.
21181         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
21182         getloadavg declaration.
21183         (getloadavg): New declaration.
21184         * lib/getloadavg.c: Include <stdlib.h> first.
21185         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
21186         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
21187         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
21188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
21189         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21190         * modules/getloadavg (Depends-on): Add stdlib, extensions.
21191         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21192         (Include): Specify <stdlib.h>.
21193         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
21194         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21195
21196 2008-10-18  Bruno Haible  <bruno@clisp.org>
21197
21198         * lib/dirchownmod.c: Don't include lchmod.h.
21199
21200         Move the lchmod() declaration to <sys/stat.h>.
21201         * lib/lchmod.h: Remove file.
21202         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
21203         (lchmod): New declaration, moved here from lib/lchown.h.
21204         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
21205         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
21206         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
21207         and HAVE_LCHMOD.
21208         * modules/lchmod (Files): Remove lib/lchmod.h.
21209         (Depends-on): Add sys_stat, extensions.
21210         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21211         (Include): Specify <sys/stat.h> instead of lchmod.h.
21212         * modules/sys_stat (Depends-on): Add link-warning.
21213         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
21214         definition of GL_LINK_WARNING.
21215         * NEWS: Mention the change.
21216
21217 2008-10-18  Bruno Haible  <bruno@clisp.org>
21218
21219         * lib/fchdir.c: Don't include dirfd.h.
21220         * lib/fts.c: Likewise.
21221         * lib/getcwd.c: Likewise.
21222         * lib/glob.c: Likewise.
21223
21224         Move the dirfd() declaration to <dirent.h>.
21225         * lib/dirfd.h: Remove file.
21226         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
21227         (dirfd): New declaration.
21228         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
21229         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
21230         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
21231         HAVE_DECL_DIRFD.
21232         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
21233         HAVE_DECL_DIRFD.
21234         * modules/dirfd (Files): Remove lib/dirfd.h.
21235         (Depends-on): Add dirent, extensions.
21236         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
21237         (Include): Specify <dirent.h> instead of dirfd.h.
21238         * modules/dirent (Depends-on): Add link-warning.
21239         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
21240         definition of GL_LINK_WARNING.
21241         * NEWS: Mention the change.
21242
21243 2008-10-18  Bruno Haible  <bruno@clisp.org>
21244
21245         Move the euidaccess() declaration to <unistd.h>.
21246         * lib/euidaccess.h: Remove file.
21247         * lib/unistd.in.h (euidaccess): New declaration.
21248         * lib/euidaccess.c: Don't include euidaccess.h.
21249         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
21250         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
21251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
21252         and HAVE_EUIDACCESS.
21253         * modules/euidaccess (Files): Remove lib/euidaccess.h.
21254         (Depends-on): Add unistd.
21255         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21256         (Include): Specify <unistd.h> instead of euidaccess.h.
21257         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
21258         HAVE_EUIDACCESS.
21259         * NEWS: Mention the change.
21260
21261 2008-10-18  Bruno Haible  <bruno@clisp.org>
21262
21263         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
21264
21265         Move the getdomainname() declaration to <unistd.h>.
21266         * lib/getdomainname.h: Remove file.
21267         * lib/unistd.in.h (getdomainname): New declaration.
21268         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
21269         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21270         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21271         HAVE_GETDOMAINNAME.
21272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21273         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
21274         * modules/getdomainname (Files): Remove lib/getdomainname.h.
21275         (Depends-on): Add unistd, extensions.
21276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21277         (Includes): Specify <unistd.h> instead of getdomainname.h.
21278         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
21279         HAVE_GETDOMAINNAME.
21280         * NEWS: Mention the change.
21281
21282 2008-10-18  Bruno Haible  <bruno@clisp.org>
21283
21284         * modules/dirent: New file.
21285         * m4/dirent_h.m4: New file.
21286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
21287         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
21288         * modules/fchdir (Files): Remove lib/dirent.in.h.
21289         (Depends-on): Add dirent.
21290         (Makefile.am): Move rules to modules/dirent.
21291         * doc/posix-headers/dirent.texi: Mention the new module.
21292
21293 2008-10-18  Bruno Haible  <bruno@clisp.org>
21294
21295         Avoid -Wunused-parameter warnings in public gnulib header files.
21296         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
21297         macro.
21298         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
21299
21300 2008-10-18  Bruno Haible  <bruno@clisp.org>
21301
21302         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
21303         * doc/glibc-functions/error.texi: Mention the module 'error'.
21304         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
21305         * doc/glibc-functions/getdomainname.texi: Mention the module
21306         'getdomainname'.
21307         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
21308         * doc/glibc-functions/getpagesize.texi: Mention the module
21309         'getpagesize'.
21310         * doc/glibc-functions/getusershell.texi: Mention the module
21311         'getusershell'.
21312         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21313         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21314         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21315         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21316         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21317         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21318         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21319         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21320         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21321         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21322         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21323         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21324         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21325         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21326
21327 2008-10-17  Bruno Haible  <bruno@clisp.org>
21328
21329         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21330         HP-UX and IRIX, use -0.0L.
21331         * tests/test-ceill.c (minus_zero): Likewise.
21332         * tests/test-floorl.c (minus_zero): Likewise.
21333         * tests/test-frexpl.c (minus_zero): Likewise.
21334         * tests/test-isnan.c (minus_zerol): Likewise.
21335         * tests/test-isnanl.h (minus_zero): Likewise.
21336         * tests/test-ldexpl.c (minus_zero): Likewise.
21337         * tests/test-roundl.c (minus_zero): Likewise.
21338         * tests/test-signbit.c (minus_zerol): Likewise.
21339         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21340         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21341         * tests/test-truncl.c (minus_zero): Likewise.
21342         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21343         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21344         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21345         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21346
21347 2008-10-17  Bruno Haible  <bruno@clisp.org>
21348
21349         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21350         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21351         that it gets activated only for gcc >= 3.0.
21352         * lib/dirent.in.h: Likewise.
21353         * lib/errno.in.h: Likewise.
21354         * lib/fcntl.in.h: Likewise.
21355         * lib/float.in.h: Likewise.
21356         * lib/iconv.in.h: Likewise.
21357         * lib/inttypes.in.h: Likewise.
21358         * lib/locale.in.h: Likewise.
21359         * lib/math.in.h: Likewise.
21360         * lib/netdb.in.h: Likewise.
21361         * lib/netinet_in.in.h: Likewise.
21362         * lib/search.in.h: Likewise.
21363         * lib/signal.in.h: Likewise.
21364         * lib/spawn.in.h: Likewise.
21365         * lib/stdarg.in.h: Likewise.
21366         * lib/stdint.in.h: Likewise.
21367         * lib/stdio.in.h: Likewise.
21368         * lib/stdlib.in.h: Likewise.
21369         * lib/string.in.h: Likewise.
21370         * lib/strings.in.h: Likewise.
21371         * lib/sys_file.in.h: Likewise.
21372         * lib/sys_ioctl.in.h: Likewise.
21373         * lib/sys_select.in.h: Likewise.
21374         * lib/sys_socket.in.h: Likewise.
21375         * lib/sys_stat.in.h: Likewise.
21376         * lib/sys_time.in.h: Likewise.
21377         * lib/sysexits.in.h: Likewise.
21378         * lib/time.in.h: Likewise.
21379         * lib/unistd.in.h: Likewise.
21380         * lib/wchar.in.h: Likewise.
21381         * lib/wctype.in.h: Likewise.
21382         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21383
21384 2008-10-17  Jim Meyering  <meyering@redhat.com>
21385
21386         ignore-value: don't depend on inline module
21387         * modules/ignore-value (Depends-on): Remove 'inline'.
21388         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21389         Suggestion from Bruno Haible.
21390
21391 2008-10-17  Bruno Haible  <bruno@clisp.org>
21392
21393         New implementation of condition variables for Win32.
21394         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21395         (gl_linked_waitqueue_t): New type.
21396         (gl_cond_t): Use it.
21397         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21398         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21399         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21400         (glthread_cond_init_func, glthread_cond_wait_func,
21401         glthread_cond_timedwait_func, glthread_cond_signal_func,
21402         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21403         Reimplemented on the basis of gl_linked_waitqueue_t.
21404         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21405         gl_waitqueue_t.
21406         (gl_rwlock_t): Update.
21407         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21408
21409 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21410
21411         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21412         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21413
21414 2008-10-17  Jim Meyering  <meyering@redhat.com>
21415
21416         ignore-value: new module
21417         * modules/ignore-value: New file.
21418         * lib/ignore-value.h: New file.
21419         * MODULES.html.sh (Compiler warning management): New section,
21420         just for this module.  More to come.
21421
21422 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21423
21424         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21425         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21426         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21427
21428 2008-10-16  Jim Meyering  <meyering@redhat.com>
21429
21430         openat-die.c: avoid 'no previous prototype' warning
21431         * lib/openat-die.c: Include "openat.h".
21432         Reported by Reuben Thomas <rrt@sc3d.org>.
21433
21434 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21435
21436         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21437         * lib/netdb.in.h: Fix typo.
21438         Reported by Bruno Haible  <bruno@clisp.org>
21439
21440         * lib/netdb.in.h: Include sys/socket.h for platforms without
21441         netdb.h, to get structures like hostent on MinGW.
21442         * modules/netdb (Depends-on): Add sys_socket.
21443
21444 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21445
21446         * modules/netdb, modules/netdb-tests: New file.
21447         * m4/netdb_h.m4: New file.
21448         * lib/netdb.in.h: Add, currently just an empty file pending
21449         definitions.
21450         * tests/test-netdb.c: New file.
21451         * doc/posix-headers/netdb.texi: Mention that we replace it if
21452         needed.
21453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21454         netdb.
21455
21456 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21457
21458         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21459         with code.
21460
21461 2008-10-13  Bruno Haible  <bruno@clisp.org>
21462
21463         * lib/glthread/cond.c (glthread_cond_wait_func,
21464         glthread_cond_timedwait_func): Add a comment.
21465
21466 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21467
21468         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21469         * tests/test-select.c: Likewise,
21470
21471 2008-10-13  Bruno Haible  <bruno@clisp.org>
21472
21473         * lib/glthread/cond.c (glthread_cond_wait_func,
21474         glthread_cond_timedwait_func): Fix variable name.
21475         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21476
21477 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21478
21479         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21480         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21481         struct sockaddr.sa_len.
21482         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21483
21484 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21485
21486         * build-aux/pmccabe2html: Add css and css_url parameters.
21487
21488 2008-10-12  Bruno Haible  <bruno@clisp.org>
21489
21490         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21491         calling aclx_get.
21492         Reported by Rainer Tammer <tammer@tammer.net>.
21493
21494 2008-10-12  Bruno Haible  <bruno@clisp.org>
21495
21496         Use msvcrt aware primitives for creation/termination of Win32 threads.
21497         * lib/glthread/thread.c: Include <process.h>.
21498         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21499         (wrapper_func): Update signature.
21500         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21501
21502 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21503             Bruno Haible  <bruno@clisp.org>
21504
21505         Provide a Win32 implementation of the 'cond' module.
21506         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21507         * lib/glthread/cond.c (glthread_cond_init_func,
21508         glthread_cond_wait_func, glthread_cond_timedwait_func,
21509         glthread_cond_signal_func, glthread_cond_broadcast_func,
21510         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21511         * modules/cond (Dependencies): Add gettimeofday.
21512
21513 2008-10-11  Bruno Haible  <bruno@clisp.org>
21514
21515         Make sleep work on older versions of mingw.
21516         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21517         only whether it exists.
21518         * doc/posix-functions/sleep.texi: Mention the problem with older
21519         versions of mingw.
21520
21521 2008-10-11  Bruno Haible  <bruno@clisp.org>
21522
21523         New module 'shutdown'.
21524         * modules/shutdown: New file.
21525         * lib/sys_socket.in.h (shutdown): New declaration.
21526         * lib/winsock.c (shutdown): New function.
21527         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21528         GNULIB_SHUTDOWN.
21529         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21530         * doc/posix-functions/shutdown.texi: Document the new module.
21531
21532 2008-10-11  Jim Meyering  <meyering@redhat.com>
21533
21534         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21535
21536 2008-10-11  Bruno Haible  <bruno@clisp.org>
21537
21538         New module 'fclose'.
21539         * modules/fclose: New file.
21540         * lib/stdio.in.h (fclose): New declaration.
21541         * lib/fclose.c: New file.
21542         * m4/fclose.m4: New file.
21543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21544         REPLACE_FCLOSE.
21545         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21546         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21547         REPLACE_FCLOSE.
21548         * modules/close (Depends-on): fclose.
21549         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21550
21551 2008-10-11  Bruno Haible  <bruno@clisp.org>
21552
21553         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21554         set errno and don't call _close.
21555
21556 2008-10-10  Bruno Haible  <bruno@clisp.org>
21557
21558         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21559         ACL, not afterwards. Fixes test failure on Cygwin.
21560
21561 2008-10-09  Ben Pfaff  <blp@gnu.org>
21562
21563         * build-aux/announce-gen: Fix gnulib version related part of usage
21564         message.  Die with a useful error message if no tarballs are
21565         found.
21566
21567 2008-10-10  Jim Meyering  <meyering@redhat.com>
21568
21569         bootstrap: use git's --depth=N option only if it's supported
21570         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21571         recognize the --depth option.  Reported by Pádraig Brady.
21572
21573 2008-10-09  Bruno Haible  <bruno@clisp.org>
21574
21575         New module 'ioctl'.
21576         * modules/ioctl: New file.
21577         * lib/sys_socket.in.h (ioctl): Remove declaration.
21578         * lib/winsock.c: Include <sys/ioctl.h>.
21579         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21580         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21581         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21582         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21583         * doc/posix-functions/ioctl.texi: Mention the new module.
21584
21585 2008-10-09  Bruno Haible  <bruno@clisp.org>
21586
21587         New module 'sys_ioctl'.
21588         * lib/sys_ioctl.in.h: New file.
21589         * m4/sys_ioctl_h.m4: New file.
21590         * modules/sys_ioctl: New file.
21591         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21592
21593 2008-10-09  Bruno Haible  <bruno@clisp.org>
21594
21595         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21596         * lib/winsock.c: Include <stdarg.h>.
21597         (rpl_ioctl): Change to second argument 'int' and then varargs.
21598
21599 2008-10-09  Bruno Haible  <bruno@clisp.org>
21600
21601         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21602         when the sys_socket module is present and the system has <winsock2.h>.
21603
21604 2008-10-09  Bruno Haible  <bruno@clisp.org>
21605
21606         * doc/posix-functions/close.texi: Mention module 'close' instead of
21607         module 'sys_socket'.
21608
21609 2008-10-09  Bruno Haible  <bruno@clisp.org>
21610
21611         * doc/glibc-headers/sys_ioctl.texi: New file.
21612         * doc/gnulib.texi: Include it.
21613
21614 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21615             Bruno Haible  <bruno@clisp.org>
21616
21617         Combine the two replacements of 'close'.
21618         * lib/sys_socket.in.h (close): Define to a reminder to include
21619         <unistd.h>.
21620         (_gl_close_fd_maybe_socket): New declaration.
21621         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21622         * lib/winsock.c (close): Remove undefinition.
21623         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21624         needed for the gnulib module 'close'.
21625         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21626         define to an error symbol or to a warning, if suitable.
21627         * lib/close.c: Include <sys/socket.h>.
21628         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21629         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21630         UNISTD_H_HAVE_WINSOCK2_H.
21631         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21633         UNISTD_H_HAVE_WINSOCK2_H.
21634         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21635         (configure.ac): Set a module indicator.
21636         (Makefile.am): Substitute GNULIB_CLOSE.
21637         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21638         * modules/poll-tests (Depends-on): Add close.
21639         * modules/select-tests (Depends-on): Likewise.
21640
21641 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21642             Bruno Haible  <bruno@clisp.org>
21643
21644         New module 'close'.
21645         * modules/close: New file.
21646         * lib/unistd.in.h (close): Move declaration out of the
21647         FCHDIR_REPLACEMENT scope.
21648         (_gl_unregister_fd): New declaration.
21649         * lib/close.c: New file.
21650         * lib/fchdir.c (rpl_close): Remove function.
21651         * m4/close.m4: New file.
21652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21653         close.
21654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21655         REPLACE_CLOSE.
21656         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21657         REPLACE_CLOSE.
21658         * modules/fchdir (Depends-on): Add close.
21659
21660 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21661             Bruno Haible  <bruno@clisp.org>
21662
21663         * lib/fcntl.in.h (open): Simplify conditionals.
21664         (_gl_register_fd): New declaration.
21665         * lib/fchdir.c (rpl_open): Remove function.
21666         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21667         also.
21668         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21669         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21670         open.
21671
21672 2008-10-09  Jim Meyering  <meyering@redhat.com>
21673
21674         GNUmakefile: use the more name-space-friendly "_version"
21675         * top/GNUmakefile (_dummy): Update.
21676         (_version): Rename from "version".
21677
21678 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21679             Bruno Haible  <bruno@clisp.org>
21680
21681         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21682         rpl_close.
21683         (_gl_register_fd): New function, extracted from rpl_open.
21684         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21685         (rpl_open, rpl_opendir): Use _gl_register_fd.
21686
21687 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21688
21689         Fix organization of 'open' replacement.
21690         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21691         (gl_FUNC_OPEN): Use it.
21692         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21693
21694 2008-10-08  Bruno Haible  <bruno@clisp.org>
21695
21696         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21697
21698 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21699
21700         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21701         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21702         listen).
21703
21704 2008-10-08  Eric Blake  <ebb9@byu.net>
21705
21706         GNUmakefile: add 'make version' target
21707         * top/GNUmakefile (_curr-ver): Split version update rules...
21708         (version): ...into a target.
21709
21710 2008-10-07  Bruno Haible  <bruno@clisp.org>
21711
21712         Use a more portable replacement expression for -0.0L.
21713         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21714         instead of -0.0L. Fix m4 quotation.
21715
21716         * tests/test-signbit.c: Include <float.h>.
21717         (minus_zero): New variable.
21718         (test_signbitl): Use minus_zero instead of -zero.
21719         * modules/signbit-tests (Depends-on): Add float.
21720
21721         * tests/test-ceill.c: Include <float.h>.
21722         (zero): Remove variable.
21723         (minus_zero): New variable.
21724         (main): Use minus_zero instead of -zero.
21725         * modules/ceill-tests (Depends-on): Add float.
21726
21727         * tests/test-floorl.c: Include <float.h>.
21728         (zero): Remove variable.
21729         (minus_zero): New variable.
21730         (main): Use minus_zero instead of -zero.
21731         * modules/floorl-tests (Depends-on): Add float.
21732
21733         * tests/test-roundl.c: Include <float.h>.
21734         (zero): Remove variable.
21735         (minus_zero): New variable.
21736         (main): Use minus_zero instead of -zero.
21737         * modules/roundl-tests (Depends-on): Add float.
21738
21739         * tests/test-truncl.c: Include <float.h>.
21740         (zero): Remove variable.
21741         (minus_zero): New variable.
21742         (main): Use minus_zero instead of -zero.
21743         * modules/truncl-tests (Depends-on): Add float.
21744
21745         * tests/test-frexpl.c (zero): Remove variable.
21746         (minus_zero): New variable.
21747         (main): Use minus_zero instead of -zero.
21748         * modules/frexpl-tests (Depends-on): Add float.
21749
21750         * tests/test-isnan.c (zerol): Remove variable.
21751         (minus_zerol): New variable.
21752         (test_long_double): Use minus_zerol instead of -zerol.
21753         * modules/isnan-tests (Depends-on): Add float.
21754
21755         * tests/test-isnanl.h (zero): Remove variable.
21756         (minus_zero): New variable.
21757         (main): Use minus_zero instead of -zero.
21758         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21759         * modules/isnanl-tests (Depends-on): Add float.
21760
21761         * tests/test-ldexpl.c (zero): Remove variable.
21762         (minus_zero): New variable.
21763         (main): Use minus_zero instead of -zero.
21764         * modules/ldexpl-tests (Depends-on): Add float.
21765
21766         * tests/test-snprintf-posix.h (zerol): Remove variable.
21767         (minus_zerol): New variable.
21768         (test_function): Use minus_zerol instead of -zerol.
21769         * modules/snprintf-posix-tests (Depends-on): Add float.
21770         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21771
21772         * tests/test-sprintf-posix.h (zerol): Remove variable.
21773         (minus_zerol): New variable.
21774         (test_function): Use minus_zerol instead of -zerol.
21775         * modules/sprintf-posix-tests (Depends-on): Add float.
21776         * modules/vsprintf-posix-tests (Depends-on): Add float.
21777
21778         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21779         (minus_zerol): New variable.
21780         (test_function): Use minus_zerol instead of -zerol.
21781         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21782
21783         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21784         (minus_zerol): New variable.
21785         (test_function): Use minus_zerol instead of -zerol.
21786         * modules/vasprintf-posix-tests (Depends-on): Add float.
21787
21788 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21789
21790         * MODULES.html.sh (Support for building documentation): Mention
21791         pmccabe2html.  Sort entries.
21792
21793         Add pmccabe2html module, from gnupdf.
21794         * build-aux/pmccabe.css: New file.
21795         * build-aux/pmccabe2html: New file.
21796         * m4/pmccabe2html.m4: New file.
21797         * modules/pmccabe2html: New file.
21798
21799 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21800
21801         flock: new module
21802         * MODULES.html.sh: Add to list of modules.
21803         * lib/flock.c: flock implementation for Windows and Unix systems
21804         which have fcntl.
21805         * doc/glibc-functions/flock.texi: Update documentation.
21806         * lib/sys_file.in.h: <sys/file.h> header file.
21807         * m4/flock.m4: M4 macros.
21808         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21809         * modules/flock: flock module.
21810         * modules/flock-tests: flock tests module.
21811         * modules/sys_file: sys/file.h module.
21812         * tests/test-flock.c: test suite for flock.
21813
21814 2008-10-06  Jim Meyering  <meyering@redhat.com>
21815
21816         bootstrap: check for LT_INIT more portably still ;-)
21817         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21818         Spotted by Bruno Haible.
21819
21820 2008-10-06  Eric Blake  <ebb9@byu.net>
21821
21822         test-signbit: avoid tripping Irix cc bug on -0.0L
21823         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21824         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21825         entire testsuite consistent and avoids an Irix 6.2 bug.
21826
21827 2008-10-05  Bruno Haible  <bruno@clisp.org>
21828             Jim Meyering  <jim@meyering.net>
21829
21830         Add an option for ignoring EPIPE during close_stdout.
21831         * lib/closeout.h: Include <stdbool.h>.
21832         (close_stdout_set_ignore_EPIPE): New declaration.
21833         * lib/closeout.c: Include <stdbool.h>.
21834         (ignore_EPIPE): New variable.
21835         (close_stdout_set_ignore_EPIPE): New function.
21836         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21837         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21838         failure.
21839         * modules/closeout (Depends-on): Add stdbool.
21840
21841 2008-10-05  Bruno Haible  <bruno@clisp.org>
21842
21843         * modules/accept: New file.
21844         * modules/bind: New file.
21845         * modules/connect: New file.
21846         * modules/getpeername: New file.
21847         * modules/getsockname: New file.
21848         * modules/getsockopt: New file.
21849         * modules/listen: New file.
21850         * modules/recv: New file.
21851         * modules/recvfrom: New file.
21852         * modules/send: New file.
21853         * modules/sendto: New file.
21854         * modules/setsockopt: New file.
21855         * modules/socket: New file.
21856         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21857         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21858         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21859         the particular module is requested. Add a link warning when the
21860         particular module is not requested.
21861         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21862         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21863         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21864         the particular module is requested.
21865         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21866         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21867         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21868         * modules/sys_socket (Depends-on): Add link-warning.
21869         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21870         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21871         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21872         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21873         GL_LINK_WARNING.
21874         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21875         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21876         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21877         * doc/posix-functions/getpeername.texi: Mention the new module
21878         'getpeername'.
21879         * doc/posix-functions/getsockname.texi: Mention the new module
21880         'getsockname'.
21881         * doc/posix-functions/getsockopt.texi: Mention the new module
21882         'getsockopt'.
21883         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21884         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21885         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21886         * doc/posix-functions/send.texi: Mention the new module 'send'.
21887         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21888         * doc/posix-functions/setsockopt.texi: Mention the new module
21889         'setsockopt'.
21890         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21891         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21892         listen, connect, accept.
21893         * modules/select-tests (Depends-on): Likewise.
21894
21895 2008-10-05  Bruno Haible  <bruno@clisp.org>
21896
21897         * lib/winsock.c (strerror): Remove unused #undef.
21898         (rpl_close): Remove unused local variable.
21899
21900         * modules/sys_socket (Depends-on); Add errno.
21901
21902 2008-10-05  Bruno Haible  <bruno@clisp.org>
21903
21904         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21905         (select): Add a link warning when the 'select' module is not used.
21906         * modules/sys_select (Depends-on): Add link-warning.
21907         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21908         Suggested by Paolo Bonzini.
21909
21910 2008-10-05  Jim Meyering  <meyering@redhat.com>
21911
21912         bootstrap: check for LT_INIT more portably
21913         * build-aux/bootstrap: Avoid using grep -E, since it's not
21914         portable enough.  Suggestion from Bruno Haible.
21915
21916 2008-10-05  Bruno Haible  <bruno@clisp.org>
21917
21918         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21919         as being fixed by gnulib.
21920
21921 2008-10-05  Bruno Haible  <bruno@clisp.org>
21922
21923         * modules/select-tests: New file, mostly copied from
21924         modules/sys_select-tests.
21925         * tests/test-select.c: New file, mostly copied from
21926         tests/test-sys_select.c.
21927         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21928         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21929         (Makefile.am): Remove test_sys_select_LDADD.
21930
21931         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21932         to an undefined symbol, for an error message.
21933         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21934         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21935         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21936         winsock-select.c here.
21937         * modules/sys_select (Files): Remove lib/winsock-select.c.
21938         (Depends-on): Remove alloca.
21939         (Makefile.am): Substitute GNULIB_SELECT.
21940         * modules/select: New file.
21941         * doc/posix-functions/select.texi: Update.
21942
21943 2008-10-05  Bruno Haible  <bruno@clisp.org>
21944
21945         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21946         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21947         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21948         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21949         getdtablesize.
21950         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21951         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21952
21953 2008-10-05  Bruno Haible  <bruno@clisp.org>
21954
21955         * modules/getdtablesize-tests: New file.
21956         * tests/test-getdtablesize.c: New file.
21957
21958         New module 'getdtablesize'.
21959         * lib/unistd.in.h (getdtablesize): New declaration.
21960         * lib/getdtablesize.c: New file.
21961         * m4/getdtablesize.m4: New file.
21962         * modules/getdtablesize: New file.
21963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21964         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21965         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21966         HAVE_GETDTABLESIZE.
21967         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21968
21969 2008-10-05  Bruno Haible  <bruno@clisp.org>
21970
21971         * modules/sched (Makefile.am): Fix typo.
21972         Reported by Simon Josefsson.
21973
21974 2008-10-05  Jim Meyering  <meyering@redhat.com>
21975
21976         bootstrap: check for LT_INIT, too
21977         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21978         are deprecated.  Suggestion from Ralf Wildenhues.
21979
21980 2008-10-05  Bruno Haible  <bruno@clisp.org>
21981
21982         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21983         overriding them by ours.
21984         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21985
21986 2008-10-05  Jim Meyering  <meyering@redhat.com>
21987
21988         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21989         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21990         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21991
21992 2008-10-04  Bruno Haible  <bruno@clisp.org>
21993
21994         * modules/dup2 (License): Change to LGPLv2+.
21995         * modules/sleep (License): Likewise.
21996         * modules/perror (License): Likewise.
21997         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21998         Blake.
21999         * modules/signal (License): Likewise.
22000         * modules/sigprocmask (License): Likewise.
22001         * modules/raise (License): Change to LGPLv2+, with approval by Jim
22002         Meyering.
22003
22004 2008-10-04  Bruno Haible  <bruno@clisp.org>
22005
22006         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
22007         Reported by Rainer Tammer <tammer@tammer.net>.
22008
22009 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
22010             Bruno Haible  <bruno@clisp.org>
22011
22012         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
22013         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
22014         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
22015
22016 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
22017
22018         filevercmp: new module
22019         * lib/filevercmp.h: New function filevercmp comparing version strings.
22020         * lib/filevercmp.c: Implementation of filevercmp function.
22021         * modules/filevercmp: Module metadata.
22022         * tests/test-filevercmp.c: Unit test for new module.
22023         * modules/filevercmp-tests: Unit test metadata.
22024         * MODULES.html.sh: Add filevercmp module.
22025
22026 2008-10-03  Bruno Haible  <bruno@clisp.org>
22027
22028         * lib/c-ctype.h: Add comment.
22029         Reported by Jim Meyering.
22030
22031 2008-10-02  Bruno Haible  <bruno@clisp.org>
22032
22033         * modules/posix_spawn-internal (Depends-on): Add 'open'.
22034
22035 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22036
22037         * build-aux/bootstrap: Allow renaming bootstrap, and change the
22038         name of bootstrap.conf accordingly.
22039
22040 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22041
22042         * build-aux/bootstrap: Install git-merge-changelog configuration
22043         items into .gitconfig if needed.
22044
22045 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
22046
22047         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
22048         git repository, and initialize/update it accordingly.
22049
22050 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
22051
22052         * modules/fsync-tests: New file.
22053         * tests/test-fsync.c: New file.
22054
22055         New module 'fsync'.
22056         * lib/fsync.c: New file.
22057         * m4/fsync.m4: New file.
22058         * modules/fsync: New file.
22059         * lib/unistd.in.h (fsync): New declaration.
22060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
22061         GNULIB_FSYNC and HAVE_FSYNC.
22062         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
22063         * MODULES.html.sh (posix_functions): Add fsync.
22064         * doc/posix-functions/fsync.texi: Mention the new module.
22065
22066 2008-10-02  Jim Meyering  <meyering@redhat.com>
22067
22068         fts.c: sync with similar code from coreutils' remove.c
22069         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
22070         Guard also with "#if defined __linux__", since for now at least,
22071         this code is Linux-kernel-specific.
22072
22073 2008-10-02  Jim Meyering  <meyering@redhat.com>
22074
22075         fts: bug fixes
22076         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
22077         Include <sys/vfs.h>, not <sys/statfs.h>.
22078
22079         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
22080         Include <sys/vfs.h>, not <sys/statfs.h>.
22081
22082 2008-10-01  Bruno Haible  <bruno@clisp.org>
22083
22084         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
22085         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
22086         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
22087         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
22088         * doc/posix-functions/posix_spawnp.texi: Likewise.
22089         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
22090         whether posix_spawn actually works.
22091         * m4/pipe.m4 (gl_PIPE): Likewise.
22092         * modules/execute (Files): Add m4/posix_spawn.m4.
22093         * modules/pipe (Files): Add m4/posix_spawn.m4.
22094         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
22095
22096 2008-10-01  Jim Meyering  <meyering@redhat.com>
22097
22098         remove trailing spaces
22099         * NEWS: Likewise.
22100         * lib/poll.c (poll): Likewise.
22101         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
22102         * lib/winsock.c (rpl_close): Likewise.
22103         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
22104         * modules/yield: Likewise.
22105         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
22106         * tests/test-sys_select.c (connect_to_socket): Likewise.
22107
22108         fts.c: adjust a new interface to be more generally useful
22109         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
22110         (fts_build): Adjust caller.
22111
22112 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22113
22114         * modules/cond-tests: New file.
22115         * tests/test-cond.c: New file.
22116
22117 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22118             Bruno Haible  <bruno@clisp.org>
22119
22120         * modules/cond (Dependencies): Add errno, time.
22121         * lib/glthread/cond.h: Include <time.h>.
22122         (gl_cond_define, gl_cond_define_initialized): Use the same definition
22123         across platforms.
22124
22125 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22126             Bruno Haible  <bruno@clisp.org>
22127
22128         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
22129
22130 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22131             Bruno Haible  <bruno@clisp.org>
22132
22133         * modules/tls-tests (Depends-on): Add thread, yield.
22134         (configure.ac): Remove all checks.
22135         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
22136         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22137         gl_thread_self): Remove definitions. Include glthread/thread.h and
22138         glthread/yield.h instead.
22139         (test_tls): Pass an additional NULL argument to gl_thread_join.
22140
22141 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22142             Bruno Haible  <bruno@clisp.org>
22143
22144         * modules/lock-tests (Depends-on): Add thread, yield.
22145         (configure.ac): Remove all checks.
22146         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
22147         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22148         gl_thread_self): Remove definitions. Include glthread/thread.h and
22149         glthread/yield.h instead.
22150         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
22151         additional NULL argument to gl_thread_join.
22152
22153 2008-09-30  Bruno Haible  <bruno@clisp.org>
22154
22155         Fix the Win32 implementation of the 'thread' module.
22156         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
22157         pointer type.
22158         (gl_thread_self): Invoke gl_thread_self_func.
22159         (gl_thread_self_func): New declaration.
22160         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
22161         (do_init_self_key, init_self_key): New functions.
22162         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
22163         Remove some fields.
22164         (running_threads, running_lock): Remove variables.
22165         (get_current_thread_handle): New function.
22166         (gl_thread_self_func, wrapper_func, glthread_create_func,
22167         glthread_join_func, gl_thread_exit_func): Largely rewritten and
22168         simplified.
22169
22170 2008-09-30  Bruno Haible  <bruno@clisp.org>
22171
22172         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
22173         files.
22174
22175 2008-09-30  Jim Meyering  <meyering@redhat.com>
22176
22177         fts.m4: correct the test for statfs.f_type
22178         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
22179         when checking for statfs.f_type.
22180
22181 2008-09-15  Simon Josefsson  <simon@josefsson.org>
22182
22183         tests: avoid some compiler warnings
22184         * tests/test-memchr.c (main): Pass NULL indirectly.
22185         * tests/test-getdate.c (main): Remove unused variable 'ret'.
22186
22187 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
22188
22189         getdate.y: disallow countable dayshifts like "4 yesterday ago"
22190         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
22191         exactly specified dayshifts.
22192         (dayshift): New rule.
22193         (rel): Add dayshift.
22194         (relative_time_table) [tomorrow, yesterday, today, now]:
22195         Use tDAY_SHIFT in place of tDAY_UNIT.
22196         * tests/test-getdate.c: Add tests for now-disallowed countable
22197         dayshifts, e.g., "4 yesterday ago".
22198
22199 2008-09-29  Bruno Haible  <bruno@clisp.org>
22200
22201         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
22202         * tests/test-posix_spawn1.in.sh: Renamed from
22203         tests/test-posix_spawn.in.sh.
22204         * tests/test-posix_spawn2.c: New file.
22205         * tests/test-posix_spawn2.in.sh: New file.
22206         * modules/posix_spawnp-tests (Files): Update.
22207         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
22208
22209 2008-09-29  Bruno Haible  <bruno@clisp.org>
22210
22211         Propagate effects of putenv/setenv/unsetenv to child processes.
22212         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
22213         * lib/pipe.c (create_pipe): Likewise.
22214
22215 2008-09-29  Bruno Haible  <bruno@clisp.org>
22216
22217         Enable use of shell scripts as executables in mingw.
22218         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
22219         run the program as a shell script.
22220         * lib/pipe.c (create_pipe): Likewise.
22221         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
22222         resulting array.
22223
22224 2008-09-29  Eric Blake  <ebb9@byu.net>
22225
22226         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
22227
22228 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
22229
22230         * doc/posix-functions/accept.texi: Update mingw problems.
22231         * doc/posix-functions/bind.texi: Update mingw problems.
22232         * doc/posix-functions/close.texi: Update mingw problems.
22233         * doc/posix-functions/connect.texi: Update mingw problems.
22234         * doc/posix-functions/getpeername.texi: Update mingw problems.
22235         * doc/posix-functions/getsockname.texi: Update mingw problems.
22236         * doc/posix-functions/getsockopt.texi: Update mingw problems.
22237         * doc/posix-functions/ioctl.texi: Update mingw problems.
22238         * doc/posix-functions/listen.texi: Update mingw problems.
22239         * doc/posix-functions/recv.texi: Update mingw problems.
22240         * doc/posix-functions/recvfrom.texi: Update mingw problems.
22241         * doc/posix-functions/select.texi: Update mingw problems.
22242         * doc/posix-functions/send.texi: Update mingw problems.
22243         * doc/posix-functions/sendto.texi: Update mingw problems.
22244         * doc/posix-functions/setsockopt.texi: Update mingw problems.
22245         * doc/posix-functions/socket.texi: Update mingw problems.
22246
22247 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
22248             Bruno Haible  <bruno@clisp.org>
22249
22250         * lib/sys_select.in.h: Include sys/time.h.
22251         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
22252         * modules/sys_select: Depend on sys_time.
22253         * tests/test-sys_select.c: Test that sys/select.h defines struct
22254         timeval fully.
22255
22256 2008-09-29  Bruno Haible  <bruno@clisp.org>
22257
22258         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
22259         * lib/sys_select.in.h: Likewise.
22260
22261 2008-09-29  Bruno Haible  <bruno@clisp.org>
22262
22263         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
22264
22265 2008-09-29  Bruno Haible  <bruno@clisp.org>
22266
22267         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
22268         Set LIBSOCKET instead of augmenting LIBS.
22269         * modules/sockets (Link): New section.
22270         * modules/sockets-tests (test_sockets_LDADD): New variable.
22271         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
22272         * modules/poll-tests (test_poll_LDADD): New variable.
22273         * NEWS: Document the change.
22274
22275 2008-09-29  Bruno Haible  <bruno@clisp.org>
22276
22277         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
22278         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
22279         ARPA_INET_H directly.
22280         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22281
22282 2008-09-28  Bruno Haible  <bruno@clisp.org>
22283
22284         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
22285         from gl_HEADER_SYS_SOCKET.
22286         (gl_HEADER_SYS_SOCKET): Invoke it.
22287         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22288
22289 2008-09-28  Bruno Haible  <bruno@clisp.org>
22290
22291         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
22292         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
22293         Needed on OSF/1 4.0.
22294
22295 2008-09-28  Bruno Haible  <bruno@clisp.org>
22296
22297         Override open more carefully.
22298         * lib/open.c (orig_open): New function.
22299         (rpl_open): Use orig_open instead of open.
22300         * lib/fcntl.in.h: Add special invocation convention.
22301         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
22302         (gl_FUNC_OPEN): Invoke it.
22303
22304         Override freopen more carefully.
22305         * lib/freopen.c (orig_freopen): New function.
22306         (rpl_freopen): Use orig_freopen instead of freopen.
22307         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
22308         (gl_FUNC_FREOPEN): Invoke it.
22309
22310         Override fopen more carefully.
22311         * lib/fopen.c (orig_fopen): New function.
22312         (rpl_fopen): Use orig_fopen instead of fopen.
22313         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22314         (gl_FUNC_FOPEN): Invoke it.
22315         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22316
22317 2008-09-28  Bruno Haible  <bruno@clisp.org>
22318
22319         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22320         SIGPIPE.
22321
22322 2008-09-28  Bruno Haible  <bruno@clisp.org>
22323
22324         * tests/test-sigaction.c (handler, main): Disable the check whether
22325         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22326         glibc systems with LinuxThreads.
22327
22328 2008-09-28  Bruno Haible  <bruno@clisp.org>
22329
22330         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22331
22332         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22333         with AIX xlc.
22334         * lib/fcntl.in.h (open): Likewise.
22335         Reported by Rainer Tammer <tammer@tammer.net>.
22336
22337 2008-09-28  Bruno Haible  <bruno@clisp.org>
22338
22339         * modules/posix_spawnp-tests: New file.
22340         * tests/test-posix_spawn.c: New file.
22341         * tests/test-posix_spawn.in.sh: New file.
22342
22343         New module 'posix_spawnp'.
22344         * modules/posix_spawnp: New file.
22345         * lib/spawnp.c: New file, from GNU libc with modifications.
22346         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22347
22348         New module 'posix_spawn'.
22349         * modules/posix_spawn: New file.
22350         * lib/spawn.c: New file, from GNU libc with modifications.
22351         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22352
22353         New module 'posix_spawnattr_destroy'.
22354         * modules/posix_spawnattr_destroy: New file.
22355         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22356         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22357         module.
22358
22359         New module 'posix_spawnattr_setsigmask'.
22360         * modules/posix_spawnattr_setsigmask: New file.
22361         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22362         modifications.
22363         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22364         new module.
22365
22366         New module 'posix_spawnattr_getsigmask'.
22367         * modules/posix_spawnattr_getsigmask: New file.
22368         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22369         modifications.
22370         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22371         new module.
22372
22373         New module 'posix_spawnattr_setsigdefault'.
22374         * modules/posix_spawnattr_setsigdefault: New file.
22375         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22376         modifications.
22377         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22378         new module.
22379
22380         New module 'posix_spawnattr_getsigdefault'.
22381         * modules/posix_spawnattr_getsigdefault: New file.
22382         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22383         modifications.
22384         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22385         new module.
22386
22387         New module 'posix_spawnattr_setschedpolicy'.
22388         * modules/posix_spawnattr_setschedpolicy: New file.
22389         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22390         modifications.
22391         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22392         new module.
22393
22394         New module 'posix_spawnattr_getschedpolicy'.
22395         * modules/posix_spawnattr_getschedpolicy: New file.
22396         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22397         modifications.
22398         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22399         new module.
22400
22401         New module 'posix_spawnattr_setschedparam'.
22402         * modules/posix_spawnattr_setschedparam: New file.
22403         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22404         modifications.
22405         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22406         new module.
22407
22408         New module 'posix_spawnattr_getschedparam'.
22409         * modules/posix_spawnattr_getschedparam: New file.
22410         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22411         modifications.
22412         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22413         new module.
22414
22415         New module 'posix_spawnattr_setpgroup'.
22416         * modules/posix_spawnattr_setpgroup: New file.
22417         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22418         modifications.
22419         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22420         module.
22421
22422         New module 'posix_spawnattr_getpgroup'.
22423         * modules/posix_spawnattr_getpgroup: New file.
22424         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22425         modifications.
22426         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22427         module.
22428
22429         New module 'posix_spawnattr_setflags'.
22430         * modules/posix_spawnattr_setflags: New file.
22431         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22432         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22433         module.
22434
22435         New module 'posix_spawnattr_getflags'.
22436         * modules/posix_spawnattr_getflags: New file.
22437         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22438         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22439         module.
22440
22441         New module 'posix_spawnattr_init'.
22442         * modules/posix_spawnattr_init: New file.
22443         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22444         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22445         module.
22446
22447         New module 'posix_spawn_file_actions_destroy'.
22448         * modules/posix_spawn_file_actions_destroy: New file.
22449         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22450         modifications.
22451         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22452         the new module.
22453
22454         New module 'posix_spawn_file_actions_addopen'.
22455         * modules/posix_spawn_file_actions_addopen: New file.
22456         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22457         modifications.
22458         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22459         the new module.
22460
22461         New module 'posix_spawn_file_actions_adddup2'.
22462         * modules/posix_spawn_file_actions_adddup2: New file.
22463         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22464         modifications.
22465         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22466         the new module.
22467
22468         New module 'posix_spawn_file_actions_addclose'.
22469         * modules/posix_spawn_file_actions_addclose: New file.
22470         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22471         modifications.
22472         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22473         the new module.
22474
22475         New module 'posix_spawn_file_actions_init'.
22476         * modules/posix_spawn_file_actions_init: New file.
22477         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22478         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22479         new module.
22480
22481         New module 'posix_spawn-internal'.
22482         * modules/posix_spawn-internal: New file.
22483         * lib/spawn_int.h: New file, from GNU libc with modifications.
22484         * lib/spawni.c: New file, from GNU libc with modifications.
22485         * m4/posix_spawn.m4: New file.
22486
22487         New module 'spawn'.
22488         * modules/spawn: New file.
22489         * lib/spawn.in.h: New file, from GNU libc with modifications.
22490         * m4/spawn_h.m4: New file.
22491         * doc/posix-headers/spawn.texi: Mention the new module.
22492
22493 2008-09-28  Bruno Haible  <bruno@clisp.org>
22494
22495         * modules/sched-tests: New file.
22496         * tests/test-sched.c: New file.
22497
22498         New module 'sched'.
22499         * modules/sched: New file.
22500         * lib/sched.in.h: New file.
22501         * m4/sched_h.m4: New file.
22502         * doc/posix-headers/sched.texi: Mention the new module.
22503
22504 2008-09-27  Eric Blake  <ebb9@byu.net>
22505
22506         Fix previous patch, and tweak references to $0.
22507         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22508         (func_version, func_gnulib_dir): Don't call this program
22509         gnulib-tool.
22510         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22511         with using $0 in function.
22512         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22513         (func_fatal_error): Reuse the name the user invoked us with.
22514
22515 2008-09-27  Bruno Haible  <bruno@clisp.org>
22516
22517         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22518         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22519         (gl_ICONV_H): Not here.
22520         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22521         instead of assigning ICONV_H directly.
22522
22523         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22524         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22525         WCHAR_H directly.
22526
22527 2008-09-27  Bruno Haible  <bruno@clisp.org>
22528
22529         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22530         * modules/arpa_inet (Depends-on): Add link-warning.
22531         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22532         * modules/unistd (Makefile.am): Likewise.
22533
22534 2008-09-26  Bruno Haible  <bruno@clisp.org>
22535
22536         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22537         variables.
22538         (func_version): Essentially copied from gnulib-tool.
22539         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22540         func_readlink): Copied from gnulib-tool.
22541
22542 2008-09-26  Bruno Haible  <bruno@clisp.org>
22543
22544         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22545         invoking git-version-gen.
22546
22547 2008-09-26  Bruno Haible  <bruno@clisp.org>
22548
22549         * posix-modules: Update to directory names changed on 2008-01-19.
22550         Remove commas in output before splitting into words. No more need to
22551         avoid 'ftruncate' since 2007-02-19.
22552
22553 2008-09-26  Bruno Haible  <bruno@clisp.org>
22554
22555         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22556
22557 2008-09-26  Bruno Haible  <bruno@clisp.org>
22558
22559         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22560         * modules/fwriteerror (Depends-on): Add errno.
22561
22562 2008-09-26  Bruno Haible  <bruno@clisp.org>
22563
22564         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22565         * tests/test-vc-list-files-cvs.sh: Likewise.
22566
22567 2008-09-26  Bruno Haible  <bruno@clisp.org>
22568
22569         * doc/posix-headers/sys_resource.texi: Reorder items.
22570
22571 2008-09-26  Jim Meyering  <meyering@redhat.com>
22572
22573         fts: tweak inode comparison function
22574         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22575         inode numbers, as documented.
22576
22577         fts: sort dirent entries on inode number before traversing
22578         This avoids a quadratic, seek-related performance penalty when
22579         operating on a directory containing many entries (measurable at 10k;
22580         3.5 hours at 2 million entries with a cold cache) on certain types
22581         of file systems, including ext3 and ext4, but not tmpfs.
22582         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22583         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22584         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22585         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22586         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22587         (fts_build): Set the stat.st_ino member from D_INO.
22588         If it is likely to be useful, sort dirent entries on inode number.
22589
22590         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22591         and the struct statfs.f_type member.
22592         * modules/fts (Depends-on): Add d-ino.
22593
22594 2008-09-26  Bruno Haible  <bruno@clisp.org>
22595
22596         * modules/sigpipe-die (Depends-on): Add sigpipe.
22597
22598         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22599         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22600         and GNULIB_STDIO_H_SIGPIPE are set.
22601         * lib/stdio-write.c: New file.
22602         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22603         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22604         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22605         REPLACE_STDIO_WRITE_FUNCS.
22606         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22607         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22608         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22609         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22610         * modules/stdio (Files): Add lib/stdio-write.c.
22611         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22612         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22613         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22614         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22615         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22616         REPLACE_FPRINTF_POSIX.
22617         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22618         REPLACE_PRINTF_POSIX.
22619         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22620         REPLACE_VFPRINTF_POSIX.
22621         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22622         REPLACE_VPRINTF_POSIX.
22623         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22624         SIGPIPE issue.
22625         * doc/posix-functions/fputc.texi: Likewise.
22626         * doc/posix-functions/fputs.texi: Likewise.
22627         * doc/posix-functions/fwrite.texi: Likewise.
22628         * doc/posix-functions/printf.texi: Likewise.
22629         * doc/posix-functions/putc.texi: Likewise.
22630         * doc/posix-functions/putchar.texi: Likewise.
22631         * doc/posix-functions/puts.texi: Likewise.
22632         * doc/posix-functions/vfprintf.texi: Likewise.
22633         * doc/posix-functions/vprintf.texi: Likewise.
22634
22635         * modules/safe-write (Depends-on): Add write.
22636
22637         * modules/sigpipe-tests: New file.
22638         * tests/test-sigpipe.c: New file.
22639         * tests/test-sigpipe.sh: New file.
22640
22641         * modules/write: New file.
22642         * lib/unistd.in.h: Include <sys/types.h>.
22643         (write): New declaration.
22644         * lib/write.c: New file.
22645         * m4/write.m4: New file.
22646         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22647         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22648         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22649         GNULIB_WRITE, REPLACE_WRITE.
22650         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22651         and the SIGPIPE issue.
22652
22653         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22654         (raise): New declaration.
22655         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22656         (ext_signal): New function.
22657         (rpl_raise): New function.
22658         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22659         GNULIB_SIGNAL_H_SIGPIPE.
22660         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22661         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22662
22663         * modules/sigpipe: New file.
22664         * m4/sigpipe.m4: New file.
22665
22666 2008-09-25  Derek Price  <derek@ximbiot.com>
22667             Bruno Haible  <bruno@clisp.org>
22668
22669         * gnulib-tool (func_import): Report all license incompatibilities, not
22670         just the first one.
22671
22672 2008-09-25  Bruno Haible  <bruno@clisp.org>
22673
22674         * gnulib-tool (func_import): When computing the edits, consider not
22675         only the Makefile.ams that exist but also those that will be generated.
22676
22677 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22678
22679         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22680         fixes gnulib-tool --test warning about duplicate dependency.
22681
22682 2008-09-25  Bruno Haible  <bruno@clisp.org>
22683
22684         * gnulib-tool: Don't ask the user to perform edits in the generated
22685         Makefile.ams.
22686         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22687         apply to the Makefile.am being generated.
22688         (func_emit_tests_Makefile_am): Execute edits that apply to the
22689         Makefile.am being generated.
22690         (func_import): Setup list of Makefile.am edits before emitting the
22691         Makefile.ams, not at the end.
22692         (func_create_testdir): Update.
22693         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22694
22695 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22696
22697         * gnulib-tool (func_import): Store the --tests-base option in the
22698         comment in gnulib-cache.m4.
22699
22700 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22701
22702         * NEWS: Document increased portability that sys_select now provides.
22703
22704         * lib/sys_select.in.h: Install select wrapper.
22705         * lib/sys_socket.in.h: Use more descriptive name when there is no
22706         select wrapper.
22707         * lib/winsock-select.c: New.
22708         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22709         Require gl_HEADER_SYS_SOCKET.
22710         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22711         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22712         * tests/test-sys_select.c: Add functional tests.
22713
22714 2008-09-24  Eric Blake  <ebb9@byu.net>
22715
22716         open, fopen: close fd leak in last patch
22717         * lib/open.c (rpl_open): Close fd before returning error.
22718         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22719         * doc/posix-functions/open.texi (open): Document that Irix also
22720         has the bug.
22721         * doc/posix-functions/fopen.texi (fopen): Likewise.
22722         Reported by Paolo Bonzini.
22723
22724 2008-09-24  Bruno Haible  <bruno@clisp.org>
22725
22726         Ensure that a filename ending in a slash cannot be used to access a
22727         non-directory.
22728         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22729         to check whether it's really a directory.
22730         * lib/fopen.c: Include fcntl.h, unistd.h.
22731         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22732         and fdopen().
22733         * modules/fopen (Depends-on): Add unistd.
22734         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22735         * tests/test-fopen.c (main): Likewise.
22736         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22737         * doc/posix-functions/fopen.texi: Likewise.
22738         Reported by Eric Blake.
22739
22740 2008-09-23  Eric Blake  <ebb9@byu.net>
22741
22742         c-stack: avoid compiler optimizations when provoking overflow
22743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22744         recursion harder to optimize, to ensure a stack overflow occurs.
22745         * tests/test-c-stack.c (recurse): Likewise.
22746         Borrowed from libsigsegv.
22747
22748         c-stack: work around Irix sigaltstack bug
22749         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22750         whether sigaltstack uses wrong end of stack_t (copied in part from
22751         libsigsegv).
22752         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22753         Irix bug, without requiring an over-allocation.
22754         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22755         bug.
22756
22757         fopen: document mingw bug on directories
22758         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22759         not allowing a stream visiting a directory, even though reading
22760         from such a stream is not portable.
22761
22762 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22763
22764         * lib/poll.c: Rewrite.
22765         * modules/poll: Depend on alloca.
22766
22767 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22768
22769         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22770         instead define prototypes for a full set of wrappers.  Ensure
22771         that Cygwin does not use the compatibility code, which is only
22772         for MinGW.
22773         * lib/winsock.c: New.
22774         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22775         * modules/sys_socket: Add lib/winsock.c.
22776
22777         * modules/poll-tests: Add errno and perror.
22778         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22779
22780 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22781
22782         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22783
22784 2008-09-23  Bruno Haible  <bruno@clisp.org>
22785
22786         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22787         * doc/glibc-functions/*: Likewise.
22788
22789 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22790
22791         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22792         success.
22793
22794 2008-09-22  Eric Blake  <ebb9@byu.net>
22795             Bruno Haible  <bruno@clisp.org>
22796
22797         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22798         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22799         supply %A but mishandle pseudo-NaN.
22800         Reported by Simon Josefsson.
22801
22802 2008-09-21  Bruno Haible  <bruno@clisp.org>
22803
22804         * tests/test-lock.c (main): Tweak skip message.
22805         * tests/test-tls.c (main): Likewise.
22806
22807 2008-09-21  Bruno Haible  <bruno@clisp.org>
22808
22809         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22810         whether 'struct sigaction' has sa_sigaction here...
22811         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22812         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22813
22814 2008-09-21  Bruno Haible  <bruno@clisp.org>
22815
22816         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22817         section.
22818         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22819         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22820         the new section.
22821         (Support for obsolete systems lacking POSIX:2001): New section.
22822         (String handling <string.h>): Move strdup to the new section.
22823         Suggested by Simon Josefsson and Paolo Bonzini.
22824
22825 2008-09-21  Bruno Haible  <bruno@clisp.org>
22826
22827         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22828         exponents in %e and %g results on 'long double'. Needed for mingw's
22829         improved *printf functions.
22830         * tests/test-vasprintf-posix.c (test_function): Likewise.
22831         * tests/test-snprintf-posix.h (test_function): Likewise.
22832         * tests/test-sprintf-posix.h (test_function): Likewise.
22833         Reported by Eric Blake.
22834
22835 2008-09-21  Bruno Haible  <bruno@clisp.org>
22836
22837         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22838         * tests/test-sprintf-posix.h (test_function): Likewise.
22839
22840 2008-09-21  Bruno Haible  <bruno@clisp.org>
22841
22842         * modules/getpass (Depends-on): Add strdup-posix.
22843
22844         New module 'strdup-posix'.
22845         * modules/strdup-posix: New file.
22846         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22847         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22849         REPLACE_STRDUP.
22850         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22851         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22852         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22853         strdup-posix.
22854
22855         * modules/strdup (Depends-on): Remove malloc-posix.
22856
22857 2008-09-20  Bruno Haible  <bruno@clisp.org>
22858
22859         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22860         Wildenhues.
22861
22862 2008-09-20  Bruno Haible  <bruno@clisp.org>
22863
22864         Ensure that wint_t gets defined on IRIX 5.3.
22865         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22866         * lib/wctype.in.h (wint_t): Likewise.
22867         (__wctype_wint_t): Remove type.
22868         (isw*): Use wint_t instead of __wctype_wint_t.
22869         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22870         * modules/wchar (Files): Add m4/wint_t.m4.
22871         (Makefile.am): Substitute HAVE_WINT_T.
22872         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22873         * tests/test-wctype.c: Check that wint_t is defined.
22874         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22875         * doc/posix-headers/wctype.texi: Likewise.
22876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22877
22878 2008-09-18  Bruno Haible  <bruno@clisp.org>
22879
22880         * gnulib-tool (func_exit): Update comment.
22881
22882 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22883
22884         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22885         assumes strdup exists and does not depend on strdup to return
22886         ENOMEM on out of memory conditions.
22887
22888 2008-09-18  Bruno Haible  <bruno@clisp.org>
22889
22890         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22891         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22892         digits for the exponent.
22893
22894 2008-09-18  Jim Meyering  <meyering@redhat.com>
22895             Bruno Haible  <bruno@clisp.org>
22896
22897         * lib/vasnprintf.c (decimal_point_char): Define also if
22898         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22899
22900 2008-09-16  Bruno Haible  <bruno@clisp.org>
22901         and Eric Blake  <ebb9@byu.net>
22902
22903         vasnprintf: support Irix 5.3
22904         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22905         that mishandle long double infinity.
22906         Reported by Tom G. Christensen.
22907
22908 2008-09-16  Bruno Haible  <bruno@clisp.org>
22909
22910         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22911         Solaris 9.
22912         * doc/glibc-functions/alphasort.texi: Likewise.
22913         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22914
22915 2008-09-16  Jim Meyering  <meyering@redhat.com>
22916
22917         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22918         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22919         a umask modification leak out of a subshell.  Otherwise, the
22920         opensolaris /bin/sh would be accepted and thus cause unwarranted
22921         failures in the coreutils test suite.
22922
22923 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22924
22925         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22926         to succeed.
22927
22928 2008-09-16  Jim Meyering  <meyering@redhat.com>
22929
22930         avoid spurious test failure when library is built without ACL support
22931         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22932         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22933         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22934         * tests/test-copy-acl.sh: Likewise.
22935
22936 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22937
22938         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22939         based on character occurrence counts.
22940
22941 2008-09-15  Eric Blake  <ebb9@byu.net>
22942
22943         tests: avoid some compiler warnings
22944         * tests/test-memchr.c (main): Pass NULL indirectly.
22945         * tests/test-closein.c (main): Avoid unused variable.
22946
22947 2008-09-15  Bruno Haible  <bruno@clisp.org>
22948
22949         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22950         are missing on OpenBSD 4.0 individually.
22951         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22952
22953 2008-09-15  Bruno Haible  <bruno@clisp.org>
22954
22955         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22956         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22957         * doc/posix-functions/perror.texi: Likewise.
22958         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22959         is missing.
22960         Reported by Eric Blake.
22961
22962         * lib/errno.in.h: Use replacement values >= 2000.
22963         Reported by Eric Blake.
22964
22965 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22966
22967         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22968         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22969         limit.
22970         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22971         compareseq was aborted.
22972
22973 2008-09-14  Bruno Haible  <bruno@clisp.org>
22974
22975         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22976         yvec_edit_count.
22977         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22978         (fstrcmp_bounded): Simplify result computation accordingly.
22979
22980 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22981
22982         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22983         (fstrcmp): Define in terms of fstrcmp_bounded.
22984         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22985         lower_bound argument.
22986         Return quickly if the result is certainly < lower_bound.
22987         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22988
22989 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22990
22991         * lib/diffseq.h (EARLY_ABORT): New macro.
22992         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22993         evaluates to true.
22994
22995 2008-09-14  Bruno Haible  <bruno@clisp.org>
22996
22997         * modules/perror-tests: New file.
22998         * tests/test-perror.sh: New file.
22999         * tests/test-perror.c: New file.
23000
23001         New module 'perror'.
23002         * lib/stdio.in.h (perror): New declaration.
23003         * lib/perror.c: New file.
23004         * m4/perror.m4: New file.
23005         * modules/perror: New file.
23006         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
23007         * doc/posix-functions/perror.texi: Mention the perror module.
23008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
23009         REPLACE_PERROR.
23010         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
23011         REPLACE_PERROR.
23012
23013 2008-09-14  Bruno Haible  <bruno@clisp.org>
23014
23015         * modules/stdio (Makefile.am): Reorder to match the order in
23016         lib/stdio.in.h.
23017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
23018
23019 2008-09-13  Bruno Haible  <bruno@clisp.org>
23020
23021         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
23022
23023 2008-09-13  Bruno Haible  <bruno@clisp.org>
23024
23025         Extend strerror to cover the added errno values.
23026         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
23027         (rpl_strerror): Provide error messages for the added errno values and
23028         for the WSA* values.
23029         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
23030         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
23031         strerror.
23032         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
23033         * modules/strerror (Depends-on): Add errno.
23034         * doc/posix-functions/strerror.texi: Document the change.
23035         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
23036         and EOVERFLOW.
23037
23038 2008-09-13  Bruno Haible  <bruno@clisp.org>
23039
23040         * modules/EOVERFLOW: Remove file.
23041         * m4/eoverflow.m4: Remove file.
23042         * modules/EOVERFLOW-tests: Remove file.
23043         * tests/test-EOVERFLOW.c: Remove file.
23044         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
23045         * modules/ftell (Depends-on): Likewise.
23046         * modules/getdelim (Depends-on): Likewise.
23047         * modules/getugroups (Depends-on): Likewise.
23048         * modules/poll (Depends-on): Likewise.
23049         * modules/snprintf (Depends-on): Likewise.
23050         * modules/sprintf-posix (Depends-on): Likewise.
23051         * modules/vasnprintf (Depends-on): Likewise.
23052         * modules/vasprintf (Depends-on): Likewise.
23053         * modules/vfprintf-posix (Depends-on): Likewise.
23054         * modules/vsnprintf (Depends-on): Likewise.
23055         * modules/vsprintf-posix (Depends-on): Likewise.
23056         * modules/xvasprintf (Depends-on): Likewise.
23057         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23058         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
23059         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
23060         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
23061         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23062         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
23063         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
23064         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
23065         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23066         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
23067         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
23068         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
23069         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23070         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
23071         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
23072         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
23073         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23074         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
23075         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
23076         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
23077         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23078         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
23079         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
23080         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
23081         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
23082         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23083         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
23084         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
23085         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
23086         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
23087         * MODULES.html.sh: Remove EOVERFLOW.
23088         * NEWS: Mention the change.
23089
23090 2008-09-13  Bruno Haible  <bruno@clisp.org>
23091
23092         * modules/errno-tests: New file.
23093         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
23094
23095         * lib/errno.in.h: New file.
23096         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
23097         * modules/errno: New file.
23098         * doc/posix-headers/errno.texi: Update documentation.
23099         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
23100
23101 2008-09-13  Bruno Haible  <bruno@clisp.org>
23102
23103         * tests/test-poll.c: Use #if for native Windows, rather than testing
23104         __MSVCRT__.
23105
23106 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23107             Bruno Haible  <bruno@clisp.org>
23108
23109         * lib/glob.c: Don't include <pwd.h> on native Windows.
23110         (WINDOWS32): New macro.
23111         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
23112
23113 2008-09-13  Bruno Haible  <bruno@clisp.org>
23114
23115         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
23116         (ETIMEDOUT): Remove macro.
23117         (glthread_cond_timedwait_multithreaded): New declaration.
23118         (glthread_cond_timedwait): Use it.
23119         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
23120         (glthread_cond_timedwait_multithreaded): New function.
23121
23122 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23123
23124         * modules/poll-tests: Do not check for io.h.
23125         * tests/test-poll.c: Check for __MSVCRT__ instead.
23126
23127 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23128
23129         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
23130         * modules/poll-tests: Add inet_pton, stdbool, sockets.
23131         * tests/test-poll.c: Use them.  Use _pipe on Windows.
23132
23133 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23134
23135         * modules/poll-tests: New.
23136         * tests/test-poll.c: New.
23137
23138 2008-09-12  Eric Blake  <ebb9@byu.net>
23139
23140         frexp: test for NetBSD failure on -0.0
23141         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
23142         not all, bugs from NetBSD 3.0 have been fixed.
23143         * doc/posix-functions/frexp.texi (frexp): Document bug.
23144         Reported by Thomas Klausner.
23145
23146         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
23147         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
23148         literal -0.0.
23149         Reported by Jonathan C. Patschke <jp@centtech.com>.
23150
23151 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23152
23153         * lib/glthread/cond.h: Use dummy implementation also if
23154         USE_WIN32_THREADS.
23155
23156 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23157
23158         * modules/fnmatch-posix (License): Change to LGPLv2+.
23159         * modules/fnmatch-gnu (License): Likewise.
23160
23161 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23162
23163         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
23164
23165 2008-09-11  Jim Meyering  <meyering@redhat.com>
23166
23167         * users.txt: Add gtk-vnc.
23168
23169 2008-09-08  Simon Josefsson  <simon@josefsson.org>
23170
23171         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
23172         rotate amounts.
23173
23174         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
23175         required for 16-bit and 8-bit rotates.
23176         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
23177         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
23178         UINT8_MAX instead of hard-coded constants.
23179         Suggested by Paul Eggert.
23180
23181 2008-09-07  Bruno Haible  <bruno@clisp.org>
23182
23183         * tests/test-striconveh.c (main): Check behaviour when converting from
23184         UTF-7.
23185
23186         Make striconveh work better with stateful encodings.
23187         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
23188         that iconv does not increment the inptr when returning -1/EINVAL.
23189
23190 2008-09-07  Bruno Haible  <bruno@clisp.org>
23191
23192         * build-aux/config.rpath: Update according to libtool-2.2.6.
23193         * build-aux/config.libpath: Likewise.
23194
23195 2008-09-06  Bruno Haible  <bruno@clisp.org>
23196
23197         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
23198         * lib/freadptr.c (freadptr): Likewise.
23199         * lib/freadseek.c (freadptrinc): Likewise.
23200         Reported by Simon Josefsson.
23201
23202 2008-09-06  Bruno Haible  <bruno@clisp.org>
23203
23204         * modules/freadptr (License): Change to LGPLv2+.
23205         * modules/freadseek (License): Likewise.
23206         Suggested by Eric Blake.
23207
23208         * modules/memchr2 (License): Change to LGPLv2+.
23209         Approved by Eric Blake.
23210
23211 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23212             Bruno Haible  <bruno@clisp.org>
23213
23214         Make gnulib-tool work with native 'sed' on AIX.
23215         * gnulib-tool (sed_noop): New variable.
23216         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
23217         func_add_or_update, func_create_testdir): Use it to initialize sed
23218         script variables.
23219         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23220
23221 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
23222             Bruno Haible  <bruno@clisp.org>
23223
23224         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
23225         also works after #include directives.
23226
23227 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
23228
23229         getdate.y: reject an out-of-range timezone value
23230         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
23231         the range [-24...+24].  When specified with only one or two digits,
23232         * tests/test-getdate.c: Tests for the fix.
23233         * doc/getdate.texi: Document this change.
23234
23235 2008-09-03  Bruno Haible  <bruno@clisp.org>
23236
23237         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
23238
23239 2008-09-02  Simon Josefsson  <simon@josefsson.org>
23240
23241         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
23242         <bruce.korb@gmail.com> with ideas from Ben Pfaff
23243         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
23244         Blake <ebb9@byu.net>.
23245
23246         * tests/test-bitrotate.c: Add more test vectors.
23247
23248 2008-09-02  Eric Blake  <ebb9@byu.net>
23249
23250         vasnprintf-posix: handle large precision via %.*d
23251         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
23252         when handling it ourselves.
23253         * tests/test-vasnprintf-posix.c (test_function): Add test.
23254         * tests/test-snprintf-posix.h (test_function): Likewise.
23255         * tests/test-sprintf-posix.h (test_function): Likewise.
23256         * tests/test-vasprintf-posix.c (test_function): Likewise.
23257         Reported by Alain Guibert.
23258
23259 2008-09-01  Eric Blake  <ebb9@byu.net>
23260
23261         c-stack: make configure-time check more robust
23262         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
23263         successful sigaction call.
23264         Reported by Tom G. Christensen.
23265
23266 2008-09-01  Bruno Haible  <bruno@clisp.org>
23267
23268         New module 'findprog-lgpl'.
23269         * modules/findprog-lgpl: New file.
23270         * lib/findprog-lgpl.c: New file.
23271         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
23272         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
23273         to decide whether to use strdup or xstrdup, concatenated_filename or
23274         xconcatenated_filename.
23275
23276 2008-09-01  Bruno Haible  <bruno@clisp.org>
23277
23278         Split module 'concat-filename' into 'concat-filename' (LGPL) and
23279         'xconcat-filename' (GPL).
23280         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
23281         (License): Change to LGPLv2+.
23282         * modules/xconcat-filename: New file.
23283         * lib/concat-filename.h (concatenated_filename): Change specification.
23284         (xconcatenated_filename): New declaration.
23285         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
23286         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
23287         memory situations.
23288         * lib/xconcat-filename.c: New file.
23289         * NEWS: Mention the change.
23290         * lib/findprog.c: Include concat-filename.h, not filename.h.
23291         (find_in_path): Use xconcatenated_filename instead of
23292         concatenated_filename.
23293         * lib/javacomp.c: Include concat-filename.h, not filename.h.
23294         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23295         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23296         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23297         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
23298         instead of concatenated_filename.
23299         * lib/javaexec.c: Include concat-filename.h, not filename.h.
23300         (execute_java_class): Use xconcatenated_filename instead of
23301         concatenated_filename.
23302         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
23303         * modules/javacomp (Depends-on): Likewise.
23304         * modules/javaexec (Depends-on): Likewise.
23305
23306 2008-09-01  Bruno Haible  <bruno@clisp.org>
23307
23308         Split module 'filename' into 'filename' and 'concat-filename'.
23309         * modules/filename: Keep only lib/filename.h.
23310         (License): Change to LGPLv2+.
23311         * modules/concat-filename: New file, extracted from modules/filename.
23312         * lib/filename.h (concatenated_filename): Remove declaration.
23313         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23314         * lib/concat-filename.c: Include concat-filename.h.
23315         * NEWS: Mention the change.
23316
23317 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23318
23319         * lib/bitrotate.h (rotl8, rotr8): Add.
23320
23321         * modules/bitrotate (configure.ac): Need
23322         AC_REQUIRE([AC_C_INLINE]).
23323         (Description): Mention stdint.h.  Reported by Bruno Haible
23324         <bruno@clisp.org>.
23325
23326         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23327         Paolo Bonzini <bonzini@gnu.org>.
23328
23329 2008-08-31  Bruno Haible  <bruno@clisp.org>
23330
23331         Assume Solaris specific bi-arch conventions on Solaris systems.
23332         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23333         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23334         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23335         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23336         like acl_libdirstem.
23337         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23338         acl_libdirstem.
23339         * NEWS: Mention the change.
23340         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23341
23342 2008-08-31  Jim Meyering  <meyering@redhat.com>
23343
23344         * lib/strftime.h: Add comments describing the two added arguments.
23345
23346         remove duplicate #include directives
23347         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23348         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23349
23350 2008-08-31  Bruno Haible  <bruno@clisp.org>
23351
23352         New module 'sigpipe-die'.
23353         * modules/sigpipe-die: New file.
23354         * lib/sigpipe-die.h: New file.
23355         * lib/sigpipe-die.c: New file.
23356         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23357
23358 2008-08-31  Bruno Haible  <bruno@clisp.org>
23359
23360         Don't override previously installed signal handlers.
23361         * lib/fatal-signal.c (saved_sigactions): New variable.
23362         (uninstall_handlers): Reset the signal to the saved handler, not
23363         to SIG_DFL (except when ignored).
23364         (install_handlers): Save the previous handlers.
23365
23366 2008-08-30  Bruno Haible  <bruno@clisp.org>
23367
23368         * gnulib-tool (func_reset_sigpipe): New function.
23369         (func_get_automake_snippet, func_modules_transitive_closure,
23370         func_import): Invoke it before a join command that reads from stdin,
23371         to avoid "echo: write error: Broken pipe" error messages on stderr.
23372         Reported by Sam Steingold <sds@gnu.org>.
23373
23374 2008-08-30  Bruno Haible  <bruno@clisp.org>
23375
23376         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23377         Code copied from m4/open.m4.
23378         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23379         access and the filename ends in a slash. Code copied from lib/open.c.
23380         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23381         * tests/test-fopen.c (main): Check against bug with trailing slash.
23382
23383 2008-08-29  Bruno Haible  <bruno@clisp.org>
23384
23385         Avoid some "gcc -pedantic" warnings.
23386         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23387         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23388         * lib/dirent.in.h: Likewise.
23389         * lib/fcntl.in.h: Likewise.
23390         * lib/float.in.h: Likewise.
23391         * lib/iconv.in.h: Likewise.
23392         * lib/inttypes.in.h: Likewise.
23393         * lib/locale.in.h: Likewise.
23394         * lib/math.in.h: Likewise.
23395         * lib/netinet_in.in.h: Likewise.
23396         * lib/search.in.h: Likewise.
23397         * lib/signal.in.h: Likewise.
23398         * lib/stdarg.in.h: Likewise.
23399         * lib/stdint.in.h: Likewise.
23400         * lib/stdio.in.h: Likewise.
23401         * lib/stdlib.in.h: Likewise.
23402         * lib/string.in.h: Likewise.
23403         * lib/strings.in.h: Likewise.
23404         * lib/sys_select.in.h: Likewise.
23405         * lib/sys_socket.in.h: Likewise.
23406         * lib/sys_stat.in.h: Likewise.
23407         * lib/sys_time.in.h: Likewise.
23408         * lib/sysexits.in.h: Likewise.
23409         * lib/time.in.h: Likewise.
23410         * lib/unistd.in.h: Likewise.
23411         * lib/wchar.in.h: Likewise.
23412         * lib/wctype.in.h: Likewise.
23413         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23414         * modules/fchdir (Makefile.am): Likewise.
23415         * modules/fcntl (Makefile.am): Likewise.
23416         * modules/float (Makefile.am): Likewise.
23417         * modules/iconv_open (Makefile.am): Likewise.
23418         * modules/inttypes (Makefile.am): Likewise.
23419         * modules/locale (Makefile.am): Likewise.
23420         * modules/math (Makefile.am): Likewise.
23421         * modules/netinet_in (Makefile.am): Likewise.
23422         * modules/search (Makefile.am): Likewise.
23423         * modules/signal (Makefile.am): Likewise.
23424         * modules/stdarg (Makefile.am): Likewise.
23425         * modules/stdint (Makefile.am): Likewise.
23426         * modules/stdio (Makefile.am): Likewise.
23427         * modules/stdlib (Makefile.am): Likewise.
23428         * modules/string (Makefile.am): Likewise.
23429         * modules/strings (Makefile.am): Likewise.
23430         * modules/sys_select (Makefile.am): Likewise.
23431         * modules/sys_socket (Makefile.am): Likewise.
23432         * modules/sys_stat (Makefile.am): Likewise.
23433         * modules/sys_time (Makefile.am): Likewise.
23434         * modules/sysexits (Makefile.am): Likewise.
23435         * modules/time (Makefile.am): Likewise.
23436         * modules/unistd (Makefile.am): Likewise.
23437         * modules/wchar (Makefile.am): Likewise.
23438         * modules/wctype (Makefile.am): Likewise.
23439         Reported by Reuben Thomas <rrt@sc3d.org>.
23440
23441 2008-08-29  Bruno Haible  <bruno@clisp.org>
23442
23443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23444         any more.
23445
23446 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23447
23448         * MODULES.html.sh (Misc): Add bitrotate.
23449
23450         * modules/bitrotate: New file.
23451
23452         * lib/bitrotate.h: New file.
23453
23454         * modules/bitrotate-tests: New file.
23455
23456         * tests/test-bitrotate.c: New file.
23457
23458         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23459         on the bitrotate module.
23460
23461         * lib/arctwo.c: Use new bitrotate module.
23462
23463 2008-08-29  Jim Meyering  <meyering@redhat.com>
23464
23465         bootstrap: merge changes from coreutils
23466         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23467         of copied files.  Remove a kludge, now that this is fixed.
23468         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23469         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23470         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23471
23472 2008-08-29  Bruno Haible  <bruno@clisp.org>
23473
23474         * MODULES.html.sh: Remove --cvs-urls option.
23475
23476 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23477
23478         maint.mk: adjust to file name change
23479         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23480
23481 2008-08-28  Jim Meyering  <meyering@redhat.com>
23482
23483         * modules/getndelim2 (License): Relicense to LGPLv2+.
23484         Approved by Richard Stallman for the version of 1995, and by
23485         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23486
23487 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23488
23489         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23490         dummy if one is not available.  Do not touch them if
23491         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23492         (getc_maybe_unlocked): New.
23493         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23494
23495 2008-08-26  Eric Blake  <ebb9@byu.net>
23496
23497         doc/INSTALL: resync from autoconf
23498         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23499         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23500         moving...
23501         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23502         * INSTALL: Regenerate.
23503         * INSTALL.ISO: New file.
23504         * INSTALL.UTF-8: Likewise.
23505
23506 2008-08-26  Jim Meyering  <meyering@redhat.com>
23507
23508         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23509         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23510         these definitions conditional, so that they may be overridden, too.
23511
23512 2008-08-26  Bruno Haible  <bruno@clisp.org>
23513
23514         Generate INSTALL file variants with prettier quotes.
23515         * doc/Makefile (INSTALL_PRELUDE): New macro.
23516         (INSTALL): Use it.
23517         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23518
23519 2008-08-26  Bruno Haible  <bruno@clisp.org>
23520
23521         Run makeinfo in an English locale.
23522         * doc/Makefile (MAKEINFO): New variable.
23523
23524 2008-08-26  Bruno Haible  <bruno@clisp.org>
23525
23526         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23527         Suggested by Eric Blake.
23528
23529 2008-08-25  Bruno Haible  <bruno@clisp.org>
23530
23531         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23532
23533 2008-08-25  Eric Blake  <ebb9@byu.net>
23534
23535         c-stack: test that stack overflow can be caught
23536         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23537         that platform allows handling stack overflow; at least OS/2 EMX
23538         has sigaltstack, but crashes before transferring control to
23539         handler on stack overflow.
23540         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23541         check for HAVE_STACK_OVERFLOW_HANDLING.
23542         Reported by Elbert Pol.
23543
23544 2008-08-25  Bruno Haible  <bruno@clisp.org>
23545
23546         * doc/posix-functions/strftime.texi: Fix description of strftime
23547         module.
23548
23549 2008-08-24  Bruno Haible  <bruno@clisp.org>
23550
23551         * tests/uniwidth/test-uc_width2.c: New file.
23552         * tests/uniwidth/test-uc_width2.sh: New file.
23553         * modules/uniwidth/width-tests (Files): Add the new files.
23554         (TESTS): Add uniwidth/test-uc_width2.sh.
23555         (TESTS_ENVIRONMENT): New variable.
23556         (check_PROGRAMS): Add test-uc_width2.
23557         (test_uc_width2_SOURCES): New variable.
23558
23559         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23560         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23561         not 0x00AB.
23562         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23563
23564 2008-08-22  Eric Blake  <ebb9@byu.net>
23565
23566         test-lock, test-tls: mention why a test is skipped
23567         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23568         skipped.
23569         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23570
23571         count-one-bits: relax license
23572         * modules/count-one-bits (License): Relicense to LGPLv2+.
23573         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23574
23575 2008-08-22  Andreas Schwab  <schwab@suse.de>
23576
23577         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23578         Remove spurious space in assignment.
23579
23580 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23581
23582         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23583         Paul Eggert <eggert@CS.UCLA.EDU>.
23584
23585 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23586
23587         * modules/gettext: Add m4/threadlib.m4.
23588
23589 2008-08-19  Eric Blake  <ebb9@byu.net>
23590
23591         test-c-stack: fix compilation failure on FreeBSD 5.0
23592         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23593         headers before <sys/resource.h>.
23594         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23595         the bug.
23596         Reported by Nelson H. F. Beebe.
23597
23598         strverscmp: migrate from "strverscmp.h" to <string.h>
23599         * modules/string (Makefile.am): Add new hooks.
23600         * modules/strverscmp (Files): Remove strverscmp.h.
23601         (Depends-on): Add string.
23602         (configure.ac): Add indicator.
23603         (Include): Mention new header.
23604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23605         defaults.
23606         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23607         results.
23608         * lib/strverscmp.h: Delete.
23609         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23610         * tests/test-strverscmp.c (includes): Adjust client.
23611         * lib/check-version.c (includes): Likewise.
23612         * NEWS: Document the change.
23613
23614         strverscmp: add unit test
23615         * modules/strverscmp-tests: New file.
23616         * tests/test-strverscmp.c: Likewise.
23617
23618 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23619
23620         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23621         regarding Windows crypto stuff, from Mono.
23622
23623 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23624
23625         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23626         if present, for intel RND.  Return error on failures.
23627
23628 2008-08-18  Ben Pfaff  <blp@gnu.org>
23629
23630         gitlog-to-changelog: give better diagnostic for failed pipe-open
23631         * build-aux/gitlog-to-changelog: Improve error message: suggest
23632         that the version of Git may be too old.
23633
23634 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23635
23636         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23637         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23638
23639 2008-08-18  Bruno Haible  <bruno@clisp.org>
23640
23641         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23642         pthread_in_use().
23643
23644 2008-08-18  Bruno Haible  <bruno@clisp.org>
23645
23646         * lib/glthread/threadlib.c: Include <pthread.h>.
23647
23648 2008-08-18  Bruno Haible  <bruno@clisp.org>
23649
23650         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23651         glthread_recursive_lock_* macros.
23652         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23653         Fix syntax error.
23654
23655 2008-08-18  Bruno Haible  <bruno@clisp.org>
23656
23657         * lib/glthread/thread.c: Avoid forcing a context switch right after
23658         thread creation.
23659
23660 2008-08-17  Bruno Haible  <bruno@clisp.org>
23661
23662         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23663         * lib/glthread/thread.h: Provide Win32 specific implementation.
23664         * modules/thread (Files): Add lib/glthread/thread.c.
23665         (Depends-on): Add lock.
23666         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23667
23668 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23669
23670         New module 'yield'.
23671         * modules/yield: New file.
23672         * lib/glthread/yield.h: New file.
23673         * m4/yield.m4: New file.
23674         * MODULES.html.sh (Multithreading): Add yield.
23675
23676 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23677
23678         New module 'thread'.
23679         * modules/thread: New file.
23680         * lib/glthread/thread.h: New file.
23681         * m4/thread.m4: New file.
23682         * MODULES.html.sh (Multithreading): Add thread.
23683
23684 2008-08-17  Bruno Haible  <bruno@clisp.org>
23685
23686         * lib/glthread/lock.h: Include <stdlib.h> always.
23687         * lib/glthread/tls.h: Likewise.
23688         * lib/glthread/cond.h: Likewise.
23689
23690 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23691
23692         New module 'cond'.
23693         * modules/cond: New file.
23694         * lib/glthread/cond.h: New file.
23695         * lib/glthread/cond.c: New file.
23696         * m4/cond.m4: New file.
23697         * MODULES.html.sh (Multithreading): Add cond.
23698
23699 2008-08-16  Eric Blake  <ebb9@byu.net>
23700
23701         c-stack: fix regression on Irix 5.3 from 2008-06-21
23702         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23703         sa_sigaction...
23704         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23705         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23706         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23707         * modules/signal (Makefile.am): Use the value.
23708         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23709         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23710         * doc/posix-headers/signal.texi (signal.h): Document this
23711         portability issue.
23712         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23713         Reported by Tom G. Christensen.
23714
23715 2008-08-17  Bruno Haible  <bruno@clisp.org>
23716
23717         New module 'threadlib'.
23718         * modules/threadlib: New file.
23719         * lib/glthread/threadlib.c: New file, extracted from
23720         lib/glthread/lock.c.
23721         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23722         functions.
23723         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23724         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23725         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23726         macros.
23727         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23728         (gl_DISABLE_THREADS): Remove macro.
23729         * modules/lock (Files): Remove build-aux/config.rpath.
23730         (Depends-on): Remove havelib. Add threadlib.
23731         (configure.ac-early): Remove section.
23732         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23733         * modules/tls (Depends-on): Remove lock. Add threadlib.
23734         (Link): New section, copied from threadlib.
23735         * MODULES.html.sh (Multithreading): Add threadlib.
23736
23737 2008-08-14  Bruno Haible  <bruno@clisp.org>
23738
23739         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23740         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23741         glthread_rwlock_unlock, glthread_rwlock_destroy,
23742         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23743         glthread_recursive_lock_destroy): Define as macros always.
23744         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23745         glthread_lock_lock.
23746         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23747         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23748         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23749         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23750         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23751         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23752         (glthread_recursive_lock_lock_func): Renamed from
23753         glthread_recursive_lock_lock.
23754         (glthread_recursive_lock_unlock_func): Renamed from
23755         glthread_recursive_lock_unlock.
23756         (glthread_recursive_lock_destroy_func): Renamed from
23757         glthread_recursive_lock_destroy.
23758
23759 2008-08-14  Bruno Haible  <bruno@clisp.org>
23760
23761         * lib/glthread/lock.h: Renamed from lib/lock.h.
23762         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23763         * lib/glthread/tls.h: Renamed from lib/tls.h.
23764         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23765         * lib/fstrcmp.c: Update includes.
23766         * lib/strsignal.c: Update includes.
23767         * modules/lock (Files, Makefile.am): Update.
23768         (Include): Change to "glthread/lock.h".
23769         * modules/tls (Files, Makefile.am): Update.
23770         (Include): Change to "glthread/tls.h".
23771         * tests/test-lock.c: Update includes.
23772         * tests/test-tls.c: Update includes.
23773         * NEWS: Mention the renamed header files.
23774
23775 2008-08-11  Jim Meyering  <meyering@redhat.com>
23776
23777         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23778
23779 2008-08-11  Eric Blake  <ebb9@byu.net>
23780
23781         test-c-stack: avoid C99-ism
23782         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23783         before statement.
23784         Reported by Alain Guibert.
23785
23786 2008-08-10  Jim Meyering  <meyering@redhat.com>
23787
23788         ensure that return value of uinttostr et al are not ignored
23789         * lib/inttostr.h (__GNUC_PREREQ): Define.
23790         (__attribute_warn_unused_result__): Define.
23791         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23792
23793 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23794
23795         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23796         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23797
23798 2008-08-07  Jim Meyering  <meyering@redhat.com>
23799
23800         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23801
23802         * modules/mkstemp (License): Relicense under LGPLv2+.
23803         * modules/tempname (License): Likewise.
23804
23805 2008-08-06  Bruno Haible  <bruno@clisp.org>
23806
23807         * lib/poll.c (poll): Further micro-optimization.
23808
23809 2008-08-06  Jim Meyering  <meyering@redhat.com>
23810
23811         inet_pton.c: use locale-independent tolower
23812         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23813         (inet_pton6): Use c_tolower rather than tolower.
23814         * modules/inet_pton (Depends-on): Add c-ctype.
23815
23816 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23817
23818         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23819         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23820
23821 2008-08-06  Jim Meyering  <meyering@redhat.com>
23822
23823         * modules/inet_pton (License): Relicense under LGPLv2+.
23824
23825 2008-08-03  Bruno Haible  <bruno@clisp.org>
23826
23827         Additional non-aborting API for lock and tls.
23828         * lib/lock.h: Include <errno.h>.
23829         (glthread_lock_init): New macro/function.
23830         (gl_lock_init): Define as wrapper around glthread_lock_init.
23831         (glthread_lock_lock): New macro/function.
23832         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23833         (glthread_lock_unlock): New macro/function.
23834         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23835         (glthread_lock_destroy): New macro/function.
23836         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23837         (glthread_rwlock_init): New macro/function.
23838         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23839         (glthread_rwlock_rdlock): New macro/function.
23840         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23841         (glthread_rwlock_wrlock): New macro/function.
23842         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23843         (glthread_rwlock_unlock): New macro/function.
23844         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23845         (glthread_rwlock_destroy): New macro/function.
23846         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23847         (glthread_recursive_lock_init): New macro/function.
23848         (gl_recursive_lock_init): Define as wrapper around
23849         glthread_recursive_lock_init.
23850         (glthread_recursive_lock_lock): New macro/function.
23851         (gl_recursive_lock_lock): Define as wrapper around
23852         glthread_recursive_lock_lock.
23853         (glthread_recursive_lock_unlock): New macro/function.
23854         (gl_recursive_lock_unlock): Define as wrapper around
23855         glthread_recursive_lock_unlock.
23856         (glthread_recursive_lock_destroy): New macro/function.
23857         (gl_recursive_lock_destroy): Define as wrapper around
23858         glthread_recursive_lock_destroy.
23859         (glthread_once): New macro/function.
23860         (gl_once): Define as wrapper around glthread_once.
23861         Update function declarations.
23862         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23863         glthread_rwlock_init. Return error code.
23864         (glthread_rwlock_rdlock_multithreaded): Renamed from
23865         glthread_rwlock_rdlock. Return error code.
23866         (glthread_rwlock_wrlock_multithreaded): Renamed from
23867         glthread_rwlock_wrlock. Return error code.
23868         (glthread_rwlock_unlock_multithreaded): Renamed from
23869         glthread_rwlock_unlock. Return error code.
23870         (glthread_rwlock_destroy_multithreaded): Renamed from
23871         glthread_rwlock_destroy. Return error code.
23872         (glthread_recursive_lock_init_multithreaded): Renamed from
23873         glthread_recursive_lock_init. Return error code.
23874         (glthread_recursive_lock_lock_multithreaded): Renamed from
23875         glthread_recursive_lock_lock. Return error code.
23876         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23877         glthread_recursive_lock_unlock. Return error code.
23878         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23879         glthread_recursive_lock_destroy. Return error code.
23880         (glthread_once_call): Make static.
23881         (glthread_once_multithreaded): Renamed from glthread_once.
23882         * lib/tls.h: Include <errno.h>.
23883         (glthread_tls_key_init): New macro/function.
23884         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23885         (glthread_tls_set): New macro/function.
23886         (gl_tls_set): Define as wrapper around glthread_tls_set.
23887         (glthread_tls_key_destroy): New macro/function.
23888         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23889         Update function declarations.
23890         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23891         glthread_tls_get.
23892         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23893
23894 2008-08-04  Eric Blake  <ebb9@byu.net>
23895
23896         gnumakefile: use space, not TAB, outside of targets
23897         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23898
23899 2008-08-02  Jim Meyering  <meyering@redhat.com>
23900
23901         getdate.y: avoid locale-dependent date parsing failure
23902         In Turkish locales, getdate would fail to recognize keywords
23903         containing a lowercase "i".  The solution is not to rely on
23904         locale-sensitive case-conversion.
23905         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23906         (lookup_word): Use c_toupper in place of toupper.
23907         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23908         Reported by Vefa Bicakci <bicave@superonline.com> in
23909         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23910         * modules/getdate (Depends-on): Add c-ctype.
23911
23912 2008-08-02  Bruno Haible  <bruno@clisp.org>
23913
23914         * gnulib-tool (func_import): When updating or creating a .gitignore
23915         file, prepend each added line with a slash, and ignore leading slashes
23916         from the existing lines.
23917         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23918
23919 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23920
23921         Portability fix for GNU make 3.79.1.
23922         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23923         versions do not understand.
23924
23925 2008-08-01  Bruno Haible  <bruno@clisp.org>
23926
23927         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23928         * tests/test-isnanf.h (zero): New variable.
23929         (main): Avoid literal -0.0f.
23930         * tests/test-isnand.h (zero): New variable.
23931         (main): Avoid literal -0.0.
23932         * tests/test-isnanl.h (zero): New variable.
23933         (main): Avoid literal -0.0L.
23934         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23935         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23936         -0.0, -0.0L.
23937         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23938         (test_signbitd): Avoid literal -0.0.
23939         (test_signbitl): Avoid literal -0.0L.
23940         * tests/test-ceilf1.c (zero): New variable.
23941         (main): Avoid literal -0.0f.
23942         * tests/test-ceill.c (zero): New variable.
23943         (main): Avoid literal -0.0L.
23944         * tests/test-floorf1.c (zero): New variable.
23945         (main): Avoid literal -0.0f.
23946         * tests/test-floorl.c (zero): New variable.
23947         (main): Avoid literal -0.0L.
23948         * tests/test-roundf1.c (zero): New variable.
23949         (main): Avoid literal -0.0f.
23950         * tests/test-round1.c (zero): New variable.
23951         (main): Avoid literal -0.0.
23952         * tests/test-roundl.c (zero): New variable.
23953         (main): Avoid literal -0.0L.
23954         * tests/test-truncf1.c (zero): New variable.
23955         (main): Avoid literal -0.0f.
23956         * tests/test-trunc1.c (zero): New variable.
23957         (main): Avoid literal -0.0.
23958         * tests/test-truncl.c (zero): New variable.
23959         (main): Avoid literal -0.0L.
23960         * tests/test-frexp.c (zero): New variable.
23961         (main): Avoid literal -0.0.
23962         * tests/test-frexpl.c (zero): New variable.
23963         (main): Avoid literal -0.0L.
23964         * tests/test-ldexpl.c (zero): New variable.
23965         (main): Avoid literal -0.0L.
23966         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23967         (zerod, zerol): New variables.
23968         (test_function): Avoid literals -0.0, -0.0L.
23969         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23970         (zerod, zerol): New variables.
23971         (test_function): Avoid literals -0.0, -0.0L.
23972         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23973         (zerod, zerol): New variables.
23974         (test_function): Avoid literals -0.0, -0.0L.
23975         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23976         (zerod, zerol): New variables.
23977         (test_function): Avoid literals -0.0, -0.0L.
23978         * tests/test-strtod.c (zero): New variable.
23979         (main): Avoid literal -0.0.
23980         Reported by Jonathan C. Patschke <jp@centtech.com>.
23981
23982 2008-07-31  Jim Meyering  <meyering@redhat.com>
23983
23984         sha256.h: correct definition of SHA224_DIGEST_SIZE
23985         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23986         Reported by Paulie Pena IV <paulie4@gmail.com>.
23987         Define as 224 / 8, rather than as a literal.
23988         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23989         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23990         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23991
23992 2008-07-31  Bruno Haible  <bruno@clisp.org>
23993
23994         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23995         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23996         Reported by Jonathan Patschke <jp@centtech.com>.
23997
23998 2008-07-31  Bruno Haible  <bruno@clisp.org>
23999
24000         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
24001         Reported by Paolo Bonzini <bonzini@gnu.org>.
24002
24003 2008-07-30  Eric Blake  <ebb9@byu.net>
24004
24005         test-strtod: allow compilation without -lm
24006         * tests/test-strtod.c (main): Avoid link dependence on fabs.
24007         Reported by Dennis Clarke <blastwave@gmail.com>.
24008
24009 2008-07-28  Jim Meyering  <meyering@redhat.com>
24010
24011         bootstrap: work also when there are no .po files in po/
24012         * build-aux/bootstrap (update_po_files): Complete the change
24013         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
24014
24015 2008-07-27  Jim Meyering  <meyering@redhat.com>
24016
24017         * users.txt: Add zile.
24018
24019 2008-07-26  Ben Pfaff  <blp@gnu.org>
24020
24021         Add missing dependencies on new m4/exponent[fdl].m4 files.
24022         * modules/isnanf-nolibm: Add m4/exponentf.m4.
24023         * modules/isnand-nolibm: Add m4/exponentd.m4.
24024         * modules/isnanl-nolibm: Add m4/exponentl.m4.
24025         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
24026         m4/isnan[fdl].m4, because the macros actually used moved.
24027         Reported by Jim Meyering.
24028
24029 2008-07-14  Ben Pfaff  <blp@gnu.org>
24030
24031         Add isinf module.
24032         * lib/isinf.c: New file.
24033         * lib/math.in.h: Define isinf macro if we have decided to replace
24034         it.
24035         * m4/isinf.m4: New file.
24036         * m4/math_h.m4: Initialize and substitute variables for isinf
24037         module.
24038         * modules/isinf: New file.
24039         * modules/isinf-tests: New file.
24040         * modules/math: Add substitutions for new module.
24041         * tests/test-isinf.c: New file.
24042         * doc/posix-functions/isinf.texi: Mention new module.
24043         * MODULES.html.sh: Mention new module.
24044
24045 2008-07-14  Ben Pfaff  <blp@gnu.org>
24046
24047         Factor out some macros for use by additional modules.
24048         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
24049         exponentf.m4.
24050         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
24051         exponentd.m4.
24052         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
24053         file exponentl.m4.
24054         * m4/exponentf.m4: New file.
24055         * m4/exponentd.m4: New file.
24056         * m4/exponentl.m4: New file.
24057         * modules/isnanf: Use new file m4/exponentf.m4.
24058         * modules/isnand: Use new file m4/exponentd.m4.
24059         * modules/isnanl: Use new file m4/exponentl.m4.
24060
24061 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
24062
24063         mktime.c: normalize tp->tm_isdst value to -1/0/1.
24064         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
24065         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
24066         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
24067
24068         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
24069         readlink on platforms without PATH_MAX.
24070
24071 2008-07-21  Eric Blake  <ebb9@byu.net>
24072
24073         Warn, not fail, on stale version.
24074         * top/GNUmakefile (_curr-ver): Tone down previous patch.
24075
24076         Don't allow installation with stale devel version number.
24077         * top/GNUmakefile (_is-install-target): New macro.
24078         (_curr-ver): Forbid installation with stale version number.
24079
24080 2008-07-20  Bruno Haible  <bruno@clisp.org>
24081
24082         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
24083         TESTS_ENVIRONMENT.
24084         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
24085
24086 2008-07-20  Bruno Haible  <bruno@clisp.org>
24087
24088         * lib/c-stack.h (c_stack_action): Add documentation.
24089         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
24090
24091 2008-07-20  Bruno Haible  <bruno@clisp.org>
24092
24093         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
24094         * modules/readlink (License): Likewise.
24095
24096 2008-07-17  Eric Blake  <ebb9@byu.net>
24097
24098         * modules/c-stack (Link): Fix typo.
24099
24100         Make c-stack use libsigsegv, when available.
24101         * modules/c-stack (Depends-on): Add libsigsegv.
24102         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
24103         needed.
24104         * lib/c-stack.c (SIGSTKSZ): Define fallback.
24105         (segv_handler, overflow_handler, c_stack_action)
24106         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
24107         implementation when libsigsegv is available, but only when using
24108         the library is necessary.
24109         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
24110         comment, explaining why XSI check fails on Linux.
24111         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
24112         * tests/test-c-stack2.sh: Tweak skip message.
24113         * NEWS: Document new link-time requirements.
24114
24115 2008-07-16  Eric Blake  <ebb9@byu.net>
24116
24117         c-stack: Expose false positives when not using libsigsegv.
24118         * modules/c-stack-tests (Files): Expand test.
24119         * tests/test-c-stack.c (main): Add means to conditionally trigger
24120         non-overflow SIGSEGV.
24121         * tests/test-c-stack2.sh: New file.
24122
24123 2008-07-14  Bruno Haible  <bruno@clisp.org>
24124
24125         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
24126         Reported by Eric Blake.
24127
24128 2008-07-14  Sam Steingold  <sds@gnu.org>
24129             Bruno Haible  <bruno@clisp.org>
24130
24131         New module libsigsegv.
24132         * modules/libsigsegv: New file.
24133         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
24134         modifications.
24135         * MODULES.html.sh (Signal handling): New section.
24136
24137 2008-07-14  Bruno Haible  <bruno@clisp.org>
24138
24139         * modules/unictype/ctype-* (Description): Add the word "function".
24140         Improves the resulting doc in MODULES.html.
24141
24142 2008-07-12  Ben Pfaff  <blp@gnu.org>
24143
24144         Add longlong module.
24145         * modules/longlong: New file.
24146
24147 2008-07-12  Bruno Haible  <bruno@clisp.org>
24148
24149         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
24150         to empty.
24151
24152 2008-07-10  Ben Pfaff  <blp@gnu.org>
24153
24154         Add isnan module.
24155         * doc/posix-functions/isnan.texi: Mention new module.
24156         * lib/math.in.h: Define isnan macro if we have decided to replace
24157         it.
24158         * m4/isnan.m4: New file.
24159         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
24160         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
24161         also.
24162         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
24163         redundancy.
24164         * m4/math_h.m4: Initialize and substitute variables for isnan
24165         module.
24166         * modules/isnan: New file.
24167         * modules/isnan-tests: New file.
24168         * modules/math: Add substitutions for new module.
24169         * tests/test-isnan.c: New file.
24170         * MODULES.html.sh: Mention new module.
24171
24172 2008-07-10  Ben Pfaff  <blp@gnu.org>
24173
24174         Add isnanf module.
24175         * lib/isnanf.m4: New file.
24176         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
24177         (gl_HAVE_ISNANF_IN_LIBM): New macro.
24178         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
24179         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
24180         * modules/isnanf: New file.
24181         * modules/isnanf-tests: New file.
24182         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
24183         files.
24184         * tests/test-isnanf-nolibm.c: factored most of its contents into
24185         new file tests/test-isnanf.h.
24186         * tests/test-isnanf.h: New file.
24187         * tests/test-isnanf.c: New file.
24188         * MODULES.html.sh: Mention new module.
24189         * doc/glibc-functions/isnanf.texi: Mention new module.
24190
24191 2008-07-10  Ben Pfaff  <blp@gnu.org>
24192
24193         Add isnand module.
24194         * lib/isnand.h: New file.
24195         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
24196         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
24197         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
24198         functionality also.
24199         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
24200         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
24201         (gl_HAVE_ISNAND_IN_LIBM): New macro.
24202         * modules/isnand: New file.
24203         * modules/isnand-tests: New file.
24204         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
24205         files.
24206         * tests/test-isnand-nolibm.c: factored most of its contents into
24207         new file tests/test-isnand.h.
24208         * tests/test-isnand.h: New file.
24209         * tests/test-isnand.c: New file.
24210         * MODULES.html.sh: Mention new module.
24211
24212 2008-07-10  Ben Pfaff  <blp@gnu.org>
24213
24214         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
24215         * lib/isnand.h: Rename lib/isnand-nolibm.h.
24216         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
24217         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
24218         * modules/isnanf-nolibm: Update references to renamed files.
24219         * modules/isnand-nolibm: Likewise.
24220         * modules/isnanf-nolibm-tests: Likewise.
24221         * modules/isnand-nolibm-tests: Likewise.
24222         * lib/frexp.c: Likewise.
24223         * lib/isfinite.c: Likewise.
24224         * lib/signbitd.c: Likewise.
24225         * lib/signbitf.c: Likewise.
24226         * lib/vasnprintf.c: Likewise.
24227         * tests/test-ceilf1.c: Likewise.
24228         * tests/test-ceilf2.c: Likewise.
24229         * tests/test-floorf1.c: Likewise.
24230         * tests/test-floorf2.c: Likewise.
24231         * tests/test-frexp.c: Likewise.
24232         * tests/test-round1.c: Likewise.
24233         * tests/test-round2.c: Likewise.
24234         * tests/test-roundf1.c: Likewise.
24235         * tests/test-strtod.c: Likewise.
24236         * tests/test-trunc1.c: Likewise.
24237         * tests/test-trunc2.c: Likewise.
24238         * tests/test-truncf1.c: Likewise.
24239         * tests/test-truncf2.c: Likewise.
24240         * NEWS: Mention the renamed header files.
24241
24242 2008-07-11  Jim Meyering  <meyering@redhat.com>
24243
24244         vc-list-files: make the last-resort awk code more portable
24245         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
24246         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
24247         does not support it.
24248
24249 2008-07-10  Eric Blake  <ebb9@byu.net>
24250
24251         Work with tar's bootstrap.
24252         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
24253         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
24254         an m4 comment.
24255
24256 2008-07-09  Jim Meyering  <meyering@redhat.com>
24257
24258         posix-shell.m4: fix typo that made this test malfunction
24259         * m4/posix-shell.m4: Remove capitalization in variable name.
24260
24261 2008-07-08  Bruno Haible  <bruno@clisp.org>
24262
24263         * m4/onceonly.m4: Update comments.
24264         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24265
24266 2008-07-04  Jim Meyering  <meyering@redhat.com>
24267
24268         * users.txt: Add vc-dwim.
24269         (bison, coreutils): Use the gitweb URL.
24270
24271 2008-07-03  Jim Meyering  <meyering@redhat.com>
24272
24273         * users.txt: Add libffcall.  From Sam Steingold.
24274
24275 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
24276
24277         getdate.y: do not ignore TZ with relative day, month or year offset
24278         * lib/getdate.y (get_date): Move the tz-handling block to follow the
24279         relative-date-handling, since otherwise, the latter would clobber the
24280         sole output (an updated Start value) of the tz-handling block.
24281         * tests/test-getdate.c: Tests for the fix
24282
24283 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24284
24285         Recognize 'foo_LIBRARIES += libgnu.a'.
24286         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
24287         makefile snippet has already specified an installation location,
24288         also using '+='.
24289
24290 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
24291
24292         getdate.y: factor out common actions
24293         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
24294         Use them in place of open-coded actions.
24295
24296 2008-07-01  Simon Josefsson  <simon@josefsson.org>
24297
24298         Add self-test for getdate module.
24299         * modules/getdate-tests: New file.
24300         * tests/test-getdate.c: New file.
24301
24302 2008-06-29  Bruno Haible  <bruno@clisp.org>
24303
24304         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
24305         .gitignore.
24306         Reported by Sylvain Beucler <beuc@beuc.net>.
24307
24308 2008-06-29  Bruno Haible  <bruno@clisp.org>
24309
24310         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
24311         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24312
24313 2008-06-29  Bruno Haible  <bruno@clisp.org>
24314
24315         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24316         EXTRA_DIST.
24317         Reported by Sylvain Beucler <beuc@beuc.net>.
24318
24319 2008-06-26  Jim Meyering  <meyering@redhat.com>
24320
24321         make several modules depend on the "open" module
24322         This provides slightly increased consistency when opening-for-write
24323         the name of a non-directory spelled with a trailing slash.
24324         * modules/chdir-safer: Likewise.
24325         * modules/chown: Likewise.
24326         * modules/clean-temp: Likewise.
24327         * modules/copy-file: Likewise.
24328         * modules/fchdir: Likewise.
24329         * modules/fcntl-safer: Likewise.
24330         * modules/pipe: Likewise.
24331         * modules/utime: Likewise.
24332         Prompted by Eric Blake and Bruno Haible.
24333
24334 2008-06-24  Andreas Schwab  <schwab@suse.de>
24335
24336         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24337         literals can be used as initializers for global variables.
24338
24339 2008-06-23  Eric Blake  <ebb9@byu.net>
24340
24341         Make gnulib-cache.m4 easier to diff.
24342         * gnulib-tool (func_import): Allow newlines when reading cached
24343         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24344
24345 2008-06-23  Bruno Haible  <bruno@clisp.org>
24346
24347         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24348         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24349         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24350         m4/signalblocking.m4.
24351         (gl_PREREQ_SIGACTION): Don't invoke it.
24352         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24353         gl_PREREQ_SIG_HANDLER_H.
24354         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24355         Don't check for sigaction here.
24356
24357 2008-06-23  Bruno Haible  <bruno@clisp.org>
24358
24359         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24360         (install_handlers): Don't set the SA_RESETHAND flag.
24361
24362 2008-06-23  Bruno Haible  <bruno@clisp.org>
24363
24364         * m4/sigaction.m4: Comment fixes.
24365         * lib/signal.in.h: Likewise.
24366
24367 2008-06-23  Eric Blake  <ebb9@byu.net>
24368
24369         Fix typo.
24370         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24371
24372         Avoid SA_ namespace.
24373         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24374         Reported by Ralf Wildenhues.
24375
24376         Avoid test failure due to SA_RESTORER.
24377         * tests/test-sigaction.c (SA_MASK): New macro.
24378         (main): Avoid failing due to extension flags being set.
24379         Reported by Jim Meyering.
24380
24381         Revert use of sig-handler.h in sigprocmask.c.
24382         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24383         it requires the existence of struct sigaction.
24384         * lib/sigprocmask.c (handler_t): Restore typedef.
24385         (rpl_signal, old_handlers): Use local type.
24386
24387 2008-06-22  Bruno Haible  <bruno@clisp.org>
24388
24389         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24390         conditionally.
24391         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24392
24393 2008-06-22  Bruno Haible  <bruno@clisp.org>
24394
24395         * doc/posix-functions/siginterrupt.texi: Move note.
24396
24397         * lib/signal.in.h (SA_RESTART): New macro.
24398         * lib/sigaction.c: Update comment.
24399
24400         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24401
24402         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24403         (gl_PREREQ_SIGPROCMASK): Invoke it.
24404         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24405
24406         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24407
24408         * lib/sigprocmask.c: Update a comment.
24409
24410 2008-06-21  Eric Blake  <ebb9@byu.net>
24411
24412         Use sigaction module rather than signal().
24413         * modules/c-stack (Depends-on): Add sigaction.
24414         * modules/fatal-signal (Depends-on): Likewise.
24415         * modules/nanosleep (Depends-on): Likewise.
24416         * modules/sigprocmask (Files): Add sig-handler.h.
24417         * modules/sigaction (Files): Likewise.
24418         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24419         Eggert.
24420         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24421         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24422         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24423         (init_fatal_signals): Likewise.
24424         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24425         (siginterrupt): Delete fallback.
24426         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24427         instead.
24428         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24429         siginterrupt.
24430
24431         New module sigaction, for mingw.
24432         * modules/sigaction: New module...
24433         * modules/sigaction-tests: ...and its test.
24434         * m4/sigaction.m4: New file.
24435         * lib/sigaction.c: Likewise.
24436         * tests/test-sigaction.c: Likewise.
24437         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24438         * modules/signal (Makefile.am): Likewise.
24439         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24440         needed.
24441         * doc/posix-headers/signal.texi (signal.h): Mention provided
24442         types.
24443         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24444         that sigaction is preferable.
24445         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24446         module.
24447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24448         sigaction.
24449
24450         Improve robustness of sigprocmask by overriding signal.
24451         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24452         is in use.
24453         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24454         (SIGKILL, SIGSTOP): Provide fallbacks.
24455         (rpl_signal): Implement.
24456         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24457         signal can be called inside handlers.
24458
24459         Fix nanosleep module on mingw.
24460         * modules/nanosleep (Depends-on): Add sys_select.
24461         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24462
24463         Fix licensing of sigprocmask.
24464         * modules/raise (License): Relicense as LGPL.
24465
24466 2008-06-21  Bruno Haible  <bruno@clisp.org>
24467
24468         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24469         result if it contains question marks.
24470         Reported by Michael Geng <linux@michaelgeng.de>.
24471
24472 2008-06-19  Bruno Haible  <bruno@clisp.org>
24473
24474         Fix CVS-ism.
24475         * doc/gnulib.texi: Include updated-stamp.texi.
24476         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24477         (updated-stamp.texi): New rule.
24478         (gnulib.info): Depend on it.
24479         * doc/.gitignore: Add updated-stamp.texi.
24480         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24481
24482 2008-06-19  Bruno Haible  <bruno@clisp.org>
24483
24484         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24485         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24486
24487 2008-06-19  Eric Blake  <ebb9@byu.net>
24488
24489         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24490         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24491         Reported by Stepan Kasal.
24492
24493 2008-06-18  Bruno Haible  <bruno@clisp.org>
24494
24495         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24496         Reported by Eric Blake.
24497
24498 2008-06-18  Eric Blake  <ebb9@byu.net>
24499
24500         Work around cygwin 1.5.25 strsignal bug.
24501         * tests/test-strsignal.c: Allow for const char *.
24502         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24503
24504 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24505
24506         * users.txt: Update URL to article and add author/date
24507         information.
24508
24509 2008-06-17  Bruno Haible  <bruno@clisp.org>
24510
24511         New macro gl_DISABLE_THREADS.
24512         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24513         if the user did not pass --enable-threads or --disable-threads option.
24514         (gl_DISABLE_THREADS): New macro.
24515         Reported by Eric Blake <ebb9@byu.net>.
24516
24517 2008-06-17  Bruno Haible  <bruno@clisp.org>
24518
24519         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24520         when the macro ignores it.
24521         Based on a patch by Eric Blake <ebb9@byu.net>.
24522
24523 2008-06-17  Bruno Haible  <bruno@clisp.org>
24524
24525         * modules/tls (License): Change to LGPLv2+.
24526         Reported by Eric Blake.
24527
24528 2008-06-17  Eric Blake  <ebb9@byu.net>
24529
24530         Simplify c-stack prerequisites.
24531         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24532         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24533         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24534         check.
24535         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24536         <sys/resource.h>.
24537
24538         Move c-stack test into testsuite.
24539         * modules/c-stack-tests: New file.
24540         * lib/c-stack.c [DEBUG]: Move test program...
24541         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24542         fail test if sigaltstack is lacking.
24543         * tests/test-c-stack.sh: New driver file.
24544
24545 2008-06-16  Eric Blake  <ebb9@byu.net>
24546
24547         Use raise module consistently.
24548         * modules/fatal-signal (Depends-on): Add raise.
24549         * modules/sigprocmask (Depends-on): Likewise.
24550         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24551         * lib/sigprocmask.c (sigprocmask): Likewise.
24552         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24553         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24554
24555         Fix compliance bug in sigpending.
24556         * lib/sigprocmask.c (sigpending): Return pending array via
24557         parameter, not return value.
24558
24559 2008-06-14  Eric Blake  <ebb9@byu.net>
24560
24561         Improve obstack-printf test code.
24562         * tests/test-obstack-printf.c (test_function): Fix comment, and
24563         simplify usage of obstack_* in macros.  Add a test for coverage.
24564         Reported by Bruno Haible.
24565
24566 2008-06-14  Bruno Haible  <bruno@clisp.org>
24567
24568         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24569         array size as a constant, not as a const variable.
24570         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24571         AC_USE_SYSTEM_EXTENSIONS.
24572         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24573         Test whether the obstack_printf function actually exists.
24574         * modules/obstack-printf (Depends-on): Add extensions.
24575         (Include): Remove obstack.h.
24576         * modules/obstack-printf-posix (Depends-on): Add extensions.
24577         (Include): Remove obstack.h.
24578
24579 2008-06-13  Eric Blake  <ebb9@byu.net>
24580
24581         Add obstack-printf and obstack-printf-posix modules.
24582         * modules/obstack-printf: New file.
24583         * modules/obstack-printf-posix: Likewise.
24584         * MODULES.html.sh (Misc): Mention them.
24585         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24586         Likewise.
24587         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24588         Likewise.
24589         * modules/stdio (Makefile.am): Accomodate new modules.
24590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24591         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24592         Declare.
24593         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24594         functions.
24595         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24596         (gl_REPLACE_OBSTACK_PRINTF): New macros
24597         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24598         * tests/test-obstack-printf.c: New file.
24599         * modules/obstack-printf-tests: Likewise.
24600         * modules/obstack-printf-posix-tests: Likewise.
24601
24602 2008-06-11  Bruno Haible  <bruno@clisp.org>
24603
24604         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24605         * lib/open.c: Include errno.h.
24606         (open): Fail when attempting to write to a file that has a trailing
24607         slash.
24608         * tests/test-open.c (main): Test against trailing slash bug.
24609         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24610
24611 2008-06-10  Bruno Haible  <bruno@clisp.org>
24612
24613         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24614         for $? to work inside the trap command, with various /bin/sh-s.
24615         * tests/test-vc-list-files-cvs.sh: Likewise.
24616
24617 2008-06-10  Bruno Haible  <bruno@clisp.org>
24618
24619         * lib/acl-internal.h: Don't include gettext.h here.
24620         * lib/set-mode-acl.c: Include gettext.h here.
24621         * lib/copy-acl.c: Likewise.
24622
24623 2008-06-10  Bruno Haible  <bruno@clisp.org>
24624
24625         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24626         * lib/wait-process.c (wait_subprocess): Likewise.
24627         * lib/execute.h (execute): Add termsigp argument.
24628         * lib/execute.c (execute): Likewise.
24629         * lib/csharpcomp.c (compile_csharp_using_pnet,
24630         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24631         * lib/csharpexec.c (execute_csharp_using_pnet,
24632         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24633         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24634         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24635         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24636         is_jikes_present): Update.
24637         * lib/javaexec.c (execute_java_class): Update.
24638         * lib/javaversion.c (execute_and_read_line): Update.
24639         * NEWS: Document the changes.
24640         Reported by Eric Blake.
24641
24642 2008-06-10  Eric Blake  <ebb9@byu.net>
24643
24644         Add missing include.
24645         * tests/test-strstr.c (includes): Add <signal.h>.
24646         * tests/test-strcasestr.c (includes): Likewise.
24647         * tests/test-memmem.c (includes): Likewise.
24648
24649 2008-06-10  Bruno Haible  <bruno@clisp.org>
24650
24651         * lib/wait-process.c (wait_subprocess): Add an assertion.
24652
24653 2008-06-10  Bruno Haible  <bruno@clisp.org>
24654
24655         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24656
24657 2008-06-10  Bruno Haible  <bruno@clisp.org>
24658
24659         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24660         using alarm().
24661         * tests/test-strcasestr.c (main): Likewise.
24662         * tests/test-strstr.c (main): Likewise.
24663
24664 2008-06-09  Bruno Haible  <bruno@clisp.org>
24665
24666         Work around the Solaris 10 ACE ACLs ABI change.
24667         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24668         declare if ACL_NO_TRIVIAL is present.
24669         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24670         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24671         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24672         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24673         define if ACL_NO_TRIVIAL is present.
24674         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24675         and use the current ABI.
24676         (file_has_acl): Use same #if condition as elsewhere.
24677         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24678         in use, and use the current ABI.
24679         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24680         Reported by Jim Meyering.
24681
24682 2008-06-09  Eric Blake  <ebb9@byu.net>
24683
24684         Work around environments that (stupidly) ignore SIGALRM.
24685         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24686         before using alarm().
24687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24688         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24689         Reported by Ian Beckwith <ianb@erislabs.net>.
24690
24691         Produce autobuild blurb earlier in log.
24692         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24693
24694 2008-06-09  Jim Meyering  <meyering@redhat.com>
24695         and Ondřej Vašík  <ovasik@redhat.com>
24696
24697         utimens.c: correct kernel bug work-around
24698         Ondřej Vašík found that the invalid return value of 280 indicates
24699         failure, not success, and the kernel bug we're trying to work
24700         around affects not just the utimensat call, but also the fallback
24701         futimens call.
24702         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24703         not success.
24704         [HAVE_FUTIMENS]: Use the same work-around, here.
24705
24706 2008-06-09  Jim Meyering  <meyering@redhat.com>
24707
24708         add more guards around definition of ACE_-related code
24709         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24710         ALLOW and ACE_OWNER are also defined.
24711
24712 2008-06-08  Bruno Haible  <bruno@clisp.org>
24713
24714         * lib/acl-internal.h: Add me as co-author.
24715         * lib/file-has-acl.c: Likewise.
24716         * lib/set-mode-acl.c: Likewise.
24717         * lib/copy-acl.c: Likewise.
24718
24719 2008-06-08  Bruno Haible  <bruno@clisp.org>
24720
24721         Add support for AIX ACLs.
24722         * lib/acl-internal.h (acl_nontrivial): New declaration.
24723         * lib/file-has-acl.c (acl_nontrivial): New function.
24724         (file_has_acl): Add implementation using AIX 4 ACL API.
24725         * lib/set-mode-acl.c (qset_acl): Likewise.
24726         * lib/copy-acl.c (qcopy_acl): Likewise.
24727
24728 2008-06-08  Bruno Haible  <bruno@clisp.org>
24729
24730         Add support for HP-UX ACLs.
24731         * lib/acl-internal.h (acl_nontrivial): New declaration.
24732         * lib/file-has-acl.c (acl_nontrivial): New function.
24733         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24734         * lib/set-mode-acl.c (qset_acl): Likewise.
24735         * lib/copy-acl.c (qcopy_acl): Likewise.
24736
24737 2008-06-08  Bruno Haible  <bruno@clisp.org>
24738
24739         Add support for Cygwin ACLs.
24740         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24741         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24742         the chmod_or_fchmod call.
24743         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24744
24745 2008-06-08  Bruno Haible  <bruno@clisp.org>
24746
24747         Fix bug with setuid modes in Solaris 10+ code.
24748         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24749         succeeded, when the mode contains some special bits.
24750
24751 2008-06-08  Bruno Haible  <bruno@clisp.org>
24752
24753         Add support for Solaris 7..10 ACLs.
24754         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24755         declarations.
24756         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24757         functions.
24758         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24759         * lib/set-mode-acl.c (qset_acl): Likewise.
24760         * lib/copy-acl.c (qcopy_acl): Likewise.
24761
24762 2008-06-08  Bruno Haible  <bruno@clisp.org>
24763
24764         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24765         declaration.
24766         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24767         (acl_access_nontrivial): Remove MacOS X case.
24768         (file_has_acl): Use acl_extended_nontrivial.
24769         * lib/copy-acl.c (qcopy_acl): Likewise.
24770
24771 2008-06-08  Bruno Haible  <bruno@clisp.org>
24772
24773         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24774
24775 2008-06-08  Jim Meyering  <meyering@redhat.com>
24776
24777         * modules/acl (Maintainer): Add Bruno Haible.
24778
24779 2008-06-07  Bruno Haible  <bruno@clisp.org>
24780
24781         Improve support for Tru64 ACLs.
24782         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24783         ACL on OSF/1.
24784
24785 2008-06-07  Bruno Haible  <bruno@clisp.org>
24786
24787         Add support for MacOS X ACLs.
24788         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24789         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24790         * lib/set-mode-acl.c (qset_acl): Likewise.
24791         * lib/copy-acl.c (qcopy_acl): Likewise.
24792
24793 2008-06-07  Bruno Haible  <bruno@clisp.org>
24794
24795         Fix memory leak introduced on 2008-05-22.
24796         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24797         use.
24798
24799 2008-06-07  Bruno Haible  <bruno@clisp.org>
24800
24801         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24802         to construct an empty ACL.
24803
24804 2008-06-07  Bruno Haible  <bruno@clisp.org>
24805
24806         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24807         precisely.
24808         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24809
24810 2008-06-07  Bruno Haible  <bruno@clisp.org>
24811
24812         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24813         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24814
24815 2008-06-07  Bruno Haible  <bruno@clisp.org>
24816
24817         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24818         regardless of POSIX.
24819         * doc/posix-functions/_longjmp.texi: Likewise.
24820         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24821         SystemV platform in this case.
24822
24823 2008-06-06  Eric Blake  <ebb9@byu.net>
24824
24825         Document abort() bugs.
24826         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24827
24828         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24829         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24830         sigsetjmp.
24831         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24832         siglongjmp, but only as a macro.
24833         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24834         is obsolete.
24835         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24836
24837         Tweak documentation to cover cygwin argz bugs.
24838         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24839         argz bug fix; no code change needed since no cygwin releases
24840         occurred between the last fix and the bug being tested.
24841         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24842         module and recently fixed cygwin bugs.
24843         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24844         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24845         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24846         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24847         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24848         Likewise.
24849         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24850         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24851         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24852         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24853         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24854         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24855         Likewise.
24856
24857         Avoid gcc warning on cygwin.
24858         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24859         !ACL_NO_TRIVIAL]: Avoid unused variable.
24860
24861 2008-06-05  Eric Blake  <ebb9@byu.net>
24862
24863         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24864         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24865         git-version-gen fails to come up with a version.
24866         Reported by Simon Josefsson.
24867
24868 2008-06-05  Jim Meyering  <meyering@redhat.com>
24869             Paul Eggert  <eggert@cs.ucla.edu>
24870
24871         utimens.c: work around a probable Linux kernel bug
24872         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24873         appears to be a kernel bug that causes utimensat to return 280
24874         instead of 0, indicating success.
24875
24876 2008-06-04  Bruno Haible  <bruno@clisp.org>
24877
24878         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24879         2008-06-01 commit.
24880
24881 2008-06-04  Bruno Haible  <bruno@clisp.org>
24882
24883         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24884         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24885         (file_has_acl): Use it. Save errno afterwards.
24886         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24887
24888 2008-06-03  Bruno Haible  <bruno@clisp.org>
24889
24890         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24891         draft code. Simplify #ifs.
24892         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24893         Put Solaris code after POSIX-draft code. Fix comments regarding
24894         Solaris 10, HP-UX. Mention Cygwin.
24895         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24896
24897 2008-06-03  Eric Blake  <ebb9@byu.net>
24898
24899         Provide fallback for older kernels.
24900         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24901         Provide runtime fallback if kernel lacks support.
24902         Reported by Mike Frysinger.
24903
24904 2008-06-02  Bruno Haible  <bruno@clisp.org>
24905
24906         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24907         it exists.
24908
24909 2008-06-02  Bruno Haible  <bruno@clisp.org>
24910
24911         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24912         * lib/copy-acl.c (qcopy_acl): Update comment.
24913
24914 2008-06-02  Bruno Haible  <bruno@clisp.org>
24915
24916         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24917         like ACL APIs.
24918
24919 2008-06-02  Bruno Haible  <bruno@clisp.org>
24920
24921         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24922         * tests/test-set-mode-acl.sh: Likewise.
24923         * tests/test-copy-acl.sh: Likewise.
24924         * tests/test-copy-file.sh: Likewise.
24925
24926 2008-06-02  Bruno Haible  <bruno@clisp.org>
24927
24928         * tests/test-file-has-acl.sh: Remove unused code.
24929
24930 2008-06-01  Bruno Haible  <bruno@clisp.org>
24931
24932         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24933         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24934         messages.
24935         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24936
24937 2008-06-01  Bruno Haible  <bruno@clisp.org>
24938
24939         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24940         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24941         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24942         APIs.
24943         * modules/acl-tests (configure.ac): Remove tests now contained in
24944         m4/acl.m4.
24945
24946 2008-06-02  Jim Meyering  <meyering@redhat.com>
24947
24948         announce-gen: use a better key-server host name
24949         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24950         it may be more consistently reliable.  Suggested by Werner Koch
24951         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24952
24953 2008-06-01  Bruno Haible  <bruno@clisp.org>
24954
24955         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24956         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24957
24958 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24959
24960         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24961
24962 2008-06-01  Bruno Haible  <bruno@clisp.org>
24963
24964         New ACL tests.
24965         * tests/test-file-has-acl.sh: New file.
24966         * tests/test-file-has-acl.c: New file.
24967         * tests/test-set-mode-acl.sh: New file.
24968         * tests/test-set-mode-acl.c: New file.
24969         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24970         * tests/test-copy-acl.c: New file.
24971         * modules/acl-tests: New file, based on modules/copy-file-tests.
24972         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24973         (Depends-on): Add acl-tests.
24974         (configure.ac): Remove checks.
24975         (Makefile.am): Don't create test-sameacls program here any more.
24976
24977 2008-06-01  Bruno Haible  <bruno@clisp.org>
24978
24979         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24980         * tests/test-sameacls.c: Include progname.h.
24981         (main): Invoke set_program_name. Portability fixes for MacOS X,
24982         Solaris, HP-UX.
24983
24984 2008-06-01  Bruno Haible  <bruno@clisp.org>
24985
24986         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24987         function.
24988         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24989
24990 2008-06-01  Bruno Haible  <bruno@clisp.org>
24991
24992         * modules/rpmatch (Depends-on): Add strdup.
24993
24994 2008-06-01  Bruno Haible  <bruno@clisp.org>
24995
24996         * lib/pipe.c: Include unistd-safer.h.
24997         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24998         * modules/pipe (Depends-on): Add unistd-safer.
24999
25000 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25001
25002         * modules/autobuild (configure.ac): Call AB_INIT.
25003
25004 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25005
25006         * tests/test-getaddrinfo.c: Don't print debug messages by default.
25007         Suggested by Bruno Haible <bruno@clisp.org>.
25008
25009 2008-05-30  Simon Josefsson  <simon@josefsson.org>
25010
25011         * tests/test-base64.c: Cast size_t to unsigned long when invoking
25012         printf.  Use %lu instead of %d.  Reported by Bruno Haible
25013         <bruno@clisp.org>.
25014
25015 2008-05-29  Eric Blake  <ebb9@byu.net>
25016
25017         Prefer new POSIX 200x interfaces over futimesat.
25018         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
25019         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
25020         when available.
25021         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
25022
25023 2008-05-28  Bruno Haible  <bruno@clisp.org>
25024
25025         * modules/stpcpy (License): Change to LGPLv2+.
25026         Requested by David Lutterkort <dlutter@redhat.com>.
25027
25028 2008-05-27  Bruno Haible  <bruno@clisp.org>
25029
25030         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
25031         current mingw.
25032         Reported by Jose E. Marchesi <jemarch@gnu.org>.
25033
25034 2008-05-27  Bruno Haible  <bruno@clisp.org>
25035
25036         * modules/iconv_open (Link): New section, from module 'iconv'.
25037         * modules/striconv (Link): Likewise.
25038         * modules/striconveh (Link): Likewise.
25039         * modules/xstriconv (Link): Likewise.
25040         * modules/unicodeio (Link): Likewise.
25041         * modules/propername (Link): Likewise.
25042         Reported by Jim Meyering.
25043
25044 2008-05-26  Jim Meyering  <meyering@redhat.com>
25045
25046         sha256: do not artificially restrict buffer length to be < 2^32
25047         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
25048         uint32_t to size_t.
25049         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
25050         to match.
25051
25052         avoid unaligned access errors, e.g., on sparc
25053         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
25054         direct access through a possibly-unaligned uint64* pointer.
25055         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
25056         direct access through a possibly-unaligned uint32* pointer.
25057         Prompted by this patch from Tom "spot" Callaway:
25058         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
25059
25060         sha512.c: fix typo in comment
25061         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
25062
25063 2008-05-25  Bruno Haible  <bruno@clisp.org>
25064
25065         * lib/set-mode-acl.c: Renamed from lib/acl.c.
25066         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
25067         (Makefile.am): Update lib_SOURCES.
25068
25069 2008-05-25  Bruno Haible  <bruno@clisp.org>
25070
25071         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
25072
25073 2008-05-25  Jim Meyering  <meyering@redhat.com>
25074
25075         useless-if-before-free: freed expr may have white-space differences
25076         * build-aux/useless-if-before-free: Recognize cases in which the
25077         freed expression differs from the tested one in embedded white
25078         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
25079         $1 was used, so we can't make any regexp shy.  Improved tests now
25080         detect this.
25081
25082         useless-if-before-free: accept white space in the expression.
25083         * build-aux/useless-if-before-free: For now, any white space
25084         in the expression must be identical in the free argument.
25085
25086         useless-if-before-free: efficiency tweak
25087         * build-aux/useless-if-before-free: Make the expression-matching
25088         regexp "shy".
25089         Make the *outer* regexp shy, not the expr-matching one.
25090
25091         update code-in-comment to accept cast of free arg
25092         * build-aux/useless-if-before-free: Update regexp.
25093
25094 2008-05-25  Bruno Haible  <bruno@clisp.org>
25095
25096         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
25097         * modules/copy-file-tests (Files, Makefile.am): Update.
25098         * tests/test-copy-file.c (func_test_copy): Update.
25099
25100 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
25101
25102         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
25103
25104 2008-05-23  Bruno Haible  <bruno@clisp.org>
25105
25106         Improve support for ACLs on OSF/1.
25107         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
25108         Remove fallback for unknown flavors of ACLs.
25109
25110 2008-05-22  Bruno Haible  <bruno@clisp.org>
25111
25112         Add support for ACLs on OSF/1.
25113         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
25114         replacements.
25115         (acl_free_text): New macro fallback.
25116         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
25117         acl_free.
25118         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
25119         acl_free_text function. Require AC_C_INLINE.
25120
25121 2008-05-22  Bruno Haible  <bruno@clisp.org>
25122
25123         Make copy_acl work on MacOS X 10.5.
25124         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
25125         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
25126         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
25127         If MODE_INSIDE_ACL, don't assume that every system has the same text
25128         representation for ACLs as FreeBSD.
25129         * lib/copy-acl.c (copy_acl): Add support for platforms with
25130         !MODE_INSIDE_ACL.
25131         * lib/file-has-acl.c (file_has_acl): Likewise.
25132         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
25133         FreeBSD, MacOS X, or IRIX, respectively.
25134
25135 2008-05-22  Bruno Haible  <bruno@clisp.org>
25136
25137         * lib/acl.h: Don't include <sys/acl.h>.
25138         (GETACLCNT): Move fallback to lib/acl-internal.h.
25139         * lib/acl-internal.h: Include <sys/acl.h> here.
25140         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
25141
25142 2008-05-22  Bruno Haible  <bruno@clisp.org>
25143
25144         Split off copy_acl function to separate file.
25145         * lib/copy-acl.c: New file, extracted from lib/acl.c.
25146         * lib/acl.c (copy_acl): Moved function to separate file.
25147         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
25148         * modules/acl (Files): Add lib/copy-acl.c.
25149         (Makefiles.am): Augment lib_SOURCES.
25150
25151 2008-05-22  Bruno Haible  <bruno@clisp.org>
25152
25153         * modules/copy-file-tests: New file.
25154         * tests/test-copy-file.sh: New file.
25155         * tests/test-copy-file.c: New file.
25156         * tests/test-copy-file-sameacls.c: New file.
25157
25158 2008-05-22  Eric Blake  <ebb9@byu.net>
25159
25160         Avoid gcc warning.
25161         * tests/test-memcmp.c (main): Pass NULL indirectly.
25162
25163 2008-05-21  Bruno Haible  <bruno@clisp.org>
25164
25165         Add reference doc about ACLs.
25166         * doc/acl-resources.txt: New file.
25167         * doc/acl-cygwin.txt: New file.
25168
25169 2008-05-21  Bruno Haible  <bruno@clisp.org>
25170
25171         Avoid one more warning from gcc.
25172         * lib/vasnprintf.c (IF_LINT): Update comments.
25173         (VASNPRINTF): Use it also for the 'prefix' array initializer.
25174
25175 2008-05-21  Jim Meyering  <meyering@redhat.com>
25176
25177         avoid a warning from gcc
25178         * lib/vasnprintf.c (IF_LINT): Define.
25179         (scale10_round_decimal_long_double):
25180         Use it to avoid a "may be used uninitialized" warning.
25181         (scale10_round_decimal_double): Likewise.
25182
25183 2008-05-21  Simon Josefsson  <simon@josefsson.org>
25184
25185         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
25186         declared.
25187
25188 2008-05-20  Bruno Haible  <bruno@clisp.org>
25189
25190         * tests/test-memcmp.c (main): Test also the sign of the result. Test
25191         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
25192
25193 2008-05-20  Simon Josefsson  <simon@josefsson.org>
25194
25195         * modules/memcmp-tests: New file.
25196         * tests/test-memcmp.c: New file.
25197
25198 2008-05-19  Bruno Haible  <bruno@clisp.org>
25199
25200         * modules/propername (Notice, configure.ac): Put quoted "..." into
25201         --keyword option.
25202         * lib/propername.h: Update comments accordingly.
25203         Reported by Eric Blake.
25204
25205 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
25206
25207         * modules/getpass-gnu (Depends-on): Add fseeko.
25208
25209 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25210
25211         * modules/base64-tests: New file.
25212
25213 2008-05-19  Bo Borgerson <gigabo@gmail.com>
25214
25215         * lib/base64.c (base64_decode_ctx): If a decode context structure
25216         was passed in use it to ignore newlines.  If a context structure
25217         was _not_ passed in, continue to treat newlines as garbage (this
25218         is the historical behavior).  Formerly base64_decode.
25219         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25220         takes a decode context structure.
25221         * lib/base64.h (base64_decode): Macro for four-argument calls.
25222         (base64_decode_alloc): Likewise.
25223         * lib/base64.c (base64_decode_ctx): If a decode context structure
25224         was passed in use it to ignore newlines.  If a context structure
25225         was _not_ passed in, continue to treat newlines as garbage (this
25226         is the historical behavior).  Formerly base64_decode.
25227         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25228         takes a decode context structure.
25229         * lib/base64.h (base64_decode): Macro for four-argument calls.
25230         (base64_decode_alloc): Likewise.
25231
25232 2008-05-19  Jim Meyering  <meyering@redhat.com>
25233
25234         avoid a warning from gcc
25235         * lib/trim.c (IF_LINT): Define.
25236         (trim2): Use it to avoid a "may be used uninitialized" warning.
25237
25238         Fix doc typo.
25239         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
25240
25241 2008-05-19  Bruno Haible  <bruno@clisp.org>
25242
25243         * doc/glibc-functions/getpass.texi: Document limits of other
25244         implementations.
25245
25246 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25247             Bruno Haible <bruno@clisp.org>
25248
25249         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
25250
25251 2008-05-18  Bruno Haible  <bruno@clisp.org>
25252
25253         * modules/propername: New file, from GNU gettext.
25254         * lib/propername.h: New file, from GNU gettext.
25255         * lib/propername.c: New file, from GNU gettext.
25256         * MODULES.html.sh (Internationalization functions): Add propername.
25257
25258 2008-05-16  Jim Meyering  <meyering@redhat.com>
25259             Bruno Haible  <bruno@clisp.org>
25260
25261         Avoid some warnings from "gcc -Wshadow".
25262         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
25263
25264 2008-05-15  Eric Blake  <ebb9@byu.net>
25265
25266         Extend previous patch to cygwin 1.7.0.
25267         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
25268         fast implementation in cygwin >= 1.7.0.
25269         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25271
25272 2008-05-15  Bruno Haible  <bruno@clisp.org>
25273
25274         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
25275         implementation in glibc >= 2.9.
25276         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25277         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25278
25279 2008-05-15  Bruno Haible  <bruno@clisp.org>
25280
25281         * MODULES.html.sh (Internationalization functions): Remove linebreak.
25282         (Unicode string functions): Add unilbrk/*.
25283         Reported by Karl Berry.
25284
25285 2008-05-15  Eric Blake  <ebb9@byu.net>
25286
25287         Fix violation of <stdbool.h> replacement in regex.
25288         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
25289         * lib/regexec.c (re_search_internal): Likewise.
25290         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
25291
25292 2008-05-15  Jim Meyering  <meyering@redhat.com>
25293
25294         avoid distracting test output when git or cvs is not found
25295         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
25296         * tests/test-vc-list-files-git.sh: Likewise.
25297
25298 2008-05-15  Eric Blake  <ebb9@byu.net>
25299
25300         Glibc finally accepted the memmem speedup code, bugzilla #5514.
25301         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
25302         glibc version.
25303         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25304         * doc/posix-functions/strstr.texi (strstr): Likewise.
25305         * lib/str-two-way.h (MAX): Sychronize with glibc.
25306
25307 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
25308
25309         * lib/regcomp.c (optimize_utf8): Add a note on why we test
25310         opr.ctx_type.
25311         (calc_first): Initialize constraint field.
25312         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25313         Fix grammar.
25314         (duplicate_node): Merge constraint field for all node types.
25315         (calc_eclosure_iter): Look at constraint field for all node types.
25316         * lib/regex_internal.c (create_cd_newstate): Don't look at
25317         opr.ctx_type.
25318
25319 2008-05-14  Bruno Haible  <bruno@clisp.org>
25320
25321         Help GCC to do better code generation.
25322         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25323         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25324         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25325         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25326         Declare with attribute 'malloc' if supported.
25327
25328 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25329
25330         use "echo STR|wc -c" rather than unportable "expr length STR"
25331         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25332         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25333
25334 2008-05-14  Jim Meyering  <meyering@redhat.com>
25335
25336         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25337         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25338         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25339         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25340         via Collin Lasse.
25341
25342 2008-05-14  Eric Blake  <ebb9@byu.net>
25343
25344         Avoid quadratic growth in gl_LIBSOURCES.
25345         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25346         Suggested by Bruno Haible.
25347
25348         Test xmemdup0.
25349         * modules/xmemdup0-tests: New file.
25350         * tests/test-xmemdup0.c: Likewise.
25351
25352 2008-05-13  Eric Blake  <ebb9@byu.net>
25353
25354         Split xmemdup0 into its own module.
25355         * modules/xmemdup0: New file.
25356         * lib/xmemdup0.h: Likewise.
25357         * lib/xmemdup0.c: Likewise.
25358         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25359         * lib/xalloc.h (xmemdup0): Remove.
25360         * lib/xmalloc.c (xmemdup0): Likewise.
25361
25362 2008-05-13  Eric Blake  <ebb9@byu.net>
25363             Bruno Haible  <bruno@clisp.org>
25364
25365         Reduce number of forks required during autoconf.
25366         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25367         and gl_LIBSOURCES_DIR.
25368         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25369         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25370         m4_syscmd per file.
25371         <m4_foreach_w>: Move...
25372         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25373
25374 2008-05-13  Eric Blake  <ebb9@byu.net>
25375
25376         * gnulib-tool: Fix various comment typos.
25377
25378 2008-05-12  Bruno Haible  <bruno@clisp.org>
25379
25380         Tailor the linebreaking algorithm.
25381         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25382
25383 2008-05-12  Bruno Haible  <bruno@clisp.org>
25384
25385         Update to Unicode 5.0.0.
25386         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25387         LBP_JV, LBP_JT. Redistribute values.
25388         (unilbrk_table): Change size.
25389         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25390         Unicode TR#14 rev. 22.
25391         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25392         LBP_JV, LBP_JT. Redistribute values.
25393         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25394         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25395         Update.
25396         * lib/unilbrk/lbrkprop1.h: Regenerated.
25397         * lib/unilbrk/lbrkprop2.h: Regenerated.
25398         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25399         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25400         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25401         Likewise.
25402         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25403         Likewise.
25404         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25405         result.
25406         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25407         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25408         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25409         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25410         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25411         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25412
25413 2008-05-11  Bruno Haible  <bruno@clisp.org>
25414
25415         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25416
25417 2008-05-11  Bruno Haible  <bruno@clisp.org>
25418
25419         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25420         * modules/unilbrk/gen-lbrk: New file.
25421
25422 2008-05-11  Bruno Haible  <bruno@clisp.org>
25423
25424         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25425         * m4/sha512.m4 (gl_SHA512): Likewise.
25426
25427 2008-05-11  Jim Meyering  <meyering@redhat.com>
25428
25429         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25430         * modules/crypto/sha256: New file.
25431         * modules/crypto/sha512: Likewise.
25432         * lib/sha256.c: Likewise.
25433         * lib/sha256.h: Likewise.
25434         * lib/sha512.c: Likewise.
25435         * lib/sha512.h: Likewise.
25436         * lib/u64.h: Likewise.
25437         * m4/sha256.m4: Likewise.
25438         * m4/sha512.m4: Likewise.
25439         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25440
25441 2008-05-10  Bruno Haible  <bruno@clisp.org>
25442
25443         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25444         (Input/Output <stdio.h>): Add xprintf.
25445         (Signal handling <signal.h>): Add strsignal.
25446         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25447         (Core language properties): Add func.
25448         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25449         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25450         strings.
25451         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25452         (Input/output): New section.
25453         (File system functions): Add openat-die, stat-macros.
25454         (Networking functions): Add sockets.
25455         (Unicode string functions): Add unictype/*.
25456         (Support for building libraries and executables): Add gperf.
25457         (Support for building documentation): Add agpl-3.0.
25458         (Misc): Add nocrash.
25459
25460 2008-05-10  Bruno Haible  <bruno@clisp.org>
25461
25462         * modules/unictype/gen-ctype: New file.
25463
25464 2008-05-10  Jim Meyering  <meyering@redhat.com>
25465
25466         Make chdir-safer.c more efficient on a system with no symlinks.
25467         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25468         also if ELOOP is zero.  Suggested by Bruno Haible.
25469
25470         Make chdir-safer.c slightly safer.
25471         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25472         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25473
25474         Avoid compile failure on systems without ELOOP (like mingw).
25475         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25476         Reported by Bruno Haible.
25477
25478 2008-05-10  Bruno Haible  <bruno@clisp.org>
25479
25480         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25481         (is_utf8_encoding): Use a case-insensitive comparison.
25482         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25483         streq.
25484
25485 2008-05-10  Bruno Haible  <bruno@clisp.org>
25486
25487         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25488         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25489         * lib/unilbrk/ulc-common.h (iconv_string_length,
25490         iconv_string_keeping_offsets): Remove declarations.
25491         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25492         Don't include <iconv.h>, streq.h, xsize.h.
25493         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25494         conversion.
25495         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25496         <iconv.h>, streq.h, xsize.h.
25497         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25498         conversion.
25499         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25500         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25501         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25502         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25503
25504 2008-05-10  Bruno Haible  <bruno@clisp.org>
25505
25506         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25507         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25508
25509         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25510         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25511
25512         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25513         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25514
25515         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25516         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25517
25518         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25519         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25520
25521         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25522         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25523
25524         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25525         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25526
25527         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25528         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25529
25530 2008-05-10  Bruno Haible  <bruno@clisp.org>
25531
25532         Split up 'linebreak' module.
25533         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25534         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25535         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25536         modifications.
25537         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25538         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25539         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25540         lib/linebreak.c.
25541         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25542         lib/linebreak.c.
25543         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25544         lib/linebreak.c.
25545         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25546         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25547         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25548         lib/linebreak.c.
25549         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25550         lib/linebreak.c.
25551         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25552         lib/linebreak.c.
25553         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25554         lib/linebreak.c.
25555         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25556         lib/linebreak.c.
25557         * modules/unilbrk/base: New file.
25558         * modules/unilbrk/tables: New file.
25559         * modules/unilbrk/u8-possible-linebreaks: New file.
25560         * modules/unilbrk/u16-possible-linebreaks: New file.
25561         * modules/unilbrk/u32-possible-linebreaks: New file.
25562         * modules/unilbrk/ulc-common: New file.
25563         * modules/unilbrk/ulc-possible-linebreaks: New file.
25564         * modules/unilbrk/u8-width-linebreaks: New file.
25565         * modules/unilbrk/u16-width-linebreaks: New file.
25566         * modules/unilbrk/u32-width-linebreaks: New file.
25567         * modules/unilbrk/ulc-width-linebreaks: New file.
25568         * lib/linebreak.h: Remove file.
25569         * lib/linebreak.c: Remove file.
25570         * m4/linebreak.m4: Remove file.
25571         * modules/linebreak: Remove file.
25572         * NEWS: Mention the changes.
25573
25574 2008-05-09  Eric Blake  <ebb9@byu.net>
25575
25576         Add xmemdup0.
25577         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25578         implementation.
25579         * lib/xmalloc.c (xmemdup0): New C implementation.
25580
25581 2008-05-08  Bruno Haible  <bruno@clisp.org>
25582
25583         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25584
25585 2008-05-07  Eric Blake  <ebb9@byu.net>
25586
25587         Support cross-compilation of <wctype.h>.
25588         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25589         AC_CACHE_CHECK.
25590
25591 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25592
25593         * build-aux/vc-list-files: Add support for bzr.
25594
25595 2008-05-03  Jim Meyering  <meyering@redhat.com>
25596
25597         avoid failed assertion with tight malloc
25598         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25599
25600 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25601
25602         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25603         are needed from arpa/inet.h.
25604         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25605         Reported by Bruno Haible.
25606
25607 2008-05-02  Jim Meyering  <meyering@redhat.com>
25608
25609         avoid compilation error on FreeBSD 6
25610         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25611
25612 2008-05-01  Jim Meyering  <meyering@redhat.com>
25613
25614         useless-if-before-free: correct --help's exit status description
25615         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25616         for one or more matches, etc.  Reported by Bruno Haible.
25617
25618         vc-list-files: make the stand-alone gnulib test work
25619         * modules/vc-list-files-tests (configure.ac):
25620         Define and AC_SUBST abs_aux_dir.
25621         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25622         $(abs_top_srcdir) to each script and having each of them
25623         duplicate the work of setting PATH, set PATH here, using
25624         the new variable, abs_aux_dir instead.
25625         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25626         * tests/test-vc-list-files-git.sh: Likewise.
25627         Reported by Bruno Haible.
25628
25629 2008-05-01  Bruno Haible  <bruno@clisp.org>
25630
25631         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25632         reallocation. Rename 'done' to 'found_delimiter'.
25633
25634 2008-05-01  Jim Meyering  <meyering@redhat.com>
25635
25636         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25637         * build-aux/vc-list-files: Use `...`, not $(...).
25638
25639 2008-04-30  Jim Meyering  <meyering@redhat.com>
25640
25641         add tests for vc-list-files
25642         * modules/vc-list-files-tests: New module.
25643         * tests/test-vc-list-files-cvs.sh: New file.
25644         * tests/test-vc-list-files-git.sh: New file.
25645
25646         avoid a warning from gcc
25647         * lib/getndelim2.c (IF_LINT): Define.
25648         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25649
25650         vc-list-files: work properly with build-aux/cvsu, too
25651         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25652         to all cvs-based clauses.
25653
25654         vc-list-files: work properly in the CVS+awk case, too
25655         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25656
25657         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25658         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25659         take more than one file argument, so .  Add quotes, just in case $dir
25660         ever contains a shell meta-character.  Prompted by Soren Hansen in
25661         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25662
25663 2008-04-29  Eric Blake  <ebb9@byu.net>
25664
25665         Optimize getndelim2 to use block operations when possible.
25666         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25667         freadseek, and memchr2.
25668         * lib/getndelim2.c (getndelim2): Use them for block reads.
25669
25670 2008-04-29  Bruno Haible  <bruno@clisp.org>
25671
25672         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25673         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25674         * modules/inet_ntop (Depends-on): Add extensions.
25675         * modules/inet_pton (Depends-on): Likewise.
25676         Reported by Simon Josefsson.
25677
25678 2008-04-29  Jim Meyering  <meyering@redhat.com>
25679
25680         When the is more than one match in a block, match all of them.
25681         * build-aux/useless-if-before-free: Iterate through each block
25682         until there are no more matches.
25683
25684         Fix broken useless-if-before-free script.
25685         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25686         the expression to match cast of argument to free-like function.
25687
25688 2008-04-29  Eric Blake  <ebb9@byu.net>
25689
25690         Use new header.
25691         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25692
25693 2008-04-29  Jim Meyering  <meyering@redhat.com>
25694
25695         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25696         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25697         by gnulib to exist and to declare e.g., inet_ntop.
25698         Don't include "inet_ntop.h", now removed.
25699
25700         * m4/arpa_inet_h.m4: Remove trailing blanks.
25701
25702 2008-04-29  Eric Blake  <ebb9@byu.net>
25703
25704         Silence valgrind on safe reads beyond potential array bounds.
25705         * lib/rawmemchr.valgrind: New file.
25706         * lib/strchrnul.valgrind: Likewise.
25707         * modules/rawmemchr (Files): Distribute new file.
25708         * modules/strchrnul (Files): Likewise.
25709         Suggested by Bruno Haible.
25710
25711 2008-04-29  Bruno Haible  <bruno@clisp.org>
25712
25713         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25714         (inet_ntop, inet_pton): Change portability warning's wording.
25715         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25716         Invoke gl_CHECK_NEXT_HEADERS.
25717         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25718         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25719         set ARPA_INET_H.
25720         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25721         * modules/arpa_inet (Description): No longer only for systems that
25722         lack it.
25723         (Depends-on): Add include_next.
25724         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25725         HAVE_ARPA_INET_H.
25726
25727 2008-04-29  Jim Meyering  <meyering@redhat.com>
25728
25729         * modules/mkdir (License): Re-license as LGPLv2+.
25730
25731 2008-04-29  Bruno Haible  <bruno@clisp.org>
25732
25733         * modules/rawmemchr (Maintainer): Set to Eric.
25734         * modules/strchrnul (Maintainer): Likewise.
25735
25736 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25737
25738         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25739         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25740
25741         * modules/arpa_inet (arpa/inet.h): Use them.
25742
25743 2008-04-28  Eric Blake  <ebb9@byu.net>
25744
25745         Test getndelim2.
25746         * modules/getndelim2-tests: New file.
25747         * tests/test-getndelim2.c: Likewise.
25748         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25749         stream.
25750         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25751
25752         * MODULES.html.sh: Document new module.
25753
25754 2008-04-20  Bruno Haible  <bruno@clisp.org>
25755
25756         * lib/c-stack.c (die): Use raise.
25757         * modules/c-stack (Depends-on): Add raise.
25758
25759 2008-04-28  Bruno Haible  <bruno@clisp.org>
25760
25761         Expect rpmatch to be declared.
25762         * lib/yesno.c (rpmatch): Remove declaration.
25763
25764         Declare rpmatch.
25765         * lib/stdlib.in.h (rpmatch): New declaration.
25766         * lib/rpmatch.c: Include <stdlib.h> first.
25767         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25768         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25770         HAVE_RPMATCH.
25771         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25772         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25773         (Include): Set to <stdlib.h>.
25774         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25775         HAVE_RPMATCH.
25776         * NEWS: Document the change.
25777
25778 2008-04-28  Bruno Haible  <bruno@clisp.org>
25779
25780         Change rpmatch to use nl_langinfo when appropriate.
25781         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25782         (N_): New macro.
25783         (localized_pattern): New function/macro.
25784         (try): Remove match, nomatch arguments. Copy the pattern into safe
25785         memory before caching it.
25786         (rpmatch): Use localized_pattern. Add translator comments.
25787         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25788         Suggested by Eric Blake.
25789         * modules/rpmatch (Depends-on): Add stdbool.
25790
25791 2008-04-28  Eric Blake  <ebb9@byu.net>
25792
25793         Add rawmemchr module, matching glibc.
25794         * modules/string (Makefile.am): New indicator.
25795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25796         * lib/string.in.h (rawmemchr): Declare when appropriate.
25797         * modules/rawmemchr: New file.
25798         * m4/rawmemchr.m4: Likewise.
25799         * lib/rawmemchr.c: Likewise.
25800         * modules/rawmemchr-tests: Likewise.
25801         * tests/test-rawmemchr.c: Likewise.
25802         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25803         module.
25804         * modules/strchrnul (Depends-on): Add rawmemchr.
25805         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25806
25807         Whitespace cleanup.
25808         * tests/test-strchrnul.c: Reindent.
25809         * lib/strchrnul.c: Likewise.
25810
25811         Optimize and test strchrnul.
25812         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25813         * modules/strchrnul-tests: New file.
25814         * tests/test-strchrnul.c: Likewise.
25815
25816         Remove intprops dependency.
25817         * modules/memchr (Depends-on): Remove intprops.
25818         * modules/memrchr (Depends-on): Likewise.
25819         * modules/memchr2 (Depends-on): Likewise.
25820         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25821         * lib/memrchr.c (__memrchr): Likewise.
25822         * lib/memrchr2.c (memchr2): Likewise.
25823         Reported by Simon Josefsson.
25824
25825 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25826
25827         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25828         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25829
25830 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25831
25832         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25833
25834         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25835
25836         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25837
25838         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25839         declarations.
25840         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25841
25842         * m4/inet_pton.m4: Don't check for header files.
25843
25844         * m4/inet_ntop.m4: Don't check for header files.
25845
25846 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25847
25848         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25849         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25850         trigger for cygwin).
25851         Reported by Bruno Haible  <bruno@clisp.org>.
25852
25853 2008-04-28  Bruno Haible  <bruno@clisp.org>
25854
25855         * doc/posix-functions/strdup.texi: Mention mingw problem.
25856
25857 2008-04-27  Bruno Haible  <bruno@clisp.org>
25858
25859         * modules/stat-time-tests (Depends-on): Add sleep.
25860         * tests/test-stat-time.c (force_unlink): New function.
25861         (cleanup): Use it.
25862         (test_mtime): Remove the ctime related tests.
25863         (test_ctime): New function, containing the ctime related tests.
25864         (main): Call test_ctime, except on native Windows platforms.
25865
25866 2008-04-27  Bruno Haible  <bruno@clisp.org>
25867
25868         * lib/rpmatch.c (rpmatch): Add some comments.
25869         Reported by James Youngman <jay@gnu.org>.
25870
25871 2008-04-27  Bruno Haible  <bruno@clisp.org>
25872
25873         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25874         quiet NaNs.
25875
25876 2008-04-27  Bruno Haible  <bruno@clisp.org>
25877
25878         Make test-yesno.sh work on mingw.
25879         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25880         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25881         (main): Set stdin to binary mode.
25882         * modules/yesno-tests (Depends-on): Add binary-io.
25883
25884 2008-04-27  Bruno Haible  <bruno@clisp.org>
25885
25886         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25887         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25888         argument that lie outside the IEEE 854 domain.
25889         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25890         (gl_ISFINITE): Use it.
25891         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25892
25893 2008-04-27  Bruno Haible  <bruno@clisp.org>
25894
25895         Allow local renaming in config.h.
25896         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25897
25898 2008-04-27  Bruno Haible  <bruno@clisp.org>
25899
25900         * lib/memchr.c (__memchr): Change type of 'i'.
25901         * lib/memchr2.c (memchr2): Likewise.
25902
25903 2008-04-26  Eric Blake  <ebb9@byu.net>
25904         and Bruno Haible  <bruno@clisp.org>
25905
25906         Optimize and test memrchr.
25907         * modules/memrchr (Depends-on): Add intprops.
25908         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25909         * modules/memrchr-tests: New file.
25910         * tests/test-memrchr.c: New file.
25911
25912 2008-04-26  Bruno Haible  <bruno@clisp.org>
25913
25914         Add tentative support for DragonFly BSD.
25915         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25916         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25917         fp.
25918         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25919         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25920         * lib/fpurge.c (fpurge): Likewise.
25921         * lib/freadable.c (freaadable): Likewise.
25922         * lib/freadahead.c (freadahead): Likewise.
25923         * lib/freading.c (freading): Likewise.
25924         * lib/freadptr.c (freadptr): Likewise.
25925         * lib/freadseek.c (freadptrinc): Likewise.
25926         * lib/fseeko.c (fseeko): Likewise.
25927         * lib/fseterr.c (fseterr): Likewise.
25928         * lib/fwritable.c (fwritable): Likewise.
25929         * lib/fwriting.c (fwriting): Likewise.
25930
25931 2008-04-26  Bruno Haible  <bruno@clisp.org>
25932
25933         * lib/stdio-impl.h: New file.
25934         * lib/fbufmode.c: Include stdio-impl.h.
25935         (fbufmode): Use fp_, remove redundant #defines.
25936         * lib/fflush.c: Include stdio-impl.h.
25937         (clear_ungetc_buffer): Remove redundant #defines.
25938         * lib/fpurge.c: Include stdio-impl.h.
25939         (fpurge): Remove redundant #defines.
25940         * lib/freadable.c: Include stdio-impl.h.
25941         (freadable): Remove redundant #defines.
25942         * lib/freadahead.c: Include stdio-impl.h.
25943         (freadahead): Remove redundant #defines.
25944         * lib/freading.c: Include stdio-impl.h.
25945         (freading): Remove redundant #defines.
25946         * lib/freadptr.c: Include stdio-impl.h.
25947         (freadptr): Remove redundant #defines.
25948         * lib/freadseek.c: Include stdio-impl.h.
25949         (freadptrinc): Remove redundant #defines.
25950         * lib/fseeko.c: Include stdio-impl.h.
25951         (rpl_fseeko): Remove redundant #defines.
25952         * lib/fseterr.c: Include stdio-impl.h.
25953         (fseterr): Remove redundant #defines.
25954         * lib/fwritable.c: Include stdio-impl.h.
25955         (fwritable: Remove redundant #defines.
25956         * lib/fwriting.c: Include stdio-impl.h.
25957         (fwriting): Remove redundant #defines.
25958         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25959         * modules/fflush (Files): Likewise.
25960         * modules/fpurge (Files): Likewise.
25961         * modules/freadable (Files): Likewise.
25962         * modules/freadahead (Files): Likewise.
25963         * modules/freading (Files): Likewise.
25964         * modules/freadptr (Files): Likewise.
25965         * modules/freadseek (Files): Likewise.
25966         * modules/fseeko (Files): Likewise.
25967         * modules/fseterr (Files): Likewise.
25968         * modules/fwritable (Files): Likewise.
25969         * modules/fwriting (Files): Likewise.
25970
25971 2008-04-26  Bruno Haible  <bruno@clisp.org>
25972
25973         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25974         restore_seek_optimization, update_fpos_cache): New functions, extracted
25975         from rpl_fflush.
25976         (rpl_fflush): Use them.
25977         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25978         (gl_REPLACE_FFLUSH): Use it.
25979
25980 2008-04-26  Bruno Haible  <bruno@clisp.org>
25981
25982         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25983         on Solaris.
25984         * tests/test-xstrtoimax.sh: Likewise.
25985         * tests/test-xstrtoumax.sh: Likewise.
25986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25987
25988 2008-04-26  Bruno Haible  <bruno@clisp.org>
25989
25990         * modules/memchr-tests: New file.
25991         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25992
25993 2008-04-26  Eric Blake  <ebb9@byu.net>
25994             Bruno Haible  <bruno@clisp.org>
25995
25996         * lib/memchr.c: Include intprops.h.
25997         (__memchr): Optimize parallel detection of matching bytes. Rename local
25998         variables. Add explanatory comments.
25999
26000 2008-04-26  Bruno Haible  <bruno@clisp.org>
26001
26002         Fix module 'memchr', broken since 2000-10-28.
26003         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
26004
26005 2008-04-26  Bruno Haible  <bruno@clisp.org>
26006
26007         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
26008         comments.
26009
26010 2008-04-25  Eric Blake  <ebb9@byu.net>
26011
26012         Use native fstatat on cygwin 1.7.0.
26013         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
26014         first.
26015
26016 2008-04-23  Eric Blake  <ebb9@byu.net>
26017
26018         Improve memchr2 performance.
26019         * lib/memchr2.c (memchr2): Further optimize parallel detection of
26020         NUL bytes.
26021         * modules/memchr2 (Depends-on): Use intprops.h.
26022
26023 2008-04-23  Simon Josefsson  <simon@josefsson.org>
26024
26025         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
26026         an inline function instead of a CPP macro.  Patch by Ben Pfaff
26027         <blp@cs.stanford.edu>.
26028
26029 2008-04-23  Simon Josefsson  <simon@josefsson.org>
26030
26031         * lib/arpa_inet.in.h: New file.
26032
26033         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
26034         (Makefile.am): Sed in substitute header file.
26035
26036         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
26037         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
26038
26039         * modules/inet_ntop (configure.ac): Use
26040         gl_ARPA_INET_MODULE_INDICATOR.
26041
26042         * modules/inet_pton (configure.ac): Use
26043         gl_ARPA_INET_MODULE_INDICATOR.
26044
26045 2008-04-22  Jim Meyering  <meyering@redhat.com>
26046
26047         * modules/verify (License): Re-license as LGPLv2+.
26048
26049 2008-04-22  Simon Josefsson  <simon@josefsson.org>
26050
26051         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
26052         parameter to void* as per POSIX standard (MinGW uses char*).
26053
26054 2008-04-21  Bruno Haible  <bruno@clisp.org>
26055
26056         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26057         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
26058         Define to replacements if REPLACE_ISWCNTRL is 1.
26059         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
26060         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
26061         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
26062         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
26063         what it fixes.
26064         * doc/posix-functions/iswalpha.texi: Likewise.
26065         * doc/posix-functions/iswblank.texi: Likewise.
26066         * doc/posix-functions/iswcntrl.texi: Likewise.
26067         * doc/posix-functions/iswdigit.texi: Likewise.
26068         * doc/posix-functions/iswgraph.texi: Likewise.
26069         * doc/posix-functions/iswlower.texi: Likewise.
26070         * doc/posix-functions/iswprint.texi: Likewise.
26071         * doc/posix-functions/iswpunct.texi: Likewise.
26072         * doc/posix-functions/iswspace.texi: Likewise.
26073         * doc/posix-functions/iswupper.texi: Likewise.
26074         * doc/posix-functions/iswxdigit.texi: Likewise.
26075         Reported by Alain Guibert.
26076
26077 2008-04-21  Bruno Haible  <bruno@clisp.org>
26078
26079         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
26080         Patch by Alain Guibert.
26081
26082 2008-04-21  Bruno Haible  <bruno@clisp.org>
26083
26084         Fix test failures on mingw.
26085         * tests/test-xstrtol.c (print_no_progname): New function.
26086         (main): Install it in error_print_progname hook.
26087         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
26088         * tests/test-xstrtoimax.sh: Likewise.
26089         * tests/test-xstrtoumax.sh: Likewise.
26090
26091 2008-04-21  Bruno Haible  <bruno@clisp.org>
26092
26093         Fix test failure on mingw.
26094         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
26095
26096 2008-04-21  Bruno Haible  <bruno@clisp.org>
26097
26098         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
26099         Actually assign a value.
26100
26101 2008-04-20  Bruno Haible  <bruno@clisp.org>
26102
26103         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
26104         take 2.
26105         * lib/canonicalize.c (canonicalize_file_name): Elide if the
26106         'canonicalize-lgpl' module is also used.
26107         * lib/canonicalize-lgpl.c: Undo last change.
26108         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
26109
26110 2008-04-20  Bruno Haible  <bruno@clisp.org>
26111
26112         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
26113         config.h. Provide _mkdir based fallback for mingw.
26114         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
26115         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
26116         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
26117         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
26118         rather than defining mkdir in config.h.
26119         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
26120         (gl_SYS_STAT_H_DEFAULTS): New macro.
26121         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
26122         HAVE_IO_H any more.
26123         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
26124         HAVE_DECL_MKDIR and HAVE_IO_H.
26125
26126 2008-04-20  Bruno Haible  <bruno@clisp.org>
26127
26128         * lib/isapipe.c: Port to native Windows platforms.
26129
26130 2008-04-20  Bruno Haible  <bruno@clisp.org>
26131
26132         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
26133
26134 2008-04-21  Eric Blake  <ebb9@byu.net>
26135
26136         Work around preprocessors that don't handle UINTMAX_MAX.
26137         * lib/memchr2.c (memchr2): Avoid embedded #if.
26138         Reported by Alain Guibert, fix suggested by Bruno Haible.
26139
26140 2008-04-21  Simon Josefsson  <simon@josefsson.org>
26141
26142         * doc/posix-functions/strftime.texi (strftime): Explain better
26143         Windows incompatibility.  Suggested by Micah Cowan
26144         <micah@cowan.name>.
26145
26146 2008-04-20  Bruno Haible  <bruno@clisp.org>
26147
26148         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
26149         unistr/u8-mblen.
26150
26151 2008-04-20  Bruno Haible  <bruno@clisp.org>
26152
26153         Fix test failure on platforms with non-GNU iconv.
26154         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
26155         (U_TO_U8): Use it, rather than u16_to_u8.
26156         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
26157         units at the end of the input string.
26158         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
26159
26160 2008-04-20  Bruno Haible  <bruno@clisp.org>
26161
26162         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
26163         when the resulting length is 0.
26164         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
26165
26166 2008-04-20  Bruno Haible  <bruno@clisp.org>
26167
26168         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
26169         works.
26170         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
26171
26172 2008-04-20  Bruno Haible  <bruno@clisp.org>
26173
26174         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
26175         * modules/tsearch-tests (configure.ac): Test for initstate function.
26176
26177 2008-04-20  Bruno Haible  <bruno@clisp.org>
26178
26179         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
26180         for nlink_t if missing.
26181         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
26182
26183 2008-04-19  Bruno Haible  <bruno@clisp.org>
26184
26185         Work around snprintf bug on Linux libc5.
26186         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
26187         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26188         gl_SNPRINTF_SIZE1.
26189         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26190         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
26191         that test failed.
26192         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
26193         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
26194         * modules/snprintf (Files): Add m4/printf.m4.
26195         * modules/vsnprintf (Files): Likewise.
26196         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
26197         * doc/posix-functions/vsnprintf.texi: Likewise.
26198
26199 2008-04-19  Bruno Haible  <bruno@clisp.org>
26200
26201         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
26202         from 0.0058 to less than 10^-7.
26203
26204 2008-04-19  Bruno Haible  <bruno@clisp.org>
26205
26206         Fix rounding when a precision is given.
26207         * lib/vasnprintf.c (is_borderline): New function.
26208         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
26209         9...9x.
26210         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
26211         %e, %g.
26212         * tests/test-vasprintf-posix.c (test_function): Likewise.
26213         * tests/test-snprintf-posix.h (test_function): Likewise.
26214         * tests/test-sprintf-posix.h (test_function): Likewise.
26215         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
26216         * tests/test-printf-posix.h (test_function): Likewise.
26217         * tests/test-printf-posix.output: Update.
26218         Reported by John Darrington <john@darrington.wattle.id.au> via
26219         Ben Pfaff <blp@cs.stanford.edu>.
26220
26221 2008-04-18  Simon Josefsson  <simon@josefsson.org>
26222
26223         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
26224         Suggested by Bruno Haible <bruno@clisp.org>.
26225
26226 2008-04-17  Bruno Haible  <bruno@clisp.org>
26227
26228         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
26229         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
26230         implementation.
26231         Patch by Bruce Merry <bmerry@gmail.com>.
26232
26233 2008-04-17  Simon Josefsson  <simon@josefsson.org>
26234
26235         * doc/posix-functions/strftime.texi (strftime): Mention that %e
26236         doesn't work under Windows.
26237
26238 2008-04-16  Bruno Haible  <bruno@clisp.org>
26239
26240         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
26241         New macros.
26242         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
26243         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
26244         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
26245         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
26246         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
26247         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
26248         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
26249         macros.
26250         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
26251         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
26252         Northern Sotho, Uighur.
26253
26254 2008-04-16  Bruno Haible  <bruno@clisp.org>
26255
26256         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
26257         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
26258         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
26259         Reported by Daniel Bergström <daniel@octocode.com>.
26260
26261 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
26262             Bruno Haible  <bruno@clisp.org>
26263
26264         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
26265         function.
26266         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
26267         New functions, mostly extracted from gl_locale_name_default.
26268         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
26269
26270 2008-04-16  Eric Blake  <ebb9@byu.net>
26271
26272         Adjust strtod detection to catch glibc 2.7 bug.
26273         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
26274         Reported by John Gatewood Ham.
26275
26276 2008-04-16  Bruno Haible  <bruno@clisp.org>
26277
26278         Add tentative support for Linux libc5.
26279         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
26280         * lib/fpurge.c (fpurge): Likewise.
26281         * lib/freadable.c (freadable): Likewise.
26282         * lib/freadahead.c (freadahead): Likewise.
26283         * lib/freading.c (freading): Likewise.
26284         * lib/freadptr.c (freadptr): Likewise.
26285         * lib/freadseek.c (freadptrinc): Likewise.
26286         * lib/fseeko.c (rpl_fseeko): Likewise.
26287         * lib/fseterr.c (fseterr): Likewise.
26288         * lib/fwritable.c (fwritable): Likewise.
26289         * lib/fwriting.c (fwriting): Likewise.
26290         Reported by Alain Guibert <alguibert+bts@free.fr>.
26291
26292 2008-04-15  Bruno Haible  <bruno@clisp.org>
26293
26294         * modules/mathl (configure.ac): Define module indicator.
26295
26296 2008-04-15  Bruno Haible  <bruno@clisp.org>
26297
26298         * lib/logl.c (logl): Remove unused variables.
26299
26300 2008-04-15  Bruno Haible  <bruno@clisp.org>
26301
26302         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
26303         fails.
26304
26305 2008-04-15  Bruno Haible  <bruno@clisp.org>
26306
26307         * lib/trim.c (trim2): Fix argument of isspace() macro.
26308
26309 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
26310
26311         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26312         to 0.
26313         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26314
26315 2008-04-14  Bruno Haible  <bruno@clisp.org>
26316
26317         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26318         AC_LANG_PROGRAM argument.
26319         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26320         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26321         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26322         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26323         * m4/math_h.m4 (gl_MATH_H): Likewise.
26324         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26326         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26327         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26328         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26329         * m4/regex.m4 (gl_REGEX): Likewise.
26330         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26331         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26332         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26333         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26334         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26335         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26336         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26337         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26338
26339 2008-04-14  Jim Meyering  <meyering@redhat.com>
26340
26341         test-strtod: fix typos: s/abs/fabs/
26342         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26343
26344 2008-04-13  Bruno Haible  <bruno@clisp.org>
26345
26346         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26347         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26348         module is also used and while not building the reloc-wrapper.
26349
26350 2008-04-13  Bruno Haible  <bruno@clisp.org>
26351
26352         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26353
26354 2008-04-13  Bruno Haible  <bruno@clisp.org>
26355
26356         Fix AIX compilation failure introduced on 2008-04-02.
26357         * tests/test-frexp.c (exp): Undefine before redefining.
26358         * tests/test-frexpl.c (exp): Likewise.
26359
26360 2008-04-13  Bruno Haible  <bruno@clisp.org>
26361
26362         Work around a HP-UX stdio bug.
26363         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26364         * tests/test-ftello.c (main): Likewise.
26365         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26366         * doc/posix-functions/ftello.texi: Likewise.
26367
26368 2008-04-13  Bruno Haible  <bruno@clisp.org>
26369
26370         Make test-signbit pass on HP-UX/hppa.
26371         * tests/test-signbit.c (minus_zerol): New variable.
26372         (test_signbitl): Use it.
26373
26374 2008-04-13  Bruno Haible  <bruno@clisp.org>
26375
26376         Make truncl work on OSF/1 4.0.
26377         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26378         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26379         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26381         HAVE_DECL_TRUNCL.
26382         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26383         HAVE_DECL_TRUNCL.
26384         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26385
26386 2008-04-13  Bruno Haible  <bruno@clisp.org>
26387
26388         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26389
26390 2008-04-13  Bruno Haible  <bruno@clisp.org>
26391
26392         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26393         expression, so as to avoid HP-UX 11 cc compiler bug.
26394
26395 2008-04-13  Bruno Haible  <bruno@clisp.org>
26396
26397         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26398
26399 2008-04-13  Bruno Haible  <bruno@clisp.org>
26400
26401         * lib/git-merge-changelog.c: Remove empty declaration outside of
26402         functions.
26403
26404 2008-04-13  Bruno Haible  <bruno@clisp.org>
26405
26406         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26407
26408 2008-04-13  Bruno Haible  <bruno@clisp.org>
26409
26410         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26411         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26412         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26413         also if it exists but lacks definitions of the SHUT_* macros.
26414         * modules/sys_socket (Description): Update.
26415         Reported by Elbert Pol <e.pol@chello.nl>.
26416
26417 2008-04-13  Bruno Haible  <bruno@clisp.org>
26418
26419         * lib/localcharset.c (OS2): Don't redefine if already defined.
26420         Reported by Elbert Pol <e.pol@chello.nl>.
26421
26422 2008-04-13  Bruno Haible  <bruno@clisp.org>
26423
26424         * lib/binary-io.h [__EMX__]: Include <io.h>.
26425         Reported by Elbert Pol <e.pol@chello.nl>.
26426
26427 2008-04-12  Bruno Haible  <bruno@clisp.org>
26428
26429         * lib/fpucw.h: Enable the definitions also for x86_64.
26430         Needed for NetBSD/x86_64.
26431         Reported by Thomas Klausner <tk@giga.or.at>.
26432
26433 2008-04-12  Bruno Haible  <bruno@clisp.org>
26434
26435         * tests/test-strtod.c: Include isnand.h.
26436         (main): Use isnand instead of isnan.
26437         Reported by Jim Meyering.
26438
26439 2008-04-12  Bruno Haible  <bruno@clisp.org>
26440
26441         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26442         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26443
26444 2008-04-12  Jim Meyering  <meyering@redhat.com>
26445
26446         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26447
26448 2008-04-12  Bruno Haible  <bruno@clisp.org>
26449
26450         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26451         Reported by Elbert Pol <e.pol@chello.nl>.
26452
26453 2008-04-12  Eric Blake  <ebb9@byu.net>
26454
26455         Work around Solaris 10 math.h bug.
26456         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26457         (gl_MATH_H_DEFAULTS): Set up default.
26458         * modules/math (Makefile.am): Replace new indicators.
26459         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26460         * tests/test-math.c (main): Test this.
26461         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26462         * doc/posix-headers/math.texi (math.h): Mention bug.
26463         Reported by Nelson H. F. Beebe and Jim Meyering.
26464
26465 2008-04-11  Bruno Haible  <bruno@clisp.org>
26466
26467         Adapt to future versions of Apple GCC.
26468         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26469         Reported by Peter O'Gorman <peter@pogma.com>.
26470
26471 2008-04-11  Bruno Haible  <bruno@clisp.org>
26472
26473         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26474
26475 2008-04-11  Bruno Haible  <bruno@clisp.org>
26476
26477         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26478
26479         * modules/getaddrinfo-tests (Makefile.am): Define
26480         test_getaddrinfo_LDADD.
26481
26482 2008-04-11  Bruno Haible  <bruno@clisp.org>
26483
26484         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26485         (init): Fix syntax error.
26486         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26487         is declared.
26488
26489 2008-04-11  Bruno Haible  <bruno@clisp.org>
26490
26491         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26492         * modules/glob (Depends-on): Add stdbool.
26493
26494 2008-04-11  Bruno Haible  <bruno@clisp.org>
26495
26496         * lib/trim.c: Include <string.h>.
26497
26498 2008-04-11  Eric Blake  <ebb9@byu.net>
26499
26500         Avoid compile failure on OS/2.
26501         * lib/regex_internal.h (internal_function): Disable optimization
26502         on OS/2 (__EMX__), where it caused compiler error.
26503         Reported by Elbert Pol.
26504
26505 2008-04-11  Bruno Haible  <bruno@clisp.org>
26506
26507         Flush the standard error stream before aborting. Needed on mingw.
26508         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26509         * tests/test-array_list.c (ASSERT): Likewise.
26510         * tests/test-array_oset.c (ASSERT): Likewise.
26511         * tests/test-avltree_list.c (ASSERT): Likewise.
26512         * tests/test-avltree_oset.c (ASSERT): Likewise.
26513         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26514         * tests/test-binary-io.c (ASSERT): Likewise.
26515         * tests/test-byteswap.c (ASSERT): Likewise.
26516         * tests/test-c-ctype.c (ASSERT): Likewise.
26517         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26518         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26519         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26520         * tests/test-c-strstr.c (ASSERT): Likewise.
26521         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26522         * tests/test-canonicalize.c (ASSERT): Likewise.
26523         * tests/test-carray_list.c (ASSERT): Likewise.
26524         * tests/test-ceilf1.c (ASSERT): Likewise.
26525         * tests/test-ceilf2.c (ASSERT): Likewise.
26526         * tests/test-ceill.c (ASSERT): Likewise.
26527         * tests/test-count-one-bits.c (ASSERT): Likewise.
26528         * tests/test-fbufmode.c (ASSERT): Likewise.
26529         * tests/test-fflush2.c (ASSERT): Likewise.
26530         * tests/test-floorf1.c (ASSERT): Likewise.
26531         * tests/test-floorf2.c (ASSERT): Likewise.
26532         * tests/test-floorl.c (ASSERT): Likewise.
26533         * tests/test-fopen.c (ASSERT): Likewise.
26534         * tests/test-fpending.c (ASSERT): Likewise.
26535         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26536         * tests/test-fpurge.c (ASSERT): Likewise.
26537         * tests/test-freadable.c (ASSERT): Likewise.
26538         * tests/test-freadahead.c (ASSERT): Likewise.
26539         * tests/test-freading.c (ASSERT): Likewise.
26540         * tests/test-freadptr.c (ASSERT): Likewise.
26541         * tests/test-freadptr2.c (ASSERT): Likewise.
26542         * tests/test-freadseek.c (ASSERT): Likewise.
26543         * tests/test-freopen.c (ASSERT): Likewise.
26544         * tests/test-frexp.c (ASSERT): Likewise.
26545         * tests/test-frexpl.c (ASSERT): Likewise.
26546         * tests/test-fseek.c (ASSERT): Likewise.
26547         * tests/test-fseeko.c (ASSERT): Likewise.
26548         * tests/test-fstrcmp.c (ASSERT): Likewise.
26549         * tests/test-ftell.c (ASSERT): Likewise.
26550         * tests/test-ftello.c (ASSERT): Likewise.
26551         * tests/test-func.c (ASSERT): Likewise.
26552         * tests/test-fwritable.c (ASSERT): Likewise.
26553         * tests/test-fwriting.c (ASSERT): Likewise.
26554         * tests/test-getdelim.c (ASSERT): Likewise.
26555         * tests/test-getline.c (ASSERT): Likewise.
26556         * tests/test-i-ring.c (ASSERT): Likewise.
26557         * tests/test-iconv-utf.c (ASSERT): Likewise.
26558         * tests/test-iconv.c (ASSERT): Likewise.
26559         * tests/test-isfinite.c (ASSERT): Likewise.
26560         * tests/test-isnand.c (ASSERT): Likewise.
26561         * tests/test-isnanf.c (ASSERT): Likewise.
26562         * tests/test-isnanl.h (ASSERT): Likewise.
26563         * tests/test-ldexpl.c (ASSERT): Likewise.
26564         * tests/test-linked_list.c (ASSERT): Likewise.
26565         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26566         * tests/test-localename.c (ASSERT): Likewise.
26567         * tests/test-lseek.c (ASSERT): Likewise.
26568         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26569         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26570         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26571         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26572         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26573         * tests/test-mbschr.c (ASSERT): Likewise.
26574         * tests/test-mbscspn.c (ASSERT): Likewise.
26575         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26576         * tests/test-mbspbrk.c (ASSERT): Likewise.
26577         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26578         * tests/test-mbsrchr.c (ASSERT): Likewise.
26579         * tests/test-mbsspn.c (ASSERT): Likewise.
26580         * tests/test-mbsstr1.c (ASSERT): Likewise.
26581         * tests/test-mbsstr2.c (ASSERT): Likewise.
26582         * tests/test-mbsstr3.c (ASSERT): Likewise.
26583         * tests/test-memchr2.c (ASSERT): Likewise.
26584         * tests/test-memmem.c (ASSERT): Likewise.
26585         * tests/test-open.c (ASSERT): Likewise.
26586         * tests/test-printf-frexp.c (ASSERT): Likewise.
26587         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26588         * tests/test-printf-posix.c (ASSERT): Likewise.
26589         * tests/test-quotearg.c (ASSERT): Likewise.
26590         * tests/test-rbtree_list.c (ASSERT): Likewise.
26591         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26592         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26593         * tests/test-round1.c (ASSERT): Likewise.
26594         * tests/test-roundf1.c (ASSERT): Likewise.
26595         * tests/test-roundl.c (ASSERT): Likewise.
26596         * tests/test-signbit.c (ASSERT): Likewise.
26597         * tests/test-sleep.c (ASSERT): Likewise.
26598         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26599         * tests/test-snprintf.c (ASSERT): Likewise.
26600         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26601         * tests/test-stat-time.c (ASSERT): Likewise.
26602         * tests/test-strcasestr.c (ASSERT): Likewise.
26603         * tests/test-strerror.c (ASSERT): Likewise.
26604         * tests/test-striconv.c (ASSERT): Likewise.
26605         * tests/test-striconveh.c (ASSERT): Likewise.
26606         * tests/test-striconveha.c (ASSERT): Likewise.
26607         * tests/test-strsignal.c (ASSERT): Likewise.
26608         * tests/test-strstr.c (ASSERT): Likewise.
26609         * tests/test-strtod.c (ASSERT): Likewise.
26610         * tests/test-trunc1.c (ASSERT): Likewise.
26611         * tests/test-trunc2.c (ASSERT): Likewise.
26612         * tests/test-truncf1.c (ASSERT): Likewise.
26613         * tests/test-truncf2.c (ASSERT): Likewise.
26614         * tests/test-truncl.c (ASSERT): Likewise.
26615         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26616         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26617         * tests/test-vasnprintf.c (ASSERT): Likewise.
26618         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26619         * tests/test-vasprintf.c (ASSERT): Likewise.
26620         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26621         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26622         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26623         * tests/test-vsnprintf.c (ASSERT): Likewise.
26624         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26625         * tests/test-wcwidth.c (ASSERT): Likewise.
26626         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26627         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26628         * tests/test-xvasprintf.c (ASSERT): Likewise.
26629         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26630         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26631         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26632         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26633         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26634         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26635         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26636         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26637         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26638         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26639         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26640         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26641         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26642         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26643         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26644         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26645         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26646         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26647         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26648         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26649         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26650         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26651         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26652         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26653         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26654         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26655         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26656         * tests/unictype/test-combining.c (ASSERT): Likewise.
26657         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26658         * tests/unictype/test-digit.c (ASSERT): Likewise.
26659         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26660         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26661         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26662         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26663         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26664         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26665         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26666         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26667         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26668         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26669         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26670         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26671         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26672         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26673         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26674         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26675         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26676         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26677         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26678         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26679         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26680         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26681         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26682         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26683         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26684         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26685         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26686         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26687         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26688         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26689         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26690         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26691         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26692         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26693         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26694         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26695         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26696         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26697         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26698         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26699         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26700         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26701         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26702         Reported by Eric Blake.
26703
26704 2008-04-11  Bruno Haible  <bruno@clisp.org>
26705
26706         * lib/wchar.in.h: Tweak comment.
26707
26708 2008-04-11  Bruno Haible  <bruno@clisp.org>
26709
26710         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26711         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26712         gl_COMMON.
26713         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26714
26715 2008-04-11  Bruno Haible  <bruno@clisp.org>
26716
26717         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26718
26719 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26720
26721         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26722         of attempting to use non-existing /dev/*random.  Based on patch
26723         from Adam Strzelecki <ono@java.pl> in
26724         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26725
26726 2008-04-08  Bruno Haible  <bruno@clisp.org>
26727
26728         Add tentative support for emx+gcc.
26729         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26730         * lib/fpurge.c (fpurge): Likewise.
26731         * lib/freadable.c (freadable): Likewise.
26732         * lib/freadahead.c (freadahead): Likewise.
26733         * lib/freading.c (freading): Likewise.
26734         * lib/freadptr.c (freadptr): Likewise.
26735         * lib/freadseek.c (freadptrinc): Likewise.
26736         * lib/fseeko.c (rpl_fseeko): Likewise.
26737         * lib/fseterr.c (fseterr): Likewise.
26738         * lib/fwritable.c (fwritable): Likewise.
26739         * lib/fwriting.c (fwriting): Likewise.
26740         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26741
26742 2008-04-09  Eric Blake  <ebb9@byu.net>
26743
26744         Avoid some autoconf warnings.
26745         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26746         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26747         * m4/afs.m4 (gl_AFS): Likewise.
26748         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26749         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26750         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26751         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26752         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26753         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26754         (AC_CHECK_DECLS_ONCE): Likewise.
26755         Rename file...
26756         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26757         gnulib-tool requires autoconf 2.59 or better.
26758         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26759
26760 2008-04-08  Eric Blake  <ebb9@byu.net>
26761
26762         Use 'git describe --match' if present (added in git 1.5.5).
26763         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26764         if possible.
26765
26766 2008-04-08  Bruno Haible  <bruno@clisp.org>
26767
26768         Add tentative support for OpenServer.
26769         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26770         _ptr, _cnt.
26771         * lib/fpurge.c (fpurge): Likewise.
26772         * lib/freadable.c (freadable): Likewise.
26773         * lib/freadahead.c (freadahead): Likewise.
26774         * lib/freading.c (freading): Likewise.
26775         * lib/freadptr.c (freadptr): Likewise.
26776         * lib/freadseek.c (freadptrinc): Likewise.
26777         * lib/fseeko.c (rpl_fseeko): Likewise.
26778         * lib/fseterr.c (fseterr): Likewise.
26779         * lib/fwritable.c (fwritable): Likewise.
26780         * lib/fwriting.c (fwriting): Likewise.
26781         Reported by Roger Cornelius <rac@tenzing.org> and
26782         Brian K. White <brian@aljex.com>.
26783
26784 2008-04-06  Jim Meyering  <meyering@redhat.com>
26785
26786         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26787
26788 2008-04-06  Bruno Haible  <bruno@clisp.org>
26789
26790         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26791         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26792         * tests/test-printf-posix.sh: Likewise.
26793         * tests/test-vfprintf-posix.sh: Likewise.
26794         * tests/test-vprintf-posix.sh: Likewise.
26795         * tests/test-xprintf-posix.sh: Likewise.
26796
26797 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26798
26799         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26800         hide error from 'ls', needed on OS/2.
26801         Report by Elbert Pol <elbert.pol@gmail.com>.
26802
26803 2008-04-04  Eric Blake  <ebb9@byu.net>
26804
26805         Make test-fseeko.c failures meaningful.
26806         * tests/test-fseeko.c: Print line number on failure.
26807         * tests/test-fseek.c: Likewise.
26808         Reported by Nelson H. F. Beebe.
26809
26810         Improve strtod bug detection check.
26811         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26812         required for Solaris 10.
26813         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26814
26815 2008-04-04  Bruno Haible  <bruno@clisp.org>
26816
26817         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26818         by m4/setenv.m4.
26819
26820 2008-04-03  Eric Blake  <ebb9@byu.net>
26821
26822         Ensure sane .version contents.
26823         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26824         version string.
26825         * build-aux/git-version-gen: Improve documentation.
26826
26827         Make GNU make output nicer.
26828         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26829         MAKECMDGOALS to enforce message for all command line targets.  Set
26830         srcdir for use in maint.mk.
26831
26832         Another maintainer tweak.
26833         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26834         a target that regenerates version.
26835
26836 2008-04-03  Jim Meyering  <meyering@redhat.com>
26837
26838         vc-list-files: don't cause coreutils "make po-check" failure
26839         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26840
26841 2008-04-03  Eric Blake  <ebb9@byu.net>
26842
26843         Allow VPATH usage of vc-list-files.
26844         * build-aux/vc-list-files (scriptversion): Add timestamp.
26845         (options): Add --help, --version, -C.
26846         (CVS): Support installed cvsu.
26847
26848 2008-04-02  Bruno Haible  <bruno@clisp.org>
26849
26850         Avoid some "statement with no effect" warnings from gcc.
26851         * tests/test-wctype.c (main): Explicitly ignore unused values.
26852         Reported by Jim Meyering.
26853
26854 2008-04-02  Jim Meyering  <meyering@redhat.com>
26855
26856         Avoid some warnings from "gcc -Wshadow".
26857         * tests/test-frexp.c (exp): Define to a different identifier.
26858         * tests/test-frexpl.c (exp): Likewise.
26859
26860 2008-04-03  Jim Meyering  <meyering@redhat.com>
26861
26862         bootstrap: remove dangling *.[ch] symlinks from lib
26863         * build-aux/bootstrap [dangling symlink removal]: Move find's
26864         -depth option to precede all others, to avoid a warning.
26865         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26866
26867 2008-04-02  Bruno Haible  <bruno@clisp.org>
26868
26869         Avoid some warnings from "gcc -Wshadow".
26870         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26871         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26872         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26873         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26874         Reported by Jim Meyering.
26875
26876 2008-04-01  Bruno Haible  <bruno@clisp.org>
26877
26878         Fix test to work on IRIX 6.5 with cc.
26879         * tests/test-math.c (numeric_equal): New function.
26880         (main): Use it.
26881
26882 2008-04-01  Bruno Haible  <bruno@clisp.org>
26883
26884         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26885
26886 2008-04-01  Bruno Haible  <bruno@clisp.org>
26887
26888         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26889         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26890         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26891         (Depends-on): Remove math.
26892
26893         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26894         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26895         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26896         (Depends-on): Remove math.
26897
26898         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26899         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26900         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26901         (Depends-on): Remove math.
26902         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26903         (Depends-on): Remove math.
26904
26905         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26906         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26907         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26908         (Depends-on): Remove math.
26909         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26910         (Depends-on): Remove math.
26911
26912         * tests/test-round1.c: Include nan.h.
26913         (main): Use NaNd instead of NAN.
26914         * modules/round-tests (Files): Add tests/nan.h.
26915
26916         * tests/test-trunc1.c: Include nan.h.
26917         (main): Use NaNd instead of NAN.
26918         * modules/trunc-tests (Files): Add tests/nan.h.
26919
26920         * tests/test-roundf1.c: Include nan.h.
26921         (main): Use NaNf instead of NAN.
26922         * modules/roundf-tests (Files): Add tests/nan.h.
26923
26924         * tests/test-truncf1.c: Include nan.h.
26925         (main): Use NaNf instead of NAN.
26926         * modules/truncf-tests (Files): Add tests/nan.h.
26927
26928         * tests/test-ceilf1.c: Include nan.h.
26929         (main): Use NaNf instead of NAN.
26930         * modules/ceilf-tests (Files): Add tests/nan.h.
26931
26932         * tests/test-floorf1.c: Include nan.h.
26933         (main): Use NaNf instead of NAN.
26934         * modules/floorf-tests (Files): Add tests/nan.h.
26935
26936         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26937         (main): Use NaNf instead of NAN.
26938         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26939
26940         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26941         (main): Use NaNd instead of NAN.
26942         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26943
26944         * tests/test-frexp.c: Include nan.h.
26945         (main): Use NaNd instead of NAN.
26946         * modules/frexp-tests (Files): Add tests/nan.h.
26947
26948         * lib/isnan.c: Don't include <math.h>.
26949         (FUNC): Don't use NAN macro.
26950         * modules/isnand-nolibm (Depends-on): Remove math.
26951         * modules/isnanf-nolibm (Depends-on): Remove math.
26952         * modules/isnanl (Depends-on): Remove math.
26953         * modules/isnanl-nolibm (Depends-on): Remove math.
26954
26955         * tests/nan.h: New file.
26956
26957 2008-04-01  Eric Blake  <ebb9@byu.net>
26958
26959         Fix typos.
26960         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26961         values to be the right type.
26962
26963         For now, cater to gnulib strtod inaccuracies.
26964         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26965         fractional results.  While not as nice from a QoI perspective, it
26966         is a quicker patch than correctly implementing decimal to binary
26967         rounding.
26968
26969 2008-03-31  Eric Blake  <ebb9@byu.net>
26970
26971         Guarantee a definition of NAN.
26972         * lib/math.in.h (NAN): Define if missing.
26973         * tests/test-math.c (main): Test it.
26974         * doc/posix-headers/math.texi (math.h): Document this.
26975         * lib/isnan.c (rpl_isnand): Use it.
26976         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26977         * tests/test-floorf1.c (NaN): Likewise.
26978         * tests/test-frexp.c (NaN): Likewise.
26979         * tests/test-isnand.c (NaN): Likewise.
26980         * tests/test-isnanf.c (NaN): Likewise.
26981         * tests/test-round1.c (NaN): Likewise.
26982         * tests/test-roundf1.c (NaN): Likewise.
26983         * tests/test-snprintf-posix.h (NaN): Likewise.
26984         * tests/test-sprintf-posix.h (NaN): Likewise.
26985         * tests/test-trunc1.c (NaN): Likewise.
26986         * tests/test-truncf1.c (NaN): Likewise.
26987         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26988         * tests/test-vasprintf-posix.c (NaN): Likewise.
26989         * modules/isnand-nolibm (Depends-on): Add math.
26990         * modules/isnanf-nolibm (Depends-on): Likewise.
26991         * modules/isnanl (Depends-on): Likewise.
26992         * modules/isnanl-nolibm (Depends-on): Likewise.
26993         * modules/snprintf-posix-tests (Depends-on): Likewise.
26994         * modules/sprintf-posix-tests (Depends-on): Likewise.
26995         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26996         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26997         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26998         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26999
27000 2008-03-31  Bruno Haible  <bruno@clisp.org>
27001
27002         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
27003         * doc/posix-functions/strtod.texi: Likewise.
27004
27005 2008-03-31  Bruno Haible  <bruno@clisp.org>
27006
27007         * tests/test-strtod.c (main): Don't use C99 syntax.
27008
27009 2008-03-31  Bruno Haible  <bruno@clisp.org>
27010
27011         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
27012         Reported by Eric Blake.
27013
27014 2008-03-31  Jim Meyering  <meyering@redhat.com>
27015
27016         Don't compare actual signbit return values.
27017         * tests/test-strtod.c (main): Rather, compare only their
27018         zero/non-zero nature.
27019
27020 2008-03-31  Eric Blake  <ebb9@byu.net>
27021
27022         More strtod documentation.
27023         * doc/posix-functions/strtod.texi (strtod): Interpret more test
27024         failures as distinct bugs.
27025
27026 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
27027
27028         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
27029         Problem reported by Erik Benada in
27030         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
27031
27032 2008-03-30  Bruno Haible  <bruno@clisp.org>
27033
27034         * tests/test-strtod.c: Add comments about which assertion fails on which
27035         platform.
27036         * doc/posix-functions/strtod.texi: Add info about many more platforms.
27037
27038 2008-03-30  Eric Blake  <ebb9@byu.net>
27039
27040         Test signbit behavior on zeros.
27041         * tests/test-signbit.c (test_signbitf): Add tests for zero.
27042         (test_signbitd, test_signbitl): Likewise.
27043
27044         More strtod touchups.
27045         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
27046         sign of negative underflow, for now.  Use .5, not .1.
27047         * doc/posix-functions/strtod.texi (strtod): Mention these
27048         limitations.
27049         Reported by Jim Meyering.
27050
27051 2008-03-30  Bruno Haible  <bruno@clisp.org>
27052
27053         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
27054         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
27055
27056 2008-03-30  Bruno Haible  <bruno@clisp.org>
27057
27058         Avoid failure when attempting to return empty iconv results on some
27059         platforms.
27060         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
27061         allocation, don't report ENOMEM when the resulting string is empty.
27062
27063 2008-03-30  Bruno Haible  <bruno@clisp.org>
27064
27065         Fix buffer overrun.
27066         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
27067         Don't consider the width for tmp_length. Check count against tmp_length
27068         before doing the padding. Ensure enough allocation during padding.
27069
27070 2008-03-30  Eric Blake  <ebb9@byu.net>
27071
27072         strtod touchups.
27073         * lib/strtod.c (strtod): Avoid compiler warnings.
27074         Reported by Jim Meyering.
27075
27076 2008-03-30  Bruno Haible  <bruno@clisp.org>
27077
27078         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
27079         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
27080         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
27081         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
27082         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
27083         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
27084         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
27085         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
27086
27087         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
27088         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
27089         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
27090         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
27091         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
27092         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
27093         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
27094         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
27095
27096         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
27097         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
27098         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
27099         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
27100         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
27101         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
27102         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
27103         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
27104
27105         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
27106         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
27107
27108         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
27109         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
27110
27111         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
27112         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
27113
27114         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
27115         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
27116         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
27117
27118         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
27119         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
27120         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
27121
27122         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
27123         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
27124         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
27125
27126         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
27127         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
27128         * modules/vasprintf (Depends-on): Add EOVERFLOW.
27129
27130         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
27131         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
27132         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
27133         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
27134         (Depends-on): Add EOVERFLOW.
27135         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
27136         (Depends-on): Add EOVERFLOW.
27137         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27138         (Depends-on): Add EOVERFLOW.
27139         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27140         (Depends-on): Add EOVERFLOW.
27141         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27142         (Depends-on): Add EOVERFLOW.
27143         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27144         (Depends-on): Add EOVERFLOW.
27145         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27146         (Depends-on): Add EOVERFLOW.
27147         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27148         (Depends-on): Add EOVERFLOW.
27149
27150         * lib/sprintf.c (EOVERFLOW): Remove fallback.
27151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
27152         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
27153
27154         * lib/snprintf.c (EOVERFLOW): Remove fallback.
27155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
27156         * modules/snprintf (Depends-on): Add EOVERFLOW.
27157
27158         * lib/poll.c (EOVERFLOW): Remove fallback.
27159         * modules/poll (Depends-on): Add EOVERFLOW.
27160
27161         * lib/getugroups.c (EOVERFLOW): Remove fallback.
27162         * modules/getugroups (Depends-on): Add EOVERFLOW.
27163
27164         * lib/getdelim.c (EOVERFLOW): Remove fallback.
27165         * modules/getdelim (Depends-on): Add EOVERFLOW.
27166
27167         * lib/ftell.c (EOVERFLOW): Remove fallback.
27168         * modules/ftell (Depends-on): Add EOVERFLOW.
27169
27170         * lib/fprintf.c (EOVERFLOW): Remove fallback.
27171         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
27172         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
27173
27174         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
27175
27176         * modules/EOVERFLOW-tests: New file.
27177         * tests/test-EOVERFLOW.c: New file.
27178
27179         * modules/EOVERFLOW: New file.
27180         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
27181
27182 2008-03-30  Bruno Haible  <bruno@clisp.org>
27183
27184         Fix bug introduced on 2007-06-10.
27185         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
27186         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
27187
27188 2008-03-30  Bruno Haible  <bruno@clisp.org>
27189
27190         Improve freadseek's efficiency after ungetc.
27191         * lib/freadseek.c: Include freadahead.h.
27192         (freadptrinc): New function, extracted from freadseek.
27193         (freadseek): Use it in a loop. Use freadahead to determine the number
27194         of loop iterations.
27195         * modules/freadseek (Depends-on): Add freadahead.
27196         (configure.ac): Require AC_C_INLINE.
27197
27198 2008-03-30  Bruno Haible  <bruno@clisp.org>
27199
27200         * lib/freadseek.c (freadseek): Don't ignore the return value of
27201         freadptr.
27202
27203 2008-03-29  Eric Blake  <ebb9@byu.net>
27204
27205         Add hex float support.
27206         * modules/strtod (Depends-on): Add c-ctype.
27207         (Link): Mention POW_LIB.
27208         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
27209         whitespace between 'e' and exponent.
27210         * tests/test-strtod.c (main): Enable hex float tests.
27211         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
27212         now provides.
27213
27214         Document various strtod bugs, with some fixes.
27215         * doc/posix-functions/strtod.texi (strtod): Document bugs with
27216         "-0x", "inf", "nan", and hex constants.
27217         * doc/posix-functions/atof.texi (atof): Likewise.
27218         * modules/stdlib (Makefile.am): Support strtod.
27219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27220         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
27221         detect additional strtod bugs.
27222         * lib/stdlib.in.h (rpl_strtod): Add declarations.
27223         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
27224         bool where appropriate.  Parse 'inf' and 'nan'.
27225         * tests/test-strtod.c: New file.
27226         * modules/strtod (Depends-on): Add stdbool, stdlib.
27227         (configure.ac): Turn on module indicator.
27228         * modules/strtod-tests: New module.
27229
27230 2008-03-29  Eric Blake  <ebb9@byu.net>
27231
27232         Fix ftell on mingw.
27233         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
27234         * modules/ftell-tests (Depends-on): Add binary-io.
27235         * modules/ftello-tests (Depends-on): Likewise.
27236         * tests/test-ftell.c (main): Enhance test to cover behavior after
27237         ungetc.  Enforce binary mode.
27238         * tests/test-ftello.c (main): Likewise.
27239
27240         Pass test-freadseek on cygwin.
27241         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
27242         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
27243         ungetc buffer.
27244
27245         * tests/test-fflush2.c (main): Fix typo.
27246
27247 2008-03-29  Bruno Haible  <bruno@clisp.org>
27248
27249         * tests/test-fflush2.c (main): Temporarily disable the contents of
27250         this test.
27251         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
27252         Reported by Eric Blake.
27253
27254 2008-03-28  Simon Josefsson  <simon@josefsson.org>
27255
27256         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
27257         (GC_SHA224_DIGEST_SIZE): Add.
27258
27259         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
27260         (gc_hash_digest_length): Likewise.
27261         (gc_hash_buffer): Likewise.
27262
27263 2008-03-25  Bruno Haible  <bruno@clisp.org>
27264
27265         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
27266         detail which gettext release to use.
27267         Reported by Simon Josefsson.
27268
27269 2008-03-26  Jim Meyering  <meyering@redhat.com>
27270
27271         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
27272         * modules/gnumakefile (clean-GNUmakefile): Also, use
27273         test ... && ... || : syntax rather than if-then ... fi.
27274
27275         gnumakefile: Don't double-quote-expand $(VPATH) value.
27276         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
27277
27278 2008-03-24  Eric Blake  <ebb9@byu.net>
27279
27280         Alter GNUmakefile to install into top directory.
27281         * modules/maintainer-makefile: Split, and add dependency...
27282         * modules/gnumakefile: to this new module.
27283         * build-aux/GNUmakefile: Move...
27284         * top/GNUmakefile: ...here.
27285         * build-aux/maint.mk: Move...
27286         * top/maint.mk: ...here.
27287         * MODULES.html.sh (Support for maintaining...): Document new
27288         module.
27289
27290 2008-03-23  Bruno Haible  <bruno@clisp.org>
27291
27292         * gnulib-tool: New options --vc-files, --no-vc-files.
27293         (func_usage): Document them.
27294         (vc_files): New variable.
27295         (func_import): Consider vc_files.
27296         (func_create_testdir): Set vc_files to empty.
27297         Suggested by Jim Meyering and Karl Berry.
27298
27299 2008-03-23  Bruno Haible  <bruno@clisp.org>
27300
27301         Fix regex compilation error on HP-UX 11.
27302         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
27303         * modules/regex (Files): Add m4/mbstate_t.m4.
27304         Reported by Ton Voon <ton.voon@altinity.com>.
27305
27306 2008-03-23  Bruno Haible  <bruno@clisp.org>
27307
27308         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
27309
27310 2008-03-23  Eric Blake  <ebb9@byu.net>
27311             Bruno Haible  <bruno@clisp.org>
27312
27313         Install files from top/ in the destination directory.
27314         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27315         augmentation also for the files from top/.
27316         (func_import, func_create_testdir): Rewrite file names:
27317         top/filename -> filename.
27318
27319 2008-03-23  Bruno Haible  <bruno@clisp.org>
27320
27321         Tweak "gnulib --version" output.
27322         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27323
27324 2008-03-23  Bruno Haible  <bruno@clisp.org>
27325
27326         Tweak "gnulib --version" output.
27327         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27328         rather than contents of ChangeLog, when possible.
27329
27330 2008-03-21  Eric Blake  <ebb9@byu.net>
27331
27332         More --version tweaks.
27333         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27334         date of last ChangeLog entry.
27335
27336 2008-03-21  Jim Meyering  <meyering@redhat.com>
27337
27338         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27339
27340 2008-03-20  Eric Blake  <ebb9@byu.net>
27341
27342         VPATH fix.
27343         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27344
27345 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27346
27347         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27348         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27349
27350 2008-03-20  Eric Blake  <ebb9@byu.net>
27351
27352         Sync GNUmakefile with coreutils.
27353         * build-aux/GNUmakefile (have-Makefile): Rename...
27354         (_have-Makefile): ...to this, for namespace consideration.
27355         (GNUmakefile.cfg): Include, if present.
27356         (_autoreconf): Define a default.
27357         (_is-dist-target): New rule for rebuilds to pick up intra-release
27358         version.
27359         (maint-cfg.mk): Rename...
27360         (cfg.mk): ...to this.
27361
27362 2008-03-18  Jim Meyering  <meyering@redhat.com>
27363
27364         New script and module: mktempd
27365         * MODULES.html.sh (maint+release support): Add mktempd.
27366         * build-aux/mktempd: New file.
27367         * modules/mktempd: New file.
27368
27369 2008-03-15  Jim Meyering  <meyering@redhat.com>
27370
27371         Undo last change.
27372         * lib/sha1.c, lib/md5.c: 63 != ~63.
27373         Reported by Andreas Schwab.
27374
27375         sha1.c, md5.c: Hoist a redundant expression.
27376         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27377         "ctx->buflen" only once, before calling *_process_block.
27378         * lib/md5.c (md5_process_bytes): Likewise.
27379
27380 2008-03-14  Eric Blake  <ebb9@byu.net>
27381
27382         Bump copyright year in files generated by gnulib-tool.
27383         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27384         gnulib-tool, rather than hard-coding it.
27385
27386         Fix 'gnulib-tool --version' output to work with git.
27387         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27388         (startup): ...here.
27389         (func_version): Use it to invoke git-version-gen, rather than
27390         relying on CVS keyword expansion.  Modernize wording.
27391         (cvsdatestamp, last_checkin_date, version): Kill unused
27392         variables.
27393
27394 2008-03-12  Jim Meyering  <meyering@redhat.com>
27395
27396         Recognize optional cast of the argument to free.
27397         * build-aux/useless-if-before-free: Update regexps.
27398
27399         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27400
27401 2008-03-11  Bruno Haible  <bruno@clisp.org>
27402
27403         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27404         by a single package.
27405         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27406         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27407         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27408         Reported by Sam Steingold <sds@gnu.org>.
27409
27410 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27411
27412         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27413         repositories.
27414
27415 2008-03-11  Bruno Haible  <bruno@clisp.org>
27416
27417         Avoid conflicts between local macro definitions.
27418         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27419         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27420
27421 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27422             Bruno Haible  <bruno@clisp.org>
27423
27424         Make va_copy work with some version of xlc on AIX 5.1.
27425         * lib/stdarg.in.h: New file.
27426         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27427         On AIX, use a <stdarg.h> file substitute.
27428         * modules/stdarg (Files): Add lib/stdarg.in.h.
27429         (Depends-on): Add include_next.
27430         (Makefile.am): Build a stdarg.h substitute if requested.
27431         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27432
27433 2008-03-10  Bruno Haible  <bruno@clisp.org>
27434
27435         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27436         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27437         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27438
27439 2008-03-10  Bruno Haible  <bruno@clisp.org>
27440
27441         * modules/stdlib (Depends-on): Add include_next, remove
27442         absolute-header.
27443
27444 2008-03-09  Bruno Haible  <bruno@clisp.org>
27445
27446         * lib/freadahead.h (freadahead): Document more precisely.
27447         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27448         the sum of both buffer sizes.
27449         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27450         * NEWS: Document the change.
27451
27452 2008-03-09  Bruno Haible  <bruno@clisp.org>
27453
27454         Extend freadptr to return also the buffer size.
27455         * lib/freadptr.h (freadptr): Add sizep argument.
27456         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27457         (freadptr): Add sizep argument. Determine buffer size like freadahead
27458         does.
27459         * tests/test-freadptr.c: Don't include freadahead.h.
27460         (main): Adapt for new calling convention of freadptr.
27461         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27462         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27463         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27464         tests/test-freadptr2.sh.
27465         (Depends): Remove freadahead.
27466         (TESTS): Add test-freadptr2.sh.
27467         (check_PROGRAMS): Add test-freadptr2.
27468
27469 2008-03-09  Bruno Haible  <bruno@clisp.org>
27470
27471         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27472         Report and solution by Simon Josefsson.
27473
27474 2008-03-06  Bruno Haible  <bruno@clisp.org>
27475
27476         Make fflush after ungetc work on BSD platforms.
27477         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27478         * tests/test-fflush2.c: New file.
27479         * tests/test-fflush2.sh: New file.
27480         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27481         tests/test-fflush2.c.
27482         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27483         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27484
27485 2008-03-06  Eric Blake  <ebb9@byu.net>
27486
27487         Likewise for ftello.
27488         * modules/ftello (Dependencies): Add extensions.
27489         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27490
27491 2008-03-06  Bruno Haible  <bruno@clisp.org>
27492
27493         * modules/fseeko (Dependencies): Add extensions.
27494         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27495         Needed on glibc systems.
27496
27497 2008-03-06  Bruno Haible  <bruno@clisp.org>
27498
27499         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27500         email address.
27501         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27502
27503 2008-03-06  Bruno Haible  <bruno@clisp.org>
27504
27505         * users.txt: Add libgnupdf.
27506
27507 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27508
27509         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27510         (Header File Substitutes, Function Substitutes,
27511         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27512         (Build robot for gnulib): Fix typo.
27513
27514 2008-03-06  Bruno Haible  <bruno@clisp.org>
27515
27516         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27517         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27518
27519 2008-03-06  Bruno Haible  <bruno@clisp.org>
27520
27521         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27522         * doc/gnulib.texi: Include it.
27523
27524 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27525
27526         * modules/func (License): Change license to unlimited; there was
27527         no LGPL parts in the module anyway.
27528
27529 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27530
27531         * modules/__func__: Renamed to modules/func.
27532         * modules/__func__-tests: Renamed to modules/func-tests.
27533         * tests/test-__func__.c: Renamed to tests/test-func.c.
27534         * m4/__func__.m4: Renamed to m4/func.m4.
27535         * doc/gnulib.texi (__func__): Section renamed to func.
27536         Suggested by Eric Blake <ebb9@byu.net>.
27537
27538 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27539
27540         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27541         about __func__.  Make example self-contained.  Suggested by Eric
27542         Blake <ebb9@byu.net>.
27543
27544         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27545         Suggested by Eric Blake <ebb9@byu.net>.
27546
27547 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27548
27549         * modules/__func__: New file.
27550         * modules/__func__-tests: New file.
27551         * tests/test-__func__.c: New file.
27552         * m4/__func__.m4: New file.
27553         * doc/gnulib.texi (__func__): Document __func__ module.
27554
27555 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27556
27557         * modules/byteswap (License): Re-license as LGPLv2+.
27558
27559 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27560
27561         * doc/Makefile: Add pdf target.
27562
27563 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27564
27565         * modules/inline (License): Use 'unlimited', since there are only
27566         *.m4 files in this module.
27567
27568 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27569             Bruno Haible  <bruno@clisp.org>
27570
27571         Add support for HP C 7.1 on OpenVMS 8.3.
27572         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27573
27574 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27575
27576         Update VMS specifics.
27577         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27578
27579 2008-03-02  Jim Meyering  <meyering@redhat.com>
27580
27581         Remove the last dependency on the "free" module.
27582         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27583         Reported by Bob Proulx.
27584
27585         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27586
27587         Remove useless "if" tests before free.  Deprecate "free" module.
27588         * doc/posix-functions/free.texi: Mention that this
27589         module is no longer useful.
27590         * modules/free (Notice): Say this module is obsolete.
27591         * modules/readutmp (Depends-on): Remove free.
27592         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27593         * lib/putenv.c (putenv): Likewise.
27594         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27595         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27596         * tests/test-c-strcasestr.c (main): Likewise.
27597         * tests/test-c-strstr.c (main): Likewise.
27598         * tests/test-mbscasestr1.c (main): Likewise.
27599         * tests/test-mbscasestr2.c (main): Likewise.
27600         * tests/test-mbsstr1.c (main): Likewise.
27601         * tests/test-mbsstr2.c (main): Likewise.
27602         * tests/test-memmem.c (main): Likewise.
27603         * tests/test-strcasestr.c (main): Likewise.
27604         * tests/test-striconv.c (main): Likewise.
27605         * tests/test-striconveh.c (main): Likewise.
27606         * tests/test-striconveha.c (main): Likewise.
27607         * tests/test-strstr.c (main): Likewise.
27608
27609         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27610
27611         bootstrap: sync from coreutils again
27612         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27613
27614 2008-03-01  Jim Meyering  <meyering@redhat.com>
27615
27616         bootstrap: sync from coreutils
27617         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27618         also when the target doesn't exist.
27619
27620 2008-03-01  Eric Blake  <ebb9@byu.net>
27621
27622         Fix bugs in last patch.
27623         * lib/memchr2.c (memchr2): Fix typo.
27624         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27625         extension.
27626         Reported by Bruce Korb.
27627
27628         New module 'memchr2'.
27629         * modules/memchr2: New file.
27630         * modules/memchr2-tests: Likewise.
27631         * lib/memchr2.h: Likewise.
27632         * lib/memchr2.c: Likewise, based on memchr.c.
27633         * tests/test-memchr2.c: New test.
27634         * MODULES.html.sh (String handling): Add memchr2.
27635
27636 2008-02-29  Bruno Haible  <bruno@clisp.org>
27637
27638         * modules/freadseek-tests: New file.
27639         * tests/test-freadseek.sh: New file.
27640         * tests/test-freadseek.c: New file.
27641
27642         New module 'freadseek'.
27643         * modules/freadseek: New file.
27644         * lib/freadseek.h: New file.
27645         * lib/freadseek.c: New file.
27646         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27647
27648 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27649
27650         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27651         wydawca.
27652
27653         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27654         program_invocation_name and program_invocation_short_name are
27655         present.
27656
27657 2008-02-28  Bruno Haible  <bruno@clisp.org>
27658
27659         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27660         * tests/test-freadptr.sh: Also test non-seekable stdin.
27661
27662 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27663
27664         * build-aux/bootstrap (source_base, m4_base)
27665         (doc_base, tests_base): New variables.
27666         (gnulib_tool_options): Do not hardcode base directories, use
27667         the above variables instead.
27668
27669 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27670
27671         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27672
27673 2008-02-28  Bruno Haible  <bruno@clisp.org>
27674
27675         * modules/freadptr-tests: New file.
27676         * tests/test-freadptr.sh: New file.
27677         * tests/test-freadptr.c: New file.
27678
27679         New module 'freadptr'.
27680         * modules/freadptr: New file.
27681         * lib/freadptr.h: New file.
27682         * lib/freadptr.c: New file.
27683         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27684
27685 2008-02-26  Karl Berry  <karl@freefriends.org>
27686
27687         Sync from Libtool:
27688         * libltdl/argz.c (argz_add, argz_count): New functions.
27689         * libltdl/argz.in.h: Declare them.
27690         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27691
27692 2008-02-22  Bruno Haible  <bruno@clisp.org>
27693
27694         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27695         is a pointer type.  Needed for HP-UX 10.
27696         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27697         * doc/posix-functions/gmtime_r.texi: Likewise.
27698         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27699
27700 2008-02-24  Bruno Haible  <bruno@clisp.org>
27701
27702         * modules/environ-tests: New file.
27703         * tests/test-environ.c: New file.
27704
27705         New module 'environ'.
27706         * modules/environ: New file.
27707         * lib/unistd.in.h (environ): New declaration.
27708         * m4/environ.m4: New file.
27709         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27710         after use.
27711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27712         HAVE_DECL_ENVIRON.
27713         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27714         HAVE_DECL_ENVIRON.
27715         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27716         wrong claim that 'environ' is missing on some systems.
27717         * modules/execute (Depends-on): Add environ.
27718         * lib/execute.c (environ): Remove fallback declaration.
27719         * modules/pipe (Depends-on): Add environ.
27720         * lib/pipe.c (environ): Remove fallback declaration.
27721         * modules/setenv (Depends-on): Add environ.
27722         * lib/setenv.c (environ): Remove fallback declaration.
27723         * modules/unsetenv (Depends-on): Add environ.
27724         * lib/unsetenv.c (environ): Remove fallback declaration.
27725         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27726         m4/environ.m4.
27727         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27728         (gl_PREREQ_UNSETENV): Likewise.
27729
27730 2008-02-24  Bruno Haible  <bruno@clisp.org>
27731
27732         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27733
27734 2008-02-20  Bob Proulx  <bob@proulx.com>
27735
27736         Enable use of older two part flavor 'git describe'.
27737         * build-aux/git-version-gen: If using the older two part flavor of
27738         git version then recreate the third part now present in the
27739         newer three part flavor of git describe.
27740
27741 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27742
27743         * lib/fts.c (fts_build): Typo correction to comment.
27744
27745 2008-02-17  Bruno Haible  <bruno@clisp.org>
27746
27747         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27748         generating no-op conflicts.
27749
27750 2008-02-17  Bruno Haible  <bruno@clisp.org>
27751
27752         Speed up by 10%.
27753         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27754         result_entries, rather than an index-based loop.
27755
27756 2008-02-17  Bruno Haible  <bruno@clisp.org>
27757
27758         Speed up by 25%.
27759         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27760         'hashcode_cached'.
27761         (entry_create): New function.
27762         (entry_hashcode): Use the cached hashcode if possible.
27763         (read_changelog_file, try_split_merged_entry): Use entry_create.
27764
27765 2008-02-17  Bruno Haible  <bruno@clisp.org>
27766
27767         Speed up from O(n^2) to O(n) for long ChangeLog files.
27768         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27769         (read_changelog_file): Change implementation of entries_reversed list
27770         to rbtreehash.
27771         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27772
27773 2008-02-17  Bruno Haible  <bruno@clisp.org>
27774
27775         New option --split-merged-entry.
27776         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27777         (find_paragraph_end, try_split_merged_entry): New functions.
27778         (long_options): Add option --split-merged-entry.
27779         (usage): Document option --split-merged-entry.
27780         (main): Implement option --split-merged-entry.
27781         Reported by Eric Blake.
27782
27783 2008-02-17  Bruno Haible  <bruno@clisp.org>
27784
27785         * lib/git-merge-changelog.c: Include c-strstr.h.
27786         (main): Support the "git pull --rebase" situation.
27787         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27788         Reported by Eric Blake.
27789
27790 2008-02-16  Eric Blake  <ebb9@byu.net>
27791
27792         Avoid doubling \ in common case of "c-maybe" quoting style.
27793         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27794         eliding outer quotes.
27795         * lib/quotearg.h: Document this.
27796         * tests/test-quotearg.c (result_strings, inputs, results_g)
27797         (flag_results, locale_results): Test it by adding a new string to
27798         each test group.
27799         (compare_strings): Test new string.
27800
27801 2008-02-13  Eric Blake  <ebb9@byu.net>
27802
27803         Avoid trigraph quoting in default output.
27804         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27805         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27806         unless explicitly requested.
27807         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27808
27809 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27810
27811         Don't rely on signed integer overflowing to negative value.
27812         * lib/getugroups.c (getugroups): Include <limits.h>.
27813         Instead, compare against INT_MAX, and increment only if the test passes.
27814
27815 2008-02-13  Jim Meyering  <meyering@redhat.com>
27816         and Eric Blake  <ebb9@byu.net>
27817
27818         Avoid shadowing warning and compile errors on Linux.
27819         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27820         forwarding macros on Linux.
27821         (dcgettext): Define a stub, for Linux.
27822         (results_g, main): Avoid warnings.
27823
27824 2008-02-12  Eric Blake  <ebb9@byu.net>
27825
27826         Silence warning in last patch.
27827         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27828
27829         Quotearg part 4: add tests, fix c-maybe colon quoting.
27830         * lib/quotearg.h: Improve documentation.
27831         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27832         escapes when adding outer quotes.  When quoting trigraphs, use
27833         valid C notation.  When quoting NUL, omit extra characters if next
27834         character is not digit.  Alter prototype.
27835         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27836         callers.
27837         * modules/quotearg-tests: New module.
27838         * tests/test-quotearg.c: New test.
27839
27840 2008-02-07  Eric Blake  <ebb9@byu.net>
27841
27842         Quotearg part 3: add flag to control outer quote elision.
27843         * lib/quotearg.h (c_maybe_quoting_style): New style.
27844         (enum quoting_flags): Better documentation of flags.
27845         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27846         c-maybe style.
27847         (quotearg_buffer_restyled): Handle new flag to elide outer
27848         quotes.
27849
27850         Quotearg part 2: add flag that can control NUL elision.
27851         * lib/quotearg.h (set_quoting_flags): New prototype.
27852         * lib/quotearg.c (struct quoting_options): Add flag field.
27853         (set_quoting_flags): New function.
27854         (quotearg_buffer_restyled): Add flags parameter.
27855         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27856         (quotearg_n_options): Set the flag, since length cannot be
27857         returned.
27858         (quoting_options_from_style): Default flags correctly.
27859
27860         Quotearg part 1: more wrappers, restore quotearg_char state.
27861         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27862         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27863         (quotearg_colon_mem): New wrappers.
27864         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27865         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27866         functions.
27867         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27868         (quotearg_colon_mem): New functions.
27869
27870 2008-02-11  Bruno Haible  <bruno@clisp.org>
27871
27872         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27873         library in the current directory: it does not work with parallel make.
27874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27875
27876 2008-02-11  Bruno Haible  <bruno@clisp.org>
27877
27878         * .gitattributes: New file.
27879
27880 2008-02-11  Jim Meyering  <meyering@redhat.com>
27881
27882         useless-if-before-free: Fix reversed exit values.
27883         * build-aux/useless-if-before-free: Use correct values
27884         for EXIT_MATCH and EXIT_NO_MATCH.
27885
27886         * build-aux/useless-if-before-free: Close stdout carefully.
27887
27888 2008-02-10  Bruno Haible  <bruno@clisp.org>
27889
27890         New module 'git-merge-changelog'.
27891         * modules/git-merge-changelog: New file.
27892         * lib/git-merge-changelog.c: New file.
27893
27894 2008-02-10  Jim Meyering  <meyering@redhat.com>
27895
27896         useless-if-before-free: New option: --list (-l).
27897
27898         useless-if-before-free: Don't exit immediately upon open failure.
27899         * build-aux/useless-if-before-free: Exit 2 for errors.
27900         Upon failure to open a file, don't exit immediately.
27901         Rather, just warn and continue with any remaining files.
27902
27903 2008-02-10  Bruno Haible  <bruno@clisp.org>
27904
27905         New abstract list operation 'node_set_value'.
27906         * lib/gl_list.h (gl_list_node_set_value): New function.
27907         (struct gl_list_implementation): New field node_set_value.
27908         * lib/gl_list.c (gl_list_node_set_value): New function.
27909         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27910         (gl_array_list_implementation): Update.
27911         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27912         (gl_carray_list_implementation): Update.
27913         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27914         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27915         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27916         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27917         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27918         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27919         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27920         Update.
27921         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27922         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27923         (gl_sublist_list_implementation): Update.
27924
27925 2008-02-10  Bruno Haible  <bruno@clisp.org>
27926
27927         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27928         Needed when ELEMENT is #defined to 'some_type *'.
27929
27930 2008-02-10  Jim Meyering  <meyering@redhat.com>
27931
27932         New script and module: useless-if-before-free
27933         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27934         * build-aux/useless-if-before-free: New file.
27935         * modules/useless-if-before-free: New file.
27936
27937         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27938
27939         xstrtol_error: Fix typo.
27940         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27941         s/exit_failure/exit_status/.
27942
27943 2008-02-09  Jim Meyering  <meyering@redhat.com>
27944
27945         New script and module: gitlog-to-changelog
27946         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27947         * modules/gitlog-to-changelog: New file.
27948         * build-aux/gitlog-to-changelog: New file.
27949
27950 2008-02-08  Jim Meyering  <meyering@redhat.com>
27951
27952         Avoid two "parameter unused" warnings.
27953         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27954         Mark "st" as used.
27955
27956         Use "git COMMAND", not "git-COMMAND".
27957         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27958         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27959         * build-aux/git-version-gen: Use "git status", not "git-status".
27960
27961 2008-02-07  Bruno Haible  <bruno@clisp.org>
27962
27963         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27964         Avoids a crash on Windows Vista.
27965         Reported by Adam Strzelecki <ono@java.pl> via
27966         Simon Josefsson <simon@josefsson.org>.
27967
27968 2008-02-06  Bruno Haible  <bruno@clisp.org>
27969
27970         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27971         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27972         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27974         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27975         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27976         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27977         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27978         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27979         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27980         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27981         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27982         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27983         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27984         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27985         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27986         left-adjust flag.
27987         * tests/test-snprintf-posix.h (test_function): Likewise.
27988         * tests/test-sprintf-posix.h (test_function): Likewise.
27989         * tests/test-vasprintf-posix.c (test_function): Likewise.
27990         * doc/posix-functions/fprintf.texi: Update.
27991         * doc/posix-functions/printf.texi: Update.
27992         * doc/posix-functions/snprintf.texi: Update.
27993         * doc/posix-functions/sprintf.texi: Update.
27994         * doc/posix-functions/vfprintf.texi: Update.
27995         * doc/posix-functions/vprintf.texi: Update.
27996         * doc/posix-functions/vsnprintf.texi: Update.
27997         * doc/posix-functions/vsprintf.texi: Update.
27998         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27999
28000 2008-02-06  Bruno Haible  <bruno@clisp.org>
28001
28002         Fix bug introduced on 2008-01-26.
28003         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
28004
28005 2008-02-06  Bruno Haible  <bruno@clisp.org>
28006
28007         Fix bug introduced on 2007-06-10.
28008         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
28009         !NEED_PRINTF_FLAG_ZERO.
28010
28011 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
28012
28013         getloadavg: use libperfstat on AIX5
28014         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
28015
28016 2008-02-03  Bruno Haible  <bruno@clisp.org>
28017
28018         * lib/diffseq.h: Add comments about required #includes.
28019         Reported by Michael Biggs <gnulib@doubleplum.net>.
28020
28021 2008-02-01  Bruno Haible  <bruno@clisp.org>
28022
28023         * users.txt: Add gnuit.
28024
28025 2008-01-31  Bruno Haible  <bruno@clisp.org>
28026
28027         * lib/md4.c (set_uint32): Mark as inline.
28028         * lib/md5.c (set_uint32): Likewise.
28029         * lib/sha1.c (set_uint32): Likewise.
28030         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
28031         * m4/md5.m4 (gl_MD5): Likewise.
28032         * m4/sha1.m4 (gl_SHA1): Likewise.
28033
28034 2008-01-31  Jim Meyering  <meyering@redhat.com>
28035
28036         Use "sizeof VAR", rather than a literal "4".
28037         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
28038         * lib/md4.c (md4_read_ctx): Likewise.
28039         * lib/sha1.c (sha1_read_ctx): Likewise.
28040
28041 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28042
28043         * tests/test-sha1.c: New file, based on test-md5.c.
28044
28045         * modules/crypto/sha1-tests: New file.
28046
28047 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28048
28049         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
28050
28051 2008-01-31  Jim Meyering  <meyering@redhat.com>
28052
28053         Prefer "sizeof v" over the equivalent "4".
28054         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
28055         * lib/md5.c (set_uint32): Likewise.
28056         * lib/sha1.c (set_uint32): Likewise.
28057
28058 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28059
28060         * lib/sha1.c (set_uint32): Mark function as static.
28061
28062 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28063
28064         md2: clarify comments to say that alignment is not required.
28065         * lib/md2.h: Remove warning about alignment in comment.
28066         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
28067         never been required.
28068
28069 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28070
28071         md4: adapt alignment constraint fix from sha1.
28072         * lib/md4.c (set_uint32): New function, from sha1.c
28073         (md4_read_ctx): Use it.
28074         (md4_finish_ctx): Doc fix.
28075         * lib/md4.h: Doc fix.
28076
28077 2008-01-31  Simon Josefsson  <simon@josefsson.org>
28078
28079         md5: adapt alignment constraint fix from sha1.
28080         * lib/md5.c (set_uint32): New function, from sha1.c
28081         (md5_read_ctx): Use it.
28082         (md5_finish_ctx): Doc fix.
28083         * lib/md5.h: Doc fix.
28084
28085 2008-01-30  Peter Palfrader  <weasel@debian.org>
28086
28087         sha1: remove the result buffer alignment constraint
28088         * lib/sha1.c (set_uint32): New function.
28089         (sha1_read_ctx): Rewrite to remove the result buffer alignment
28090         constraint.
28091         (sha1_finish_ctx): Remove comment warning about alignment constraint.
28092         * lib/sha1.h: Likewise.
28093
28094 2008-01-30  Andreas Schwab  <schwab@suse.de>
28095             Bruno Haible  <bruno@clisp.org>
28096
28097         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
28098         correct definition of LDBL_MIN_EXP.
28099
28100 2008-01-30  Karl Berry  <karl@gnu.org>
28101
28102         * config/srclist-update: try to preserve x bit on updates.
28103         * config/srclistvars.sh: update for karl.
28104
28105 2008-01-29  Jim Meyering  <meyering@redhat.com>
28106
28107         vasnprintf.c: Avoid warning about unused label
28108         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
28109         "overflow" label definition and associated code with the
28110         same cpp condition that guards the sole use of that label.
28111
28112 2008-01-26  Bruno Haible  <bruno@clisp.org>
28113
28114         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
28115         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
28116         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
28117         * lib/isnanl-nolibm.h (isnanl): Likewise.
28118         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28119
28120 2008-01-26  Bruno Haible  <bruno@clisp.org>
28121
28122         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
28123         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
28124
28125 2008-01-26  Bruno Haible  <bruno@clisp.org>
28126
28127         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
28128         GCC >= 4.0 built-in.
28129         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
28130
28131 2008-01-26  Bruno Haible  <bruno@clisp.org>
28132
28133         Rename isnan, applicable to 'double' only, to isnand.
28134         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
28135         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
28136         (configure.ac): Update.
28137         (Include): Replace "isnan.h" with "isnand.h".
28138         * m4/isnand.m4: Renamed from m4/isnan.m4.
28139         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
28140         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
28141         instead of isnan.c.
28142         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
28143         instead of HAVE_ISNAN_IN_LIBC.
28144         (isnand): Renamed from isnan.
28145         * lib/isnand.c: New file.
28146         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
28147         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
28148         (Makefile.am): Update.
28149         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
28150         Include isnand.h instead of isnan.h.
28151         (main): Test isnand instead of isnan.
28152         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
28153         isnan-nolibm.
28154         * modules/frexp (Depends-on): Likewise.
28155         * modules/frexp-tests (Depends-on): Likewise.
28156         * modules/frexp-nolibm (Depends-on): Likewise.
28157         * modules/frexp-nolibm-tests (Depends-on): Likewise.
28158         * modules/isfinite (Depends-on): Likewise.
28159         * modules/round-tests (Depends-on): Likewise.
28160         * modules/signbit (Depends-on): Likewise.
28161         * modules/signbit-tests (Depends-on): Likewise.
28162         * modules/snprintf-posix (Depends-on): Likewise.
28163         * modules/sprintf-posix (Depends-on): Likewise.
28164         * modules/trunc-tests (Depends-on): Likewise.
28165         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28166         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28167         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28168         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28169         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28170         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28171         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28172         * modules/vasnprintf-posix (Depends-on): Likewise.
28173         * modules/vasprintf-posix (Depends-on): Likewise.
28174         * modules/vfprintf-posix (Depends-on): Likewise.
28175         * modules/vsnprintf-posix (Depends-on): Likewise.
28176         * modules/vsprintf-posix (Depends-on): Likewise.
28177         * lib/frexp.c: Include isnand.h instead of isnan.h.
28178         (ISNAN): Set to isnand instead of isnan.
28179         * lib/isfinite.c: Include isnand.h instead of isnan.h.
28180         (gl_isfinited): Use isnand instead of isnan.
28181         * lib/signbitd.c: Include isnand.h instead of isnan.h.
28182         (gl_signbitd): Use isnand instead of isnan.
28183         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
28184         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
28185         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
28186         (main): Use isnand instead of isnan.
28187         * tests/test-round1.c: Include isnand.h.
28188         (main): Use isnand instead of isnan.
28189         * tests/test-round2.c: Include isnand.h instead of isnan.h.
28190         (ISNAN): Set to isnand instead of isnan.
28191         * tests/test-trunc1.c: Include isnand.h.
28192         (main): Use isnand instead of isnan.
28193         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
28194         (equal): Use isnand instead of isnan.
28195         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
28196         isnand-nolibm.
28197         * NEWS: Mention the change.
28198
28199 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28200             Bruno Haible  <bruno@clisp.org>
28201
28202         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
28203         the GCC builtins for signbits are present and set
28204         REPLACE_SIGNBIT_USING_GCC if so.
28205         * lib/math.in.h (signbit): Define using GCC builtins if
28206         REPLACE_SIGNBIT_USING_GCC is set.
28207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
28208         REPLACE_SIGNBIT_USING_GCC.
28209         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
28210
28211 2008-01-25  Jim Meyering  <meyering@redhat.com>
28212
28213         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
28214         * lib/poll.c: Include <config.h>, not "config.h".
28215         * tests/test-getaddrinfo.c: Likewise.
28216
28217 2008-01-25  Simon Josefsson  <simon@josefsson.org>
28218
28219         * modules/sockets-tests: New file.
28220
28221 2008-01-24  Simon Josefsson  <simon@josefsson.org>
28222
28223         * modules/sockets: New module, can be used to call WSA_Startup and
28224         WSA_Cleanup when needed.
28225
28226         * lib/sockets.h, lib/sockets.c: New files.
28227
28228         * m4/sockets.m4: New file.
28229
28230         * tests/test-sockets.c: New file.
28231
28232 2008-01-19  Bruno Haible  <bruno@clisp.org>
28233
28234         * doc/posix-headers: Renamed from doc/headers.
28235         * doc/posix-functions: Renamed from doc/functions.
28236         * doc/gnulib.texi: Update.
28237
28238 2008-01-19  Bruno Haible  <bruno@clisp.org>
28239
28240         * doc/glibc-functions/strcasestr.texi: Include contents of
28241         doc/functions/strcasestr.texi, fixing the list of platforms.
28242         * doc/functions/strcasestr.texi: Remove file.
28243
28244 2008-01-19  Bruno Haible  <bruno@clisp.org>
28245
28246         * doc/glibc-functions/memmem.texi: Include contents of
28247         doc/functions/memmem.texi.
28248         * doc/functions/memmem.texi: Remove file.
28249
28250 2008-01-18  Bruno Haible  <bruno@clisp.org>
28251
28252         * doc/glibc-functions/*.texi: New files.
28253         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
28254         to use the new files.
28255
28256 2008-01-17  Bruno Haible  <bruno@clisp.org>
28257
28258         * tests/test-gethostname.c (main): Fix printf statement.
28259
28260 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28261
28262         * modules/gethostname-tests: New file.
28263
28264         * tests/test-gethostname.c: New file.
28265
28266 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28267
28268         * lib/gethostname.c: Include string.h unconditionally, strncpy is
28269         used by the UNAME case.  Reported by Bruno Haible
28270         <bruno@clisp.org>.
28271
28272 2008-01-17  Eric Blake  <ebb9@byu.net>
28273
28274         Convert c-strcasestr to be more efficient.
28275         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
28276         (Depends-on): Add c-strcase, remove malloca, strnlen.
28277         * tests/test-c-strcasestr.c (main): Enhance test.
28278         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
28279
28280 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28281
28282         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
28283         Use it in creating po/Makevars.
28284
28285 2008-01-15  Simon Josefsson  <simon@josefsson.org>
28286
28287         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
28288         Applications that requires it should initialize libgcrypt
28289         manually.
28290
28291 2008-01-16  Simon Josefsson  <simon@josefsson.org>
28292
28293         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
28294
28295 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28296
28297         Fix problem with getdate on mingw32 reported by Simon Josefsson
28298         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
28299         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
28300         tzname", when deciding whether to declare tzname.
28301         * lib/strftime.c (tzname): Likewise.
28302
28303 2008-01-15  Bruno Haible  <bruno@clisp.org>
28304
28305         Work around a MacOS X 10.5 bug in frexpl().
28306         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
28307         * doc/functions/frexpl.texi: Document the bug.
28308         Reported by Elias Pipping <pipping@gentoo.org>.
28309
28310 2008-01-14  Eric Blake  <ebb9@byu.net>
28311
28312         Touch up previous patch.
28313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28314         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28315
28316         Convert strcasestr module to use Two-Way algorithm.
28317         * modules/strcasestr-simple: New module, based on the old
28318         strcasestr, but with Two-Way rather than KMP.
28319         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28320         * lib/string.in.h (rpl_strcasestr): Declare.
28321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28322         performance.
28323         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28324         * modules/string (Makefile.am): Support strcasestr.
28325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28326         * modules/strcasestr-tests (Depends-on): Check for alarm.
28327         * tests/test-strcasestr.c: Augment test.
28328         * lib/str-two-way.h: Clean up stray macro.
28329         * NEWS: Document new module.
28330         * MODULES.html.sh (string handling): Likewise.
28331         * doc/functions/strcasestr.texi: New file.
28332         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28333         here, since it is not a POSIX function.
28334
28335 2008-01-14  Colin Watson  <cjwatson@debian.org>
28336             Bruno Haible  <bruno@clisp.org>
28337
28338         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28339         works fine; if not, set REPLACE_STRSIGNAL.
28340         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28342         REPLACE_STRSIGNAL.
28343         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28344         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28345         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28346
28347 2008-01-14  Bruno Haible  <bruno@clisp.org>
28348
28349         * modules/strsignal (Include): Change to <string.h>.
28350
28351 2008-01-14  Colin Watson  <cjwatson@debian.org>
28352
28353         * modules/argp (Notice): Add a notice recommending to change
28354         XGETTEXT_OPTIONS.
28355         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28356
28357 2008-01-13  Colin Watson  <cjwatson@debian.org>
28358
28359         * modules/strsignal-tests: New file.
28360         * tests/test-strsignal.c: New file.
28361
28362         * lib/strsignal.c: New file, from glibc with modifications.
28363         * lib/siglist.h: New file, from glibc with modifications.
28364         * lib/string.in.h (strsignal): New declaration.
28365         * m4/strsignal.m4: New file.
28366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28367         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28368         * modules/strsignal: New file.
28369         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28370         HAVE_DECL_STRSIGNAL.
28371
28372 2008-01-13  Bruno Haible  <bruno@clisp.org>
28373
28374         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28375         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28376         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28377         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28378
28379 2008-01-13  Bruno Haible  <bruno@clisp.org>
28380
28381         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28382         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28383         * lib/argp.h (__attribute__): Likewise.
28384         * lib/c-stack.c (__attribute__): Likewise.
28385         * lib/error.h (__attribute__): Likewise.
28386         * lib/fts.c (__attribute__): Likewise.
28387         * lib/openat.h (__attribute__): Likewise.
28388         * lib/stdio.in.h (__attribute__): Likewise.
28389         * lib/string.in.h (__attribute__): Likewise.
28390         * lib/utimens.c (__attribute__): Likewise.
28391         * lib/vasnprintf.h (__attribute__): Likewise.
28392         * lib/xalloc.h (__attribute__): Likewise.
28393         * lib/xprintf.h (__attribute__): Likewise.
28394         * lib/xstrtol.h (__attribute__): Likewise.
28395         * lib/xvasprintf.h (__attribute__): Likewise.
28396
28397 2008-01-12  Bruno Haible  <bruno@clisp.org>
28398
28399         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28400         * doc/glibc-headers/a.out.texi: New file.
28401         * doc/glibc-headers/aliases.texi: New file.
28402         * doc/glibc-headers/alloca.texi: New file.
28403         * doc/glibc-headers/ar.texi: New file.
28404         * doc/glibc-headers/argp.texi: New file.
28405         * doc/glibc-headers/argz.texi: New file.
28406         * doc/glibc-headers/byteswap.texi: New file.
28407         * doc/glibc-headers/crypt.texi: New file.
28408         * doc/glibc-headers/endian.texi: New file.
28409         * doc/glibc-headers/envz.texi: New file.
28410         * doc/glibc-headers/err.texi: New file.
28411         * doc/glibc-headers/error.texi: New file.
28412         * doc/glibc-headers/execinfo.texi: New file.
28413         * doc/glibc-headers/fpu_control.texi: New file.
28414         * doc/glibc-headers/fstab.texi: New file.
28415         * doc/glibc-headers/fts.texi: New file.
28416         * doc/glibc-headers/getopt.texi: New file.
28417         * doc/glibc-headers/ieee754.texi: New file.
28418         * doc/glibc-headers/ifaddrs.texi: New file.
28419         * doc/glibc-headers/libintl.texi: New file.
28420         * doc/glibc-headers/mcheck.texi: New file.
28421         * doc/glibc-headers/mntent.texi: New file.
28422         * doc/glibc-headers/obstack.texi: New file.
28423         * doc/glibc-headers/paths.texi: New file.
28424         * doc/glibc-headers/printf.texi: New file.
28425         * doc/glibc-headers/pty.texi: New file.
28426         * doc/glibc-headers/resolv.texi: New file.
28427         * doc/glibc-headers/shadow.texi: New file.
28428         * doc/glibc-headers/sysexits.texi: New file.
28429         * doc/glibc-headers/ttyent.texi: New file.
28430
28431 2008-01-12  Jim Meyering  <meyering@redhat.com>
28432
28433         announce-gen: emit Gnulib's git-based version string.
28434         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28435         New option --gnulib-version=V, where V is expected to be
28436         the output of running git describe in the gnulib directory.
28437         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28438         not useful, and plan to stop publishing an xdelta file with each
28439         coreutils release.
28440
28441         * build-aux/announce-gen: Also check for lzma-compressed files.
28442
28443 2008-01-11  Bruno Haible  <bruno@clisp.org>
28444
28445         * tests/test-memmem.c (main): Increase maximum allowed time.
28446         * tests/test-strstr.c (main): Likewise.
28447
28448 2008-01-11  Bruno Haible  <bruno@clisp.org>
28449
28450         * doc/functions/memmem.texi: Add more precisions about platforms.
28451         * doc/functions/strstr.texi: Likewise.
28452
28453 2008-01-10  Eric Blake  <ebb9@byu.net>
28454
28455         * m4/strstr.m4: Delete cruft from copy-n-paste.
28456         Reported by Bruno Haible.
28457
28458 2008-01-10  Bruno Haible  <bruno@clisp.org>
28459
28460         Make c-strstr rely on strstr.
28461         * lib/c-strstr.c: Don't include str-kmp.h.
28462         (c_strstr): Define in terms of strstr.
28463         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28464         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28465
28466 2008-01-10  Bruno Haible  <bruno@clisp.org>
28467
28468         * doc/gnulib.texi (String Functions in C Locale): New section.
28469         * doc/c-ctype.texi: New file.
28470         * doc/c-strcase.texi: New file.
28471         * doc/c-strcaseeq.texi: New file.
28472         * doc/c-strcasestr.texi: New file.
28473         * doc/c-strstr.texi: New file.
28474         * doc/c-strtod.texi: New file.
28475         * doc/c-strtold.texi: New file.
28476
28477 2008-01-10  Eric Blake  <ebb9@byu.net>
28478
28479         * lib/relocatable.h: Fix a comment.
28480
28481 2008-01-10  Eric Blake  <ebb9@byu.net>
28482
28483         Share two-way algorithm.
28484         * lib/str-two-way.h: New file, merged from...
28485         * lib/memmem.c: ...here...
28486         * lib/strstr.c: ...and here.
28487         * modules/memmem (Files): Use it.
28488         * modules/strstr (Files): Likewise.
28489
28490         Avoid quadratic strstr implementations.
28491         * lib/strstr.c: New file.
28492         * m4/strstr.m4: Likewise.
28493         * modules/strstr: Likewise.
28494         * modules/strstr-tests: Likewise.
28495         * tests/test-strstr.c: Likewise.
28496         * lib/string.in.h (rpl_strstr): Declare.
28497         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28499         * modules/string (Makefile.am): Likewise.
28500         * MODULES.html.sh (string handling): Mention new module.
28501         * doc/functions/strstr.texi (strstr): Document the bug.
28502
28503 2008-01-10  Bruno Haible  <bruno@clisp.org>
28504
28505         * lib/relocatable.h (relocate): State whether result is freshly
28506         allocated or not.
28507         * lib/relocatable.c (relocate): Return a freshly allocated string
28508         instead of a pointer to a privately held string.
28509         Reported by Sylvain Beucler <beuc@gnu.org>.
28510
28511 2008-01-10  Colin Watson  <cjwatson@debian.org>
28512
28513         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28514         s/S_ISNLK/S_ISLNK/.
28515
28516 2008-01-09  Bruno Haible  <bruno@clisp.org>
28517
28518         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28519         and other files.
28520         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28521         if it's only a guess.
28522         * modules/memmem: Simplify by depending on memmem-simple.
28523
28524 2008-01-09  Bruno Haible  <bruno@clisp.org>
28525
28526         Work around OpenBSD 4.0 tdelete() bug.
28527         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28528         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28529         macros and don't redefine the enum values.
28530         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28531         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28532         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28533
28534 2008-01-09  Bruno Haible  <bruno@clisp.org>
28535
28536         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28537         (main): Don't perform the tests if setlocale did not install a UTF-8
28538         locale. Needed on OpenBSD 4.0.
28539         * modules/wcwidth-tests (Depends-on): Add localcharset.
28540
28541 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28542
28543         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28544         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28545         * NEWS: announce this.
28546         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28547
28548 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28549         and Eric Blake  <ebb9@byu.net>
28550
28551         Add memmem-simple module.
28552         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28553         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28554         * modules/memmem-simple: New file.
28555         * modules/memmem (Description): Tweak.
28556         * MODULES.html.sh (string handling): Mention new module.
28557         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28558         addressed by memmem-simple.
28559         * NEWS: Document the difference.
28560
28561 2008-01-09  Eric Blake  <ebb9@byu.net>
28562
28563         Give gcc some memmem optimization hints.
28564         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28565         (strcasestr): Declare as pure.
28566         * modules/memmem (Maintainer): Claim my implementation.
28567
28568 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28569
28570         Support AIX 6.1 and higher.
28571         * build-aux/config.libpath: Likewise.
28572         * build-aux/config.rpath: Likewise.
28573
28574 2008-01-08  Jim Meyering  <meyering@redhat.com>
28575             Bruno Haible  <bruno@clisp.org>
28576
28577         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28578         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28579         Reported by Peter Fales in
28580         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28581
28582 2008-01-08  Bruno Haible  <bruno@clisp.org>
28583
28584         * modules/unictype/category-of (Depends-on): Add
28585         unictype/category-none.
28586         * modules/unictype/category-and-tests (Depends-on): Add
28587         unictype/category-{L,N,Lu,Nd}.
28588         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28589         * modules/unictype/category-or-tests (Depends-on): Add
28590         unictype/category-{L,N}.
28591         * modules/unictype/category-name-tests (Depends-on): Add
28592         unictype/category-{Z,Nl}.
28593         Reported by Simon Josefsson.
28594
28595 2008-01-08  Bruno Haible  <bruno@clisp.org>
28596
28597         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28598         convention better.
28599         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28600         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28601         Reported by Peter Miller <millerp@canb.auug.org.au>.
28602
28603 2008-01-08  Eric Blake  <ebb9@byu.net>
28604
28605         Rewrite memmem to guarantee linear complexity without malloc.
28606         * lib/memmem.c (memmem): Use Two-Way rather than
28607         Knuth-Morris-Pratt, to allow O(1) space usage.
28608         (critical_factorization, two_way_short_needle)
28609         (two_way_long_needle): New functions.
28610         (knuth_morris_pratt): Delete.
28611         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28612         Add stdint.
28613         * tests/test-memmem.c (main): Add tests for periodic needle and
28614         sublinear performance.
28615         * doc/functions/memmem.texi (memmem): Document other deficiencies
28616         in cygwin and older glibc.
28617
28618 2008-01-08  Bruno Haible  <bruno@clisp.org>
28619
28620         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28621         augmentation.
28622
28623 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28624
28625         Add a configure time option: --disable-acl.
28626         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28627         AC_ARG_ENABLE(acl).
28628
28629 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28630
28631         * tests/test-localename.c: Don't include obsolete "setenv.h".
28632
28633         * modules/localename-tests (Depends-on): Need unsetenv.
28634
28635 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28636
28637         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28638
28639 2008-01-06  Colin Watson  <cjwatson@debian.org>
28640
28641         * users.txt: Add man-db.
28642
28643 2008-01-07  Bruno Haible  <bruno@clisp.org>
28644
28645         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28646         previous section name.
28647
28648 2008-01-07  Bruno Haible  <bruno@clisp.org>
28649
28650         * lib/progname.c (set_program_name): Don't strip off a leading
28651         "lt-" prefix outside a .libs directory.
28652         Suggested by Paul Eggert.
28653
28654 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28655             Bruno Haible  <bruno@clisp.org>
28656
28657         Improve memory cleanup in 'relocatable' module.
28658         * lib/relocatable.h (compute_curr_prefix): Change return type to
28659         'char *'.
28660         * lib/relocatable.c (compute_curr_prefix): Change return type to
28661         'char *'. Free curr_installdir after use.
28662         (relocate): Free curr_prefix_better after use.
28663         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28664
28665 2008-01-01  Bruno Haible  <bruno@clisp.org>
28666
28667         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28668         failure on older glibc systems.
28669         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28670
28671 2008-01-05  Eric Blake  <ebb9@byu.net>
28672
28673         Avoid quadratic system memmem.
28674         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28675         Reported by Ralf Wildenhues.
28676
28677         Fix memmem test for mingw.
28678         * modules/memmem-tests (configure.ac): Check for alarm.
28679         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28680         it.
28681         * doc/functions/memmem.texi: New file.
28682         * doc/gnulib.texi (Function Substitutes): Add memmem.
28683         Reported by Bruno Haible.
28684
28685 2008-01-04  Bruno Haible  <bruno@clisp.org>
28686
28687         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28688         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28689         gl_HEADER_STRING_H_DEFAULTS.
28690
28691 2008-01-04  Eric Blake  <ebb9@byu.net>
28692
28693         Shorten duration of memmem test.
28694         * tests/test-memmem.c (main): Use alarm to declare failure if test
28695         is taking too long.
28696         Reported by Ralf Wildenhues.
28697
28698 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28699
28700         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28701         string, needed by strerror.
28702
28703 2008-01-03  Colin Watson  <cjwatson@debian.org>
28704             Bruno Haible  <bruno@clisp.org>
28705
28706         * doc/gnulib-tool.texi (Localization): New section.
28707
28708 2008-01-02  Bruno Haible  <bruno@clisp.org>
28709
28710         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28711         variables to 'unsigned char *' type.
28712         Reported by Paul Eggert.
28713
28714 2008-01-02  Jim Meyering  <jim@meyering.net>
28715
28716         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28717
28718 2007-12-31  Jim Meyering  <jim@meyering.net>
28719
28720         Avoid use of private FTS type name.
28721         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28722
28723 2007-12-30  Karl Berry  <karl@gnu.org>
28724
28725         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28726         work around defect in Texinfo and/or the standalone Info browser.
28727
28728 2007-12-30  Bruno Haible  <bruno@clisp.org>
28729
28730         Unify 5 copies of the KMP code.
28731         * lib/str-kmp.h: New file.
28732         * lib/c-strcasestr.c: Include str-kmp.h.
28733         (knuth_morris_pratt): Remove function.
28734         (c_strcasestr): Update.
28735         * lib/c-strstr.c: Include str-kmp.h.
28736         (knuth_morris_pratt): Remove function.
28737         (c_strcasestr): Update.
28738         * lib/mbscasestr.c: Include str-kmp.h.
28739         (knuth_morris_pratt_unibyte): Remove function.
28740         * lib/mbsstr.c: Include str-kmp.h.
28741         (knuth_morris_pratt_unibyte): Remove function.
28742         * lib/strcasestr.c: Include str-kmp.h.
28743         (knuth_morris_pratt): Remove function.
28744         (strcasestr): Update.
28745         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28746         * modules/c-strstr (Files): Likewise.
28747         * modules/mbscasestr (Files): Likewise.
28748         * modules/mbsstr (Files): Likewise.
28749         * modules/strcasestr (Files): Likewise.
28750         Suggested by Paul Eggert.
28751
28752 2007-12-30  Bruno Haible  <bruno@clisp.org>
28753
28754         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28755         defined.
28756
28757 2007-12-30  Bruno Haible  <bruno@clisp.org>
28758
28759         * lib/xmalloca.h: Include xalloc.h.
28760         (xnmalloca): New macro.
28761
28762 2007-12-30  Bruno Haible  <bruno@clisp.org>
28763
28764         * lib/malloca.h (nmalloca): New macro.
28765         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28766         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28767         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28768         knuth_morris_pratt_multibyte): Likewise.
28769         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28770         knuth_morris_pratt_multibyte): Likewise.
28771         * lib/memmem.c (knuth_morris_pratt): Likewise.
28772         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28773
28774 2007-12-25  Bruno Haible  <bruno@clisp.org>
28775
28776         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28777         * lib/glob.c: Don't include openat.h.
28778         (link_exists2_p): Add back the code that deals with the
28779         !GLOB_ALTDIRFUNC case.
28780         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28781         let it do the filename concatenation.
28782         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28783         * modules/glob (Depends-on): Remove openat.
28784
28785 2007-12-31  Bruno Haible  <bruno@clisp.org>
28786
28787         * modules/dirfd (License): Change to LGPLv2+.
28788         Approved by Jim Meyering.
28789
28790 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28791
28792         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28793         when multiplying M by sizeof (size_t).
28794
28795 2007-12-10  Martin Lambers  <marlam@marlam.de>
28796
28797         Override getpagesize on mingw.
28798         * lib/getpagesize.c: New file.
28799         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28800         * modules/getpagesize (Files): Add lib/getpagesize.c.
28801         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28803         REPLACE_GETPAGESIZE.
28804         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28805
28806 2007-12-25  Bruno Haible  <bruno@clisp.org>
28807
28808         * modules/localcharset (Notice): New field.
28809         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28810         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28811
28812 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28813             Bruno Haible  <bruno@clisp.org>
28814
28815         Avoid using the syntax symbol() in formatted documentation.
28816         * MODULES.html.sh (func_module): When replacing symbol() with a
28817         hyperlink, remove the parentheses. Show an error if some remain.
28818         Recognize and render the '...' syntax.
28819         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28820         Rework. Add paragraph about GCC's inlining.
28821         * doc/alloca.texi: Likewise.
28822         * doc/error.texi: Remove parentheses from symbol reference.
28823         * doc/gnulib-intro.texi: Likewise.
28824         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28825         * modules/fnmatch (Description): Reword to say "the ... function".
28826         * modules/full-read (Description): Likewise.
28827         * modules/full-write (Description): Likewise.
28828         * modules/safe-read (Description): Likewise.
28829         * modules/safe-write (Description): Likewise.
28830         * modules/strchrnul (Description): Likewise.
28831         * modules/trim (Description): Likewise.
28832         * modules/error (Description): Remove parentheses from symbol
28833         references.
28834         * modules/verror (Description): Likewise.
28835         Reported by Karl Berry.
28836
28837 2007-12-25  Bruno Haible  <bruno@clisp.org>
28838
28839         Fixup after 2007-10-16 commit.
28840         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28841
28842 2007-12-24  Bruno Haible  <bruno@clisp.org>
28843
28844         Make --enable-relocatable work with DESTDIR.
28845         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28846         to compute installdir from destprog.
28847         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28848         also set the RELOC_DESTDIR variable.
28849         Reported by Левашев Иван <octagram@bluebottle.com>.
28850
28851 2007-12-24  Bruno Haible  <bruno@clisp.org>
28852
28853         Fix link error due to xalloc_die().
28854         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28855         of xreadlink.
28856         * lib/relocwrapper.c: Update comments.
28857         * build-aux/install-reloc: Remove xreadlink.c from file list.
28858         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28859         xreadlink.c.
28860         Reported by Левашев Иван <octagram@bluebottle.com>.
28861
28862 2007-12-24  Bruno Haible  <bruno@clisp.org>
28863
28864         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28865         * lib/setenv.h: Remove file.
28866         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28867         lib/setenv.h.
28868         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28869         (Depends-on): Add stdlib.
28870         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28871         gl_FUNC_UNSETENV.
28872         (Include): Replace setenv.h with <stdlib.h>.
28873         * modules/unsetenv: New file.
28874         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28875         * lib/unsetenv.c: Include <stdlib.h> first.
28876         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28877         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28878         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28879         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28880         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28881         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28883         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28884         * doc/functions/unsetenv.texi: Update.
28885         * modules/xsetenv (Depends-on): Add unsetenv.
28886         * modules/getdate (Depends-on): Likewise.
28887         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28888         * lib/xsetenv.c: Don't include setenv.h.
28889         * lib/getdate.y: Likewise.
28890         * lib/relocwrapper.c: Likewise.
28891         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28892         (Depends-on): Add stdlib.
28893         * NEWS: Mention the changes.
28894         Reported by Левашев Иван <octagram@bluebottle.com>.
28895
28896 2007-12-23  Bruno Haible  <bruno@clisp.org>
28897
28898         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28899         indentation.
28900
28901 2007-12-23  Bruno Haible  <bruno@clisp.org>
28902
28903         * lib/c-strcasestr.c: Add more comments.
28904         * lib/c-strstr.c: Likewise.
28905         * lib/mbscasestr.c: Likewise.
28906         * lib/mbsstr.c: Likewise.
28907         * lib/strcasestr.c: Likewise.
28908         * lib/memmem.c: Likewise.
28909
28910 2007-12-23  Bruno Haible  <bruno@clisp.org>
28911
28912         * tests/test-memmem.c: Include <string.h> first.
28913
28914 2007-12-22  Bruno Haible  <bruno@clisp.org>
28915
28916         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28917         the contents of $testsbase.
28918         Reported by Ralf Wildenhues.
28919
28920 2007-12-22  Bruno Haible  <bruno@clisp.org>
28921
28922         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28923         two variables local_ldadd_before, local_ldadd_last.
28924
28925 2007-12-20  Eric Blake  <ebb9@byu.net>
28926
28927         Work around circular library issue when cross-compiling.
28928         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28929         that progname.o does not need to pull in rpl_memcmp.
28930
28931 2007-12-19  Eric Blake  <ebb9@byu.net>
28932
28933         Fix memmem to avoid O(n^2) worst-case complexity.
28934         * lib/memmem.c (knuth_morris_pratt): New function.
28935         (memmem): Use it if first few naive iterations fail.
28936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28937         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28938         * modules/memchr (License): Likewise.
28939         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28940         malloca.
28941         * tests/test-memmem.c: Rewrite, borrowing ideas from
28942         test-mbsstr1.c; the old version wouldn't even compile!
28943         * modules/memmem-tests: New file.
28944         * lib/string.in.h (rpl_memmem): Add declaration.
28945         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28947         REPLACE_MEMMEM.
28948
28949 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28950
28951         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28952         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28953         before any system include files, and undef after them all.  This
28954         should fix a problem on VMS reported by John E. Malmberg in
28955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28956
28957 2007-12-17  Eric Blake  <ebb9@byu.net>
28958
28959         Revert addition of verify, for BSD/OS.
28960         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28961         can't handle large files, for the sake of obsolete platforms.
28962         * modules/fseeko (Depends-on): Remove verify.
28963         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28964         * doc/functions/ftello.texi (ftello): Likewise.
28965         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28966         Reported by Larry Jones.
28967
28968 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28969
28970         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28971         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28972
28973 2007-12-17  Jim Meyering  <meyering@redhat.com>
28974
28975         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28976         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28977         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28978         * modules/getcwd (Depends-on): Add openat.
28979         Reported by Petr Salinger.
28980
28981 2007-12-17  Bruno Haible  <bruno@clisp.org>
28982
28983         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28984         avoid a segmentation fault of the configure test on x86_64 systems.
28985
28986 2007-12-15  Jim Meyering  <meyering@redhat.com>
28987
28988         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28989
28990 2007-12-13  Eric Blake  <ebb9@byu.net>
28991
28992         Another fseek test.
28993         * tests/test-fseek.c (main): Also test ungetc handling.
28994         * tests/test-fseeko.c (main): Likewise.
28995         * modules/fseeko (Depends-on): Add verify.
28996         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28997         large.
28998         Reported by Larry Jones.
28999
29000         Fix fseeko on mingw.
29001         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
29002         seek.
29003
29004         Beef up fseek tests.
29005         * tests/test-fseek.c (main): Also test eof handling.
29006         * tests/test-fseeko.c (main): Likewise.
29007         Reported by Larry Jones.
29008
29009 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
29010
29011         Fix fseeko on BSD-based platforms.
29012         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
29013         successful seek.
29014
29015 2007-12-12  Eric Blake  <ebb9@byu.net>
29016
29017         Allow circular dependency of separate libtests.a
29018         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
29019         when use_libtests.
29020
29021 2007-12-11  Eric Blake  <ebb9@byu.net>
29022
29023         Fix bug with -0.0L in previous patch.
29024         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
29025         * tests/test-isnan.c (main): Also test on zeroes.
29026         * tests/test-isnanf.c (main): Likewise.
29027         * tests/test-isnanl.h (main): Likewise.
29028
29029         Detect pseudo-denormals on x86 even when cross-compiling.
29030         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
29031         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
29032         invalid bit patterns that happen to satisfy ==.
29033
29034         Avoid link failures with separate libtests.a.
29035         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
29036         last, to satisfy circular dependencies.
29037
29038 2007-12-11  Eric Blake  <ebb9@byu.net>
29039         and Bruno Haible  <bruno@clisp.org>
29040
29041         Fix OpenBSD 4.0 <float.h> handling of long double.
29042         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
29043         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
29044         * doc/headers/float.texi (float.h): Document OpenBSD bug.
29045
29046 2007-12-11  Jim Meyering  <meyering@redhat.com>
29047
29048         * users.txt: Add libvirt.
29049
29050         Support versions of autoconf prior to 2.59c.
29051         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
29052         if it is not already defined.
29053
29054 2007-12-09  Bruno Haible  <bruno@clisp.org>
29055
29056         Let 'gnulib-tool --import' collect sources needed for the tests in
29057         tests/ rather than in lib/.
29058         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
29059         argument. If true, add rules to generate libtests.a, and put libtests.a
29060         into $(LDADD). Consider source files in subdirectories and set
29061         uses_subdirs.
29062         (func_emit_initmacro_start, func_emit_initmacro_end,
29063         func_emit_initmacro_done): Pass all arguments explicitly.
29064         (func_import): Determine two module lists main_modules,
29065         testsrelated_modules. Determine use_libtests. Determine two variables
29066         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
29067         instead of just sed_transform_lib_file. Determine two variables
29068         main_files and testsrelated_files. Compute 'files' as the union of
29069         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
29070         func_add_or_update. In the generated gnulib-comp.m4, collect the
29071         object files for tests/ in different variables than those for lib/.
29072         Substitute LIBTESTS_LIBDEPS.
29073         (func_create_testdir): Combine the uses_subdirs results from
29074         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
29075
29076 2007-12-09  Bruno Haible  <bruno@clisp.org>
29077
29078         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
29079         the build-aux directory.
29080
29081 2007-12-09  Bruno Haible  <bruno@clisp.org>
29082
29083         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
29084         introduced on 2006-09-09.
29085
29086 2007-12-07  Jim Meyering  <meyering@redhat.com>
29087
29088         Let these macros work also with autoconf-2.59.
29089         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
29090         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
29091         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29092
29093 2007-12-06  Jim Meyering  <meyering@redhat.com>
29094
29095         Avoid a configure-time syntax error in gl_FUNC_ACL.
29096         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
29097         function in each branch, before testing the cache variable.
29098
29099 2007-12-04  Eric Blake  <ebb9@byu.net>
29100
29101         Make scripts executable.
29102         * build-aux/config.guess: Add execute permissions.
29103         * build-aux/config.sub: Likewise.
29104         * build-aux/gendocs.sh: Likewise.
29105
29106         Fix frexp on mingw.
29107         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
29108         cross-compiling.
29109         * doc/functions/frexp.texi (frexp): Document the bug.
29110
29111         Make cygwin fseeko check more reliable.
29112         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
29113         version numbers, rather than unrelated feature check.
29114         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
29115         * doc/functions/ftello.texi (ftello): Likewise.
29116         Reported by Bruno Haible.
29117
29118         * m4/strerror.m4: Bump version number.
29119
29120 2007-12-03  Bruno Haible  <bruno@clisp.org>
29121
29122         * doc/functions/mprotect.texi: Mention the mingw problem.
29123
29124 2007-12-03  Eric Blake  <ebb9@byu.net>
29125
29126         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
29127         REPLACE_STRERROR is initialized before this macro.
29128
29129 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
29130
29131         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
29132         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
29133         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
29134         put -lsec in even for programs other than 'ls'.  This fixes a problem
29135         for gettext reported by Bruno Haible in
29136         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
29137         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
29138         Add support for Solaris 10.  This isn't efficient, but should get the
29139         job done for now.
29140
29141 2007-12-03  James Youngman  <jay@gnu.org>
29142
29143         * doc/regexprops-generic.texi: change "an close-group" to "a
29144         close-group" and "illegal" to "not allowed".
29145
29146 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29147
29148         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
29149         pr_byname.h. Needed for the rare case when the maintainer has done
29150         "make maintainer-clean" in the source directory and then attempts a
29151         build outside the source directory.
29152         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
29153         scripts_byname.h.
29154
29155 2007-12-02  Martin Lambers <marlam@marlam.de>
29156             Bruno Haible  <bruno@clisp.org>
29157
29158         * lib/getpagesize.h: Remove file.
29159         * lib/unistd.in.h: Include declaration of getpagesize here.
29160         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
29161         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
29162         HAVE_SYS_PARAM_H.
29163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
29164         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29165         * modules/getpagesize (Files): Remove lib/getpagesize.h.
29166         (Depends-on): Add unistd.
29167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29168         (Include): Use <unistd.h> instead of getpagesize.h.
29169         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
29170         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29171         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
29172         gl_GETPAGESIZE invocation, already handled by module dependency.
29173         * lib/pagealign_alloc.c: Don't include getpagesize.h.
29174
29175 2007-12-02  Bruno Haible  <bruno@clisp.org>
29176
29177         * modules/strings-tests: New file.
29178         * tests/test-strings.c: New file.
29179
29180         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
29181         * lib/strings.in.h: New file.
29182         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
29183         * m4/strings_h.m4: New file.
29184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
29185         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
29186         * modules/strings: New file.
29187         * modules/string (Makefile.am): Update.
29188         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
29189         Reported by Karl Berry.
29190
29191 2007-12-01  Eric Blake  <ebb9@byu.net>
29192
29193         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
29194         accomodate fix in cygwin 1.5.25.
29195
29196 2007-12-01  Jim Meyering  <meyering@redhat.com>
29197
29198         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
29199         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
29200         that would inhibit utf8-optimization of a regexp containing line-
29201         or buffer-anchors, e.g., `^', `$'.
29202
29203 2007-11-30  Bruno Haible  <bruno@clisp.org>
29204
29205         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
29206         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
29207         glthread_recursive_lock_init.
29208         * lib/lock.c (glthread_recursive_lock_init)
29209         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
29210         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29211
29212 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29213
29214         New function qset_acl, like set_acl but with syscall semantics.
29215         * lib/acl.h (qset_acl): New decl.
29216         * lib/acl.c (qset_acl): New function.
29217         (set_acl): Use new function.  Use more-consistent diagnostics.
29218
29219 2007-11-28  Jim Meyering  <meyering@redhat.com>
29220
29221         * modules/physmem (License): Change from GPL to LGPLv2+.
29222
29223 2007-11-26  Bruno Haible  <bruno@clisp.org>
29224
29225         * lib/vasnprintf.c (decode_long_double): Don't abort if the
29226         'long double' type has excess precision.
29227         Reported by Jim Meyering in
29228         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
29229
29230 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29231
29232         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
29233         Sync from <http://gnu.org/licenses>.
29234         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
29235         with license text from same location.
29236         * doc/maintain.texi, doc/standards.texi:  Sync from
29237         <http://savannah.gnu.org/projects/gnustandards>.
29238
29239 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
29240         and Jim Meyering  <meyering@redhat.com>
29241
29242         Adjust getdate' grammar to accept a slightly more regular language.
29243         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
29244         Before, the former was rejected.
29245         * lib/getdate.y (digits_to_date_time): New function, factored
29246         out of ...
29247         (number): ...here.  Just call digits_to_date_time.
29248         (hybrid): New non-terminal to handle an <unsigned number,
29249         signed relative offset> sequence consistently.
29250
29251 2007-11-18  Jim Meyering  <meyering@redhat.com>
29252
29253         Pull my changes from coreutils:
29254         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
29255         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
29256         use of $gnulib_tool_option_extras, so that it's separated from the
29257         preceding argument.
29258
29259         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
29260         * build-aux/bootstrap (cp_mark_as_generated): Create any required
29261         parent destination directories before copying a file into place.
29262
29263 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29264
29265         bootstrap: work also with 4-argument variant of AC_INIT
29266         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
29267
29268 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29269
29270         Port test-getaddrinfo to Solaris.
29271         Problem reported by Bruno Haible in
29272         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
29273         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
29274         explanation of setting 'hints'.
29275         Don't reject an implementation merely because it returns EAI_SERVICE.
29276         (EAI_SERVICE): Define to 0 if not defined.
29277
29278 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29279
29280         The license of gnu-make and posix-shell is now "GPLed build tool".
29281         * modules/gnu-make (License): Likewise.
29282         * modules/posix-shell (License): Likewise.
29283
29284         New module posix-shell, for determining a POSIX shell
29285         or perhaps something that is close enough to a POSIX shell.
29286         * m4/posix-shell.m4: New file.
29287         * modules/posix-shell: New file.
29288
29289         * MODULES.html.sh: Mention new module.
29290
29291         New module gnu-make, for determining whether we're using GNU Make.
29292         * m4/gnu-make.m4: New file.
29293         * modules/gnu-make: New file.
29294         * MODULES.html.sh: Mention new module.
29295
29296 2007-11-14  Jim Meyering  <meyering@redhat.com>
29297
29298         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
29299         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
29300         use this macro to create a function _definition_.
29301         Remove useless "#undef ARGMATCH_DIE".
29302
29303 2007-11-14  Bruno Haible  <bruno@clisp.org>
29304
29305         * lib/config.charset: Update for OpenBSD 4.1.
29306         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
29307
29308 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29309
29310         Document 64-bit #if problems in stdint.texi.
29311         * doc/headers/stdint.texi (stdint.h): Mention problems with
29312         64-bit-#if, and how to work around them.
29313
29314         Don't insist on 'long long int' support in the preprocessor.  It
29315         breaks too many things.  For example, PRIdMAX still uses a 'long
29316         long int' format with the latest Sun compiler, even though
29317         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29318         preprocessor problem.  This causes the latest coreutils to dump
29319         core on Solaris 10 sparc with the Sun C compiler.
29320         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29321         the troublesome expressions at configure-time, not at #if-time.
29322         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29323         preprocessor.
29324         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29325         compile-time C checks, done at 'configure'-time.
29326         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29327         * modules/inttypes (Makefile): Substitute the new symbols that
29328         gl_INTTYPES_H now generates.
29329         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29330
29331 2007-11-12  Bruno Haible  <bruno@clisp.org>
29332
29333         Tests for Unicode character classification functions.
29334
29335         * modules/unictype/bidicategory-byname-tests: New file.
29336         * modules/unictype/bidicategory-name-tests: New file.
29337         * modules/unictype/bidicategory-of-tests: New file.
29338         * modules/unictype/bidicategory-test-tests: New file.
29339         * modules/unictype/block-list-tests: New file.
29340         * modules/unictype/block-of-tests: New file.
29341         * modules/unictype/block-test-tests: New file.
29342         * modules/unictype/category-C-tests: New file.
29343         * modules/unictype/category-Cc-tests: New file.
29344         * modules/unictype/category-Cf-tests: New file.
29345         * modules/unictype/category-Cn-tests: New file.
29346         * modules/unictype/category-Co-tests: New file.
29347         * modules/unictype/category-Cs-tests: New file.
29348         * modules/unictype/category-L-tests: New file.
29349         * modules/unictype/category-Ll-tests: New file.
29350         * modules/unictype/category-Lm-tests: New file.
29351         * modules/unictype/category-Lo-tests: New file.
29352         * modules/unictype/category-Lt-tests: New file.
29353         * modules/unictype/category-Lu-tests: New file.
29354         * modules/unictype/category-M-tests: New file.
29355         * modules/unictype/category-Mc-tests: New file.
29356         * modules/unictype/category-Me-tests: New file.
29357         * modules/unictype/category-Mn-tests: New file.
29358         * modules/unictype/category-N-tests: New file.
29359         * modules/unictype/category-Nd-tests: New file.
29360         * modules/unictype/category-Nl-tests: New file.
29361         * modules/unictype/category-No-tests: New file.
29362         * modules/unictype/category-P-tests: New file.
29363         * modules/unictype/category-Pc-tests: New file.
29364         * modules/unictype/category-Pd-tests: New file.
29365         * modules/unictype/category-Pe-tests: New file.
29366         * modules/unictype/category-Pf-tests: New file.
29367         * modules/unictype/category-Pi-tests: New file.
29368         * modules/unictype/category-Po-tests: New file.
29369         * modules/unictype/category-Ps-tests: New file.
29370         * modules/unictype/category-S-tests: New file.
29371         * modules/unictype/category-Sc-tests: New file.
29372         * modules/unictype/category-Sk-tests: New file.
29373         * modules/unictype/category-Sm-tests: New file.
29374         * modules/unictype/category-So-tests: New file.
29375         * modules/unictype/category-Z-tests: New file.
29376         * modules/unictype/category-Zl-tests: New file.
29377         * modules/unictype/category-Zp-tests: New file.
29378         * modules/unictype/category-Zs-tests: New file.
29379         * modules/unictype/category-and-not-tests: New file.
29380         * modules/unictype/category-and-tests: New file.
29381         * modules/unictype/category-byname-tests: New file.
29382         * modules/unictype/category-name-tests: New file.
29383         * modules/unictype/category-none-tests: New file.
29384         * modules/unictype/category-of-tests: New file.
29385         * modules/unictype/category-or-tests: New file.
29386         * modules/unictype/category-test-withtable-tests: New file.
29387         * modules/unictype/combining-class-tests: New file.
29388         * modules/unictype/ctype-alnum-tests: New file.
29389         * modules/unictype/ctype-alpha-tests: New file.
29390         * modules/unictype/ctype-blank-tests: New file.
29391         * modules/unictype/ctype-cntrl-tests: New file.
29392         * modules/unictype/ctype-digit-tests: New file.
29393         * modules/unictype/ctype-graph-tests: New file.
29394         * modules/unictype/ctype-lower-tests: New file.
29395         * modules/unictype/ctype-print-tests: New file.
29396         * modules/unictype/ctype-punct-tests: New file.
29397         * modules/unictype/ctype-space-tests: New file.
29398         * modules/unictype/ctype-upper-tests: New file.
29399         * modules/unictype/ctype-xdigit-tests: New file.
29400         * modules/unictype/decimal-digit-tests: New file.
29401         * modules/unictype/digit-tests: New file.
29402         * modules/unictype/mirror-tests: New file.
29403         * modules/unictype/numeric-tests: New file.
29404         * modules/unictype/property-alphabetic-tests: New file.
29405         * modules/unictype/property-ascii-hex-digit-tests: New file.
29406         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29407         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29408         * modules/unictype/property-bidi-block-separator-tests: New file.
29409         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29410         * modules/unictype/property-bidi-common-separator-tests: New file.
29411         * modules/unictype/property-bidi-control-tests: New file.
29412         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29413         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29414         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29415         * modules/unictype/property-bidi-european-digit-tests: New file.
29416         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29417         * modules/unictype/property-bidi-left-to-right-tests: New file.
29418         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29419         * modules/unictype/property-bidi-other-neutral-tests: New file.
29420         * modules/unictype/property-bidi-pdf-tests: New file.
29421         * modules/unictype/property-bidi-segment-separator-tests: New file.
29422         * modules/unictype/property-bidi-whitespace-tests: New file.
29423         * modules/unictype/property-byname-tests: New file.
29424         * modules/unictype/property-combining-tests: New file.
29425         * modules/unictype/property-composite-tests: New file.
29426         * modules/unictype/property-currency-symbol-tests: New file.
29427         * modules/unictype/property-dash-tests: New file.
29428         * modules/unictype/property-decimal-digit-tests: New file.
29429         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29430         * modules/unictype/property-deprecated-tests: New file.
29431         * modules/unictype/property-diacritic-tests: New file.
29432         * modules/unictype/property-extender-tests: New file.
29433         * modules/unictype/property-format-control-tests: New file.
29434         * modules/unictype/property-grapheme-base-tests: New file.
29435         * modules/unictype/property-grapheme-extend-tests: New file.
29436         * modules/unictype/property-grapheme-link-tests: New file.
29437         * modules/unictype/property-hex-digit-tests: New file.
29438         * modules/unictype/property-hyphen-tests: New file.
29439         * modules/unictype/property-id-continue-tests: New file.
29440         * modules/unictype/property-id-start-tests: New file.
29441         * modules/unictype/property-ideographic-tests: New file.
29442         * modules/unictype/property-ids-binary-operator-tests: New file.
29443         * modules/unictype/property-ids-trinary-operator-tests: New file.
29444         * modules/unictype/property-ignorable-control-tests: New file.
29445         * modules/unictype/property-iso-control-tests: New file.
29446         * modules/unictype/property-join-control-tests: New file.
29447         * modules/unictype/property-left-of-pair-tests: New file.
29448         * modules/unictype/property-line-separator-tests: New file.
29449         * modules/unictype/property-logical-order-exception-tests: New file.
29450         * modules/unictype/property-lowercase-tests: New file.
29451         * modules/unictype/property-math-tests: New file.
29452         * modules/unictype/property-non-break-tests: New file.
29453         * modules/unictype/property-not-a-character-tests: New file.
29454         * modules/unictype/property-numeric-tests: New file.
29455         * modules/unictype/property-other-alphabetic-tests: New file.
29456         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29457         * modules/unictype/property-other-grapheme-extend-tests: New file.
29458         * modules/unictype/property-other-id-continue-tests: New file.
29459         * modules/unictype/property-other-id-start-tests: New file.
29460         * modules/unictype/property-other-lowercase-tests: New file.
29461         * modules/unictype/property-other-math-tests: New file.
29462         * modules/unictype/property-other-uppercase-tests: New file.
29463         * modules/unictype/property-paired-punctuation-tests: New file.
29464         * modules/unictype/property-paragraph-separator-tests: New file.
29465         * modules/unictype/property-pattern-syntax-tests: New file.
29466         * modules/unictype/property-pattern-white-space-tests: New file.
29467         * modules/unictype/property-private-use-tests: New file.
29468         * modules/unictype/property-punctuation-tests: New file.
29469         * modules/unictype/property-quotation-mark-tests: New file.
29470         * modules/unictype/property-radical-tests: New file.
29471         * modules/unictype/property-sentence-terminal-tests: New file.
29472         * modules/unictype/property-soft-dotted-tests: New file.
29473         * modules/unictype/property-space-tests: New file.
29474         * modules/unictype/property-terminal-punctuation-tests: New file.
29475         * modules/unictype/property-test-tests: New file.
29476         * modules/unictype/property-titlecase-tests: New file.
29477         * modules/unictype/property-unassigned-code-value-tests: New file.
29478         * modules/unictype/property-unified-ideograph-tests: New file.
29479         * modules/unictype/property-uppercase-tests: New file.
29480         * modules/unictype/property-variation-selector-tests: New file.
29481         * modules/unictype/property-white-space-tests: New file.
29482         * modules/unictype/property-xid-continue-tests: New file.
29483         * modules/unictype/property-xid-start-tests: New file.
29484         * modules/unictype/property-zero-width-tests: New file.
29485         * modules/unictype/scripts-tests: New file.
29486         * modules/unictype/syntax-c-ident-tests: New file.
29487         * modules/unictype/syntax-c-whitespace-tests: New file.
29488         * modules/unictype/syntax-java-ident-tests: New file.
29489         * modules/unictype/syntax-java-whitespace-tests: New file.
29490         * tests/unictype/test-bidi_byname.c: New file.
29491         * tests/unictype/test-bidi_name.c: New file.
29492         * tests/unictype/test-bidi_of.c: New file.
29493         * tests/unictype/test-bidi_test.c: New file.
29494         * tests/unictype/test-block_list.c: New file.
29495         * tests/unictype/test-block_of.c: New file.
29496         * tests/unictype/test-block_test.c: New file.
29497         * tests/unictype/test-categ_and.c: New file.
29498         * tests/unictype/test-categ_and_not.c: New file.
29499         * tests/unictype/test-categ_byname.c: New file.
29500         * tests/unictype/test-categ_name.c: New file.
29501         * tests/unictype/test-categ_none.c: New file.
29502         * tests/unictype/test-categ_of.c: New file.
29503         * tests/unictype/test-categ_or.c: New file.
29504         * tests/unictype/test-categ_test_withtable.c: New file.
29505         * tests/unictype/test-combining.c: New file.
29506         * tests/unictype/test-decdigit.c: New file.
29507         * tests/unictype/test-digit.c: New file.
29508         * tests/unictype/test-mirror.c: New file.
29509         * tests/unictype/test-numeric.c: New file.
29510         * tests/unictype/test-pr_byname.c: New file.
29511         * tests/unictype/test-pr_test.c: New file.
29512         * tests/unictype/test-predicate-part1.h: New file.
29513         * tests/unictype/test-predicate-part2.h: New file.
29514         * tests/unictype/test-scripts.c: New file.
29515         * tests/unictype/test-sy_c_ident.c: New file.
29516         * tests/unictype/test-sy_java_ident.c: New file.
29517
29518         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29519         for Unicode 5.0.0.
29520         * tests/unictype/test-categ_Cc.c: Likewise.
29521         * tests/unictype/test-categ_Cf.c: Likewise.
29522         * tests/unictype/test-categ_Cn.c: Likewise.
29523         * tests/unictype/test-categ_Co.c: Likewise.
29524         * tests/unictype/test-categ_Cs.c: Likewise.
29525         * tests/unictype/test-categ_L.c: Likewise.
29526         * tests/unictype/test-categ_Ll.c: Likewise.
29527         * tests/unictype/test-categ_Lm.c: Likewise.
29528         * tests/unictype/test-categ_Lo.c: Likewise.
29529         * tests/unictype/test-categ_Lt.c: Likewise.
29530         * tests/unictype/test-categ_Lu.c: Likewise.
29531         * tests/unictype/test-categ_M.c: Likewise.
29532         * tests/unictype/test-categ_Mc.c: Likewise.
29533         * tests/unictype/test-categ_Me.c: Likewise.
29534         * tests/unictype/test-categ_Mn.c: Likewise.
29535         * tests/unictype/test-categ_N.c: Likewise.
29536         * tests/unictype/test-categ_Nd.c: Likewise.
29537         * tests/unictype/test-categ_Nl.c: Likewise.
29538         * tests/unictype/test-categ_No.c: Likewise.
29539         * tests/unictype/test-categ_P.c: Likewise.
29540         * tests/unictype/test-categ_Pc.c: Likewise.
29541         * tests/unictype/test-categ_Pd.c: Likewise.
29542         * tests/unictype/test-categ_Pe.c: Likewise.
29543         * tests/unictype/test-categ_Pf.c: Likewise.
29544         * tests/unictype/test-categ_Pi.c: Likewise.
29545         * tests/unictype/test-categ_Po.c: Likewise.
29546         * tests/unictype/test-categ_Ps.c: Likewise.
29547         * tests/unictype/test-categ_S.c: Likewise.
29548         * tests/unictype/test-categ_Sc.c: Likewise.
29549         * tests/unictype/test-categ_Sk.c: Likewise.
29550         * tests/unictype/test-categ_Sm.c: Likewise.
29551         * tests/unictype/test-categ_So.c: Likewise.
29552         * tests/unictype/test-categ_Z.c: Likewise.
29553         * tests/unictype/test-categ_Zl.c: Likewise.
29554         * tests/unictype/test-categ_Zp.c: Likewise.
29555         * tests/unictype/test-categ_Zs.c: Likewise.
29556         * tests/unictype/test-ctype_alnum.c: Likewise.
29557         * tests/unictype/test-ctype_alpha.c: Likewise.
29558         * tests/unictype/test-ctype_blank.c: Likewise.
29559         * tests/unictype/test-ctype_cntrl.c: Likewise.
29560         * tests/unictype/test-ctype_digit.c: Likewise.
29561         * tests/unictype/test-ctype_graph.c: Likewise.
29562         * tests/unictype/test-ctype_lower.c: Likewise.
29563         * tests/unictype/test-ctype_print.c: Likewise.
29564         * tests/unictype/test-ctype_punct.c: Likewise.
29565         * tests/unictype/test-ctype_space.c: Likewise.
29566         * tests/unictype/test-ctype_upper.c: Likewise.
29567         * tests/unictype/test-ctype_xdigit.c: Likewise.
29568         * tests/unictype/test-decdigit.h: Likewise.
29569         * tests/unictype/test-digit.h: Likewise.
29570         * tests/unictype/test-numeric.h: Likewise.
29571         * tests/unictype/test-pr_alphabetic.c: Likewise.
29572         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29573         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29574         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29575         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29576         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29577         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29578         * tests/unictype/test-pr_bidi_control.c: Likewise.
29579         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29580         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29581         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29582         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29583         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29584         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29585         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29586         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29587         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29588         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29589         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29590         * tests/unictype/test-pr_combining.c: Likewise.
29591         * tests/unictype/test-pr_composite.c: Likewise.
29592         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29593         * tests/unictype/test-pr_dash.c: Likewise.
29594         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29595         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29596         * tests/unictype/test-pr_deprecated.c: Likewise.
29597         * tests/unictype/test-pr_diacritic.c: Likewise.
29598         * tests/unictype/test-pr_extender.c: Likewise.
29599         * tests/unictype/test-pr_format_control.c: Likewise.
29600         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29601         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29602         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29603         * tests/unictype/test-pr_hex_digit.c: Likewise.
29604         * tests/unictype/test-pr_hyphen.c: Likewise.
29605         * tests/unictype/test-pr_id_continue.c: Likewise.
29606         * tests/unictype/test-pr_id_start.c: Likewise.
29607         * tests/unictype/test-pr_ideographic.c: Likewise.
29608         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29609         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29610         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29611         * tests/unictype/test-pr_iso_control.c: Likewise.
29612         * tests/unictype/test-pr_join_control.c: Likewise.
29613         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29614         * tests/unictype/test-pr_line_separator.c: Likewise.
29615         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29616         * tests/unictype/test-pr_lowercase.c: Likewise.
29617         * tests/unictype/test-pr_math.c: Likewise.
29618         * tests/unictype/test-pr_non_break.c: Likewise.
29619         * tests/unictype/test-pr_not_a_character.c: Likewise.
29620         * tests/unictype/test-pr_numeric.c: Likewise.
29621         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29622         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29623         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29624         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29625         * tests/unictype/test-pr_other_id_start.c: Likewise.
29626         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29627         * tests/unictype/test-pr_other_math.c: Likewise.
29628         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29629         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29630         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29631         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29632         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29633         * tests/unictype/test-pr_private_use.c: Likewise.
29634         * tests/unictype/test-pr_punctuation.c: Likewise.
29635         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29636         * tests/unictype/test-pr_radical.c: Likewise.
29637         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29638         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29639         * tests/unictype/test-pr_space.c: Likewise.
29640         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29641         * tests/unictype/test-pr_titlecase.c: Likewise.
29642         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29643         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29644         * tests/unictype/test-pr_uppercase.c: Likewise.
29645         * tests/unictype/test-pr_variation_selector.c: Likewise.
29646         * tests/unictype/test-pr_white_space.c: Likewise.
29647         * tests/unictype/test-pr_xid_continue.c: Likewise.
29648         * tests/unictype/test-pr_xid_start.c: Likewise.
29649         * tests/unictype/test-pr_zero_width.c: Likewise.
29650         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29651         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29652
29653 2007-11-12  Bruno Haible  <bruno@clisp.org>
29654
29655         Unicode character classification functions.
29656         * lib/unictype.h: New file.
29657         * modules/unictype/base: New file.
29658         * modules/unictype/category-L: New file.
29659         * modules/unictype/category-Lu: New file.
29660         * modules/unictype/category-Ll: New file.
29661         * modules/unictype/category-Lt: New file.
29662         * modules/unictype/category-Lm: New file.
29663         * modules/unictype/category-Lo: New file.
29664         * modules/unictype/category-M: New file.
29665         * modules/unictype/category-Mn: New file.
29666         * modules/unictype/category-Mc: New file.
29667         * modules/unictype/category-Me: New file.
29668         * modules/unictype/category-N: New file.
29669         * modules/unictype/category-Nd: New file.
29670         * modules/unictype/category-Nl: New file.
29671         * modules/unictype/category-No: New file.
29672         * modules/unictype/category-P: New file.
29673         * modules/unictype/category-Pc: New file.
29674         * modules/unictype/category-Pd: New file.
29675         * modules/unictype/category-Ps: New file.
29676         * modules/unictype/category-Pe: New file.
29677         * modules/unictype/category-Pi: New file.
29678         * modules/unictype/category-Pf: New file.
29679         * modules/unictype/category-Po: New file.
29680         * modules/unictype/category-S: New file.
29681         * modules/unictype/category-Sm: New file.
29682         * modules/unictype/category-Sc: New file.
29683         * modules/unictype/category-Sk: New file.
29684         * modules/unictype/category-So: New file.
29685         * modules/unictype/category-Z: New file.
29686         * modules/unictype/category-Zs: New file.
29687         * modules/unictype/category-Zl: New file.
29688         * modules/unictype/category-Zp: New file.
29689         * modules/unictype/category-C: New file.
29690         * modules/unictype/category-Cc: New file.
29691         * modules/unictype/category-Cf: New file.
29692         * modules/unictype/category-Cs: New file.
29693         * modules/unictype/category-Co: New file.
29694         * modules/unictype/category-Cn: New file.
29695         * modules/unictype/category-or: New file.
29696         * modules/unictype/category-of: New file.
29697         * modules/unictype/category-test: New file.
29698         * modules/unictype/category-test-withtable: New file.
29699         * modules/unictype/category-byname: New file.
29700         * modules/unictype/category-none: New file.
29701         * modules/unictype/category-and: New file.
29702         * modules/unictype/category-and-not: New file.
29703         * modules/unictype/category-name: New file.
29704         * modules/unictype/combining-class: New file.
29705         * modules/unictype/category-all: New file.
29706         * modules/unictype/bidicategory-all: New file.
29707         * modules/unictype/bidicategory-byname: New file.
29708         * modules/unictype/bidicategory-name: New file.
29709         * modules/unictype/bidicategory-of: New file.
29710         * modules/unictype/bidicategory-test: New file.
29711         * modules/unictype/decimal-digit: New file.
29712         * modules/unictype/digit: New file.
29713         * modules/unictype/numeric: New file.
29714         * modules/unictype/mirror: New file.
29715         * modules/unictype/property-white-space: New file.
29716         * modules/unictype/property-alphabetic: New file.
29717         * modules/unictype/property-other-alphabetic: New file.
29718         * modules/unictype/property-not-a-character: New file.
29719         * modules/unictype/property-default-ignorable-code-point: New file.
29720         * modules/unictype/property-other-default-ignorable-code-point: New
29721         file.
29722         * modules/unictype/property-deprecated: New file.
29723         * modules/unictype/property-logical-order-exception: New file.
29724         * modules/unictype/property-variation-selector: New file.
29725         * modules/unictype/property-private-use: New file.
29726         * modules/unictype/property-unassigned-code-value: New file.
29727         * modules/unictype/property-uppercase: New file.
29728         * modules/unictype/property-other-uppercase: New file.
29729         * modules/unictype/property-lowercase: New file.
29730         * modules/unictype/property-other-lowercase: New file.
29731         * modules/unictype/property-titlecase: New file.
29732         * modules/unictype/property-soft-dotted: New file.
29733         * modules/unictype/property-id-start: New file.
29734         * modules/unictype/property-other-id-start: New file.
29735         * modules/unictype/property-id-continue: New file.
29736         * modules/unictype/property-other-id-continue: New file.
29737         * modules/unictype/property-xid-start: New file.
29738         * modules/unictype/property-xid-continue: New file.
29739         * modules/unictype/property-pattern-white-space: New file.
29740         * modules/unictype/property-pattern-syntax: New file.
29741         * modules/unictype/property-join-control: New file.
29742         * modules/unictype/property-grapheme-base: New file.
29743         * modules/unictype/property-grapheme-extend: New file.
29744         * modules/unictype/property-other-grapheme-extend: New file.
29745         * modules/unictype/property-grapheme-link: New file.
29746         * modules/unictype/property-bidi-control: New file.
29747         * modules/unictype/property-bidi-left-to-right: New file.
29748         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29749         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29750         * modules/unictype/property-bidi-european-digit: New file.
29751         * modules/unictype/property-bidi-eur-num-separator: New file.
29752         * modules/unictype/property-bidi-eur-num-terminator: New file.
29753         * modules/unictype/property-bidi-arabic-digit: New file.
29754         * modules/unictype/property-bidi-common-separator: New file.
29755         * modules/unictype/property-bidi-block-separator: New file.
29756         * modules/unictype/property-bidi-segment-separator: New file.
29757         * modules/unictype/property-bidi-whitespace: New file.
29758         * modules/unictype/property-bidi-non-spacing-mark: New file.
29759         * modules/unictype/property-bidi-boundary-neutral: New file.
29760         * modules/unictype/property-bidi-pdf: New file.
29761         * modules/unictype/property-bidi-embedding-or-override: New file.
29762         * modules/unictype/property-bidi-other-neutral: New file.
29763         * modules/unictype/property-hex-digit: New file.
29764         * modules/unictype/property-ascii-hex-digit: New file.
29765         * modules/unictype/property-ideographic: New file.
29766         * modules/unictype/property-unified-ideograph: New file.
29767         * modules/unictype/property-radical: New file.
29768         * modules/unictype/property-ids-binary-operator: New file.
29769         * modules/unictype/property-ids-trinary-operator: New file.
29770         * modules/unictype/property-zero-width: New file.
29771         * modules/unictype/property-space: New file.
29772         * modules/unictype/property-non-break: New file.
29773         * modules/unictype/property-iso-control: New file.
29774         * modules/unictype/property-format-control: New file.
29775         * modules/unictype/property-dash: New file.
29776         * modules/unictype/property-hyphen: New file.
29777         * modules/unictype/property-punctuation: New file.
29778         * modules/unictype/property-line-separator: New file.
29779         * modules/unictype/property-paragraph-separator: New file.
29780         * modules/unictype/property-quotation-mark: New file.
29781         * modules/unictype/property-sentence-terminal: New file.
29782         * modules/unictype/property-terminal-punctuation: New file.
29783         * modules/unictype/property-currency-symbol: New file.
29784         * modules/unictype/property-math: New file.
29785         * modules/unictype/property-other-math: New file.
29786         * modules/unictype/property-paired-punctuation: New file.
29787         * modules/unictype/property-left-of-pair: New file.
29788         * modules/unictype/property-combining: New file.
29789         * modules/unictype/property-composite: New file.
29790         * modules/unictype/property-decimal-digit: New file.
29791         * modules/unictype/property-numeric: New file.
29792         * modules/unictype/property-diacritic: New file.
29793         * modules/unictype/property-extender: New file.
29794         * modules/unictype/property-ignorable-control: New file.
29795         * modules/unictype/property-test: New file.
29796         * modules/unictype/property-byname: New file.
29797         * modules/unictype/property-all: New file.
29798         * modules/unictype/scripts: New file.
29799         * modules/unictype/scripts-all: New file.
29800         * modules/unictype/block-of: New file.
29801         * modules/unictype/block-test: New file.
29802         * modules/unictype/block-list: New file.
29803         * modules/unictype/block-all: New file.
29804         * modules/unictype/syntax-c-whitespace: New file.
29805         * modules/unictype/syntax-java-whitespace: New file.
29806         * modules/unictype/syntax-c-ident: New file.
29807         * modules/unictype/syntax-java-ident: New file.
29808         * modules/unictype/ctype-alnum: New file.
29809         * modules/unictype/ctype-alpha: New file.
29810         * modules/unictype/ctype-cntrl: New file.
29811         * modules/unictype/ctype-digit: New file.
29812         * modules/unictype/ctype-graph: New file.
29813         * modules/unictype/ctype-lower: New file.
29814         * modules/unictype/ctype-print: New file.
29815         * modules/unictype/ctype-punct: New file.
29816         * modules/unictype/ctype-space: New file.
29817         * modules/unictype/ctype-upper: New file.
29818         * modules/unictype/ctype-xdigit: New file.
29819         * modules/unictype/ctype-blank: New file.
29820         * lib/unictype/bidi_byname.c: New file.
29821         * lib/unictype/bidi_name.c: New file.
29822         * lib/unictype/bidi_of.c: New file.
29823         * lib/unictype/bidi_test.c: New file.
29824         * lib/unictype/bitmap.h: New file.
29825         * lib/unictype/block_test.c: New file.
29826         * lib/unictype/blocks.c: New file.
29827         * lib/unictype/categ_C.c: New file.
29828         * lib/unictype/categ_Cc.c: New file.
29829         * lib/unictype/categ_Cf.c: New file.
29830         * lib/unictype/categ_Cn.c: New file.
29831         * lib/unictype/categ_Co.c: New file.
29832         * lib/unictype/categ_Cs.c: New file.
29833         * lib/unictype/categ_L.c: New file.
29834         * lib/unictype/categ_Ll.c: New file.
29835         * lib/unictype/categ_Lm.c: New file.
29836         * lib/unictype/categ_Lo.c: New file.
29837         * lib/unictype/categ_Lt.c: New file.
29838         * lib/unictype/categ_Lu.c: New file.
29839         * lib/unictype/categ_M.c: New file.
29840         * lib/unictype/categ_Mc.c: New file.
29841         * lib/unictype/categ_Me.c: New file.
29842         * lib/unictype/categ_Mn.c: New file.
29843         * lib/unictype/categ_N.c: New file.
29844         * lib/unictype/categ_Nd.c: New file.
29845         * lib/unictype/categ_Nl.c: New file.
29846         * lib/unictype/categ_No.c: New file.
29847         * lib/unictype/categ_P.c: New file.
29848         * lib/unictype/categ_Pc.c: New file.
29849         * lib/unictype/categ_Pd.c: New file.
29850         * lib/unictype/categ_Pe.c: New file.
29851         * lib/unictype/categ_Pf.c: New file.
29852         * lib/unictype/categ_Pi.c: New file.
29853         * lib/unictype/categ_Po.c: New file.
29854         * lib/unictype/categ_Ps.c: New file.
29855         * lib/unictype/categ_S.c: New file.
29856         * lib/unictype/categ_Sc.c: New file.
29857         * lib/unictype/categ_Sk.c: New file.
29858         * lib/unictype/categ_Sm.c: New file.
29859         * lib/unictype/categ_So.c: New file.
29860         * lib/unictype/categ_Z.c: New file.
29861         * lib/unictype/categ_Zl.c: New file.
29862         * lib/unictype/categ_Zp.c: New file.
29863         * lib/unictype/categ_Zs.c: New file.
29864         * lib/unictype/categ_and.c: New file.
29865         * lib/unictype/categ_and_not.c: New file.
29866         * lib/unictype/categ_byname.c: New file.
29867         * lib/unictype/categ_name.c: New file.
29868         * lib/unictype/categ_none.c: New file.
29869         * lib/unictype/categ_of.c: New file.
29870         * lib/unictype/categ_or.c: New file.
29871         * lib/unictype/categ_test.c: New file.
29872         * lib/unictype/combining.c: New file.
29873         * lib/unictype/ctype_alnum.c: New file.
29874         * lib/unictype/ctype_alpha.c: New file.
29875         * lib/unictype/ctype_blank.c: New file.
29876         * lib/unictype/ctype_cntrl.c: New file.
29877         * lib/unictype/ctype_digit.c: New file.
29878         * lib/unictype/ctype_graph.c: New file.
29879         * lib/unictype/ctype_lower.c: New file.
29880         * lib/unictype/ctype_print.c: New file.
29881         * lib/unictype/ctype_punct.c: New file.
29882         * lib/unictype/ctype_space.c: New file.
29883         * lib/unictype/ctype_upper.c: New file.
29884         * lib/unictype/ctype_xdigit.c: New file.
29885         * lib/unictype/decdigit.c: New file.
29886         * lib/unictype/digit.c: New file.
29887         * lib/unictype/identsyntaxmap.h: New file.
29888         * lib/unictype/mirror.c: New file.
29889         * lib/unictype/numeric.c: New file.
29890         * lib/unictype/pr_alphabetic.c: New file.
29891         * lib/unictype/pr_ascii_hex_digit.c: New file.
29892         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29893         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29894         * lib/unictype/pr_bidi_block_separator.c: New file.
29895         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29896         * lib/unictype/pr_bidi_common_separator.c: New file.
29897         * lib/unictype/pr_bidi_control.c: New file.
29898         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29899         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29900         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29901         * lib/unictype/pr_bidi_european_digit.c: New file.
29902         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29903         * lib/unictype/pr_bidi_left_to_right.c: New file.
29904         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29905         * lib/unictype/pr_bidi_other_neutral.c: New file.
29906         * lib/unictype/pr_bidi_pdf.c: New file.
29907         * lib/unictype/pr_bidi_segment_separator.c: New file.
29908         * lib/unictype/pr_bidi_whitespace.c: New file.
29909         * lib/unictype/pr_byname.c: New file.
29910         * lib/unictype/pr_byname.gperf: New file.
29911         * lib/unictype/pr_combining.c: New file.
29912         * lib/unictype/pr_composite.c: New file.
29913         * lib/unictype/pr_currency_symbol.c: New file.
29914         * lib/unictype/pr_dash.c: New file.
29915         * lib/unictype/pr_decimal_digit.c: New file.
29916         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29917         * lib/unictype/pr_deprecated.c: New file.
29918         * lib/unictype/pr_diacritic.c: New file.
29919         * lib/unictype/pr_extender.c: New file.
29920         * lib/unictype/pr_format_control.c: New file.
29921         * lib/unictype/pr_grapheme_base.c: New file.
29922         * lib/unictype/pr_grapheme_extend.c: New file.
29923         * lib/unictype/pr_grapheme_link.c: New file.
29924         * lib/unictype/pr_hex_digit.c: New file.
29925         * lib/unictype/pr_hyphen.c: New file.
29926         * lib/unictype/pr_id_continue.c: New file.
29927         * lib/unictype/pr_id_start.c: New file.
29928         * lib/unictype/pr_ideographic.c: New file.
29929         * lib/unictype/pr_ids_binary_operator.c: New file.
29930         * lib/unictype/pr_ids_trinary_operator.c: New file.
29931         * lib/unictype/pr_ignorable_control.c: New file.
29932         * lib/unictype/pr_iso_control.c: New file.
29933         * lib/unictype/pr_join_control.c: New file.
29934         * lib/unictype/pr_left_of_pair.c: New file.
29935         * lib/unictype/pr_line_separator.c: New file.
29936         * lib/unictype/pr_logical_order_exception.c: New file.
29937         * lib/unictype/pr_lowercase.c: New file.
29938         * lib/unictype/pr_math.c: New file.
29939         * lib/unictype/pr_non_break.c: New file.
29940         * lib/unictype/pr_not_a_character.c: New file.
29941         * lib/unictype/pr_numeric.c: New file.
29942         * lib/unictype/pr_other_alphabetic.c: New file.
29943         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29944         * lib/unictype/pr_other_grapheme_extend.c: New file.
29945         * lib/unictype/pr_other_id_continue.c: New file.
29946         * lib/unictype/pr_other_id_start.c: New file.
29947         * lib/unictype/pr_other_lowercase.c: New file.
29948         * lib/unictype/pr_other_math.c: New file.
29949         * lib/unictype/pr_other_uppercase.c: New file.
29950         * lib/unictype/pr_paired_punctuation.c: New file.
29951         * lib/unictype/pr_paragraph_separator.c: New file.
29952         * lib/unictype/pr_pattern_syntax.c: New file.
29953         * lib/unictype/pr_pattern_white_space.c: New file.
29954         * lib/unictype/pr_private_use.c: New file.
29955         * lib/unictype/pr_punctuation.c: New file.
29956         * lib/unictype/pr_quotation_mark.c: New file.
29957         * lib/unictype/pr_radical.c: New file.
29958         * lib/unictype/pr_sentence_terminal.c: New file.
29959         * lib/unictype/pr_soft_dotted.c: New file.
29960         * lib/unictype/pr_space.c: New file.
29961         * lib/unictype/pr_terminal_punctuation.c: New file.
29962         * lib/unictype/pr_test.c: New file.
29963         * lib/unictype/pr_titlecase.c: New file.
29964         * lib/unictype/pr_unassigned_code_value.c: New file.
29965         * lib/unictype/pr_unified_ideograph.c: New file.
29966         * lib/unictype/pr_uppercase.c: New file.
29967         * lib/unictype/pr_variation_selector.c: New file.
29968         * lib/unictype/pr_white_space.c: New file.
29969         * lib/unictype/pr_xid_continue.c: New file.
29970         * lib/unictype/pr_xid_start.c: New file.
29971         * lib/unictype/pr_zero_width.c: New file.
29972         * lib/unictype/scripts.c: New file.
29973         * lib/unictype/sy_c_ident.c: New file.
29974         * lib/unictype/sy_c_whitespace.c: New file.
29975         * lib/unictype/sy_java_ident.c: New file.
29976         * lib/unictype/sy_java_whitespace.c: New file.
29977
29978         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29979         Unicode 5.0.0.
29980         * lib/unictype/blocks.h: Likewise.
29981         * lib/unictype/categ_C.h: Likewise.
29982         * lib/unictype/categ_Cc.h: Likewise.
29983         * lib/unictype/categ_Cf.h: Likewise.
29984         * lib/unictype/categ_Cn.h: Likewise.
29985         * lib/unictype/categ_Co.h: Likewise.
29986         * lib/unictype/categ_Cs.h: Likewise.
29987         * lib/unictype/categ_L.h: Likewise.
29988         * lib/unictype/categ_Ll.h: Likewise.
29989         * lib/unictype/categ_Lm.h: Likewise.
29990         * lib/unictype/categ_Lo.h: Likewise.
29991         * lib/unictype/categ_Lt.h: Likewise.
29992         * lib/unictype/categ_Lu.h: Likewise.
29993         * lib/unictype/categ_M.h: Likewise.
29994         * lib/unictype/categ_Mc.h: Likewise.
29995         * lib/unictype/categ_Me.h: Likewise.
29996         * lib/unictype/categ_Mn.h: Likewise.
29997         * lib/unictype/categ_N.h: Likewise.
29998         * lib/unictype/categ_Nd.h: Likewise.
29999         * lib/unictype/categ_Nl.h: Likewise.
30000         * lib/unictype/categ_No.h: Likewise.
30001         * lib/unictype/categ_P.h: Likewise.
30002         * lib/unictype/categ_Pc.h: Likewise.
30003         * lib/unictype/categ_Pd.h: Likewise.
30004         * lib/unictype/categ_Pe.h: Likewise.
30005         * lib/unictype/categ_Pf.h: Likewise.
30006         * lib/unictype/categ_Pi.h: Likewise.
30007         * lib/unictype/categ_Po.h: Likewise.
30008         * lib/unictype/categ_Ps.h: Likewise.
30009         * lib/unictype/categ_S.h: Likewise.
30010         * lib/unictype/categ_Sc.h: Likewise.
30011         * lib/unictype/categ_Sk.h: Likewise.
30012         * lib/unictype/categ_Sm.h: Likewise.
30013         * lib/unictype/categ_So.h: Likewise.
30014         * lib/unictype/categ_Z.h: Likewise.
30015         * lib/unictype/categ_Zl.h: Likewise.
30016         * lib/unictype/categ_Zp.h: Likewise.
30017         * lib/unictype/categ_Zs.h: Likewise.
30018         * lib/unictype/categ_of.h: Likewise.
30019         * lib/unictype/combining.h: Likewise.
30020         * lib/unictype/ctype_alnum.h: Likewise.
30021         * lib/unictype/ctype_alpha.h: Likewise.
30022         * lib/unictype/ctype_blank.h: Likewise.
30023         * lib/unictype/ctype_cntrl.h: Likewise.
30024         * lib/unictype/ctype_digit.h: Likewise.
30025         * lib/unictype/ctype_graph.h: Likewise.
30026         * lib/unictype/ctype_lower.h: Likewise.
30027         * lib/unictype/ctype_print.h: Likewise.
30028         * lib/unictype/ctype_punct.h: Likewise.
30029         * lib/unictype/ctype_space.h: Likewise.
30030         * lib/unictype/ctype_upper.h: Likewise.
30031         * lib/unictype/ctype_xdigit.h: Likewise.
30032         * lib/unictype/decdigit.h: Likewise.
30033         * lib/unictype/digit.h: Likewise.
30034         * lib/unictype/mirror.h: Likewise.
30035         * lib/unictype/numeric.h: Likewise.
30036         * lib/unictype/pr_alphabetic.h: Likewise.
30037         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
30038         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
30039         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
30040         * lib/unictype/pr_bidi_block_separator.h: Likewise.
30041         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
30042         * lib/unictype/pr_bidi_common_separator.h: Likewise.
30043         * lib/unictype/pr_bidi_control.h: Likewise.
30044         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
30045         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
30046         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
30047         * lib/unictype/pr_bidi_european_digit.h: Likewise.
30048         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
30049         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
30050         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
30051         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
30052         * lib/unictype/pr_bidi_pdf.h: Likewise.
30053         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
30054         * lib/unictype/pr_bidi_whitespace.h: Likewise.
30055         * lib/unictype/pr_combining.h: Likewise.
30056         * lib/unictype/pr_composite.h: Likewise.
30057         * lib/unictype/pr_currency_symbol.h: Likewise.
30058         * lib/unictype/pr_dash.h: Likewise.
30059         * lib/unictype/pr_decimal_digit.h: Likewise.
30060         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
30061         * lib/unictype/pr_deprecated.h: Likewise.
30062         * lib/unictype/pr_diacritic.h: Likewise.
30063         * lib/unictype/pr_extender.h: Likewise.
30064         * lib/unictype/pr_format_control.h: Likewise.
30065         * lib/unictype/pr_grapheme_base.h: Likewise.
30066         * lib/unictype/pr_grapheme_extend.h: Likewise.
30067         * lib/unictype/pr_grapheme_link.h: Likewise.
30068         * lib/unictype/pr_hex_digit.h: Likewise.
30069         * lib/unictype/pr_hyphen.h: Likewise.
30070         * lib/unictype/pr_id_continue.h: Likewise.
30071         * lib/unictype/pr_id_start.h: Likewise.
30072         * lib/unictype/pr_ideographic.h: Likewise.
30073         * lib/unictype/pr_ids_binary_operator.h: Likewise.
30074         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
30075         * lib/unictype/pr_ignorable_control.h: Likewise.
30076         * lib/unictype/pr_iso_control.h: Likewise.
30077         * lib/unictype/pr_join_control.h: Likewise.
30078         * lib/unictype/pr_left_of_pair.h: Likewise.
30079         * lib/unictype/pr_line_separator.h: Likewise.
30080         * lib/unictype/pr_logical_order_exception.h: Likewise.
30081         * lib/unictype/pr_lowercase.h: Likewise.
30082         * lib/unictype/pr_math.h: Likewise.
30083         * lib/unictype/pr_non_break.h: Likewise.
30084         * lib/unictype/pr_not_a_character.h: Likewise.
30085         * lib/unictype/pr_numeric.h: Likewise.
30086         * lib/unictype/pr_other_alphabetic.h: Likewise.
30087         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
30088         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
30089         * lib/unictype/pr_other_id_continue.h: Likewise.
30090         * lib/unictype/pr_other_id_start.h: Likewise.
30091         * lib/unictype/pr_other_lowercase.h: Likewise.
30092         * lib/unictype/pr_other_math.h: Likewise.
30093         * lib/unictype/pr_other_uppercase.h: Likewise.
30094         * lib/unictype/pr_paired_punctuation.h: Likewise.
30095         * lib/unictype/pr_paragraph_separator.h: Likewise.
30096         * lib/unictype/pr_pattern_syntax.h: Likewise.
30097         * lib/unictype/pr_pattern_white_space.h: Likewise.
30098         * lib/unictype/pr_private_use.h: Likewise.
30099         * lib/unictype/pr_punctuation.h: Likewise.
30100         * lib/unictype/pr_quotation_mark.h: Likewise.
30101         * lib/unictype/pr_radical.h: Likewise.
30102         * lib/unictype/pr_sentence_terminal.h: Likewise.
30103         * lib/unictype/pr_soft_dotted.h: Likewise.
30104         * lib/unictype/pr_space.h: Likewise.
30105         * lib/unictype/pr_terminal_punctuation.h: Likewise.
30106         * lib/unictype/pr_titlecase.h: Likewise.
30107         * lib/unictype/pr_unassigned_code_value.h: Likewise.
30108         * lib/unictype/pr_unified_ideograph.h: Likewise.
30109         * lib/unictype/pr_uppercase.h: Likewise.
30110         * lib/unictype/pr_variation_selector.h: Likewise.
30111         * lib/unictype/pr_white_space.h: Likewise.
30112         * lib/unictype/pr_xid_continue.h: Likewise.
30113         * lib/unictype/pr_xid_start.h: Likewise.
30114         * lib/unictype/pr_zero_width.h: Likewise.
30115         * lib/unictype/scripts.h: Likewise.
30116         * lib/unictype/scripts_byname.gperf: Likewise.
30117         * lib/unictype/sy_c_ident.h: Likewise.
30118         * lib/unictype/sy_c_whitespace.h: Likewise.
30119         * lib/unictype/sy_java_ident.h: Likewise.
30120         * lib/unictype/sy_java_whitespace.h: Likewise.
30121
30122         * lib/unictype/Makefile: New file.
30123         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
30124         glibc.
30125         * lib/unictype/3level.h: New file, copied from glibc.
30126         * lib/unictype/3levelbit.h: New file.
30127
30128 2007-11-11  Bruno Haible  <bruno@clisp.org>
30129
30130         * modules/gperf: New file.
30131         * modules/iconv_open (Depends-on): Add it.
30132         (Makefile.am): Remove the GPERF definition.
30133
30134 2007-11-11  Bruno Haible  <bruno@clisp.org>
30135
30136         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
30137         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
30138
30139 2007-11-11  Bruno Haible  <bruno@clisp.org>
30140
30141         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
30142         (usage): Remove function.
30143
30144 2007-11-11  Bruno Haible  <bruno@clisp.org>
30145
30146         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
30147         gl_FUNC_CEILF_LIBS.
30148         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
30149         gl_FUNC_CEIL_LIBS.
30150         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
30151         gl_FUNC_CEILL_LIBS.
30152         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
30153         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
30154         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
30155
30156 2007-11-11  Bruno Haible  <bruno@clisp.org>
30157
30158         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
30159         roundf were declared but do not exist on functions.
30160         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
30161         roundl were declared but do not exist on functions.
30162         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
30163         HAVE_FLOORL_AND_CEILL, respectively.
30164         Needed for Sun C on Solaris 10.
30165
30166 2007-11-11  Bruno Haible  <bruno@clisp.org>
30167
30168         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
30169         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
30170         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
30171         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
30172         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
30173         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
30174         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
30175         HAVE_DECL_ROUNDF.
30176         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
30177         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
30178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
30179         of HAVE_DECL_ROUND*.
30180         * modules/math (Makefile.am): Update.
30181
30182 2007-11-10  Bruno Haible  <bruno@clisp.org>
30183
30184         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
30185         ptrdiff_t as m4/intl.m4.
30186
30187 2007-11-10  Jim Meyering  <meyering@redhat.com>
30188
30189         Avoid link failure for the argmatch test.
30190         * tests/test-argmatch.c (usage): Define function to avoid a link
30191         failure: argmatch_die requires a usage function.
30192
30193 2007-11-09  Bruno Haible  <bruno@clisp.org>
30194
30195         * doc/functions/snprintf.texi: Mention BeOS deficiency.
30196         * doc/functions/vsnprintf.texi: Likewise.
30197         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
30198         with a size argument < 2.
30199
30200 2007-11-09  Bruno Haible  <bruno@clisp.org>
30201
30202         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
30203         buffer. Fixes an inefficiency introduced on 2007-11-03.
30204
30205 2007-11-09  Bruno Haible  <bruno@clisp.org>
30206
30207         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
30208         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
30209
30210 2007-11-08  Jim Meyering  <meyering@redhat.com>
30211
30212         Change cache variable name prefix "jm_" to "gl_" everywhere.
30213         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
30214         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
30215         * m4/uptime.m4: s/gl_/jm_/
30216
30217 2007-11-07  Bruno Haible  <bruno@clisp.org>
30218
30219         Update to GNU gettext 0.17.
30220         * m4/intl.m4: Update to GNU gettext 0.17.
30221         * m4/po.m4: Likewise.
30222         * modules/gettext (Files): Remove m4/ulonglong.m4.
30223         (configure.ac): Require gettext infrastructure from version 0.17.
30224
30225 2007-11-06  Bruno Haible  <bruno@clisp.org>
30226
30227         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
30228         symbolic values are not defined in a public header.
30229         * lib/freadable.c (freadable) [QNX]: Likewise.
30230         * lib/freadahead.c (freadahead) [QNX]: Likewise.
30231         * lib/freading.c (freading) [QNX]: Likewise.
30232         * lib/fseterr.c (fseterr) [QNX]: Likewise.
30233         * lib/fwritable.c (fwritable) [QNX]: Likewise.
30234         * lib/fwriting.c (fwriting) [QNX]: Likewise.
30235         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
30236         Reported by Alain Magloire.
30237
30238         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
30239
30240 2007-11-05  Bruno Haible  <bruno@clisp.org>
30241
30242         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
30243         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
30244         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
30245         Reported by Eric Blake.
30246
30247 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30248             Bruno Haible  <bruno@clisp.org>
30249
30250         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
30251         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
30252         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
30253         (malloc): Undefine also before including <stdlib.h>.
30254         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
30255         Needed on OSF/1 4.0.
30256
30257 2007-11-05  Jim Meyering  <meyering@redhat.com>
30258
30259         git-version-gen: sync from coreutils.
30260         * build-aux/git-version-gen: Add comments.
30261         Change the first '-' to '.' in the snapshot version string,
30262         e.g., 6.9-377-08144 -> 6.9.377-08144
30263         Remove first parameter.
30264         Don't declare a version "-dirty" merely because a time
30265         stamp has changed.
30266
30267 2007-11-04  Bruno Haible  <bruno@clisp.org>
30268
30269         * lib/lock.h: Protect all macro definitions containing an 'if'
30270         statement through a "do { ... } while (0)".
30271         * lib/tls.h: Likewise.
30272
30273 2007-11-04  Bruno Haible  <bruno@clisp.org>
30274
30275         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
30276
30277 2007-11-04  Bruno Haible  <bruno@clisp.org>
30278
30279         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
30280         * modules/fprintf-posix (Depends-on): Add nocrash.
30281         * modules/snprintf-posix (Depends-on): Likewise.
30282         * modules/sprintf-posix (Depends-on): Likewise.
30283         * modules/vasnprintf-posix (Depends-on): Likewise.
30284         * modules/vasprintf-posix (Depends-on): Likewise.
30285         * modules/vfprintf-posix (Depends-on): Likewise.
30286         * modules/vsnprintf-posix (Depends-on): Likewise.
30287         * modules/vsprintf-posix (Depends-on): Likewise.
30288         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30289         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30290         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30291         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30292         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30293         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30294         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30295
30296 2007-11-04  Bruno Haible  <bruno@clisp.org>
30297
30298         * modules/nocrash: New file.
30299         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
30300         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
30301
30302 2007-11-04  Bruno Haible  <bruno@clisp.org>
30303
30304         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
30305         precision handling.
30306         * tests/test-vasprintf-posix.c (test_function): Likewise.
30307         * tests/test-snprintf-posix.h (test_function): Likewise.
30308         * tests/test-sprintf-posix.h (test_function): Likewise.
30309
30310         Fix *printf behaviour for large precisions on mingw and BeOS.
30311         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30312         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30314         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30316         gl_PRINTF_PRECISION and test its result. Invoke
30317         gl_PREREQ_VASNPRINTF_PRECISION.
30318         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30321         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30322         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30323         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30325         * doc/functions/fprintf.texi: Update.
30326         * doc/functions/printf.texi: Update.
30327         * doc/functions/snprintf.texi: Update.
30328         * doc/functions/sprintf.texi: Update.
30329         * doc/functions/vfprintf.texi: Update.
30330         * doc/functions/vprintf.texi: Update.
30331         * doc/functions/vsnprintf.texi: Update.
30332         * doc/functions/vsprintf.texi: Update.
30333
30334 2007-11-04  Bruno Haible  <bruno@clisp.org>
30335
30336         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30337
30338 2007-11-04  Bruno Haible  <bruno@clisp.org>
30339
30340         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30341         Reported by Sylvain Beucler <beuc@gnu.org>.
30342
30343 2007-11-03  Bruno Haible  <bruno@clisp.org>
30344
30345         * tests/test-fprintf-posix2.sh: New file.
30346         * tests/test-fprintf-posix2.c: New file.
30347         * modules/fprintf-posix-tests (Files): Add them.
30348         (TESTS): Add test-fprintf-posix2.sh.
30349         (configure.ac): Check for getrlimit and setrlimit.
30350         (check_PROGRAMS): Add test-fprintf-posix2.
30351
30352         * tests/test-printf-posix2.sh: New file.
30353         * tests/test-printf-posix2.c: New file.
30354         * modules/printf-posix-tests (Files): Add them.
30355         (TESTS): Add test-printf-posix2.sh.
30356         (configure.ac): Check for getrlimit and setrlimit.
30357         (check_PROGRAMS): Add test-printf-posix2.
30358
30359         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30360         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30361         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30362         (decode_double): New function, copied from decode_long_double.
30363         (scale10_round_decimal_decoded): New function, extracted from
30364         scale10_round_decimal_long_double.
30365         (scale10_round_decimal_long_double): Use it.
30366         (scale10_round_decimal_double): New function.
30367         (floorlog10): New function.
30368         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30370         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30371         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30372         gl_PRINTF_ENOMEM and test its result. Invoke
30373         gl_PREREQ_VASNPRINTF_ENOMEM.
30374         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30375         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30376         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30377         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30378         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30379         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30380         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30381         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
30382         * modules/snprintf-posix (Depends-on): Likewise.
30383         * modules/sprintf-posix (Depends-on): Likewise.
30384         * modules/vasnprintf-posix (Depends-on): Likewise.
30385         * modules/vasprintf-posix (Depends-on): Likewise.
30386         * modules/vfprintf-posix (Depends-on): Likewise.
30387         * modules/vsnprintf-posix (Depends-on): Likewise.
30388         * modules/vsprintf-posix (Depends-on): Likewise.
30389         * doc/functions/fprintf.texi: Update.
30390         * doc/functions/printf.texi: Update.
30391         * doc/functions/snprintf.texi: Update.
30392         * doc/functions/sprintf.texi: Update.
30393         * doc/functions/vfprintf.texi: Update.
30394         * doc/functions/vprintf.texi: Update.
30395         * doc/functions/vsnprintf.texi: Update.
30396         * doc/functions/vsprintf.texi: Update.
30397
30398 2007-11-03  Bruno Haible  <bruno@clisp.org>
30399
30400         * modules/frexp-nolibm-tests: New file.
30401
30402         * modules/frexp-nolibm: New file.
30403         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30404
30405 2007-11-03  Bruno Haible  <bruno@clisp.org>
30406
30407         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30408         value is C99 compliant.
30409         Needed for OSF/1 5.1.
30410
30411 2007-11-03  Bruno Haible  <bruno@clisp.org>
30412
30413         Fix out-of-memory handling of vasnprintf.
30414         * lib/printf-parse.c: Include <errno.h>.
30415         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30416         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30417         is already set.
30418
30419 2007-11-02  Eric Blake  <ebb9@byu.net>
30420
30421         Fix tests on cygwin.
30422         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30423
30424 2007-11-01  Bruno Haible  <bruno@clisp.org>
30425
30426         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30427         warning.
30428         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30429         needed for POSIX compatibility.
30430
30431 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30432
30433         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30434         for compatibility with GNU.
30435
30436 2007-11-01  Bruno Haible  <bruno@clisp.org>
30437
30438         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30439         (putenv): Renamed from rpl_putenv. Change argument type from
30440         'const char *' to 'char *'.
30441         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30442         of defining putenv in config.h, just set REPLACE_PUTENV.
30443         * modules/putenv (Depends-on): Add stdlib.
30444         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30445         (Include): Use <stdlib.h>.
30446         * lib/stdlib.in.h (putenv): New declaration.
30447         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30448         REPLACE_PUTENV.
30449         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30450         REPLACE_PUTENV.
30451         Needed for MacOS X 10.5.0.
30452         Reported by Peter O'Gorman <peter@pogma.com>.
30453
30454 2007-11-01  Jim Meyering  <meyering@redhat.com>
30455
30456         Treat an empty date string exactly like "0".
30457         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30458         if the remaining date string (to be parsed) is empty, use "0".
30459         Reported by Mischa Molhoek and discussed in this thread:
30460         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30461
30462 2007-10-31  Bruno Haible  <bruno@clisp.org>
30463
30464         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30465         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30466         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30467         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30468         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30469         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30470
30471 2007-10-31  Bruno Haible  <bruno@clisp.org>
30472
30473         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30474         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30475         (AC_TYPE_LONG_LONG_INT): Use it.
30476         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30477         it as well.
30478         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30479         to m4/longlong.m4.
30480         * modules/stdint (Files): Remove m4/ulonglong.m4.
30481         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30482         m4/ulonglong.m4.
30483         * modules/strtoumax (Files): Likewise.
30484
30485 2007-10-30  Bruno Haible  <bruno@clisp.org>
30486
30487         * modules/xvasprintf-posix: New file.
30488         Suggested by Eric Blake.
30489
30490 2007-10-30  Bruno Haible  <bruno@clisp.org>
30491
30492         * modules/xprintf-posix-tests: New file.
30493         * tests/test-xprintf-posix.sh: New file.
30494         * tests/test-xprintf-posix.c: New file.
30495         * tests/test-xfprintf-posix.c: New file.
30496
30497         * modules/xprintf-posix: New file.
30498
30499 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30500
30501         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30502         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30503         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30504
30505 2007-10-29  Bruno Haible  <bruno@clisp.org>
30506
30507         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30508         contain the special marker '_cv_'.
30509         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30510         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30511         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30512         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30513         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30514         Reported by Ralf Wildenhues.
30515
30516 2007-10-29  Bruno Haible  <bruno@clisp.org>
30517
30518         * gnulib-tool (func_import): When --lgpl is not specified, set
30519         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30520         GPLv3.
30521         Reported by Simon Josefsson.
30522
30523 2007-10-28  Bruno Haible  <bruno@clisp.org>
30524
30525         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30526         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30527         HAVE_DECL_ISFINITE.
30528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30529         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30530         HAVE_DECL_ISFINITE.
30531
30532 2007-10-28  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30535         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30536
30537 2007-10-28  Bruno Haible  <bruno@clisp.org>
30538
30539         Fix link errors with Sun C 5.0 on Solaris 10.
30540         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30541         function is declared but not present in the compiler's libm.
30542         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30543         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30544         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30545         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30546         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30547         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30548         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30550         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30551         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30552         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30553         HAVE_DECL_FLOORL.
30554
30555 2007-10-28  Bruno Haible  <bruno@clisp.org>
30556
30557         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30558         gl_FUNC_FLOORL. Cache the result.
30559         (gl_FUNC_FLOORL): Use it.
30560         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30561         gl_FUNC_CEILL. Cache the result.
30562         (gl_FUNC_CEILL): Use it.
30563
30564         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30565         gl_FUNC_FLOOR. Cache the result.
30566         (gl_FUNC_FLOOR): Use it.
30567         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30568         gl_FUNC_CEIL. Cache the result.
30569         (gl_FUNC_CEIL): Use it.
30570
30571         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30572         gl_FUNC_FLOORF. Cache the result.
30573         (gl_FUNC_FLOORF): Use it.
30574         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30575         gl_FUNC_CEILF. Cache the result.
30576         (gl_FUNC_CEILF): Use it.
30577
30578 2007-10-28  Bruno Haible  <bruno@clisp.org>
30579
30580         * gnulib-tool: Allow specifying the LGPL version number through
30581         --lgpl=2 or --lgpl=3.
30582         (func_usage): Document --lgpl with argument.
30583         Handle --lgpl=... arguments.
30584         (func_import): Recognize also gl_LGPL calls with an argument. When
30585         --lgpl=2 is used and the module's license is just LGPL, report an
30586         error. Set sed_transform_lib_file according to the lgpl variable. In
30587         the generated files, use --lgpl or gl_LGPL invocations with argument,
30588         if necessary.
30589         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30590         an LGPv2+ license.
30591         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30592         gl_LGPL macro.
30593
30594 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30595             Bruno Haible  <bruno@clisp.org>
30596
30597         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30598         (u16_uctomb_aux): Likewise.
30599         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30600         !HAVE_INLINE.
30601         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30602
30603 2007-10-28  Bruno Haible  <bruno@clisp.org>
30604
30605         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30606         Invoke AM_GETTEXT_OPTION if it exists.
30607         * modules/vasprintf: Likewise.
30608         * modules/verror: Likewise.
30609         * modules/xprintf: Likewise.
30610         * modules/xvasprintf: Likewise.
30611
30612 2007-10-27  Ben Pfaff  <blp@gnu.org>
30613
30614         * lib/math.in.h: Define isfinite macro and prototypes for
30615         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30616         implementations.
30617         * m4/math_h.m4: New substitutions for isfinite module.
30618         * lib/isfinite.c: New file.
30619         * m4/isfinite.m4: New file.
30620         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30621         * modules/isfinite: New file.
30622         * modules/isfinite-tests: New file.
30623         * tests/tests-isfinite.c: New file.
30624         * doc/functions/isfinite.texi: Mention isfinite module.
30625         * MODULES.html.sh: Mention new module.
30626
30627 2007-10-27  Ben Pfaff  <blp@gnu.org>
30628
30629         Ralf Wildenhues reported that Tru64 4.0D declares the round
30630         functions but does not have definitions.
30631         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30632         cannot be found in any library, set the output variable to
30633         "missing" instead of "".
30634         * m4/round.m4: Also use our substitute if we cannot find round in
30635         any library, even if it is declared.
30636         * m4/roundf.m4: Likewise for roundf.
30637         * m4/roundl.m4: Likewise for roundl.
30638         * lib/math.in.h: Undefine roundf, round, roundl before defining
30639         their replacements, to allow for hypothetical systems where these
30640         may be defined as macros but not available in libraries.
30641
30642 2007-10-27  Bruno Haible  <bruno@clisp.org>
30643
30644         * doc/gnulib.texi: Invoke @firstparagraphindent.
30645         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30646         changes in gnulib.
30647         (Source changes): New section.
30648
30649 2007-10-26  Bruno Haible  <bruno@clisp.org>
30650
30651         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30652         borrowed from autoconf.
30653
30654 2007-10-26  Bruno Haible  <bruno@clisp.org>
30655
30656         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30657         strerror returned the empty string. Needed on HP-UX 11.00.
30658
30659 2007-10-24  Micah Cowan  <micah@cowan.name>
30660
30661         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30662         * build-aux/bootstrap: Remove support for now-unnecessary option,
30663         --cvs-user, and envvars CVS_USER, CVS_RSH.
30664
30665 2007-10-24  Jim Meyering  <meyering@redhat.com>
30666
30667         Avoid diagnostics from sha1sum when there is no cached checksum.
30668         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30669         if the po.s1 file hasn't been created yet.
30670
30671         * build-aux/bootstrap: Sync from coreutils:
30672         2007-10-24  Jim Meyering  <meyering@redhat.com>
30673         Get gnulib from the git repository, not from an obsolete cvs one.
30674         * build-aux/bootstrap: Suggestion from Micah Cowan.
30675         2007-10-04  Jim Meyering  <jim@meyering.net>
30676         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30677         (update_po_files): Work also when there are no .po files in po/.
30678
30679 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30680
30681         * README: Append ".git" to git and cg examples.
30682         Problem reported by Benoit Sigoure.
30683
30684 2007-10-23  Micah Cowan  <micah@cowan.name>
30685
30686         * users.txt: Add wget.
30687
30688 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30689
30690         Fix linking of some unistdio tests on FreeBSD.
30691         * modules/unistdio/u16-vsnprintf-tests
30692         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30693         * modules/unistdio/u16-vsprintf-tests
30694         (test_u16_vsnprintf1_LDADD): Likewise.
30695         * modules/unistdio/u32-vsnprintf-tests
30696         (test_u32_vsnprintf1_LDADD): Likewise.
30697         * modules/unistdio/u32-vsprintf-tests
30698         (test_u32_vsprintf1_LDADD): Likewise.
30699         * modules/unistdio/u8-vsnprintf-tests
30700         (test_u8_vsnprintf1_LDADD): Likewise.
30701         * modules/unistdio/u8-vsprintf-tests
30702         (test_u8_vsprintf1_LDADD): Likewise.
30703         * modules/unistdio/ulc-vsnprintf-tests
30704         (test_ulc_vsnprintf1_LDADD): Likewise.
30705         * modules/unistdio/ulc-vsprintf-tests
30706         (test_ulc_vsprintf1_LDADD): Likewise.
30707
30708         Fix linking of some uniconv tests on FreeBSD.
30709         * modules/uniconv/u16-conv-from-enc-tests
30710         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30711         * modules/uniconv/u16-conv-to-enc-tests
30712         (test_u16_conv_to_enc_LDADD): Likewise.
30713         * modules/uniconv/u16-strconv-from-enc-tests
30714         (test_u16_strconv_from_enc_LDADD): Likewise.
30715         * modules/uniconv/u16-strconv-to-enc-tests
30716         (test_u16_strconv_to_enc_LDADD): Likewise.
30717         * modules/uniconv/u32-conv-from-enc-tests
30718         (test_u32_conv_from_enc_LDADD): Likewise.
30719         * modules/uniconv/u32-conv-to-enc-tests
30720         (test_u32_conv_to_enc_LDADD): Likewise.
30721         * modules/uniconv/u32-strconv-from-enc-tests
30722         (test_u32_strconv_from_enc_LDADD): Likewise.
30723         * modules/uniconv/u32-strconv-to-enc-tests
30724         (test_u32_strconv_to_enc_LDADD): Likewise.
30725         * modules/uniconv/u8-conv-from-enc-tests
30726         (test_u8_conv_from_enc_LDADD): Likewise.
30727         * modules/uniconv/u8-conv-to-enc-tests
30728         (test_u8_conv_to_enc_LDADD): Likewise.
30729         * modules/uniconv/u8-strconv-from-enc-tests
30730         (test_u8_strconv_from_enc_LDADD): Likewise.
30731         * modules/uniconv/u8-strconv-to-enc-tests
30732         (test_u8_strconv_to_enc_LDADD): Likewise.
30733
30734 2007-10-22  Bruno Haible  <bruno@clisp.org>
30735
30736         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30737         size.
30738
30739 2007-10-22  Eric Blake  <ebb9@byu.net>
30740
30741         Tweak x*printf documentation.
30742         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30743         variable name and comments.
30744         Suggested by Bruno Haible.
30745
30746 2007-10-22  Bruno Haible  <bruno@clisp.org>
30747
30748         * lib/acl.c (copy_acl): Fix file name in comment.
30749
30750 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30751
30752         Fix Tru64 problem with stdbool.h.
30753         * lib/stdbool.in.h (false, true):
30754         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30755         Don't declare as an enum in this situation; it runs afoul of Tru64.
30756         Problem reported by Steven M. Schweda in
30757         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30758
30759 2007-10-22  Eric Blake  <ebb9@byu.net>
30760
30761         Also wrap vf?printf.
30762         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30763         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30764         (xvprintf, xvfprintf): New functions.
30765
30766 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30767
30768         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30769         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30770
30771         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30772         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30773
30774 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30775
30776         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30777         by Bruno Haible.
30778
30779 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30780
30781         * lib/getloadavg.c
30782         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30783         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30784
30785         * tests/test-i-ring.c: Work for C89.
30786
30787 2007-10-22  Bruno Haible  <bruno@clisp.org>
30788
30789         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30790         -1u, in preprocessor expression, so that we don't test for the bug
30791         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30792         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30793
30794 2007-10-22  Eric Blake  <ebb9@byu.net>
30795
30796         * tests/test-yesno.sh: Silence stderr during test.
30797
30798 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30799
30800         * modules/crypto/gc-camellia: New file.
30801
30802         * m4/gc-camellia.m4: New file.
30803
30804         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30805
30806         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30807
30808 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30809
30810         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30811         --help to stdout.  Reported by sms@antinode.org (Steven
30812         M. Schweda).
30813
30814 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30815
30816         * users.txt: Fix link to libksba.
30817
30818 2007-10-21  Ben Pfaff  <blp@gnu.org>
30819
30820         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30821         round.c roundf implementation that depends on floorf and ceilf to
30822         be tested unconditionally.
30823
30824 2007-10-21  Ben Pfaff  <blp@gnu.org>
30825
30826         * m4/check-libm-func.m4: Removed.
30827         * m4/check-math-lib.m4: New file.
30828         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30829         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30830         definition and lack of AC_LIBOBJ([roundf]).
30831         * m4/roundl.m4: Ditto, and similarly for roundl.
30832         * modules/round: Reference new m4 file.
30833         * modules/roundf: Ditto.
30834         * modules/roundl: Ditto.
30835         * tests/test-round2.c (main): Use ROUND instead of round.
30836         Bug report from Bruno Haible.
30837
30838 2007-10-21  Bruno Haible  <bruno@clisp.org>
30839
30840         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30841         context.
30842
30843 2007-10-21  Bruno Haible  <bruno@clisp.org>
30844
30845         * tests/test-wcwidth.c (main): Allow negative result for some control
30846         characters.
30847
30848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30849         Needed on OSF/1 5.1.
30850
30851 2007-10-21  Bruno Haible  <bruno@clisp.org>
30852
30853         * tests/test-floorf1.c: Include isnanf.h.
30854         (main): Use isnanf() instead of isnan().
30855         * tests/test-ceilf1.c: Include isnanf.h.
30856         (main): Use isnanf() instead of isnan().
30857         * tests/test-truncf1.c: Include isnanf.h.
30858         (main): Use isnanf() instead of isnan().
30859         * tests/test-roundf1.c: Include isnanf.h.
30860         (main): Use isnanf() instead of isnan().
30861
30862 2007-10-21  Eric Blake  <ebb9@byu.net>
30863
30864         * users.txt: Update URL for m4.
30865
30866 2007-10-21  Bruno Haible  <bruno@clisp.org>
30867
30868         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30869
30870 2007-10-21  Bruno Haible  <bruno@clisp.org>
30871
30872         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30873         Git's management files if the CVS files are not present.
30874
30875 2007-10-20  Bruno Haible  <bruno@clisp.org>
30876
30877         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30878         gcc-3.4.x.
30879
30880 2007-10-20  Ben Pfaff  <blp@gnu.org>
30881
30882         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30883         implementations.
30884         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30885         * lib/round.c: New file.
30886         * lib/roundf.c: New file.
30887         * lib/roundl.c: New file.
30888         * m4/round.m4: New file.
30889         * m4/roundf.m4: New file.
30890         * m4/roundl.m4: New file.
30891         * m4/check-libm-func-m4: New file.
30892         * modules/math: Replace round, roundf, roundl related @VARS@ in
30893         math.in.h.
30894         * modules/round: New file.
30895         * modules/round-tests: New file.
30896         * modules/roundf: New file.
30897         * modules/roundf-tests: New file.
30898         * modules/roundl: New file.
30899         * modules/roundl-tests: New file.
30900         * tests/test-round1.c: New file.
30901         * tests/test-round2.c: New file.
30902         * tests/test-roundf1.c: New file.
30903         * tests/test-roundf2.c: New file.
30904         * tests/test-roundl.c: New file.
30905         * doc/functions/round.texi: Mention round module.
30906         * doc/functions/roundf.texi: Mention roundf module.
30907         * doc/functions/roundl.texi: Mention roundl module.
30908         * MODULES.html.sh: Mention new modules.
30909         Thanks to Bruno Haible for suggestions.
30910
30911 2007-10-20  Jim Meyering  <meyering@redhat.com>
30912
30913         * lib/xprintf.c: Include <config.h> unconditionally.
30914
30915         Change xprintf's license to GPL.
30916         * modules/xprintf (License): s/LGPL/GPL/, since this module
30917         depends on modules (exit and exitfail) which are GPL.
30918         Suggestion from Bruno Haible.
30919
30920         xprintf fixes.
30921         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30922         Use a clearer diagnostic.
30923         Patch from Bruno Haible.
30924
30925 2007-10-20  Bruno Haible  <bruno@clisp.org>
30926
30927         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30928         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30929         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30930
30931 2007-10-20  Bruno Haible  <bruno@clisp.org>
30932
30933         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30934         precision in the comparison result > x - 1 or similar.
30935         * tests/test-ceilf2.c (correct_result_p): Likewise.
30936         * tests/test-truncf2.c (correct_result_p): Likewise.
30937         * tests/test-trunc2.c (correct_result_p): Likewise.
30938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30939
30940 2007-10-20  Bruno Haible  <bruno@clisp.org>
30941
30942         * modules/ceil: New file.
30943         * m4/ceil.m4: New file.
30944         * doc/functions/ceil.texi: Mention the 'ceil' module.
30945
30946 2007-10-20  Bruno Haible  <bruno@clisp.org>
30947
30948         * modules/floor: New file.
30949         * m4/floor.m4: New file.
30950         * doc/functions/floor.texi: Mention the 'floor' module.
30951
30952 2007-10-20  Bruno Haible  <bruno@clisp.org>
30953
30954         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30955         of %a.
30956         * modules/floorf-tests (Depends-on): Likewise.
30957         * modules/truncf-tests (Depends-on): Likewise.
30958         * modules/trunc-tests (Depends-on): Likewise.
30959         Reported by Ben Pfaff.
30960
30961 2007-10-19  Jim Meyering  <meyering@redhat.com>
30962
30963         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30964         Don't bother testing specific errno values.  Just test ferror.
30965
30966         New module: xprintf
30967         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30968
30969 2007-10-19  Bruno Haible  <bruno@clisp.org>
30970
30971         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30972         syntax.
30973         * modules/javaexec (Makefile.am): Likewise.
30974         * modules/relocatable-prog (Makefile.am): Likewise.
30975         Suggested by Jim Meyering.
30976
30977 2007-10-18  Bruno Haible  <bruno@clisp.org>
30978
30979         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30980         Reported by Jim Meyering.
30981
30982 2007-10-18  Eric Blake  <ebb9@byu.net>
30983
30984         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30985
30986 2007-10-18  Bruno Haible  <bruno@clisp.org>
30987
30988         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30989         the format string into writable memory. Needed in Fortify conditions.
30990
30991 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30992             Bruno Haible  <bruno@clisp.org>
30993
30994         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30995         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30996         * modules/trim (Depends-on): Add mbchar.
30997         (configure.ac): Add gl_FUNC_MBRTOWC.
30998         (Makefile.am): Augment lib_SOURCES.
30999
31000 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
31001
31002         Modify glob.c to use fstatat and dirfd, to simplify it.
31003         Suggested by Eric Blake.
31004         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
31005         Don't include <stdbool.h>; not used.
31006         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
31007         (link_exists_p): Simplify implementation, since we can now assume
31008         dirfd and fstatat.
31009         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
31010
31011 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31012
31013         * gnulib-tool (func_get_dependencies): Fix sed script to
31014         match only tests.
31015
31016 2007-10-17  Bruno Haible  <bruno@clisp.org>
31017
31018         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
31019         allow locale names without encoding suffix.
31020         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
31021         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
31022
31023 2007-10-16  Bruno Haible  <bruno@clisp.org>
31024
31025         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
31026         * lib/getgroups.c (getgroups): Likewise.
31027         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
31028
31029 2007-10-16  Bruno Haible  <bruno@clisp.org>
31030
31031         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
31032         * modules/malloc-posix (License): Likewise.
31033         * modules/realloc-posix (License): Likewise.
31034         * modules/calloc-posix (License): Likewise.
31035         * modules/intprops (License): Change from GPL to LGPL, with
31036         Paul Eggert's approval.
31037
31038 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31039
31040         Merge glibc changes into lib/glob.c.
31041
31042         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
31043         2007-10-15 04:59:03 UTC.  Here are the changes:
31044
31045         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
31046
31047         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
31048
31049         * lib/glob.c: Add some branch prediction throughout.
31050
31051         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
31052
31053         [BZ #5103]
31054         * lib/glob.c (glob): Recognize patterns starting \/.
31055
31056         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
31057
31058         [BZ #3996]
31059         * lib/glob.c (attribute_hidden): Define if not defined.
31060         (glob): Unescape dirname, filename or username when needed and not
31061         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
31062         is NULL.  Handle unescaped [ in pattern without closing ].
31063         Don't pass GLOB_CHECK down to recursive glob for directories.
31064         (__glob_pattern_type): New function.
31065         (__glob_pattern_p): Implement using __glob_pattern_type.
31066         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
31067         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
31068         Remove unreachable code.
31069
31070         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
31071
31072         * lib/glob.c (glob_in_dir): Add some comments and asserts to
31073         explain why there are no leaks.
31074
31075         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
31076
31077         [BZ #3253]
31078         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
31079         time, rather allocate increasingly bigger arrays of pointers, if
31080         possible with alloca, if too large with malloc.
31081
31082 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31083
31084         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
31085         Problem reported by H.Merijn Brand in
31086         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
31087         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
31088         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
31089
31090 2007-10-15  Bruno Haible  <bruno@clisp.org>
31091
31092         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
31093         with explicit rpl_ prefix.
31094         * lib/fopen.c (fopen): Likewise.
31095         * lib/freopen.c (freopen): Likewise.
31096         * lib/iconv.c (iconv): Likewise.
31097         * lib/iconv_close.c (iconv_close): Likewise.
31098
31099 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31100
31101         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
31102
31103 2007-10-15  Bruno Haible  <bruno@clisp.org>
31104
31105         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
31106         <stddef.h> instead of <stdlib.h> since we only need NULL.
31107         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31108
31109 2007-10-15  Bruno Haible  <bruno@clisp.org>
31110
31111         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
31112         Replace paragraph talking about LIBOBJS.
31113         Reported by Colin Watson <cjwatson@debian.org>.
31114
31115 2007-10-15  Bruno Haible  <bruno@clisp.org>
31116
31117         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
31118         <stdlib.h> before using NULL.
31119
31120 2007-10-15  Simon Josefsson  <simon@josefsson.org>
31121
31122         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
31123         Reported by Albert Chin <china@thewrittenword.com>.
31124
31125 2007-10-14  Bruno Haible  <bruno@clisp.org>
31126
31127         * modules/iconv_open-utf-tests: New file.
31128         * tests/test-iconv-utf.c: New file.
31129
31130         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
31131         * modules/iconv_open-utf: New file.
31132         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
31133         (iconv, iconv_close): New declarations.
31134         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
31135         be defined.
31136         (iconv_open): Add special handling of conversion between UTF-8 and
31137         UTF-{16,32}{BE,LE}.
31138         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
31139         * lib/iconv_close.c: New file.
31140         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
31141         gl_FUNC_ICONV_OPEN.
31142         (gl_FUNC_ICONV_OPEN): Use it.
31143         (gl_FUNC_ICONV_OPEN_UTF): New macro.
31144         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
31145         and REPLACE_ICONV_UTF.
31146         * modules/iconv_open (Depends-on): Add c-strcase.
31147         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
31148         ICONV_CONST.
31149         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
31150
31151 2007-10-13  Albert Chin  <china@thewrittenword.com>
31152             Bruno Haible  <bruno@clisp.org>
31153
31154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
31155         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
31156
31157 2007-10-13  Bruno Haible  <bruno@clisp.org>
31158
31159         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
31160         defined, use the ISO C99 inline semantics.
31161         * lib/argp.h (ARGP_EI): Likewise.
31162
31163 2007-10-13  Bruno Haible  <bruno@clisp.org>
31164
31165         Handle 'inline' change in gcc 4.3.0.
31166         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
31167         argp_fmtstream_write, argp_fmtstream_set_lmargin,
31168         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
31169         argp_fmtstream_point): Disable 'extern' declaration if the function
31170         definition is going to be provided inline.
31171         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
31172         semantics, not the ISO C99 inline semantics.
31173         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
31174         'extern' declaration if the function definition is going to be provided
31175         inline.
31176         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
31177         the GNU C inline semantics, not the ISO C99 inline semantics. With
31178         GCC 4.2, avoid a warning.
31179
31180 2007-10-13  Bruno Haible  <bruno@clisp.org>
31181
31182         * lib/freading.h (freading): Enable the use of __freading for
31183         glibc >= 2.7.
31184         * lib/freading.c (freading): Likewise.
31185
31186 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31187
31188         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
31189         "warning: C99 inline functions are not supported; using GNU89".
31190
31191 2007-10-12  Bruno Haible  <bruno@clisp.org>
31192
31193         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
31194         of 2.
31195         * tests/test-ceilf2.c: New file.
31196         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
31197
31198         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
31199         * modules/ceilf-tests: Update.
31200
31201 2007-10-12  Bruno Haible  <bruno@clisp.org>
31202
31203         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
31204         of 2.
31205         * tests/test-floorf2.c: New file.
31206         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
31207
31208         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
31209         * modules/floorf-tests: Update.
31210
31211 2007-10-12  Bruno Haible  <bruno@clisp.org>
31212
31213         * tests/test-trunc2.c: New file.
31214         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
31215
31216         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
31217         * modules/trunc-tests: Update.
31218
31219 2007-10-12  Bruno Haible  <bruno@clisp.org>
31220
31221         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
31222         of 2.
31223         * tests/test-truncf2.c: New file.
31224         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
31225
31226         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
31227         * modules/truncf-tests: Update.
31228
31229 2007-10-11  Eric Blake  <ebb9@byu.net>
31230
31231         Don't claim strerror is broken on Interix.
31232         * doc/functions/strerror.texi (strerror): Known broken systems are
31233         now Solaris 8, and not Interix.
31234         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
31235         Interix on cross-compile.
31236         Reported by Martin Koeppe in
31237         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
31238
31239 2007-10-11  Bruno Haible  <bruno@clisp.org>
31240
31241         * modules/i-ring-tests: New file.
31242         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
31243         instead of assert.
31244
31245 2007-10-11  Bruno Haible  <bruno@clisp.org>
31246
31247         * modules/filenamecat-tests: New file.
31248         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
31249         * lib/filenamecat.c: Remove test code.
31250
31251 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31252
31253         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
31254
31255         * lib/strerror.c: Include <string.h> always, to test interface,
31256         and to remove the need for the dummy.
31257         Include intprops.h to compute width instead of doing it ourselves
31258         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
31259         (strerror): Define it to return NULL if there's no system strerror.
31260         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
31261         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
31262         ancient pre-strerror Unix systems well any more.  Saying "unknown
31263         system error" is enough.
31264         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
31265         simpler strerror.c implementation.
31266         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
31267         Simplify the tests to reflect the simpler strerror implementation.
31268         * modules/strerror (Depends-on): Add intprops.
31269
31270 2007-10-09  Eric Blake  <ebb9@byu.net>
31271
31272         Silence test-fpending.
31273         * modules/fpending-tests (Files): Add wrapper script.
31274         * tests/test-fpending.sh: New file.
31275
31276 2007-10-09  Bruno Haible  <bruno@clisp.org>
31277
31278         * MODULES.html.sh (func_module): Don't create a hyperlink for
31279         function names like 'printf_frexp'.
31280         (Misc): Add crc, memxor.
31281         (Characteristics of floating types): New section.
31282         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
31283         isnanf-nolibm, signbit, trunc, truncf, truncl.
31284         (Enhancements for ISO C 99 functions): New subsection Input/output.
31285         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
31286         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
31287         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
31288         (Compatibility checks for POSIX:2001 functions): Add clock-time.
31289         (Enhancements for POSIX:2001 functions): Add chdir-long.
31290         (File system functions): Add areadlink, chdir-safer, read-file.
31291         Remove cycle-check.
31292         (File system as inode set): New section.
31293         (Date and time): Add gethrxtime.
31294         (Multithreading): Add openmp.
31295         (Internationalization functions): Add localename.
31296         (Unicode string functions): Add unistr/u*-mbsnlen.
31297         (Support for maintaining and releasing projects): Add git-version-gen.
31298         (Lone files): Remove directories.
31299
31300 2007-10-08  Ben Pfaff  <blp@gnu.org>
31301
31302         * lib/xmalloca.h: Fix typo in comment.
31303
31304 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31305
31306         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
31307         when avoiding problems with integer overflow.  Use a portable test
31308         instead.
31309
31310 2007-10-08  Simon Josefsson  <simon@josefsson.org>
31311
31312         * modules/dummy (License): Change to LGPLv2+.
31313         * modules/float (License): Likewise
31314         * modules/realloc (License): Likewise
31315         * modules/stdlib (License): Likewise
31316
31317 2007-10-07  Bruno Haible  <bruno@clisp.org>
31318
31319         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31320         * floor.c (TWO_MANT_DIG): Likewise.
31321         * ceil.c (TWO_MANT_DIG): Likewise.
31322         Reported by Ben Pfaff.
31323
31324 2007-10-07  Bruno Haible  <bruno@clisp.org>
31325
31326         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31327         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31328         * lib/frexp.c (FUNC): Likewise.
31329         * lib/printf-frexp.h (printf_frexp): Likewise.
31330         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31331         * lib/printf-frexp.c (FUNC): Likewise.
31332         Suggested by Jim Meyering.
31333
31334 2007-10-07  Jim Meyering  <meyering@redhat.com>
31335
31336         Make xnanosleep's integer overflow test more robust.
31337         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31338         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31339
31340 2007-10-07  Bruno Haible  <bruno@clisp.org>
31341
31342         * NEWS: Mention the license change.
31343
31344         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31345         abbreviations in the modules files.
31346
31347         Change copyright notice from GPLv2+ to GPLv3+.
31348         * README: Change copyright notice.
31349         * MODULES.html.sh: Likewise.
31350         * build-aux/bootstrap.conf: Likewise.
31351         * build-aux/config.libpath: Likewise.
31352         * build-aux/csharpcomp.sh.in: Likewise.
31353         * build-aux/csharpexec.sh.in: Likewise.
31354         * build-aux/install-reloc: Likewise.
31355         * build-aux/javacomp.sh.in: Likewise.
31356         * build-aux/javaexec.sh.in: Likewise.
31357         * build-aux/ldd.sh.in: Likewise.
31358         * build-aux/reloc-ldflags: Likewise.
31359         * build-aux/relocatable.sh.in: Likewise.
31360         * build-aux/x-to-1.in: Likewise.
31361         * check-module: Likewise.
31362         * config/srclistvars.sh: Likewise.
31363         * gnulib-tool: Likewise.
31364         * lib/acl-internal.h: Likewise.
31365         * lib/acl.c: Likewise.
31366         * lib/acl.h: Likewise.
31367         * lib/acl_entries.c: Likewise.
31368         * lib/areadlink-with-size.c: Likewise.
31369         * lib/areadlink.c: Likewise.
31370         * lib/areadlink.h: Likewise.
31371         * lib/argmatch.c: Likewise.
31372         * lib/argmatch.h: Likewise.
31373         * lib/argp-ba.c: Likewise.
31374         * lib/argp-eexst.c: Likewise.
31375         * lib/argp-fmtstream.c: Likewise.
31376         * lib/argp-fmtstream.h: Likewise.
31377         * lib/argp-fs-xinl.c: Likewise.
31378         * lib/argp-help.c: Likewise.
31379         * lib/argp-namefrob.h: Likewise.
31380         * lib/argp-parse.c: Likewise.
31381         * lib/argp-pin.c: Likewise.
31382         * lib/argp-pv.c: Likewise.
31383         * lib/argp-pvh.c: Likewise.
31384         * lib/argp-xinl.c: Likewise.
31385         * lib/argp.h: Likewise.
31386         * lib/at-func.c: Likewise.
31387         * lib/atanl.c: Likewise.
31388         * lib/backupfile.c: Likewise.
31389         * lib/backupfile.h: Likewise.
31390         * lib/basename.c: Likewise.
31391         * lib/binary-io.h: Likewise.
31392         * lib/byteswap.in.h: Likewise.
31393         * lib/c-stack.c: Likewise.
31394         * lib/c-stack.h: Likewise.
31395         * lib/c-strcasestr.c: Likewise.
31396         * lib/c-strcasestr.h: Likewise.
31397         * lib/c-strstr.c: Likewise.
31398         * lib/c-strstr.h: Likewise.
31399         * lib/c-strtod.c: Likewise.
31400         * lib/calloc.c: Likewise.
31401         * lib/canon-host.c: Likewise.
31402         * lib/canon-host.h: Likewise.
31403         * lib/canonicalize-lgpl.c: Likewise.
31404         * lib/canonicalize.c: Likewise.
31405         * lib/canonicalize.h: Likewise.
31406         * lib/ceil.c: Likewise.
31407         * lib/ceilf.c: Likewise.
31408         * lib/ceill.c: Likewise.
31409         * lib/chdir-long.c: Likewise.
31410         * lib/chdir-long.h: Likewise.
31411         * lib/chdir-safer.c: Likewise.
31412         * lib/chdir-safer.h: Likewise.
31413         * lib/chown.c: Likewise.
31414         * lib/classpath.c: Likewise.
31415         * lib/classpath.h: Likewise.
31416         * lib/clean-temp.c: Likewise.
31417         * lib/clean-temp.h: Likewise.
31418         * lib/cloexec.c: Likewise.
31419         * lib/close-stream.c: Likewise.
31420         * lib/closein.c: Likewise.
31421         * lib/closein.h: Likewise.
31422         * lib/closeout.c: Likewise.
31423         * lib/closeout.h: Likewise.
31424         * lib/concat-filename.c: Likewise.
31425         * lib/copy-file.c: Likewise.
31426         * lib/copy-file.h: Likewise.
31427         * lib/count-one-bits.h: Likewise.
31428         * lib/crc.c: Likewise.
31429         * lib/crc.h: Likewise.
31430         * lib/creat-safer.c: Likewise.
31431         * lib/csharpcomp.c: Likewise.
31432         * lib/csharpcomp.h: Likewise.
31433         * lib/csharpexec.c: Likewise.
31434         * lib/csharpexec.h: Likewise.
31435         * lib/cycle-check.c: Likewise.
31436         * lib/cycle-check.h: Likewise.
31437         * lib/diacrit.c: Likewise.
31438         * lib/diacrit.h: Likewise.
31439         * lib/diffseq.h: Likewise.
31440         * lib/dirchownmod.c: Likewise.
31441         * lib/dirent.in.h: Likewise.
31442         * lib/dirfd.c: Likewise.
31443         * lib/dirfd.h: Likewise.
31444         * lib/dirname.c: Likewise.
31445         * lib/dirname.h: Likewise.
31446         * lib/dummy.c: Likewise.
31447         * lib/dup-safer.c: Likewise.
31448         * lib/dup2.c: Likewise.
31449         * lib/eealloc.h: Likewise.
31450         * lib/error.c: Likewise.
31451         * lib/error.h: Likewise.
31452         * lib/euidaccess.c: Likewise.
31453         * lib/exclude.c: Likewise.
31454         * lib/exclude.h: Likewise.
31455         * lib/execute.c: Likewise.
31456         * lib/execute.h: Likewise.
31457         * lib/exitfail.c: Likewise.
31458         * lib/exitfail.h: Likewise.
31459         * lib/expl.c: Likewise.
31460         * lib/fatal-signal.c: Likewise.
31461         * lib/fatal-signal.h: Likewise.
31462         * lib/fbufmode.c: Likewise.
31463         * lib/fbufmode.h: Likewise.
31464         * lib/fchdir.c: Likewise.
31465         * lib/fchmodat.c: Likewise.
31466         * lib/fchownat.c: Likewise.
31467         * lib/fcntl--.h: Likewise.
31468         * lib/fcntl-safer.h: Likewise.
31469         * lib/fcntl.in.h: Likewise.
31470         * lib/fd-safer.c: Likewise.
31471         * lib/fflush.c: Likewise.
31472         * lib/file-has-acl.c: Likewise.
31473         * lib/file-set.c: Likewise.
31474         * lib/file-type.c: Likewise.
31475         * lib/file-type.h: Likewise.
31476         * lib/fileblocks.c: Likewise.
31477         * lib/filemode.c: Likewise.
31478         * lib/filemode.h: Likewise.
31479         * lib/filename.h: Likewise.
31480         * lib/filenamecat.c: Likewise.
31481         * lib/filenamecat.h: Likewise.
31482         * lib/findprog.c: Likewise.
31483         * lib/findprog.h: Likewise.
31484         * lib/float.in.h: Likewise.
31485         * lib/floor.c: Likewise.
31486         * lib/floorf.c: Likewise.
31487         * lib/floorl.c: Likewise.
31488         * lib/fopen-safer.c: Likewise.
31489         * lib/fopen.c: Likewise.
31490         * lib/fpending.c: Likewise.
31491         * lib/fpending.h: Likewise.
31492         * lib/fprintf.c: Likewise.
31493         * lib/fprintftime.h: Likewise.
31494         * lib/fpucw.h: Likewise.
31495         * lib/fpurge.c: Likewise.
31496         * lib/fpurge.h: Likewise.
31497         * lib/freadable.c: Likewise.
31498         * lib/freadable.h: Likewise.
31499         * lib/freadahead.c: Likewise.
31500         * lib/freadahead.h: Likewise.
31501         * lib/freading.c: Likewise.
31502         * lib/freading.h: Likewise.
31503         * lib/free.c: Likewise.
31504         * lib/freopen.c: Likewise.
31505         * lib/frexp.c: Likewise.
31506         * lib/frexpl.c: Likewise.
31507         * lib/fseek.c: Likewise.
31508         * lib/fseterr.c: Likewise.
31509         * lib/fseterr.h: Likewise.
31510         * lib/fstatat.c: Likewise.
31511         * lib/fstrcmp.c: Likewise.
31512         * lib/fstrcmp.h: Likewise.
31513         * lib/fsusage.c: Likewise.
31514         * lib/fsusage.h: Likewise.
31515         * lib/ftell.c: Likewise.
31516         * lib/ftello.c: Likewise.
31517         * lib/fts-cycle.c: Likewise.
31518         * lib/fts.c: Likewise.
31519         * lib/fts_.h: Likewise.
31520         * lib/full-read.c: Likewise.
31521         * lib/full-read.h: Likewise.
31522         * lib/full-write.c: Likewise.
31523         * lib/full-write.h: Likewise.
31524         * lib/fwritable.c: Likewise.
31525         * lib/fwritable.h: Likewise.
31526         * lib/fwriteerror.c: Likewise.
31527         * lib/fwriteerror.h: Likewise.
31528         * lib/fwriting.c: Likewise.
31529         * lib/fwriting.h: Likewise.
31530         * lib/gcd.c: Likewise.
31531         * lib/gcd.h: Likewise.
31532         * lib/getcwd.c: Likewise.
31533         * lib/getdate.h: Likewise.
31534         * lib/getdate.y: Likewise.
31535         * lib/getdomainname.c: Likewise.
31536         * lib/getdomainname.h: Likewise.
31537         * lib/getgroups.c: Likewise.
31538         * lib/gethostname.c: Likewise.
31539         * lib/gethrxtime.c: Likewise.
31540         * lib/gethrxtime.h: Likewise.
31541         * lib/getloadavg.c: Likewise.
31542         * lib/getndelim2.c: Likewise.
31543         * lib/getndelim2.h: Likewise.
31544         * lib/getnline.c: Likewise.
31545         * lib/getnline.h: Likewise.
31546         * lib/getopt.c: Likewise.
31547         * lib/getopt.in.h: Likewise.
31548         * lib/getopt1.c: Likewise.
31549         * lib/getopt_int.h: Likewise.
31550         * lib/getpagesize.h: Likewise.
31551         * lib/getsubopt.c: Likewise.
31552         * lib/gettime.c: Likewise.
31553         * lib/getugroups.c: Likewise.
31554         * lib/getugroups.h: Likewise.
31555         * lib/getusershell.c: Likewise.
31556         * lib/gl_anyavltree_list1.h: Likewise.
31557         * lib/gl_anyavltree_list2.h: Likewise.
31558         * lib/gl_anyhash_list1.h: Likewise.
31559         * lib/gl_anyhash_list2.h: Likewise.
31560         * lib/gl_anylinked_list1.h: Likewise.
31561         * lib/gl_anylinked_list2.h: Likewise.
31562         * lib/gl_anyrbtree_list1.h: Likewise.
31563         * lib/gl_anyrbtree_list2.h: Likewise.
31564         * lib/gl_anytree_list1.h: Likewise.
31565         * lib/gl_anytree_list2.h: Likewise.
31566         * lib/gl_anytree_oset.h: Likewise.
31567         * lib/gl_anytreehash_list1.h: Likewise.
31568         * lib/gl_anytreehash_list2.h: Likewise.
31569         * lib/gl_array_list.c: Likewise.
31570         * lib/gl_array_list.h: Likewise.
31571         * lib/gl_array_oset.c: Likewise.
31572         * lib/gl_array_oset.h: Likewise.
31573         * lib/gl_avltree_list.c: Likewise.
31574         * lib/gl_avltree_list.h: Likewise.
31575         * lib/gl_avltree_oset.c: Likewise.
31576         * lib/gl_avltree_oset.h: Likewise.
31577         * lib/gl_avltreehash_list.c: Likewise.
31578         * lib/gl_avltreehash_list.h: Likewise.
31579         * lib/gl_carray_list.c: Likewise.
31580         * lib/gl_carray_list.h: Likewise.
31581         * lib/gl_linked_list.c: Likewise.
31582         * lib/gl_linked_list.h: Likewise.
31583         * lib/gl_linkedhash_list.c: Likewise.
31584         * lib/gl_linkedhash_list.h: Likewise.
31585         * lib/gl_list.c: Likewise.
31586         * lib/gl_list.h: Likewise.
31587         * lib/gl_oset.c: Likewise.
31588         * lib/gl_oset.h: Likewise.
31589         * lib/gl_rbtree_list.c: Likewise.
31590         * lib/gl_rbtree_list.h: Likewise.
31591         * lib/gl_rbtree_oset.c: Likewise.
31592         * lib/gl_rbtree_oset.h: Likewise.
31593         * lib/gl_rbtreehash_list.c: Likewise.
31594         * lib/gl_rbtreehash_list.h: Likewise.
31595         * lib/gl_sublist.c: Likewise.
31596         * lib/gl_sublist.h: Likewise.
31597         * lib/group-member.c: Likewise.
31598         * lib/group-member.h: Likewise.
31599         * lib/hard-locale.c: Likewise.
31600         * lib/hard-locale.h: Likewise.
31601         * lib/hash-pjw.c: Likewise.
31602         * lib/hash-pjw.h: Likewise.
31603         * lib/hash-triple.c: Likewise.
31604         * lib/hash.c: Likewise.
31605         * lib/hash.h: Likewise.
31606         * lib/human.c: Likewise.
31607         * lib/human.h: Likewise.
31608         * lib/i-ring.c: Likewise.
31609         * lib/i-ring.h: Likewise.
31610         * lib/idcache.c: Likewise.
31611         * lib/imaxabs.c: Likewise.
31612         * lib/imaxdiv.c: Likewise.
31613         * lib/inet_pton.c: Likewise.
31614         * lib/inet_pton.h: Likewise.
31615         * lib/intprops.h: Likewise.
31616         * lib/inttostr.c: Likewise.
31617         * lib/inttostr.h: Likewise.
31618         * lib/inttypes.in.h: Likewise.
31619         * lib/isapipe.c: Likewise.
31620         * lib/isdir.c: Likewise.
31621         * lib/isnan.c: Likewise.
31622         * lib/isnan.h: Likewise.
31623         * lib/isnanf.c: Likewise.
31624         * lib/isnanf.h: Likewise.
31625         * lib/isnanl-nolibm.h: Likewise.
31626         * lib/isnanl.c: Likewise.
31627         * lib/isnanl.h: Likewise.
31628         * lib/javacomp.c: Likewise.
31629         * lib/javacomp.h: Likewise.
31630         * lib/javaexec.c: Likewise.
31631         * lib/javaexec.h: Likewise.
31632         * lib/javaversion.c: Likewise.
31633         * lib/javaversion.h: Likewise.
31634         * lib/javaversion.java: Likewise.
31635         * lib/lbrkprop.h: Likewise.
31636         * lib/lchmod.h: Likewise.
31637         * lib/lchown.c: Likewise.
31638         * lib/ldexpl.c: Likewise.
31639         * lib/linebreak.c: Likewise.
31640         * lib/linebreak.h: Likewise.
31641         * lib/linebuffer.c: Likewise.
31642         * lib/linebuffer.h: Likewise.
31643         * lib/locale.in.h: Likewise.
31644         * lib/logl.c: Likewise.
31645         * lib/long-options.c: Likewise.
31646         * lib/long-options.h: Likewise.
31647         * lib/lstat.c: Likewise.
31648         * lib/lstat.h: Likewise.
31649         * lib/math.in.h: Likewise.
31650         * lib/mbchar.c: Likewise.
31651         * lib/mbchar.h: Likewise.
31652         * lib/mbfile.h: Likewise.
31653         * lib/mbiter.h: Likewise.
31654         * lib/mbscasecmp.c: Likewise.
31655         * lib/mbscasestr.c: Likewise.
31656         * lib/mbschr.c: Likewise.
31657         * lib/mbscspn.c: Likewise.
31658         * lib/mbslen.c: Likewise.
31659         * lib/mbsncasecmp.c: Likewise.
31660         * lib/mbsnlen.c: Likewise.
31661         * lib/mbspbrk.c: Likewise.
31662         * lib/mbspcasecmp.c: Likewise.
31663         * lib/mbsrchr.c: Likewise.
31664         * lib/mbssep.c: Likewise.
31665         * lib/mbsspn.c: Likewise.
31666         * lib/mbsstr.c: Likewise.
31667         * lib/mbstok_r.c: Likewise.
31668         * lib/mbswidth.c: Likewise.
31669         * lib/mbswidth.h: Likewise.
31670         * lib/mbuiter.h: Likewise.
31671         * lib/memcasecmp.c: Likewise.
31672         * lib/memcasecmp.h: Likewise.
31673         * lib/memchr.c: Likewise.
31674         * lib/memcmp.c: Likewise.
31675         * lib/memcoll.c: Likewise.
31676         * lib/memcoll.h: Likewise.
31677         * lib/memcpy.c: Likewise.
31678         * lib/memrchr.c: Likewise.
31679         * lib/mkancesdirs.c: Likewise.
31680         * lib/mkdir-p.c: Likewise.
31681         * lib/mkdir-p.h: Likewise.
31682         * lib/mkdir.c: Likewise.
31683         * lib/mkdirat.c: Likewise.
31684         * lib/mkdtemp.c: Likewise.
31685         * lib/mkstemp-safer.c: Likewise.
31686         * lib/mkstemp.c: Likewise.
31687         * lib/modechange.c: Likewise.
31688         * lib/modechange.h: Likewise.
31689         * lib/mountlist.c: Likewise.
31690         * lib/mountlist.h: Likewise.
31691         * lib/mpsort.c: Likewise.
31692         * lib/nanosleep.c: Likewise.
31693         * lib/obstack.c: Likewise.
31694         * lib/obstack.h: Likewise.
31695         * lib/open-safer.c: Likewise.
31696         * lib/open.c: Likewise.
31697         * lib/openat-die.c: Likewise.
31698         * lib/openat-priv.h: Likewise.
31699         * lib/openat-proc.c: Likewise.
31700         * lib/openat.c: Likewise.
31701         * lib/openat.h: Likewise.
31702         * lib/pagealign_alloc.c: Likewise.
31703         * lib/pagealign_alloc.h: Likewise.
31704         * lib/physmem.c: Likewise.
31705         * lib/physmem.h: Likewise.
31706         * lib/pipe-safer.c: Likewise.
31707         * lib/pipe.c: Likewise.
31708         * lib/pipe.h: Likewise.
31709         * lib/posixtm.c: Likewise.
31710         * lib/posixtm.h: Likewise.
31711         * lib/posixver.c: Likewise.
31712         * lib/printf-frexp.c: Likewise.
31713         * lib/printf-frexp.h: Likewise.
31714         * lib/printf-frexpl.c: Likewise.
31715         * lib/printf-frexpl.h: Likewise.
31716         * lib/printf.c: Likewise.
31717         * lib/progname.c: Likewise.
31718         * lib/progname.h: Likewise.
31719         * lib/progreloc.c: Likewise.
31720         * lib/putenv.c: Likewise.
31721         * lib/quote.c: Likewise.
31722         * lib/quote.h: Likewise.
31723         * lib/quotearg.c: Likewise.
31724         * lib/quotearg.h: Likewise.
31725         * lib/raise.c: Likewise.
31726         * lib/readline.c: Likewise.
31727         * lib/readline.h: Likewise.
31728         * lib/readlink.c: Likewise.
31729         * lib/readtokens.c: Likewise.
31730         * lib/readtokens.h: Likewise.
31731         * lib/readtokens0.c: Likewise.
31732         * lib/readtokens0.h: Likewise.
31733         * lib/readutmp.c: Likewise.
31734         * lib/readutmp.h: Likewise.
31735         * lib/realloc.c: Likewise.
31736         * lib/relocwrapper.c: Likewise.
31737         * lib/rename-dest-slash.c: Likewise.
31738         * lib/rename.c: Likewise.
31739         * lib/rmdir.c: Likewise.
31740         * lib/rpmatch.c: Likewise.
31741         * lib/safe-read.c: Likewise.
31742         * lib/safe-read.h: Likewise.
31743         * lib/safe-write.c: Likewise.
31744         * lib/safe-write.h: Likewise.
31745         * lib/same-inode.h: Likewise.
31746         * lib/same.c: Likewise.
31747         * lib/same.h: Likewise.
31748         * lib/save-cwd.c: Likewise.
31749         * lib/save-cwd.h: Likewise.
31750         * lib/savedir.c: Likewise.
31751         * lib/savedir.h: Likewise.
31752         * lib/savewd.c: Likewise.
31753         * lib/savewd.h: Likewise.
31754         * lib/search.in.h: Likewise.
31755         * lib/setenv.c: Likewise.
31756         * lib/setenv.h: Likewise.
31757         * lib/settime.c: Likewise.
31758         * lib/sh-quote.c: Likewise.
31759         * lib/sh-quote.h: Likewise.
31760         * lib/sig2str.c: Likewise.
31761         * lib/sig2str.h: Likewise.
31762         * lib/signal.in.h: Likewise.
31763         * lib/signbitd.c: Likewise.
31764         * lib/signbitf.c: Likewise.
31765         * lib/signbitl.c: Likewise.
31766         * lib/sigprocmask.c: Likewise.
31767         * lib/sincosl.c: Likewise.
31768         * lib/sleep.c: Likewise.
31769         * lib/sprintf.c: Likewise.
31770         * lib/sqrtl.c: Likewise.
31771         * lib/stat-time.h: Likewise.
31772         * lib/stdio--.h: Likewise.
31773         * lib/stdio-safer.h: Likewise.
31774         * lib/stdlib--.h: Likewise.
31775         * lib/stdlib-safer.h: Likewise.
31776         * lib/stdlib.in.h: Likewise.
31777         * lib/stpcpy.c: Likewise.
31778         * lib/stpncpy.c: Likewise.
31779         * lib/strchrnul.c: Likewise.
31780         * lib/strcspn.c: Likewise.
31781         * lib/strerror.c: Likewise.
31782         * lib/strftime.c: Likewise.
31783         * lib/strftime.h: Likewise.
31784         * lib/striconveh.c: Likewise.
31785         * lib/striconveh.h: Likewise.
31786         * lib/striconveha.c: Likewise.
31787         * lib/striconveha.h: Likewise.
31788         * lib/stripslash.c: Likewise.
31789         * lib/strnlen1.c: Likewise.
31790         * lib/strnlen1.h: Likewise.
31791         * lib/strtod.c: Likewise.
31792         * lib/strtoimax.c: Likewise.
31793         * lib/strtok_r.c: Likewise.
31794         * lib/strtol.c: Likewise.
31795         * lib/strtoll.c: Likewise.
31796         * lib/strtoul.c: Likewise.
31797         * lib/strtoull.c: Likewise.
31798         * lib/sysexits.in.h: Likewise.
31799         * lib/tempname.c: Likewise.
31800         * lib/tempname.h: Likewise.
31801         * lib/timespec.h: Likewise.
31802         * lib/tls.c: Likewise.
31803         * lib/tls.h: Likewise.
31804         * lib/tmpdir.c: Likewise.
31805         * lib/tmpdir.h: Likewise.
31806         * lib/tmpfile-safer.c: Likewise.
31807         * lib/tmpfile.c: Likewise.
31808         * lib/trigl.c: Likewise.
31809         * lib/trigl.h: Likewise.
31810         * lib/trim.c: Likewise.
31811         * lib/trim.h: Likewise.
31812         * lib/trunc.c: Likewise.
31813         * lib/truncf.c: Likewise.
31814         * lib/truncl.c: Likewise.
31815         * lib/tsearch.c: Likewise.
31816         * lib/unicodeio.c: Likewise.
31817         * lib/unicodeio.h: Likewise.
31818         * lib/unistd--.h: Likewise.
31819         * lib/unistd-safer.h: Likewise.
31820         * lib/unistdio/ulc-fprintf.c: Likewise.
31821         * lib/unistdio/ulc-vfprintf.c: Likewise.
31822         * lib/unlinkdir.c: Likewise.
31823         * lib/unlinkdir.h: Likewise.
31824         * lib/unlocked-io.h: Likewise.
31825         * lib/unsetenv.c: Likewise.
31826         * lib/userspec.c: Likewise.
31827         * lib/utime.c: Likewise.
31828         * lib/utimecmp.c: Likewise.
31829         * lib/utimecmp.h: Likewise.
31830         * lib/utimens.c: Likewise.
31831         * lib/verify.h: Likewise.
31832         * lib/verror.c: Likewise.
31833         * lib/verror.h: Likewise.
31834         * lib/version-etc-fsf.c: Likewise.
31835         * lib/version-etc.c: Likewise.
31836         * lib/version-etc.h: Likewise.
31837         * lib/vfprintf.c: Likewise.
31838         * lib/vprintf.c: Likewise.
31839         * lib/vsprintf.c: Likewise.
31840         * lib/w32spawn.h: Likewise.
31841         * lib/wait-process.c: Likewise.
31842         * lib/wait-process.h: Likewise.
31843         * lib/wcwidth.c: Likewise.
31844         * lib/write-any-file.c: Likewise.
31845         * lib/xalloc-die.c: Likewise.
31846         * lib/xalloc.h: Likewise.
31847         * lib/xasprintf.c: Likewise.
31848         * lib/xgetcwd.c: Likewise.
31849         * lib/xgetcwd.h: Likewise.
31850         * lib/xgetdomainname.c: Likewise.
31851         * lib/xgetdomainname.h: Likewise.
31852         * lib/xgethostname.c: Likewise.
31853         * lib/xmalloc.c: Likewise.
31854         * lib/xmalloca.c: Likewise.
31855         * lib/xmalloca.h: Likewise.
31856         * lib/xmemcoll.c: Likewise.
31857         * lib/xnanosleep.c: Likewise.
31858         * lib/xreadlink.c: Likewise.
31859         * lib/xreadlink.h: Likewise.
31860         * lib/xsetenv.c: Likewise.
31861         * lib/xsetenv.h: Likewise.
31862         * lib/xstriconv.c: Likewise.
31863         * lib/xstriconv.h: Likewise.
31864         * lib/xstrndup.c: Likewise.
31865         * lib/xstrndup.h: Likewise.
31866         * lib/xstrtod.c: Likewise.
31867         * lib/xstrtod.h: Likewise.
31868         * lib/xstrtol-error.c: Likewise.
31869         * lib/xstrtol.c: Likewise.
31870         * lib/xstrtol.h: Likewise.
31871         * lib/xtime.h: Likewise.
31872         * lib/xvasprintf.c: Likewise.
31873         * lib/xvasprintf.h: Likewise.
31874         * lib/yesno.c: Likewise.
31875         * lib/yesno.h: Likewise.
31876         * posix-modules: Likewise.
31877         * tests/test-alloca-opt.c: Likewise.
31878         * tests/test-arcfour.c: Likewise.
31879         * tests/test-arctwo.c: Likewise.
31880         * tests/test-argmatch.c: Likewise.
31881         * tests/test-argp-2.sh: Likewise.
31882         * tests/test-argp.c: Likewise.
31883         * tests/test-arpa_inet.c: Likewise.
31884         * tests/test-array_list.c: Likewise.
31885         * tests/test-array_oset.c: Likewise.
31886         * tests/test-atexit.c: Likewise.
31887         * tests/test-avltree_list.c: Likewise.
31888         * tests/test-avltree_oset.c: Likewise.
31889         * tests/test-avltreehash_list.c: Likewise.
31890         * tests/test-base64.c: Likewise.
31891         * tests/test-binary-io.c: Likewise.
31892         * tests/test-byteswap.c: Likewise.
31893         * tests/test-c-ctype.c: Likewise.
31894         * tests/test-c-strcasecmp.c: Likewise.
31895         * tests/test-c-strcasestr.c: Likewise.
31896         * tests/test-c-strncasecmp.c: Likewise.
31897         * tests/test-c-strstr.c: Likewise.
31898         * tests/test-canonicalize-lgpl.c: Likewise.
31899         * tests/test-canonicalize.c: Likewise.
31900         * tests/test-carray_list.c: Likewise.
31901         * tests/test-ceilf.c: Likewise.
31902         * tests/test-ceill.c: Likewise.
31903         * tests/test-count-one-bits.c: Likewise.
31904         * tests/test-crc.c: Likewise.
31905         * tests/test-dirname.c: Likewise.
31906         * tests/test-fbufmode.c: Likewise.
31907         * tests/test-fcntl.c: Likewise.
31908         * tests/test-fflush.c: Likewise.
31909         * tests/test-floorf.c: Likewise.
31910         * tests/test-floorl.c: Likewise.
31911         * tests/test-fopen.c: Likewise.
31912         * tests/test-fprintf-posix.c: Likewise.
31913         * tests/test-fprintf-posix.h: Likewise.
31914         * tests/test-fpurge.c: Likewise.
31915         * tests/test-freadable.c: Likewise.
31916         * tests/test-freadahead.c: Likewise.
31917         * tests/test-freading.c: Likewise.
31918         * tests/test-freopen.c: Likewise.
31919         * tests/test-frexp.c: Likewise.
31920         * tests/test-frexpl.c: Likewise.
31921         * tests/test-fseek.c: Likewise.
31922         * tests/test-fseeko.c: Likewise.
31923         * tests/test-fseterr.c: Likewise.
31924         * tests/test-fstrcmp.c: Likewise.
31925         * tests/test-ftell.c: Likewise.
31926         * tests/test-ftello.c: Likewise.
31927         * tests/test-fwritable.c: Likewise.
31928         * tests/test-fwriting.c: Likewise.
31929         * tests/test-getaddrinfo.c: Likewise.
31930         * tests/test-getpass.c: Likewise.
31931         * tests/test-gettimeofday.c: Likewise.
31932         * tests/test-hmac-md5.c: Likewise.
31933         * tests/test-hmac-sha1.c: Likewise.
31934         * tests/test-iconv.c: Likewise.
31935         * tests/test-iconvme.c: Likewise.
31936         * tests/test-inttypes.c: Likewise.
31937         * tests/test-isnan.c: Likewise.
31938         * tests/test-isnanf.c: Likewise.
31939         * tests/test-isnanl-nolibm.c: Likewise.
31940         * tests/test-isnanl.c: Likewise.
31941         * tests/test-isnanl.h: Likewise.
31942         * tests/test-ldexpl.c: Likewise.
31943         * tests/test-linked_list.c: Likewise.
31944         * tests/test-linkedhash_list.c: Likewise.
31945         * tests/test-locale.c: Likewise.
31946         * tests/test-localename.c: Likewise.
31947         * tests/test-lock.c: Likewise.
31948         * tests/test-lseek.c: Likewise.
31949         * tests/test-malloca.c: Likewise.
31950         * tests/test-math.c: Likewise.
31951         * tests/test-mbscasecmp.c: Likewise.
31952         * tests/test-mbscasestr1.c: Likewise.
31953         * tests/test-mbscasestr2.c: Likewise.
31954         * tests/test-mbscasestr3.c: Likewise.
31955         * tests/test-mbscasestr4.c: Likewise.
31956         * tests/test-mbschr.c: Likewise.
31957         * tests/test-mbscspn.c: Likewise.
31958         * tests/test-mbsncasecmp.c: Likewise.
31959         * tests/test-mbspbrk.c: Likewise.
31960         * tests/test-mbspcasecmp.c: Likewise.
31961         * tests/test-mbsrchr.c: Likewise.
31962         * tests/test-mbsspn.c: Likewise.
31963         * tests/test-mbsstr1.c: Likewise.
31964         * tests/test-mbsstr2.c: Likewise.
31965         * tests/test-mbsstr3.c: Likewise.
31966         * tests/test-md5.c: Likewise.
31967         * tests/test-memmem.c: Likewise.
31968         * tests/test-netinet_in.c: Likewise.
31969         * tests/test-open.c: Likewise.
31970         * tests/test-printf-frexp.c: Likewise.
31971         * tests/test-printf-frexpl.c: Likewise.
31972         * tests/test-printf-posix.c: Likewise.
31973         * tests/test-printf-posix.h: Likewise.
31974         * tests/test-rbtree_list.c: Likewise.
31975         * tests/test-rbtree_oset.c: Likewise.
31976         * tests/test-rbtreehash_list.c: Likewise.
31977         * tests/test-read-file.c: Likewise.
31978         * tests/test-rijndael.c: Likewise.
31979         * tests/test-search.c: Likewise.
31980         * tests/test-signbit.c: Likewise.
31981         * tests/test-sleep.c: Likewise.
31982         * tests/test-snprintf-posix.c: Likewise.
31983         * tests/test-snprintf-posix.h: Likewise.
31984         * tests/test-snprintf.c: Likewise.
31985         * tests/test-sprintf-posix.c: Likewise.
31986         * tests/test-sprintf-posix.h: Likewise.
31987         * tests/test-stat-time.c: Likewise.
31988         * tests/test-stdbool.c: Likewise.
31989         * tests/test-stdint.c: Likewise.
31990         * tests/test-stdio.c: Likewise.
31991         * tests/test-stdlib.c: Likewise.
31992         * tests/test-stpncpy.c: Likewise.
31993         * tests/test-strcasestr.c: Likewise.
31994         * tests/test-striconv.c: Likewise.
31995         * tests/test-striconveh.c: Likewise.
31996         * tests/test-striconveha.c: Likewise.
31997         * tests/test-string.c: Likewise.
31998         * tests/test-sys_select.c: Likewise.
31999         * tests/test-sys_socket.c: Likewise.
32000         * tests/test-sys_stat.c: Likewise.
32001         * tests/test-sys_time.c: Likewise.
32002         * tests/test-sysexits.c: Likewise.
32003         * tests/test-time.c: Likewise.
32004         * tests/test-tls.c: Likewise.
32005         * tests/test-trunc.c: Likewise.
32006         * tests/test-truncf.c: Likewise.
32007         * tests/test-truncl.c: Likewise.
32008         * tests/test-unistd.c: Likewise.
32009         * tests/test-vasnprintf-posix.c: Likewise.
32010         * tests/test-vasnprintf-posix2.c: Likewise.
32011         * tests/test-vasnprintf.c: Likewise.
32012         * tests/test-vasprintf-posix.c: Likewise.
32013         * tests/test-vasprintf.c: Likewise.
32014         * tests/test-verify.c: Likewise.
32015         * tests/test-vfprintf-posix.c: Likewise.
32016         * tests/test-vprintf-posix.c: Likewise.
32017         * tests/test-vsnprintf-posix.c: Likewise.
32018         * tests/test-vsnprintf.c: Likewise.
32019         * tests/test-vsprintf-posix.c: Likewise.
32020         * tests/test-wchar.c: Likewise.
32021         * tests/test-wctype.c: Likewise.
32022         * tests/test-wcwidth.c: Likewise.
32023         * tests/test-xstrtol.c: Likewise.
32024         * tests/test-xvasprintf.c: Likewise.
32025         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32026         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32027         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32028         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32029         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32030         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32031         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32032         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32033         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32034         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32035         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32036         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32037         * tests/uniname/test-uninames.c: Likewise.
32038         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32039         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
32040         * tests/unistdio/test-u16-printf1.h: Likewise.
32041         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32042         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32043         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32044         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32045         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32046         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32047         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32048         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
32049         * tests/unistdio/test-u32-printf1.h: Likewise.
32050         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32051         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32052         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32053         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32054         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32055         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32056         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32057         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
32058         * tests/unistdio/test-u8-printf1.h: Likewise.
32059         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32060         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32061         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32062         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32063         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32064         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32065         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32066         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
32067         * tests/unistdio/test-ulc-printf1.h: Likewise.
32068         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32069         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32070         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32071         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32072         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32073         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32074         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32075         * tests/uniwidth/test-u16-width.c: Likewise.
32076         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32077         * tests/uniwidth/test-u32-width.c: Likewise.
32078         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32079         * tests/uniwidth/test-u8-width.c: Likewise.
32080         * tests/uniwidth/test-uc_width.c: Likewise.
32081         * config/srclist-update: Likewise.
32082         (fixlicense): Update to GPLv3+.
32083
32084         Change copyright notice from LGPLv2.1+ to LGPLv3+.
32085         * tests/test-tsearch.c: Change copyright notice.
32086
32087         Change copyright notice from LGPLv2.0+ to LGPLv3+.
32088         * lib/c-strcaseeq.h: Change copyright notice.
32089         * lib/streq.h: Likewise.
32090         * lib/uniconv.h: Likewise.
32091         * lib/uniconv/u-conv-from-enc.h: Likewise.
32092         * lib/uniconv/u-conv-to-enc.h: Likewise.
32093         * lib/uniconv/u-strconv-from-enc.h: Likewise.
32094         * lib/uniconv/u-strconv-to-enc.h: Likewise.
32095         * lib/uniconv/u16-conv-from-enc.c: Likewise.
32096         * lib/uniconv/u16-conv-to-enc.c: Likewise.
32097         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
32098         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
32099         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
32100         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
32101         * lib/uniconv/u32-conv-from-enc.c: Likewise.
32102         * lib/uniconv/u32-conv-to-enc.c: Likewise.
32103         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
32104         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
32105         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
32106         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
32107         * lib/uniconv/u8-conv-from-enc.c: Likewise.
32108         * lib/uniconv/u8-conv-to-enc.c: Likewise.
32109         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
32110         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
32111         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
32112         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
32113         * lib/uniname.h: Likewise.
32114         * lib/uniname/uniname.c: Likewise.
32115         * lib/unistdio.h: Likewise.
32116         * lib/unistdio/u-asnprintf.h: Likewise.
32117         * lib/unistdio/u-asprintf.h: Likewise.
32118         * lib/unistdio/u-printf-args.c: Likewise.
32119         * lib/unistdio/u-printf-args.h: Likewise.
32120         * lib/unistdio/u-printf-parse.h: Likewise.
32121         * lib/unistdio/u-snprintf.h: Likewise.
32122         * lib/unistdio/u-sprintf.h: Likewise.
32123         * lib/unistdio/u-vasprintf.h: Likewise.
32124         * lib/unistdio/u-vsnprintf.h: Likewise.
32125         * lib/unistdio/u-vsprintf.h: Likewise.
32126         * lib/unistdio/u16-asnprintf.c: Likewise.
32127         * lib/unistdio/u16-asprintf.c: Likewise.
32128         * lib/unistdio/u16-printf-parse.c: Likewise.
32129         * lib/unistdio/u16-snprintf.c: Likewise.
32130         * lib/unistdio/u16-sprintf.c: Likewise.
32131         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
32132         * lib/unistdio/u16-u16-asprintf.c: Likewise.
32133         * lib/unistdio/u16-u16-snprintf.c: Likewise.
32134         * lib/unistdio/u16-u16-sprintf.c: Likewise.
32135         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
32136         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
32137         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
32138         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
32139         * lib/unistdio/u16-vasnprintf.c: Likewise.
32140         * lib/unistdio/u16-vasprintf.c: Likewise.
32141         * lib/unistdio/u16-vsnprintf.c: Likewise.
32142         * lib/unistdio/u16-vsprintf.c: Likewise.
32143         * lib/unistdio/u32-asnprintf.c: Likewise.
32144         * lib/unistdio/u32-asprintf.c: Likewise.
32145         * lib/unistdio/u32-printf-parse.c: Likewise.
32146         * lib/unistdio/u32-snprintf.c: Likewise.
32147         * lib/unistdio/u32-sprintf.c: Likewise.
32148         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
32149         * lib/unistdio/u32-u32-asprintf.c: Likewise.
32150         * lib/unistdio/u32-u32-snprintf.c: Likewise.
32151         * lib/unistdio/u32-u32-sprintf.c: Likewise.
32152         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
32153         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
32154         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
32155         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
32156         * lib/unistdio/u32-vasnprintf.c: Likewise.
32157         * lib/unistdio/u32-vasprintf.c: Likewise.
32158         * lib/unistdio/u32-vsnprintf.c: Likewise.
32159         * lib/unistdio/u32-vsprintf.c: Likewise.
32160         * lib/unistdio/u8-asnprintf.c: Likewise.
32161         * lib/unistdio/u8-asprintf.c: Likewise.
32162         * lib/unistdio/u8-printf-parse.c: Likewise.
32163         * lib/unistdio/u8-snprintf.c: Likewise.
32164         * lib/unistdio/u8-sprintf.c: Likewise.
32165         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
32166         * lib/unistdio/u8-u8-asprintf.c: Likewise.
32167         * lib/unistdio/u8-u8-snprintf.c: Likewise.
32168         * lib/unistdio/u8-u8-sprintf.c: Likewise.
32169         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
32170         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
32171         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
32172         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
32173         * lib/unistdio/u8-vasnprintf.c: Likewise.
32174         * lib/unistdio/u8-vasprintf.c: Likewise.
32175         * lib/unistdio/u8-vsnprintf.c: Likewise.
32176         * lib/unistdio/u8-vsprintf.c: Likewise.
32177         * lib/unistdio/ulc-asnprintf.c: Likewise.
32178         * lib/unistdio/ulc-asprintf.c: Likewise.
32179         * lib/unistdio/ulc-printf-parse.c: Likewise.
32180         * lib/unistdio/ulc-snprintf.c: Likewise.
32181         * lib/unistdio/ulc-sprintf.c: Likewise.
32182         * lib/unistdio/ulc-vasnprintf.c: Likewise.
32183         * lib/unistdio/ulc-vasprintf.c: Likewise.
32184         * lib/unistdio/ulc-vsnprintf.c: Likewise.
32185         * lib/unistdio/ulc-vsprintf.c: Likewise.
32186         * lib/unistr.h: Likewise.
32187         * lib/unistr/u-cpy-alloc.h: Likewise.
32188         * lib/unistr/u-cpy.h: Likewise.
32189         * lib/unistr/u-endswith.h: Likewise.
32190         * lib/unistr/u-move.h: Likewise.
32191         * lib/unistr/u-set.h: Likewise.
32192         * lib/unistr/u-startswith.h: Likewise.
32193         * lib/unistr/u-stpcpy.h: Likewise.
32194         * lib/unistr/u-stpncpy.h: Likewise.
32195         * lib/unistr/u-strcat.h: Likewise.
32196         * lib/unistr/u-strcpy.h: Likewise.
32197         * lib/unistr/u-strcspn.h: Likewise.
32198         * lib/unistr/u-strdup.h: Likewise.
32199         * lib/unistr/u-strlen.h: Likewise.
32200         * lib/unistr/u-strncat.h: Likewise.
32201         * lib/unistr/u-strncpy.h: Likewise.
32202         * lib/unistr/u-strnlen.h: Likewise.
32203         * lib/unistr/u-strpbrk.h: Likewise.
32204         * lib/unistr/u-strspn.h: Likewise.
32205         * lib/unistr/u-strstr.h: Likewise.
32206         * lib/unistr/u-strtok.h: Likewise.
32207         * lib/unistr/u16-check.c: Likewise.
32208         * lib/unistr/u16-chr.c: Likewise.
32209         * lib/unistr/u16-cmp.c: Likewise.
32210         * lib/unistr/u16-cpy-alloc.c: Likewise.
32211         * lib/unistr/u16-cpy.c: Likewise.
32212         * lib/unistr/u16-endswith.c: Likewise.
32213         * lib/unistr/u16-mblen.c: Likewise.
32214         * lib/unistr/u16-mbsnlen.c: Likewise.
32215         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32216         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32217         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32218         * lib/unistr/u16-mbtouc.c: Likewise.
32219         * lib/unistr/u16-mbtoucr.c: Likewise.
32220         * lib/unistr/u16-move.c: Likewise.
32221         * lib/unistr/u16-next.c: Likewise.
32222         * lib/unistr/u16-prev.c: Likewise.
32223         * lib/unistr/u16-set.c: Likewise.
32224         * lib/unistr/u16-startswith.c: Likewise.
32225         * lib/unistr/u16-stpcpy.c: Likewise.
32226         * lib/unistr/u16-stpncpy.c: Likewise.
32227         * lib/unistr/u16-strcat.c: Likewise.
32228         * lib/unistr/u16-strchr.c: Likewise.
32229         * lib/unistr/u16-strcmp.c: Likewise.
32230         * lib/unistr/u16-strcpy.c: Likewise.
32231         * lib/unistr/u16-strcspn.c: Likewise.
32232         * lib/unistr/u16-strdup.c: Likewise.
32233         * lib/unistr/u16-strlen.c: Likewise.
32234         * lib/unistr/u16-strmblen.c: Likewise.
32235         * lib/unistr/u16-strmbtouc.c: Likewise.
32236         * lib/unistr/u16-strncat.c: Likewise.
32237         * lib/unistr/u16-strncmp.c: Likewise.
32238         * lib/unistr/u16-strncpy.c: Likewise.
32239         * lib/unistr/u16-strnlen.c: Likewise.
32240         * lib/unistr/u16-strpbrk.c: Likewise.
32241         * lib/unistr/u16-strrchr.c: Likewise.
32242         * lib/unistr/u16-strspn.c: Likewise.
32243         * lib/unistr/u16-strstr.c: Likewise.
32244         * lib/unistr/u16-strtok.c: Likewise.
32245         * lib/unistr/u16-to-u32.c: Likewise.
32246         * lib/unistr/u16-to-u8.c: Likewise.
32247         * lib/unistr/u16-uctomb-aux.c: Likewise.
32248         * lib/unistr/u16-uctomb.c: Likewise.
32249         * lib/unistr/u32-check.c: Likewise.
32250         * lib/unistr/u32-chr.c: Likewise.
32251         * lib/unistr/u32-cmp.c: Likewise.
32252         * lib/unistr/u32-cpy-alloc.c: Likewise.
32253         * lib/unistr/u32-cpy.c: Likewise.
32254         * lib/unistr/u32-endswith.c: Likewise.
32255         * lib/unistr/u32-mblen.c: Likewise.
32256         * lib/unistr/u32-mbsnlen.c: Likewise.
32257         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32258         * lib/unistr/u32-mbtouc.c: Likewise.
32259         * lib/unistr/u32-mbtoucr.c: Likewise.
32260         * lib/unistr/u32-move.c: Likewise.
32261         * lib/unistr/u32-next.c: Likewise.
32262         * lib/unistr/u32-prev.c: Likewise.
32263         * lib/unistr/u32-set.c: Likewise.
32264         * lib/unistr/u32-startswith.c: Likewise.
32265         * lib/unistr/u32-stpcpy.c: Likewise.
32266         * lib/unistr/u32-stpncpy.c: Likewise.
32267         * lib/unistr/u32-strcat.c: Likewise.
32268         * lib/unistr/u32-strchr.c: Likewise.
32269         * lib/unistr/u32-strcmp.c: Likewise.
32270         * lib/unistr/u32-strcpy.c: Likewise.
32271         * lib/unistr/u32-strcspn.c: Likewise.
32272         * lib/unistr/u32-strdup.c: Likewise.
32273         * lib/unistr/u32-strlen.c: Likewise.
32274         * lib/unistr/u32-strmblen.c: Likewise.
32275         * lib/unistr/u32-strmbtouc.c: Likewise.
32276         * lib/unistr/u32-strncat.c: Likewise.
32277         * lib/unistr/u32-strncmp.c: Likewise.
32278         * lib/unistr/u32-strncpy.c: Likewise.
32279         * lib/unistr/u32-strnlen.c: Likewise.
32280         * lib/unistr/u32-strpbrk.c: Likewise.
32281         * lib/unistr/u32-strrchr.c: Likewise.
32282         * lib/unistr/u32-strspn.c: Likewise.
32283         * lib/unistr/u32-strstr.c: Likewise.
32284         * lib/unistr/u32-strtok.c: Likewise.
32285         * lib/unistr/u32-to-u16.c: Likewise.
32286         * lib/unistr/u32-to-u8.c: Likewise.
32287         * lib/unistr/u32-uctomb.c: Likewise.
32288         * lib/unistr/u8-check.c: Likewise.
32289         * lib/unistr/u8-chr.c: Likewise.
32290         * lib/unistr/u8-cmp.c: Likewise.
32291         * lib/unistr/u8-cpy-alloc.c: Likewise.
32292         * lib/unistr/u8-cpy.c: Likewise.
32293         * lib/unistr/u8-endswith.c: Likewise.
32294         * lib/unistr/u8-mblen.c: Likewise.
32295         * lib/unistr/u8-mbsnlen.c: Likewise.
32296         * lib/unistr/u8-mbtouc-aux.c: Likewise.
32297         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32298         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32299         * lib/unistr/u8-mbtouc.c: Likewise.
32300         * lib/unistr/u8-mbtoucr.c: Likewise.
32301         * lib/unistr/u8-move.c: Likewise.
32302         * lib/unistr/u8-next.c: Likewise.
32303         * lib/unistr/u8-prev.c: Likewise.
32304         * lib/unistr/u8-set.c: Likewise.
32305         * lib/unistr/u8-startswith.c: Likewise.
32306         * lib/unistr/u8-stpcpy.c: Likewise.
32307         * lib/unistr/u8-stpncpy.c: Likewise.
32308         * lib/unistr/u8-strcat.c: Likewise.
32309         * lib/unistr/u8-strchr.c: Likewise.
32310         * lib/unistr/u8-strcmp.c: Likewise.
32311         * lib/unistr/u8-strcpy.c: Likewise.
32312         * lib/unistr/u8-strcspn.c: Likewise.
32313         * lib/unistr/u8-strdup.c: Likewise.
32314         * lib/unistr/u8-strlen.c: Likewise.
32315         * lib/unistr/u8-strmblen.c: Likewise.
32316         * lib/unistr/u8-strmbtouc.c: Likewise.
32317         * lib/unistr/u8-strncat.c: Likewise.
32318         * lib/unistr/u8-strncmp.c: Likewise.
32319         * lib/unistr/u8-strncpy.c: Likewise.
32320         * lib/unistr/u8-strnlen.c: Likewise.
32321         * lib/unistr/u8-strpbrk.c: Likewise.
32322         * lib/unistr/u8-strrchr.c: Likewise.
32323         * lib/unistr/u8-strspn.c: Likewise.
32324         * lib/unistr/u8-strstr.c: Likewise.
32325         * lib/unistr/u8-strtok.c: Likewise.
32326         * lib/unistr/u8-to-u16.c: Likewise.
32327         * lib/unistr/u8-to-u32.c: Likewise.
32328         * lib/unistr/u8-uctomb-aux.c: Likewise.
32329         * lib/unistr/u8-uctomb.c: Likewise.
32330         * lib/unitypes.h: Likewise.
32331         * lib/uniwidth.h: Likewise.
32332         * lib/uniwidth/cjk.h: Likewise.
32333         * lib/uniwidth/u16-strwidth.c: Likewise.
32334         * lib/uniwidth/u16-width.c: Likewise.
32335         * lib/uniwidth/u32-strwidth.c: Likewise.
32336         * lib/uniwidth/u32-width.c: Likewise.
32337         * lib/uniwidth/u8-strwidth.c: Likewise.
32338         * lib/uniwidth/u8-width.c: Likewise.
32339         * lib/uniwidth/width.c: Likewise.
32340
32341 2007-10-07  Bruno Haible  <bruno@clisp.org>
32342
32343         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32344         The file is still under LGPL (see modules/inttypes).
32345
32346 2007-10-06  Bruno Haible  <bruno@clisp.org>
32347
32348         * modules/trunc (Dependencies): Add 'extensions'.
32349         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32350         Reported by Ben Pfaff <blp@gnu.org>.
32351
32352 2007-10-06  Bruno Haible  <bruno@clisp.org>
32353
32354         * modules/freopen-tests: New file.
32355         * tests/test-freopen.c: New file.
32356
32357         * modules/fopen-tests: New file.
32358         * tests/test-fopen.c: New file.
32359
32360         * modules/fopen: New file.
32361         * lib/fopen.c: New file.
32362         * m4/fopen.m4: New file.
32363         * modules/freopen: New file.
32364         * lib/freopen.c: New file.
32365         * m4/freopen.m4: New file.
32366         * lib/stdio.in.h (fopen, freopen): New declarations.
32367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32368         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32369         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32370         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32371         * doc/functions/fopen.texi: Mention the 'fopen' module.
32372         * doc/functions/freopen.texi: Mention the 'freopen' module.
32373
32374 2007-10-06  Bruno Haible  <bruno@clisp.org>
32375
32376         * modules/open-tests: New file.
32377         * tests/test-open.c: New file.
32378
32379         * modules/open: New file.
32380         * lib/open.c: New file.
32381         * m4/open.m4: New file.
32382         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32383         lib/open.c does.
32384         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32385         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32386         macros.
32387         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32388         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32389         REPLACE_OPEN.
32390         * doc/functions/open.texi: Mention the 'open' module.
32391
32392 2007-10-04  Bruno Haible  <bruno@clisp.org>
32393
32394         * modules/ceill-tests: New file.
32395         * tests/test-ceill.c: New file.
32396
32397         * modules/ceill: New file.
32398         * lib/ceill.c: Replace entire file.
32399         * m4/ceill.m4: New file.
32400         * lib/math.in.h (ceill): Replace declaration.
32401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32402         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32403         * doc/functions/ceill.texi: Mention the 'ceill' module.
32404         * modules/mathl (Files): Remove lib/ceill.c.
32405         (Depends-on): Add ceill.
32406
32407 2007-10-04  Bruno Haible  <bruno@clisp.org>
32408
32409         * modules/ceilf-tests: New file.
32410         * tests/test-ceilf.c: New file.
32411
32412         * modules/ceilf: New file.
32413         * lib/ceil.c: New file.
32414         * lib/ceilf.c: New file.
32415         * m4/ceilf.m4: New file.
32416         * lib/math.in.h (ceilf): New declaration.
32417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32418         HAVE_DECL_CEILF.
32419         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32420         HAVE_DECL_CEILF.
32421         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32422
32423 2007-10-04  Bruno Haible  <bruno@clisp.org>
32424
32425         * modules/floorl-tests: New file.
32426         * tests/test-floorl.c: New file.
32427
32428         * modules/floorl: New file.
32429         * lib/floorl.c: Replace entire file.
32430         * m4/floorl.m4: New file.
32431         * lib/math.in.h (floorl): Replace declaration.
32432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32433         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32434         * doc/functions/floorl.texi: Mention the 'floorl' module.
32435         * modules/mathl (Files): Remove lib/floorl.c.
32436         (Depends-on): Add floorl.
32437
32438 2007-10-04  Bruno Haible  <bruno@clisp.org>
32439
32440         * modules/floorf-tests: New file.
32441         * tests/test-floorf.c: New file.
32442
32443         * modules/floorf: New file.
32444         * lib/floor.c: New file.
32445         * lib/floorf.c: New file.
32446         * m4/floorf.m4: New file.
32447         * lib/math.in.h (floorf): New declaration.
32448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32449         HAVE_DECL_FLOORF.
32450         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32451         HAVE_DECL_FLOORF.
32452         * doc/functions/floorf.texi: Mention the 'floorf' module.
32453
32454 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32455             Bruno Haible  <bruno@clisp.org>
32456
32457         Advertise for the Git server instead of the CVS server.
32458         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32459         repository instead of the CVS one.
32460         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32461         about all VCS systems generically.
32462         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32463
32464 2007-10-04  Bruno Haible  <bruno@clisp.org>
32465
32466         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32467         means.
32468         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32469
32470 2007-10-04  Bruno Haible  <bruno@clisp.org>
32471
32472         * modules/truncl-tests: New file.
32473         * tests/test-truncl.c: New file.
32474
32475         * modules/truncl: New file.
32476         * lib/truncl.c: New file.
32477         * m4/truncl.m4: New file.
32478         * lib/math.in.h (truncl): New declaration.
32479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32480         HAVE_DECL_TRUNCL.
32481         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32482         HAVE_DECL_TRUNCL.
32483         * doc/functions/truncl.texi: Mention the 'truncl' module.
32484
32485 2007-10-04  Bruno Haible  <bruno@clisp.org>
32486
32487         * modules/truncf-tests: New file.
32488         * tests/test-truncf.c: New file.
32489
32490         * modules/truncf: New file.
32491         * lib/trunc.c: Make paramerizable through USE_* macros.
32492         * lib/truncf.c: New file.
32493         * m4/truncf.m4: New file.
32494         * lib/math.in.h (truncf): New declaration.
32495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32496         HAVE_DECL_TRUNCF.
32497         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32498         HAVE_DECL_TRUNCF.
32499         * doc/functions/truncf.texi: Mention the 'truncf' module.
32500
32501 2007-10-03  Bruno Haible  <bruno@clisp.org>
32502
32503         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32504         augmentation also for tests modules.
32505         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32506         * modules/atexit-tests (Makefile.am): Likewise.
32507         * modules/binary-io-tests (Makefile.am): Likewise.
32508         * modules/c-strcase-tests (Makefile.am): Likewise.
32509         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32510         * modules/canonicalize-tests (Makefile.am): Likewise.
32511         * modules/closein-tests (Makefile.am): Likewise.
32512         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32513         * modules/freadahead-tests (Makefile.am): Likewise.
32514         * modules/fseek-tests (Makefile.am): Likewise.
32515         * modules/fseeko-tests (Makefile.am): Likewise.
32516         * modules/ftell-tests (Makefile.am): Likewise.
32517         * modules/ftello-tests (Makefile.am): Likewise.
32518         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32519         * modules/isnanl-tests (Makefile.am): Likewise.
32520         * modules/lseek-tests (Makefile.am): Likewise.
32521         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32522         * modules/mbscasestr-tests (Makefile.am): Likewise.
32523         * modules/mbschr-tests (Makefile.am): Likewise.
32524         * modules/mbscspn-tests (Makefile.am): Likewise.
32525         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32526         * modules/mbspbrk-tests (Makefile.am): Likewise.
32527         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32528         * modules/mbsrchr-tests (Makefile.am): Likewise.
32529         * modules/mbsspn-tests (Makefile.am): Likewise.
32530         * modules/mbsstr-tests (Makefile.am): Likewise.
32531         * modules/printf-posix-tests (Makefile.am): Likewise.
32532         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32533         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32534         * modules/tsearch-tests (Makefile.am): Likewise.
32535         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32536         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32537         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32538         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32539         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32540         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32541         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32542         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32543         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32544         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32545         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32546         * modules/xstrtol-tests (Makefile.am): Likewise.
32547         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32548         * modules/yesno-tests (Makefile.am): Likewise.
32549
32550 2007-10-03  Bruno Haible  <bruno@clisp.org>
32551
32552         * modules/trunc-tests: New file.
32553         * tests/test-trunc.c: New file.
32554
32555         * modules/trunc: New file.
32556         * lib/trunc.c: New file.
32557         * m4/trunc.m4: New file.
32558         * lib/math.in.h (trunc): New declaration.
32559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32560         HAVE_DECL_TRUNC.
32561         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32562         HAVE_DECL_TRUNC.
32563         * doc/functions/trunc.texi: Mention the 'trunc' module.
32564
32565 2007-10-03  Bruno Haible  <bruno@clisp.org>
32566
32567         * tests/test-fpending.c: New file, mostly copied
32568         from coreutils/lib/t-fpending.c.
32569         * modules/fpending-tests: New file.
32570
32571 2007-10-03  Bruno Haible  <bruno@clisp.org>
32572
32573         Port the stdio extensions to QNX (untested).
32574         * lib/fseterr.c (fseterr): Add support for QNX.
32575         * lib/fbufmode.c (fbufmode): Likewise.
32576         * lib/freadable.c (freadable): Likewise.
32577         * lib/fwritable.c (fwritable): Likewise.
32578         * lib/freading.c (freading): Likewise.
32579         * lib/fwriting.c (fwriting): Likewise.
32580         * lib/freadahead.c (freadahed): Likewise.
32581         * lib/fpurge.c (fpurge): Likewise.
32582         * lib/fseeko.c (rpl_fseeko): Likewise.
32583
32584 2007-10-03  Bruno Haible  <bruno@clisp.org>
32585             Jim Meyering  <jim@meyering.net>
32586             Eric Blake  <ebb9@byu.net>
32587
32588         * doc/relocatable.texi: Use @command instead of @program.
32589
32590 2007-10-02  Jim Meyering  <jim@meyering.net>
32591
32592         Perform one more "_.h" -> ".in.h" substitution.
32593         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32594         instead of unistd_.h here, too.
32595
32596 2007-10-01  Bruno Haible  <bruno@clisp.org>
32597
32598         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32599         Needed for the alloca-opt module.
32600
32601 2007-09-30  Bruno Haible  <bruno@clisp.org>
32602
32603         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32604         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32605         alloca_.h.
32606         * lib/argz.in.h: Renamed from lib/argz_.h.
32607         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32608         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32609         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32610         byteswap_.h.
32611         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32612         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32613         dirent_.h.
32614         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32615         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32616         fcntl_.h.
32617         * lib/float.in.h: Renamed from lib/float_.h.
32618         * modules/float (Files, Makefile.am): Use float.in.h instead of
32619         float_.h.
32620         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32621         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32622         fnmatch_.h.
32623         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32624         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32625         getopt_.h.
32626         * lib/glob.in.h: Renamed from lib/glob_.h.
32627         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32628         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32629         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32630         iconv_.h.
32631         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32632         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32633         inttypes_.h.
32634         * lib/locale.in.h: Renamed from lib/locale_.h.
32635         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32636         locale_.h.
32637         * lib/math.in.h: Renamed from lib/math_.h.
32638         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32639         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32640         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32641         of netinet_in_.h. Add dependency.
32642         * lib/poll.in.h: Renamed from lib/poll_.h.
32643         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32644         * lib/search.in.h: Renamed from lib/search_.h.
32645         * modules/search (Files, Makefile.am): Use search.in.h instead of
32646         search_.h.
32647         * lib/signal.in.h: Renamed from lib/signal_.h.
32648         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32649         _signal.h.
32650         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32651         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32652         stdbool_.h.
32653         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32654         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32655         stdint_.h.
32656         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32657         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32658         stdio_.h.
32659         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32660         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32661         stdlib_.h.
32662         * lib/string.in.h: Renamed from lib/string_.h.
32663         * modules/string (Files, Makefile.am): Use string.in.h instead of
32664         string_.h.
32665         * doc/gnulib-tool.texi (Initial import): Update.
32666         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32667         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32668         of sys_select_.h. Add dependency.
32669         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32670         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32671         of sys_socket_.h.
32672         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32673         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32674         sys_stat_.h.
32675         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32676         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32677         sys_time_.h.
32678         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32679         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32680         sysexits_.h.
32681         * lib/time.in.h: Renamed from lib/time_.h.
32682         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32683         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32684         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32685         unistd_.h.
32686         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32687         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32688         wchar_.h.
32689         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32690         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32691         wctype_.h.
32692         * build-aux/bootstrap (slurp): Update.
32693         * lib/.cppi-disable: Update.
32694
32695 2007-09-30  Bruno Haible  <bruno@clisp.org>
32696
32697         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32698         Needed on BeOS.
32699
32700 2007-09-30  Bruno Haible  <bruno@clisp.org>
32701
32702         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32703
32704 2007-09-29  Bruno Haible  <bruno@clisp.org>
32705
32706         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32707
32708 2007-09-29  Bruno Haible  <bruno@clisp.org>
32709
32710         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32711         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32712         * build-aux/install-reloc: Compile also areadlink.c.
32713         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32714
32715 2007-09-29  Bruno Haible  <bruno@clisp.org>
32716
32717         * gnulib-tool (func_emit_initmacro_done): Indentation.
32718
32719 2007-09-29  Bruno Haible  <bruno@clisp.org>
32720
32721         * README: Add CVS checkout update instructions.
32722         Info from Bob Proulx <bob@proulx.com>.
32723
32724 2007-09-28  Eric Blake  <ebb9@byu.net>
32725
32726         Provide move-if-change.
32727         * build-aux/move-if-change: New file, based on best practice
32728         rather than any canonical upstream location.
32729
32730 2007-09-28  Jim Meyering  <jim@meyering.net>
32731
32732         Fix canonicalize loop-detection corner case.
32733         Do not attempt to stat the symlink values stored via seen_triple.
32734         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32735         on linux-2.6.18, (but not 2.6.22).
32736         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32737         triple_compare.  The former compares dev,ino,filename, while the latter
32738         would actually stat dirname(filename) when dev and ino were equal.
32739         * lib/hash-triple.c: Install <string.h>.
32740         (STREQ): Define.
32741         (triple_compare_ino_str): New function.
32742         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32743
32744 2007-09-28  Eric Blake  <ebb9@byu.net>
32745
32746         Enforce that AC_REPLACE_FUNCS files exist.
32747         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32748         override check for typos.
32749
32750         Fix test-closein on Solaris 10.
32751         * tests/test-closein.c (main): Don't assume stdin can be inherited
32752         closed on all systems.
32753         * tests/test-closein.sh: Likewise.
32754         Reported by Piotr Tarnowski.
32755
32756 2007-09-28  Jim Meyering  <jim@meyering.net>
32757
32758         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32759
32760 2007-09-27  Jim Meyering  <jim@meyering.net>
32761
32762         canonicalize: Avoid a false-positive cycle failure.
32763         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32764         Sort.  Remove cycle-check.
32765         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32766         not cycle-check.h.
32767         (seen_triple): New function.
32768         (canonicalize_filename_mode): Use it instead of cycle-check.
32769         * tests/test-canonicalize.c: Add a test for this bug.
32770         * tests/test-canonicalize.sh: Set up and run the test.
32771
32772         New module, file-set, from coreutils.
32773         * modules/file-set: Define it.
32774         * lib/file-set.c, lib/file-set.h: Implement.
32775
32776         New module, hash-triple, from coreutils.
32777         * modules/hash-triple: Define it.
32778         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32779
32780 2007-09-25  Eric Blake  <ebb9@byu.net>
32781
32782         Fix strerror on Interix.
32783         * lib/string_.h (strerror): Declare replacement.
32784         * doc/functions/strerror.texi (strerror): Document the Interix
32785         shortcoming.
32786         * modules/string (Makefile.am): Support new hooks.
32787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32788         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32789         gl_FUNC_STRERROR_SEPARATE.
32790         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32791         * lib/strerror.c (rpl_strerror): Provide replacement.
32792         * modules/strerror (Depends-on): Add string.
32793         (configure.ac): Detect use of module.
32794         * tests/test-strerror.c: New file.
32795         * modules/strerror-tests: New test module.
32796         * modules/argp (Depends-on): Add strerror.
32797         * modules/error (Depends-on): Likewise.
32798         Reported by Martin Koeppe.
32799
32800 2007-09-24  Bruno Haible  <bruno@clisp.org>
32801
32802         * README: Update git instructions.
32803
32804 2007-09-24  Eric Blake  <ebb9@byu.net>
32805
32806         Revert fpending breakage from 2007-09-08.
32807         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32808         __fpending.c.
32809
32810 2007-09-24  Jim Meyering  <jim@meyering.net>
32811
32812         filenamecat.c: Add a test.
32813         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32814         showing how the function works when DIR is the empty string.
32815
32816 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32817
32818         * tests/test-canonicalize.sh: Turn on executable bit.
32819
32820 2007-09-19  Eric Blake  <ebb9@byu.net>
32821
32822         * README: Update CVS instructions.
32823
32824 2007-09-18  Bruno Haible  <bruno@clisp.org>
32825
32826         * modules/areadlink: New file.
32827         * lib/areadlink.h (areadlink): New declaration.
32828         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32829
32830 2007-09-17  Jim Meyering  <jim@meyering.net>
32831
32832         * lib/savewd.c (ESTALE) [!defined]: Define.
32833         Reported to be required on Interix by Martin Koeppe.
32834
32835 2007-09-17  Bruno Haible  <bruno@clisp.org>
32836
32837         * gnulib-tool (func_version): Use $version.
32838
32839 2007-09-16  Bruno Haible  <bruno@clisp.org>
32840
32841         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32842         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32843         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32844         Reported by Greg Schafer <gschafer@zip.com.au>.
32845
32846 2007-09-15  Bruno Haible  <bruno@clisp.org>
32847
32848         * gnulib-tool (sed): Try a little harder to make bash understand the
32849         alias.
32850         Reported by Bruce Korb <bruce.korb@gmail.com>.
32851
32852 2007-09-13  Eric Blake  <ebb9@byu.net>
32853
32854         * ChangeLog: Remove conflict markers.
32855
32856 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32857
32858         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32859         Reported by Bruno Haible <bruno@clisp.org>.
32860
32861 2007-09-12  Bruno Haible  <bruno@clisp.org>
32862
32863         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32864         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32865         is not defined.
32866
32867 2007-09-12  Eric Blake  <ebb9@byu.net>
32868
32869         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32870         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32871         Autoconf definition.
32872         * modules/euidaccess (Depends-on): Add extensions, for
32873         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32874         * modules/fnmatch (Depends-on): Likewise.
32875         * modules/getaddrinfo (Depends-on): Likewise.
32876         * modules/getdelim (Depends-on): Likewise.
32877         * modules/getline (Depends-on): Likewise.
32878         * modules/getsubopt (Depends-on): Likewise.
32879         * modules/gettext (Depends-on): Likewise.
32880         * modules/group-member (Depends-on): Likewise.
32881         * modules/mbchar (Depends-on): Likewise.
32882         * modules/memmem (Depends-on): Likewise.
32883         * modules/mempcpy (Depends-on): Likewise.
32884         * modules/memrchr (Depends-on): Likewise.
32885         * modules/pagealign_alloc (Depends-on): Likewise.
32886         * modules/readutmp (Depends-on): Likewise.
32887         * modules/stpcpy (Depends-on): Likewise.
32888         * modules/stpncpy (Depends-on): Likewise.
32889         * modules/strchrnul (Depends-on): Likewise.
32890         * modules/strndup (Depends-on): Likewise.
32891         * modules/strsep (Depends-on): Likewise.
32892         * modules/strverscmp (Depends-on): Likewise.
32893         * modules/vasprintf (Depends-on): Likewise.
32894         * modules/wcwidth (Depends-on): Likewise.
32895         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32896         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32897         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32898         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32899         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32900         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32901         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32902         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32903         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32904         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32905         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32906         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32907         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32908         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32909         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32910         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32911         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32912         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32913         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32914         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32915         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32916         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32917         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32918         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32919         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32920         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32921         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32922         so that lock.m4 can be used in gettext without extensions module.
32923
32924 2007-09-11  Bruno Haible  <bruno@clisp.org>
32925
32926         * m4/isc-posix.m4: Remove file.
32927         Suggested by Eric Blake.
32928
32929 2007-09-11  Eric Blake  <ebb9@byu.net>
32930
32931         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32932
32933 2007-09-10  Bruno Haible  <bruno@clisp.org>
32934
32935         * posix-modules: Fix typo in error message.
32936         Reported by Matt <mkraai@beckman.com>.
32937
32938 2007-09-09  Bruno Haible  <bruno@clisp.org>
32939
32940         * doc/functions/getdelim.texi: Update list of platforms lacking the
32941         function.
32942         * doc/functions/getline.texi: Likewise.
32943
32944 2007-09-09  Jim Meyering  <jim@meyering.net>
32945
32946         * lib/hash.c (hash_initialize): Detect calloc failure.
32947         Reported by Bruno Haible.
32948
32949 2007-09-09  Bruno Haible  <bruno@clisp.org>
32950
32951         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32952         malloc or realloc fails.
32953
32954 2007-09-09  Bruno Haible  <bruno@clisp.org>
32955
32956         * modules/getcwd (Depends-on): Add malloc-posix.
32957         * modules/glob (Depends-on): Likewise.
32958         * modules/putenv (Depends-on): Likewise.
32959         * modules/strdup (Depends-on): Likewise.
32960         * modules/getdelim (Depends-on): Add realloc-posix.
32961         * modules/read-file (Depends-on): Likewise.
32962
32963 2007-09-09  Bruno Haible  <bruno@clisp.org>
32964
32965         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32966         (gl_FUNC_MALLOC_POSIX): Require it.
32967         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32968         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32969         * modules/realloc (Files): Add m4/malloc.m4.
32970         * modules/calloc (Files): Likewise.
32971
32972 2007-09-09  Bruno Haible  <bruno@clisp.org>
32973
32974         * modules/malloc-posix: New file.
32975         * modules/malloc (Depends-on): Add malloc-posix.
32976         * lib/malloc.c: Include errno.h.
32977         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32978         and a POSIX-compatible malloc into a single function. Set ENOMEM
32979         when returning NULL.
32980         * m4/malloc.m4: New file.
32981         * doc/functions/malloc.texi: Mention the malloc-posix module.
32982         * lib/stdlib_.h (malloc): New declaration.
32983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32984         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32985         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32986         and HAVE_MALLOC_POSIX.
32987
32988 2007-09-09  Bruno Haible  <bruno@clisp.org>
32989
32990         * modules/realloc-posix: New file.
32991         * modules/realloc (Depends-on): Add realloc-posix.
32992         * lib/realloc.c: Include errno.h.
32993         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32994         and a POSIX-compatible realloc into a single function. Set ENOMEM
32995         when returning NULL.
32996         * m4/realloc.m4: New file.
32997         * doc/functions/realloc.texi: Mention the realloc-posix module.
32998         * lib/stdlib_.h (realloc): New declaration.
32999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33000         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
33001         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
33002         and HAVE_REALLOC_POSIX.
33003
33004 2007-09-09  Bruno Haible  <bruno@clisp.org>
33005
33006         * modules/calloc-posix: New file.
33007         * modules/calloc (Depends-on): Add calloc-posix.
33008         * lib/calloc.c: Include errno.h.
33009         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
33010         and a POSIX-compatible calloc into a single function. Set ENOMEM
33011         when returning NULL.
33012         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
33013         * doc/functions/calloc.texi: Mention the calloc-posix module.
33014         * lib/stdlib_.h (calloc): New declaration.
33015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
33016         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
33017         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
33018         and HAVE_CALLOC_POSIX.
33019
33020 2007-09-09  Bruno Haible  <bruno@clisp.org>
33021
33022         Allow for modules to show an arbitrary notice.
33023         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
33024         * gnulib-tool: New option --extract-notice.
33025         (func_usage): Document it.
33026         (sed_extract_prog): Update.
33027         (func_get_notice): New function.
33028         (func_modules_notice): New function.
33029         (func_import, func_create_testdir): Invoke it.
33030         Suggested by Jim Meyering.
33031
33032 2007-09-09  Bruno Haible  <bruno@clisp.org>
33033
33034         * gnulib-tool: New options --verbose, --quiet.
33035         (func_usage): Document them.
33036         (verbose): New variable.
33037         (func_execute_command): New function.
33038         (func_import): Don't show the module list and the file list if
33039         $verbose < 0.
33040         (func_create_testdir): Likewise. Use func_execute_command.
33041         (func_create_megatestdir): Use func_execute_command.
33042
33043 2007-09-08  Bruno Haible  <bruno@clisp.org>
33044
33045         * gnulib-tool (func_import): Prefer rsync over wget when available,
33046         for fetching the PO files.
33047
33048 2007-09-08  Bruno Haible  <bruno@clisp.org>
33049
33050         * posix-modules: New file. Portions copied from gnulib-tool.
33051         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
33052
33053 2007-09-08  Jim Meyering  <jim@meyering.net>
33054
33055         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
33056         * lib/fpending.h: Rename from __fpending.h.
33057         * lib/fpending.c: Rename from __fpending.c.
33058         Include "fpending.h", not "__fpending.h".
33059         * lib/__fpending.h, lib/__fpending.c: Remove files.
33060         * modules/fpending (Files): Reflect new file names.
33061         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
33062
33063 2007-09-08  Bruno Haible  <bruno@clisp.org>
33064
33065         * m4/inttypes-h.m4: Remove stub file.
33066
33067 2007-09-07  Simon Josefsson  <simon@josefsson.org>
33068
33069         * doc/headers/stdint.texi: Discuss #include_next issue.
33070
33071 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
33072
33073         * build-aux/bootstrap: Remove obsolete comment about wget --help.
33074
33075 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33076
33077         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
33078         in variable name.
33079
33080 2007-09-03  Jim Meyering  <jim@meyering.net>
33081
33082         New module: git-version-gen.
33083         * modules/git-version-gen: New file.
33084
33085         Import changes from coreutils for bootstrap script.
33086
33087         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
33088
33089         bootstrap: uses rsync to download the .po files
33090         * build-aux/bootstrap (po_download_command_format): New global.
33091         (download_po_files): Use rsync.
33092         (update_po_files): Don't remove .po files after download,
33093         so future rsync runs can take advantage of the copies.
33094
33095         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
33096
33097         Solve the unnecessary-.po-file-regeneration problem once and for all.
33098         * build-aux/bootstrap (download_po_files): New function, renamed from
33099         get_translations.  Now, downloads, but doesn't update LINGUAS.
33100         (update_po_files): New function.
33101
33102         bootstrap: Ignore more.
33103         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
33104         uniwidth to e.g., lib/.gitignore.
33105         (slurp): Handle the sys_stat_.h -> sys mapping, too.
33106
33107         * build-aux/bootstrap: New setting: vc_ignore.
33108         (insert_sorted_if_absent): Create $file if absent.
33109         Adapt to new, possibly empty, list: $vc_ignore.
33110
33111         bootstrap: generate more ignorable names
33112         * build-aux/bootstrap (slurp): When generating ignorable names,
33113         also map .sin to .sed, .gperf to .c, and .y to .c.
33114
33115 2007-09-03  Jim Meyering  <jim@meyering.net>
33116
33117         * build-aux/git-version-gen: New file, from coreutils.  For details, see
33118         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
33119
33120 2007-09-02  Bruno Haible  <bruno@clisp.org>
33121
33122         Fix mis-recognition of 'mcs' on QNX 6.
33123         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
33124         output contains the string "Mono".
33125         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
33126         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
33127
33128 2007-09-01  Bruno Haible  <bruno@clisp.org>
33129
33130         Fix collision between uniwidth/* and linebreak modules.
33131         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
33132         u32_width): Remove declarations.
33133         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
33134         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
33135         streq3, streq2, streq1, streq0): Remove functions.
33136         (STREQ): Remove macro.
33137         (is_cjk_encoding): Remove function.
33138         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
33139         (uc_width, u8_width, u16_width, u32_width): Remove functions.
33140         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
33141         * NEWS: Document the change.
33142
33143 2007-09-01  Bruno Haible  <bruno@clisp.org>
33144
33145         * lib/streq.h: Add double-inclusion guard.
33146
33147 2007-09-01  Karl Berry  <karl@gnu.org>
33148
33149         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
33150
33151 2007-08-28  Jim Meyering  <jim@meyering.net>
33152
33153         Rename mreadlink_with_size to areadlink_with_size.
33154         * NEWS: Document the change.
33155         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
33156         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
33157         * lib/mreadlink.h: Rename this to...
33158         * lib/areadlink.h: ...this.
33159         * modules/mreadlink-with-size: Rename this to...
33160         * modules/areadlink-with-size: ...this.
33161         * lib/canonicalize.c: Reflect the renaming.
33162         * modules/canonicalize: Likewise.
33163
33164 2007-08-26  Bruno Haible  <bruno@clisp.org>
33165
33166         * gnulib-tool (func_import): When deciding which files to remove,
33167         consider also dangling symbolic links.
33168         Reported by Eric Blake.
33169
33170 2007-08-26  Bruno Haible  <bruno@clisp.org>
33171
33172         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
33173
33174 2007-08-23  Simon Josefsson  <simon@josefsson.org>
33175
33176         * lib/readline.c: Don't include getline.h, the prototype is now
33177         found in stdio.h.
33178
33179 2007-08-23  Jim Meyering  <jim@meyering.net>
33180
33181         Getdelim touchup.
33182         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
33183         around the funlockfile call, since funlockfile never sets errno.
33184         Don't set errno upon failed realloc.
33185
33186 2007-08-22  Eric Blake  <ebb9@byu.net>
33187
33188         Getline touchups.
33189         * lib/getdelim.c (getdelim): Revert regression that required *n to
33190         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
33191         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
33192         getdelim, rather than whether implementation is missing.
33193         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
33194         * lib/stdio_.h (getline): Also declare if replacement is
33195         required.
33196         * doc/functions/getdelim.texi: New file.
33197         * doc/functions/getline.texi: Likewise.
33198         * doc/gnulib.texi (Function Substitutes): Add new files.
33199         Reported by Bruno Haible.
33200
33201 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
33202
33203         * users.txt: Add Guile.
33204
33205 2007-08-22  Eric Blake  <ebb9@byu.net>
33206
33207         * tests/test-getdelim.c (main): Use remove, not unlink.
33208         * tests/test-getline.c (main): Likewise.
33209
33210         Move getline and getdelim into stdio.h, per POSIX 200x.
33211         * modules/getline (Files): Remove getline.h.
33212         (Depends-on): Add stdio.
33213         (configure.ac): Add module indicator.
33214         * modules/getdelim (Files): Remove getdelim.h.
33215         (Depends-on): Add stdio.
33216         (configure.ac): Add module indicator.
33217         * modules/stdio (Makefile.am): Work with new indicators.
33218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33219         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
33220         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33221         * lib/getdelim.h: Delete.
33222         * lib/getline.h: Delete.
33223         * lib/stdio_.h (getdelim, getline): Declare.
33224         * modules/getdelim-tests: New module.
33225         * modules/getline-tests: Likewise.
33226         * tests/test-getdelim.c: New file.
33227         * tests/test-getline.c: Likewise.
33228         * NEWS: Document the change.
33229         * lib/getline.c: Update choice of header.
33230         * lib/csharpcomp.c: Likewise.
33231         * lib/getpass.c: Likewise.
33232         * lib/javacomp.c: Likewise.
33233         * lib/javaversion.c: Likewise.
33234         * lib/yesno.c: Likewise.
33235         * lib/getdelim.c: Likewise.
33236         (getdelim): Set errno on failure, and avoid memory leak.
33237
33238 2007-08-19  Bruno Haible  <bruno@clisp.org>
33239
33240         * modules/closein (Depends-on): Add freadahead.
33241         * lib/closein.c: Include freadahead.h.
33242         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
33243         is zero.
33244
33245 2007-08-19  Bruno Haible  <bruno@clisp.org>
33246
33247         * modules/freadahead-tests: New file.
33248         * tests/test-freadahead.sh: New file.
33249         * tests/test-freadahead.c: New file.
33250
33251         * modules/freadahead: New file.
33252         * lib/freadahead.h: New file.
33253         * lib/freadahead.c: New file.
33254         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
33255         fbufmode, fpurge, freadable, fwritable.
33256
33257 2007-08-19  Eric Blake  <ebb9@byu.net>
33258
33259         Test yesno in combination with closein.
33260         * lib/yesno.c (yesno): Document use of stdin.
33261         * modules/yesno-tests (Files): New module.
33262         * tests/test-yesno.c (main): New file.
33263         * tests/test-yesno.sh: Likewise.
33264
33265 2007-08-19  Bruno Haible  <bruno@clisp.org>
33266
33267         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
33268         * lib/fseeko.c (rpl_fseeko): Likewise.
33269         * lib/fseterr.c (fseterr): Likewise.
33270
33271 2007-08-19  Bruno Haible  <bruno@clisp.org>
33272
33273         * tests/test-lseek.c (main): Disable a test for BeOS.
33274         * doc/functions/lseek.texi: Document the BeOS bug.
33275
33276 2007-08-19  Bruno Haible  <bruno@clisp.org>
33277             Eric Blake  <ebb9@byu.net>
33278
33279         * lib/lseek.c: Include <sys/stat.h>.
33280         (rpl_lseek): Add workaround code also for Unix platforms.
33281         Needed for BeOS.
33282         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
33283         * doc/functions/lseek.texi: Document BeOS definiency.
33284
33285 2007-08-18  Bruno Haible  <bruno@clisp.org>
33286
33287         * modules/fstrcmp-tests: New file.
33288         * tests/test-fstrcmp.c: New file.
33289
33290 2007-08-18  Bruno Haible  <bruno@clisp.org>
33291
33292         * modules/fstrcmp: New file, from GNU gettext with modifications.
33293         * lib/fstrcmp.h: New file, from GNU gettext.
33294         * lib/fstrcmp.c: New file, from GNU gettext.
33295         * MODULES.html.sh (String handling): Add fstrcmp.
33296
33297 2007-08-18  Bruno Haible  <bruno@clisp.org>
33298
33299         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
33300         'bool'.
33301         (diag, compareseq): Remove const from the ctxt argument.
33302         (USE_HEURISTIC): Undefine at the end.
33303
33304 2007-08-18  Jim Meyering  <jim@meyering.net>
33305
33306         New file: lib/idcache.h
33307         * NEWS: Mention the addition.
33308         * modules/idcache (Files): Add lib/idcache.h
33309         * lib/idcache.c: Include "idcache.h".
33310         Don't include <sys/types.h>.
33311         Add a FIXME comment.
33312         Move file-scoped "static" declarations to the top.
33313         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33314
33315 2007-08-17  Bruno Haible  <bruno@clisp.org>
33316         and Paul Eggert  <eggert@cs.ucla.edu>
33317
33318         * MODULES.html.sh: Add diffseq.
33319         * modules/diffseq: New file.
33320         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33321         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33322
33323 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33324
33325         Import changes from coreutils for bootstrap script.
33326
33327         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33328
33329         * build-aux/bootstrap (slurp): Work even in environments where
33330         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33331         current code does not slurp files whose names start with ".", and
33332         this looks like it might be a troublesome area.
33333
33334         2007-07-11  Jim Meyering  <jim@meyering.net>
33335
33336         If there's a GPL vN copyright comment, require that N == 3.
33337
33338         2007-07-08  Jim Meyering  <jim@meyering.net>
33339
33340         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33341         * build-aux/bootstrap (mam_template): Move definition out of loop.
33342
33343         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33344
33345         * build-aux/bootstrap (symlink_to_dir): Rename function from
33346         symlink_to_gnulib.  Add a directory parameter.  Update all
33347         callers.
33348         (cp_mark_as_generated): Also check for -- and link to -- files in
33349         gl/.
33350
33351         2007-07-08  Jim Meyering  <jim@meyering.net>
33352
33353         Adapt to deeper hierarchy in gnulib.
33354         * build-aux/bootstrap (symlink_to_dir): If the destination
33355         directory doesn't exist, create it. This is required at least for
33356         "lib/uniwidth/cjk.h".
33357
33358         2007-05-15  Jim Meyering  <jim@meyering.net>
33359
33360         * build-aux/bootstrap: Now that generated Makefile.am files
33361         are no longer under version control, they must be created at
33362         bootstrap time.
33363
33364 2007-08-14  Ben Pfaff  <blp@gnu.org>
33365
33366         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33367
33368 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33369
33370         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33371         given the changes below.
33372         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33373         even on hosts that have padding bits beyond the supported 64.
33374
33375 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33376
33377         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33378         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33379         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33380         depends on it.
33381         (xstrtol_error): Remove.
33382         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33383         but with a different signature.
33384         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33385         * lib/xstrtol-error.c: Include exitfail.h.
33386         (xstrtol_fatal): New function, with a different signature from the
33387         old xstrtol_error, so that the caller need not worry about passing
33388         in an exit status, or about storage management of the option argument.
33389         (xstrtol_error): Now a static function.  Redo signature to
33390         implement xstrtol_fatal.  Output the correct number of hyphens in
33391         front of the option so that the caller need not worry about
33392         storage management.
33393         (N_): New macro.
33394         (_): Remove; not used now.
33395         * modules/xstrtol: Depend on getopt.
33396         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33397         of old STRTOL_FATAL_ERROR macro.
33398         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33399         of test program.
33400         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33401         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33402
33403 2007-08-08  Eric Blake  <ebb9@byu.net>
33404
33405         * lib/xstrtol-error.c: Add missing include.
33406
33407         Move xstrtol messages into gnulib domain, when --pobase is used.
33408         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33409         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33410         * modules/xstrtol (Files): Distribute new file.
33411         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33412         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33413         * tests/test-xstrtol.c: ...into new file.
33414         * tests/test-xstrtoul.c: Also test xstrtoul.
33415         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33416         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33417         * tests/test-xstrtol.sh: Drive the tests.
33418         * tests/test-xstrtoimax.sh: Likewise.
33419         * tests/test-xstrtoumax.sh: Likewise.
33420         * modules/xstrtol-tests: New module.
33421         * modules/xstrtoimax-tests: Likewise.
33422         * modules/xstrtoumax-tests: Likewise.
33423
33424 2007-08-08  Jim Meyering  <jim@meyering.net>
33425
33426         New function: mfile_name_concat.
33427         * lib/filenamecat.c (mfile_name_concat): New function, just like
33428         file_name_concat, but return NULL upon failure rather than exiting
33429         with a diagnostic.
33430         * lib/filenamecat.h: Declare it.
33431
33432 2007-08-07  Bruno Haible  <bruno@clisp.org>
33433
33434         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33435         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33436         warning from gcc.
33437         Reported by Eric Blake.
33438
33439 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33440
33441         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33442         * modules/crypto/arcfour (License): Likewise.
33443         * modules/crypto/des-tests (License): Likewise.
33444         * modules/crypto/gc-arctwo-tests (License): Likewise.
33445         * modules/crypto/gc-des-tests (License): Likewise.
33446         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33447         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33448         * modules/crypto/gc-md2-tests (License): Likewise.
33449         * modules/crypto/gc-md4-tests (License): Likewise.
33450         * modules/crypto/gc-md5-tests (License): Likewise.
33451         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33452         * modules/crypto/gc-rijndael-tests (License): Likewise.
33453         * modules/crypto/gc-sha1-tests (License): Likewise.
33454         * modules/crypto/gc-tests (License): Likewise.
33455         * modules/crypto/hmac-md5 (License): Likewise.
33456         * modules/crypto/hmac-sha1 (License): Likewise.
33457         * modules/crypto/md2-tests (License): Likewise.
33458         * modules/crypto/md4-tests (License): Likewise.
33459         * modules/crypto/md5 (License): Likewise.
33460         * modules/crypto/rijndael (License): Likewise.
33461         * modules/crypto/sha1 (License): Likewise.
33462         * modules/memxor (License): Likewise.
33463
33464 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33465         and Bruno Haible  <bruno@clisp.org>
33466
33467         * NEWS: Describe interface changes to human, xstrtol.
33468         * lib/human.h: Include <xstrtol.h>.
33469         (human_options): Return enum strtol_error, not int.  Remove
33470         bool arg; take int * instead.
33471         * lib/human.c: Don't include "gettext.h".
33472         (_): Remove; no longer used.
33473         Don't include <xstrtol.h>, since human.h does it.
33474         (human_options): Adjust to abovementioned interface changes.
33475         Do not report error to stderr; that's now the caller's
33476         responsibility.
33477         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33478         interface change.
33479         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33480         Str, Argument_type_string.  All uses changed.  Put " argument"
33481         in diagnostics to make them clearer.  Change wording of suffix
33482         message for clarity.
33483         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33484         Argument_type_string.
33485         (STRTOL_FATAL_WARN): Remove; no longer used.
33486         * modules/human (Depends-on): Remove gettext-h.
33487
33488 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33489
33490         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33491
33492 2007-07-31  Bruno Haible  <bruno@clisp.org>
33493
33494         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33495         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33496         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33497
33498 2007-07-31  Bruno Haible  <bruno@clisp.org>
33499
33500         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33501         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33502
33503 2007-07-30  Bruno Haible  <bruno@clisp.org>
33504
33505         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33506         * modules/c-ctype (License): Likewise.
33507         * modules/c-strcase (License): Likewise.
33508         * modules/check-version (License): Likewise.
33509         * modules/iconv (License): Likewise.
33510         * modules/iconv_open (License): Likewise.
33511         * modules/read-file (License): Likewise.
33512         * modules/striconv (License): Likewise.
33513         * modules/strverscmp (License): Likewise.
33514         * modules/vasprintf (License): Likewise.
33515         * modules/crypto/des (License): Likewise.
33516         * modules/crypto/gc (License): Likewise.
33517         * modules/crypto/gc-arcfour (License): Likewise.
33518         * modules/crypto/gc-arctwo (License): Likewise.
33519         * modules/crypto/gc-des (License): Likewise.
33520         * modules/crypto/gc-hmac-md5 (License): Likewise.
33521         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33522         * modules/crypto/gc-md2 (License): Likewise.
33523         * modules/crypto/gc-md4 (License): Likewise.
33524         * modules/crypto/gc-md5 (License): Likewise.
33525         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33526         * modules/crypto/gc-random (License): Likewise.
33527         * modules/crypto/gc-rijndael (License): Likewise.
33528         * modules/crypto/gc-sha1 (License): Likewise.
33529         * modules/crypto/md2 (License): Likewise.
33530         * modules/crypto/md4 (License): Likewise.
33531
33532 2007-07-30  Jim Meyering  <jim@meyering.net>
33533
33534         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33535         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33536         it has valid stat data.  This bug would cause du not to count the
33537         sizes of inaccessible directories.
33538         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33539         in <http://bugzilla.redhat.com/250077>.
33540
33541 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33542             Bruno Haible  <bruno@clisp.org>
33543
33544         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33545         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33546         #include_next, gives a diagnostic about it, but reports no error in
33547         the exit code.
33548         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33549
33550 2007-07-24  Ben Pfaff  <blp@gnu.org>
33551
33552         Improve name: "count-one-bits" is better than "popcount".
33553         * MODULES.html.sh: Update name.
33554         * lib/popcount.h: Renamed lib/count-one-bits.h.
33555         (popcount): Renamed count_one_bits.
33556         (popcountl): Renamed count_one_bits_l.
33557         (popcountll): Renamed count_one_bits_ll.
33558         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33559         * modules/popcount: Renamed module/count-one-bits.
33560         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33561         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33562
33563 2007-07-23  Ben Pfaff  <blp@gnu.org>
33564
33565         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33566         better code generation, and add U to large constants to avoid
33567         warnings, in non-GCC case.
33568         Suggested by Bruno Haible.
33569
33570 2007-07-23  Ben Pfaff  <blp@gnu.org>
33571
33572         * lib/popcount.h: Use verify_true instead of if...abort.
33573         * modules/popcount: Depend on verify module.
33574         Suggested by Jim Meyering.
33575
33576 2007-07-23  Bruno Haible  <bruno@clisp.org>
33577
33578         * gnulib-tool (func_import): Create a .cvsignore file also when the
33579         directory is not yet in CVS but the toplevel directory is. When
33580         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33581         Reported by Karl Berry.
33582
33583 2007-07-22  Ben Pfaff  <blp@gnu.org>
33584
33585         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33586         case.
33587         Suggested by Eric Blake.
33588
33589 2007-07-22  Ben Pfaff  <blp@gnu.org>
33590
33591         New module: popcount.
33592         * MODULES.html.sh: Add popcount.
33593         * modules/popcount: New file.
33594         * modules/popcount-tests: New file.
33595         * tests/test-popcount.c: New file.
33596         * lib/popcount.h: New file.
33597         * m4/popcount.m4: New file.
33598
33599 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33600
33601         * build-aux/announce-gen: Update to GPLv3.
33602
33603         * build-aux/config.guess: Update from config.
33604
33605 2007-07-21  Bruno Haible  <bruno@clisp.org>
33606
33607         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33608         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33609
33610 2007-07-20  Jim Meyering  <jim@meyering.net>
33611
33612         * check-module: Diagnose a self-dependency.
33613
33614 2007-07-19  Bruno Haible  <bruno@clisp.org>
33615
33616         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33617         empty.
33618         Reported by Eric Blake.
33619
33620 2007-07-18  Bruno Haible  <bruno@clisp.org>
33621
33622         * gnulib-tool: New options --po-base, --po-domain.
33623         (func_usage): Document them.
33624         (pobase, po_domain): New variables.
33625         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33626         DEFAULT_TEXT_DOMAIN.
33627         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33628         (func_import): Consider pobase and po_domain. Create a po/ directory.
33629         (func_create_testdir): Set pobase and po_domain to empty.
33630         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33631         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33632
33633 2007-07-18  Bruno Haible  <bruno@clisp.org>
33634
33635         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33636         EXTRA_DIST augmentation for files in build-aux/.
33637
33638 2007-07-16  Bruno Haible  <bruno@clisp.org>
33639
33640         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33641         * modules/getdelim (License): Likewise.
33642
33643 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33644
33645         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33646         * modules/d-type (License): Likewise.
33647         * modules/extensions (License): Likewise.
33648         * modules/fnmatch (License): Likewise.
33649         * modules/fseeko (License): Likewise.
33650         * modules/getaddrinfo (License): Likewise.
33651         * modules/getline (License): Likewise.
33652         * modules/getlogin_r (License): Likewise.
33653         * modules/getpass (License): Likewise.
33654         * modules/gettimeofday (License): Likewise.
33655         * modules/glob (License): Likewise.
33656         * modules/inet_ntop (License): Likewise.
33657         * modules/malloc (License): Likewise.
33658         * modules/malloca (License): Likewise.
33659         * modules/memmem (License): Likewise.
33660         * modules/mempcpy (License): Likewise.
33661         * modules/memset (License): Likewise.
33662         * modules/minmax (License): Likewise.
33663         * modules/mktime (License): Likewise.
33664         * modules/netinet_in (License): Likewise.
33665         * modules/pathmax (License): Likewise.
33666         * modules/poll (License): Likewise.
33667         * modules/regex (License): Likewise.
33668         * modules/snprintf (License): Likewise.
33669         * modules/stdbool (License): Likewise.
33670         * modules/stdint (License): Likewise.
33671         * modules/stdio (License): Likewise.
33672         * modules/strcase (License): Likewise.
33673         * modules/strcasestr (License): Likewise.
33674         * modules/strdup (License): Likewise.
33675         * modules/string (License): Likewise.
33676         * modules/strndup (License): Likewise.
33677         * modules/strnlen (License): Likewise.
33678         * modules/strpbrk (License): Likewise.
33679         * modules/strptime (License): Likewise.
33680         * modules/strsep (License): Likewise.
33681         * modules/sys_select (License): Likewise.
33682         * modules/sys_socket (License): Likewise.
33683         * modules/sys_stat (License): Likewise.
33684         * modules/sys_time (License): Likewise.
33685         * modules/time (License): Likewise.
33686         * modules/time_r (License): Likewise.
33687         * modules/timegm (License): Likewise.
33688         * modules/unistd (License): Likewise.
33689         * modules/vsnprintf (License): Likewise.
33690         * modules/wctype (License): Likewise.
33691
33692 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33693
33694         * modules/argz (License): LGPLv2+.
33695
33696 2007-07-15  Karl Berry  <karl@gnu.org>
33697
33698         * doc/gnulib.texi: revise node structure per new fdl.texi.
33699
33700 2007-07-14  Bruno Haible  <bruno@clisp.org>
33701
33702         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33703         the output file.
33704         * lib/uniname/uninames.h: Regenerated.
33705
33706 2007-07-14  Karl Berry  <karl@gnu.org>
33707
33708         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33709         omitting sectioning and index commands.
33710
33711 2007-07-13  Bruno Haible  <bruno@clisp.org>
33712
33713         New gnulib-tool option --more-symlinks.
33714         * gnulib-tool (func_usage): Document --more-symlinks.
33715         (do_copyrights): New variable.
33716         Recognize option --more-symlinks.
33717         (func_import): Don't add a copyright notice transform to
33718         sed_transform_lib_file if do_copyrights is empty.
33719
33720 2007-07-13  Bruno Haible  <bruno@clisp.org>
33721
33722         * lib/vasnprintf.c (decimal_point_char): Define also if
33723         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33724         && !NEED_PRINTF_DIRECTIVE_A.
33725         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33726         Gary V. Vaughan <gary@gnu.org>.
33727
33728 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33729
33730         * lib/inttypes_.h: Undo previous change, since it was fixed
33731         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33732
33733 2007-07-13  Bruno Haible  <bruno@clisp.org>
33734
33735         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33736         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33737
33738 2007-07-13  Jim Meyering  <jim@meyering.net>
33739
33740         df: Don't fail for Tru64's "file-on-file mount".
33741         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33742         so we fall through and use statfs instead.  Details here:
33743         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33744         Reported by Albert Chin.
33745
33746 2007-07-13  Bruno Haible  <bruno@clisp.org>
33747
33748         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33749         * modules/configmake (License): Likewise.
33750         * modules/gettext (License): Likewise.
33751         * modules/gettext-h (License): Likewise.
33752         * modules/include_next (License): Likewise.
33753         * modules/link-warning (License): Likewise.
33754         * modules/localcharset (License): Likewise.
33755         * modules/localename (License): Likewise.
33756         * modules/lock (License): Likewise.
33757         * modules/relocatable-lib-lgpl (License): Likewise.
33758         * modules/size_max (License): Likewise.
33759         * modules/vasnprintf (License): Likewise.
33760         * modules/wchar (License): Likewise.
33761         * modules/xsize (License): Likewise.
33762
33763 2007-07-13  Bruno Haible  <bruno@clisp.org>
33764
33765         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33766         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33767
33768 2007-07-12  Bruno Haible  <bruno@clisp.org>
33769
33770         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33771         in the modules files.
33772
33773 2007-07-11  Karl Berry  <karl@gnu.org>
33774
33775         * MODULES.html.sh (func_module): use
33776          sed -e '\|^'"${includefile}"'$|d'
33777          instead of /.../d, to avoid errors on $includefile's containing /.
33778
33779 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33780
33781         * gnulib-tool (func_import): Avoid duplication of --avoid
33782         statements
33783         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33784         names to `_' in variable names.
33785
33786 2007-07-10  Eric Blake  <ebb9@byu.net>
33787
33788         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33789         * NEWS: Document this change.
33790
33791 2007-07-08  Bruno Haible  <bruno@clisp.org>
33792
33793         Update to Unicode 5.0.
33794         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33795         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33796         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33797         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33798         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33799         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33800         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33801         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33802         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33803         U+10A3F, U+1D242..U+1D244.
33804         (nonspacing_table_ind): Update.
33805         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33806         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33807
33808 2007-07-08  Bruno Haible  <bruno@clisp.org>
33809
33810         Update to Unicode 5.0.
33811         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33812         code transform. Extend the name index field of unicode_name_to_code and
33813         unicode_code_to_name from 16 to 24 bits.
33814         * lib/uniname/uniname.c (unicode_character_name,
33815         unicode_name_character): Add the range 0x12xxx to the code transform.
33816         * lib/uniname/uninames.h: Regenerated.
33817         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33818
33819 2007-07-07  Bruno Haible  <bruno@clisp.org>
33820
33821         * modules/wcwidth-tests: New file.
33822         * tests/test-wcwidth.c: New file.
33823
33824         Work around MacOS X wcwidth() bug.
33825         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33826         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33827         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33828         original wcwidth in non-UTF-8 locales.
33829         * modules/wcwidth (Depends-on): Add localcharset, streq,
33830         uniwidth/width.
33831         * doc/functions/wcwidth.texi: Update.
33832
33833 2007-07-07  Bruno Haible  <bruno@clisp.org>
33834
33835         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33836         (wcwidth): New declaration.
33837         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33838         macros.
33839         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33840         here. Prepare for creating <wchar.h> unconditionally.
33841         * modules/wchar (Depends-on): Add link-warning.
33842         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33843         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33844         * lib/wcwidth.h: Remove file.
33845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33846         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33847         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33848         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33849         (Include): Replace wcwidth.h with <wchar.h>.
33850         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33851         * lib/mbchar.h: Don't include wcwidth.h.
33852         * lib/mbswidth.c: Likewise.
33853         * NEWS: Mention the change.
33854
33855 2007-07-07  Bruno Haible  <bruno@clisp.org>
33856
33857         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33858         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33859         definition with an external declaration.
33860         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33861         defined as a function. Remove AC_C_INLINE requirement.
33862         * modules/wcwidth (Files): Add lib/wcwidth.c.
33863         (Makefile.am): Remove redundant statement.
33864
33865 2007-07-07  Bruno Haible  <bruno@clisp.org>
33866
33867         * MODULES.html.sh (Unicode string functions): Add the new modules.
33868
33869         * tests/uniwidth/test-u32-strwidth.c: New file.
33870         * modules/uniwidth/u32-strwidth-tests: New file.
33871
33872         * lib/uniwidth/u32-strwidth.c: New file.
33873         * modules/uniwidth/u32-strwidth: New file.
33874
33875         * tests/uniwidth/test-u16-strwidth.c: New file.
33876         * modules/uniwidth/u16-strwidth-tests: New file.
33877
33878         * lib/uniwidth/u16-strwidth.c: New file.
33879         * modules/uniwidth/u16-strwidth: New file.
33880
33881         * tests/uniwidth/test-u8-strwidth.c: New file.
33882         * modules/uniwidth/u8-strwidth-tests: New file.
33883
33884         * lib/uniwidth/u8-strwidth.c: New file.
33885         * modules/uniwidth/u8-strwidth: New file.
33886
33887         * tests/uniwidth/test-u32-width.c: New file.
33888         * modules/uniwidth/u32-width-tests: New file.
33889
33890         * lib/uniwidth/u32-width.c: New file.
33891         * modules/uniwidth/u32-width: New file.
33892
33893         * tests/uniwidth/test-u16-width.c: New file.
33894         * modules/uniwidth/u16-width-tests: New file.
33895
33896         * lib/uniwidth/u16-width.c: New file.
33897         * modules/uniwidth/u16-width: New file.
33898
33899         * tests/uniwidth/test-u8-width.c: New file.
33900         * modules/uniwidth/u8-width-tests: New file.
33901
33902         * lib/uniwidth/u8-width.c: New file.
33903         * modules/uniwidth/u8-width: New file.
33904
33905         * tests/uniwidth/test-uc_width.c: New file.
33906         * modules/uniwidth/width-tests: New file.
33907
33908         * lib/uniwidth/width.c: New file, from GNU libiconv.
33909         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33910         * modules/uniwidth/width: New file.
33911
33912         * lib/uniwidth.h: New file, from GNU libiconv.
33913         * modules/uniwidth/base: New file.
33914
33915 2007-07-07  Bruno Haible  <bruno@clisp.org>
33916
33917         * lib/uniname.h: New file, from GNU gettext.
33918         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33919         * lib/uniname/uninames.h: New file, from GNU gettext.
33920         * lib/uniname/uniname.c: New file, from GNU gettext.
33921         * tests/uniname/test-uninames.sh: New file.
33922         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33923         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33924         * modules/uniname/base: New file.
33925         * modules/uniname/uniname: New file.
33926         * modules/uniname/uniname-tests: New file.
33927         * MODULES.html.sh (Unicode string functions): Add the new modules.
33928
33929 2007-07-06  Bruno Haible  <bruno@clisp.org>
33930
33931         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33932
33933 2007-07-06  Bruno Haible  <bruno@clisp.org>
33934
33935         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33936         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33937         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33938         include <sys/time.h>.
33939         Reported by Eric Blake.
33940
33941 2007-07-06  Eric Blake  <ebb9@byu.net>
33942
33943         Fix testing canonicalize on cygwin.
33944         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33945         Revert patch from 2007-06-19.
33946         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33947         canonicalize module is also in use.
33948         * tests/test-canonicalize.c: New file.
33949         * tests/test-canonicalize.sh: Likewise.
33950         * modules/canonicalize-tests: Likewise.
33951
33952 2007-07-06  Jim Meyering  <jim@meyering.net>
33953
33954         * lib/getugroups.c (getugroups): Detect getgrent failure.
33955         Adjust comment to reflect reality: this function may return -1.
33956
33957 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33958
33959         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33960         the new TP address.
33961         (usage): Fix typo
33962         (gnulib_mk): New variable.
33963
33964 2007-07-05  Jim Meyering  <jim@meyering.net>
33965
33966         Don't let endgrent clobber errno, no matter how improbable.
33967         * lib/getugroups.c (getugroups): Save and restore errno around
33968         endgrent call.
33969
33970         Close the group DB even when failing with 2^31 or more members.
33971         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33972
33973 2007-07-04  Jim Meyering  <jim@meyering.net>
33974
33975         * lib/getugroups.h: New file.
33976         * lib/getugroups.c: Include "getugroups.h".
33977         Remove uses of "register" keyword.
33978         Move local variable, "cp", down into scope where used.
33979         Give "username" parameter the "const" attribute.
33980         * modules/getugroups (Files): Add lib/getugroups.h
33981
33982 2007-07-04  Karl Berry  <karl@gnu.org>
33983
33984         * MODULES.html.sh (func_all_modules): Complete rename of
33985         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33986
33987 2007-07-02  Bruno Haible  <bruno@clisp.org>
33988
33989         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33990         mode, when inttypes.h comes from gnulib.
33991         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33992
33993 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33994
33995         * NEWS: Mention lgpl module name change.
33996
33997         * modules/lgpl-2.1: Renamed from lgpl.
33998
33999         * NEWS: Mention gpl module name change.
34000
34001         * modules/gpl-3.0: New file, based on gpl-2.0.
34002
34003         * modules/gpl-2.0: Renamed from gpl.
34004
34005         * modules/gpl: Fix filename, doc/gpl.texi is now found at
34006         doc/gpl-2.0.texi.
34007
34008 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
34009
34010         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
34011         #define __STDC_LIMIT_MACROS temporarily while including
34012         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
34013         Problem reported by Joel E. Denny in
34014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
34015
34016 2007-07-01  Bruno Haible  <bruno@clisp.org>
34017
34018         * lib/unistdio.h: New file.
34019         * lib/unistdio/u-asnprintf.h: New file.
34020         * lib/unistdio/u-asprintf.h: New file.
34021         * lib/unistdio/u-printf-args.c: New file.
34022         * lib/unistdio/u-printf-args.h: New file.
34023         * lib/unistdio/u-printf-parse.h: New file.
34024         * lib/unistdio/u-snprintf.h: New file.
34025         * lib/unistdio/u-sprintf.h: New file.
34026         * lib/unistdio/u-vasprintf.h: New file.
34027         * lib/unistdio/u-vsnprintf.h: New file.
34028         * lib/unistdio/u-vsprintf.h: New file.
34029         * lib/unistdio/ulc-asnprintf.c: New file.
34030         * lib/unistdio/ulc-asprintf.c: New file.
34031         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
34032         * lib/unistdio/ulc-printf-parse.c: New file.
34033         * lib/unistdio/ulc-snprintf.c: New file.
34034         * lib/unistdio/ulc-sprintf.c: New file.
34035         * lib/unistdio/ulc-vasnprintf.c: New file.
34036         * lib/unistdio/ulc-vasprintf.c: New file.
34037         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
34038         * lib/unistdio/ulc-vsnprintf.c: New file.
34039         * lib/unistdio/ulc-vsprintf.c: New file.
34040         * lib/unistdio/u8-asnprintf.c: New file.
34041         * lib/unistdio/u8-asprintf.c: New file.
34042         * lib/unistdio/u8-printf-parse.c: New file.
34043         * lib/unistdio/u8-snprintf.c: New file.
34044         * lib/unistdio/u8-sprintf.c: New file.
34045         * lib/unistdio/u8-vasnprintf.c: New file.
34046         * lib/unistdio/u8-vasprintf.c: New file.
34047         * lib/unistdio/u8-vsnprintf.c: New file.
34048         * lib/unistdio/u8-vsprintf.c: New file.
34049         * lib/unistdio/u8-u8-asnprintf.c: New file.
34050         * lib/unistdio/u8-u8-asprintf.c: New file.
34051         * lib/unistdio/u8-u8-snprintf.c: New file.
34052         * lib/unistdio/u8-u8-sprintf.c: New file.
34053         * lib/unistdio/u8-u8-vasnprintf.c: New file.
34054         * lib/unistdio/u8-u8-vasprintf.c: New file.
34055         * lib/unistdio/u8-u8-vsnprintf.c: New file.
34056         * lib/unistdio/u8-u8-vsprintf.c: New file.
34057         * lib/unistdio/u16-asnprintf.c: New file.
34058         * lib/unistdio/u16-asprintf.c: New file.
34059         * lib/unistdio/u16-printf-parse.c: New file.
34060         * lib/unistdio/u16-snprintf.c: New file.
34061         * lib/unistdio/u16-sprintf.c: New file.
34062         * lib/unistdio/u16-vasnprintf.c: New file.
34063         * lib/unistdio/u16-vasprintf.c: New file.
34064         * lib/unistdio/u16-vsnprintf.c: New file.
34065         * lib/unistdio/u16-vsprintf.c: New file.
34066         * lib/unistdio/u16-u16-asnprintf.c: New file.
34067         * lib/unistdio/u16-u16-asprintf.c: New file.
34068         * lib/unistdio/u16-u16-snprintf.c: New file.
34069         * lib/unistdio/u16-u16-sprintf.c: New file.
34070         * lib/unistdio/u16-u16-vasnprintf.c: New file.
34071         * lib/unistdio/u16-u16-vasprintf.c: New file.
34072         * lib/unistdio/u16-u16-vsnprintf.c: New file.
34073         * lib/unistdio/u16-u16-vsprintf.c: New file.
34074         * lib/unistdio/u32-asnprintf.c: New file.
34075         * lib/unistdio/u32-asprintf.c: New file.
34076         * lib/unistdio/u32-printf-parse.c: New file.
34077         * lib/unistdio/u32-snprintf.c: New file.
34078         * lib/unistdio/u32-sprintf.c: New file.
34079         * lib/unistdio/u32-vasnprintf.c: New file.
34080         * lib/unistdio/u32-vasprintf.c: New file.
34081         * lib/unistdio/u32-vsnprintf.c: New file.
34082         * lib/unistdio/u32-vsprintf.c: New file.
34083         * lib/unistdio/u32-u32-asnprintf.c: New file.
34084         * lib/unistdio/u32-u32-asprintf.c: New file.
34085         * lib/unistdio/u32-u32-snprintf.c: New file.
34086         * lib/unistdio/u32-u32-sprintf.c: New file.
34087         * lib/unistdio/u32-u32-vasnprintf.c: New file.
34088         * lib/unistdio/u32-u32-vasprintf.c: New file.
34089         * lib/unistdio/u32-u32-vsnprintf.c: New file.
34090         * lib/unistdio/u32-u32-vsprintf.c: New file.
34091         * tests/unistdio/test-ulc-asnprintf1.c: New file.
34092         * tests/unistdio/test-ulc-asnprintf1.h: New file.
34093         * tests/unistdio/test-ulc-printf1.h: New file.
34094         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
34095         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
34096         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
34097         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
34098         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
34099         * tests/unistdio/test-ulc-vasprintf1.c: New file.
34100         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
34101         * tests/unistdio/test-ulc-vsprintf1.c: New file.
34102         * tests/unistdio/test-u8-asnprintf1.c: New file.
34103         * tests/unistdio/test-u8-asnprintf1.h: New file.
34104         * tests/unistdio/test-u8-printf1.h: New file.
34105         * tests/unistdio/test-u8-vasnprintf1.c: New file.
34106         * tests/unistdio/test-u8-vasnprintf2.c: New file.
34107         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
34108         * tests/unistdio/test-u8-vasnprintf3.c: New file.
34109         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
34110         * tests/unistdio/test-u8-vasprintf1.c: New file.
34111         * tests/unistdio/test-u8-vsnprintf1.c: New file.
34112         * tests/unistdio/test-u8-vsprintf1.c: New file.
34113         * tests/unistdio/test-u16-asnprintf1.c: New file.
34114         * tests/unistdio/test-u16-asnprintf1.h: New file.
34115         * tests/unistdio/test-u16-printf1.h: New file.
34116         * tests/unistdio/test-u16-vasnprintf1.c: New file.
34117         * tests/unistdio/test-u16-vasnprintf2.c: New file.
34118         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
34119         * tests/unistdio/test-u16-vasnprintf3.c: New file.
34120         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
34121         * tests/unistdio/test-u16-vasprintf1.c: New file.
34122         * tests/unistdio/test-u16-vsnprintf1.c: New file.
34123         * tests/unistdio/test-u16-vsprintf1.c: New file.
34124         * tests/unistdio/test-u32-asnprintf1.c: New file.
34125         * tests/unistdio/test-u32-asnprintf1.h: New file.
34126         * tests/unistdio/test-u32-printf1.h: New file.
34127         * tests/unistdio/test-u32-vasnprintf1.c: New file.
34128         * tests/unistdio/test-u32-vasnprintf2.c: New file.
34129         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
34130         * tests/unistdio/test-u32-vasnprintf3.c: New file.
34131         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
34132         * tests/unistdio/test-u32-vasprintf1.c: New file.
34133         * tests/unistdio/test-u32-vsnprintf1.c: New file.
34134         * tests/unistdio/test-u32-vsprintf1.c: New file.
34135         * modules/unistdio/base: New file.
34136         * modules/unistdio/u-printf-args: New file.
34137         * modules/unistdio/ulc-asnprintf: New file.
34138         * modules/unistdio/ulc-asprintf: New file.
34139         * modules/unistdio/ulc-fprintf: New file.
34140         * modules/unistdio/ulc-printf-parse: New file.
34141         * modules/unistdio/ulc-snprintf: New file.
34142         * modules/unistdio/ulc-sprintf: New file.
34143         * modules/unistdio/ulc-vasnprintf: New file.
34144         * modules/unistdio/ulc-vasprintf: New file.
34145         * modules/unistdio/ulc-vfprintf: New file.
34146         * modules/unistdio/ulc-vsnprintf: New file.
34147         * modules/unistdio/ulc-vsprintf: New file.
34148         * modules/unistdio/u8-asnprintf: New file.
34149         * modules/unistdio/u8-asprintf: New file.
34150         * modules/unistdio/u8-printf-parse: New file.
34151         * modules/unistdio/u8-snprintf: New file.
34152         * modules/unistdio/u8-sprintf: New file.
34153         * modules/unistdio/u8-vasnprintf: New file.
34154         * modules/unistdio/u8-vasprintf: New file.
34155         * modules/unistdio/u8-vsnprintf: New file.
34156         * modules/unistdio/u8-vsprintf: New file.
34157         * modules/unistdio/u8-u8-asnprintf: New file.
34158         * modules/unistdio/u8-u8-asprintf: New file.
34159         * modules/unistdio/u8-u8-snprintf: New file.
34160         * modules/unistdio/u8-u8-sprintf: New file.
34161         * modules/unistdio/u8-u8-vasnprintf: New file.
34162         * modules/unistdio/u8-u8-vasprintf: New file.
34163         * modules/unistdio/u8-u8-vsnprintf: New file.
34164         * modules/unistdio/u8-u8-vsprintf: New file.
34165         * modules/unistdio/u16-asnprintf: New file.
34166         * modules/unistdio/u16-asprintf: New file.
34167         * modules/unistdio/u16-printf-parse: New file.
34168         * modules/unistdio/u16-snprintf: New file.
34169         * modules/unistdio/u16-sprintf: New file.
34170         * modules/unistdio/u16-vasnprintf: New file.
34171         * modules/unistdio/u16-vasprintf: New file.
34172         * modules/unistdio/u16-vsnprintf: New file.
34173         * modules/unistdio/u16-vsprintf: New file.
34174         * modules/unistdio/u16-u16-asnprintf: New file.
34175         * modules/unistdio/u16-u16-asprintf: New file.
34176         * modules/unistdio/u16-u16-snprintf: New file.
34177         * modules/unistdio/u16-u16-sprintf: New file.
34178         * modules/unistdio/u16-u16-vasnprintf: New file.
34179         * modules/unistdio/u16-u16-vasprintf: New file.
34180         * modules/unistdio/u16-u16-vsnprintf: New file.
34181         * modules/unistdio/u16-u16-vsprintf: New file.
34182         * modules/unistdio/u32-asnprintf: New file.
34183         * modules/unistdio/u32-asprintf: New file.
34184         * modules/unistdio/u32-printf-parse: New file.
34185         * modules/unistdio/u32-snprintf: New file.
34186         * modules/unistdio/u32-sprintf: New file.
34187         * modules/unistdio/u32-vasnprintf: New file.
34188         * modules/unistdio/u32-vasprintf: New file.
34189         * modules/unistdio/u32-vsnprintf: New file.
34190         * modules/unistdio/u32-vsprintf: New file.
34191         * modules/unistdio/u32-u32-asnprintf: New file.
34192         * modules/unistdio/u32-u32-asprintf: New file.
34193         * modules/unistdio/u32-u32-snprintf: New file.
34194         * modules/unistdio/u32-u32-sprintf: New file.
34195         * modules/unistdio/u32-u32-vasnprintf: New file.
34196         * modules/unistdio/u32-u32-vasprintf: New file.
34197         * modules/unistdio/u32-u32-vsnprintf: New file.
34198         * modules/unistdio/u32-u32-vsprintf: New file.
34199         * modules/unistdio/ulc-asnprintf-tests: New file.
34200         * modules/unistdio/ulc-vasnprintf-tests: New file.
34201         * modules/unistdio/ulc-vasprintf-tests: New file.
34202         * modules/unistdio/ulc-vsnprintf-tests: New file.
34203         * modules/unistdio/ulc-vsprintf-tests: New file.
34204         * modules/unistdio/u8-asnprintf-tests: New file.
34205         * modules/unistdio/u8-vasnprintf-tests: New file.
34206         * modules/unistdio/u8-vasprintf-tests: New file.
34207         * modules/unistdio/u8-vsnprintf-tests: New file.
34208         * modules/unistdio/u8-vsprintf-tests: New file.
34209         * modules/unistdio/u16-asnprintf-tests: New file.
34210         * modules/unistdio/u16-vasnprintf-tests: New file.
34211         * modules/unistdio/u16-vasprintf-tests: New file.
34212         * modules/unistdio/u16-vsnprintf-tests: New file.
34213         * modules/unistdio/u16-vsprintf-tests: New file.
34214         * modules/unistdio/u32-asnprintf-tests: New file.
34215         * modules/unistdio/u32-vasnprintf-tests: New file.
34216         * modules/unistdio/u32-vasprintf-tests: New file.
34217         * modules/unistdio/u32-vsnprintf-tests: New file.
34218         * modules/unistdio/u32-vsprintf-tests: New file.
34219         * MODULES.html.sh (Unicode string functions): Add the new modules.
34220
34221 2007-07-01  Bruno Haible  <bruno@clisp.org>
34222
34223         * lib/sprintf.c (sprintf): Limit the available length estimation,
34224         to avoid address wraparound.
34225         * lib/vsprintf.c (vsprintf): Likewise.
34226         * modules/sprintf-posix (Dependencies): Add stdint.
34227         * modules/vsprintf-posix (Dependencies): Likewise.
34228
34229 2007-07-01  Bruno Haible  <bruno@clisp.org>
34230
34231         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
34232         Windows PATH as well. Conservative double-quoting. Comments.
34233
34234 2007-07-01  Bruno Haible  <bruno@clisp.org>
34235             Eric Blake  <ebb9@byu.net>
34236             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34237
34238         * gnulib-tool (self_abspathname): Fix algorithm to cope with
34239         empty components in $PATH, denoting '.'.
34240
34241 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34242
34243         * gnulib-tool: Fix indentation.
34244         (func_create_megatestdir): Likewise.
34245         Report by Bruno Haible.
34246
34247 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34248
34249         Sync from Automake.
34250         * build-aux/gnupload: Fix shell portability issues with for loops.
34251         Report by Karl Berry.
34252
34253 2007-06-29  Simon Josefsson  <simon@josefsson.org>
34254
34255         * build-aux/maint.mk (POURL): Use translationproject.org.
34256
34257 2007-06-27  Simon Josefsson  <simon@josefsson.org>
34258             Bruno Haible  <bruno@clisp.org>
34259
34260         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
34261         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
34262         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
34263         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
34264         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
34265
34266 2007-06-27  Bruno Haible  <bruno@clisp.org>
34267
34268         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
34269         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
34270
34271 2007-06-26  Karl Berry  <karl@gnu.org>
34272
34273         * MODULES.html.sh: remove xreadlink-with-size.
34274
34275 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34276
34277         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
34278         method that I hope also handles the double-include problem noted
34279         by Bruno Haible in
34280         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
34281
34282 2007-06-23  Bruno Haible  <bruno@clisp.org>
34283
34284         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34285         Don't let the 'mostlyclean' target fail if the last subdirectory could
34286         not be removed.
34287         Reported by Karl Berry.
34288
34289 2007-06-23  Bruno Haible  <bruno@clisp.org>
34290
34291         * gnulib-tool (echo): Add a speedier workaround for ksh.
34292         * tests/test-echo.sh: Likewise.
34293
34294 2007-06-23  Bruno Haible  <bruno@clisp.org>
34295
34296         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
34297         * tests/test-echo.sh: Likewise.
34298
34299 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34300
34301         * gnulib-tool (IFS): Initialize early, so we don't set it to
34302         empty later.
34303         (self_abspathname): Rewrite algorithm to set it, reindent.
34304         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
34305         (func_create_megatestdir): Merge some sed scripts.
34306
34307 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34308
34309         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
34310         exposed by Sun Studio 11 cc on Solaris 8.
34311
34312 2007-06-22  Bruno Haible  <bruno@clisp.org>
34313
34314         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34315         backslashes.
34316         * tests/test-echo.sh: New file.
34317
34318 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34319
34320         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34321         simplify `sed_replace_build_aux' scripts, they are portable but
34322         echoing them with `echo' is not.
34323         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34324
34325 2007-06-21  Karl Berry  <karl@gnu.org>
34326
34327         * config/srclist.txt: guess we can't handle the licenses via
34328         srclist at the moment.
34329
34330 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34331
34332         * MODULES.html.sh: Add include_next.
34333         * modules/include_next: New file.
34334
34335 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34336
34337         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34338         INCLUDE_NEXT.
34339         (gl_CHECK_NEXT_HEADERS): New macro.
34340         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34341         the obsolescent gl_ABSOLUTE_HEADER.
34342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34343         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34344         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34345         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34346         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34347         * m4/math_h.m4 (gl_MATH_H): Likewise.
34348         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34349         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34350         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34351         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34352         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34353         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34354         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34355         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34356         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34357         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34358         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34359         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34360         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34361         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34362         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34363         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34364         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34365         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34366         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34367         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34368         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34369         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34370         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34371         * lib/float_.h: Likewise.
34372         * lib/inttypes_.h: Likewise.
34373         * lib/math_.h: Likewise.
34374         * lib/search_.h: Likewise.
34375         * lib/signal_.h: Likewise.
34376         * lib/stdint_.h: Likewise.
34377         * lib/stdio_.h: Likewise.
34378         * lib/stdlib_.h: Likewise.
34379         * lib/string_.h: Likewise.
34380         * lib/sys_stat_.h: Likewise.
34381         * lib/sys_time_.h: Likewise.
34382         * lib/time_.h: Likewise.
34383         * lib/unistd_.h: Likewise.
34384         * lib/wchar_.h: Likewise.
34385         * lib/wctype_.h: Likewise.
34386         * lib/dirent_.h: Likewise.
34387         * lib/iconv_.h: Likewise.
34388         * lib/locale_.h: Likewise.
34389         * lib/netinet_in_.h: Likewise.
34390         * lib/sys_select_.h: Likewise.
34391         * lib/sys_socket_.h: Likewise.
34392         * lib/sysexits_.h: Likewise.
34393         * modules/fcntl (Depends-on): Depend on include_next, not
34394         absolute_header.
34395         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34396         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34397         * modules/fchdir: Likewise.
34398         * modules/float: Likewise.
34399         * modules/iconv_open: Likewise.
34400         * modules/inttypes: Likewise.
34401         * modules/locale: Likewise.
34402         * modules/math: Likewise.
34403         * modules/netinet_in: Likewise.
34404         * modules/search: Likewise.
34405         * modules/signal: Likewise.
34406         * modules/stdint: Likewise.
34407         * modules/stdio: Likewise.
34408         * modules/stdlib: Likewise.
34409         * modules/string: Likewise.
34410         * modules/sys_select: Likewise.
34411         * modules/sys_socket: Likewise.
34412         * modules/sys_stat: Likewise.
34413         * modules/sys_time: Likewise.
34414         * modules/sysexits: Likewise.
34415         * modules/time: Likewise.
34416         * modules/unistd: Likewise.
34417         * modules/wchar: Likewise.
34418         * modules/wctype: Likewise.
34419         * modules/sys_stat: Change maintainer to "all".
34420         * modules/unistd: Likewise.
34421
34422 2007-06-20  Karl Berry  <karl@gnu.org>
34423
34424         * config/srclist.txt: track www changes in license files.
34425
34426 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34427
34428         * build-aux/bootstrap: Remove stray dot.
34429         Make sure build_aux settings are honored when linking
34430         gnulib_extra_files.
34431
34432 2007-06-19  Eric Blake  <ebb9@byu.net>
34433
34434         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34435         Allow compilation on cygwin.
34436
34437 2007-06-19  Jim Meyering  <jim@meyering.net>
34438
34439         xreadlink-with-size: Remove module.  No longer used.
34440         Ex-callers now use xreadlink or mreadlink-with-size.
34441         * modules/xreadlink-with-size: Remove module.
34442         * lib/xreadlink-with-size.c: Remove file.
34443         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34444         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34445         just before the function definition *is* accurate.
34446
34447         Eliminate one way canonicalize_filename_mode could exit.
34448         * lib/canonicalize.c (canonicalize_filename_mode):
34449         Use mreadlink_with_size, not xreadlink_with_size.
34450
34451 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34452
34453         Detect porting problems to FreeBSD/arm, which has time_t wider than
34454         long int.  Original problem reported for GNU diff by Xin Li in
34455         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34456         * modules/getdate (Depends-on): Add intprops, verify.
34457         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34458         is an integer type no wider than long int.
34459
34460 2007-06-18  Jim Meyering  <jim@meyering.net>
34461
34462         New module: mreadlink-with-size.
34463         * MODULES.html.sh: Add mreadlink-with-size.
34464         * modules/mreadlink-with-size: New module
34465         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34466         not xreadlink-with-size.
34467         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34468
34469 2007-06-16  Bruno Haible  <bruno@clisp.org>
34470
34471         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34472         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34473         Reported by Gary V. Vaughan <gary@gnu.org>.
34474
34475 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34476
34477         Revamp lchown so that it lives in unistd.h where it belongs.
34478         * lib/lchown.h: Remove.
34479         * lib/dirchownmod.c: Don't include lib/lchown.h.
34480         * lib/fchownat.c: Likewise.
34481         * lib/openat.c: Likewise.
34482         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34483         does not follow symlinks.
34484         (EOPNOTSUPP): Define if not defined.
34485         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34486         is defined to 0.
34487         (lchown): New decl.
34488         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34489         Do not check for lchown decl.
34490         Set REPLACE_LCHOWN.
34491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34492         REPLACE_LCHOWN.
34493         * modules/chown: Make it clear it follows symlinks.
34494         * modules/lchown: Make it clear it doesn't follow symlinks.
34495         (Files): Remove lib/lchown.h
34496         (Depends-on): Add unistd.
34497         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34498         (Include): Include <unistd.h>, not "lchown.h".
34499         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34500         REPLACE_LCHOWN.
34501
34502 2007-06-15  Jim Meyering  <jim@meyering.net>
34503
34504         Change license (GPL to LGPL) of fsusage and dependents.
34505         * modules/fsusage (License): Change to LGPL.
34506         * modules/full-read (License): Likewise.
34507         * modules/full-write (License): Likewise.
34508         * modules/safe-read (License): Likewise.
34509         * modules/safe-write (License): Likewise.
34510
34511 2007-06-14  Ben Pfaff  <blp@gnu.org>
34512
34513         Missing part of allocsa -> malloca transition.
34514         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34515         gl_MALLOCA.
34516
34517 2007-06-12  Bruno Haible  <bruno@clisp.org>
34518
34519         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34520         to ia64, x86_64, i386.
34521         Reported by Eric Blake.
34522
34523 2007-06-12  Bruno Haible  <bruno@clisp.org>
34524
34525         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34526         cross-compiling to x86_64.
34527
34528 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34529
34530         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34531         glitch reported by Ralf Wildenhues in
34532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34533
34534         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34535         Vin Shelton.
34536
34537 2007-06-11  Bruno Haible  <bruno@clisp.org>
34538
34539         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34540         replacement string.
34541         Reported by Eric Blake.
34542
34543 2007-06-10  Bruno Haible  <bruno@clisp.org>
34544
34545         Prepare vasnprintf code for use with Unicode strings.
34546         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34547         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34548         TYPE_U32_STRING.
34549         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34550         a_u32_string variants.
34551         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34552         * lib/printf-args.c: Don't include config.h and the specification
34553         header if PRINTF_FETCHARGS is already defined.
34554         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34555         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34556         TYPE_U16_STRING, TYPE_U32_STRING.
34557         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34558         u16_directive, u16_directives, u32_directive, u32_directives): New
34559         types.
34560         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34561         New declarations.
34562         * lib/printf-parse.c: Don't include config.h and the specification
34563         header if PRINTF_PARSE is already defined. Eliminate the set of
34564         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34565         them now. Include c-ctype.h.
34566         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34567         directive and CHAR_T_ONLY_ASCII.
34568         * lib/vasnprintf.c: Don't include config.h and the specification header
34569         if VASNPRINTF is already defined.
34570         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34571         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34572         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34573         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34574         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34575         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34576         code accordingly.
34577         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34578         pad_ourselves also in this case, with the 'c' and 's' directives, and
34579         with a different notion of "width".
34580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34581
34582 2007-06-10  Bruno Haible  <bruno@clisp.org>
34583
34584         * modules/unistr/u32-mbsnlen: New file.
34585         * lib/unistr/u32-mbsnlen.c: New file.
34586
34587         * modules/unistr/u16-mbsnlen: New file.
34588         * lib/unistr/u16-mbsnlen.c: New file.
34589
34590         * modules/unistr/u8-mbsnlen: New file.
34591         * lib/unistr/u8-mbsnlen.c: New file.
34592
34593         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34594         declarations.
34595
34596 2007-06-10  Bruno Haible  <bruno@clisp.org>
34597
34598         * lib/string_.h (mbsnlen): New declaration.
34599         * lib/mbsnlen.c: New file.
34600         * m4/mbsnlen.m4: New file.
34601         * modules/mbsnlen: New file.
34602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34603         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34604         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34605
34606 2007-06-10  Bruno Haible  <bruno@clisp.org>
34607
34608         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34609
34610 2007-06-10  Bruno Haible  <bruno@clisp.org>
34611
34612         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34613         * lib/mbuiter.h: Likewise.
34614
34615 2007-06-10  Bruno Haible  <bruno@clisp.org>
34616
34617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34618         declaration.
34619
34620 2007-06-10  Karl Berry  <karl@gnu.org>
34621
34622         * config/srclist.txt: remove gettext entries, Bruno prefers
34623         to update individually.
34624
34625 2007-06-10  Bruno Haible  <bruno@clisp.org>
34626
34627         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34628         'maxlen'. Ensure only length + width bytes are allocated, not
34629         length + 1 + width.
34630
34631 2007-06-09  Bruno Haible  <bruno@clisp.org>
34632
34633         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34634         (CHAR_T): Remove macro.
34635         (VASNPRINTF): Update.
34636
34637 2007-06-09  Bruno Haible  <bruno@clisp.org>
34638
34639         * MODULES.html.sh (Unicode string functions): Add the new modules.
34640
34641         * modules/uniconv/u32-conv-to-enc: New file.
34642         * lib/uniconv/u32-conv-to-enc.c: New file.
34643         * modules/uniconv/u32-conv-to-enc-tests: New file.
34644         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34645
34646         * modules/uniconv/u16-conv-to-enc: New file.
34647         * lib/uniconv/u16-conv-to-enc.c: New file.
34648         * lib/uniconv/u-conv-to-enc.h: New file.
34649         * modules/uniconv/u16-conv-to-enc-tests: New file.
34650         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34651
34652         * modules/uniconv/u8-conv-to-enc: New file.
34653         * lib/uniconv/u8-conv-to-enc.c: New file.
34654         * modules/uniconv/u8-conv-to-enc-tests: New file.
34655         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34656
34657         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34658         u32_conv_to_encoding): New declarations.
34659
34660 2007-06-09  Bruno Haible  <bruno@clisp.org>
34661
34662         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34663
34664 2007-06-09  Bruno Haible  <bruno@clisp.org>
34665
34666         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34667         * modules/malloca: Renamed from modules/allocsa, updated.
34668         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34669         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34670         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34671         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34672         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34673         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34674         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34675         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34676         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34677         * modules/c-strcasestr (Depends-on): Update.
34678         * lib/c-strcasestr.c: Update.
34679         * modules/c-strstr (Depends-on): Update.
34680         * lib/c-strstr.c: Update.
34681         * modules/canonicalize-lgpl (Depends-on): Update.
34682         * lib/canonicalize-lgpl.c: Update.
34683         * modules/clean-temp (Depends-on): Update.
34684         * lib/clean-temp.c: Update.
34685         * modules/csharpcomp (Depends-on): Update.
34686         * lib/csharpcomp.c: Update.
34687         * modules/csharpexec (Depends-on): Update.
34688         * lib/csharpexec.c: Update.
34689         * modules/javacomp (Depends-on): Update.
34690         * lib/javacomp.c: Update.
34691         * modules/javaexec (Depends-on): Update.
34692         * lib/javaexec.c: Update.
34693         * modules/mbscasestr (Depends-on): Update.
34694         * lib/mbscasestr.c: Update.
34695         * modules/mbsstr (Depends-on): Update.
34696         * lib/mbsstr.c: Update.
34697         * modules/setenv (Depends-on): Update.
34698         * lib/setenv.c: Update.
34699         * modules/strcasestr (Depends-on): Update.
34700         * lib/strcasestr.c: Update.
34701         * modules/striconveha (Depends-on): Update.
34702         * lib/striconveha.c: Update.
34703         * modules/relocatable-prog-wrapper (Files): Update.
34704         * lib/relocwrapper.c: Update.
34705         * build-aux/install-reloc: Update.
34706         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34707
34708 2007-06-08  Bruno Haible  <bruno@clisp.org>
34709
34710         Port to uClibc.
34711         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34712         * lib/fpurge.c (fpurge): Likewise.
34713         * lib/freading.c (freading): Likewise.
34714         * lib/fseeko.c (rpl_fseeko): Likewise.
34715         * lib/fseterr.c (fseterr): Likewise.
34716         * lib/fwriting.c (fwriting): Likewise.
34717         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34718
34719 2007-06-08  Bruno Haible  <bruno@clisp.org>
34720
34721         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34722         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34723         * modules/gettext (Files): Add m4/intlmacosx.m4.
34724
34725 2007-06-07  Bruno Haible  <bruno@clisp.org>
34726
34727         * modules/localename-tests: New file.
34728         * tests/test-localename.c: New file.
34729
34730         New module 'localename'.
34731         * lib/localename.h: New file.
34732         * lib/localename.c: New file, from GNU gettext.
34733         * m4/localename.m4: New file.
34734         * modules/localename: New file.
34735
34736 2007-06-07  Bruno Haible  <bruno@clisp.org>
34737
34738         Work around the lack of <wchar.h> on some builds of uClibc.
34739         * doc/headers/wchar.texi: Update.
34740         * lib/wchar_.h: Include <wchar.h> only if it exists.
34741         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34742         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34743         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34744         doesn't exist.
34745         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34746         * modules/mbfile (Depends-on): Add wchar.
34747         * modules/mbiter (Depends-on): Likewise.
34748         * modules/mbuiter (Depends-on): Likewise.
34749         Reported by Simon Josefsson.
34750
34751 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34752
34753         Work around problem reported by Steven M. Schweda in
34754         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34755         Tru64 5.1B with the Compaq compiler environment installed declares
34756         an 'isblank' function but does not define it in the C library.
34757         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34758         * lib/regex_internal.h (isblank): Likewise.
34759         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34760         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34761
34762 2007-06-05  Bruno Haible  <bruno@clisp.org>
34763
34764         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34765         ia64.
34766         * modules/printf-safe: New file.
34767         * modules/fprintf-posix (Depends-on): Add printf-safe.
34768         * modules/printf-posix (Depends-on): Likewise.
34769         * modules/snprintf-posix (Depends-on): Likewise.
34770         * modules/sprintf-posix (Depends-on): Likewise.
34771         * modules/vasnprintf-posix (Depends-on): Likewise.
34772         * modules/vasprintf-posix (Depends-on): Likewise.
34773         * modules/vfprintf-posix (Depends-on): Likewise.
34774         * modules/vprintf-posix (Depends-on): Likewise.
34775         * modules/vsnprintf-posix (Depends-on): Likewise.
34776         * modules/vsprintf-posix (Depends-on): Likewise.
34777         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34778         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34779         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34780         "no" on i386, x86_64, ia64.
34781         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34782         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34783         on i386, x86_64, ia64.
34784         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34785         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34786         on i386, x86_64, ia64.
34787         * tests/test-vasnprintf-posix.c: Include float.h.
34788         (LDBL80_WORDS): New macro.
34789         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34790         on i386, x86_64, ia64.
34791         * tests/test-vasprintf-posix.c: Include float.h.
34792         (LDBL80_WORDS): New macro.
34793         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34794         on i386, x86_64, ia64.
34795         * tests/test-snprintf-posix.c: Include float.h.
34796         * tests/test-sprintf-posix.c: Likewise.
34797         * tests/test-vsnprintf-posix.c: Likewise.
34798         * tests/test-vsprintf-posix.c: Likewise.
34799
34800 2007-06-05  Bruno Haible  <bruno@clisp.org>
34801
34802         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34803         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34804         non-IEEE numbers on i386, x86_64, ia64.
34805         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34806         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34807         * tests/test-isnanl.h: Include float.h.
34808         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34809
34810 2007-06-05  Bruno Haible  <bruno@clisp.org>
34811
34812         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34813         also the %a / %A. Handle the %a / %A code before this extra handling.
34814
34815 2007-06-05  Bruno Haible  <bruno@clisp.org>
34816
34817         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34818         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34819
34820 2007-06-05  Bruno Haible  <bruno@clisp.org>
34821
34822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34823         typo in variable name.
34824
34825 2007-06-05  Eric Blake  <ebb9@byu.net>
34826
34827         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34828         Reported by Simon Josefsson.
34829
34830 2007-06-04  Bruno Haible  <bruno@clisp.org>
34831
34832         Avoid test failures on some PowerPC platforms.
34833         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34834         Define differently for PowerPC.
34835         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34836         Reported by Gary V. Vaughan <gary@gnu.org>.
34837
34838 2007-06-02  Bruno Haible  <bruno@clisp.org>
34839
34840         Fix test-stdint failure on FreeBSD/ia64.
34841         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34842         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34843         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34844         * doc/headers/stdint.texi: Update.
34845
34846 2007-06-01  Bruno Haible  <bruno@clisp.org>
34847
34848         * tests/test-binary-io.c (main): Pass a third argument to open().
34849         Reported by Gary V. Vaughan <gary@gnu.org>.
34850
34851 2007-06-01  Bruno Haible  <bruno@clisp.org>
34852
34853         * doc/functions/frexpl.texi: Update for mingw.
34854
34855 2007-06-01  Bruno Haible  <bruno@clisp.org>
34856
34857         * tests/test-lseek.c (main): Disable test of errno for invalid third
34858         argument.
34859         * doc/functions/lseek.texi: Update.
34860         Reported by Gary V. Vaughan <gary@gnu.org>.
34861
34862 2007-05-28  Bruno Haible  <bruno@clisp.org>
34863
34864         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34865
34866 2007-05-31  Eric Blake  <ebb9@byu.net>
34867
34868         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34869         cross compiling.
34870
34871 2007-05-30  Eric Blake  <ebb9@byu.net>
34872         and Bruno Haible  <bruno@clisp.org>
34873
34874         Work around mingw test failures exposed by m4-1.4.9b.
34875         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34876         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34877         moment.
34878
34879 2007-05-30  Bruno Haible  <bruno@clisp.org>
34880
34881         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34882         assuming that they are closed. Needed on HP-UX 11.
34883
34884 2007-05-29  Bruno Haible  <bruno@clisp.org>
34885
34886         Fix a problem with #include_next.
34887         * lib/dirent_.h: Split the double-inclusion guard.
34888         * lib/fcntl_.h: Likewise.
34889         * lib/float_.h: Likewise.
34890         * lib/iconv_.h: Likewise.
34891         * lib/inttypes_.h: Likewise.
34892         * lib/locale_.h: Likewise.
34893         * lib/math_.h: Likewise.
34894         * lib/netinet_in_.h: Likewise.
34895         * lib/search_.h: Likewise.
34896         * lib/signal_.h: Likewise.
34897         * lib/stdint_.h: Likewise.
34898         * lib/stdio_.h: Likewise.
34899         * lib/stdlib_.h: Likewise.
34900         * lib/string_.h: Likewise.
34901         * lib/sys_select_.h: Likewise.
34902         * lib/sys_socket_.h: Likewise.
34903         * lib/sys_stat_.h: Likewise.
34904         * lib/sys_time_.h: Likewise.
34905         * lib/sysexits_.h: Likewise.
34906         * lib/time_.h: Likewise.
34907         * lib/unistd_.h: Likewise.
34908         * lib/wchar_.h: Likewise.
34909         * lib/wctype_.h: Likewise.
34910
34911 2007-05-29  Bruno Haible  <bruno@clisp.org>
34912
34913         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34914         for the moment.
34915
34916 2007-05-29  Bruno Haible  <bruno@clisp.org>
34917
34918         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34919         invocation.
34920         Reported by Eric Blake.
34921
34922 2007-05-29  Bruno Haible  <bruno@clisp.org>
34923
34924         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34925         compiling case.
34926
34927 2007-05-29  Eric Blake  <ebb9@byu.net>
34928             Bruno Haible  <bruno@clisp.org>
34929
34930         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34931         cross compiles.
34932
34933 2007-05-28  Eric Blake  <ebb9@byu.net>
34934
34935         * modules/closein-tests (test_closein_LDADD): Support test on
34936         cygwin with libtool.
34937
34938 2007-05-28  Bruno Haible  <bruno@clisp.org>
34939
34940         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34941         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34942         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34943         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34944         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34945         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34946         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34947         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34948         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34949
34950 2007-05-28  Eric Blake  <ebb9@byu.net>
34951
34952         Unconditionally include <config.h> in unit tests.
34953         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34954         * tests/test-allocsa.c, tests/test-arcfour.c,
34955         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34956         tests/test-array_list.c, tests/test-array_oset.c,
34957         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34958         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34959         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34960         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34961         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34962         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34963         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34964         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34965         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34966         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34967         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34968         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34969         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34970         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34971         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34972         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34973         test-md5.c, test-memmem.c, test-printf-posix.c,
34974         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34975         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34976         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34977         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34978         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34979         test-vasnprintf-posix2.c, test-vasnprintf.c,
34980         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34981         test-vfprintf-posix.c, test-vprintf-posix.c,
34982         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34983         test-xvasprintf.c: Likewise.
34984
34985 2007-05-28  Bruno Haible  <bruno@clisp.org>
34986
34987         * gnulib-tool (func_import): Remember the --with-tests command-line
34988         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34989         Reported by Eric Blake.
34990
34991 2007-05-28  Bruno Haible  <bruno@clisp.org>
34992
34993         * modules/ftell-tests: New file.
34994         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34995         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34996
34997         * lib/ftell.c: New file.
34998         * modules/ftell: New file.
34999         * m4/ftell.m4: New file.
35000         * doc/functions/ftell.texi: Update.
35001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
35002         REPLACE_FTELL.
35003         * lib/stdio_.h (rpl_ftell): New declaration.
35004         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
35005         REPLACE_FTELL.
35006
35007 2007-05-28  Eric Blake  <ebb9@byu.net>
35008
35009         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
35010
35011 2007-05-28  Bruno Haible  <bruno@clisp.org>
35012
35013         * modules/fseek-tests: New file.
35014         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
35015         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
35016
35017         * lib/fseek.c: New file.
35018         * modules/fseek: New file.
35019         * m4/fseek.m4: New file.
35020         * doc/functions/fseek.texi: Update.
35021         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
35022         REPLACE_FSEEK.
35023         * lib/stdio_.h (rpl_fseek): New declaration.
35024         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
35025         REPLACE_FSEEK.
35026
35027 2007-05-28  Bruno Haible  <bruno@clisp.org>
35028
35029         * lib/stdio_.h (fflush): More comments.
35030
35031 2007-05-28  Bruno Haible  <bruno@clisp.org>
35032
35033         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
35034         runtime test.
35035
35036 2007-05-28  Eric Blake  <ebb9@byu.net>
35037
35038         Improve lseek module.
35039         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
35040         * lib/unistd_.h (lseek): Scale back link warning message.
35041         * tests/test-lseek.c: Beef up test.
35042         * tests/test-lseek.sh: Exercise more facets of lseek.
35043         Reported by Bruno Haible.
35044
35045 2007-05-28  Bruno Haible  <bruno@clisp.org>
35046
35047         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
35048         to define.
35049
35050 2007-05-27  Bruno Haible  <bruno@clisp.org>
35051
35052         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
35053
35054 2007-05-27  Bruno Haible  <bruno@clisp.org>
35055
35056         * modules/openmp: New file.
35057         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
35058         Noah Misch.
35059
35060 2007-05-26  Bruno Haible  <bruno@clisp.org>
35061
35062         * modules/chdir-long (Depends-on): Add fchdir.
35063         * modules/chdir-safer (Depends-on): Likewise.
35064         * modules/fts (Depends-on): Likewise.
35065         * modules/fts-lgpl (Depends-on): Likewise.
35066         * modules/openat (Depends-on): Likewise.
35067         * modules/savewd (Depends-on): Likewise.
35068
35069 2007-05-24  Eric Blake  <ebb9@byu.net>
35070
35071         Fix lseek on mingw.
35072         * modules/lseek: New module.
35073         * m4/lseek.m4: New file.
35074         * lib/lseek.c: New file.
35075         * modules/lseek-tests: New file.
35076         * tests/test-lseek.c: New file.
35077         * tests/test-lseek.sh: New file.
35078         * MODULES.html.sh: Document lseek module.
35079         * modules/fflush (Depends-on): Add lseek, fseeko.
35080         * modules/fseeko (Depends-on): Likewise.
35081         * modules/ftello (Depends-on): Likewise.
35082         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
35083         broken.
35084         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
35085         broken.
35086         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
35087         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
35088         * lib/ftello.c (rpl_ftello): Likewise.
35089         * tests/test-fseeko.c (main): Test this.
35090         * tests/test-fseeko.sh: Likewise.
35091         * tests/test-ftello.c (main): Likewise.
35092         * tests/test-ftello.sh: Likewise.
35093         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
35094         implies replacing fseek.
35095         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
35096         HAVE_FTELLO.
35097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
35098         * modules/unistd (Makefile.am): Likewise.
35099         * lib/unistd_.h (lseek): Declare a replacement.
35100         * doc/functions/lseek.texi (lseek): Document this fix.
35101         * doc/functions/fseek.texi (fseek): Likewise.
35102         * doc/functions/ftell.texi (ftell): Likewise.
35103
35104 2007-05-24  Bruno Haible  <bruno@clisp.org>
35105
35106         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
35107         in the printed representation of a NaN.
35108         * tests/test-vasprintf-posix.c (test_function): Likewise.
35109         * tests/test-snprintf-posix.h (test_function): Likewise.
35110         * tests/test-sprintf-posix.h (test_function): Likewise.
35111         Reported by Eric Blake.
35112
35113 2007-05-23  Eric Blake  <ebb9@byu.net>
35114
35115         Fix fseeko/ftello on cygwin 1.5.24.
35116         * doc/functions/fseeko.texi (fseeko): Document the fix.
35117         * doc/functions/ftello.texi (ftello): Document the fix.
35118         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
35119         * doc/functions/stdout.text (stdout): New file.
35120         * doc/functions/stderr.text (stderr): New file.
35121         * doc/gnulib.texi (Function Substitutes): Use new files.
35122         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
35123         prior to 1.7.0.
35124         * tests/test-ftello.c (main): Likewise for ftello.
35125         * tests/test-fseeko.sh: New file.
35126         * tests/test-ftello.sh: New file.
35127         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
35128         with seekable stdin.
35129         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
35130         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
35131         (gl_REPLACE_FSEEKO): New macro.
35132         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
35133         * modules/fseeko (Files): Distribute fseeko.c.
35134         * modules/ftello (Files): Distribute ftello.c.
35135         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
35136         mode.
35137         * lib/ftello.c (rpl_ftello): New file.
35138         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
35139         fseeko, ftello.
35140         (gl_STDIN_LARGE_OFFSET): New macro.
35141         * modules/stdio (Makefile.am): Perform the replacement.
35142         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
35143
35144 2007-05-23  Bruno Haible  <bruno@clisp.org>
35145
35146         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
35147         GNULIB_POSIXCHECK is defined.
35148
35149 2007-05-21  Bruno Haible  <bruno@clisp.org>
35150
35151         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
35152         Check also the output for NaN arguments. When cross-compiling, guess
35153         no on IRIX.
35154         * lib/vasnprintf.c: Update comments.
35155         * tests/test-vasnprintf-posix.c (strisnan): New function.
35156         (test_function): Use it.
35157         * tests/test-vasprintf-posix.c (strisnan): New function.
35158         (test_function): Use it.
35159         * tests/test-snprintf-posix.h (strisnan): New function.
35160         (test_function): Use it.
35161         * tests/test-sprintf-posix.h (strisnan): New function.
35162         (test_function): Use it.
35163         Reported by Eric Blake.
35164
35165 2007-05-20  Bruno Haible  <bruno@clisp.org>
35166
35167         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
35168         numbers that fails on BeOS.
35169         * doc/functions/frexpl.texi: Update.
35170
35171 2007-05-20  Jim Meyering  <jim@meyering.net>
35172
35173         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
35174         forced upon us by glibc-2.6.
35175
35176 2007-05-20  Bruno Haible  <bruno@clisp.org>
35177
35178         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
35179         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
35180         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
35181         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
35182         NEED_PRINTF_INFINITE.
35183         (is_infinitel): New function.
35184         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
35185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
35186         gl_PREREQ_VASNPRINTF_INFINITE.
35187         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
35188         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35189         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
35190         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
35191         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
35192         gl_PREREQ_VASNPRINTF_INFINITE.
35193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35194         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35195         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35196         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35197         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35198         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35199         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35200         * doc/functions/fprintf.texi: Update.
35201         * doc/functions/printf.texi: Update.
35202         * doc/functions/snprintf.texi: Update.
35203         * doc/functions/sprintf.texi: Update.
35204         * doc/functions/vfprintf.texi: Update.
35205         * doc/functions/vprintf.texi: Update.
35206         * doc/functions/vsnprintf.texi: Update.
35207         * doc/functions/vsprintf.texi: Update.
35208
35209 2007-05-20  Bruno Haible  <bruno@clisp.org>
35210
35211         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
35212         was not found in libc.
35213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
35214
35215 2007-05-20  Bruno Haible  <bruno@clisp.org>
35216
35217         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35218         printed as "-nan" instead of "nan".
35219         * tests/test-vasprintf-posix.c (test_function): Likewise.
35220         * tests/test-snprintf-posix.h (test_function): Likewise.
35221         * tests/test-sprintf-posix.h (test_function): Likewise.
35222         Needed for HP-UX 11.
35223
35224 2007-05-20  Jim Meyering  <jim@meyering.net>
35225
35226         Fix buggy test for the fchownat-deref bug.
35227         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
35228         symlink required for the run-test.  Without it, this test would
35229         always declare that fchownat doesn't work, and client code would
35230         unnecessarily use the replacement function with fixed libc.
35231         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
35232         Reported by Greg Schafer.
35233
35234 2007-05-19  Bruno Haible  <bruno@clisp.org>
35235
35236         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
35237         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
35238         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
35239         Needed for IRIX 6.5 and Solaris 2.5.1.
35240
35241 2007-05-19  Bruno Haible  <bruno@clisp.org>
35242
35243         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
35244         (test_function): Skip tests involving -0.0 on platforms where
35245         -0.0 = 0.0.
35246         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
35247         (test_function): Skip tests involving -0.0 on platforms where
35248         -0.0 = 0.0.
35249         * tests/test-snprintf-posix.h (have_minus_zero): New function.
35250         (test_function): Skip tests involving -0.0 on platforms where
35251         -0.0 = 0.0.
35252         * tests/test-sprintf-posix.h (have_minus_zero): New function.
35253         (test_function): Skip tests involving -0.0 on platforms where
35254         -0.0 = 0.0.
35255         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
35256         tests.
35257         * tests/test-printf-posix.h (test_function): Likewise.
35258         * tests/test-printf-posix.output: Remove all -0.0 related results.
35259         Needed for IRIX 6.5.
35260
35261 2007-05-19  Bruno Haible  <bruno@clisp.org>
35262
35263         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35264         printed as "nan0x7fffffff" instead of "nan".
35265         * tests/test-vasprintf-posix.c (test_function): Likewise.
35266         * tests/test-snprintf-posix.h (test_function): Likewise.
35267         * tests/test-sprintf-posix.h (test_function): Likewise.
35268         * tests/test-fprintf-posix.h (NaN): Remove macro.
35269         (test_function): Remove all NaN related tests.
35270         * tests/test-printf-posix.h (NaN): Remove macro.
35271         (test_function): Remove all NaN related tests.
35272         * tests/test-printf-posix.output: Remove all NaN related results.
35273         Needed for IRIX 6.5.
35274
35275 2007-05-19  Bruno Haible  <bruno@clisp.org>
35276
35277         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
35278         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
35279
35280 2007-05-19  Bruno Haible  <bruno@clisp.org>
35281
35282         * lib/float_.h: New file.
35283         * m4/float_h.m4: New file.
35284         * modules/float: New file.
35285         * modules/isnanl (Dependencies): Add float.
35286         * modules/isnanl-nolibm (Dependencies): Likewise.
35287         * modules/mathl (Dependencies): Likewise.
35288         * modules/printf-frexpl (Dependencies): Likewise.
35289         * modules/signbit (Dependencies): Likewise.
35290         * modules/vasnprintf (Dependencies): Likewise.
35291         * doc/headers/float.texi: Update.
35292
35293 2007-05-19  Jim Meyering  <jim@meyering.net>
35294
35295         * lib/utimens.c (gl_futimens): Rename from futimens,
35296         now that glibc-2.6 declares futimens.
35297         * lib/utimens.h: Likewise.
35298
35299 2007-05-19  Bruno Haible  <bruno@clisp.org>
35300
35301         Avoid test failures on mingw.
35302         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
35303         * tests/test-printf-posix.sh: Likewise.
35304         * tests/test-vfprintf-posix.sh: Likewise.
35305         * tests/test-vprintf-posix.sh: Likewise.
35306
35307 2007-05-19  Bruno Haible  <bruno@clisp.org>
35308
35309         Fix *printf result for NaN, Inf, -0.0 on mingw.
35310         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
35311         * lib/vasnprintf.c: Include math.h and isnan.h.
35312         (is_infinite_or_zero): New function.
35313         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35314         values in the %f, %F, %e, %E, %g, %G directives.
35315         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35316         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35317         gl_PRINTF_INFINITE and test its result. Invoke
35318         gl_PREREQ_VASNPRINTF_INFINITE.
35319         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35320         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35321         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35326         * doc/functions/fprintf.texi: Update.
35327         * doc/functions/printf.texi: Update.
35328         * doc/functions/snprintf.texi: Update.
35329         * doc/functions/sprintf.texi: Update.
35330         * doc/functions/vfprintf.texi: Update.
35331         * doc/functions/vprintf.texi: Update.
35332         * doc/functions/vsnprintf.texi: Update.
35333         * doc/functions/vsprintf.texi: Update.
35334
35335 2007-05-19  Bruno Haible  <bruno@clisp.org>
35336
35337         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35338         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35339         Instead of multiplying with 10^k, set extra_zeroes to k.
35340         (scale10_round_long_double): Remove function.
35341
35342 2007-05-18  Bruno Haible  <bruno@clisp.org>
35343
35344         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35345         introduced on 2007-05-06.
35346
35347 2007-05-18  Bruno Haible  <bruno@clisp.org>
35348
35349         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35350         %g directives.
35351         * tests/test-vasprintf-posix.c (test_function): Likewise.
35352         * tests/test-snprintf-posix.h (test_function): Likewise.
35353         * tests/test-sprintf-posix.h (test_function): Likewise.
35354
35355 2007-05-18  Bruno Haible  <bruno@clisp.org>
35356
35357         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35358         (strmatch): New function.
35359         (test_function): Test the %f directive on numbers of various exponents.
35360         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35361         (strmatch): New function.
35362         (test_function): Test the %f directive on numbers of various exponents.
35363         * tests/test-snprintf-posix.h (strmatch): New function.
35364         (test_function): Test the %f directive on numbers of various exponents.
35365         * tests/test-sprintf-posix.h (strmatch): New function.
35366         (test_function): Test the %f directive on numbers of various exponents.
35367         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35368         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35369         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35370         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35371
35372 2007-05-18  Bruno Haible  <bruno@clisp.org>
35373
35374         Add support for 'long double' number output.
35375         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35376         * lib/vasnprintf.c: Include math.h and float+.h.
35377         (mp_limb_t): New type.
35378         (GMP_LIMB_BITS): New macro.
35379         (mp_twolimb_t): New type.
35380         (GMP_TWOLIMB_BITS): New macro.
35381         (mpn_t): New type.
35382         (multiply, divide, convert_to_decimal, decode_long_double,
35383         scale10_round_long_double, scale10_round_decimal_long_double,
35384         floorlog10l): New functions.
35385         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35386         for the %f, %F, %e, %E, %g, %G directives.
35387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35388         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35389         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35390         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35392         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35393         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35394         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35395         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35396         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35397         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35398         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35399         * modules/snprintf-posix (Depends-on): Likewise.
35400         * modules/sprintf-posix (Depends-on): Likewise.
35401         * modules/vasnprintf-posix (Depends-on): Likewise.
35402         * modules/vasprintf-posix (Depends-on): Likewise.
35403         * modules/vfprintf-posix (Depends-on): Likewise.
35404         * modules/vsnprintf-posix (Depends-on): Likewise.
35405         * modules/vsprintf-posix (Depends-on): Likewise.
35406         * modules/vasnprintf (Files): Add lib/float+.h.
35407         * doc/functions/fprintf.texi: Update.
35408         * doc/functions/printf.texi: Update.
35409         * doc/functions/snprintf.texi: Update.
35410         * doc/functions/sprintf.texi: Update.
35411         * doc/functions/vfprintf.texi: Update.
35412         * doc/functions/vprintf.texi: Update.
35413         * doc/functions/vsnprintf.texi: Update.
35414         * doc/functions/vsprintf.texi: Update.
35415
35416 2007-05-18  Bruno Haible  <bruno@clisp.org>
35417
35418         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35419
35420 2007-05-18  Bruno Haible  <bruno@clisp.org>
35421
35422         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35423         for printing 64-bit integers. Needed for mingw.
35424
35425 2007-05-18  Bruno Haible  <bruno@clisp.org>
35426
35427         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35428         gl_FUNC_FREXPL_WORKS.
35429         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35430
35431 2007-05-18  Bruno Haible  <bruno@clisp.org>
35432
35433         * modules/frexpl-nolibm-tests: New file.
35434
35435         * modules/frexpl-nolibm: New file.
35436         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35437
35438 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35439
35440         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35441         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35442         GCC 4.2, which otherwise issues a lot of warnings.
35443         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35444         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35445         Likewise.
35446         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35447         * modules/iconv_open (iconv.h): Likewise.
35448         * modules/locale (locale.h): Likewise.
35449         * modules/netinet_in (netinet/in.h): Likewise.
35450         * modules/sys_select (sys_select.h): Likewise.
35451         * modules/sys_socket (sys/socket.h): Likewise.
35452         * modules/sys_stat (sys/stat.h): Likewise.
35453         * modules/sysexits (sysexits.h): Likewise.
35454         * modules/unistd (unistd.h): Likewise.
35455
35456 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35457
35458         * modules/closein-tests (Makefile.am): Distribute
35459         `test-closein.sh'.
35460
35461 2007-05-17  Bruno Haible  <bruno@clisp.org>
35462
35463         * tests/test-printf-posix.output: Renamed from
35464         tests/test-fprintf-posix.out.
35465         * modules/fprintf-posix-tests: Update.
35466         * modules/printf-posix-tests: Update.
35467         * modules/vfprintf-posix-tests: Update.
35468         * modules/vprintf-posix-tests: Update.
35469         * tests/test-fprintf-posix.sh: Update.
35470         * tests/test-printf-posix.sh: Update.
35471         * tests/test-vfprintf-posix.sh: Update.
35472         * tests/test-vprintf-posix.sh: Update.
35473         Reported by Ralf Wildenhues.
35474
35475 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35476
35477         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35478         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35479         GCC 4.2, which otherwise issues a lot of warnings.
35480         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35481         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35482         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35483         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35484         it should no longer be needed.
35485         * lib/string_.h: Likewise.
35486         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35487         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35488         * modules/inttypes (inttypes.h): Likewise.
35489         * modules/math (math.h): Likewise.
35490         * modules/search (search.h): Likewise.
35491         * modules/signal (signal.h): Likewise.
35492         * modules/stdint (stdint.h): Likewise.
35493         * modules/stdio (stdio.h): Likewise.
35494         * modules/stdlib (stdlib.h): Likewise.
35495         * modules/string (string.h): Likewise.
35496         * modules/sys_time (sys/time.h): Likewise.
35497         * modules/time (time.h): Likewise.
35498         * modules/wchar (wchar.h): Likewise.
35499         * modules/wctype (wtype.h): Likewise.
35500
35501 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35502
35503         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35504
35505 2007-05-13  Bruno Haible  <bruno@clisp.org>
35506
35507         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35508         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35509         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35510         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35511         (gl_PREREQ_STRTOK_R): Don't require it here.
35512
35513 2007-05-13  Bruno Haible  <bruno@clisp.org>
35514
35515         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35516         when used in C++ mode.
35517
35518 2007-05-12  Bruno Haible  <bruno@clisp.org>
35519
35520         * lib/linebuffer.h: Tweak doc.
35521         * lib/linebuffer.c: Likewise.
35522
35523 2007-05-12  James Youngman  <jay@gnu.org>
35524
35525         * lib/linebuffer.c (readlinebuffer_delim): New function,
35526         like readlinebuffer, but use a caller-specified delimiter.
35527         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35528         as the delimiter.
35529         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35530
35531 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35532
35533         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35534         * modules/openat (Files): Remove openat-die.c.
35535         (Depends-on): Add openat-die.
35536         * modules/openat-die: New module.
35537
35538 2007-05-06  Bruno Haible  <bruno@clisp.org>
35539
35540         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35541         Update with info about Cygwin.
35542         * doc/functions/fprintf.texi: Update.
35543         * doc/functions/printf.texi: Update.
35544         * doc/functions/snprintf.texi: Update.
35545         * doc/functions/sprintf.texi: Update.
35546         * doc/functions/vfprintf.texi: Update.
35547         * doc/functions/vprintf.texi: Update.
35548         * doc/functions/vsnprintf.texi: Update.
35549         * doc/functions/vsprintf.texi: Update.
35550         Reported by Eric Blake.
35551
35552 2007-05-06  Bruno Haible  <bruno@clisp.org>
35553
35554         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35555         padding ourselves for the floating-point directives.
35556         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35559         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35560         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35561         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35562         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35563         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35564         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35565         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35566         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35567         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35568         * tests/test-snprintf-posix.h (test_function): Also check the width
35569         and some flags in the %f directive.
35570         * tests/test-sprintf-posix.h (test_function): Likewise.
35571         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35572         * tests/test-vasprintf-posix.c (test_function): Likewise.
35573         * doc/functions/fprintf.texi: Update.
35574         * doc/functions/printf.texi: Update.
35575         * doc/functions/snprintf.texi: Update.
35576         * doc/functions/sprintf.texi: Update.
35577         * doc/functions/vfprintf.texi: Update.
35578         * doc/functions/vprintf.texi: Update.
35579         * doc/functions/vsnprintf.texi: Update.
35580         * doc/functions/vsprintf.texi: Update.
35581
35582 2007-05-06  Bruno Haible  <bruno@clisp.org>
35583
35584         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35585         pass the ' flag character to sprintf or snprintf.
35586         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35588         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35589         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35590         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35591         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35593         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35595         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35596         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35597         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35598         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35599         flag.
35600         * tests/test-sprintf-posix.h (test_function): Likewise.
35601         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35602         * tests/test-vasprintf-posix.c (test_function): Likewise.
35603         * doc/functions/fprintf.texi: Update.
35604         * doc/functions/printf.texi: Update.
35605         * doc/functions/snprintf.texi: Update.
35606         * doc/functions/sprintf.texi: Update.
35607         * doc/functions/vfprintf.texi: Update.
35608         * doc/functions/vprintf.texi: Update.
35609         * doc/functions/vsnprintf.texi: Update.
35610         * doc/functions/vsprintf.texi: Update.
35611
35612 2007-05-01  Bruno Haible  <bruno@clisp.org>
35613
35614         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35615
35616 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35617
35618         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35619         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35620
35621 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35622
35623         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35624         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35626
35627 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35628
35629         * lib/argp-help.c (struct hol_entry): New member `ord'.
35630         (HOL_ENTRY_PTRCMP): Use ord for comparison
35631         (hol_sort): Initialize ord.
35632
35633 2007-05-01  Bruno Haible  <bruno@clisp.org>
35634
35635         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35636         Reported by Eric Blake.
35637         * doc/gnulib.texi (Function Substitutes): Update.
35638
35639 2007-05-01  Bruno Haible  <bruno@clisp.org>
35640
35641         * doc/functions.texi: Remove file, now redundant through
35642         doc/functions/*.texi.
35643
35644 2007-05-01  Bruno Haible  <bruno@clisp.org>
35645
35646         * modules/argp (Depends-on): Add sleep.
35647
35648 2007-05-01  Bruno Haible  <bruno@clisp.org>
35649
35650         * modules/sleep-tests: New file.
35651         * tests/test-sleep.c: New file.
35652
35653         * modules/sleep: New file.
35654         * lib/sleep.c: New file.
35655         * m4/sleep.m4: New file.
35656         * lib/unistd_.h (sleep): New declaration.
35657         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35658         HAVE_SLEEP.
35659         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35660         * doc/functions/sleep.texi: Document the sleep module.
35661
35662 2007-05-01  Bruno Haible  <bruno@clisp.org>
35663
35664         * lib/sigprocmask.h: Remove file.
35665         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35666         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35667         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35668         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35669         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35670         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35671         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35672         HAVE_SIGSET_T as a shell variable.
35673         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35674         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35675         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35676         (Depends-on): Add signal. Remove verify.
35677         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35678         (Include): Mention <signal.h> instead of sigprocmask.h.
35679         * NEWS: Mention the change.
35680         * lib/fatal-signal.c: Don't include sigprocmask.h.
35681
35682 2007-05-01  Bruno Haible  <bruno@clisp.org>
35683
35684         * modules/signal: New file.
35685         * lib/signal_.h: New file.
35686         * m4/signal_h.m4: New file.
35687
35688 2007-05-01  Bruno Haible  <bruno@clisp.org>
35689
35690         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35691         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35692         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35693         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35694
35695 2007-05-01  Bruno Haible  <bruno@clisp.org>
35696
35697         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35698         configure time.
35699         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35700         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35701         * modules/sys_stat (Makefile.am): Substitute their values into
35702         sys/stat.h.
35703
35704 2007-05-01  Bruno Haible  <bruno@clisp.org>
35705
35706         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35707         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35708         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35709
35710 2007-05-01  Bruno Haible  <bruno@clisp.org>
35711
35712         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35713         'assert' module here.
35714
35715 2007-05-01  Bruno Haible  <bruno@clisp.org>
35716
35717         * doc/functions/*.texi: New files.
35718         * doc/functions/google-ranking.txt: New file.
35719         * doc/gnulib.texi (Function Substitutes): New chapter.
35720         (ctime, inet_ntoa): Remove sections.
35721         * doc/ctime.texi: Remove file.
35722         * doc/inet_ntoa.texi: Remove file.
35723         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35724         dependencies.
35725         (%.info): New rule, specifying a --reference-limit.
35726
35727 2007-05-01  Bruno Haible  <bruno@clisp.org>
35728
35729         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35730
35731 2007-05-01  Bruno Haible  <bruno@clisp.org>
35732
35733         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35734         the portability of 'mkdir' to mingw systems.
35735
35736 2007-05-01  Bruno Haible  <bruno@clisp.org>
35737
35738         * doc/headers/google-ranking.txt: New file.
35739
35740 2007-04-30  Eric Blake  <ebb9@byu.net>
35741
35742         Prefer fseeko to fseek.
35743         * modules/getpass (Depends-on): Add fseeko.
35744         * lib/getpass.c (getpass): Use fseeko, not fseek.
35745
35746 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35747
35748         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35749         assumes the sorting is stable, while most qsort implementations
35750         are not.  Use argument addresses to ensure they never compare as
35751         equal.
35752
35753         * tests/test-argp-2.sh (usage-indent test): Fix output
35754         (func_compare): Restore diff options
35755         * tests/test-argp.c: Restore #include "progname.h"
35756
35757 2007-04-29  Bruno Haible  <bruno@clisp.org>
35758
35759         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35761         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35762         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35763         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35764         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35765         (TESTS, check_PROGRAMS): Add test-snprintf.
35766         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35767         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35768         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35769         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35770         assertions that fail on HP-UX, OSF/1, or IRIX.
35771         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35772
35773 2007-04-29  Bruno Haible  <bruno@clisp.org>
35774
35775         * MODULES.html.sh (posix_functions): Remove 'contents'.
35776
35777 2007-04-29  Karl Berry  <karl@gnu.org>
35778
35779         * config/srclist.txt (gendocs_template_min): new entry.
35780
35781 2007-04-29  Bruno Haible  <bruno@clisp.org>
35782
35783         Work around fpurge bug on BSD systems.
35784         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35785         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35786         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35787         fpurge to rpl_fpurge if the system already has this function.
35788         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35789         the case where the system already has this function. Correct invariants
35790         on BSD systems.
35791         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35792         BSD systems.
35793
35794 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35795
35796         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35797         proposed by Sven Verdoolaege.
35798
35799         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35800         options.
35801         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35802         (usage and help tests): Update
35803
35804 2007-04-29  Bruno Haible  <bruno@clisp.org>
35805
35806         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35807         Print more information in case of failure. Disable a test on BeOS.
35808
35809 2007-04-29  Bruno Haible  <bruno@clisp.org>
35810
35811         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35812         This helps debugging on systems on which no gdb is available.
35813
35814 2007-04-29  Bruno Haible  <bruno@clisp.org>
35815
35816         * lib/freading.h: Improve comments.
35817         * lib/fwriting.h: Likewise.
35818         * tests/test-freading.c (main): Don't check freading immediately after
35819         repositioning. Needed for glibc.
35820
35821 2007-04-29  Bruno Haible  <bruno@clisp.org>
35822
35823         * lib/freading.c (freading): Trivial simplification.
35824
35825 2007-04-28  Bruno Haible  <bruno@clisp.org>
35826
35827         * tests/test-fwriting.c (main): Also test the interaction between
35828         fflush and fwriting.
35829         * modules/fwriting-tests (Depends-on): Add fflush.
35830
35831         * tests/test-freading.c (main): Also test the interaction between
35832         fflush and freading.
35833         * modules/freading-tests (Depends-on): Add fflush.
35834
35835 2007-04-28  Bruno Haible  <bruno@clisp.org>
35836
35837         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35838         fseeko and ftello.
35839         Suggested by Eric Blake.
35840
35841 2007-04-28  Jim Meyering  <jim@meyering.net>
35842
35843         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35844         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35845         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35846
35847 2007-04-27  Eric Blake  <ebb9@byu.net>
35848
35849         * doc/headers/assert.texi (assert.h): Document assert module use.
35850
35851 2007-04-27  Bruno Haible  <bruno@clisp.org>
35852
35853         * doc/headers/*.texi: New files.
35854         * doc/gnulib.texi (Header File Substitutes): New chapter.
35855         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35856         dependencies.
35857         (standards.info ,standards.html, standards.dvi): Update dependencies.
35858         (mostlyclean, clean): New targets.
35859
35860 2007-04-27  Bruno Haible  <bruno@clisp.org>
35861
35862         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35863         * modules/sysexits (Files, Makefile.am): Update.
35864
35865         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35866         * modules/sys_socket (Files, Makefile.am): Update.
35867
35868         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35869         * modules/sys_stat (Files, Makefile.am): Update.
35870
35871 2007-04-27  Eric Blake  <ebb9@byu.net>
35872
35873         * lib/freading.h: Improve comments.
35874         * lib/fwriting.h: Likewise.
35875         * lib/fflush.c: Likewise.
35876
35877         Fix closein for mingw.
35878         * modules/closein-tests: Add tests for closein.
35879         * tests/test-closein.c: New file.
35880         * tests/test-closein.sh: Likewise.
35881         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35882         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35883
35884 2007-04-27  Bruno Haible  <bruno@clisp.org>
35885
35886         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35887         version is < 6.
35888         * lib/math_.h [__DECC]: Likewise.
35889         * lib/stdio_.h [__DECC]: Likewise.
35890         * lib/stdlib_.h [__DECC]: Likewise.
35891         * lib/string_.h [__DECC]: Likewise.
35892         * lib/time_.h [__DECC]: Likewise.
35893         * lib/wchar_.h [__DECC]: Likewise.
35894         * lib/wctype_.h [__DECC]: Likewise.
35895
35896 2007-04-27  Bruno Haible  <bruno@clisp.org>
35897
35898         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35899
35900 2007-04-27  Bruno Haible  <bruno@clisp.org>
35901
35902         * lib/fflush.c: Add comments.
35903         * modules/fpurge-tests (Depends-on): Add fflush.
35904         * modules/freadable-tests (Depends-on): Likewise.
35905         * modules/fwritable-tests (Depends-on): Likewise.
35906
35907 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35908
35909         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35910         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35911         Report by Bruno Haible <bruno@clisp.org>.
35912
35913 2007-04-26  Eric Blake  <ebb9@byu.net>
35914
35915         Fix fflush on mingw.
35916         * modules/fflush (Depends-on): Add freading.
35917         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35918         but unread data.
35919
35920 2007-04-26  Eric Blake  <ebb9@byu.net>
35921         and Bruno Haible  <bruno@clisp.org>
35922
35923         Implement freading and fwriting.
35924         * lib/freading.c: New file.
35925         * lib/freading.h: Likewise.
35926         * m4/freading.m4: Likewise.
35927         * modules/freading: Likewise.
35928         * modules/freading-tests: Likewise.
35929         * tests/test-freading.c: Likewise.
35930         * lib/fwriting.c: New file.
35931         * lib/fwriting.h: Likewise.
35932         * m4/fwriting.m4: Likewise.
35933         * modules/fwriting: Likewise.
35934         * modules/fwriting-tests: Likewise.
35935         * tests/test-fwriting.c: Likewise.
35936         * MODULES.html.sh (File stream based Input/Output): Mention them.
35937
35938 2007-04-26  Bruno Haible  <bruno@clisp.org>
35939
35940         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35941         'long' when we assume it.
35942         Suggested by Eric Blake.
35943
35944 2007-04-26  Bruno Haible  <bruno@clisp.org>
35945
35946         Ensure fseeko, ftello are declared on glibc systems.
35947         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35948         * modules/fseeko (configure.ac-early): Likewise.
35949         * modules/ftello (configure.ac-early): Likewise.
35950         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35951         AC_FUNC_FSEEKO for this.
35952         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35953         (gl_CHECK_FSEEKO): Remove macro.
35954
35955 2007-04-26  Bruno Haible  <bruno@clisp.org>
35956
35957         * tests/test-fflush.c (main): Also check the ftell result after
35958         fflush and fseek/fseeko.
35959         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35960         file descriptor position cache in the stream.
35961         * lib/fseeko.c (rpl_fseeko): Likewise.
35962
35963 2007-04-26  Bruno Haible  <bruno@clisp.org>
35964
35965         * modules/fflush-tests (Depends-on): Add fseeko.
35966
35967 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35968             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35969
35970         * lib/argz_.h: ensure error_t definition is obtained in same
35971         mechanism system argz.h would have.
35972         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35973         argz facilities are known bad.  Err on the side of caution if
35974         cross-compiling.
35975
35976 2007-04-25  Eric Blake  <ebb9@byu.net>
35977
35978         * lib/fpurge.c (includes): Use stdlib.h for free.
35979         * tests/test-fflush.c (main): Also test fflush-fseeko.
35980
35981 2007-04-25  Bruno Haible  <bruno@clisp.org>
35982
35983         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35984         * lib/fseeko.c: New file.
35985         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35986         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35987         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35988         gl_FUNC_FSEEKO.
35989         (gl_FUNC_FSEEKO): Invoke it.
35990         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35991         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35992         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35993
35994 2007-04-25  Bruno Haible  <bruno@clisp.org>
35995
35996         * modules/fflush (Depends-on): Add ftello.
35997
35998 2007-04-25  Bruno Haible  <bruno@clisp.org>
35999
36000         * modules/ftello-tests: New file.
36001         * tests/test-ftello.c: New file.
36002
36003         * modules/ftello: New file.
36004         * m4/ftello.m4: New file.
36005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
36006         HAVE_FTELLO.
36007         * lib/stdio_.h (ftello): New declaration.
36008         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
36009         HAVE_FTELLO.
36010
36011 2007-04-25  Bruno Haible  <bruno@clisp.org>
36012
36013         * modules/fseeko-tests: New file.
36014         * tests/test-fseeko.c: New file.
36015
36016         * modules/fseeko: New file.
36017         * m4/fseeko.m4: New file.
36018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
36019         HAVE_FSEEKO.
36020         * lib/stdio_.h (fseeko): New declaration.
36021         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
36022         HAVE_FSEEKO.
36023
36024 2007-04-25  Bruno Haible  <bruno@clisp.org>
36025
36026         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
36027
36028 2007-04-25  Bruno Haible  <bruno@clisp.org>
36029
36030         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
36031         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
36032         * tests/test-unistd.c: Likewise.
36033         * tests/test-fcntl.c: Likewise.
36034
36035 2007-04-23  Eric Blake  <ebb9@byu.net>
36036
36037         * lib/fflush.c: Fix missing include.
36038         Reported by Bruno Haible.
36039
36040 2007-04-23  Bruno Haible  <bruno@clisp.org>
36041
36042         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
36043         Reported by Eric Blake.
36044
36045 2007-04-23  Bruno Haible  <bruno@clisp.org>
36046
36047         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
36048
36049 2007-04-23  Bruno Haible  <bruno@clisp.org>
36050
36051         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
36052
36053 2007-04-23  Bruno Haible  <bruno@clisp.org>
36054
36055         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
36056         Needed on HP-UX 11.
36057
36058 2007-04-16  Eric Blake  <ebb9@byu.net>
36059
36060         Make fflush rely on fpurge.
36061         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
36062         open coding all variants.
36063         * modules/fflush (Depends-on): Add fpurge and unistd.
36064         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
36065         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
36066
36067         Fix --with-tests compilation on cygwin.
36068         * modules/argmatch-tests (Makefile.am): List gnulib library first
36069         in LDADD.
36070         * modules/argp-tests (Makefile.am): Likewise.
36071         * modules/array-list-tests (Makefile.am): Likewise.
36072         * modules/array-oset-tests (Makefile.am): Likewise.
36073         * modules/avltree-list-tests (Makefile.am): Likewise.
36074         * modules/avltree-oset-tests (Makefile.am): Likewise.
36075         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36076         * modules/carray-list-tests (Makefile.am): Likewise.
36077         * modules/dirname-tests (Makefile.am): Likewise.
36078         * modules/frexp-tests (Makefile.am): Likewise.
36079         * modules/isnanl-tests (Makefile.am): Likewise.
36080         * modules/linked-list-tests (Makefile.am): Likewise.
36081         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36082         * modules/lock-tests (Makefile.am): Likewise.
36083         * modules/rbtree-list-tests (Makefile.am): Likewise.
36084         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36085         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36086         * modules/tls-tests (Makefile.am): Likewise.
36087         * modules/tsearch-tests (Makefile.am): Likewise.
36088         * modules/xvasprintf-tests (Makefile.am): Likewise.
36089
36090         Fix fpurge for cygwin.
36091         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
36092         value.
36093         * modules/fpurge-tests (Depends-on): Clean up trash.
36094
36095 2007-04-16  Simon Josefsson  <simon@josefsson.org>
36096
36097         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
36098
36099         * m4/autobuild.m4: Re-indent.
36100
36101 2007-04-13  Bruno Haible  <bruno@clisp.org>
36102
36103         * modules/fpurge-tests: New file.
36104         * tests/test-fpurge.c: New file.
36105
36106         * modules/fpurge: New file.
36107         * lib/fpurge.h: New file.
36108         * lib/fpurge.c: New file.
36109         * m4/fpurge.m4: New file.
36110
36111 2007-04-13  Bruno Haible  <bruno@clisp.org>
36112
36113         * modules/fbufmode-tests: New file.
36114         * tests/test-fbufmode.c: New file.
36115
36116         * modules/fbufmode: New file.
36117         * lib/fbufmode.h: New file.
36118         * lib/fbufmode.c: New file.
36119         * m4/fbufmode.m4: New file.
36120
36121 2007-04-13  Bruno Haible  <bruno@clisp.org>
36122
36123         * modules/fwritable-tests: New file.
36124         * tests/test-fwritable.c: New file.
36125
36126         * modules/fwritable: New file.
36127         * lib/fwritable.h: New file.
36128         * lib/fwritable.c: New file.
36129         * m4/fwritable.m4: New file.
36130
36131 2007-04-13  Bruno Haible  <bruno@clisp.org>
36132
36133         * modules/freadable-tests: New file.
36134         * tests/test-freadable.c: New file.
36135
36136         * modules/freadable: New file.
36137         * lib/freadable.h: New file.
36138         * lib/freadable.c: New file.
36139         * m4/freadable.m4: New file.
36140
36141 2007-04-13  Bruno Haible  <bruno@clisp.org>
36142
36143         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
36144         MOSTLYCLEANFILES.
36145
36146 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36147
36148         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
36149         gzip bootstrap.conf to avoid dragging in i18n machinery.
36150         (gnulib_tool_option): Use it.
36151
36152 2007-04-13  Bruno Haible  <bruno@clisp.org>
36153
36154         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
36155         %F directives.
36156         * tests/test-vasprintf-posix.c (test_function): Likewise.
36157         * tests/test-snprintf-posix.h (test_function): Likewise.
36158         * tests/test-sprintf-posix.h (test_function): Likewise.
36159         * tests/test-fprintf-posix.h (test_function): Likewise.
36160         * tests/test-printf-posix.h (test_function): Likewise.
36161         * tests/test-fprintf-posix.out: Likewise.
36162
36163 2007-04-13  Bruno Haible  <bruno@clisp.org>
36164
36165         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
36166         * modules/tls-tests (configure.ac): Likewise.
36167         Reported by Arto C. Nirkko <anirkko@insel.ch>.
36168
36169 2007-04-13  Bruno Haible  <bruno@clisp.org>
36170
36171         * lib/tls.c (glthread_tls_get): Fix return type.
36172         Patch by Arto C. Nirkko <anirkko@insel.ch>.
36173
36174 2007-04-12  Eric Blake  <ebb9@byu.net>
36175
36176         * modules/gettime (Depends-on): Remove gettime.
36177         Reported by Dmitry V. Levin.
36178
36179 2007-04-12  Bruno Haible  <bruno@clisp.org>
36180
36181         * modules/fflush (Include): Mention <stdio.h>.
36182         * modules/strtoimax (Include): Mention <inttypes.h>.
36183         * modules/strtoumax (Include): Likewise.
36184
36185 2007-04-12  Eric Blake  <ebb9@byu.net>
36186
36187         * .cvsignore: New file.
36188         * .gitignore: Likewise.
36189
36190 2007-04-12  Bruno Haible  <bruno@clisp.org>
36191
36192         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
36193         not before, since $(LDADD) often contains libgnu.a.
36194         * modules/striconv-tests (test_striconv_LDADD): Likewise.
36195         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
36196         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
36197         Needed on Cygwin.
36198
36199 2007-04-12  Eric Blake  <ebb9@byu.net>
36200
36201         Work around glibc's failure to flush stdin on fclose.
36202         * lib/closein.c (close_stdin): Flush stdin before closing.
36203
36204         Work around glibc's failure to reset seekable stdin on exit.
36205         * modules/closein: New module.
36206         * lib/closein.c: New file.
36207         * lib/closein.h: Likewise.
36208         * m4/closein.m4: Likewise.
36209         * MODULES.html.sh (File stream based Input/Output): Document it.
36210
36211 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36212
36213         * gnulib-tool: Rename generated 'autobuild' script to
36214         'do-autobuild' in --create-megatestdir output.
36215
36216         * doc/gnulib.texi (Build robot for gnulib): Fix.
36217
36218 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36219
36220         * modules/sysexits (Depends-on): Add absolute-header.
36221
36222 2007-04-12  Eric Blake  <ebb9@byu.net>
36223
36224         No need to preserve errno on success.
36225         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
36226         Reported by Bruno Haible.
36227
36228 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36229
36230         * MODULES.html.sh (Support for maintaining and releasing
36231         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
36232
36233 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36234
36235         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
36236
36237 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36238
36239         * modules/autobuild: New module.
36240
36241         * m4/autobuild.m4: New file.
36242
36243 2007-04-11  Bruno Haible  <bruno@clisp.org>
36244
36245         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
36246         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
36247         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
36248         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
36249         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36252         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36253         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36254         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36255         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
36256         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36257         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
36259         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36260         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36261         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
36262         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36263         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36264         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
36265         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36266         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
36268         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36269         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36270         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
36274
36275 2007-04-11  Bruno Haible  <bruno@clisp.org>
36276
36277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
36278
36279 2007-04-10  Bruno Haible  <bruno@clisp.org>
36280
36281         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
36282         for NaN and Infinity. Needed on FreeBSD 6.1.
36283         * tests/test-vasnprintf-posix.c (test_function): Undo last change
36284         regarding results for "%010a" of Infinity and NaN.
36285         * tests/test-vasprintf-posix.c (test_function): Likewise.
36286         * tests/test-snprintf-posix.h (test_function): Likewise.
36287         * tests/test-sprintf-posix.h (test_function): Likewise.
36288         * tests/test-fprintf-posix.h (test_function): Likewise.
36289         * tests/test-printf-posix.h (test_function): Likewise.
36290         * tests/test-fprintf-posix.out: Likewise.
36291
36292 2007-04-10  Bruno Haible  <bruno@clisp.org>
36293
36294         * modules/locale-tests: New file.
36295         * tests/test-locale.c: New file.
36296
36297         * modules/locale: New file.
36298         * lib/locale_.h: New file.
36299         * m4/locale_h.m4: New file.
36300
36301 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
36302             Bruno Haible  <bruno@clisp.org>
36303
36304         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
36305         be determined, test for availability of the copysignf, copysign,
36306         copysignl functions.
36307         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
36308         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
36309         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
36310
36311 2007-04-09  Eric Blake  <ebb9@byu.net>
36312
36313         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36314         * modules/stdio (Makefile.am): Support fflush.
36315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36316         * modules/fflush: New file.
36317         * lib/fflush.c: Likewise.
36318         * m4/fflush.m4: Likewise.
36319         * modules/fflush-tests: New test.
36320         * tests/test-fflush.c: Likewise.
36321         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36322
36323 2007-04-06  Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36326         (VASNPRINTF): Use signbit for faster determination whether to print a
36327         minus sign.
36328         * modules/vasnprintf (Files): Remove lib/float+.h.
36329         * modules/fprintf-posix (Depends-on): Add signbit.
36330         * modules/snprintf-posix (Depends-on): Likewise.
36331         * modules/sprintf-posix (Depends-on): Likewise.
36332         * modules/vasnprintf-posix (Depends-on): Likewise.
36333         * modules/vasprintf-posix (Depends-on): Likewise.
36334         * modules/vfprintf-posix (Depends-on): Likewise.
36335         * modules/vsnprintf-posix (Depends-on): Likewise.
36336         * modules/vsprintf-posix (Depends-on): Likewise.
36337
36338 2007-04-06  Bruno Haible  <bruno@clisp.org>
36339
36340         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36341         * tests/test-frexpl.c (main): Likewise.
36342         * tests/test-ldexpl.c (main): Likewise.
36343         * modules/frexp-tests (Depends-on): Add signbit.
36344         * modules/frexpl-tests (Depdends-on): Likewise.
36345         * modules/ldexpl-tests (Depdends-on): Likewise.
36346
36347 2007-04-06  Bruno Haible  <bruno@clisp.org>
36348
36349         * modules/signbit-tests: New file.
36350         * tests/test-signbit.c: New file.
36351
36352         * modules/signbit: New file.
36353         * lib/signbitf.c: New file.
36354         * lib/signbitd.c: New file.
36355         * lib/signbitl.c: New file.
36356         * m4/signbit.m4: New file.
36357         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36358         (signbit): New macro.
36359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36360         REPLACE_SIGNBIT.
36361         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36362         REPLACE_FREXPL into math.h.
36363
36364 2007-04-06  Bruno Haible  <bruno@clisp.org>
36365
36366         * modules/isnanf-nolibm-tests: New file.
36367         * tests/test-isnanf.c: New file.
36368
36369         * modules/isnanf-nolibm: New file.
36370         * lib/isnanf.h: New file.
36371         * lib/isnanf.c: New file.
36372         * lib/isnan.c: Consider the USE_FLOAT macro.
36373         * m4/isnanf.m4: New file.
36374
36375 2007-04-06  Bruno Haible  <bruno@clisp.org>
36376
36377         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36378         (Link): New section.
36379
36380         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36381
36382 2007-04-06  Bruno Haible  <bruno@clisp.org>
36383
36384         Assume the 'long double' type.
36385         * m4/longdouble.m4: Remove file.
36386         * config/srclist.txt: Don't mention longdouble.m4.
36387         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36388         * lib/float+.h: Likewise.
36389         * lib/frexp.c: Likewise.
36390         * lib/printf-args.h: Likewise.
36391         * lib/printf-args.c: Likewise.
36392         * lib/printf-frexp.c: Likewise.
36393         * lib/printf-parse.c: Likewise.
36394         * lib/vasnprintf.c: Likewise.
36395         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36396         * m4/intl.m4: Likewise.
36397         * m4/isnanl.m4: Likewise.
36398         * m4/printf.m4: Likewise.
36399         * m4/printf-frexpl.m4: Likewise.
36400         * m4/vasnprintf.m4: Likewise.
36401         * modules/allocsa (Files): Remove m4/longdouble.m4.
36402         * modules/gettext (Files): Likewise.
36403         * modules/relocatable-prog-wrapper (Files): Likewise.
36404         * modules/vasnprintf (Files): Likewise.
36405         * modules/isnanl (Files): Likewise.
36406         (Include): Simplify.
36407         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36408         (Include): Simplify.
36409         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36410         (Include): Simplify.
36411         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36412         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36413         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36414         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36415         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36416         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36417         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36418         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36419         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36420         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36421         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36422         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36423         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36424         * tests/test-isnanl.c: Likewise.
36425         * tests/test-snprintf-posix.h: Likewise.
36426         * tests/test-sprintf-posix.h: Likewise.
36427         * tests/test-vasnprintf-posix.c: Likewise.
36428         * tests/test-vasnprintf-posix2.c: Likewise.
36429         * tests/test-vasprintf-posix.c: Likewise.
36430
36431 2007-04-06  Bruno Haible  <bruno@clisp.org>
36432
36433         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36434         * lib/math_.h [__DECC]: Include the overridden include file through
36435         #include_next, outside the double-inclusion guard.
36436         * lib/stdio_.h [__DECC]: Likewise.
36437         * lib/stdlib_.h [__DECC]: Likewise.
36438         * lib/string_.h [__DECC]: Likewise.
36439         * lib/time_.h [__DECC]: Likewise.
36440         * lib/wchar_.h [__DECC]: Likewise.
36441         * lib/wctype_.h [__DECC]: Likewise.
36442         * lib/inttypes_.h [__DECC]: Likewise.
36443         Reported by Albert Chin <china@thewrittenword.com> in
36444         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36445
36446 2007-04-04  Eric Blake  <ebb9@byu.net>
36447
36448         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36449         1.5.x.
36450
36451 2007-04-04  Bruno Haible  <bruno@clisp.org>
36452
36453         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36454         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36455
36456 2007-04-04  Bruno Haible  <bruno@clisp.org>
36457
36458         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36459         results for "%010a" of Infinity and NaN.
36460         * tests/test-vasprintf-posix.c (test_function): Likewise.
36461         * tests/test-snprintf-posix.h (test_function): Likewise.
36462         * tests/test-sprintf-posix.h (test_function): Likewise.
36463         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36464         * tests/test-printf-posix.h (test_function): Likewise.
36465         * tests/test-fprintf-posix.out: Update.
36466         Needed for FreeBSD 6.1.
36467
36468 2007-04-04  Bruno Haible  <bruno@clisp.org>
36469
36470         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36471         directly used by the gnulib modules nor by gnulib-tool.
36472
36473 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36474
36475         * DEPENDENCIES: Give overall description of version dependency
36476         desirability.  Use more-typical names for apps.
36477         Add shell, coreutils, diffutils, grep, tar, gzip.
36478
36479 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36480
36481         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36482
36483 2007-04-04  Karl Berry  <karl@gnu.org>
36484
36485         * MODULES.html.sh (func_module): missing '.
36486
36487 2007-04-03  Bruno Haible  <bruno@clisp.org>
36488
36489         * modules/argmatch-tests (Makefile.am): New variable
36490         test_argmatch_LDADD.
36491         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36492         * modules/array-list-tests (Makefile.am): New variable
36493         test_array_list_LDADD.
36494         * modules/array-oset-tests (Makefile.am): New variable
36495         test_array_oset_LDADD.
36496         * modules/avltree-list-tests (Makefile.am): New variable
36497         test_avltree_list_LDADD.
36498         * modules/avltree-oset-tests (Makefile.am): New variable
36499         test_avltree_oset_LDADD.
36500         * modules/avltreehash-list-tests (Makefile.am): New variable
36501         test_avltreehash_list_LDADD.
36502         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36503         test_canonicalize_lgpl_LDADD.
36504         * modules/carray-list-tests (Makefile.am): New variable
36505         test_carray_list_LDADD.
36506         * modules/dirname-tests (Makefile.am): New variable
36507         test_dirname_LDADD.
36508         * modules/linked-list-tests (Makefile.am): New variable
36509         test_linked_list_LDADD.
36510         * modules/linkedhash-list-tests (Makefile.am): New variable
36511         test_linkedhash_list_LDADD.
36512         * modules/rbtree-list-tests (Makefile.am): New variable
36513         test_rbtree_list_LDADD.
36514         * modules/rbtree-oset-tests (Makefile.am): New variable
36515         test_rbtree_oset_LDADD.
36516         * modules/rbtreehash-list-tests (Makefile.am): New variable
36517         test_rbtreehash_list_LDADD.
36518         * modules/xvasprintf-tests (Makefile.am): New variable
36519         test_xvasprintf_LDADD.
36520         Reported by Eric Blake.
36521
36522 2007-04-03  Eric Blake  <ebb9@byu.net>
36523
36524         * DEPENDENCIES: Weaken m4 requirements.
36525
36526 2007-04-03  Bruno Haible  <bruno@clisp.org>
36527
36528         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36529         * modules/isnanl-tests (configure.ac): Likewise.
36530
36531 2007-04-03  Ben Pfaff  <blp@gnu.org>
36532
36533         * modules/iconv_open: Add $(srcdir)/ to source directory
36534         references in Makefile fragments that call gperf, to fix VPATH
36535         builds.
36536
36537 2007-04-03  Bruno Haible  <bruno@clisp.org>
36538
36539         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36540         * lib/ldexpl.c: Undo last change.
36541
36542 2007-04-03  Bruno Haible  <bruno@clisp.org>
36543
36544         * modules/printf-frexpl (Depends-on): Undo last change.
36545         (Files): Add m4/ldexpl.m4.
36546
36547 2007-04-03  Bruno Haible  <bruno@clisp.org>
36548
36549         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36550         * modules/isnanl (Link): New section.
36551
36552         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36553         * modules/frexp (Link): New section.
36554
36555         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36556         * modules/frexpl (Link): New section.
36557
36558         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36559         * modules/ldexpl (Link): New section.
36560
36561 2007-04-03  Bruno Haible  <bruno@clisp.org>
36562
36563         * modules/TEMPLATE-EXTENDED: New file.
36564         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36565
36566 2007-04-03  Bruno Haible  <bruno@clisp.org>
36567
36568         * DEPENDENCIES: New file.
36569         Suggested by Simon Josefsson.
36570
36571 2007-04-03  Bruno Haible  <bruno@clisp.org>
36572
36573         * doc/gnulib.texi: Escape @.
36574
36575 2007-04-03  James Youngman  <jay@gnu.org>
36576         and Paul Eggert  <eggert@cs.ucla.edu>
36577
36578         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36579         birthtime on all systems that have birthtime, not just those which
36580         use st_birthtimensec rather than st_birthtim.  Putting zero in
36581         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36582         that the birth time is not available for files on an NFS mount.
36583
36584 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36585
36586         * modules/memxor: Move back from crypto/, suggested by Bruno.
36587         * modules/crypto/hmac-sha1: Fix memxor dependency.
36588
36589         * modules/crypto/gc: Moved from ../.
36590
36591 2007-04-02  Eric Blake  <ebb9@byu.net>
36592
36593         * lib/ldexpl.c (includes): Avoid libm.
36594
36595         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36596
36597 2007-04-02  Bruno Haible  <bruno@clisp.org>
36598
36599         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36600         on IRIX.
36601
36602 2007-04-02  Bruno Haible  <bruno@clisp.org>
36603
36604         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36605         x86 or x86_64 platforms running MacOS X.
36606         Reported by Ryan Schmidt <@ryandesign.com>.
36607
36608 2007-04-02  Bruno Haible  <bruno@clisp.org>
36609
36610         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36611         i386.
36612
36613 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36614
36615         * modules/crypto/arcfour: Moved from ../.
36616         * modules/crypto/arcfour-tests: Moved from ../.
36617         * modules/crypto/arctwo: Moved from ../.
36618         * modules/crypto/arctwo-tests: Moved from ../.
36619         * modules/crypto/des: Moved from ../.
36620         * modules/crypto/des-tests: Moved from ../.
36621         * modules/crypto/gc-arcfour: Moved from ../.
36622         * modules/crypto/gc-arcfour-tests: Moved from ../.
36623         * modules/crypto/gc-arctwo: Moved from ../.
36624         * modules/crypto/gc-arctwo-tests: Moved from ../.
36625         * modules/crypto/gc-des: Moved from ../.
36626         * modules/crypto/gc-des-tests: Moved from ../.
36627         * modules/crypto/gc-hmac-md5: Moved from ../.
36628         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36629         * modules/crypto/gc-hmac-sha1: Moved from ../.
36630         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36631         * modules/crypto/gc-md2: Moved from ../.
36632         * modules/crypto/gc-md2-tests: Moved from ../.
36633         * modules/crypto/gc-md4: Moved from ../.
36634         * modules/crypto/gc-md4-tests: Moved from ../.
36635         * modules/crypto/gc-md5: Moved from ../.
36636         * modules/crypto/gc-md5-tests: Moved from ../.
36637         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36638         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36639         * modules/crypto/gc-random: Moved from ../.
36640         * modules/crypto/gc-rijndael: Moved from ../.
36641         * modules/crypto/gc-rijndael-tests: Moved from ../.
36642         * modules/crypto/gc-sha1: Moved from ../.
36643         * modules/crypto/gc-sha1-tests: Moved from ../.
36644         * modules/crypto/gc-tests: Moved from ../.
36645         * modules/crypto/hmac-md5: Moved from ../.
36646         * modules/crypto/hmac-md5-tests: Moved from ../.
36647         * modules/crypto/hmac-sha1: Moved from ../.
36648         * modules/crypto/hmac-sha1-tests: Moved from ../.
36649         * modules/crypto/md2: Moved from ../.
36650         * modules/crypto/md2-tests: Moved from ../.
36651         * modules/crypto/md4: Moved from ../.
36652         * modules/crypto/md4-tests: Moved from ../.
36653         * modules/crypto/md5: Moved from ../.
36654         * modules/crypto/md5-tests: Moved from ../.
36655         * modules/crypto/memxor: Moved from ../.
36656         * modules/crypto/rijndael: Moved from ../.
36657         * modules/crypto/rijndael-tests: Moved from ../.
36658         * modules/crypto/sha1: Moved from ../.
36659
36660 2007-03-30  James Youngman  <jay@gnu.org>
36661
36662         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36663         rename() to change the ctime of a file (because ctime is unaffected
36664         by rename on jfs2 on AIX 5.1).
36665         (main): Start by doing cleanup, in case a previous run failed leaving
36666         test files behind.
36667
36668 2007-03-31  Bruno Haible  <bruno@clisp.org>
36669
36670         Support old proprietary implementations of iconv.
36671         * modules/iconv_open: New file.
36672         * lib/iconv_.h: New file.
36673         * m4/iconv_h.m4: New file.
36674         * lib/iconv_open.c: New file.
36675         * lib/iconv_open-aix.gperf: New file.
36676         * lib/iconv_open-hpux.gperf: New file.
36677         * lib/iconv_open-irix.gperf: New file.
36678         * lib/iconv_open-osf.gperf: New file.
36679         * m4/iconv_open.m4: New file.
36680         * modules/linebreak (Depends-on): Add iconv_open.
36681         * modules/striconv (Depends-on): Likewise.
36682         * modules/striconveh (Depends-on): Likewise.
36683         * modules/unicodeio (Depends-on): Likewise.
36684         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36685         (iconv_t)(-1).
36686         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36687         conversion if cd is (iconv_t)(-1).
36688         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36689         is not possible.
36690
36691 2007-03-31  Bruno Haible  <bruno@clisp.org>
36692
36693         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36694         work on Solaris either. Protect also second use of "autodetect_jp".
36695
36696 2007-03-31  Bruno Haible  <bruno@clisp.org>
36697
36698         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36699         the function is not present.
36700
36701 2007-03-31  Bruno Haible  <bruno@clisp.org>
36702
36703         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36704         the function is not present.
36705
36706 2007-03-31  Bruno Haible  <bruno@clisp.org>
36707
36708         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36709         a bug in HP-UX iconv_open().
36710
36711 2007-03-31  Bruno Haible  <bruno@clisp.org>
36712
36713         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36714         (Mathematics <math.h>): New section, add fpieee.
36715         (Input/output <stdio.h>): Add fseterr.
36716         (Mathematics <math.h>): New section, add printf-frexp.
36717         (Container data structures): Add sublist.
36718         (Core language properties): Add fpucw, inline.
36719         (Functions for greatest-width integer types <inttypes.h>): Add
36720         imaxabs, imaxdiv, inttypes.
36721         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36722         isnanl-nolibm, ldexp.
36723         (Mathematics <math.h>): New section, add printf-frexpl.
36724         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36725         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36726         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36727         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36728         (Unicode string functions): Add unistr/u*-mbtoucr.
36729         (Java): Add javacomp-script, javaexec-script.
36730         (C#): Add csharpcomp-script, csharpexec-script.
36731         (Support for building libraries and executables): Add havelib,
36732         relocatable-*.
36733         (Support for maintaining and releasing projects): Renamed from
36734         'Support for maintaining and release projects'. Add announce-gen.
36735
36736 2007-03-31  Bruno Haible  <bruno@clisp.org>
36737
36738         * README: Talk primarily about git.
36739         (git and CVS): Renamed from CVS.
36740         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36741         gnulib is available through git.
36742         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36743
36744 2007-03-30  Bruno Haible  <bruno@clisp.org>
36745
36746         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36747         * lib/poll_.h: Likewise.
36748         * lib/stat_.h: Likewise.
36749         * lib/sys_time_.h: Likewise.
36750         * lib/sysexit_.h: Likewise.
36751         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36752         * lib/stdbool_.h: Likewise.
36753         * lib/byteswap_.h: Add double-inclusion guard.
36754
36755 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36756
36757         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36758
36759 2007-03-30  Karl Berry  <karl@gnu.org>
36760
36761         * config/srclist-update: double space after USA in the license
36762         substitution, since that's how it's usually (?) written.
36763
36764 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36765
36766         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36767         reported by Bruno Haible.
36768
36769 2007-03-29  Bruno Haible  <bruno@clisp.org>
36770
36771         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36772         a bug in AIX iconv().
36773
36774 2007-03-29  Bruno Haible  <bruno@clisp.org>
36775
36776         * modules/ldexpl-tests: New file.
36777         * tests/test-ldexpl.c: New file.
36778
36779 2007-03-29  Bruno Haible  <bruno@clisp.org>
36780
36781         * lib/ldexpl.c: Include fpucw.h.
36782         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36783         multiplication.
36784         * modules/ldexpl (Depends-on): Add fpucw.
36785
36786 2007-03-29  Bruno Haible  <bruno@clisp.org>
36787
36788         * modules/ldexpl: New file.
36789         * m4/ldexpl.m4: New file.
36790         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36791         set.
36792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36793         REPLACE_LDEXPL.
36794         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36795         REPLACE_LDEXPL.
36796         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36797         gl_FUNC_LDEXPL_WORKS.
36798         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36799         * modules/mathl (Files): Remove lib/ldexpl.c.
36800         (Depends-on): Add ldexpl.
36801
36802 2007-03-29  Bruno Haible  <bruno@clisp.org>
36803
36804         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36805
36806 2007-03-29  Bruno Haible  <bruno@clisp.org>
36807
36808         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36809         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36810         and possibly also HP-UX.
36811         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36812         work on AIX, IRIX, HP-UX, OSF/1.
36813         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36814         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36815         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36816         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36817         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36818         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36819
36820 2007-03-29  Bruno Haible  <bruno@clisp.org>
36821
36822         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36823
36824 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36825
36826         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36827         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36828
36829 2007-03-29  Eric Blake  <ebb9@byu.net>
36830
36831         * lib/acl-internal.h: Remove redundant include.
36832         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36833         Cygwin when a file is locked.
36834
36835 2007-03-29  Bruno Haible  <bruno@clisp.org>
36836
36837         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36838         file.
36839         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36840
36841 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36842
36843         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36844         try to remove a parent directory if the child couldn't be removed
36845         (except for the first rmdir, which could fail because the child
36846         doesn't exist).  Problem reported by Jeff Blaine in
36847         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36848
36849 2007-03-28  Bruno Haible  <bruno@clisp.org>
36850
36851         * lib/striconveh.c (utf8conv_carefully): New function.
36852         (mem_cd_iconveh_internal): Invoke it.
36853
36854 2007-03-28  Bruno Haible  <bruno@clisp.org>
36855
36856         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36857         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36858         input.
36859         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36860         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36861         unistr/u8-uctomb.
36862
36863 2007-03-28  Bruno Haible  <bruno@clisp.org>
36864
36865         * modules/unistr/u8-mbtoucr: New file.
36866         * lib/unistr/u8-mbtoucr.c: New file.
36867         * modules/unistr/u16-mbtoucr: New file.
36868         * lib/unistr/u16-mbtoucr.c: New file.
36869         * modules/unistr/u16-mbtoucr: New file.
36870         * lib/unistr/u16-mbtoucr.c: New file.
36871         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36872
36873 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36874             Bruno Haible  <bruno@clisp.org>
36875
36876         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36877         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36878         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36879
36880         * m4/stdio_h.m4: Add stubs for vasprintf too.
36881
36882         * modules/stdio: Support vasprintf in sed command.
36883
36884         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36885         vasprintf.h.  Add stdio module indicator.
36886
36887         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36888         vasprintf.h.
36889
36890         * lib/vasprintf.h: File removed.
36891
36892         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36893         * lib/vasprintf.c: Ditto.
36894         * lib/xvasprintf.c: Ditto.
36895         * tests/test-vasprintf-posix.c: Ditto.
36896         * tests/test-vasprintf.c: Ditto.
36897
36898 2007-03-27  Bruno Haible  <bruno@clisp.org>
36899
36900         Make vasnprintf multithread-safe.
36901         * lib/vasnprintf.c (decimal_point_char): New function.
36902         (VASNPRINTF): Use it.
36903         Suggested by Simon Josefsson.
36904
36905 2007-03-27  Eric Blake  <ebb9@byu.net>
36906
36907         Support sub-second birthtime on cygwin.
36908         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36909         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36910         (get_stat_birthtime): Also work with st_birthtim.
36911
36912 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36913
36914         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36915         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36916         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36917         (get_stat_birthtime_ns): Simplify compile-time tests.
36918         (get_stat_birthtime): Change the API to look like
36919         get_stat_mtime etc., except return a negative tv_nsec on error.
36920         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36921         Don't check for "spare" fields.
36922         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36923         or for struct stat.st_birthtime, as these tests aren't used.
36924         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36925
36926 2007-03-27  Bruno Haible  <bruno@clisp.org>
36927
36928         * lib/stat-time.h: Include <sys/stat.h>.
36929
36930 2007-03-27  James Youngman  <jay@gnu.org>
36931
36932         * lib/stat-time.h (get_stat_birthtime): New function for
36933           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36934         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36935           and its variants.
36936         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36937         * modules/stat-time-test: New file.
36938         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36939
36940 2007-03-26  Bruno Haible  <bruno@clisp.org>
36941
36942         Better support of signalling NaNs.
36943         * lib/atanl.c: Include isnanl.h.
36944         (atanl): Perform test for NaN at the beginning of the function and
36945         through a call to isnanl.
36946         * lib/cosl.c: Include isnanl.h.
36947         (cosl): Perform test for NaN at the beginning of the function and
36948         through a call to isnanl.
36949         * lib/ldexpl.c: Include isnanl.h.
36950         (ldexpl): Perform test for NaN through a call to isnanl.
36951         * lib/logl.c: Include isnanl.h.
36952         (logl): Perform test for NaN at the beginning of the function and
36953         through a call to isnanl.
36954         * lib/sinl.c: Include isnanl.h.
36955         (sinl): Perform test for NaN at the beginning of the function and
36956         through a call to isnanl.
36957         * lib/sqrtl.c: Include isnanl.h.
36958         (sqrtl): Perform test for NaN at the beginning of the function and
36959         through a call to isnanl.
36960         * lib/tanl.c: Include isnanl.h.
36961         (tanl): Perform test for NaN at the beginning of the function and
36962         through a call to isnanl.
36963         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36964         * modules/mathl (Depends-on): Add isnanl.
36965
36966 2007-03-26  Eric Blake  <ebb9@byu.net>
36967
36968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36969         regression in logic sense of previous patch.
36970
36971 2007-03-26  Bruno Haible  <bruno@clisp.org>
36972
36973         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36974         unportable shell command "if ! ...".
36975         Reported by Ralf Wildenhues.
36976
36977 2007-03-25  Bruno Haible  <bruno@clisp.org>
36978
36979         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36980         <sysexits.h> file, and only add EX_CONFIG.
36981         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36982         absolute file name and whether it is sufficient. Substitute also
36983         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36984         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36985         ABSOLUTE_SYSEXITS_H into sysexits.h.
36986
36987 2007-03-25  Bruno Haible  <bruno@clisp.org>
36988
36989         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36990         hints is NULL.
36991
36992 2007-03-25  Bruno Haible  <bruno@clisp.org>
36993
36994         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36995         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36996
36997 2007-03-25  Bruno Haible  <bruno@clisp.org>
36998
36999         * lib/vasnprintf.c: Include langinfo.h.
37000         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
37001         multithread-safe.
37002         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
37003         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
37004         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37005         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37006         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37007         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37008         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37009         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
37010         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37011         Reported by Simon Josefsson.
37012
37013 2007-03-25  Bruno Haible  <bruno@clisp.org>
37014
37015         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
37016         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
37017         * modules/vasnprintf (Depends-on): Add stdint.
37018
37019 2007-03-25  Bruno Haible  <bruno@clisp.org>
37020
37021         * modules/fpieee: New file.
37022         * m4/fpieee.m4: New file.
37023         * modules/isnan-nolibm (Depends-on): Add fpieee.
37024         * modules/isnanl-nolibm (Depends-on): Add fpieee.
37025         * modules/isnanl (Depends-on): Add fpieee.
37026
37027 2007-03-25  Bruno Haible  <bruno@clisp.org>
37028
37029         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
37030
37031 2007-03-25  Bruno Haible  <bruno@clisp.org>
37032
37033         Avoid test failures on IRIX 6.5.
37034         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
37035         (main): Use it.
37036         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
37037         macros.
37038         (main): Use them.
37039
37040 2007-03-25  Bruno Haible  <bruno@clisp.org>
37041
37042         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
37043         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
37044         exists but doesn't work.
37045         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
37046         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
37047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
37048         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
37049
37050 2007-03-25  Bruno Haible  <bruno@clisp.org>
37051
37052         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
37053         returns inf. Needed on IRIX 6.5.
37054
37055 2007-03-25  Bruno Haible  <bruno@clisp.org>
37056
37057         * tests/test-frexpl.c: Include isnanl-nolibm.h.
37058         (main): Use isnanl instead of x != x idiom.
37059         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
37060
37061         * tests/test-frexp.c: Include isnan.h.
37062         (main): Use isnan instead of x != x idiom.
37063         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
37064
37065 2007-03-25  Bruno Haible  <bruno@clisp.org>
37066
37067         * tests/test-frexp.c (NaN): New function/macro.
37068         (main): Use it instead of 0.0 / 0.0.
37069         * tests/test-isnan.c (NaN): New function/macro.
37070         (main): Use it instead of 0.0 / 0.0.
37071         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
37072         (test_function): Use it instead of 0.0 / 0.0.
37073         * tests/test-vasprintf-posix.c (NaN): New function/macro.
37074         (test_function): Use it instead of 0.0 / 0.0.
37075         * tests/test-snprintf-posix.h (NaN): New function/macro.
37076         (test_function): Use it instead of 0.0 / 0.0.
37077         * tests/test-sprintf-posix.h (NaN): New function/macro.
37078         (test_function): Use it instead of 0.0 / 0.0.
37079         * tests/test-fprintf-posix.h (NaN): New function/macro.
37080         (test_function): Use it instead of 0.0 / 0.0.
37081         * tests/test-printf-posix.h (NaN): New function/macro.
37082         (test_function): Use it instead of 0.0 / 0.0.
37083
37084         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
37085
37086 2007-03-25  Bruno Haible  <bruno@clisp.org>
37087
37088         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
37089
37090 2007-03-25  Bruno Haible  <bruno@clisp.org>
37091
37092         * lib/regexec.c (merge_state_with_log): Make static.
37093
37094 2007-03-25  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/trigl.c (kernel_rem_pio2): Make static.
37097
37098 2007-03-25  Bruno Haible  <bruno@clisp.org>
37099
37100         * lib/sincosl.c (sincosl_table): Make static.
37101
37102 2007-03-25  Bruno Haible  <bruno@clisp.org>
37103
37104         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
37105         if the compiler does not support C99.
37106
37107 2007-03-25  Bruno Haible  <bruno@clisp.org>
37108
37109         * modules/time (Makefile.am): Ensure all rule action lines start with a
37110         tab.
37111
37112 2007-03-24  Bruno Haible  <bruno@clisp.org>
37113
37114         * modules/tsearch-tests: New file.
37115         * tests/test-tsearch.sh: New file.
37116         * tests/test-tsearch.c: New file, mostly copied from glibc.
37117
37118         * modules/search-tests: New file.
37119         * tests/test-search.c: New file.
37120
37121         * modules/search: New file.
37122         * lib/search_.h: New file, incorporating lib/tsearch.h.
37123         * m4/search_h.m4: New file.
37124         * lib/tsearch.h: Remove file.
37125         * lib/tsearch.c: Include search.h instead of tsearch.h.
37126         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
37127         HAVE_TSEARCH.
37128         * modules/tsearch (Files): Remove lib/tsearch.h.
37129         (Depends-on): Add search.
37130         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
37131         (Include): Change tsearch.h into search.h.
37132
37133 2007-03-24  Bruno Haible  <bruno@clisp.org>
37134
37135         * modules/fpucw: New file.
37136         * lib/fpucw.h: New file.
37137         * lib/frexp.c: Include fpucw.h.
37138         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37139         (FUNC): Use them.
37140         * lib/printf-frexp.c: Include fpucw.h.
37141         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37142         (FUNC): Use them.
37143         * lib/vasnprintf.c: Include fpucw.h.
37144         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
37145         'long double' calculations.
37146         * tests/test-frexpl.c: Include fpucw.h.
37147         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37148         * tests/test-printf-frexpl.c: Include fpucw.h.
37149         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37150         * modules/frexpl (Depends-on): Add fpucw.
37151         * modules/printf-frexpl (Depends-on): Likewise.
37152         * modules/fprintf-posix (Depends-on): Likewise.
37153         * modules/snprintf-posix (Depends-on): Likewise.
37154         * modules/sprintf-posix (Depends-on): Likewise.
37155         * modules/vasnprintf-posix (Depends-on): Likewise.
37156         * modules/vasprintf-posix (Depends-on): Likewise.
37157         * modules/vfprintf-posix (Depends-on): Likewise.
37158         * modules/vsnprintf-posix (Depends-on): Likewise.
37159         * modules/vsprintf-posix (Depends-on): Likewise.
37160         * modules/frexpl-tests (Depends-on): Likewise.
37161         * modules/printf-frexpl-tests (Depends-on): Likewise.
37162
37163 2007-03-24  Bruno Haible  <bruno@clisp.org>
37164
37165         * lib/float+.h: New file.
37166         * lib/isnan.c: Include float+.h.
37167         (SIZE): New macro.
37168         (FUNC): Compare only SIZE bytes of the value.
37169         * lib/vasnprintf.c: Include float+.h.
37170         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
37171         SIZEOF_LDBL or SIZEOF_DBL bytes.
37172         * modules/isnan-nolibm (Files): Add lib/float+.h.
37173         * modules/isnanl-nolibm (Files): Add lib/float+.h.
37174         * modules/isnanl (Files): Add lib/float+.h.
37175         * modules/vasnprintf (Files): Add lib/float+.h.
37176
37177 2007-03-24  Bruno Haible  <bruno@clisp.org>
37178
37179         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
37180         include isnanl-nolibm.h.
37181
37182 2007-03-24  Bruno Haible  <bruno@clisp.org>
37183
37184         * tests/test-read-file.c (main): Don't produce spurious output for
37185         expected situations. Make the test fail if it encountered unexpected
37186         results.
37187
37188 2007-03-24  Bruno Haible  <bruno@clisp.org>
37189
37190         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
37191         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
37192
37193 2007-03-24  Bruno Haible  <bruno@clisp.org>
37194
37195         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
37196
37197 2007-03-24  Bruno Haible  <bruno@clisp.org>
37198
37199         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
37200         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
37201
37202         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
37203         * modules/utf8-ucs4: Turn into a symbolic link to module
37204         unistr/u8-mbtouc.
37205
37206         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
37207         utf8-ucs4-unsafe.
37208         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
37209         unistr/u8-mbtouc-unsafe.
37210
37211         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
37212         * modules/utf16-ucs4: Turn into a symbolic link to module
37213         unistr/u16-mbtouc.
37214
37215         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
37216         utf16-ucs4-unsafe.
37217         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
37218         unistr/u16-mbtouc-unsafe.
37219
37220         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
37221         * modules/ucs4-utf8: Turn into a symbolic link to module
37222         unistr/u8-ubtomb.
37223
37224         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
37225         * modules/ucs4-utf16: Turn into a symbolic link to module
37226         unistr/u16-ubtomb.
37227
37228 2007-03-24  Bruno Haible  <bruno@clisp.org>
37229
37230         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
37231         Enable the function only if HAVE_INLINE.
37232         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
37233         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37234         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
37235         Enable the function only if HAVE_INLINE.
37236         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
37237         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37238         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
37239         Enable the function only if HAVE_INLINE.
37240         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
37241         Enable the function only if HAVE_INLINE.
37242         * modules/utf8-ucs4: Update.
37243         * modules/utf8-ucs4-unsafe: Update.
37244         * modules/utf16-ucs4: Update.
37245         * modules/utf16-ucs4-unsafe: Update.
37246         * modules/ucs4-utf8: Update.
37247         * modules/ucs4-utf16: Update.
37248
37249 2007-03-24  Bruno Haible  <bruno@clisp.org>
37250
37251         * lib/utf8-ucs4.h: Remove file.
37252         * lib/utf8-ucs4-unsafe.h: Remove file.
37253         * lib/utf16-ucs4.h: Remove file.
37254         * lib/utf16-ucs4-unsafe.h: Remove file.
37255         * lib/ucs4-utf8.h: Remove file.
37256         * lib/ucs4-utf16.h: Remove file.
37257         * lib/unistr.h: Include their previous contents.
37258         * m4/utf-ucs4.m4: Remove file.
37259         * m4/ucs4-utf.m4: Remove file.
37260         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
37261         (Depends-on): Add unistr/base.
37262         (configure.ac): Remove gl_UTF_UCS4.
37263         (Makefile.am): Update.
37264         (Include): Change to unistr.h.
37265         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
37266         (Depends-on): Add unistr/base.
37267         (configure.ac): Remove gl_UTF_UCS4.
37268         (Makefile.am): Update.
37269         (Include): Change to unistr.h.
37270         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
37271         (Depends-on): Add unistr/base.
37272         (configure.ac): Remove gl_UTF_UCS4.
37273         (Makefile.am): Update.
37274         (Include): Change to unistr.h.
37275         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
37276         (Depends-on): Add unistr/base.
37277         (configure.ac): Remove gl_UTF_UCS4.
37278         (Makefile.am): Update.
37279         (Include): Change to unistr.h.
37280         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
37281         (Depends-on): Add unistr/base.
37282         (configure.ac): Remove gl_UCS4_UTF.
37283         (Makefile.am): Update.
37284         (Include): Change to unistr.h.
37285         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
37286         (Depends-on): Add unistr/base.
37287         (configure.ac): Remove gl_UCS4_UTF.
37288         (Makefile.am): Update.
37289         (Include): Change to unistr.h.
37290         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
37291         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
37292         utf8-ucs4-unsafe.h.
37293         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
37294         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
37295         utf16-ucs4-unsafe.h.
37296         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
37297         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
37298         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
37299         * lib/unistr/u8-strchr.c: Likewise.
37300         * lib/unistr/u8-strrchr.c: Likewise.
37301         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
37302         * lib/unistr/u16-strchr.c: Likewise.
37303         * lib/unistr/u16-strrchr.c: Likewise.
37304         * lib/striconveh.c: Update.
37305         * lib/linebreak.c: Update.
37306
37307 2007-03-24  Bruno Haible  <bruno@clisp.org>
37308
37309         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
37310         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
37311
37312 2007-03-22  Bruno Haible  <bruno@clisp.org>
37313
37314         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37315
37316 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37317
37318         * MODULES.html.sh (File system functions): New module write-any-file.
37319         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37320         * m4/write-any-file.m4: New files.
37321
37322 2007-03-23  Eric Blake  <ebb9@byu.net>
37323
37324         * gnulib-tool: Rearrange space-tab sequences, since some editors
37325         like to eat them.
37326
37327 2007-03-23  Eric Blake  <ebb9@byu.net>
37328
37329         * lib/version-etc.c (version_etc_va): Update license wording to
37330         be more concise.  Recommended by Richard Stallman.
37331
37332 2007-03-22  Bruno Haible  <bruno@clisp.org>
37333
37334         * lib/poll.c (MSG_PEEK): New fallback definition.
37335
37336 2007-03-22  Bruno Haible  <bruno@clisp.org>
37337
37338         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37339         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37340         (main): Update.
37341         Fixes a compilation error on BeOS.
37342
37343 2007-03-22  Bruno Haible  <bruno@clisp.org>
37344
37345         * modules/frexpl-tests: New file.
37346         * tests/test-frexpl.c: New file.
37347
37348         * modules/frexpl: New file.
37349         * m4/frexpl.m4: New file.
37350         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37351         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37353         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37354         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37355         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37356
37357 2007-03-22  Bruno Haible  <bruno@clisp.org>
37358
37359         * lib/frexpl.c: Share code with lib/frexp.c.
37360         * modules/mathl (Files): Add lib/frexp.c.
37361         (Depends-on): Add isnanl-nolibm.
37362
37363 2007-03-22  Bruno Haible  <bruno@clisp.org>
37364
37365         * modules/printf-frexp (Files): Add m4/frexp.m4.
37366         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37367         only if the found frexp function actually works.
37368
37369 2007-03-22  Bruno Haible  <bruno@clisp.org>
37370
37371         * lib/frexp.c: Remove older implementation that uses divisions.
37372
37373 2007-03-21  Bruno Haible  <bruno@clisp.org>
37374
37375         * modules/frexp-tests: New file.
37376         * tests/test-frexp.c: New file.
37377
37378         * modules/frexp: New file.
37379         * lib/frexp.c: New file.
37380         * m4/frexp.m4: New file.
37381         * lib/math_.h (frexp): New declaration.
37382         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37383         REPLACE_FREXP.
37384         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37385
37386 2007-03-21  Bruno Haible  <bruno@clisp.org>
37387
37388         * modules/isnanl-tests: New file.
37389         * tests/test-isnanl.c: New file.
37390
37391         * modules/isnanl: New file.
37392         * lib/isnanl.h: New file.
37393         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37394         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37395         gl_FUNC_ISNANL_WORKS.
37396         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37397         New macros.
37398
37399 2007-03-21  Bruno Haible  <bruno@clisp.org>
37400
37401         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37402         lib/isnanl.h.
37403         (Include): Update.
37404         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37405         * lib/vasnprintf.c: Update.
37406         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37407         tests/test-isnanl.h, remove tests/test-isnanl.c.
37408         (Makefile.am): Update.
37409         * tests/test-isnanl-nolibm.c: New file.
37410         * tests/test-isnanl.h: New file.
37411         * tests/test-isnanl.c: Remove file.
37412
37413 2007-03-21  Jim Meyering  <jim@meyering.net>
37414
37415         When trying to open ".", treat ESTALE like EACCES.
37416         * lib/savewd.c (savewd_save): Resort to forking not just upon
37417         failure with EACCES, but also when errno is ESTALE.
37418
37419 2007-03-20  Bruno Haible  <bruno@clisp.org>
37420
37421         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37422         Needed on AIX 5.1. Reported by Matthew Woehlke.
37423
37424 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37425
37426         Suggestions by Bruno Haible:
37427         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37428         our own.
37429         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37430         * modules/acl (Depends-on): Add gettext.
37431
37432 2007-03-19  Bruno Haible  <bruno@clisp.org>
37433
37434         * modules/iconvme: Remove file.
37435         * lib/iconvme.h: Remove file.
37436         * lib/iconvme.c: Remove file.
37437         * m4/iconvme.m4: Remove file.
37438
37439 2007-03-19  Bruno Haible  <bruno@clisp.org>
37440
37441         * doc/relocatable-maint.texi: Break long shell script line.
37442         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37443
37444 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37445
37446         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37447         handle file_has_acl.
37448         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37449         * lib/acl.c: Move header inclusions and related macro defns into
37450         lib/acl-internal.h.
37451         (S_ISLNK): Remove defn, since that's now done for us.
37452         (file_has_acl): Move to lib/file-has-acl.c.
37453         Call acl_trivial if available.  This is the crucial part of the fix.
37454         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37455         shared within the library.  Rewrite a bit, partly to make it compatible
37456         with the GNU coding style.
37457         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37458         Remove unnecessary double-quotes.
37459         Don't test for acl_to_text; the build will catch that.
37460         Replace acl_entries if it doesn't exist and it is needed.
37461         Check for -lsec and acl_trivial (as used on Solaris 10).
37462         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37463         lib/file-has-acl.c.
37464         (Depends-on): Add sys_stat, for S_ISLNK.
37465
37466 2007-03-19  Ben Pfaff  <blp@gnu.org>
37467
37468         * doc/gnulib.texi: Fix typos.
37469         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37470
37471 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37472
37473         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37474         If size is zero here, buf must be zero.
37475
37476 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37477
37478         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37479         <bruno@clisp.org>.
37480
37481 2007-03-18  Bruno Haible  <bruno@clisp.org>
37482
37483         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37484         Suggested by Eric Blake.
37485
37486 2007-03-18  Ben Pfaff  <blp@gnu.org>
37487
37488         * doc/relocatable.texi: Recommend using as prefix a directory
37489         that does not exist and will never be created.  Based on
37490         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37491         and others.
37492
37493 2007-03-17  Bruno Haible  <bruno@clisp.org>
37494
37495         * lib/fchownat.c: Include lchown.h.
37496
37497 2007-03-17  Bruno Haible  <bruno@clisp.org>
37498
37499         Fix endless loop when the given allocated size was > INT_MAX.
37500         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37501         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37502         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37503         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37504         * lib/sprintf.c (sprintf): Likewise.
37505
37506 2007-03-17  Bruno Haible  <bruno@clisp.org>
37507
37508         * tests/test-argp-2.sh (func_compare): Output a context diff.
37509
37510 2007-03-17  Bruno Haible  <bruno@clisp.org>
37511
37512         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37513         locale's decimal-point character.
37514
37515 2007-03-17  Bruno Haible  <bruno@clisp.org>
37516
37517         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37518         before comparing it. Needed because on some platforms (e.g. x86) a
37519         'long double' occupies less bytes than sizeof (long double).
37520
37521 2007-03-17  Bruno Haible  <bruno@clisp.org>
37522
37523         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37524         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37525         * tests/test-getaddrinfo.c (simple): Likewise.
37526         * tests/test-read-file.c (main): Likewise.
37527
37528 2007-03-17  Bruno Haible  <bruno@clisp.org>
37529
37530         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37531
37532 2007-03-17  Bruno Haible  <bruno@clisp.org>
37533
37534         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37535         unused variable.
37536
37537 2007-03-17  Bruno Haible  <bruno@clisp.org>
37538
37539         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37540         * tests/test-c-strncasecmp.c: Likewise.
37541
37542 2007-03-17  Bruno Haible  <bruno@clisp.org>
37543
37544         * modules/stdlib (Depends-on): Add unistd.
37545         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37546         Needed for MacOS X 10.3.
37547
37548 2007-03-17  Bruno Haible  <bruno@clisp.org>
37549
37550         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37551
37552 2007-03-17  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37555
37556 2007-03-17  Bruno Haible  <bruno@clisp.org>
37557
37558         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37559         to reflect files copied from gnulib (with or without modifications).
37560         Suggested by Jim Meyering.
37561
37562 2007-03-17  Eric Blake  <ebb9@byu.net>
37563
37564         * NEWS: Document stdlib change from 2007-02-18.
37565
37566 2007-03-17  Jim Meyering  <jim@meyering.net>
37567
37568         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37569         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37570         someone uses a name containing shell meta-characters.
37571         Reported by Alfred M. Szmidt.
37572
37573         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37574
37575 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37576
37577         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37578         and copy gettext configuration files only if configure.ac contains
37579         a use of AM_GNU_GETTEXT_VERSION.
37580
37581 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37582
37583         * build-aux/bootstrap (gnulib_name): New variable.
37584         (gnulib_tool_options): Use it.
37585
37586 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37587
37588         * tests/test-des.c: Use new namespace.
37589
37590 2007-03-15  Bruno Haible  <bruno@clisp.org>
37591
37592         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37593         Reported by James Youngman <jay@gnu.org>.
37594
37595 2007-03-15  Bruno Haible  <bruno@clisp.org>
37596
37597         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37598         declared prototype. Needed with cc on OSF/1 5.1.
37599
37600 2007-03-15  Bruno Haible  <bruno@clisp.org>
37601
37602         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37603         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37604         (struct gl_list_implementation): Add dispose_fn argument to the
37605         'create_empty', 'create' methods.
37606         (struct gl_list_impl_base): Add field 'dispose_fn'.
37607         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37608         argument.
37609         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37610         dispose_fn argument.
37611         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37612         dispose_fn on the dropped values.
37613         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37614         dispose_fn argument.
37615         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37616         dropped values.
37617         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37618         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37619         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37620         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37621         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37622         argument.
37623         (gl_tree_list_free): Call dispose_fn on the dropped values.
37624         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37625         the dropped values.
37626         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37627         Add dispose_fn argument.
37628         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37629         Call dispose_fn on the dropped values.
37630         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37631         Add dispose_fn argument.
37632         (gl_sublist_create): Initialize the 'dispose_fn' field.
37633         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37634         * tests/test-array_list.c (main): Update.
37635         * tests/test-carray_list.c (main): Update.
37636         * tests/test-avltree_list.c (main): Update.
37637         * tests/test-rbtree_list.c (main): Update.
37638         * tests/test-avltreehash_list.c (main): Update.
37639         * tests/test-rbtreehash_list.c (main): Update.
37640         * tests/test-linked_list.c (main): Update.
37641         * tests/test-linkedhash_list.c (main): Update.
37642         * tests/test-array_oset.c (main): Update.
37643
37644 2007-03-15  Bruno Haible  <bruno@clisp.org>
37645
37646         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37647         (gl_oset_create_empty): Add dispose_fn argument.
37648         (struct gl_oset_implementation): Add dispose_fn argument to
37649         'create_empty' method.
37650         (struct gl_oset_impl_base): Add dispose_fn field.
37651         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37652         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37653         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37654         values.
37655         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37656         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37657         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37658         dropped value.
37659         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37660         dropped value.
37661         * tests/test-array_oset.c (main): Update.
37662         * tests/test-avltree_oset.c (main): Update.
37663         * tests/test-rbtree_oset.c (main): Update.
37664         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37665
37666 2007-03-13  Bruno Haible  <bruno@clisp.org>
37667
37668         * tests/test-stdbool.c (i): Update after last patch.
37669
37670 2007-03-12  Bruno Haible  <bruno@clisp.org>
37671
37672         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37673         the iswprint macro. Needed on Solaris 2.5.1.
37674
37675 2007-03-12  Bruno Haible  <bruno@clisp.org>
37676
37677         * tests/test-printf-frexp.c (main): Declare x as volatile.
37678
37679 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37680
37681         * doc/gnulib.texi (Build robot for gnulib): New section.
37682
37683 2007-03-12  Jim Meyering  <jim@meyering.net>
37684
37685         * build-aux/bootstrap: New file.
37686         * build-aux/bootstrap.conf: New file, from coreutils.
37687
37688 2007-03-11  Bruno Haible  <bruno@clisp.org>
37689
37690         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37691
37692 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37693
37694         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37695         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37696         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37697
37698 2007-03-11  Bruno Haible  <bruno@clisp.org>
37699
37700         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37701         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37702
37703 2007-03-11  Bruno Haible  <bruno@clisp.org>
37704
37705         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37706         formula. Needed for SunPRO C 5.0.
37707
37708 2007-03-11  Bruno Haible  <bruno@clisp.org>
37709
37710         * modules/long-options (Depends-on): Add getopt.
37711
37712 2007-03-11  Bruno Haible  <bruno@clisp.org>
37713
37714         * modules/modechange (Depends-on): Add stdbool.
37715
37716 2007-03-11  Bruno Haible  <bruno@clisp.org>
37717
37718         * modules/i-ring (Depends-on): Add stdbool.
37719
37720 2007-03-11  Bruno Haible  <bruno@clisp.org>
37721
37722         * modules/gc-des (Depends-on): Add stdbool.
37723
37724 2007-03-11  Bruno Haible  <bruno@clisp.org>
37725
37726         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37727
37728 2007-03-11  Bruno Haible  <bruno@clisp.org>
37729
37730         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37731
37732 2007-03-11  Bruno Haible  <bruno@clisp.org>
37733
37734         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37735
37736 2007-03-11  Bruno Haible  <bruno@clisp.org>
37737
37738         * lib/vasnprintf.c (sprintf): Undefine.
37739
37740 2007-03-11  Bruno Haible  <bruno@clisp.org>
37741
37742         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37743         initializers in SunPRO C and Compaq C compilers.
37744
37745 2007-03-11  Bruno Haible  <bruno@clisp.org>
37746
37747         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37748         decrementing code ANSI C compliant.
37749
37750 2007-03-11  Bruno Haible  <bruno@clisp.org>
37751
37752         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37753         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37754
37755 2007-03-11  Bruno Haible  <bruno@clisp.org>
37756
37757         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37758         <stdbool.h> substitute doesn't pass.
37759
37760 2007-03-11  Bruno Haible  <bruno@clisp.org>
37761
37762         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37763
37764 2007-03-11  Bruno Haible  <bruno@clisp.org>
37765
37766         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37767         script, for submission to autobuild.josefsson.org.
37768
37769 2007-03-10  Bruno Haible  <bruno@clisp.org>
37770
37771         * modules/canonicalize-lgpl-tests: New file.
37772         * tests/test-canonicalize-lgpl.sh: New file.
37773         * tests/test-canonicalize-lgpl.c: New file.
37774
37775         * modules/c-strcase-tests: New file.
37776         * tests/test-c-strcase.sh: New file.
37777         * tests/test-c-strcasecmp.c: New file.
37778         * tests/test-c-strncasecmp.c: New file.
37779
37780         * modules/atexit-tests: New file.
37781         * tests/test-atexit.sh: New file.
37782         * tests/test-atexit.c: New file.
37783
37784 2007-03-10  Bruno Haible  <bruno@clisp.org>
37785
37786         * tests/test-binary-io.sh: Use temporary filenames that are not so
37787         likely to clash with those of other tests (in a parallel make).
37788         * tests/test-binary-io.c: Likewise.
37789
37790 2007-03-10  Bruno Haible  <bruno@clisp.org>
37791
37792         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37793         fallback; use #error instead.
37794         Suggested by Simon Josefsson.
37795
37796 2007-03-10  Bruno Haible  <bruno@clisp.org>
37797
37798         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37799         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37800         first and the last.
37801
37802 2007-03-10  Bruno Haible  <bruno@clisp.org>
37803
37804         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37805
37806 2007-03-10  Bruno Haible  <bruno@clisp.org>
37807
37808         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37809         "make distcheck".
37810         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37811         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37812         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37813
37814 2007-03-10  Bruno Haible  <bruno@clisp.org>
37815
37816         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37817         variable.
37818         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37819         variable.
37820
37821 2007-03-09  Eric Blake  <ebb9@byu.net>
37822         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37823
37824         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37825         types are not being provided by gnulib.
37826         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37827         types are supported.
37828
37829 2007-03-10  Bruno Haible  <bruno@clisp.org>
37830
37831         * lib/stdio_.h (__attribute__): New macro.
37832         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37833         vsprintf): Specify __attribute__ __format__ for GCC.
37834         Suggested by Eric Blake.
37835
37836 2007-03-09  Bruno Haible  <bruno@clisp.org>
37837
37838         * modules/printf-posix-tests: New file.
37839         * tests/test-printf-posix.sh: New file.
37840         * tests/test-printf-posix.c: New file.
37841
37842         * modules/printf-posix: New file.
37843         * lib/printf.c: New file.
37844         * m4/printf-posix-rpl.m4: New file.
37845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37846         REPLACE_PRINTF.
37847         * lib/stdio_.h (printf): New declaration.
37848         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37849         ____strfmon____): New macros.
37850         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37851         REPLACE_PRINTF.
37852
37853 2007-03-09  Bruno Haible  <bruno@clisp.org>
37854
37855         * tests/test-vasnprintf-posix2.sh: New file.
37856         * tests/test-vasnprintf-posix2.c: New file.
37857         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37858         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37859         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37860
37861         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37862         a locale dependent decimal point, rather than always '.'.
37863
37864 2007-03-09  Eric Blake  <ebb9@byu.net>
37865
37866         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37867         spite of platforms like Tandem/NSK that define it to -1.
37868
37869 2007-03-08  Bruno Haible  <bruno@clisp.org>
37870
37871         * modules/vprintf-posix-tests: New file.
37872         * tests/test-vprintf-posix.sh: New file.
37873         * tests/test-vprintf-posix.c: New file.
37874         * tests/test-printf-posix.h: New file.
37875
37876         * modules/vprintf-posix: New file.
37877         * lib/vprintf.c: New file.
37878         * m4/vprintf-posix.m4: New file.
37879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37880         REPLACE_VPRINTF.
37881         * lib/stdio_.h (vprintf): New declaration.
37882         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37883         REPLACE_VPRINTF.
37884
37885 2007-03-08  Bruno Haible  <bruno@clisp.org>
37886
37887         * modules/fprintf-posix-tests: New file.
37888         * tests/test-fprintf-posix.sh: New file.
37889         * tests/test-fprintf-posix.c: New file.
37890
37891         * modules/fprintf-posix: New file.
37892         * lib/fprintf.c: New file.
37893         * m4/fprintf-posix.m4: New file.
37894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37895         REPLACE_FPRINTF.
37896         * lib/stdio_.h (fprintf): New declaration.
37897         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37898         REPLACE_FPRINTF.
37899
37900 2007-03-08  Bruno Haible  <bruno@clisp.org>
37901
37902         * modules/vfprintf-posix-tests: New file.
37903         * tests/test-vfprintf-posix.sh: New file.
37904         * tests/test-vfprintf-posix.c: New file.
37905         * tests/test-fprintf-posix.h: New file.
37906         * tests/test-fprintf-posix.out: New file.
37907
37908         * modules/vfprintf-posix: New file.
37909         * lib/vfprintf.c: New file.
37910         * m4/vfprintf-posix.m4: New file.
37911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37912         REPLACE_VFPRINTF.
37913         * lib/stdio_.h (vfprintf): New declaration.
37914         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37915         REPLACE_VFPRINTF.
37916
37917 2007-03-08  Bruno Haible  <bruno@clisp.org>
37918
37919         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37920
37921 2007-03-08  Bruno Haible  <bruno@clisp.org>
37922
37923         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37924         instead of 'expr' invocations.
37925         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37926         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37927         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37928         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37929         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37930         Suggested by Paul Eggert.
37931
37932 2007-03-08  Bruno Haible  <bruno@clisp.org>
37933
37934         * modules/fseterr-tests: New file.
37935         * tests/test-fseterr.c: New file.
37936
37937         * modules/fseterr: New file.
37938         * lib/fseterr.h: New file.
37939         * lib/fseterr.c: New file.
37940
37941 2007-03-08  Bruno Haible  <bruno@clisp.org>
37942
37943         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37944         * lib/getopt_.h: Likewise.
37945         * lib/mbswidth.h: Likewise.
37946         * lib/setenv.h: Likewise.
37947         * lib/vasnprintf.h: Likewise.
37948         * lib/vasprintf.h: Likewise.
37949         * lib/verror.h: Likewise.
37950         * lib/xsetenv.h: Likewise.
37951         * lib/xvasprintf.h: Likewise.
37952
37953 2007-03-08  Jim Meyering  <jim@meyering.net>
37954
37955         * users.txt: Add parted.
37956
37957         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37958
37959 2007-03-07  Bruno Haible  <bruno@clisp.org>
37960
37961         * m4/printf.m4: Make the shell script snippets copy&pastable.
37962
37963 2007-03-02  Bruno Haible  <bruno@clisp.org>
37964
37965         * lib/netinet_in_.h: New file.
37966         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37967         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37968         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37969         (Depends-on): Add absolute-header.
37970         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37971         into netinet/in.h.
37972
37973 2007-03-03  Bruno Haible  <bruno@clisp.org>
37974
37975         * lib/sys_select_.h: New file.
37976         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37977         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37978         * modules/sys_select (Files): Add lib/sys_select_.h.
37979         (Depends-on): Add absolute-header.
37980         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37981         into sys/select.h.
37982
37983 2007-03-02  Bruno Haible  <bruno@clisp.org>
37984
37985         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37986         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37987         values.
37988         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37989         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37990         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37991         * modules/sys_socket (Depends-on): Add absolute-header.
37992         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37993         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37994         (Include): Remove requirement of inclusion of <sys/types.h>.
37995
37996 2007-03-02  Bruno Haible  <bruno@clisp.org>
37997
37998         * lib/byteswap_.h (bswap_32): Fix formula.
37999
38000 2007-03-06  Bruno Haible  <bruno@clisp.org>
38001
38002         * modules/sprintf-posix-tests: New file.
38003         * tests/test-sprintf-posix.c: New file.
38004
38005         * modules/sprintf-posix: New file.
38006         * lib/sprintf.c: New file.
38007         * m4/sprintf-posix.m4: New file.
38008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
38009         REPLACE_SPRINTF.
38010         * lib/stdio_.h (sprintf): New declaration.
38011         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
38012         REPLACE_SPRINTF.
38013
38014 2007-03-06  Bruno Haible  <bruno@clisp.org>
38015
38016         * modules/vsprintf-posix-tests: New file.
38017         * tests/test-vsprintf-posix.c: New file.
38018         * tests/test-sprintf-posix.h: New file.
38019
38020         * modules/vsprintf-posix: New file.
38021         * lib/vsprintf.c: New file.
38022         * m4/vsprintf-posix.m4: New file.
38023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
38024         REPLACE_VSPRINTF.
38025         * lib/stdio_.h (vsprintf): New declaration.
38026         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
38027         REPLACE_VSPRINTF.
38028
38029 2007-03-06  Bruno Haible  <bruno@clisp.org>
38030
38031         * modules/vsnprintf (Depend-on): Remove minmax.
38032
38033 2007-03-06  Bruno Haible  <bruno@clisp.org>
38034
38035         * modules/snprintf-posix-tests: New file.
38036         * tests/test-snprintf-posix.c: New file.
38037
38038         * modules/snprintf-posix: New file.
38039         * m4/snprintf-posix.m4: New file.
38040         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
38041         gl_FUNC_SNPRINTF.
38042         (gl_FUNC_SNPRINTF): Invoke it.
38043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
38044         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
38045         is set.
38046         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
38047
38048 2007-03-06  Bruno Haible  <bruno@clisp.org>
38049
38050         * modules/vsnprintf-posix-tests: New file.
38051         * tests/test-vsnprintf-posix.c: New file.
38052         * tests/test-snprintf-posix.h: New file.
38053
38054         * modules/vsnprintf-posix: New file.
38055         * m4/vsnprintf-posix.m4: New file.
38056         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
38057         gl_FUNC_VSNPRINTF.
38058         (gl_FUNC_VSNPRINTF): Invoke it.
38059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
38060         * lib/stdio_.h (vsnprintf): Define as a replacement if
38061         REPLACE_VSNPRINTF is set.
38062         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
38063
38064 2007-03-06  Bruno Haible  <bruno@clisp.org>
38065
38066         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
38067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
38068
38069 2007-03-06  Bruno Haible  <bruno@clisp.org>
38070
38071         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
38072         (asinl): Declare also if HAVE_DECL_ASINL is set.
38073         (atanl): Declare also if HAVE_DECL_ATANL is set.
38074         (ceill): Declare also if HAVE_DECL_CEILL is set.
38075         (cosl): Declare also if HAVE_DECL_COSL is set.
38076         (expl): Declare also if HAVE_DECL_EXPL is set.
38077         (floorl): Declare also if HAVE_DECL_FLOORL is set.
38078         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
38079         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
38080         (logl): Declare also if HAVE_DECL_LOGL is set.
38081         (sinl): Declare also if HAVE_DECL_SINL is set.
38082         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
38083         (tanl): Declare also if HAVE_DECL_TANL is set.
38084         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
38085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
38086         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
38087         declaration of frexpl, ldexpl.
38088         * modules/printf-frexpl (Depends-on): Add math.
38089         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
38090
38091 2007-03-05  Bruno Haible  <bruno@clisp.org>
38092
38093         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
38094         frexpl and ldexpl are declared.
38095         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
38096
38097 2007-03-05  Bruno Haible  <bruno@clisp.org>
38098
38099         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
38100         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
38101
38102 2007-03-05  Bruno Haible  <bruno@clisp.org>
38103
38104         * lib/stdio_.h: Include <stddef.h>.
38105
38106 2007-03-05  Bruno Haible  <bruno@clisp.org>
38107
38108         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
38109
38110 2007-03-05  Bruno Haible  <bruno@clisp.org>
38111
38112         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
38113         NetBSD 4, from Ralf Wildenhues.
38114
38115 2007-03-04  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/vasprintf.h: Update #if logic for the case when the functions
38118         exist but are overridden.
38119
38120 2007-03-04  Bruno Haible  <bruno@clisp.org>
38121
38122         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
38123         implementations: glibc-2.4 and MacOS X 10.3.
38124         * tests/test-vasnprintf-posix.c (test_function): Test also the case
38125         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
38126         * tests/test-vasprintf-posix.c (test_function): Likewise.
38127
38128 2007-03-04  Bruno Haible  <bruno@clisp.org>
38129
38130         * modules/vasprintf-posix-tests: New file.
38131         * tests/test-vasprintf-posix.c: New file.
38132
38133         * modules/vasprintf-posix: New file.
38134         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
38135         defined.
38136         * m4/vasprintf-posix.m4: New file.
38137         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
38138         gl_FUNC_VASPRINTF.
38139         (gl_FUNC_VASPRINTF): Invoke it.
38140         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
38141         here.
38142         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
38143
38144 2007-03-04  Bruno Haible  <bruno@clisp.org>
38145
38146         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
38147         REPLACE_GETTIMEOFDAY.
38148         * modules/sys_time (Makefile.am): Likewise.
38149         * m4/sys_time_h.m4: Likewise.
38150         * m4/gettimeofday.m4: Likewise.
38151
38152 2007-03-04  Bruno Haible  <bruno@clisp.org>
38153
38154         * modules/vasnprintf-posix-tests: New file.
38155         * tests/test-vasnprintf-posix.c: New file.
38156
38157         * modules/vasnprintf-posix: New file.
38158         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
38159         printf-frexpl.h.
38160         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
38161         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
38162         REPLACE_VASNPRINTF is defined.
38163         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
38164         gl_FUNC_VASNPRINTF.
38165         (gl_FUNC_VASNPRINTF): Invoke it.
38166         * m4/vasnprintf-posix.m4: New file.
38167         * m4/printf.m4: New file.
38168
38169 2007-03-04  Bruno Haible  <bruno@clisp.org>
38170
38171         Compile progreloc.c only if --enable-relocatable is specified.
38172         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
38173         if --enable-relocatable was specified.
38174         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
38175         lib_SOURCES.
38176
38177 2007-03-04  Jim Meyering  <jim@meyering.net>
38178
38179         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
38180         Use it consistently, rather than enumerating errno constants.
38181
38182 2007-03-04  Bruno Haible  <bruno@clisp.org>
38183
38184         * modules/xvasprintf-tests: New file.
38185         * tests/test-xvasprintf.c: New file.
38186
38187         * modules/vasprintf-tests: New file.
38188         * tests/test-vasprintf.c: New file.
38189
38190         * modules/vasnprintf-tests: New file.
38191         * tests/test-vasnprintf.c: New file.
38192
38193         * modules/vsnprintf-tests: New file.
38194         * tests/test-vsnprintf.c: New file.
38195
38196         * modules/snprintf-tests: New file.
38197         * tests/test-snprintf.c: New file.
38198
38199 2007-03-04  Bruno Haible  <bruno@clisp.org>
38200
38201         Compile relocatable.c only if --enable-relocatable is specified.
38202         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
38203         gl_RELOCATABLE_LIBRARY.
38204         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
38205         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
38206         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
38207         gl_RELOCATABLE_LIBRARY.
38208         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
38209         (Makefile.am): Remove lib_SOURCES.
38210         * modules/relocatable-lib-lgpl (configure.ac): Invoke
38211         gl_RELOCATABLE_LIBRARY.
38212         (Makefile.am): Remove lib_SOURCES.
38213         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
38214         always.
38215         * modules/relocatable-prog-wrapper (configure.ac): Invoke
38216         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
38217
38218 2007-03-04  Bruno Haible  <bruno@clisp.org>
38219
38220         * modules/argmatch-tests: New file.
38221         * tests/test-argmatch.c: New file.
38222
38223         * tests/test-allocsa.c (main): Halve the number of loop runs.
38224
38225         * modules/alloca-opt-tests: New file.
38226         * tests/test-alloca-opt.c: New file.
38227
38228 2007-03-04  Jim Meyering  <jim@meyering.net>
38229
38230         Work around difference between Linux ACLs and Solaris 10 ZFS.
38231         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
38232         for EINVAL.
38233
38234 2007-03-03  Bruno Haible  <bruno@clisp.org>
38235
38236         * modules/relocatable-prog (Depends-on): Add back progreloc's
38237         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
38238
38239 2007-03-03  Bruno Haible  <bruno@clisp.org>
38240
38241         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
38242         * modules/relocatable-lib: New file.
38243
38244 2007-03-03  Bruno Haible  <bruno@clisp.org>
38245
38246         * modules/relocatable-prog: Renamed from modules/relocatable.
38247         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
38248
38249 2007-03-03  Bruno Haible  <bruno@clisp.org>
38250
38251         * modules/relocatable-script (Files): Add doc/relocatable.texi,
38252         m4/relocatable-lib.m4.
38253         (Depends-on): Remove 'relocatable'.
38254         (configure.ac): Add gl_RELOCATABLE_NOP.
38255
38256 2007-03-03  Bruno Haible  <bruno@clisp.org>
38257
38258         * modules/relocatable-prog-wrapper: New file.
38259         * modules/relocatable (Depends-on): Add it. Remove all other
38260         dependencies except progname.
38261         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
38262
38263         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
38264         (gl_FUNC_STRERROR): Nop.
38265         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
38266
38267         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
38268         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
38269
38270         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
38271         (gl_FUNC_READLINK): Update.
38272
38273         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
38274
38275 2007-03-03  Bruno Haible  <bruno@clisp.org>
38276
38277         * lib/xreadlink.c: Include <unistd.h> unconditionally.
38278         * modules/xreadlink (Depends-on): Add unistd.
38279         * modules/xreadlink-with-size (Depends-on): Likewise.
38280
38281 2007-03-03  Bruno Haible  <bruno@clisp.org>
38282
38283         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
38284         extracted from gt_FUNC_SETENV.
38285         (gt_FUNC_SETENV): Remove macro.
38286         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
38287         remove gt_FUNC_SETENV.
38288
38289 2007-03-03  Bruno Haible  <bruno@clisp.org>
38290
38291         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
38292         ENABLE_RELOCATABLE here.
38293         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
38294
38295 2007-03-03  Bruno Haible  <bruno@clisp.org>
38296
38297         * modules/rbtreehash-list-tests (Depends-on): Add progname.
38298         * tests/test-rbtreehash_list.c: Include progname.h.
38299         (main): Call set_program_name.
38300
38301         * modules/rbtree-oset-tests (Depends-on): Add progname.
38302         * tests/test-rbtree_oset.c: Include progname.h.
38303         (main): Call set_program_name.
38304
38305         * modules/rbtree-list-tests (Depends-on): Add progname.
38306         * tests/test-rbtree_list.c: Include progname.h.
38307         (main): Call set_program_name.
38308
38309         * modules/linked-list-tests (Depends-on): Add progname.
38310         * tests/test-linked_list.c: Include progname.h.
38311         (main): Call set_program_name.
38312
38313 2007-03-03  Bruno Haible  <bruno@clisp.org>
38314
38315         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38316         All uses of __restrict changed to _Restrict_.
38317         * lib/glob_.h (__restrict): Remove macro.
38318
38319 2007-03-02  Bruno Haible  <bruno@clisp.org>
38320
38321         * modules/gettext (configure.ac): Require gettext infrastructure
38322         from version 0.16.1.
38323
38324 2007-03-02  Bruno Haible  <bruno@clisp.org>
38325
38326         * modules/linkedhash-list-tests (Depends-on): Add progname.
38327         * tests/test-linkedhash_list.c: Include progname.h.
38328         (main): Call set_program_name.
38329
38330         * modules/carray-list-tests (Depends-on): Add progname.
38331         * tests/test-carray_list.c: Include progname.h.
38332         (main): Call set_program_name.
38333
38334         * modules/avltreehash-list-tests (Depends-on): Add progname.
38335         * tests/test-avltreehash_list.c: Include progname.h.
38336         (main): Call set_program_name.
38337
38338         * modules/avltree-oset-tests (Depends-on): Add progname.
38339         * tests/test-avltree_oset.c: Include progname.h.
38340         (main): Call set_program_name.
38341
38342         * modules/avltree-list-tests (Depends-on): Add progname.
38343         * tests/test-avltree_list.c: Include progname.h.
38344         (main): Call set_program_name.
38345
38346         * modules/array-oset-tests (Depends-on): Add progname.
38347         * tests/test-array_oset.c: Include progname.h.
38348         (main): Call set_program_name.
38349
38350         * modules/array-list-tests (Depends-on): Add progname.
38351         * tests/test-array_list.c: Include progname.h.
38352         (main): Call set_program_name.
38353
38354         * modules/argp-tests (Depends-on): Add progname.
38355         * tests/test-argp.c: Include argp.h first. Include progname.h.
38356         (main): Call set_program_name.
38357
38358 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38359
38360         * doc/gnulib-tool.texi (Initial import): Reword description of
38361         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38362         limited effect even if defined after the first system include.
38363
38364 2007-03-01  Bruno Haible  <bruno@clisp.org>
38365
38366         * build-aux/config.libpath: Update to libtool-1.5.22.
38367         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38368
38369 2007-03-01  Bruno Haible  <bruno@clisp.org>
38370
38371         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38372         foo_CFLAGS.
38373         Reported by Ralf Wildenhues.
38374
38375 2007-03-01  Bruno Haible  <bruno@clisp.org>
38376
38377         * build-aux/install-reloc: Remove object files left over by some
38378         compilers.
38379         Reported by Ralf Wildenhues.
38380
38381 2007-03-01  Bruno Haible  <bruno@clisp.org>
38382
38383         * build-aux/install-reloc: Break long lines.
38384
38385 2007-03-01  Bruno Haible  <bruno@clisp.org>
38386
38387         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38388         Reported by Ralf Wildenhues.
38389
38390 2007-03-01  Bruno Haible  <bruno@clisp.org>
38391
38392         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38393         include ordering constraints.
38394
38395 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38396
38397         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38398         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38399         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38400         as another example.
38401         * lib/time_.h: Fix misspelling.
38402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38403         Require gl_HEADER_TIME_H_DEFAULTS.
38404         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38405         * m4/time_r.m4 (gl_TIME_R): Likewise.
38406         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38407
38408 2007-03-01  Bruno Haible  <bruno@clisp.org>
38409
38410         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38411         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38412
38413 2007-03-01  Jim Meyering  <jim@meyering.net>
38414
38415         * modules/xreadlink (Maintainer): Add my name.
38416         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38417
38418 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38419             Bruno Haible  <bruno@clisp.org>
38420
38421         * build-aux/install-reloc: Compile also c-ctype.c.
38422         * build-aux/relocatable.sh.in: New file.
38423         * doc/relocatable.texi: New file.
38424         * doc/relocatable-maint.texi: New file.
38425         * doc/gnulib.texi: Include relocatable-maint.texi.
38426         * lib/progreloc.c: Include unistd.h unconditionally.
38427         * lib/relocwrapper.c: Include unistd.h unconditionally.
38428         Include c-ctype.h.
38429         (add_dotbin): Use c_tolower.
38430         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38431         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38432         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38433         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38434         to m4/relocatable-lib.m4.
38435         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38436         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38437         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38438         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38439         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38440         * modules/relocatable: New file.
38441         * modules/relocatable-lib: New file.
38442         * modules/relocatable-script: New file.
38443
38444 2007-02-28  Bruno Haible  <bruno@clisp.org>
38445
38446         Import --enable-relocatable infrastructure.
38447         * build-aux/config.libpath: New file, from GNU gettext.
38448         * build-aux/install-reloc: New file, from GNU gettext.
38449         * build-aux/reloc-ldflags: New file, from GNU gettext.
38450         * lib/relocatable.h: New file, from GNU gettext.
38451         * lib/relocatable.c: New file, from GNU gettext.
38452         * lib/relocwrapper.c: New file, from GNU gettext.
38453         * m4/relocatable.m4: New file, from GNU gettext.
38454
38455 2007-02-28  Bruno Haible  <bruno@clisp.org>
38456
38457         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38458
38459         * modules/xreadlink: New file, from GNU gettext with modifications.
38460         * lib/xreadlink.c: New file, from GNU gettext.
38461         * lib/xreadlink.h: Add comments.
38462         (xreadlink): New declaration.
38463
38464         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38465         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38466         lib/xreadlink-with-size.c.
38467         (configure.ac): Remove gl_XREADLINK invocation.
38468         (Makefile.am): Augment lib_SOURCES.
38469         * m4/xreadlink.m4: Remove file.
38470         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38471         (xreadlink_with_size): Renamed from xreadink.
38472         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38473         * modules/canonicalize (Depends-on): Replace xreadlink with
38474         xreadlink-with-size.
38475         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38476
38477 2007-02-25  Jim Meyering  <jim@meyering.net>
38478
38479         * build-aux/announce-gen: When complaining about excess arguments,
38480         list them.
38481
38482 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38483
38484         * README: Document signed integer overflow situation more
38485         accurately.
38486
38487 2007-02-25  Bruno Haible  <bruno@clisp.org>
38488
38489         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38490         'a' or 'A' conversion.
38491
38492 2007-02-25  Bruno Haible  <bruno@clisp.org>
38493
38494         * modules/filename: Renamed from modules/pathname.
38495         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38496         lib/concatpath.c with lib/concat-filename.c.
38497         (Makefile.am): Update.
38498         (Include): Replace pathname.h with filename.h.
38499         * lib/filename.h: Renamed from lib/pathname.h.
38500         (concatenated_filename): Renamed from concatenated_pathname.
38501         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38502         (concatenated_filename): Renamed from concatenated_pathname.
38503         * lib/findprog.c: Include filename.h instead of pathname.h.
38504         (find_in_path): Update.
38505         * lib/javacomp.c: Include filename.h instead of pathname.h.
38506         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38507         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38508         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38509         is_oldgcj_14_13_usable, is_javac_usable): Update.
38510         * lib/javaexec.c: Include filename.h instead of pathname.h.
38511         (execute_java_class): Update.
38512         * modules/findprog: Update.
38513         * modules/javacomp: Update.
38514         * modules/javaexec: Update.
38515         * MODULES.html.sh (File system functions): Add 'filename', remove
38516         'pathname'.
38517
38518 2007-02-25  Bruno Haible  <bruno@clisp.org>
38519
38520         * modules/printf-frexpl-tests: New file.
38521         * tests/test-printf-frexpl.c: New file.
38522
38523         * modules/printf-frexpl: New file.
38524         * lib/printf-frexpl.h: New file.
38525         * lib/printf-frexpl.c: New file.
38526         * m4/printf-frexpl.m4: New file.
38527
38528 2007-02-25  Bruno Haible  <bruno@clisp.org>
38529
38530         * modules/printf-frexp-tests: New file.
38531         * tests/test-printf-frexp.c: New file.
38532
38533         * modules/printf-frexp: New file.
38534         * lib/printf-frexp.h: New file.
38535         * lib/printf-frexp.c: New file.
38536         * m4/printf-frexp.m4: New file.
38537
38538 2007-02-25  Bruno Haible  <bruno@clisp.org>
38539
38540         Assume automake >= 1.10 for the tests.
38541         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38542         * modules/arctwo-tests: Likewise.
38543         * modules/argp-tests: Likewise.
38544         * modules/avltree-list-tests: Likewise.
38545         * modules/avltree-oset-tests: Likewise.
38546         * modules/avltreehash-list-tests: Likewise.
38547         * modules/carray-list-tests: Likewise.
38548         * modules/crc-tests: Likewise.
38549         * modules/des-tests: Likewise.
38550         * modules/gc-arcfour-tests: Likewise.
38551         * modules/gc-arctwo-tests: Likewise.
38552         * modules/gc-des-tests: Likewise.
38553         * modules/gc-hmac-md5-tests: Likewise.
38554         * modules/gc-hmac-sha1-tests: Likewise.
38555         * modules/gc-md2-tests: Likewise.
38556         * modules/gc-md4-tests: Likewise.
38557         * modules/gc-md5-tests: Likewise.
38558         * modules/gc-pbkdf2-sha1-tests: Likewise.
38559         * modules/gc-rijndael-tests: Likewise.
38560         * modules/gc-sha1-tests: Likewise.
38561         * modules/gc-tests: Likewise.
38562         * modules/getaddrinfo-tests: Likewise.
38563         * modules/hmac-md5-tests: Likewise.
38564         * modules/hmac-sha1-tests: Likewise.
38565         * modules/linked-list-tests: Likewise.
38566         * modules/linkedhash-list-tests: Likewise.
38567         * modules/lock-tests: Likewise.
38568         * modules/md2-tests: Likewise.
38569         * modules/md4-tests: Likewise.
38570         * modules/md5-tests: Likewise.
38571         * modules/rbtree-list-tests: Likewise.
38572         * modules/rbtree-oset-tests: Likewise.
38573         * modules/rbtreehash-list-tests: Likewise.
38574         * modules/read-file-tests: Likewise.
38575         * modules/rijndael-tests: Likewise.
38576         * modules/stdint-tests: Likewise.
38577         * modules/tls-tests: Likewise.
38578
38579 2007-02-24  Bruno Haible  <bruno@clisp.org>
38580
38581         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38582         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38583         function; instead check whether isnan with a double argument links.
38584         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38585         function; instead check whether isnan with a 'long double' argument
38586         links.
38587         Reported by Eric Blake <ebb9@byu.net>.
38588
38589 2007-02-24  Bruno Haible  <bruno@clisp.org>
38590
38591         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38592         defined.
38593         * lib/isnanl.c: Remove all code. Just include isnan.c.
38594         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38595
38596 2007-02-25  Jim Meyering  <jim@meyering.net>
38597
38598         Avoid conflicting types for 'unsetenv' on FreeBSD.
38599         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38600         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38601         in stdlib.h.
38602
38603 2007-02-24  Bruno Haible  <bruno@clisp.org>
38604
38605         * modules/isnanl-nolibm-tests: New file.
38606         * tests/test-isnanl.c: New file.
38607
38608         * modules/isnanl-nolibm: New file.
38609         * lib/isnanl.h: New file.
38610         * lib/isnanl.c: New file.
38611         * m4/isnanl.m4: New file.
38612
38613 2007-02-24  Bruno Haible  <bruno@clisp.org>
38614
38615         * modules/isnan-nolibm-tests: New file.
38616         * tests/test-isnan.c: New file.
38617
38618         * modules/isnan-nolibm: New file.
38619         * lib/isnan.h: New file.
38620         * lib/isnan.c: New file.
38621         * m4/isnan.m4: New file.
38622
38623 2007-02-24  Bruno Haible  <bruno@clisp.org>
38624
38625         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38626         assume that an exponent fits in 20 bits.
38627
38628 2007-02-24  Jim Meyering  <jim@meyering.net>
38629
38630         * m4/regex.m4: Update the description of the configure-time option,
38631         --without-included-regex, to state accurately what the defaults are,
38632         and perhaps to give people an idea why using this option is risky.
38633
38634 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38635
38636         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38637         loops on small arguments.  This attempts to avoid the problem
38638         Bruno Haible reported for AIX 4.3.2 in
38639         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38640
38641 2007-02-23  Bruno Haible  <bruno@clisp.org>
38642
38643         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38644         Needed for help2man.
38645
38646 2007-02-23  Karl Berry  <karl@gnu.org>
38647
38648         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38649         exists, foo.h should be cvs-ignored, not committed.
38650
38651 2007-02-23  Eric Blake  <ebb9@byu.net>
38652
38653         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38654         * lib/stat-time.h (includes): Likewise.
38655         * lib/utimecmp.c (includes): Likewise.
38656         * lib/utimens.h (includes): Likewise.
38657         * lib/getdate.y (includes): Also include "timespec.h" for use
38658         internal to the module.
38659         * modules/utimens (Depends-on): Revert yesterday's patch.
38660         * modules/nanosleep (Depends-on): Add missing dependency.
38661
38662 2007-02-22  Bruno Haible  <bruno@clisp.org>
38663
38664         * lib/glob.c: Don't include getlogin_r.h.
38665
38666 2007-02-22  Jim Meyering  <jim@meyering.net>
38667
38668         * modules/utimens (Depends-on): Add timespec, required for
38669         utimens.h's inclusion of timespec.h.
38670
38671 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38672
38673         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38674         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38675         Schwab in
38676         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38677         I'll try to think of a better way to fix the Solaris problem.
38678
38679         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38680         like glibc; on Solaris 10, it fails with errno == EINVAL.
38681         POSIX says the behavior is unspecified if the first argument is NULL,
38682         so play it safe and never pass NULL to the system getcwd.
38683
38684 2007-02-21  Jim Meyering  <jim@meyering.net>
38685
38686         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38687         of gettimeofday.  It would conflict with the one now always
38688         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38689         an IRIX 6.5 build failure.
38690
38691 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38692
38693         Minor fixups to port to Solaris 10 with Sun C 5.8.
38694         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38695         * modules/getcwd (Depends-on): Add dirfd.
38696         * lib/putenv.c (putenv): #undef it.
38697         (rpl_putenv): New decl.
38698         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38699
38700 2007-02-20  Bruno Haible  <bruno@clisp.org>
38701
38702         * modules/stdio-tests: New file.
38703         * tests/test-stdio.c: New file.
38704
38705         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38706         (Depends-on): Add stdio.
38707         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38708         (Include): Use <stdio.h> instead of vsnprintf.h.
38709         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38710         HAVE_DECL_VSNPRINTF.
38711         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38712
38713         * modules/snprintf (Files): Remove lib/snprintf.h.
38714         (Depends-on): Add stdio.
38715         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38716         (Include): Use <stdio.h> instead of snprintf.h.
38717         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38718         HAVE_DECL_SNPRINTF.
38719         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38720         * lib/getaddrinfo.c: Likewise.
38721
38722         * modules/stdio: New file.
38723         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38724         * lib/snprintf.h: Remove file.
38725         * lib/vsnprintf.h: Remove file.
38726         * lib/.cppi-disable: Remove snprintf.h.
38727         * m4/stdio_h.m4: New file.
38728         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38729
38730 2007-02-20  Jim Meyering  <jim@meyering.net>
38731
38732         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38733         used by e.g., mingw.  From Bruno Haible.
38734
38735 2007-02-19  Bruno Haible  <bruno@clisp.org>
38736
38737         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38738         warnings.
38739         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38740
38741 2007-02-19  Bruno Haible  <bruno@clisp.org>
38742
38743         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38744         from mingw users.
38745
38746 2007-02-19  Bruno Haible  <bruno@clisp.org>
38747
38748         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38749         warnings.
38750         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38751
38752 2007-02-19  Jim Meyering  <jim@meyering.net>
38753
38754         Don't use FD after a successful "fdopendir (fd)".
38755         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38756         Reset it by calling dirfd on the just-obtained DIR*.
38757
38758         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38759         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38760
38761 2007-02-18  Bruno Haible  <bruno@clisp.org>
38762
38763         * lib/readlink.c: Include <unistd.h>.
38764         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38765         HAVE_READLINK.
38766         * modules/readlink (Depends-on): Add unistd.
38767         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38768         (Include): Add <unistd.h>.
38769
38770         * lib/getlogin_r.h: Remove file.
38771         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38772         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38773         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38774         HAVE_DECL_GETLOGIN_R.
38775         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38776         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38777         (Include): Use <unistd.h> instead of getlogin_r.h.
38778
38779         * lib/getcwd.h: Remove file.
38780         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38781         * lib/xgetcwd.c: Likewise.
38782         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38783         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38784         * modules/getcwd (Files): Remove lib/getcwd.h.
38785         (Depends-on): Add unistd.
38786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38787         (Include): Use <unistd.h> instad of getcwd.h.
38788
38789         * lib/ftruncate.c: Include <unistd.h> first.
38790         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38791         Set HAVE_FTRUNCATE.
38792         * modules/ftruncate (Depends-on): Add unistd.
38793         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38794
38795         * lib/fchdir.c: Include <unistd.h> first.
38796         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38797         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38798         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38799         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38800         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38801
38802         * lib/dup2.c: Include <unistd.h> first.
38803         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38804         HAVE_DUP2.
38805         * modules/dup2 (Depends-on): Add unistd.
38806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38807
38808         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38809         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38810         REPLACE_CHOWN. Don't define chown as a macro here.
38811         * modules/chown (Depends-on): Add unistd.
38812         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38813
38814         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38815         Add definition for GL_LINK_WARNING.
38816         (chown, dup2): New declarations.
38817         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38818         link warning.
38819         (ftruncate): New declaration.
38820         (getcwd): New declaration, taken from old getcwd.h.
38821         (getlogin_r): New declaration, taken from old getlogin_r.h.
38822         (readlink): New declaration.
38823         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38824         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38825         (gl_PREREQ_UNISTD): Remove macro.
38826         (gl_UNISTD_MODULE_INDICATOR): New macro.
38827         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38828         many new variables. Don't set UNISTD_H.
38829         * modules/unistd (Description): Change.
38830         (Depends-on): Add link-warning.
38831         (configure.ac): Update.
38832         (Makefile.am): Create unistd.h always. Substitute many new variables
38833         into it.
38834
38835 2007-02-18  Bruno Haible  <bruno@clisp.org>
38836
38837         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38838         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38839         HAVE_GETSUBOPT.
38840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38841         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38842         * lib/getsubopt.h: Remove file.
38843         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38844         (Depends-on): Add stdlib.
38845         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38846         (Includes): Use <stdlib.h> instead of getsubopt.h.
38847         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38848         Set HAVE_GETSUBOPT.
38849         * lib/getsubopt.c: Don't include getsubopt.h.
38850
38851 2007-02-18  Bruno Haible  <bruno@clisp.org>
38852
38853         * modules/fchdir (Depends-on): Add dup2.
38854
38855 2007-02-18  Bruno Haible  <bruno@clisp.org>
38856
38857         * lib/stdlib_.h: Handle glibc's special invocation convention
38858         specially.
38859
38860 2007-02-18  Bruno Haible  <bruno@clisp.org>
38861
38862         * modules/stdlib-tests: New file.
38863         * tests/test-stdlib.c: New file.
38864
38865         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38866         (Depends-on): Add stdlib.
38867         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38868         (Includes): Use <stdlib.h> instead of mkstemp.h.
38869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38870         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38871         * lib/mkstemp.c: Don't include mkstemp.h.
38872         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38873         * lib/stdlib--.h: Don't include mkstemp.h.
38874
38875         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38876         (Depends-on): Add stdlib.
38877         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38878         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38879         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38880         HAVE_MKDTEMP.
38881         * lib/mkdtemp.c: Don't include mkdtemp.h.
38882         * lib/clean-temp.c: Don't include mkdtemp.h.
38883
38884         * modules/exit (Files): Remove lib/exit.h.
38885         (Depends-on): Add stdlib.
38886         (Makefile.am): Remove lib_SOURCES.
38887         (Include): Use <stdlib.h> instead of exit.h.
38888         * lib/argmatch.c: Don't include exit.h.
38889         * lib/execute.c: Likewise.
38890         * lib/pagealign_alloc.c: Likewise.
38891         * lib/pipe.c: Likewise.
38892         * lib/wait-process.c: Likewise.
38893         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38894         * lib/exitfail.c: Likewise.
38895         * lib/savewd.c: Likewise.
38896         * lib/xsetenv.c: Likewise.
38897
38898         * modules/stdlib: New file.
38899         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38900         and extra comments about mkstemp().
38901         * lib/exit.h: Remove file.
38902         * lib/mkdtemp.h: Remove file.
38903         * lib/mkstemp.h: Remove file.
38904         * m4/stdlib_h.m4: New file.
38905         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38906
38907 2007-02-18  Bruno Haible  <bruno@clisp.org>
38908
38909         * modules/math-tests: New file.
38910         * tests/test-math.c: New file.
38911
38912         * modules/math: New file.
38913         * modules/mathl (Files): Remove lib/mathl.h.
38914         (Depends-on): Add math.
38915         (Makefile.am): Don't mention mathl.h.
38916         (Include): Use <math.h> instead of mathl.h.
38917         * lib/math_.h: New file.
38918         * lib/mathl.h: Remove file.
38919         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38920         mathl.h.
38921         * lib/asinl.c: Likewise.
38922         * lib/atanl.c: Likewise.
38923         * lib/ceill.c: Likewise.
38924         * lib/cosl.c: Likewise.
38925         * lib/expl.c: Likewise.
38926         * lib/floorl.c: Likewise.
38927         * lib/frexpl.c: Likewise.
38928         * lib/ldexpl.c: Likewise.
38929         * lib/logl.c: Likewise.
38930         * lib/sincosl.c: Likewise.
38931         * lib/sinl.c: Likewise.
38932         * lib/sqrtl.c: Likewise.
38933         * lib/tanl.c: Likewise.
38934         * lib/trigl.c: Likewise.
38935         * m4/math_h.m4: New file.
38936         * MODULES.html.sh (Mathematics): Add math.
38937
38938 2007-02-17  Bruno Haible  <bruno@clisp.org>
38939
38940         * modules/wctype-tests: New file.
38941         * tests/test-wctype.c: New file.
38942
38943         * modules/wchar-tests: New file.
38944         * tests/test-wchar.c: New file.
38945
38946         * modules/unistd-tests: New file.
38947         * tests/test-unistd.c: New file.
38948
38949         * modules/time-tests: New file.
38950         * tests/test-time.c: New file.
38951
38952         * modules/sysexits-tests: New file.
38953         * tests/test-sysexits.c: New file.
38954
38955         * modules/sys_time-tests: New file.
38956         * tests/test-sys_time.c: New file.
38957
38958         * modules/sys_stat-tests: New file.
38959         * tests/test-sys_stat.c: New file.
38960
38961         * modules/sys_socket-tests: New file.
38962         * tests/test-sys_socket.c: New file.
38963
38964         * modules/sys_select-tests: New file.
38965         * tests/test-sys_select.c: New file.
38966
38967         * modules/string-tests: New file.
38968         * tests/test-string.c: New file.
38969
38970         * modules/stdbool-tests: New file.
38971         * tests/test-stdbool.c: New file.
38972
38973         * modules/netinet_in-tests: New file.
38974         * tests/test-netinet_in.c: New file.
38975
38976         * modules/inttypes-tests: New file.
38977         * tests/test-inttypes.c: New file.
38978
38979         * modules/fcntl-tests: New file.
38980         * tests/test-fcntl.c: New file.
38981
38982         * modules/byteswap-tests: New file.
38983         * tests/test-byteswap.c: New file.
38984
38985         * modules/arpa_inet-tests: New file.
38986         * tests/test-arpa_inet.c: New file.
38987
38988 2007-02-17  Bruno Haible  <bruno@clisp.org>
38989
38990         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38991         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38992         if the corresponding module is not enabled. Emit link warnings if
38993         the function is used nevertheless.
38994         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38995         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38996         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38997         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38998         * modules/inttypes (Depends-on): Add link-warning.
38999         (Makefile.am): Copy the contents of build-aux/link-warning.h into
39000         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
39001         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
39002         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
39003         * modules/imaxdiv (configure.ac): Likewise.
39004         * modules/strtoimax (configure.ac): Likewise.
39005         * modules/strtoumax (configure.ac): Likewise.
39006
39007 2007-02-17  Bruno Haible  <bruno@clisp.org>
39008
39009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
39010         gl_STRING_MODULE_INDICATOR_DEFAULTS.
39011         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
39012         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
39013
39014 2007-02-17  Bruno Haible  <bruno@clisp.org>
39015
39016         * modules/link-warning: New file.
39017         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
39018         * lib/string_.h (GL_LINK_WARNING): Remove definition.
39019         * modules/string (Depends-on): Add link-warning.
39020         (Makefile.am): Copy the contents of build-aux/link-warning.h into
39021         string.h.
39022         * MODULES.html.sh (Support for building libraries and executables): Add
39023         link-warning.
39024
39025 2007-02-17  Bruno Haible  <bruno@clisp.org>
39026
39027         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
39028         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
39029         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
39030         long lines.
39031
39032 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
39033             Bruno Haible  <bruno@clisp.org>
39034
39035         * modules/tmpfile: New file.
39036         * lib/tmpfile.c: New file.
39037         * m4/tmpfile.m4: New file.
39038         * MODULES.html.sh (func_all_modules): New section "Input/output".
39039
39040 2007-02-15  Bruno Haible  <bruno@clisp.org>
39041
39042         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
39043         (supports_delete_on_close): New function.
39044         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
39045
39046 2007-02-14  Bruno Haible  <bruno@clisp.org>
39047
39048         * modules/mbspcasecmp-tests: New file.
39049         * tests/test-mbspcasecmp.sh: New file.
39050         * tests/test-mbspcasecmp.c: New file.
39051
39052         New module mbspcasecmp.
39053         * modules/mbspcasecmp: New file.
39054         * lib/mbspcasecmp.c: New file.
39055         * lib/string_.h (strncasecmp): Change warning message.
39056         (mbspcasecmp): New declaration.
39057         * m4/mbspcasecmp.m4: New file.
39058         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39059         GNULIB_MBSPCASECMP.
39060         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
39061         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
39062
39063 2007-02-14  Bruno Haible  <bruno@clisp.org>
39064
39065         * modules/mbsncasecmp-tests: New file.
39066         * tests/test-mbsncasecmp.sh: New file.
39067         * tests/test-mbsncasecmp.c: New file.
39068
39069         New module mbsncasecmp.
39070         * modules/mbsncasecmp: New file.
39071         * lib/mbsncasecmp.c: New file.
39072         * lib/string_.h (mbsncasecmp): New declaration.
39073         * m4/mbsncasecmp.m4: New file.
39074         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39075         GNULIB_MBSNCASECMP.
39076         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
39077         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
39078
39079 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
39080
39081         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
39082         Verify that it doesn't overlap with our flags.
39083         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
39084         do not have the desired effect in multibyte locales; instead, use
39085         mbscasecmp.
39086         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
39087         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
39088         we don't require GNU fnmatch ourselves (if our users require it, they
39089         should do so explicitly).
39090
39091         Fix regex code so it doesn't rely on strcasecmp.
39092         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
39093         Otherwise, include gnulib's langinfo.h.
39094         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
39095         undesirable behavior in non-C locales.  Instead, rely on localecharset.
39096         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
39097         * modules/regex (FILES): Remove m4/codeset.m4.
39098         (Depends-on): Add localcharset.  Remove strcase.
39099
39100 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39101
39102         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
39103         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
39104
39105 2007-02-13  Bruno Haible  <bruno@clisp.org>
39106
39107         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
39108         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39109
39110 2007-02-12  Bruno Haible  <bruno@clisp.org>
39111
39112         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39113         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
39114         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
39115         time warning rather than a link error.
39116
39117 2007-02-12  Bruno Haible  <bruno@clisp.org>
39118
39119         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
39120         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39121         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39122
39123 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39124
39125         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
39126         args, not 2.
39127
39128 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39129
39130         New module 'time', so that apps can include <time.h> as per
39131         POSIX and GNU instead of separate include files like time_r.h
39132         and timegm.h.  This implementation tries out a simpler approach
39133         for replacing decls in standard include files (as compared to
39134         the string module), somewhat as an experiment.
39135
39136         * config/srclist.txt: Comment out mktime.c for now.
39137         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
39138         since it doesn't apply any more.  Use generic wording instead.
39139         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
39140         'time'.
39141         * lib/time_.h, m4/time_h.m4, modules/time: New files.
39142         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
39143         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
39144         Don't include <sys/types.h>; no longer needed since we assume C89.
39145         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
39146         * lib/strftime.c: Likewise.
39147         * lib/time_r.c: Likewise.
39148         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
39149         * lib/nanosleep.c: Include <time.h> first, to check interface.
39150         * lib/strptime.c: Likewise.
39151         * lib/time_r.c: Likewise.
39152         * lib/timegm.c: Likewise.
39153         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
39154         needed.
39155         * lib/timegm.c: Don't include timegm.h; no longer needed.
39156         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
39157         time.h now handles any problems in that area.
39158         (struct timespec, nanosleep): Remove; time.h now arranges for these.
39159         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
39160         that time.h defines struct timespec.
39161         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
39162         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
39163         handles that.
39164         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
39165         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
39166         needed.  Set REPLACE_LOCALTIME.
39167         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
39168         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
39169         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
39170         nanosleep; time_h.m4 now does that.  Don't require
39171         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
39172         module handles this now.
39173         * modules/getdate (Depends-on): Remove timespec.  Add time.
39174         * modules/nanosleep (Depends-on): Likewise.
39175         * modules/stat-time (Depends-on): Likewise.
39176         * modules/nanosleep (Include): Include time.h, not timespec.h.
39177         * modules/strptime (Files): Remove lib/strptime.h.
39178         (Depends-on): Add extensions, time.
39179         (Include): Include time.h, not strptime.h.
39180         * modules/time_r (Files): Remove lib/time_r.h.
39181         (Depends-on): Add time.
39182         (Include): Include time.h, not time_r.h.
39183         * modules/timegm: Likewise.
39184         * modules/timespec (Description): Now does timespec-related decls
39185         of our own, instead of struct timespec itself.
39186         (Depends-on): Add time; remove extensions.
39187         (Maintainer): Add self.
39188         * modules/utimecmp (Depends-on): Add time; remove timespec.
39189         * modules/utimens (Depends-on): Likewise.
39190         * modules/xnanosleep (Depends-on): Likewise.
39191
39192 2007-02-11  Bruno Haible  <bruno@clisp.org>
39193
39194         * lib/c-strstr.c: Include allocsa.h.
39195         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39196         * lib/c-strcasestr.c: Include allocsa.h.
39197         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39198         * lib/strcasestr.c: Include allocsa.h.
39199         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39200         * lib/mbsstr.c: Include allocsa.h.
39201         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39202         allocsa/freesa instead of malloc/free.
39203         * lib/mbscasestr.c: Include allocsa.h.
39204         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39205         allocsa/freesa instead of malloc/free.
39206         * modules/c-strstr (Depends-on): Add allocsa.
39207         * modules/c-strcasestr (Depends-on): Likewise.
39208         * modules/strcasestr (Depends-on): Likewise.
39209         * modules/mbsstr (Depends-on): Likewise.
39210         * modules/mbscasestr (Depends-on): Likewise.
39211
39212 2007-02-11  Bruno Haible  <bruno@clisp.org>
39213
39214         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
39215
39216         * modules/mbsspn-tests: New file.
39217         * tests/test-mbsspn.sh: New file.
39218         * tests/test-mbsspn.c: New file.
39219
39220 2007-02-11  Bruno Haible  <bruno@clisp.org>
39221
39222         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
39223
39224         * modules/mbspbrk-tests: New file.
39225         * tests/test-mbspbrk.sh: New file.
39226         * tests/test-mbspbrk.c: New file.
39227
39228 2007-02-11  Bruno Haible  <bruno@clisp.org>
39229
39230         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
39231         unneeded cast.
39232
39233         * modules/mbscspn-tests: New file.
39234         * tests/test-mbscspn.sh: New file.
39235         * tests/test-mbscspn.c: New file.
39236
39237 2007-02-11  Bruno Haible  <bruno@clisp.org>
39238
39239         * modules/mbscasecmp-tests: New file.
39240         * tests/test-mbscasecmp.sh: New file.
39241         * tests/test-mbscasecmp.c: New file.
39242
39243 2007-02-11  Bruno Haible  <bruno@clisp.org>
39244
39245         Ensure O(n) worst-case complexity of mbscasestr.
39246         * lib/mbscasestr.c: Include stdbool.h.
39247         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39248         functions.
39249         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
39250         the bookkeeping indicates that it's worth it.
39251         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
39252
39253         * modules/mbscasestr-tests: New file.
39254         * tests/test-mbscasestr1.c: New file.
39255         * tests/test-mbscasestr2.sh: New file.
39256         * tests/test-mbscasestr2.c: New file.
39257         * tests/test-mbscasestr3.sh: New file.
39258         * tests/test-mbscasestr3.c: New file.
39259         * tests/test-mbscasestr4.sh: New file.
39260         * tests/test-mbscasestr4.c: New file.
39261         * m4/locale-tr.m4: New file.
39262
39263 2007-02-11  Bruno Haible  <bruno@clisp.org>
39264
39265         Ensure O(n) worst-case complexity of mbsstr.
39266         * lib/mbsstr.c: Include stdbool.h.
39267         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39268         functions.
39269         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
39270         bookkeeping indicates that it's worth it.
39271         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
39272
39273         * modules/mbsstr-tests: New file.
39274         * tests/test-mbsstr1.c: New file.
39275         * tests/test-mbsstr2.sh: New file.
39276         * tests/test-mbsstr2.c: New file.
39277         * tests/test-mbsstr3.sh: New file.
39278         * tests/test-mbsstr3.c: New file.
39279         * m4/locale-fr.m4: New file.
39280
39281 2007-02-11  Bruno Haible  <bruno@clisp.org>
39282
39283         * lib/mbsrchr.c (mbsrchr): Fix bug.
39284
39285         * modules/mbsrchr-tests: New file.
39286         * tests/test-mbsrchr.sh: New file.
39287         * tests/test-mbsrchr.c: New file.
39288
39289 2007-02-11  Bruno Haible  <bruno@clisp.org>
39290
39291         * lib/mbschr.c (mbschr): Fix bug.
39292
39293         * modules/mbschr-tests: New file.
39294         * tests/test-mbschr.sh: New file.
39295         * tests/test-mbschr.c: New file.
39296         * m4/locale-zh.m4: New file.
39297
39298 2007-02-11  Bruno Haible  <bruno@clisp.org>
39299
39300         Support for copying multibyte string iterators.
39301         * lib/mbiter.h: Include <string.h>.
39302         (mbiter_multi_copy): New function.
39303         (mbi_copy): New macro.
39304         * lib/mbuiter.h: Include <string.h>.
39305         (mbuiter_multi_copy): New function.
39306         (mbui_copy): New macro.
39307
39308 2007-02-11  Bruno Haible  <bruno@clisp.org>
39309
39310         New module mbslen.
39311         * modules/mbslen: New file.
39312         * lib/mbslen.c: New file.
39313         * lib/string_.h (mbslen): New declaration.
39314         * m4/mbslen.m4: New file.
39315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39316         GNULIB_MBSLEN.
39317         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39318         * MODULES.html.sh (Internationalization functions): Add mbslen.
39319
39320 2007-02-11  Bruno Haible  <bruno@clisp.org>
39321
39322         Ensure O(n) worst-case complexity of strcasestr substitute.
39323         * lib/strcasestr.c: Include stdbool.h.
39324         (knuth_morris_pratt): New function.
39325         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39326         bookkeeping indicates that it's worth it.
39327         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39328
39329         * modules/strcasestr-tests: New file.
39330         * tests/test-strcasestr.c: New file.
39331
39332 2007-02-11  Bruno Haible  <bruno@clisp.org>
39333
39334         Ensure O(n) worst-case complexity of c_strcasestr.
39335         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39336         (knuth_morris_pratt): New function.
39337         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39338         the bookkeeping indicates that it's worth it.
39339         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39340
39341         * modules/c-strcasestr-tests: New file.
39342         * tests/test-c-strcasestr.c: New file.
39343
39344 2007-02-11  Bruno Haible  <bruno@clisp.org>
39345
39346         Ensure O(n) worst-case complexity of c_strstr.
39347         * lib/c-strstr.c: Include stdbool.h, string.h.
39348         (knuth_morris_pratt): New function.
39349         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39350         bookkeeping indicates that it's worth it.
39351         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39352
39353         * lib/c-strstr.c: Complete rewrite for maintainability.
39354
39355         * modules/c-strstr-tests: New file.
39356         * tests/test-c-strstr.c: New file.
39357
39358 2007-02-11  Bruno Haible  <bruno@clisp.org>
39359
39360         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39361         5.2.1 and earlier, whereby \055 was treated just like the range
39362         delimiter '-'.
39363         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39364
39365 2007-02-08  Bruno Haible  <bruno@clisp.org>
39366
39367         * modules/regex (Depends-on): Add stdbool.
39368         Reported by Dalibor Topic <robilad@kaffe.org>.
39369
39370 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39371
39372         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39373         Prefer returning from main to exiting from it.
39374         Remove unnecessary parens after sizeof.
39375
39376 2007-02-05  Bruno Haible  <bruno@clisp.org>
39377
39378         New module mbssep.
39379         * modules/mbssep: New file.
39380         * lib/mbssep.c: New file.
39381         * lib/string_.h (strsep): Add a conditional link warning.
39382         (mbssep): New declaration.
39383         * m4/mbssep.m4: New file.
39384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39385         GNULIB_MBSSEP.
39386         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39387         * MODULES.html.sh (Internationalization functions): Add mbssep.
39388
39389 2007-02-05  Bruno Haible  <bruno@clisp.org>
39390
39391         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39392         Optimize search in case of 1 delimiter.
39393
39394 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39395
39396         * lib/acl.h: Include sys/types.h before sys/acl.h.
39397
39398 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39399
39400         Merge upstream fix for glibc bugzilla #3957:
39401
39402         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39403
39404         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39405         bit for RE_HAT_LISTS_NOT_NEWLINE.
39406         (build_charclass_op): Remove bogus comment.
39407
39408 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39409
39410         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39411
39412 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39413
39414         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39415         * lib/memmem.c [!defined _LIBC]: Include config.h.
39416
39417 2007-02-04  Bruno Haible  <bruno@clisp.org>
39418
39419         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39420         warning message.
39421
39422 2007-02-04  Bruno Haible  <bruno@clisp.org>
39423
39424         New module mbstok_r.
39425         * modules/mbstok_r: New file.
39426         * lib/mbstok_r.c: New file.
39427         * lib/string_.h (strtok_r): Change argument names to match the
39428         comments. Add a conditional link warning.
39429         (mbstok_r): New declaration.
39430         * m4/mbstok_r.m4: New file.
39431         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39432         GNULIB_MBSTOK_R.
39433         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39434         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39435
39436 2007-02-04  Bruno Haible  <bruno@clisp.org>
39437
39438         New module mbsspn.
39439         * modules/mbsspn: New file.
39440         * lib/mbsspn.c: New file.
39441         * lib/string_.h (strspn): Add a conditional link warning.
39442         (mbsspn): New declaration.
39443         * m4/mbsspn.m4: New file.
39444         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39445         GNULIB_MBSSPN.
39446         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39447         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39448
39449 2007-02-04  Bruno Haible  <bruno@clisp.org>
39450
39451         New module mbspbrk.
39452         * modules/mbspbrk: New file.
39453         * lib/mbspbrk.c: New file.
39454         * lib/string_.h (strpbrk): Add a conditional link warning.
39455         (mbspbrk): New declaration.
39456         * m4/mbspbrk.m4: New file.
39457         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39458         GNULIB_MBSPBRK.
39459         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39460         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39461
39462 2007-02-04  Bruno Haible  <bruno@clisp.org>
39463
39464         New module mbscspn.
39465         * modules/mbscspn: New file.
39466         * lib/mbscspn.c: New file.
39467         * lib/string_.h (strcspn): Add a conditional link warning.
39468         (mbscspn): New declaration.
39469         * m4/mbscspn.m4: New file.
39470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39471         GNULIB_MBSCSPN.
39472         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39473         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39474
39475 2007-02-04  Bruno Haible  <bruno@clisp.org>
39476
39477         New module mbscasestr, reduced goal of strcasestr.
39478         * modules/mbscasestr: New file.
39479         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39480         (mbscasestr): Renamed from strcasestr.
39481         * lib/strcasestr.c: Don't include mbuiter.h.
39482         (strcasestr): Remove support for multibyte locales.
39483         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39484         Change the conditional link warning.
39485         (mbscasestr): New declaration.
39486         * m4/mbscasestr.m4: New file.
39487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39488         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39489         REPLACE_STRCASESTR.
39490         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39492         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39493         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39494         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39495         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39496         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39497         (Depends-on): Remove mbuiter.
39498         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39499
39500 2007-02-04  Bruno Haible  <bruno@clisp.org>
39501
39502         Simplify handling of strncasecmp.
39503         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39504         the conditional link warning.
39505         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39506         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39507         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39508         * modules/strcase (configure.ac): Don't invoke
39509         gl_STRING_MODULE_INDICATOR.
39510         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39511
39512 2007-02-04  Bruno Haible  <bruno@clisp.org>
39513
39514         New module mbscasecmp, reduced goal of strcasecmp.
39515         * modules/mbscasecmp: New file.
39516         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39517         (mbscasecmp): Renamed from strcasecmp.
39518         * lib/strcasecmp.c: Don't include mbuiter.h.
39519         (strcasecmp): Remove support for multibyte locales.
39520         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39521         Change the conditional link warning.
39522         (mbscasecmp): New declaration.
39523         * m4/mbscasecmp.m4: New file.
39524         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39525         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39526         REPLACE_STRCASECMP.
39527         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39529         GNULIB_MBSCASECMP.
39530         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39531         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39532         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39533         (Depends-on): Remove mbuiter.
39534         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39535
39536 2007-02-04  Bruno Haible  <bruno@clisp.org>
39537
39538         New module mbsstr. Remove module strstr.
39539         * modules/mbsstr: New file.
39540         * modules/strstr: Remove file.
39541         * lib/mbsstr.c: Renamed from lib/strstr.c.
39542         (mbsstr): Renamed from strstr.
39543         * lib/string_.h (strstr): Remove declaration. Change the conditional
39544         link warning.
39545         (mbsstr): New declaration.
39546         * m4/mbsstr.m4: New file.
39547         * m4/strstr.m4: Remove file.
39548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39549         REPLACE_STRSTR.
39550         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39551         Don't initialize GNULIB_STRSTR.
39552         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39553         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39554         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39555         (Support for systems lacking ANSI C 89): Remove strstr.
39556
39557 2007-02-04  Bruno Haible  <bruno@clisp.org>
39558
39559         New module mbsrchr.
39560         * modules/mbsrchr: New file.
39561         * lib/mbsrchr.c: New file.
39562         * lib/string_.h (strrchr): Add a conditional link warning.
39563         (mbsrchr): New declaration.
39564         * m4/mbsrchr.m4: New file.
39565         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39566         GNULIB_MBSRCHR.
39567         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39568         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39569
39570 2007-02-04  Bruno Haible  <bruno@clisp.org>
39571
39572         New module mbschr.
39573         * modules/mbschr: New file.
39574         * lib/mbschr.c: New file.
39575         * lib/string_.h (strchr): Add a conditional link warning.
39576         (mbschr): New declaration.
39577         * m4/mbschr.m4: New file.
39578         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39579         GNULIB_MBSCHR.
39580         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39581         * MODULES.html.sh (Internationalization functions): Add mbschr.
39582
39583 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39584
39585         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39586
39587         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39588
39589 2007-02-04  Bruno Haible  <bruno@clisp.org>
39590
39591         New module description section 'configure.ac-early'.
39592         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39593         (func_get_autoconf_early_snippet): New function.
39594         (func_import, func_create_testdir): Use it. Remove special cases for
39595         modules 'extensions' and 'lock'.
39596         * modules/extensions (configure.ac-early): Require
39597         gl_USE_SYSTEM_EXTENSIONS.
39598         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39599
39600 2007-02-04  Bruno Haible  <bruno@clisp.org>
39601
39602         Make use of gcj-4.3's -fsource and -ftarget option.
39603         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39604         and if so try the options -fsource and -ftarget.
39605         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39606         source_version, ftarget_option, target_version arguments.
39607         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39608         (is_envjavac_oldgcj_14_14_usable): Renamed from
39609         is_envjavac_gcj_14_14_usable.
39610         (is_envjavac_oldgcj_14_13_usable): Renamed from
39611         is_envjavac_gcj_14_13_usable.
39612         (is_gcj_present): Update.
39613         (is_gcj_43, is_gcj43_usable): New functions.
39614         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39615         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39616         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39617         try the options -fsource and -ftarget.
39618
39619 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39620
39621         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39622         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39623         larger value.
39624
39625 2007-02-03  Jim Meyering  <jim@meyering.net>
39626
39627         Give tools a better chance to allocate space for very large buffers.
39628         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39629
39630         Make pwd and readlink work also when run with an unreadable parent dir
39631         on systems with openat support.
39632         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39633         provided getcwd function, even when we have openat support.
39634         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39635
39636 2007-02-02  Bruno Haible  <bruno@clisp.org>
39637
39638         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39639         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39640         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39641         portability problems if one of these functions is only used on specific
39642         platforms.
39643         Reported by Paul Eggert.
39644
39645 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39646
39647         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39648         is causing more trouble than it's curing.
39649         * lib/regex_internal.h (__mempcpy): Remove.
39650         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39651         (and make the code a tad smaller to boot).
39652         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39653
39654 2007-02-02  Jim Meyering  <jim@meyering.net>
39655
39656         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39657         section, not in the Makefile.am: one.
39658
39659 2007-02-02  Eric Blake  <ebb9@byu.net>
39660
39661         * lib/strchrnul.c: Always include config.h first.
39662
39663         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39664         gnulib strstr is not necessary here.
39665
39666 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39667
39668         * m4/socklen.m4: Fix typo.
39669
39670 2007-02-02  Eric Blake  <ebb9@byu.net>
39671
39672         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39673         * modules/netinet_in (Makefile.am): Likewise.
39674
39675 2007-02-01  Bruno Haible  <bruno@clisp.org>
39676
39677         * lib/string_.h (GL_LINK_WARNING): New macro.
39678         (strcasecmp, strstr, strcasestr): If provided by the system,
39679         conditionally define as a macro that leads to a warning instead of to
39680         an error.
39681         (strncasecmp): Conditionally define as a macro that leads to a warning.
39682
39683 2007-02-01  Karl Berry  <karl@gnu.org>
39684
39685         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39686
39687 2007-02-01  Bruno Haible  <bruno@clisp.org>
39688
39689         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39690         renamings.
39691
39692 2007-02-01  Eric Blake  <ebb9@byu.net>
39693
39694         * modules/regex (Depends-on): Revert dependence on mempcpy.
39695         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39696         module's definition of mempcpy.
39697         Reported by Paul Eggert.
39698
39699 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39700
39701         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39702         the symbol XYZ before redefining it.  This fixes a problem with
39703         programs that don't use XYZ, when compiled on systems that define
39704         XYZ to something else.
39705
39706 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39707
39708         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39709         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39710         writeable to group or other and (2) is intended to have a special
39711         mode bit that is set or cleared.  In such a case, the directory
39712         should be neither group- nor other-writeable until the special
39713         mode bits are right.
39714
39715 2007-01-31  Eric Blake  <ebb9@byu.net>
39716
39717         * modules/mountlist (Depends-on): Add strstr.
39718
39719         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39720         bug.
39721         * modules/string (Makefile.am): Remove redundant replacement.
39722         * modules/regex (Depends-on): Add mempcpy.
39723
39724 2007-01-31  Bruno Haible  <bruno@clisp.org>
39725
39726         New module description field 'Link'.
39727         * gnulib-tool (func_usage): Document --extract-link-directive.
39728         (sed_extract_prog): Recognize 'Link' directive.
39729         (func_get_link_directive): New function.
39730         (func_import): Show summary of link directives.
39731         Handle --extract-link-directive option.
39732         * modules/acl (Link): New section.
39733         * modules/clock-time (Link): New section.
39734         * modules/euidaccess (Link): New section.
39735         * modules/gettext (Link): New section.
39736         * modules/iconv (Link): New section.
39737         * modules/lock (Link): New section.
39738         * modules/nanosleep (Link): New section.
39739         * modules/readline (Link): New section.
39740
39741 2007-01-27  Bruno Haible  <bruno@clisp.org>
39742
39743         Enforce the use of gnulib modules for unportable <string.h> functions.
39744         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39745         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39746         (gl_HEADER_STRING_H_BODY): Require it.
39747         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39748         the symbol XYZ to one that gives a link error.
39749         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39750         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39751         * modules/mempcpy (configure.ac): Likewise.
39752         * modules/memrchr (configure.ac): Likewise.
39753         * modules/stpcpy (configure.ac): Likewise.
39754         * modules/stpncpy (configure.ac): Likewise.
39755         * modules/strcase (configure.ac): Likewise.
39756         * modules/strcasestr (configure.ac): Likewise.
39757         * modules/strchrnul (configure.ac): Likewise.
39758         * modules/strdup (configure.ac): Likewise.
39759         * modules/strndup (configure.ac): Likewise.
39760         * modules/strnlen (configure.ac): Likewise.
39761         * modules/strpbrk (configure.ac): Likewise.
39762         * modules/strsep (configure.ac): Likewise.
39763         * modules/strstr (configure.ac): Likewise.
39764         * modules/strtok_r (configure.ac): Likewise.
39765
39766 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39767
39768         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39769
39770 2007-01-30  Jim Meyering  <jim@meyering.net>
39771
39772         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39773
39774 2007-01-29  Bruno Haible  <bruno@clisp.org>
39775
39776         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39777         * lib/execute.c: Likewise.
39778         * lib/pipe.c: Likewise.
39779         * lib/printf-args.h: Likewise.
39780         * lib/printf-args.c: Likewise.
39781         * lib/printf-parse.c: Likewise.
39782         * lib/vasnprintf.c: Likewise.
39783
39784 2007-01-29  Eric Blake  <ebb9@byu.net>
39785
39786         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39787         declaration.
39788
39789 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39790
39791         * lib/strptime.h (strptime): Use 'restrict' for args where
39792         POSIX requires this.
39793         * lib/strptime.c (strptime): Likewise.
39794         Change license notice from LGPL to GPL, since gnulib-tool will
39795         change this as needed.
39796         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39797         defined.
39798         Include "strptime.h" first, to check interface.
39799         Do not #undef _LIBC and _NL_CURRENT.
39800         Do not include <stdlib.h>; no longer needed.
39801         Include "time_r.h" and declare ptime_locale_status
39802         only if _LIBC is not defined.
39803         (__P): Remove unused macro.
39804         (match_string): Bring back glibc version, but use it only if _LIBC
39805         is defined.
39806         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39807         Remove unnecessary assertion and abort() call.
39808         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39809         * m4/strptime.m4: Fix serial number comment.
39810         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39811         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39812         (Depends-on): Add time_r.
39813
39814 2007-01-29  Bruno Haible  <bruno@clisp.org>
39815
39816         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39817         strptime.
39818         * modules/strptime (Depends-on): Add stdbool.
39819         * lib/strptime.h: Include <time.h> always. Add comments.
39820
39821 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39822
39823         * modules/strptime: New file.
39824         * lib/strptime.h: New file.
39825         * lib/strptime.c: New file.
39826         * m4/strptime.m4: New file.
39827
39828 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39829
39830         * MODULES.html.sh: New module mpsort.
39831         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39832
39833         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39834         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39835         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39836         All uses changed.
39837         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39838         All uses changed.
39839         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39840         to _Restrict_.
39841         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39842         the parameter matches the prototype.
39843
39844 2007-01-28  Jim Meyering  <jim@meyering.net>
39845
39846         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39847         sys/time.h here, reverting that part of the previous patch:
39848         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39849
39850 2007-01-28  Bruno Haible  <bruno@clisp.org>
39851
39852         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39853         value of $(SYS_TIME_H).
39854         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39855         remove it conditionally, too. [added by Jim Meyering]
39856         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39857         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39858         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39859         GETTIMEOFDAY_REPLACEMENT to 1.
39860
39861 2007-01-28  Bruno Haible  <bruno@clisp.org>
39862
39863         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39864         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39866         Set UNISTD_H instead of UNISTD_H2.
39867         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39868
39869 2007-01-28  Bruno Haible  <bruno@clisp.org>
39870
39871         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39872         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39873
39874 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39875
39876         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39877         (func_create_testdir): Ensure C locale for `grep' and `tr'
39878         character ranges.
39879         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39880         ACLOCAL_AMFLAGS parsing state machine.
39881
39882 2007-01-27  Bruno Haible  <bruno@clisp.org>
39883
39884         * modules/unistr/base: Update.
39885
39886 2007-01-27  Bruno Haible  <bruno@clisp.org>
39887
39888         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39889         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39890         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39891         modules/unistr/u32-mbtouc.
39892         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39893         * lib/unistr.h: Update.
39894         * lib/linebreak.c: Update.
39895         * modules/unistr/u32-mbtouc: Renamed from
39896         modules/unistr/u32-mbtouc-safe.
39897         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39898         * lib/unistr.h: Update.
39899         * lib/unistr/u32-to-u8.c: Update.
39900         * lib/unistr/u32-to-u16.c: Update.
39901
39902 2007-01-27  Bruno Haible  <bruno@clisp.org>
39903
39904         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39905         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39906         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39907         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39908         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39909         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39910         modules/unistr/u16-mbtouc.
39911         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39912         * lib/unistr.h: Update.
39913         * lib/linebreak.c: Update.
39914         * modules/linebreak: Update.
39915         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39916         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39917         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39918         * modules/unistr/u16-mbtouc: Renamed from
39919         modules/unistr/u16-mbtouc-safe.
39920         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39921         * lib/unistr.h: Update.
39922         * lib/unistr/u16-to-u8.c: Update.
39923         * modules/unistr/u16-to-u8: Update.
39924         * lib/unistr/u16-to-u32.c: Update.
39925         * modules/unistr/u16-to-u32: Update.
39926
39927 2007-01-27  Bruno Haible  <bruno@clisp.org>
39928
39929         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39930         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39931         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39932         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39933         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39934         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39935         modules/unistr/u8-mbtouc.
39936         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39937         * lib/unistr.h: Update.
39938         * lib/striconveh.c: Update.
39939         * modules/striconveh: Update.
39940         * lib/linebreak.c: Update.
39941         * modules/linebreak: Update.
39942         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39943         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39944         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39945         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39946         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39947         * lib/unistr.h: Update.
39948         * lib/striconveh.c: Update.
39949         * modules/striconveh: Update.
39950         * lib/unistr/u8-to-u16.c: Update.
39951         * modules/unistr/u8-to-u16: Update.
39952         * lib/unistr/u8-to-u32.c: Update.
39953         * modules/unistr/u8-to-u32: Update.
39954
39955 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39956
39957         Sync from Libtool.
39958         * lib/argz.c: Do not include strings.h nor memory.h, include
39959         string.h unconditionally.  Patch by Simon Josefsson.
39960
39961 2007-01-27  Bruno Haible  <bruno@clisp.org>
39962
39963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39964         from gl_HEADER_STRING_H_BODY.
39965         (gl_HEADER_STRING_H_BODY): Require it.
39966         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39967         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39968         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39969         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39971         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39973         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39974         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39975         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39976         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39977         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39978         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39979         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39980         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39981
39982 2007-01-27  Bruno Haible  <bruno@clisp.org>
39983
39984         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39985         check_PROGRAMS into noinst_PROGRAMS.
39986         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39987         check_PROGRAMS in this case.
39988         (func_import): Set for_test to false.
39989         (func_create_testdir): Set for_test to true.
39990
39991 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39992             Bruno Haible  <bruno@clisp.org>
39993
39994         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39995         (Depends-on): Add string.
39996         (Includes): Use <string.h> instead of strcasestr.h.
39997         * modules/string (Makefile.am): Also substitute the value of
39998         REPLACE_STRCASESTR.
39999         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
40000         assume strcasestr is declared in <string.h> not <strings.h>. Also
40001         set REPLACE_STRCASESTR.
40002         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
40003         REPLACE_STRCASESTR.
40004         * lib/strcasestr.h: Remove file.
40005         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
40006         * lib/string_.h (strcasestr): New declaration.
40007
40008 2007-01-27  Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/string_.h: Use 'extern'.
40011
40012 2007-01-27  Jim Meyering  <jim@meyering.net>
40013
40014         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
40015         of set-but-not-used local, "q".
40016
40017         * lib/mempcpy.c: Include <config.h> before <string.h>.
40018         This fixes a compilation error on HP-UX, due to the system's
40019         "restrict"-using mempcpy prototype.
40020
40021 2007-01-26  Bruno Haible  <bruno@clisp.org>
40022
40023         Small optimization.
40024         * lib/javacomp.c: Include c-strstr.h.
40025          (is_envjavac_gcj): Use c_strstr instead of strstr.
40026         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
40027
40028 2007-01-26  Bruno Haible  <bruno@clisp.org>
40029
40030         * MODULES.html.sh (Unicode string functions): Add the new modules.
40031
40032         * modules/uniconv/u32-strconv-to-locale: New file.
40033         * lib/uniconv/u32-strconv-to-locale.c: New file.
40034
40035         * modules/uniconv/u16-strconv-to-locale: New file.
40036         * lib/uniconv/u16-strconv-to-locale.c: New file.
40037
40038         * modules/uniconv/u8-strconv-to-locale: New file.
40039         * lib/uniconv/u8-strconv-to-locale.c: New file.
40040
40041         * modules/uniconv/u32-strconv-from-locale: New file.
40042         * lib/uniconv/u32-strconv-from-locale.c: New file.
40043
40044         * modules/uniconv/u16-strconv-from-locale: New file.
40045         * lib/uniconv/u16-strconv-from-locale.c: New file.
40046
40047         * modules/uniconv/u8-strconv-from-locale: New file.
40048         * lib/uniconv/u8-strconv-from-locale.c: New file.
40049
40050         * modules/uniconv/u32-strconv-to-enc: New file.
40051         * lib/uniconv/u32-strconv-to-enc.c: New file.
40052         * modules/uniconv/u32-strconv-to-enc-tests: New file.
40053         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
40054
40055         * modules/uniconv/u16-strconv-to-enc: New file.
40056         * lib/uniconv/u16-strconv-to-enc.c: New file.
40057         * lib/uniconv/u-strconv-to-enc.h: New file.
40058         * modules/uniconv/u16-strconv-to-enc-tests: New file.
40059         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
40060
40061         * modules/uniconv/u8-strconv-to-enc: New file.
40062         * lib/uniconv/u8-strconv-to-enc.c: New file.
40063         * modules/uniconv/u8-strconv-to-enc-tests: New file.
40064         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
40065
40066         * modules/uniconv/u32-strconv-from-enc: New file.
40067         * lib/uniconv/u32-strconv-from-enc.c: New file.
40068         * modules/uniconv/u32-strconv-from-enc-tests: New file.
40069         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
40070
40071         * modules/uniconv/u16-strconv-from-enc: New file.
40072         * lib/uniconv/u16-strconv-from-enc.c: New file.
40073         * modules/uniconv/u16-strconv-from-enc-tests: New file.
40074         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
40075
40076         * modules/uniconv/u8-strconv-from-enc: New file.
40077         * lib/uniconv/u8-strconv-from-enc.c: New file.
40078         * lib/uniconv/u-strconv-from-enc.h: New file.
40079         * modules/uniconv/u8-strconv-from-enc-tests: New file.
40080         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
40081
40082         * modules/uniconv/u32-conv-from-enc: New file.
40083         * lib/uniconv/u32-conv-from-enc.c: New file.
40084         * modules/uniconv/u32-conv-from-enc-tests: New file.
40085         * tests/uniconv/test-u32-conv-from-enc.c: New file.
40086
40087         * modules/uniconv/u16-conv-from-enc: New file.
40088         * lib/uniconv/u16-conv-from-enc.c: New file.
40089         * lib/uniconv/u-conv-from-enc.h: New file.
40090         * modules/uniconv/u16-conv-from-enc-tests: New file.
40091         * tests/uniconv/test-u16-conv-from-enc.c: New file.
40092
40093         * modules/uniconv/u8-conv-from-enc: New file.
40094         * lib/uniconv/u8-conv-from-enc.c: New file.
40095         * modules/uniconv/u8-conv-from-enc-tests: New file.
40096         * tests/uniconv/test-u8-conv-from-enc.c: New file.
40097
40098         * modules/uniconv/base: New file.
40099         * lib/uniconv.h: New file.
40100
40101 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
40102
40103         * doc/gnulib-tool.texi (Initial import): Update to match current
40104         behavior with strdup module.
40105         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
40106         * lib/memmem.h: Remove; all uses removed.  This is now done
40107         by <string.h>.
40108         * lib/mempcpy.h: Likewise.
40109         * lib/memrchr.h: Likewise.
40110         * lib/stpcpy.h: Likewise.
40111         * lib/stpncpy.h: Likewise.
40112         * lib/strcase.h: Likewise.
40113         * lib/strchrnul.h: Likewise.
40114         * lib/strdup.h: Likewise.
40115         * lib/strndup.h: Likewise.
40116         * lib/strnlen.h: Likewise.
40117         * lib/strpbrk.h: Likewise.
40118         * lib/strsep.h: Likewise.
40119         * lib/strstr.h: Likewise.
40120         * lib/strtok_r.h: Likewise.
40121         * lib/string_.h: New file.
40122         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
40123         Rely on <string.h> instead.
40124         * lib/canon-host.c: Likewise.
40125         * lib/chdir-long.c: Likewise.
40126         * lib/concatpath.c: Likewise.
40127         * lib/exclude.c: Likewise.
40128         * lib/fchdir.c: Likewise.
40129         * lib/getaddrinfo.c: Likewise.
40130         * lib/getcwd.c: Likewise.
40131         * lib/getsubopt.c: Likewise.
40132         * lib/glob.c: Likewise.
40133         * lib/hard-locale.c: Likewise.
40134         * lib/iconvme.c: Likewise.
40135         * lib/javacomp.c: Likewise.
40136         * lib/mempcpy.c: Likewise.
40137         * lib/memrchr.c: Likewise.
40138         * lib/regex_internal.h: Likewise.
40139         * lib/stpncpy.c: Likewise.
40140         * lib/strcasecmp.c: Likewise.
40141         * lib/strchrnul.c: Likewise.
40142         * lib/strdup.c: Likewise.
40143         * lib/striconv.c: Likewise.
40144         * lib/striconveh.c: Likewise.
40145         * lib/striconveha.c: Likewise.
40146         * lib/strncasecmp.c: Likewise.
40147         * lib/strndup.c: Likewise.
40148         * lib/strnlen.c: Likewise.
40149         * lib/strsep.c: Likewise.
40150         * lib/strstr.c: Likewise.
40151         * lib/strtok_r.c: Likewise.
40152         * lib/userspec.c: Likewise.
40153         * lib/w32spawn.h: Likewise.
40154         * lib/xstrndup.c: Likewise.
40155         * lib/mountlist.c (strstr): Remove decl.
40156         * m4/string_h.m4: New file.
40157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
40158         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
40159         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
40160         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
40161         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
40162         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
40163         Set REPLACE_STRCASECMP if necessary.
40164         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
40165         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
40166         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
40167         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
40168         HAVE_DECL_STRDUP if necessary.
40169         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
40170         since gl_FUNC_STRNDUP does that now.
40171         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
40172         Check for decl here...
40173         (gl_PREREQ_STRNLEN): ... not here.
40174         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
40175         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
40176         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
40177         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
40178         necessary.
40179         * modules/string: New file.
40180         * modules/memmem (Files): Remove special-purpose include file.
40181         (Depends-on): Add string.
40182         (Include): Include <string.h>, not the removed file.
40183         * modules/mempcpy: Likewise.
40184         * modules/memrchr: Likewise.
40185         * modules/stpcpy: Likewise.
40186         * modules/stpncpy: Likewise.
40187         * modules/strcase: Likewise.
40188         * modules/strchrnul: Likewise.
40189         * modules/strdup: Likewise.
40190         * modules/strndup: Likewise.
40191         * modules/strnlen: Likewise.
40192         * modules/strpbrk: Likewise.
40193         * modules/strsep: Likewise.
40194         * modules/strstr: Likewise.
40195         * modules/strtok_r: Likewise.
40196         * tests/test-dirname.c: Don't include "strdup.h", since
40197         <string.h> now suffices.
40198         * tests/test-memmem.c: Don't include "memmem.h", since
40199         <string.h> now suffices.
40200
40201 2007-01-25  Bruno Haible  <bruno@clisp.org>
40202
40203         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
40204         *resultp is 0.
40205
40206         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
40207         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
40208         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
40209         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
40210
40211         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
40212         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
40213         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
40214         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
40215         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
40216         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
40217
40218 2007-01-24  Bruno Haible  <bruno@clisp.org>
40219
40220         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
40221         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
40222         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
40223         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
40224         gl_FUNC_FTS_CORE.
40225         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
40226         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
40227         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40228         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
40229         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
40230         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
40231         gl_FUNC_FCHOWNAT.
40232         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
40233         gl_FUNC_STRFTIME.
40234         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
40235         Reported by Ralf Wildenhues.
40236
40237 2007-01-24  Bruno Haible  <bruno@clisp.org>
40238
40239         Drop AC_REQUIRE calls that are redundant with the module dependencies.
40240         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
40241         gl_GETADDRINFO.
40242         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
40243         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
40244         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
40245
40246 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
40247
40248         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
40249         Don't use 'exit'; just return from 'main'.
40250         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
40251
40252         * lib/fnmatch_.h: Readjust white space and comments to match
40253         glibc, to avoid spurious diffs.
40254
40255 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40256
40257         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
40258         2004-12-01 change by Jakub Jelinek, since this code won't compile
40259         if !LIBC.  Problem reported by Bob Proulx.
40260
40261 2007-01-23  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/striconveh.c: Include c-strcaseeq.h.
40264         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
40265         * modules/striconveh (Depends-on): Add c-strcaseeq.
40266
40267 2007-01-23  Bruno Haible  <bruno@clisp.org>
40268
40269         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
40270
40271         * modules/c-strcaseeq: New file.
40272         * lib/c-strcaseeq.h: New file.
40273
40274         * modules/streq: New file.
40275         * lib/streq.h: New file.
40276
40277 2007-01-23  Bruno Haible  <bruno@clisp.org>
40278
40279         * modules/striconveha-tests: New file.
40280         * tests/test-striconveha.c: New file.
40281
40282         * lib/striconveha.h: Include <stdbool.h>.
40283         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
40284         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
40285         (mem_iconveha_notranslit): Renamed from mem_iconveha.
40286         (mem_iconveha): New function.
40287         (str_iconveha_notranslit): Renamed from str_iconveha.
40288         (str_iconveha): New function.
40289         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
40290         c-strcase.
40291
40292 2007-01-23  Bruno Haible  <bruno@clisp.org>
40293
40294         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
40295         encodings without forgiving before trying any encoding with handler.
40296         (str_iconveha): Try all encodings without forgiving before trying any
40297         encoding with handler.
40298
40299 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40300
40301         Import the following changes from libc.
40302
40303         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40304
40305         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
40306
40307         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40308
40309         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
40310         normal_bracket label.
40311
40312         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40313
40314         [BZ #361]
40315         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40316         to normal_bracket after fetching the next character.
40317
40318 2007-01-22  Bruno Haible  <bruno@clisp.org>
40319
40320         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40321         argument.
40322         * lib/striconveh.c (iconv_carefully_1): New function.
40323         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40324         argument.
40325         (str_cd_iconveh): Update.
40326         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40327         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40328         * tests/test-striconveh.c (MAGIC): New macro.
40329         (new_offsets): New function.
40330         (main): Test call with and without offsets.
40331
40332 2007-01-22  Bruno Haible  <bruno@clisp.org>
40333
40334         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40335         * modules/sys_select (Makefile.am): Likewise.
40336         * modules/sys_socket (Makefile.am): Likewise.
40337         * modules/sys_time (Makefile.am): Likewise.
40338
40339 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40340
40341         * modules/gettimeofday (License): Change from GPL to LGPL, since
40342         gettimeofday is a library function.
40343
40344 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40345
40346         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40347
40348 2007-01-21  Bruno Haible  <bruno@clisp.org>
40349
40350         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40351
40352 2007-01-21  Bruno Haible  <bruno@clisp.org>
40353
40354         * modules/striconveha: New file.
40355         * lib/striconveha.h: New file.
40356         * lib/striconveha.c: New file.
40357         * MODULES.html.sh (Internationalization functions): Add striconveha.
40358         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40359         string.
40360         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40361
40362 2007-01-21  Bruno Haible  <bruno@clisp.org>
40363
40364         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40365         * lib/striconveh.c (str_iconveh): Likewise.
40366
40367 2007-01-21  Bruno Haible  <bruno@clisp.org>
40368
40369         * lib/striconveh.h (mem_iconveh): New declaration.
40370         * lib/striconveh.c (mem_iconveh): New function.
40371         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40372
40373 2007-01-21  Bruno Haible  <bruno@clisp.org>
40374
40375         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40376
40377         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40378         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40379         original result buffer.
40380         (str_cd_iconveh): Update.
40381         * tests/test-striconveh.c (main): Update.
40382
40383         * lib/striconv.h (mem_cd_iconv): Change specification.
40384         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40385         result buffer.
40386         (str_cd_iconv): Update.
40387         * tests/test-striconv.c (main): Update.
40388
40389 2007-01-21  Bruno Haible  <bruno@clisp.org>
40390
40391         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40392
40393 2007-01-20  Jim Meyering  <jim@meyering.net>
40394
40395         * lib/userspec.c (parse_with_separator): If a user or group string
40396         starts with "+", skip the corresponding name-to-ID look-up, since
40397         such a look-up must fail: user and group names may not include "+".
40398
40399 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40400
40401         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40402         since we now assume the sys_time module.
40403         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40404         check for sys/time.h; no longer needed.
40405         * modules/poll (Depends-on): Depend on sys_time.
40406
40407 2007-01-18  Bruno Haible  <bruno@clisp.org>
40408
40409         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40410         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40411
40412         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40413         gettimeofday.
40414
40415         * tests/test-gettimeofday.c: Include <time.h>.
40416         (dummy): Remove variable.
40417
40418         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40419         gl_HEADER_SYS_TIME_H.
40420         (gl_HEADER_SYS_TIME_H): New macro.
40421
40422         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40423         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40424         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40425         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40426         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40427         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40428         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40429         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40430         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40431         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40432         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40433
40434         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40435         last change; it caused a compilation error when cross-compiling to
40436         Cygwin.
40437
40438 2007-01-18  Jim Meyering  <jim@meyering.net>
40439
40440         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40441         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40442         than the race-prone "test -d sys || mkdir sys".
40443         (configure.ac): Use AC_PROG_MKDIR_P.
40444         * modules/sys_select: Likewise.
40445         * modules/sys_socket: Likewise.
40446         * modules/sys_time: Likewise.
40447
40448 2007-01-18  Eric Blake  <ebb9@byu.net>
40449
40450         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40451         replace gettimeofday.
40452         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40453         name, to avoid infinite recursion.
40454
40455 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40456
40457         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40458         module sys_time.
40459         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40460         assume timespec.h defines struct timeval.
40461         * lib/settime.c: Likewise.
40462         * lib/utimens.c: Likewise.
40463         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40464         since we now assume the gettimeofday module.
40465         * lib/tempname.c (__gen_tempname): Likewise.
40466         * lib/gettimeofday.h: Remove.
40467         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40468         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40469         Include <time.h>, for 'time()'.
40470         (localtime_buffer_addr): Also use this workaround if
40471         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40472         to simplify the uses.  All uses changed.
40473         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40474         that #undef is inside {}, and 'const' follows type name consistently.
40475         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40476         (gettimeofday): Do not use the maximum possible value for
40477         tv->tv_usec, since that might break usages other than ls.c.
40478         Instead, we'll leave ls.c alone.  This undoes today's patch
40479         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40480         we've never observed the problem but might as well keep the
40481         canary.
40482         * lib/nanosleep.c: Include timespec.h first, for interface check.
40483         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40484         now assume the sys_time module.
40485         * lib/tempname.c: Likewise.
40486         * lib/timespec.h: Likewise.
40487         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40488         needed.
40489         * lib/strftime.c: Likewise.
40490         * lib/timespec.h: Likewise.
40491         * lib/posixtm.c: Include posixtm.h first, for interface check.
40492         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40493         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40494         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40495         * lib/sys_time_.h: New file.
40496         * lib/timespec.h (struct timespec): Use long int, not long.
40497         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40498         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40499         Remove obsolescent call to AC_HEADER_TIME.
40500         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40502         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40503         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40504         Likewise.
40505         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40506         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40507         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40508         into the sys_time module.  Check for gettimeofday just once.
40509         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40510         for gettimeofday signature to just check the signature.  Merely
40511         compile it, since linking doesn't test signature.  Improve test for
40512         whether gettimeofday.o is actually needed.
40513         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40514         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40515         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40516         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40517         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40518         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40519         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40520         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40521         than worrying about sys/time.h.
40522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40523         Don't bother worrying about TIME_WITH_SYS_TIME.
40524         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40525         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40526         * m4/sys_time_h.m4: New file.
40527         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40528         Don't include sys/time.h.  Return from main rather than exiting.
40529         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40530         all uses changed.
40531         * modules/gethrxtime (Depends-on): Add sys_time.
40532         * modules/gettime (Depends-on): Likewise.
40533         * modules/gettimeofday (Depends-on): Likewise.
40534         * modules/nanosleep (Depends-on): Likewise.
40535         * modules/settime (Depends-on): Likewise.
40536         * modules/tempname (Depends-on): Likewise.
40537         * modules/utimens (Depends-on): Likewise.
40538         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40539         (Include:) Change back to <sys/time.h>.
40540         (Maintainer:) Add self.
40541         * modules/sys_time: New file.
40542         * modules/tempname (Depends-on): Add gettimeofday.
40543         * tests/test-gettimeofday.c: Include <sys/time.h>
40544         rather than gettimeofday.h.
40545
40546 2007-01-17  Bruno Haible  <bruno@clisp.org>
40547
40548         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40549         the license default to GPL.
40550         (func_create_testdir): Don't complain if a module is LGPL and its
40551         tests module depends on GPLed modules.
40552
40553 2007-01-17  Bruno Haible  <bruno@clisp.org>
40554
40555         * lib/gettimeofday.c (gettimeofday): Add code for the case
40556         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40557         maximum possible value for tv->tv_usec, rather than the minimum one.
40558
40559 2005-10-08  Martin Lambers  <marlam@marlam.de>
40560 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40561 2007-01-16  Bruno Haible  <bruno@clisp.org>
40562
40563         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40564         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40565         gl_FUNC_GETTIMEOFDAY.
40566         (Include): Add gettimeofday.h.
40567         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40568         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40569         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40570         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40571         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40572         * lib/gettimeofday.h: New file.
40573         * lib/gettimeofday.c: Include <sys/timeb.h>.
40574         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40575         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40576         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40577         fall back on time().
40578
40579         * tests/test-gettimeofday.c: New file.
40580         * modules/gettimeofday-tests: New file.
40581
40582 2007-01-16  Eric Blake  <ebb9@byu.net>
40583
40584         * modules/fnmatch (Depends-on): Depend on wchar.
40585         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40586         * m4/fnmatch.m4: Likewise.
40587         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40588         * m4/mbchar.m4: Likewise.
40589         * modules/mbswidth (Depends-on): Depend on wchar.
40590         * lib/mbswidth.c: Assume <wchar.h>.
40591         * m4/mbswidth.m4: Likewise.
40592         * modules/quotearg (Depends-on): Depend on wchar.
40593         * lib/quotearg.c: Assume <wchar.h>.
40594         * m4/quotearg.m4: Likewise.
40595         * modules/regex (Depends-on): Depend on wchar.
40596         * lib/regex_internal.h: Assume <wchar.h>.
40597         * m4/regex.m4: Likewise.
40598         * modules/stdint (Depends-on): Depend on wchar.
40599         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40600         * m4/stdint.m4: Likewise.
40601         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40602         * modules/strftime (Depends-on): Depend on wchar.
40603         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40604         * modules/strtol (Depends-on): Depend on wchar.
40605         * lib/strtol.c: Assume <wchar.h>.
40606         * modules/wcwidth (Depends-on): Depend on wchar.
40607         * lib/wcwidth.h: Assume <wchar.h>.
40608         * m4/wcwidth.m4: Likewise.
40609
40610 2007-01-16  Bruno Haible  <bruno@clisp.org>
40611
40612         * modules/csharpexec-script: New, created from...
40613         * modules/csharpexec: ... this.
40614
40615 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40616
40617         * modules/javaexec-script: New, created from...
40618         * modules/javaexec: ... this.
40619
40620 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40621
40622         * modules/poll (Dependencies): Add sys_select.
40623
40624 2007-01-15  Jim Meyering  <jim@meyering.net>
40625
40626         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40627         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40628         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40629         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40630
40631 2007-01-15  Bruno Haible  <bruno@clisp.org>
40632
40633         * modules/striconveh: New file.
40634         * lib/striconveh.h: New file.
40635         * lib/striconveh.c: New file.
40636         * MODULES.html.sh (Internationalization functions): Add striconveh.
40637
40638         * modules/striconveh-tests: New file.
40639         * tests/test-striconveh.c: New file.
40640
40641 2007-01-15  Bruno Haible  <bruno@clisp.org>
40642
40643         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40644         not from GNU libiconv or GNU libc.
40645
40646 2007-01-15  Bruno Haible  <bruno@clisp.org>
40647
40648         * doc/gnulib-intro.texi (Copyright): Explain the different license
40649         terms for module descriptions, autoconf macros, tests, documentation.
40650
40651 2007-01-14  Bruno Haible  <bruno@clisp.org>
40652
40653         * modules/striconv-tests: New file.
40654         * tests/test-striconv.c: New file.
40655
40656 2007-01-14  Bruno Haible  <bruno@clisp.org>
40657
40658         * modules/iconv-tests: New file.
40659         * tests/test-iconv.c: New file.
40660
40661 2007-01-14  Bruno Haible  <bruno@clisp.org>
40662
40663         * gnulib-tool (func_get_license): For test modules, use the license of
40664         the main module.
40665
40666 2007-01-14  Bruno Haible  <bruno@clisp.org>
40667
40668         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40669         if iconv is found to exist.
40670
40671 2007-01-14  Bruno Haible  <bruno@clisp.org>
40672
40673         * modules/c-ctype-tests: New file.
40674         * tests/test-c-ctype.c: New file.
40675
40676 2007-01-14  Bruno Haible  <bruno@clisp.org>
40677
40678         * modules/binary-io-tests: New file.
40679         * tests/test-binary-io.sh: New file.
40680         * tests/test-binary-io.c: New file.
40681
40682 2007-01-14  Bruno Haible  <bruno@clisp.org>
40683
40684         * modules/array-oset-tests: New file.
40685         * tests/test-array_oset.c: New file.
40686
40687 2007-01-14  Bruno Haible  <bruno@clisp.org>
40688
40689         * modules/array-list-tests: New file.
40690         * tests/test-array_list.c: New file.
40691
40692 2007-01-14  Bruno Haible  <bruno@clisp.org>
40693
40694         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40695         and make.
40696         Reported by Simon Josefsson in
40697         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40698
40699 2007-01-14  Bruno Haible  <bruno@clisp.org>
40700
40701         * modules/allocsa-tests: New file.
40702         * tests/test-allocsa.c: New file.
40703
40704 2007-01-14  Bruno Haible  <bruno@clisp.org>
40705
40706         * modules/fchdir (Depends-on): Add absolute-header.
40707         * modules/unistd (Depends-on): Likewise.
40708
40709 2006-12-30  Bruno Haible  <bruno@clisp.org>
40710
40711         * modules/fchdir: New file.
40712         * modules/unistd (Files): Add lib/unistd_.h.
40713         (Makefile.am): Generate unistd.h from unistd_.h.
40714         * lib/fchdir.c: New file.
40715         * lib/dirent_.h: New file.
40716         * lib/unistd_.h: New file.
40717         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40718         * m4/fchdir.m4: New file.
40719         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40720         (gl_HEADER_UNISTD): Invoke it.
40721         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40722         function.
40723         * lib/backupfile.c (opendir, closedir): Undefine.
40724         * lib/chown.c (open, close): Undefine.
40725         * lib/clean-temp.c (open, close): Undefine.
40726         * lib/copy-file.c (open, close): Undefine.
40727         * lib/execute.c (open, close): Undefine.
40728         * lib/fsusage.c (open, close): Undefine.
40729         * lib/gc-gnulib.c (open, close): Undefine.
40730         * lib/getcwd.c (opendir, closedir): Undefine.
40731         * lib/glob.c (opendir, closedir): Undefine.
40732         * lib/javacomp.c (open, close): Undefine.
40733         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40734         * lib/openat-proc.c (open, close): Undefine.
40735         * lib/pagealign_alloc.c (open, close): Undefine.
40736         * lib/pipe.c (open, close): Undefine.
40737         * lib/progreloc.c (open, close): Undefine.
40738         * lib/savedir.c (opendir, closedir): Undefine.
40739         * lib/utime.c (open, close): Undefine.
40740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40741
40742 2007-01-10  Bruno Haible  <bruno@clisp.org>
40743
40744         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40745
40746 2007-01-12  Eric Blake  <ebb9@byu.net>
40747
40748         Provide a robust <wchar.h>.  Further simplifications are now
40749         possible in other modules, but not included here.
40750         * modules/wchar: New module.
40751         * m4/wchar.m4: New file.
40752         * lib/wchar_.h: Likewise.
40753         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40754         of the new module.
40755         * MODULES.html.sh (Extended multibyte and wide character utilities):
40756         New section.
40757
40758 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40759
40760         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40761         to a reasonable default for memory allocation.
40762         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40763         file system that reports garbage st_size values for symlinks.
40764         Problem reported by Liyang Hu.
40765
40766 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40767
40768         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40769         Emacs .#* auto-save files).
40770
40771 2007-01-11  Bruno Haible  <bruno@clisp.org>
40772
40773         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40774         directory.
40775
40776 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40777
40778         Use @...@ consistently in lib/wctype_.h.
40779         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40780         on it being set to 1 or 0.
40781         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40782         go back to AC_SUBSTing it.
40783         * modules/wctype (Makefile.am): Undo previous change.
40784
40785 2007-01-10  Eric Blake  <ebb9@byu.net>
40786
40787         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40788         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40789         * modules/wctype (Makefile.am): Likewise.
40790         Reported by Chris McGuire.
40791
40792 2007-01-10  Jim Meyering  <jim@meyering.net>
40793
40794         fts.c: a small readability/maintainability improvement
40795         * lib/fts.c (fts_read): Make this code slightly more readable and
40796         maintainable by hoisting the "sp->fts_cur = p" assignments to
40797         immediately follow the statements that set P.  Derived from
40798         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40799
40800 2007-01-10  Eric Blake  <ebb9@byu.net>
40801
40802         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40803         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40805         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40806         Reported by Chris McGuire.
40807
40808 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40809
40810         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40811         in sed script.
40812
40813 2007-01-09  Bruno Haible  <bruno@clisp.org>
40814
40815         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40816         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40817         variables.
40818         (func_module): Use them.
40819
40820 2007-01-09  Bruno Haible  <bruno@clisp.org>
40821
40822         * modules/unistr/base: New file.
40823         * lib/unistr.h: New file.
40824
40825         * modules/unistr/u8-to-u16: New file.
40826         * lib/unistr/u8-to-u16.c: New file.
40827
40828         * modules/unistr/u8-to-u32: New file.
40829         * lib/unistr/u8-to-u32.c: New file.
40830
40831         * modules/unistr/u16-to-u8: New file.
40832         * lib/unistr/u16-to-u8.c: New file.
40833
40834         * modules/unistr/u16-to-u32: New file.
40835         * lib/unistr/u16-to-u32.c: New file.
40836
40837         * modules/unistr/u32-to-u8: New file.
40838         * lib/unistr/u32-to-u8.c: New file.
40839
40840         * modules/unistr/u32-to-u16: New file.
40841         * lib/unistr/u32-to-u16.c: New file.
40842
40843         * modules/unistr/u8-check: New file.
40844         * modules/unistr/u16-check: New file.
40845         * modules/unistr/u32-check: New file.
40846         * lib/unistr/u8-check.c: New file.
40847         * lib/unistr/u16-check.c: New file.
40848         * lib/unistr/u32-check.c: New file.
40849
40850         * modules/unistr/u8-chr: New file.
40851         * modules/unistr/u16-chr: New file.
40852         * modules/unistr/u32-chr: New file.
40853         * lib/unistr/u8-chr.c: New file.
40854         * lib/unistr/u16-chr.c: New file.
40855         * lib/unistr/u32-chr.c: New file.
40856
40857         * modules/unistr/u8-cmp: New file.
40858         * modules/unistr/u16-cmp: New file.
40859         * modules/unistr/u32-cmp: New file.
40860         * lib/unistr/u8-cmp.c: New file.
40861         * lib/unistr/u16-cmp.c: New file.
40862         * lib/unistr/u32-cmp.c: New file.
40863
40864         * modules/unistr/u8-cpy: New file.
40865         * modules/unistr/u16-cpy: New file.
40866         * modules/unistr/u32-cpy: New file.
40867         * lib/unistr/u8-cpy.c: New file.
40868         * lib/unistr/u16-cpy.c: New file.
40869         * lib/unistr/u32-cpy.c: New file.
40870         * lib/unistr/u-cpy.h: New file.
40871
40872         * modules/unistr/u8-cpy-alloc: New file.
40873         * modules/unistr/u16-cpy-alloc: New file.
40874         * modules/unistr/u32-cpy-alloc: New file.
40875         * lib/unistr/u8-cpy-alloc.c: New file.
40876         * lib/unistr/u16-cpy-alloc.c: New file.
40877         * lib/unistr/u32-cpy-alloc.c: New file.
40878         * lib/unistr/u-cpy-alloc.h: New file.
40879
40880         * modules/unistr/u8-endswith: New file.
40881         * modules/unistr/u16-endswith: New file.
40882         * modules/unistr/u32-endswith: New file.
40883         * lib/unistr/u8-endswith.c: New file.
40884         * lib/unistr/u16-endswith.c: New file.
40885         * lib/unistr/u32-endswith.c: New file.
40886         * lib/unistr/u-endswith.h: New file.
40887
40888         * modules/unistr/u8-mblen: New file.
40889         * modules/unistr/u16-mblen: New file.
40890         * modules/unistr/u32-mblen: New file.
40891         * lib/unistr/u8-mblen.c: New file.
40892         * lib/unistr/u16-mblen.c: New file.
40893         * lib/unistr/u32-mblen.c: New file.
40894
40895         * modules/unistr/u8-mbtouc: New file.
40896         * modules/unistr/u16-mbtouc: New file.
40897         * modules/unistr/u32-mbtouc: New file.
40898         * lib/unistr/u8-mbtouc.c: New file.
40899         * lib/unistr/u16-mbtouc.c: New file.
40900         * lib/unistr/u32-mbtouc.c: New file.
40901
40902         * modules/unistr/u8-mbtouc-safe: New file.
40903         * modules/unistr/u16-mbtouc-safe: New file.
40904         * modules/unistr/u32-mbtouc-safe: New file.
40905         * lib/unistr/u8-mbtouc-safe.c: New file.
40906         * lib/unistr/u16-mbtouc-safe.c: New file.
40907         * lib/unistr/u32-mbtouc-safe.c: New file.
40908
40909         * modules/unistr/u8-move: New file.
40910         * modules/unistr/u16-move: New file.
40911         * modules/unistr/u32-move: New file.
40912         * lib/unistr/u8-move.c: New file.
40913         * lib/unistr/u16-move.c: New file.
40914         * lib/unistr/u32-move.c: New file.
40915         * lib/unistr/u-move.h: New file.
40916
40917         * modules/unistr/u8-next: New file.
40918         * modules/unistr/u16-next: New file.
40919         * modules/unistr/u32-next: New file.
40920         * lib/unistr/u8-next.c: New file.
40921         * lib/unistr/u16-next.c: New file.
40922         * lib/unistr/u32-next.c: New file.
40923
40924         * modules/unistr/u8-prev: New file.
40925         * modules/unistr/u16-prev: New file.
40926         * modules/unistr/u32-prev: New file.
40927         * lib/unistr/u8-prev.c: New file.
40928         * lib/unistr/u16-prev.c: New file.
40929         * lib/unistr/u32-prev.c: New file.
40930
40931         * modules/unistr/u8-set: New file.
40932         * modules/unistr/u16-set: New file.
40933         * modules/unistr/u32-set: New file.
40934         * lib/unistr/u8-set.c: New file.
40935         * lib/unistr/u16-set.c: New file.
40936         * lib/unistr/u32-set.c: New file.
40937         * lib/unistr/u-set.h: New file.
40938
40939         * modules/unistr/u8-startswith: New file.
40940         * modules/unistr/u16-startswith: New file.
40941         * modules/unistr/u32-startswith: New file.
40942         * lib/unistr/u8-startswith.c: New file.
40943         * lib/unistr/u16-startswith.c: New file.
40944         * lib/unistr/u32-startswith.c: New file.
40945         * lib/unistr/u-startswith.h: New file.
40946
40947         * modules/unistr/u8-stpcpy: New file.
40948         * modules/unistr/u16-stpcpy: New file.
40949         * modules/unistr/u32-stpcpy: New file.
40950         * lib/unistr/u8-stpcpy.c: New file.
40951         * lib/unistr/u16-stpcpy.c: New file.
40952         * lib/unistr/u32-stpcpy.c: New file.
40953         * lib/unistr/u-stpcpy.h: New file.
40954
40955         * modules/unistr/u8-stpncpy: New file.
40956         * modules/unistr/u16-stpncpy: New file.
40957         * modules/unistr/u32-stpncpy: New file.
40958         * lib/unistr/u8-stpncpy.c: New file.
40959         * lib/unistr/u16-stpncpy.c: New file.
40960         * lib/unistr/u32-stpncpy.c: New file.
40961         * lib/unistr/u-stpncpy.h: New file.
40962
40963         * modules/unistr/u8-strcat: New file.
40964         * modules/unistr/u16-strcat: New file.
40965         * modules/unistr/u32-strcat: New file.
40966         * lib/unistr/u8-strcat.c: New file.
40967         * lib/unistr/u16-strcat.c: New file.
40968         * lib/unistr/u32-strcat.c: New file.
40969         * lib/unistr/u-strcat.h: New file.
40970
40971         * modules/unistr/u8-strchr: New file.
40972         * modules/unistr/u16-strchr: New file.
40973         * modules/unistr/u32-strchr: New file.
40974         * lib/unistr/u8-strchr.c: New file.
40975         * lib/unistr/u16-strchr.c: New file.
40976         * lib/unistr/u32-strchr.c: New file.
40977
40978         * modules/unistr/u8-strcmp: New file.
40979         * modules/unistr/u16-strcmp: New file.
40980         * modules/unistr/u32-strcmp: New file.
40981         * lib/unistr/u8-strcmp.c: New file.
40982         * lib/unistr/u16-strcmp.c: New file.
40983         * lib/unistr/u32-strcmp.c: New file.
40984
40985         * modules/unistr/u8-strcpy: New file.
40986         * modules/unistr/u16-strcpy: New file.
40987         * modules/unistr/u32-strcpy: New file.
40988         * lib/unistr/u8-strcpy.c: New file.
40989         * lib/unistr/u16-strcpy.c: New file.
40990         * lib/unistr/u32-strcpy.c: New file.
40991         * lib/unistr/u-strcpy.h: New file.
40992
40993         * modules/unistr/u8-strcspn: New file.
40994         * modules/unistr/u16-strcspn: New file.
40995         * modules/unistr/u32-strcspn: New file.
40996         * lib/unistr/u8-strcspn.c: New file.
40997         * lib/unistr/u16-strcspn.c: New file.
40998         * lib/unistr/u32-strcspn.c: New file.
40999         * lib/unistr/u-strcspn.h: New file.
41000
41001         * modules/unistr/u8-strdup: New file.
41002         * modules/unistr/u16-strdup: New file.
41003         * modules/unistr/u32-strdup: New file.
41004         * lib/unistr/u8-strdup.c: New file.
41005         * lib/unistr/u16-strdup.c: New file.
41006         * lib/unistr/u32-strdup.c: New file.
41007         * lib/unistr/u-strdup.h: New file.
41008
41009         * modules/unistr/u8-strlen: New file.
41010         * modules/unistr/u16-strlen: New file.
41011         * modules/unistr/u32-strlen: New file.
41012         * lib/unistr/u8-strlen.c: New file.
41013         * lib/unistr/u16-strlen.c: New file.
41014         * lib/unistr/u32-strlen.c: New file.
41015         * lib/unistr/u-strlen.h: New file.
41016
41017         * modules/unistr/u8-strmblen: New file.
41018         * modules/unistr/u16-strmblen: New file.
41019         * modules/unistr/u32-strmblen: New file.
41020         * lib/unistr/u8-strmblen.c: New file.
41021         * lib/unistr/u16-strmblen.c: New file.
41022         * lib/unistr/u32-strmblen.c: New file.
41023
41024         * modules/unistr/u8-strmbtouc: New file.
41025         * modules/unistr/u16-strmbtouc: New file.
41026         * modules/unistr/u32-strmbtouc: New file.
41027         * lib/unistr/u8-strmbtouc.c: New file.
41028         * lib/unistr/u16-strmbtouc.c: New file.
41029         * lib/unistr/u32-strmbtouc.c: New file.
41030
41031         * modules/unistr/u8-strncat: New file.
41032         * modules/unistr/u16-strncat: New file.
41033         * modules/unistr/u32-strncat: New file.
41034         * lib/unistr/u8-strncat.c: New file.
41035         * lib/unistr/u16-strncat.c: New file.
41036         * lib/unistr/u32-strncat.c: New file.
41037         * lib/unistr/u-strncat.h: New file.
41038
41039         * modules/unistr/u8-strncmp: New file.
41040         * modules/unistr/u16-strncmp: New file.
41041         * modules/unistr/u32-strncmp: New file.
41042         * lib/unistr/u8-strncmp.c: New file.
41043         * lib/unistr/u16-strncmp.c: New file.
41044         * lib/unistr/u32-strncmp.c: New file.
41045
41046         * modules/unistr/u8-strncpy: New file.
41047         * modules/unistr/u16-strncpy: New file.
41048         * modules/unistr/u32-strncpy: New file.
41049         * lib/unistr/u8-strncpy.c: New file.
41050         * lib/unistr/u16-strncpy.c: New file.
41051         * lib/unistr/u32-strncpy.c: New file.
41052         * lib/unistr/u-strncpy.h: New file.
41053
41054         * modules/unistr/u8-strnlen: New file.
41055         * modules/unistr/u16-strnlen: New file.
41056         * modules/unistr/u32-strnlen: New file.
41057         * lib/unistr/u8-strnlen.c: New file.
41058         * lib/unistr/u16-strnlen.c: New file.
41059         * lib/unistr/u32-strnlen.c: New file.
41060         * lib/unistr/u-strnlen.h: New file.
41061
41062         * modules/unistr/u8-strpbrk: New file.
41063         * modules/unistr/u16-strpbrk: New file.
41064         * modules/unistr/u32-strpbrk: New file.
41065         * lib/unistr/u8-strpbrk.c: New file.
41066         * lib/unistr/u16-strpbrk.c: New file.
41067         * lib/unistr/u32-strpbrk.c: New file.
41068         * lib/unistr/u-strpbrk.h: New file.
41069
41070         * modules/unistr/u8-strrchr: New file.
41071         * modules/unistr/u16-strrchr: New file.
41072         * modules/unistr/u32-strrchr: New file.
41073         * lib/unistr/u8-strrchr.c: New file.
41074         * lib/unistr/u16-strrchr.c: New file.
41075         * lib/unistr/u32-strrchr.c: New file.
41076
41077         * modules/unistr/u8-strspn: New file.
41078         * modules/unistr/u16-strspn: New file.
41079         * modules/unistr/u32-strspn: New file.
41080         * lib/unistr/u8-strspn.c: New file.
41081         * lib/unistr/u16-strspn.c: New file.
41082         * lib/unistr/u32-strspn.c: New file.
41083         * lib/unistr/u-strspn.h: New file.
41084
41085         * modules/unistr/u8-strstr: New file.
41086         * modules/unistr/u16-strstr: New file.
41087         * modules/unistr/u32-strstr: New file.
41088         * lib/unistr/u8-strstr.c: New file.
41089         * lib/unistr/u16-strstr.c: New file.
41090         * lib/unistr/u32-strstr.c: New file.
41091         * lib/unistr/u-strstr.h: New file.
41092
41093         * modules/unistr/u8-strtok: New file.
41094         * modules/unistr/u16-strtok: New file.
41095         * modules/unistr/u32-strtok: New file.
41096         * lib/unistr/u8-strtok.c: New file.
41097         * lib/unistr/u16-strtok.c: New file.
41098         * lib/unistr/u32-strtok.c: New file.
41099         * lib/unistr/u-strtok.h: New file.
41100
41101         * modules/unistr/u8-uctomb: New file.
41102         * modules/unistr/u16-uctomb: New file.
41103         * modules/unistr/u32-uctomb: New file.
41104         * lib/unistr/u8-uctomb.c: New file.
41105         * lib/unistr/u16-uctomb.c: New file.
41106         * lib/unistr/u32-uctomb.c: New file.
41107
41108         * MODULES.html.sh (Unicode string functions): Add the new modules.
41109
41110 2007-01-08  Bruno Haible  <bruno@clisp.org>
41111
41112         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
41113         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
41114         subdirectories.
41115
41116 2007-01-08  Karl Berry  <karl@gnu.org>
41117
41118         * doc/error.texi: mention that main() fns must set program_name
41119         when progname is used.
41120
41121 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
41122
41123         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
41124         WCTYPE_H is empty, for the benefit of builds from non-distclean
41125         directories.  Problem reported by Eric Blake in
41126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
41127
41128 2007-01-08  Bruno Haible  <bruno@clisp.org>
41129
41130         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
41131         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
41132         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
41133         PROVIDE_CANONICALIZE_FILENAME_MODE.
41134         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
41135
41136 2007-01-08  Bruno Haible  <bruno@clisp.org>
41137
41138         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
41139         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
41140         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
41141         * lib/fts.c: Likewise.
41142         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
41143
41144 2006-12-25  Bruno Haible  <bruno@clisp.org>
41145
41146         * modules/utf8-ucs4-safe: New file.
41147         * lib/utf8-ucs4-safe.h: New file.
41148         * lib/unistr/utf8-ucs4-safe.c: New file.
41149
41150         * modules/utf16-ucs4-safe: New file.
41151         * lib/utf16-ucs4-safe.h: New file.
41152         * lib/unistr/utf16-ucs4-safe.c: New file.
41153
41154         * MODULES.html.sh (Unicode string functions): Add the new modules.
41155
41156 2007-01-08  Bruno Haible  <bruno@clisp.org>
41157
41158         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
41159         (Depends-on): Add unitypes.
41160         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41161         (u8_mbtouc_aux): Move out to separate file.
41162         (u8_mbtouc): Use ucs4_t, uint8_t types.
41163         * lib/unistr/utf8-ucs4.c: New file.
41164
41165         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
41166         (Depends-on): Add unitypes.
41167         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41168         (u16_mbtouc_aux): Move out to separate file.
41169         (u16_mbtouc): Use ucs4_t, uint16_t types.
41170         * lib/unistr/utf16-ucs4.c: New file.
41171
41172         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
41173         (Depends-on): Add unitypes.
41174         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
41175         (u8_uctomb_aux): Move out to separate file.
41176         (u8_uctomb): Use ucs4_t, uint8_t types.
41177         * lib/unistr/ucs4-utf8.c: New file.
41178
41179         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
41180         (Depends-on): Add unitypes.
41181         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
41182         (u16_uctomb_aux): Move out to separate file.
41183         (u16_uctomb): Use ucs4_t, uint16_t types.
41184         * lib/unistr/ucs4-utf16.c: New file.
41185
41186 2006-12-25  Bruno Haible  <bruno@clisp.org>
41187
41188         * modules/unitypes: New file.
41189         * lib/unitypes.h: New file.
41190         * MODULES.html.sh (func_all_modules): New section "Unicode string
41191         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
41192         this section. Add unitypes.
41193
41194 2007-01-08  Bruno Haible  <bruno@clisp.org>
41195
41196         Avoid variable names that conflict with those from libtool.
41197         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
41198         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
41199         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
41200         library_names_spec to acl_library_names_spec, hardcode_* to
41201         acl_hardcode_*.
41202         Reported by Ralf Wildenhues.
41203
41204 2007-01-08  Bruno Haible  <bruno@clisp.org>
41205
41206         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
41207         definition.
41208         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
41209         definition.
41210         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
41211         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
41212         definition.
41213         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
41214         definition.
41215         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
41216         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
41217         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
41218         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
41219         definition.
41220         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
41221         definition.
41222         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
41223         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
41224         GC_USE_<algorithm>.
41225         * lib/gc-libgcrypt.c: Likewise.
41226         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
41227         * modules/gc-arctwo (configure.ac): Likewise.
41228         * modules/gc-des (configure.ac): Likewise.
41229         * modules/gc-hmac-md5 (configure.ac): Likewise.
41230         * modules/gc-hmac-sha1 (configure.ac): Likewise.
41231         * modules/gc-md2 (configure.ac): Likewise.
41232         * modules/gc-md4 (configure.ac): Likewise.
41233         * modules/gc-md5 (configure.ac): Likewise.
41234         * modules/gc-random (configure.ac): Likewise.
41235         * modules/gc-rijndael (configure.ac): Likewise.
41236         * modules/gc-sha1 (configure.ac): Likewise.
41237
41238 2007-01-08  Bruno Haible  <bruno@clisp.org>
41239
41240         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
41241         macro definition.
41242         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
41243         definition.
41244         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
41245         definition.
41246         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
41247         * modules/fcntl-safer (configure.ac): Likewise.
41248         * modules/fopen-safer (configure.ac): Likewise.
41249         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
41250         GNULIB_FWRITEERROR macro definition.
41251
41252 2007-01-08  Bruno Haible  <bruno@clisp.org>
41253
41254         * m4/gnulib-common.m4: New file.
41255         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
41256         (func_get_filelist): Add m4/gnulib-common.m4.
41257
41258 2007-01-08  Bruno Haible  <bruno@clisp.org>
41259
41260         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
41261         command.
41262
41263 2007-01-08  Jim Meyering  <jim@meyering.net>
41264
41265         Use a more robust test for a "can't happen" condition.
41266         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
41267         narrowed the st_size value.  Presuming the "can't happen" condition
41268         is true, that narrowing could conceivably convert an invalid st_size
41269         value into a valid one.  Instead, use a change based on Matthew
41270         Woehlke's original patch.
41271
41272         Slight readability improvement: use an assert-like macro
41273         in place of literal "abort ()" uses.
41274         * lib/fts.c (fts_assert): Define.
41275         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
41276         Use this macro instead of a bare 'abort'.
41277
41278 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41279
41280         Don't worry about using IRIX 5.3's wctype.h broken definitions;
41281         simply work around them.
41282         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
41283         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
41284         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
41285         declaring.
41286         Don't bother to define as macros, since the standard doesn't require it.
41287         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
41288         longer worry about IRIX 5.3.
41289         (HAVE_WCTYPE_CTMP_BUG): Remove.
41290
41291 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41292
41293         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
41294         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
41295         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41296         Problems reported by Georg Schwarz for IRIX 5.3.
41297
41298         * gnulib-tool (autoconf_minversion): Take the maximum version number
41299         found, not the minimum.  Problem reported by James Youngman.
41300
41301 2007-01-03  Karl Berry  <karl@gnu.org>
41302
41303         * doc/error.texi: new file, explaining interaction with progname.
41304         * doc/gnulib.texi: include it.  Update copyright.
41305
41306 2007-01-03  Simon Josefsson  <simon@josefsson.org>
41307
41308         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
41309         AC_CANONICAL_HOST, to improve autobuild outputs.
41310
41311 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41312             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41313
41314         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41315         sockets, server sockets, and other file descriptors.  Count errors
41316         to compute the return value.  Reorder the code a bit to be easier
41317         to follow.  Don't set event bits that were not requested (except
41318         POLLERR and POLLHUP).
41319
41320 2007-01-01  Bruno Haible  <bruno@clisp.org>
41321
41322         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41323
41324 2007-01-03  Jim Meyering  <jim@meyering.net>
41325
41326         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41327
41328 2007-01-02  Bruno Haible  <bruno@clisp.org>
41329
41330         * modules/settime (Include): Require timespec.h.
41331         * modules/nanosleep (Include): Likewise.
41332
41333 2007-01-01  Bruno Haible  <bruno@clisp.org>
41334
41335         * gnulib-tool (func_emit_copyright_notice): Bump year.
41336         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41337
41338 2007-01-01  Bruno Haible  <bruno@clisp.org>
41339
41340         Improve support for OpenBSD.
41341         * build-aux/config.rpath (libname_spec): Export.
41342         (library_names_spec): New variable. Export.
41343         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41344         library_names_spec from the config.rpath output. Locate shared library
41345         through the name pattern in library_names_spec.
41346
41347 2007-01-01  Eric Blake  <ebb9@byu.net>
41348
41349         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41350
41351 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41352
41353         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41354         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41355         assume the C locale, and avoid an "eval" that could cause trouble.
41356         Problem with SORT reported by Bob Proulx.
41357
41358         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41359         Define.  Trivial patch from Henning Nielsen Lund, originally
41360         sent to bug-grep@gnu.org today.
41361
41362 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41363
41364         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41365         struct stat.  Problem reported by Henning Nielsen Lund.
41366         * lib/acl.c: Include acl.h first, to check interface.  Don't
41367         bother to include sys/types.h and sys/stat.h again.
41368
41369 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41370
41371         Import the following change from libc; problem reported by
41372         Sven Verdoolaege.
41373
41374         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41375
41376         [BZ #1373]
41377         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41378
41379 2006-12-28  Jim Meyering  <jim@meyering.net>
41380
41381         * build-aux/announce-gen: Do not assume that the package
41382         builds any of tar.gz, tar.bz2, and .xdelta files.
41383         Suggestion from Simon Josefsson.
41384
41385 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41386
41387         * modules/announce-gen: New file.
41388
41389 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41390
41391         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41392         handles its gotchas now.
41393         * lib/mbswidth.c: Likewise.
41394         * lib/wcwidth.h: Likewise.
41395         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41396         and iswcntrl; the wctype module does this stuff now.
41397         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41398         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41399         * modules/mbchar (Depends-on): Add wctype.
41400         * modules/mbswidth (Depends-on): Likewise.
41401         * modules/wcwidth (Depends-on): Likewise.
41402
41403 2006-12-27  Eric Blake  <ebb9@byu.net>
41404
41405         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41406         module uses more than what <wctype.h> is required to provide.
41407
41408 2006-12-26  Eric Blake  <ebb9@byu.net>
41409
41410         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41411
41412 2006-12-26  Eric Blake  <ebb9@byu.net>
41413
41414         * modules/absolute-header: New module.
41415         * modules/fcntl (Depends-on): Depend on it.
41416         * modules/inttypes (Depends-on): Likewise.
41417         * modules/stdint (Depends-on): Likewise.
41418         * modules/sys_stat (Depends-on): Likewise.
41419         * modules/wctype (Depends-on): Likewise.
41420         * MODULES.html.sh (Support for building libraries and
41421         executables): Document it.
41422
41423 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41424
41425         * gnulib-tool (SED): Remove, undoing previous change.
41426         The problem was that it broke coreutils on Solaris, because
41427         "sed --posix" leaked into a makefile.
41428         (sed): New alias, if 'alias' and GNU sed.
41429
41430 2006-12-24  Jim Meyering  <jim@meyering.net>
41431
41432         Work around an fchownat bug in glibc-2.4:
41433         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41434         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41435         in spite of the -P option.
41436         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41437         New macros.
41438         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41439         * modules/openat (Files): Add lib/fchownat.c.
41440         * lib/openat.c (fchownat): Don't define here.  Move to...
41441         * lib/fchownat.c: ...this new file.
41442
41443 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41444
41445         Fix bug reported by Bruno Haible in
41446         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41447         where quotearg.c didn't compile on Mac OS X 10.2 because it
41448         lacks <wchar.h> and wint_t.
41449         * lib/wctype_.h (__wctype_wint_t): New type.
41450         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41451         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41452         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41453         Arg is now of type __wctype_wint_t, not wint_t.
41454         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41455         substitute HAVE_WINT_T.
41456         * modules/wctype (Files): Add m4/wint_t.m4.
41457         (wctype.h): Substitute HAVE_WINT_T.
41458
41459 2006-12-23  Bruno Haible  <bruno@clisp.org>
41460
41461         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41462
41463 2006-12-23  Bruno Haible  <bruno@clisp.org>
41464
41465         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41466         S_ISLNK.
41467         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41468         mingw.
41469
41470 2006-12-22  Bruno Haible  <bruno@clisp.org>
41471
41472         * lib/copy-file.c: Include acl.h.
41473         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41474         Close the file descriptors only after being done with copy_acl.
41475         * modules/copy-file (Depends-on): Add acl.
41476
41477 2006-12-22  Bruno Haible  <bruno@clisp.org>
41478
41479         * gnulib-tool (SED): New variable.
41480         Use $SED instead of sed everywhere.
41481
41482 2006-12-22  Bruno Haible  <bruno@clisp.org>
41483
41484         * modules/no-c++: New file.
41485         * m4/no-c++.m4: New file.
41486         * MODULES.html.sh (Support for building libraries and executables):
41487         Add no-c++.
41488
41489 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41490
41491         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41492         Include <limits.h>, and use its INT_MAX to rewrite the
41493         j loop so that it does not overflow 'int'.  Problem reported by
41494         Ralf Wildenhues in
41495         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41496         Play it safe by shifting left by 1 rather than multiplying by 2,
41497         as GCC is less likely to optimize this away when the value
41498         is signed (when it assumes overflow leads to undefined behavior).
41499         Also, don't assume time_t uses two's complement.
41500
41501 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41502
41503         * MODULES.html.sh: New module wctype.
41504         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41505         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41506         <wctype.h>, since the new wctype module should fix this.
41507         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41508         the wctype module should arrange for it.
41509         * lib/regex_internal.h: Likewise.
41510         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41511         since the wctype module should handle this now.
41512         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41513         * modules/fnmatch (Depends-on): Add wctype.
41514         * modules/quotearg (Depends-on): Likewise.
41515         * modules/regex (Depends-on): Likewise.
41516
41517 2006-12-19  Bruno Haible  <bruno@clisp.org>
41518
41519         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41520         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41521
41522 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41523
41524         * modules/savewd (Depends-on): Fix dependency on fcntl.
41525
41526 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41527
41528         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41529         conforms to C99, rather than relying on the user's environment
41530         setting of STDINT_H.
41531
41532 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41533         and Eric Blake  <ebb9@byu.net>
41534
41535         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41536         This is more consistent with the other defines here.
41537         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41538         Port to z/OS.  Problem reported by Paul Gilmartin.
41539         Change local vars to use gl_ prefix rather than ac_.
41540         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41541         with other defines.
41542         * modules/double-slash-root: New module.
41543         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41544         (Depends-on): Add double-slash-root.
41545         * MODULES.html.sh (File system functions): Mention new module.
41546
41547 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41548
41549         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41550         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41551         This is for the benefit of gzip, which doesn't do i18n.
41552
41553 2006-12-12  Jim Meyering  <jim@meyering.net>
41554
41555         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41556         Reported by Andreas Schwab <schwab@suse.de>.
41557
41558 2006-12-12  Bruno Haible  <bruno@clisp.org>
41559
41560         Merge these changes.
41561         2006-09-05  Bruno Haible  <bruno@clisp.org>
41562         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41563         iconv_alloc succeeded.
41564         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41565         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41566         test for " && dest " at the end - dest is always != NULL there. Call
41567         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41568         with 2xNULL arguments, also to flush the state storage. Handle the
41569         IRIX iconv behaviour. Realloc the final result, to throw away unused
41570         memory.
41571
41572 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41573
41574         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41575         and fchmodat unconditionally, since glibc 2.4 has them.
41576         Problem reported by Arkadiusz Miskiewicz.
41577
41578 2006-12-10  Bruno Haible  <bruno@clisp.org>
41579
41580         * gnulib-tool (func_import): Show the include files only for those
41581         modules that are copied and specified.
41582         Reported by Karl Berry.
41583
41584 2006-12-08  Jim Meyering  <jim@meyering.net>
41585
41586         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41587         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41588
41589         * build-aux/announce-gen: Add two new options, both optional:
41590         --bootstrap-tools=TOOL_LIST
41591               a comma-separated list of tools, e.g.,
41592               autoconf,automake,bison,gnulib
41593         --gnulib-snapshot-date=DATE
41594               if gnulib is in the bootstrap tool list,
41595               then report this as the snapshot date.
41596               If not specified, use the current date/time.
41597               If you specify a date here, be sure it's UTC.
41598
41599 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41600
41601         * tests/test-argp-2.sh: Fix test to match actual output.
41602         (func_compare): Fix sed script to be portable.
41603
41604 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41605
41606         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41607         workaround for this case.  It is not autoconfigured now; offhand
41608         it's hard to see how to autoconfigure it.
41609
41610 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41611
41612         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41613         a directory that is about to be chowned.  Such a directory's
41614         initial file permissions should permit the owner only and this
41615         should not be changed until after the chown, since the group and
41616         other bits would be incorrect if they granted permission before
41617         the chown.
41618
41619         Fix porting problem for iswctype reported by Georg Schwarz in:
41620         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41621         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41622         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41623         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41624         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41625
41626 2006-12-03  Jim Meyering  <jim@meyering.net>
41627
41628         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41629         p->fts_statp may not yet be defined.
41630         (fts_read): Instead, set it in the caller, once p->fts_statp is
41631         sure to be defined, and corresponds to a top-level directory.
41632         This bug made du -x fail.  Here's the coreutils test case:
41633         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41634         Reported by Mike Frysinger.
41635
41636 2006-12-01  Jim Meyering  <jim@meyering.net>
41637
41638         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41639         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41640         Reported by Simon Josefsson.
41641
41642 2006-11-30  Jim Meyering  <jim@meyering.net>
41643
41644         * m4/warning.m4: Use the all-permissive copyright notice
41645         recommended by RMS (rather than LGPL).
41646         * m4/vararrays.m4: Likewise.
41647         * m4/flexmember.m4: Likewise.
41648
41649 2006-11-29  Bruno Haible  <bruno@clisp.org>
41650
41651         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41652         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41653         using +=.
41654         Reported by Simon Josefsson <simon@josefsson.org>.
41655
41656 2006-11-28  James Youngman <jay@gnu.org>
41657
41658         * README: Advise users that they might find the bug-gnulib@gnu.org
41659         and autotools-announce@gnu.org mailing lists useful.
41660
41661 2006-11-28  Bruno Haible  <bruno@clisp.org>
41662
41663         * m4/ptrdiff_max.m4: Remove file.
41664
41665 2006-11-21  Bruno Haible  <bruno@clisp.org>
41666
41667         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41668         _AC_COMPUTE_INT.
41669         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41670         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41671         _AC_COMPUTE_INT.
41672         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41673         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41674         _AC_COMPUTE_INT.
41675         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41676
41677 2006-11-28  Jim Meyering  <jim@meyering.net>
41678
41679         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41680         warning from "gcc -Wshadow" about shadowing the builtin.
41681
41682 2006-11-27  Bruno Haible  <bruno@clisp.org>
41683
41684         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41685         _AC_COMPUTE_INT.
41686         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41687
41688 2006-11-27  Bruno Haible  <bruno@clisp.org>
41689             Paul Eggert  <eggert@cs.ucla.edu>
41690
41691         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41692
41693 2006-11-26  Bruno Haible  <bruno@clisp.org>
41694
41695         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41696         noinst_LTLIBRARIES.
41697
41698 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41699             Bruno Haible  <bruno@clisp.org>
41700
41701         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41702         if compiling with "gcc -ansi".
41703
41704 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41705
41706         Fix some incompatibilities with gcc -ansi -pedantic.
41707         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41708         if compiling pedantically with GCC, unless it's C99 or later.
41709         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41710         it mishandles gcc -ansi -pedantic as well.
41711         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41712         if gcc -pedantic.
41713         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41714         initializers for struct if -pedantic, unless it's C99 or later.
41715
41716 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41717
41718         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41719         Don't close an fd more than once. Identical atimes indicate
41720         success, not failure.
41721
41722 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41723
41724         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41725
41726 2006-11-23  Jim Meyering  <jim@meyering.net>
41727
41728         * build-aux/announce-gen: New file.  From coreutils.
41729
41730 2006-11-22  Jim Meyering  <jim@meyering.net>
41731
41732         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41733         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41734         (fts_read): Use a temporary to narrow the overused st_size member
41735         before using it in a switch statement.  Reported by Matthew Woehlke.
41736
41737         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41738         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41739
41740 2006-11-20  Bruno Haible  <bruno@clisp.org>
41741
41742         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41743         changequote instead of pairs of brackets.
41744         Reported by Andreas Schwab <schwab@suse.de>.
41745
41746 2006-11-21  Jim Meyering  <jim@meyering.net>
41747
41748         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41749         so as to remain compatible with older compilers.
41750         Patch from Michael Deutschmann.
41751
41752 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41753
41754         * MODULES.html.sh (File system functions): Add openat.
41755
41756         * lib/openat.h (rpl_fstatat): New macro, if
41757         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41758         (fstatat): Define to rpl_fstatat under the same conditions,
41759         unless COMPILING_FSTATAT.
41760         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41761         seems to have the bug.
41762         * lib/fstatat.c: New file.
41763         * modules/openat (Files): Add it.
41764
41765 2006-11-20  Bruno Haible  <bruno@clisp.org>
41766
41767         * Makefile: New file.
41768
41769 2006-11-20  Jim Meyering  <jim@meyering.net>
41770
41771         The beginnings of syntax-related checks for gnulib.
41772         * lib/Makefile: New file.
41773         * lib/t-idcache: New script.  Ensure that the two halves of
41774         idcache.c stay in sync.
41775
41776         * lib/idcache.c: Adjust comments in user- and group- portions to
41777         be more accurate, and to be consistent with one another.
41778
41779 2006-11-20  Jim Meyering  <jim@meyering.net>
41780
41781         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41782         continue using the flexible array member (thus, this module performs
41783         half as many malloc calls), with the addition that...
41784         (getgroup, getuser): Consistently record a non-match via an empty
41785         "name" string, and map an empty string match to a NULL return value.
41786         * modules/idcache (Depends-on): Re-add flexmember.
41787
41788         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41789         (getuidbyname, getgroup, getgidbyname): Likewise.
41790
41791         Use cleaner syntax: NULL rather than 0.
41792         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41793
41794 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41795
41796         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41797         It mishandled the case where the group was missing.
41798         Problem reported by Greg Schafer.
41799         * modules/idcache: Likewise.
41800
41801 2006-11-18  Jim Meyering  <jim@meyering.net>
41802
41803         * check-module (%exempt_header): Add exception for some
41804         conditionally-included headers.
41805
41806         * modules/i-ring (Depends-on): Add verify.
41807         (License): Change to LGPL.
41808
41809 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41810
41811         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41812         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41813         and inttostr.h.  Use snprintf rather than uinttostr, so that
41814         LGPLed code doesn't depend on GPLed.
41815
41816 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41817
41818         * modules/inline (License): Change from GPL to LGPL.
41819
41820 2006-11-17  Jim Meyering  <jim@meyering.net>
41821
41822         * modules/d-type (License): Switch to LGPL.
41823
41824 2006-11-15  Bruno Haible  <bruno@clisp.org>
41825
41826         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41827
41828 2006-11-15  Eric Blake  <ebb9@byu.net>
41829
41830         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41831         the module dependency.
41832
41833 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41834             Bruno Haible  <bruno@clisp.org>
41835
41836         * gnulib-tool (func_create_testdir): Add license consistency check.
41837
41838 2006-11-15  Eric Blake  <ebb9@byu.net>
41839
41840         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41841         random "(cached)" in configure output.
41842
41843 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41844
41845         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41846         test for conforming inttypes.h is both announced and cached.
41847
41848         * MODULES.html.sh (seen_modules, seen_files): New variables.
41849         (func_module): Rewrite to use a few less gnulib-tool and sed
41850         invocations.  Avoid a couple of quadratic algorithms for ...
41851         (missed_modules, missed_files): ... these, with ...
41852         (func_append, func_tmpdir): ... these new functions, from
41853         gnulib-tool.  Analogously, install traps for cleanup.
41854
41855         * tests/test-gc.c (main): Remove unused variables.
41856         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41857
41858 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41859
41860         * modules/inttostr (License): Change to LGPL.
41861
41862 2006-11-14  Eric Blake  <ebb9@byu.net>
41863
41864         * modules/tempname (License): Change to LGPL.
41865
41866 2006-11-14  Eric Blake  <ebb9@byu.net>
41867
41868         * doc/functions.texi (Function Portability): *printf functions on
41869         Cygwin now understand all POSIX size specifiers.
41870
41871 2006-11-14  Bruno Haible  <bruno@clisp.org>
41872
41873         * modules/c-ctype (License): Change to LGPL.
41874
41875 2006-11-12  Bruno Haible  <bruno@clisp.org>
41876
41877         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41878         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41879         for GNOME libraries, for which the include files are installed in
41880         subdirectories of $prefix/include.
41881
41882 2006-11-12  Bruno Haible  <bruno@clisp.org>
41883
41884         * m4/lib-link.m4: Require at least autoconf-2.54.
41885         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41886         name to underscores for the --with option.
41887
41888 2006-11-13  Bruno Haible  <bruno@clisp.org>
41889
41890         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41891         the tests directory.
41892         Reported by Ralf Wildenhues.
41893
41894 2006-11-13  Bruno Haible  <bruno@clisp.org>
41895
41896         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41897         (func_emit_initmacro_end): Undo the override here.
41898         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41899         Works around the famous automake error in coreutils.
41900
41901 2006-11-13  Eric Blake  <ebb9@byu.net>
41902
41903         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41904         element, not its node.
41905
41906 2006-11-12  Bruno Haible  <bruno@clisp.org>
41907
41908         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41909         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41910
41911 2006-11-12  Bruno Haible  <bruno@clisp.org>
41912
41913         * gnulib-tool: New option --local-symlink.
41914         (func_usage): Document it.
41915         (lsymbolic): New variable.
41916         (func_import, func_create_testdir): If --symlink was not specified,
41917         test whether --local-symlink was specified and the file comes from
41918         the local_gnulib_dir.
41919
41920 2006-11-12  Bruno Haible  <bruno@clisp.org>
41921
41922         * gnulib-tool (func_ln): New function.
41923         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41924
41925 2006-11-12  Bruno Haible  <bruno@clisp.org>
41926
41927         Finish support for source files in subdirectories.
41928         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41929         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41930         AUTOMAKE_OPTIONS.
41931         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41932
41933 2006-11-12  Bruno Haible  <bruno@clisp.org>
41934
41935         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41936         EXTRA_lib_SOURCES augmentation.
41937         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41938
41939 2006-11-12  Jim Meyering  <jim@meyering.net>
41940
41941         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41942         file descriptors.  This also averts a failure on systems with
41943         native openat support when a traversed directory lacks "x" access.
41944         * lib/fts_.h: Include "i-ring.h"
41945         (struct FTS) [fts_fd_ring]: New member.
41946         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41947         (FCHDIR): Add parentheses.
41948         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41949         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41950         When descending, rather than simply closing the previous
41951         fts_cwd_fd value, push that file descriptor onto the ring.
41952         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41953         (fts_open): Initialize the new fd_ring member.
41954         (fts_close): Clear the ring.
41955         (fts_safe_changedir): When possible, use our new fd_ring to skip
41956         the diropen and fstat and dev/ino comparison that would normally
41957         accompany a virtual `chdir ("..")'.
41958
41959         * modules/fts (Depends-on): Add i-ring.
41960         * modules/i-ring: New module.
41961         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41962         * m4/i-ring.m4: New file.
41963
41964 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41965
41966         * gnulib-tool (func_create_testdir): Fix replacement of
41967         `build-aux' in configure.ac.  Run autotools in gltests
41968         subdirectory.
41969         (func_create_testdir, func_create_megatestdir, test): There is
41970         no need for '--force' in most autotool invocations in a new
41971         tree.  Actually fail the whole test if any of the tools, or the
41972         configure or make stages fail.
41973
41974         Sync from Automake.
41975         * build-aux/gnupload: Revert last change.  Add pointer to upload
41976         instructions of the GNU Maintenance Instructions.
41977         Suggestion by Karl Berry.
41978
41979 2006-11-10  Jim Meyering  <jim@meyering.net>
41980
41981         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41982
41983 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41984
41985         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41986         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41987         (bind_textdomain_codeset) [! ENABLE_NLS]:
41988         Evaluate all the arguments.  That way, callers get compatible behavior
41989         if the arguments have side effects.  Also, it avoids some GCC
41990         diagnostics in some cases; Joel E. Denny reported problems when Bison
41991         was configured with --enable-gcc-warnigs.
41992
41993 2006-11-10  Jim Meyering  <jim@meyering.net>
41994
41995         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41996         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41997         account.
41998
41999 2006-11-10  Jim Meyering  <jim@meyering.net>
42000
42001         * modules/inline: New file/module.
42002         * modules/xalloc (Files): Remove m4/inline.m4.
42003         (Depends-on): Add inline, instead.
42004         * modules/oset: Likewise.
42005         * modules/list: Likewise.
42006
42007 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42008
42009         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
42010         Problem reported by Matthew Woehlke.
42011
42012 2006-11-09  Bruno Haible  <bruno@clisp.org>
42013
42014         * lib/tempname.c (gen_tempname): Remove variant that invokes
42015         __gen_tempname.
42016         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
42017         __gen_tempname.
42018
42019 2006-11-08  Bruno Haible  <bruno@clisp.org>
42020
42021         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
42022         to 'yes' instead of 'cross-compiling'.
42023
42024 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
42025
42026         * lib/quotearg.h (quotearg_free): New decl.
42027         * lib/quotearg.c (quotearg_free): New function.
42028         (slot0, nslots, slotvec0, slotvec):
42029         Now file-scope so that quotearg_free can get at them.
42030
42031 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42032
42033         Sync from Automake.
42034         * build-aux/gnupload: Add missing 'gnu' to example URL.
42035         Report by Karl Berry.
42036
42037 2006-11-08  Bruno Haible  <bruno@clisp.org>
42038
42039         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
42040         Suggested by Paul Eggert.
42041
42042 2006-11-08  Jim Meyering  <jim@meyering.net>
42043
42044         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
42045         It's already included if !_LIBC.
42046         (fts_safe_changedir): Add a comment.
42047
42048 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42049
42050         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
42051         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
42052         Matthew Woehlke.
42053
42054         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
42055         definitions up, to avoid colliding with change below.
42056         (static_inline) [HAVE_INLINE]: New macro.
42057         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
42058         Provide extern decls when !HAVE_INLINE.  Do not define unless
42059         static_inline is defined, either by us or by xmalloc.c.  Use
42060         static_inline rather than static inline.
42061         (XCALLOC): Optimize sizeof(T) = 1 case.
42062         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
42063
42064 2006-11-07  Bruno Haible  <bruno@clisp.org>
42065
42066         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
42067         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
42068         AC_C_INLINE.
42069         * modules/xalloc (Files): Add m4/inline.m4.
42070
42071 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42072
42073         * README: Fix typo.
42074         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
42075         (Miscellanous Notes): ...from this.
42076
42077 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42078
42079         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
42080         Mention that offsetof should be used instead of sizeof.
42081         From Bruno Haible.
42082
42083 2006-11-07  Bruno Haible  <bruno@clisp.org>
42084
42085         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
42086
42087 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42088
42089         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42090         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
42091         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
42092         (gl_tree_add_before, gl_tree_add_after):
42093         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
42094         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
42095         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
42096         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
42097         (gl_linked_add_after, gl_linked_add_at): Likewise.
42098         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
42099         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
42100         (gl_tree_add_before, gl_tree_add_after): Likewise.
42101         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
42102         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
42103         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42104
42105 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42106
42107         * lib/gl_oset.h: Use C comment style, not C++ comment style.
42108
42109 2006-11-06  Bruno Haible  <bruno@clisp.org>
42110
42111         * m4/inline.m4: New file.
42112         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
42113         * modules/list (Files): Add m4/inline.m4.
42114         * modules/oset (Files): Likewise.
42115
42116 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42117
42118         * lib/idcache.c: Include <stddef.h>, for offsetof.
42119         (struct userid.name): Change from char * to a flexible array member.
42120         All uses changed.
42121         * modules/idcache (Depends-on): Add flexmember.
42122
42123         * MODULES.html.sh (Core language properties): New module flexmember.
42124         * modules/flexmember, m4/flexmember.m4: New files.
42125
42126         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
42127         inline functions that are identical with the old xnmalloc_inline,
42128         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
42129         that we can avoid some unnecessary integer multiplications and
42130         divisions in the common case where the element size is known at
42131         compile time.
42132         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
42133         needed.
42134         (xnboundedmalloc): Remove.
42135         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
42136         arguments, for consistency with rest of this header.
42137         (xcharalloc): Rewrite using XNMALLOC.
42138         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
42139         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
42140         versions have been moved to lib/xalloc.h and renamed to be the
42141         non-*_inline versions.
42142         (xmalloc, xrealloc): Implement without reference to the xnmalloc
42143         and xnrealloc functions, since those functions are now inline and
42144         now call us.
42145         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
42146         renaming described above.
42147         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
42148         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
42149         captures the dependency in AC_C_INLINE.
42150
42151         New module canonicalize-lgpl, proposed by Charles Wilson in
42152         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
42153         with a few small changes afterwards.
42154         * MODULES.html.sh (File system functions): New module
42155         canonicalize-lgpl.
42156         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
42157         and canonicalize_file_name.
42158         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
42159         * modules/canonicalize-lgpl: New files.
42160
42161 2006-11-05  Bruno Haible  <bruno@clisp.org>
42162
42163         * gnulib-tool (func_import, func_create_testdir): Create directories
42164         also for files in subdirectories of lib/.
42165
42166 2006-11-05  Bruno Haible  <bruno@clisp.org>
42167
42168         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
42169         ANSI C compliant.
42170
42171 2006-11-03  Bruno Haible  <bruno@clisp.org>
42172
42173         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
42175         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
42176         (xnboundedmalloc): New inline function.
42177         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
42178         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
42179         xmalloc.
42180         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
42181         xmalloc.
42182         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
42183         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
42184         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
42185         xmalloc.
42186         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42187         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
42188         xmalloc.
42189         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
42190         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42191         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
42192         xmalloc.
42193         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42194         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
42195         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42196         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
42197         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
42198         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
42199         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
42200
42201 2006-11-03  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/c-ctype.h [C++]: Define functions without name mangling.
42204         * lib/fwriteerror.h [C++]: Likewise.
42205         * lib/gcd.h [C++]: Likewise.
42206         * lib/linebreak.h [C++]: Likewise.
42207
42208 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42209
42210         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
42211         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
42212         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
42213         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42214         Check for functions and headers just once.
42215         Check for declaration of canonicalize_file_name.
42216         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
42217
42218 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42219
42220         * gnulib-tool (func_import): Fix typo in actioncmd.
42221
42222 2006-11-02  Bruno Haible  <bruno@clisp.org>
42223
42224         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
42225         newline sequence in the Makefile.am snippet as a space, like "make"
42226         does.
42227         Reported by Roger Persson <perrog@gmail.com>.
42228
42229 2006-11-01  Bruno Haible  <bruno@clisp.org>
42230
42231         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
42232         already declared in <string.h>.
42233         * lib/strcase.h (strncasecmp): Don't declare it if yes.
42234
42235 2006-11-01  Bruno Haible  <bruno@clisp.org>
42236
42237         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
42238         * lib/strcase.h: Include <string.h>.
42239         (strcasecmp): Define to rpl_strcasecmp here.
42240
42241 2006-11-01  Bruno Haible  <bruno@clisp.org>
42242
42243         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
42244
42245 2006-11-01  Eric Blake  <ebb9@byu.net>
42246
42247         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
42248
42249         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
42250
42251 2006-10-29  Bruno Haible  <bruno@clisp.org>
42252
42253         Make it compile in C++ mode.
42254         * lib/full-write.c (full_rw): Add a cast.
42255
42256 2006-11-01  Bruno Haible  <bruno@clisp.org>
42257
42258         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
42259         be POSIX compliant.
42260         Reported by Roger Persson <perrog@gmail.com>.
42261
42262 2006-11-01  Eric Blake  <ebb9@byu.net>
42263
42264         * lib/getopt_.h: Fix comments.
42265
42266 2006-10-31  Eric Blake  <ebb9@byu.net>
42267
42268         * modules/tmpdir (Depends-on): Add sys_stat.
42269         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
42270         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
42271         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
42272         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
42273         tempname.
42274
42275 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42276
42277         Avoid some C++ diagnostics reported by Bruno Haible.
42278         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
42279         xmalloc.
42280         (quotearg_alloc): Use xcharalloc rather than xmalloc.
42281         (struct slotvec): Move to top level.
42282         (quotearg_n_options): Rewrite to avoid xmalloc.
42283         * lib/xalloc.h (xcharalloc): New function.
42284         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
42285         [defined __cplusplus]: Add function template that provides result
42286         type propagation.  This part of the change is from Bruno Haible.
42287
42288 2006-10-29  Bruno Haible  <bruno@clisp.org>
42289
42290         Make it compile in C++ mode.
42291         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
42292         * lib/strnlen1.c (strnlen1): Cast memchr result.
42293         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
42294         * lib/clean-temp.c (string_equals, string_hash): Add casts.
42295         (create_temp_dir): Rename local variable 'template'.
42296         (compile_csharp_using_sscli): Add cast.
42297         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
42298         * lib/findprog.c (find_in_path): Likewise.
42299         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
42300         * lib/wait-process.c (register_slave_subprocess): Likewise.
42301
42302 2006-10-22  Bruno Haible  <bruno@clisp.org>
42303
42304         * modules/tsearch: New file.
42305         * lib/tsearch.h: New file.
42306         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
42307         * m4/tsearch.m4: New file.
42308         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
42309
42310 2006-10-29  Eric Blake  <ebb9@byu.net>
42311
42312         * lib/arcfour.c: Assume config.h.
42313         * lib/arctwo.c: Likewise.
42314         * lib/base64.c: Likewise.
42315         * lib/check-version.c: Likewise.
42316         * lib/crc.c: Likewise.
42317         * lib/des.c: Likewise.
42318         * lib/gc-gnulib.c: Likewise.
42319         * lib/gc-libgcrypt.c: Likewise.
42320         * lib/gc-pbkdf2-sha1.c: Likewise.
42321         * lib/getaddrinfo.c: Likewise.
42322         * lib/getdelim.c: Likewise.
42323         * lib/getline.c: Likewise.
42324         * lib/hmac-md5.c: Likewise.
42325         * lib/hmac-sha1.c: Likewise.
42326         * lib/iconvme.c: Likewise.
42327         * lib/md2.c: Likewise.
42328         * lib/md4.c: Likewise.
42329         * lib/memxor.c: Likewise.
42330         * lib/read-file.c: Likewise.
42331         * lib/readline.c: Likewise.
42332         * lib/rijndael-alg-fst.c: Likewise.
42333         * lib/rijndael-api-fst.c: Likewise.
42334         * lib/xgetdomainname.c: Likewise.
42335
42336 2006-10-28  Eric Blake  <ebb9@byu.net>
42337
42338         * lib/xstrndup.c: Assume config.h.
42339
42340 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42341
42342         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42343         stat-macros.h is now for our own macros, whereas stat_h is for
42344         macros in the <sys/stat.h> name space.
42345         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42346         (STAT_MACROS_H): Remove.
42347         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42348         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42349         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42350         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42351         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42352         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42353         Move these macros to ...
42354         * lib/stat_.h: here.  Don't include stat-macros.h.
42355         * lib/canonicalize.c: Don't include stat-macros.h.
42356         * lib/chown.c: Likewise.
42357         * lib/euidaccess.c: Likewise.
42358         * lib/file-type.c: Likewise.
42359         * lib/filemode.c: Likewise.
42360         * lib/glob.c: Likewise.
42361         * lib/isapipe.c: Likewise.
42362         * lib/lchown.c: Likewise.
42363         * lib/lstat.c: Likewise.
42364         * lib/mkdir-p.c: Likewise.
42365         * lib/rmdir.c: Likewise.
42366         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42367         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42368         unless mkdir isn't declared, to speed up 'configure'.
42369         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42370         would define all the S_* symbols.
42371         * modules/canonicalize (Depends-on):
42372         Depend on sys_stat, not stat-macros.
42373         * modules/chown: Likewise.
42374         * modules/euidaccess: Likewise.
42375         * modules/filemode: Likewise.
42376         * modules/file-type: Likewise.
42377         * modules/glob: Likewise.
42378         * modules/isapipe: Likewise.
42379         * modules/lchown: Likewise.
42380         * modules/lstat: Likewise.
42381         * modules/mkancesdirs: Likewise.
42382         * modules/rmdir: Likewise.
42383         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42384         * modules/modechange: Likewise.
42385         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42386         (configure.ac): Remove gl_STAT_MACROS.
42387         * modules/sys_stat (Depends-on): Remove stat-macros.
42388
42389 2006-10-27  Bruno Haible  <bruno@clisp.org>
42390
42391         * m4/signed.m4: Remove file.
42392         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42393         invocation.
42394         * modules/vasnprintf (Files): Remove m4/signed.m4.
42395
42396 2006-10-27  Bruno Haible  <bruno@clisp.org>
42397
42398         Update to GNU gettext 0.16.
42399         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42400         m4/inttypes-h.m4, m4/signed.m4.
42401         * m4/gettext.m4: Update to GNU gettext 0.16.
42402         * m4/intl.m4: New file, from GNU gettext.
42403         * m4/intldir.m4: New file, from GNU gettext.
42404         * config/srclist.txt: Update
42405
42406 2006-10-27  Eric Blake  <ebb9@byu.net>
42407
42408         * MODULES.html.sh: Document tempname.
42409         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42410         dependencies.
42411         (Files): Move lib/tempname.c...
42412         * modules/tempname: ...to this new module.
42413         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42414         (gl_PREREQ_TEMPNAME): Move...
42415         * m4/tempname.m4: ...to this new file.
42416         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42417         * modules/sys_stat (Depends-on): Add stat-macros.
42418         * lib/stat_.h (includes): Pick up stat macros.
42419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42420         if stat macros are broken.
42421         * lib/tempname.c (includes): No need to include "stat-macros.h".
42422         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42423         (direxists, __path_search) [!_LIBC]: Don't compile these in
42424         gnulib; the tmpdir module covers that.
42425         * lib/tempname.h: New file.
42426
42427 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42428
42429         * COPYING: Explain how gnulib-tool converts licence headers.
42430         Almost all wording by Eric Blake.
42431
42432 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42433
42434         * lib/mbchar.h (is_basic_table): Make read-only.
42435         * lib/mbchar.c (is_basic_table): Likewise.
42436         Reported by John Darrington.
42437
42438 2006-10-25  Bruno Haible  <bruno@clisp.org>
42439
42440         * lib/progname.h (set_program_name): Undefine before defining.
42441
42442 2006-10-25  Bruno Haible  <bruno@clisp.org>
42443
42444         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42445         false for non-gcc C++ compilers.
42446         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42447
42448 2006-10-24  Bruno Haible  <bruno@clisp.org>
42449
42450         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42451         iconv implementations like Irix iconv.
42452
42453 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42454
42455         * modules/vararrays: New file.
42456         * m4/vararrays.m4: New file, taken from diffutils.
42457         * MODULES.html.sh: New module vararrays.
42458
42459 2006-10-24  Karl Berry  <karl@gnu.org>
42460
42461         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42462         Don't call GNU Unix.
42463
42464 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42465
42466         * users.txt: Add Libtool.
42467
42468         Sync from Libtool:
42469
42470         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42471
42472         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42473         to gnulib's policy of including config.h unconditionally.
42474
42475 2006-10-24  Bruno Haible  <bruno@clisp.org>
42476
42477         * modules/wcwidth (Files): Add m4/wint_t.m4.
42478         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42479         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42480
42481 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42482
42483         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42484         to pacify GCC with some -W flags enabled.  Problem reported by
42485         Bruno Haible.
42486
42487 2006-10-24  Jim Meyering  <jim@meyering.net>
42488
42489         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42490         Reported by Karl Berry.
42491
42492 2006-10-23  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42495
42496 2006-10-24  Bruno Haible  <bruno@clisp.org>
42497
42498         * lib/gl_list.h: Use C comment style, not C++ comment style.
42499
42500 2006-10-23  Eric Blake  <ebb9@byu.net>
42501
42502         * lib/getaddrinfo.c (includes): Add missing include.
42503
42504 2006-10-23  Bruno Haible  <bruno@clisp.org>
42505             Paul Eggert  <eggert@cs.ucla.edu>
42506
42507         Ability to rename obstack_free.
42508         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42509         obstack_free.
42510         (obstack_free): Invoke the __obstack_free macro.
42511         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42512
42513 2006-10-23  Bruno Haible  <bruno@clisp.org>
42514             Paul Eggert  <eggert@cs.ucla.edu>
42515
42516         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42517         __argc, __argv from the declaration. (They are defined as macros on
42518         mingw.)
42519
42520 2006-10-22  Bruno Haible  <bruno@clisp.org>
42521
42522         * doc/gnulib-intro.texi: New file.
42523         * doc/gnulib.texi: Include it.
42524
42525 2006-10-21  Bruno Haible  <bruno@clisp.org>
42526
42527         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42528         "Introduction", "Miscellanous Notes", "Particular Modules".
42529
42530 2006-10-21  Bruno Haible  <bruno@clisp.org>
42531
42532         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42533         Change mostlyclean-local rule to avoid sh syntax error from bash
42534         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42535
42536 2006-10-23  Jim Meyering  <jim@meyering.net>
42537
42538         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42539         in place of snprintf.
42540
42541         * modules/inttostr (Files): Add lib/uinttostr.c.
42542         * lib/uinttostr.c (inttostr): New file/function.
42543         * lib/inttostr.h (uinttostr): Declare.
42544         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42545         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42546         Add uinttostr.
42547         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42548
42549 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42550
42551         * lib/canonicalize.c (ELOOP): Define if not already defined.
42552         Problem reported by Bruno Haible in
42553         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42554
42555 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42556
42557         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42558         Problem reported by Perry Smith and Ville Laurikari.
42559
42560         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42561         uses.
42562
42563 2006-10-19  Bruno Haible  <bruno@clisp.org>
42564
42565         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42566         for mingw.
42567
42568 2006-10-19  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42571         Needed for mingw.
42572
42573 2006-10-19  Bruno Haible  <bruno@clisp.org>
42574
42575         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42576
42577 2006-10-19  Bruno Haible  <bruno@clisp.org>
42578
42579         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42580         it.
42581
42582 2006-10-19  Bruno Haible  <bruno@clisp.org>
42583
42584         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42585         invocation.
42586
42587 2006-10-19  Bruno Haible  <bruno@clisp.org>
42588
42589         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42590         mountlist by default.
42591
42592 2006-10-16  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/c-strstr.c: Include c-strstr.h.
42595
42596 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42597
42598         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42599         in a slash.
42600
42601 2006-10-18  Bruno Haible  <bruno@clisp.org>
42602
42603         * lib/lock.h [C++]: Wrap definitions in extern "C".
42604
42605 2006-10-18  Bruno Haible  <bruno@clisp.org>
42606
42607         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42608         gl_LIBOBJS list.
42609
42610 2006-10-18  Bruno Haible  <bruno@clisp.org>
42611
42612         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42613
42614 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42615
42616         * lib/xstrtol.h: Include gettext.h.
42617         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42618         Problem reported by Eric Blake.
42619         * modules/xstrtol (Depends-on): Add gettext-h.
42620
42621 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42622
42623         * lib/strftime.c (advance): New macro.
42624         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42625         incomplete type, so you can't add 0 to it.  Problem and patch
42626         reported by Eelco Dolstra for dietlibc.
42627
42628 2006-10-18  Jim Meyering  <jim@meyering.net>
42629
42630         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42631         type for a local, and rename it: s/up/user_proc/.
42632
42633 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42634
42635         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42636         READ_UTMP_USER_PROCESS.
42637         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42638
42639 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42640
42641         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42642         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42643
42644 2006-10-17  Eric Blake  <ebb9@byu.net>
42645
42646         * lib/sigprocmask.c (sigprocmask): Fix typo.
42647
42648         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42649
42650         * modules/clean-temp (Makefile.am): Don't add to make output...
42651         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42652         config.h.
42653
42654 2006-10-17  Bruno Haible  <bruno@clisp.org>
42655
42656         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42657         differently if DEFAULT_TEXT_DOMAIN is set.
42658
42659 2006-10-16  Bruno Haible  <bruno@clisp.org>
42660
42661         * lib/clean-temp.c: Include fwriteerror.h.
42662
42663 2006-10-16  Bruno Haible  <bruno@clisp.org>
42664
42665         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42666
42667 2006-10-16  Bruno Haible  <bruno@clisp.org>
42668
42669         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42670         * lib/sigprocmask.h: Include <sys/types.h>.
42671         (sigset_t): Use the system's definition if present.
42672
42673 2006-10-17  Eric Blake  <ebb9@byu.net>
42674
42675         * lib/xvasprintf.c (includes): Assume config.h.
42676         * lib/xasprintf.c (includes): Likewise.
42677
42678 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42679
42680         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42681         at least as wide as intmax_t.
42682
42683 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42684
42685         (Imported from Automake.)
42686         * build-aux/gnupload: Update to version 1.1 of directive file.
42687
42688 2006-10-16  Eric Blake  <ebb9@byu.net>
42689
42690         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42691         match Automake 1.10a.
42692
42693 2006-10-14  Bruno Haible  <bruno@clisp.org>
42694
42695         * modules/sigprocmask: New file.
42696         * lib/sigprocmask.h: New file.
42697         * lib/sigprocmask.c: New file.
42698         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42699         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42700         request sigprocmask.o.
42701         (gl_PREREQ_SIGPROCMASK): New macro.
42702         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42703         (Depends-on): Add sigprocmask.
42704         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42705         gt_SIGNALBLOCKING. Test for 'raise' only once.
42706         * lib/fatal-signal.c: Include sigprocmask.h.
42707         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42708         unblock_fatal_signals): Define always.
42709         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42710         sigprocmask.
42711
42712 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42713
42714         Sync from Automake.
42715         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42716         which incorrectly sets the mode of an existing destination
42717         directory.  In some cases the unpatched install-sh could do the
42718         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42719         system.  We hope this is rare in practice, but it's clearly worth
42720         fixing.  Problem reported by Alex Unleashed in
42721         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42722         Also, don't bother to check for -m bugs unless we're using -m;
42723         suggested by Stepan Kasal.
42724
42725 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42726
42727         Sync from Automake.
42728         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42729         `-c' flag, so they appear at the same position as in %FASTDEP%
42730         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42731         which ignores unknown options only after the first non-option.
42732         Bug report against M4 by Nelson H. F. Beebe.
42733
42734 2006-10-13  Jim Meyering  <jim@meyering.net>
42735
42736         Fix a bug in yesterday's change.
42737         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42738         p->fts_statp->st_dev would be used uninitialized.
42739         Ensures that we always call fts_stat on the very first entry.
42740         Miklos Szeredi reported that find -xdev stopped working.
42741
42742 2006-10-12  Bruno Haible  <bruno@clisp.org>
42743
42744         * gnulib-tool (func_get_automake_snippet): Append an automatically
42745         computed EXTRA_DIST augmentation.
42746         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42747         * modules/alloca-opt (Makefile.am): Likewise.
42748         * modules/allocsa (Makefile.am): Likewise.
42749         * modules/arcfour (Makefile.am): Likewise.
42750         * modules/arctwo (Makefile.am): Likewise.
42751         * modules/argmatch (Makefile.am): Likewise.
42752         * modules/argz (Makefile.am): Likewise.
42753         * modules/atexit (Makefile.am): Likewise.
42754         * modules/backupfile (Makefile.am): Likewise.
42755         * modules/byteswap (Makefile.am): Likewise.
42756         * modules/c-strtod (Makefile.am): Likewise.
42757         * modules/c-strtold (Makefile.am): Likewise.
42758         * modules/calloc (Makefile.am): Likewise.
42759         * modules/canon-host (Makefile.am): Likewise.
42760         * modules/canonicalize (Makefile.am): Likewise.
42761         * modules/chdir-long (Makefile.am): Likewise.
42762         * modules/chdir-safer (Makefile.am): Likewise.
42763         * modules/check-version (Makefile.am): Likewise.
42764         * modules/chown (Makefile.am): Likewise.
42765         * modules/cloexec (Makefile.am): Likewise.
42766         * modules/close-stream (Makefile.am): Likewise.
42767         * modules/closeout (Makefile.am): Likewise.
42768         * modules/crc (Makefile.am): Likewise.
42769         * modules/csharpexec (Makefile.am): Likewise.
42770         * modules/cycle-check (Makefile.am): Likewise.
42771         * modules/des (Makefile.am): Likewise.
42772         * modules/dev-ino (Makefile.am): Likewise.
42773         * modules/dirfd (Makefile.am): Likewise.
42774         * modules/dirname (Makefile.am): Likewise.
42775         * modules/dup2 (Makefile.am): Likewise.
42776         * modules/eealloc (Makefile.am): Likewise.
42777         * modules/error (Makefile.am): Likewise.
42778         * modules/euidaccess (Makefile.am): Likewise.
42779         * modules/exclude (Makefile.am): Likewise.
42780         * modules/exitfail (Makefile.am): Likewise.
42781         * modules/fcntl-safer (Makefile.am): Likewise.
42782         * modules/fcntl (Makefile.am): Likewise.
42783         * modules/file-type (Makefile.am): Likewise.
42784         * modules/fileblocks (Makefile.am): Likewise.
42785         * modules/filemode (Makefile.am): Likewise.
42786         * modules/filenamecat (Makefile.am): Likewise.
42787         * modules/fnmatch (Makefile.am): Likewise.
42788         * modules/fopen-safer (Makefile.am): Likewise.
42789         * modules/fpending (Makefile.am): Likewise.
42790         * modules/fprintftime (Makefile.am): Likewise.
42791         * modules/free (Makefile.am): Likewise.
42792         * modules/fsusage (Makefile.am): Likewise.
42793         * modules/ftruncate (Makefile.am): Likewise.
42794         * modules/fts (Makefile.am): Likewise.
42795         * modules/gc-arcfour (Makefile.am): Likewise.
42796         * modules/gc-des (Makefile.am): Likewise.
42797         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42798         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42799         * modules/gc-md4 (Makefile.am): Likewise.
42800         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42801         * modules/gc-sha1 (Makefile.am): Likewise.
42802         * modules/gc (Makefile.am): Likewise.
42803         * modules/getaddrinfo (Makefile.am): Likewise.
42804         * modules/getcwd (Makefile.am): Likewise.
42805         * modules/getdelim (Makefile.am): Likewise.
42806         * modules/getdomainname (Makefile.am): Likewise.
42807         * modules/getgroups (Makefile.am): Likewise.
42808         * modules/gethostname (Makefile.am): Likewise.
42809         * modules/gethrxtime (Makefile.am): Likewise.
42810         * modules/getline (Makefile.am): Likewise.
42811         * modules/getloadavg (Makefile.am): Likewise.
42812         * modules/getlogin_r (Makefile.am): Likewise.
42813         * modules/getndelim2 (Makefile.am): Likewise.
42814         * modules/getopt (Makefile.am): Likewise.
42815         * modules/getpagesize (Makefile.am): Likewise.
42816         * modules/getpass-gnu (Makefile.am): Likewise.
42817         * modules/getpass (Makefile.am): Likewise.
42818         * modules/getsubopt (Makefile.am): Likewise.
42819         * modules/gettime (Makefile.am): Likewise.
42820         * modules/gettimeofday (Makefile.am): Likewise.
42821         * modules/getugroups (Makefile.am): Likewise.
42822         * modules/getusershell (Makefile.am): Likewise.
42823         * modules/glob (Makefile.am): Likewise.
42824         * modules/group-member (Makefile.am): Likewise.
42825         * modules/hard-locale (Makefile.am): Likewise.
42826         * modules/hash (Makefile.am): Likewise.
42827         * modules/hmac-md5 (Makefile.am): Likewise.
42828         * modules/hmac-sha1 (Makefile.am): Likewise.
42829         * modules/human (Makefile.am): Likewise.
42830         * modules/idcache (Makefile.am): Likewise.
42831         * modules/imaxabs (Makefile.am): Likewise.
42832         * modules/imaxdiv (Makefile.am): Likewise.
42833         * modules/inet_ntop (Makefile.am): Likewise.
42834         * modules/inet_pton (Makefile.am): Likewise.
42835         * modules/intprops (Makefile.am): Likewise.
42836         * modules/inttostr (Makefile.am): Likewise.
42837         * modules/inttypes (Makefile.am): Likewise.
42838         * modules/isapipe (Makefile.am): Likewise.
42839         * modules/javaversion (Makefile.am): Likewise.
42840         * modules/lchmod (Makefile.am): Likewise.
42841         * modules/lchown (Makefile.am): Likewise.
42842         * modules/localcharset (Makefile.am): Likewise.
42843         * modules/long-options (Makefile.am): Likewise.
42844         * modules/lstat (Makefile.am): Likewise.
42845         * modules/malloc (Makefile.am): Likewise.
42846         * modules/mathl (Makefile.am): Likewise.
42847         * modules/mbchar (Makefile.am): Likewise.
42848         * modules/md2 (Makefile.am): Likewise.
42849         * modules/md4 (Makefile.am): Likewise.
42850         * modules/md5 (Makefile.am): Likewise.
42851         * modules/memcasecmp (Makefile.am): Likewise.
42852         * modules/memchr (Makefile.am): Likewise.
42853         * modules/memcmp (Makefile.am): Likewise.
42854         * modules/memcoll (Makefile.am): Likewise.
42855         * modules/memcpy (Makefile.am): Likewise.
42856         * modules/memmem (Makefile.am): Likewise.
42857         * modules/memmove (Makefile.am): Likewise.
42858         * modules/mempcpy (Makefile.am): Likewise.
42859         * modules/memrchr (Makefile.am): Likewise.
42860         * modules/memset (Makefile.am): Likewise.
42861         * modules/memxor (Makefile.am): Likewise.
42862         * modules/mkancesdirs (Makefile.am): Likewise.
42863         * modules/mkdir-p (Makefile.am): Likewise.
42864         * modules/mkdir (Makefile.am): Likewise.
42865         * modules/mkdtemp (Makefile.am): Likewise.
42866         * modules/mkstemp (Makefile.am): Likewise.
42867         * modules/mktime (Makefile.am): Likewise.
42868         * modules/modechange (Makefile.am): Likewise.
42869         * modules/mountlist (Makefile.am): Likewise.
42870         * modules/nanosleep (Makefile.am): Likewise.
42871         * modules/obstack (Makefile.am): Likewise.
42872         * modules/openat (Makefile.am): Likewise.
42873         * modules/pagealign_alloc (Makefile.am): Likewise.
42874         * modules/pathmax (Makefile.am): Likewise.
42875         * modules/physmem (Makefile.am): Likewise.
42876         * modules/poll (Makefile.am): Likewise.
42877         * modules/posixtm (Makefile.am): Likewise.
42878         * modules/posixver (Makefile.am): Likewise.
42879         * modules/putenv (Makefile.am): Likewise.
42880         * modules/quote (Makefile.am): Likewise.
42881         * modules/quotearg (Makefile.am): Likewise.
42882         * modules/raise (Makefile.am): Likewise.
42883         * modules/read-file (Makefile.am): Likewise.
42884         * modules/readline (Makefile.am): Likewise.
42885         * modules/readlink (Makefile.am): Likewise.
42886         * modules/readtokens (Makefile.am): Likewise.
42887         * modules/readutmp (Makefile.am): Likewise.
42888         * modules/realloc (Makefile.am): Likewise.
42889         * modules/regex (Makefile.am): Likewise.
42890         * modules/rename-dest-slash (Makefile.am): Likewise.
42891         * modules/rename (Makefile.am): Likewise.
42892         * modules/rijndael (Makefile.am): Likewise.
42893         * modules/rmdir (Makefile.am): Likewise.
42894         * modules/rpmatch (Makefile.am): Likewise.
42895         * modules/safe-read (Makefile.am): Likewise.
42896         * modules/safe-write (Makefile.am): Likewise.
42897         * modules/same-inode (Makefile.am): Likewise.
42898         * modules/same (Makefile.am): Likewise.
42899         * modules/save-cwd (Makefile.am): Likewise.
42900         * modules/savedir (Makefile.am): Likewise.
42901         * modules/setenv (Makefile.am): Likewise.
42902         * modules/settime (Makefile.am): Likewise.
42903         * modules/sha1 (Makefile.am): Likewise.
42904         * modules/sig2str (Makefile.am): Likewise.
42905         * modules/snprintf (Makefile.am): Likewise.
42906         * modules/stat-macros (Makefile.am): Likewise.
42907         * modules/stat-time (Makefile.am): Likewise.
42908         * modules/stdbool (Makefile.am): Likewise.
42909         * modules/stdint (Makefile.am): Likewise.
42910         * modules/stdlib-safer (Makefile.am): Likewise.
42911         * modules/stpcpy (Makefile.am): Likewise.
42912         * modules/stpncpy (Makefile.am): Likewise.
42913         * modules/strcase (Makefile.am): Likewise.
42914         * modules/strcasestr (Makefile.am): Likewise.
42915         * modules/strchrnul (Makefile.am): Likewise.
42916         * modules/strcspn (Makefile.am): Likewise.
42917         * modules/strdup (Makefile.am): Likewise.
42918         * modules/strerror (Makefile.am): Likewise.
42919         * modules/strftime (Makefile.am): Likewise.
42920         * modules/strndup (Makefile.am): Likewise.
42921         * modules/strnlen (Makefile.am): Likewise.
42922         * modules/strpbrk (Makefile.am): Likewise.
42923         * modules/strsep (Makefile.am): Likewise.
42924         * modules/strstr (Makefile.am): Likewise.
42925         * modules/strtod (Makefile.am): Likewise.
42926         * modules/strtoimax (Makefile.am): Likewise.
42927         * modules/strtok_r (Makefile.am): Likewise.
42928         * modules/strtol (Makefile.am): Likewise.
42929         * modules/strtoll (Makefile.am): Likewise.
42930         * modules/strtoul (Makefile.am): Likewise.
42931         * modules/strtoull (Makefile.am): Likewise.
42932         * modules/strtoumax (Makefile.am): Likewise.
42933         * modules/strverscmp (Makefile.am): Likewise.
42934         * modules/sys_socket (Makefile.am): Likewise.
42935         * modules/sys_stat (Makefile.am): Likewise.
42936         * modules/sysexits (Makefile.am): Likewise.
42937         * modules/time_r (Makefile.am): Likewise.
42938         * modules/timegm (Makefile.am): Likewise.
42939         * modules/timespec (Makefile.am): Likewise.
42940         * modules/tmpfile-safer (Makefile.am): Likewise.
42941         * modules/trim (Makefile.am): Likewise.
42942         * modules/unistd-safer (Makefile.am): Likewise.
42943         * modules/unlinkdir (Makefile.am): Likewise.
42944         * modules/unlocked-io (Makefile.am): Likewise.
42945         * modules/userspec (Makefile.am): Likewise.
42946         * modules/utime (Makefile.am): Likewise.
42947         * modules/utimecmp (Makefile.am): Likewise.
42948         * modules/utimens (Makefile.am): Likewise.
42949         * modules/vasnprintf (Makefile.am): Likewise.
42950         * modules/vasprintf (Makefile.am): Likewise.
42951         * modules/vsnprintf (Makefile.am): Likewise.
42952         * modules/xalloc (Makefile.am): Likewise.
42953         * modules/xgetcwd (Makefile.am): Likewise.
42954         * modules/xnanosleep (Makefile.am): Likewise.
42955         * modules/xreadlink (Makefile.am): Likewise.
42956         * modules/xstrtod (Makefile.am): Likewise.
42957         * modules/xstrtol (Makefile.am): Likewise.
42958         * modules/xstrtold (Makefile.am): Likewise.
42959         * modules/yesno (Makefile.am): Likewise.
42960         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42961
42962 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42963
42964         * modules/error (Makefile.am): Distribute files through
42965         EXTRA_DIST, not lib_SOURCES.
42966
42967 2006-10-12  Eric Blake  <ebb9@byu.net>
42968
42969         * modules/error (Makefile.am): Distribute files in /lib.
42970         * modules/obstack (Makefile.am): Likewise.
42971
42972 2006-10-12  Bruno Haible  <bruno@clisp.org>
42973
42974         * modules/acl (Makefile.am): Distribute all files in lib/ through
42975         EXTRA_DIST.
42976         * modules/arcfour (Makefile.am): Likewise.
42977         * modules/arctwo (Makefile.am): Likewise.
42978         * modules/argmatch (Makefile.am): Likewise.
42979         * modules/argz (Makefile.am): Likewise.
42980         * modules/atexit (Makefile.am): Likewise.
42981         * modules/backupfile (Makefile.am): Likewise.
42982         * modules/c-strtod (Makefile.am): Likewise.
42983         * modules/c-strtold (Makefile.am): Likewise.
42984         * modules/calloc (Makefile.am): Likewise.
42985         * modules/canon-host (Makefile.am): Likewise.
42986         * modules/canonicalize (Makefile.am): Likewise.
42987         * modules/chdir-long (Makefile.am): Likewise.
42988         * modules/chdir-safer (Makefile.am): Likewise.
42989         * modules/check-version (Makefile.am): Likewise.
42990         * modules/chown (Makefile.am): Likewise.
42991         * modules/cloexec (Makefile.am): Likewise.
42992         * modules/close-stream (Makefile.am): Likewise.
42993         * modules/closeout (Makefile.am): Likewise.
42994         * modules/crc (Makefile.am): Likewise.
42995         * modules/cycle-check (Makefile.am): Likewise.
42996         * modules/des (Makefile.am): Likewise.
42997         * modules/dirfd (Makefile.am): Likewise.
42998         * modules/dirname (Makefile.am): Likewise.
42999         * modules/dup2 (Makefile.am): Likewise.
43000         * modules/euidaccess (Makefile.am): Likewise.
43001         * modules/exclude (Makefile.am): Likewise.
43002         * modules/exitfail (Makefile.am): Likewise.
43003         * modules/fcntl-safer (Makefile.am): Likewise.
43004         * modules/file-type (Makefile.am): Likewise.
43005         * modules/fileblocks (Makefile.am): Likewise.
43006         * modules/filemode (Makefile.am): Likewise.
43007         * modules/filenamecat (Makefile.am): Likewise.
43008         * modules/fnmatch (Makefile.am): Likewise.
43009         * modules/fopen-safer (Makefile.am): Likewise.
43010         * modules/fpending (Makefile.am): Likewise.
43011         * modules/fprintftime (Makefile.am): Likewise.
43012         * modules/free (Makefile.am): Likewise.
43013         * modules/fsusage (Makefile.am): Likewise.
43014         * modules/ftruncate (Makefile.am): Likewise.
43015         * modules/fts (Makefile.am): Likewise.
43016         * modules/gc (Makefile.am): Likewise.
43017         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
43018         * modules/getaddrinfo (Makefile.am): Likewise.
43019         * modules/getcwd (Makefile.am): Likewise.
43020         * modules/getdelim (Makefile.am): Likewise.
43021         * modules/getdomainname (Makefile.am): Likewise.
43022         * modules/getgroups (Makefile.am): Likewise.
43023         * modules/gethostname (Makefile.am): Likewise.
43024         * modules/gethrxtime (Makefile.am): Likewise.
43025         * modules/getline (Makefile.am): Likewise.
43026         * modules/getloadavg (Makefile.am): Likewise.
43027         * modules/getlogin_r (Makefile.am): Likewise.
43028         * modules/getopt (Makefile.am): Likewise.
43029         * modules/getpass (Makefile.am): Likewise.
43030         * modules/getpass-gnu (Makefile.am): Likewise.
43031         * modules/getsubopt (Makefile.am): Likewise.
43032         * modules/gettime (Makefile.am): Likewise.
43033         * modules/gettimeofday (Makefile.am): Likewise.
43034         * modules/getugroups (Makefile.am): Likewise.
43035         * modules/getusershell (Makefile.am): Likewise.
43036         * modules/glob (Makefile.am): Likewise.
43037         * modules/group-member (Makefile.am): Likewise.
43038         * modules/hard-locale (Makefile.am): Likewise.
43039         * modules/hash (Makefile.am): Likewise.
43040         * modules/hmac-md5 (Makefile.am): Likewise.
43041         * modules/hmac-sha1 (Makefile.am): Likewise.
43042         * modules/human (Makefile.am): Likewise.
43043         * modules/idcache (Makefile.am): Likewise.
43044         * modules/imaxabs (Makefile.am): Likewise.
43045         * modules/imaxdiv (Makefile.am): Likewise.
43046         * modules/inet_ntop (Makefile.am): Likewise.
43047         * modules/inet_pton (Makefile.am): Likewise.
43048         * modules/inttostr (Makefile.am): Likewise.
43049         * modules/isapipe (Makefile.am): Likewise.
43050         * modules/lchown (Makefile.am): Likewise.
43051         * modules/long-options (Makefile.am): Likewise.
43052         * modules/lstat (Makefile.am): Likewise.
43053         * modules/malloc (Makefile.am): Likewise.
43054         * modules/mathl (Makefile.am): Likewise.
43055         * modules/mbchar (Makefile.am): Likewise.
43056         * modules/md2 (Makefile.am): Likewise.
43057         * modules/md4 (Makefile.am): Likewise.
43058         * modules/md5 (Makefile.am): Likewise.
43059         * modules/memcasecmp (Makefile.am): Likewise.
43060         * modules/memchr (Makefile.am): Likewise.
43061         * modules/memcmp (Makefile.am): Likewise.
43062         * modules/memcoll (Makefile.am): Likewise.
43063         * modules/memcpy (Makefile.am): Likewise.
43064         * modules/memmem (Makefile.am): Likewise.
43065         * modules/memmove (Makefile.am): Likewise.
43066         * modules/mempcpy (Makefile.am): Likewise.
43067         * modules/memrchr (Makefile.am): Likewise.
43068         * modules/memset (Makefile.am): Likewise.
43069         * modules/memxor (Makefile.am): Likewise.
43070         * modules/mkancesdirs (Makefile.am): Likewise.
43071         * modules/mkdir (Makefile.am): Likewise.
43072         * modules/mkdir-p (Makefile.am): Likewise.
43073         * modules/mkdtemp (Makefile.am): Likewise.
43074         * modules/mkstemp (Makefile.am): Likewise.
43075         * modules/mktime (Makefile.am): Likewise.
43076         * modules/modechange (Makefile.am): Likewise.
43077         * modules/mountlist (Makefile.am): Likewise.
43078         * modules/nanosleep (Makefile.am): Likewise.
43079         * modules/openat (Makefile.am): Likewise.
43080         * modules/pagealign_alloc (Makefile.am): Likewise.
43081         * modules/physmem (Makefile.am): Likewise.
43082         * modules/poll (Makefile.am): Likewise.
43083         * modules/posixtm (Makefile.am): Likewise.
43084         * modules/posixver (Makefile.am): Likewise.
43085         * modules/putenv (Makefile.am): Likewise.
43086         * modules/quote (Makefile.am): Likewise.
43087         * modules/quotearg (Makefile.am): Likewise.
43088         * modules/raise (Makefile.am): Likewise.
43089         * modules/read-file (Makefile.am): Likewise.
43090         * modules/readline (Makefile.am): Likewise.
43091         * modules/readlink (Makefile.am): Likewise.
43092         * modules/readtokens (Makefile.am): Likewise.
43093         * modules/readutmp (Makefile.am): Likewise.
43094         * modules/realloc (Makefile.am): Likewise.
43095         * modules/regex (Makefile.am): Likewise.
43096         * modules/rename (Makefile.am): Likewise.
43097         * modules/rename-dest-slash (Makefile.am): Likewise.
43098         * modules/rijndael (Makefile.am): Likewise.
43099         * modules/rmdir (Makefile.am): Likewise.
43100         * modules/rpmatch (Makefile.am): Likewise.
43101         * modules/safe-read (Makefile.am): Likewise.
43102         * modules/safe-write (Makefile.am): Likewise.
43103         * modules/same (Makefile.am): Likewise.
43104         * modules/save-cwd (Makefile.am): Likewise.
43105         * modules/savedir (Makefile.am): Likewise.
43106         * modules/setenv (Makefile.am): Likewise.
43107         * modules/settime (Makefile.am): Likewise.
43108         * modules/sha1 (Makefile.am): Likewise.
43109         * modules/sig2str (Makefile.am): Likewise.
43110         * modules/snprintf (Makefile.am): Likewise.
43111         * modules/stdlib-safer (Makefile.am): Likewise.
43112         * modules/stpcpy (Makefile.am): Likewise.
43113         * modules/stpncpy (Makefile.am): Likewise.
43114         * modules/strcase (Makefile.am): Likewise.
43115         * modules/strcasestr (Makefile.am): Likewise.
43116         * modules/strchrnul (Makefile.am): Likewise.
43117         * modules/strcspn (Makefile.am): Likewise.
43118         * modules/strdup (Makefile.am): Likewise.
43119         * modules/strerror (Makefile.am): Likewise.
43120         * modules/strftime (Makefile.am): Likewise.
43121         * modules/strndup (Makefile.am): Likewise.
43122         * modules/strnlen (Makefile.am): Likewise.
43123         * modules/strpbrk (Makefile.am): Likewise.
43124         * modules/strsep (Makefile.am): Likewise.
43125         * modules/strstr (Makefile.am): Likewise.
43126         * modules/strtod (Makefile.am): Likewise.
43127         * modules/strtoimax (Makefile.am): Likewise.
43128         * modules/strtok_r (Makefile.am): Likewise.
43129         * modules/strtol (Makefile.am): Likewise.
43130         * modules/strtoll (Makefile.am): Likewise.
43131         * modules/strtoul (Makefile.am): Likewise.
43132         * modules/strtoull (Makefile.am): Likewise.
43133         * modules/strtoumax (Makefile.am): Likewise.
43134         * modules/strverscmp (Makefile.am): Likewise.
43135         * modules/time_r (Makefile.am): Likewise.
43136         * modules/timegm (Makefile.am): Likewise.
43137         * modules/tmpfile-safer (Makefile.am): Likewise.
43138         * modules/unistd-safer (Makefile.am): Likewise.
43139         * modules/unlinkdir (Makefile.am): Likewise.
43140         * modules/userspec (Makefile.am): Likewise.
43141         * modules/utime (Makefile.am): Likewise.
43142         * modules/utimecmp (Makefile.am): Likewise.
43143         * modules/utimens (Makefile.am): Likewise.
43144         * modules/vasnprintf (Makefile.am): Likewise.
43145         * modules/vasprintf (Makefile.am): Likewise.
43146         * modules/vsnprintf (Makefile.am): Likewise.
43147         * modules/xalloc (Makefile.am): Likewise.
43148         * modules/xgetcwd (Makefile.am): Likewise.
43149         * modules/xnanosleep (Makefile.am): Likewise.
43150         * modules/xreadlink (Makefile.am): Likewise.
43151         * modules/xstrtod (Makefile.am): Likewise.
43152         * modules/xstrtol (Makefile.am): Likewise.
43153         * modules/xstrtold (Makefile.am): Likewise.
43154         * modules/yesno (Makefile.am): Likewise.
43155
43156 2006-10-12  Jim Meyering  <jim@meyering.net>
43157
43158         * m4/getloadavg.m4: Revert the change below.
43159
43160         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
43161         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
43162         fail with a symlink, which is what coreutils' ./bootstrap now
43163         creates by default.
43164
43165 2006-10-12  Bruno Haible  <bruno@clisp.org>
43166
43167         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
43168         mingw.
43169         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
43170         MSVC and mingw explicitly.
43171
43172 2006-10-11  Simon Josefsson  <jas@extundo.com>
43173             Bruno Haible  <bruno@clisp.org>
43174
43175         Add support for multiple gnulib-tool invocations in the scope of a
43176         single configure.ac file.
43177         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
43178         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
43179         with the same contents as the _LIBADD variable.
43180         (func_emit_initmacro_start, func_emit_initmacro_end,
43181         func_emit_initmacro_done): New functions.
43182         (func_import, func_create_testdir): Invoke them. Allow the identifiers
43183         gl_LIBOBJS and gl_LTLIBOBJS.
43184
43185 2006-10-11  Bruno Haible  <bruno@clisp.org>
43186
43187         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
43188         (func_create_testdir): Don't create po/Makefile.am, don't invoke
43189         autoreconf. Instead, invoke autopoint explicitly but move back the
43190         *.m4 files from gnulib.
43191
43192 2006-10-11  Bruno Haible  <bruno@clisp.org>
43193
43194         * gnulib-tool (func_usage): Make module names after --create-testdir
43195         optional.
43196         (func_create_testdir): If no module was specified, use nearly all
43197         modules.
43198
43199 2006-10-12  Jim Meyering  <jim@meyering.net>
43200
43201         Big performance improvement for fts-based tools that use FTS_NOSTAT.
43202         Avoid spurious inode-mismatch problems on non-POSIX file systems.
43203         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
43204         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
43205         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
43206         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
43207         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
43208         (fts_set_stat_required): New function.
43209         (fts_open): Defer the calls to fts_stat, if possible or requested.
43210         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
43211         into fts_stat itself.
43212         (fts_read): Perform any required (deferred) fts_stat call.
43213         (fts_build): Likewise, for the directory we're about to open and read.
43214         In the readdir loop, carefully decide whether each entry will require
43215         an eventual call to fts_stat, using dirent.d_type info if available.
43216         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
43217         a command line argument into this function.  Update all callers.
43218         Map a return value of FTS_DOT to FTS_D for a command line argument.
43219         * modules/fts (Depends-on): Add d-type.  Alphabetize.
43220         Thanks to Miklos Szeredi for his tenacity and for the initial
43221         bug report about "find" failing on a FUSE-based file system.
43222
43223         * lib/fts.c (fts_open): Use consistent indentation.
43224
43225 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43226
43227         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
43228         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
43229         reported by Jim Meyering.  All uses of cache variables renamed
43230         to match Autoconf's.
43231         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
43232         the other one.
43233
43234         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43235         Fix misspelling in diagnostic.
43236
43237 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43238
43239         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
43240         defined.  Problem reported by Matthew Woehlke.
43241
43242         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
43243         Add support for Tandem NonStop R series.
43244         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
43245         Use new macro.
43246
43247         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
43248         (has_trailing_slash): Omit size arg; all callers changed.
43249         Omit 'inline', since it doesn't help performance and we'd
43250         need to configure it.
43251         Don't count //, ///, etc. as having a trailing slash.
43252         As a side effect, this removes a C99ism reported by Matthew Woehlke.
43253         (rpl_rename_dest_slash): On failure, use rename's errno rather
43254         than (in some cases) an incorrect or junk errno.
43255         Simplify code by removing need to compute length; this does
43256         cause it to make two passes instead of one over the file name,
43257         but it's worth it.
43258
43259         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
43260         change, since Autoconf's version may no longer be appropriate now
43261         that we are using CVS Autoconf's version.  Add support for Tandem.
43262
43263 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43264             Bruno Haible  <bruno@clisp.org>
43265
43266         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
43267         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
43268         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
43269         gl_AC_TYPE_LONG_LONG.
43270
43271         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
43272         instead of HAVE_LONG_LONG.
43273         * lib/printf-args.c (printf_fetchargs): Likewise.
43274         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43275         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43276         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
43277         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
43278         gl_AC_TYPE_LONG_LONG.
43279
43280 2006-10-11  Bruno Haible  <bruno@clisp.org>
43281
43282         * m4/longlong.m4: Add comments.
43283         * m4/ulonglong.m4: Likewise.
43284
43285 2006-10-10  Bruno Haible  <bruno@clisp.org>
43286
43287         Make it possible to #define stpcpy, strdup to aliases.
43288         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
43289         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
43290
43291 2006-10-10  Bruno Haible  <bruno@clisp.org>
43292
43293         Make it possible to #define gcd to an alias.
43294         * lib/gcd.c: Include config.h.
43295
43296 2006-10-10  Bruno Haible  <bruno@clisp.org>
43297
43298         Make it possible to #define c_isascii to an alias.
43299         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
43300         defined. Undefine the macros before defining them, to avoid gcc
43301         warnings.
43302         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
43303         define NO_C_CTYPE_MACROS early.
43304
43305 2006-10-10  Bruno Haible  <bruno@clisp.org>
43306
43307         Make it possible to #define set_program_name to an alias.
43308         * lib/progname.c: Don't undefine set_program_name; instead, undefine
43309         ENABLE_RELOCATABLE early.
43310
43311 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43312
43313         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43314         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43315         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43316         More generally, don't assume that 64-bit signed int is available
43317         if unsigned int is, and vice versa.
43318         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43319         unsigned symbols, not on their signed counterparts.
43320         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43321         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43322         (UINT64_C, UINTMAX_C):
43323         Likewise.
43324         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43325         unsigned counterparts.
43326         (Have_long_long, Unsigned): New macros.
43327         (Int): Renamed from INT.
43328         (strtoimax): Use the new macros.
43329         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43330         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43331         * modules/inttypes (inttypes.h): Substitute
43332         HAVE_UNSIGNED_LONG_LONG_INT.
43333         * modules/stdint (stdint.h): Likewise.
43334         (Files): Add m4/ulonglong.m4.
43335
43336 2006-10-10  Bruno Haible  <bruno@clisp.org>
43337
43338         Fix a gcc -Wshadow warning.
43339         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43340         to 'bucket'.
43341         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43342         gl_linked_indexof_from_to): Likewise.
43343         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43344         Likewise.
43345         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43346         Likewise.
43347         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43348         Reported by Eric Blake.
43349
43350 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43351
43352         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43353         for NetBSD.  Problem reported by Bruno Haible.
43354
43355 2006-10-09  Jim Meyering  <jim@meyering.net>
43356
43357         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43358         Patch from Bruno Haible.
43359
43360 2006-10-09  Jim Meyering  <jim@meyering.net>
43361
43362         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43363         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43364         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43365
43366 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43367
43368         Don't include <config.h> twice; this doesn't work in some cases,
43369         e.g., when config.h has "#define intmax_t long long int" and
43370         we include <config.h>, <inttypes.h>, <config.h> in that order.
43371         Problem reported by Matthew Woehlke in:
43372         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43373         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43374         * lib/fts-cycle.c: Don't include config.h.
43375         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43376         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43377         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43378         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43379         inttypes.h.
43380         * lib/xstrtoumax.c: Likewise.
43381         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43382         __strtol and the like, so that this module is more like its siblings.
43383         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43384         Remove; no longer needed now that we assume gnulib inttypes.h.
43385
43386 2006-10-08  Bruno Haible  <bruno@clisp.org>
43387
43388         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43389         option.
43390
43391 2006-10-07  Jim Meyering  <jim@meyering.net>
43392
43393         * modules/inttypes (inttypes.h): Revert what seems to have been
43394         an inadvertent part of today's change: use "|", not "/" in the
43395         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43396
43397 2006-10-07  Bruno Haible  <bruno@clisp.org>
43398
43399         * modules/sublist: New file.
43400
43401 2006-10-07  Bruno Haible  <bruno@clisp.org>
43402
43403         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43404         * modules/argz (argz.h): Likewise.
43405         * modules/arpa_inet (arpa/inet.h): Likewise.
43406         * modules/byteswap (byteswap.h): Likewise.
43407         * modules/configmake (configmake.h): Likewise.
43408         * modules/fcntl (fcntl.h): Likewise.
43409         * modules/fnmatch (fnmatch.h): Likewise.
43410         * modules/getopt (getopt.h): Likewise.
43411         * modules/glob (glob.h): Likewise.
43412         * modules/inttypes (inttypes.h): Likewise.
43413         * modules/netinet_in (netinet/in.h): Likewise.
43414         * modules/poll (poll.h): Likewise.
43415         * modules/stdbool (stdbool.h): Likewise.
43416         * modules/stdint (stdint.h): Likewise.
43417         * modules/sys_select (sys/select.h): Likewise.
43418         * modules/sys_socket (sys/socket.h): Likewise.
43419         * modules/sys_stat (sys/stat.h): Likewise.
43420         * modules/sysexits (sysexits.h): Likewise.
43421         * modules/unistd (unistd.h): Likewise.
43422         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43423         Add a "DO NOT EDIT" comment to the generated file.
43424         (func_import): Likewise for gnulib-comp.m4.
43425
43426 2006-10-07  Bruno Haible  <bruno@clisp.org>
43427
43428         * lib/gl_sublist.h: New file.
43429         * lib/gl_sublist.c: New file.
43430
43431 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43432
43433         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43434         name (relative to the original working directory) and the file
43435         name component (relative to the temporary working directory).  All
43436         callers changed.
43437         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43438         * lib/mkdir-p.c (make_dir_parents): Likewise.
43439         * lib/mkdir-p.h (make_dir_parents): Likewise.
43440
43441 2006-10-06  Eric Blake  <ebb9@byu.net>
43442
43443         Define several macros for use by the clean-temp module.
43444         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43445         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43446         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43447
43448         * lib/clean-temp.h (close_stream_temp): New declaration.
43449         * lib/clean-temp.c (includes): Pull in headers according to what
43450         other modules are in use.
43451         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43452
43453 2006-10-06  Bruno Haible  <bruno@clisp.org>
43454
43455         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43456         instead of fopen, fwriteerror.
43457
43458 2006-10-06  Bruno Haible  <bruno@clisp.org>
43459
43460         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43461         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43462         int.
43463         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43464         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43465         Return an error indicator.
43466         Suggested by Eric Blake.
43467
43468 2006-10-06  Bruno Haible  <bruno@clisp.org>
43469
43470         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43471         Reported by Eric Blake.
43472
43473 2006-10-06  Bruno Haible  <bruno@clisp.org>
43474
43475         * modules/closeout (Description): Mention stderr too.
43476
43477 2006-10-06  Bruno Haible  <bruno@clisp.org>
43478         and Paul Eggert  <eggert@cs.ucla.edu>
43479
43480         * lib/closeout.c (close_stdout): Also close stderr.
43481         * lib/closeout.h: Update comment.
43482
43483 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43484
43485         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43486         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43487         * lib/dirchownmod.c: Include lchown.h.
43488         * lib/lchown.c: Don't include files that lchown.h now includes.
43489         Don't declare chown, since lchown.h now does that.
43490         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43491         (lchown): Define to rpl_chown if lchown is declared but
43492         does not exist.  Declare using a prototype if lchown is not
43493         declared.  Add a copyright notice.
43494         * lib/mkstemp.h: Include <unistd.h>.
43495         * lib/openat.c: Include lchown.h.
43496
43497         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43498         we now test for that separately.
43499         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43500         rather than O_NOFOLLOW, when testing whether it's possible to
43501         avoid a race condition reliably.
43502         * lib/savewd.c (savewd_chdir): Likewise.
43503
43504         Remove macros that are no longer needed now that stdint.h is
43505         reliable.
43506         * lib/fsusage.c (UINTMAX_MAX): Remove.
43507         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43508         * lib/utimecmp.c (SIZE_MAX): Remove.
43509
43510         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43511
43512         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43513         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43514         O_NOATIME works.
43515
43516 2006-10-05  Bruno Haible  <bruno@clisp.org>
43517
43518         * lib/gl_list.h (gl_sortedlist_search_from_to,
43519         gl_sortedlist_indexof_from_to): New declarations.
43520         (gl_list_implementation): New fields sortedlist_search_from_to,
43521         sortedlist_indexof_from_to.
43522         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43523         inline functions.
43524         * lib/gl_list.c (gl_sortedlist_search_from_to,
43525         gl_sortedlist_indexof_from_to): New functions.
43526         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43527         function.
43528         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43529         (gl_array_sortedlist_search_from_to): New function.
43530         (gl_array_list_implementation): Update.
43531         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43532         function.
43533         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43534         (gl_carray_sortedlist_search_from_to): New function.
43535         (gl_carray_list_implementation): Update.
43536         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43537         gl_linked_sortedlist_indexof_from_to): New functions.
43538         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43539         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43540         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43541         gl_tree_sortedlist_indexof_from_to): New functions.
43542         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43543         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43544         Update.
43545         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43546         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43547         Update.
43548
43549 2006-10-05  Bruno Haible  <bruno@clisp.org>
43550
43551         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43552         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43553         (struct gl_list_implementation): Add fields search_from_to,
43554         indexof_from_to. Remove fields search, indexof.
43555         (gl_list_search): Use the search_from_to method.
43556         (gl_list_search_from, gl_list_search_from_to): New functions.
43557         (gl_list_indexof): Use the indexof_from_to method.
43558         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43559         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43560         (gl_list_search_from, gl_list_search_from_to): New functions.
43561         (gl_list_indexof): Use the indexof_from_to method.
43562         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43563         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43564         gl_array_indexof. Add start_index, end_index arguments.
43565         (gl_array_search_from_to): Renamed from gl_array_search. Add
43566         start_index, end_index arguments.
43567         (gl_array_remove, gl_array_list_implementation): Update.
43568         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43569         gl_carray_indexof. Add start_index, end_index arguments.
43570         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43571         start_index, end_index arguments.
43572         (gl_carray_remove, gl_carray_list_implementation): Update.
43573         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43574         gl_linked_search. Add start_index, end_index arguments.
43575         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43576         start_index, end_index arguments.
43577         (gl_linked_remove): Update.
43578         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43579         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43580         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43581         field to 'size_t'.
43582         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43583         gl_tree_search. Add start_index, end_index arguments.
43584         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43585         start_index, end_index arguments.
43586         (gl_tree_remove): Update.
43587         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43588         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43589         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43590         function.
43591         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43592         gl_tree_search. Add start_index, end_index arguments.
43593         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43594         start_index, end_index arguments.
43595         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43596         Update.
43597         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43598
43599 2006-10-05  Bruno Haible  <bruno@clisp.org>
43600
43601         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43602
43603         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43604         fwriteerror_temp): New declarations.
43605         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43606         (descriptors): New variable.
43607         (cleanup): First, close the descriptors.
43608         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43609         fclose_temp, fwriteerror_temp): New functions.
43610
43611 2006-10-04  Jim Meyering  <jim@meyering.net>
43612
43613         * lib/fts.c (fts_open): Tiny comment change.
43614
43615 2006-10-04  Bruno Haible  <bruno@clisp.org>
43616
43617         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43618         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43619         gl_LOCK_BODY.
43620         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43621         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43622         gl_LOCK_EARLY_BODY.
43623         (gl_LOCK): Require gl_LOCK_BODY.
43624
43625 2006-10-04  Bruno Haible  <bruno@clisp.org>
43626
43627         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43628         (gl_oset_search_atleast): New declaration.
43629         (struct gl_oset_implementation): Add field 'search_atleast'.
43630         (gl_oset_search_atleast): New inline function.
43631         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43632         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43633         (gl_array_oset_implementation): Update.
43634         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43635         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43636         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43637
43638 2006-10-04  Bruno Haible  <bruno@clisp.org>
43639
43640         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43641
43642 2006-10-03  Bruno Haible  <bruno@clisp.org>
43643
43644         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43645         from gl_avltreehash_list_implementation.
43646
43647 2006-10-03  Bruno Haible  <bruno@clisp.org>
43648
43649         * lib/gl_oset.c (gl_oset_add): Fix return type.
43650
43651 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43652
43653         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43654
43655 2006-10-02  Eric Blake  <ebb9@byu.net>
43656
43657         * modules/strnlen (Depends-on): Add extensions.
43658
43659 2006-10-02  Eric Blake  <ebb9@byu.net>
43660
43661         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43662         definition in 2.60+.
43663
43664 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43665
43666         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43667         checks.
43668
43669 2006-10-02  Bruno Haible  <bruno@clisp.org>
43670
43671         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43672         to the AUTOMAKE_OPTIONS.
43673         Reported by Jim Meyering.
43674
43675 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43676
43677         Work around bug in Solaris 10 /proc file system:
43678         /proc/self/fd/NNN/.. isn't the parent directory of
43679         the directory whose file descriptor is NNN.  This needs to
43680         be worked around at run time, not compile time, since a
43681         program might be built on Solaris 8, where things work, and
43682         run on Solaris 10.
43683         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43684         to use the following interface instead:
43685         (OPENAT_BUFFER_SIZE): New macro.
43686         (openat_proc_name): New function.
43687         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43688         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43689         Likewise.
43690         * lib/openat-proc.c: New file.
43691         * modules/openat (Files): Add lib/openat-proc.c.
43692         (Depends-on): Add same-inode, stdbool.
43693         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43694
43695 2006-09-29  Bruno Haible  <bruno@clisp.org>
43696
43697         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43698         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43699         argument. Set stdout_closed before testing for ferror, not after.
43700         (fwriteerror, fwriteerror_no_ebadf): New functions.
43701
43702 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43703
43704         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43705
43706 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43707
43708         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43709         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43710
43711 2006-09-28  Jim Meyering  <jim@meyering.net>
43712
43713         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43714         Include <unistd.h>.
43715
43716 2006-09-28  Bruno Haible  <bruno@clisp.org>
43717
43718         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43719         * modules/linkedhash-list (Depends-on): Likewise.
43720         * modules/rbtreehash-list (Depends-on): Likewise.
43721
43722 2006-09-28  Bruno Haible  <bruno@clisp.org>
43723
43724         * lib/strndup.h: Simplify the redefinition of strndup.
43725         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43726         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43727
43728 2006-09-28  Bruno Haible  <bruno@clisp.org>
43729
43730         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43731         * lib/gl_linkedhash_list.c: Likewise.
43732         * lib/gl_rbtreehash_list.c: Likewise.
43733
43734 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43735
43736         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43737         getaddrinfo.
43738
43739         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43740         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43741         it causes <stdio_ext.h> to cause a compile-time error.
43742         Problem reported by Nelson H. F. Beebe.
43743         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43744         of HAVE_DECL___PENDING.
43745
43746         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43747         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43748         declaration.
43749
43750 2006-09-27  Jim Meyering  <jim@meyering.net>
43751
43752         This file could end up with a definition for a function
43753         named __strndup, rather than rpl_strndup on a system with
43754         incomplete weak_alias support.
43755         * lib/strndup.c (strndup): Rename from __strndup.
43756         Remove #defines that used to map __strndup to strndup.
43757         Don't use K&R prototypes.
43758         Remove LIBC-related code, since this file is not sync'd with glibc.
43759         * lib/strndup.h: Revamp, accordingly.
43760         * m4/strndup.m4: Modernize.
43761
43762 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43763
43764         * modules/savewd (Depends-on): Add 'raise'.
43765         * lib/savewd.c: Include <signal.h>, for 'raise'.
43766
43767 2006-09-26  Jim Meyering  <jim@meyering.net>
43768
43769         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43770         when we detect Darwin 8.7.0's acl_get_file bug.
43771         Rearrange to perform the new (below) run-test while $LIBS
43772         contains any acl-related library.  Set USE_ACL at the end.
43773         (gl_ACL_GET_FILE): New function.
43774
43775 2006-09-26  Eric Blake  <ebb9@byu.net>
43776
43777         * lib/verror.c: Include <config.h> unconditionally.
43778
43779 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43780
43781         * modules/clock-time (Maintainer): Add self.
43782         * modules/getlogin_r (Depends-on): Add extensions.
43783
43784 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43785
43786         * modules/clock-time: New module.
43787         * modules/nanosleep (Depends-on): Add clock-time.
43788         * modules/gethrxtime (Depends-on): Likewise.
43789         * modules/gettime (Depends-on): Likewise.
43790         * modules/settime (Depends-on): Likewise.
43791
43792         * modules/fts-lgpl: Depend on openat.
43793         * modules/mkancesdirs: Depend on savewd.
43794         * modules/mkdir-p: Likewise.
43795
43796 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43797
43798         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43799
43800         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43801         `gl_have_arbitrary_file_name_length_limit' to
43802         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43803         actually works between configure runs.
43804
43805 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43806             Bruno Haible  <bruno@clisp.org>
43807
43808         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43809
43810 2006-09-25  Jim Meyering  <jim@meyering.net>
43811
43812         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43813         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43814
43815 2006-09-25  Eric Blake  <ebb9@byu.net>
43816
43817         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43818         exec's in 2006-09-18 patch when shuffling fds.
43819
43820 2006-09-25  Bruno Haible  <bruno@clisp.org>
43821
43822         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43823         Reported by Jim Meyering.
43824
43825 2006-09-24  Jim Meyering  <jim@meyering.net>
43826
43827         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43828         compare a pointer against a literal "0".  That caused failures with
43829         at least HP-UX's hpcc.
43830
43831 2006-09-22  Simon Josefsson  <jas@extundo.com>
43832
43833         * modules/gc-sha1:
43834         * modules/gc-md4:
43835         * modules/gc-hmac-sha1:
43836         * modules/gc-hmac-md5:
43837         * modules/gc-des:
43838         * modules/gc-arcfour: Distribute more files.
43839
43840 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43841
43842         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43843         (gl_linked_iterator_from_to): Initialize struct completely.
43844         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43845         (gl_tree_iterator_from_to): Likewise
43846         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43847         * lib/gl_array_list.c [lint] (gl_array_iterator)
43848         (gl_array_iterator_from_to): Likewise.
43849         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43850         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43851         (gl_carray_iterator_from_to): Likewise.
43852
43853         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43854         * lib/md4.c (md4_process_block): Remove unused variable.
43855         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43856         parentheses for clarity.
43857
43858 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43859
43860         * modules/bison-i18n (Depends-on): Add gettext.
43861
43862 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43863
43864         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43865         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43866         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43867         also add missing comma that caused broken test.
43868         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43869         stdlib.h, for `abort'.
43870         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43871         variables.
43872         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43873         include unistd.h if present, for `rmdir'.
43874         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43875         variables.
43876         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43877         in the process include standard headers for prototypes.
43878         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43879         gets declared on GNU/Linux.
43880         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43881         unistd.h, for `rmdir'.
43882         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43883
43884         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43885         always true.
43886         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43887
43888         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43889
43890 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43891
43892         * gnulib-tool (func_version): Create output all at once.  This
43893         may help avoid triggering unnecessary SIGPIPEs, and at any
43894         rate it doesn't hurt.
43895
43896 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43897             Bruno Haible  <bruno@clisp.org>
43898
43899         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43900         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43901         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43902
43903         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43904         (gl_FUNC_VASPRINTF): Invoke it.
43905
43906 2006-09-22  Bruno Haible  <bruno@clisp.org>
43907
43908         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43909         getloadavg.c as first argument.
43910
43911 2006-09-22  Bruno Haible  <bruno@clisp.org>
43912
43913         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43914         at the beginning of the gl_INIT macro.
43915         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43916         gl_GETLOADAVG.
43917
43918 2006-09-22  Bruno Haible  <bruno@clisp.org>
43919
43920         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43921         module.
43922         Suggested by Ralf Wildenhues.
43923
43924 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43925
43926         Import this patch from libc:
43927
43928         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43929
43930         * lib/regex_internal.c (re_string_reconstruct): Handle
43931         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43932         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43933         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43934         re_string_context_at.
43935
43936         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43937         now requires it.
43938         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43939         gl_REGEX now does it for us.
43940         (gl_REGEX): Add test taken from
43941         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43942
43943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43944         Check that large offsets work.  Modernize Autoconf usages.
43945         Prefer "yes" to mean a good thing rather than a bad.
43946         Don't put "#define mkstemp" in config.h, as this might interfere
43947         with standard system headers that "#define mkstemp mkstemp64".
43948
43949         * modules/mkstemp (Depends-on): Add extensions, so that
43950         mkstemp is visible on some platforms.
43951         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43952         (Include): Change to "mkstemp.h" from <stdlib.h>.
43953         (Files): Add mkstemp.h.
43954
43955         * lib/mkstemp.h: New file, since some standard headers
43956         #define mkstemp.
43957         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43958         Include "mkstemp.h".
43959         Make the _LIBC code resemble glibc original more,
43960         e.g., use K&R style.
43961         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43962         (mkstemp): Remove, since mkstemp.h does this for us.
43963         * lib/stdlib--.h: Include mkstemp.h.
43964
43965         Import this patch from libc:
43966
43967         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43968
43969         * lib/tempname.c (__gen_tempname): Change attempts_min
43970         into a macro.  Use preprocessor to decide how to initialize
43971         attempts [Coverity CID 67].
43972
43973 2006-09-20  Bruno Haible  <bruno@clisp.org>
43974
43975         * lib/mkdtemp.c: Import from libc.
43976         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43977                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43978                 attempts_min into a macro.  Use preprocessor to decide how to
43979                 initialize attempts [Coverity CID 67].
43980         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43981                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43982                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43983
43984 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43985
43986         * gnulib-tool (func_exit): New function, to allow to pass the
43987         exit status portably through the trap.  Use everywhere.
43988         (--help, --version): Signal a write error.
43989         (trap): catch SIGPIPE, for write errors.
43990         Exit at the end of the trap, with the correct exit status.
43991
43992 2006-09-19  Karl Berry  <karl@gnu.org>
43993
43994         * doc/gnulib.texi: note about the license texinfo files.
43995
43996 2006-09-19  Eric Blake  <ebb9@byu.net>
43997
43998         * gnulib-tool: Avoid space-tab.
43999
44000 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44001
44002         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
44003         that prevented coreutils 6.1 from building.  Problem reported
44004         by Petter Reinholdtsen.
44005
44006 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
44007
44008         * gnulib-tool (avoidlist): Fix typo that broke options like
44009         --avoid=lock that are used by coreutils bootstrap.
44010
44011 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
44012
44013         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
44014         more systematically.
44015
44016 2006-09-18  Jim Meyering  <jim@meyering.net>
44017
44018         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
44019
44020 2006-09-18  Bruno Haible  <bruno@clisp.org>
44021
44022         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
44023
44024 2006-09-18  Bruno Haible  <bruno@clisp.org>
44025
44026         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
44027         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
44028         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
44029         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
44030         * m4/gettext.m4: Require autoconf >= 2.52.
44031         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
44032         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
44033         of gl_cv_header_inttypes_h.
44034
44035 2006-09-18  Bruno Haible  <bruno@clisp.org>
44036
44037         * lib/javaversion.c: Include configmake.h.
44038
44039 2006-09-18  Bruno Haible  <bruno@clisp.org>
44040
44041         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
44042         avoid that the while loops be executed in a subshell.
44043
44044 2006-09-18  Bruno Haible  <bruno@clisp.org>
44045
44046         * MODULES.html.sh (func_module): Break long lines.
44047         Suggested by Bruce Korb <bkorb@gnu.org>.
44048
44049 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44050
44051         Speed up by a factor of 1.12.
44052         * gnulib-tool (nl): New variable.
44053         (func_import): Rewrite include directive extraction to only read each
44054         directive once.
44055
44056 2006-09-17  Bruno Haible  <bruno@clisp.org>
44057
44058         * modules/javaversion (Makefile.am): Remove DEFS setting.
44059         (Depends-on): Add configmake, for PKGDATADIR definition.
44060
44061 2006-09-17  Bruno Haible  <bruno@clisp.org>
44062
44063         * gnulib-tool (func_create_testdir): Rewrite all files at once.
44064
44065 2006-09-17  Bruno Haible  <bruno@clisp.org>
44066
44067         * gnulib-tool (func_append): New function, stolen from libtool.m4.
44068         (func_modules_transitive_closure, func_modules_add_dummy,
44069         func_modules_to_filelist, func_import, func_create_testdir,
44070         func_create_megatestdir, ...): Use it wherever possible.
44071         Suggested by Ralf Wildenhues.
44072
44073 2006-09-16  Karl Berry  <karl@gnu.org>
44074
44075         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
44076         to avoid sectioning errors.
44077         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
44078         [ifinfo]: blank line after @center-ed titles.
44079         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
44080         Spell FSF address consistently with others.
44081         (These changes approved by rms.)
44082
44083 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44084
44085         Speed up by a factor of 1.61.
44086         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
44087         already checked module names again.
44088
44089 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44090
44091         Speed up by a factor of 1.13.
44092         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
44093         for new_files, and the input to func_add_or_update.
44094
44095 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44096
44097         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
44098         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
44099
44100 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44101
44102         * modules/mkancesdirs (Depends-on): Add fcntl.
44103         * modules/savewd: New file.
44104         * MODULES.html.sh (File system functions): Add savewd.
44105
44106         * modules/configmake (Makefile.am): Add support for the
44107         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
44108
44109 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44110
44111         * m4/savewd.m4: New file.
44112
44113 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44114
44115         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
44116         (dirchownmod): New arg FD.  All callers changed.
44117         Use FD rather than opening the directory ourself, as opening is
44118         now the caller's responsibility.
44119         * lib/dirchownmod.h: Likewise.
44120         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
44121         hosts that require <sys/types.h> before <sys/stat.h>.  Include
44122         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
44123         (test_dir): Remove.
44124         (mkancesdirs): Return length of prefix of FILE that has already
44125         been made, or -2 if there is a child doing the work.  Redo
44126         algorithm so that it is O(N) rather than O(N**2).  Optimize away
44127         ".", and treat ".." specially since it might stray back into
44128         already-created areas.  Use a subprocess if necessary.  New arg
44129         WD; all users changed.  MAKE_DIR function should now return 1
44130         if it creates a directory that is not readable.  Return -2 if
44131         a child process is spun off.
44132         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
44133         Adjust signature to match code.
44134         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
44135         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
44136         all users changed.
44137         * lib/savewd.c, lib/savewd.h: New files.
44138
44139 2006-09-15  Jim Meyering  <jim@meyering.net>
44140
44141         * modules/rename-dest-slash: New module.
44142         * MODULES.html.sh (posix_compat): Add it here.
44143
44144         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
44145
44146 2006-09-15  Jim Meyering  <jim@meyering.net>
44147
44148         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
44149         file.
44150
44151         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
44152
44153 2006-09-15  Jim Meyering  <jim@meyering.net>
44154
44155         * lib/rename-dest-slash.c (has_trailing_slash): Use
44156         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
44157         (rpl_rename_dest_slash): Perform the cheaper trailing slash
44158         test before testing whether SRC is a directory.
44159         Suggestions from Bruno Haible.
44160
44161         Avoid a warning about an unused variable.
44162         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
44163         into the #ifdef block where it's used.
44164
44165         * lib/rename-dest-slash.c: New file.
44166
44167 2006-09-14  Bruno Haible  <bruno@clisp.org>
44168
44169         * lib/allocsa.c: Include <config.h> unconditionally.
44170         * lib/asnprintf.c: Likewise.
44171         * lib/asprintf.c: Likewise.
44172         * lib/c-strcasecmp.c: Likewise.
44173         * lib/c-strcasestr.c: Likewise.
44174         * lib/c-strncasecmp.c: Likewise.
44175         * lib/c-strstr.c: Likewise.
44176         * lib/classpath.c: Likewise.
44177         * lib/clean-temp.c: Likewise.
44178         * lib/concatpath.c: Likewise.
44179         * lib/copy-file.c: Likewise.
44180         * lib/csharpcomp.c: Likewise.
44181         * lib/csharpexec.c: Likewise.
44182         * lib/execute.c: Likewise.
44183         * lib/fatal-signal.c: Likewise.
44184         * lib/findprog.c: Likewise.
44185         * lib/fwriteerror.c: Likewise.
44186         * lib/gl_array_list.c: Likewise.
44187         * lib/gl_array_oset.c: Likewise.
44188         * lib/gl_avltree_list.c: Likewise.
44189         * lib/gl_avltree_oset.c: Likewise.
44190         * lib/gl_avltreehash_list.c: Likewise.
44191         * lib/gl_carray_list.c: Likewise.
44192         * lib/gl_linked_list.c: Likewise.
44193         * lib/gl_linkedhash_list.c: Likewise.
44194         * lib/gl_list.c: Likewise.
44195         * lib/gl_oset.c: Likewise.
44196         * lib/gl_rbtree_list.c: Likewise.
44197         * lib/gl_rbtree_oset.c: Likewise.
44198         * lib/gl_rbtreehash_list.c: Likewise.
44199         * lib/imaxabs.c: Likewise.
44200         * lib/imaxdiv.c: Likewise.
44201         * lib/javacomp.c: Likewise.
44202         * lib/javaexec.c: Likewise.
44203         * lib/javaversion.c: Likewise.
44204         * lib/linebreak.c: Likewise.
44205         * lib/localcharset.c: Likewise.
44206         * lib/lock.c: Likewise.
44207         * lib/mbchar.c: Likewise.
44208         * lib/mbswidth.c: Likewise.
44209         * lib/mkdtemp.c: Likewise.
44210         * lib/pipe.c: Likewise.
44211         * lib/printf-args.c: Likewise.
44212         * lib/printf-parse.c: Likewise.
44213         * lib/progname.c: Likewise.
44214         * lib/progreloc.c: Likewise.
44215         * lib/readlink.c: Likewise.
44216         * lib/sh-quote.c: Likewise.
44217         * lib/stpcpy.c: Likewise.
44218         * lib/stpncpy.c: Likewise.
44219         * lib/strcasecmp.c: Likewise.
44220         * lib/strcasestr.c: Likewise.
44221         * lib/strcspn.c: Likewise.
44222         * lib/striconv.c: Likewise.
44223         * lib/strncasecmp.c: Likewise.
44224         * lib/strnlen1.c: Likewise.
44225         * lib/strstr.c: Likewise.
44226         * lib/strtok_r.c: Likewise.
44227         * lib/tls.c: Likewise.
44228         * lib/tmpdir.c: Likewise.
44229         * lib/unicodeio.c: Likewise.
44230         * lib/unsetenv.c: Likewise.
44231         * lib/vasnprintf.c: Likewise.
44232         * lib/vasprintf.c: Likewise.
44233         * lib/wait-process.c: Likewise.
44234         * lib/xallocsa.c: Likewise.
44235         * lib/xsetenv.c: Likewise.
44236         * lib/xstriconv.c: Likewise.
44237
44238 2006-09-13  Simon Josefsson  <jas@extundo.com>
44239
44240         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
44241         that internally, suggested by Ralf Wildenhues
44242         <Ralf.Wildenhues@gmx.de>.
44243
44244 2006-09-13  Simon Josefsson  <jas@extundo.com>
44245
44246         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
44247         @LIBOBJS@.
44248         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44249
44250 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44251
44252         * lib/_fpending.c: Include <config.h> unconditionally, since we no
44253         longer worry about uses that don't define HAVE_CONFIG_H.
44254         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
44255         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
44256         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
44257         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
44258         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
44259         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
44260         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
44261         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
44262         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
44263         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
44264         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
44265         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
44266         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
44267         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
44268         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
44269         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
44270         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
44271         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
44272         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
44273         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
44274         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
44275         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
44276         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
44277         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
44278         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
44279         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
44280         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
44281         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
44282         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
44283         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
44284         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
44285         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
44286         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
44287         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
44288         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
44289         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
44290         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
44291         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
44292         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
44293         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
44294         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
44295         Likewise.
44296
44297 2006-09-13  Eric Blake  <ebb9@byu.net>
44298
44299         * lib/getopt.c: Fix typo in last commit.
44300
44301 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44302
44303         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
44304         dgettext.
44305
44306 2006-09-12  Jim Meyering  <jim@meyering.net>
44307
44308         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
44309         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
44310         Reported by Nelson H. F. Beebe.
44311
44312 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44313
44314         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44315         program_invocation_name and program_invocation_short_name are
44316         initialized.
44317         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44318         and program_invocation_short_name to argp.h, so they are visible
44319         to user programs.
44320         * lib/argp.h: Likewise
44321
44322 2006-09-10  Bruno Haible  <bruno@clisp.org>
44323
44324         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44325         m4/inttypes_h.m4, m4/uintmax_t.m4.
44326
44327 2006-09-10  Bruno Haible  <bruno@clisp.org>
44328
44329         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44330         gl_AC_TYPE_UINTMAX_T.
44331
44332 2006-09-10  Bruno Haible  <bruno@clisp.org>
44333
44334         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44335
44336 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44337
44338         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44339         convention.  Text proposed by Bruno Haible.
44340         (struct argp_option): Document the use of N_() wrappers.
44341
44342         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44343         '\v', and translate the two parts separately, instead of feeding
44344         the whole string to gettext.  This allows to exclude
44345         '\v' from the strings visible to the translator by writing doc
44346         strings as N_("..") "\v" N_("..").
44347
44348 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44349
44350         * config/srclist.txt: Undo latest change; the bug was fixed.
44351
44352 2006-09-09  Bruno Haible  <bruno@clisp.org>
44353
44354         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44355         assignments if building a library without libtool.
44356         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44357         in func_emit_lib_Makefile_am.
44358         (func_import): When building a static library libfoo.a, arrange to
44359         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44360         (func_create_testdir): Likewise.
44361         * modules/gc (configure.ac, Makefile.am): If building statically,
44362         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44363         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44364         * modules/striconv (configure.ac, Makefile.am): Likewise.
44365         Based on a suggestion by Ralf Wildenhues.
44366
44367 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44368
44369         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44370         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44371         Also:
44372
44373         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44374         Add year_2050_test to catch glibc bug 2821
44375         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44376
44377         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44378         Prefer #ifdef to #if.
44379
44380         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44381         Return from 'main' instead of calling 'exit'.
44382
44383 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44384
44385         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44386         returned the maximum time_t value rather than (time_t) -1.
44387         Problem originally reported by William Bardwell
44388         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44389
44390         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44391         Moved to here ...
44392         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44393         ... from here.
44394
44395 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44396
44397         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44398         2821 is fixed.
44399
44400 2006-09-08  Jim Meyering  <jim@meyering.net>
44401
44402         Don't make generated files read-only.  That would bother too many
44403         people.  However, do retain the ability to work when targets are
44404         read-only: remove the destination and temporary files before writing
44405         them (when generated via sed or echo), or by using the -f option for
44406         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44407         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44408         * modules/byteswap, modules/configmake, modules/fcntl:
44409         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44410         * modules/localcharset, modules/netinet_in, modules/poll:
44411         * modules/stdbool, modules/stdint, modules/sys_select:
44412         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44413
44414 2006-09-08  Jim Meyering  <jim@meyering.net>
44415
44416         Avoid new build failure on FreeBSD 6.0.
44417         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44418         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44419         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44420
44421 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44422
44423         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44424
44425 2006-09-07  Jim Meyering  <jim@meyering.net>
44426
44427         Fix global typo in last change: use chmod u-w, not chmod u-x.
44428         Spotted by Paul Eggert and Bruce Korb.
44429         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44430         * modules/byteswap, modules/configmake, modules/fcntl:
44431         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44432         * modules/localcharset, modules/netinet_in, modules/poll:
44433         * modules/stdbool, modules/stdint, modules/sys_select:
44434         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44435
44436 2006-09-06  Jim Meyering  <jim@meyering.net>
44437
44438         Make generated files be read-only.
44439         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44440         Ensure that each generated file is now read-only.
44441         * modules/argz: Likewise.
44442         * modules/arpa_inet: Likewise.
44443         * modules/byteswap: Likewise.
44444         * modules/configmake: Likewise.
44445         * modules/fcntl: Likewise.
44446         * modules/fnmatch: Likewise.
44447         * modules/getopt: Likewise.
44448         * modules/glob: Likewise.
44449         * modules/inttypes: Likewise.
44450         * modules/netinet_in: Likewise.
44451         * modules/poll: Likewise.
44452         * modules/stdbool: Likewise.
44453         * modules/stdint: Likewise.
44454         * modules/sys_select: Likewise.
44455         * modules/sys_socket: Likewise.
44456         * modules/sys_stat: Likewise.
44457         * modules/sysexits: Likewise.
44458         * modules/localcharset: Same as above, but continue using temporary
44459         file named "t-$@" (why different?) rather than the "$@-t" used
44460         everywhere else.
44461
44462         * modules/sysexits (Makefile.am): Replace literal occurrences
44463         of "sysexit.h" more readable, and more consistent, "$@".
44464
44465 2006-09-06  Bruno Haible  <bruno@clisp.org>
44466
44467         * modules/striconv: New file.
44468         * modules/xstriconv: New file.
44469         * MODULES.html.sh (Internationalization functions): Add striconv,
44470         xstriconv.
44471
44472 2006-09-06  Bruno Haible  <bruno@clisp.org>
44473
44474         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44475         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44476         not using libtool correctly.
44477
44478 2006-09-06  Bruno Haible  <bruno@clisp.org>
44479
44480         * lib/striconv.h: New file.
44481         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44482         iconvstring.c.
44483         * lib/xstriconv.h: New file.
44484         * lib/xstriconv.c: New file.
44485
44486 2006-09-06  Bruno Haible  <bruno@clisp.org>
44487
44488         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44489         lib_..._LDFLAGS.
44490
44491 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44492
44493         * lib/argz_.h: Sync from Libtool.
44494
44495         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44496                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44497
44498         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44499
44500 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44501
44502         * modules/trim: New file.
44503
44504 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44505
44506         * lib/trim.h: New file.
44507         * lib/trim.c: New file.
44508
44509 2006-09-05  Bruno Haible  <bruno@clisp.org>
44510
44511         * MODULES.html.sh (String handling): Add trim.
44512
44513 2006-09-04  Karl Berry  <karl@gnu.org>
44514
44515         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44516         until next release.
44517
44518 2006-09-03  Bruno Haible  <bruno@clisp.org>
44519
44520         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44521         correctly.
44522
44523 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44524
44525         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44526         not gl_GETLOADAVG.  Omit unneeded semicolons.
44527         Problems reported by Ralf Wildenhues in
44528         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44529         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44530         at the end, which is the usual gnulib style.
44531
44532         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44533         of doing all the work ourselves.
44534         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44535         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44536
44537 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44538
44539         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44540         Problem reported by Ralf Wildenhues in
44541         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44542
44543         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44544         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44545
44546 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44547
44548         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44549         yesterday's patch by changing test -n to test -z.
44550
44551 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44552
44553         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44554         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44555         the former is now obsolescent.
44556
44557         * modules/chdir-long (Depends-on): Add fcntl.
44558
44559 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44560
44561         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44562         obsolescent, and programs should use gnulib instead.
44563         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44564         but with prefixes changed.
44565
44566 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44567
44568         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44569         or stdbool.h, because they might not exist while configuring.
44570
44571         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44572         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44573         does that for us.
44574         (O_DIRECTORY): Remove.
44575
44576 2006-08-31  Eric Blake  <ebb9@byu.net>
44577
44578         * gnulib-tool: Don't let emacs change spaces to TAB.
44579
44580 2006-08-31  Bruno Haible  <bruno@clisp.org>
44581
44582         * gnulib-tool: When calling func_import more than once, do it in a
44583         subshell.
44584         Reported by Eric Blake <ebb9@byu.net>.
44585
44586 2006-08-31  Bruno Haible  <bruno@clisp.org>
44587
44588         * gnulib-tool (nl): Remove variable.
44589         (sed_transform_lib_file): Use more robust test for config-h module.
44590         (func_import): Fix typo in 2006-08-25 patch.
44591
44592 2006-08-31  Bruno Haible  <bruno@clisp.org>
44593
44594         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44595         specified, augment Makefile.am variables instead of assigning them.
44596
44597 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44598
44599         Work around a bug in both the Linux and SunOS 64-bit kernels:
44600         nanosleep mishandles sleeps for longer than 2**31 seconds.
44601         Problem reported by Frank v Waveren in
44602         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44603         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44604         Check for nanosleep bug.
44605         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44606
44607 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44608
44609         Work around a bug in both the Linux and SunOS 64-bit kernels:
44610         nanosleep mishandles sleeps for longer than 2**31 seconds.
44611         Problem reported by Frank v Waveren in
44612         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44613         * lib/nanosleep.c (BILLION): New constant.
44614         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44615         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44616         implementation.
44617
44618 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44619
44620         * modules/nanosleep (Depends-on): Add gettime.
44621
44622 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44623         and Simon Josefsson  <jas@extundo.com>
44624         and Oskar Liljeblad  <oskar@osk.mine.nu>
44625
44626         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44627         * gnulib-tool (func_import): New license type 'unmodifiable license
44628         text'.
44629         * modules/fdl: Use it.  Longer description.
44630         * module/gpl, module/lgpl: New files.
44631
44632 2006-08-30  Jim Meyering  <jim@meyering.net>
44633
44634         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44635         shadowing the parameter.
44636
44637 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44638
44639         Sync from Libtool:
44640
44641         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44642
44643         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44644         sharing with gnulib.  Report by Eric Blake.
44645
44646 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44647
44648         * modules/isapipe: New file.
44649         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44650
44651 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44652
44653         * modules/configmake (Makefile.am): Add a comment, and omit
44654         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44655         by Bruno Haible.
44656
44657 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44658
44659         * m4/isapipe.m4: New file.
44660
44661 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44662
44663         * lib/isapipe.c, lib/isapipe.h: New files.
44664
44665 2006-08-29  Jim Meyering  <jim@meyering.net>
44666
44667         * modules/configmake (Makefile.am): Make configmake.h depend on
44668         Makefile.  Otherwise, a stale configmake.h could hang around.
44669
44670 2006-08-29  Eric Blake  <ebb9@byu.net>
44671
44672         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44673         resolution of upstream bug 3044.
44674
44675 2006-08-29  Bruno Haible  <bruno@clisp.org>
44676
44677         * modules/localcharset (Depends-on): Add configmake.
44678         (Makefile.am): Remove setting of LIBDIR through DEFS.
44679
44680 2006-08-29  Bruno Haible  <bruno@clisp.org>
44681
44682         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44683         defined.
44684
44685 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44686
44687         * modules/fcntl: New file.
44688         * modules/chdir-safer (Depends-on): Add fcntl.
44689         * modules/fts: Likewise.
44690         * modules/mkdir-p: Likewise.
44691
44692         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44693         This undoes the most recent change, since we're now addressing the
44694         problem in a different way.
44695
44696         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44697         into output, since the output might be called Makefile.am even
44698         if $makefile_name is something different.
44699         (func_import): Use $makefile_am rather than
44700         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44701         empty.
44702
44703         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44704
44705 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44706
44707         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44708         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44709         recent change to stdint.m4, since we're now addressing the problem in a
44710         different way.
44711
44712 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44713
44714         * m4/fcntl_h.m4: New file.
44715
44716 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44717
44718         * lib/fcntl_.h: New file.
44719         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44720         the fcntl module.
44721         * lib/dirchownmod.c: Likewise.
44722         * lib/fts.c: Likewise.
44723
44724         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44725         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44726         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44727         just before including <inttypes.h>, to avoid circular inclusion.
44728
44729 2006-08-28  Jim Meyering  <jim@meyering.net>
44730
44731         * doc/visibility.texi: Actually read and correct the grammar of the
44732         sentence affected by yesterday's change.
44733
44734 2006-08-28  Eric Blake  <ebb9@byu.net>
44735
44736         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44737         needs wrapper.
44738
44739 2006-08-28  Eric Blake  <ebb9@byu.net>
44740
44741         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44742
44743 2006-08-28  Eric Blake  <ebb9@byu.net>
44744
44745         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44746
44747 2006-08-28  Bruno Haible  <bruno@clisp.org>
44748
44749         * modules/c-strstr: New file, from GNU gettext.
44750         * MODULES.html.sh (String handling): Add c-strstr.
44751
44752 2006-08-28  Bruno Haible  <bruno@clisp.org>
44753
44754         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44755         macros.
44756         Reported by Eric Blake.
44757
44758 2006-08-28  Bruno Haible  <bruno@clisp.org>
44759
44760         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44761         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44762         * lib/vasprintf.c: Include errno.h, limits.h.
44763         (EOVERFLOW): New fallback definition.
44764         (vasprintf): Test here whether the string length is > INT_MAX.
44765         * lib/vsnprintf.c: Include errno.h, limits.h.
44766         (EOVERFLOW): New fallback definition.
44767         (vsnprintf): Fix bug when generated string was too long for the buffer.
44768         Test here whether the string length is > INT_MAX.
44769
44770 2006-08-28  Bruno Haible  <bruno@clisp.org>
44771
44772         * lib/inttypes_.h (SCNX*): Remove definitions.
44773         Reported by Eric Blake.
44774
44775 2006-08-28  Bruno Haible  <bruno@clisp.org>
44776
44777         * lib/c-strstr.h: New file, from GNU gettext.
44778         * lib/c-strstr.c: New file, from GNU gettext.
44779
44780 2006-08-28  Bruno Haible  <bruno@clisp.org>
44781
44782         * gnulib-tool: Reorder some statements.
44783
44784 2006-08-28  Bruno Haible  <bruno@clisp.org>
44785
44786         * gnulib-tool: New option --makefile-name.
44787         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44788         $makefile_name.
44789         (func_import): Write $makefile_name to the cache file, and read it from
44790         there unless explicitly specified. Use $makefile_name as file name
44791         instead of Makefile.am. Adjust the recommendations accordingly.
44792
44793 2006-08-28  Bruno Haible  <bruno@clisp.org>
44794
44795         * gnulib-tool (func_verify_module): Check against misapplying patch.
44796
44797 2006-08-28  Bruno Haible  <bruno@clisp.org>
44798
44799         * gnulib-tool (func_relativize, func_relconcat): New functions.
44800         Give an error if --local-dir is given with --update.
44801         Remove trailing slashes from $local_gnulib_dir.
44802         (func_import): Store the relativized $local_gnulib_dir in
44803         gnulib-cache.m4, and read it from there if not specified explicitly.
44804
44805 2006-08-28  Bruno Haible  <bruno@clisp.org>
44806
44807         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44808         is the current directory. Respect also $local_gnulib_dir.
44809
44810 2006-08-28  Bruno Haible  <bruno@clisp.org>
44811             Simon Josefsson  <jas@extundo.com>
44812
44813         BeOS portability.
44814         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44815
44816 2006-08-27  Jim Meyering  <jim@meyering.net>
44817
44818         * doc/visibility.texi: Remove duplicate word: "pointer".
44819
44820 2006-08-26  Bruno Haible  <bruno@clisp.org>
44821
44822         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44823         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44824         (Makefile.am): Create inttypes.h from inttypes_.h.
44825         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44826
44827         * modules/imaxabs: New file.
44828
44829         * modules/imaxdiv: New file.
44830
44831 2006-08-26  Bruno Haible  <bruno@clisp.org>
44832
44833         * m4/inttypes.m4: New file.
44834         * m4/_inttypes_h.m4: Remove file.
44835         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44836         PRI_MACROS_BROKEN.
44837         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44838
44839         * m4/imaxabs.m4: New file.
44840
44841         * m4/imaxdiv.m4: New file.
44842
44843 2006-08-26  Bruno Haible  <bruno@clisp.org>
44844
44845         * lib/inttypes_.h: New file.
44846         * lib/inttypes.h: Remove file.
44847         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44848
44849         * lib/imaxabs.c: New file.
44850
44851         * lib/imaxdiv.c: New file.
44852
44853 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44854
44855         New config-h module, so that "make" output needn't be cluttered
44856         by -DHAVE_CONFIG_H.
44857         * MODULES.html.sh (Support for building libraries and executables):
44858         Add config-h.
44859         * modules/config-h: New file.
44860         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44861         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44862         the config-h module is used.
44863
44864         New configmake module, so that "make" output needn't be cluttered
44865         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44866         * MODULES.html.sh (Support for building libraries and executables):
44867         Add configmake.
44868         * modules/configmake: New file.
44869
44870 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44871
44872         * m4/config-h.m4: New file.
44873
44874 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44875
44876         * config/srclist.txt: Add elisp-comp.
44877
44878 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44879
44880         * MODULES.html.sh (Support for building libraries and executables):
44881         Add elisp-comp.
44882         * build-aux/elisp-comp: New file.
44883         * modules/elisp-comp: New file.
44884
44885 2006-08-24  Bruno Haible  <bruno@clisp.org>
44886
44887         * gnulib-tool (func_create_testdir): Use non-default values of
44888         sourcebase and m4base.
44889
44890 2006-08-24  Bruno Haible  <bruno@clisp.org>
44891
44892         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44893         HTML structure.
44894
44895 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44896
44897         * modules/openat (Depends-on): Add lchown.
44898
44899 2006-08-23  Bruno Haible  <bruno@clisp.org>
44900
44901         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44902         of gl_LOCK_EARLY instead of gl_LOCK.
44903
44904 2006-08-23  Bruno Haible  <bruno@clisp.org>
44905
44906         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44907         on OSF/1 to no.
44908         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44909
44910 2006-08-23  Bruno Haible  <bruno@clisp.org>
44911
44912         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44913         as unusable.
44914
44915         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44916         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44917         (gl_LOCK): New macro.
44918
44919 2006-08-22  Simon Josefsson  <jas@extundo.com>
44920
44921         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44922         to md5 module.
44923
44924 2006-08-22  Simon Josefsson  <jas@extundo.com>
44925
44926         * MODULES.html.sh: Add "Support for maintaining and release
44927         projects".
44928
44929         * build-aux/gnupload: New file, from coreutils.
44930
44931 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44932
44933         Avoid the need for AC_LIBSOURCES in m4 macros.
44934         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44935         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44936         * modules/check-version (EXTRA_DIST): Add check-version.h.
44937         * modules/crc (EXTRA_DIST): Add crc.h.
44938         * modules/des (EXTRA_DIST): Add des.h.
44939         * modules/gc (EXTRA_DIST): Add gc.h.
44940         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44941         * modules/getline (EXTRA_DIST): Add getline.h.
44942         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44943         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44944         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44945         * modules/md2 (EXTRA_DIST): Add md2.h.
44946         * modules/md4 (EXTRA_DIST): Add md4.h.
44947         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44948         * modules/read-file (EXTRA_DIST): Add read-file.h.
44949         * modules/readline (EXTRA_DIST): Add readline.h.
44950         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44951         rijndael-api-fst.h.
44952
44953 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44954
44955         * m4/rijndael.m4 (gl_ARCFOUR):
44956         * m4/arctwo.m4 (gl_ARCTWO):
44957         * m4/check-version.m4 (gl_CHECK_VERSION):
44958         * m4/crc.m4 (gl_CRC):
44959         * m4/des.m4 (gl_DES):
44960         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44961         * m4/gc.m4 (gl_GC):
44962         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44963         * m4/getline.m4 (gl_FUNC_GETLINE):
44964         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44965         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44966         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44967         * m4/md2.m4 (gl_MD2):
44968         * m4/md4.m4 (gl_MD4):
44969         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44970         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44971         * m4/readline.m4 (gl_FUNC_READLINE):
44972         * m4/rijndael.m4 (gl_RIJNDAEL):
44973         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44974         to get the necessary .h files and whatnot.
44975
44976 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44977
44978         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44979         gnulib rather than the other way around.
44980         * config/srclistvars.sh (COREUTILS): Remove.
44981
44982 2006-08-22  Jim Meyering  <jim@meyering.net>
44983
44984         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44985
44986         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44987
44988 2006-08-22  Eric Blake  <ebb9@byu.net>
44989
44990         * modules/regexprops-generic: New file.
44991         * MODULES.html.sh (Support for building documentation): List it.
44992
44993 2006-08-22  Eric Blake  <ebb9@byu.net>
44994
44995         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44996         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44997         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44998         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44999
45000 2006-08-22  Bruno Haible  <bruno@clisp.org>
45001
45002         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
45003         and lib_LTLIBRARIES like the other lib_* variables.
45004
45005 2006-08-22  Bruno Haible  <bruno@clisp.org>
45006
45007         * build-aux/x-to-1.in: New file, from GNU gettext.
45008
45009 2006-08-22  Bruno Haible  <bruno@clisp.org>
45010
45011         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
45012         <utmpx.h> exists.
45013
45014 2006-08-22  Bruno Haible  <bruno@clisp.org>
45015
45016         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
45017         <utmpx.h> exists.
45018
45019 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45020
45021         BeOS portability.
45022         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
45023         exist.
45024         Problem reported by Bruno Haible.
45025
45026 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45027
45028         Avoid the need for AC_LIBSOURCES in m4 macros.
45029         * modules/acl (EXTRA_DIST): Add acl.h.
45030         * modules/argmatch (Files): Add m4/argmatch.m4.
45031         (configure.ac): Add gl_ARGMATCH.
45032         (EXTRA_DIST): Renamed from lib_SOURCES, for
45033         consistency with the other modules.  Remove argmatch.c.
45034         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
45035         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
45036         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
45037         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
45038         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
45039         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
45040         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
45041         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
45042         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
45043         * modules/closeout (EXTRA_DIST): Add closeout.h.
45044         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
45045         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
45046         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
45047         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
45048         dirname.h; remove basename.c and stripslash.c.
45049         * modules/exclude (EXTRA_DIST): Add exclude.h.
45050         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
45051         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
45052         * modules/file-type (EXTRA_DIST): Add file-type.h.
45053         * modules/filemode (EXTRA_DIST): Add filemode.h.
45054         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
45055         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
45056         * modules/fpending (EXTRA_DIST): Add __fpending.h.
45057         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
45058         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
45059         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
45060         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
45061         * modules/getdate (EXTRA_DIST): Add getdate.c.
45062         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
45063         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
45064         * modules/getpass (EXTRA_DIST): Add getpass.h.
45065         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
45066         * modules/group-member (EXTRA_DIST): Add group-member.h.
45067         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
45068         * modules/hash (EXTRA_DIST): Add hash.h.
45069         * modules/human (EXTRA_DIST): Add human.h.
45070         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
45071         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
45072         * modules/lchown (EXTRA_DIST): Add lchown.h.
45073         * modules/long-options (EXTRA_DIST): Add long-options.h.
45074         * modules/lstat (EXTRA_DIST): Add lstat.h.
45075         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
45076         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
45077         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
45078         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
45079         * modules/memxor (EXTRA_DIST): Add memxor.h.
45080         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
45081         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
45082         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
45083         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
45084         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
45085         * modules/physmem (EXTRA_DIST): Add physmem.h.
45086         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
45087         * modules/posixver (EXTRA_DIST): Add posixver.h.
45088         * modules/quote (EXTRA_DIST): Add quote.h.
45089         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
45090         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
45091         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
45092         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
45093         regex_internal.h regexec.c.
45094         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
45095         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
45096         * modules/same (EXTRA_DIST): Add same.h.
45097         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
45098         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
45099         * modules/savedir (EXTRA_DIST): Add savedir.h.
45100         * modules/sha1 (EXTRA_DIST): Add sha1.h.
45101         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
45102         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
45103         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
45104         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
45105         * modules/strdup (EXTRA_DIST): Add strdup.h.
45106         * modules/strftime (EXTRA_DIST): Add strftime.h.
45107         * modules/strndup (EXTRA_DIST): Add strndup.h.
45108         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
45109         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
45110         * modules/time_r (EXTRA_DIST): Add time_r.h.
45111         * modules/timespec (EXTRA_DIST): Add timespec.h.
45112         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
45113         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
45114         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
45115         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
45116         * modules/userspec (EXTRA_DIST): Add userspec.h.
45117         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
45118         * modules/utimens (EXTRA_DIST): Add utimens.h.
45119         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
45120         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
45121         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
45122         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
45123         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
45124         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
45125         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
45126         * modules/yesno (EXTRA_DIST): Add yesno.h.
45127
45128 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45129
45130         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
45131
45132         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
45133         * m4/dev-ino.m4, same-inode.m4: Remove.
45134
45135         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
45136         * m4/acl.m4 (AC_FUNC_ACL):
45137         * m4/backupfile.m4 (gl_BACKUPFILE):
45138         * m4/c-strtod.m4 (gl_C99_STRTOLD):
45139         * m4/canon-host.m4 (gl_CANON_HOST):
45140         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45141         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
45142         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
45143         * m4/cloexec.m4 (gl_CLOEXEC):
45144         * m4/close-stream.m4 (gl_CLOSE_STREAM):
45145         * m4/closeout.m4 (gl_CLOSEOUT):
45146         * m4/dirfd.m4 (gl_FUNC_DIRFD):
45147         * m4/dirname.m4 (gl_DIRNAME):
45148         * m4/exclude.m4 (gl_EXCLUDE):
45149         * m4/exitfail.m4 (gl_EXITFAIL):
45150         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
45151         * m4/file-type.m4 (gl_FILE_TYPE):
45152         * m4/filemode.m4 (gl_FILEMODE):
45153         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
45154         * m4/fpending.m4 (gl_FUNC_FPENDING):
45155         * m4/fprintftime.m4 (gl_FPRINTFTIME):
45156         * m4/fts.m4 (gl_FUNC_FTS):
45157         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
45158         * m4/getdate.m4 (gl_GETDATE):
45159         * m4/gethrxtime.m4 (gl_GETHRXTIME):
45160         * m4/getpagesize.m4 (gl_GETPAGESIZE):
45161         * m4/getpass.m4 (gl_FUNC_GETPASS):
45162         * m4/gettime.m4 (gl_GETTIME):
45163         * m4/getugroups.m4 (gl_GETUGROUPS):
45164         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
45165         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
45166         * m4/hard-locale.m4 (gl_HARD_LOCALE):
45167         * m4/hash.m4 (gl_HASH):
45168         * m4/idcache.m4 (gl_IDCACHE):
45169         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
45170         * m4/lchown.m4 (gl_FUNC_LCHOWN):
45171         * m4/long-options.m4 (gl_LONG_OPTIONS):
45172         * m4/lstat.m4 (gl_FUNC_LSTAT):
45173         * m4/md5.m4 (gl_MD5):
45174         * m4/memcasecmp.m4 (gl_MEMCASECMP):
45175         * m4/memcoll.m4 (gl_MEMCOLL):
45176         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
45177         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
45178         * m4/memxor.m4 (gl_MEMXOR):
45179         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
45180         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
45181         * m4/modechange.m4 (gl_MODECHANGE):
45182         * m4/mountlist.m4 (gl_MOUNTLIST):
45183         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45184         * m4/openat.m4 (gl_FUNC_OPENAT):
45185         * m4/pathmax.m4 (gl_PATHMAX):
45186         * m4/physmem.m4 (gl_PHYSMEM):
45187         * m4/posixtm.m4 (gl_POSIXTM):
45188         * m4/posixver.m4 (gl_POSIXVER):
45189         * m4/quote.m4 (gl_QUOTE):
45190         * m4/quotearg.m4 (gl_QUOTEARG):
45191         * m4/readtokens.m4 (gl_READTOKENS):
45192         * m4/readutmp.m4 (gl_READUTMP):
45193         * m4/regex.m4 (gl_REGEX):
45194         * m4/safe-read.m4 (gl_SAFE_READ):
45195         * m4/safe-write.m4 (gl_SAFE_WRITE):
45196         * m4/same.m4 (gl_SAME):
45197         * m4/save-cwd.m4 (gl_SAVE_CWD):
45198         * m4/savedir.m4 (gl_SAVEDIR):
45199         * m4/settime.m4 (gl_SETTIME):
45200         * m4/sha1.m4 (gl_SHA1):
45201         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
45202         * m4/stat-macros.m4 (gl_STAT_MACROS):
45203         * m4/stat-time.m4 (gl_STAT_TIME):
45204         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
45205         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
45206         * m4/strdup.m4 (gl_FUNC_STRDUP):
45207         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
45208         * m4/strndup.m4 (gl_FUNC_STRNDUP):
45209         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
45210         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
45211         * m4/time_r.m4 (gl_TIME_R):
45212         * m4/timespec.m4 (gl_TIMESPEC):
45213         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
45214         * m4/unlinkdir.m4 (gl_UNLINKDIR):
45215         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
45216         * m4/userspec.m4 (gl_USERSPEC):
45217         * m4/utimecmp.m4 (gl_UTIMECMP):
45218         * m4/utimens.m4 (gl_UTIMENS):
45219         * m4/xalloc.m4 (gl_XALLOC):
45220         * m4/xgetcwd.m4 (gl_XGETCWD):
45221         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
45222         * m4/xreadlink.m4 (gl_XREADLINK):
45223         * m4/xstrtod.m4 (gl_XSTRTOD):
45224         * m4/yesno.m4 (gl_YESNO):
45225         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
45226         to get the necessary .h files and whatnot.
45227
45228 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
45229             Bruno Haible  <bruno@clisp.org>
45230
45231         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
45232         /bin/sh understanding of '!' conditional negation.
45233
45234 2006-08-21  Jim Meyering  <jim@meyering.net>
45235
45236         * modules/openat (Depends-on): Really alphabetize.
45237
45238         * modules/acl (Depends-on): Add error and quote.
45239
45240         * check-module (find_included_lib_files): Add at-func.c to the
45241         ok-to-include-more-than-once white list.
45242
45243         * modules/openat (Depends-on): Add lstat.  Alphabetize.
45244
45245 2006-08-21  Bruno Haible  <bruno@clisp.org>
45246
45247         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45248         Emit a pkgdata_DATA variable only if some snippets add contents to it.
45249         Reported by Martin Lambers <marlam@marlam.de>.
45250
45251 2006-08-21  Bruno Haible  <bruno@clisp.org>
45252
45253         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
45254         specify an installation location, don't emit a noinst_LIBRARIES or
45255         noinst_LTLIBRARIES assignment.
45256
45257 2006-08-21  Bruno Haible  <bruno@clisp.org>
45258
45259         BeOS portability.
45260         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
45261         BeOS has mbrtowc() but no <wctype.h>.
45262
45263 2006-08-21  Bruno Haible  <bruno@clisp.org>
45264
45265         BeOS portability.
45266         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
45267         exist.
45268
45269 2006-08-21  Bruno Haible  <bruno@clisp.org>
45270
45271         BeOS portability.
45272         * lib/mbchar.h: Include <wctype.h> only if it exists.
45273
45274 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45275
45276         Remove files that are no longer needed by their respective modules.
45277         * m4/obstack.m4: Remove.
45278         * m4/strerror_r.m4: Remove.
45279         * m4/uint32_t.m4: Remove.
45280         * m4/uintptr_t.m4: Remove.
45281         * m4/ullong_max.m4: Remove.
45282         * m4/xstrtoimax.m4: Remove.
45283         * m4/xstrtoumax.m4: Remove.
45284
45285         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
45286         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
45287         dependencies now capture this.
45288
45289         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
45290         Do not use AC_LIBSOURCES, since gnulib modules now do this.
45291         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
45292         * m4/human.m4 (gl_HUMAN): Likewise.
45293         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
45294         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
45295
45296         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
45297
45298         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
45299         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
45300         stdint.
45301         * m4/human.m4 (gl_HUMAN): Likewise.
45302         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
45303         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
45304         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45305         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45306         * m4/xstrtol (gl_XSTRTOL): Likewise.
45307
45308         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
45309         AC_TYPE_LONG_LONG_INT.
45310         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45311         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45312         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45313         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45314
45315         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45316         on stdbool.
45317
45318         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45319         (gl_PREREQ_XSTRTOUL): Remove.
45320
45321         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45322
45323         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45324         mode.
45325
45326 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45327
45328         Add and change modules to make it easier for coreutils to use
45329         gnulib-tool.
45330         * modules/backupfile (Files): Remove m4/d-ino.m4.
45331         (Depends-on): Add d-ino.
45332         * modules/cycle-check (Depends-on): Add stdint.
45333         (lib_SOURCES): Add cycle-check.h.
45334         * modules/d-ino: New module.
45335         * modules/d-type: New module.
45336         * modules/error (Files): Remove m4/strerror_r.m4.
45337         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45338         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45339         m4/inttypes_h.m4, m4/uintmax_t.m4.
45340         (Depends-on): Add stdint.
45341         (lib_SOURCES): Add fsusage.h.
45342         * modules/getcwd (Files): Remove d-ino.m4.
45343         (Depends-on): Add d-ino.
45344         * modules/getndelim2 (Depends-on): Add stdint.
45345         * modules/glob (Files): Remove m4/d-type.m4.
45346         (Depends-on): Add d-type.
45347         * modules/host-os: New module.
45348         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45349         m4/inttypes_h.m4, m4/uintmax_t.m4.
45350         * Depends-on: Add stdint.
45351         (lib_SOURCES): Add human.h.
45352         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45353         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45354         m4/uintmax_t.m4, m4/ulonglong.m4.
45355         (Depends-on): Add stdint.
45356         (EXTRA_DIST): Add inttostr.h.
45357         * modules/lchmod: New module.
45358         * modules/link-follow: New module.
45359         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45360         (Depends-on): Add lchmod.
45361         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45362         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45363         (Depends-on): Add stdint.
45364         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45365         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45366         (Depends-on): Add stdint.
45367         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45368         * modules/perl: New module.
45369         * modules/regex (Depends-on): Add stdint.
45370         * modules/rmdir-errno: New module.
45371         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45372         m4/intmax_t.m4.
45373         (Depends-on): Add stdint.
45374         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45375         m4/uintmax_t.m4.
45376         (Depends-on): Add stdint.
45377         * modules/unlink-busy: New module.
45378         * modules/utimecmp (Depends-on): Add stdint.
45379         * modules/uptime: New module.
45380         * modules/winsz-ioctl: New module.
45381         * modules/winsz-termios: New module.
45382         * modules/xnanosleep (Depends-on): Add nanosleep.
45383         * modules/ullong_max: Remove.
45384         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45385         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45386         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45387         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45388         (Depends-on): Add inttypes.
45389         (lib_SOURCES): Add xstrtol.h.
45390         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45391         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45392         * MODULES.html.sh: Move 'assert' into the assert section.
45393         Move 'dummy' into the linking section.
45394         Remove ullong_max.
45395         Add section for compatibility checks for POSIX:2001 functions,
45396         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45397         winsz-ioctl, and winsz-termios into it.
45398         Add lchmod.
45399         Add top-level Misc section and put host-os, perl, and uptime
45400         into it.
45401
45402 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45403
45404         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45405         now assume the stdint module.  Do not include inttypes.h.
45406         * lib/fsusage.h: Likewise.
45407         * lib/getndelim2.c: Likewise.
45408         * lib/human.h: Likewise.
45409         * lib/inttostr.h: Likewise.
45410         * lib/obstack.c: Likewise.
45411         * lib/regex_internal.h: Likewise.
45412         * lib/tempname.c: Likewise.
45413         * lib/utimecmp.c: Likewise.
45414         * lib/xstrtol.h: Likewise.
45415
45416         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45417
45418         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45419         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45420         * lib/xtime.h: Likewise.
45421
45422 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45423
45424         * modules/openat (Files): Add lib/fchmodat.c.
45425         Fixes problem reported by Jay Youngman.
45426
45427 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45428
45429         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45430         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45431
45432 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45433             Bruno Haible  <bruno@clisp.org>
45434
45435         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45436         and is a script that invokes bison. Tighten the code. Add comments.
45437
45438 2006-08-18  Jim Meyering  <jim@meyering.net>
45439
45440         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45441         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45442         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45443         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45444
45445 2006-08-18  Bruno Haible  <bruno@clisp.org>
45446
45447         * modules/bison-i18n: New file.
45448         * MODULES.html.sh (Internationalization functions): Add it.
45449
45450 2006-08-18  Bruno Haible  <bruno@clisp.org>
45451
45452         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45453         sys/statvfs.h. When getmntinfo was found, check its declaration and
45454         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45455
45456 2006-08-18  Bruno Haible  <bruno@clisp.org>
45457
45458         * m4/bison-i18n.m4: New file, from bison.
45459
45460 2006-08-18  Bruno Haible  <bruno@clisp.org>
45461
45462         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45463         (ME_DUMMY): Treat "kernfs" as a dummy.
45464         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45465
45466 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45467
45468         Update from coreutils.
45469
45470         2006-08-15  Jim Meyering  <jim@meyering.net>
45471
45472         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45473
45474         2006-01-17  Jim Meyering  <jim@meyering.net>
45475
45476         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45477
45478         2006-01-11  Jim Meyering  <jim@meyering.net>
45479
45480         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45481         Check for the lchmod function.
45482
45483 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45484
45485         Update from coreutils.
45486
45487         * lib/__fpending.h: Add copyright notice.
45488         * lib/fprintftime.h: Likewise.
45489         * lib/savedir.c: Use (C) in copyright notice.
45490         * lib/savedir.h: Likewise.
45491
45492         2006-08-15  Jim Meyering  <jim@meyering.net>
45493
45494         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45495         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45496         in support of the EXPECTED_ERRNO macro.
45497         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45498         definitions.  Instead, define the appropriate symbols and include
45499         "at-func.c".
45500         * lib/mkdirat.c (mkdirat): Likewise.
45501         * lib/fchmodat.c (fchmodat): Likewise.
45502         (ENOSYS): Remove definition.
45503         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45504         it.  Don't include "unistd--.h" -- it wasn't ever used.
45505
45506         2006-01-17  Jim Meyering  <jim@meyering.net>
45507
45508         Rewrite fts.c not to change the current working directory,
45509         by using openat, fstatat, fdopendir, etc..
45510
45511         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45512         (HAVE_OPENAT_SUPPORT): Define.
45513         [_LIBC] (fchdir): Don't undef or define; no longer used.
45514         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45515         Now, this `function' always succeeds, and consumes its file descriptor
45516         parameter -- so callers must not close such FDs.  Update callers.
45517         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45518         (diropen): Add parameter, SP.  Adjust all callers.
45519         Implement using diropen_fd, rather than open.
45520         (fts_open): Initialize new member, fts_cwd_fd.
45521         Remove fts_rft-setting code.
45522         (fts_close): Close fts_cwd_fd, if necessary.
45523         (__opendir2): Define in terms of opendir or opendirat,
45524         depending on whether the FST_NOCHDIR flag is set.
45525         (fts_build): Since fts_safe_changedir consumes its FD, and since
45526         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45527         and close the dup'd file descriptor upon failure.
45528         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45529         (fts_safe_changedir): Tweak semantics to reflect that this function
45530         now calls cwd_advance_fd and hence consumes its FD argument.
45531         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45532         [struct FTS] (fts_rft): Remove now-unused member.
45533         [struct FTS] (fts_cycle.state): Improve comment.
45534
45535         * lib/openat.c (openat_needs_fchdir): New function.
45536         * lib/openat.h (openat_needs_fchdir): Declare it.
45537
45538 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45539
45540         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45541         Problem and fix reported by Pádraig Brady in
45542         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45543
45544 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45545
45546         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45547
45548 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45549
45550         * lib/memcoll.c (memcoll): Optimize for the common case where the
45551         arguments are bytewise equal.
45552
45553 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45554
45555         * doc/regexprops-generic.texi: Add a copyright notice.
45556
45557 2006-08-15  Bruno Haible  <bruno@clisp.org>
45558
45559         * modules/tmpdir (License): Change to LGPL.
45560
45561 2006-08-15  Bruno Haible  <bruno@clisp.org>
45562
45563         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45564         module.
45565
45566 2006-08-14  Simon Josefsson  <jas@extundo.com>
45567
45568         * config/srclist.txt: Add gnupload.
45569
45570 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45571
45572         Change copyright notice from LGPL 2 to GPL 2, since that's the
45573         standard form used in the gnulib repository.
45574         * tests/test-lock.c: Likewise.
45575         * tests/test-stdint.c: Likewise.
45576         * tests/test-tls.c: Likewise.
45577
45578         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45579         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45580         Add copyright notice.
45581
45582         * check-module: Add copyright notice.  Output a copyright
45583         notice if "--version" is specified.
45584         * modules/COPYING: New file.
45585         * tests/test-getaddrinfo.c: Add copyright notice.
45586         * tests/test-verify.c: Likewise.
45587
45588 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45589
45590         Change copyright notice from LGPL 2 to GPL 2, since that's the
45591         standard form used in the gnulib repository.
45592         * lib/lock.c: LGPL -> GPL.
45593         * lib/lock.h: Likewise.
45594         * lib/strnlen1.c: Likewise.
45595         * lib/strnlen1.h: Likewise.
45596         * lib/tls.c: Likewise.
45597         * lib/tls.h: Likewise.
45598         * lib/tmpdir.c: Likewise.
45599
45600         * lib/TODO: Remove; this belongs only in coreutils.
45601
45602 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45603
45604         Add copyright notices to long-enough files that lack them, since
45605         otherwise the files aren't clearly free.  Use the same notice that
45606         getdate.texi already uses.
45607         * doc/alloca-opt.texi: Add copyright notice.
45608         * doc/alloca.texi: Likewise.
45609         * doc/ctime.texi: Likewise.
45610         * doc/functions.texi: Likewise.
45611         * doc/gcd.texi: Likewise.
45612         * doc/gnulib-tool.texi: Likewise.
45613         * doc/inet_ntoa.texi: Likewise.
45614         * doc/visibility.texi: Likewise.
45615
45616         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45617         * doc/quote.texi: Add copyright notice.
45618
45619         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45620         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45621         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45622         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45623         is now obsolete, and give a pointer to the Sun list.
45624         Add copyright notice.
45625
45626 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45627
45628         * config/srclistvars.sh: Add copyright notice.
45629
45630 2006-08-14  Eric Blake  <ebb9@byu.net>
45631
45632         Import the following change from libc:
45633
45634         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45635
45636         Upstream bug 2997.
45637         * lib/misc/error.c: Add space between program name and message if file
45638         name is missing.
45639
45640 2006-08-12  Karl Berry  <karl@gnu.org>
45641
45642         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45643         remove, these originate in gnulib now.
45644
45645 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45646
45647         * doc/Makefile (standards.info standards.html standards.dvi):
45648         Also depend on make-stds.texi.
45649
45650 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45651
45652         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45653         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45654
45655         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45656         in wchar_t.  Problem reported by Eric Blake.
45657
45658         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45659         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45660         Also, help the compiler to keep LEN in a register.
45661
45662 2006-08-11  Eric Blake  <ebb9@byu.net>
45663
45664         * users.txt: Sort.  Add tar.
45665
45666 2006-08-11  Bruno Haible  <bruno@clisp.org>
45667
45668         * users.txt: New file.
45669
45670 2006-08-11  Bruno Haible  <bruno@clisp.org>
45671
45672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45673         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45674
45675 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45676
45677         * modules/snprintf (Depends-on): Remove minmax.
45678         (Maintainer): Add self and Bruno.
45679
45680 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45681
45682         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45683         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45684         (EOVERFLOW): Define if the system does not.
45685         Do not include "minmax.h"; it wasn't used.
45686         (snprintf): Don't assume size_t promotes to an unsigned type.
45687         Fix bug when generated string was too long for the buffer: the
45688         buffer's contents are supposed to be the initial prefix of the
45689         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45690         exceeds INT_MAX; do the check ourselves.
45691
45692         Import the following changes from libc:
45693
45694         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45695
45696         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45697         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45698         set wc to the byte which couldn't be converted.
45699         (re_string_reconstruct): Don't clear valid_raw_len before calling
45700         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45701         tip_context using re_string_context_at.
45702
45703         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45704
45705         * lib/posix/regex.h: g++ still cannot handled [restrict].
45706
45707         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45708
45709         * lib/posix/regex.h: Remove special handling for VMS.
45710
45711 2006-08-10  Jim Meyering  <jim@meyering.net>
45712
45713         * modules/same-inode: New module.
45714         * modules/dev-ino: New module.
45715         * modules/cycle-check: Depend on these modules, rather than simply
45716         including their .h files.
45717         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45718         required via m4/cycle-check.m4.
45719         * modules/same: Depend on new same-inode module, rather than
45720         including same-inode.h.
45721         * modules/chdir-safer: New file.
45722
45723         * modules/chown (Depends-on): Add stat-macros.
45724
45725 2006-08-10  Jim Meyering  <jim@meyering.net>
45726
45727         * m4/cycle-check.m4: New file.
45728         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45729         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45730
45731 2006-08-10  Eric Blake  <ebb9@byu.net>
45732
45733         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45734         in from original proposal.
45735
45736 2006-08-10  Eric Blake  <ebb9@byu.net>
45737         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45738
45739         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45740         namespace.
45741
45742 2006-08-10  Bruno Haible  <bruno@clisp.org>
45743
45744         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45745         as well.
45746
45747 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45748
45749         Sync from coreutils.
45750
45751         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45752
45753         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45754         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45755
45756 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45757
45758         * modules/restrict: Remove; no longer needed now that we assume
45759         Autoconf 2.59 or later.
45760         * MODULES.html.sh: Remove 'restrict'.
45761         * modules/argp (Depends-on): Remove 'restrict'.
45762         * modules/base64 (Depends-on): Likewise.
45763         * modules/gc (Depends-on): Likewise.
45764         * modules/getaddrinfo (Depends-on): Likewise.
45765         * modules/glob (Depends-on): Likewise.
45766         * modules/inet_ntop (Depends-on): Likewise.
45767         * modules/inet_pton (Depends-on): Likewise.
45768         * modules/memxor (Depends-on): Likewise.
45769         * modules/regex (Depends-on): Likewise.
45770         * modules/strtok_r (Depends-on): Likewise.
45771         * modules/time_r (Depends-on): Likewise.
45772
45773 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45774
45775         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45776         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45777         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45778         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45779         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45780         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45781         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45782         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45783
45784         Merge from coreutils.
45785         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45786         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45787         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45788         * m4/time_r.m4 (gl_TIME_R): Likewise.
45789
45790 2006-08-09  Karl Berry  <karl@gnu.org>
45791
45792         * config/srclist.txt: no more gettext-tools, per Bruno.
45793
45794 2006-08-08  Eric Blake  <ebb9@byu.net>
45795
45796         * modules/verror: New module.
45797         * MODULES.html.sh: Document it.
45798
45799 2006-08-08  Eric Blake  <ebb9@byu.net>
45800
45801         * lib/verror.h, lib/verror.c: New files.
45802
45803 2006-08-08  Eric Blake  <ebb9@byu.net>
45804
45805         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45806         verror_at_line output complies with GNU Coding Standards even when
45807         file is NULL.
45808
45809 2006-08-07  Bruno Haible  <bruno@clisp.org>
45810
45811         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45812         versions of AIX.
45813         Reported by Ralf Wildenhues.
45814
45815 2006-08-07  Bruno Haible  <bruno@clisp.org>
45816
45817         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45818         in an AC_DEFUN. Needed so that the autoconf snippets can use
45819         AC_REQUIRE.
45820
45821 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45822
45823         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45824         Initialize pkgdata_DATA.
45825         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45826         overriding it.
45827
45828 2006-08-06  Eric Blake  <ebb9@byu.net>
45829
45830         * lib/error.h: Fold in some upstream changes from glibc.
45831         * lib/error.c: Likewise.
45832
45833 2006-08-04  Bruno Haible  <bruno@clisp.org>
45834
45835         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45836         Make the mostlyclean-local rule depend on mostlyclean-generic.
45837         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45838
45839 2006-07-31  Bruno Haible  <bruno@clisp.org>
45840
45841         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45842         <stdlib.h>, <string.h>.
45843
45844 2006-07-30  Bruno Haible  <bruno@clisp.org>
45845
45846         * modules/readlink (License): Change to LGPL.
45847
45848 2006-07-30  Bruno Haible  <bruno@clisp.org>
45849
45850         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45851         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45852         set PKGDATADIR to point to it.
45853
45854 2006-07-30  Bruno Haible  <bruno@clisp.org>
45855
45856         * modules/csharpexec (configure.ac): Comment out macro invocation.
45857         * modules/javaexec (configure.ac): Likewise.
45858         * modules/javacomp-script (configure.ac): Likewise.
45859
45860         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45861
45862 2006-07-30  Bruno Haible  <bruno@clisp.org>
45863
45864         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45865         linked-list.
45866
45867 2006-07-30  Bruno Haible  <bruno@clisp.org>
45868
45869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45870
45871 2006-07-30  Bruno Haible  <bruno@clisp.org>
45872
45873         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45874         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45875         get removed.
45876
45877 2006-07-29  Bruno Haible  <bruno@clisp.org>
45878
45879         Make it possible for gnulib-tool to work with locally modified or
45880         augmented gnulib repositories.
45881         * gnulib-tool (func_usage): Document --local-dir option.
45882         (local_gnulib_dir): New variable.
45883         Handle --local-dir option.
45884         (func_lookup_file): New function.
45885         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45886         (func_get_description, func_get_filelist, func_get_description,
45887         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45888         func_get_automake_snippet, func_get_include_directive,
45889         func_get_license, func_get_maintainer): Use func_lookup_file.
45890         (func_import, func_create_testdir): Use func_lookup_file.
45891
45892 2006-07-29  Bruno Haible  <bruno@clisp.org>
45893
45894         * modules/setenv (Depends-on): Add unistd.
45895
45896 2006-07-29  Bruno Haible  <bruno@clisp.org>
45897
45898         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45899
45900 2006-07-29  Bruno Haible  <bruno@clisp.org>
45901
45902         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45903
45904 2006-07-29  Bruno Haible  <bruno@clisp.org>
45905
45906         * gnulib-tool (import, update): If there is no Makefile.am, look at
45907         aclocal.m4, instead of bailing out.
45908
45909 2006-07-29  Bruno Haible  <bruno@clisp.org>
45910
45911         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45912         Categorize the options by when they are useful.
45913
45914 2006-07-29  Bruno Haible  <bruno@clisp.org>
45915
45916         * gnulib-tool (func_usage): Document option --no-libtool.
45917         Handle option --no-libtool.
45918         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45919         for changed semantics of $libtool variable.
45920         (func_import): Likewise. If libtool is not used, show this through
45921         an option --no-libtool.
45922         (func_create_testdir): Update.
45923
45924 2006-07-29  Bruno Haible  <bruno@clisp.org>
45925
45926         * gnulib-tool (func_import): Extend error message about missing
45927         --doc-base.
45928
45929 2006-07-29  Bruno Haible  <bruno@clisp.org>
45930
45931         * gnulib-tool (func_import): Don't create the $docbase directory if
45932         there is no file to store there.
45933
45934 2006-07-29  Bruno Haible  <bruno@clisp.org>
45935
45936         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45937         relevant, look for configure.ac there, not in the current directory.
45938         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45939
45940 2006-07-29  Bruno Haible  <bruno@clisp.org>
45941
45942         * gnulib-tool (SORT): New variable.
45943         (func_usage): Undocument --assume-autoconf option.
45944         Remove --assume-autoconf option handling.
45945         (autoconf_minversion): Determine from the contents of configure.ac.
45946         (func_import): Remove autoconf_minversion handling.
45947         Suggested by Eric Blake.
45948
45949 2006-07-29  Bruno Haible  <bruno@clisp.org>
45950
45951         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45952
45953 2006-07-29  Bruno Haible  <bruno@clisp.org>
45954
45955         * config/srclist.txt (*setenv.[ch]): Remove rules.
45956
45957 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45958
45959         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45960
45961 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45962
45963         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45964         arpa/inet.h.
45965
45966 2006-07-28  Simon Josefsson  <jas@extundo.com>
45967
45968         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45969         * modules/inet_pton (Depends-on): Likewise.
45970
45971 2006-07-28  Simon Josefsson  <jas@extundo.com>
45972
45973         * m4/netinet_in_h.m4: New file.
45974
45975 2006-07-28  Simon Josefsson  <jas@extundo.com>
45976
45977         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45978         #include's.
45979
45980 2006-07-28  Simon Josefsson  <jas@extundo.com>
45981
45982         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45983         #include's.
45984
45985 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45986
45987         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45988         setgid on directories only if they set these bits.
45989         * lib/modechange.h: Remove obsolete comment about masks.
45990
45991 2006-07-28  Eric Blake  <ebb9@byu.net>
45992
45993         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45994         macro expansion.
45995
45996 2006-07-28  Bruno Haible  <bruno@clisp.org>
45997
45998         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45999
46000 2006-07-28  Bruno Haible  <bruno@clisp.org>
46001
46002         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
46003
46004 2006-07-28  Bruno Haible  <bruno@clisp.org>
46005
46006         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46007         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46008         Define fallbacks.
46009         Avoids link error on FreeBSD 4.x.
46010         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46011
46012         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
46013         encoding.
46014         * lib/mbswidth.c (iswcntrl): Likewise.
46015
46016 2006-07-27  Bruno Haible  <bruno@clisp.org>
46017
46018         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
46019         test.
46020
46021 2006-07-27  Bruno Haible  <bruno@clisp.org>
46022
46023         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
46024         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
46025         defined.
46026
46027 2006-07-26  Eric Blake  <ebb9@byu.net>
46028
46029         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
46030
46031 2006-07-26  Eric Blake  <ebb9@byu.net>
46032
46033         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
46034         like mingw that lack mkstemp.
46035         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
46036         avoid compilation warning on mingw.
46037
46038 2006-07-26  Bruno Haible  <bruno@clisp.org>
46039
46040         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
46041         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
46042         INT_FAST*_MIN, INTPTR_MIN.
46043
46044 2006-07-25  Bruno Haible  <bruno@clisp.org>
46045
46046         * modules/version-etc (Depends-on): Add stdarg.
46047
46048 2006-07-25  Bruno Haible  <bruno@clisp.org>
46049
46050         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
46051         complex commands.
46052
46053 2006-07-25  Bruno Haible  <bruno@clisp.org>
46054
46055         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
46056         defined in <stdarg.h> or config.h.
46057
46058 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46059
46060         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
46061         (gl_STDIO_SAFER): Remove.
46062
46063 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
46064
46065         * MODULES.html.sh (File stream based Input/Output):
46066         Add fopen-safer, tmpfile-safer; remove stdio-safer.
46067         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
46068         * modules/fopen-safer, modules/tmpfile-safer: New files.
46069         * modules/stdio-safer: Remove.
46070
46071 2006-07-24  Bruno Haible  <bruno@clisp.org>
46072
46073         * modules/tmpdir: New file.
46074         * MODULES.html.sh (File system functions): Add it.
46075
46076 2006-07-24  Bruno Haible  <bruno@clisp.org>
46077
46078         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
46079         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
46080
46081 2006-07-24  Bruno Haible  <bruno@clisp.org>
46082
46083         * modules/clean-temp: New file.
46084
46085 2006-07-24  Bruno Haible  <bruno@clisp.org>
46086
46087         * m4/tmpdir.m4: New file, from GNU gettext.
46088
46089 2006-07-24  Bruno Haible  <bruno@clisp.org>
46090
46091         * lib/tmpdir.h: New file, from GNU gettext.
46092         * lib/tmpdir.c: New file, from GNU gettext.
46093
46094 2006-07-24  Bruno Haible  <bruno@clisp.org>
46095
46096         * lib/clean-temp.h: New file, from GNU gettext.
46097         * lib/clean-temp.c: New file, from GNU gettext.
46098
46099 2006-07-23  Eric Blake  <ebb9@byu.net>
46100
46101         * modules/stdio-safer (Files): Add tmpfile-safer.c.
46102         (Depends-on): Add binary-io.
46103
46104 2006-07-23  Eric Blake  <ebb9@byu.net>
46105
46106         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
46107
46108 2006-07-23  Eric Blake  <ebb9@byu.net>
46109
46110         * lib/tmpfile-safer.c: New file.
46111         * lib/stdio-safer.h (fopen_safer): Add prototype.
46112         * lib/stdio--.h (tmpfile): Make safer.
46113
46114 2006-07-23  Bruno Haible  <bruno@clisp.org>
46115
46116         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
46117         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
46118         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
46119         gl_linked_remove_at): Use it.
46120
46121 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46122         and Simon Josefsson <jas@extundo.com>
46123
46124         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
46125
46126         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
46127
46128 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46129
46130         * modules/close-stream: New file.
46131         * modules/closeout (Description): Make it clear that it exits
46132         with a diagnostic on error.
46133         (Depends-on): Add close-stream.  Remove fpending, stdbool.
46134         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
46135
46136 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46137
46138         * m4/close-stream.m4: New file.
46139
46140 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46141
46142         * lib/close-stream.c, lib/close-stream.h: New files.
46143
46144 2006-07-22  Bruno Haible  <bruno@clisp.org>
46145
46146         Merge from GNU gettext 0.15.
46147
46148         2006-05-01  Bruno Haible  <bruno@clisp.org>
46149
46150                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
46151
46152         2006-07-22  Bruno Haible  <bruno@clisp.org>
46153
46154                 * modules/javaversion: New file.
46155                 * MODULES.html.sh (Java): Add javaversion.
46156
46157         2006-03-12  Bruno Haible  <bruno@clisp.org>
46158
46159                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
46160
46161         2005-12-04  Bruno Haible  <bruno@clisp.org>
46162
46163                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
46164                 (untested).
46165
46166         2006-06-21  Bruno Haible  <bruno@clisp.org>
46167
46168                 Avoid warnings from recent versions of mcs.
46169                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
46170                 -o, -L, -r any more. Use options documented since mcs-1.0
46171                 instead. Similarly for -g.
46172
46173         2005-12-04  Bruno Haible  <bruno@clisp.org>
46174
46175                 * build-aux/csharpcomp.sh.in: Suffix for resources is
46176                 .resources, not .resource.
46177
46178         2005-07-09  Bruno Haible  <bruno@clisp.org>
46179
46180                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
46181                 add a .dll suffix.
46182                 Reported by Mark Junker <mjscod@gmx.de>.
46183
46184         2006-07-22  Bruno Haible  <bruno@clisp.org>
46185
46186                 * modules/gettext: Upgrade to gettext-0.15.
46187                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
46188                 m4/visibility.m4.
46189                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
46190
46191 2006-07-22  Bruno Haible  <bruno@clisp.org>
46192
46193         Merge from GNU gettext 0.15.
46194
46195         2006-03-25  Bruno Haible  <bruno@clisp.org>
46196
46197                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
46198
46199         2006-07-21  Bruno Haible  <bruno@clisp.org>
46200
46201                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
46202                 "1.1".
46203
46204         2006-05-09  Bruno Haible  <bruno@clisp.org>
46205
46206                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
46207                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
46208                 for the conftestver execution.
46209
46210         2006-05-01  Bruno Haible  <bruno@clisp.org>
46211
46212                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
46213                 optional target-version argument. Verify that the compiler
46214                 groks source of the specified source-version, or add -source
46215                 option as necessary. Verify that the compiler produces
46216                 bytecode in the specified target-version, or add -target and
46217                 -source options as necessary. Make the result of the test
46218                 available as variable CONF_JAVAC. Also log error output in
46219                 config.log.
46220
46221         2006-03-11  Bruno Haible  <bruno@clisp.org>
46222
46223                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
46224
46225         2006-05-09  Bruno Haible  <bruno@clisp.org>
46226
46227                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
46228                 CLASSPATH_SEPARATOR to a semicolon.
46229
46230         2006-03-12  Bruno Haible  <bruno@clisp.org>
46231
46232                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
46233                 available as variable CONF_JAVA, for subsequent autoconf
46234                 tests. Also log error output in config.log.
46235
46236         2006-07-19  Bruno Haible  <bruno@clisp.org>
46237
46238                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
46239                 that getline works on glibc2 systems. Needed to avoid trouble
46240                 in relocatable.c.
46241                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
46242
46243         2005-12-04  Bruno Haible  <bruno@clisp.org>
46244
46245                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
46246                 launcher (untested).
46247
46248         2005-12-04  Bruno Haible  <bruno@clisp.org>
46249
46250                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
46251
46252         2006-07-22  Bruno Haible  <bruno@clisp.org>
46253
46254                 * gettext.m4: Update from GNU gettext-0.15.
46255                 * nls.m4: Likewise.
46256                 * po.m4: Likewise.
46257                 * inttypes-pri.m4: Likewise.
46258                 * inttypes-h.m4: Renamed from inttypes.m4.
46259                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
46260
46261 2006-07-22  Bruno Haible  <bruno@clisp.org>
46262
46263         Merge from GNU gettext 0.15.
46264
46265         2005-07-05  Bruno Haible  <bruno@clisp.org>
46266
46267                 * printf-args.c (printf_fetchargs): Work around broken
46268                 definition of wint_t on mingw.
46269
46270         2005-02-12  Bruno Haible  <bruno@clisp.org>
46271
46272                 * xallocsa.h: Add extern "C" for C++.
46273
46274         2006-05-17  Bruno Haible  <bruno@clisp.org>
46275
46276                 Cygwin portability.
46277                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
46278
46279         2006-04-30  Bruno Haible  <bruno@clisp.org>
46280
46281                 * progreloc.c: Include <mach-o/dyld.h> if available.
46282                 (find_executable): Use _NSGetExecutablePath when possible.
46283
46284         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46285
46286                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
46287                 function.
46288
46289         2005-12-29  Bruno Haible  <bruno@clisp.org>
46290
46291                 * progreloc.c (set_program_name_and_installdir): Fix
46292                 compilation error.
46293
46294         2005-12-04  Bruno Haible  <bruno@clisp.org>
46295
46296                 Cygwin portability.
46297                 * progreloc.c: Include <windows.h> also on Cygwin.
46298                 (find_executable): Add support for Cygwin.
46299                 (set_program_name_and_installdir): Handle also platforms with
46300                 nonempty EXEEXT.
46301
46302         2006-07-11  Bruno Haible  <bruno@clisp.org>
46303
46304                 * javacomp.c: Fix a comment.
46305                 Reported by Jim Meyering.
46306
46307         2006-04-30  Bruno Haible  <bruno@clisp.org>
46308
46309                 * javacomp.h (compile_java_class): Add source_version,
46310                 target_version arguments.
46311                 * javacomp.c: Rewritten to choose only a compiler that
46312                 respects the specified source_version and target_version.
46313
46314         2006-06-27  Bruno Haible  <bruno@clisp.org>
46315
46316                 Assume correct S_ISDIR macro.
46317                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46318
46319         2006-07-22  Bruno Haible  <bruno@clisp.org>
46320
46321                 * javaversion.h: New file, from GNU gettext.
46322                 * javaversion.c: New file, from GNU gettext.
46323                 * javaversion.java: New file, from GNU gettext.
46324                 * javaversion.class: New file, from GNU gettext.
46325
46326         2006-05-17  Bruno Haible  <bruno@clisp.org>
46327
46328                 Cygwin portability.
46329                 * javaexec.c (execute_java_class): Test for jview program
46330                 also on Cygwin.
46331
46332         2006-04-09  Bruno Haible  <bruno@clisp.org>
46333
46334                 * fatal-signal.c: Don't include string.h.
46335                 (at_fatal_signal): Use a copying loop instead of memcpy.
46336
46337         2005-12-04  Bruno Haible  <bruno@clisp.org>
46338
46339                 * csharpexec.c: Add support for 'clix' launcher (untested).
46340                 (execute_csharp_using_sscli): New function.
46341                 (execute_csharp_program): Call it.
46342
46343         2006-06-21  Bruno Haible  <bruno@clisp.org>
46344
46345                 Avoid warnings from recent versions of mcs.
46346                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46347                 -o, -L, -r any more. Use options documented since mcs-1.0
46348                 instead. Similarly for -g.
46349
46350         2005-07-09  Bruno Haible  <bruno@clisp.org>
46351
46352                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46353                 add a .dll suffix.
46354                 Reported by Mark Junker <mjscod@gmx.de>.
46355
46356         2006-06-17  Bruno Haible  <bruno@clisp.org>
46357
46358                 * config.charset: Update for NetBSD 3.0.
46359
46360         2006-05-17  Bruno Haible  <bruno@clisp.org>
46361
46362                 Cygwin portability.
46363                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46364
46365         2006-05-16  Bruno Haible  <bruno@clisp.org>
46366
46367                 * localcharset.c [CYGWIN]: Include <windows.h>.
46368                 (get_charset_aliases): For Cygwin, return the same CPxxx
46369                 aliases list as under WIN32.
46370                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46371                 the environment variables. Fall back to GetACP().
46372
46373         2006-04-05  Bruno Haible  <bruno@clisp.org>
46374
46375                 * config.charset: Update Juan Manuel Guerrero's address.
46376
46377         2005-02-12  Bruno Haible  <bruno@clisp.org>
46378
46379                 * allocsa.h: Add extern "C" for C++.
46380
46381         2005-02-10  Bruno Haible  <bruno@clisp.org>
46382
46383                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46384                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46385
46386         2006-07-22  Bruno Haible  <bruno@clisp.org>
46387
46388                 * gettext.h: Update to GNU gettext-0.15.
46389
46390 2006-07-22  Bruno Haible  <bruno@clisp.org>
46391
46392         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46393         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46394         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46395
46396 2006-07-21  Eric Blake  <ebb9@byu.net>
46397
46398         * modules/stdlib-safer: New file.
46399         * MODULES.html.sh (File stream based Input/Output): Add
46400         stdlib-safer.
46401
46402 2006-07-21  Eric Blake  <ebb9@byu.net>
46403
46404         * lib/stdlib-safer.h: New file from coreutils, required by
46405         stdlib--.h.
46406
46407 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46408
46409         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46410
46411 2006-07-20  Bruno Haible  <bruno@clisp.org>
46412
46413         * gnulib-tool: Recognize new option --assume-autoconf.
46414         (autoconf_minversion): New variable.
46415         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46416
46417 2006-07-20  Bruno Haible  <bruno@clisp.org>
46418
46419         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46420
46421 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46422
46423         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46424         Reindent and repaginate.
46425
46426 2006-07-19  Derek Price  <derek@ximbiot.com>
46427
46428         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46429         Correct grammar.
46430
46431 2006-07-17  Bruno Haible  <bruno@clisp.org>
46432
46433         * modules/list: New file.
46434         * modules/array-list: New file.
46435         * modules/carray-list, modules/carray-list-tests: New files.
46436         * modules/linked-list, modules/linked-list-tests: New files.
46437         * modules/avltree-list, modules/avltree-list-tests: New files.
46438         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46439         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46440         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46441         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46442         * modules/oset: New file.
46443         * modules/array-oset: New file.
46444         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46445         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46446         * tests/test-carray_list.c: New file.
46447         * tests/test-linked_list.c: New file.
46448         * tests/test-avltree_list.c: New file.
46449         * tests/test-rbtree_list.c: New file.
46450         * tests/test-linkedhash_list.c: New file.
46451         * tests/test-avltreehash_list.c: New file.
46452         * tests/test-rbtreehash_list.c: New file.
46453         * tests/test-avltree_oset.c: New file.
46454         * tests/test-rbtree_oset.c: New file.
46455         * MODULES.html.sh (Container data structures): New section.
46456
46457 2006-07-17  Bruno Haible  <bruno@clisp.org>
46458
46459         * m4/gl_list.m4: New file.
46460
46461 2006-07-17  Bruno Haible  <bruno@clisp.org>
46462
46463         * lib/gl_list.h: New file.
46464         * lib/gl_list.c: New file.
46465         * lib/gl_array_list.h: New file.
46466         * lib/gl_array_list.c: New file.
46467         * lib/gl_carray_list.h: New file.
46468         * lib/gl_carray_list.c: New file.
46469         * lib/gl_linked_list.h: New file.
46470         * lib/gl_linked_list.c: New file.
46471         * lib/gl_anylinked_list1.h: New file.
46472         * lib/gl_anylinked_list2.h: New file.
46473         * lib/gl_avltree_list.h: New file.
46474         * lib/gl_avltree_list.c: New file.
46475         * lib/gl_anyavltree_list1.h: New file.
46476         * lib/gl_anyavltree_list2.h: New file.
46477         * lib/gl_rbtree_list.h: New file.
46478         * lib/gl_rbtree_list.c: New file.
46479         * lib/gl_anyrbtree_list1.h: New file.
46480         * lib/gl_anyrbtree_list2.h: New file.
46481         * lib/gl_anytree_list1.h: New file.
46482         * lib/gl_anytree_list2.h: New file.
46483         * lib/gl_linkedhash_list.h: New file.
46484         * lib/gl_linkedhash_list.c: New file.
46485         * lib/gl_anyhash_list1.h: New file.
46486         * lib/gl_anyhash_list2.h: New file.
46487         * lib/gl_avltreehash_list.h: New file.
46488         * lib/gl_avltreehash_list.c: New file.
46489         * lib/gl_rbtreehash_list.h: New file.
46490         * lib/gl_rbtreehash_list.c: New file.
46491         * lib/gl_anytreehash_list1.h: New file.
46492         * lib/gl_anytreehash_list2.h: New file.
46493
46494         * lib/gl_oset.h: New file.
46495         * lib/gl_oset.c: New file.
46496         * lib/gl_array_oset.h: New file.
46497         * lib/gl_array_oset.c: New file.
46498         * lib/gl_avltree_oset.h: New file.
46499         * lib/gl_avltree_oset.c: New file.
46500         * lib/gl_rbtree_oset.h: New file.
46501         * lib/gl_rbtree_oset.c: New file.
46502         * lib/gl_anytree_oset.h: New file.
46503
46504 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46505
46506         * m4/mkancesdirs.m4: New file.
46507         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46508         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46509         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46510         it.
46511
46512 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46513
46514         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46515         * lib/mkancesdirs.h: New files.
46516         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46517         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46518         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46519         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46520         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46521         callers changed.  Revamp internals significantly, by not
46522         attempting to create directories that are temporarily more
46523         permissive than the final results.  Do not attempt to use
46524         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46525         This removes some race conditions, fixes some bugs, and simplifies
46526         things.  Use new dirchownmod function to do owner and mode changes.
46527         * lib/mkdir-p.h: Likewise.
46528         * lib/modechange.c (octal_to_mode): New function.
46529         (struct mode_change): New member mentioned.
46530         (make_node_op_equals): New arg mentioned.  All callers changed.
46531         (mode_compile): Keep track of which mode bits the user has explicitly
46532         mentioned.
46533         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46534         New arg PMODE_BITS, to keep track of which mode bits the user
46535         mentioned; it treats S_ISUID and S_ISGID speciall.
46536         All callers changed.
46537         * lib/modechange.h: Likewise.
46538
46539 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46540
46541         * MODULES.html.sh: Add mkancestors.
46542         * modules/mkancesdirs: New module.
46543         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46544         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46545         The chdir-safer and afs files are now orphans; I'll remove them
46546         unless someone speaks up.
46547         Add lib/dirchownmod.c, lib/dirchownmod.h.
46548         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46549         Add lchown, mkancesdirs.
46550         (Maintainer): Add self.
46551
46552 2006-07-15  Karl Berry  <karl@gnu.org>
46553
46554         * gnulib-tool: help message wording/arrangement.
46555
46556 2006-07-14  Simon Josefsson  <jas@extundo.com>
46557
46558         * doc/gnulib.texi (Libtool and Windows): New section.
46559
46560 2006-07-12  Simon Josefsson  <jas@extundo.com>
46561
46562         * modules/gendocs (License): Fix license, approved by Karl.
46563
46564 2006-07-12  Eric Blake  <ebb9@byu.net>
46565
46566         * MODULES.html.sh: Add gendocs.
46567
46568 2006-07-11  Eric Blake  <ebb9@byu.net>
46569
46570         * modules/fdl: New module, to install doc/fdl.texi.
46571         * MODULES.html.sh: Add new section for documentation modules.
46572         * gnulib-tool: Avoid space-tab.
46573         (--doc-base): New option, to manage files from doc.
46574
46575 2006-07-11  Eric Blake  <ebb9@byu.net>
46576
46577         * m4/absolute-header.m4: Fix comments to match recent change.
46578
46579 2006-07-11  Eric Blake  <ebb9@byu.net>
46580
46581         * gnulib-tool: List --doc-base before --tests-base.
46582
46583 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46584
46585         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46586
46587 2006-07-11  Bruno Haible  <bruno@clisp.org>
46588
46589         * README: Mention where to put documentation.
46590
46591 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46592
46593         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46594
46595 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46596
46597         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46598         to stdint.m4.
46599
46600 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46601
46602         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46603         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46604         "no/such/file/stdint.h" when there is no such file, so that
46605         the resulting C code can be parsed by dodgy compilers.
46606         Problems reported by Bob Proulx.
46607
46608 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46609
46610         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46611         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46612         macros into the GNU _D_EXACT_NAMLEN.
46613         * lib/savedir.c:  Likewise.
46614         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46615
46616 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46617         and Paul Eggert  <eggert@cs.ucla.edu>
46618
46619         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46620         * m4/savedir.m4:
46621         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46622         macros into the GNU _D_EXACT_NAMLEN.
46623
46624 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46625
46626         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46627         around the absolute name, to work around a problem with the HP-UX
46628         11.23 native C compiler, reported by Bob Proulx.
46629
46630 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46631
46632         * doc/maintain.texi, make-stds.texi: Sync from
46633         <http://savannah.gnu.org/projects/gnustandards>.
46634
46635 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46636
46637         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46638
46639 2006-07-09  Jim Meyering  <jim@meyering.net>
46640
46641         * m4/glob.m4: Remove a doubled word in a comment.
46642
46643 2006-07-09  Jim Meyering  <jim@meyering.net>
46644
46645         * lib/argp-pv.c: Remove a doubled word in a comment.
46646         * lib/check-version.c (check_version): Likewise.
46647         * lib/javacomp.c (compile_java_class): Likewise.
46648
46649 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46650
46651         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46652         for the benefit of people using Autoconf 2.60.  If you want to
46653         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46654         (or m4/onceonly.m4, if pre-2.57) manually.
46655
46656 2006-07-08  Jim Meyering  <jim@meyering.net>
46657
46658         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46659         comment.
46660         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46661         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46662         comment.
46663
46664 2006-07-08  Jim Meyering  <jim@meyering.net>
46665
46666         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46667
46668 2006-07-07  Simon Josefsson  <jas@extundo.com>
46669
46670         * tests/test-crc.c: Change expected crc value, the test vector
46671         were probably computed using the old broken crc.c?
46672
46673 2006-07-06  Simon Josefsson  <jas@extundo.com>
46674
46675         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46676         now the canonical place for the M4 file).
46677
46678         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46679         from the sys_socket dependency now.
46680
46681         * modules/inet_pton (Files): Ditto.
46682
46683         * modules/inet_ntop (Files): Ditto.
46684
46685 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46686
46687         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46688         not gl_PREREQ_GETUSERSHELL.
46689
46690 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46691
46692         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46693         with only one argument, for Autoconf 2.60.
46694         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46695         expand to nothing, so add a shell command to avoid syntax error.
46696         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46697
46698 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46699
46700         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46701
46702 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46703
46704         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46705         no longer needed.  Check for isblank decl.
46706         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46707         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46708         of existence.
46709
46710 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46711
46712         * lib/getloadavg.c: Use __VMS, not VMS.
46713         * lib/getopt.c: Likewise.
46714         * lib/getpagesize.h: Likewise.
46715         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46716         and probably does not work.
46717
46718 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46719
46720         * lib/.cppi-disable: Add wcwidth.
46721         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46722         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46723         (ISGRAPH): Remove.  All uses changed to isgraph.
46724         (FOLD) [!defined _LIBC]: Remove special case.
46725         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46726         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46727         HAVE_ISBLANK.
46728         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46729         case.
46730
46731 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46732
46733         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46734         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46735         brackets.  Other minor changes to suppress some compiler
46736         warnings.
46737
46738 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46739         and Paul Eggert  <eggert@cs.ucla.edu>
46740
46741         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46742         of invoking obsolescent AC_HEADER_DIRENT macro.
46743         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46744         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46745         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46746         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46747         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46748         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46749         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46750         * m4/readdir.m4: Remove; no longer needed.
46751
46752 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46753         and Paul Eggert  <eggert@cs.ucla.edu>
46754
46755         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46756         Don't worry about this obsolete case any more.
46757         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46758         directories.
46759         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46760         worry about this obsolete case any more.
46761         * lib/fts.c: Likewise.
46762         * lib/getcwd.c: Likewise.
46763         * lib/glob.h: Likewise.
46764         * lib/savedir.c: Likewise.
46765
46766 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46767
46768         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46769         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46770         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46771         needed.
46772         All uses removed.
46773         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46774         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46775         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46776         needed.
46777         * m4/getdate.m4 (gl_GETDATE): Likewise.
46778         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46779         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46780         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46781         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46782         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46783         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46784         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46785         needed.
46786
46787 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46788
46789         * lib/memcasecmp.c: Include <limits.h>.
46790         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46791         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46792         Don't assume isdigit succeeds only on '0' through '9'.
46793
46794 2006-07-05  Eric Blake  <ebb9@byu.net>
46795
46796         * modules/getaddrinfo (Depends-on): Add snprintf.
46797
46798 2006-07-05  Eric Blake  <ebb9@byu.net>
46799
46800         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46801         to avoid 'header present but could not be compiled' on cygwin.
46802
46803 2006-07-05  Eric Blake  <ebb9@byu.net>
46804
46805         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46806         missing from netdb.h.
46807         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46808
46809 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46810
46811         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46812         no longer needed.
46813         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46814         * m4/getdate.m4 (gl_GETDATE): Likewise.
46815         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46816         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46817         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46818         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46819         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46820
46821 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46822
46823         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46824         All uses of is_space replaced by isspace.
46825         * lib/exit.h: Don't talk about STDC_HEADERS.
46826         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46827         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46828         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46829         replaced by isprint etc.
46830         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46831         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46832         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46833         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46834         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46835         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46836
46837 2006-07-05  Bruno Haible  <bruno@clisp.org>
46838
46839         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46840         the function exists, before testing against AIX.
46841         Reported by Martin Lambers <marlam@marlam.de>.
46842
46843 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46844
46845         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46846         From Mark D. Baushke.
46847
46848 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46849
46850         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46851         to the absolute name, not just one, to bypass Sun C 5.8's
46852         "warning: #include of /usr/include/... may be non-portable".
46853
46854 2006-07-04  Eric Blake  <ebb9@byu.net>
46855
46856         * modules/dirname-tests: New test module.
46857         * tests/test-dirname.c: New file, replacing dirname.c
46858         TEST_DIRNAME section that was recently deleted.
46859
46860 2006-07-04  Bruno Haible  <bruno@clisp.org>
46861
46862         Assume ANSI C header files and <ctype.h> functions.
46863         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46864         (mbsnwidth): Use isprint, iscntrl instead.
46865
46866 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46867
46868         Merge from coreutils.
46869         * MODULES.html.sh: Add xstrtold.
46870         * modules/xstrtold: New file.
46871         * modules/cycle-check (Files): Add lib/same-inode.h.
46872         * modules/dirname (Files): Add m4/double-slash-root.m4.
46873         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46874         * modules/mkdir-p (Files): Add lib/same-inode.h.
46875         * modules/same (Files): Add lib/same-inode.h.
46876
46877 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46878
46879         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46880         This is to keep the terminology clean; POSIX talks about
46881         "absolute pathnames", not "full pathnames", but the GNU
46882         Coding Standards say to use "path" for something else;
46883         so use "absolute" to keep both sides happy.
46884         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46885         Set gl_absolute_header, not gl_full_header_path.
46886         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46887         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46888         All uses changed.
46889
46890         Merge from coreutils.
46891
46892         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46893
46894         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46895         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46896         want to require the building of c-strtod.o.
46897         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46898         needs -lm directly.
46899         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46900
46901         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46902
46903         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46904         --as-needed option if available.  Problem reported by Albert Chin in
46905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46906         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46907         cc merely issues a bunch of annoying warnings for --as-needed
46908         (this problem was reported by Bob Proulx).  Also, try linking with
46909         -lm to detect a bug in binutils 2.16 (this problem was reported
46910         by Ralf Wildenhues).
46911
46912         2006-06-18  Jim Meyering  <jim@meyering.net>
46913
46914         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46915         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46916         macro.
46917         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46918         also check for glibc-2.4's abort-inducing bug.
46919
46920         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46921         Low-probability clean-up should be to use rmdir to get rid of
46922         the just-created directory, not unlink.
46923
46924         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46925         configure fail, and request a bug report to inform us about it.
46926         Add a comment that, barring reports to the contrary, in 2007 we'll
46927         assume ftruncate is universally available.
46928
46929         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46930
46931         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46932
46933         2006-03-12  Jim Meyering  <jim@meyering.net>
46934
46935         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46936         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46937         * m4/same.m4 (gl_SAME): Likewise.
46938         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46939
46940         2006-03-11  Eric Blake  <ebb9@byu.net>
46941
46942         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46943         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46944         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46945         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46946
46947 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46948
46949         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46950         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46951         reported by Mark D. Baushke, one in
46952         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46953
46954         Merge from coreutils.
46955
46956         * lib/.cppi-disable: Add stdint_.h.
46957         * lib/.cvsignore: Add stdint.h.
46958
46959         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46960
46961         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46962         both double and long double versions.
46963         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46964         * lib/xstrtold.c: New file.
46965         * lib/xstrtod.h (xstrtold): New decl.
46966
46967         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46968
46969         * lib/filemode.c (setst): Remove.
46970         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46971         (arguably) clearer, and the generated code is a bit smaller on my
46972         Debian GNU/Linux stable x86 host.
46973
46974         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46975
46976         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46977         Assume that filemode.h includes sys/types.h and sys/stat.h.
46978         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46979         (ftypelet): Reorder to put common cases first, for efficiency.
46980         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46981         to do 'M'.
46982         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46983         of 10, for compatibility with FreeBSD.  All callers changed.
46984         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46985         types that can't be deduced solely from st_mode.  First arg is now a
46986         const pointer.
46987         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46988         (strmode): Renamed from mode_string.
46989         (filemodestring): New decl.
46990         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46991         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46992         needed.
46993         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46994
46995         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46996
46997         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46998         fsusage.h now does that.  Include fsusage.h first, to test interface.
46999         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
47000         at most one method (the old code could have generated decls that
47001         didn't conform to C89, not that this was ever exercised).
47002         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
47003
47004         2006-03-19  Jim Meyering  <jim@meyering.net>
47005
47006         Work even in a chroot where d_ino values for entries in "/"
47007         don't match the stat.st_ino values for the same names.
47008         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
47009         number, iterate through all entries again, using lstat instead.
47010         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
47011         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
47012
47013         * lib/getcwd.c (__getcwd): Clarify a comment.
47014         Use memcpy in place of a call to strcpy.
47015
47016         2006-03-12  Jim Meyering  <jim@meyering.net>
47017
47018         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
47019         matches that of the current directory (which we're about to chdir ".."
47020         out of), then save the dev-ino of the parent, instead.
47021
47022         * lib/same-inode.h (SAME_INODE): New file/macro.
47023         * lib/chdir-safer.c (SAME_INODE): Remove definition.
47024         Include "same-inode.h", instead.
47025         * lib/same.c: Likewise.
47026         * lib/cycle-check.h: Include "same-inode.h".
47027         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
47028         * lib/cycle-check.c (SAME_INODE): Remove definition.
47029         * lib/root-dev-ino.h: Include "same-inode.h".
47030
47031         2006-03-11  Eric Blake  <ebb9@byu.net>
47032
47033         * lib/same.c (same_name): s/base_name/last_component/
47034         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
47035         * lib/filenamecat.c (file_name_concat): Likewise.
47036
47037         2006-03-11  Eric Blake  <ebb9@byu.net>,
47038                     Paul Eggert  <eggert@cs.ucla.edu>
47039
47040         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
47041         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
47042         drive prefix.
47043         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
47044         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
47045         (last_component): New method.
47046         * lib/dirname.c (dir_len): Determine when drive letters need a
47047         subsequent slash.  Preserve // when it is special.
47048         (dir_name): Don't append dot when drive letter is absolute.
47049         [TEST_DIRNAME]: Move into a full-blown gnulib test.
47050         * lib/basename.c (base_name): New semantics - malloc the result.
47051         Preserve // when it is special.  Preserve relative files that look
47052         like drive letters.
47053         (base_len): Preserve // when it is special.
47054         (last_component): New method, similar to old base_name semantics.
47055         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
47056         base_name.  Strip redundant slashes from ///.
47057
47058 2006-07-03  Jim Meyering  <jim@meyering.net>
47059
47060         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
47061         macro is used before the first cycle_check call.
47062
47063 2006-07-03  Eric Blake  <ebb9@byu.net>
47064
47065         * modules/dirname (Depends-on): Add xstrndup.
47066
47067 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47068
47069         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
47070         test cases, so that config.log is a bit easier to follow.
47071
47072 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47073
47074         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
47075         both are 64 bits, since this seems to be the tradition, and this
47076         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
47077         we ever run into a host that prefers long long to long in this
47078         case, we'll need another configure-time test.  Problem reported by
47079         Jim Meyering.
47080
47081 2006-07-02  Eric Blake  <ebb9@byu.net>
47082
47083         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
47084
47085 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47086
47087         * modules/inttypes (Depends-on): No longer depends on stdint.
47088         * modules/stdint (Description): Say more about assumptions.
47089         Say that the fast types might differ.  Say macros are used.
47090         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
47091         (Makefile.am): Revise list of substituted symbols to match
47092         new stdint.m4.
47093         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
47094         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
47095         * tests/test-stdint.c (verify_same_types)
47096         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
47097         the code conforms to C99/C89.
47098         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
47099         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
47100
47101 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47102
47103         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
47104         but fix a bug, by requiring at least 64 bits.
47105         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47106         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
47107         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
47108         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
47109
47110         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
47111         changes.  Make 2.59 a prerequisite.  Check and substitute for
47112         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
47113         inttypes.h.  Do not use special include files; just use the
47114         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
47115         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
47116         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
47117         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
47118         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
47119         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
47120         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
47121         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
47122         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
47123         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
47124         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
47125         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
47126         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
47127         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
47128         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
47129         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
47130         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
47131         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
47132         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
47133         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
47134         WINT_MAX.  Check for C99 conformance more strictly, by detecting
47135         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
47136         not check for things that C99 does not require, e.g., int8_t.  If
47137         a test isn't needed unless <stdint.h> isn't working, and is
47138         unlikely to be needed for any other reason, then don't do it
47139         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
47140         size_t, since we assume C89 freestanding at least.  Do not check
47141         for sig_atomic_t, wchar_t, or wint_t, since the code now does
47142         the right thing even if the types are not defined.  Instead use:
47143         (gl_STDINT_TYPE_PROPERTIES): New macro.
47144         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
47145         testing whether <sys/types.h> clashes, as Autoconf does this for
47146         us now.  All uses removed.
47147         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
47148         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
47149         (gl_CHECK_TYPE_SAME):
47150         Remove; no longer needed.
47151         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
47152         exists, since we'll return 0 anyway in that case.
47153         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
47154
47155 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47156
47157         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
47158         possible collision with system files.
47159         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
47160         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
47161         WCHAR_MIN and WCHAR_MAX in this case.
47162         (<stddef.h>): Do not include; no longer needed.
47163         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
47164         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
47165         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
47166         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
47167         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
47168         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
47169         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
47170         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
47171         !defined(__c99))]: Include in this case too, since it's harmless
47172         now.
47173         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
47174         dangerous to do so.
47175         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
47176         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
47177         (_STDINT_MIN, _STDINT_MAX): New macros.
47178         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
47179         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
47180         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
47181         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
47182         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
47183         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
47184         macros, not typedefs; this simplifies things quite a bit.
47185         Use long int for all types narrower than int64_t.
47186         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
47187         Define in terms of long long int or int64_t or long int,
47188         not int64_t or int32_t.  This saves some compile-time testing.
47189         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
47190         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
47191         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
47192         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
47193         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
47194         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
47195         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
47196         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
47197         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
47198         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
47199         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47200         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47201         undef any previous version and define our own version, for
47202         simplicity and consistency with the new macros for types.
47203         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47204         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47205         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
47206         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
47207         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
47208         @WINT_T_SUFFIX@ to keep things simple here.
47209         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
47210         Simplify by assuming typical 8/16/32/64 host, since we're
47211         already doing that elsewhere anyway.
47212         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
47213         and assume long long int is 64 bits if available.  This
47214         speeds up 'configure'.
47215
47216 2006-07-01  Eric Blake  <ebb9@byu.net>
47217
47218         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
47219         Reported by Andreas Buening.
47220
47221 2006-07-01  Eric Blake  <ebb9@byu.net>
47222
47223         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
47224
47225 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
47226
47227         * lib/getaddrinfo.c: fixed typo
47228
47229 2006-06-29  Jim Meyering  <jim@meyering.net>
47230
47231         * modules/strftime (Maintainer): Add my name, since with the
47232         FPRINTFTIME changes strftime.c has forked from glibc.
47233
47234 2006-06-29  Eric Blake  <ebb9@byu.net>
47235
47236         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
47237
47238 2006-06-29  Eric Blake  <ebb9@byu.net>
47239
47240         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
47241
47242 2006-06-29  Eric Blake  <ebb9@byu.net>
47243
47244         * lib/stat_.h: New file.
47245
47246 2006-06-29  Eric Blake  <ebb9@byu.net>
47247
47248         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
47249         unused static function.
47250
47251 2006-06-29  Eric Blake  <ebb9@byu.net>
47252
47253         * doc/functions.texi (Function Portability): Document missing lstat
47254         on mingw.
47255
47256 2006-06-29  Eric Blake  <ebb9@byu.net>
47257
47258         * MODULES.html.sh: Add sys_stat.
47259         * modules/sys_stat: New module.
47260         * modules/mkstemp (Depends-on): Add sys_stat.
47261
47262 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47263
47264         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
47265
47266 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47267
47268         * m4/c-bs-a.m4: Removed.
47269
47270 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47271
47272         * lib/strftime.c: Assume strftime() exists.
47273
47274 2006-06-29  Derek Price  <derek@ximbiot.com>
47275
47276         * modules/c-bs-a: Removed - \a is C89.
47277         * MODULES.html.sh: Remove c-bs-a.
47278
47279 2006-06-29  Bruno Haible  <bruno@clisp.org>
47280
47281         * modules/wcwidth (License): Change to LGPL.
47282
47283 2006-06-28  Simon Josefsson  <jas@extundo.com>
47284
47285         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
47286         on _WIN32.
47287
47288         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
47289         getnameinfo.
47290
47291 2006-06-28  Simon Josefsson  <jas@extundo.com>
47292
47293         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
47294
47295 2006-06-28  Simon Josefsson  <jas@extundo.com>
47296
47297         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
47298         functions there.  It will succeed on Windows XP, but on Windows
47299         2000 and (presumably) earlier, it will fail, and use the internal
47300         re-implementation.
47301         (use_win32_p): New function.
47302         (getaddrinfo): Use strtoul on servname, to support numeric ports.
47303         Support AI_NUMERICSERV to disable getservbyname.
47304         (getnameinfo): New function, only supports
47305         NI_NUMERICHOST|NI_NUMERICSERV for now.
47306
47307         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
47308         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
47309         getnameinfo.
47310
47311 2006-06-28  Eric Blake  <ebb9@byu.net>
47312
47313         * modules/wcwidth: New file.
47314         * modules/mbchar (Depends-on): Add wcwidth.
47315         * modules/mbswidth (Depends-on): Add wcwidth.
47316         * MODULES.html.sh: Add wcwidth.
47317
47318 2006-06-28  Eric Blake  <ebb9@byu.net>
47319
47320         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47321         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47322
47323 2006-06-28  Eric Blake  <ebb9@byu.net>
47324
47325         * lib/xvasprintf.h: Fix comments.
47326
47327 2006-06-28  Eric Blake  <ebb9@byu.net>
47328
47329         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47330         * lib/mbswidth.c (wcwidth): Move from here...
47331         * lib/wcwidth.h: ...to this new file.
47332
47333 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47334
47335         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47336
47337         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47338         it's obsolete.
47339         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47340
47341 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47342
47343         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47344         Autoconf 2.60 says this stuff was obsolete.
47345
47346 2006-06-28  Bruno Haible  <bruno@clisp.org>
47347
47348         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47349
47350 2006-06-28  Bruno Haible  <bruno@clisp.org>
47351
47352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47353         gt_TYPE_WCHAR_T.
47354
47355 2006-06-28  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47358         declaration for wcwidth.
47359         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47360
47361 2006-06-28  Bruno Haible  <bruno@clisp.org>
47362
47363         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47364         (mkdir): Define using _mkdir.
47365
47366 2006-06-28  Bruno Haible  <bruno@clisp.org>
47367
47368         * lib/getaddrinfo.h: Fix POSIX URL.
47369         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47370         _WIN32.
47371         (use_win32_p): Make static.
47372         (getaddrinfo): Reject service name if it is empty or does not consist
47373         solely of decimal digits, or if its value is > 65535.
47374         (getnameinfo): Remove useless casts.
47375
47376 2006-06-27  Simon Josefsson  <jas@extundo.com>
47377
47378         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47379         Eggert and Martin Lambers.
47380
47381 2006-06-27  Simon Josefsson  <jas@extundo.com>
47382
47383         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47384         Eggert and Martin Lambers.
47385
47386 2006-06-27  Bruno Haible  <bruno@clisp.org>
47387
47388         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47389         result to 0, not to empty.
47390         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47391
47392 2006-06-27  Bruno Haible  <bruno@clisp.org>
47393
47394         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47395
47396 2006-06-26  Simon Josefsson  <jas@extundo.com>
47397
47398         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47399         present.
47400
47401 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47402
47403         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47404         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47406
47407 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47408
47409         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47410
47411 2006-06-26  Bruno Haible  <bruno@clisp.org>
47412
47413         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47414
47415 2006-06-26  Bruno Haible  <bruno@clisp.org>
47416
47417         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47418
47419 2006-06-26  Bruno Haible  <bruno@clisp.org>
47420
47421         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47422         SGI C compiler in pre-C99 mode.
47423         Suggested by Mark D. Baushke and Larry Jones.
47424
47425 2006-06-26  Bruno Haible  <bruno@clisp.org>
47426
47427         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47428         WCHAR_MAX.
47429         Reported by Mark D. Baushke and Larry Jones.
47430
47431 2006-06-26  Bruno Haible  <bruno@clisp.org>
47432
47433         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47434         in pre-C99 mode.
47435         Suggested by Mark D. Baushke and Larry Jones.
47436
47437 2006-06-23  Simon Josefsson  <jas@extundo.com>
47438             Bruno Haible  <bruno@clisp.org>
47439
47440         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47441         Emit mostlyclean-local rule.
47442         (func_emit_tests_Makefile_am): Likewise.
47443         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47444
47445 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47446
47447         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47448
47449 2006-06-23  Bruno Haible  <bruno@clisp.org>
47450
47451         * tests/test-stdint.c: Update to match ISO C 99 Technical
47452         Corrigendum 1.
47453
47454 2006-06-23  Bruno Haible  <bruno@clisp.org>
47455
47456         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47457
47458 2006-06-23  Bruno Haible  <bruno@clisp.org>
47459
47460         * lib/stdint_.h: Treat IRIX like OpenBSD.
47461
47462 2006-06-23  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47465         ISO C 99 Technical Corrigendum 1.
47466
47467 2006-06-22  Simon Josefsson  <jas@extundo.com>
47468
47469         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47470         MinGW.
47471
47472 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47473
47474         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47475         needed.  Some compiler complained about some of them.  Problem reported
47476         by Larry Jones in
47477         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47478
47479 2006-06-21  Simon Josefsson  <jas@extundo.com>
47480
47481         * tests/test-getaddrinfo.c: New file.
47482
47483         * modules/getaddrinfo-tests: New file.
47484
47485         * MODULES.html.sh: Add inet_pton.
47486
47487         * modules/inet_pton: New file.
47488
47489 2006-06-21  Simon Josefsson  <jas@extundo.com>
47490
47491         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47492         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47493         of using the (limited) gnulib implementation on Windows XP.
47494
47495         * m4/inet_pton.m4: New file.
47496
47497 2006-06-21  Simon Josefsson  <jas@extundo.com>
47498
47499         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47500         variable.
47501
47502         * lib/socket_.h: Don't define WINVER.
47503
47504         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47505         slightly modified to work in gnulib.
47506
47507 2006-06-21  Simon Josefsson  <jas@extundo.com>
47508
47509         * doc/gnulib.texi (Windows sockets): Add.
47510
47511 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47512
47513         * lib/read-file.c (fread_file): Start with buffer allocation of
47514         0 bytes rather than 1 byte; this simplifies the code.
47515         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47516         code to free buffer and save/restore errno.
47517         (internal_read_file): Remove unused local.
47518
47519 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47520
47521         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47522         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47523         Problem reported by Denis Excoffier in
47524         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47525
47526 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47527
47528         * modules/sys_socket, modules/socklen: Include sys/types since
47529         FreeBSD 4.x's sys/socket.h needs it.
47530
47531 2006-06-19  Simon Josefsson  <jas@extundo.com>
47532
47533         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47534
47535 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47536
47537         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47538
47539 2006-06-19  Bruno Haible  <bruno@clisp.org>
47540
47541         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47542         and FULL_PATH_INTTYPES_H in angle brackets.
47543         Reported by Mark D. Baushke <mdb@gnu.org>.
47544
47545 2006-06-17  Eric Blake  <ebb9@byu.net>
47546
47547         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47548         errno.
47549
47550 2006-06-17  Bruno Haible  <bruno@clisp.org>
47551
47552         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47553         <sys/inttypes.h>.
47554
47555 2006-06-17  Bruno Haible  <bruno@clisp.org>
47556
47557         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47558         whether errno is declared. Assume <errno.h> declares errno.
47559
47560 2006-06-17  Bruno Haible  <bruno@clisp.org>
47561
47562         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47563
47564 2006-06-17  Bruno Haible  <bruno@clisp.org>
47565
47566         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47567         problem on Solaris 2.5.1.
47568
47569 2006-06-16  Eric Blake  <ebb9@byu.net>
47570
47571         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47572         * lib/unicodeio.c [!defined errno]: Likewise.
47573         * lib/strtol.c [!defined errno]: Likewise.
47574         * lib/strtod.c [!defined errno]: Likewise.
47575
47576 2006-06-15  Eric Blake  <ebb9@byu.net>
47577
47578         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47579
47580 2006-06-15  Eric Blake  <ebb9@byu.net>
47581
47582         * config/srclist.txt (ssize_t.m4): Lose sync.
47583
47584 2006-06-15  Bruno Haible  <bruno@clisp.org>
47585
47586         * modules/stdint (Files): Include m4/full-header-path.m4,
47587         m4/size_max.m4, m4/wchar_t.m4.
47588         (Makefile.am): Many more substitutions.
47589         * modules/stdint-tests: New file.
47590         * tests/test-stdint.c: New file.
47591
47592 2006-06-15  Bruno Haible  <bruno@clisp.org>
47593
47594         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47595         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47596         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47597         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47598         gl_CHECK_TYPE_SAME): New macros.
47599
47600 2006-06-15  Bruno Haible  <bruno@clisp.org>
47601
47602         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47603
47604 2006-06-15  Bruno Haible  <bruno@clisp.org>
47605
47606         * lib/stdint_.h: Rewritten to be fully auto-configured.
47607         Fixes bug on HP-UX/IA64.
47608
47609 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47610
47611         * lib/getdate.y (__attribute__): Don't define if already defined.
47612         Problem reported by Larry Jones.
47613         * lib/utimens.c (__attribute__): Likewise.
47614
47615 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47616
47617         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47618         reported by Andreas Schwab.
47619
47620 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47621             Bruno Haible  <bruno@clisp.org>
47622
47623         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47624         check for the declaration of strnlen and a run test that exposes the
47625         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47626         rpl_strndup.
47627
47628 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47629             Bruno Haible  <bruno@clisp.org>
47630
47631         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47632
47633 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47634
47635         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47636         compile test, for Tru64 4.0D.
47637
47638 2006-05-28  Karl Berry  <karl@gnu.org>
47639
47640         * config/srclist.txt (printf-args.c): lose sync.
47641
47642 2006-05-26  Martin Lambers  <marlam@marlam.de>
47643
47644         * lib/getpass.c: Updates the test for the native W32 API, and adds
47645         missing includes, thus fixing compilation warnings.
47646
47647 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47648
47649         * lib/exclude.c (exclude_fnmatch): New function.
47650         (excluded_file_name): Call exclude_fnmatch.
47651         * lib/exclude.h (excluded_file_name): New prototype
47652
47653 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47654
47655         * lib/tempname.c (small_open, large_open): New macros.
47656         (__open, __open64) [!_LIBC]: Remove.
47657         (__gen_tempname): Use small_open and large_open instead of __open
47658         and __open64.  This fixes a portability bug on HP-UX 11.11i
47659         reported by Simon Wing-Tang in
47660         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47661
47662 2006-05-24  Bruno Haible  <bruno@clisp.org>
47663
47664         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47665         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47666         Reported by Thorsten Maerz <torte@netztorte.de> via
47667         Aaron Stone <aaron@serendipity.cx>.
47668
47669 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47670
47671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47672         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47673         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47674         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47675         not really conditional on the cache.
47676         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47677
47678 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47679
47680         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47681         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47682         (my_usleep): Don't mishandle maximum value.
47683
47684 2006-05-19  Jim Meyering  <jim@meyering.net>
47685
47686         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47687
47688 2006-05-17  Bruno Haible  <bruno@clisp.org>
47689
47690         Cygwin portability.
47691         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47692
47693 2006-05-17  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/stdint_.h: Fix recognition of Cygwin.
47696
47697 2006-05-15  Bruno Haible  <bruno@clisp.org>
47698
47699         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47700         on libtool patch by Ralf Wildenhues.
47701
47702 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47703
47704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47705         test for C99 conformance; (bool) 0.5 is an integer constant
47706         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47707         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47708
47709 2006-05-11  Simon Josefsson  <jas@extundo.com>
47710
47711         * m4/xvasprintf.m4: Fix obvious typo.
47712
47713 2006-05-11  Jim Meyering  <jim@meyering.net>
47714
47715         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47716         James Lemley.
47717
47718 2006-05-10  Simon Josefsson  <jas@extundo.com>
47719
47720         * lib/md4.c: Typo fix, update copyright years.
47721         (K1, K2): Don't use L because it turn computations into 64-bit on
47722         64-bit platforms.
47723
47724 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47725
47726         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47727         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47728         unwanted sign propagation, e.g., on hosts with 64-bit int.
47729         There still are some problems with reeelly weird theoretical hosts
47730         (e.g., 33-bit int) but it's not worth worrying about now.
47731         * lib/sha1.c (rol): Likewise.
47732         (K1, K2, K3, K4): Remove unnecessary L suffix.
47733
47734 2006-05-10  Bruno Haible  <bruno@clisp.org>
47735
47736         * lib/des.c: Cast to avoid warnings.
47737
47738 2006-05-09  Bruno Haible  <bruno@clisp.org>
47739
47740         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47741         (Depends-on): Depend also on xsize, stdarg.
47742         (configure.ac): Add gl_XVASPRINTF.
47743
47744 2006-05-09  Bruno Haible  <bruno@clisp.org>
47745
47746         * m4/xvasprintf.m4: New file.
47747
47748 2006-05-09  Bruno Haible  <bruno@clisp.org>
47749
47750         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47751         (EOVERFLOW): Define fallback value.
47752         (xstrcat): New function.
47753         (xvasprintf): Recognize the special case of a string concatenation.
47754
47755 2006-05-08  Eric Blake  <ebb9@byu.net>
47756
47757         * gnulib-tool (func_version): Base copyright year on CVS date.
47758         (func_emit_copyright_notice): New function.
47759         (func_emit_lib_Makefile_am): Use it.
47760         (func_emit_tests_Makefile_am): Likewise.
47761         (func_import): Likewise.
47762
47763 2006-05-08  Bruno Haible  <bruno@clisp.org>
47764
47765         * modules/stdarg: New file.
47766         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47767
47768 2006-05-08  Bruno Haible  <bruno@clisp.org>
47769
47770         * m4/stdarg.m4: New file, from GNU gettext.
47771
47772 2006-05-08  Bruno Haible  <bruno@clisp.org>
47773
47774         * config/srclist.txt (build-aux/config.rpath): different from latest
47775         release.
47776
47777 2006-05-08  Bruno Haible  <bruno@clisp.org>
47778
47779         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47780
47781 2006-05-05  Jim Meyering  <jim@meyering.net>
47782
47783         * m4/warning.m4: New file, derived from bison's file by the same name.
47784
47785 2006-05-03  Bruno Haible  <bruno@clisp.org>
47786
47787         * lib/stdint_.h: Shorter URL.
47788         * lib/inttypes.h: Likewise.
47789
47790 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47791
47792         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47793
47794 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47795
47796         * lib/verify.h: Document the internals better.  Most of this change
47797         was written by Bruno Haible.
47798
47799 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47800
47801         * doc/verify.texi: New file, partly based on a proposal by
47802         Bruno Haible.
47803
47804 2006-05-02  Bruno Haible  <bruno@clisp.org>
47805
47806         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47807         test from here...
47808         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47809
47810 2006-04-29  Bruno Haible  <bruno@clisp.org>
47811
47812         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47813         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47814
47815 2006-04-29  Bruno Haible  <bruno@clisp.org>
47816
47817         * gnulib-tool: Make --update option actually work.
47818
47819 2006-04-29  Bruno Haible  <bruno@clisp.org>
47820
47821         * doc/gcd.texi: New file.
47822         * doc/gnulib.texi: Include it.
47823
47824 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47825
47826         * lib/getdate.y (get_date): When adding relative date, start with the
47827         initial time, not with the result of the first mktime call.
47828
47829 2006-04-25  Bruno Haible  <bruno@clisp.org>
47830
47831         * gnulib-tool (func_import): Output the include directives in three
47832         blocks, sorted separately.
47833         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47834
47835 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47836
47837         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47838         to define main with arguments, for C++.  Reported by Eric Blake.
47839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47840         Prefer 'int main ()' to 'int main (void)', for C++.
47841         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47842         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47843         for 'main', for C99 and C++.
47844
47845 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47846
47847         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47848         Don't assume that exit status -1 is valid.
47849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47850         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47851         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47852         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47853         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47854         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47855         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47856         functions can be used without declaring them, or that you can
47857         exit with status -1.
47858         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47859
47860 2006-04-24  Karl Berry  <karl@gnu.org>
47861
47862         * config/srclist.txt (longdouble.m4): sync lost.
47863
47864 2006-04-24  Eric Blake  <ebb9@byu.net>
47865
47866         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47867
47868 2006-04-24  Bruno Haible  <bruno@clisp.org>
47869
47870         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47871         poll() implementation in AIX.
47872         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47873
47874 2006-04-24  Bruno Haible  <bruno@clisp.org>
47875
47876         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47877         assigned exactly once.
47878
47879 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47880             Bruno Haible  <bruno@clisp.org>
47881
47882         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47883         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47884         for AM_CPPFLAGS.
47885
47886 2006-04-23  Bruno Haible  <bruno@clisp.org>
47887
47888         * modules/copy-file: Depend on unistd.
47889         * modules/execute: Likewise.
47890         * modules/fatal-signal: Likewise.
47891         * modules/findprog: Likewise.
47892         * modules/mkdtemp : Likewise.
47893         * modules/pipe: Likewise.
47894         * modules/wait-process: Likewise.
47895
47896 2006-04-23  Bruno Haible  <bruno@clisp.org>
47897
47898         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47899         condition was already detected.
47900         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47901
47902 2006-04-23  Bruno Haible  <bruno@clisp.org>
47903
47904         * lib/copy-file.c: Include <unistd.h> unconditionally.
47905         * lib/execute.c: Likewise.
47906         * lib/fatal-signal.c: Likewise.
47907         * lib/findprog.c: Likewise.
47908         * lib/mkdtemp.c: Likewise.
47909         * lib/pipe.h: Likewise.
47910         * lib/pipe.c: Likewise.
47911         * lib/wait-process.h: Likewise.
47912
47913 2006-04-23  Bruno Haible  <bruno@clisp.org>
47914
47915         * gnulib-tool (func_usage): Fix --import description. Document
47916         --update.
47917         (func_import): Create temporary file in a temporary directory, if
47918         --dry-run is specified. Silence errors from 'grep' when there are no
47919         m4 files in $m4dir.
47920         (func_create_testdir): Silence errors from 'grep' when there are no
47921         m4 files in $m4dir.
47922         Reported by Karl Berry <karl@freefriends.org>.
47923
47924 2006-04-20  Bruno Haible  <bruno@clisp.org>
47925
47926         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47927         one argument, so that the code will be portable to Autoconf 2.60.
47928         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47929         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47930         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47931
47932 2006-04-19  Derek Price  <derek@ximbiot.com>
47933             Eric Blake  <ebb9@byu.net>
47934
47935         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47936         rather than "/full/path.h".  Update comment to match.  Shorten &
47937         generalize m4_translit call via AS_TR_CPP.
47938
47939 2006-04-19  Derek Price  <derek@ximbiot.com>
47940             Eric Blake  <ebb9@byu.net>
47941
47942         * lib/inttypes.h: Correct grammar in comment.
47943
47944 2006-04-18  Derek Price  <derek@ximbiot.com>
47945             Paul Eggert  <eggert@cs.ucla.edu>
47946
47947         * modules/inttypes: New file.
47948         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47949
47950 2006-04-18  Derek Price  <derek@ximbiot.com>
47951             Paul Eggert  <eggert@cs.ucla.edu>
47952
47953         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47954         New files.
47955
47956 2006-04-18  Derek Price  <derek@ximbiot.com>
47957             Paul Eggert  <eggert@cs.ucla.edu>
47958
47959         * lib/inttypes.h: New file.
47960         * lib/strtoimax.c: Assume <inttypes.h>.
47961
47962 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47963
47964         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47965         isn't mounted.  Problem reported by Kir Kolyshkin.
47966
47967 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47968
47969         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47970         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47971         Derek R. Price.
47972         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47973         implementation.
47974
47975 2006-04-12  Eric Blake  <ebb9@byu.net>
47976
47977         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47978         is now done automatically by the corresponding Autoconf macro.
47979
47980 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47981
47982         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47983         time_r.h.
47984
47985 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47986
47987         Merge regex changes from libc, removing some of our
47988         POSIX-conformance changes that were rejected and redoing them in a
47989         less-intrusive way.
47990
47991         * lib/regcomp.c (re_compile_internal, init_dfa):
47992         Length arg is now size_t, not Idx.  All uses changed.
47993         (peek_token): Forward decl now says internal_function.
47994         (__re_error_msgid, __re_error_msgid_idx):
47995         Now static rather than extern with attribute_hidden.
47996         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47997         For some reason libc prefers K&R style defns for external functions.
47998         (regerror) [!defined _LIBC]: Likewise.
47999         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
48000         (seek_collating_symbol_entry, lookup_collation_sequence_value):
48001         (build_range_exp, build_collating_symbol):
48002         Use K&R-style defn.
48003         (re_compile_fastmap): Use '\0' to memset, not 0.
48004         (utf8_sb_map): Make the calculations more obvious.
48005         (init_dfa, parse_bracket_exp, build_charclass_op):
48006         Call calloc and cast result, as glibc does.
48007         (init_word_char, fetch_token, peek_token, peek_token_bracket):
48008         (build_range_exp, build_collating_symbol):
48009         Now internal functions.
48010
48011         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
48012
48013         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
48014         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
48015         Don't depend on VMS; depend on __VMS instead, for POSIX
48016         namespace cleanness.
48017         (regoff_t): Define to ssize_t, not long int.
48018
48019         Remove the REG_ macros named below.  Instead, make the old names
48020         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
48021         __USE_GNU_REGEX.
48022         (REG_BACKSLASH_ESCAPE_IN_LISTS):
48023         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
48024         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
48025         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
48026         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
48027         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
48028         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
48029         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
48030         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
48031         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
48032         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
48033         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
48034         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
48035         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
48036         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
48037         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
48038         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
48039         (REG_NREGS):
48040         Remove.  All uses replaced by the old RE_* names.
48041         (RE_BACKSLASH_ESCAPE_IN_LISTS):
48042         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
48043         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
48044         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
48045         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
48046         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
48047         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
48048         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
48049         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
48050         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
48051         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
48052         Don't bother having these macros be independent of each others'
48053         values, since they no longer exist in the POSIX name space.
48054
48055         Rename the following member names back to their old names,
48056         unless !__USE_GNU_REGEX.  All uses changed back.
48057         (buffer): Renamed from re_buffer.
48058         (allocated): Renamed from re_allocated.
48059         (used): Renamed from re_used.
48060         (syntax): Renamed from re_syntax.
48061         (fastmap): Renamed from re_fastmap.
48062         (translate): Renamed from re_translate.
48063         (can_be_null): Renamed from re_can_be_null.
48064         (regs_allocated): Renamed from re_regs_allocated.
48065         (fastmap_accurate): Renamed from re_fastmap_accurate.
48066         (no_sub): Renamed from re_no_sub.
48067         (not_bol): Renamed from re_not_bol.
48068         (not_eol): Renamed from re_not_eol.
48069         (newline_anchor): Renamed from re_newline_anchor.
48070         (num_regs): Renamed from rm_num_regs.
48071         (start): Renamed from rm_start.
48072         (end): Renamed from rm_end.
48073
48074         (free_state): Move up a bit.
48075
48076         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
48077         #define to be empty.
48078         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
48079         when that is what is intended.
48080         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
48081         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
48082         (MAX): New macro.
48083         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
48084         All uses changed back to re_malloc, etc.  It's now the caller's
48085         responsibility to check for overflow; all callers changed.
48086         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
48087         (re_x2nrealloc): Remove.
48088         (free_state): Remove decl.
48089
48090         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
48091         (re_set_registers, re_exec):
48092         Use K&R-style defn.
48093
48094         2006-01-31  Roland McGrath  <roland@redhat.com>
48095
48096         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
48097         Reported by Mike Frysinger <vapier@gentoo.org>.
48098
48099         2006-01-15  Andreas Jaeger  <aj@suse.de>
48100
48101         [BZ #1950]
48102         * lib/regex_internal.c (re_string_reconstruct): Adjust for
48103         build_wcs_upper_buffer change.
48104         (build_wcs_upper_buffer): Change return type.
48105
48106         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
48107
48108         * lib/regex_internal.h: Include <stdint.h> if available.
48109
48110         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
48111
48112         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
48113
48114         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48115
48116         * lib/regcomp.c: Adjust for changed secondary hash function.
48117
48118         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
48119
48120         * lib/regex.h: Pretty printing.
48121         Clean up namespace a bit.
48122
48123         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
48124
48125         * lib/regexec.c (update_cur_sifted_state, check_arrival,
48126         check_arrival_add_next_nodes): Avoid using uninitialized variable.
48127
48128         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48129                     Ulrich Drepper  <drepper@redhat.com>
48130
48131         [BZ #1302]
48132         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
48133         changed.
48134         (bitset_word_t): Renamed from bitset_word.  All uses changed.
48135
48136         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
48137
48138         [BZ #281]
48139         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
48140         * lib/regcomp.c: Remove unnecessary uses of
48141         unsigned RE_TRANSLATE_TYPE.
48142         * lib/regex_internal.h: Likewise.
48143         * lib/regex_internal.c: Likewise.
48144         * lib/regexec.c: Likewise.
48145         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
48146
48147         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
48148
48149         * lib/regexec.c (find_recover_state): Remove unnecessary
48150         initialization.
48151         (transit_state_bkref): Make DFA a const pointer.
48152         (get_subexp): Likewise.
48153         (check_arrival): Likewise.
48154         (update_cur_sifted_state): Likewise.
48155         (re_search_internal): Likewise.
48156         (prune_impossible_nodes): Likewise.
48157         (acquire_init_state_context): Likewise.
48158         (proceed_next_node): Likewise.
48159         (set_regs): Likewise.
48160         (free_fail_stack_return): Likewise.
48161         (check_arrival_expand_ecl): Mark DFA parameter as const.
48162         (check_arrival_expand_ecl_sub): Likewise.
48163         (check_subexp_limits): Likewise.
48164         (sub_epsilon_src_nodes):  Likewise.
48165         (add_epsilon_src_nodes):  Likewise.
48166         (merge_state_array): Likewise.
48167         (update_regs): Likewise.
48168         (build_trtable): Likewise.
48169         (sift_states_backward): Mark MCTX parameter as const.
48170         (build_sifted_states): Likewise.
48171         (update_cur_sifted_state): Likewise.
48172         (sift_states_mkref): Likewise.
48173         (check_arrival_expand_ecl): Mark eclosure as const.
48174         (check_dst_limits_calc_pos_1): Likewise.
48175         * lib/regex_internal.h (re_match_context_t): Make dfa a const
48176         pointer.
48177
48178         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
48179
48180         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
48181         (transit_state_sb): Likewise.
48182         (transit_state_mb): Likewise.
48183         (sift_states_iter_mb): Likewise.
48184         (check_arrival_add_next_nodes): Likewise.
48185         (check_node_accept_bytes): Change first parameter to pointer-to-const.
48186         [_LIBC] (re_search_2_stub): Use mempcpy.
48187
48188         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
48189         mbrtowc for very simple UTF-8 case.
48190
48191         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
48192         a pointer-to-const.
48193         (re_acquire_state_context): Likewise.
48194         * lib/regex_internal.h: Adjust prototypes.
48195
48196         * lib/regex.c: Prevent using C++ compilers.
48197
48198         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
48199         (re_acquire_state_context): Likewise.
48200
48201 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48202
48203         * modules/regex (Depends-on): Add ssize_t.
48204
48205 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48206
48207         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
48208         translation table.
48209
48210 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48211
48212         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
48213
48214 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
48215             Bruno Haible  <bruno@clisp.org>
48216
48217         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
48218         <sys/types.h> and <inttypes.h>.
48219
48220 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48221
48222         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
48223         `__error_t_defined', so argp.h will not typedef the former.
48224
48225 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48226
48227         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
48228         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
48229         glibc names.  Even if glibc is changed to conform to POSIX, the
48230         traditional names will be available anyway, since regex depends on
48231         the extensions module.  Also, fix a longstanding typo in the
48232         implementation of Spencer ERE test #75 from grep 2.3.  Problems
48233         reported by Emanuele Giaquinta.  Also, change sense of cached
48234         variable, so that the message makes sense.
48235
48236 2006-03-24  Simon Josefsson  <jas@extundo.com>
48237
48238         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
48239         including some doc fixes.
48240         (base64_encode_alloc): Fix +1 bug on allocation failures.
48241
48242 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48243
48244         * lib/base64.c (base64_encode): Do not read past end of array with
48245         unsanitized input on systems with CHAR_BIT > 8.
48246
48247 2006-03-24  Eric Blake  <ebb9@byu.net>
48248
48249         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
48250
48251 2006-03-22  Karl Berry  <karl@gnu.org>
48252
48253         * config/srclist.txt (*setenv.[ch]): get from coreutils.
48254         * config/srclistvars.sh (COREUTILS): new var.
48255
48256 2006-03-17  Jim Meyering  <jim@meyering.net>
48257
48258         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
48259         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
48260
48261 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48262
48263         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
48264         no longer needs it.  Instead, check that regoff_t is as least
48265         as wide as ptrdiff_t.
48266
48267         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
48268         so that our regex.h stays compatible with the installed regex.
48269         This is helpful for installers who configure --without-included-regex.
48270         Problem reported by Emanuele Giaquinta.
48271
48272 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48273
48274         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
48275         Typedef to long int, not to off_, as POSIX will likely change
48276         in that direction.
48277
48278 2006-03-15  Eric Blake  <ebb9@byu.net>
48279
48280         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
48281
48282 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48283
48284         * lib/argp-help.c (validate_uparams): Fix typo
48285         * lib/argp-parse.c (argp_default_options): Consistently begin help
48286         messages with a lowercase letter.
48287
48288 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
48289
48290         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
48291         overrun buffers and shouldn't be used (much as gets shouldn't be
48292         used).
48293         * lib/time_r.c (asctime_r, ctime_r): Likewise.
48294
48295 2006-03-08  Simon Josefsson  <jas@extundo.com>
48296
48297         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
48298         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48299
48300 2006-03-08  Simon Josefsson  <jas@extundo.com>
48301
48302         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
48303         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48304
48305 2006-03-08  Simon Josefsson  <jas@extundo.com>
48306
48307         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
48308         signal that configure disabled the device.
48309
48310 2006-03-08  Simon Josefsson  <jas@extundo.com>
48311
48312         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48313         languages.
48314
48315 2006-03-07  Simon Josefsson  <jas@extundo.com>
48316
48317         * modules/getopt (Depends-on): Add unistd.
48318
48319         * modules/unistd: New file.
48320
48321 2006-03-07  Simon Josefsson  <jas@extundo.com>
48322
48323         * modules/gc-random: New file.
48324
48325 2006-03-07  Simon Josefsson  <jas@extundo.com>
48326
48327         * m4/unistd_h.m4: New file.
48328
48329 2006-03-07  Simon Josefsson  <jas@extundo.com>
48330
48331         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48332         test to be side-effect free by storing the result in the cache
48333         variable gl_cv_lib_readline, and moving the assignment of
48334         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48335         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48336
48337 2006-03-07  Simon Josefsson  <jas@extundo.com>
48338
48339         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48340         error on missing devices (the functions will return an error).
48341
48342         * m4/gc.m4: Move random stuff to gc-random.m4
48343
48344 2006-03-07  Simon Josefsson  <jas@extundo.com>
48345
48346         * lib/unistd_.h: New file.
48347
48348 2006-03-07  Simon Josefsson  <jas@extundo.com>
48349
48350         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48351
48352 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48353
48354         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48355         Problem reported by Juan Manuel Guerrero.
48356
48357 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48358
48359         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48360         the unistd module.
48361         * lib/getlogin_r.c: Likewise.
48362         * lib/getlogin_r.h: Likewise.
48363         * lib/glob.c: Likewise.
48364         * lib/pagealign_alloc.c: Likewise.
48365         * lib/unistd_.h: Remove; no longer needed.
48366
48367 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48368
48369         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48370         Add unistd.
48371         * modules/c-stack (Depends-on): Add unistd.
48372         * modules/getlogin_r: Likewise.
48373         * modules/glob: Likewise.
48374         * modules/pagealign_alloc: Likewise.
48375         * modules/unistd (Files): Remove lib/unistd_.h.
48376         (EXTRA_DIST): Remove.
48377         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48378         need unistd_.h.
48379         (MOSTLYCLEANFILES): Remove unistd.h-t.
48380
48381 2006-03-03  Simon Josefsson  <jas@extundo.com>
48382
48383         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48384
48385 2006-03-03  Simon Josefsson  <jas@extundo.com>
48386
48387         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48388         libidn and bison.
48389
48390 2006-03-03  Simon Josefsson  <jas@extundo.com>
48391
48392         * build-aux/maint.mk: Add indent target.
48393
48394 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48395
48396         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48397         our replacement poll.h in any case, to avoid a differing
48398         declaration from a system header.  Seen on AIX.
48399
48400 2006-03-01  Simon Josefsson  <jas@extundo.com>
48401
48402         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48403         <kasal@ucw.cz>.
48404
48405 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48406
48407         * modules/gettime (Depends-on): Add extensions module.
48408         * modules/nanosleep (Depends-on): Likewise.
48409         * modules/settime (Depends-on): Likewise.
48410
48411 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48412
48413         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48414         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48415         pedantically.
48416         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48417         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48418
48419         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48420         not "==".  Reported by Ralf Wildenhues.
48421
48422 2006-03-01  Karl Berry  <karl@gnu.org>
48423
48424         * doc/Copyright/request-*: new files, synced from gnuorg.
48425
48426 2006-03-01  Karl Berry  <karl@gnu.org>
48427
48428         * config/srclist.txt (Copyright/*): new entries.
48429
48430 2006-02-28  Simon Josefsson  <jas@extundo.com>
48431
48432         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48433
48434 2006-02-27  Simon Josefsson  <jas@extundo.com>
48435
48436         * lib/base64.h: Indent #define's.  From Jim Meyering
48437         <jim@meyering.net>.
48438
48439 2006-02-27  Jim Meyering  <jim@meyering.net>
48440
48441         Revert the change of 2006-02-24, so these files can continue
48442         to be sync'd from gettext.
48443         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48444         of `config.h'.
48445
48446 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48447
48448         * modules/intprops: New file.
48449         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48450         Add intprops.
48451         * modules/getloadavg (Files): Remove lib/intprops.h.
48452         (Depends-on): Add intprops.
48453         * modules/human: Likewise.
48454         * modules/inttostr: Likewise.
48455         * modules/openat: Likewise.
48456         * modules/sig2str: Likewise.
48457         * modules/userspec: Likewise.
48458         * modules/utimecmp: Likewise.
48459         * modules/xnanosleep: Likewise.
48460         * modules/xstrtol: Likewise.
48461
48462 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48463
48464         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48465         * modules/lock-tests (TESTS): Use $(EXEEXT).
48466         * modules/tls-tests: Likewise.
48467         * modules/argp-tests: Likewise.
48468         (check_PROGRAMS): New var, replacing...
48469         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48470
48471 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48472
48473         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48474         `config.h'.
48475
48476 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48477
48478         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48479
48480 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48481
48482         Sync from coreutils.
48483         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48484         gl_CHDIR_SAFER.
48485
48486 2006-02-22  Jim Meyering  <jim@meyering.net>
48487
48488         Sync from coreutils.
48489         * m4/chdir-safer.m4: New file.
48490
48491 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48492
48493         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48494         AT_FDCWD exceeds INT_MAX.
48495         * lib/openat.h (AT_FDCWD): Likewise.
48496
48497 2006-02-17  Eric Blake  <address@hidden>
48498
48499         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48500
48501 2006-02-16  Simon Josefsson  <jas@extundo.com>
48502
48503         * modules/getaddrinfo (Depends-on): Add sys_socket.
48504
48505 2006-02-15  Simon Josefsson  <jas@extundo.com>
48506
48507         * build-aux/maint.mk: Add dsyntax-check rule.
48508
48509 2006-02-15  Eric Blake  <ebb9@byu.net>
48510
48511         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48512         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48513         'present but cannot compile' warnings on cygwin.
48514         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48515         use ws2tcpip.h if sys/socket.h works.
48516         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48517         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48518
48519 2006-02-14  Simon Josefsson  <jas@extundo.com>
48520
48521         * modules/maintainer-makefile (Files): Rename.
48522
48523         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48524         and (the local) Makefile.cfg to maint-cfg.mk.
48525
48526         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48527         to the latter.
48528
48529         * modules/maintainer-makefile: New module.
48530
48531         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48532         severaly stripped to make it possible to build it up from scratch
48533         with reliable tests.
48534
48535         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48536         fixes to permit overriding the default actions when configure and
48537         makefile are not available.
48538
48539 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48540
48541         Sync from coreutils.
48542         * modules/lstat (Depends-on): Don't depend on xalloc.
48543         (License): Change from GPL to LGPL, since this is now simply a
48544         replacement for a libc function.
48545
48546 2006-02-14  Jim Meyering  <jim@meyering.net>
48547
48548         Sync from coreutils.
48549
48550         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48551         failure on deficient systems, and simplify gnulib lgpl dependencies.
48552         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48553         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48554
48555         * lib/xalloc-die.c: Remove unused definition of N_.
48556
48557 2006-02-14  Jim Meyering  <jim@meyering.net>
48558
48559         Sync from coreutils.
48560         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48561         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48562         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48563         double-quote uses of that variable, to accommodate the rare case in
48564         which getmntent is available in none of the libraries checked.  This
48565         happens at least on FreeBSD 5.0.
48566
48567 2006-02-13  Simon Josefsson  <jas@extundo.com>
48568
48569         * gnulib-tool (Usage): Fix --import, from
48570         karl@freefriends.org (Karl Berry).
48571
48572 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48573
48574         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48575
48576 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48577
48578         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48579         "autoupdate" on 2005-12-12.
48580
48581 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48582
48583         * modules/closeout (Depends-on): Remove atexit.
48584
48585 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48586
48587         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48588         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48589
48590 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48591
48592         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48593         __EXTENSIONS__ if this causes compilation to fail.  Problem
48594         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48595         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48596
48597 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48598
48599         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48600         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48602         All uses changed.
48603
48604 2006-01-26  Simon Josefsson  <jas@extundo.com>
48605
48606         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48607         prototype is visible on mingw32.
48608
48609         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48610         for mingw32.
48611
48612         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48613         mingw32).
48614
48615 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48616
48617         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48618         attempt to open for write; this always fails, at least on POSIX
48619         hosts.  This reinstates the 2006-01-09 change, which was
48620         inadvertently removed.
48621
48622 2006-01-26  Bruno Haible  <bruno@clisp.org>
48623
48624         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48625         Reported by Paul Eggert.
48626
48627 2006-01-26  Bruno Haible  <bruno@clisp.org>
48628             Paul Eggert  <eggert@cs.ucla.edu>
48629
48630         * lib/stdbool_.h (_Bool)
48631         [(! (defined __cplusplus || defined __BEOS__)
48632           && !defined __GNUC__
48633           && !(defined __HP_cc || defined __xlc__
48634                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48635                || defined __sgi))]:
48636         #define to signed char in these cases too; this simplifies
48637         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48638         etc., separately) and makes it more conservative.
48639
48640 2006-01-25  Simon Josefsson  <jas@extundo.com>
48641
48642         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48643         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48644         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48645
48646 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48647
48648         * lib/argp-namefrob.h: Bugfix. Remove stray #
48649
48650 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48651
48652         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48653         so that we test the test.
48654         Check for yet another HP-UX cc bug involving *bool |= bool.
48655
48656 2006-01-25  Karl Berry  <karl@gnu.org>
48657
48658         * config/srclist.txt (vasnprintf.c): sync lost.
48659
48660 2006-01-25  Jim Meyering  <jim@meyering.net>
48661
48662         Sync from the stable (b5) branch of coreutils:
48663
48664         * lib/fts.c (fts_children): Don't let close() clobber errno from
48665         failed fchdir().
48666
48667         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48668         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48669         a dangling symlink.  That can also happen at least for ELOOP.
48670         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48671         FYI, this bug predates the inclusion of fts.c in coreutils.
48672
48673         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48674         in their own block, so pre-c99 compilers don't object.
48675
48676         Avoid the double-free (first in fts_read, second in fts_close) that
48677         would occur when an `active' directory is made inaccessible (e.g.,
48678         via chmod a-x) during a traversal.
48679         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48680         before returning.  Reproduce this failure by
48681         mkdir -p a/b; cd a; chmod a-x . b
48682         Reported by Stavros Passas.
48683
48684 2006-01-25  Jim Meyering  <jim@meyering.net>
48685
48686         * lib/fileblocks.c: Remove more useless parentheses.
48687         * lib/readutmp.h: Likewise.
48688
48689 2006-01-25  Bruno Haible  <bruno@clisp.org>
48690
48691         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48692         warnings.
48693         Reported by Paul Eggert.
48694
48695 2006-01-25  Bruno Haible  <bruno@clisp.org>
48696
48697         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48698         rid of a trap command. For Solaris sh.
48699         Reported by Mark D. Baushke <mdb@gnu.org>.
48700
48701 2006-01-24  Simon Josefsson  <jas@extundo.com>
48702
48703         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48704         Bruno.
48705
48706 2006-01-24  Karl Berry  <karl@gnu.org>
48707
48708         * config/srclist.txt (argp-namefrob.h): sync lost.
48709
48710 2006-01-24  Jim Meyering  <jim@meyering.net>
48711
48712         * modules/openat (Files): Add lib/intprops.h.
48713         From Mark D. Baushke.
48714
48715 2006-01-24  Jim Meyering  <jim@meyering.net>
48716
48717         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48718         Reported by Mark D. Baushke.
48719
48720 2006-01-24  Jim Meyering  <jim@meyering.net>
48721
48722         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48723
48724 2006-01-24  Bruno Haible  <bruno@clisp.org>
48725
48726         * modules/strnlen (Maintainer): Change from glibc to all.
48727
48728 2006-01-24  Bruno Haible  <bruno@clisp.org>
48729
48730         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48731         Patch by Paul Eggert.
48732
48733 2006-01-24  Bruno Haible  <bruno@clisp.org>
48734
48735         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48736         already has it.
48737         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48738         2005-11-26.
48739
48740         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48741         'signed char' to avoid problems with the built-in _Bool type.
48742         Reported by Paul Eggert on 2005-11-26.
48743
48744 2006-01-24  Bruno Haible  <bruno@clisp.org>
48745
48746         * gnulib-tool (func_import): Avoid constructing complicated sed
48747         expressions inside backquote.
48748         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48749
48750 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48751
48752         These changes imported from libc.
48753         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48754         test and two separate function calls.
48755         * lib/strndup.c (__strndup): Add libc_hidden_def.
48756
48757 2006-01-23  Simon Josefsson  <jas@extundo.com>
48758
48759         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48760         Remove the test_*_SOURCES variable: automake infers it by default.
48761         * modules/tls-tests: Likewise.
48762
48763 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48764
48765         Work around porting bugs reported by Dieter in
48766         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48767         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48768         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48769         Include "getopt.h" first, to check interface.
48770         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48771         !HAVE_DECL_GETENV.
48772         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48773         (__strndup): Revert to K&R-style function dfns, the glibc style.
48774         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48775         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48776         Include strnlen.h first, to get prototype properly.
48777         (strnlen): Renamed from __strnlen.
48778         Remove weak alias.
48779
48780 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48781
48782         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48783
48784 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48785
48786         * config/srclist.txt: Adjust to reflect glibc reorganization.
48787         This affects only comments.
48788
48789 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48790
48791          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48792          Reported by Bruce Korb <bkorb@gnu.org>.
48793
48794 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48795
48796         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48797         to pacify gcc -Wswitch-default.
48798
48799 2006-01-22  Bruno Haible  <bruno@clisp.org>
48800
48801         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48802         temporary buffer for sprintf, take into account the precision also
48803         for 'd', 'i', 'u', 'o', 'x', 'X'.
48804
48805 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48806
48807         * modules/argp-tests: New module
48808         * tests/test-argp.c: New file
48809         * tests/test-argp-2.sh: New file
48810
48811 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48812
48813         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48814         (__argp_base_name): Removed
48815         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48816         typo.
48817         (__argp_base_name): Provide macro definition or extern declaration
48818         depending on the configuration
48819
48820 2006-01-20  Simon Josefsson  <jas@extundo.com>
48821
48822         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48823
48824 2006-01-20  Simon Josefsson  <jas@extundo.com>
48825
48826         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48827
48828 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48829
48830         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48831         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48832         Suggested by Bruno Haible.
48833
48834 2006-01-20  Karl Berry  <karl@gnu.org>
48835
48836         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48837         until changes propagate, I guess.
48838
48839 2006-01-19  Simon Josefsson  <jas@extundo.com>
48840
48841         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48842
48843 2006-01-19  Simon Josefsson  <jas@extundo.com>
48844
48845         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48846
48847 2006-01-19  Simon Josefsson  <jas@extundo.com>
48848
48849         * gnulib-tool: Set check_PROGRAMS.
48850
48851         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48852         modules/des-tests, modules/gc-arcfour-tests,
48853         modules/gc-arctwo-tests, modules/gc-des-tests,
48854         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48855         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48856         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48857         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48858         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48859         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48860         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48861         test_*_SOURCES.
48862
48863 2006-01-18  Simon Josefsson  <jas@extundo.com>
48864
48865         * modules/socklen (Depends-on): Depend on sys_socket.
48866
48867 2006-01-18  Simon Josefsson  <jas@extundo.com>
48868
48869         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48870         modules/des-tests, modules/gc-arcfour-tests,
48871         modules/gc-arctwo-tests, modules/gc-des-tests,
48872         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48873         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48874         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48875         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48876         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48877         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48878         $(EXEEXT) to automake TESTS variable, for mingw32.
48879
48880 2006-01-17  Simon Josefsson  <jas@extundo.com>
48881
48882         * modules/socklen (Include): Need sys/socket.h.
48883
48884 2006-01-17  Bruno Haible  <bruno@clisp.org>
48885
48886         * modules/ssize_t (Include): Add <sys/types.h>.
48887
48888 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48889
48890         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48891         it's not portable and it doesn't work with cross-compiles.
48892         Problem reported by Bruno Haible.  Fix missing-$ typo in
48893         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48894         -zignore from being used with Sun's C compiler.
48895
48896 2006-01-12  Simon Josefsson  <jas@extundo.com>
48897
48898         * lib/base64.c: Fix warning, reported by Bruno Haible
48899         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48900
48901 2006-01-12  Bruno Haible  <bruno@clisp.org>
48902
48903         * modules/ldd: New file.
48904         * build-aux/ldd.sh.in: New file.
48905         * MODULES.html.sh (Support for building libraries and executables): Add
48906         ldd.
48907
48908 2006-01-12  Bruno Haible  <bruno@clisp.org>
48909
48910         * m4/ldd.m4: New file.
48911
48912 2006-01-12  Bruno Haible  <bruno@clisp.org>
48913
48914         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48915         endless loop while replacing $auxdir with build-aux.
48916
48917 2006-01-11  Simon Josefsson  <jas@extundo.com>
48918
48919         * lib/stdint_.h (SIZE_MAX): Add missing (.
48920
48921 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48922
48923         Sync from coreutils.
48924         * lib/md5.c: Fix commentary typos.
48925         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48926         * lib/md5.h (__attribute__): Remove; unused.
48927         * lib/sha1.c: Fix commentary to match md5 better.
48928         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48929         so that we don't need to worry about alignment.  All uses changed.
48930         This merges the 2005-10-28 md5 change into sha1.
48931
48932 2006-01-11  Jim Meyering  <jim@meyering.net>
48933
48934         Sync from coreutils.
48935         * lib/md5.c (OP): Fix spacing.
48936
48937 2006-01-11  Bruno Haible  <bruno@clisp.org>
48938
48939         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48940         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48941         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48942
48943 2006-01-11  Bruno Haible  <bruno@clisp.org>
48944
48945         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48946         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48947         the "early" section as well.
48948
48949 2006-01-11  Bruno Haible  <bruno@clisp.org>
48950
48951         Avoid "ar: no archive members specified" error on MacOS X.
48952         * gnulib-tool (func_modules_add_dummy): New function.
48953         (func_import, func_create_testdir): Invoke it.
48954
48955 2006-01-11  Bruno Haible  <bruno@clisp.org>
48956
48957         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48958         with $auxdir in AC_CONFIG_FILES statements.
48959
48960 2006-01-11  Bruno Haible  <bruno@clisp.org>
48961
48962         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48963         Initialize also noinst_HEADERS to empty.
48964
48965 2006-01-11  Bruno Haible  <bruno@clisp.org>
48966
48967         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48968         variables.
48969         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48970         autoreconf.
48971
48972 2006-01-11  Bruno Haible  <bruno@clisp.org>
48973
48974         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48975         overridable by the user.
48976         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48977
48978 2006-01-10  Simon Josefsson  <jas@extundo.com>
48979
48980         * modules/sys_socket: New file.
48981
48982 2006-01-10  Simon Josefsson  <jas@extundo.com>
48983
48984         * m4/sys_socket_h.m4: New file.
48985
48986 2006-01-10  Simon Josefsson  <jas@extundo.com>
48987
48988         * lib/socket_.h: New file.
48989
48990 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48991
48992         * modules/readutmp (Maintainer): Add myself.
48993
48994 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48995
48996         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48997         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48998         People who are still concerned with buggy memcmp implementations
48999         can invoke gl_FUNC_MEMCMP themselves.
49000
49001 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
49002
49003         * lib/regex_internal.h (BITSET_WORD_BITS):
49004         Work around a bug in 64-bit PGC (before version 6.1-2), where the
49005         preprocessor mishandles large unsigned values as if they were signed.
49006         Problem reported by Claudio Fontana in
49007         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
49008
49009 2006-01-10  Jim Meyering  <jim@meyering.net>
49010
49011         Avoid the double-free (first in fts_read, second in fts_close) that
49012         would occur when an `active' directory is made inaccessible (e.g.,
49013         via chmod a-x) during a traversal.
49014         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
49015         before returning.  Reproduce this failure by
49016         mkdir -p a/b; cd a; chmod a-x . b
49017         Reported by Stavros Passas.
49018
49019         Sync from coreutils.
49020         * lib/sha1.c: Tweak grammar in a comment.
49021
49022 2006-01-10  Jim Meyering  <jim@meyering.net>
49023
49024         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
49025         Patch by Joerg Sonnenberger.
49026
49027 2006-01-10  Bruno Haible  <bruno@clisp.org>
49028
49029         * modules/readutmp: Depend on module free.
49030         * modules/strtok_r: Depend on module restrict.
49031
49032 2006-01-10  Bruno Haible  <bruno@clisp.org>
49033
49034         * modules/gettext (configure.ac): Add an invocation of
49035         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
49036
49037 2006-01-10  Bruno Haible  <bruno@clisp.org>
49038
49039         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
49040         Reported by Werner Lemberg <wl@gnu.org>.
49041
49042 2006-01-10  Bruno Haible  <bruno@clisp.org>
49043
49044         * lib/localcharset.c: Update from GNU gettext.
49045
49046 2006-01-10  Bruno Haible  <bruno@clisp.org>
49047
49048         * lib/argp.h (__const): Remove macro. Use const instead.
49049         * lib/argp-fmtstream.h (__const): Likewise.
49050         * lib/glob_.h (__const): Remove macro.
49051         * lib/glob-libc.h: Use const instead of __const.
49052
49053 2006-01-10  Bruno Haible  <bruno@clisp.org>
49054
49055         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
49056         variable.
49057         Needed to avoid an automake error regarding the 'gettext' module.
49058
49059 2006-01-09  Simon Josefsson  <jas@extundo.com>
49060
49061         * modules/inet_ntop (Depends-on): Add restrict.
49062
49063 2006-01-09  Simon Josefsson  <jas@extundo.com>
49064
49065         * modules/gc-rijndael-tests (License): Put under LGPL.
49066
49067         * modules/gc-des-tests (License): Likewise.
49068
49069         * modules/gc-arcfour-tests (License): Likewise.
49070
49071         * modules/gc-arctwo-tests (License): Likewise.
49072
49073         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
49074
49075         * modules/gc-hmac-sha1-tests (Files): Likewise.
49076
49077         * modules/gc-hmac-md5-tests (License): Likewise.
49078
49079         * modules/gc-sha1-tests (License): Likewise.
49080
49081         * modules/gc-md5-tests (License): Likewise.
49082
49083         * modules/gc-md4-tests (License): Likewise.
49084
49085         * modules/gc-md2-tests (License): Likewise.
49086
49087         * modules/gc-tests (License): Likewise.
49088
49089         * modules/des-tests (License): Likewise.
49090
49091         * modules/md4-tests (License): Likewise.
49092
49093         * modules/md2-tests (License): Likewise.
49094
49095 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49096
49097         Sync from coreutils:
49098
49099         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
49100         * modules/lib-ignore: New file.
49101         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
49102         chdir-safer.m4, lchmod.m4.
49103         * modules/openat: Add mkdirat.c, openat-priv.h.
49104
49105 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49106
49107         Sync from coreutils.
49108         * m4/lib-ignore.m4: New file.
49109         * m4/lchmod.m4: New file.
49110
49111 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49112
49113         Sync from coreutils.
49114         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
49115         for write access: POSIX says that must fail.
49116         * lib/fts.c (diropen): Likewise.
49117         * lib/save-cwd.c (save_cwd): Likewise.
49118         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
49119         well, for minor improvements on hosts that lack O_DIRECTORY.
49120         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
49121         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
49122         Fall back on chown if open failed with EACCES.
49123
49124         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
49125         Report an error at compile-time if only a 1-second nominal clock
49126         resolution is found.
49127
49128         * lib/lchmod.h: New file.
49129         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
49130         (make_dir_parents): Use lchown rather than chown, and
49131         lchmod rather than chmod.
49132
49133         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
49134         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
49135         "proc" reported by n0dalus.
49136
49137         * lib/mountlist.c: Include <limits.h>.
49138         (dev_from_mount_options)
49139         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
49140         New function.  It no longer assumes "dev=" has the System V meaning
49141         on Linux (since it doesn't).  It also parses "dev=" more carefully.
49142         (read_file_system_list)
49143         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
49144         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
49145         dev= in that case.
49146
49147         * lib/posixtm.h (PDS_PRE_2000): New macro.
49148         * lib/posixtm.c (year): Arg is now syntax_bits rather than
49149         allow_century.  All usages changed.  Reject dates outside the range
49150         1969-1999 if PDS_PRE_2000 is used.
49151
49152 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49153
49154         Sync from coreutils.
49155         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
49156         (Time of day items): Mention the possibility of leap seconds.
49157         Problem reported by Dr. David Alan Gilbert.
49158
49159 2006-01-09  Jim Meyering  <jim@meyering.net>
49160
49161         Sync from coreutils.
49162
49163         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
49164
49165         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
49166
49167         * lib/modechange.c (mode_compile): Reject an invalid mode string
49168         that starts with an octal digit.  From Andreas Gruenbacher.
49169
49170         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
49171         and dup to open_safer and dup_safer, respectively.
49172         (openat_permissive): Fix typo in comment.
49173
49174         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
49175         "gettext.h"; either no longer needed or are guaranteed by openat.h.
49176         (_): Remove; no longer needed.
49177         (openat): Renamed from rpl_openat; no need for rpl_openat
49178         since openat.h renames openat for us.
49179         Replace most of the body with a call to openat_permissive,
49180         to avoid duplicate code.
49181         Port to (probably hypothetical) environments were mode_t is
49182         wider than int.
49183         (openat_permissive): Require mode arg, so that we can check
49184         types better.  Put it just after flags.  Change cwd failure
49185         indicator from pointer-to-bool to pointer-to-errno-value.
49186         All callers changed.
49187         Invoke openat_save_fail and/or openat_restore_fail if
49188         cwd_errno is null, so that openat can call us.
49189         (openat_permissive, fdopendir, fstatat, unlinkat):
49190         Simplify errno handling to avoid some duplicate code,
49191         as it's OK to set errno on success.
49192         * lib/openat.h: Revamp code so that function macros depend on
49193         __OPENAT_PREFIX only, not also on AT_FDCWD.
49194         (openat_ro): Remove.  Caller changed to use openat_permissive.
49195         (openat_permissive): Now a macro, if not a function.
49196         (openat_restore_fail, openat_save_fail): Now always functions,
49197         since mkdirat needs them even if __OPENAT_PREFIX is defined.
49198
49199         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
49200         and openat.c.
49201         * lib/mkdirat.c: Include openat-priv.h.
49202         Remove definitions of macros defined therein.
49203         * lib/openat.c: Likewise.
49204
49205         * lib/mkdirat.c (mkdirat): New file and function.
49206         * lib/openat.h (mkdirat): Declare.
49207
49208         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
49209
49210         * lib/openat.h (openat_permissive): Declare.
49211         (openat_ro): Define.
49212
49213         * lib/openat.c (EXPECTED_ERRNO): New macro.
49214         (openat_permissive): New function -- used in remove.c rewrite.
49215         (all functions): Set errno just before returning, only if there
49216         was an actual failure.
49217         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
49218
49219         Emulate openat-family functions using Linux's procfs, if possible.
49220         Idea and some code based on Ulrich Drepper's glibc changes.
49221
49222         * lib/openat.c: (BUILD_PROC_NAME): New macro.
49223         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
49224         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
49225         before falling back on save_cwd and restore_cwd.
49226         (fdopendir, fstatat, unlinkat): Likewise.
49227
49228         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
49229         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
49230
49231         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
49232         as second argument to va_arg.  Otherwise, some versions of gcc
49233         warn that `if this code is reached, the program will abort'.
49234
49235 2006-01-09  Jim Meyering  <jim@meyering.net>
49236
49237         Sync from coreutils.
49238         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
49239         Require openat-priv.h.
49240
49241 2006-01-09  Bruno Haible  <bruno@clisp.org>
49242
49243         * modules/strnlen (Include): Use strnlen.h.
49244
49245 2006-01-09  Bruno Haible  <bruno@clisp.org>
49246
49247         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
49248
49249 2006-01-09  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/sysexit_.h (EX_OK): New macro.
49252         Suggested by Martin Lambers <marlam@marlam.de>.
49253
49254 2006-01-09  Bruno Haible  <bruno@clisp.org>
49255
49256         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
49257         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
49258
49259 2006-01-09  Bruno Haible  <bruno@clisp.org>
49260
49261         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
49262         numbers.
49263
49264 2006-01-09  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
49267         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
49268         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
49269         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
49270
49271 2006-01-09  Bruno Haible  <bruno@clisp.org>
49272
49273         * build-aux/javacomp.sh.in: New file, moved from lib/.
49274         * modules/javacomp-script (Files): Update.
49275         (configure.ac): Add AC_CONFIG_FILES invocation.
49276         (EXTRA_DIST): Remove variable.
49277
49278         * build-aux/javaexec.sh.in: New file, moved from lib/.
49279         * modules/javaexec (Files): Update.
49280         (configure.ac): Add AC_CONFIG_FILES invocation.
49281         (EXTRA_DIST): Remove javaexec.sh.in.
49282
49283         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
49284         * modules/csharpcomp-script (Files): Update.
49285         (configure.ac): Add AC_CONFIG_FILES invocation.
49286         (EXTRA_DIST): Remove variable.
49287
49288         * build-aux/csharpexec.sh.in: New file, moved from lib/.
49289         * modules/csharpexec (Files): Update.
49290         (configure.ac): Add AC_CONFIG_FILES invocation.
49291         (EXTRA_DIST): Remove csharpexec.sh.in.
49292
49293 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49294
49295         Sync from coreutils.
49296
49297         Add POSIX ACL support
49298         * lib/acl.h (copy_acl, set_acl): Add declarations.
49299         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
49300         systems other than Linux.
49301         (chmod_or_fchmod): New function: use fchmod when possible,
49302         and chmod otherwise.
49303         (file_has_acl): Add a POSIX ACL implementation, with a
49304         Linux-specific subcase.
49305         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
49306         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
49307         acls are unsupported.
49308         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
49309         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
49310         are unsupported.
49311
49312 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49313
49314         Sync from coreutils.
49315         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49316
49317 2006-01-07  Bruno Haible  <bruno@clisp.org>
49318
49319         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49320         gl_EARLY.
49321
49322 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49323
49324         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49325         Problem reported for Mingw by Mark Junker.
49326
49327 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49328
49329         * README: Gnulib normally doesn't generate a tarball.
49330
49331 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49332
49333         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49334         long int, not int, for nanosecond counts, so that people who are
49335         used to POSIX struct timespec won't be surprised.  Reported by Jim
49336         Meyering.
49337
49338 2005-12-28  Bruno Haible  <bruno@clisp.org>
49339
49340         * build-aux/config.rpath: Update from GNU gettext.
49341
49342 2005-12-16  Jim Meyering  <jim@meyering.net>
49343
49344         * modules/fprintftime: New module.
49345         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49346
49347 2005-12-16  Jim Meyering  <jim@meyering.net>
49348
49349         * m4/fprintftime.m4: New file.
49350
49351 2005-12-16  Jim Meyering  <jim@meyering.net>
49352
49353         * lib/fprintftime.c, lib/fprintftime.h: New files.
49354
49355 2005-12-15  Simon Josefsson  <jas@extundo.com>
49356
49357         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49358         new m4/socklen.m4.
49359
49360 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49361
49362         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49363         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49364
49365 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49366
49367         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49368         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49369         struct uparams is valid. Fall back to the default values if it is
49370         not.
49371
49372 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49373
49374         * modules/argp (Files): Add argp-pin.c
49375         (Depends-on): dirname
49376         (lib_SOURCES): Add argp-pin.c
49377
49378 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49379
49380         * m4/argp.m4:  Check if program_invocation_name and
49381         program_invocation_short_name are declared and define appropriate
49382         macros if they are not.
49383
49384 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49385
49386         * lib/argp-help.c (__argp_base_name): New function
49387         (__argp_short_program_name): Rewrite using __argp_base_name
49388         * lib/argp-namefrob.h: Define program_invocation_name and
49389         program_invocation_short_name if requested
49390         (__argp_base_name): Add prototype
49391         * lib/argp-parse.c (argp_def): Use gettext wrappers
49392         (argp_default_parser): Use __argp_base_name
49393         * lib/argp-pin.c: New file. Defines program_invocation_name and
49394         program_invocation_short_name on systems that lack them.
49395
49396 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49397
49398         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49399         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49400         porting problem reported by Georg Schwarz in
49401         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49402
49403 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49404
49405         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49406         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49407         porting problem reported by Georg Schwarz in
49408         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49409
49410 2005-12-05  Bruno Haible  <bruno@clisp.org>
49411
49412         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49413         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49414         Reported by Mark Junker <mjscod@gmx.de>.
49415
49416 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49417
49418         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49419         Use implementation from Albert Chin, with some
49420         comments/corrections by Stepan Kasal and myself.
49421
49422 2005-12-02  Bruno Haible  <bruno@clisp.org>
49423
49424         * gnulib-tool (func_import): Accept GPLed build tool modules when
49425         --lgpl is given.
49426         * modules/csharpcomp-script: New file.
49427         * modules/csharpcomp: Depend on it.
49428         * modules/javacomp-script: New file.
49429         * modules/javacomp: Depend on it.
49430         Suggested by Simon Josefsson.
49431
49432 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49433
49434         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49435         statement, to work around an HP-UX 10.20 compiler bug reported by
49436         Peter O'Gorman.
49437
49438 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49439
49440         * modules/savedir (Depends-on): Add openat.
49441
49442 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49443
49444         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49445         (uintmax_t) [defined uintmax_t]: Do not declare.
49446         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49447         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49448         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49449         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49450         sake of portability to weird hosts that C allows (though we don't
49451         know of any practical examples).
49452
49453         * lib/savedir.h (fdsavedir): New decl.
49454         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49455         contains most of the former guts of savedir.
49456         (savedir): Use savedirstream.
49457         Include "openat.h".
49458
49459 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49460
49461         * modules/obstack (Files): Add m4/ulonglong.m4.
49462         Problem reported by Davide Angelocola.
49463
49464 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49465
49466         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49467         coreutils no longer futzes with rounding modes.
49468
49469 2005-11-14  Jim Meyering  <jim@meyering.net>
49470
49471         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49472         replacement of mkstemp.
49473
49474 2005-11-10  Simon Josefsson  <jas@extundo.com>
49475
49476         * lib/readline.c: Remove EOL.
49477
49478 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49479
49480         * modules/gethrxtime (Depends-on): Add gettime.
49481
49482 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49483
49484         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49485         or gettimeofday; no longer needed.
49486
49487 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49488
49489         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49490         time business.
49491         (gethrxtime) [! (HAVE_NANOUPTIME
49492         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49493         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49494         our own approximation.
49495
49496 2005-11-08  Eric Blake  <ebb9@byu.net>
49497
49498         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49499
49500 2005-11-08  Eric Blake  <ebb9@byu.net>
49501
49502         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49503
49504 2005-11-04  Bruno Haible  <bruno@clisp.org>
49505
49506         * gnulib-tool: Implement --update mode.
49507
49508 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49509
49510         Fix porting problem reported by Theodoros V. Kalamatianos.
49511         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49512         Don't assume that futimes failing means we must fail.
49513
49514 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49515
49516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49517         variables to suggest the intended function of the PATH_MAX check.
49518
49519 2005-10-30  Kean Johnston  <jkj@sco.com>
49520
49521         Trivial changes to support SCO systems.
49522         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49523         as PATH_MAX.
49524         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49525         where __ptr is null when no I/O is pending.
49526
49527 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49528
49529         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49530         leave errno alone.  Problem reported by Dmitry V. Levin.
49531
49532 2005-10-28  Simon Josefsson  <jas@extundo.com>
49533
49534         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49535         Test more.
49536
49537         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49538
49539         * modules/md2, modules/md2-tests: New files.
49540
49541 2005-10-28  Simon Josefsson  <jas@extundo.com>
49542
49543         * m4/inet_ntop.m4: More tests.
49544
49545         * m4/gc-md2.m4, md2.m4: New file.
49546
49547 2005-10-28  Simon Josefsson  <jas@extundo.com>
49548
49549         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49550         "restrict" keywords, as per POSIX.  Protect the function
49551         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49552         Don't use K&R prototypes.  Check the sprintf return values.
49553         Re-define EAFNOSUPPORT if not present.  Indent.
49554
49555         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49556         suggested by Bruno Haible <bruno@clisp.org>.
49557
49558         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49559
49560         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49561
49562         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49563         libgcrypt).
49564
49565         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49566
49567         * lib/md2.h, lib/md2.c: New files.
49568
49569 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49570
49571         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49572         errno alone.  Problem reported by Frederic Jolliton.
49573
49574 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49575
49576         * modules/verify (License): Change from GPL to LGPL.  This is a
49577         tiny module and there are apparently near-equivalents that are
49578         under the BSD license.
49579
49580 2005-10-24  Simon Josefsson  <jas@extundo.com>
49581
49582         * modules/sha1: Relicense to LGPL.
49583
49584 2005-10-24  Simon Josefsson  <jas@extundo.com>
49585
49586         * lib/md4.h: Shrink buffer size, now that we changed the type.
49587
49588 2005-10-23  Simon Josefsson  <jas@extundo.com>
49589
49590         * gnulib-tool (func_import): Fix --tests-base.
49591
49592 2005-10-22  Simon Josefsson  <jas@extundo.com>
49593
49594         * modules/arcfour (Depends-on): Need stdint.
49595
49596 2005-10-22  Simon Josefsson  <jas@extundo.com>
49597
49598         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49599         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49600
49601 2005-10-22  Simon Josefsson  <jas@extundo.com>
49602
49603         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49604         suggested by Bruno Haible <bruno@clisp.org>.
49605
49606 2005-10-22  Simon Josefsson  <jas@extundo.com>
49607
49608         * lib/crc.h: Include stddef.h, for size_t.
49609
49610 2005-10-22  Simon Josefsson  <jas@extundo.com>
49611
49612         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49613         arcfour_context struct (simplify test vector testing in GNU
49614         Shishi).
49615
49616 2005-10-21  Simon Josefsson  <jas@extundo.com>
49617
49618         * modules/des, modules/des-tests: New files.
49619
49620         * modules/gc-des, modules/gc-des-tests: New files.
49621
49622         * tests/test-des.c, tests/test-gc-des.c: New file.
49623
49624 2005-10-21  Simon Josefsson  <jas@extundo.com>
49625
49626         * modules/arctwo, modules/arctwo-tests: New files.
49627
49628         * tests/test-arctwo.c: New file.
49629
49630         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49631
49632         * tests/test-gc-arctwo.c: New file.
49633
49634 2005-10-21  Simon Josefsson  <jas@extundo.com>
49635
49636         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49637         Bruno Haible <bruno@clisp.org>.
49638
49639         * m4/gc-des.m4: New file.
49640
49641 2005-10-21  Simon Josefsson  <jas@extundo.com>
49642
49643         * m4/arctwo.m4: New file.
49644
49645         * m4/gc-arctwo.m4: New file.
49646
49647 2005-10-21  Simon Josefsson  <jas@extundo.com>
49648
49649         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49650         block.
49651
49652 2005-10-21  Simon Josefsson  <jas@extundo.com>
49653
49654         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49655         <bruno@clisp.org>.
49656
49657         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49658
49659         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49660         Bruno Haible <bruno@clisp.org>.
49661
49662         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49663         <bruno@clisp.org>.
49664
49665 2005-10-21  Simon Josefsson  <jas@extundo.com>
49666
49667         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49668
49669 2005-10-21  Simon Josefsson  <jas@extundo.com>
49670
49671         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49672
49673 2005-10-21  Simon Josefsson  <jas@extundo.com>
49674
49675         * lib/des.h, lib/des.c: New files.
49676
49677         * lib/gc-gnulib.c: Support DES.c
49678
49679 2005-10-21  Simon Josefsson  <jas@extundo.com>
49680
49681         * lib/arctwo.h, lib/arctwo.c: New files.
49682
49683         * lib/gc-gnulib.c: Support ARCTWO.
49684
49685 2005-10-21  Simon Josefsson  <jas@extundo.com>
49686
49687         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49688         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49689
49690 2005-10-21  Simon Josefsson  <jas@extundo.com>
49691
49692         * gnulib-tool (func_import, func_create_testdir): Define automake
49693         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49694         Makefile.am snippet),
49695         suggested by Bruno Haible <bruno@clisp.org>.
49696
49697         * modules/gc (Makefile.am): Use it.
49698
49699 2005-10-21  Bruno Haible  <bruno@clisp.org>
49700
49701         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49702         patch.
49703
49704 2005-10-19  Simon Josefsson  <jas@extundo.com>
49705
49706         * tests/test-gc-rijndael.c: New file.
49707
49708         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49709
49710 2005-10-19  Simon Josefsson  <jas@extundo.com>
49711
49712         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49713         interface too.
49714
49715 2005-10-19  Simon Josefsson  <jas@extundo.com>
49716
49717         * tests/test-gc-arcfour.c: New file.
49718
49719         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49720
49721 2005-10-19  Simon Josefsson  <jas@extundo.com>
49722
49723         * modules/gc-md4, modules/gc-md4-tests: New file.
49724
49725         * tests/test-gc-md4.c: New file.
49726
49727 2005-10-19  Simon Josefsson  <jas@extundo.com>
49728
49729         * m4/gc-md4.m4: New file.
49730
49731 2005-10-19  Simon Josefsson  <jas@extundo.com>
49732
49733         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49734         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49735         <kasal@ucw.cz>.
49736
49737 2005-10-19  Simon Josefsson  <jas@extundo.com>
49738
49739         * m4/gc-arcfour.m4: New file.
49740
49741         * m4/gc-rijndael.m4: New file.
49742
49743 2005-10-19  Simon Josefsson  <jas@extundo.com>
49744
49745         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49746
49747 2005-10-19  Simon Josefsson  <jas@extundo.com>
49748
49749         * lib/gc-gnulib.c: Support ARCFOUR.
49750
49751 2005-10-19  Simon Josefsson  <jas@extundo.com>
49752
49753         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49754         support.
49755
49756         * lib/gc.h: Add ECB enum type.
49757
49758         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49759
49760 2005-10-18  Simon Josefsson  <jas@extundo.com>
49761
49762         * tests/test-md5.c: New file.
49763
49764         * modules/md5-tests: New file.
49765
49766 2005-10-18  Simon Josefsson  <jas@extundo.com>
49767
49768         * tests/test-md4.c: New file.
49769
49770         * modules/md4, modules/md4-tests: New files.
49771
49772 2005-10-18  Simon Josefsson  <jas@extundo.com>
49773
49774         * m4/md4.m4: New file.
49775
49776 2005-10-18  Simon Josefsson  <jas@extundo.com>
49777
49778         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49779
49780 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49781
49782         * gnulib-tool (func_create_testdir): Omit the second check whether
49783         BUILT_SOURCES in nonempty.
49784
49785 2005-10-17  Simon Josefsson  <jas@extundo.com>
49786
49787         * tests/test-rijndael.c: New file.
49788
49789 2005-10-17  Simon Josefsson  <jas@extundo.com>
49790
49791         * modules/sha1: Depend on stdint instead of md5.
49792
49793         * modules/md5: Depend on stdint, remove uint32_t.
49794
49795 2005-10-17  Simon Josefsson  <jas@extundo.com>
49796
49797         * modules/gc-sha1-tests: New file.
49798
49799         * tests/test-gc-sha1.c: New file.
49800
49801 2005-10-17  Simon Josefsson  <jas@extundo.com>
49802
49803         * m4/md5.m4: Remove call to uint32_t.m4.
49804
49805 2005-10-17  Simon Josefsson  <jas@extundo.com>
49806
49807         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49808
49809         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49810         md5.h.
49811
49812         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49813
49814         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49815
49816 2005-10-17  Simon Josefsson  <jas@extundo.com>
49817
49818         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49819
49820 2005-10-17  Simon Josefsson  <jas@extundo.com>
49821
49822         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49823
49824 2005-10-17  Simon Josefsson  <jas@extundo.com>
49825
49826         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49827
49828         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49829
49830 2005-10-17  Bruno Haible  <bruno@clisp.org>
49831
49832         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49833         that it can also be used in a test.
49834
49835 2005-10-16  Bruno Haible  <bruno@clisp.org>
49836
49837         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49838         TESTS_ENVIRONMENT, so that individual tests can augment it.
49839
49840         * gnulib-tool (func_create_testdir): Use an intermediate target for
49841         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49842         macros, like $(ALLOCA_H), which cannot be passed through the command
49843         line.
49844
49845 2005-10-15  Simon Josefsson  <jas@extundo.com>
49846
49847         * modules/rijndael-tests: New file.
49848
49849         * modules/rijndael: New file.
49850
49851 2005-10-15  Simon Josefsson  <jas@extundo.com>
49852
49853         * m4/rijndael.m4: New file.
49854
49855 2005-10-15  Simon Josefsson  <jas@extundo.com>
49856
49857         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49858
49859         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49860
49861 2005-10-14  Simon Josefsson  <jas@extundo.com>
49862
49863         * tests/test-arcfour.c: New file.
49864
49865         * modules/arcfour, modules/arcfour-tests: New files.
49866
49867 2005-10-14  Simon Josefsson  <jas@extundo.com>
49868
49869         * m4/arcfour.m4: New file.
49870
49871 2005-10-14  Simon Josefsson  <jas@extundo.com>
49872
49873         * lib/arcfour.h, lib/arcfour.c: New files.
49874
49875 2005-10-14  Roland McGrath  <roland@redhat.com>
49876
49877         Import from libc.  [BZ #1331]
49878         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49879         macro argument.
49880         Reported by Matej Vela <vela@debian.org>.
49881
49882 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49883
49884         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49885         include <wchar.h>; no longer needed.
49886
49887 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49888
49889         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49890
49891 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49892         and  Ulrich Drepper  <drepper@redhat.com>
49893
49894         Import from libc.
49895         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49896         instead of inline stream orientation test and two separate
49897         function calls.  Pay no attention to USE_IN_LIBIO.
49898
49899 2005-10-13  Simon Josefsson  <jas@extundo.com>
49900
49901         * modules/gc-hmac-md5-tests: New file.
49902
49903         * tests/test-gc-hmac-sha1.c: New file.
49904
49905         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49906
49907         * modules/gc-hmac-md5-tests: New file.
49908
49909         * tests/test-gc-md5.c: New file.
49910
49911         * modules/gc-md5-tests: New file.
49912
49913 2005-10-13  Simon Josefsson  <jas@extundo.com>
49914
49915         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49916         Move memory allocation outside of loop.
49917
49918 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49919
49920         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49921         intermediate directory is in a read-only file system.  Problem
49922         reported by Eric Blake.
49923
49924 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49925
49926         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49927
49928 2005-10-12  Simon Josefsson  <jas@extundo.com>
49929
49930         * tests/test-hmac-sha1.c: New file.
49931
49932         * modules/hmac-sha1-tests: New file.
49933
49934         * modules/hmac-sha1: New file.
49935
49936 2005-10-12  Simon Josefsson  <jas@extundo.com>
49937
49938         * modules/gc-sha1: New file.
49939
49940 2005-10-12  Simon Josefsson  <jas@extundo.com>
49941
49942         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49943
49944         * tests/test-gc-pbkdf2-sha1.c: New file.
49945
49946 2005-10-12  Simon Josefsson  <jas@extundo.com>
49947
49948         * modules/gc-md5, modules/gc-hmac-md5: New files.
49949
49950         * modules/gc (Files): Remove md5, memxor and hmac files.
49951
49952 2005-10-12  Simon Josefsson  <jas@extundo.com>
49953
49954         * m4/gc-pbkdf2-sha1.m4: New file.
49955
49956         * m4/gc-hmac-sha1.m4: New file.
49957
49958         * m4/gc-sha1: New file.
49959
49960         * m4/hmac-sha1.m4: New file.
49961
49962 2005-10-12  Simon Josefsson  <jas@extundo.com>
49963
49964         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49965
49966         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49967
49968 2005-10-12  Simon Josefsson  <jas@extundo.com>
49969
49970         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49971         suggested by Bruno Haible <bruno@clisp.org>.
49972
49973 2005-10-12  Simon Josefsson  <jas@extundo.com>
49974
49975         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49976
49977 2005-10-12  Simon Josefsson  <jas@extundo.com>
49978
49979         * lib/gc-pbkdf2-sha1.c: New file.
49980
49981         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49982
49983 2005-10-12  Simon Josefsson  <jas@extundo.com>
49984
49985         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49986
49987         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49988
49989 2005-10-12  Simon Josefsson  <jas@extundo.com>
49990
49991         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49992         GC_USE_HMAC_MD5, respectively.
49993
49994         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49995         (gc_md5): Fix typo.
49996
49997         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49998
49999         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
50000
50001         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
50002
50003 2005-10-12  Bruno Haible  <bruno@clisp.org>
50004
50005         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
50006         Reported by Stepan Kasal <kasal@ucw.cz>.
50007
50008 2005-10-11  Simon Josefsson  <jas@extundo.com>
50009
50010         * tests/test-crc.c: New file.
50011
50012         * modules/crc, modules/crc-tests: New files.
50013
50014 2005-10-11  Simon Josefsson  <jas@extundo.com>
50015
50016         * m4/crc.m4: New file.
50017
50018 2005-10-11  Simon Josefsson  <jas@extundo.com>
50019
50020         * lib/gc.h: Add gc_hash and gc_hash_buffer.
50021
50022         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
50023
50024         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
50025
50026 2005-10-11  Simon Josefsson  <jas@extundo.com>
50027
50028         * lib/crc.h, lib/crc.c: New files.
50029
50030         * lib/gc.h (gc_hash_buffer): Add doc.
50031
50032 2005-10-11  Bruno Haible  <bruno@clisp.org>
50033
50034         * modules/c-strcasestr: New file.
50035         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
50036
50037 2005-10-11  Bruno Haible  <bruno@clisp.org>
50038
50039         * modules/c-strcase: New file.
50040         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
50041
50042 2005-10-11  Bruno Haible  <bruno@clisp.org>
50043
50044         * lib/strcasecmp.c: Include limits.h.
50045         (strcasecmp): Avoid integer overflow on exotic platforms.
50046         * lib/strncasecmp.c: Include limits.h.
50047         (strncasecmp): Avoid integer overflow on exotic platforms.
50048         Reported by Paul Eggert.
50049
50050 2005-10-11  Bruno Haible  <bruno@clisp.org>
50051
50052         * lib/c-strcasestr.h: New file, from GNU gettext.
50053         * lib/c-strcasestr.c: New file, from GNU gettext.
50054
50055 2005-10-11  Bruno Haible  <bruno@clisp.org>
50056
50057         * lib/c-strcase.h: New file, from GNU gettext.
50058         * lib/c-strcasecmp.c: New file, from GNU gettext.
50059         * lib/c-strncasecmp.c: New file, from GNU gettext.
50060
50061 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50062
50063         * modules/mempcpy (License): GPL -> LGPL.
50064         * modules/strchrnul (License): Likewise.
50065         * modules/sysexits (License): Likewise.
50066
50067 2005-10-08  Simon Josefsson  <jas@extundo.com>
50068
50069         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
50070
50071 2005-10-07  Simon Josefsson  <jas@extundo.com>
50072
50073         * m4/memxor.m4: Remove gl_C_RESTRICT call.
50074
50075 2005-10-06  Simon Josefsson  <jas@extundo.com>
50076
50077         * tests/test-hmac-md5.c: New file.
50078
50079         * modules/hmac-md5-tests: New file.
50080
50081         * modules/hmac-md5: New file.
50082
50083 2005-10-06  Simon Josefsson  <jas@extundo.com>
50084
50085         * m4/hmac-md5.m4: New file.
50086
50087         * m4/memxor.m4: Require gl_C_RESTRICT.
50088
50089 2005-10-06  Simon Josefsson  <jas@extundo.com>
50090
50091         * lib/memxor.c (memxor): Avoid casts and warnings.
50092
50093 2005-10-06  Simon Josefsson  <jas@extundo.com>
50094
50095         * lib/hmac-md5.c: New file.
50096
50097         * lib/hmac.h: New file.
50098
50099 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50100
50101         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
50102         promotes to int, not unsigned int, to catch the AIX 5.3
50103         compiler bug.
50104
50105 2005-10-05  Simon Josefsson  <jas@extundo.com>
50106
50107         * modules/memxor: New file.
50108
50109         * modules/iconv (Files): Move config.rpath to havelib, it is used
50110         there.
50111
50112         * modules/havelib (Files): Add config.rpath.
50113
50114 2005-10-05  Simon Josefsson  <jas@extundo.com>
50115
50116         * m4/memxor.m4: New file.
50117
50118 2005-10-05  Simon Josefsson  <jas@extundo.com>
50119
50120         * lib/memxor.c (memxor): Fix compiler error.
50121
50122         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
50123         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
50124
50125         * lib/memxor.h, lib/memxor.c: New files.
50126
50127         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
50128         we assume all systems have it, suggested by Jim Meyering
50129         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
50130         any systems lack sys/socket.h; mingw32 is known to lack it, but we
50131         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
50132         same reasons.
50133
50134 2005-10-05  Simon Josefsson  <jas@extundo.com>
50135
50136         * config/srclist.txt: Add glibc bug 1423 for md5.h.
50137
50138 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50139
50140         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
50141         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
50142         needed, since the source code now assumes these .h files.
50143
50144 2005-10-05  Derek Price  <derek@ximbiot.com>
50145
50146         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
50147
50148 2005-10-05  Bruno Haible  <bruno@clisp.org>
50149
50150         * modules/stdint (License): Change to LGPL.
50151
50152 2005-10-04  Simon Josefsson  <jas@extundo.com>
50153
50154         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
50155         D. Baushke" <mdb@gnu.org>.
50156
50157 2005-10-04  Bruno Haible  <bruno@clisp.org>
50158
50159         * lib/verify.h (verify_true): Provide alternative definition for C++.
50160
50161 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
50162
50163         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
50164         (SSIZE_MAX): New macro, if not already defined.
50165         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
50166         than 2 GiB.
50167
50168 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50169
50170         Sync from coreutils.
50171         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
50172         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
50173         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
50174         ULLONG_MAX doesn't work with 2.7.2.1.
50175
50176 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50177
50178         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
50179         From Ben Pfaff.
50180
50181         * modules/exclude (Depends-on): Depend on verify.
50182         * modules/strtoimax (Depends-on): Likewise.
50183         * modules/utimecmp (Depends-on): Likewise.
50184
50185 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50186
50187         * lib/exclude.c: Include verify.h.
50188         (verify): Remove.  All callers changed to use verify.h's version.
50189         * lib/strtoimax.c: Likewise.
50190         * lib/utimecmp.c: Likewis.e
50191
50192         Sync from coreutils.
50193         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
50194         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
50195         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
50196         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
50197         bother returning ENOSYS if settimeofday or stime fails; just let
50198         them return whatever errno they want to return.
50199         * lib/utimens.c: Include unistd.h, for dup2.
50200         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
50201         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
50202
50203 2005-10-02  Jim Meyering  <jim@meyering.net>
50204
50205         Sync from coreutils.
50206         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
50207         from glibc-2.2.5 that fails for read-only files.
50208
50209 2005-10-02  Jim Meyering  <jim@meyering.net>
50210
50211         Sync from coreutils.
50212         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
50213         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
50214         `#if HAVE_CONFIG_H'.
50215         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
50216         Remove AT_FDCWD test.
50217         Do not consume the fd unless successful.
50218         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
50219         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
50220         block, so that we don't even try to compile it if settimeofday is
50221         available.  This works around a compilation failure on OSF1 V5.1,
50222         due to stime requiring a `long int*' while tv_sec is `int'.
50223
50224 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
50225
50226         Sync from coreutils.
50227         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
50228         against `yes', rather than just testing for nonempty.
50229
50230 2005-10-01  Simon Josefsson  <jas@extundo.com>
50231
50232         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
50233         and Darwin.
50234
50235         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
50236         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
50237         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
50238         freeaddrinfo and gai_strerror are declared by the POSIX headers.
50239         Check if struct addrinfo is declared.
50240
50241 2005-10-01  Simon Josefsson  <jas@extundo.com>
50242
50243         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
50244         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
50245         AI_* and EAI_* definitions.  Protect function declarations.
50246
50247 2005-10-01  Jim Meyering  <jim@meyering.net>
50248
50249         Sync from coreutils.
50250
50251         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
50252         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
50253         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
50254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50255         in the inet and nsl libraries.  Required on Solaris 5.7.
50256
50257 2005-10-01  Jim Meyering  <jim@meyering.net>
50258
50259         Sync from coreutils.
50260         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50261         in the inet and nsl libraries.  Required on Solaris 5.7.
50262
50263 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
50264
50265         * lib/getdelim.c (getdelim): Remove unused variables.
50266
50267 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50268
50269         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
50270         so that the code works even with ancient cpp.  Portability problem
50271         with GCC 2.7.2.1 reported by Thomas M.Ott.
50272
50273 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50274
50275         * modules/regex (Depends-on): Add strcase.
50276
50277         * modules/gethostname (Licence): Change from GPL to LGPL, since
50278         gethostname.c is a trivial implementation of a standard library
50279         function.
50280         * modules/poll (License): Change from GPL to LGPL, since it's
50281         derived from LGPL code.
50282
50283 2005-09-27  Jim Meyering  <jim@meyering.net>
50284
50285         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
50286         HAVE_CONFIG_H.
50287
50288         * lib/intprops.h (signed_type_or_expr__): Define.
50289         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
50290         for unsigned types.
50291
50292 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50293
50294         * lib/verify.h (verify_expr): Remove, replacing with:
50295         (verify_true): New macro that returns true instead of void.
50296         (verify_type__): Remove.
50297         (verify): Use verify_true rather than verify_type__.
50298
50299 2005-09-26  Bruno Haible  <bruno@clisp.org>
50300
50301         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
50302         is necessary.
50303         (lib_SOURCES): Remove mbchar.c.
50304         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
50305         (Files): Add m4/mbrtowc.m4.
50306         * modules/mbiter: Likewise.
50307         * modules/mbuiter: Likewise.
50308
50309 2005-09-26  Bruno Haible  <bruno@clisp.org>
50310
50311         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50312         compile mbchar.c if they are not both present.
50313         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50314         * m4/mbiter.m4 (gl_MBITER): Likewise.
50315         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50316         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50317         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50318
50319 2005-09-25  Jim Meyering  <jim@meyering.net>
50320
50321         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50322         also uses socklen_t.
50323
50324 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50325
50326         * lib/utimens.c (ENOSYS): Define if not already defined.
50327         (futimens): Support having a null PATH if the file descriptor
50328         is nonnegative.
50329
50330         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50331         Remove.
50332         (__attribute): Define to empty unless GCC 3.1 or later.
50333         This works around a core dump on OpenBSD 3.4, which has GCC
50334         2.95.3, which dumps core when given __attribute__(()).  It also
50335         simplifies other tests, since we really don't want to bother with
50336         worrying about which ancient version of GCC supported what.
50337         Original problem reported by Yoann Vandoorselaere, with part of
50338         the fix suggested by Derek Price.
50339
50340 2005-09-24  Jim Meyering  <jim@meyering.net>
50341
50342         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50343         so we can once again use a positive bitfield width of 1 -- now we
50344         don't have to explain why we were using a bitfield width of 2.
50345
50346 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50347
50348         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50349         and similarly for the other external symbols.  Problem reported
50350         by James Gallager.
50351
50352         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50353         bug reported by Jim Meyering.
50354
50355         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50356         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50357         not needed, since socklen is a prerequisite module.
50358
50359 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50360
50361         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50362         Problem reported by Eric Blake.
50363         (getaddrinfo): Initialize se so that it's not garbage.
50364         Redo internal storage allocation so that it doesn't make unportable
50365         assumptions about alignment.
50366         Fix a memory leak.
50367
50368         * lib/utimens.c (futimens): Use futimesat if available.
50369         Prefer it to futimes since it doesn't have the futimes bug.
50370
50371         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50372         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50373         Instead, declare a function that returns a pointer to an array,
50374         and use verify_type__ to declare the size of the array.
50375         Problem and germ of a solution reported by Bruno Haible.
50376         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50377         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50378
50379 2005-09-23  Jim Meyering  <jim@meyering.net>
50380
50381         Sync from coreutils.
50382         Correct build failure (socklen_t not defined) on at least
50383         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50384         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50385
50386 2005-09-23  Jim Meyering  <jim@meyering.net>
50387
50388         * modules/getaddrinfo (Depends-on): Add socklen.
50389
50390 2005-09-23  Bruno Haible  <bruno@clisp.org>
50391
50392         * tests/test-verify.c: New file.
50393
50394 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50395
50396         Sync from coreutils.
50397
50398         * modules/argmatch (Depends-on): Add verify.
50399         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50400         unistd-safer.
50401         * modules/save-cwd (Depends-on): Likewise.
50402
50403         * modules/openat (Files): Add lib/openat-die.c.
50404         (Depends-on): Remove error, exitfail.
50405         Add dirname.
50406
50407         * modules/verify: New file.
50408         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50409         with "verify" module.
50410
50411 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50412
50413         Sync from coreutils.
50414
50415         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50416         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50417         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50418         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50419         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50420         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50421         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50422         Don't bother checking for string.h, stdlib.h, unistd.h.
50423         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50424         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50425         module's job.
50426         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50427         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50428
50429         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50430         (gl_GETDATE): Use it.
50431
50432         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50433
50434 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50435
50436         Sync from coreutils.
50437
50438         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50439         stat-time.h.
50440         * lib/argmatch.h: Include verify.h
50441         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50442         (ARGMATCH_ASSERT): Remove; unused.
50443         * lib/canonicalize.c: Assume STDC_HEADERS.
50444         * lib/exclude.c: Include "strcase.h".
50445         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50446         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50447         and stdio-safer.h.
50448         (getusershell): Call fopen, not fopen_safer.
50449         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50450         Do not include unistd-safer.h.
50451         (save_cwd): Don't call fd_safer; no longer needed
50452         now that we include fcntl--.h.
50453
50454         * lib/getdate.y (relative_time): New type.
50455         (RELATIVE_TIME_0): New constant.
50456         (parser_control): Use relative_time instead of doing it ourselves.
50457         (%union): Add new relative_time rel member.
50458         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50459         Now typeless.
50460         (relunit, relunit_snumber): Now of type rel.
50461         (zone, rel, relunit, get_date): Adjust to above changes.
50462
50463         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50464         Do not include unistd-safer.h.
50465         (getloadavg): Don't call fd_safer; no longer needed
50466         now that we include fcntl--.h.
50467
50468         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50469         (make_dir_parents): Treat ENOSYS like EEXIST.
50470
50471         Improve quality of diagnostics on restore_cwd failure.
50472         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50473         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50474         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50475         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50476         each time through the loop.  Do not diagnose restore_cwd failure;
50477         that is the caller's job (and perhaps the caller does not care).
50478
50479         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50480         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50481         If the file already exists but is not a directory, don't bother
50482         to try to make its parents.
50483         Close potential file descriptor leak if we can't chdir("/") (!).
50484         Don't always return true if chdir($PWD) fails; return true only
50485         if the requested action was done successfully (except for the
50486         chdir($PWD)).
50487         Don't log final directory unless we actually made it.
50488         Refactor to avoid duplicate code to fix up permissions.
50489         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50490
50491         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50492         to make it a bit faster and (I hope) clearer.
50493         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50494         Fix bug in formats like %2N.
50495
50496         * lib/verify.h: New file.
50497
50498 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50499
50500         Sync from coreutils.
50501         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50502
50503 2005-09-22  Jim Meyering  <jim@meyering.net>
50504
50505         Sync from coreutils.
50506
50507         * m4/lstat.m4 (gl_FUNC_LSTAT):
50508         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50509         Remove obsolete comment.
50510         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50511         * m4/xstrtod.m4: Likewise.
50512
50513         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50514
50515 2005-09-22  Jim Meyering  <jim@meyering.net>
50516
50517         Sync from coreutils.
50518
50519         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50520
50521         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50522         the .tm_year member, since otherwise gcc-4.0 would now warn about
50523         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50524
50525         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50526         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50527
50528         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50529         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50530         when run in a time zone for which daylight savings time is in effect
50531         for the starting date.
50532
50533         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50534         stop us from restricting permissions of just-created absolute-named
50535         directories.
50536         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50537         to restore initial working directory.
50538         * lib/mkdir-p.c (make_dir_parents): New parameter:
50539         different_working_dir, to tell caller if/when we change the working
50540         directory and are unable to return to the initial one.
50541         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50542         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50543         `return false'.  This fixes a bug introduced on 2004-07-30.
50544
50545         * lib/openat.c (fdopendir): Be sure to close the supplied
50546         file descriptor before returning.  This makes our replacement
50547         implementation a little closer to Solaris's, where fdopendir
50548         ties the file descriptor to the returned DIR* pointer.
50549         * lib/openat.c (unlinkat): New function.
50550         * lib/openat.h (unlinkat): Add prototype.
50551         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50552         (openat_restore_fail): Rename from openat_restore_die.
50553         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50554
50555         Provide an alternative to exiting immediately upon save_cwd or
50556         restore_cwd failure.  Now, an application can arrange e.g.,
50557         to perform a longjump in that case.
50558         * lib/openat.c: Include dirname.h.
50559         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50560         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50561         and openat_restore_die rather than calling error directly.
50562         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50563
50564         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50565         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50566         define.
50567
50568         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50569         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50570                             int utc, int nanoseconds);
50571         Background:
50572         date should not have to allocate a megabyte of virtual memory to
50573         handle a format argument like +%1048575T.  When implemented with
50574         strftime, it must allocate such a buffer, use strftime to fill it
50575         in, print it, then free it.
50576         With fprintftime, it simply prints everything and exits.
50577         With no need for memory allocation, that's one fewer way to fail.
50578         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50579         optional field width, not before, so we accept %9:z, not %:9z.
50580         (my_strftime): Be sure to use L_('x') for literals.
50581
50582         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50583         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50584         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50585         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50586         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50587         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50588         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50589         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50590         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50591         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50592         * lib/xgethostname.c, lib/xreadlink.c:
50593         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50594
50595         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50596         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50597         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50598         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50599         and don't include <sys/file.h>).
50600
50601 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50602
50603         Sync from coreutils.
50604
50605         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50606         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50607         [!LDAV_DONE]: Avoid unused variable warning.
50608
50609 2005-09-21  Bruno Haible  <bruno@clisp.org>
50610
50611         * lib/unicodeio.h (unicode_to_mb): New declaration.
50612
50613 2005-09-20  Derek Price  <derek@ximbiot.com>
50614
50615         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50616         getaddrinfo.h.
50617
50618 2005-09-20  Bruno Haible  <bruno@clisp.org>
50619
50620         * gnulib-tool: Remove trailing slashes from the values specified for
50621         --source-base, --m4-base, --tests-base, --aux-dir.
50622         Suggested by Simon Josefsson <jas@extundo.com>.
50623
50624 2005-09-20  Bruno Haible  <bruno@clisp.org>
50625
50626         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50627         func_modules_to_filelist, func_import, func_create_testdir): Make all
50628         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50629         change when gnulib-tool is invoked in a different locale.
50630
50631 2005-09-19  Simon Josefsson  <jas@extundo.com>
50632
50633         * m4/socklen.m4: Fix typo.
50634
50635 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50636
50637         Use a consistent style for including <config.h>.
50638         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50639         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50640         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50641         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50642         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50643         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50644         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50645         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50646         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50647         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50648         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50649         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50650         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50651         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50652         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50653         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50654         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50655         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50656         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50657         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50658         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50659         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50660         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50661         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50662         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50663         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50664         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50665         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50666         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50667         lib/xstrtoumax.c, lib/yesno.c:
50668         Standardize inclusion of config.h.
50669         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50670         lib/inttostr.h:  Removed inclusion of config.h from header files.
50671         * lib/inttostr.c:  Adjusted in-tree users.
50672         * lib/timespec.h: Remove superfluous warning to include config.h.
50673         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50674         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50675         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50676         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50677         config.h with HAVE_CONFIG_H.
50678
50679 2005-09-19  Jim Meyering  <jim@meyering.net>
50680
50681         * modules/pathmax (License): Change to LGPL.
50682
50683 2005-09-19  Derek Price  <derek@ximbiot.com>
50684
50685         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50686
50687 2005-09-19  Bruno Haible  <bruno@clisp.org>
50688
50689         * gnulib-tool (import): Provide default for --tests-base.
50690
50691 2005-09-19  Bruno Haible  <bruno@clisp.org>
50692
50693         * doc/quote.texi: New file, extracted from gnulib.texi.
50694         * doc/ctime.texi: New file, extracted from gnulib.texi.
50695         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50696         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50697         * doc/gnulib.texi: Include them.
50698
50699 2005-09-18  Bruno Haible  <bruno@clisp.org>
50700
50701         Portability fix.
50702         * gnulib-tool (func_readlink): New function.
50703         (func_ln_if_changed): Use it.
50704
50705 2005-09-18  Bruno Haible  <bruno@clisp.org>
50706
50707         * gnulib-tool: Support --with-tests also with --import.
50708         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50709         (func_import): Use variables $testsbase and $inctests. Emit a
50710         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50711         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50712         SUBDIRS += $testsdir.
50713         (func_create_testdir): Update.
50714
50715 2005-09-18  Bruno Haible  <bruno@clisp.org>
50716
50717         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50718         instead of $dry_run.
50719         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50720         (func_ln_if_changed): Don't handle dry-run here.
50721         (func_import): In dry-run mode, detect more precisely which actions
50722         would be performed, and don't use "...ing" verbs.
50723
50724 2005-09-18  Bruno Haible  <bruno@clisp.org>
50725
50726         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50727         (func_import): Use join on two temporary files instead of three nested
50728         loops, in order to determine which files are new or old.
50729
50730 2005-09-18  Bruno Haible  <bruno@clisp.org>
50731
50732         * gnulib-tool (func_import): Comment out code that spits out the
50733         new files with --dry-run.
50734
50735 2005-09-18  Bruno Haible  <bruno@clisp.org>
50736
50737         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50738
50739 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50740
50741         * lib/stat-time.h: New file.
50742         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50743         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50744         in a different way.
50745         (timespec_cmp): New function.
50746         * lib/utimecmp.c: Include stat-time.h.
50747         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50748         members exist, not on the obsolescent ST_MTIM_NSEC.
50749         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50750
50751 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50752
50753         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50754
50755 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50756
50757         * MODULES.html.sh (File system functions): Add stat-time.
50758         * modules/stat-time: New file.
50759         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50760         is now done in a different way, by the stat-time module.
50761         * modules/utimecmp (Depends-on): Add stat-time.
50762
50763 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50764
50765         * m4/st_mtim.m4: Remove.  Superseded by...
50766         * m4/stat-time.m4: New file.
50767         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50768         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50769
50770 2005-09-15  Derek Price  <derek@ximbiot.com>
50771
50772         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50773
50774 2005-09-15  Derek Price  <derek@ximbiot.com>
50775
50776         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50777         * lib/regex_internal.c: Ditto, using this...
50778         (__GNUC_PREREQ): ...new macro.
50779         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50780         using...
50781         (__GNUC_PREREQ): ...this new macro.
50782
50783         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50784
50785 2005-09-15  Derek Price  <derek@ximbiot.com>
50786             Paul Eggert  <eggert@cs.ucla.edu>
50787
50788         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50789         changes, consolidating in...
50790         * lib/regex_internal.h: ...this file.
50791
50792 2005-09-13  Jim Meyering  <jim@meyering.net>
50793
50794         * lib/canon-host.c: Filter through gnu indent and reword comments
50795         slightly.
50796         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50797
50798 2005-09-13  Derek Price  <derek@ximbiot.com>
50799
50800         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50801         failure.
50802         Reported by Jim Meyering  <jim@meyering.net>.
50803
50804 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50805
50806         * lib/base64.c: Typo.
50807         (base64_encode): Put b64str in initialized data section.
50808
50809 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50810
50811         Merge glibc and coreutils changes into gnulib, plus a few
50812         extra fixes.
50813         * lib/md5.c: Use #error rather than a string.
50814         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50815         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50816         (__attribute__): Define to empty for non recent-GCC.
50817         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50818         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50819         Renamed from their non-__ counterparts, with new macros replacing
50820         them if not _LIBC.  Add __THROW attribute.
50821         (rol): Remove.
50822         (struct md5_ctx): Align buffer if using GCC.
50823         * lib/sha1.h (struct sha1_ctx): Likewise.
50824         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50825         The old name was backwards.
50826         (NOTSWAP): Remove; not used.
50827         (rol): New macro, moved here from md5.h.
50828         (sha1_process_block): Remove a FIXME that doesn't make sense.
50829
50830 2005-09-12  Derek Price  <derek@ximbiot.com>
50831
50832         Return usable errors from canon-host.
50833         * lib/canon-host.h: New file.
50834         * lib/canon-host.c (canon_host): Wrap...
50835         (canon_host_r): ...this new function, which now relies exclusively on
50836         getaddrinfo.
50837         (ch_strerror): New function.
50838         (last_cherror): New global.
50839         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50840         interface.
50841         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50842         void *.
50843         (freeaddrinfo): Free ai->ai_canonname when set.
50844
50845 2005-09-12  Derek Price  <derek@ximbiot.com>
50846
50847         Make canon-host require getaddrinfo.
50848         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50849         AC_LIBSOURCE canon-host.h.  Call...
50850         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50851         gl_GETADDRINFO.
50852         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50853
50854 2005-09-12  Derek Price  <derek@ximbiot.com>
50855
50856         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50857         LGPL.
50858         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50859
50860 2005-09-12  Derek Price  <derek@ximbiot.com>
50861
50862         * lib/gai_strerror.c: Include config.h when available.  Include
50863         getaddrinfo.h before other headers to test interface.
50864         Reported by Larry Jones <lawrence.jones@ugs.com>.
50865
50866 2005-09-12  Derek Price  <derek@ximbiot.com>
50867             Paul Eggert  <eggert@cs.ucla.edu>
50868
50869         * modules/glob (Files): Add glob-libc.h.
50870
50871 2005-09-12  Derek Price  <derek@ximbiot.com>
50872             Paul Eggert  <eggert@cs.ucla.edu>
50873
50874         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50875         glob_.h, glob-libc.h.
50876         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50877
50878 2005-09-12  Derek Price  <derek@ximbiot.com>
50879             Paul Eggert  <eggert@cs.ucla.edu>
50880
50881         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50882         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50883         protecting things that should be done only in gnulib contexts.
50884         * lib/glob_.h: New file, containing only the glob things needed for
50885         gnulib.
50886         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50887         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50888         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50889         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50890         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50891         and to respect the namespace rules better.
50892
50893 2005-09-08  Simon Josefsson  <jas@extundo.com>
50894
50895         * modules/socklen: New file.
50896
50897 2005-09-08  Simon Josefsson  <jas@extundo.com>
50898
50899         * m4/socklen.m4: New file.
50900
50901 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50902
50903         * modules/utimens (Files): Add m4/utimbuf.m4, since
50904         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50905         Reported by Sergey Poznyakoff.
50906
50907 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50908
50909         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50910         definitions, since that's the preferred style in glibc.
50911         Fix a minor spacing issue, and update copyright notice to match
50912         glibc's.
50913
50914 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50915
50916         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50917
50918 2005-09-06  Simon Josefsson  <jas@extundo.com>
50919
50920         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50921         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50922
50923 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50924
50925         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50926         warning.
50927
50928 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50929
50930         * config/srclist.txt: Add glibc bug 1302.
50931
50932 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50933
50934         Change bitset word type from unsigned int to unsigned long int,
50935         as this has better performance on typical 64-bit hosts.
50936         Port bitset code to hosts with unusual word sizes.
50937         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50938         (build_collating_symbol):
50939         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50940         argument is a bitset.  This is merely a style issue, but it makes
50941         it clearer that an entire array is expected.
50942         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50943         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50944         Port to the case where bitset_word is not the same as unsigned int.
50945         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50946         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50947         Likewise.
50948         * lib/regexec.c (check_dst_limits_calc_pos_1,
50949         check_subexp_matching_top):
50950         (build_trtable, group_nodes_into_DFAstates):
50951         Likewise.
50952         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50953         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50954         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50955         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50956         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50957         * lib/regcomp.c (optimize_subexps, lower_subexp):
50958         Work even if bitset_word has holes in its bitwise representation.
50959         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50960         * lib/regexec.c (check_dst_limits_calc_pos_1,
50961         check_subexp_matching_top):
50962         Likewise.
50963         * lib/regex_internal.c (re_string_reconstruct):
50964         Don't assume UCHAR_MAX == 255.
50965         * lib/regex_internal.h (bitset_set_all): Likewise.
50966         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50967         All uses changed.
50968         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50969         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50970         All uses changed.
50971         (BITSET_WORD_MAX): New macro.
50972         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50973         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50974         (bitset_empty, bitset_copy):
50975         Prefer sizeof (bitset) to multiplying it out ourselves.
50976         (bitset_not_merge): Remove; unused.
50977         (bitset_contain): Return bool, not unsigned int with one bit on.
50978         All callers changed.
50979         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50980         alignment than re_node_set; do this by defining a new internal
50981         type struct dests_alloc and using it to allocate memory.
50982
50983 2005-09-05  Bruno Haible  <bruno@clisp.org>
50984
50985         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50986         links.
50987
50988 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50989
50990         * modules/size_max (Makefile.am): Add size_max.h
50991
50992 2005-09-04  Derek Price  <derek@ximbiot.com>
50993
50994         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50995
50996 2005-09-03  Simon Josefsson  <jas@extundo.com>
50997
50998         * gnulib-tool: Fix typo.
50999
51000 2005-09-03  Simon Josefsson  <jas@extundo.com>
51001
51002         * config/srclist.txt: Add glibc bug 1293.
51003
51004 2005-09-03  Derek Price  <derek@ximbiot.com>
51005
51006         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
51007         From Larry Jones <lawrence.jones@ugs.com>.
51008
51009 2005-09-02  Simon Josefsson  <jas@extundo.com>
51010
51011         * modules/socklen: New file.
51012
51013 2005-09-02  Simon Josefsson  <jas@extundo.com>
51014
51015         * modules/havelib: New module.
51016
51017         * modules/gettext, modules/iconv, modules/lock, modules/readline:
51018         Use havelib.
51019
51020 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
51021
51022         Check for arithmetic overflow when calculating sizes, to prevent
51023         some buffer-overflow issues.  These patches are conservative, in the
51024         sense that when I couldn't determine whether an overflow was possible,
51025         I inserted a run-time check.
51026         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
51027         macros.
51028         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
51029         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
51030         (re_xnrealloc, re_x2nrealloc): New inline functions.
51031         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
51032         parse_bracket_exp):
51033         (build_equiv_class, build_charclass): Check for arithmetic overflow
51034         in size expression calculations.
51035         * lib/regex_internal.c (re_string_realloc_buffers):
51036         (build_wcs_upper_buffer, re_node_set_add_intersect):
51037         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
51038         (re_dfa_add_node, register_state): Likewise.
51039         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
51040         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
51041         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
51042         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
51043
51044 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
51045
51046         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51047         m4/ulonglong.m4.  Problem reported by Martin Lambers.
51048
51049 2005-09-02  Bruno Haible  <bruno@clisp.org>
51050
51051         Support for lib vs. lib64 distinction on biarch platforms.
51052         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
51053         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
51054         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
51055
51056 2005-09-02  Bruno Haible  <bruno@clisp.org>
51057
51058         * gnulib-tool (import): In the other first-use case, provide defaults
51059         as well.
51060
51061 2005-09-02  Bruno Haible  <bruno@clisp.org>
51062
51063         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
51064         patches not yet found in the latest gettext release.
51065
51066 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51067
51068         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
51069         to avoid a collision with bits/local_lim.h in glibc.
51070         All uses changed.  Problem reported by Dmitry V. Levin in
51071         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
51072
51073         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
51074         bugs in int versus size_t comparisons.
51075         (re_string_context_at): Fix bug where the code assumed that
51076         Idx is signed.
51077
51078         Use bool where appropriate.
51079         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
51080         All callers changed.
51081         (calc_eclosure_iter): Likewise, for ROOT arg.
51082         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
51083         (build_charclass_op): Likewise, for NON_MATCH arg.
51084         * lib/regex_internal.c (re_string_allocate, re_string_construct):
51085         (re_string_construct_common): Likewise, for ICASE arg.
51086         * lib/regexec.c (re_search_2_stub, re_search_stub):
51087         Likewise, for RET_LEN arg.
51088         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
51089         (set_regs): Likewise, for FL_BACKTRACK arg.
51090         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
51091         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
51092         (calc_eclosure_iter, parse_bracket_exp):
51093         Use bool for internal variables that are booleans.
51094         * lib/regexec.c (re_search_internal, check_matching,
51095         proceed_next_node):
51096         (set_regs, build_sifted_states, sift_states_bkref):
51097         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
51098         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51099         (find_collation_sequence_value):
51100         Likewise.
51101         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
51102         (re_node_set_compare):
51103         Return bool, not int. All callers changed.
51104         * lib/regexec.c (check_halt_node_context, check_dst_limits):
51105         (build_trtable, check_node_accept): Likewise.
51106         * lib/regex_internal.h: Include stdbool.h.
51107
51108         Fix bugs uncovered when converting to bool.
51109         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
51110         failure instead of charging ahead blindly.
51111         * lib/regex_internal.c (register_state): Likewise.
51112         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
51113         for freeing internal storage.
51114         (group_nodes_into_DFA_states): Use unsigned int, not int, for
51115         bitset pieces used as boolean, to avoid undefined behavior
51116         on hosts that do int overflow checking.
51117
51118 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51119
51120         * config/srclist.txt: Add glibc bugs 1285-1287.
51121
51122 2005-09-01  Jim Meyering  <jim@meyering.net>
51123
51124         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
51125         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
51126         Require gl_STAT_MACROS, too.
51127
51128 2005-09-01  Bruno Haible  <bruno@clisp.org>
51129
51130         * gnulib-tool (import): In the first-use case, provide defaults.
51131
51132 2005-09-01  Bruno Haible  <bruno@clisp.org>
51133
51134         * gnulib-tool (func_import): Remove the .tmp files.
51135
51136 2005-09-01  Bruno Haible  <bruno@clisp.org>
51137
51138         * gnulib-tool (func_import): Fix handling of symbolic links.
51139
51140 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51141
51142         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
51143         old glibc regex code mishandles strings longer than 2**31 bytes.
51144         This patch fixes this when the regex code is used in gnulib
51145         (i.e., outside glibc).
51146
51147         This patch should not affect the use of the regex code inside
51148         glibc.  No doubt this problem also needs to be handled for glibc
51149         as well, but the result will be an incompatible change to the
51150         glibc ABI, and the old ABI will have to be supported too.  That
51151         can be the the subject for another patch.
51152
51153         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
51154         governing whether the rest of this patch is active.  By default,
51155         the macro is disabled and the patch has no effect.
51156         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
51157         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
51158         (struct re_pattern_buffer, re_search, re_search_2, re_match):
51159         (re_match_2, re_set_registers): Use the new types.
51160         * lib/regex_internal.h (Idx, re_hashval_t): New types.
51161         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
51162         New macros.
51163         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
51164         (re_string_context_at, bin_tree_t, re_dfastate_t):
51165         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
51166         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
51167         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
51168         (re_string_char_size_at, re_string_wchar_at):
51169         (re_string_elem_size_at):
51170         Use the new types and macros to port to 64-bit hosts.
51171         Use unsigned types for internal values, so that the code
51172         mostly works even for arrays larger than SSIZE_MAX.
51173         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
51174         (search_duplicated_node, calc_eclosure_iter, fetch_number):
51175         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
51176         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
51177         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
51178         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
51179         (calc_inveclosure, parse_dup_op, build_range_exp):
51180         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
51181         (fetch_number, create_token_tree, mark_opt_subexp):
51182         Likewise.
51183         * lib/regex_internal.c (re_string_construct_common,
51184         create_ci_newstate):
51185         (create_cd_newstate, re_string_allocate, re_string_construct):
51186         (re_string_realloc_buffers, build_wcs_upper_buffer):
51187         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51188         (re_string_reconstruct, re_string_peek_byte_case):
51189         (re_string_fetch_byte_case, re_string_context_at):
51190         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51191         (re_node_set_init_copy, re_node_set_add_intersect):
51192         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51193         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51194         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51195         (re_acquire_state, re_acquire_state_context, register_state):
51196         Likewise.
51197         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
51198         search_cur_bkref_entry):
51199         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
51200         (re_search_internal, re_search_2_stub, re_search_stub)
51201         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
51202         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
51203         (update_cur_sifted_state, check_dst_limits):
51204         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51205         (check_subexp_limits, sift_states_bkref, merge_state_array):
51206         (check_subexp_matching_top, get_subexp, get_subexp_sub):
51207         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
51208         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51209         (expand_bkref_cache, check_node_accept_bytes):
51210         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
51211         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
51212         (acquire_init_state_context, check_halt_node_context):
51213         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
51214         (sift_states_backward, clean_state_log_if_needed):
51215         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
51216         (find_recover_state, transit_state_sb, transit_state_mb):
51217         (transit_state_bkref, build_trtable, match_ctx_clean):
51218         Likewise.
51219         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
51220         to work around an assumption that REG_MISSING is negative.
51221
51222         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
51223         (seek_collating_symbol_entry) [defined _LIBC]:
51224         (lookup_collation_sequence_value) [defined _LIBC]:
51225         (build_range_exp, build_collating_symbol) [defined _LIBC]:
51226         Use prototypes rather than old-style function definitions.
51227         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
51228         (transit_state_sb) [0]:
51229         (find_collation_sequence_value) [defined _LIBC]: Likewise.
51230
51231         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
51232         rm_eo.
51233
51234         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
51235         (optimize_subexps, lower_subexp):
51236         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
51237         since the signed shift might overflow.  Use 1u<<31 instead.
51238         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
51239         Likewise.
51240         * lib/regexec.c (check_dst_limits_calc_pos_1,
51241         check_subexp_matching_top): Likewise.
51242
51243         * lib/regcomp.c (optimize_subexps, lower_subexp):
51244         Use CHAR_BIT rather than 8, for clarity.
51245         * lib/regexec.c (check_dst_limits_calc_pos_1):
51246         (check_subexp_matching_top): Likewise.
51247         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
51248         have to worry about portability issues when shifting it left.
51249         Remove no-longer-needed test for table_size > 0.
51250         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
51251         in a word, as the resulting behavior is undefined.
51252         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
51253         in one case, a <= should have been an <, and in another case the
51254         whole test was missing.
51255         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
51256         the standard name CHAR_BIT.
51257         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
51258         this is not true on one's complement and signed-magnitude hosts.
51259
51260         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
51261         next_last_offset.
51262         (struct re_dfa_t): Remove unused member states_alloc.
51263         * lib/regcomp.c (init_dfa): Don't initialize unused members.
51264
51265 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51266
51267         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
51268         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
51269         and large-file glibc and in 32-bit large-file Solaris.
51270
51271 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51272
51273         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
51274         lengths fit in regoff_t; this isn't true if regoff_t is the same
51275         width as size_t.
51276         * lib/regex.c (re_search_internal): 5th arg is LAST_START
51277         (= START + RANGE) instead of RANGE.  This avoids overflow
51278         problems when regoff_t is the same width as size_t.
51279         All callers changed.
51280         (re_search_2_stub): Check for overflow when adding the
51281         sizes of the two strings.
51282         (re_search_stub): Check for overflow when adding START
51283         to RANGE; if it occurs, substitute the extreme value.
51284
51285 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51286
51287         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
51288
51289 2005-08-31  Jim Meyering  <jim@meyering.net>
51290
51291         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
51292         a pointer-to-const.
51293         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
51294         (register_state): Likewise.
51295         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
51296         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51297         (group_nodes_into_DFAstates): Likewise.
51298
51299 2005-08-31  Jim Meyering  <jim@meyering.net>
51300
51301         * check-module: Add a FIXME comment.
51302
51303 2005-08-31  Eric Blake  <ebb9@byu.net>
51304
51305         * modules/unistd-safer (Files): Add unistd--.h.
51306         * modules/stdio-safer (Files): Add stdio--.h.
51307
51308 2005-08-31  Derek Price  <derek@ximbiot.com>
51309
51310         * lib/getdelim.c (getdelim): Return EOF on EOF.
51311         Reported by Larry Jones <lawrence.jones@ugs.com>.
51312
51313 2005-08-31  Bruno Haible  <bruno@clisp.org>
51314
51315         Avoid unnecessary diffs in the generated lib/Makefile.am.
51316         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51317         the generated files.
51318         (func_import): Don't set cmd.
51319
51320 2005-08-31  Bruno Haible  <bruno@clisp.org>
51321
51322         * lib/strstr.c: Include <stddef.h>, for NULL.
51323         * lib/strcasestr.c: Likewise.
51324         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51325
51326 2005-08-31  Bruno Haible  <bruno@clisp.org>
51327
51328         * gnulib-tool: New option --macro-prefix.
51329         (func_import): Use macro_prefix.
51330         (import): Handle option --macro-prefix.
51331
51332 2005-08-31  Bruno Haible  <bruno@clisp.org>
51333
51334         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51335         Also use new variables cached_lgpl, cached_libtool.
51336
51337 2005-08-31  Bruno Haible  <bruno@clisp.org>
51338
51339         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51340         always instantiating them.
51341
51342 2005-08-31  Bruno Haible  <bruno@clisp.org>
51343
51344         * gnulib-tool (func_import): Read the previous cached settings
51345         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51346         earlier added by gnulib but are now dropped. Warn when a gnulib file
51347         overwrites a non-gnulib file.
51348
51349 2005-08-31  Bruno Haible  <bruno@clisp.org>
51350
51351         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51352         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51353         projects that don't keep autogenerated files in CVS. Put into
51354         actioncmd only the specified modules, not the transitive closure.
51355
51356 2005-08-31  Bruno Haible  <bruno@clisp.org>
51357
51358         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51359         Create directories that shall be filled.
51360         (import): Don't look for gl_* macros in configure.ac. Recurse across
51361         all directories containing a gnulib-cache.m4 files, if meaningful.
51362
51363 2005-08-31  Bruno Haible  <bruno@clisp.org>
51364
51365         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51366         (import): Set seen_libtool when we see gl_LIBTOOL.
51367
51368 2005-08-31  Bruno Haible  <bruno@clisp.org>
51369
51370         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51371         declaration macro definitions from generated gnulib.m4.
51372
51373 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51374
51375         * lib/iconvme.h: Add prototype for iconv_alloc.
51376
51377 2005-08-29  Simon Josefsson  <jas@extundo.com>
51378
51379         * lib/iconvme.c: Fix errno.
51380
51381 2005-08-29  Bruno Haible  <bruno@clisp.org>
51382
51383         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51384         that it works when the directory contains spaces.
51385
51386 2005-08-29  Bruno Haible  <bruno@clisp.org>
51387
51388         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51389
51390 2005-08-29  Bruno Haible  <bruno@clisp.org>
51391
51392         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51393         Emit more advice.
51394
51395 2005-08-29  Bruno Haible  <bruno@clisp.org>
51396         and Stepan Kasal  <kasal@ucw.cz>
51397
51398         * check-module: If more parameters are given, check each of them
51399         separately; add more exceptions, as noted by Jim Meyering.
51400         (check_module): New procedure.
51401         (%exempt_header): Now contains all exceptions.
51402
51403 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51404
51405         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51406
51407 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51408
51409         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51410
51411 2005-08-28  Bruno Haible  <bruno@clisp.org>
51412
51413         * m4/gnulib-tool.m4: New file.
51414
51415 2005-08-27  Jim Meyering  <jim@meyering.net>
51416
51417         * modules/unistd-safer (Files): Add pipe-safer.c.
51418         * modules/fcntl-safer (Files): Add creat-safer.c.
51419
51420 2005-08-27  Jim Meyering  <jim@meyering.net>
51421
51422         * m4/stdlib-safer.m4: New file.  From coreutils.
51423         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51424         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51425         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51426         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51427         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51428
51429 2005-08-27  Jim Meyering  <jim@meyering.net>
51430
51431         * lib/fopen-safer.c: Merge minor changes from coreutils.
51432         * lib/dup-safer.c: Likewise.
51433         * lib/fd-safer.c: Likewise.
51434
51435         Merge from coreutils.
51436         * lib/stdio--.h: New file.
51437         * lib/stdlib--.h: New file.
51438         * lib/mkstemp-safer.c: New file.
51439
51440         GNU tar needs these.
51441         * lib/pipe-safer.c: New file.
51442         * lib/creat-safer.c: New file.
51443         * lib/fcntl--.h (creat): Define to creat_safer.
51444         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51445         * lib/unistd--.h (pipe): Define to pipe_safer.
51446         * lib/unistd-safer.h: Declare pipe_safer.
51447
51448 2005-08-26  Simon Josefsson  <jas@extundo.com>
51449
51450         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51451         Haible <bruno@clisp.org>.
51452
51453 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51454
51455         * lib/regex_internal.h: Remove all references to
51456         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51457         or better.
51458         (bitset_not, bitset_merge, bitset_not_merge):
51459         (bitset_mask, re_string_allocate, re_string_construct):
51460         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51461         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51462         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51463         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51464         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51465         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51466         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51467         (re_acquire_state_context):
51468         Remove unnecessary forward decls.
51469         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51470         Put __attribute at function definition,
51471         now that the function decl has been removed.
51472         * lib/regex_internal.c (re_string_peek_byte_case):
51473         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51474         Likewise.
51475
51476 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51477
51478         * m4/regex.m4: Add AC_PREREQ(2.50).
51479         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51480
51481 2005-08-25  Simon Josefsson  <jas@extundo.com>
51482
51483         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51484         __fsetlocking.
51485
51486 2005-08-25  Simon Josefsson  <jas@extundo.com>
51487
51488         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51489         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51490         GLIBC specific code.
51491
51492 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51493
51494         Make regex safe for g++.  This fixes one real bug (an "err"
51495         that should have been "*err").  g++ problem reported by
51496         Sam Steingold.
51497         * lib/regex_internal.h (re_calloc): New macro, consistent with
51498         re_malloc etc.  All callers of calloc changed to use re_calloc.
51499         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51500         not int.  All callers changed.
51501         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51502         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51503         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51504         (find_recover_state): Change "err" to "*err"; this fixes what
51505         appears to be a real bug.
51506         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51507         versus int.
51508
51509 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51510
51511         * modules/regex (Depends-on): Add malloc, since the code
51512         assumes that !malloc(0) means failure.
51513
51514 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51515
51516         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51517
51518         alloca modernization/simplification for regex.
51519         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51520         needs to be at the start of the file, and can be moved into
51521         regex_internal.h and simplified.
51522         * lib/regex_internal.h: Include <alloca.h>.
51523         (__libc_use_alloca) [!defined _LIBC]: New macro.
51524         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51525         now works outside glibc.
51526
51527 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51528
51529         * config/srclist.txt: Add glibc bugs 1241, 1245.
51530
51531 2005-08-25  Jim Meyering  <jim@meyering.net>
51532
51533         * lib/open-safer.c: Include <config.h>.
51534         Otherwise, we'd lose LARGEFILE support in any file using
51535         e.g. "fcntl--.h"
51536
51537 2005-08-25  Bruno Haible  <bruno@clisp.org>
51538
51539         * m4/minmax.m4: Require autoconf 2.52.
51540         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51541         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51542         alternatives of translit over the alphabet.
51543         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51544
51545 2005-08-24  Simon Josefsson  <jas@extundo.com>
51546
51547         * tests/test-getpass.c: New file.
51548
51549 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51550
51551         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51552         for GNU regex features.
51553
51554 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51555
51556         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51557         * lib/regex.h (regerror): Likewise.
51558
51559         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51560         requires this.  (The code never needed it.)
51561
51562         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51563         All uses of recently-renamed identifiers changed to use the new,
51564         POSIX-compliant names.  The code will build and run just fine
51565         without these changes, but it's better to eat our own dog food
51566         and use the standard-conforming names.
51567
51568         * lib/regex.h: Fix a multitude of POSIX name space violations.
51569         These changes have an effect only for programs that define
51570         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51571         do not change anything for programs compiled in the normal way.
51572         Also, there is no effect on the ABI.
51573
51574         (_REGEX_SOURCE): New macro.
51575         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51576         defined and _GNU_SOURCE is not; this fixes a name space violation.
51577
51578         Rename the following macros to obey POSIX requirements.
51579         The old names are still visible as macros if _REGEX_SOURCE is defined.
51580         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51581         RE_BACKSLASH_ESCAPE_IN_LISTS.
51582         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51583         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51584         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51585         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51586         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51587         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51588         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51589         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51590         (REG_INTERVALS): renamed from RE_INTERVALS.
51591         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51592         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51593         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51594         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51595         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51596         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51597         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51598         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51599         RE_UNMATCHED_RIGHT_PAREN_ORD.
51600         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51601         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51602         (REG_DEBUG): renamed from RE_DEBUG.
51603         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51604         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51605         unusual, since we can't clash with the POSIX REG_ICASE.
51606         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51607         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51608         (REG_NO_SUB): renamed from RE_NO_SUB.
51609         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51610         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51611         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51612         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51613         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51614         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51615         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51616         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51617         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51618         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51619         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51620         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51621         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51622         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51623         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51624         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51625         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51626         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51627         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51628         (REG_FIXED): Renamed from REGS_FIXED.
51629         (REG_NREGS): Renamed from RE_NREGS.
51630
51631         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51632         of other REG_* macros, since POSIX says the user is allowed to
51633         #undef these macros selectively.
51634
51635         (reg_errcode_t): Update comment stating what other tables need
51636         to be consistent.
51637
51638         Rename the following enum values to obey POSIX requirements.
51639         The old names are still visible as macros.
51640         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51641         is not defined, since GNU is supposed to be a superset of POSIX as
51642         much as possible, and since we want reg_errcode_t to be a signed
51643         type for implementation consistency.
51644         (_REG_NOERROR): Renamed from REG_NOERROR.
51645         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51646         (_REG_BADPAT): Renamed from REG_BADPAT.
51647         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51648         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51649         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51650         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51651         (_REG_EBRACK): Renamed from REG_EBRACK.
51652         (_REG_EPAREN): Renamed from REG_EPAREN.
51653         (_REG_EBRACE): Renamed from REG_EBRACE.
51654         (_REG_BADBR): Renamed from REG_BADBR.
51655         (_REG_ERANGE): Renamed from REG_ERANGE.
51656         (_REG_ESPACE): Renamed from REG_ESPACE.
51657         (_REG_BADRPT): Renamed from REG_BADRPT.
51658         (_REG_EEND): Renamed from REG_EEND.
51659         (_REG_ESIZE): Renamed from REG_ESIZE.
51660         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51661         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51662         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51663         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51664         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51665
51666         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51667         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51668         changed.  But support the old name if the new one is not defined
51669         and if _REGEX_SOURCE.
51670
51671         Change the following member names in struct re_pattern_buffer.
51672         The old names are still supported if !_REGEX_SOURCE.
51673         The new names are always supported, regardless of _REGEX_SOURCE.
51674         (re_buffer): Renamed from buffer.
51675         (re_allocated): Renamed from allocated.
51676         (re_used): Renamed from used.
51677         (re_syntax): Renamed from syntax.
51678         (re_fastmap): Renamed from fastmap.
51679         (re_translate): Renamed from translate.
51680         (re_can_be_null): Renamed from can_be_null.
51681         (re_regs_allocated): Renamed from regs_allocated.
51682         (re_fastmap_accurate): Renamed from fastmap_accurate.
51683         (re_no_sub): Renamed from no_sub.
51684         (re_not_bol): Renamed from not_bol.
51685         (re_not_eol): Renamed from not_eol.
51686         (re_newline_anchor): Renamed from newline_anchor.
51687
51688         Change the following member names in struct re_registers.
51689         The old names are still supported if !_REGEX_SOURCE.
51690         The new names are always supported, regardless of _REGEX_SOURCE.
51691         (rm_num_regs): Renamed from num_regs.
51692         (rm_start): Renamed from start.
51693         (rm_end): Renamed from end.
51694
51695         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51696         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51697         Prepend __ to parameter names.
51698
51699         Undo yesterday's changes.
51700
51701 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51702
51703         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51704         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51705         lib/regex.c.
51706
51707 2005-08-24  Jim Meyering  <jim@meyering.net>
51708
51709         Sync from coreutils.
51710         * m4/fcntl-safer.m4: New file.
51711
51712         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51713         and object files for this module.
51714
51715 2005-08-24  Jim Meyering  <jim@meyering.net>
51716
51717         Sync from coreutils.
51718         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51719
51720 2005-08-24  Jim Meyering  <jim@meyering.net>
51721
51722         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51723         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51724
51725 2005-08-24  Jim Meyering  <jim@meyering.net>
51726
51727         * modules/fcntl-safer: New module.
51728         * modules/fts (Depends-on): Add fcntl-safer.
51729         * MODULES.html.sh (File descriptor based Input/Output):
51730         Add fcntl-safer.
51731
51732 2005-08-24  Bruno Haible  <bruno@clisp.org>
51733
51734         Support for unit test modules.
51735         * modules/README: Mention tests modules.
51736         * modules/TEMPLATE-TESTS: New file.
51737         * gnulib-tool: New options --extract-tests-module, --with-tests and
51738         --tests-base (unused for the moment).
51739         (testsbase, inctests): New variables.
51740         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51741         (func_verify_module): Exclude TEMPLATE-TESTS.
51742         (func_verify_nontests_module, func_verify_tests_module): New functions.
51743         (func_get_dependencies): Add implicit dependency for tests modules.
51744         (func_get_tests_module): New function.
51745         (func_modules_transitive_closure): When --with-tests was specified,
51746         include the unit tests as well, unless explicitly avoided.
51747         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51748         (func_emit_tests_Makefile_am): New function.
51749         (func_create_testdir): When --with-tests was specified, emit a
51750         tests/ directory.
51751         * MODULES.html.sh (Future developments): Update.
51752
51753 2005-08-24  Bruno Haible  <bruno@clisp.org>
51754
51755         * modules/tls-tests: New file.
51756         * tests/test-tls.c: New file, from GNU gettext.
51757
51758 2005-08-24  Bruno Haible  <bruno@clisp.org>
51759
51760         * modules/lock-tests: New file.
51761         * tests/test-lock.c: New file, from GNU gettext.
51762
51763 2005-08-24  Bruno Haible  <bruno@clisp.org>
51764
51765         * lib/lock.h: Add multiple inclusion guard.
51766         * lib/tls.h: Add multiple inclusion guard.
51767
51768 2005-08-24  Bruno Haible  <bruno@clisp.org>
51769
51770         * gnulib-tool: Add support for the --aux-dir option to
51771         --create-testdir, --create-megatestdir, --test, --megatest.
51772         (func_create_testdir, func_create_megatestdir): Optionally emit a
51773         AC_CONFIG_AUX_DIR directive.
51774         (create-testdir, create-megatestdir, test, megatest): Provide a
51775         default value for $auxdir.
51776
51777 2005-08-24  Bruno Haible  <bruno@clisp.org>
51778
51779         * gnulib-tool (import): Use compound statement instead of subshell
51780         where possible.
51781
51782 2005-08-24  Bruno Haible  <bruno@clisp.org>
51783
51784         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51785
51786 2005-08-24  Bruno Haible  <bruno@clisp.org>
51787
51788         * gnulib-tool (func_version): Update.
51789
51790 2005-08-24  Bruno Haible  <bruno@clisp.org>
51791
51792         * gnulib-tool (func_import, func_create_testdir,
51793         func_create_megatestdir): Quote all autoconf macro arguments.
51794
51795 2005-08-24  Bruno Haible  <bruno@clisp.org>
51796
51797         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51798         option --force, because --force causes the aclocal.m4 of each
51799         subdirectory to be newer than the corresponding config.h.in.
51800
51801 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51802
51803         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51804         All contents moved to gl_REGEX.
51805         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51806         assume that it does.
51807
51808 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51809
51810         * lib/regex.h (REG_NOSYS)
51811         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51812         Define, since POSIX requires it as of 2001.
51813         (_REG_ENOSYS)
51814         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51815         New private symbol, used to keep the enum signed in all cases.
51816         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51817         Youngman in
51818         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51819
51820         * lib/regex_internal.c (re_string_skip_chars, register_state):
51821         (calc_state_hash):
51822         Remove forward decls; no longer needed now that we use prototypes.
51823         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51824         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51825         (clean_state_log_if_needed): Likewise.
51826
51827 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51828
51829         * config/srclist.txt: Add glibc bugs 1231-1233.
51830
51831 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51832
51833         Fix problems reported by Sam Steingold in
51834         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51835         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51836         assumed that reg_errcode_t is a signed type, which is not
51837         necessarily true if _XOPEN_SOURCE is not defined.
51838         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51839         since some compilers warn about it otherwise.
51840
51841 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51844         (init_word_char, create_initial_state, duplicate_node_closure):
51845         (fetch_token, peek_token_bracket, build_range_exp):
51846         (build_collating_symbol): Remove forward decls; no longer needed
51847         now that we use prototypes.
51848
51849         * lib/regcomp.c:
51850         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51851         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51852         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51853         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51854         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51855         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51856         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51857         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51858         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51859         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51860         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51861         (build_charclass, build_charclass_op, fetch_number, create_tree):
51862         (create_token_tree, mark_opt_subexp, duplicate_tree):
51863         Use prototypes rather than old-style definitions.
51864
51865         * lib/regex_internal.c:
51866         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51867         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51868         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51869         (re_string_reconstruct, re_string_peek_byte_case):
51870         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51871         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51872         (re_node_set_init_copy, re_node_set_add_intersect):
51873         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51874         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51875         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51876         (re_acquire_state, re_acquire_state_context, register_state):
51877         (create_ci_newstate, create_cd_newstate, free_state):
51878         Likewise.
51879         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51880         re_search_2):
51881         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51882         (re_search_internal, prune_impossible_nodes):
51883         (acquire_init_state_context, check_matching, static):
51884         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51885         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51886         (update_regs, sift_states_backward, build_sifted_states):
51887         (clean_state_log_if_needed, merge_state_array):
51888         (update_cur_sifted_state, add_epsilon_src_nodes):
51889         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51890         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51891         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51892         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51893         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51894         (check_arrival, check_arrival_add_next_nodes):
51895         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51896         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51897         (check_node_accept_bytes, check_node_accept, extend_buffers):
51898         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51899         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51900         (sift_ctx_init):
51901         Likewise.
51902
51903         * lib/regex_internal.h:
51904         (re_string_allocate, re_string_construct, re_string_reconstruct):
51905         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51906         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51907         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51908         (re_string_context_at, re_string_peek_byte_case):
51909         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51910         is defined, since we now use prototypes always.
51911
51912         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51913         C89 or better.  All uses removed.
51914
51915 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51916
51917         * config/srclist.txt: Add glibc bugs 1220-1227.
51918
51919 2005-08-20  Jim Meyering  <jim@meyering.net>
51920
51921         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51922         of unused local, dfa.
51923
51924 2005-08-20  Bruno Haible  <bruno@clisp.org>
51925
51926         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51927
51928 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51929
51930         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51931         (re_node_set_insert_last, re_dfa_add_node):
51932         Rename local variables to avoid GCC shadowing warnings.
51933
51934 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51935
51936         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51937         [defined lint]: Suppress bogus uninitialized-variable warnings.
51938
51939         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51940         and let the caller return REG_ESPACE if out of space.  This
51941         removes an uninitialied-variable warning with GCC 4.0.1, and also
51942         avoids taking the address of a local variable.  All callers
51943         changed.
51944
51945 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51946
51947         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51948         $LIBCSRC/posix/regexec.c.
51949         Add glibc bug 1217 for regcomp.c.
51950
51951 2005-08-19  Jim Meyering  <jim@meyering.net>
51952
51953         * lib/regexec.c (proceed_next_node): Redo local variables to
51954         avoid GCC shadowing warnings.
51955
51956 2005-08-18  Bruno Haible  <bruno@clisp.org>
51957
51958         * lib/strstr.c (strstr): Fix return value in multibyte case.
51959         * lib/strcasestr.c (strcasestr): Likewise.
51960
51961 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51962
51963         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51964
51965 2005-08-17  Jim Meyering  <jim@meyering.net>
51966
51967         Make the %s format (seconds since the epoch) work for a negative
51968         number and when used with a zero-padded field width, e.g. %015s.
51969
51970         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51971         label so that it precedes the code to set `digits'.  Otherwise,
51972         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51973         print `00-22'.  Now, it prints `-0022', as it should.
51974
51975 2005-08-17  Bruno Haible  <bruno@clisp.org>
51976
51977         * modules/strstr (Files): Add m4/mbrtowc.m4.
51978         (Depends-on): Add mbuiter.
51979
51980 2005-08-17  Bruno Haible  <bruno@clisp.org>
51981
51982         * modules/strcasestr: New file.
51983         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51984         strcasestr.
51985
51986 2005-08-17  Bruno Haible  <bruno@clisp.org>
51987
51988         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51989
51990 2005-08-17  Bruno Haible  <bruno@clisp.org>
51991
51992         * modules/mbuiter: New file.
51993         * MODULES.html.sh (Extended multibyte and wide character utilities):
51994         Add mbuiter.
51995
51996 2005-08-17  Bruno Haible  <bruno@clisp.org>
51997
51998         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51999         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
52000
52001 2005-08-17  Bruno Haible  <bruno@clisp.org>
52002
52003         * m4/strcasestr.m4: New file.
52004
52005 2005-08-17  Bruno Haible  <bruno@clisp.org>
52006
52007         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
52008         * lib/strstr.c: Completely rewritten, with multibyte locale support.
52009
52010 2005-08-17  Bruno Haible  <bruno@clisp.org>
52011
52012         * lib/strcasestr.h: New file.
52013         * lib/strcasestr.c: New file.
52014
52015 2005-08-17  Bruno Haible  <bruno@clisp.org>
52016
52017         * lib/strcasecmp.c: Use mbuiter.h.
52018
52019 2005-08-17  Bruno Haible  <bruno@clisp.org>
52020
52021         * lib/mbuiter.h: New file.
52022
52023 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52024
52025         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
52026         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
52027         and gl_GETOPT are both invoked via different paths (as happens
52028         with GNU tar CVS because it uses both argp and getopt), the former
52029         wins.
52030
52031 2005-08-16  Bruno Haible  <bruno@clisp.org>
52032
52033         * modules/tls: New file.
52034         * MODULES.html.sh (Multithreading): Add tls.
52035
52036 2005-08-16  Bruno Haible  <bruno@clisp.org>
52037
52038         * modules/strnlen1: New file.
52039         * MODULES.html.sh (String handling): Add strnlen1.
52040
52041 2005-08-16  Bruno Haible  <bruno@clisp.org>
52042
52043         * modules/strcase (Files): Add m4/mbrtowc.m4.
52044         (Depends-on): Add strnlen1, mbchar.
52045
52046 2005-08-16  Bruno Haible  <bruno@clisp.org>
52047
52048         * modules/mbiter: New file.
52049         * MODULES.html.sh (Extended multibyte and wide character utilities):
52050         Add mbiter.
52051
52052 2005-08-16  Bruno Haible  <bruno@clisp.org>
52053
52054         * modules/mbfile: New file.
52055         * MODULES.html.sh (Extended multibyte and wide character utilities):
52056         Add mbfile.
52057
52058 2005-08-16  Bruno Haible  <bruno@clisp.org>
52059
52060         * modules/mbchar: New file.
52061         * MODULES.html.sh (Extended multibyte and wide character utilities):
52062         New section.
52063
52064 2005-08-16  Bruno Haible  <bruno@clisp.org>
52065
52066         * m4/tls.m4: New file, from GNU gettext.
52067
52068 2005-08-16  Bruno Haible  <bruno@clisp.org>
52069
52070         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
52071         always.
52072         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
52073
52074 2005-08-16  Bruno Haible  <bruno@clisp.org>
52075
52076         * m4/mbiter.m4: New file.
52077
52078 2005-08-16  Bruno Haible  <bruno@clisp.org>
52079
52080         * m4/mbfile.m4: New file.
52081
52082 2005-08-16  Bruno Haible  <bruno@clisp.org>
52083
52084         * m4/mbchar.m4: New file.
52085
52086 2005-08-16  Bruno Haible  <bruno@clisp.org>
52087
52088         * lib/tls.h: New file, from GNU gettext.
52089         * lib/tls.c: New file, from GNU gettext.
52090
52091 2005-08-16  Bruno Haible  <bruno@clisp.org>
52092
52093         * lib/strnlen1.h: New file.
52094         * lib/strnlen1.c: New file.
52095
52096 2005-08-16  Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
52099         (mbi_init): Update.
52100         (mbi_avail, mbi_advance): Let the iteration end before the terminating
52101         NUL byte, not after it.
52102
52103 2005-08-16  Bruno Haible  <bruno@clisp.org>
52104
52105         * lib/strcase.h (strcasecmp): Add note in comments.
52106         * lib/strncasecmp.c: Use code from strcasecmp.c.
52107         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
52108         (strcasecmp): Work correctly in multibyte locales.
52109
52110 2005-08-16  Bruno Haible  <bruno@clisp.org>
52111
52112         * lib/mbiter.h: New file.
52113
52114 2005-08-16  Bruno Haible  <bruno@clisp.org>
52115
52116         * lib/mbfile.h: New file.
52117
52118 2005-08-16  Bruno Haible  <bruno@clisp.org>
52119
52120         * lib/mbchar.h: New file.
52121         * lib/mbchar.c: New file.
52122
52123 2005-08-16  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
52126         the valid ones. Makes the comparison operations transitive:
52127         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
52128         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
52129
52130 2005-08-15  Simon Josefsson  <jas@extundo.com>
52131
52132         * modules/ssize_t (License): Change to 'unlimited'.
52133
52134         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
52135
52136 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
52139         Add comments for each pending glibc patch.
52140
52141 2005-08-15  Bruno Haible  <bruno@clisp.org>
52142
52143         * lib/regex.h (__restrict_arr): Don't define to __restrict if
52144         __cplusplus is defined.
52145
52146 2005-08-14  Jim Meyering  <jim@meyering.net>
52147
52148         Sync from coreutils.
52149
52150         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
52151         Use the hash-table-based cycle-detection code not just when
52152         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
52153         Reported by James Youngman in
52154         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
52155         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
52156         FTS_TIGHT_CYCLE_CHECK.
52157         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
52158         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
52159         once again.
52160         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
52161         * lib/fts.c (fd_safer): Remove decl.
52162         Include fcntl--.h rather than unistd-safer.h
52163         (fts_safe_changedir): Don't call fd_safer; no longer needed
52164         now that we include fcntl--.h.
52165
52166 2005-08-12  Simon Josefsson  <jas@extundo.com>
52167
52168         * modules/getndelim2: Use ssize_t module.
52169         * modules/getnline: Likewise.
52170         * modules/safe-read: Likewise.
52171         * modules/xreadlink: Likewise.
52172
52173         * modules/ssize_t: New file.
52174
52175 2005-08-12  Simon Josefsson  <jas@extundo.com>
52176
52177         * m4/readline.m4: Look for termcap, curses or ncurses if required.
52178
52179 2005-08-12  Simon Josefsson  <jas@extundo.com>
52180
52181         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52182         ssize_t.
52183
52184 2005-08-12  Simon Josefsson  <jas@extundo.com>
52185
52186         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
52187         readline, getdelim and check_version.
52188         (Support for systems lacking ISO C 99: Sizes of integer types):
52189         Add size_max.
52190
52191 2005-08-12  Bruno Haible  <bruno@clisp.org>
52192
52193         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
52194
52195 2005-08-11  Simon Josefsson  <jas@extundo.com>
52196
52197         * modules/readline: New file.
52198
52199         * modules/strnlen (Files): Add strnlen.h.
52200
52201 2005-08-11  Simon Josefsson  <jas@extundo.com>
52202
52203         * m4/readline.m4: New file.
52204
52205 2005-08-11  Simon Josefsson  <jas@extundo.com>
52206
52207         * lib/readline.h, readline.c: New file.
52208
52209 2005-08-11  Simon Josefsson  <jas@extundo.com>
52210
52211         * doc/gnulib.texi (Initial import, Finishing touches): Mention
52212         gl_AVOID.
52213
52214 2005-08-11  Bruno Haible  <bruno@clisp.org>
52215
52216         * lib/strnlen.h (strnlen): Change parameter name to match comment.
52217
52218 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
52219
52220         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
52221
52222 2005-08-10  Simon Josefsson  <jas@extundo.com>
52223
52224         * tests/test-iconvme.c: New file.
52225
52226 2005-08-10  Simon Josefsson  <jas@extundo.com>
52227
52228         * m4/strnlen.m4: New file.
52229
52230         * m4/strndup.m4: Don't check for strnlen declaration, done in
52231         strnlen.m4.
52232
52233 2005-08-10  Simon Josefsson  <jas@extundo.com>
52234
52235         * lib/strndup.c: Use strnlen.h.
52236
52237         * lib/strnlen.h: New file.
52238
52239 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52240
52241         * README: Typos.
52242
52243 2005-08-02  Simon Josefsson  <jas@extundo.com>
52244
52245         * modules/readline: New file.
52246
52247 2005-08-02  Simon Josefsson  <jas@extundo.com>
52248
52249         * modules/getdelim: New file.
52250
52251         * modules/getline: Rewrite, don't use getndelim2.
52252
52253 2005-08-02  Simon Josefsson  <jas@extundo.com>
52254
52255         * m4/getline.m4: Separate out getdelim stuff into separate module.
52256
52257         * m4/getdelim.m4: New file.
52258
52259 2005-08-02  Simon Josefsson  <jas@extundo.com>
52260
52261         * lib/getline.h, getline.c: Rewrite.
52262
52263         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
52264
52265 2005-07-31  Bruno Haible  <bruno@clisp.org>
52266
52267         * lib/lock.h (gl_lock_initializer): New macro.
52268         (gl_lock_define_initialized): Use it.
52269         (gl_rwlock_initializer): New macro.
52270         (gl_rwlock_define_initialized): Use it.
52271         (gl_recursive_lock_initializer): New macro.
52272         (gl_recursive_lock_define_initialized): Use it.
52273
52274 2005-07-30  Karl Berry  <karl@gnu.org>
52275
52276         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
52277         Report from Ben Pfaff, regarding getopt.
52278
52279 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
52280
52281         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
52282         normal way.
52283         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
52284         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
52285         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
52286         (gl_GETOPT): Use the new macros.  Most of the implementation
52287         is moved to the new macros.  This is for programs like Emacs
52288         that don't want all the functionality of gl_GETOPT.
52289
52290 2005-07-26  Bruno Haible  <bruno@clisp.org>
52291
52292         * m4/lock.m4: Update from GNU gettext.
52293
52294 2005-07-26  Bruno Haible  <bruno@clisp.org>
52295
52296         * lib/lock.h: Update from GNU gettext.
52297         * lib/lock.c: Update from GNU gettext.
52298
52299 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
52300
52301         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
52302         obsolescent AC_TRY_RUN.  Include the default includes files, for
52303         'exit'.
52304
52305 2005-07-24  Bruno Haible  <bruno@clisp.org>
52306
52307         * modules/visibility: New file.
52308         * MODULES.html.sh (Misc): Add visibility.
52309
52310 2005-07-24  Bruno Haible  <bruno@clisp.org>
52311
52312         * m4/visibility.m4: New file.
52313
52314 2005-07-24  Bruno Haible  <bruno@clisp.org>
52315
52316         * doc/visibility.texi: New file.
52317
52318 2005-07-22  Bruno Haible  <bruno@clisp.org>
52319
52320         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52321         $(ALLOCA_H), redundant through BUILT_SOURCES.
52322         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52323         redundant through BUILT_SOURCES.
52324         * modules/byteswap (Makefile.am): Remove explicit dependency on
52325         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52326         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52327         $(FNMATCH_H), redundant through BUILT_SOURCES.
52328         * modules/getopt (Makefile.am): Remove explicit dependency on
52329         $(GETOPT_H), redundant through BUILT_SOURCES.
52330         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52331         redundant through BUILT_SOURCES.
52332         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52333         redundant through BUILT_SOURCES.
52334         * modules/stdbool (Makefile.am): Remove explicit dependency on
52335         $(STDBOOL_H), redundant through BUILT_SOURCES.
52336         * modules/stdint (Makefile.am): Remove explicit dependency on
52337         $(STDINT_H), redundant through BUILT_SOURCES.
52338         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52339         Remove explicit dependency on $(SYSEXITS_H).
52340         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52341
52342 2005-07-18  Simon Josefsson  <jas@extundo.com>
52343
52344         * lib/check-version.c (check_version): Accept identical versions too.
52345
52346 2005-07-18  Bruno Haible  <bruno@clisp.org>
52347
52348         * modules/lock: New file.
52349         * MODULES.html.sh (Multithreading): New section.
52350
52351 2005-07-18  Bruno Haible  <bruno@clisp.org>
52352
52353         * m4/lock.m4: New file, from GNU gettext.
52354
52355 2005-07-18  Bruno Haible  <bruno@clisp.org>
52356
52357         * lib/lock.h: New file, from GNU gettext.
52358         * lib/lock.c: New file, from GNU gettext.
52359
52360 2005-07-18  Bruno Haible  <bruno@clisp.org>
52361
52362         * lib/lock.h (gl_once_t): New type.
52363         (gl_once_define, gl_once): New macros.
52364         * lib/lock.c (fresh_once): New variable.
52365         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52366         functions.
52367
52368 2005-07-16  Simon Josefsson  <jas@extundo.com>
52369
52370         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52371         workaround, suggested by Bruno.
52372
52373 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52374
52375         * modules/xalloc (Depends-on): Add xalloc-die.
52376         * modules/xvasprintf (Depends-on): Add xalloc-die.
52377
52378 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52379
52380         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52381         with a minor change.
52382
52383 2005-07-15  Bruno Haible  <bruno@clisp.org>
52384
52385         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52386         When using lib/poll.c, define poll as rpl_poll.
52387
52388 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52389
52390         * modules/argp (Depends-on): Remove unlocked-io.
52391
52392 2005-07-14  Derek Price  <derek@ximbiot.com>
52393
52394         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52395         for glob symlink bug.
52396
52397 2005-07-14  Bruno Haible  <bruno@clisp.org>
52398
52399         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52400         Instead, test for *_unlocked function declarations directly.
52401
52402 2005-07-11  Simon Josefsson  <jas@extundo.com>
52403
52404         * modules/size_max: New file.
52405
52406         * modules/xsize: Depend on size_max module for size_max.m4.
52407
52408 2005-07-11  Simon Josefsson  <jas@extundo.com>
52409
52410         * lib/size_max.h: New file.
52411
52412 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52413
52414         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52415         copyright symbol and the year.
52416         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52417         (version_etc_va): Use parameterized copyright notice.
52418         Reword to conform to the current GNU coding standards.
52419
52420 2005-07-11  Karl Berry  <karl@gnu.org>
52421
52422         * doc/gnulib.texi (Quoting): new node.
52423         (Initial import): more info, from Patrice.
52424
52425 2005-07-11  Bruno Haible  <bruno@clisp.org>
52426
52427         * gnulib-tool (func_usage): Document option --avoid.
52428         (Command line options): Handle --avoid.
52429         (func_acceptable): New function.
52430         (func_modules_transitive_closure): Use it.
52431
52432 2005-07-11  Bruno Haible  <bruno@clisp.org>
52433
52434         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52435         Reported by Jim Meyering.
52436
52437 2005-07-10  Bruno Haible  <bruno@clisp.org>
52438
52439         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52440         Needed when size_t is smaller than 'unsigned int'.
52441         Reported by Paul Eggert.
52442
52443 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52444
52445         * modules/argp (Depends-on): Add unlocked-io
52446
52447 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52448
52449         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52450         block of defines.
52451
52452 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52453
52454         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52455         fix now.
52456
52457 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52458         and Paul Eggert  <eggert@cs.ucla.edu>
52459
52460         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52461         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52462
52463 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52464
52465         * modules/regex (Files): Add lib/regex_internal.c,
52466         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52467         (Depends-on): Add extensions.
52468         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52469
52470 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52471
52472         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52473         pathconf.
52474         * m4/same.m4 (gl_SAME): Likewise.
52475         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52476
52477         * m4/regex.m4: Adjust to new libc regex implementation.
52478         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52479         all the .c and .h parts of (the new) regex.
52480         Quote the m4 stuff better.
52481         Check for RE_ICASE bug of old gnulib.
52482         Check for REG_STARTEND of recent libc.
52483         Rename local variables from jm_* to gl_*.
52484         Quote operand of "test -f".
52485         Say "recent enough" version of libc, not "version 2".
52486         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52487         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52488         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52489         Remove check for btowc, isascii.
52490         Require AM_LANGINFO_CODESET.
52491
52492 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52493
52494         * lib/regex.c, regex.h: Sync from libc.
52495         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52496         * lib/regexec.c:
52497         New files, synced from libc, except that regex_internal.h
52498         currently has a small porting fix.
52499
52500 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52501
52502         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52503         regex_internal.c, regexec.c.
52504         Add regex_internal.h too, but as a comment, since the libc version
52505         is currently broken in gnulib mode.
52506
52507 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52508
52509         Support programs like Emacs that use gnulib but not gettext.
52510         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52511         * modules/gettext-h: New file.
52512         * modules/gettext (Files): Remove lib/gettext.h.
52513         (Depends-on): Add gettext-h.
52514         (Makefile.am): Remove lib_SOURCES.
52515         * modules/argmatch, modules/c-stack, modules/closeout:
52516         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52517         * modules/execute, modules/file-type, modules/getaddrinfo:
52518         * modules/getopt, modules/human, modules/javacomp:
52519         * modules/javaexec, modules/mkdir-p, modules/obstack:
52520         * modules/openat, modules/pagealign_alloc, modules/pipe:
52521         * modules/quotearg, modules/regex, modules/rpmatch:
52522         * modules/unicodeio, modules/userspec, modules/version-etc:
52523         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52524         * modules/xsetenv:
52525         Depend on gettext-h, not gettext.
52526
52527 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52528
52529         * gnulib-tool (func_import): Add support for 'public domain' license.
52530         * modules/alloca, modules/atexit, modules/memmove:
52531         Now public domain, not GPL.
52532         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52533         * modules/realloc, modules/strerror, modules/strtod:
52534         Now LGPL, not GPL.
52535
52536 2005-07-05  Bruno Haible  <bruno@clisp.org>
52537
52538         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52539         autoconf CVS. Needed for mingw.
52540
52541 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52542
52543         Remove the dependency of the strftime module on the tzset module.
52544         * modules/strftime (Depends-on): Remove dependency on tzset.
52545
52546 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52547
52548         Remove the dependency of the strftime module on the tzset module.
52549         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52550         gl_FUNC_TZSET_CLOBBER.
52551
52552 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52553
52554         Remove the dependency of the strftime module on the tzset module.
52555         * lib/strftime.c (my_strftime)
52556         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52557         Copy the input structure, to work around some of the bug with
52558         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52559         Solaris releases, you should also use the tzset module, but we won't
52560         require it as a dependency any more since we don't want LGPLed code
52561         to depend on GPLed code.
52562
52563 2005-07-02  Jim Meyering  <jim@meyering.net>
52564
52565         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52566         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52567         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52568         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52569
52570 2005-07-02  Jim Meyering  <jim@meyering.net>
52571
52572         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52573
52574 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52575
52576         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52577         declares only 'struct timespec;' (!).
52578
52579 2005-07-01  Jim Meyering  <jim@meyering.net>
52580
52581         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52582         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52583         * lib/save-cwd.c, tempname.c:
52584         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52585         and don't include <sys/file.h>).
52586
52587 2005-06-29  Jim Meyering  <jim@meyering.net>
52588
52589         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52590         type name.  Use the variable name instead.
52591         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52592         Likewise.
52593
52594 2005-06-28  Simon Josefsson  <jas@extundo.com>
52595
52596         * modules/check-version (Files): Add check-version.m4.
52597
52598 2005-06-28  Simon Josefsson  <jas@extundo.com>
52599
52600         * m4/check-version.m4: New file, suggested by Jim Meyering
52601         <jim@meyering.net>.
52602
52603 2005-06-28  Simon Josefsson  <jas@extundo.com>
52604
52605         * lib/check-version.h, lib/check-version.c: New files.
52606
52607 2005-06-28  Simon Josefsson  <jas@extundo.com>
52608
52609         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52610         collision with global variable.  Better indentation.  Don't
52611         increment buffer pointer beyond buffer end.  Based on comments
52612         from Paul Eggert <eggert@cs.ucla.edu>.
52613
52614         * lib/base64.h: Indent.
52615
52616 2005-06-28  Simon Josefsson  <jas@extundo.com>
52617
52618         * doc/gnulib.texi (Library version handling): New section.
52619
52620 2005-06-28  Jim Meyering  <jim@meyering.net>
52621
52622         * check-module (find_included_lib_files): Hard-code another
52623         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52624         but modules/fts-lgpl (correctly) does not list those files.
52625
52626         * modules/canonicalize (Files): Add lib/pathmax.h.
52627
52628 2005-06-25  Simon Josefsson  <jas@extundo.com>
52629
52630         * modules/check-version: New file.
52631
52632 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52633
52634         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52635         initializer of struct addrinfo, as an indication that we don't
52636         care how many members the structure has.
52637
52638 2005-06-24  Derek Price  <derek@ximbiot.com>
52639         and Bruno Haible  <bruno@clisp.org>
52640
52641         Remove stat module & update lstat.
52642         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52643         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52644         * m4/stat.m4: Remove this file.
52645
52646 2005-06-24  Derek Price  <derek@ximbiot.com>
52647         and Bruno Haible  <bruno@clisp.org>
52648
52649         Remove stat module & update lstat.
52650         * lib/stat.c: Remove this file...
52651         (slash_aware_lstat): ...moving this content and its support...
52652         * lib/lstat.c (rpl_lstat): ...into here.
52653         * lib/lstat.h: New file.
52654
52655 2005-06-24  Derek Price  <derek@ximbiot.com>
52656         and Bruno Haible  <bruno@clisp.org>
52657
52658         Remove stat module & update lstat.
52659         * config/srclist.txt (libc sources): Remove stat.
52660
52661 2005-06-24  Derek Price  <derek@ximbiot.com>
52662         and Bruno Haible  <bruno@clisp.org>
52663
52664         Remove stat module & update lstat.
52665         * MODULES.html.sh (stat): Remove.
52666         * MODULES.html: Regenerated.
52667         * modules/lstat (Description): Correct function name.
52668         (Files): Add "lstat.h".
52669         (Depends-on): Remove stat, add xalloc, stat-macros.
52670         * modules/stat: Remove this file.
52671         (Include): Add "lstat.h", remove <sys/stat.h>.
52672
52673 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52676         (ranged_convert): Don't save conversion in a temporary struct.
52677         This causes a warning with GCC 4.0.0, and anyway in the typical
52678         case it's not worth the extra 100 bytes or so of code.
52679         (ranged_convert, __mktime_internal): When calling a function via a
52680         pointer P, use P () rather than (*P) (), as we now assume C89 or
52681         better.
52682
52683 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52684
52685         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52686         "who -r" failed to give output.  Problem reported by Tim Waugh.
52687
52688         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52689         (xcalloc): Use it to avoid needless tests.
52690         Problem reported by Jim Meyering.
52691
52692 2005-06-20  Derek Price  <derek@ximbiot.com>
52693
52694         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52695         unnecessary for Autoconfs > 2.59c.
52696
52697 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52698
52699         * lib/argp.h (__option_is_short): Check upper limit of
52700         __key. Isprint() requires its argument to have the value
52701         of an unsigned char or EOF.
52702
52703 2005-06-16  Jim Meyering  <jim@meyering.net>
52704
52705         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52706         when either N or S is zero.
52707
52708 2005-06-16  Derek Price  <derek@ximbiot.com>
52709
52710         * m4/bison.m4: Declare YACC & YFLAGS precious.
52711
52712 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52713
52714         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52715         multibyte string or pattern, fall back on unibyte matching.
52716         Problem reported by James Youngman.
52717
52718 2005-06-08  Bruno Haible  <bruno@clisp.org>
52719
52720         * modules/csharpcomp: New file.
52721         * MODULES.html.sh (C#): Add csharpcomp.
52722
52723 2005-06-08  Bruno Haible  <bruno@clisp.org>
52724
52725         * m4/csharpcomp.m4: New file, from GNU gettext.
52726
52727 2005-06-08  Bruno Haible  <bruno@clisp.org>
52728
52729         * lib/csharpcomp.h: New file, from GNU gettext.
52730         * lib/csharpcomp.c: New file, from GNU gettext.
52731         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52732
52733 2005-06-08  Bruno Haible  <bruno@clisp.org>
52734
52735         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52736         warning on mingw.
52737
52738 2005-06-07  Derek Price  <derek@ximbiot.com>
52739
52740         Sync from CVS.
52741         * lib/glob_.h: Indent nested #ifdef.
52742
52743 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52744
52745         Sync from coreutils.
52746         Use "file name" when talking about file names, instead of "filename"
52747         or "path", as per the GNU coding standards.
52748         * lib/mkdir-p.c: Renamed from makepath.c.
52749         (make_dir_parents): Renamed from make_path.  All callers changed.
52750         * lib/mkdir-p.h: Likewise.  All includers changed.
52751         * lib/filenamecat.c: Renamed from path-concat.c.
52752         (file_name_concat): Renamed from path_concat.  All callers changed.
52753         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52754         * lib/filenamecat.h: Likewise.  All includers changed.
52755         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52756         in comments or local variable names.
52757         * lib/basename.c: Likewise.
52758         * lib/canonicalize.c, canonicalize.h: Likewise.
52759         * lib/dirname.c, dirname.h: Likewise.
52760         * lib/euidaccess.c: Likewise.
52761         * lib/exclude.c: Likewise
52762         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52763         * lib/fsusage.c, fsuage.h: Likewise.
52764         * lib/fts.c, fts_.h: Likewise.
52765         * lib/getcwd.c: Likewise.
52766         * lib/getloadavg.c: Likewise.
52767         * lib/mkstemp.c: Likewise.
52768         * lib/mountlist.c, mountlist.h: Likewise.
52769         * lib/openat.c, openat.h: Likewise.
52770         * lib/readlink-stub.c: Likewise.
52771         * lib/readutmp.c, readutmp.h: Likewise.
52772         * lib/rename.c: Likewise.
52773         * lib/rmdir.c: Likewise.
52774         * lib/same.c: Likewise.
52775         * lib/savedir.c: Likewise.
52776         * lib/stripslash.c: Likewise.
52777         * lib/tempname.c: Likewise.
52778         * lib/xreadlink.c: Likewise.
52779         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52780         All uses changed.
52781         * lib/exclude.h: Likewise.
52782
52783         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52784         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52785         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52786         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52787         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52788         files have been getting away with it for years (MORE/BSD 4.3
52789         is extinct now).
52790         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52791         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52792
52793         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52794         Define to 256, not 255, as per modern POSIX.
52795
52796 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52797
52798         Sync from coreutils.
52799         Use "file name" when talking about file names, instead of "filename"
52800         or "path", as per the GNU coding standards.
52801         * MODULES.html.sh: mkdir-p renamed from makepath.
52802         filenamecat renamed from path-concat.
52803         * modules/filenamecat: Renamed from modules/path-concat.
52804         (Files): filenamecat.h and filenamecat.c renamed from
52805         path-concat.h and path-concat.c.
52806         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52807         (Include): filenamecat.h, not path-concat.h.
52808         * modules/mkdir-p: Renamed from modules/makepath.
52809         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52810         makepath.c.
52811         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52812         (Include): mkdir-p.h, not makepath.h.
52813
52814 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52815
52816         Sync from coreutils.
52817         * m4/mkdir-p.m4: Renamed from makepath.m4.
52818         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52819         Rename files from makepath.c to mkdir-p.c, and from
52820         makepath.h to mkdir-p.h.
52821         * m4/filenamecat.m4: Renamed from path-concat.m4.
52822         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52823         Rename files from path-concat.c to filenamecat.c,
52824         and from path-concat.h to filenamecat.h.
52825         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52826         "file name" in local variables or comments.
52827         * m4/rename.m4: Likewise.
52828
52829 2005-06-01  Bruno Haible  <bruno@clisp.org>
52830
52831         * modules/csharpexec: New file.
52832         * MODULES.html.sh (C#): New section.
52833
52834 2005-06-01  Bruno Haible  <bruno@clisp.org>
52835
52836         * m4/csharp.m4: New file, from GNU gettext.
52837         * m4/csharpexec.m4: New file, from GNU gettext.
52838
52839 2005-06-01  Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/csharpexec.h: New file, from GNU gettext.
52842         * lib/csharpexec.c: New file, from GNU gettext.
52843         * lib/csharpexec.sh.in: New file, from GNU gettext.
52844
52845 2005-05-31  Derek Price  <derek@ximbiot.com>
52846             Paul Eggert  <eggert@cs.ucla.edu>
52847
52848         Sync from cvs.
52849         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52850
52851 2005-05-31  Derek Price  <derek@ximbiot.com>
52852             Paul Eggert  <eggert@cs.ucla.edu>
52853
52854         Sync from cvs.
52855         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52856
52857 2005-05-29  Derek Price  <derek@ximbiot.com>
52858
52859         * config/srclist.txt (glob_.h, glob.c): Add these files.
52860
52861 2005-05-29  Derek Price  <derek@ximbiot.com>
52862
52863         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52864         * modules/glob: New file.
52865         * modules/getlogin_r: Add link to POSIX spec in description.
52866
52867 2005-05-29  Derek Price  <derek@ximbiot.com>
52868             Paul Eggert  <eggert@cs.ucla.edu>
52869
52870         * m4/glob.m4: New file.
52871
52872 2005-05-29  Derek Price  <derek@ximbiot.com>
52873             Paul Eggert  <eggert@cs.ucla.edu>
52874
52875         * lib/glob_.h, lib/glob.c: New files.
52876
52877 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52878
52879         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52880         * modules/fts-lgpl (Depends-on): Remove gettext.
52881
52882 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52883
52884         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52885         and don't require gt_INTTYPES_PRI.
52886
52887 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52888
52889         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52890
52891         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52892         the configuration hassle isn't worth it.
52893         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52894         (LONGEST_MODIFIER, PRIuMAX): Remove.
52895
52896 2005-05-27  Bruno Haible  <bruno@clisp.org>
52897
52898         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52899
52900 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52901
52902         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52903         _POSIX_PTHREAD_SEMANTICS for Solaris.
52904
52905 2005-05-25  Derek Price  <derek@ximbiot.com>
52906
52907         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52908
52909 2005-05-25  Derek Price  <derek@ximbiot.com>
52910             Paul Eggert  <eggert@cs.ucla.edu>
52911
52912         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52913         * lib/getlogin_r.c, getlogin_r.h: New files.
52914
52915 2005-05-25  Bruno Haible  <bruno@clisp.org>
52916             Derek Price  <derek@ximbiot.com>
52917
52918         * lib/getlogin_r.h: Simplify API documentation.
52919
52920 2005-05-23  Derek Price  <derek@ximbiot.com>
52921
52922         * modules/minmax (Files): Add m4/minmax.m4.
52923         (configure.ac): Add gl_MINMAX.
52924
52925 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52926
52927         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52928         so that unistd-safer.h (GPL'ed code) need not be included.
52929
52930 2005-05-22  Bruno Haible  <bruno@clisp.org>
52931
52932         * m4/minmax.m4: New file.
52933         Based on a patch by Derek Price <derek@ximbiot.com>.
52934
52935 2005-05-22  Bruno Haible  <bruno@clisp.org>
52936
52937         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52938         (INT64_MIN): Fix definition.
52939         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52940
52941         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52942         NEED_SIGNED_INT_TYPES.
52943
52944         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52945         HAVE_SYSTEM_INTTYPES.
52946
52947 2005-05-22  Bruno Haible  <bruno@clisp.org>
52948
52949         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52950         Also include <sys/param.h> if it defines MIN, MAX.
52951         Based on a patch by Derek Price <derek@ximbiot.com>.
52952
52953 2005-05-21  Jim Meyering  <jim@meyering.net>
52954
52955         * modules/fts (Files): Add m4/inttypes-pri.m4.
52956         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52957
52958 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52959
52960         New fts module.
52961         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52962         (setup_dir, free_dir): New functions.
52963         (enter_dir, leave_dir): Define trivial
52964         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52965         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52966         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52967         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52968         Move to fts-cycle.c.
52969         (fts_open): Use setup_dir.
52970         (fts_close): Use free_dir.
52971         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52972         This adds a label and some gotos, but the alternatives were messier.
52973         Check for memory allocation failure when entering a dir.
52974         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52975         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52976         (FTS): New member fts_cycle, that is a union that contains the
52977         old active_dir_ht and cycle_state.  All uses changed to mention
52978         fts_cycle.ht and fts_cycle.state.
52979         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52980         fts.c, with the following changes:
52981         (setup_dir, free_dir): New functions.
52982         (enter_dir): Now returns bool.  Return true if successful, false
52983         if memory exhausted.  All callers changed.
52984         Do not bother partly cleaning up on
52985         memory allocation failure; that is free_dir's job.
52986         However, free ad if hash_insert fails, to avoid memory leak.
52987         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52988         fts->fts_options to see which union member to use.
52989
52990 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52991
52992         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52993         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52994
52995 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52996
52997         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52998
52999 2005-05-20  Jim Meyering  <jim@meyering.net>
53000
53001         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
53002         Now a macro, to pacify GCC.
53003
53004 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
53005
53006         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
53007         of -1.
53008
53009 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
53010
53011         * lib/chown.c (rpl_chown): Return -1 on failure.
53012
53013 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
53014
53015         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
53016         Don't check for stddef.h.
53017         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
53018         don't use its results.
53019         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
53020         since we include them unconditionally.  Don't require
53021         AM_STDBOOL_H, since stdbool is a prerequisite.
53022         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
53023         since we assume C89 or better.
53024         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
53025         as we don't use their results.
53026         Don't check for fchdir, memmove, memset, strrchr, as we use
53027         them unconditionally.
53028         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
53029         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
53030
53031 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
53032
53033         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
53034         Include <stddef.h> unconditionally, since we assume C89 now.
53035         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
53036         * lib/fts.c: Include fts_.h first, to check interface.
53037         Do not include intprops.h; no longer needed.
53038         Include cycle-check.h and hash.h, since fts_.h no longer does.
53039         Remove unnecessary casts of closedir to void.
53040         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
53041         decide whether to decrement nlinks.
53042         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
53043         (FTS): Use struct hash_table * instead of Hash_table, so that
53044         we no longer need to include hash.h here.
53045
53046 2005-05-18  Jim Meyering  <jim@meyering.net>
53047
53048         * modules/dirfd (License): Change to LGPL.  Most of the code
53049         is already in the public domain.
53050
53051 2005-05-18  Jim Meyering  <jim@meyering.net>
53052
53053         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
53054         Reported by Yoann Vandoorselaere.
53055
53056 2005-05-17  Jim Meyering  <jim@meyering.net>
53057
53058         * m4/fts.m4: New file, from coreutils.
53059
53060 2005-05-17  Jim Meyering  <jim@meyering.net>
53061
53062         * lib/fts.c, lib/fts_.h: New files, from coreutils.
53063
53064 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53065
53066         Sync from coreutils.
53067         * m4/unlinkdir.m4: New file.
53068
53069 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53070
53071         Sync from coreutils.
53072         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
53073         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
53074         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
53075         White space changes only.
53076         * lib/makepath.c (make_path): Port to hosts where leading "//" is
53077         special.
53078         * lib/yesno.c: Include getline.h, not ctype.h.
53079         (yesno): Don't remove leading white space; POSIX doesn't allow it.
53080         Use getline to remove arbitrary restriction on response length.
53081
53082 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53083
53084         * config/srclist-update: Spell out "Street" in FSF postal
53085         mail address; this is the style the FSF seems to prefer.
53086
53087         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
53088         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
53089         this updates FSF postal mail address.
53090
53091         Sync from coreutils.
53092         * modules/unlinkdir: New file.
53093         * modules/yesno (Depends-on): Add getline.
53094         * MODULES.html.sh (File system functions): Add unlinkdir.
53095
53096 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53097
53098         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
53099         lib/strsep.h:
53100         Change the initial comment to refer to GPL, not LGPL.
53101         gnulib-tool will change it to LGPL as needed.
53102
53103         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
53104         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
53105         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
53106         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
53107         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
53108         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
53109         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
53110         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
53111         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
53112         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
53113         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
53114         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
53115         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
53116         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
53117         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
53118         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
53119         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
53120         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
53121         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
53122         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
53123         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
53124         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
53125         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
53126         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
53127         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
53128         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
53129         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
53130         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
53131         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
53132         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
53133         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
53134         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
53135         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
53136         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
53137         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
53138         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
53139         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
53140         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
53141         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
53142         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
53143         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
53144         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
53145         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
53146         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
53147         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
53148         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
53149         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
53150         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
53151         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
53152         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
53153         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53154         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
53155         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
53156         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
53157         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
53158         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
53159         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
53160         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
53161         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
53162         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
53163         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
53164         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
53165         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
53166         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
53167         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
53168         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
53169         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
53170         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
53171         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
53172         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
53173         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
53174         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
53175         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
53176         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
53177         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
53178         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
53179         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
53180         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
53181         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
53182         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
53183         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
53184         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
53185         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
53186         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
53187         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
53188         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
53189         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
53190         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
53191         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
53192         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
53193         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
53194         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
53195         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
53196         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
53197         lib/yesno.c, lib/yesno.h:
53198         Update FSF postal mail address.
53199
53200 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53201
53202         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
53203         tests/test-memmem.c, tests/test-stpncpy.c:
53204         Update FSF postal mail address.
53205
53206 2005-05-13  Bruno Haible  <bruno@clisp.org>
53207
53208         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
53209         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
53210         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
53211         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
53212         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
53213         Add support for 64-bit integers in the MSVC compiler.
53214
53215 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53216
53217         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
53218
53219 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
53220
53221         * gnulib-tool (func_import): Sort and uniquify recommended includes.
53222
53223 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
53224
53225         * doc/getdate.texi (General date syntax): Don't say that date
53226         date --iso-8601=ns generates acceptable dates; it doesn't yet.
53227         Problem reported by Nic Ferrier.
53228
53229 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53230
53231         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
53232         specified in ai_socktype. Fix invalid ai_protocol
53233         check. ai_protocol is usually set to 0 or depending on
53234         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
53235         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
53236         ai_socktype / ai_protocol in the returned addrinfo structure.
53237
53238 2005-05-10  Simon Josefsson  <jas@extundo.com>
53239
53240         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
53241         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53242
53243 2005-05-10  Karl Berry  <karl@gnu.org>
53244
53245         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
53246         (from http://www.gnu.org/licenses).
53247         * doc/COPYING.LIB: also rename to COPYING.LESSER.
53248         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
53249         fdl.texi suffices.
53250
53251 2005-05-10  Karl Berry  <karl@gnu.org>
53252
53253         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
53254         (COPYING.DOC): remove.
53255
53256         * config/srclist-update: new FSF address.
53257
53258 2005-05-10  Derek Price  <derek@ximbiot.com>
53259
53260         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
53261         possible.
53262
53263 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53264             Bruno Haible  <bruno@clisp.org>
53265
53266         * modules/inet_ntop: New file.
53267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53268         inet_ntop.
53269
53270 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53271             Bruno Haible  <bruno@clisp.org>
53272
53273         * m4/inet_ntop.m4: New file.
53274
53275 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53276             Bruno Haible  <bruno@clisp.org>
53277
53278         * lib/inet_ntop.h: New file.
53279         * lib/inet_ntop.c: New file, from glibc with modifications.
53280
53281 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
53282
53283         * modules/time_r (License): Change to LGPL.
53284         * modules/extensions (License): Change to LGPL.  Actually,
53285         the license is more permissive than that, but currently gnulib-tool
53286         doesn't know how to handle more-permissive licenses.
53287
53288         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
53289         Problem reported by Dave Love.
53290
53291 2005-05-08  Jim Meyering  <jim@meyering.net>
53292
53293         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
53294         blank.
53295
53296 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53297
53298         * modules/argmatch (Depends-on): Add stdbool.
53299         * modules/backupfile (Depends-on): Likewise.
53300         * modules/chdir-long (Depends-on): Likewise.
53301         * modules/closeout (Depends-on): Likewise.
53302         * modules/cycle-check (Depends-on): Likewise.
53303         * modules/dirname (Depends-on): Likewise.
53304         * modules/fnmatch (Depends-on): Likewise.
53305         * modules/fsusage (Depends-on): Likewise.
53306         * modules/fwriteerror (Depends-on): Likewise.
53307         * modules/getcwd (Depends-on): Likewise.
53308         * modules/getloadavg (Depends-on): Likewise.
53309         * modules/hard-locale (Depends-on): Likewise.
53310         * modules/makepath (Depends-on): Likewise.
53311         * modules/mountlist (Depends-on): Likewise.
53312         * modules/nanosleep (Depends-on): Likewise.
53313         * modules/posixtm (Depends-on): Likewise.
53314         * modules/quotearg (Depends-on): Likewise.
53315         * modules/readtokens (Depends-on): Likewise.
53316         * modules/readtokens0 (Depends-on): Likewise.
53317         * modules/readutmp (Depends-on): Likewise.
53318         * modules/save-cwd (Depends-on): Likewise.
53319         * modules/strftime (Depends-on): Likewise.
53320         * modules/userspec (Depends-on): Likewise.
53321         * modules/utimecmp (Depends-on): Likewise.
53322         * modules/xgetcwd (Depends-on): Likewise.
53323         * modules/xnanosleep (Depends-on): Likewise.
53324         * modules/xstrtod (Depends-on): Likewise.
53325         * modules/yesno (Depends-on): Likewise.
53326
53327 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53328
53329         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53330         needless checks.
53331
53332 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53333
53334         Merge from coreutils.  Among other things,
53335         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53336         * lib/fd-safer.c: New file.
53337         * lib/fcntl-safer.h, open-safer.c: Remove.
53338         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53339         * lib/dup-safer.c: Include unistd-safer.h first.
53340         Don't include errno.h.
53341         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53342         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53343         * lib/file-type.c: Rely on file-type.h change.
53344         * lib/getloadavg.c: Include unistd-safer.h.
53345         (getloadavg): Use safer open.
53346         * lib/getusershell.c: Include "stdio-safer.h".
53347         (getusershell): Use safer fopen.
53348         * lib/long-options.c (long_options): Use NULL rather than 0.
53349         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53350         'free'.
53351         * lib/modechange.c: Likewise.
53352         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53353         (MODE_DONE): New constant.
53354         (struct mode_change): Remove 'next' member.
53355         (make_node_op_equals): New function; like the old one of the
53356         same name, except it allocates an array.
53357         (mode_compile, mode_create_from_ref): Use it.
53358         (mode_compile): Allocate result as an array, not a linked list.
53359         Parse octal string ourself, so that we catch mistakes like "+0".
53360         (mode_adjust): Arg is an array, not a linked list.
53361         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53362         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53363         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53364         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53365         Remove.  This is now stat-macros.h's job.
53366         (talloc): Remove.  All callers replaced by xalloc, so that
53367         our invokers don't have to worry about reporting memory failures.
53368         (make_node_op_equals): Remove.
53369         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53370         New constants.
53371         (struct mode_change): Moved here from modechange.h.
53372         (mode_append_entry): Remove.
53373         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53374         apps to have incorrect behavior.  Use simpler algorithm for head
53375         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53376         Detect more invalid usages rather than having somewhat-random behavior.
53377         Don't insert an "a=" action, as that leads to incorrect behavior.
53378         (mode_compile, mode_create_from_ref): Return NULL on error instead
53379         of an enum, since now there's only one way to have an error.  All
53380         callers changed.
53381         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53382         at the correct time.  Simplify calculation of "+u" and its ilk.
53383         Don't mishandle "+X".
53384         (mode_free): Remove "register" and localize decls.
53385         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53386         (struct mode_change): Move to modechange.c; callers don't
53387         need to see this stuff.
53388         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53389         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53390         (mode_change, mode_adjust): Reflect the new signatures noted above.
53391         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53392         that might redefine system include files.
53393         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53394         (my_usleep): Use NULL rather than (void *) 0.
53395         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53396         Use siginterrupt to specify that system calls should be interrupted.
53397         (rpl_nanosleep): Move initialization of suspended closer to call of
53398         my_usleep.
53399         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53400         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53401         (desirable_utmp_entry): New function.
53402         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53403         using x2nrealloc, to simplify logic.
53404         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53405         size calculation.  Do not assume utmp file is a regular file.
53406         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53407         (READ_UTMP_CHECK_PIDS): New constant.
53408         * lib/save-cwd.c: Include unistd-safer.h.
53409         (save_cwd): Use fd_safer.
53410         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53411         [!_LIBC] Include "stat-macros.h" instead.
53412         * lib/unistd-safer.h (fd_safer): New decl.
53413
53414 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53415
53416         * modules/getloadavg (Depends-on): Add unistd-safer.
53417         * modules/getusershell (Depends-on): Add stdio-safer.
53418         * modules/lstat (Depends-on): Remove xalloc.
53419         * modules/mkstemp (Depends-on): Add stat-macros.
53420         * modules/modechange (Depends-on): Remove xstrtol.
53421         Add stat-macros, xalloc.
53422         * modules/save-cwd (Depends-on): Add unistd-safer.
53423         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53424         * modules/unistd-safer (Files): Add lib/fd-safer.c
53425         (Makefile.am): Remove lib_SOURCES.
53426
53427         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53428         Remove fcntl-safer; unistd-safer supersedes it.
53429
53430 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53431
53432         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53433         AC_HEADER_STAT.
53434         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53435         (gl_PREREQ_CHOWN): Remove.
53436         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53437         it.  Don't require AC_HEADER_STAT.
53438         (gl_PREREQ_LSTAT): Remove.
53439         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53440         Don't require AC_HEADER_STAT.
53441         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53442         (gl_PREREQ_RMDIR): Remove.
53443         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53444         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53445         the stat-macros module a prerequisite.
53446         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53447         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53448         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53449         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53450         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53451         variable names.
53452         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53453         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53454         variable prefixes.
53455         * m4/fcntl-safer.m4: Remove.
53456         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53457         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53458         Invoke gl_PREREQ_FD_SAFER.
53459         (gl_PREREQ_FD_SAFER): New macro.
53460         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53461         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53462         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53463         Remove duplicate call to AC_LIBOBJ(readutmp).
53464         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53465
53466         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53467         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53468
53469 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53470
53471         * MODULES.html.sh (Misc): Add byteswap.
53472
53473 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53474
53475         * modules/getcwd (Depends-on): Add extensions.
53476         * modules/openat (Depends-on): Likewise.
53477
53478 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53479
53480         * modules/byteswap: New file.
53481
53482 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53483
53484         * m4/byteswap.m4: New file.
53485
53486 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53487
53488         * lib/byteswap_.h: New file.
53489
53490 2005-04-25  Karl Berry  <karl@gnu.org>
53491
53492         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53493
53494 2005-04-25  Albert Chin  <china@thewrittenword.com>
53495
53496         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53497         Toolkit C bug.
53498
53499 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53500
53501         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53502         (func_ln_if_changed) Remove forcibly for no error message
53503         in case file does not exist.
53504
53505 2005-04-19  Simon Josefsson  <jas@extundo.com>
53506
53507         * gnulib-tool (Options): Make --symlink mean --symbolic.
53508
53509 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53510
53511         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53512
53513 2005-04-16  Simon Josefsson  <jas@extundo.com>
53514
53515         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53516
53517 2005-04-15  Simon Josefsson  <jas@extundo.com>
53518
53519         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53520
53521 2005-04-15  Simon Josefsson  <jas@extundo.com>
53522
53523         * gnulib-tool: Rename --symlink to --symbolic.
53524
53525 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53526
53527         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53528         symbolic links to files instead of copying/moving.  Add --aux-dir,
53529         specifying directory relative --dir where auxiliary build tools
53530         are placed.
53531
53532 2005-04-14  Bruno Haible  <bruno@clisp.org>
53533
53534         * modules/allocsa (License): Change to LGPL.
53535         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53536
53537 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53538
53539         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53540         that "UTC +1 second" continues to work.  Problem reported
53541         by Dmitry V. Levin.
53542         (relunit_snumber): New rule.
53543         (relunit): Use it.
53544
53545 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53546
53547         * lib/getdate.y (universal_time_zone_table): New constant.
53548         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53549         universal_time_zone_table.
53550         (lookup_zone): Prefer universal_time_zone_table to
53551         local_time_zone_table, so that "GMT" time stamps are allowed in
53552         London during the summer.  Problem reported by Ian Abbott.
53553
53554 2005-04-12  Jim Meyering  <jim@meyering.net>
53555
53556         * lib/human.c (humblock): Set *options even when returning due to
53557         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53558         warning from gcc-4.
53559
53560 2005-04-09  Jim Meyering  <jim@meyering.net>
53561
53562         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53563         -Wuninitialized: initialize tm0.tm_year.
53564
53565 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53566
53567         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53568         count, since there's no maximum.  All uses changed.
53569         Add member dsts_seen.
53570         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53571         not being INT_MAX.
53572         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53573         Use pc_rels_seen to decide whther a date is absolute.
53574
53575         * lib/getdate.y (number): Don't overwrite year.
53576         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53577         check.
53578
53579 2005-04-02  Simon Josefsson  <jas@extundo.com>
53580
53581         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53582         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53583
53584 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53585
53586         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53587         where no absolute path name can be longer than PATH_MAX.
53588
53589 2005-03-27  Jim Meyering  <jim@meyering.net>
53590
53591         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53592
53593 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53594
53595         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53596         "one's complement" -> "ones' complement" in comment, as per Knuth.
53597         "value of type" -> "type or expression" in comment.
53598         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53599
53600 2005-03-26  Jim Meyering  <jim@meyering.net>
53601
53602         Comment nits.
53603         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53604         Correct typos: s/or/of/.
53605
53606 2005-03-26  Jim Meyering  <jim@meyering.net>
53607
53608         * modules/check-include-files: Move to ../ and rename to...
53609         * check-module: ...this.
53610
53611 2005-03-25  Jim Meyering  <jim@meyering.net>
53612
53613         * modules/xvasprintf (Files): Add xalloc.h.
53614
53615 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53616
53617         * modules/gettext (Files): config/config.rpath ->
53618         build-aux/config.rpath
53619         * modules/iconv (Files): Likewise.
53620         Problem reported by Oskar Liljeblad.
53621
53622 2005-03-23  Jim Meyering  <jim@meyering.net>
53623
53624         * modules/check-include-files: New script to check for
53625         missing dependencies, multiple includes, etc.
53626
53627         * modules/c-strtold (Depends-on): Add xalloc.
53628         * modules/c-strtod (Depends-on): Add xalloc.
53629         * modules/hash (Depends-on): Add xalloc.
53630         (Files): Remove lib/xalloc.h.
53631
53632         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53633         * modules/userspec (Files): Add lib/inttostr.h.
53634
53635 2005-03-23  Jim Meyering  <jim@meyering.net>
53636
53637         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53638
53639 2005-03-22  Jim Meyering  <jim@meyering.net>
53640
53641         * modules/stat-macros: New module.
53642         * modules/canonicalize, modules/euidaccess, modules/file-type,
53643         * modules/filemode, modules/lchown, modules/makepath,
53644         * modules/rmdir, modules/stat: Depend on new stat-macros module
53645         rather than listing lib/stat-macros.h manually.
53646         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53647
53648 2005-03-22  Jim Meyering  <jim@meyering.net>
53649
53650         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53651
53652 2005-03-22  Bruno Haible  <bruno@clisp.org>
53653
53654         * config/srclist.txt: Replace target directory 'config' with
53655         'build-aux'.
53656         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53657         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53658         ../build-aux/.
53659
53660 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53661
53662         * modules/chdir-long (Depends-on): Add mempcpy.
53663
53664         * modules/acl, modules/backupfile, modules/c-strtod,
53665         modules/c-strtold, modules/canon-host, modules/canonicalize,
53666         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53667         modules/exclude, modules/exitfail, modules/file-type,
53668         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53669         modules/getdate, modules/getline, modules/getpagesize,
53670         modules/getpass, modules/getugroups, modules/group-member,
53671         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53672         modules/inttostr, modules/long-options, modules/makepath,
53673         modules/md5, modules/memcasecmp, modules/memcoll,
53674         modules/modechange, modules/mountlist, modules/path-concat,
53675         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53676         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53677         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53678         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53679         modules/strftime, modules/strndup, modules/strverscmp,
53680         modules/timespec, modules/unlocked-io, modules/userspec,
53681         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53682         modules/yesno:
53683         Remove lib_SOURCES line from Makefile.am section, as this is now
53684         done automatically by the corresponding Autoconf macro.
53685
53686 2005-03-21  Jim Meyering  <jim@meyering.net>
53687
53688         Changes imported from coreutils.
53689
53690         * lib/cycle-check.c: Don't include xalloc.h.
53691
53692         * lib/path-concat.c: Don't include assert.h.
53693         (path_concat): Remove assertion that would have triggered
53694         for ABASE starting with more than one slash.
53695         Reported by Andreas Schwab.
53696
53697         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53698         properly when ABASE is an absolute file name.
53699         Correct the description of this function.
53700         Include <assert.h>.
53701         Add an assertion and a test driver.
53702         This fixes a bug introduced on 2004-07-02.
53703         Andreas Schwab reported the resulting failure of cp --parents:
53704         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53705
53706 2005-03-21  Jim Meyering  <jim@meyering.net>
53707
53708         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53709         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53710
53711 2005-03-21  Jim Meyering  <jim@meyering.net>
53712         and  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53715         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53716         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53717         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53718         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53719         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53720         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53721         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53722         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53723         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53724         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53725         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53726         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53727         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53728         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53729         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53730         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53731         for these modules.
53732
53733 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53734
53735         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53736         (which shouldn't happen), generate nothing instead of returning 0
53737         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53738
53739 2005-03-16  Bruno Haible  <bruno@clisp.org>
53740
53741         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53742         HAVE_LONGLONG_64BIT.
53743
53744 2005-03-16  Bruno Haible  <bruno@clisp.org>
53745
53746         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53747         HAVE_LONGLONG_64BIT.
53748
53749 2005-03-16  Bruno Haible  <bruno@clisp.org>
53750
53751         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53752         HAVE_LONGLONG_64BIT.
53753
53754 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53755
53756         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53757         reliably distinguish strftime failure from empty output on POSIX
53758         hosts.
53759
53760 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53761
53762         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53763         (iconv_string): Don't guess a size-zero buffer, as that might cause
53764         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53765         result would be 'too large', where 'too large' is (heuristically)
53766         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53767         overflow concerns.  This will prevent some unwanted malloc failures
53768         when the inputs are very large.
53769
53770 2005-03-15  Karl Berry  <karl@gnu.org>
53771
53772         * config/srclist.txt (config.rpath): from gettext.
53773         * config/config.rpath: update.
53774
53775 2005-03-15  Bruno Haible  <bruno@clisp.org>
53776
53777         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53778         to 'negate'.
53779
53780         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53781         variable.
53782
53783         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53784         results.
53785
53786 2005-03-14  Simon Josefsson  <jas@extundo.com>
53787
53788         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53789         <fx@gnu.org>.
53790
53791 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53792
53793         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53794         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53795         intprops.h.
53796         * lib/strtol.c: Likewise.
53797
53798 2005-03-14  Jim Meyering  <jim@meyering.net>
53799
53800         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53801         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53802         to be nonzero so that we (and caller) can detect the difference
53803         between a valid zero-length expansion and an error return, even
53804         when the underlying strftime fails before writing anything into
53805         that location.
53806
53807 2005-03-14  Bruno Haible  <bruno@clisp.org>
53808
53809         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53810         Update from GNU gettext 0.14.3.
53811
53812 2005-03-10  Jim Meyering  <jim@meyering.net>
53813
53814         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53815
53816 2005-03-10  Jim Meyering  <jim@meyering.net>
53817
53818         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53819         so that this module works on systems without fchdir.
53820
53821 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53822
53823         Factor int-properties macros into a single file, except for
53824         glibc-related files.
53825         * lib/intprops.h: New file.
53826         * lib/getloadavg.c: Include it instead of limits.h.
53827         (INT_STRLEN_BOUND): Remove.
53828         * lib/human.c: Include intprops.h.
53829         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53830         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53831         302/1000.
53832         * lib/inttostr.h: Include intprops.h instead of limits.h.
53833         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53834         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53835         for consistency with intprops.h.
53836         (time_t_is_integer, twos_complement_arithmetic): Use them.
53837         * lib/sig2str.h: Include <signal.h>, intprops.h.
53838         (INT_STRLEN_BOUND): Remove.
53839         * lib/strftime.c (TYPE_SIGNED): Remove.
53840         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53841         * lib/strtol.c: Adjust comments to match intprops.h.
53842         * lib/userspec.c: Include intprops.h.
53843         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53844         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53845         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53846         instead of rolling our own expressions.
53847         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53848
53849         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53850         instead of int.
53851         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53852         the right thing even if adding 1900 would overflow.  Similarly
53853         for tm_mon + 1 and tm_yday + 1.
53854         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53855         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53856         (DO_SIGNED_NUMBER): New macro.
53857         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53858
53859 2005-03-07  Bruno Haible  <bruno@clisp.org>
53860
53861         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53862
53863 2005-03-07  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53866
53867 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53868
53869         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53870         (func_import): Only replace files via --import when they have actually
53871         changed.
53872
53873 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53874
53875         * m4/mmap-anon.m4: New file.
53876         * m4/pagealign_alloc.m4: New file.
53877
53878 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53879             Bruno Haible  <bruno@clisp.org>
53880
53881         * modules/pagealign_alloc: New file.
53882         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53883
53884 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53885             Bruno Haible  <bruno@clisp.org>
53886
53887         * lib/pagealign_alloc.h: New file.
53888         * lib/pagealign_alloc.c: New file.
53889
53890 2005-03-03  Bruno Haible  <bruno@clisp.org>
53891
53892         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53893         Use an all-permissive copyright notice, recommended by RMS.
53894
53895 2005-03-02  Bruno Haible  <bruno@clisp.org>
53896
53897         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53898         of AIX, the replacement has to be done only after <string.h> is
53899         included, therefore not in config.h. stpncpy.h does the replacement,
53900         and stpncpy.c uses it.
53901
53902 2005-03-02  Bruno Haible  <bruno@clisp.org>
53903
53904         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53905         stpncpy.c uses it.
53906
53907 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53910         The workaround isn't strictly needed for POSIX conformance, and
53911         it's too much of a pain to configure and maintain.  We'll ask
53912         people to fix their kernels instead.
53913         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53914         (NANOSLEEP_BUG_WORKAROUND): Remove.
53915         (xnanosleep): Remove the workaround.
53916
53917 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53918
53919         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53920         Reported by Derek Price.
53921         (Include): Add "timespec.h".
53922
53923         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53924
53925 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53926
53927         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53928         to detect nanosleep bug.
53929
53930 2005-03-01  Bruno Haible  <bruno@clisp.org>
53931
53932         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53933
53934 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53935
53936         * modules/gethrxtime: New file.
53937         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53938         (Depends-on): Add gethrxtime.
53939         (configure.ac): Add gl_XNANOSLEEP.
53940         (Makefile.am): Remove lib_SOURCES line.
53941
53942 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53943
53944         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53945         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53946
53947 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53948
53949         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53950         * lib/timespec.h (gettime): Return void, since it always
53951         succeeds now.  All uses changed.
53952         * lib/gettime.c (gettime) Likewise.
53953         [HAVE_NANOTIME]: Prefer nanotime.
53954         Assume gettimeofday succeeds, as POSIX requires.
53955         Assime time () succeeds, since other code already does.
53956         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53957         (timespec_subtract): Remove.
53958         (NANOSLEEP_BUG_WORKAROUND): New constant.
53959         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53960         things considerably.  Use it only on GNU/Linux hosts, since the
53961         workaround shouldn't be needed elsewhere.
53962
53963 2005-02-24  Bruno Haible  <bruno@clisp.org>
53964
53965         * modules/gettext (Files): Add m4/glibc2.m4.
53966
53967 2005-02-24  Bruno Haible  <bruno@clisp.org>
53968
53969         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53970         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53971         * m4/progtest.m4:
53972         Update from GNU gettext 0.14.2.
53973         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53974
53975 2005-02-24  Bruno Haible  <bruno@clisp.org>
53976
53977         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53978         * lib/config.charset: Update from GNU gettext 0.14.2.
53979
53980 2005-02-24  Bruno Haible  <bruno@clisp.org>
53981
53982         * lib/gettext.h: Update from GNU gettext 0.14.2.
53983
53984 2005-02-23  Simon Josefsson  <jas@extundo.com>
53985
53986         * m4/iconvme.m4: New file.
53987
53988 2005-02-23  Jim Meyering  <jim@meyering.net>
53989
53990         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53991         change.
53992         Thanks to Bruno Haible for catching it.
53993
53994 2005-02-22  Simon Josefsson  <jas@extundo.com>
53995
53996         * modules/iconvme: New file.
53997
53998         * MODULES.html.sh: Add iconvme.
53999
54000 2005-02-22  Simon Josefsson  <jas@extundo.com>
54001
54002         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
54003
54004 2005-02-22  Simon Josefsson  <jas@extundo.com>
54005
54006         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
54007
54008 2005-02-22  Jim Meyering  <jim@meyering.net>
54009
54010         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
54011         s/ifndef/ifdef/.
54012
54013 2005-02-20  Neil Conway  <neilc@samurai.com>
54014
54015         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
54016         returned by OSX/Darwin if the specified buffer is not large
54017         enough for the hostname.
54018
54019 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54020
54021         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
54022         pass it to _help, otherwise the latter coredumps trying to
54023         dereference state.root_argp.
54024
54025 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54026
54027         * modules/chdir-long (Depends-on): Add memrchr.
54028         * modules/memrchr (Files): Add lib/memrchr.h.
54029         (Include): "memrchr.h".
54030
54031 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54032
54033         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
54034
54035 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54036
54037         * lib/memrchr.h: New file.
54038         * lib/chdir-long.c: Include it.
54039         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
54040         Don't bother including stddef.h.
54041
54042 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54043
54044         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
54045         inclusion.
54046         Include <sys/types.h>, for dev_t.
54047         (ME_DUMMY, ME_REMOTE): Move from here....
54048         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
54049         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
54050         Dmitry V. Levin.
54051         Include mountlist.h first, to test the interface.
54052
54053 2005-01-29  Bruno Haible  <bruno@clisp.org>
54054
54055         * lib/progname.c (program_name): Initialize.
54056         Needed when linking statically on MacOS X.
54057
54058 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54059
54060         Sync from coreutils.
54061         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
54062         (Depends-on): Add c-strtod.
54063         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
54064
54065 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54066
54067         Sync from coreutils.
54068         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
54069
54070         Remove files that are specific to coreutils.
54071         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
54072
54073 2005-01-28  Bruno Haible  <bruno@clisp.org>
54074
54075         * modules/javacomp: New file.
54076         * MODULES.html.sh (Java): Add javacomp.
54077
54078 2005-01-28  Bruno Haible  <bruno@clisp.org>
54079
54080         * m4/javacomp.m4: New file, from GNU gettext.
54081
54082 2005-01-28  Bruno Haible  <bruno@clisp.org>
54083
54084         * lib/javacomp.sh.in: New file, from GNU gettext.
54085         * lib/javacomp.h: New file, from GNU gettext.
54086         * lib/javacomp.c: New file, from GNU gettext.
54087
54088 2005-01-26  Simon Josefsson  <jas@extundo.com>
54089
54090         * lib/gai_strerror.c: Use GPL in header.
54091
54092 2005-01-26  Bruno Haible  <bruno@clisp.org>
54093
54094         * modules/javaexec: New file.
54095         * MODULES.html.sh (Java): Add javaexec.
54096
54097 2005-01-26  Bruno Haible  <bruno@clisp.org>
54098
54099         * m4/javaexec.m4: New file, from GNU gettext.
54100
54101 2005-01-26  Bruno Haible  <bruno@clisp.org>
54102
54103         * lib/javaexec.sh.in: New file, from GNU gettext.
54104         * lib/javaexec.h: New file, from GNU gettext.
54105         * lib/javaexec.c: New file, from GNU gettext.
54106
54107 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54108
54109         * modules/lchown (Depends-on): Remove lchown.h
54110
54111 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54112
54113         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
54114         must be defined if the header file was not found, in order
54115         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
54116
54117 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54118
54119         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
54120         initializers for struct pentry_state.
54121         (__argp_error): Check return value of __asprintf
54122         (__argp_failure): Translate error message
54123
54124         * lib/argp-parse.c: Removed braces around the expansion of N_()
54125
54126 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54127
54128         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
54129         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
54130         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
54131         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
54132         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
54133         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
54134         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
54135         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
54136         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
54137         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
54138         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
54139         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
54140         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
54141         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
54142         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
54143         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
54144         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
54145         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
54146         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
54147         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
54148         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
54149         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
54150         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
54151         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
54152         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
54153         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
54154         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
54155         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
54156         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
54157         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
54158         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
54159         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
54160         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
54161         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
54162         xstrtol.m4, xstrtoumax.m4, yesno.m4:
54163         Use an all-permissive copyright notice, recommended by RMS.
54164
54165 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
54166
54167         * modules/chdir-long (Depends-on): Remove mempcpy.
54168
54169 2005-01-21  Jim Meyering  <jim@meyering.net>
54170
54171         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
54172         same value as for Solaris 9.
54173
54174         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
54175         component length.  This included changing the parameter to be
54176         of type `char *' rather than `char const *'.
54177         * lib/chdir-long.h (chdir_long): Update prototype.
54178
54179         * lib/openat.c (fdopendir, fstatat): New functions.
54180         * lib/openat.h: Include headers required for use of DIR and struct
54181         stat.
54182         [AT_SYMLINK_NOFOLLOW]: Define.
54183         (fdopendir, fstatat): Add prototypes.
54184
54185 2005-01-21  Bruno Haible  <bruno@clisp.org>
54186
54187         * modules/classpath: New file.
54188         * MODULES.html.sh (Java): Add classpath.
54189
54190 2005-01-21  Bruno Haible  <bruno@clisp.org>
54191
54192         * lib/classpath.h: New file, from GNU gettext.
54193         * lib/classpath.c: New file, from GNU gettext.
54194
54195 2005-01-20  Simon Josefsson  <jas@extundo.com>
54196
54197         * modules/version-etc-fsf: New file.
54198
54199 2005-01-20  Simon Josefsson  <jas@extundo.com>
54200
54201         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
54202         * lib/version-etc.c: Remove version_etc_copyright.
54203         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
54204         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
54205
54206 2005-01-20  Simon Josefsson  <jas@extundo.com>
54207
54208         * lib/base64.h (isbase64): Add.
54209
54210         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
54211         using a unsigned prototype, don't inline.
54212         (base64_decode): Use it.
54213
54214 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54215
54216         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
54217         it.
54218
54219 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54220
54221         * lib/save-cwd.c (save_cwd): Remove code to support the case
54222         where fchdir is missing or flaky.
54223
54224 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54225
54226         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
54227
54228 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54229
54230         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
54231         AC_LIBSOURCES now does this.
54232         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
54233         with new ullong_max module.
54234
54235 2005-01-19  Bruno Haible  <bruno@clisp.org>
54236
54237         * modules/sh-quote: New file.
54238         * MODULES.html.sh (Executing programs): Add sh-quote.
54239
54240 2005-01-19  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/sh-quote.h: New file, from GNU gettext.
54243         * lib/sh-quote.c: New file, from GNU gettext.
54244
54245 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54246
54247         Merge from coreutils.
54248         * m4/ullong_max.m4: New file.
54249         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
54250         (gl_MACROS): Assume localeconv exists.
54251
54252 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54253
54254         Merge changes from coreutils, as described below in several
54255         changelogs dated today.
54256
54257         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
54258         (O_DIRECTORY): Remove; not needed here, since "." must be
54259         a directory.  All uses removed.
54260         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
54261         universal on Suns, and we also need to test for IRIX.
54262         Revamp code to use 'if' rather than '#if'.
54263         Avoid unnecessary comparison of cwd->desc to 0.
54264
54265         * lib/utimens.c (futimens): Robustify the previous patch, by checking
54266         for known valid error numbers rather than observed invalid ones.
54267
54268 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54269
54270         * modules/ullong_max: New file.
54271
54272         * modules/chdir-long, modules/openat: New files.
54273         * modules/save-cwd (Depends-on): Depend on chdir-long.
54274         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
54275
54276 2005-01-18  Jim Meyering  <jim@meyering.net>
54277
54278         Merge from coreutils.
54279         * m4/chdir-long.m4, m4/openat.m4: New files.
54280         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
54281         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
54282         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
54283         is sane and DOES follow symlinks.  Besides, testing 20 different
54284         systems found no broken chown implementations.
54285         Prompted by a change in rsync's copy of this macro.
54286         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
54287
54288         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
54289
54290         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
54291         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
54292         NULL-means-set-to-current-time semantics.
54293         Remove temporary file immediately, rather than waiting
54294         for configure's at-exit trap code to do it.
54295
54296 2005-01-18  Jim Meyering  <jim@meyering.net>
54297
54298         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54299
54300         * lib/utimens.c (futimens): Account for the fact that futimes
54301         can also fail with errno == ENOSYS or errno == ENOENT.
54302         Patch from Dmitry V. Levin.
54303
54304         Change the name of the robust chdir function from chdir to chdir_long.
54305         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
54306         (restore_cwd): Use chdir_long, not chdir.
54307         * lib/chdir-long.c: Renamed from chdir.c.
54308         * lib/chdir-long.h: Renamed from chdir.h.
54309         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
54310         Hurd.
54311
54312 2005-01-18  Bruno Haible  <bruno@clisp.org>
54313
54314         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54315         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54316         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54317         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54318         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54319         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54320         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54321         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54322         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54323         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54324         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54325         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54326         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54327         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54328         Use an all-permissive copyright notice, recommended by RMS.
54329
54330 2005-01-18  Bob Proulx  <bob@proulx.com>
54331
54332         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54333         simplify offsetof() macro construct to avoid compile failure with
54334         native HP-UX 11.0 ANSI C compiler.
54335
54336 2005-01-17  Bruno Haible  <bruno@clisp.org>
54337
54338         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54339         redundant because stpncpy.m4 takes care of it.
54340
54341 2005-01-17  Bruno Haible  <bruno@clisp.org>
54342
54343         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54344
54345 2005-01-17  Bruno Haible  <bruno@clisp.org>
54346
54347         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54348         used.
54349
54350 2005-01-17  Bruno Haible  <bruno@clisp.org>
54351
54352         * lib/fwriteerror.h (fwriteerror): Change specification to include
54353         fclose.
54354         * lib/fwriteerror.c: Include <stdbool.h>.
54355         (fwriteerror): At the end, close the file stream. Record whether
54356         stdout was already closed.
54357
54358 2005-01-17  Bruno Haible  <bruno@clisp.org>
54359
54360         * lib/execute.c (environ): Declare if needed.
54361         * lib/pipe.c (environ): Likewise.
54362         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54363
54364 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54365
54366         * modules/argp: Depend on vsnprintf
54367
54368 2005-01-10  Jim Meyering  <jim@meyering.net>
54369
54370         * modules/closeout (Depends-on): Add atexit.
54371
54372 2005-01-06  Bruno Haible  <bruno@clisp.org>
54373
54374         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54375
54376 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54377
54378         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54379         definitions to be after all include files, to avoid collisions.
54380         Problem reported by Bob Proulx.
54381
54382 2005-01-04  Jim Meyering  <jim@meyering.net>
54383
54384         Changes imported from coreutils.
54385         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54386         as the mkstemp template, use a temporary directory and an
54387         8.3-friendly template to avoid trouble on systems like DJGPP.
54388         Reported by Juan M. Guerrero via Stepan Kasal.
54389         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54390         close. Remove the temporary directory right away, rather than waiting
54391         for configure's at-exit trap code to do it.
54392         Suggestion from Stepan Kasal.
54393
54394 2005-01-01  Simon Josefsson  <jas@extundo.com>
54395
54396         * gnulib-tool: Print #include directives when --import'ing.
54397
54398 2004-12-28  Simon Josefsson  <jas@extundo.com>
54399
54400         * tests/test-base64.c: Include required header files.  Remove
54401         unused variables.
54402
54403 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54404
54405         * modules/error (Depends-on): Remove gettext.
54406
54407 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54408
54409         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54410         not needed.  This removes a dependency on the gettext module.
54411         [defined _LIBC]: Do not include <libintl.h>; not needed.
54412
54413 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54414
54415         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54416         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54417
54418 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54421         HAVE_DECL_STRTOLD.
54422
54423 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54424
54425         * modules/getdate (Depends-on): Remove alloca-opt.
54426
54427 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54428
54429         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54430
54431 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54432
54433         * lib/argp-parse.c: Include <stddef.h>.
54434         (alignof, alignto): New macros.
54435         (parser_init): Don't assume that void * is aligned sufficiently
54436         for struct option.
54437
54438         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54439         need to extend the stack.
54440         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54441         large.
54442
54443 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54444
54445         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54446
54447 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54448
54449         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54450         (2004-10-24) change.  Apparently this was a false alarm.
54451
54452         * modules/getdate: Depend on alloca-opt, not alloca.
54453
54454 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54455
54456         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54457         Remove now-obsolete comment about AIX.
54458         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54459         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54460         (YYMAXDEPTH): New macro.
54461
54462 2004-12-18  Simon Josefsson  <jas@extundo.com>
54463
54464         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54465
54466 2004-12-18  Bruno Haible  <bruno@clisp.org>
54467
54468         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54469
54470 2004-12-18  Bruno Haible  <bruno@clisp.org>
54471
54472         * lib/fatal-signal.c (fatal_signals): Make non-const.
54473         (init_fatal_signals): New function.
54474         (uninstall_handlers, install_handlers): Ignore signals that were set to
54475         SIG_IGN.
54476         (at_fatal_signal): Call init_fatal_signals.
54477         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54478         SIG_IGN.
54479         Reported by Paul Eggert.
54480
54481 2004-12-18  Bruno Haible  <bruno@clisp.org>
54482
54483         * doc/alloca.texi: New file.
54484         * doc/alloca-opt.texi: New file.
54485
54486 2004-12-17  Jim Meyering  <jim@meyering.net>
54487
54488         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54489         Otherwise, install-sh could exit with improper exit status when
54490         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54491
54492 2004-12-16  Simon Josefsson  <jas@extundo.com>
54493
54494         * tests/test-base64.c: Add license.
54495
54496 2004-12-15  Stepan Kasal  <address@hidden>
54497
54498         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54499
54500 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54501
54502         * modules/getcwd (Files): Add m4/d-ino.m4.
54503         Suggested by Mark D. Baushke.
54504
54505 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54506
54507         * lib/getdate.y (textint): New member "negative".
54508         (time_zone_hhmm): New function.
54509         Expect 14 shift-reduce conflicts, not 13.
54510         (o_colon_minutes): New rule.
54511         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54512         (yylex): Set the "negative" member of signed numbers.
54513
54514 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54515
54516         * doc/getdate.texi (Time of day items, Time zone items):
54517         Describe new formats +00:00, UTC+00:00.
54518
54519 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54520
54521         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54522         spurious "-l"s.  Problem reported by Stepan Kasal.
54523
54524 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54525
54526         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54527         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54528
54529 2004-12-04  Simon Josefsson  <jas@extundo.com>
54530
54531         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54532         Vandoorselaere <yoann@prelude-ids.org>.
54533
54534 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54535
54536         Changes imported from coreutils.
54537         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54538         exist.
54539         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54540
54541 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54542
54543         Changes imported from coreutils.
54544         * lib/hard-locale.c: Assume <locale.h> exists.
54545         Include "strdup.h".
54546         (GLIBC_VERSION): New macro.
54547         (hard_locale): Assume setlocale exists.
54548         Rewrite to avoid #ifdef.
54549         Use strdup rather than malloc + strcpy.
54550         * lib/human.c: Assume <locale.h> exists.
54551         (human_readable): Assume localeconv exists.
54552
54553 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54554
54555         * modules/hard-locale (Depends-on): Add strdup.
54556
54557 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54558
54559         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54560         convert T2, not T.  (Imported from libc.)
54561
54562 2004-11-30  Simon Josefsson  <jas@extundo.com>
54563
54564         * modules/restrict (License): Change to LGPL.
54565
54566 2004-11-30  Simon Josefsson  <jas@extundo.com>
54567
54568         * m4/restrict.m4: Add copyright and copying conditions.
54569
54570 2004-11-30  Simon Josefsson  <jas@extundo.com>
54571
54572         * m4/base64.m4: New file.
54573
54574 2004-11-30  Simon Josefsson  <jas@extundo.com>
54575
54576         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54577         base64.
54578
54579         * tests/test-base64.c: New file.
54580
54581         * modules/base64: New file.
54582
54583 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54584
54585         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54586         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54587
54588         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54589
54590 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54591
54592         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54593         (__getcwd.c): Don't restore errno; glibc doesn't.
54594         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54595         first, falling back to our code only if its results look suspicious.
54596         Ensure that the resulting buffer is only as large as necessary.
54597
54598         * lib/readutmp.c: Include readutmp.h first.
54599         Include <errno.h>, since readutmp.h no longer does that.
54600         * lib/readutmp.h: Don't include <errno.h>,
54601         <sys/param.h>, <time.h>; not needed to establish interface.
54602         (errno): Remove decl.
54603         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54604         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54605         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54606
54607 2004-11-28  Simon Josefsson  <jas@extundo.com>
54608
54609         * lib/base64.h, base64.c: New file.
54610
54611 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54612
54613         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54614
54615 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54616
54617         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54618         (Depends-on): Remove pathmax, same.  Add mempcpy.
54619         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54620         (Makefile.am): Append getcwd.h to lib_SOURCES.
54621         (Include): Add getcwd.h.
54622         (Maintainer): Change from Jim Meyering to "all, glibc",
54623         since getdate now uses intended-for-glibc code.
54624         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54625         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54626
54627 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54628
54629         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54630         HP's ANSI C compiler.
54631         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54632         Declaring int functions causes warnings on some modern systems and
54633         shouldn't be needed to compile on ancient ones.
54634         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54635         defined.
54636
54637         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54638         with the following changes.
54639         (__set_errno): Parenthesize properly.
54640         Include <stdbool.h>.
54641         (MIN, MAX, MATCHING_INO): New macros.
54642         (__getcwd): Define with prototype, not K&R form.
54643         Use heuristics to allocate default buffer on stack if possible.
54644         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54645         behavior, and to avoid the PATH_MAX limit when computing
54646         ../../../../...
54647         Use MATCHING_INO to compare inode number to file.
54648         Check for arithmetic overflow in size calculations.
54649         Fix bug in reallocation of dot array that caused getcwd to fail
54650         on directories nested deeper than 75.
54651         Be more careful about saving errno on error.
54652         Do not use realloc; use only free+malloc, as this is a bit
54653         more flexible and avoids a needless copy operation.
54654         Do not inspect st_dev and st_ino for symbolic links; POSIX
54655         doesn't specify the latter.
54656         Check for closedir errors.
54657         Avoid needless casts.
54658         Use "#ifdef weak_alias" around weak_alias, to be like other
54659         glibc code.
54660         The following changes to getcwd.c have effect only when used in
54661         gnulib; they have no effect inside glibc proper.
54662         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54663         as alloca isn't used.
54664         (alloca, __alloca): Likewise.
54665         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54666         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54667         unconditionally, as gnulib assumes C89 or better.
54668         Do not include <sys/param.h>.
54669         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54670         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54671         better.
54672         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54673         Include <dirent.h> in a way that is compatible with modern Autoconf.
54674         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54675         New macros, if not already defined.
54676         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54677         Use "_LIBC", not "defined _LIBC", for consistency.
54678         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54679         a mempcpy module.
54680         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54681         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54682         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54683         credit only to Jim Meyering and adjust the copyright dates.
54684         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54685         <stdlib.h>, <unistd.h>, "pathmax.h".
54686         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54687         (INITIAL_BUFFER_SIZE): Remove.
54688         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54689
54690 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54691
54692         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54693         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54694         Use the _ONCE methods, for efficiency.
54695         Check for fcntl.h.  In test program, include <errno.h>
54696         and <fcntl.h> if available.  Remove old K&R cruft from
54697         test program.  Check for common errors in GNU/Linux,
54698         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54699         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54700         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54701         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54702         name accordingly.
54703         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54704         accommodate new getcwd.c.
54705         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54706         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54707         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54708         that's all we need now.
54709
54710 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54711
54712         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54713         argp-parse.c depends on getopt internals, that means we should
54714         always use our getopt, to be on the safe side.
54715         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54716         order not to spoil the result of an eventual previous invocation
54717         of gl_GETOPT_SUBSTITUTE.
54718
54719 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54720
54721         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54722         redefinition warnings. To avoid them, include the defines
54723         in `#if !defined __need_getopt ... #endif'. The only place
54724         where __getopt_argv_const is used is in definitions
54725         of getopt_long and getopt_long_only below, which are as well
54726         protected by `#ifndef __need_getopt'.
54727         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54728         __need_getopt after including <stdio.h> and <unistd.h> These
54729         headers might have defined it.
54730
54731 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54732
54733         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54734
54735 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54736
54737         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54738         (futimens): New function, which uses futimes if available.
54739         (futimens, utimens): Support timespec==NULL, with same semantics
54740         as utime and utimens.
54741         * lib/utimens.h (futimens): New decl.
54742
54743 2004-11-23  Jim Meyering  <jim@meyering.net>
54744
54745         * lib/getopt_.h: Remove trailing blanks.
54746
54747 2004-11-23  Jim Meyering  <jim@meyering.net>
54748
54749         * lib/__fpending.c: Add comment.
54750
54751 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54752
54753         * modules/canonicalize (Depends-on): Add xreadlink.
54754         Problem reported by James Youngman.
54755
54756 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54757
54758         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54759         New macros.
54760         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54761         optopt): Use them instead of invoking ## directly; otherwise, the
54762         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54763
54764 2004-11-19  Bruno Haible  <bruno@clisp.org>
54765
54766         * lib/strtok_r.c: Move comments from here...
54767         * lib/strtok_r.h: ... to here.
54768
54769 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54770
54771         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54772         implementations that mishandle size_t overflow.
54773
54774 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54775
54776         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54777         might fail.  Problem reported by Yoann Vandoorselaere.
54778         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54779         implementations that mishandle size_t overflow.
54780
54781 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54782
54783         * modules/canon-host (Depends-on): Add strdup.
54784
54785 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54786
54787         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54788
54789 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54790
54791         * lib/canon-host.c: Include "strdup.h".
54792         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54793         Use strdup instead of malloc/strcpy to duplicate strings.
54794
54795         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54796         (human_space_before_unit): New constant.
54797         * lib/human.c (human_readable): Support it.
54798
54799         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54800         (xgetcwd): Set errno correctly when failing.
54801         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54802         the failure is actually due to a PATH_MAX problem.
54803
54804         Further getopt changes to make it more likely that glibc will
54805         buy the changes back.
54806         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54807         (getopt): Use it, so to preserve glibc semantic
54808         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54809         when compiling for libc.
54810         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54811         (getopt_long, getopt_long_only): Use it.
54812
54813         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54814         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54815         (getopt): Argv is now char * const *, as per standard.
54816         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54817         not char *__getopt_argv_const *.
54818         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54819         _getopt_long_only_r): Likewise.
54820         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54821         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54822         _getopt_long_r, _getopt_long_only_r): Likewise.
54823         * lib/getopt_.h (__getopt_argv_const): Remove.
54824         (getopt): Argv is now char * const *, as per standard.
54825
54826         * lib/getdate.y (tORDINAL): New token.
54827         (day, relunit): Allow it for relative times.
54828         (relative_time_table): Use tORDINAL for ordinals.
54829
54830 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54831
54832         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54833         Document that "second" isn't allowed as an ordinal number.
54834
54835 2004-11-16  Jim Meyering  <jim@meyering.net>
54836
54837         * modules/closeout (Depends-on): Add fpending.
54838
54839 2004-11-15  Jim Meyering  <jim@meyering.net>
54840
54841         * lib/closeout.c: Include "__fpending.h" once again.
54842         Include <stdbool.h>.
54843         (close_stdout): Don't fail just because stdout was closed initially,
54844         since some programs don't write to stdout in the normal course of
54845         operation (other than --version and --help), and we don't want this
54846         function to make e.g. `touch file >&-' fail.
54847         But do fail if it was closed and someone has tried to write to it.
54848         E.g., `printf foo >&-' must fail.
54849
54850 2004-11-13  Jim Meyering  <jim@meyering.net>
54851
54852         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54853
54854 2004-11-12  Simon Josefsson  <jas@extundo.com>
54855
54856         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54857         small doc fix is still pending.
54858
54859 2004-11-11  Simon Josefsson  <jas@extundo.com>
54860
54861         * modules/strtok_r: New file.
54862
54863         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54864         strtok_r.
54865
54866 2004-11-11  Simon Josefsson  <jas@extundo.com>
54867
54868         * m4/strtok_r.m4: New file.
54869
54870         * m4/getopt.m4: Replace opterr.
54871
54872 2004-11-11  Simon Josefsson  <jas@extundo.com>
54873
54874         * lib/strtok_r.h, strtok_r.c: New file.
54875
54876 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54877
54878         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54879         of replacing opterr, getopt, etc.  This should handle the
54880         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54881
54882 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54883
54884         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54885         we can stop lying to compilers about the constness of argv when we
54886         are compiled outside glibc.
54887         (getopt, getopt_long, getopt_long_only): Use it.
54888         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54889         _getopt_internal, getopt): Likewise.
54890         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54891         _getopt_long_only_r): Likewise.
54892         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54893         _getopt_long_r, _getopt_long_only_r): Likewise.
54894
54895         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54896         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54897         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54898         the other external symbols.
54899         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54900         declaration, since the above renaming now works around collisions.
54901
54902 2004-11-11  Jim Meyering  <jim@meyering.net>
54903
54904         * lib/linebreak.c: Remove trailing blanks.
54905         * lib/alloca_.h: Likewise.
54906         * lib/acosl.c: Likewise.
54907         * lib/euidaccess.c: Likewise.
54908         * lib/allocsa.h: Likewise.
54909
54910 2004-11-10  Simon Josefsson  <jas@extundo.com>
54911
54912         * m4/getaddrinfo.m4: New file.
54913
54914 2004-11-10  Simon Josefsson  <jas@extundo.com>
54915
54916         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54917
54918 2004-11-10  Simon Josefsson  <jas@extundo.com>
54919
54920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54921         getaddrinfo.
54922
54923         * modules/getaddrinfo: New file.
54924
54925 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54926
54927         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54928
54929 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54930
54931         * lib/mktime.c (SHR): New macro, which is a portable
54932         substitute for >> that should work even on Crays.
54933         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54934         Problem reported by Mark D. Baushke in
54935         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54936         * lib/getdate.y (SHR): Likewise.
54937         (tm_diff): Use it.
54938         * lib/strftime.c (SHR): Likewise.
54939         (tm_diff): Use it.
54940         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54941         quote_these_too, so that right shifts are well defined.  All uses
54942         changed.
54943
54944 2004-11-10  Jim Meyering  <jim@meyering.net>
54945
54946         Ensure that no close failure goes unreported.
54947         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54948         return early when it seems there's nothing to flush.
54949         Don't include __fpending.h.
54950
54951 2004-11-10  Jim Meyering  <jim@meyering.net>
54952
54953         * modules/closeout (Depends-on): Remove fpending.
54954
54955 2004-11-10  Jim Meyering  <jim@meyering.net>
54956
54957         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54958
54959 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54960
54961         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54962         gl_FUNC_STRFTIME.
54963         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54964         and AC_REQUIRE when possible, to avoid duplicate checks.
54965         Check for <wchar.h>.
54966
54967 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54968
54969         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54970
54971 2004-11-09  Bruno Haible  <bruno@clisp.org>
54972
54973         * m4/sockpfaf.m4: New file.
54974
54975 2004-11-05  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54978         Reported by Mark D. Baushke <mdb@cvshome.org>.
54979
54980 2004-11-04  Bruno Haible  <bruno@clisp.org>
54981
54982         2004-09-11  Bruno Haible  <bruno@clisp.org>
54983                 * allocsa.valgrind: New file.
54984         2004-02-06  Bruno Haible  <bruno@clisp.org>
54985                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54986                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54987                 Reported by Christopher Seip <chris.seip@hp.com>.
54988
54989 2004-11-04  Bruno Haible  <bruno@clisp.org>
54990
54991         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54992         (Makefile.am): Distribute it.
54993
54994 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54995
54996         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54997         with errno == ERANGE if the buffer is too small.
54998         Problem reported by Mark D. Baushke.
54999
55000 2004-11-03  Albert Chin  <china@thewrittenword.com>
55001             Paul Eggert  <eggert@cs.ucla.edu>
55002
55003         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
55004         equivalent, substitute $ac_type for equivalent type rather than
55005         blindly using uint32_t *always* which won't work if uint32_t is not
55006         available.  Define _UINT32_T to work around typedef of uint32_t if
55007         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
55008         2.5.1.
55009
55010 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55011
55012         * m4/jm-macros.m4: Sync from coreutils.
55013         (gl_MACROS): Check for mbrlen, for pathchk.
55014         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
55015
55016 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55017
55018         * lib/xreadlink.c (MAXSIZE): New macro.
55019         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
55020         size does not exceed MAXSIZE.  Avoid cast.
55021         As suggested by Mark D. Baushke in
55022         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
55023         if readlink fails with buffer size just under MAXSIZE, try again
55024         with MAXSIZE.
55025
55026 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
55027
55028         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
55029
55030 2004-11-02  Derek R. Price  <derek@ximbiot.com>
55031         and  Paul Eggert  <eggert@cs.ucla.edu>
55032
55033         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
55034         (get_date): Overparenthesize to avoid GCC warning.
55035
55036 2004-11-02  Bruno Haible  <bruno@clisp.org>
55037
55038         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
55039         returns void.
55040
55041 2004-11-02  Bruno Haible  <bruno@clisp.org>
55042
55043         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
55044         function returns void.
55045
55046 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55047
55048         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
55049         fflush_unlocked, flockfile, funlockfile, funlockfile,
55050         fputs_unlocked, putc_unlocked.
55051
55052 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55053
55054         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55055         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
55056         already declared.
55057
55058 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55059
55060         * modules/getdate (Files): Add doc/getdate.texi.
55061         (Depends-on): Add setenv, xalloc.
55062
55063 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55064
55065         * lib/getdate.y: Add support for TZ="foo" within a date string.
55066         Fix some bugs near time_t boundaries.  Reject dates with
55067         out-of-range components, e.g., "Sept 31".
55068         Include <stdlib.h>, "setenv.h", "xalloc.h".
55069         (ISDIGIT_LOCALE): Remove; unused.
55070         Note that the TZ and time functions used here are not reentrant.
55071         (mktime_ok, get_tz): New functions.
55072         (TZBUFSIZE): New constant.
55073         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
55074         This requires that we sometimes generate our own TZ="XXX..." setting.
55075
55076 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55077
55078         * doc/getdate.texi: New file, from coreutils with modifications for
55079         the new TZ parsing.
55080
55081 2004-10-27  Derek R. Price  <derek@ximbiot.com>
55082
55083         * lib/mktime.c (not_equal_tm): Remove redundant check.
55084
55085 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55086
55087         * modules/regex (lib_SOURCES): Add regex.c.
55088         Reported by James Youngman in
55089         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
55090
55091 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55092
55093         * lib/getdate.y: Use Bison 1.875 features, and some minor
55094         code cleanups.  This change does not affect semantics.
55095         Don't include <stdlib.h>; no longer needed.
55096         Don't include unlocked-io.h; only the "#if TEST" code uses
55097         stdio, and performance isn't crucial there.
55098         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
55099         Bison 1.875 features as described below.
55100         All uses of "PC." replaced by "pc->".
55101         (YYSTYPE): Add a forward declaration.
55102         (yylex, yyerror): Use full prototypes in forward decls.
55103         Use "%pure-parser" rather than obsolescent "%pure_parser".
55104         Use %parse-param and %lex-param instead of obsolescent
55105         YYPARSE_PARAM and YYLEX_PARAM.
55106         (meridian_table, month_and_day_table, time_units_table,
55107         relative_time_table, time_zone_table, military_table,
55108         lookup_zone, lookup_word, get_date):
55109         Use NULL instead of 0 where appropriate.
55110         (to_hour): Avoid abort (), to avoid a dependency on
55111         stdlib.h.
55112         (yyerror, yylex): Now accepts parser_control * arg.
55113         (main) [TEST]: Use '\0' rather than 0 for char.
55114
55115 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55116
55117         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
55118
55119 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55120
55121         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
55122         It's now the caller's responsibility to handle the case where
55123         !HAVE_GETPAGESIZE && !defined getpagesize.
55124
55125         * lib/mktime.c (leapyear): Arg is long int, not int.
55126
55127 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
55128
55129         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
55130
55131 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55132
55133         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
55134         missing.  Problem reported by James Youngman.
55135
55136 2004-10-16  Simon Josefsson  <jas@extundo.com>
55137
55138         * gnulib-tool: Fix comments.  Fix parse problem.
55139         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
55140
55141 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
55142
55143         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
55144         implementation of getopt_long.  Problem reported by Alexander Taler in:
55145         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
55146
55147 2004-10-15  Bruno Haible  <bruno@clisp.org>
55148
55149         * gnulib-tool: Untabify. Initialize supplied_libname.
55150         (func_usage): More homogenous output.
55151         (func_modules_transitive_closure, func_modules_to_filelist,
55152         func_emit_lib_Makefile_am): New functions.
55153         (func_import): New function, extracted from big case statement. Use
55154         func_get_license, func_modules_transitive_closure,
55155         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
55156         opt_lgpl. Don't use test -a, as it's not portable.
55157         (func_create_testdir): Use func_modules_transitive_closure,
55158         func_modules_to_filelist, func_emit_lib_Makefile_am.
55159
55160 2004-10-15  Bruno Haible  <bruno@clisp.org>
55161
55162         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
55163
55164 2004-10-15  Bruno Haible  <bruno@clisp.org>
55165
55166         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
55167         the portions belonging to each module.
55168         Suggested by Derek Robert Price <derek@ximbiot.com>.
55169
55170 2004-10-12  Simon Josefsson  <jas@extundo.com>
55171
55172         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55173         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
55174         to real functions.
55175
55176 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55177
55178         * modules/vsnprintf: New file.
55179
55180 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55181
55182         * m4/vsnprintf.m4: New file.
55183
55184 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55185
55186         * lib/vsnprintf.h: New file.
55187         * lib/vsnprintf.c: New file.
55188
55189 2004-10-11  Bruno Haible  <bruno@clisp.org>
55190
55191         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
55192         vsnprintf.
55193
55194 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55195
55196         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
55197
55198 2004-10-07  Bruno Haible  <bruno@clisp.org>
55199
55200         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
55201         fits into the provided buffer.
55202
55203 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55204
55205         * lib/diacrit.c, diacrit.h: Add GPL notice.
55206
55207         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
55208         notice.
55209         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
55210         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
55211         This avoids a potential constant-folding bug.
55212
55213 2004-10-05  Bruno Haible  <bruno@clisp.org>
55214
55215         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
55216         for the declaration of strsep.
55217
55218 2004-10-05  Bruno Haible  <bruno@clisp.org>
55219
55220         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
55221
55222 2004-10-04  Simon Josefsson  <jas@extundo.com>
55223
55224         * modules/memmem: New file.
55225         * tests/test-memmem.c: New file.
55226         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
55227
55228 2004-10-04  Simon Josefsson  <jas@extundo.com>
55229
55230         * m4/memmem.m4: New file.
55231
55232 2004-10-04  Simon Josefsson  <jas@extundo.com>
55233
55234         * lib/memmem.h: New file.
55235         * lib/memmem.c: New file, taken from glibc.
55236
55237 2004-10-04  Simon Josefsson  <jas@extundo.com>
55238
55239         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
55240         '#ifdef USE_UNLOCKED_IO'.
55241
55242 2004-10-04  Simon Josefsson  <jas@extundo.com>
55243
55244         * config/srclist.txt: Add memmem from glibc.
55245
55246 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55247
55248         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
55249
55250         * modules/argmatch, modules/argp, modules/closeout, modules/error,
55251         modules/exclude, modules/getdate, modules/getline,
55252         modules/getndelim2, modules/getpass, modules/getpass-gnu,
55253         modules/getusershell, modules/linebuffer, modules/md5,
55254         modules/mountlist, modules/posixtm, modules/readtokens,
55255         modules/readutmp, modules/regex, modules/sha1,
55256         modules/version-etc, modules/yesno:
55257         Remove dependency on unlocked-io.
55258
55259 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55260
55261         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
55262
55263         * m4/unlocked-io.m4: Add copyright notice.
55264         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
55265
55266 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55267
55268         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
55269         * lib/xmalloc.c (xmemdup): Likewise.
55270         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
55271         XFREE): Remove these long-obsolescent macros.
55272         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
55273         * lib/xstrdup.c: Remove.
55274
55275         * lib/regex.c (re_comp): Cast gettext return value to char *,
55276         Problem reported by Martin Neitzel via Mark D. Baushke.
55277
55278 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55279
55280         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
55281         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
55282         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
55283         regex.c, sha1.c, version-etc.c, yesno.c:
55284         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
55285         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
55286         the includer's responsibility.
55287
55288         Sync from coreutils.
55289
55290         * lib/modechange.c (mode_compile): Don't decrement a pointer that
55291         points to the start of a string, as the C Standard says the
55292         resulting behavior is undefined.
55293
55294         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
55295         simple -> simple_backups, numbered_existing ->
55296         numbered_existing_backups, numbered -> numbered_backups
55297         to avoid shadowing problems.  All uses changed.
55298         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
55299         * lib/backupfile.c (check_extension, numbered_backup):
55300         Rename locals to avoid shadowing 'basename'.
55301         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
55302         once.
55303
55304         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
55305         * lib/.cvsignore: Add getopt.h.
55306
55307 2004-10-04  Bruno Haible  <bruno@clisp.org>
55308
55309         * modules/README: New file.
55310         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
55311         not a module.
55312
55313 2004-10-02  Jim Meyering  <jim@meyering.net>
55314
55315         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55316
55317 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55318
55319         * modules/strsep: New file.
55320
55321 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55322
55323         * m4/strsep.m4: New file.
55324
55325 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55326
55327         * lib/strsep.h: New file.
55328         * lib/strsep.c: New file.
55329
55330 2004-10-01  Simon Josefsson  <jas@extundo.com>
55331
55332         * lib/snprintf.c (snprintf): Handle size==0.
55333
55334 2004-10-01  Simon Josefsson  <jas@extundo.com>
55335             Bruno Haible  <bruno@clisp.org>
55336
55337         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55338         (snprintf): Declare 'args'.
55339
55340 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55341
55342         * lib/snprintf.c: Remove comments as to why each header is needed.
55343
55344 2004-10-01  Bruno Haible  <bruno@clisp.org>
55345
55346         * MODULES.html.sh: Add strsep.
55347
55348 2004-09-30  Simon Josefsson  <jas@extundo.com>
55349
55350         * modules/snprintf: New file.
55351
55352 2004-09-30  Simon Josefsson  <jas@extundo.com>
55353
55354         * m4/snprintf.m4: New file.
55355
55356 2004-09-30  Simon Josefsson  <jas@extundo.com>
55357
55358         * lib/snprintf.h, lib/snprintf.c: New files.
55359
55360 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55361
55362         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55363         (hol_entry_help): Never translate an empty string.
55364         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55365         * lib/argp.h (OPTION_NO_TRANS): New option.
55366
55367 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55368
55369         * modules/argp (Maintainer): Replace Simon Josefsson
55370         by Sergey Poznyakoff.
55371
55372 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55373
55374         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55375         changes merged back into glibc.
55376
55377 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55378
55379         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55380
55381 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55382
55383         * lib/xvasprintf.c: Include xalloc.h.
55384         (xvasprintf): Use xalloc_die, not xmalloc_die.
55385
55386 2004-09-29  Bruno Haible  <bruno@clisp.org>
55387
55388         * modules/alloca-opt: New file, derived from modules/alloca.
55389         * modules/allocsa: Depend on alloca-opt instead of alloca.
55390         * modules/setenv: Likewise.
55391         * modules/vasnprintf: Likewise.
55392         * MODULES.html.sh: Add alloca-opt.
55393
55394 2004-09-28  Simon Josefsson  <jas@extundo.com>
55395
55396         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55397         LGPL, and to replace license template from GPL to LGPL.
55398
55399 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55400
55401         * modules/dummy: Change license to LGPL.
55402
55403 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55404
55405         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55406
55407 2004-09-24  Simon Josefsson  <jas@extundo.com>
55408
55409         * modules/minmax (License): Change from GPL to LGPL.
55410
55411 2004-09-23  Simon Josefsson  <jas@extundo.com>
55412
55413         * gnulib-tool (--import): Typo.
55414
55415 2004-09-23  Simon Josefsson  <jas@extundo.com>
55416
55417         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55418
55419 2004-09-22  Bruno Haible  <bruno@clisp.org>
55420
55421         * modules/*: Add 'License' field.
55422         * gnulib-tool: Accept --extract-license option.
55423         (func_get_license): New function.
55424
55425 2004-09-21  Bruno Haible  <bruno@clisp.org>
55426
55427         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55428         Reported by Simon Josefsson.
55429
55430 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55431
55432         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55433         gl_AC_TYPE_LONG_LONG.
55434
55435 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55436
55437         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55438
55439 2004-09-18  Simon Josefsson  <jas@extundo.com>
55440         and  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55443         calls with autoreconf.  Define GL_LIB.
55444
55445 2004-09-14  Karl Berry  <karl@gnu.org>
55446
55447         * config/srclist.txt: unsync setenv.c, sigh.
55448
55449 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55450
55451         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55452         Problem reported by Bruno Haible in:
55453         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55454
55455 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55456
55457         * config/srclist.txt: Comment out argp-pvh.c.
55458
55459 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55460
55461         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55462         in case some system header has #define'd it.  Problem reported by
55463         Soeren D. Schulze in
55464         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55465
55466 2004-09-09  Karl Berry  <karl@gnu.org>
55467
55468         * regex.[ch]: delete from the root.  These were supposed to be
55469                 synced with emacs cvs, but this has not happened for about
55470                 a year, and anyway nothing else uses emacs regex.[ch].
55471                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55472                 lib/regex[.ch] is untouched.
55473
55474 2004-09-09  Bruno Haible  <bruno@clisp.org>
55475
55476         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55477
55478 2004-09-09  Bruno Haible  <bruno@clisp.org>
55479
55480         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55481         modifications.
55482         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55483
55484 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55485
55486         * modules/xvasprintf: New file.
55487         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55488
55489 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55490
55491         * lib/xvasprintf.h: New file.
55492         * lib/xvasprintf.c: New file.
55493         * lib/xasprintf.c: New file.
55494
55495 2004-09-08  Bruno Haible  <bruno@clisp.org>
55496
55497         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55498
55499 2004-09-08  Bruno Haible  <bruno@clisp.org>
55500
55501         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55502         length is > INT_MAX.
55503         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55504         more.
55505
55506 2004-09-08  Bruno Haible  <bruno@clisp.org>
55507
55508         * lib/stdint_.h: New file, taken from GNU clisp.
55509
55510 2004-09-08  Bruno Haible  <bruno@clisp.org>
55511             Oskar Liljeblad  <oskar@osk.mine.nu>
55512
55513         * modules/stdint: New file.
55514         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55515
55516 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55517
55518         Import from coreutils.
55519         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55520         strings on unbounded length.  alloca's performance benefits aren't
55521         that important here.
55522         (V_STRDUP): Remove.
55523         (parse_with_separator): New function, with most of the internals
55524         of the old parse_user_spec.  Allow user to omit both user and group,
55525         for compatibility with FreeBSD.
55526         Clone only the user name, not the entire spec.
55527         Do not set *uid, *gid unless entirely successful.
55528         Avoid memory leak in some failing cases.
55529         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55530         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55531         (parse_user_spec): Rewrite to use parse_with_separator.
55532
55533 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55534
55535         * modules/userspec: Don't depend on alloca.
55536
55537 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55538
55539         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55540
55541 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55542
55543         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55544         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55545         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55546
55547 2004-08-16  Simon Josefsson  <jas@extundo.com>
55548
55549         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55550         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55551         Add --dry-run for --import.
55552         Let user provided command line parameters override configure.ac
55553         settings.
55554
55555 2004-08-12  Simon Josefsson  <jas@extundo.com>
55556
55557         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55558         as discussed with Paul Eggert in threads rooted at
55559         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55560         and
55561         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55562         Before, the test was empty, and relied on ELIDE_CODE in source
55563         code.)
55564         (gl_PREREQ_GETOPT): New macro.
55565         (gl_GETOPT): Use them.
55566
55567 2004-08-12  Simon Josefsson  <jas@extundo.com>
55568
55569         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55570         * lib/getopt_.h: Renamed from getopt.h.
55571
55572 2004-08-12  Simon Josefsson  <jas@extundo.com>
55573
55574         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55575         Change default library name from libfoo to libgnu.
55576         Now, if you have a configure.ac that says:
55577                 gl_SOURCE_BASE(gl)
55578                 gl_M4_BASE(gl/m4)
55579                 gl_MODULES(error getopt etcetera)
55580                 gl_INIT
55581         you can import all you need by running:
55582                 ../gnulib/gnulib-tool --import
55583
55584         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55585         (Makefile.am): Rewrite, use logic from argz.
55586         (Include): Use <getopt.h> instead of "getopt.h".
55587
55588 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55589
55590         * modules/argp (Files): Add m4/unlocked-io.m4.
55591         (Depends-on): Add extensions.
55592
55593 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55596         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55597         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55598         Check for program_invocation_name, program_invocation_short_name,
55599         flockfile, funlockfile, features.h, _getopt_long_only_r.
55600
55601 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55602
55603         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55604         its complicated substitute.
55605         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55606         and program_invocation_name.
55607         (__argp_basename) [!_LIBC]: Remove; the only use was
55608         replaced by its body.
55609         (__argp_short_program_name): Change condition from
55610         !defined __argp_short_program_name to
55611         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55612         to match argp-namefrob.h.
55613         (__argp_failure): Don't assume strerror_r returns char *.
55614         * lib/argp-parse.c (N_): Define unconditionally.
55615         (argp_default_options): Fill out initializers with 0 to avoid
55616         gcc warnings.
55617
55618 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55619
55620         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55621         getopt1.c.
55622
55623 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55624
55625         Merge from coreutils.
55626
55627         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55628
55629         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55630         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55631
55632 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55633
55634         Merge from coreutils.
55635
55636         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55637         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55638         for Reliant Unix 5.43.
55639
55640         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55641         (union fooround): Use uintmax_t, not long int.
55642         The rest is a merge from libc:
55643         [defined _LIBC]: Include <shlib-compat.h>.
55644         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55645
55646         * lib/settime.c (settime): Recode to avoid warning with
55647         Sun Forte C 6U2.
55648
55649         * lib/strverscmp.c: Convert to UTF-8.
55650
55651 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55652
55653         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55654         m4/uintmax_t.m4.
55655
55656 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55657
55658         * modules/xalloc-die: New file.
55659         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55660
55661         * modules/md5 (Files): Add m4/uint32_t.m4.
55662         * modules/sha1: Renamed from modules/sha.
55663         (Files):
55664         Rename lib/sha.h to lib/sha1.h.
55665         Rename lib/sha.c to lib/sha1.c.
55666         Rename m4/sha.m4 to m4/sha1.m4.
55667         (lib_SOURCES): Likewise.
55668         (configure.ac): Rename gl_SHA to gl_SHA1.
55669         (Include): sha.h -> sha1.h.
55670
55671 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55672
55673         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55674         * m4/sha1.m4: Renamed from sha.m4.
55675         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55676
55677 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55678
55679         * lib/obstack.h (obstack_empty_p):
55680         Don't assume that chunk->contents is suitably aligned.
55681         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55682         Likewise. Problem reported by Benno in
55683         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55684
55685         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55686         readable.  This could be improved further but it'd take some work.
55687
55688 2004-08-08  Simon Josefsson  <jas@extundo.com>
55689
55690         * modules/xgethostname (Depends-on): Remove exit and error (not
55691         used).
55692
55693         * modules/getpass-gnu: Add getpass.h.
55694         (Depends-on): Add stdbool.
55695         * modules/getpass: Add getpass.h.
55696
55697 2004-08-08  Simon Josefsson  <jas@extundo.com>
55698
55699         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55700         Check getpass declaration.
55701
55702 2004-08-08  Simon Josefsson  <jas@extundo.com>
55703
55704         * lib/xgethostname.c: Don't include error.h (not used).
55705
55706         * lib/getpass.h: Add.
55707         * lib/getpass.c: Include getpass.h first.
55708
55709 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55710
55711         * lib/xalloc-die.c: New file.
55712         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55713         All uses removed.
55714         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55715         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55716         xalloc-die.c.
55717         (_, N_, xalloc_die): Move to xalloc-die.c.
55718         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55719         so that we needn't mess with xalloc_msg_memory_exhausted.
55720
55721         * lib/sha1.h: Renamed from sha.h.
55722         (SHA1_H): Renamed from _SHA_H.
55723         (sha1_ctx): Renamed from sha_ctx.
55724         (sha1_init_ctx): Renamed from sha_init_ctx.
55725         (sha1_process_block): Renamed from sha_process_block.
55726         (sha1_process_bytes): Renamed from sha_process_bytes.
55727         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55728         (sha1_read_ctx): Renamed from sha_read_ctx.
55729         (sha1_stream): Renamed from sha_stream.
55730         (sha1_buffer): Renamed from sha_buffer.
55731         * lib/sha1.c: Likewise; renamed from sha.c.
55732         Do not include <sys/types.h>.
55733         Include <stddef.h> rather than <stdlib.h>.
55734
55735 2004-08-08  Bruno Haible  <bruno@clisp.org>
55736
55737         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55738         FILESYSTEM_PREFIX_LEN.
55739         * lib/progreloc.c: Likewise.
55740         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55741
55742 2004-08-06  Simon Josefsson  <jas@extundo.com>
55743
55744         * modules/progname (Depends-on): Don't depend on stdbool.
55745
55746 2004-08-06  Simon Josefsson  <jas@extundo.com>
55747
55748         * modules/getsubopt: New file.
55749         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55750         getsubopt.
55751
55752 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55753
55754         More merge from coreutils.
55755
55756         * m4/utimens.m4, m4/utimecmp.m4: New files.
55757         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55758         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55759         prereq.m4, sha.m4: Import changes from coreutils.
55760
55761 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55762
55763         More merge from coreutils.
55764         * modules/raise, modules/readtokens0, modules/utimens:
55765         * modules/utimecmp, module/xnanosleep: New files.
55766         * modules/strftime: Add lib/strftime.h.
55767         Change include from <time.h> to "strftime.h".
55768         * modules/yesno: Add lib/yesno.h.
55769         * modules/backupfile: Remove lib/addext.c.
55770         * modules/euidaccess: Add stat-macros.h.
55771         * modules/canonicalize, modules/euidaccess,
55772         modules/filemode, modules/lchown, modules/makepath,
55773         modules/rmdir, modules/stat: Likewise.
55774
55775 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55776
55777         Merge from tar.
55778         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55779         SIZE_MAX is a valid preprocessor constant.
55780         (__argp_basename): Change from "#ifndef _LIBC"
55781         to "#ifndef __argp_short_program_name", so that
55782         we don't compile these functions for tar.
55783
55784         More merges from coreutils.
55785         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55786         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55787         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55788         * lib/addext.c: Remove; no longer needed.
55789         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55790         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55791         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55792         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55793         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55794         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55795         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55796         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55797         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55798         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55799         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55800         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55801         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55802         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55803         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55804         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55805         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55806         Import changes from coreutils.
55807
55808 2004-08-05  Simon Josefsson  <jas@extundo.com>
55809
55810         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55811
55812 2004-08-05  Simon Josefsson  <jas@extundo.com>
55813
55814         * m4/getsubopt.m4: New file.
55815
55816 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55817
55818         Merge from coreutils.
55819
55820         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55821         * m4/getcwd-path-max.m4: New files.
55822
55823         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55824         FILESYSTEM_PREFIX_LEN ->
55825         FILE_SYSTEM_PREFIX_LEN.
55826         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55827         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55828         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55829         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55830
55831         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55832         prerequisite modules now handle the DOS stuff.
55833         Don't check for unistd.h.
55834
55835 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55836
55837         Merge from coreutils.
55838
55839         * lib/.gdb-history: Remove; this doesn't belong here.
55840
55841         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55842         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55843         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55844         * lib/getcwd.c: New files.
55845
55846         * lib/dirname.h: Include <stdbool.h>.
55847         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55848         for consistency with POSIX terminology.  All uses changed.
55849         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55850         (strip_trailing_slashes): Use bool for booleans.
55851         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55852
55853         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55854         sometimes returns a positive errno value even when it succeeds.
55855         (print_errno_message) [!LIBC]: Fall back on strerror if
55856         __strerror_r fails.
55857
55858         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55859         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55860         (longest_relative_suffix): New function.
55861         (path_concat): Use it.  Assume first argument is not NULL.
55862         Port to DOS.  Omit redundant separators.
55863         Report an error instead of returning NULL.
55864         Use mempcpy instead of memcpy.
55865         (xpath_concat): Remove: not declared or used.
55866
55867         * lib/same.h: Include <stdbool.h>
55868         (same_name): Return bool, not int.
55869         * lib/same.c (same_name): Likewise.
55870         (errno): Don't declare; we assume C89 or better now.
55871
55872         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55873         if not already defined.
55874
55875         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55876         * lib/dup-safer.c (errno): Likewise.
55877
55878 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55879
55880         Merge from coreutils.
55881         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55882         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55883         * modules/path-concat: Don't depend on strdup.
55884
55885 2004-08-03  Simon Josefsson  <jas@extundo.com>
55886
55887         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55888         * lib/progname.h: Don't include stdbool.h.
55889
55890 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55891
55892         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55893         * MODULES.html.sh (func_all_modules): Remove fatal.
55894
55895 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55896
55897         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55898
55899 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55900
55901         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55902         working.
55903
55904 2004-08-02  Simon Josefsson  <jas@extundo.com>
55905
55906         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55907         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55908         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55909
55910 2004-08-01  Simon Josefsson  <jas@extundo.com>
55911
55912         * lib/xgetdomainname.c: Include stdlib.h, for free().
55913
55914 2004-07-19  Bruno Haible  <bruno@clisp.org>
55915
55916         * MODULES.html.sh (func_all_modules): Add dummy.
55917
55918 2004-07-16  Simon Josefsson  <jas@extundo.com>
55919
55920         * modules/dummy: New file.
55921
55922 2004-07-16  Simon Josefsson  <jas@extundo.com>
55923
55924         * lib/dummy.c: New file.
55925
55926 2004-07-16  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/backupfile.h: Add extern "C" for C++.
55929         * lib/closeout.h: Likewise.
55930         * lib/copy-file.h: Likewise.
55931         * lib/findprog.h: Likewise.
55932         * lib/full-write.h: Likewise.
55933         * lib/pathname.h: Likewise.
55934         * lib/progname.h: Likewise.
55935         * lib/stpcpy.h: Likewise.
55936         * lib/stpncpy.h: Likewise.
55937         * lib/strcase.h: Likewise.
55938         * lib/strstr.h: Likewise.
55939         * lib/xalloc.h: Likewise.
55940
55941         * lib/mbswidth.h: Add extern "C" for C++.
55942         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55943
55944 2004-07-13  Robert Millan  <robertmh@gnu.org>
55945
55946         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55947
55948 2004-07-09  Simon Josefsson  <jas@extundo.com>
55949
55950         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55951         failed without this.)
55952
55953 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55954
55955         * modules/chown (Files): Add lib/fchown-stub.c, since
55956         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55957
55958 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55959
55960         * lib/fchown-stub.c: New file.
55961
55962 2004-06-24  Jim Meyering  <jim@meyering.net>
55963
55964         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55965
55966 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55967
55968         * modules/argz: Omit "#include".
55969
55970         * MODULES.html.sh (func_all_modules): Add calloc, to match
55971         2004-06-01 addition of calloc module.
55972
55973 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55974
55975         * m4/argz.m4: New file, which is autoupdated from libtool.
55976
55977 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55978
55979         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55980         libtool.
55981
55982 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55983
55984         * config/srclist-update: Don't insist on "USA." before the
55985         close-comment, as libtool omits the period and puts the */ on a
55986         separate line.
55987         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55988         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55989
55990 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55991
55992         * modules/argz: New file.
55993         * MODULES.html.sh (func_all_modules): Add argz.
55994
55995 2004-06-12  Jim Meyering  <jim@meyering.net>
55996         and  Paul Eggert  <eggert@cs.ucla.edu>
55997
55998         * modules/hash (Files): Add lib/xalloc.h.
55999         * modules/pipe (Depends-on): Add wait-process.
56000         * modules/stat (Depends-on): Add xalloc.
56001         * modules/userspec (Files): Add lib/userspec.h.
56002         * modules/xstrto
56003
56004         Upgrade from gettext-0.13.
56005         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
56006         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
56007         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
56008
56009 2004-06-10  Jim Meyering  <jim@meyering.net>
56010
56011         * lib/calloc.c: New file.
56012
56013 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56014
56015         * lib/getdate.y (yylex): Allow space between sign and number.
56016         Problem reported by Dan Jacobson.
56017
56018 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
56019
56020         Merge from coreutils CVS.
56021
56022         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
56023         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
56024         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
56025         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
56026         xstrtol.m4: Fix copyright date and/or serial number.
56027
56028         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
56029         See if we need an fchown replacement.
56030         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
56031         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
56032         and use the replacement function if we detect either defect.
56033
56034         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
56035         gl_UTIMECMP.
56036
56037 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
56038         and  Jim Meyering  <jim@meyering.net>
56039
56040         Merge from coreutils CVS.
56041
56042         * lib/stat-macros.h: New file, with contents from file-type.h
56043         and coreutils' system.h.
56044         * lib/file-type.c: Include "stat-macros.h".
56045         * lib/file-type.h (file_type): Move all macro definitions to new file,
56046         stat-macros.h.
56047
56048         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
56049         Wrap old code with this conditional.
56050         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
56051         function that does not dereference symlinks.
56052         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
56053
56054         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
56055         dependency problems.
56056         (xreadlink): Accept new arg SIZE, for efficiency.
56057         All decls and uses changed.
56058         * lib/xreadlink.h: Include <stddef.h>, for size_t.
56059
56060         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
56061         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
56062
56063         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
56064         sysexits.h.
56065
56066 2004-06-01  Jim Meyering  <jim@meyering.net>
56067
56068         * m4/calloc.m4: New file.
56069
56070 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
56071
56072         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
56073         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
56074         Also, fix a typo in a diagnostic.
56075
56076 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
56077
56078         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
56079         or AC_FUNC_REALLOC.
56080
56081 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
56082
56083         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
56084         macros to be defined.
56085         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
56086         the allocator returns NULL because the requested size is zero.
56087
56088 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
56089
56090         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
56091         var.  Add comment explaining why libc still defines it.  This
56092         merges the following patch from glibc:
56093         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
56094
56095 2004-05-20  Andreas Schwab  <schwab@suse.de>
56096
56097         * m4/free.m4: Replace free if it not known to work, not the other
56098         way round.
56099
56100 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
56103         present in glibc since revision 1.1 of this file.
56104         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
56105         obstack_alignment_mask, obstack_alloc, obstack_base,
56106         obstack_blank, obstack_blank_fast, obstack_chunk_size,
56107         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
56108         obstack_grow0, obstack_init, obstack_int_grow,
56109         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
56110         obstack_next_free, obstack_object_size, obstack_ptr_grow,
56111         obstack_ptr_grow_fast, obstack_room): Remove declarations of
56112         nonexistent functions.
56113
56114 2004-05-18  Karl Berry  <karl@gnu.org>
56115
56116         * config/srclist.txt: break link for vasnprintf.c.
56117
56118 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56119
56120         Port obstack to the AS/400, where pointers are 16 bytes wide and
56121         you cannot cast an integer to a valid pointer.  This patch is
56122         currently waiting to be integrated into glibc; see
56123         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
56124
56125         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
56126         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
56127         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
56128         (struct obstack): temp member is now a union of a pointer and
56129         an integer, instead of an integer.  All integer uses changed.
56130         This does not affect the physical layout of struct obstack,
56131         except on hosts (like the AS/400) where the size or alignment of
56132         void * is greater than that of ptrdiff_t.
56133         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
56134         __STDC__)]: Store temporary in pointer member of union, not
56135         integer member.
56136         * lib/obstack.c: Include <stddef.h>, for offsetof.
56137         (struct fooalign): Remove; it doesn't need a name.
56138         (union fooround): Change double to long double, and add void *.
56139         (DEFAULT_ALIGNMENT): Use offsetof to compute.
56140         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
56141         not a macro.  Hence the values are always int; so remove all
56142         casts-to-int in uses.
56143
56144 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56145
56146         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
56147         we can get this patch merged into glibc.
56148
56149 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56150             Paul Eggert  <eggert@cs.ucla.edu>
56151
56152         * m4/argp: Depend on alloca.
56153
56154 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56155             Paul Eggert  <eggert@cs.ucla.edu>
56156
56157         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
56158         freecoding.
56159
56160 2004-05-17  Bruno Haible  <bruno@clisp.org>
56161
56162         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
56163         precision that consists of a '.' followed by an empty digit string.
56164         Patch by Tor Lillqvist <tml@iki.fi>.
56165
56166 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56167
56168         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
56169         for backward compatibility with older code.  We need our own
56170         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
56171         it under some other name, and our alloca.h will define it.
56172
56173 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56174             Derek Price  <derek@ximbiot.com>
56175
56176         * lib/alloca.c: Include <alloca.h>, to get our interface.
56177         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
56178         include <alloca.h> first.  Use C89 prototype for alloca; this
56179         requires including <stddef.h> for size_t.  Use extern "C" if C++.
56180         Use #elif for simplicity, since we can assume C89 now.
56181         Don't try to source the system alloca.h since it will not be found
56182         and to prevent recursively including its replacement.
56183         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
56184         * lib/regex.c: Likewise.
56185
56186 2004-05-16  Derek Price  <derek@ximbiot.com>
56187             Paul Eggert  <eggert@cs.ucla.edu>
56188
56189         getline cleanup.  This changes the getndelim2 API: both order of
56190         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
56191         no delimiter).
56192
56193         * lib/getline.c: Don't include stddef.h or stdio.h, since our
56194         interface does that.
56195         (getline): Always use getdelim, so that we don't have two
56196         copies of this code.
56197         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
56198         if available.
56199         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
56200         (GETNDELIM2_MAXIMUM): New macro.
56201         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
56202         instead of the old practice of delim2==0.  All callers changed.
56203         Return -1 on overflow, instead of returning junk.
56204         Do not set *linesize unless allocation succeeds.
56205         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
56206         that we include sys/types.h.
56207         * lib/getnline.h: Likewise.
56208         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
56209         (getndelim2): Reorder arguments.
56210         * lib/getnline.c (getnline, getndelim):
56211         Don't discard the NMAX argument.
56212         (getnline): Invoke getndelim, to avoid code duplication.
56213         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
56214         of (size_t) -1 by callers of the getnline family.
56215
56216 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56217
56218         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
56219         Check for gettimeofday.
56220         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
56221         Check for settimeofday, stime.
56222
56223 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56224
56225         * lib/nanosleep.c (suspended): Change its type from int to
56226         sig_atomic_t volatile.
56227         (first_call): Make it private to rpl_nanosleep, and have it
56228         be zero initially as that's a bit faster.
56229         (my_usleep): Round up fractional times instead of truncating them,
56230         as this is the usual meaning for 'sleep'.
56231
56232         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
56233         doesn't work.
56234         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
56235         (ENOSYS): Define if not defined.
56236         (settime): Fall back on stime if it exists and settimeofday fails.
56237         But don't bother with fallbacks if a method fails with errno == EPERM.
56238
56239 2004-05-11  Jim Meyering  <jim@meyering.net>
56240
56241         Prior to this change, the save_cwd caller required read access to the
56242         current directory on most systems (ones with the fchdir function).
56243
56244         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
56245         fails, try write-only, and finally, resort to using xgetcwd.
56246
56247 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56248
56249         * lib/obstack.c, obstack.h: Import changes from libc.
56250
56251 2004-04-28  Bruno Haible  <bruno@clisp.org>
56252
56253         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
56254         also implicitly appends .exe to executables.
56255         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
56256         accepts Windows pathnames.
56257         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56258         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56259         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56260         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56261         Reported by Derek Robert Price <derek@ximbiot.com>.
56262
56263 2004-04-21  Karl Berry  <karl@gnu.org>
56264
56265         * config/srclist.txt (localcharset.c): break sync.
56266
56267 2004-04-20  Paul Eggert  <eggert@twinsun.com>
56268
56269         * m4/host-os.m4: Add a copyright notice.
56270
56271 2004-04-20  Jim Meyering  <jim@meyering.net>
56272
56273         Change UTILS_ to gl_ in AC_DEFINE'd names.
56274         Change utils_- and jm_-prefixed variables, too.
56275         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
56276         UTILS_FUNC_MKDIR_TRAILING_SLASH.
56277         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
56278
56279         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
56280         Don't emit trailing blanks.
56281         Also rename jm_-prefixed variables to have gl_ prefix.
56282
56283         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
56284         Also rename jm_-prefixed variables to have gl_ prefix.
56285
56286         * m4/jm-macros.m4: Reflect the renamings.
56287         * m4/prereq.m4: Likewise.
56288
56289 2004-04-20  Jim Meyering  <jim@meyering.net>
56290
56291         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
56292         memory.
56293
56294 2004-04-20  Jim Meyering  <jim@meyering.net>
56295             Bruno Haible  <bruno@clisp.org>
56296
56297         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
56298         memory when realloc fails.
56299
56300 2004-04-19  Jim Meyering  <jim@meyering.net>
56301
56302         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
56303         now that readutmp.c may call `free (0)'.
56304
56305 2004-04-19  Bruno Haible  <bruno@clisp.org>
56306
56307         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
56308         * m4/inttypes_h.m4: Likewise.
56309         * m4/stdint_h.m4: Likewise.
56310         * m4/intmax_t.m4: Likewise.
56311         * m4/uintmax_t.m4: Likewise.
56312
56313 2004-04-18  Jim Meyering  <jim@meyering.net>
56314
56315         * m4/prereq.m4: Don't forbid jm_ prefix.
56316
56317         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56318         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56319         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56320         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56321         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56322         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56323         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56324         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56325         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56326         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56327         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56328         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56329         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56330         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56331         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56332         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56333         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56334         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56335         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56336
56337 2004-04-18  Jim Meyering  <jim@meyering.net>
56338
56339         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56340         failure, don't leak memory and do call END_UTMP_ENT.
56341
56342 2004-04-16  Jim Meyering  <jim@meyering.net>
56343
56344         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56345         coreutils' stat program.
56346         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56347
56348 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56349
56350         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56351         C89.
56352         (CHAR_BIT): Remove, since we assume C89.
56353         Include <stdint.h> if available, as per current Autoconf CVS advice.
56354
56355 2004-03-31  Jim Meyering  <jim@meyering.net>
56356
56357         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56358         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56359         * m4/xalloc.m4: Likewise.
56360
56361 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56362
56363         Merge from coreutils.
56364
56365         * m4/inttostr.m4: New file.
56366         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56367         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56368         Require gl_CLOCK_TIME.
56369         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56370
56371 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56372
56373         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56374         not bool, to be more consistent with Unix conventions.
56375         Suggested by Bruno Haible.
56376
56377         Merge from coreutils.
56378
56379         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56380         * lib/umaxtostr.c: New files.
56381
56382         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56383         the usual <time.h> dance.
56384         (get_date): Change signature to support fractional time stamps.
56385         All callers changed.
56386         * lib/getdate.y: Include "getdate.h" first, as we can now
56387         assume C89 and don't need to worry about 'const'.
56388         Similarly, include "unlocked-io.h" near start, not in middle.
56389         Include <limits.h>.
56390         (textint.value): Use long int rather than int.
56391         (textint.digits): Use size_t rather than int.
56392         (BILLION, LOG10_BILLION): New constants.
56393         (parser_control): New member rel_ns.  Members day_ordinal,
56394         time_zone, month, day, hour, minutes, rel_year, rel_month,
56395         rel_day, rel_hour, rel_minutes, rel_seconds
56396         are now long int, not int.  Member seconds is now struct timespec,
56397         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56398         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56399         not int.
56400         (%union.intval): Now long int, not int.
56401         New member timespec.
56402         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56403         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56404         (spec): Now is a timespec or an item list.
56405         (timespec, items): New nonterminals.
56406         (time, rel, relunit, number, get_date):
56407         Add support for fractional seconds.
56408         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56409         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56410         (to_hour): First arg is now long int, not int.
56411         (to_year): Returns long int, not int.
56412         Don't treat year -70 like 70.
56413         (tm_diff): Returns long int, not int.
56414         (lookup_word): Use bool instead of int when appropriate.
56415         (yylex): Use size_t for count, not int.
56416         Detect overflow when parsing large integer constants.
56417         Add support for fractions.
56418         (get_date): Make pointers 'const' if possible.
56419         Use more-portable code to detect integer overflow.
56420         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56421         Don't use ctime; it's not reliable if the year has >4 digits.
56422
56423         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56424         This is for compatibility with BSD.
56425
56426         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56427         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56428         From coreutils' system.h.
56429
56430         * lib/userspec.c: Don't include "posixver.h".
56431         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56432         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56433         compatible extension.  Simplify code by removing a boolean int
56434         that was always nonzero if a string was nonnull.
56435
56436 2004-03-30  Jim Meyering  <jim@meyering.net>
56437
56438         Merge from coreutils.
56439
56440         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56441         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56442         on some systems one must include <grp.h> before it.
56443         Reported by Christian Krackowizer.
56444
56445 2004-03-30  Jim Meyering  <jim@meyering.net>
56446
56447         Merge from coreutils.
56448
56449         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56450
56451         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56452         an empty input stream.
56453
56454         * lib/readtokens.c: Include <stdbool.h>.
56455         (readtoken): Use `size_t' rather than int/long.
56456         All callers adjusted.
56457         Use `bool' rather than `int' where appropriate.
56458         Use memset rather than an explicit loop.
56459         Use x2nrealloc rather than xrealloc.
56460         Allow the use of `\0' as a delimiter.
56461         (readtokens): Likewise.
56462         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56463
56464 2004-03-30  Jim Meyering  <jim@meyering.net>
56465
56466         * m4/realloc.m4: Remove file, since now it does no more than
56467         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56468         the `configure.ac' section of module/realloc.
56469         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56470
56471 2004-03-30  Bruno Haible  <bruno@clisp.org>
56472
56473         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56474         nonnull.
56475
56476 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56477
56478         Merge changes to getloadavg.c from coreutils and Emacs.
56479
56480         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56481         Define to an expression, not to the empty string.
56482         Include cloexec.h and xalloc.h.
56483         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56484         Use set_cloexec_flag rather than rolling our own.
56485         * lib/cloexec.c, lib/cloexec.h: New files.
56486
56487 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56488
56489         * m4/cloexec.m4: New file.
56490
56491 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56492
56493         * lib/getopt.h: Sync with libc CVS.
56494
56495 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56496             Bruno Haible  <bruno@clisp.org>
56497
56498         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56499         mbswidth.
56500
56501 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56502             Bruno Haible  <bruno@clisp.org>
56503
56504         * lib/mbswidth.h: Include <wchar.h> only if
56505         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56506         <wchar.h>.
56507         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56508
56509 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56510
56511         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56512         Sync with libc CVS.
56513         * lib/getopt_int.h: New file, also synced from libc.
56514
56515 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56516
56517         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56518         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56519         Bring back getopt.c, getopt.h, getopt1.c.
56520
56521 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56522
56523         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56524         All uses changed.  Check for sa_sigaction member; this fixes
56525         a bug first reported by Jason Andrade in
56526         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56527
56528 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56529
56530         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56531         '#if' expressions.  Unlike the code it replaces, it does not
56532         depend on (defined _SC_PAGESIZE).  However, it does depend on
56533         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56534         first reported by Jason Andrade in
56535         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56536
56537 2004-02-25  Simon Josefsson  <jas@extundo.com>
56538
56539         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56540
56541 2004-02-25  Simon Josefsson  <jas@extundo.com>
56542
56543         * lib/strdup.h: New file.
56544         * lib/strdup.c: Include it.
56545         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56546         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56547
56548 2004-02-23  Karl Berry  <karl@gnu.org>
56549
56550         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56551         (from fencepost.gnu.org:/gd/gnuorg).
56552
56553 2004-02-23  Karl Berry  <karl@gnu.org>
56554
56555         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56556         * config/srclist.txt: add maintain/standards documents.
56557
56558 2004-02-18  Bruno Haible  <bruno@clisp.org>
56559
56560         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56561         Reported by Derek Robert Price <derek@ximbiot.com>.
56562
56563 2004-02-16  Karl Berry  <karl@gnu.org>
56564
56565         * config/mkinstalldirs, install-sh: update from automake.
56566
56567 2004-02-06  Karl Berry  <karl@gnu.org>
56568
56569         * m4/po.m4: update from gettext 0.14.1.
56570
56571 2004-02-06  Karl Berry  <karl@gnu.org>
56572
56573         * lib/config.charset: update from gettext 0.14.1.
56574
56575 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56576
56577         Add comments and code, prompted by suggestions from Bruno Haible
56578         for sh-quote.
56579         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56580         describing the enum quoting_style values.
56581         * lib/quotearg.c (quotearg_alloc): New function.
56582         (quotearg_buffer_restyled): Treat lone { and } as special.
56583         Treat = as special.  Work around bug with older shells
56584         that "see" a '\' that is really the 2nd byte of a multibyte char.
56585         Quote empty string with shell_quoting_style.
56586
56587 2004-02-03  Bruno Haible  <bruno@clisp.org>
56588
56589         * m4/pipe.m4: New file, from GNU gettext.
56590
56591 2004-02-03  Bruno Haible  <bruno@clisp.org>
56592
56593         * lib/pipe.h: New file, from GNU gettext.
56594         * lib/pipe.c: New file, from GNU gettext.
56595
56596 2004-01-27  Bruno Haible  <bruno@clisp.org>
56597
56598         * m4/execute.m4: New file, from GNU gettext.
56599
56600 2004-01-27  Bruno Haible  <bruno@clisp.org>
56601
56602         * lib/execute.h: New file, from GNU gettext.
56603         * lib/execute.c: New file, from GNU gettext.
56604         * lib/w32spawn.h: New file, from GNU gettext.
56605
56606 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56607
56608         Merge from diffutils.
56609
56610         * lib/file-type.c (file_type): Add typed memory objects.
56611         * lib/file-type.h (S_TYPEISTMO): New macro.
56612
56613         * lib/c-stack.h (c_stack_action): Remove argv argument.
56614         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56615         (die): Don't calculate message unless segv_action returns.
56616         (get_stack_location, min_address_from_argv, max_address_from_argv,
56617         volatile stack_base, volatile_stack_size): Remove.
56618         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56619         that every segmentation violation is a stack overflow.  (Ouch!)
56620         See Debian bug 136249 (still outstanding) for more info about why
56621         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56622
56623 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56624
56625         Exit-status fix from coreutils.
56626
56627         Use exit_failure consistently in place of EXIT_FAILURE,
56628         so that program exit statuses are consistent on failure.
56629
56630         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56631         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56632         * lib/argmatch.h: Comment fix to match the above.
56633         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56634         Now a macro referring to exit_failure, instead of a separate
56635         variable.  Include "exitfail.h" to get it.
56636         * lib/xstrtol.h: Include "exitfail.h".
56637         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56638
56639         * lib/long-options.c (parse_long_options): Use prototype
56640         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56641         for clarity.
56642
56643 2004-01-21  Jim Meyering  <jim@meyering.net>
56644
56645         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56646         so as not to conflict with a different-sized __mktime_internal
56647         function in GNU libc.
56648         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56649         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56650
56651 2004-01-20  Karl Berry  <karl@gnu.org>
56652
56653         * config/config.guess: update from config.
56654
56655         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56656
56657 2004-01-20  Bruno Haible  <bruno@clisp.org>
56658
56659         Safer stack allocation.
56660         * lib/setenv.c: Include allocsa.h.
56661         (alloca): Remove fallback definition.
56662         (freea): Remove macro.
56663         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56664         instead of freea.
56665
56666 2004-01-20  Bruno Haible  <bruno@clisp.org>
56667
56668         * m4/eealloc.m4: New file, from GNU gettext.
56669
56670 2004-01-20  Bruno Haible  <bruno@clisp.org>
56671
56672         * m4/allocsa.m4: New file, from GNU gettext.
56673
56674 2004-01-20  Bruno Haible  <bruno@clisp.org>
56675
56676         * lib/xallocsa.h: New file, from GNU gettext.
56677         * lib/xallocsa.c: New file, from GNU gettext.
56678
56679 2004-01-20  Bruno Haible  <bruno@clisp.org>
56680
56681         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56682
56683 2004-01-20  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56686         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56687         specially.
56688
56689 2004-01-20  Bruno Haible  <bruno@clisp.org>
56690
56691         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56692         patch.
56693
56694 2004-01-20  Bruno Haible  <bruno@clisp.org>
56695
56696         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56697
56698 2004-01-20  Bruno Haible  <bruno@clisp.org>
56699
56700         * lib/eealloc.h: New file.
56701
56702 2004-01-20  Bruno Haible  <bruno@clisp.org>
56703
56704         * lib/binary-io.h: Avoid warnings on Cygwin.
56705
56706 2004-01-20  Bruno Haible  <bruno@clisp.org>
56707
56708         * lib/allocsa.h: New file, from GNU gettext.
56709         * lib/allocsa.c: New file, from GNU gettext.
56710
56711 2004-01-18  Karl Berry  <karl@gnu.org>
56712
56713         * doc/gpl.texi, doc/lgpl.texi: new files.
56714
56715 2004-01-18  Karl Berry  <karl@gnu.org>
56716
56717         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56718         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56719
56720 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56721
56722         Merge from coreutils.
56723
56724         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56725         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56726         (gl_DEFAULT_POSIX2_VERSION): Move
56727         the documentation from 'configure' into 'config.hin',
56728         so that 'configure --help' isn't burdened by it and
56729         we don't have to worry about its formatting there.
56730         Reword the documentation so that it's more succinct
56731         and can be run together into a single paragraph.
56732         * m4/same.m4 (gl_SAME): Check for pathconf.
56733
56734 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56735
56736         Merge from coreutils.
56737
56738         * lib/posixver.c: Include posixver.h.
56739
56740         * lib/same.c: Include <stdbool.h>, <limits.h>.
56741         (_POSIX_NAME_MAX): Define if not defined.
56742         (MIN): New macro.
56743         (same_name): If file names are silently truncated, report
56744         that the file names are the same if they are the same after
56745         the silent truncation.
56746
56747         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56748         conversion function.
56749         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56750         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56751         longer needed.
56752
56753 2004-01-15  Jim Meyering  <jim@meyering.net>
56754
56755         Merge from coreutils.
56756
56757         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56758         if no library is required.
56759         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56760         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56761         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56762         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56763         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56764         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56765         value, $ac_cv_search_crypt, if it's "none required".
56766         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56767         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56768         not gl_FUNC_GETLOADAVG.
56769         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56770         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56771
56772 2004-01-15  Jim Meyering  <jim@meyering.net>
56773
56774         Merge from coreutils.
56775
56776         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56777         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56778         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56779
56780         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56781         optional configure-time default.
56782
56783         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56784
56785         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56786
56787 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56788
56789         Merge from coreutils.
56790
56791         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56792         value, $ac_cv_search_nanosleep, if it's "none required".
56793
56794 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56795
56796         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56797         with like-named macro in fnmatch.c.
56798         (EXT): Use an internal constant instead.
56799
56800         Merge fnmatch patches from glibc.
56801         * lib/fnmatch.c (mbsinit): Remove define.
56802         Add libc_hidden_ver (__fnmatch, fnmatch).
56803         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56804         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56805
56806 2004-01-14  Karl Berry  <karl@gnu.org>
56807
56808         * config/install-sh: update from automake.
56809
56810 2004-01-13  Karl Berry  <karl@gnu.org>
56811
56812         * config/install-sh: update from automake.
56813
56814 2004-01-09  Karl Berry  <karl@gnu.org>
56815
56816         * config/install-sh: update from automake.
56817
56818 2004-01-05  Karl Berry  <karl@gnu.org>
56819
56820         * config/config.{sub,guess}: update from config.
56821
56822 2003-12-31  Karl Berry  <karl@gnu.org>
56823
56824         * config/depcomp: update from automake.
56825
56826 2003-12-14  Karl Berry  <karl@gnu.org>
56827
56828         * lib/config.charset: update from gettext-runtime.
56829
56830 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56831
56832         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56833         Bug reported by Alfred M. Szmidt.
56834
56835 2003-12-03  Bruno Haible  <bruno@clisp.org>
56836
56837         * m4/gettext.m4: Upgrade from gettext-0.13.
56838         * m4/po.m4: Upgrade from gettext-0.13.
56839         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56840         * m4/intmax.m4: New file, from gettext-0.13.
56841         * m4/printf-posix.m4: New file, from gettext-0.13.
56842
56843 2003-11-29  Karl Berry  <karl@gnu.org>
56844
56845         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56846
56847 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56848             Bruno Haible  <bruno@clisp.org>
56849
56850         * lib/printf-parse.h: Don't include sys/types.h.
56851         (ARG_NONE): New macro.
56852         (char_directive): Change type of *arg_index fields to size_t.
56853         * lib/printf-parse.c: Don't include sys/types.h.
56854         (SSIZE_MAX): Remove macro.
56855         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56856         Remove unnecessary overflow check.
56857         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56858         fields.
56859
56860 2003-11-25  Bruno Haible  <bruno@clisp.org>
56861
56862         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56863
56864 2003-11-25  Bruno Haible  <bruno@clisp.org>
56865
56866         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56867         gt_TYPE_SSIZE_T.
56868
56869 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56870
56871         * modules/alloca: Remove dependency on xalloc.
56872
56873 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56874
56875         * lib/alloca.c: Remove dependency on xalloc module.
56876         (xalloc_die): Remove.
56877         (memory_full) [!defined emacs]: New macro.
56878         [!defined emacs]: Don't include xalloc.h.
56879         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56880         address arithmetic overflows.  Change datatypes a bit to avoid
56881         unnecessary casts.
56882
56883 2003-11-22  Jim Meyering  <jim@meyering.net>
56884
56885         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56886         s/size/size_t/.
56887
56888 2003-11-21  Karl Berry  <karl@gnu.org>
56889
56890         * config/config.{sub,guess}: update from config.
56891
56892 2003-11-18  Karl Berry  <karl@gnu.org>
56893
56894         * config/config.{sub,guess}: update from config.
56895
56896         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56897
56898 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56899
56900         * README: Mention that S+T cannot overflow if S is the size of
56901         an existing object and T is sufficiently small.
56902
56903 2003-11-17  Jim Meyering  <jim@meyering.net>
56904
56905         On systems without utime and without a utimes function capable of
56906         dealing with a NULL struct utimbuf* argument, this utime replacement
56907         could -- in unusual circumstances -- leak a file descriptor.
56908         * lib/utime.c: Include <unistd.h> and <errno.h>.
56909         (utime_null): Be sure to close `fd' and to preserve errno.
56910         Reported by Geoff Collyer via Arnold Robbins.
56911
56912 2003-11-17  Bruno Haible  <bruno@clisp.org>
56913
56914         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56915         (Depends-on): Add xsize.
56916
56917 2003-11-17  Bruno Haible  <bruno@clisp.org>
56918
56919         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56920
56921 2003-11-17  Bruno Haible  <bruno@clisp.org>
56922
56923         * lib/vasnprintf.c (alloca): Remove fallback definition.
56924         (freea): Remove definition.
56925         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56926         Reported by Paul Eggert.
56927
56928 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56929             Bruno Haible  <bruno@clisp.org>
56930
56931         Protect against address arithmetic overflow.
56932         * lib/printf-args.h: Include stddef.h.
56933         (arguments): Change type of field 'count' to size_t.
56934         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56935         'unsigned int' where appropriate.
56936         * lib/printf-parse.h: Include sys/types.h.
56937         (char_directive): Change type of *arg_index fields to ssize_t.
56938         (char_directives): Change type of fields 'count', max_*_length to
56939         size_t.
56940         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56941         (SSIZE_MAX): Define fallback value.
56942         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56943         instead of 'int' where appropriate. Check a_allocated, d_allocated
56944         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56945         * lib/vasnprintf.c: Include xsize.h.
56946         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56947         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56948         overflow. Avoid wraparound when converting a width or precision from
56949         decimal to binary.
56950
56951 2003-11-16  Bruno Haible  <bruno@clisp.org>
56952
56953         Update from GNU gettext.
56954         * lib/printf-parse.c: Generalize to it can be compiled for wide
56955         strings.
56956         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56957         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56958         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56959         SNPRINTF): New macros.
56960         Don't include <alloca.h> if the file is used inside libintl.
56961         (local_wcslen): New function, for Solaris 2.5.1.
56962         (VASNPRINTF): Use it instead of wcslen.
56963
56964 2003-11-16  Bruno Haible  <bruno@clisp.org>
56965
56966         * lib/xsize.h (xmax): New function.
56967         (xsum, xsum3, xsum4): Declare as "pure" functions.
56968
56969 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56970
56971         * modules/xalloc (Files): Undo latest change, since xalloc.h
56972         no longer needs SIZE_MAX or PTRDIFF_MAX.
56973
56974 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56975
56976         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56977         gl_PTRDIFF_MAX.
56978
56979 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56980
56981         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56982         "return", to pacify some unknown compiler.  Problem reported
56983         by Joerg Schilling.
56984
56985 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56986
56987         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56988         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56989         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56990         heuristic is just as accurate as far as we know, and it removes a
56991         dependency on size_max.m4 and ptrdiff_max.m4.
56992
56993 2003-11-11  Bruno Haible  <bruno@clisp.org>
56994
56995         * modules/xsize (Files): Add m4/size_max.m4.
56996         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56997
56998 2003-11-11  Bruno Haible  <bruno@clisp.org>
56999
57000         * m4/size_max.m4: New file.
57001         * m4/ptrdiff_max.m4: New file.
57002         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
57003         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
57004         (gl_XALLOC): Invoke it.
57005
57006 2003-11-11  Bruno Haible  <bruno@clisp.org>
57007
57008         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
57009         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
57010         defined.
57011
57012 2003-11-10  Paul Eggert  <eggert@twinsun.com>
57013
57014         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
57015         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
57016         rejected some allocations of exactly SIZE_MAX - 2 bytes.
57017         From Bruno Haible.
57018         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
57019         not (size_t) -1, since it's defined here.
57020
57021 2003-11-09  Karl Berry  <karl@gnu.org>
57022
57023         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
57024
57025 2003-11-06  Paul Eggert  <eggert@twinsun.com>
57026
57027         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
57028         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
57029         Reject sizes of exactly SIZE_MAX bytes.
57030         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
57031         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
57032
57033 2003-11-05  Bruno Haible  <bruno@clisp.org>
57034
57035         * lib/xsize.h: Include limits.h, to avoid a possible collision with
57036         SIZE_MAX defined in <limits.h> on Solaris.
57037
57038 2003-11-04  Jim Meyering  <jim@meyering.net>
57039
57040         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
57041         variable names, rather than @VAR@.
57042         * modules/poll: Likewise.
57043
57044 2003-11-04  Bruno Haible  <bruno@clisp.org>
57045
57046         * modules/xsize: New file.
57047         * modules/linebreak: Depend on xsize.
57048         * MODULES.html.sh (func_all_modules): Add xsize.
57049
57050 2003-11-04  Bruno Haible  <bruno@clisp.org>
57051
57052         * m4/xsize.m4: New file.
57053
57054 2003-11-04  Bruno Haible  <bruno@clisp.org>
57055
57056         * lib/xsize.h: New file.
57057         * lib/linebreak.c: Include xsize.h.
57058         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
57059         argument for overflow.
57060         Suggested by Paul Eggert.
57061
57062 2003-11-03  Karl Berry  <karl@gnu.org>
57063
57064         * config/config.{guess,sub}: update from config.
57065
57066 2003-11-03  Jim Meyering  <jim@meyering.net>
57067
57068         * modules/userspec (lib_SOURCES): Add userspec.h.
57069         (Include): Add "userspec.h".
57070         Improve description.
57071
57072 2003-11-03  Jim Meyering  <jim@meyering.net>
57073
57074         * lib/userspec.c: Include "userspec.h".
57075         * lib/userspec.h: New file.
57076
57077 2003-11-03  Bruno Haible  <bruno@clisp.org>
57078
57079         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
57080
57081 2003-11-03  Bruno Haible  <bruno@clisp.org>
57082
57083         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
57084         available, to avoid (extremely rare) race condition.
57085         Suggested by Paul Eggert.
57086
57087 2003-11-02  Karl Berry  <karl@gnu.org>
57088
57089         * config/srclist.txt (vasprintf.c): sync broken, sigh.
57090
57091 2003-10-31  Paul Eggert  <eggert@twinsun.com>
57092
57093         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
57094         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
57095         (read_filesystem_list): Set and use me_type_malloced.
57096         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
57097         whatever the type happens to be), for brevity and consistency.
57098         Check for size calculation overflow on Alphas running OSF/1.
57099
57100 2003-10-31  Jim Meyering  <jim@meyering.net>
57101
57102         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
57103
57104         * lib/linebuffer.c: Include <string.h> for declaration of memset.
57105
57106 2003-10-30  Paul Eggert  <eggert@twinsun.com>
57107             Bruno Haible  <bruno@clisp.org>
57108
57109         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
57110         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
57111
57112 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57113
57114         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
57115         netbsd*-gnu*.  Suggested by Robert Millan.
57116
57117 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57118
57119         * modules/group-member: Depend on stdbool.
57120
57121 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57122
57123         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
57124
57125 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57126
57127         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
57128         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
57129         after the 'gnu' in these cases.  This fixes some bugs in the
57130         previous change, and is based on suggestions by Robert Millan.
57131
57132 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57133
57134         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
57135         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
57136         no longer needed.
57137         * lib/quotearg.c (quotearg_n_options): Use it.
57138         * lib/group-member.c: Include <stdbool.h>.
57139         (free_group_info): Arg is now const *; don't free arg.
57140         (get_group_info): Now returns bool and accepts struct group_info *,
57141         rather than returning a malloc'ed struct group_info *.
57142         All uses changed.  Check for overflow in internal size calculation.
57143
57144         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
57145         rather than xmalloc/xrealloc.
57146         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
57147         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
57148         conformance bug: the old code used a pointer after freeing the
57149         storage that it addressed.
57150         * lib/hash.c (hash_initialize): Simplify the code by using
57151         xalloc_oversized rather than doing it by hand.
57152         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
57153         the buffer preserved.  Use free and xmalloc instead.
57154         * lib/quotearg.c (quotearg_n_options): Likewise.
57155         Use a simpler test for size overflow.  Don't use xalloc_oversized
57156         because unsigned int might be wider than size_t (!); this suggests
57157         that we should switch from unsigned int to size_t for slot numbers.
57158
57159 2003-10-28  Paul Eggert  <eggert@twinsun.com>
57160
57161         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
57162         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
57163         NetBSD kernels.  Requested by Richard Stallman.
57164
57165 2003-10-27  Paul Eggert  <eggert@twinsun.com>
57166
57167         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
57168         to allocate the returned structure.  Do not allocate a subarray,
57169         as x2nrealloc will do that.
57170         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
57171         instead of xnrealloc.
57172         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
57173
57174 2003-10-27  Bruno Haible  <bruno@clisp.org>
57175
57176         * lib/stdbool_.h: Better support for BeOS.
57177
57178 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57179
57180         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
57181         now uses inline.
57182
57183 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57184
57185         * lib/xalloc.h (xalloc_oversized): New static inline function, for
57186         callers that want to do their own size-overflow checking.  Include
57187         <stdbool.h>, since xalloc_oversized returns bool.
57188         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
57189         to use xalloc_oversized.
57190
57191         Add two functions x2realloc, x2nrealloc, for programs that grow
57192         arrays dynamically by doubling their sizes.
57193         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
57194         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
57195         New functions.
57196
57197         Port to C99 semantics for 'inline' of external functions.
57198         Bug reported by Bruno Haible.
57199         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
57200         with the old contents of xnmalloc.
57201         (xnmalloc, xmalloc): Use it.
57202         (xnrealloc_inline): New static inline function,
57203         with the old contents of xnrealloc.
57204         (xnrealloc, xrealloc): Use it.
57205
57206         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
57207         that.
57208
57209 2003-10-26  Karl Berry  <karl@gnu.org>
57210
57211         * config/srclist.txt (COPYING.DOC): no longer available from
57212         /gd/gnuorg; don't know where the ultimate source is.
57213
57214 2003-10-25  Paul Eggert  <eggert@twinsun.com>
57215
57216         Fix several address-calculation bugs in the hash modules,
57217         plus some minor code cleanup.
57218
57219         * lib/hash.h: Include <stdbool.h>, for bool.
57220         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
57221         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
57222         hash_get_n_entries, hash_get_max_bucket_length,
57223         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
57224         hash_rehash): Use size_t rather than unsigned.
57225         * lib/hash.c (struct hash_table, hash_get_n_buckets,
57226         hash_get_n_buckets_used, hash_get_n_entries,
57227         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
57228         hash_get_entries, hash_do_for_each, hash_string, is_prime,
57229         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
57230         Likewise.
57231         (SIZE_MAX): Define if not defined.
57232         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
57233         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
57234         hash_print):
57235         Use const * when possible.
57236         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
57237         (check_tuning): Fix bug: if tuning parameters were very close to
57238         0 or 1, rounding errors could have caused subscript violations.
57239         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
57240         (hash_initialize): Add 'fail:' label
57241         to free table and return NULL, and use it to simplify code.
57242         Use calloc rather than clearing the storage ourself.
57243         (hash_initialize, hash_rehash): Check for arithmetic overflow in
57244         buffer size calculations.
57245         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
57246         Include <stddef.h>, for size_t.
57247         * lib/hash-pjw.c (hash_pjw): Likewise.
57248         Switch to method described by Bruno Haible.
57249         Include <limits.h>, for CHAR_BIT.
57250         (SIZE_BITS): New macro.
57251
57252 2003-10-23  Paul Eggert  <eggert@twinsun.com>
57253
57254         * m4/getline.m4 (AM_FUNC_GETLINE):
57255         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
57256         hosts.  Problem reported by Derek Robert Price in
57257         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
57258         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
57259         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
57260
57261 2003-10-21  Paul Eggert  <eggert@twinsun.com>
57262
57263         * lib/getndelim2.c (getndelim2): When size calculation overflows,
57264         ceiling the allocation at NMAX bytes rather than silently
57265         discarding input bytes before NMAX is reached.  This makes
57266         a difference only if NMAX exceeds SIZE_MAX / 2.
57267
57268         * lib/obstack.c: Merge from glibc.
57269         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
57270         Add libc_hidden_def (_obstack_newchunk).
57271         (_obstack_free) [! defined _LIBC]: Remove.
57272         [defined _LIBC]: Make a strong alias from obstack_free, rather than
57273         a clone of the function body.
57274         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
57275         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
57276
57277         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
57278         glibc.
57279         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
57280         arg to memcpy.
57281
57282         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
57283         (obstack_ptr_grow_fast, obstack_int_grow_fast):
57284         Don't use lvalue casts, as GCC plans to remove support for them
57285         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
57286         was also present in the non-GCC version, indicating that this
57287         code had always been buggy and had never been widely used.
57288         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
57289         Use the fast variant of each macro, rather than copying the
57290         definiens of the fast variant; that way, we'll be more likely to
57291         catch future bugs in the fast variants.
57292
57293 2003-10-20  Bruno Haible  <bruno@clisp.org>
57294
57295         * modules/wait-process: New file.
57296         * MODULES.html.sh (func_all_modules): Add wait-process.
57297
57298 2003-10-20  Bruno Haible  <bruno@clisp.org>
57299
57300         * m4/wait-process.m4: New file.
57301
57302 2003-10-20  Bruno Haible  <bruno@clisp.org>
57303
57304         * lib/wait-process.h: New file, from GNU gettext.
57305         * lib/wait-process.c: New file, from GNU gettext.
57306
57307 2003-10-19  Jim Meyering  <jim@meyering.net>
57308
57309         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
57310         HPUX 10.20.
57311
57312 2003-10-18  Karl Berry  <karl@gnu.org>
57313
57314         * config/config.guess: update from config.
57315
57316 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57317
57318         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57319         (getgroups): First arg is int, not size_t.
57320         Don't let 'free' mangle errno.
57321
57322 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57323
57324         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57325
57326 2003-10-16  Karl Berry  <karl@gnu.org>
57327
57328         * config/config.{guess,sub}: update from config.
57329
57330 2003-10-16  Jim Meyering  <jim@meyering.net>
57331
57332         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57333         memcpy.
57334
57335 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57336
57337         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57338         (SIZE_MAX): Remove.
57339         (new_exclude, add_exclude_file): Initial size no longer needs to
57340         be a power of 2.
57341         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57342         our own address arithmetic overflow checking.
57343
57344         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57345         (fnmatch): Do not alloca more than 2000 wide characters;
57346         instead, use malloc for large buffers.
57347         Check for address arithmetic overflow, and return -1
57348         with errno set to ENOMEM in that case.
57349         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57350         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57351         instead, return -1.  Check for address arithmetic overflow.
57352
57353 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57354
57355         Handle invalid suffixes and overflow independently, so that
57356         callers can treat them independently as needed.  Fix some bugs in
57357         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57358         suffix for a human-readable blocksize.  The major caller-visible
57359         change is the addition of a new
57360         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57361         that both overflow and suffix chars were found.
57362
57363         * lib/human.c (humblock): Don't check separately for invalid suffix
57364         char; that is xstrtoumax's job (now that its bug is fixed).
57365         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57366         INTMAX_MAX]: New macros.
57367         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57368         TYPE_MAXIMUM): New macros.
57369         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57370         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57371         if overflow occurs, as it's what __strtol does and it's more useful
57372         in practice.
57373         (__xstrtol): If __strtol reports some error other than ERANGE,
57374         reflect it to the caller as LONGINT_INVALID.  If it reports
57375         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57376         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57377         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57378         value.
57379         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57380         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57381         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57382         [defined UINTMAX_MAX]: New macros.
57383
57384 2003-10-14  Bruno Haible  <bruno@clisp.org>
57385
57386         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57387
57388 2003-10-14  Bruno Haible  <bruno@clisp.org>
57389
57390         * m4/sig_atomic_t: New file, from GNU gettext.
57391         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57392
57393 2003-10-14  Bruno Haible  <bruno@clisp.org>
57394
57395         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57396         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57397         Also use volatile where needed.
57398
57399 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57400
57401         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57402         Change maintainer from Bruno Haible to 'all'.
57403
57404 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57405
57406         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57407
57408 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57409
57410         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57411         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57412         and define in terms of the other primitives.
57413         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57414         (SIZE_MAX): Define if not already defined.
57415         (array_size_overflow): New function.
57416         (xalloc_die): Abort instead of exiting if 'error' returns.
57417         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57418         (xmalloc, xrealloc): Use them.
57419         (xcalloc): Check for address arithmetic overflow.
57420         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57421         a bit faster than strcpy.
57422
57423 2003-10-10  Simon Josefsson  <jas@extundo.com>
57424
57425         * modules/argp (Depends-on): Add restrict and strcase.
57426
57427 2003-10-10  Simon Josefsson  <jas@extundo.com>
57428
57429         * m4/argp.m4: Add AC_C_INLINE.
57430
57431 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57432
57433         Merge getpass from libc, plus a few fixes.
57434
57435         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57436         Include <stdbool.h>.
57437         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57438         __fsetlocking to empty.
57439         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57440         do include <bits/libc-lock.h>.
57441         Do not include <fcntl.h>; not needed.
57442         [_LIBC]: Include <wchar.h>.
57443         (NOTCANCEL_MODE): New macro.
57444         (flockfile, funlockfile) [_LIBC]: New macros.
57445         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57446         [!_LIBC]: New macros.
57447         (call_fclose): New function.
57448         (getpass): Use it.  Save tty stream separately; this simplifies the
57449         code and makes it more reliable if stdin happens to equal stdout.
57450         Invoke __fsetlocking on tty.
57451         Handle thread cancellation if needed.
57452         Namespace cleanup (use __tcgetattr, __getline).
57453         Use bool for Booleans.
57454         [USE_IN_LIBIO]: Handle wide streams.
57455         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57456         stream might go where.
57457
57458         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57459         doesn't have to include <stdio.h> before us.
57460         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57461         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57462         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57463         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57464         if not declared, so that we can use getpass.c code from libc without
57465         rewriting it.
57466         (flockfile, ftrylockfile, funlockfile): New macros.
57467
57468 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57469
57470         * modules/getpass: Depend on stdbool.
57471
57472 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57473
57474         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57475
57476 2003-10-07  Karl Berry  <karl@gnu.org>
57477
57478         * config/config.{guess,sub}: update from config.
57479
57480 2003-10-06  Jim Meyering  <jim@meyering.net>
57481             Bruno Haible  <bruno@clisp.org>
57482
57483         This lets translators provide better translations for the
57484         "Written by ..." part of --version output.
57485         * lib/version-etc.h: Include stdarg.h.
57486         (version_etc_copyright): Declare as readonly.
57487         (version_etc): Make this function variadic with a NULL-terminated list
57488         of author name strings.
57489         (version_etc_va): New declaration.
57490         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57491         (version_etc_copyright): Declare as readonly.
57492         (version_etc_va): New function. Provide a different translatable string
57493         for each possible number of authors < 10. Abbreviate when there are 10
57494         authors or more.
57495         (version_etc): Make this function variadic. Call version_etc_va.
57496         Suggestion from Gary V. Vaughan.
57497
57498         * lib/long-options.h (parse_long_options): Change prototype: the
57499         authors string is moved to the end and becomes variadic.
57500         * lib/long-options.c: Include stdarg.h.
57501         (parse_long_options): Make this function variadic, too.
57502         Call version_etc_va, not version_etc.
57503
57504 2003-10-06  Bruno Haible  <bruno@clisp.org>
57505
57506         * modules/version-etc-2: Remove file.
57507         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57508
57509 2003-10-06  Bruno Haible  <bruno@clisp.org>
57510
57511         * modules/fatal-signal: New file.
57512         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57513
57514 2003-10-06  Bruno Haible  <bruno@clisp.org>
57515
57516         * m4/fatal-signal.m4: New file.
57517         * m4/signalblocking.m4: New file, from GNU gettext.
57518
57519 2003-10-06  Bruno Haible  <bruno@clisp.org>
57520
57521         * lib/version-etc-2.h: Remove file.
57522         * lib/version-etc-2.c: Remove file.
57523
57524 2003-10-06  Bruno Haible  <bruno@clisp.org>
57525
57526         * lib/fatal-signal.h: New file, from GNU gettext.
57527         * lib/fatal-signal.c: New file, from GNU gettext.
57528
57529 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57530
57531         * README: Rework advice for preventing empty .o files.
57532         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57533         not <sys/types.h>.
57534
57535 2003-10-04  Karl Berry  <karl@gnu.org>
57536
57537         * lib/argp*: update from libc.
57538
57539 2003-10-04  Karl Berry  <karl@gnu.org>
57540
57541         * config/config.{guess,sub}: update from config.
57542
57543 2003-10-02  Bruno Haible  <bruno@clisp.org>
57544
57545         * modules/lchown (Include): Add lchown.h.
57546         * modules/time_r (Include): Use "..." syntax.
57547         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57548
57549 2003-10-01  Simon Josefsson  <jas@extundo.com>
57550
57551         * MODULES.html.sh (func_all_modules): Move gethostname from section
57552         'based on' to section 'lacking' POSIX:2001.
57553
57554 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57555
57556         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57557         to output mode on the same stream.
57558
57559 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57560
57561         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57562         Fix arg typo in previous patch.
57563
57564 2003-09-28  Jim Meyering  <jim@meyering.net>
57565
57566         * lib/error.c: Correct cpp indentation.
57567
57568 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57569
57570         * modules/free: New file.
57571
57572 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57573
57574         * m4/free.m4: New file.
57575
57576 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57577
57578         * lib/minmax.h (MIN, MAX)
57579         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57580         Omit the special code that used __typeof__, since we worry that
57581         it could be more trouble than it's worth.  See:
57582         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57583         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57584
57585         * lib/free.c: New file.
57586
57587 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57588
57589         Trivial fixes to Makefile.am parts of module listings.
57590         * modules/strstr: Append strstr.h to lib_SOURCES.
57591         * modules/strcase: Likewise, for strcase.h.
57592
57593 2003-09-27  Karl Berry  <karl@gnu.org>
57594
57595         * config/mkinstalldirs: update from automake.
57596
57597 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57598
57599         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57600         (error_tail): Do not loop, reallocating temporary buffer, since
57601         the output cannot contain more wide characters than the input
57602         contains bytes, the size must be big enough already.  This avoids
57603         one potential size overflow calculation.  Check for size overflow
57604         when calculating temporary buffer size.  Free temporary buffer
57605         when done, if it was allocated with malloc; this plugs a memory
57606         leak.  Remove casts from void * to pointers, that are no longer
57607         needed now that we're assuming C89 or better.
57608
57609         Merge error changes from glibc.
57610
57611         * lib/error.c, error.h: Update copyright notice header to match glibc.
57612         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57613         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57614         Disable cancellation while printing error.
57615         * lib/error.h: Prepend __ to parameter names.
57616
57617 2003-09-26  Jim Meyering  <jim@meyering.net>
57618
57619         * lib/error.c (error_tail): Move some declarations
57620         into inner scope where the local variables are used.
57621
57622 2003-09-26  Bruno Haible  <bruno@clisp.org>
57623
57624         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57625         stpncpy().
57626         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57627
57628 2003-09-26  Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57631         (stpncpy): Define as alias for gnu_stpncpy.
57632         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57633
57634 2003-09-25  Simon Josefsson  <jas@extundo.com>
57635
57636         * lib/xgetdomainname.h: New file.
57637         * lib/xgetdomainname.c: New file.
57638
57639 2003-09-25  Simon Josefsson  <jas@extundo.com>
57640             Bruno Haible  <bruno@clisp.org>
57641
57642         * modules/getdomainname: New file.
57643         * modules/xgetdomainname: New file.
57644         * MODULES.html.sh (func_all_modules): Add getdomainname,
57645         xgetdomainname.
57646
57647 2003-09-25  Simon Josefsson  <jas@extundo.com>
57648             Bruno Haible  <bruno@clisp.org>
57649
57650         * m4/getdomainname.m4: New file.
57651
57652 2003-09-25  Simon Josefsson  <jas@extundo.com>
57653             Bruno Haible  <bruno@clisp.org>
57654
57655         * lib/getdomainname.h: New file.
57656         * lib/getdomainname.c: New file.
57657
57658 2003-09-25  Karl Berry  <karl@gnu.org>
57659
57660         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57661
57662 2003-09-25  Karl Berry  <karl@gnu.org>
57663
57664         * config/install-sh: update from automake.
57665
57666 2003-09-25  Bruno Haible  <bruno@clisp.org>
57667
57668         * modules/version-etc-2: New file, from modules/version-etc with
57669         modifications.
57670         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57671
57672 2003-09-25  Bruno Haible  <bruno@clisp.org>
57673
57674         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57675         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57676
57677 2003-09-24  Simon Josefsson  <jas@extundo.com>
57678
57679         * modules/xgethostname: Add xgethostname.h.
57680
57681 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57682
57683         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57684         the buffer associated with the argument.  Bug reported by
57685         Simon Josefsson.
57686
57687 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57688
57689         * README: Document assumptions that 'int' is at least 32 bits
57690         wide, that integer arithmetic is 2's complement without overflow,
57691         that there are no holes in integer values, that adding sizes of
57692         two nonoverlapping objects can't overflow, and that all-bits-zero
57693         yields scalar zero.  Fix spelling and capitalization typos.
57694
57695 2003-09-19  Karl Berry  <karl@gnu.org>
57696
57697         * lib/argp.h: update from libc.
57698
57699 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57700
57701         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57702         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57703         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57704
57705 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57706
57707         * gnulib-tool: Use "test -h", not "test -L", for portability
57708         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57709         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57710         (sed_extract_prog): Issue s commands one-by-one, rather than
57711         using \| in one s command.
57712
57713 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57714
57715         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57716         input error, instead of returning NULL the next time we are called
57717         (and therefore losing track of errno).
57718
57719 2003-09-16  Bruno Haible  <bruno@clisp.org>
57720
57721         * gnulib-tool (func_create_testdir): Warn about duplicated
57722         dependencies.
57723
57724 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57725
57726         * modules/argmatch, modules/fatal, modules/obstack,
57727         modules/xalloc, modules/xgethostname: Sort dependencies by
57728         importance, not alphabetically.
57729
57730 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57731
57732         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57733         fails, so that the caller gets the proper errno.
57734
57735         * lib/readutmp.c (read_utmp): Likewise.
57736         Check for fstat error.  Close stream and free storage
57737         when failing.
57738
57739 2003-09-14  Karl Berry  <karl@gnu.org>
57740
57741         * config/srclist.txt (strdup.c): disable for c89 changes.
57742
57743 2003-09-14  Jim Meyering  <jim@meyering.net>
57744
57745         * lib/getloadavg.c: Correct cpp indentation.
57746         * lib/strdup.c: Likewise.
57747         * lib/vasnprintf.c: Likewise.
57748
57749 2003-09-14  Bruno Haible  <bruno@clisp.org>
57750
57751         * modules/fwriteerror: New file.
57752         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57753
57754 2003-09-14  Bruno Haible  <bruno@clisp.org>
57755
57756         * lib/fwriteerror.h: New file.
57757         * lib/fwriteerror.c: New file.
57758
57759 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57760
57761         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57762         modules/xgethostname, modules/xalloc: Depend on exit.
57763
57764 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57765
57766         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57767
57768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57769         and AC_MINIX, too, so that their extensions are available.
57770
57771         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57772         This macro has been superseded by gl_BACKUPFILE.
57773
57774         More patches to assume C89 or better.
57775
57776         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57777
57778         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57779         unconditionally.
57780         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57781         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57782         Include <string.h>, <stdlib.h> unconditionally.
57783         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57784         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57785         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57786         headers or for string.h.
57787         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57788         or strtoul.
57789
57790         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57791         headers.
57792         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57793         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57794         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57795         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57796         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57797         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57798         memcpy, memset.
57799         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57800         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57801         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57802         strtol.
57803         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57804         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57805         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57806         strtoul.
57807
57808 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57809
57810         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57811         * lib/obstack.c [!defined _LIBC]: Likewise.
57812         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57813         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57814         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57815
57816         More changes to assume C89 or better.
57817
57818         * lib/error.c (error_tail): Assume vprintf.
57819
57820         * lib/argmatch.c (getenv): Remove decl.
57821         * lib/progreloc.c (get_full_program_name): Define via prototype.
57822         * lib/setenv.c (clearenv): Likewise.
57823         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57824         needed.
57825         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57826         (malloc, memcpy): Remove decls.
57827         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57828         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57829         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57830         (memcpy): Remove macro.
57831         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57832         (__P): Remove.  All uses removed.
57833         (PTR): Remove.  All uses changed to void *.
57834         (CHAR_BIT, NULL): Remove.
57835         (spaces, zeros, memset_space, memset_zero)
57836         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57837         Remove.
57838         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57839         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57840         Define with prototype.
57841         Remove now-unnecessary prototype decl.
57842         (extra_args_spec): Assume ANSI C.  All uses changed.
57843         (extra_args_spec_iso): Remove.
57844         (my_strftime, emacs_strftimeu): Define via prototype.
57845         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57846         unconditionally.
57847         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57848         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57849         (strtoul, strtol): Remove decls.
57850         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57851         LONG_MAX): Remove.
57852         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57853         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57854         (LOCALE_PARAM_PROTO): New macro.
57855         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57856         (INTERNAL (strtol), strtol): Define with a prototype.
57857         (PARAMS): Remove.  All uses removed.
57858         * lib/tempname.c: Include <string.h> unconditionally.
57859         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57860         * lib/xgethostname.c (main): Define with a prototype.
57861         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57862         Include <stdlib.h> unconditionally.
57863         (calloc, malloc, realloc, free): Remove decls.
57864         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57865         Include <stdlib.h> unconditionally.  Sort include file names.
57866         (strtod): Remove.
57867         (xstrtod): Define with a prototype.
57868         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57869         (strtol, strtoul): Remove decls.
57870
57871 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57872
57873         More patches to assume C89 or better.
57874         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57875         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57876         string.h, memchr, STDC_HEADERS.
57877
57878 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57879
57880         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57881         Include <stdlib.h>, <string.h> unconditionally.
57882         Remove now-unnecessary cast to char *.
57883         * lib/strnlen.c: Include <string.h> unconditionally.
57884         * lib/yesno.c (yesno): Define with a prototype.
57885
57886 2003-09-11  Bruno Haible  <bruno@clisp.org>
57887
57888         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57889
57890 2003-09-10  Jim Meyering  <jim@meyering.net>
57891
57892         * lib/error.c: Correct indentation of cpp directives.
57893
57894 2003-09-10  Bruno Haible  <bruno@clisp.org>
57895
57896         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57897         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57898         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57899         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57900         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57901         <stdlib.h> and <string.h> checks.
57902         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57903         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57904
57905 2003-09-10  Bruno Haible  <bruno@clisp.org>
57906
57907         * lib/strcspn.c: Include <string.h> unconditionally.
57908         * lib/strpbrk.c: Include <string.h> unconditionally.
57909         * lib/strstr.c: Include <string.h> unconditionally.
57910         * lib/unicodeio.c: Include <string.h> unconditionally.
57911         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57912         * lib/unsetenv.c: Likewise.
57913         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57914         * lib/yesno.c: Include <stdlib.h> unconditionally.
57915         (rpmatch): Add prototype.
57916
57917 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57918
57919         More patches to assume C89 or better.
57920         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57921         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57922         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57923         or for string.h.
57924         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57925         stdlib.h.
57926         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57927         C headers.
57928         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57929         string.h.
57930         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57931         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57932         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57933         or for string.h.
57934         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57935         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57936         C headers.
57937         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57938         memcpy.
57939         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57940         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57941         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57942         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57943         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57944         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57945         string.h, free.
57946         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57947         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57948         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57949         C headers, or for string.h.
57950         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57951         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57952         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57953         headers, memory.h, stdlib.h, string.h, strings.h.
57954         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57955         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57956         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57957         strchr.
57958         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57959         headers, memory.h, string.h.
57960         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57961         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57962         free.
57963         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57964         headers.
57965         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57966         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57967         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57968         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57969         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57970
57971 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57972
57973         More K&R removal.
57974
57975         * lib/acosl.c (main): Use a prototype.
57976         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57977         tanl.c: Likewise.
57978
57979         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57980
57981         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57982         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57983         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57984         with a prototype.
57985         * lib/getopt.c (const): Remove macro.
57986         Include <string.h> unconditionally.
57987         (my_index): Remove; all uses changed to strchr.
57988         (strlen): Remove decl.
57989         (exchange): Remove forward decl; no longer needed.
57990         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57991         Define with prototype.
57992         * lib/getopt1.c (const): Remove macro.
57993         (getopt_long, getopt_long_only, main): Define with prototype.
57994
57995         * lib/getugroups.c: Include <string.h> unconditionally.
57996
57997         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57998         (getusershell, setusershell, endusershell, readname, main):
57999         Define with prototypes.
58000
58001         * lib/group-member.c: Include group-member.h first.
58002         Include <stdlib.h> unconditionally.
58003
58004         * lib/hard-locale.c: Include hard-locale.h first.
58005         Include <stdlib.h>, <string.h> unconditionally.
58006
58007         * lib/hash.c (free, malloc): Remove decls.
58008         Include <stdlib.h> unconditionally.
58009
58010         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
58011         (getenv): Do not declare.
58012
58013         * lib/idcache.c: Include <string.h> unconditionally.
58014
58015         * lib/long-options.c: Include long-options.h first, to test interface.
58016         Include <stdlib.h> unconditionally.
58017
58018         * lib/makepath.c: Include makepath.h first, to test interface.
58019         Include <stdlib.h> and <string.h> unconditionally.
58020
58021         * lib/linebuffer.c: Include <stdlib.h>.
58022         (free): Remove decl.
58023
58024         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
58025         stddef.h. rpl_malloc returns void *, not char *.
58026         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
58027         prototype.
58028
58029         * lib/md5.h: Include <limits.h> unconditionally.
58030         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
58031         (__P): Remove; all uses removed.
58032         * lib/md5.c: Include "md5.h" first.
58033         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
58034         md5_buffer, md5_process_bytes, md5_process_block):
58035         Define with prototypes.
58036         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
58037         * lib/sha.c: Include "sha.h" first.
58038         Include <stdlib.h>, <string.h> unconditionally.
58039
58040         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
58041         * lib/memcmp.c (__ptr_t): Likewise.
58042         * lib/memrchr.c (__ptr_t): Likewise.
58043         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
58044         Include <string.h> unconditionally.
58045         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
58046         * lib/memchr.c: Include <stdlib.h> unconditionally.
58047         * lib/memchr.c (LONG_MAX): Remove.
58048         * lib/memrchr.c (LONG_MAX): Likewise.
58049         * lib/memchr.c (__memchr): Define via a prototype.
58050         * lib/memrchr.c (__memrchr): Likewise.
58051         * lib/memcmp.c (__P): Remove, and remove all uses.
58052         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
58053         Remove forward decls; no longer needed.
58054         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
58055         Use types required by C89 in prototype.
58056
58057         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
58058         * lib/savedir.c: Likewise.
58059         * lib/mkdir.c (free): Remove decl.
58060         * lib/rmdir.c (rmdir): Define with a prototype.
58061         * lib/savedir.c: Include savedir.h first, to test interface.
58062
58063         * lib/mktime.c (STDC_HEADERS): Remove.
58064         Include <stdlib.h>, <string.h> unconditionally.
58065
58066         * lib/modechange.c: Include <stdlib.h> unconditionally.
58067         (malloc): Remove decl.
58068
58069         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
58070         (free): Remove decl.
58071
58072         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
58073         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
58074         (This type really should be intptr_t, but that's a C99ism.)
58075         (_obstack_memcpy): Remove: all uses changed to memcpy.
58076         Include <string.h> unconditionally.
58077         (struct obstack): Assume __STDC__ for types of members
58078         chunkfun, freefun, extra_arg.
58079         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
58080         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
58081         obstack_begin, obstack_specify_allocation,
58082         obstack_specify_allocation_with_arg, obstack_chunkfun,
58083         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
58084         Remove unprototyped decls and the macros that use them.
58085         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
58086         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
58087         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
58088         (defined __STDC__ && __STDC__)]:
58089         Remove nonprototyped code.
58090         Include <stdlib.h> unconditionally.
58091         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
58092         _obstack_allocated_p, _obstack_free, obstack_free,
58093         _obstack_memory_used, print_and_abort):
58094         Define using prototypes.
58095         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
58096         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
58097         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
58098         obstack_next_free, obstack_object_size, obstack_room) [0]:
58099         Remove unused, unprototyped code.
58100
58101         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
58102
58103         * lib/physmem.c (physmem_total, physmem_available, main): Define
58104         with prototypes.
58105
58106         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
58107         (main): Define with a prototype.
58108
58109         * lib/posixver.c (getenv): Remove decl.
58110
58111         * lib/putenv.c (malloc): Returns void *, not char *.
58112         Include <string.h> unconditionally.
58113         (strchr, memcpy, NULL): Do not define.
58114
58115         * lib/readtokens.c: Include readtokens.h first, to test interface.
58116         Include <stdlib.h>, <string.h> unconditionally.
58117         (init_tokenbuffer): Define with a prototype.
58118
58119         * lib/regex.c (PARAMS): Remove.  All uses removed.
58120         All uses of _RE_ARGS removed, too.
58121         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58122         unconditionally.
58123         (bzero): Assume memset exists.
58124         (memcmp, memcpy, NULL): Remove.
58125         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
58126         char, or assignments to local vars of type signed char.
58127         (init_syntax_once, PREFIX(extract_number_and_incr),
58128         PREFIX(print_partial_compiled_pattern),
58129         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
58130         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
58131         PREFIX(regex_grow_registers), PREFIX(regex_compile),
58132         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
58133         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
58134         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
58135         wcs_compile_range, byte_compile_range, truncate_wchar,
58136         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
58137         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
58138         count_mbs_length, wcs_re_match_2_internal,
58139         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
58140         PREFIX(alt_match_null_string_p),
58141         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
58142         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
58143         regfree, PREFIX(extract_number)): Define with prototype.  Remove
58144         now-unnecessary declaration, if any.
58145         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
58146         regcomp, regexec):
58147         Remove now-unnecessary casts among pointer types.
58148         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
58149
58150         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
58151         (free): Remove decl.
58152
58153         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
58154
58155         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
58156         (free): Remove decl.
58157
58158         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
58159         * lib/xgetcwd.c: Likewise.
58160
58161         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
58162         (free): Remove decl.
58163
58164         * lib/strchrnul.c (strchrnul): Define with a prototype.
58165         Fix bug: c_in was not converted to char before searching.
58166
58167         The following changes are not K&R related:
58168
58169         * lib/group-member.h: Include <sys/types.h>, so that this file is
58170         self-contained.
58171         * lib/makepath.h: Likewise.
58172
58173         * lib/getusershell.c (readname, default_index, line_size, readname):
58174         Use size_t, not int, for sizes.
58175         (readname): If the size overflows, report an error instead of
58176         looping forever.
58177
58178 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58179
58180         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
58181         libc.
58182
58183 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58184
58185         * README: New section: portability guidelines.
58186
58187 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58188
58189         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
58190         C89 spec.
58191
58192 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58193
58194         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
58195
58196 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58197
58198         Assume C89 or better; remove K&R cruft.
58199         A few of these changes were first proposed by Derek Robert Price
58200         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
58201
58202         * lib/addext.c: Include <string.h> unconditionally.
58203         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
58204         Don't declare getenv or malloc.
58205
58206         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
58207         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
58208         (NULL): Remove.
58209         (find_stack_direction, alloca): Use prototypes.
58210
58211         * lib/atexit.c (atexit): Define using a prototype.
58212
58213         * lib/basename.c, dirname.c, stripslash.c:
58214         Include <string.h> unconditionally.
58215
58216         * lib/bcopy.c: Include <stddef.h>.
58217         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
58218
58219         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
58220
58221         * lib/error.h (error, error_at_line, error_print_progname)
58222         [! (defined (__STDC__) && __STDC__)]: Remove decls.
58223         * lib/error.c: Include error.h first, to check interface.
58224         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58225         (VA_START): Remove; all uses changeed to va_start.
58226         (exit, strerror): Remove decls.
58227         (error_print_progname): Prototype uncondionally.
58228         Don't include <errno.h>; no longer needed.
58229         (private_strerror): Remove.
58230         (error_tail): Always define.
58231         (error, error_at_line): Assume C89 or better; always use prototypes.
58232         * lib/fatal.c: Include "fatal.h" first, to test interface.
58233         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58234         (VA_START): Remove; all uses changed to va_start.
58235         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
58236         this case.
58237         (exit): Remove decl.
58238         (fatal): Prototype unconditionally.  Assume va_start works.
58239         Abort at end, to pacify gcc.
58240
58241         * lib/euidaccess.c (main): Define with a prototype.
58242
58243         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
58244
58245         * lib/exitfail.c: Include <stdlib.h> unconditionally.
58246
58247         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
58248         prototypes.
58249         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
58250         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
58251         (getenv): Remove decl.
58252         (fnmatch): Define using a prototype.
58253         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
58254         (FCT): Define using a prototype.
58255
58256         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
58257
58258         * lib/gethostname.c: Include <stddef.h>.
58259         (gethostname): Define with prototype.  Length is size_t, not int.
58260
58261 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58262
58263         Assume C89 or better; remove K&R cruft.
58264         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
58265         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
58266         string.h, getenv, malloc.
58267         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
58268         headers.
58269         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
58270         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
58271         do not check for strerror.
58272         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
58273         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
58274         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
58275         do not check for doprnt or vprintf.
58276         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
58277         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
58278
58279 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58280
58281         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
58282         getversion.c should have been removed then, but was accidentally
58283         preserved.
58284
58285         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
58286         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
58287
58288 2003-09-08  Karl Berry  <karl@gnu.org>
58289
58290         * config/config.sub, config.guess, srclistvars.sh: update from savannah
58291                 config, forget about prep.
58292
58293         * config/depcomp, missing: update from automake.
58294
58295 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58296
58297         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
58298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58299
58300 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58301
58302         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
58303         copy_tm_result.  Bug reported by Simon Josefsson in
58304         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58305
58306 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58307
58308         * m4/time_r.m4: New file.
58309         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
58310         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
58311         is. Check for timegm declaration.
58312         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58313         Do not check for gmtime_r.
58314         Replace mktime if __mktime_internal does not exist and if mktime
58315         hasn't been replaced already.
58316
58317 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58318
58319         * lib/time_r.c, lib/time_r.h: New files.
58320
58321         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58322         __localtime_r.
58323         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58324         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58325
58326         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58327         __gmtime_r.
58328         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58329         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58330         Include <time_r.h>.
58331
58332         * lib/timegm.c: Switch to glibc implementation, with the following
58333         changes:
58334         [defined HAVE_CONFIG_H]: Include <config.h>.
58335         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58336         (__mktime_internal) [!defined _LIBC]: New decl.
58337         (__gmtime_r) [!defined _LIBC]: New macro and function.
58338         (timegm): Use a prototype, since gnulib assumes C89.
58339         Do not bother declaring tmp to be const, as it's not really usefu.
58340         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58341         (timegm): Declare only if HAVE_DECL_TIMEGM.
58342
58343 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58344
58345         * MODULES.html.sh (func_all_modules): Add time_r.
58346         * modules/time_r: New file.
58347         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58348         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58349
58350 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58351
58352         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58353         Bug reported by Lute Kamstra in
58354         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58355
58356         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58357         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58358         course with correspondingly smaller numbers for tomorrow and
58359         yesterday.  From Tadayoshi Funaba.  Originally installed into
58360         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58361         coreutils merge?).
58362
58363 2003-08-31  Simon Josefsson  <jas@extundo.com>
58364
58365         * modules/timegm: New file.
58366         * MODULES.html.sh (func_all_modules): Add timegm.
58367
58368 2003-08-31  Simon Josefsson  <jas@extundo.com>
58369
58370         * m4/timegm.m4: New file.
58371
58372 2003-08-31  Simon Josefsson  <jas@extundo.com>
58373
58374         * lib/timegm.h: New file.
58375         * lib/timegm.c: New file.  Based on
58376         wget-1.8.2/src/http.c:mktime_from_utc.
58377
58378 2003-08-31  Karl Berry  <karl@gnu.org>
58379
58380         * lib/argp.h: update from libc.
58381
58382 2003-08-28  Bruno Haible  <bruno@clisp.org>
58383
58384         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58385         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58386         followed by '#define fnmatch fnmatch_posix' gives an error.
58387
58388 2003-08-28  Bruno Haible  <bruno@clisp.org>
58389
58390         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58391         warning on QNX, which defines O_BINARY to 000000.
58392
58393 2003-08-27  Jim Meyering  <jim@meyering.net>
58394
58395         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58396         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58397         would fail after 32.  Reported by Danny Levinson.  Details here:
58398         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58399
58400 2003-08-24  Bruno Haible  <bruno@clisp.org>
58401
58402         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58403         MSVC7 <stdio.h> is included later.
58404
58405 2003-08-22  Simon Josefsson  <jas@extundo.com>
58406
58407         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58408
58409 2003-08-20  Karl Berry  <karl@gnu.org>
58410
58411         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58412
58413 2003-08-20  Bruno Haible  <bruno@clisp.org>
58414
58415         * modules/progname: New file.
58416         * MODULES.html.sh (func_all_modules): Add progname.
58417
58418 2003-08-20  Bruno Haible  <bruno@clisp.org>
58419
58420         * lib/progname.h: New file, from GNU gettext.
58421         * lib/progname.c: New file, from GNU gettext.
58422         * lib/progreloc.c: New file, from GNU gettext.
58423
58424 2003-08-19  Jim Meyering  <jim@meyering.net>
58425
58426         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58427         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58428
58429 2003-08-19  Bruno Haible  <bruno@clisp.org>
58430
58431         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58432         more.
58433
58434 2003-08-19  Bruno Haible  <bruno@clisp.org>
58435
58436         * lib/xstrdup.c: Assume <string.h> exists.
58437
58438 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58439
58440         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58441         in makefile rules.
58442
58443 2003-08-18  Jim Meyering  <jim@meyering.net>
58444
58445         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58446         * m4/lib-ld.m4: Likewise.
58447
58448 2003-08-18  Jim Meyering  <jim@meyering.net>
58449
58450         * lib/setenv.h: Indent nested cpp directive.
58451         * lib/vasnprintf.c: Remove trailing blanks.
58452
58453 2003-08-17  Simon Josefsson  <jas@extundo.com>
58454
58455         * modules/xstrndup: New file.
58456         * MODULES.html.sh (func_all_modules): Add xstrndup.
58457
58458 2003-08-17  Simon Josefsson  <jas@extundo.com>
58459
58460         * modules/argp: Fix autoconf macro name. Add more dependencies.
58461
58462 2003-08-17  Simon Josefsson  <jas@extundo.com>
58463
58464         * m4/xstrndup.m4: New file.
58465
58466 2003-08-17  Simon Josefsson  <jas@extundo.com>
58467
58468         * m4/argp.m4: New file.
58469
58470 2003-08-17  Simon Josefsson  <jas@extundo.com>
58471             Bruno Haible  <bruno@clisp.org>
58472
58473         * lib/xstrndup.h: New file.
58474         * lib/xstrndup.c: New file.
58475
58476 2003-08-17  Bruno Haible  <bruno@clisp.org>
58477
58478         * modules/strndup (Files, Include): Add lib/strndup.h.
58479
58480 2003-08-17  Bruno Haible  <bruno@clisp.org>
58481
58482         * modules/euidaccess (Files): Add lib/euidaccess.h.
58483
58484 2003-08-17  Bruno Haible  <bruno@clisp.org>
58485
58486         * lib/strndup.h: New file.
58487
58488 2003-08-17  Bruno Haible  <bruno@clisp.org>
58489
58490         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58491         like AC_GNU_SOURCE.
58492         * modules/extensions (configure.ac): Comment out the invocation of
58493         gl_USE_SYSTEM_EXTENSIONS.
58494
58495 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58496
58497         Merges from coreutils, etc.
58498         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58499         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58500         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58501         fixing a typo.
58502         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58503         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58504
58505 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58506
58507         Document merge from coreutils.
58508         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58509         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58510         * modules/utime: Add m4/utimes-null.m4.
58511
58512 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58513
58514         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58515         space, undoing this 2003-08-12 change:
58516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58517
58518 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58519
58520         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58521         strtoul.c from libc, undoing this 2003-08-12 change:
58522         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58523
58524 2003-08-16  Jim Meyering  <jim@meyering.net>
58525
58526         Merges from coreutils.
58527         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58528         prefix.  Adjust cache variables similarly.  Create 500 rather than
58529         just 300 files, to exercise bug on Darwin6.5, too.
58530         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58531         $missing_dir.
58532         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58533         AM_SYS_POSIX_TERMIOS.
58534         Reported by mkc@mathdogs.com.
58535         Also change use of $am_cv_sys_posix_termios
58536         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58537         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58538         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58539         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58540         in /proc/mounts until it finds one with matching device number.  This
58541         is unnecessary when the FILE argument *is* a mount point.  No stat call
58542         is necessary in that case.  So, disable the statvfs-testing code on
58543         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58544         as RedHat bug# 84846.
58545         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58546         to 1MB, so as not to render systems with no stack size limit (e.g.,
58547         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58548         Include <unistd.h>.  On some systems,
58549         it is required for the definition of _SC_PAGESIZE.
58550
58551 2003-08-16  Jim Meyering  <jim@meyering.net>
58552
58553         Merge from coreutils.
58554         * lib/xstrtoimax.c: #else #if -> #elif.
58555         * lib/xstrtoumax.c: Likewise.
58556
58557 2003-08-16  Jim Meyering  <jim@meyering.net>
58558
58559         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58560         * m4/utimes.m4: Removed.
58561         * m4/utimes-null.m4: Renamed from utimes.m4.
58562
58563         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58564         to 1MB, so as not to render systems with no stack size limit (e.g.,
58565         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58566         Include <unistd.h>.  On some systems,
58567         it is required for the definition of _SC_PAGESIZE.
58568
58569 2003-08-16  Jim Meyering  <jim@meyering.net>
58570         and Paul Eggert  <eggert@cs.ucla.edu>
58571
58572         Merges from coreutils, etc.
58573
58574         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58575         using the latest version from cvs.  This avoids problems with #line
58576         directives using a vendor (Sun) compiler.
58577         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58578         Don't set GETGROUPS_LIB here; now it's
58579         done via getgroups.m4's wrapper function.
58580         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58581         rather than just in sh-util/configure.in, so that the
58582         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58583         same.
58584         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58585         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58586         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58587         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58588         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58589         Remove code that is now done by the newly-required macros.
58590         Append $(EXEEXT) to DF_PROG.
58591         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58592         Do not invoke or require the following here,
58593         since prereq.m4 or some gnulib .m4 now does this for us:
58594         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58595         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58596         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58597         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58598         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58599         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58600         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58601         AC_FUNC_OBSTACK.
58602         Do not replace the following functions, as this is now the job
58603         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58604         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58605         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58606         atexit getpass, strdup, getpagesize.
58607         Replace 'raise'.
58608         Do not check for the following functions, as this is now the job
58609         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58610         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58611         setregid.
58612         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58613         Check for sys/sysctl.h.
58614         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58615         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58616         of checking for ssize_t ourselves.
58617
58618         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58619         Require every macro that gnulib/modules/* suggests for us.
58620         (jm_PREREQ_ADDEXT): New macro.
58621         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58622         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58623
58624         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58625         (gl_PHYSMEM): Use it.
58626         Also check for `table' function.
58627         Check for new headers and functions.
58628         Add check for sys/sysmp.h.
58629         With suggestions from Kaveh Ghazi.
58630         Ignore headers that are present but cannot be compiled.  This
58631         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58632         C 5.4.
58633
58634 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58635
58636         Document merge from coreutils.
58637         * modules/userspec: Depend on posixver.
58638         * modules/strftime: Depend on tzset.
58639
58640 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58641
58642         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58643         rather than tab, after '#' in shell-script copyright notices.
58644         Suggested by Bruno Haible.
58645
58646 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58647
58648         * config/srclist-update: Use three spaces, rather than tab, after '#'
58649         in shell-script copyright notices.  Suggested by Bruno Haible.
58650         Remove unnecessary parenthesization in regular expression.
58651
58652 2003-08-15  Jim Meyering  <jim@meyering.net>
58653
58654         Merge from coreutils.
58655         * lib/xgethostname.c: Include <stdlib.h>.
58656         (xghostname): Don't exit for anything other than memory-related
58657         failure; just return NULL.
58658         * lib/userspec.c: Include "posixver.h".
58659         (parse_user_spec): Accept `.' as a separator only
58660         in pre-POSIX-200112 mode.
58661         * lib/strtoimax.c: Use #elif rather than #else #if.
58662         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58663         Remove function, now that we can rely on a working tzset function.
58664         [!_LIBC]: Ensure that the required autoconf test has been run.
58665         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58666         Use underlying_strftime for %r.
58667         * lib/sha.c: Merge in some clean-up and optimization changes from
58668         glibc.
58669         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58670         Ensure that it is a multiple of 64.
58671         Rearrange loop exit tests so as to avoid performing an
58672         additional fread after encountering an error or EOF.
58673         * lib/realloc.c: Update copyright date.
58674
58675 2003-08-15  Jim Meyering  <jim@meyering.net>
58676         and Paul Eggert  <eggert@twinsun.com>
58677
58678         Merge from coreutils.
58679         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58680         member but strut utmpx does not.  Needed for AIX 4.3.3.
58681         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58682
58683 2003-08-15  Jim Meyering  <jim@meyering.net>
58684         and Paul Eggert  <eggert@cs.ucla.edu>
58685
58686         Merges from coreutils, etc.
58687         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58688         Require gl_FUNC_TZSET_CLOBBER.
58689         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58690         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58691         members.
58692
58693 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58694
58695         Help the merge from coreutils.
58696         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58697         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58698         * m4/tzset.m4: Use it too.
58699
58700 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58701
58702         * modules/tzset: New file.
58703
58704 2003-08-14  Jim Meyering  <jim@meyering.net>
58705
58706         Merges from coreutils.
58707         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58708         variable names, rather than @FNMATCH_H@.
58709         * modules/alloca: Likewise for $(ALLOCA_H).
58710
58711         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58712         the three copies of the literal target, `fnmatch.h'.
58713         * modules/alloca (alloca.h): Likewise.
58714
58715 2003-08-14  Jim Meyering  <jim@meyering.net>
58716
58717         Merge from coreutils.
58718         * m4/tzset.m4: New file.
58719         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58720         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58721         otherwise, AIX 5.1 systems would end up using the latter.
58722         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58723         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58724         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58725         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58726
58727 2003-08-14  Jim Meyering  <jim@meyering.net>
58728
58729         Merge from coreutils.
58730         * lib/obstack.h: Whitespace changes.
58731         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58732         and xcalloc return values.
58733         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58734         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58735         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58736         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58737         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58738         error from mntctl.
58739         Use mntctl's return value to drive the entry-processing loop, since
58740         we can't rely on the value of the vmt_length member in the last
58741         entry.  On some systems doing so could result in exhausting
58742         virtual memory.  Based in part on a patch from Mike Jetzer.
58743
58744 2003-08-14  Jim Meyering  <jim@meyering.net>
58745         and Paul Eggert  <eggert@twinsun.com>
58746
58747         Merges from coreutils, plus other fixes.
58748         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58749         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58750         for credits and details.  Thanks to Kaveh Ghazi for helping
58751         to keep these files in sync.
58752         (ARRAY_SIZE): Define it.
58753         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58754         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58755         (memcasecmp): Don't assume size_t fits in unsigned int.
58756         Remove casts and duplicate code.
58757         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58758         (memcpy): Remove definition.
58759         Merge in some clean-up and optimization changes from glibc.
58760         [BLOCKSIZE]: Move definition to top of file.
58761         Ensure that it is a multiple of 64.
58762         Rearrange loop exit tests so as to avoid performing an
58763         additional fread after encountering an error or EOF.
58764         * lib/md5.h (md5_uintptr): Define.
58765         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58766         return to the initial working directory.  Preserve errno
58767         for caller.
58768         * lib/idcache.c: Include "xalloc.h".
58769         (xmalloc, xrealloc): Remove decls.
58770         (getuser): Remove casts no longer required in C89.
58771         * lib/human.c: Include stdio.h, for sprintf.
58772         * lib/group-member.c: Include "xalloc.h".
58773         (xmalloc, xrealloc): Remove decls.
58774         (get_group_info): Remove casts no longer required in C89.
58775         * lib/getusershell.c (readname): Remove casts no longer required in
58776         C89.
58777         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58778         * lib/getline.c: Whitespace fix, from coreutils.
58779
58780 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58781
58782         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58783         Check for isascii.
58784
58785         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58786         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58787         Undo previous (whitespace-only) change.
58788
58789 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58790
58791         * lib/exclude.c: Include <ctype.h>
58792         (IN_CTYPE_DOMAIN): New macro.
58793         (is_space): New fn.
58794         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58795         and empty lines.
58796
58797         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58798         Undo previous (whitespace-only) change.
58799
58800 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58801
58802         * config/srclist-update: Change update back to the old behavior,
58803         leaving whitespace alone.  Use one 'sed' command rather than a
58804         pipeline.
58805         (fixlicense): Now a variable, not a function.
58806         (remove_trailing_blanks): Remove.
58807         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58808         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58809         Undo previous (whitespace-only) change.
58810
58811 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58812
58813         Merge from coreutils.
58814         * modules/euidaccess: Add lib_SOURCES, include for new
58815         file euidaccess.h
58816
58817 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58818
58819         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58820         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58821         Normalize leading white space and remove trailing white space.
58822
58823         Merge from coreutils
58824         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58825
58826         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58827         0.12.1.  These files are now being upgraded automatically by
58828         ../config/srclist-update.
58829
58830 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58831
58832         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58833         Normalize leading white space and remove trailing white space.
58834         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58835         notice, as per ../config/srclist-update.
58836
58837         Merge from coreutils.
58838         * lib/euidaccess.h: New file.
58839         * lib/euidaccess.c: Include it.
58840         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58841         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58842         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58843
58844 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58845
58846         * config/srclist-update: Add copyright notice.
58847         (remove_id_lines, remove_trailing_blanks): New constants.
58848         (fixfile): Use them to normalize spacing a bit in copied files.
58849         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58850         Normalize leading white space and remove trailing white space.
58851
58852         * config/texinfo.tex: Sync with texinfo.
58853
58854         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58855         strtoul.c from libc, to merge coreutils whitespace changes.
58856
58857         * config/srclist.txt: Get the following m4 files from gettext:
58858         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58859         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58860         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58861         wint_t.m4.
58862
58863 2003-08-12  Karl Berry  <karl@gnu.org>
58864
58865         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58866         been made.
58867
58868 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58869
58870         * modules/gnu-source, m4/gnu-source.m4:
58871         Remove; we're assuming Autoconf 2.54 or later now.
58872         Suggested by Bruno Haible.
58873         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58874
58875 2003-08-11  Bruno Haible  <bruno@clisp.org>
58876
58877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58878
58879 2003-08-11  Bruno Haible  <bruno@clisp.org>
58880
58881         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58882         (vasnprintf): Use it instead of wcslen.
58883
58884 2003-08-11  Bruno Haible  <bruno@clisp.org>
58885
58886         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58887         value to ensure that _Bool promotes to int. Use #define for _Bool when
58888         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58889
58890 2003-08-10  Karl Berry  <karl@gnu.org>
58891
58892         * lib/regex.h: update from libc (whitespace fix).
58893
58894 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58895
58896         Merge some files from coreutils.  These changes were
58897         originally made by Jim Meyering.
58898         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58899         many older Unixes require this.
58900         * lib/alloca.c (alloca): Remove cast to argument of free;
58901         no longer needed in C89.
58902         * lib/alloca_.h, regex.h: Fix white space to match
58903         what GNU indent does.
58904
58905 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58906
58907         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58908         apparently Emacs's Unicode mode got confused before my 2003-08-05
58909         checkin.
58910
58911 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58912
58913         * m4/extensions.m4: New file.
58914         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58915         Require gl_USE_SYSTEM_EXTENSIONS.
58916         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58917         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58918
58919 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58920
58921         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58922         * modules/extensions, modules/gnu-source: New files.
58923         * modules/timespec, modules/unlocked-io: Depend on extensions.
58924
58925 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58926
58927         * modules/restrict: New file.
58928         * MODULES.html.sh (func_all_modules): Add restrict.
58929         * modules/regex: Depend on restrict.
58930
58931 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58932
58933         * m4/restrict.m4: New file.
58934         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58935
58936 2003-08-07  Bruno Haible  <bruno@clisp.org>
58937
58938         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58939         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58940
58941 2003-08-07  Bruno Haible  <bruno@clisp.org>
58942
58943         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58944         makes the module 'getndelim2' compatible with the module 'getline'.
58945
58946 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58947
58948         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58949         byte with "\201" to avoid glitches when editing that source file
58950         with multi-gnome-terminal.
58951
58952 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58953
58954         * lib/bumpalloc.h: Remove.
58955
58956 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58957
58958         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58959         * modules/bumpalloc: Remove.
58960
58961 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58962
58963         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58964         GNU coding style.
58965
58966         Merge from coreutils.
58967         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58968         1. From glibc.
58969         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58970         from Karl Berry, implemented by Jim Meyering.
58971         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58972         from Dmitry V. Levin.
58973         Remove anachronistic cast of xrealloc.
58974         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58975         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58976         type. Otherwise, it wouldn't compile with at least /bin/cc on
58977         ymp-cray-unicos9.0.2.X.
58978         Combine two mostly-identical uses of alloca into one.
58979         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58980
58981 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58982
58983         [From Emacs.]
58984
58985         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58986         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58987         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58988         obsolete NLIST_NAME_UNION.
58989         [__GNU__]: Undef BSD and FSCALE.
58990         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58991
58992 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58993
58994         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58995         an enum type, so that it's guaranteed to promote to int.  See:
58996         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58997
58998 2003-08-03  Karl Berry  <karl@gnu.org>
58999
59000         * config/depcomp: update from automake.
59001
59002 2003-07-31  Paul Eggert  <eggert@twinsun.com>
59003
59004         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
59005         (strerror): Don't assume that a printable int fits in 14 bytes.
59006
59007 2003-07-31  Bruno Haible  <bruno@clisp.org>
59008
59009         * modules/getpass-gnu: New file.
59010         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
59011
59012 2003-07-31  Bruno Haible  <bruno@clisp.org>
59013
59014         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
59015
59016 2003-07-24  Karl Berry  <karl@gnu.org>
59017
59018         * config/missing: update from automake.
59019
59020 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
59021             Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
59024         * lib/getline.c (getline, getdelim): Likewise.
59025         Remove _GNU_SOURCE define; now it's defined in config.h through
59026         m4/getline.m4.
59027
59028 2003-07-23  Karl Berry  <karl@gnu.org>
59029
59030         * config/config.sub: update from prep.
59031
59032 2003-07-22  Paul Eggert  <eggert@twinsun.com>
59033
59034         * modules/xalloc (Depends-on): Add exitfail.
59035         * modules/xmemcoll: Likewise.
59036
59037 2003-07-22  Paul Eggert  <eggert@twinsun.com>
59038
59039         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
59040         over-parenthesization in macros.
59041
59042         Sync with coreutils.
59043
59044         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
59045         required by C99.
59046
59047         Use `exit_failure' for xalloc and xmemcoll instead of their own
59048         private exit-failure variables.
59049         * lib/xalloc.h (xalloc_exit_failure): Remove.
59050         * lib/xmalloc.c: Likewise.  Include exitfail.h.
59051         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
59052         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
59053         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
59054         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
59055
59056 2003-07-20  Jim Meyering  <jim@meyering.net>
59057
59058         * modules/closeout (Depends-on): Add exitfail.
59059         Suggestion from Bruno Haible.
59060
59061 2003-07-19  Karl Berry  <karl@gnu.org>
59062
59063         * config/config.sub: update from prep.
59064
59065 2003-07-18  Paul Eggert  <eggert@twinsun.com>
59066
59067         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
59068         Remove.
59069         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
59070         to test that it can stand by itself.  Include "exitfail.h".
59071         Clients should set exit_failure instead.
59072         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
59073
59074 2003-07-18  Bruno Haible  <bruno@clisp.org>
59075
59076         * modules/getndelim2: New file.
59077         * modules/getline: Share files with module getndelim2.
59078         * modules/getnline: Depend on getndelim2 instead of sharing files with
59079         it. Add getnline.c to lib_SOURCES.
59080         * MODULES.html.sh (func_all_modules): Add getndelim2.
59081
59082 2003-07-18  Bruno Haible  <bruno@clisp.org>
59083
59084         * m4/getndelim2.m4: New file.
59085         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
59086         invoke gl_PREREQ_GETNDELIM2.
59087         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
59088         gl_PREREQ_GETNDELIM2.
59089         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
59090         gl_GETNDELIM2.
59091
59092 2003-07-18  Bruno Haible  <bruno@clisp.org>
59093
59094         * lib/getndelim2.h: New file.
59095         * lib/getndelim2.c: Make into a module of its own. Include config.h,
59096         getndelim2.h.
59097         (getndelim2): Make non-static. Change return type to ssize_t.
59098         * lib/getline.h: Change argument names.
59099         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
59100         * lib/getnline.c: Include getndelim2.h.
59101
59102 2003-07-18  Andreas Schwab  <schwab@suse.de>
59103
59104         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
59105
59106 2003-07-17  Karl Berry  <karl@gnu.org>
59107
59108         * config/config.sub: update from prep.
59109
59110 2003-07-17  Bruno Haible  <bruno@clisp.org>
59111
59112         * modules/getnline: New file.
59113         * modules/getline: Add lib/getndelim2.c to source file list.
59114         * MODULES.html.sh (func_all_modules): Add getnline.
59115
59116 2003-07-17  Bruno Haible  <bruno@clisp.org>
59117
59118         * m4/getnline.m4: New file.
59119
59120 2003-07-17  Bruno Haible  <bruno@clisp.org>
59121
59122         * m4/Makefile.am.in: Remove file.
59123         * m4/Makefile.am: Remove file.
59124         * m4/Makefile.in: Remove file.
59125
59126 2003-07-17  Bruno Haible  <bruno@clisp.org>
59127
59128         * lib/getnline.h: New file.
59129         * lib/getnline.c: New file.
59130         * lib/getndelim2.c: New file, extracted from getline.c.
59131         (getndelim2): Renamed from getdelim2, with added nmax argument.
59132         * lib/getline.c: Include getndelim2.c.
59133         (getdelim2): Moved out to getndelim2.c.
59134         (getline, getdelim): Update.
59135
59136 2003-07-17  Bruno Haible  <bruno@clisp.org>
59137
59138         * lib/Makefile.am: Remove file.
59139         * lib/Makefile.in: Remove file.
59140
59141 2003-07-17  Bruno Haible  <bruno@clisp.org>
59142
59143         * configure.in: Remove file.
59144         * Makefile.in: Remove file.
59145
59146 2003-07-17  Bruno Haible  <bruno@clisp.org>
59147
59148         * MODULES.html.sh: Put the </BODY> right before </HTML>.
59149
59150 2003-07-16  Karl Berry  <karl@gnu.org>
59151
59152         * config/srclist-update: was running fixlicense twice, which caused
59153                 texinfo.tex to be nullified for some reason.  Simplify,
59154                 $gplsrc is no longer needed as far as I can see?
59155
59156 2003-07-16  Jim Meyering  <jim@meyering.net>
59157
59158         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
59159
59160 2003-07-15  Paul Eggert  <eggert@twinsun.com>
59161
59162         * config/srclist.txt: Get the following files from gettext-runtime/intl
59163         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
59164         ref-del.sin.  From Bruno Haible.
59165         * config/srclist-update (fixfile): Change grep pattern again, since the
59166         previous fix didn't work (there was another trailing $).  Use
59167         '[$]' to escape the $s.
59168
59169 2003-07-15  Karl Berry  <karl@gnu.org>
59170
59171         * lib/vasnprintf.c: update from gettext.
59172
59173 2003-07-15  Karl Berry  <karl@gnu.org>
59174
59175         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
59176         gets expanded when surrounded by '$'.
59177
59178 2003-07-15  Jim Meyering  <jim@meyering.net>
59179
59180         * modules/save-cwd: Don't depend on error.  From Derek Price.
59181
59182 2003-07-15  Jim Meyering  <jim@meyering.net>
59183
59184         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
59185
59186 2003-07-14  Simon Josefsson  <jas@extundo.com>
59187
59188         * modules/mempcpy: New file.
59189         * MODULES.html.sh (func_all_modules): Add mempcpy.
59190
59191 2003-07-14  Simon Josefsson  <jas@extundo.com>
59192
59193         * m4/mempcpy.m4: New file.
59194
59195 2003-07-14  Simon Josefsson  <jas@extundo.com>
59196
59197         * lib/mempcpy.h: New file.
59198         * lib/mempcpy.c: New file.
59199
59200 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59201
59202         * modules/getdate, modules/posixtm: Depend on mktime.
59203
59204 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59205
59206         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
59207         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
59208         unicodeio.c, unicodeio.h, unlocked-io.h:
59209         Switch from LGPL to GPL.
59210
59211 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59212
59213         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
59214         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
59215         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
59216         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
59217         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
59218         updated automatically by ../config/srclist-update.  This changes
59219         their license from LPGL to GPL.
59220
59221 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59222
59223         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
59224         assumed to refer to the root of the most recent stable gettext version.
59225         * config/srclistvars.sh: Add defaults for eggert.
59226         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
59227         Match "This program" as well as "The program".  This is needed
59228         for gettext.
59229
59230 2003-07-14  Jim Meyering  <jim@meyering.net>
59231
59232         Don't emit diagnostics.  Let callers do that.
59233         * lib/save-cwd.c: Don't include "error.h".
59234         (save_cwd): Don't call error.  Ensure that errno is valid
59235         when returning nonzero.
59236
59237         * lib/save-cwd.h (restore_cwd): Update prototype.
59238         * lib/save-cwd.c (restore_cwd): Remove two parameters.
59239         Simplify.  Don't call error upon failure.  Let callers do that.
59240         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
59241         when auditing is enabled.  But don't bother updating the #if.
59242
59243 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
59244
59245         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
59246         it breaks C++ compilation.
59247         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
59248
59249 2003-07-10  Simon Josefsson  <jas@extundo.com>
59250
59251         * modules/strchrnul (Makefile.am): Add strchrnul.h.
59252
59253 2003-07-10  Jim Meyering  <jim@meyering.net>
59254
59255         * m4/clock_time.m4: Remove trailing blank.
59256         * m4/intmax_t.m4: Likewise.
59257
59258 2003-07-10  Jim Meyering  <jim@meyering.net>
59259
59260         * lib/vasnprintf.c: Remove trailing blanks.
59261         Make cpp indentation consistent.
59262
59263 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59264
59265         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
59266         posixver.c, strftime.c, strnlen.c, strverscmp.c:
59267         Switch from LGPL to GPL.
59268
59269 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59270
59271         * config/srclist.txt: Sort sublists.  Add
59272         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
59273         that differ from gnulib for one reason or another; we'd like this list
59274         to be smaller but for now let's document what we have.
59275
59276 2003-07-08  Paul Eggert  <eggert@twinsun.com>
59277
59278         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
59279         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
59280         and sweeter "eval x=$x".
59281         * config/srclist.txt: Get lib/argp* from glibc.
59282
59283 2003-07-07  Paul Eggert  <eggert@twinsun.com>
59284
59285         * lib/mktime.c: Fix some boundary cases and remove need for floating
59286         point.
59287
59288         Issue a compile-time diagnostic if time_t is floating point, or if
59289         two's complement arithmetic is not in effect, or if arithmetic
59290         right shift does not propagate the sign.  These assumptions were
59291         all in the original code but they weren't checked.
59292
59293         (TIME_T_MIDPOINT, verify): New macros.
59294         (__isleap): Remove; it has integer overflow problems.
59295         (leapyear): New function, without those problems.
59296         (ydhms_tm_diff): Remove; splitting into two parts.
59297         (ydhms_diff): New function, containing the arithmetic part of
59298         the old ydhms_tm_diff function.  Issue a compile-time
59299         diagnostic if we are not using C99 integer division.
59300         Avoid casts when possible.
59301         (guess_time_tm): New function, containing the checking part of
59302         the old ydhms_tm_diff function.  Return the new value, rather than
59303         the difference between it and the old.  Accept a new argument T
59304         so that *T specifies the old value.  Check for overflow in the result.
59305
59306         (__mktime_internal): Use a time_t offset, not a long int offset.
59307         This undoes the 2003-06-04 change, which is no longer needed now
59308         that we have better overflow checking.
59309         (localtime_offset): Likewise.
59310
59311         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59312         and long are 64-bit but int is only 32-bit.
59313         (ydhms_diff): Use long int to store year1 and yday1.
59314         Issue a compile-time diagnostic if long int is not wide enough.
59315
59316         (__mktime_internal): Use long int to store adjusted year and yday.
59317         Use plain C rather than preprocessor commands, if that doesn't
59318         affect efficiency.
59319         Check for overflow (and try to repair) after each probe
59320         rather than checking only at the very end.  This avoids some bugs
59321         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59322         does not equal GMT offset at maximum time).
59323         Use integer to check for overflow rather than floating point; this
59324         is more portable to non-IEEE hosts, and is a tad faster.
59325         When we detect that we are oscillating between two values,
59326         don't check whether tm_isdst has the requested value, since
59327         we already know the answer.  When tm_isdst has the wrong value,
59328         use a different heuristic to find the right one, based on the
59329         extreme values actually observed in practice in tz2003a,
59330         rather than the (overly optimistic) "previous 3 calendar quarters".
59331
59332         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59333         "T const" to accommodate glibc style.
59334         (check_result): Use less-confusing report format.  "long" -> "long int.
59335         (main): Likewise.
59336         Don't loop if the iteration overflows time_t.
59337         Allow a negative step in the iteration.
59338
59339 2003-07-06  Karl Berry  <karl@gnu.org>
59340
59341         * config/depcomp: update from automake.
59342         * config/config.sub: update from prep.
59343
59344 2003-07-03  Karl Berry  <karl@gnu.org>
59345
59346         * config/config.guess: update from prep.
59347
59348 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59349
59350         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59351         xreadlink.c now includes it unconditionally.
59352
59353 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59354
59355         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59356         having it depend on HAVE_SYS_TYPES_H.
59357
59358 2003-07-01  Bruno Haible  <bruno@clisp.org>
59359
59360         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59361         <sys/types.h> should be sufficient.
59362         Reported by Paul Eggert.
59363
59364 2003-06-26  Karl Berry  <karl@gnu.org>
59365
59366         * config/depcomp: update from automake.
59367
59368 2003-06-26  Bruno Haible  <bruno@clisp.org>
59369
59370         * modules/human: Depend on module stdbool.
59371
59372 2003-06-25  Bruno Haible  <bruno@clisp.org>
59373
59374         * modules/readlink: New file.
59375         * modules/xreadlink: Depend on it.
59376         * MODULES.html.sh (func_all_modules): Add readlink.
59377
59378 2003-06-25  Bruno Haible  <bruno@clisp.org>
59379
59380         * m4/readlink.m4: New file.
59381
59382 2003-06-25  Bruno Haible  <bruno@clisp.org>
59383
59384         * lib/readlink.c: New file.
59385
59386 2003-06-22  Karl Berry  <karl@gnu.org>
59387
59388         * config/srclist.txt: update mkinstalldirs from automake.
59389         * config/mkinstalldirs: update.
59390
59391 2003-06-22  Bruno Haible  <bruno@clisp.org>
59392
59393         Portability to mingw32.
59394         * m4/ssize_t.m4: New file, from GNU gettext.
59395         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59396         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59397
59398 2003-06-22  Bruno Haible  <bruno@clisp.org>
59399
59400         * modules/safe-read: Add m4/ssize_t.m4.
59401         * modules/xreadlink: Add m4/ssize_t.m4.
59402
59403 2003-06-20  Bruno Haible  <bruno@clisp.org>
59404
59405         Assume C89, so PARAMS isn't needed.
59406         * lib/unicodeio.h (PARAMS): Remove.
59407         * lib/unicodeio.c: Don't use PARAMS.
59408
59409 2003-06-18  Karl Berry  <karl@gnu.org>
59410
59411         * config/config.{guess,sub}: update from prep.
59412
59413 2003-06-18  Jim Meyering  <jim@meyering.net>
59414
59415         Merge changes from coreutils.
59416         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59417         Remove explicit declarations of xmalloc and realloc.
59418         Include xalloc.h.
59419         (read_utmp): Remove anachronistic cast of xmalloc.
59420
59421 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59422
59423         Assume C89, so PARAMS isn't needed.
59424         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59425         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59426         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59427         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59428         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59429         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59430         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59431         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59432         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59433         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59434         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59435         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59436         no longer needed. Anyway, config.h should always be included before any
59437         other file.
59438
59439 2003-06-11  Simon Josefsson  <jas@extundo.com>
59440
59441         * modules/sysexits: New file.
59442         * MODULES.html.sh (func_all_modules): Add sysexits.
59443
59444 2003-06-11  Simon Josefsson  <jas@extundo.com>
59445
59446         * lib/sysexit_.h: New file.
59447
59448 2003-06-11  Derek Price  <derek@ximbiot.com>
59449
59450         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59451         necessary.
59452
59453 2003-06-11  Bruno Haible  <bruno@clisp.org>
59454
59455         * m4/sysexits.m4: New file.
59456
59457 2003-06-10  Simon Josefsson  <jas@extundo.com>
59458
59459         * lib/argp.h: New file, from glibc.
59460         * lib/argp-ba.c: New file, from glibc.
59461         * lib/argp-eexst.c: New file, from glibc.
59462         * lib/argp-fmtstream.c: New file, from glibc.
59463         * lib/argp-fmtstream.h: New file, from glibc.
59464         * lib/argp-fs-xinl.c: New file, from glibc.
59465         * lib/argp-help.c: New file, from glibc.
59466         * lib/argp-namefrob.h: New file, from glibc.
59467         * lib/argp-parse.c: New file, from glibc.
59468         * lib/argp-pv.c: New file, from glibc.
59469         * lib/argp-pvh.c: New file, from glibc.
59470         * lib/argp-xinl.c: New file, from glibc.
59471
59472 2003-06-10  Simon Josefsson  <jas@extundo.com>
59473
59474         * modules/strchrnul: New file.
59475
59476 2003-06-10  Simon Josefsson  <jas@extundo.com>
59477
59478         * modules/argp: New file.
59479
59480 2003-06-10  Simon Josefsson  <jas@extundo.com>
59481
59482         * m4/strchrnul.m4: New file.
59483
59484 2003-06-10  Simon Josefsson  <jas@extundo.com>
59485
59486         * lib/strchrnul.h: New file.
59487         * lib/strchrnul.c: New file.
59488
59489 2003-06-10  Bruno Haible  <bruno@clisp.org>
59490
59491         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59492
59493 2003-06-07  Karl Berry  <karl@gnu.org>
59494
59495         * config/config.{guess,sub}: update from prep.
59496
59497 2003-06-07  Jim Meyering  <jim@meyering.net>
59498
59499         * modules/strtod: Use $(...) notation, not @...@ for
59500         AC_REPLACE'd variables.
59501         * modules/localcharset: Likewise.
59502
59503 2003-06-07  Jim Meyering  <jim@meyering.net>
59504
59505         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59506         in place of my name in the copyright comment.
59507         Remove definition and uses of __P.
59508
59509         From coreutils.
59510         * lib/stat.c: Don't declare xmalloc explicitly.
59511         Instead, include "xalloc.h".
59512         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59513         xrealloc, and xcalloc return values.
59514         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59515         Improve comment.
59516         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59517
59518 2003-06-07  Bruno Haible  <bruno@clisp.org>
59519
59520         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59521         avoid AC_CONFIG_LINKS.
59522         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59523         fnmatch.h, to avoid AC_CONFIG_LINKS.
59524         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59525
59526 2003-06-07  Bruno Haible  <bruno@clisp.org>
59527
59528         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59529         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59530         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59531         directory.
59532         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59533         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59534         directory.
59535
59536 2003-06-06  Jim Meyering  <jim@meyering.net>
59537
59538         Merge from coreutils.
59539         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59540         Consolidate declarations and initializations of *_base* locals.
59541
59542         Merge from coreutils.
59543         This avoids a core dump on systems without GNU putenv,
59544         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59545         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59546         (unsetenv): New static function, from GNU libc.
59547         (rpl_putenv): Use it.
59548
59549         * lib/modechange.c: Remove trailing blanks.
59550
59551         Merge from coreutils.
59552         * lib/fsusage.c: Remove declaration of statfs.
59553         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59554
59555         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59556
59557 2003-06-06  Jim Meyering  <jim@meyering.net>
59558
59559         * lib/stdbool_.h: Renamed from stdbool.h.in.
59560
59561 2003-06-06  Jim Meyering  <jim@meyering.net>
59562             Bruno Haible  <bruno@clisp.org>
59563
59564         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59565         Adjust Makefile.am snippet not to redirect directly to target.
59566         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59567
59568 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59569
59570         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59571         mismatch, look in future quarters as well as past.  This fixes a
59572         bug when processing fall-backwards gaps immediately after a long
59573         period of daylight-saving time.
59574
59575         * lib/mktime.c: Assume freestanding C89 or better.
59576         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59577         (__P): Remove; not used.
59578         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59579         (mktime, not_equal_tm, print_tm, check_result,
59580         main): Use prototypes.  Use const * where appropriate.
59581         (main): Fix typo in testing code that uncovered by above changes.
59582         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59583
59584 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59585
59586         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59587         locale.h, localeconv.  This merges changes from coreutils.
59588
59589         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59590         It can be removed after the next Autoconf is released.
59591         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59592         needed.
59593
59594 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59595
59596         * lib/mktime.c: Fix Debian bug 177940
59597         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59598         (localtime_offset): Now long int, not time_t, because we want it
59599         to be guaranteed to be signed.  All uses changed.
59600         (__mktime_internal): If overflow would occur when adding offset,
59601         don't add it.
59602
59603         Merge 'human' changes from coreutils.  Rewrite to support
59604         locale-specific notations like thousands separators.
59605         * lib/human.c: Simplify authorship notice.
59606         Include human.h immediately after config.h.
59607         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59608         <limits.h>: Do not include, since human.h does.
59609         (SIZE_MAX, UINTMAX_MAX): New macros.
59610         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59611         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59612         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59613         (power_letter): Renamed from suffixes.
59614         (generate_suffix_backwards): Remove.
59615         (adjust_value): Now takes int style (because of human.h changes)
59616         and long double value (for greater precision on some platforms).
59617         (group_number): New function.
59618         (human_readable): Use it.  Use integer options, not enum.
59619         Put the options before the sizes in the arg list.
59620         Support all the new options.
59621         The old human_readable function has been removed;
59622         use inttostr.h instead.
59623         (human_readable, default_block_size, humblock):
59624         Use uintmax_t, not int, for block sizes.
59625         (human_readable_inexact, block_size_types): Remove.
59626         (block_size_opts): New constant.
59627         (human_options): Renamed from human_block_size, with new signature
59628         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59629         * lib/human.h: Add copyright and authorship notice.
59630         Include <limits.h> and <stdbool.h> unconditionally.
59631         (PARAMS): Remove.  All uses removed.
59632         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59633         (enum human_inexact_style): Remove tag; now a nameless enum.
59634         (human_floor, human_ceiling, human_round_to_even): Now have
59635         values 2, 0, 1 rather than -1, 1, 0.
59636         (human_group_digits, human_suppress_point_zero, human_autoscale,
59637         human_base_1024, human_SI, human_B): New constants.
59638         (human_readable_inexact, human_block_size): Remove.
59639         (human_readable): Size args are now uintmax_t, not int.
59640         (human_options): New decl.
59641
59642         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59643         unnecessary now that we assume C89 or better.  This change
59644         imported from coreutils.
59645
59646         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59647         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59648         in the 2003-05-30 sync from glibc.
59649
59650         .h files should stand alone, but we shouldn't include <sys/types.h>
59651         if we can get away with just <stddef.h>.
59652
59653         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59654         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59655         rather than <sys/types.h>, as we merely need size_t.
59656         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59657         to get size_t.
59658         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59659         Include <stdio.h>, to get FILE.
59660         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59661         memcasecmp.h has included <stddef.h> and all we need is size_t.
59662         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59663         our interface, instead of including <sys/types.h>
59664
59665 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59666
59667         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59668         now, as glibc mktime is buggy on non-glibc systems.
59669
59670 2003-06-03  Karl Berry  <karl@gnu.org>
59671
59672         * config/config.sub: update from prep.
59673
59674 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59675
59676         [from coreutils]
59677         Fix some minor time-related bugs with POSIX time arguments.
59678         Some valid time stamps were being rejected (notably -1, and
59679         time stamps before 1900 on 64-bit hosts).  And some invalid
59680         time stamps were being accepted, e.g. September 31.
59681
59682         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59683         that we can return (time_t) -1 successfully.
59684         * lib/posixtm.c: Likewise.
59685         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59686         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59687         (t): Remove static var.
59688         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59689         of static var.  All uses changed.
59690         (year): Do not reject years before 1900; they can occur with
59691         64-bit time_t.
59692         (posix_time_parse): Do not check for out-of-range components;
59693         that is now the caller's responsibility, since our checks were
59694         only approximations.
59695         (posixtime): Use mktime to check for out-of-range components,
59696         since it knows them exactly.
59697         If mktime returns (time_t) -1, check whether an error actually occurred
59698         by invoking localtime on -1.
59699         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59700         posixtime failures better.
59701         Improve the test data (in comments only).
59702
59703 2003-06-02  Karl Berry  <karl@gnu.org>
59704
59705         * config/mkinstalldirs (version): new variable.
59706         (--version): new option.
59707         (usage): improve message.
59708
59709 2003-05-30  Karl Berry  <karl@gnu.org>
59710
59711         * lib/mktime.c: update from libc.
59712
59713 2003-05-30  Bruno Haible  <bruno@clisp.org>
59714
59715         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59716         * config/config.rpath: Upgrade to gettext-0.12.1.
59717
59718 2003-05-30  Bruno Haible  <bruno@clisp.org>
59719
59720         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59721         * m4/nls.m4: New file, from gettext-0.12.1.
59722         * m4/po.m4: New file, from gettext-0.12.1.
59723         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59724
59725 2003-05-30  Bruno Haible  <bruno@clisp.org>
59726
59727         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59728         * lib/localcharset.h: Likewise.
59729         * lib/localcharset.c: Likewise.
59730
59731 2003-05-29  Karl Berry  <karl@gnu.org>
59732
59733         * config/config.rpath: update from gettext.
59734
59735 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59736
59737         Assume the headers required for C89 freestanding compilers.
59738         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59739         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59740         * m4/human.m4 (gl_HUMAN): Likewise.
59741         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59742         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59743         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59744         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59745         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59746         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59747
59748 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59749
59750         Assume the headers required for C89 freestanding compilers.
59751         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59752         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59753         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59754         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59755         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59756         define, since <limits.h> is guaranteed to do that.
59757         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59758         * lib/exclude.c: Include <stdbool.h> unconditionally.
59759         * lib/tempname.c: Include <stddef.h> unconditionally.
59760         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59761         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59762         <stddef.h> does that.
59763         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59764         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59765         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59766         needed.
59767         * lib/xstrtol.c: Likewise.
59768         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59769         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59770
59771         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59772         warnings on some platforms.
59773
59774         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59775         arbitrarily.
59776
59777 2003-05-26  Jim Meyering  <jim@meyering.net>
59778
59779         Merge in a change from coreutils:
59780         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59781         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59782         that condition, rather than `-1' which is slightly misleading.
59783         Change the name of the cache variable to have the gl_ prefix.
59784         Prompted by a patch from Richard Dawe for DJGPP.
59785
59786 2003-05-24  Karl Berry  <karl@gnu.org>
59787
59788         * config/config.guess: update from prep.
59789
59790 2003-05-22  Karl Berry  <karl@gnu.org>
59791
59792         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59793
59794 2003-05-20  Karl Berry  <karl@gnu.org>
59795
59796         * config/config.guess: update from prep.
59797
59798 2003-05-18  Karl Berry  <karl@gnu.org>
59799
59800         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59801         might actually be set by the user.
59802
59803         * config/depcomp, install-sh, mdate-sh: update from automake.
59804
59805 2003-05-17  Bruno Haible  <bruno@clisp.org>
59806
59807         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59808         invalid expansion for AC_EGREP_CPP.
59809         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59810         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59811         Suggested by Akim Demaille <akim@epita.fr> in
59812         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59813
59814 2003-05-12  Jim Meyering  <jim@meyering.net>
59815
59816         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59817         the space-padded-by-default conversion specifiers, %e, %k, %l.
59818
59819 2003-05-12  Bruno Haible  <bruno@clisp.org>
59820
59821         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59822         the string is longer than 4 KB.
59823
59824 2003-05-11  Karl Berry  <karl@gnu.org>
59825
59826         * config/config.{guess,sub}: update from prep.
59827
59828 2003-05-09  Bruno Haible  <bruno@clisp.org>
59829
59830         * modules/error: Add m4/strerror_r.m4 to file list.
59831
59832 2003-05-03  Bruno Haible  <bruno@clisp.org>
59833
59834         Upgrade to Unicode-4.0.
59835         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59836         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59837         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59838         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59839         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59840         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59841         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59842         Change width of U+E0100..U+E01EF from 1 to 0.
59843
59844 2003-04-25  Jim Meyering  <jim@meyering.net>
59845
59846         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59847         of type size_t, not int.
59848
59849 2003-04-25  Bruno Haible  <bruno@clisp.org>
59850
59851         * lib/copy-file.c: Include <stddef.h>, for size_t.
59852
59853 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59854
59855         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59856         code which expansion is under static control.  Patch imported from
59857         Akim Demaille's patch to Bison; see
59858         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59859
59860 2003-04-14  Bruno Haible  <bruno@clisp.org>
59861
59862         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59863
59864 2003-04-11  Jim Meyering  <jim@meyering.net>
59865
59866         Merge changes from Coreutils.
59867
59868         2003-03-22  Jim Meyering  <jim@meyering.net>
59869
59870         * lib/strftime.c (widen): Cast alloca return value to proper type.
59871
59872         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59873
59874         From GNU libc.
59875         * lib/strftime.c (my_strftime): Handle very large width
59876         specifications for numeric values correctly.  Improve checks for
59877         overflow.
59878
59879         2003-01-19  Jim Meyering  <jim@meyering.net>
59880
59881         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59882         definitions.
59883         (nl_get_alt_digit) [! defined my_strftime]: Define.
59884         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59885         _nl_get_alt_digit and _nl_get_walt_digit.
59886
59887         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59888         libc. These changes have no effect outside of _LIBC.
59889
59890 2003-04-10  Bruno Haible  <bruno@clisp.org>
59891
59892         * modules/findprog: New file.
59893         * MODULES.html.sh (func_all_modules): Add it.
59894
59895 2003-04-10  Bruno Haible  <bruno@clisp.org>
59896
59897         * m4/findprog.m4: New file.
59898         * m4/eaccess.m4: New file.
59899
59900 2003-04-10  Bruno Haible  <bruno@clisp.org>
59901
59902         * lib/findprog.h: New file, from GNU gettext.
59903         * lib/findprog.c: New file, from GNU gettext.
59904
59905 2003-04-05  Jim Meyering  <jim@meyering.net>
59906
59907         Merge changes from Coreutils.
59908
59909         * lib/exclude.h (PARAMS): Remove definition and uses.
59910         * lib/exclude.c: Remove uses of `PARAMS'.
59911
59912         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59913         Add test-cases for DOS filenames. Declare program_name.
59914         (main): Set up program_name.  Patch by Rich Dawe.
59915
59916         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59917         error from mntctl.
59918         Use mntctl's return value to drive the entry-processing loop, since
59919         we can't rely on the value of the vmt_length member in the last
59920         entry.  On some systems doing so could result in exhausting
59921         virtual memory.  Based in part on a patch from Mike Jetzer.
59922
59923 2003-04-04  Bruno Haible  <bruno@clisp.org>
59924
59925         * modules/linebreak: New file.
59926         * MODULES.html.sh (func_all_modules): Add it.
59927
59928 2003-04-04  Bruno Haible  <bruno@clisp.org>
59929
59930         * m4/linebreak.m4: New file.
59931
59932 2003-04-04  Bruno Haible  <bruno@clisp.org>
59933
59934         * lib/linebreak.h: New file, from GNU gettext.
59935         * lib/linebreak.c: New file, from GNU gettext with slight
59936         modifications.
59937         * lib/lbrkprop.h: New file, from GNU gettext.
59938
59939 2003-04-03  Bruno Haible  <bruno@clisp.org>
59940
59941         * modules/utf8-ucs4: New file.
59942         * modules/utf16-ucs4: New file.
59943         * modules/ucs4-utf8: New file.
59944         * modules/ucs4-utf16: New file.
59945         * MODULES.html.sh (func_all_modules): Add them.
59946
59947 2003-04-03  Bruno Haible  <bruno@clisp.org>
59948
59949         * m4/utf-ucs4.m4: New file.
59950         * m4/ucs4-utf.m4: New file.
59951
59952 2003-04-03  Bruno Haible  <bruno@clisp.org>
59953
59954         * lib/utf8-ucs4.h: New file, from GNU gettext.
59955         * lib/utf16-ucs4.h: New file, from GNU gettext.
59956         * lib/ucs4-utf8.h: New file, from GNU gettext.
59957         * lib/ucs4-utf16.h: New file, from GNU gettext.
59958
59959 2003-04-02  Bruno Haible  <bruno@clisp.org>
59960
59961         * modules/binary-io: New file.
59962         * MODULES.html.sh (func_all_modules): Add it.
59963
59964 2003-04-02  Bruno Haible  <bruno@clisp.org>
59965
59966         * lib/binary-io.h: New file, from GNU gettext.
59967
59968 2003-04-01  Bruno Haible  <bruno@clisp.org>
59969
59970         * modules/pathname: New file.
59971         * MODULES.html.sh (func_all_modules): Add it.
59972
59973 2003-04-01  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/pathname.h: New file, from GNU gettext.
59976         * lib/concatpath.c: New file, from GNU gettext.
59977
59978 2003-03-30  Bruno Haible  <bruno@clisp.org>
59979
59980         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59981
59982 2003-03-30  Bruno Haible  <bruno@clisp.org>
59983
59984         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59985         function chown() doesn't exist.
59986
59987 2003-03-28  Bruno Haible  <bruno@clisp.org>
59988
59989         * modules/copy-file: New file.
59990         * MODULES.html.sh (func_all_modules): Add it.
59991
59992 2003-03-28  Bruno Haible  <bruno@clisp.org>
59993
59994         * m4/copy-file.m4: New file.
59995
59996 2003-03-28  Bruno Haible  <bruno@clisp.org>
59997
59998         * lib/copy-file.h: New file, from GNU gettext.
59999         * lib/copy-file.c: New file, from GNU gettext.
60000
60001 2003-03-18  Jim Meyering  <jim@meyering.net>
60002
60003         * lib/quote.c (quote_n): Fix typo in comment.
60004
60005 2003-03-18  Bruno Haible  <bruno@clisp.org>
60006
60007         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
60008         checking.
60009         * m4/onceonly_2_57.m4: Likewise.
60010
60011 2003-03-17  Bruno Haible  <bruno@clisp.org>
60012
60013         * m4/onceonly.m4: Require autoconf 2.54 or newer.
60014         (m4_quote): Remove macro.
60015         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
60016
60017 2003-03-14  Jim Meyering  <jim@meyering.net>
60018
60019         Merge changes from Coreutils.
60020         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
60021         to be const, in order to avoid warnings.
60022         (obstack_room): Likewise.
60023         (obstack_empty_p): Likewise.
60024
60025 2003-03-14  Bruno Haible  <bruno@clisp.org>
60026
60027         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
60028         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
60029
60030 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60031
60032         Merge changes from Bison.
60033         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
60034         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
60035         when compiling Bison 1.875's `bitset bset = obstack_alloc
60036         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
60037         * lib/hash.c: Include <stdbool.h> unconditionally.
60038
60039 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60040
60041         * m4/onceonly.m4 (m4_quote): New macro.
60042         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
60043         Quote AC_FOREACH variable-expansions properly.
60044
60045 2003-03-13  Paul Eggert  <eggert@twinsun.com>
60046
60047         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
60048
60049 2003-03-09  Paul Eggert  <eggert@twinsun.com>
60050
60051         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
60052         Reported by Bruce Becker; see:
60053         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
60054
60055 2003-03-03  Paul Eggert  <eggert@twinsun.com>
60056             Bruno Haible  <bruno@clisp.org>
60057
60058         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
60059         Reported by John Hughes, see
60060         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
60061
60062 2003-02-20  Bruno Haible  <bruno@clisp.org>
60063
60064         * MODULES.html.sh (func_all_modules): Add poll.
60065
60066 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60067
60068         * modules/poll: New file.
60069
60070 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60071
60072         * lib/poll_.h: New file.
60073         * lib/poll.c: New file.
60074
60075 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
60076
60077         * m4/poll.m4: New file.
60078
60079 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60080
60081         * modules/mathl: New file.
60082
60083 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60084
60085         * lib/mathl.h: New file.
60086         * lib/acosl.c: New file.
60087         * lib/asinl.c: New file.
60088         * lib/atanl.c: New file.
60089         * lib/ceill.c: New file.
60090         * lib/cosl.c: New file.
60091         * lib/expl.c: New file.
60092         * lib/floorl.c: New file.
60093         * lib/frexpl.c: New file.
60094         * lib/ldexpl.c: New file.
60095         * lib/logl.c: New file.
60096         * lib/sincosl.c: New file.
60097         * lib/sinl.c: New file.
60098         * lib/sqrtl.c: New file.
60099         * lib/tanl.c: New file.
60100         * lib/trigl.c: New file.
60101         * lib/trigl.h: New file.
60102
60103 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60104
60105         * m4/mathl.m4: New file.
60106
60107 2003-02-18  Bruno Haible  <bruno@clisp.org>
60108
60109         * MODULES.html.sh (func_all_modules): Add mathl.
60110
60111 2003-02-17  Bruno Haible  <bruno@clisp.org>
60112
60113         * modules/mkdtemp: New module.
60114         * MODULES.html.sh (func_all_modules): Add it.
60115
60116 2003-02-17  Bruno Haible  <bruno@clisp.org>
60117
60118         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
60119
60120 2003-02-17  Bruno Haible  <bruno@clisp.org>
60121
60122         * lib/mkdtemp.h: New file, from GNU gettext.
60123         * lib/mkdtemp.c: New file, from GNU gettext.
60124
60125 2003-02-02  Jim Meyering  <jim@meyering.net>
60126
60127         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
60128         e.g. glibc-2.2.93.
60129
60130 2003-01-31  Bruno Haible  <bruno@clisp.org>
60131
60132         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
60133         'rpl_rename'.
60134         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
60135         'rpl_strnlen'.
60136         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
60137         'rpl_strtod'.
60138         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
60139         'rpl_utime'.
60140
60141 2003-01-31  Bruno Haible  <bruno@clisp.org>
60142
60143         * lib/rename.c: #undef rename before defining rpl_rename.
60144         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
60145
60146 2003-01-30  Bruno Haible  <bruno@clisp.org>
60147
60148         * modules/vasnprintf, modules/vasprintf: New modules.
60149         * MODULES.html.sh (func_all_modules): Add them.
60150
60151 2003-01-30  Bruno Haible  <bruno@clisp.org>
60152
60153         * m4/signed.m4: New file, from GNU gettext.
60154         * m4/longdouble.m4: New file, from GNU gettext.
60155         * m4/wchar_t.m4: New file, from GNU gettext.
60156         * m4/wint_t.m4: New file, from GNU gettext.
60157         * m4/vasnprintf.m4: New file.
60158         * m4/vasprintf.m4: New file.
60159
60160 2003-01-30  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/printf-args.h: New file, from GNU gettext.
60163         * lib/printf-args.c: New file, from GNU gettext.
60164         * lib/printf-parse.h: New file, from GNU gettext.
60165         * lib/printf-parse.c: New file, from GNU gettext.
60166         * lib/vasnprintf.h: New file, from GNU gettext.
60167         * lib/vasnprintf.c: New file, from GNU gettext.
60168         * lib/asnprintf.c: New file, from GNU gettext.
60169         * lib/vasprintf.h: New file, from GNU gettext with modifications.
60170         * lib/vasprintf.c: New file, from GNU gettext.
60171         * lib/asprintf.c: New file, from GNU gettext.
60172
60173 2003-01-29  Bruno Haible  <bruno@clisp.org>
60174
60175         * modules/stpncpy: New module.
60176         * MODULES.html.sh (func_all_modules): Add it.
60177
60178 2003-01-29  Bruno Haible  <bruno@clisp.org>
60179
60180         * m4/stpncpy.m4: New file.
60181
60182 2003-01-29  Bruno Haible  <bruno@clisp.org>
60183
60184         * lib/stpncpy.h: New file, from GNU gettext with modifications.
60185         * lib/stpncpy.c: New file, from GNU gettext with modifications.
60186
60187 2003-01-28  Bruno Haible  <bruno@clisp.org>
60188
60189         * modules/c-ctype: New module.
60190         * MODULES.html.sh (func_all_modules): Add it.
60191
60192 2003-01-28  Bruno Haible  <bruno@clisp.org>
60193
60194         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
60195         Paul Eggert.
60196         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
60197         Paul Eggert.
60198
60199 2003-01-27  Bruno Haible  <bruno@clisp.org>
60200
60201         * modules/xsetenv: New module.
60202         * MODULES.html.sh (func_all_modules): Add it.
60203
60204 2003-01-27  Bruno Haible  <bruno@clisp.org>
60205
60206         * lib/xsetenv.h: New file, from GNU gettext.
60207         * lib/xsetenv.c: New file, from GNU gettext.
60208
60209 2003-01-23  Jim Meyering  <jim@meyering.net>
60210
60211         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
60212         from working on systems without dirfd (at least Irix and OSF1/Tru64).
60213
60214 2003-01-23  Bruno Haible  <bruno@clisp.org>
60215
60216         * modules/minmax: New module.
60217         * MODULES.html.sh (func_all_modules): Add it.
60218
60219 2003-01-23  Bruno Haible  <bruno@clisp.org>
60220
60221         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
60222         Eggert.
60223
60224 2003-01-22  Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/exit: New module.
60227         * MODULES.html.sh (func_all_modules): Add it.
60228
60229 2003-01-22  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/exit.h: New file, from GNU gettext.
60232
60233 2003-01-19  Bruno Haible  <bruno@clisp.org>
60234
60235         * gnulib-tool: Recognize option --extract-maintainer.
60236         (func_get_maintainer): New function.
60237         * modules/*: Add Maintainer entry.
60238
60239 2003-01-16  Jim Meyering  <jim@meyering.net>
60240
60241         * m4/regex.m4: The `regex' struct is both input and output.
60242         Initialize it before each use.  Patch by Tim Waugh.
60243
60244 2003-01-16  Bruno Haible  <bruno@clisp.org>
60245
60246         * MODULES.html.sh: Add a table of contents. Add the module name as
60247         leftmost column. Add hyperlinks.
60248
60249 2003-01-15  Bruno Haible  <bruno@clisp.org>
60250
60251         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
60252
60253 2003-01-15  Bruno Haible  <bruno@clisp.org>
60254
60255         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
60256         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
60257         suffix.
60258
60259 2003-01-15  Bruno Haible  <bruno@clisp.org>
60260
60261         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
60262
60263 2003-01-15  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
60266         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
60267
60268 2003-01-14  Jim Meyering  <jim@meyering.net>
60269
60270         * lib/same.c (same_name): Tweak a comment.
60271
60272 2003-01-14  Bruno Haible  <bruno@clisp.org>
60273
60274         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
60275         when a string comparison is sufficient.
60276
60277 2003-01-14  Bruno Haible  <bruno@clisp.org>
60278
60279         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
60280         'unsigned int'.
60281
60282 2003-01-14  Bruno Haible  <bruno@clisp.org>
60283
60284         * lib/hash-pjw.c: Add comment about low quality of this function.
60285
60286 2003-01-13  Bruno Haible  <bruno@clisp.org>
60287
60288         * modules/stpcpy: Distribute lib/stpcpy.h.
60289         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
60290
60291 2003-01-13  Bruno Haible  <bruno@clisp.org>
60292
60293         * modules/*: Add a description.
60294         * modules/strpbrk: Fix Makefile.am snippet.
60295         * modules/strtoimax: Fix dependencies.
60296         * modules/strtoumax: Likewise.
60297
60298 2003-01-13  Bruno Haible  <bruno@clisp.org>
60299
60300         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
60301         * modules/alloca (Makefile.am): All object files depend on alloca.h.
60302         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
60303
60304 2003-01-13  Bruno Haible  <bruno@clisp.org>
60305
60306         * gnulib-tool (func_create_testdir): Store config/* files in the main
60307         directory.
60308         * config.rpath: Move to ...
60309         * config/config.rpath: ... here.
60310         * modules/gettext: Contains config/config.rpath, not config.rpath.
60311         * modules/iconv: Likewise.
60312
60313 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60314
60315         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60316         to avoid collisions with libcurses and libreadline.
60317
60318         * m4/getstr.m4: Remove.
60319         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60320
60321 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60322
60323         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60324         to avoid collisions with libcurses and libreadline.
60325
60326         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60327         * lib/getstr.h, getstr.c: Remove.
60328         * lib/getline.c: Include "getline.h", to check interface.
60329         Move body of old getstr.c here: this defines MIN_CHUNK and
60330         declares getdelim2, which is renamed from getstr.
60331         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60332
60333         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60334         All uses changed.
60335         * lib/linebuffer.h: Likewise.
60336         (readline): Remove backward-compatibility macro.
60337
60338 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60339
60340         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60341         to avoid collisions with libcurses and libreadline.
60342         * getstr: Remove.
60343         * MODULES.html.sh: Remove getstr.
60344         * modules/getline: Depend on unlocked-io, not getstr.
60345
60346 2003-01-12  Jim Meyering  <jim@meyering.net>
60347
60348         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60349
60350 2003-01-10  Bruno Haible  <bruno@clisp.org>
60351
60352         * modules/alloca: Change Makefile.am requirements. Simplify Include
60353         requirements. Add lib/alloca_.h to file list.
60354
60355 2003-01-10  Bruno Haible  <bruno@clisp.org>
60356
60357         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60358
60359 2003-01-10  Bruno Haible  <bruno@clisp.org>
60360
60361         * lib/alloca_.h: New file.
60362         * lib/getdate.y: Unconditionally include alloca.h.
60363         * lib/makepath.c: Likewise.
60364         * lib/setenv.c: Likewise.
60365         * lib/userspec.c: Likewise.
60366
60367 2003-01-09  Karl Berry  <karl@gnu.org>
60368
60369         * MODULES.html.sh: include `dirname $0` in PATH, to find
60370         gnulib-tool.
60371
60372 2003-01-09  Bruno Haible  <bruno@clisp.org>
60373
60374         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60375         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60376
60377 2003-01-09  Bruno Haible  <bruno@clisp.org>
60378
60379         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60380
60381 2003-01-09  Bruno Haible  <bruno@clisp.org>
60382
60383         * lib/stdbool.h.in: New file.
60384
60385 2003-01-09  Bruno Haible  <bruno@clisp.org>
60386
60387         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60388         * MODULES.html.sh: Likewise.
60389
60390 2003-01-08  Jim Meyering  <jim@meyering.net>
60391
60392         * lib/full-write.c: Undefine and define-away `const' after inclusion
60393         of errno.h, not before.  Suggestion from Bruno Haible.
60394
60395 2003-01-08  Bruno Haible  <bruno@clisp.org>
60396
60397         * modules/full-read: Depend on full-write.
60398
60399 2003-01-08  Bruno Haible  <bruno@clisp.org>
60400
60401         * lib/safe-read.c: Include specification header first, to ensure its
60402         selfcontainedness.
60403         * lib/full-write.c: Likewise.
60404
60405 2003-01-07  Jim Meyering  <jim@meyering.net>
60406
60407         * lib/full-write.c: Rework so that it may serve to define full_read,
60408         too.
60409         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60410
60411 2003-01-07  Bruno Haible  <bruno@clisp.org>
60412
60413         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60414         <inttypes.h>.
60415         * lib/xstrtol.h: Likewise.
60416         * lib/xstrtoimax.c: Likewise.
60417         * lib/xstrtoumax.c: Likewise.
60418         * lib/human.h: Likewise.
60419
60420         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60421         on systems that have <inttypes.h> but not <stdint.h>.
60422
60423 2003-01-07  Bruno Haible  <bruno@clisp.org>
60424
60425         * MODULES.html.sh: Add copyright notice.
60426         (missed_files): Omit CVS directory entries.
60427         (func_module): Make it work with sed-3.02.
60428         * MODULES.txt: Remove file.
60429
60430 2003-01-06  Jim Meyering  <jim@meyering.net>
60431
60432         * lib/version-etc.c: Update year in translatable copyright string.
60433
60434 2003-01-03  Karl Berry  <karl@gnu.org>
60435
60436         * config/config.{guess,sub}: update from prep.
60437
60438 2003-01-02  Karl Berry  <karl@gnu.org>
60439
60440         * doc/COPYING.DOC: belatedly updated to 1.2.
60441
60442 2003-01-01  Karl Berry  <karl@gnu.org>
60443
60444         * gnulib-tool (func_verify_module): report module name $module in
60445         error message, not $1.
60446         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60447         be created, only if it doesn't exist.
60448         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60449
60450 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60451
60452         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60453
60454 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60455
60456         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60457         memcmp if strcoll doesn't work.
60458
60459 2002-12-31  Bruno Haible  <bruno@clisp.org>
60460
60461         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60462         nonempty.
60463
60464 2002-12-31  Bruno Haible  <bruno@clisp.org>
60465
60466         * lib/memcoll.c (STRCOLL): New macro.
60467         (memcoll): Use it.
60468
60469 2002-12-31  Bruno Haible  <bruno@clisp.org>
60470
60471         * lib/localcharset.h: New file.
60472         * lib/localcharset.c: Include it.
60473         * lib/unicodeio.c: Likewise.
60474
60475 2002-12-31  Bruno Haible  <bruno@clisp.org>
60476
60477         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60478         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60479
60480 2002-12-31  Bruno Haible  <bruno@clisp.org>
60481
60482         * lib/getline.h: Include <stddef.h>, for size_t.
60483
60484         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60485         * lib/unicodeio.c: Don't include <stddef.h>.
60486
60487 2002-12-31  Bruno Haible  <bruno@clisp.org>
60488
60489         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60490         HAVE_TM_ZONE.
60491
60492 2002-12-24  Karl Berry  <karl@gnu.org>
60493
60494         * config/config.guess: update from prep.
60495
60496 2002-12-24  Bruno Haible  <bruno@clisp.org>
60497
60498         General infrasructure.
60499         * m4/README: Rewritten.
60500         * m4/onceonly.m4: New file.
60501         * m4/onceonly_2_57.m4: New file.
60502
60503         Module atexit.
60504         * m4/atexit.m4: New file.
60505
60506         Module strtod.
60507         * m4/strtod.m4: New file.
60508
60509         Module strtol.
60510         * m4/strtol.m4: New file.
60511
60512         Module strtoul.
60513         * m4/strtoul.m4: New file.
60514
60515         Module memchr.
60516         * m4/memchr.m4: New file.
60517
60518         Module memcmp.
60519         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60520         (jm_FUNC_MEMCMP): Invoke it.
60521
60522         Module memcpy.
60523         * m4/memcpy.m4: New file.
60524
60525         Module memmove.
60526         * m4/memmove.m4: New file.
60527
60528         Module memset.
60529         * m4/memset.m4: New file.
60530
60531         Module strcspn.
60532         * m4/strcspn.m4: New file.
60533
60534         Module strpbrk.
60535         * m4/strpbrk.m4: New file.
60536
60537         Module strstr.
60538         * m4/strstr.m4: New file.
60539
60540         Module strerror.
60541         * m4/strerror.m4: New file.
60542
60543         Module mktime.
60544         * m4/mktime.m4: Renamed from jm-mktime.m4.
60545         (gl_PREREQ_MKTIME): New macro.
60546         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60547
60548         Module malloc.
60549         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60550         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60551         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60552
60553         Module realloc.
60554         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60555         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60556         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60557
60558         Module strftime.
60559         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60560         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60561         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60562         gl_TM_GMTOFF.
60563         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60564
60565         Module xalloc.
60566         * m4/xalloc.m4: New file.
60567
60568         Module alloca.
60569         * m4/alloca.m4: New file.
60570
60571         Module putenv.
60572         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60573         (jm_FUNC_PUTENV): Invoke it.
60574
60575         Module setenv.
60576         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60577         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60578         when invoked twice.
60579         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60580         gt_FUNC_SETENV.
60581
60582         Module memrchr.
60583         * m4/memrchr.m4: New file.
60584
60585         Module stpcpy.
60586         * m4/stpcpy.m4: New file.
60587
60588         Module strcase.
60589         * m4/strcase.m4: New file.
60590
60591         Module strdup.
60592         * m4/strdup.m4: New file.
60593
60594         Module strnlen.
60595         * m4/strnlen.m4: New file.
60596
60597         Module strndup.
60598         * m4/strndup.m4: New file.
60599
60600         Module xstrtod.
60601         * m4/xstrtod.m4: New file.
60602
60603         Module xstrtol.
60604         * m4/xstrtol.m4: New file.
60605
60606         Module getdate.
60607         * m4/getdate.m4: New file.
60608
60609         Module unlocked-io.
60610         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60611         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60612         * m4/jm-glibc-io.m4n: Remove file.
60613
60614         Module long-options.
60615         * m4/long-options.m4: New file.
60616
60617         Module md5.
60618         * m4/md5.m4: New file.
60619
60620         Module sha.
60621         * m4/sha.m4: New file.
60622
60623         Module getstr.
60624         * m4/getstr.m4: New file.
60625
60626         Module getline.
60627         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60628         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60629         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60630         simply getline. Infoke gl_PREREQ_GETLINE.
60631
60632         Module obstack.
60633         * m4/obstack.m4: New file.
60634
60635         Module hash.
60636         * m4/hash.m4: New file.
60637
60638         Module readtokens.
60639         * m4/readtokens.m4: New file.
60640
60641         Module strverscmp.
60642         * m4/strverscmp.m4: New file.
60643
60644         Module stdbool.
60645         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60646         OSF/1.
60647
60648         Module strtoll.
60649         * m4/strtoll.m4: New file.
60650
60651         Module strtoull.
60652         * m4/strtoull.m4: New file.
60653
60654         Module strtoimax.
60655         * m4/strtoimax.m4: New file.
60656
60657         Module strtoumax.
60658         * m4/strtoumax.m4: New file.
60659
60660         Module xstrtoimax.
60661         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60662         jm_AC_PREREQ_XSTRTOIMAX.
60663         Moved the strtol prerequisites to strtol.m4.
60664         Moved the strtoll prerequisites to strtoll.m4.
60665         Moved the strtoimax prerequisites to strtoimax.m4.
60666
60667         Module xstrtoumax.
60668         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60669         jm_AC_PREREQ_XSTRTOUMAX.
60670         Moved the strtoul prerequisites to strtoul.m4.
60671         Moved the strtoull prerequisites to strtoull.m4.
60672         Moved the strtoumax prerequisites to strtoumax.m4.
60673
60674         Module chown.
60675         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60676         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60677
60678         Module dup2.
60679         * m4/dup2.m4: New file.
60680
60681         Module ftruncate.
60682         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60683         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60684
60685         Module getgroups.
60686         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60687         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60688
60689         Module gettimeofday.
60690         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60691         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60692         gl_PREREQ_GETTIMEOFDAY.
60693
60694         Module mkdir.
60695         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60696         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60697
60698         Module mkstemp.
60699         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60700         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60701         jm_AC_TYPE_UINTMAX_T.
60702         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60703
60704         Module stat.
60705         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60706         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60707
60708         Module lstat.
60709         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60710         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60711
60712         Module timespec.
60713         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60714         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60715         * m4/st_mtim.m4: Indentation.
60716
60717         Module nanosleep.
60718         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60719         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60720         gl_PREREQ_NANOSLEEP.
60721
60722         Module regex.
60723         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60724         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60725         (gl_REGEX): New macro.
60726
60727         Module rename.
60728         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60729         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60730
60731         Module rmdir.
60732         * m4/rmdir.m4: New file.
60733
60734         Module utime.
60735         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60736         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60737         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60738
60739         Module dirname.
60740         * m4/dirname.m4: New file.
60741
60742         Module getopt.
60743         * m4/getopt.m4: New file.
60744
60745         Module unistd-safer.
60746         * m4/unistd-safer.m4: New file.
60747
60748         Module fnmatch.
60749         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60750         declaration.
60751         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60752         (gl_FUNC_FNMATCH_POSIX): New macro.
60753         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60754         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60755         simply fnmatch.
60756
60757         Module exclude.
60758         * m4/exclude.m4: New file.
60759
60760         Module human.
60761         * m4/human.m4: New file.
60762
60763         Module acl.
60764         * m4/acl.m4: Nop.
60765
60766         Module backupfile.
60767         * m4/backupfile.m4: New file.
60768         * m4/d-ino.m4: Indentation.
60769
60770         Module fsusage.
60771         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60772         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60773         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60774
60775         Module dirfd.
60776         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60777         requirements.
60778
60779         Module euidaccess.
60780         * m4/euidaccess.m4: New file.
60781
60782         Module file-type.
60783         * m4/file-type.m4: New file.
60784
60785         Module fileblocks.
60786         * m4/fileblocks.m4: New file.
60787
60788         Module filemode.
60789         * m4/filemode.m4: New file.
60790
60791         Module isdir.
60792         * m4/isdir.m4: New file.
60793
60794         Module lchown.
60795         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60796         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60797
60798         Module makepath.
60799         * m4/makepath.m4: New file.
60800
60801         Module modechange.
60802         * m4/modechange.m4: New file.
60803
60804         Module mountlist.
60805         * m4/mountlist.m4: New file.
60806         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60807         Indentation.
60808
60809         Module path-concat.
60810         * m4/path-concat.m4: New file.
60811
60812         Module pathmax.
60813         * m4/pathmax.m4: New file.
60814
60815         Module same.
60816         * m4/same.m4: New file.
60817
60818         Module save-cwd.
60819         * m4/save-cwd.m4: New file.
60820
60821         Module savedir.
60822         * m4/savedir.m4: New file.
60823
60824         Module xgetcwd.
60825         * m4/xgetcwd.m4: New file.
60826         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60827
60828         Module xreadlink.
60829         * m4/xreadlink.m4: New file.
60830
60831         Module safe-read.
60832         * m4/safe-read.m4: New file.
60833
60834         Module safe-write.
60835         * m4/safe-write.m4: New file.
60836
60837         Module closeout.
60838         * m4/closeout.m4: New file.
60839
60840         Module stdio-safer.
60841         * m4/stdio-safer.m4: New file.
60842
60843         Module getpass.
60844         * m4/getpass.m4: New file.
60845
60846         Module getugroups.
60847         * m4/getugroups.m4: New file.
60848
60849         Module group-member.
60850         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60851         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60852
60853         Module idcache.
60854         * m4/idcache.m4: New file.
60855
60856         Module userspec.
60857         * m4/userspec.m4: New file.
60858
60859         Module gettime.
60860         * m4/clock_time.m4: New file.
60861         * m4/gettime.m4: New file.
60862
60863         Module settime.
60864         * m4/settime.m4: New file.
60865
60866         Module posixtm.
60867         * m4/posixtm.m4: New file.
60868
60869         Module gethostname.
60870         * m4/gethostname.m4: New file.
60871
60872         Module canon-host.
60873         * m4/canon-host.m4: New file.
60874
60875         Module gettext.
60876         * m4/codeset.m4: New file, from gettext-0.11.5.
60877         * m4/gettext.m4: New file, from gettext-0.11.5.
60878         * m4/glibc21.m4: New file, from gettext-0.11.5.
60879         * m4/iconv.m4: New file, from gettext-0.11.5.
60880         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60881         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60882         * m4/inttypes.m4: New file, from gettext-0.11.5.
60883         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60884         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60885         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60886         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60887         * m4/lib-link.m4: New file, from gettext-0.11.5.
60888         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60889         * m4/progtest.m4: New file, from gettext-0.11.5.
60890         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60891         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60892         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60893
60894         Module localcharset.
60895         * m4/localcharset.m4: New file.
60896
60897         Module hard-locale.
60898         * m4/hard-locale.m4: New file.
60899
60900         Module mbswidth.
60901         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60902         onceonly macros.
60903         * m4/mbrtowc.m4: Add comment.
60904
60905         Module memcasecmp.
60906         * m4/memcasecmp.m4: New file.
60907
60908         Module memcoll.
60909         * m4/memcoll.m4: New file.
60910
60911         Module unicodeio.
60912         * m4/unicodeio.m4: New file.
60913
60914         Module rpmatch.
60915         * m4/rpmatch.m4: New file.
60916
60917         Module yesno.
60918         * m4/yesno.m4: New file.
60919
60920         Module exitfail.
60921         * m4/exitfail.m4: New file.
60922
60923         Module c-stack.
60924         * m4/c-stack.m4 (gl_C_STACK): New macro.
60925         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60926
60927         Module error.
60928         * m4/error.m4 (gl_ERROR): New macro.
60929         (jm_PREREQ_ERROR): Use onceonly macros.
60930
60931         Module fatal.
60932         * m4/fatal.m4: New file.
60933
60934         Module getloadavg.
60935         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60936         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60937
60938         Module getpagesize.
60939         * m4/getpagesize.m4: New file.
60940
60941         Module getusershell.
60942         * m4/getusershell.m4: New file.
60943
60944         Module physmem.
60945         * m4/physmem.m4: New file.
60946
60947         Module posixver.
60948         * m4/posixver.m4: New file.
60949
60950         Module quotearg.
60951         * m4/quotearg.m4: New file.
60952
60953         Module quote.
60954         * m4/quote.m4: New file.
60955
60956         Module readutmp.
60957         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60958
60959         Module sig2str.
60960         * m4/sig2str.m4: New file.
60961
60962         Other.
60963         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60964         ulonglong.m4.
60965         * m4/intmax_t.m4: New file.
60966         * m4/d-type.m4: Indentation.
60967         * m4/jm-macros.m4: Update.
60968         * m4/prereq.m4 (jm_PREREQ): Update.
60969         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60970         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60971         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60972         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60973         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60974         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60975         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60976         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60977         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60978         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60979         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60980         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60981         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60982         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60983         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60984         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60985         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60986         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60987         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60988
60989 2002-12-24  Bruno Haible  <bruno@clisp.org>
60990
60991         * MODULES.txt: Update according to m4/ changes.
60992
60993         Module gettext.
60994         * config.rpath: New file, from gettext-0.11.5.
60995
60996         * modules/*: New module descriptions.
60997         * gnulib-tool: New file.
60998         * MODULES.html.sh: New file.
60999
61000 2002-12-21  Karl Berry  <karl@gnu.org>
61001
61002         * doc/fdl.texi: update to version 1.2.
61003
61004 2002-12-19  Karl Berry  <karl@gnu.org>
61005
61006         * config/config.guess: update from prep.
61007
61008 2002-12-18  Bruno Haible  <bruno@clisp.org>
61009
61010         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
61011         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
61012
61013 2002-12-17  Bruno Haible  <bruno@clisp.org>
61014
61015         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
61016         stdlib.h, string.h.
61017
61018 2002-12-17  Bruno Haible  <bruno@clisp.org>
61019
61020         * lib/canon-host.c (strdup): Remove unused declaration.
61021
61022         * lib/fsusage.c: Include full_read.h.
61023         (get_fs_usage): Use full_read instead of safe_read.
61024
61025         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
61026
61027 2002-12-12  Karl Berry  <karl@gnu.org>
61028
61029         * config/config.guess: update from prep.
61030
61031 2002-12-11  Bruno Haible  <bruno@clisp.org>
61032
61033         * m4/setenv.m4: New file, from gettext-0.11.5.
61034
61035 2002-12-11  Bruno Haible  <bruno@clisp.org>
61036
61037         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
61038         not unsetenv().
61039         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
61040         modifications:
61041
61042         2002-12-11  Bruno Haible  <bruno@clisp.org>
61043
61044                 * setenv.c (alloca): Fall back to malloc.
61045                 (freea): New macro.
61046                 (setenv): Use freea() to free memory allocated with alloca().
61047
61048         2002-11-13  Bruno Haible  <bruno@clisp.org>
61049
61050                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
61051                 function declarations.
61052                 * unsetenv.c (unsetenv): Likewise.
61053
61054         2002-03-04  Bruno Haible  <bruno@clisp.org>
61055
61056                 Portability to AIX 4.3.3.
61057                 * unsetenv.c: New file, extracted from setenv.c.
61058                 * setenv.c: Move the unsetenv() function to unsetenv.c.
61059
61060         2001-12-20  Bruno Haible  <bruno@clisp.org>
61061
61062                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
61063                 use malloc instead. For SunOS 4.
61064
61065         2001-12-11  Bruno Haible  <bruno@clisp.org>
61066
61067                 * setenv.c: Declare alloca.
61068                 (compar_fn_t): New typedef.
61069                 (KNOWN_VALUE, STORE_VALUE): Use it.
61070
61071         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
61072         setenv.h.
61073
61074 2002-12-10  Paul Eggert  <eggert@twinsun.com>
61075
61076         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
61077         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
61078         Choose values that are less likely to collide with system fnmatch
61079         options.
61080         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
61081         defined (e.g., a pure POSIX system).
61082         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
61083         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
61084
61085 2002-12-06  Paul Eggert  <eggert@twinsun.com>
61086
61087         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
61088         a pain in practice to deal with generated m4 files.  This change
61089         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
61090
61091         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
61092         and jm-glibc-io.m4, as they are no longer a special case.
61093         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
61094         kludge and the auto-generation stuff.  Check only whether the
61095         functions are declared, not whether they exist, since older hosts
61096         that don't declare the functions can't use the optimization anyway.
61097
61098 2002-12-06  Jim Meyering  <jim@meyering.net>
61099
61100         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
61101
61102         Merge in changes from libc's misc/error.c, in preparation
61103         for the merge of gnulib's changes back into libc.
61104
61105         * lib/error.c (_): Define only if not already defined.
61106         Move definition to follow all #include directives.
61107         Include unlocked-io.h only if !_LIBC.
61108         [_LIBC]: Include <libio/libioP.h>.
61109         [USE_IN_LIBIO]: Include <libio/iolibio.h>
61110         (fflush): Tweak definition to use INTUSE.
61111         (putc): Define.
61112
61113 2002-12-05  Paul Eggert  <eggert@twinsun.com>
61114
61115         * lib/alloca.c [defined emacs]: Include "lisp.h".
61116         (xalloc_die) [defined emacs]: New macro.
61117         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
61118         [! defined emacs]: Include <xalloc.h>.
61119         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
61120         (pointer): Typedef to POINTER_TYPE *.
61121         (malloc): Remove decl; we now always use xmalloc.
61122         (alloca): Use old-style definition, since Emacs needs this.
61123         Check for arithmetic overflow when computing combined size.
61124
61125 2002-12-04  Paul Eggert  <eggert@twinsun.com>
61126
61127         Do not generate unlocked-io.h automatically, since it's easier to
61128         maintain it by hand.
61129
61130         * lib/unlocked-io.h: New file, from GNU diffutils,
61131         but with proper copyright notice and attribution.
61132         * lib/gen-uio: Remove.
61133         * lib/Makefile.am: Add copyright notice.
61134         (libfetish_a_SOURCES): Add unlocked-io.h.
61135         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
61136         (DISTCLEANFILES, io_functions): Remove macros.
61137         (EXTRA_DIST): Remove gen_uio.
61138         (unlocked-io.h): Remove rule.
61139
61140 2002-12-04  Jim Meyering  <jim@meyering.net>
61141
61142         Reflect the fact that stat.c and lstat.c are no longer generated.
61143         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
61144         (DISTCLEANFILES): Likewise.
61145         (EXTRA_DIST): Likewise.
61146         (all_local): Don't depend on stat.c or lstat.c.
61147         (stat.c, lstat.c): Remove rules.
61148         (EXTRA_DIST): Remove xstat.in.
61149
61150         * lib/xstat.in: Remove file.  Contents moved into stat.c.
61151         * lib/stat.c: New file.  Contents mostly from xstat.in.
61152         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
61153         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
61154
61155         * lib/safe-read.c: Rework so that it may serve to define safe_write,
61156         too.
61157         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
61158
61159 2002-12-03  Jim Meyering  <jim@meyering.net>
61160
61161         * lib/safe-read.c, safe-write.c: Change variable names and comments,
61162         but not semantics, to minimize the differences between these two files.
61163         (safe_read): Change comment to mention SAFE_READ_ERROR.
61164
61165         * lib/safe-read.c (IS_EINTR): Define.
61166         (safe_read): Use IS_EINTR in place of in-function cpp directives.
61167
61168 2002-12-02  Jim Meyering  <jim@meyering.net>
61169
61170         * lib/safe-read.c (EINTR): Define.
61171         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61172         (INT_MAX): Provide fallback.
61173         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
61174
61175         * lib/safe-read.h (SAFE_READ_ERROR): Define.
61176
61177 2002-12-02  Bruno Haible  <bruno@clisp.org>
61178
61179         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
61180         Define, taken from safe-read.c.
61181         (INT_MAX): Provide fallback.
61182         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
61183         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
61184
61185         * lib/safe-read.c (EINTR): Remove definition.
61186         (safe_read): Don't use EINTR if it is absent.
61187
61188 2002-12-01  Jim Meyering  <jim@meyering.net>
61189
61190         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
61191         zero.
61192         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
61193
61194 2002-11-27  Paul Eggert  <eggert@twinsun.com>
61195
61196         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
61197         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
61198         with `if (! (value < limit)) abort ();', for readability.
61199
61200 2002-11-26  Karl Berry  <karl@gnu.org>
61201
61202         * lib/strdup.c: copy from libc again, with jim's ok.
61203         * lib/.cppi-disable: re-add strdup.c
61204
61205 2002-11-25  Karl Berry  <karl@gnu.org>
61206
61207         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
61208         instead of "strtol.c".
61209
61210 2002-11-25  Karl Berry  <karl@gnu.org>
61211
61212         * config/install-sh: update from automake for variable quoting, $0 in
61213         error msgs, etc.
61214
61215         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
61216         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
61217         entry.
61218
61219 2002-11-25  Jim Meyering  <jim@meyering.net>
61220
61221         * lib/mktime.c: Sync from libc, now that it has the latest fix.
61222
61223 2002-11-24  Karl Berry  <karl@gnu.org>
61224
61225         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
61226         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
61227
61228 2002-11-24  Jim Meyering  <jim@meyering.net>
61229
61230         Update from coreutils:
61231
61232         * lib/mktime.c: Merge in changes from libc.
61233
61234         Avoid a link-time failure on some Linux systems.
61235         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
61236         (otherwise).
61237         (__mon_yday): Declare with the STATIC attribute.
61238         (__mktime_internal): Likewise.
61239         Based on a report from Greg Schafer.
61240
61241 2002-11-23  Jim Meyering  <jim@meyering.net>
61242
61243         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
61244         Use `unsigned', not `int', as type of index.
61245
61246         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
61247
61248         * lib/fsusage.c: Remove unneeded parentheses around operands of
61249         `defined'.
61250
61251 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61252
61253         * lib/quotearg.h: Allow multiple inclusion by surrounding with
61254         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
61255         so that we can be included first.
61256         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
61257         * lib/quotearg.c: Include quotearg.h immediately after config.h.
61258         No need to include stddef.h or sys/types.h any more.
61259         Surround local include files with "", not "<>".
61260         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
61261         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
61262         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
61263         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
61264         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
61265         (ISPRINT): Remove; no longer needed now that we assume C89.
61266
61267         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
61268         Preserve errno.
61269
61270         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
61271         quotearg_char): Use SIZE_MAX rather than
61272         (size_t) -1 when we are talking about "infinity".
61273
61274         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
61275
61276 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61277
61278         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
61279         hint that one should use `if (! x) abort ();' rather than `assert
61280         (x);', and anyway it's one less thing to worry about configuring.
61281         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
61282         hash_rehash, hash_insert): Use abort rather than assert.
61283
61284 2002-11-22  Bruno Haible  <bruno@clisp.org>
61285
61286         * lib/safe-read.h: Assume C89. Add comments.
61287         (safe_read): Change return type to size_t.
61288         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
61289         byte counts > SSIZE_MAX correctly.
61290         * lib/safe-write.h: New file.
61291         * lib/safe-write.c: New file.
61292         * lib/full-read.h: New file.
61293         * lib/full-read.c: New file.
61294         * lib/full-write.h: Assume C89. Add comments.
61295         * lib/full-write.c: Include safe-write.h.
61296         (full_write): Rewritten to use safe_write.
61297         Suggested by Jim Meyering and Paul Eggert.
61298
61299 2002-11-21  Jim Meyering  <jim@meyering.net>
61300
61301         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
61302
61303         Merge in changes from the coreutils.
61304
61305         2002-09-25  Paul Eggert  <eggert@twinsun.com>
61306         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
61307         <stdint.h>.
61308         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
61309         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
61310         int.  Work more efficiently if X is the same width as uintmax_t.
61311         Do not compare X to -1, to avoid bogus compiler warning.
61312         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61313         Don't assume that f_frsize and f_bsize are the same type.
61314
61315         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61316         warning on FreeBSD.
61317
61318         * lib/makepath.c (make_path): Restore umask *before* creating the final
61319         component.
61320         (make_path): Minor reformatting.
61321
61322         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61323         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61324         HAVE_MALLOC/HAVE_REALLOC.
61325
61326         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61327         dummy ones.  At least on GNU/Linux systems, `auto' means something
61328         else.
61329         From Michael Stone.
61330
61331 2002-11-21  Bruno Haible  <bruno@clisp.org>
61332
61333         Remove case insensitive option matching.
61334         * lib/argmatch.h (argcasematch): Remove declaration.
61335         (ARGCASEMATCH): Remove macro.
61336         (__xargmatch_internal): Remove case_sensitive argument.
61337         (XARGMATCH): Update.
61338         (XARGCASEMATCH): Remove macro.
61339         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61340         case_sensitive argument.
61341         (argcasematch): Remove function.
61342         (__xargmatch_internal): Remove case_sensitive argument.
61343         (main): Use XARGMATCH instead of XARGCASEMATCH.
61344
61345         * lib/xmalloc.c: Change compile-time error message. Add comment about
61346         required autoconf version.
61347
61348 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61349
61350         Merge argmatch cleanups from Bison.  Assume C89.
61351
61352         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61353         Include stdlib.h, for EXIT_FAILURE.
61354         Always include <string.h>, since we assume C89.
61355         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61356         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61357         Include <stddef.h> instead, since it's all we need for size_t.
61358         (PARAMS): Remove.  All uses removed.
61359         (ARRAY_CARDINALITY): Do not bother to #undef.
61360         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61361         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61362         Remove unnecessary parentheses.
61363         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61364         Insert necessary parentheses.
61365         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61366         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61367
61368 2002-11-19  Bruno Haible  <bruno@clisp.org>
61369
61370         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61371         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61372
61373         * lib/mbswidth.h (PARAMS): Remove macro.
61374         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61375         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61376
61377         * lib/gcd.h (PARAMS): Remove macro.
61378         (gcd): Use ANSI C function declarations.
61379         * lib/gcd.c (gcd): Likewise.
61380
61381 2002-11-15  Bruno Haible  <bruno@clisp.org>
61382
61383         * lib/strcspn.c: Include <stddef.h>.
61384         (strcspn): Use ANSI C function declaration. Change return type to
61385         size_t. Use NULL.
61386         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61387         (strpbrk): Use NULL.
61388         * lib/strpbrk.h (PARAMS): Remove macro.
61389         (strpbrk): Use ANSI C function declaration.
61390         * lib/strstr.c: Don't include <sys/types.h>.
61391         * lib/strstr.h (PARAMS): Remove macro.
61392         (strstr): Use ANSI C function declarations.
61393
61394 2002-11-14  Karl Berry  <karl@gnu.org>
61395
61396         * config/mkinstalldirs: `do' on separate line, instead of
61397         `for var; do'.
61398
61399 2002-11-06  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61402         * lib/gcd.c (gcd): Likewise.
61403
61404 2002-11-05  Bruno Haible  <bruno@clisp.org>
61405
61406         * lib/gcd.h: New file, from gettext-0.11.5.
61407         * lib/gcd.c: New file, from gettext-0.11.5.
61408
61409 2002-11-05  Bruno Haible  <bruno@clisp.org>
61410
61411         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61412         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61413         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61414         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61415
61416         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61417         <libintl.h>.
61418         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61419         <libintl.h>.
61420
61421         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61422         * lib/human.c: Include gettext.h instead of <libintl.h>.
61423         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61424         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61425         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61426         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61427         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61428         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61429         (textdomain): Remove definition.
61430         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61431
61432         * lib/long-options.c: Remove include of <libintl.h> and definition of
61433         _.
61434         * lib/same.c: Remove include of <libintl.h> and definition of _.
61435
61436 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61437
61438         * lib/config.charset: A few additions for Solaris.
61439
61440 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61441
61442         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61443         * lib/localcharset.c (locale_charset): Declare as extern "C".
61444
61445 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61446
61447         * lib/config.charset: msdos in uk_UA uses CP1125.
61448
61449 2002-11-04  Bruno Haible  <bruno@clisp.org>
61450
61451         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61452         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61453         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61454         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61455         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61456
61457 2002-11-04  Bruno Haible  <bruno@clisp.org>
61458
61459         * lib/localcharset.c (locale_charset): Don't return an empty string.
61460
61461 2002-11-04  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61464         aliases.
61465
61466 2002-11-04  Bruno Haible  <bruno@clisp.org>
61467
61468         * lib/config.charset: Update for newest glibc. Add canonical names
61469         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61470
61471 2002-11-04  Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/config.charset: Add support for NetBSD.
61474
61475 2002-11-04  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61478
61479 2002-11-01  Bruno Haible  <bruno@clisp.org>
61480
61481         * configure.in: Add AC_CONFIG_AUX_DIR call.
61482         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61483         test/Makefile.
61484         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61485
61486 2002-09-28  Karl Berry  <karl@gnu.org>
61487
61488         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61489         installed automake until the next release, since changes have been
61490         made.
61491
61492 2002-09-25  Karl Berry  <karl@gnu.org>
61493
61494         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61495         * lib/getopt*: copy from libc/posix.
61496         * lib/gettext.h: copy from gettext.
61497         * lib/.cppi-disable: add strdup.c, gettext.h.
61498
61499 2002-09-25  Karl Berry  <karl@gnu.org>
61500
61501         * config/srclist.txt: enable gettext.h check.
61502         * config/config.{guess,sub}: update from prep.
61503         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61504                 from automake 1.6.3.
61505         See srclist*.
61506
61507 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61508
61509         * regex.c (PATFETCH): Remove the translating fetch.
61510         (PATFETCH_RAW): Rename to PATFETCH.
61511         (set_image_of_range): New fun.
61512         (SET_RANGE_TABLE_WORK_AREA): Use it.
61513         (regex_compile): Don't translate the pattern chars so eagerly.
61514         Only do it when inserting an `exactn' bytecode or when handling
61515         a char-range.
61516         (mutually_exclusive_p): Avoid empty statement.
61517
61518 2002-07-06  Jim Meyering  <meyering@lucent.com>
61519
61520         * m4/README: Don't mention Makefile.am.in.
61521         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61522
61523 2002-07-01  Jim Meyering  <meyering@lucent.com>
61524
61525         * lib/c-stack.c: Include sys/time.h.
61526         From Volker Borchert.
61527
61528 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61529
61530         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61531
61532 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61533
61534         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61535         New macro.  Use it uniformly instead of
61536         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61537         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61538         reported by Vin Shelton.
61539
61540 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61541
61542         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61543         Do not assume SA_SIGINFO behavior.
61544         Bug reported by Jim Meyering on NetBSD 1.5.2.
61545
61546 2002-06-22  Jim Meyering  <meyering@lucent.com>
61547
61548         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61549         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61550
61551         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61552         now that configure.ac uses AC_GNU_SOURCE.
61553         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61554         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61555
61556         Update to latest tools.  Suggestions from Paul Eggert.
61557         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61558         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61559         * m4/fnmatch.m4: Likewise.
61560         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61561         to AC_HEADER_STDBOOL
61562
61563 2002-06-22  Jim Meyering  <meyering@lucent.com>
61564
61565         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61566         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61567
61568 2002-06-22  Jim Meyering  <meyering@lucent.com>
61569
61570         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61571
61572         * lib/exitfail.c, exitfail.h: Likewise.
61573         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61574
61575         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61576         of fnmatch.h.
61577         (EXTRA_DIST): Add fnmatch_loop.c.
61578         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61579
61580         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61581         * lib/fnmatch.c: Update from diffutils-2.8.2.
61582         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61583         * lib/fnmatch.h: Remove file.
61584
61585 2002-06-21  Jim Meyering  <meyering@lucent.com>
61586
61587         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61588         * m4/mbrtowc.m4: Likewise.
61589
61590         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61591         * m4/mbswidth.m4: Reflect name change:
61592         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61593         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61594
61595         * m4/lib-link.m4: Update from gettext-0.11.2.
61596         * m4/gettext.m4: Likewise.
61597
61598         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61599         From Alfred M. Szmidt.
61600
61601 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61602
61603         * lib/file-type.h: Report an error if neither S_ISREG nor
61604         S_IFREG is defined, instead of using a test specific to glibc
61605         2.2.  This should be safe, since POSIX requires S_ISREG and
61606         Unix Version 7 had S_IFREG.  We don't need to check for
61607         <sys/types.h> since we don't use any symbols that it defines.
61608
61609 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61610
61611         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61612         $@-t, so that each temporary file name is unique and valid in the first
61613         8 characters, for operation under DOS.
61614
61615 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61616
61617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61618
61619 2002-06-15  Jim Meyering  <meyering@lucent.com>
61620
61621         Work even with DJGPP 2.03, which lacks support for symlinks.
61622         From Richard Dawe.
61623         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61624         is defined.
61625         * lib/lchown.c (S_ISLNK): Likewise.
61626
61627 2002-06-15  Jim Meyering  <meyering@lucent.com>
61628
61629         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61630         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61631         have been included before this file.
61632
61633 2002-06-14  Jim Meyering  <meyering@lucent.com>
61634
61635         * lib/file-type.h: Use the version from diffutils-2.8.2.
61636         * lib/file-type.c: Likewise.
61637
61638 2002-06-07  Jim Meyering  <meyering@lucent.com>
61639
61640         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61641         They're needed at least for NetBSD 1.5.2.
61642         ($statxfs_includes): Include those same headers.
61643         ($statxfs_includes): Include sys/vfs.h if available.
61644         ($statxfs_includes): Likewise for sys/statvfs.h.
61645         Check for the following members in both structs statfs and statvfs:
61646         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61647
61648 2002-06-01  Jim Meyering  <meyering@lucent.com>
61649
61650         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61651         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61652
61653 2002-05-28  Jim Meyering  <meyering@lucent.com>
61654
61655         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61656         Reported by Volker Borchert.
61657
61658 2002-05-27  Jim Meyering  <meyering@lucent.com>
61659
61660         Fix a problem seen only on nonconforming systems whereby ls.c's
61661         use of localtime, and then of gettimeofday would cause trouble:
61662         the localtime call used to initialize rpl_gettimeofday's save
61663         mechanism would clobber ls's current local time information so
61664         that in any long listing the first file would always be listed
61665         with date 1970-01-01.  Analysis by Volker Borchert.
61666
61667         * lib/gettimeofday.c (localtime): Undefine.
61668         (rpl_localtime): New function.
61669
61670 2002-05-27  Jim Meyering  <meyering@lucent.com>
61671
61672         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61673         localtime.
61674
61675         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61676         use the replacement function; it wouldn't resolve at link time.
61677         Reported by Volker Borchert.
61678
61679 2002-05-22  Jim Meyering  <meyering@lucent.com>
61680
61681         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61682         file-type.h.
61683         * lib/file-type.h: New file.
61684         * lib/file-type.c (file_type): New file/function.  Extracted from
61685         diffutils.
61686
61687 2002-04-30  Jim Meyering  <meyering@lucent.com>
61688
61689         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61690
61691 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61692
61693         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61694
61695 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61696
61697         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61698         Do not check for alloca.h (no longer used) or stdbool.h (was never
61699         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61700
61701 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61702
61703         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61704
61705 2002-04-29  Jim Meyering  <meyering@lucent.com>
61706
61707         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61708         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61709         Use AC_FUNC_STRNLEN here instead.
61710
61711         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61712         With autoconf-2.53a, it's part of AC_PROG_CC.
61713
61714 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61715
61716         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61717         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61718
61719 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61720
61721         * lib/sig2str.h, lib/sig2str.c: New files.
61722         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61723
61724 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61725
61726         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61727         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61728         of 127, since 64 is the largest conceivable number for ancient
61729         nonstandard hosts.
61730         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61731
61732 2002-04-28  Jim Meyering  <meyering@lucent.com>
61733
61734         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61735
61736 2002-04-24  Jim Meyering  <meyering@lucent.com>
61737
61738         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61739         (jm_PREREQ): Use it.
61740
61741         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61742         mach/mach.h fcntl.h.
61743         Check for this function: setlocale.
61744
61745 2002-04-24  Jim Meyering  <meyering@lucent.com>
61746
61747         * lib/gettext.h: New file, from Gettext.
61748         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61749         (libfetish_a_SOURCES): Add gettext.h.
61750
61751 2002-04-16  Jim Meyering  <meyering@lucent.com>
61752
61753         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61754         ut_pid, ut_id, ut_exit.
61755
61756 2002-04-16  Jim Meyering  <meyering@lucent.com>
61757
61758         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61759         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61760         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61761
61762 2002-04-12  Jim Meyering  <meyering@lucent.com>
61763
61764         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61765         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61766         existence of the getmntinfo function.  Needed for Darwin 5.3.
61767
61768         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61769         This is necessary at least on Darwin 5.3.
61770
61771         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61772         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61773         strnlen.o in the library, and that makes some versions of ranlib
61774         object.
61775
61776 2002-04-12  Jim Meyering  <meyering@lucent.com>
61777
61778         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61779
61780 2002-04-09  Jim Meyering  <meyering@lucent.com>
61781
61782         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61783         to be more precise.  Rather than saying we're checking whether the
61784         function `works', say what we're testing.
61785         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61786         Reported by Bruno Haible.
61787
61788 2002-03-10  Jim Meyering  <meyering@lucent.com>
61789
61790         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61791         Suggestion from Santiago Vila.
61792
61793 2002-03-08  Jim Meyering  <meyering@lucent.com>
61794
61795         * lib/rename.c: Mention that this wrapper is needed also on
61796         mips-dec-ultrix4.4 systems.
61797
61798 2002-03-02  Jim Meyering  <meyering@lucent.com>
61799
61800         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61801         not HAVE_CLOCK_SETTIME.
61802
61803 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61804
61805         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61806         Check for clock_settime.
61807
61808 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61809
61810         * lib/nanosleep.h: Rename to....
61811         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61812
61813         * lib/gettime.c: New file.
61814         * lib/settime.c: New file.
61815         * lib/stime.c: Remove.
61816
61817         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61818         timespec.h.  Remove nanosleep.h.
61819
61820 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61821
61822         * m4/acl.m4: New file.
61823         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61824         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61825
61826 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61827
61828         * lib/acl.c, lib/acl.h: New files.
61829         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61830
61831 2002-02-24  Jim Meyering  <meyering@lucent.com>
61832
61833         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61834         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61835         cause trouble.  Reported by Nelson Beebe.
61836
61837 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61838
61839         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61840         compilers that don't know that xalloc_die never returns.
61841
61842 2002-02-20  Jim Meyering  <meyering@lucent.com>
61843
61844         * lib/getdate.c: Regenerate using bison-1.33.
61845
61846 2002-02-17  Jim Meyering  <meyering@lucent.com>
61847
61848         * config/config.guess (main): Don't use `head -1'; it's no longer
61849         portable. Use `sed 1q' instead.
61850
61851 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61852
61853         * m4/codeset.m4: Upgrade to gettext-0.11.
61854         * m4/gettext.m4: Upgrade to gettext-0.11.
61855         * m4/glibc21.m4: Upgrade to gettext-0.11.
61856         * m4/iconv.m4: Upgrade to gettext-0.11.
61857         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61858         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61859         * m4/lib-ld.m4: New file, from gettext-0.11.
61860         * m4/lib-link.m4: New file, from gettext-0.11.
61861         * m4/lib-prefix.m4: New file, from gettext-0.11.
61862         * m4/progtest.m4: Upgrade to gettext-0.11.
61863
61864 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61865
61866         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61867         (jm_PREREQ): Use it.
61868
61869 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61870
61871         * lib/posixver.c, lib/posixver.h: New files.
61872         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61873
61874 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61875             Bruno Haible  <bruno@clisp.org>
61876
61877         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61878         (fwrite_success_callback): New declaration.
61879         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61880         print_unicode_char. Call failure callback instead of error.
61881         (fwrite_success_callback): New function.
61882         (exit_failure_callback): New function.
61883         (fallback_failure_callback): New function.
61884         (print_unicode_char): Call unicode_to_mb.
61885
61886 2002-01-26  Jim Meyering  <meyering@lucent.com>
61887
61888         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61889         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61890
61891 2002-01-26  Jim Meyering  <meyering@lucent.com>
61892
61893         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61894
61895 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61896
61897         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61898
61899 2002-01-22  Jim Meyering  <meyering@lucent.com>
61900
61901         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61902         Otherwise, some versions of automake would omit the rule that makes
61903         Makefile from Makefile.in.
61904
61905 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61906
61907         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61908         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61909         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61910         (memcoll): Set errno to zero if there is no error.
61911
61912         * lib/quotearg.c (quotearg_buffer_restyled):
61913         Fix bug with quoting buffers containing NUL when backslashing escapes.
61914         This bug was exposed by the other changes in this patch.
61915         (quotearg_n_options): New arg ARGSIZE.
61916         All callers changed.
61917         (quoting_options_from_style): New function.
61918         (quotearg_n_style): Use it.
61919         (quotearg_n_style_mem): New function.
61920
61921         * lib/quotearg.h (quotearg_n_style_mem): New function.
61922
61923 2002-01-19  Jim Meyering  <meyering@lucent.com>
61924
61925         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61926         Remove useless quotes: DF_PROG="df".
61927         * m4/strnlen.m4: New file.
61928
61929 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61930
61931         * lib/backupfile.c (ISDIGIT): Comment fix.
61932         * lib/getdate.y (ISDIGIT): Likewise.
61933         * lib/posixtm.c (ISDIGIT, year): Likewise.
61934         * lib/strverscmp.c (ISDIGIT): Likewise.
61935         * lib/userspec.c (ISDIGIT): Likewise.
61936
61937 2002-01-16  Jim Meyering  <meyering@lucent.com>
61938
61939         * lib/getdate.y: Add three semicolons, each just before a closing
61940         brace. Bison (as of version 1.31) no longer papers over that mistake.
61941
61942 2002-01-05  Jim Meyering  <meyering@lucent.com>
61943
61944         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61945
61946 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61947
61948         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61949         not silently exit merely because the output buffer happens to
61950         have nothing pending.
61951
61952 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61953
61954         See the big note in ../ChangeLog.
61955         * lib/human.c (suffixes): Prefer K to k for 1024.
61956         (generate_suffix_backwards): New function.
61957         (human_readable_inexact): Use it.
61958         * lib/xstrtol.c (__xstrtol): If there is no number but there
61959         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61960         Accept 'K' as well as 'k'.
61961
61962 2001-12-15  Jim Meyering  <meyering@lucent.com>
61963
61964         * lib/regex.h (__restrict_arr): Update from libc.
61965
61966         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61967         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61968         (STREQ): Define.
61969
61970 2001-12-14  Jim Meyering  <meyering@lucent.com>
61971
61972         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61973         Suggestion from Bruno Haible.
61974
61975 2001-12-10  Jim Meyering  <meyering@lucent.com>
61976
61977         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61978         xrealloc, Instead, include "xalloc.h".
61979         (initbuffer): Don't cast xmalloc return value to char*.
61980         (readline): Reword comment.
61981         Don't cast xrealloc return value to char*
61982         Return NULL, not 0.
61983
61984 2001-12-09  Jim Meyering  <meyering@lucent.com>
61985
61986         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61987         about `signed and unsigned type in conditional expression'.
61988         * lib/posixtm.c (posix_time_parse): Likewise.
61989
61990         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61991
61992         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61993         to avoid a pedantic warning.
61994
61995         * lib/getstr.c: Don't include assert.h.
61996         (getstr): Remove warning-evoking assertions.
61997         Return -1 if offset parameter is out of bounds.
61998         Change the type of a local from int to size_t.
61999
62000         * lib/strftime.c (my_strftime_localtime_r): Include this function
62001         definition in the `#if ! HAVE_TM_GMTOFF' block.
62002
62003         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
62004         Include xalloc.h instead.
62005
62006 2001-12-02  Jim Meyering  <meyering@lucent.com>
62007
62008         * lib/tempname.c: Don't declare getenv, thus reverting the change of
62009         2001-11-18.  It's no longer necessary, now that stdlib.h is always
62010         included.
62011
62012         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
62013         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
62014
62015 2001-11-30  Akim Demaille  <akim@epita.fr>
62016
62017         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
62018         before being defined.
62019
62020 2001-11-27  Paul Eggert  <eggert@twinsun.com>
62021
62022         * lib/quotearg.h (quotearg_n, quotearg_n_style):
62023         First arg is int, not unsigned.
62024         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
62025         (SIZE_MAX, UINT_MAX): New macros.
62026         (quotearg_n_options): Abort if N is negative.
62027         Avoid overflow check on hosts where size_t is 64 bits and int
62028         is 32 bits, as overflow is impossible there.
62029         Fix off-by-one typo that caused unnecessary reallocation.
62030
62031 2001-11-27  Jim Meyering  <meyering@lucent.com>
62032
62033         * lib/tempname.c: Merge with version from libc.
62034         * lib/regex.c: Likewise.
62035
62036         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
62037         systems for which STDC_HEADERS is 0, it was not included, resulting in
62038         a warning about an integer-to-pointer conversion problem with getenv.
62039         Reported by Volker Borchert.
62040
62041 2001-11-26  Jim Meyering  <meyering@lucent.com>
62042
62043         * lib/gtod.h: Remove file.
62044         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
62045         * lib/gettimeofday.c: Don't include gtod.h.
62046         (GTOD_init): Remove function.
62047         (rpl_gettimeofday): Do its job here instead, rather than aborting.
62048         Suggestion from Volker Borchert.
62049
62050 2001-11-23  Jim Meyering  <meyering@lucent.com>
62051
62052         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
62053         it.
62054         * lib/hash.c (struct hash_table): Define it here instead.
62055
62056 2001-11-22  Jim Meyering  <meyering@lucent.com>
62057
62058         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
62059
62060 2001-11-20  Jim Meyering  <meyering@lucent.com>
62061
62062         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
62063         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
62064
62065 2001-11-19  Jim Meyering  <meyering@lucent.com>
62066
62067         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
62068         directory.  Use "conftestXXXXXX" as the template.
62069         Suggestion from Paul Eggert.
62070
62071         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
62072         immediately, so the test doesn't mistakenly hit the max-open-files
62073         limit.
62074
62075 2001-11-18  Paul Eggert  <eggert@twinsun.com>
62076
62077         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
62078         (TEMPORARIES): New macro.
62079         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
62080         removes an artificial limitation (e.g. HP-UX 10.20, where
62081         TMP_MAX is 17576).
62082
62083 2001-11-18  Jim Meyering  <meyering@lucent.com>
62084
62085         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
62086
62087 2001-11-18  Jim Meyering  <meyering@lucent.com>
62088
62089         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
62090         on SunOS 4.
62091
62092         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
62093         files will be created before anything else.
62094
62095 2001-11-17  Paul Eggert  <eggert@twinsun.com>
62096
62097         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
62098         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
62099
62100 2001-11-17  Jim Meyering  <meyering@lucent.com>
62101
62102         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
62103         Prompted by a report from Bob Proulx.
62104
62105         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
62106         Instead, require UTILS_FUNC_MKSTEMP.
62107
62108 2001-11-17  Jim Meyering  <meyering@lucent.com>
62109
62110         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
62111         Now, that's done as part of AC_FUNC_STRTOD.
62112
62113 2001-11-17  Jim Meyering  <meyering@lucent.com>
62114
62115         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
62116         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
62117         rather than group writable.  Patch by Juan F. Codagnone.
62118
62119         * lib/readtokens.c: Remove explicit declarations of xmalloc and
62120         xrealloc, Instead, include "xalloc.h".
62121
62122         * lib/mountlist.c: Include unlocked-io.h after all system headers.
62123         Remove explicit declarations of xmalloc, xrealloc,
62124         and xstrdup.  Instead, include "xalloc.h".
62125
62126         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
62127         unlocked-io.h.
62128         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
62129         Likewise.
62130         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
62131
62132         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
62133         Reported by Padraig Brady.
62134
62135         * lib/mkstemp.c: #undef mkstemp.
62136         Include config.h.
62137         (rpl_mkstemp): Rename from mkstemp.
62138         Protoize.
62139
62140 2001-11-16  Jim Meyering  <meyering@lucent.com>
62141
62142         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
62143         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
62144         determine the amount of total physical memory, use pstat_getstatic.
62145         HPUX-11 doesn't define _SC_PHYS_PAGES.
62146         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
62147         If sysconf couldn't be used to determine the amount of available
62148         physical memory, use both pstat_getstatic and pstat_getdynamic.
62149         Based on a patch from Bob Proulx.
62150
62151 2001-11-10  Jim Meyering  <meyering@lucent.com>
62152
62153         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
62154         (jm_PREREQ): Use it.
62155
62156 2001-11-09  Jim Meyering  <meyering@lucent.com>
62157
62158         * m4/jm-macros.m4: Require autoconf-2.52f.
62159         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
62160         Use these AC_-prefixed names, not the AM_-prefixed ones.
62161
62162         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
62163
62164 2001-11-05  Jim Meyering  <meyering@lucent.com>
62165
62166         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
62167
62168 2001-11-04  Jim Meyering  <meyering@lucent.com>
62169
62170         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
62171         $DEFS.
62172
62173 2001-11-03  Jim Meyering  <meyering@lucent.com>
62174
62175         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
62176         of AC_DEFUN.
62177
62178         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
62179         know the name of the variable in the macro definition.
62180
62181 2001-11-03  Jim Meyering  <meyering@lucent.com>
62182
62183         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
62184         in argmatch_to_argument call.
62185
62186         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
62187         argument.
62188
62189         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
62190         e.g., a fault due to an attempt to free a NULL pointer.
62191
62192 2001-11-01  Jim Meyering  <meyering@lucent.com>
62193
62194         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
62195         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
62196
62197 2001-11-01  Jim Meyering  <meyering@lucent.com>
62198
62199         * lib/dirfd.c, lib/dirfd.h: New files.
62200         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
62201
62202         * lib/hash.c (hash_print) [TESTING]: Clean up.
62203
62204 2001-10-22  Paul Eggert  <eggert@twinsun.com>
62205
62206         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
62207         to avoid a warning if -Wall.
62208
62209 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
62210
62211         * README: New file
62212         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
62213         (per RMS's instructions, this is now the canonical source)
62214         * lgpl/, gpl/: New directories.
62215
62216 2001-10-21  Paul Eggert  <eggert@twinsun.com>
62217
62218         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
62219
62220 2001-10-21  Jim Meyering  <meyering@lucent.com>
62221
62222         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
62223         this code would end up calling gettext even in packages built
62224         with --disable-nls.
62225         * lib/getopt.c (_): Likewise.
62226         * lib/regex.c (_): Likewise.
62227
62228 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62229
62230         * m4/error.m4 (jm_PREREQ_ERROR):
62231         Do not invoke AC_CHECK_FUNCS with strerror_r, as
62232         AC_FUNC_STRERROR_R does that.
62233         Check for strerror declaration.
62234
62235         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
62236         are supposed to have them these days.
62237         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
62238         Merge changes from latest Autoconf CVS.
62239         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
62240         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
62241         POSIX decided to standardize on the int flavor of strerror_r.
62242
62243 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62244
62245         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
62246         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
62247         Use strerror_r that is only a macro, even if it is not a function.
62248         (strerror): Check for HAVE_DECL_STRERROR before declaring.
62249         (private_strerror): Use prototypes, not old-style function definition.
62250         (print_errno_message): New function.
62251         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
62252         char*-flavored one.
62253         (error_tail, error, error_at_line): Use it.
62254
62255 2001-10-11  Jim Meyering  <meyering@lucent.com>
62256
62257         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
62258         and quote_n (1, ... to avoid clobbering a buffer.
62259
62260 2001-10-05  Jim Meyering  <meyering@lucent.com>
62261
62262         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
62263         hash-pjw.h.
62264         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
62265         * lib/hash-pjw.h: New file.
62266
62267 2001-09-30  Jim Meyering  <meyering@lucent.com>
62268
62269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
62270         `struct fsstat' has the `f_fstypename' member.
62271         Use that to define FS_TYPE, which is now used to make
62272         the getfsstat link test tighter.
62273
62274 2001-09-30  Jim Meyering  <meyering@lucent.com>
62275
62276         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
62277         Include <sys/ucred.h>, for Apple Darwin.
62278         Include sys/mount.h and sys/fs_types.h only if available.
62279         (FS_TYPE): Define.
62280         (read_filesystem_list): Use FS_TYPE.
62281
62282 2001-09-29  Paul Eggert  <eggert@twinsun.com>
62283
62284         * lib/exclude.c (excluded_filename): 0 -> false, since it's
62285         a boolean context.
62286
62287 2001-09-29  Jim Meyering  <meyering@lucent.com>
62288
62289         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62290         [one-argument getmntent function]): Include stdio.h before mntent.h.
62291         SunOS 4.1.x needs it for the declaration of `FILE'.
62292         Patch by Volker Borchert.
62293
62294         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62295         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
62296         sys/fs_types.h, and make the link-test for getfsstat guard #include
62297         directives with appropriate #if HAVE_*_H tests so that we can
62298         detect getfsstat on Apple Darwin1.3.7 systems.
62299         Reported by Nelson Beebe.
62300         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
62301
62302 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62303
62304         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62305         #defines strtoimax.  Also treat the other strto* functions
62306         like strtoimax.
62307
62308         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62309         Check for strtoul and strtoumax,
62310         as those declarations are made even in the signed case.
62311         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62312         Likewise, for strtol and strtoimax.
62313
62314 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62315
62316         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62317         #defines strtoimax.  Also treat the other strto* functions
62318         like strtoimax.
62319
62320         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62321         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62322         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62323
62324 2001-09-26  Jim Meyering  <meyering@lucent.com>
62325
62326         Most macros in unlocked-io.h had the wrong number of arguments.
62327         * lib/gen-uio: New script.
62328         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62329         * lib/unlocked-io.hin: Remove file.
62330         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62331         rather than trying to embed it here.
62332         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62333         Reported by Padraig Brady.
62334
62335 2001-09-25  Volker Borchert  <bt@teknon.de>
62336
62337         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62338         `result'.
62339
62340 2001-09-24  Jim Meyering  <meyering@lucent.com>
62341
62342         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62343
62344 2001-09-23  Jim Meyering  <meyering@lucent.com>
62345
62346         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62347         instead of the mere test for existence of mntent.h.  The latter
62348         would get a false-positive on AIX 3.4 systems.
62349         In the outer getmntent if-block, don't die if neither of the getmntent
62350         tests succeeds.  Instead, just fall through and continue with the
62351         remaining tests.
62352
62353 2001-09-23  Jim Meyering  <meyering@lucent.com>
62354
62355         * lib/mountlist.c: Remove useless parentheses in #if directives.
62356         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62357         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62358
62359 2001-09-22  Jim Meyering  <meyering@lucent.com>
62360
62361         * m4/gettext.m4: New file.  From gettext.
62362         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62363         * m4/progtest.m4: Likewise
62364         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62365         * m4/glibc21.m4: Likewise.
62366
62367         * m4/libintl.m4: Remove.  No longer used.
62368
62369 2001-09-22  Jim Meyering  <meyering@lucent.com>
62370
62371         * lib/localcharset.c: Update from latest gettext.
62372         * lib/config.charset: Likewise.
62373
62374 2001-09-20  Jim Meyering  <meyering@lucent.com>
62375
62376         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62377         strtoimax.
62378         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62379         strtoumax.
62380
62381 2001-09-20  Jim Meyering  <meyering@lucent.com>
62382
62383         * lib/xstrtol.c (strtoimax): Guard declaration with
62384         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62385         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62386         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62387         (strtoumax): Likewise, for completeness (it wasn't necessary).
62388
62389 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62390
62391         * lib/strtoimax.c (HAVE_LONG_LONG):
62392         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62393         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62394         to work around bug in IBM C compiler.
62395
62396 2001-09-17  Jim Meyering  <meyering@lucent.com>
62397
62398         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62399         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62400         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62401         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62402         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62403         whenever the right hand side need not be expanded by the shell.
62404
62405 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62406
62407         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62408         library.  It's not correct, as some older glibcs are buggy.
62409         fnmatch wasn't fixed until glibc 2.2.
62410
62411         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62412         special shell magic here.
62413
62414 2001-09-16  Jim Meyering  <meyering@lucent.com>
62415
62416         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62417         * m4/jm-macros.m4: Require it.
62418
62419 2001-09-16  Jim Meyering  <meyering@lucent.com>
62420
62421         * lib/mkdir.c: New file.
62422
62423 2001-09-15  Jim Meyering  <meyering@lucent.com>
62424
62425         * m4/jm-macros.m4: Check for help2man.
62426
62427 2001-09-11  Jim Meyering  <meyering@lucent.com>
62428
62429         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62430         The body, by Paul Eggert, was moved here from configure.in.
62431         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62432
62433 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62434
62435         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62436         (jm_PREREQ): Use it.
62437
62438 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62439
62440         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62441         Use ssize_t, not int, to store result of readlink.
62442         Check for ssize_t overflow as well as size_t overflow,
62443         as POSIX says the result of readlink is implementation-defined
62444         when ssize_t overflows.
62445         Remove unnecessary cast to char*.
62446         Use free+malloc instead of realloc, as the storage doesn't need
62447         to be preserved and it's clearer and can be more efficient that way.
62448         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62449         * lib/xreadlink.h (xreadlink): Update prototype.
62450
62451 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62452
62453         * lib/xgetcwd.c: Revert some of the previous change; intead,
62454         fix the HAVE_GETCWD_NULL code to behave more like the
62455         !HAVE_GETCWD_NULL code used to.
62456
62457         Include "xalloc.h".
62458         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62459         invoke xalloc_die.
62460
62461 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62462
62463         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62464         sys/param.h, as pathmax.h includes them.
62465
62466 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62467
62468         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62469         (jm_PREREQ_XGETCWD): New macro.
62470
62471         * m4/getcwd.m4: New file.
62472
62473 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62474
62475         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62476         like the HAVE_GETCWD_NULL code.
62477         Include pathmax.h if not HAVE_GETCWD.
62478         Do not include xalloc.h.
62479         (INITIAL_BUFFER_SIZE): New symbol.
62480         Do not use xmalloc / xrealloc, since the caller is responsible for
62481         handling errors.  Preserve errno around `free' during failure.
62482         Do not overrun buffer when using getwd.
62483
62484 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62485
62486         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62487         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62488         getcwd (NULL, 0).
62489
62490 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62491
62492         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62493         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62494         spotted by Jim Meyering.
62495
62496 2001-09-03  Jim Meyering  <meyering@lucent.com>
62497
62498         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62499         failure.
62500
62501 2001-09-02  Jim Meyering  <meyering@lucent.com>
62502
62503         * lib/error.c: Update from GNU libc.
62504
62505 2001-09-01  Jim Meyering  <meyering@lucent.com>
62506
62507         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62508         Used by df.
62509
62510 2001-09-01  Jim Meyering  <meyering@lucent.com>
62511
62512         * lib/xreadlink.c: New file.
62513         * lib/xreadlink.h: New file.
62514         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62515         xreadlink.h.
62516
62517         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62518         doesn't conflict with sparc Solaris 7's definition in
62519         /usr/include/sys/int_types.h.
62520
62521         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62522         files.
62523         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62524         and strncasecmp as r-values.  Unixware didn't have declarations.
62525
62526 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62527
62528         * lib/xstrtol.h: Add copyright notice.
62529         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62530         LONGINT_INVALID_SUFFIX_CHAR.
62531
62532 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62533
62534         * lib/xstrtol.c (strtoimax): New decl.
62535
62536 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62537
62538         * lib/xgetcwd.c: Don't include pathmax.h.
62539         Include stdlib.h and unistd.h if available.
62540         Include xalloc.h.
62541         (xmalloc, xstrdup, free): Remove decls.
62542         (xgetcwd): Don't assume sizes fit in unsigned.
62543         Check for overflow when computing sizes.
62544         Simplify reallocation code.
62545
62546 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62547
62548         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62549         a directory's st_size can have an arbitrary value, so the old
62550         usage could waste an arbitrary amount of memory.  All uses
62551         changed.
62552         * lib/savedir.h: Update prototype.
62553
62554 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62555
62556         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62557
62558         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62559         old strtoimax.c.
62560
62561         Also, make the following further changes to make this file's
62562         configuration more similar to that of strtol.c:
62563         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62564         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62565         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62566         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62567         changed to signed values.
62568
62569         And make the following changes as well:
62570         Fix copyright notice, as 1999 was missing.
62571         (verify): New macro.
62572         (strtoimax): Check sizes at compile-time, not run-time.
62573         Prefer strtol to strtoll if both work.
62574         (main): Remove; it was not that useful and was a pain to maintain.
62575
62576         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62577
62578 2001-08-31  Jim Meyering  <meyering@lucent.com>
62579
62580         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62581         Use an initial, malloc'd, buffer of length 128 rather than
62582         a statically allocated one of length 1024.
62583
62584 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62585
62586         Simplify code, partly by assuming autoconf 2.52 semantics.
62587
62588         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62589
62590         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62591         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62592         All uses removed.
62593         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62594         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62595         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62596         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62597         jm_AC_HEADER_INTTYPES_H.
62598         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62599
62600         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62601
62602         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62603         Quote first arg of AC_DEFUN.
62604         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62605         since they are needed to parse the include file even if we need
62606         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62607         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62608         but with opposite signedness.
62609
62610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62611
62612         Merge 'exclude' changes from tar 1.13.22.
62613         This fixes one or two unlikely storage allocation overflow bugs,
62614         but doesn't change user-visible behavior otherwise.
62615
62616 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62617
62618         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62619         (jm_PREREQ_EXCLUDE): New macro.
62620
62621 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62622
62623         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62624         tm to be declared.
62625
62626 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62627
62628         * lib/hash.c: Remove '2001' from copyright notice.
62629
62630 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62631
62632         * lib/full-write.h: New file.
62633         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62634         * lib/full-write.c: Correct credits, as cccp.c no longer
62635         exists and anyway it was so heavily changed from the old cccp
62636         code as to be unrecognizable.  Include full-write.h.
62637         (full_write) Return size_t, with short writes meaning failure.
62638         All callers changed.  This fixes a bug with large buffers
62639         on 64-bit hosts.
62640         * lib/utime.c: Include full-write.h.
62641
62642 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62643
62644         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62645         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62646         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62647         Include if available.
62648         (<xalloc.h>): Include
62649         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62650         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62651         collide with FNM macros.
62652         (struct patopts): New struct.
62653         (struct exclude): Use it, as exclude patterns now come with options.
62654         (new_exclude): Support above changes.
62655         (new_exclude, add_exclude_file):
62656         Initial size must now be a power of two to simplify overflow checking.
62657         (free_exclude, fnmatch_no_wildcards): New function.
62658         (excluded_filename): No longer requires options arg, as the options
62659         are determined by add_exclude.  Now returns bool, not int.
62660         (excluded_filename, add_exclude):
62661         Add support for the fancy new exclusion options.
62662         (add_exclude, add_exclude_file): Now takes int options arg.
62663         Check for arithmetic overflow when computing sizes.
62664         (add_exclude_file): xrealloc might modify errno, so don't
62665         realloc until after errno might be used.
62666
62667         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62668         New macros.
62669         (free_exclude): New decl.
62670         (add_exclude, add_exclude_file): Now takes int options arg.
62671         (excluded_filename): No longer requires options arg, as the options
62672         are determined by add_exclude.  Now returns bool, not int.
62673
62674 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62675
62676         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62677
62678 2001-08-27  Jim Meyering  <meyering@lucent.com>
62679
62680         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62681
62682         * lib/version-etc.c (N_): Remove definition.
62683         Revert most of last change.
62684         Instead, simply don't mark the `Copyright...' string for translation.
62685         Based on advice from Paul Eggert.
62686
62687         * lib/strtoxmax.c: Tweak comment.
62688
62689 2001-08-26  Jim Meyering  <meyering@lucent.com>
62690
62691         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62692
62693         * m4/xstrtoimax.m4: New file.
62694         * m4/xstrtoumax.m4: Add comments explaining why we
62695         AC_REPLACE_FUNCS(strtol).
62696
62697 2001-08-26  Jim Meyering  <meyering@lucent.com>
62698
62699         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62700         of copyright with `%s' so translators don't get an untranslated
62701         message in 2002.
62702         (COPYRIGHT_YEAR): Define.
62703         (version_etc): Use fprintf rather than fputs.
62704         Suggestion from Ulrich Drepper.
62705
62706         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62707
62708         * lib/strtoll.c: New file, from GNU libc.
62709         * lib/xstrtoimax.c: New file.
62710
62711         * lib/xstrtol.h: Add xstrtoimax.
62712         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62713         * lib/strtoimax.c: New file.  Likewise, but first define
62714         STRTOUXMAX_SIGNED.
62715
62716         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62717         ...
62718         * lib/strtoxmax.c: ... then renamed to this.
62719
62720 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62721
62722         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62723         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62724         (jm_AC_TYPE_INTMAX_T): New macro.
62725         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62726
62727         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62728
62729         * m4/longlong.m4: Renamed from ulonglong.m4.
62730         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62731         * m4/uintmax_t.m4: Removed.
62732
62733 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62734
62735         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62736         Port to Solaris 8, where 'sed' requires a space after the 'r'
62737         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62738         Redirect output to $tmp just once.
62739
62740 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62741
62742         * lib/addext.c (<errno.h>): Include.
62743         (errno): Declare if not defined.
62744         (addext): Work correctly when pathconf returns -1 and leaves
62745         errno alone because there is no limit.  Also, work even if
62746         pathconf returns a value greater than SIZE_MAX.
62747
62748 2001-08-12  Jim Meyering  <meyering@lucent.com>
62749
62750         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62751         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62752         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62753         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62754         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62755         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62756         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62757         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62758         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62759         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62760         utime.m4, utimes.m4, xstrtoumax.m4:
62761         Quote the first argument in each use of AC_DEFUN.
62762
62763 2001-08-12  Jim Meyering  <meyering@lucent.com>
62764
62765         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62766         Simply `return getcwd (NULL, 0);'.
62767         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62768         Use 1300 as initial value for length, not PATH_MAX.
62769
62770         * lib/pathmax.h: Clean up cpp syntax.
62771
62772 2001-08-12  Jim Meyering  <meyering@lucent.com>
62773
62774         * lib/gettimeofday.c: New file.
62775         * lib/gtod.h: New file.
62776         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62777
62778 2001-08-05  Jim Meyering  <meyering@lucent.com>
62779
62780         * m4/jm-macros.m4: Require autoconf-2.52.
62781
62782 2001-08-04  Jim Meyering  <meyering@lucent.com>
62783
62784         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62785         stmt, to get in sync with glibc.
62786
62787 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62788
62789         The following changes are from gettext 0.10.39 as maintained by
62790         Bruno Haible.
62791
62792         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62793         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62794         with inverted sense.  All uses changed.
62795
62796         * lib/mbswidth.c: Don't include <limits.h>.
62797         Include <stdlib.h> and <string.h> unconditionally.
62798         (iswcntrl, mbsinit, ISCNTRL): New macros.
62799         (mbsnwidth): Use K&R style function declarations.
62800         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62801         can optimize it when MB_CUR_MAX == 1.
62802         The width of control characters is zero, not 1.
62803
62804 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62805
62806         The following changes are from gettext 0.10.39 as maintained by
62807         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62808
62809         * m4/codeset.m4: Upgrade to serial AM1.
62810         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62811         all uses changed.  Quote first arg of AC_DEFUN.
62812         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62813
62814         * m4/iconv.m4: Upgrade to serial AM2.
62815         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62816         Add --with-libconv-prefix.
62817         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62818         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62819         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62820         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62821         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62822
62823         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62824         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62825         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62826         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62827         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62828         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62829         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62830         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62831         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62832
62833         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62834         string.h any more.
62835
62836         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62837         not the default value.
62838
62839         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62840         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62841         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62842         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62843         Also check for iswcntrl, used for wcwidth fallback.
62844         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62845         to Autoconf 2.13.
62846
62847 2001-08-03  Jim Meyering  <meyering@lucent.com>
62848
62849         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62850         as it was in the original.  Reported by Paul Eggert.
62851
62852 2001-07-16  Jim Meyering  <meyering@lucent.com>
62853
62854         * m4/gettimeofday.m4: New file.
62855         Prompted by a report from Bernhard Baehr.
62856
62857 2001-07-15  Jim Meyering  <meyering@lucent.com>
62858
62859         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62860         stuff. Now it's in ../Makefile.cfg.
62861
62862 2001-07-15  Jim Meyering  <meyering@lucent.com>
62863
62864         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62865         (BUILT_SOURCES): Add unlocked-io.h.
62866         (io_functions): Define.
62867         (unlocked-io.h): New rule.
62868         (DISTCLEANFILES): Add unlocked-io.h.
62869         (all-local): Depend on unlocked-io.h, to ensure it is created.
62870
62871         * lib/unlocked-io.hin: New file
62872
62873         * lib/regex.c: Update from glibc.
62874
62875 2001-07-05  Jim Meyering  <meyering@lucent.com>
62876
62877         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62878         recommendation.
62879         (libfetish_a_SOURCES): Put all .h files here instead.
62880         Remove a thus-exposed (better checks in automake) duplicate and
62881         two unnecessary .h files.
62882
62883 2001-07-04  Jim Meyering  <meyering@lucent.com>
62884
62885         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62886         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62887         distcheck failure.
62888
62889 2001-07-02  Jim Meyering  <meyering@lucent.com>
62890
62891         The following changes were prompted by suggestions from Bruno Haible.
62892
62893         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62894         is now generated.
62895         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62896         definition of EXTRA_DIST.
62897         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62898         ensure that the generated file is created/updated whenever the list
62899         of $(unlocked_functions) is changed.
62900         (jm-glibc-io.m4): New rule.
62901         (unlocked-io.h): New rule -- currently unused.
62902
62903 2001-06-24  Jim Meyering  <meyering@lucent.com>
62904
62905         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62906         unmatched right bracket, rather than kludging it with an extra,
62907         falsely-matching quote in a comment.  Patch by Akim Demaille.
62908
62909 2001-06-11  Jim Meyering  <meyering@lucent.com>
62910
62911         * lib/regex.c: Update from GNU libc.
62912
62913 2001-05-27  Jim Meyering  <meyering@lucent.com>
62914
62915         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62916         Check for ut_type in struct utmp.
62917
62918 2001-05-27  Jim Meyering  <meyering@lucent.com>
62919
62920         * lib/readutmp.h (UT_TYPE): Define.
62921
62922 2001-05-24  Jim Meyering  <meyering@lucent.com>
62923
62924         * lib/argmatch.c: Include "quote.h".
62925         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62926         quote function.  Reported by Göran Uddeborg.
62927
62928 2001-05-22  Jim Meyering  <meyering@lucent.com>
62929
62930         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62931         now that we use the package-supplied version unconditionally.
62932         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62933
62934 2001-05-21  Jim Meyering  <meyering@lucent.com>
62935
62936         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62937         shell syntax errors.
62938
62939 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62940
62941         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62942
62943 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62944
62945         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62946         Don't bother to check library strftime, since
62947         we'll be using our own my_strftime function anyway.
62948         Define my_strftime instead of strftime.
62949
62950 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62951
62952         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62953         which is not yet declared.
62954
62955 2001-05-15  Jim Meyering  <meyering@lucent.com>
62956
62957         * m4/regex.m4: Use proper quoting so brackets appear in the test
62958         program.
62959         Reported by, and with help from, Bruno Haible.
62960
62961 2001-05-13  Jim Meyering  <meyering@lucent.com>
62962
62963         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62964         undefined.
62965
62966 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62967
62968         dirname code cleanup.  base_name now behaves more compatibly
62969         with POSIX basename when given file names that have trailing
62970         slashes, and similarly for dir_name.  Add new primitives
62971         base_len and dir_len.  Put the directory-name-related decls
62972         into dirname.h.
62973
62974         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62975         * lib/backupfile.c (base_name): Likewise.
62976         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62977         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62978         * lib/makepath.c (strip_trailing_slashes): Likewise.
62979         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62980         ISSLASH): Likewise.
62981         * lib/rename.c (strip_trailing_slashes): Likewise.
62982         * lib/same.c (base_name): Likewise.
62983         * lib/stripslash.c (ISSLASH): Likewise.
62984
62985         * lib/addext.c: Include <dirname.h> after size_t is defined.
62986         * lib/backupfile.c: Likewise.
62987
62988         * lib/addext.c (addext): Use base_len to trim redundant
62989         trailing slashes instead of doing it ourselves.
62990         But do not trim the last slash if it is not redundant.
62991
62992         * lib/backupfile.c (find_backup_file_name,
62993         max_backup_version): Use base_len instead of rolling it ourselves.
62994         Handle the case of "" and (on DOS) "C:" correctly.
62995
62996         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62997         needed. Include <string.h>, <dirname.h>.
62998         (base_name): Allow file names ending in slashes, other than names
62999         that are all slashes.  In this case, return the basename followed
63000         by the slashes.  This is more general, and can be used in places
63001         where the original base_name purposely had an assertion failure.
63002         (base_len): New function.
63003
63004         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
63005         Do not include <assert.h>; no longer needed.
63006         Include xalloc.h.
63007         (memrchr): Remove decl.
63008         (dir_name_r): Remove.
63009         (dir_len): Renamed from dirlen.  All callers changed.
63010         Rewrite in terms of base_name, for simplicity and consistency.
63011         (dir_name): Never return NULL.  All callers changed.
63012         Do not include <stdlib.h> in test program; no longer needed.
63013         return 0; is fine for test program.
63014
63015         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
63016         New macros.
63017         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
63018
63019         * lib/path-concat.c (path_concat): Use base_len to compute
63020         base length, not strlen; this means we cannot rely on memcpy
63021         to null-terminate.
63022
63023         * lib/same.c (STREQ): Remove.
63024         (same_name): Handle the case where the basename ends in trailing '/'.
63025
63026         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
63027         a slash was stripped.  Do not strip the last slash after a
63028         file system prefix.
63029
63030 2001-05-11  Paul Eggert  <eggert@twinsun.com>
63031
63032         * lib/Makefile.am (libfetish_a_SOURCES):
63033         Add strftime.c, since we now compile it on all hosts.
63034
63035         * lib/strftime.c (my_strftime):
63036         Define to nstrftime if emacs, but only if my_strftime is not defined.
63037         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
63038         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
63039         Add one more extra argument: a nanoseconds value.
63040         All uses changed.
63041         (ns): New macro.
63042         (my_strftime function): Add %N format.
63043         (emacs_strftimeu): Renamed from emacs_strftime,
63044         with extra ut argument.
63045
63046 2001-05-09  Paul Eggert  <eggert@twinsun.com>
63047
63048         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
63049
63050 2001-04-21  Jim Meyering  <meyering@lucent.com>
63051
63052         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
63053         doesn't interfere.
63054
63055 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
63056
63057         * m4/ftruncate.m4: Check for chsize.
63058         Link with ftruncate.o unconditionally if ftruncate is missing.
63059         This was required when cross-compiling to i586-mingw32msvc.
63060
63061 2001-04-08  Jim Meyering  <meyering@lucent.com>
63062
63063         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
63064         recomputed; that's necessary when the offset spans a DST transition.
63065         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
63066
63067 2001-04-02  Jim Meyering  <meyering@lucent.com>
63068
63069         * lib/regex.h, regex.c: Update from GNU libc.
63070
63071 2001-03-24  Jim Meyering  <meyering@lucent.com>
63072
63073         * m4/jm-macros.m4: Require autoconf-2.49d.
63074
63075 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
63076
63077         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
63078
63079 2001-03-19  Paul Eggert  <eggert@twinsun.com>
63080
63081         * lib/version-etc.c (version_etc_copyright): Update to 2001.
63082
63083 2001-03-17  Jim Meyering  <meyering@lucent.com>
63084
63085         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
63086         now that the version in autoconf is equivalent.
63087         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
63088
63089         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
63090         Suggestion from Akim Demaille.
63091
63092         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
63093         (jm_PREREQ_TEMPNAME): New function.
63094
63095 2001-03-16  Paul Eggert  <eggert@twinsun.com>
63096
63097         * lib/tempname.c (uint64_t): Define to uintmax_t if
63098         not defined, and if UINT64_MAX is not defined.
63099         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
63100         Reported by John David Anglin.
63101
63102 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
63103
63104         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
63105         resolve alias if codeset is empty.
63106         * lib/config.charset (BeOS): Use wildcard syntax.
63107
63108 2001-03-13  Jim Meyering  <meyering@lucent.com>
63109
63110         * lib/path-concat.c (path_concat)
63111         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
63112         concatenating e.g., `C:' and `foo'.
63113         From Bruno Haible.
63114
63115 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63116
63117         * lib/localcharset.c (locale_charset): Don't use
63118         setlocale(LC_CTYPE,NULL). Don't return NULL.
63119         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
63120
63121 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63122
63123         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
63124         support for DOS/DJGPP.
63125
63126 2001-03-01  Paul Eggert  <eggert@twinsun.com>
63127
63128         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
63129         lacks mkstemp.  Compile our own tempname.c if we compile our own
63130         mkstemp.c, as mkstemp relies on tempname.
63131
63132 2001-03-01  Jim Meyering  <meyering@lucent.com>
63133
63134         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
63135         AH_VERBATIM really does output its argument verbatim.
63136
63137 2001-02-28  Paul Eggert  <eggert@twinsun.com>
63138
63139         * lib/Makefile.am (libfetish_a_SOURCES):
63140         Add dup-safer.c, fopen-safer.c.
63141         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
63142
63143         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
63144         * lib/unistd-safer.h: New files.
63145
63146 2001-02-25  Paul Eggert  <eggert@twinsun.com>
63147
63148         The mkstemp replacement is taken from glibc 2.2.2, with some
63149         portability fixes for use outside glibc, as follows:
63150
63151         * lib/tempname.c (struct_stat64): New macro.
63152         (direxists, __gen_tempname): Use it.
63153         This avoids a portability problem with Solaris 8.
63154
63155         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
63156         (<stddef.h>, <stdint.h>, <string.h>):
63157         Include only if STDC_HEADERS || _LIBC.
63158         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
63159         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
63160         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
63161         (__set_errno): Define this macro if <errno.h> doesn't.
63162         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
63163         Define these macros if <stdio.h> doesn't.
63164         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
63165         Define these macros if <sys/stat.h>
63166         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
63167         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
63168         __xstat64): Define if not _LIBC.
63169         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
63170         (__gen_tempname): Invoke gettimeofday only if
63171         HAVE_GETTIMEOFDAY || _LIBC;
63172         otherwise, fall back on plain "time".
63173         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
63174
63175         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
63176
63177         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
63178
63179 2001-02-18  Paul Eggert  <eggert@twinsun.com>
63180
63181         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
63182
63183 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63184
63185         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
63186         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
63187         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
63188         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63189
63190 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63191
63192         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
63193         Remove workaround macros for hosts that have mbrtowc but not
63194         mbstate_t, as we now insist on proper declarations for both
63195         before using mbrtowc.
63196
63197 2001-02-17  Jim Meyering  <meyering@lucent.com>
63198
63199         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
63200         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
63201         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
63202         UnixWare 7.1.1.
63203
63204         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
63205         rather than AC_CACHE_VAL.
63206
63207 2001-02-17  Jim Meyering  <meyering@lucent.com>
63208
63209         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
63210         around included file name.
63211
63212         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
63213
63214         * lib/strftime.c: Update from GNU libc (the only changes were to
63215         comments).
63216
63217 2001-02-17  Jim Meyering  <meyering@lucent.com>
63218
63219         * lib/regex.c: Update from libc.
63220
63221 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
63222
63223         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
63224         clash.
63225
63226 2001-02-16  Paul Eggert  <eggert@twinsun.com>
63227
63228         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
63229         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
63230         Reported by Mark Hounschell via Paul Eggert.
63231
63232 2001-02-07  Jim Meyering  <meyering@lucent.com>
63233
63234         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
63235
63236 2001-02-05  Jim Meyering  <meyering@lucent.com>
63237
63238         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
63239         it includes the patch required for `large file' support with at least
63240         HP-UX's 10.20 /bin/cc.
63241
63242 2001-02-03  Jim Meyering  <meyering@lucent.com>
63243
63244         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
63245         AS_IF, now that it works once again (mysteriously).
63246         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63247
63248 2001-01-30  Jim Meyering  <meyering@lucent.com>
63249
63250         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
63251         * m4/chown.m4: Rename conftestchown to conftest.chown.
63252         * m4/rename.m4: s/conftestdir/conftest.d1/ and
63253         s/conftestdir2/conftest.d2/.
63254         * m4/utimes.m4: s/conftestdata/conftest.data/
63255         Inspired by Pavel Roskin's change in autoconf.
63256
63257 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
63258
63259         * lib/config.charset: Update for FreeBSD 4.2.
63260
63261 2001-01-27  Jim Meyering  <meyering@lucent.com>
63262
63263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
63264         a use of AS_IF.
63265         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63266
63267 2001-01-26  Jim Meyering  <meyering@lucent.com>
63268
63269         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
63270         quotearg.c includes it.
63271
63272 2001-01-26  Jim Meyering  <meyering@lucent.com>
63273
63274         * lib/quotearg.c: Include stddef.h.
63275         * lib/quote.c: Include stddef.h.
63276         Reported by Axel Kittenberger.
63277
63278         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
63279         line in double quotes so that it evokes a better diagnostic.
63280         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
63281         Reported by Axel Kittenberger.
63282
63283 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
63284
63285         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
63286         as if it was a `charset'.
63287
63288 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63289
63290         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
63291         has const.
63292
63293 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63294
63295         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
63296         to avoid a warning.  Add back 'const' to inptr.
63297
63298 2001-01-20  Jim Meyering  <meyering@lucent.com>
63299
63300         Be sure that headers are checked before used in code compiled
63301         for the type checks.
63302         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
63303         In place of that, invoke jm_CHECK_ALL_TYPES.
63304         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
63305         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
63306         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
63307         The check for ssize_t was mistakenly run before the test for unistd.h.
63308
63309         The configure-time check for stdbool.h was missing.
63310         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
63311         (jm_PREREQ_HASH): New function.
63312
63313 2001-01-17  Jim Meyering  <meyering@lucent.com>
63314
63315         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63316         for autoconf-2.49c.
63317         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63318
63319 2001-01-16  Jim Meyering  <meyering@lucent.com>
63320
63321         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63322         From Bruno Haible.
63323
63324 2001-01-14  Jim Meyering  <meyering@lucent.com>
63325
63326         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63327         foo and bar.  Create conftestdir/ in the script, not in the C code.
63328         Remove directories in the script, not in the C code.
63329         Remove conftestdir{,2} before trying to create the directory.
63330         Make the entire configure script fail if the mkdir fails.
63331
63332 2001-01-14  Jim Meyering  <meyering@lucent.com>
63333
63334         * lib/rename.c: New file.  From Volker Borchert.
63335         Include stdlib.h, string.h or strings.h, and xalloc.h.
63336         Use strip_trailing_slashes rather than open-coding it.
63337
63338 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63339
63340         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63341
63342 2001-01-03  Jim Meyering  <meyering@lucent.com>
63343
63344         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63345         of local `inptr' to avoid warning with some system declarations of
63346         iconv.
63347
63348 2001-01-02  Volker Borchert  <bt@teknon.de>
63349
63350         * m4/rename.m4: New file.
63351         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63352
63353 2001-01-01  Jim Meyering  <meyering@lucent.com>
63354
63355         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63356         even on systems with utmpx.h.  It's necessary for the declaration of
63357         utmp's ut_user member.  Reported by Andreas Jaeger.
63358
63359         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63360         available. They are required for the declarations of getgrgid and
63361         getpwuid resp.
63362         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63363         Reported by Andreas Jaeger.
63364
63365 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63366
63367         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63368         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63369         so `make install' also works in VPATH builds.
63370
63371 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63372
63373         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63374         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63375         can be used in subdirectories.
63376
63377 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63378
63379         * lib/modechange.c: Do not assume that mode_t uses the
63380         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63381         the other-execute bit of FOO even if S_IXOTH != 1.
63382
63383         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63384         WOTH, XOTH, ALLM): New macros.
63385         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63386          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63387         Use them.
63388         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63389         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63390         (mode_compile):
63391         No need to use uintmax_t; unsigned long is long enough.
63392         Don't bother to get suffix since we don't use it.
63393
63394 2000-12-26  Jim Meyering  <meyering@lucent.com>
63395
63396         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63397         better with autoheader.
63398
63399 2000-12-24  Jim Meyering  <meyering@lucent.com>
63400
63401         * lib/hash.c (is_prime): Return explicit boolean values.
63402         (hash_get_first): Return NULL to appease Irix5.6's 89.
63403         Reported by Nelson Beebe.
63404
63405 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63406
63407         * lib/localcharset.c (locale_charset): Add support for Win32.
63408
63409 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63410
63411         * lib/physmem.h, lib/physmem.c: New files.
63412
63413         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63414         (noinst_HEADERS): Add physmem.h.
63415
63416         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63417         't' for compatibility with Solaris 8 sort.
63418
63419 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63420
63421         * lib/config.charset: Add support for BeOS.
63422
63423 2000-12-17  Jim Meyering  <meyering@lucent.com>
63424
63425         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63426         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63427
63428 2000-12-16  Jim Meyering  <meyering@lucent.com>
63429
63430         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63431         N and M) would have treated it like `chown N:N FILE'.
63432
63433         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63434
63435 2000-12-16  Jim Meyering  <meyering@lucent.com>
63436
63437         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63438         SHELLS_FILE to a file name that's useful on djgpp systems.
63439         Include stdlib.h.
63440         (ADDITIONAL_DEFAULT_SHELLS): Define.
63441         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63442         Based mostly on a patch from Prashant TR.
63443
63444 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63445
63446         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63447         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63448         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63449
63450 2000-12-08  Andreas Schwab  <schwab@suse.de>
63451
63452         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63453         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63454
63455 2000-12-07  Jim Meyering  <meyering@lucent.com>
63456
63457         * lib/stripslash.c (ISSLASH): Define.
63458         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63459         `/'.
63460         From Prashant TR.
63461
63462         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63463         (dir_name_r): Declare this function as static.
63464         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63465         manifest itself on a name containing a mix of slashes and
63466         backslashes.
63467         Make this function work with names starting with a DOS-style
63468         drive letter and colon prefix.
63469         (dir_name): Append `.' if necessary.
63470         Based mostly on patches from Prashant TR and Eli Zaretskii.
63471
63472         * lib/dirname.h (dir_name_r): Remove prototype.
63473
63474 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63475
63476         * m4/off_t-format.m4: Remove this file.
63477         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63478
63479 2000-12-06  Jim Meyering  <meyering@lucent.com>
63480
63481         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63482         replacement strtoull, we may well need the replacement strtoul, too.
63483         Check for declarations of strtoul and strtoull.
63484         Check for strtol.  Mainly as a cue to cause automake to include
63485         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63486         Check for limits.h -- strtol.c needs it.
63487
63488 2000-12-05  Jim Meyering  <meyering@lucent.com>
63489
63490         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63491
63492 2000-12-04  Jim Meyering  <meyering@lucent.com>
63493
63494         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63495         Also include memory.h, stdlib.h, unistd.h if appropriate.
63496         Reported by Andreas Jaeger (conflicting declaration of malloc).
63497
63498 2000-12-02  Jim Meyering  <meyering@lucent.com>
63499
63500         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63501         * m4/jm-macros.m4 (jm_MACROS): require it.
63502
63503 2000-12-02  Jim Meyering  <meyering@lucent.com>
63504
63505         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63506
63507 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63508
63509         * lib/memrchr.c: Include <config.h> before any system include file.
63510
63511 2000-11-30  Jim Meyering  <meyering@lucent.com>
63512
63513         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63514
63515 2000-11-30  Jim Meyering  <meyering@lucent.com>
63516
63517         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63518
63519 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63520
63521         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63522
63523 2000-11-26  Jim Meyering  <meyering@lucent.com>
63524
63525         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63526
63527 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63528
63529         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63530         size of (size_t) -1; it's not portable.
63531
63532 2000-11-17  Jim Meyering  <meyering@lucent.com>
63533
63534         * lib/strstr.c: Update from GNU libc.
63535
63536 2000-11-17  Akim Demaille  <akim@epita.fr>
63537
63538         * lib/obstack.h: Formatting changes.
63539         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63540         prevent type checking.
63541         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63542         cast the value to (void *): assigning a `foo *' to a `void *'
63543         variable is valid.
63544         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63545
63546 2000-11-16  Jim Meyering  <meyering@lucent.com>
63547
63548         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63549
63550 2000-11-11  Jim Meyering  <meyering@lucent.com>
63551
63552         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63553
63554 2000-11-10  Jim Meyering  <meyering@lucent.com>
63555
63556         * lib/obstack.h: Update from GNU libc.
63557         * lib/obstack.c: Likewise.
63558
63559 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63560
63561         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63562
63563 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63564
63565         * lib/getusershell.c (setusershell): Use rewind rather than
63566         fseek/fseeko, to avoid configuration hassles with fseeko.
63567         Don't bother opening SHELLS_FILE if shellstream is NULL;
63568         it's not necessary.
63569
63570 2000-11-05  Jim Meyering  <meyering@lucent.com>
63571
63572         * lib/makepath.h (make_dir): Declare.
63573         * lib/makepath.c (make_dir): Remove `static' attribute.
63574         Tweak a comment.
63575
63576 2000-11-04  Jim Meyering  <meyering@lucent.com>
63577
63578         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63579
63580 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63581
63582         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63583         last one in a bucket, advance to the next bucket.
63584
63585 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63586
63587         * lib/fnmatch.c: Do not comment out all the code if we are using
63588         the GNU C library, because in some cases we are replacing buggy
63589         code in the GNU C library itself.
63590
63591 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63592
63593         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63594         (regex_compile): Catch bogus \(\1\).
63595
63596 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63597
63598         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63599         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63600         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63601
63602 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63603
63604         * lib/error.h, getline.h, modechange.h:
63605         Remove "2000" from Copyright line, as the file hasn't been
63606         changed this year other than in the copyright notice.
63607
63608         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63609         was changed this year.
63610
63611 2000-10-29  Jim Meyering  <meyering@lucent.com>
63612
63613         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63614         renaming.
63615         * m4/ls-mntd-fs.m4: Likewise
63616
63617 2000-10-29  Jim Meyering  <meyering@lucent.com>
63618
63619         * lib/xstat.in: Fix grammar in comment.
63620
63621 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63622
63623         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63624         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63625         doesn't define __restrict_arr.
63626
63627 2000-10-28  Jim Meyering  <meyering@lucent.com>
63628
63629         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63630         (jm_PREREQ_MEMCHR): New function.
63631
63632 2000-10-28  Jim Meyering  <meyering@lucent.com>
63633
63634         * lib/memchr.c: Update from libc.
63635         Adjust for portability:
63636         [HAVE_STDLIB_H]: Include stdlib.h.
63637         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63638         Undef __memchr, too.
63639         [!weak_alias]: Define __memchr to memchr.
63640
63641         * lib/regex.c: Update from libc.
63642         * lib/regex.h: Likewise.
63643         * lib/getopt1.c: Likewise.
63644         * lib/memcmp.c: Likewise.
63645
63646         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63647         Avoid using fseek, when possible -- it's broken by design.
63648         Patch by Ulrich Drepper.
63649
63650 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63651
63652         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63653         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63654         Giving in to popular pressure to shut up the compiler with casts.
63655
63656 2000-10-26  Jim Meyering  <meyering@lucent.com>
63657
63658         * lib/strftime.c: Update from libc.
63659
63660 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63661
63662         * regex.c: More `unsigned char' -> `re_char' changes.
63663         Also change several `int' into `re_wchar_t'.
63664         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63665         (PUSH_FAILURE_POINTER): Don't cast any more.
63666         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63667         We want GCC to complain, since this piece of code makes
63668         re_match non-reentrant, which *should* be fixed.
63669         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63670         (EXTEND_BUFFER): Use RETALLOC.
63671         (SET_LIST_BIT): Don't cast.
63672         (re_wchar_t): New type.
63673         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63674         that those two functions will always properly return.
63675         (IMMEDIATE_QUIT_CHECK): Cast to void.
63676         (analyse_first): Use recursion rather than an explicit stack.
63677         (re_compile_fastmap): Can't fail anymore.
63678         (re_search_2): Don't check re_compile_fastmap for failure.
63679         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63680         Now also sets the new value (passed in a new argument).
63681         (re_match_2_internal): Use it.
63682         Also, use a new var `reg' of type size_t when looping through regs
63683         rather than reuse the inappropriate `mcnt'.
63684
63685 2000-10-25  Jim Meyering  <meyering@lucent.com>
63686
63687         * lib/obstack.c: Update from libc.
63688
63689 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63690
63691         * regex.c (regex_compile): Change the way of handling a range from
63692         a char less than 256 to a char not less than 256.
63693
63694 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63695
63696         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63697         NT-Emacs only.
63698         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63699         so that re_search functions only quit when callers expect them to.
63700
63701 2000-10-23  Jim Meyering  <meyering@lucent.com>
63702
63703         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63704         wrong.  That set_locale call must not have any side effects.
63705         From Paul Eggert.
63706
63707 2000-10-22  Jim Meyering  <meyering@lucent.com>
63708
63709         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63710         [CYCLIC]: Remove now-unused definition.
63711
63712         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63713         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63714         Suggestion from Ulrich Drepper.
63715
63716 2000-10-21  Jim Meyering  <meyering@lucent.com>
63717
63718         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63719         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63721
63722 2000-10-21  Jim Meyering  <meyering@lucent.com>
63723
63724         * lib/dirname.c (memrchr): Declare if necessary.
63725         (dir_name): Remove the restriction that there be no
63726         trailing slashes.  Now, this code skips past them, effectively
63727         ignoring them.
63728         [TEST_DIRNAME] (main): New unit tests.
63729
63730         * lib/memrchr.c: New file from GNU libc.
63731         Undef __memrchr, too.
63732         [!weak_alias]: Define __memrchr to memrchr.
63733         Guard weak_alias use with `#ifdef weak_alias'.
63734
63735 2000-10-21  Jim Meyering  <meyering@lucent.com>
63736
63737         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63738         (dir_name): Use dir_name_r.
63739         * lib/dirname.h (dir_name_r): Declare it.
63740
63741 2000-10-17  Jim Meyering  <meyering@lucent.com>
63742
63743         * lib/quote.h (PARAMS): Define and use.
63744         Reported by Akim Demaille.
63745
63746         * lib/getopt.c: Update from libc.
63747
63748 2000-10-16  Jim Meyering  <meyering@lucent.com>
63749
63750         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63751         setlocale.
63752         From Jan Fedak.
63753
63754 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63755
63756         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63757
63758 2000-09-25  Jim Meyering  <meyering@lucent.com>
63759
63760         * lib/md5.h (rol): Define (from GnuPG).
63761
63762         * lib/sha.c: Give credit (GnuPG) where due.
63763         (M): Use rol rather than open-coding it.
63764         Add a FIXME comment.
63765
63766 2000-09-21  Jim Meyering  <meyering@lucent.com>
63767
63768         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63769         Reported by Michael Stone.
63770
63771 2000-09-20  Jim Meyering  <meyering@lucent.com>
63772
63773         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63774         (noinst_HEADERS): Add sha.h.
63775         Based on code from Scott G. Miller and from GnuPG.
63776
63777 2000-09-18  Jim Meyering  <meyering@lucent.com>
63778
63779         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63780         LIBS. Otherwise, everyone ends up linking with -lelf for some
63781         configurations.
63782         Reported by Mike Stone.
63783
63784 2000-09-15  Jim Meyering  <meyering@lucent.com>
63785
63786         * lib/regex.c: Update from libc.
63787
63788 2000-09-10  Jim Meyering  <meyering@lucent.com>
63789
63790         * lib/getopt.c (_getopt_internal): Update from glibc.
63791
63792 2000-09-09  Jim Meyering  <meyering@lucent.com>
63793
63794         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63795         think it should be used as a general replacement for isascii.
63796         * lib/fnmatch.c: Likewise.
63797         * lib/mbswidth.c: Likewise
63798         * lib/regex.c: Likewise.
63799
63800         Don't use atoi.
63801         * lib/userspec.c: Include sys/param.h and limits.h.
63802         Include xstrtol.h.
63803         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63804         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63805         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63806         UID, GID.  Check range.
63807
63808 2000-09-06  Jim Meyering  <meyering@lucent.com>
63809
63810         * lib/getopt.c (_getopt_internal): Update from glibc.
63811
63812 2000-08-30  Jim Meyering  <meyering@lucent.com>
63813
63814         * lib/strftime.c: Merge in changes from GNU libc.
63815
63816 2000-08-26  Jim Meyering  <meyering@lucent.com>
63817
63818         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63819         * m4/fpending.m4: New file.
63820
63821 2000-08-26  Jim Meyering  <meyering@lucent.com>
63822
63823         * lib/closeout.c: Include "__fpending.h".
63824         (close_stdout_status): Return right away if there's nothing to flush.
63825
63826         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63827         * lib/__fpending.c: New file.
63828         * lib/__fpending.h: New file.
63829
63830 2000-08-20  Jim Meyering  <meyering@lucent.com>
63831
63832         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63833         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63834         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63835
63836 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63837
63838         Improve fileutils installation on systems where running
63839         programs (like install) can't be unlinked.
63840         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63841         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63842
63843 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63844
63845         Standardize on "memory exhausted" instead of "Memory exhausted"
63846         or "virtual memory exhausted".
63847         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63848         "virtual memory exhausted".
63849         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63850         our own message.
63851         * lib/userspec.c (parse_user_spec): Likewise.
63852         * lib/bumpalloc.h: comment fix
63853         * lib/same.c, userspec.c: Include xalloc.h.
63854
63855         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63856         not char *const and pointing to a constant array.
63857         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63858         (xrealloc): Comment fix.
63859
63860         * lib/userspec.c (parse_user_spec):
63861         Don't translate a message until just before returning,
63862         to avoid unnecessary translation.
63863
63864 2000-08-07  Jim Meyering  <meyering@lucent.com>
63865
63866         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63867         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63868         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63869         getgroups.c, gethostname.c, getopt.h, group-member.c,
63870         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63871         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63872         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63873         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63874         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63875         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63876         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63877         yesno.c: Back out Copyright date changes for each file with no change
63878         this year.  This eases coordination with other programs using the same
63879         source code modules.  From Paul Eggert.
63880
63881 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63882
63883         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63884         not char, for compatibility with glibc 2.1.3 strftime.c.
63885
63886 2000-08-03  Greg McGary  <greg@mcgary.org>
63887
63888         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63889         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63890         (EXTEND_BUFFER): Use them.
63891
63892 2000-08-01  Jim Meyering  <meyering@lucent.com>
63893
63894         * lib/dirname.c (ISSLASH): Define.
63895         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63896         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63897         both `\' and `/' may be use as path separators.
63898         Based on a patch from Prashant TR.
63899
63900 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63901
63902         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63903         slot vector a constant, since it might get modified.
63904
63905 2000-07-31  Jim Meyering  <meyering@lucent.com>
63906
63907         * lib/xmalloc.c: Use `virtual memory exhausted', not
63908         `Memory exhausted'.
63909         * lib/obstack.c (print_and_abort): Likewise.
63910
63911 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63912
63913         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63914         buffer, so that the caller can always quote one small
63915         component of a "memory exhausted" message in slot 0.
63916         From a suggestion by Jim Meyering.
63917
63918 2000-07-30  Jim Meyering  <meyering@lucent.com>
63919
63920         * lib/makepath.c (make_path): Quote the other instance, too.
63921
63922         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63923         (STATIC_BUF_SIZE): Define.
63924         (quotearg_n_options): Use only statically allocated storage when
63925         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63926         than STATIC_BUF_SIZE.
63927
63928 2000-07-29  Jim Meyering  <meyering@lucent.com>
63929
63930         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63931         * lib/dirname.c (dir_name): Likewise.
63932
63933         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63934         `/'.
63935
63936         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63937         (dir_name): Assert that there are no trailing slashes.
63938
63939 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63940
63941         * lib/mbswidth.h (mbswidth): Add a flags argument.
63942         (mbswidth): New declaration.
63943         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63944         * lib/mbswidth.c (mbswidth): Add a flags argument.
63945         (mbsnwidth): New function.
63946
63947 2000-07-24  Jim Meyering  <meyering@lucent.com>
63948
63949         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63950
63951 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63952
63953         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63954
63955 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63956
63957         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63958         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63959         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63960         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63961         invoke multibyte primitives.
63962
63963 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63964
63965         * lib/quotearg.c:
63966         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63967         so that mbstate_t is always defined.
63968
63969         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63970         be 1 in at least one GCC installation, and this configuration
63971         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63972         performance on hosts that have mbrtowc but have only unibyte
63973         locales, but I assume these hosts are rare.
63974
63975 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63976
63977         * lib/mbswidth.c (_XOPEN_SOURCE):
63978         Don't define; this causes problems on Solaris 7.
63979         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63980
63981 2000-07-23  Jim Meyering  <meyering@lucent.com>
63982
63983         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63984         too: getgrgid, getpwuid, getuid.
63985
63986 2000-07-23  Jim Meyering  <meyering@lucent.com>
63987
63988         * lib/basename.c (base_name): Add an assertion.
63989
63990 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63991
63992         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63993         shadow its mbsinit function.
63994
63995 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63996
63997         * lib/mbswidth.h: New file.
63998         * lib/mbswidth.c: New file.
63999         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
64000         (noinst_HEADERS): Add mbswidth.h.
64001
64002 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
64003
64004         * lib/config.charset: Add support for FreeBSD. Improve support for
64005         HP-UX and IRIX 6.
64006
64007 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
64008
64009         * m4/mbswidth.m4: New file.
64010         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
64011
64012 2000-07-15  Jim Meyering  <meyering@lucent.com>
64013
64014         * lib/makepath.c: Include quote.h.
64015         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
64016         corresponding argument in a `quote (...)' call.
64017         Give better diagnostics.
64018
64019         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
64020         (noinst_HEADERS): Add quote.h.
64021
64022         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
64023         from tar's src/misc.c.
64024         * lib/quote.h: New file.  Prototypes for same.
64025
64026 2000-07-14  Paul Eggert  <eggert@twinsun.com>
64027
64028         From a suggestion by Bruno Haible.
64029         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
64030         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
64031         to decide whether to define the BeOS workaround macro;
64032         this adjusts to the change to AC_MBSTATE_T.
64033
64034 2000-07-14  Jim Meyering  <meyering@lucent.com>
64035
64036         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
64037         jm_AC_TYPE_UINTMAX_T.
64038
64039 2000-07-13  Paul Eggert  <eggert@twinsun.com>
64040
64041         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
64042
64043         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
64044         quotearg_buffer_restyled): Add support for
64045         clocale_quoting_style.  Undo previous change to
64046         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
64047         and "{RIGHT QUOTATION MARK}" msgids.
64048
64049 2000-07-10  Paul Eggert  <eggert@twinsun.com>
64050
64051         From a suggestion by Bruno Haible.
64052         * m4/mbstate_t.m4 (AC_MBSTATE_T):
64053         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
64054         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
64055         and mbstate_t, to a single-part test that simply defines mbstate_t.
64056         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
64057         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
64058
64059 2000-07-10  Jim Meyering  <meyering@lucent.com>
64060
64061         * m4/strerror_r.m4: Mirror the correction made in autoconf.
64062
64063         * m4/gnu-source.m4: Output to confdefs.h directly.
64064         Suggestion from Akim Demaille.
64065
64066 2000-07-09  Paul Eggert  <eggert@twinsun.com>
64067
64068         The old behavior of quoting `like this' doesn't look good with
64069         newer, ISO-style fonts.  See:
64070         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
64071
64072         Instead, quote "like this" by default.  Let the translator
64073         tailor the locale-specific quoting behavior by providing
64074         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
64075
64076         * lib/quotearg.c (N_): New macro.
64077         (gettext_default): New function.
64078         (quotearg_buffer_restyled): Use
64079         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
64080         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
64081
64082 2000-07-09  Jim Meyering  <meyering@lucent.com>
64083
64084         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
64085         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
64086
64087         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
64088         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
64089
64090 2000-07-09  Jim Meyering  <meyering@lucent.com>
64091
64092         * lib/Most files: Update copyright dates to include 2000.
64093
64094 2000-07-08  Jim Meyering  <meyering@lucent.com>
64095
64096         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
64097         if not defined.
64098         (xgethostname): Remove now-unnecessary #ifdef.
64099         Move declaration of `err' into loop where it's used.
64100
64101 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64102         and Bruno Haible  <haible@clisp.cons.org>
64103
64104         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
64105         only if the test for an object-type mbstate_t fails.  This
64106         prevents us from mistakenly reporting that mbstate_t is a
64107         system object type after we "#define mbstate_t int" to work
64108         around its lack.
64109
64110 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64111         and Bruno Haible  <haible@clisp.cons.org>
64112
64113         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
64114
64115 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64116
64117         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
64118         to strerror_r.
64119         Include <ctype.h> for use of isalpha.
64120
64121 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64122
64123         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
64124         by allocating a larger buffer. Test the gethostname return value for
64125         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
64126         returns an error and ENAMETOOLONG isn't defined.
64127
64128 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64129
64130         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
64131         dimension.
64132
64133 2000-07-04  Jim Meyering  <meyering@lucent.com>
64134
64135         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
64136         of the deprecated AC_CHECKING.
64137
64138 2000-07-04  Jim Meyering  <meyering@lucent.com>
64139
64140         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
64141         Reported by Bruno Haible.
64142
64143 2000-07-04  Jim Meyering  <meyering@lucent.com>
64144
64145         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
64146         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
64147         lacks mbrtowc.
64148
64149 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64150
64151         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
64152         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
64153
64154 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64155         and Bruno Haible  <haible@clisp.cons.org>
64156
64157         * lib/quotearg.c (mbrtowc):
64158         Assign to *pwc, and return 1 only if result is nonzero.
64159         (iswprint): Use ISPRINT when substituting our own mbrtowc.
64160
64161 2000-07-03  Jim Meyering  <meyering@lucent.com>
64162
64163         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
64164
64165 2000-07-03  Jim Meyering  <meyering@lucent.com>
64166
64167         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
64168         This is necessary to get a definition of e.g., UTMP_FILE on
64169         HP-UX 10.20.
64170         From Bob Proulx.
64171
64172 2000-07-02  Jim Meyering  <meyering@lucent.com>
64173
64174         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
64175
64176         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
64177         AC_LIBOBJ(function_name).
64178         * m4/chown.m4: Likewise.
64179         * m4/fnmatch.m4: Likewise.
64180         * m4/ftruncate.m4: Likewise.
64181         * m4/getgroups.m4: Likewise.
64182         * m4/getline.m4: Likewise.
64183         * m4/group-member.m4: Likewise.
64184         * m4/jm-macros.m4: Likewise.
64185         * m4/lstat.m4: Likewise.
64186         * m4/malloc.m4: Likewise.
64187         * m4/memcmp.m4: Likewise.
64188         * m4/nanosleep.m4: Likewise.
64189         * m4/putenv.m4: Likewise.
64190         * m4/realloc.m4: Likewise.
64191         * m4/regex.m4: Likewise.
64192         * m4/stat.m4: Likewise.
64193         * m4/strftime.m4: Likewise.
64194
64195 2000-07-02  Jim Meyering  <meyering@lucent.com>
64196
64197         * lib/quotearg.c (mbstate_t): Don't define here.
64198
64199 2000-07-02  Jim Meyering  <meyering@lucent.com>
64200
64201         * lib/nanosleep.c (SIGCONT): Define if not already defined.
64202
64203 2000-07-01  Jim Meyering  <meyering@lucent.com>
64204
64205         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
64206
64207 2000-07-01  Jim Meyering  <meyering@lucent.com>
64208
64209         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
64210         problem.
64211
64212 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64213
64214         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
64215         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
64216
64217 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64218
64219         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
64220         per change in ../m4/ls-mntd-fs.m4.
64221         (read_filesystem_list): Ignore symbolic links.
64222
64223 2000-06-29  Jim Meyering  <meyering@lucent.com>
64224
64225         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
64226         for declaration of strcmp.
64227
64228         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
64229
64230         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
64231         Avoid warning by casting result to `char *' to remove `const'.
64232
64233 2000-06-28  Jim Meyering  <meyering@lucent.com>
64234
64235         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
64236         included by quotearg.c, for which we perform this test.  From
64237         Bruno Haible.
64238
64239 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64240
64241         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
64242         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
64243         <utmpx.h> exists, put readutmp.o into LIBOBJS.
64244
64245 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64246
64247         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
64248
64249 2000-06-26  Paul Eggert  <eggert@twinsun.com>
64250
64251         savedir now sets errno on failure and invokes xmalloc to get memory.
64252         Fix a couple of other minor bugs while we're at it.
64253
64254         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
64255         (NAMLEN): Remove macro.
64256         (malloc, realloc): Remove decls.
64257         (stpcpy): Likewise.
64258         ("xalloc.h"): Include.
64259         (NAME_SIZE_DEFAULT): New macro.
64260         (savedir): Use xmalloc / xrealloc to allocate memory.
64261         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
64262         Skip "" directory entries.
64263         Use strlen to calculate directory entry length, since the old method
64264         is rarely used these days and isn't worth supporting.
64265         Don't use a pointer after freeing it.
64266         Check for integer overflow when calculating allocation size.
64267         Use memcpy to copy entries, instead of stpcpy.
64268         Set errno properly when returning NULL.
64269         Check for readdir error.
64270
64271 2000-06-26  Jim Meyering  <meyering@lucent.com>
64272
64273         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
64274
64275 2000-06-25  Jim Meyering  <meyering@lucent.com>
64276
64277         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
64278         Linux header bug when _XOPEN_SOURCE is defined to 500.
64279
64280 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64281
64282         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
64283         deficiency.
64284
64285 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64286
64287         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
64288         Include xalloc.h.
64289         Don't include <stdlib.h>.  Don't declare malloc, realloc.
64290
64291 2000-06-24  Jim Meyering  <meyering@lucent.com>
64292
64293         * m4/strerror_r.m4: Revive this file -- to try out an experimental
64294         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
64295         for which strerror does return char*, but which lacks a conveniently
64296         accessible declaration of the function.  If the compile-test says
64297         strerror_r doesn't work, then resort to a `run'-test that works on
64298         BeOS and segfaults on DEC Unix.
64299
64300 2000-06-24  Jim Meyering  <meyering@lucent.com>
64301
64302         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
64303
64304 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64305
64306         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
64307         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
64308
64309 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64310
64311         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64312         (mbrtowc, mbstate_t): Define substitutes if
64313         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64314         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64315         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64316
64317 2000-06-23  Jim Meyering  <meyering@lucent.com>
64318
64319         * m4/afs.m4: Add missing AC_MSG_RESULT.
64320         Reported by Bruno Haible.
64321
64322         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64323         Suggestion from Bruno Haible.
64324
64325 2000-06-23  Jim Meyering  <meyering@lucent.com>
64326
64327         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64328
64329 2000-06-21  Jim Meyering  <meyering@lucent.com>
64330
64331         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64332
64333 2000-06-21  Jim Meyering  <meyering@lucent.com>
64334
64335         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64336         (noinst_HEADERS): Add getstr.h.
64337
64338         * lib/getline.c (getstr): Move into a separate file.
64339         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64340         the following changes: new parameter, delim2; both delim[12]
64341         parameters have type `int', not `char'.  The latter would lose
64342         with 8-bit delimiters.
64343         * lib/getstr.h: New file.
64344
64345 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64346
64347         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64348         than 1024, return a memory chunk of least possible size, instead
64349         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64350         Use free/xmalloc instead of xrealloc to avoid copying for very long
64351         paths.
64352
64353 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64354
64355         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64356         the empty string.
64357
64358 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64359
64360         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64361         address, not strdup.  Include <stdlib.h> and don't declare free().
64362
64363 2000-06-19  Jim Meyering  <meyering@lucent.com>
64364
64365         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64366
64367 2000-06-18  Jim Meyering  <meyering@lucent.com>
64368
64369         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64370
64371         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64372         `checking whether...' message to be consistent with that of the
64373         lstat test.
64374
64375 2000-06-18  Jim Meyering  <meyering@lucent.com>
64376
64377         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64378         Besides, these days every porting target provides a mkdir function.
64379
64380         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64381         needed. (this snippet comes from src/system.h).
64382
64383 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64384
64385         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64386
64387 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64388
64389         * lib/human.c (adjust_value): New function.
64390         (human_readable_inexact): Apply rounding style even when
64391         printing approximate values.
64392
64393 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64394
64395         * lib/human.c (human_readable_inexact): Allow an input block
64396         size that is not a multiple of the output block size, and vice versa.
64397         Reported by Piergiorgio Sartor.
64398
64399 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64400
64401         * lib/getdate.y (get_date): Apply relative times after time
64402         zone indicator, not before.  Reported by Todd A. Jacobs.
64403
64404 2000-06-13  Jim Meyering  <meyering@lucent.com>
64405
64406         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64407
64408         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64409
64410 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64411
64412         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64413
64414 2000-06-12  Jim Meyering  <meyering@lucent.com>
64415
64416         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64417         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64418         optional argument.
64419         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64420         the optional argument, `lib'.
64421
64422 2000-06-08  Jim Meyering  <meyering@lucent.com>
64423
64424         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64425
64426 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64427
64428         Rewrite largefile configuration so that we don't need to run
64429         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64430         AC_CANONICAL_HOST in configure.in -- jmm]
64431
64432         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64433         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64434         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64435         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64436         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64437         All uses changed.
64438         Instead of inspecting the output of getconf, try to compile the
64439         test program without and with the macro definition.
64440         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64441         for getconf.  Instead, check for the needed flags by compiling
64442         test programs.
64443
64444 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64445
64446         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64447
64448 2000-06-04  Jim Meyering  <meyering@lucent.com>
64449
64450         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64451         SunOS 4.1.4 for which gid_t is an unsigned type.
64452
64453 2000-06-03  Jim Meyering  <meyering@lucent.com>
64454
64455         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64456         now that autoconf requires that.
64457
64458         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64459         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64460         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64461
64462 2000-06-03  Jim Meyering  <meyering@lucent.com>
64463
64464         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64465
64466 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64467
64468         * m4/glibc21.m4: New file.
64469         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64470
64471 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64472
64473         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64474         newer, don't install charset.alias.
64475         * lib/config.charset: Change the Linux/glibc rules so they become empty
64476         on glibc-2.1 or newer.
64477
64478 2000-06-02  Jim Meyering  <meyering@lucent.com>
64479
64480         * lib/mountlist.c: Back out last change.  Instead, do this...
64481         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64482         me_dummy member using the same `ignore'-testing code.
64483         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64484         fs_type strings.
64485         From Mark D. Roth.
64486
64487 2000-05-29  Jim Meyering  <meyering@lucent.com>
64488
64489         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64490         mounts with the `ignore' attribute.  Based on a patch from
64491         Mark D. Roth.
64492
64493 2000-05-28  Jim Meyering  <meyering@lucent.com>
64494
64495         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64496         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64497         * m4/stat.m4: Likewise.
64498         * m4/lstat.m4: Likewise.
64499         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64500
64501         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64502         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64503
64504 2000-05-26  Jim Meyering  <meyering@lucent.com>
64505
64506         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64507
64508 2000-05-24  Jim Meyering  <meyering@lucent.com>
64509
64510         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64511         autoconf requires that.
64512         * m4/lib-check.m4: Likewise.
64513         * m4/jm-macros.m4: Likewise.
64514         * m4/strftime.m4: Likewise.
64515
64516         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64517         AC_CHECK_DECLS, now that autoconf requires that.
64518
64519 2000-05-22  Jim Meyering  <meyering@lucent.com>
64520
64521         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64522         * m4/lstat.m4: Likewise.
64523
64524 2000-05-22  Jim Meyering  <meyering@lucent.com>
64525
64526         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64527
64528 2000-05-20  Jim Meyering  <meyering@lucent.com>
64529
64530         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64531         (jm_PREREQ): Use it.
64532
64533 2000-05-18  Jim Meyering  <meyering@lucent.com>
64534
64535         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64536         back, too, since it may have been modified by allocate_entry.
64537         (hash_delete): Rewrite to use neither the assignment operator
64538         nor the comma operator in an if-expression.
64539
64540 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64541
64542         * lib/closeout.c:
64543         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64544         Remove; no longer needed.
64545         "quotearg.h": Add include.
64546         (file_name): Do not bother to explicitly initialize to NULL; it's less
64547         efficient on some hosts.
64548         (close_stdout_status): Remove test as to whether stdout was already
64549         closed; it breaks for the case "echo x | sort >&-".
64550         Quote file name colons.
64551         Do not assume that _("write error") lacks format strings.
64552
64553 2000-05-15  Jim Meyering  <meyering@lucent.com>
64554
64555         * lib/version-etc.c (version_etc_copyright): Update the copyright
64556         string used in all --version output.
64557
64558 2000-05-14  Jim Meyering  <meyering@lucent.com>
64559
64560         * lib/closeout.c (close_stdout_set_file_name): New function.
64561         (close_stdout_status): Use new file-scoped global.
64562         Return right away if fstat says the stdout file descriptor is invalid.
64563         * lib/closeout.h (close_stdout_set_file_name): Declare.
64564
64565 2000-05-10  Jim Meyering  <meyering@lucent.com>
64566
64567         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64568         (close_stdout_set_status): New function.
64569         * lib/closeout.h (close_stdout_set_status): Declare.
64570
64571 2000-05-09  Jim Meyering  <meyering@lucent.com>
64572
64573         * m4/gettext.m4: Rename this...
64574         * m4/libintl.m4: ...to this.
64575
64576 2000-05-08  Jim Meyering  <meyering@lucent.com>
64577
64578         * lib/long-options.c: Don't include closeout.h.
64579         (parse_long_options): Don't call close_stdout for --version.
64580
64581 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64582
64583         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64584         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64585         2.1.3 bug.  This avoids a clash when files like regex.c define
64586         _GNU_SOURCE.
64587
64588 2000-05-06  Jim Meyering  <meyering@lucent.com>
64589
64590         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64591         (AC_REPLACE_FUNCS): Add strnlen.
64592
64593         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64594         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64595
64596         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64597         AC_SEARCH_LIBS call for nanosleep.
64598         (LIB_NANOSLEEP): Set and AC_SUBST.
64599
64600 2000-05-06  Jim Meyering  <meyering@lucent.com>
64601
64602         * lib/strnlen.c: Undefine __strnlen and strnlen.
64603         [!weak_alias]: Define __strnlen to strnlen.
64604
64605         * lib/atexit.c: New file, from libiberty.
64606
64607 2000-05-06  Jim Meyering  <meyering@lucent.com>
64608
64609         * lib/closeout.c (close_stdout_status): Also check for errors on the
64610         stderr stream.
64611
64612 2000-05-05  Jim Meyering  <meyering@lucent.com>
64613
64614         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64615         AC_SEARCH_LIBS call for clock_gettime.
64616         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64617
64618         * m4/search-libs.m4: Update from autoconf.
64619
64620         su doesn't work on Solaris 2.6.
64621         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64622         <shadow.h>.  Reported by Dragos Harabor.
64623
64624 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64625
64626         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64627         memcpy instead of xmalloc, xrealloc, path_concat.
64628         (locale_charset): Treat empty environment variables as absent.
64629         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64630
64631 2000-05-04  Jim Meyering  <meyering@lucent.com>
64632
64633         * lib/getopt.c: Update from glibc.
64634         * lib/obstack.c: Likewise.
64635         * lib/obstack.h: Likewise.
64636         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64637         file
64638
64639         * lib/regex.h: Likewise.
64640         * lib/strndup.c: Likewise.
64641         * lib/strnlen.c: New file, from glibc.
64642
64643 2000-05-03  Jim Meyering  <meyering@lucent.com>
64644
64645         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64646
64647 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64648
64649         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64650         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64651         compile-time test, rather than inspecting host and OS, to
64652         decide whether to define _LARGEFILE_SOURCE.
64653
64654 2000-05-01  Jim Meyering  <meyering@lucent.com>
64655
64656         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64657
64658         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64659         Based on a patch from Bruno Haible.
64660
64661 2000-05-01  Jim Meyering  <meyering@lucent.com>
64662
64663         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64664
64665 2000-04-29  Jim Meyering  <meyering@lucent.com>
64666
64667         * lib/path-concat.c: Declare strdup only if it's not defined.
64668         * lib/canon-host.c: Likewise.
64669
64670 2000-04-28  Jim Meyering  <meyering@lucent.com>
64671
64672         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64673         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64674         is included first, then limits.h is included by locale.h by libintl.h.
64675         From John David Anglin.
64676
64677 2000-04-25  Jim Meyering  <meyering@lucent.com>
64678
64679         * lib/makepath.c (S_IRWXUGO): Define.
64680         (make_path): Always perform explicit chmod if MODE specifies any
64681         of the `special' permission bits.  Prompted by a bug report against
64682         install from Mate Wierdl and Joost van Baal.
64683
64684 2000-04-18  Jim Meyering  <meyering@lucent.com>
64685
64686         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64687         (jm_PREREQ): Use it.
64688
64689 2000-04-18  Jim Meyering  <meyering@lucent.com>
64690
64691         * lib/README: New file.
64692
64693         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64694         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64695
64696 2000-04-17  Jim Meyering  <meyering@lucent.com>
64697
64698         Get it right :-)
64699         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64700         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64701         Suggestion from Akim Demaille.
64702
64703 2000-04-17  Jim Meyering  <meyering@lucent.com>
64704
64705         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64706         the definition of it to rpl_strftime also defined-away the system's
64707         declaration.
64708
64709 2000-04-15  Jim Meyering  <meyering@lucent.com>
64710
64711         Use `C' to denote so-called `contiguous' files, the same way
64712         that tar does.
64713         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64714         (ftypelet): Use S_ISCTG.
64715         From Michael Deutschmann.
64716
64717 2000-04-14  Jim Meyering  <meyering@lucent.com>
64718
64719         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64720         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64721         clobbered.
64722
64723 2000-04-14  Jim Meyering  <meyering@lucent.com>
64724
64725         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64726
64727 2000-04-13  Jim Meyering  <meyering@lucent.com>
64728
64729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64730         AH_VERBATIM to insert required #ifndef into config.h.in.
64731         Suggestion from Akim Demaille.
64732
64733 2000-04-12  Jim Meyering  <meyering@lucent.com>
64734
64735         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64736         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64737         Christian Krackowizer.
64738
64739         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64740         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64741         (AC_SYS_LARGEFILE): Require.
64742         (AM_C_PROTOTYPES): Require.
64743
64744 2000-04-08  Jim Meyering  <meyering@lucent.com>
64745
64746         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64747         names don't conflict.  Reported by Eli Zaretskii.
64748
64749 2000-04-07  Jim Meyering  <meyering@lucent.com>
64750
64751         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64752         sys/types.h, to work around system header problems on AIX 3.2.5.
64753         From Bruno Haible.
64754
64755 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64756
64757         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64758         bug.  Deal with the different error behavior of Irix iconv.
64759
64760 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64761
64762         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64763         IRIX if the installer said otherwise.
64764
64765 2000-04-05  Jim Meyering  <meyering@lucent.com>
64766
64767         Portability tweaks required for ultrix4.3.
64768         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64769         (jm_CHECK_DECLS): Add getutent to the list of functions.
64770         (_jm_DECL_HEADERS): Add utmpx.h.
64771         From John David Anglin.
64772
64773         * m4/strftime.m4: Back out the 2000-04-02 change.
64774         Instead of that change, simply undefine putenv in the test program.
64775
64776 2000-04-05  Jim Meyering  <meyering@lucent.com>
64777
64778         Portability tweaks required for ultrix4.3.
64779         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64780         getutent.
64781         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64782         * lib/canon-host.c: Declare strdup.
64783         * lib/path-concat.c: Likewise.
64784         From John David Anglin.
64785
64786 2000-04-04  Jim Meyering  <meyering@lucent.com>
64787
64788         Be more DOS 8.3-friendly.
64789         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64790         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64791         * lib/Makefile.am: Reflect renaming.
64792         Reported by Eli Zaretskii.
64793
64794         Use a temporary file name that won't clash with `charset.alias'
64795         in the DOS 8.3 name space.
64796         * lib/Makefile.am (charset_tmp): Define.
64797         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64798         (uninstall-local): Likewise.
64799         Reported by Eli Zaretskii.
64800
64801 2000-04-03  Jim Meyering  <meyering@lucent.com>
64802
64803         * m4/gettext.m4: Fix typo in comment.
64804
64805         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64806         textutils/configure.in).  Suggestion from Paul Eggert.
64807         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64808
64809 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64810
64811         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64812         variable in the shell rather than using putenv, which isn't
64813         portable.  This avoids the configure-time inter-test dependency
64814         on the potentially-renamed putenv function.
64815
64816 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64817
64818         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64819         before checking struct stat.st_blksize, so that
64820         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64821
64822 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64823
64824         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64825         since strftime.c uses HAVE_STRFTIME to decide whether to use
64826         the underlying strftime.
64827
64828 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64829
64830         * lib/time/strftime.c (my_strftime): Make sure we call the system
64831         strftime, not ourselves, when invoking the underlying strftime.
64832
64833 2000-03-24  Jim Meyering  <meyering@lucent.com>
64834
64835         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64836         (charset_alias): Define.
64837         (install-exec-local): Factor out common code.
64838         (uninstall-local): Split lines longer than 80.
64839         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64840         (SUFFIXES): Define.
64841         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64842         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64843
64844 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64845
64846         * lib/config.charset: Output a line containing "Packages using this
64847         file".
64848         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64849         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64850         ref-del.sed): New rules.
64851
64852 2000-03-17  Jim Meyering  <meyering@lucent.com>
64853
64854         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64855         Otherwise, include <strings.h>
64856
64857 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64858
64859         * lib/unicodeio.c (utf8_wctomb): New function.
64860         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64861         format instead of in UCS-4 with platform dependent endianness.
64862
64863 2000-03-10  Jim Meyering  <meyering@lucent.com>
64864
64865         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64866         From Marco Franzen.
64867
64868 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64869
64870         * lib/savedir.c (savedir): Work even if directory size is
64871         negative; this can happen with some screwy NFS configurations.
64872
64873 2000-03-06  Jim Meyering  <meyering@lucent.com>
64874
64875         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64876         if it's NULL (because we ran out of memory).  From Bruno Haible.
64877
64878 2000-03-05  Jim Meyering  <meyering@lucent.com>
64879
64880         * lib/localcharset.c ("path-concat.h"): Include.
64881         (get_charset_aliases): Use path_concat instead of ANSI string
64882         concatenation.
64883
64884         * lib/unicodeio.h (PARAMS): Define.
64885         Use it to guard prototype.
64886
64887 2000-03-04  Jim Meyering  <meyering@lucent.com>
64888
64889         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64890         for lib/localcharset.c.
64891
64892 2000-03-04  Jim Meyering  <meyering@lucent.com>
64893
64894         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64895         installing into it.
64896         (uninstall-local): Uncomment this rule so `make distcheck' works
64897         once again.
64898
64899         * lib/unicodeio.c (<errno.h>): Include it.
64900         (errno): Declare if not defined.
64901
64902         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64903
64904         * lib/config.charset: New version, incorporating remarks from a linux
64905         i18n mailing list.  From Bruno Haible.
64906
64907 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64908
64909         * m4/codeset.m4: New file.
64910         * m4/iconv.m4: New file.
64911         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64912
64913 2000-03-03  Jim Meyering  <meyering@lucent.com>
64914
64915         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64916
64917 2000-03-02  Jim Meyering  <meyering@lucent.com>
64918
64919         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64920         the messages come out on separate lines.
64921
64922         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64923         rather than jm_CHECK_DECLARATIONS.
64924         * m4/decl.m4: Remove now-unused file.
64925
64926         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64927         geteuid.
64928
64929 2000-03-02  Jim Meyering  <meyering@lucent.com>
64930
64931         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64932
64933 2000-03-01  Jim Meyering  <meyering@lucent.com>
64934
64935         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64936         * lib/unicodeio.c: Likewise.
64937
64938 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64939
64940         * lib/config.charset: New file.
64941         * lib/localcharset.c: New file.
64942         * lib/unicodeio.h, lib/unicodeio.c: New files.
64943         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64944         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64945         (noinst_HEADERS): Add unicodeio.h.
64946         (all-local, install-exec-local, charset.alias): New targets.
64947
64948 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64949
64950         * lib/quotearg.c (ALERT_CHAR): New macro.
64951         (quotearg_buffer_restyled): Use it.
64952
64953 2000-02-27  Jim Meyering  <meyering@lucent.com>
64954
64955         * m4/check-decl.m4: Add getenv to the list.
64956
64957 2000-02-27  Jim Meyering  <meyering@lucent.com>
64958
64959         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64960         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64961
64962         * lib/backupfile.c: Guard inclusion of stdlib.h with
64963         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64964         Declare malloc if needed.
64965
64966         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64967         `#ifndef HAVE_DECL..'
64968         now that autoconf always defines the HAVE_DECL_ symbols.
64969         * lib/human.c: Likewise.
64970         * lib/same.c: Likewise.
64971         * lib/strtoumax.c: Likewise.
64972
64973         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64974         declaration check was not run.
64975         * lib/hash.c: Likewise.
64976         * lib/human.c: Likewise.
64977         * lib/same.c: Likewise.
64978         * lib/strtoumax.c: Likewise.
64979
64980         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64981         `.', then first look up the entire `.'-containing string as a login
64982         name.
64983
64984 2000-02-23  Jim Meyering  <meyering@lucent.com>
64985
64986         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64987         in place of my hack.
64988
64989 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64990
64991         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64992         (textint): New typedef.
64993         (parser_control): Member year changed from int to textint.
64994         All uses changed.
64995         (YYSTYPE): Removed; replaced by %union with int and textint members.
64996         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64997         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64998         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64999         (tSNUMBER, tUNUMBER): Now of type <textintval>.
65000         (date, number, to_year): Use width of number in digits, not its value,
65001         to determine whether it's a 2-digit year, or a 2-digit time.
65002         (yylex): Store number of digits of numeric tokens.
65003         Reported by John Kendall.
65004
65005         (parser_control): Changed from struct parser_control to typedef (for
65006         consistency).  All uses changed.
65007
65008         (tID): Removed; not used.
65009         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
65010
65011 2000-02-14  Paul Eggert  <eggert@twinsun.com>
65012
65013         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
65014         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
65015
65016 2000-02-12  Jim Meyering  <meyering@lucent.com>
65017
65018         * lib/userspec.c (ISDIGIT): Define it.
65019         (isdigit): Remove definition.
65020         (is_number): Use ISDIGIT, not isdigit.
65021         <libintl.h>: Include.
65022         (_ and N_): Define.
65023         (parse_user_spec): Mark translatable strings.
65024
65025 2000-02-10  Jim Meyering  <meyering@lucent.com>
65026
65027         With these changes, nanosleep.[ch] are finally enough like the other
65028         lib/* replacement files to compile on a few more losing systems.
65029
65030         * lib/nanosleep.h: Don't include config.h.
65031         Remove prototype from declaration of nanosleep.
65032         (PARAMS): Remove now-unneeded definition.
65033         * lib/nanosleep.c: #undef nanosleep.
65034         (rpl_nanosleep): Rename from nanosleep.
65035
65036 2000-02-10  Jim Meyering  <meyering@lucent.com>
65037
65038         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
65039         gnu_nanosleep to rpl_nanosleep.
65040
65041 2000-02-09  Jim Meyering  <meyering@lucent.com>
65042
65043         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
65044         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
65045
65046 2000-02-08  Akim Demaille  <akim@epita.fr>
65047
65048         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
65049         `[' and `]' and remove uses of `changequote'.
65050         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
65051         (AC_SYS_LARGEFILE): Likewise.
65052         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
65053         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
65054         of changequote.
65055         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
65056         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
65057         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
65058         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
65059
65060 2000-02-05  Jim Meyering  <meyering@lucent.com>
65061
65062         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
65063         Remove explicit use of AC_HEADER_TIME.  It is required by
65064         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
65065         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
65066         in autoconf whereby the expansion of the latter ended up preceding
65067         the expansion of its prerequisite, AC_HEADER_TIME.
65068         Reported by Volker Borchert.
65069
65070 2000-02-03  Jim Meyering  <meyering@lucent.com>
65071
65072         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
65073
65074 2000-02-03  Jim Meyering  <meyering@lucent.com>
65075
65076         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
65077         rather than with `#if HAVE_UTMPNAME'.
65078
65079 2000-02-02  Jim Meyering  <meyering@lucent.com>
65080
65081         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
65082         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
65083         Reported by Eli Zaretskii.
65084
65085 2000-02-01  Jim Meyering  <meyering@lucent.com>
65086
65087         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
65088
65089 2000-01-31  Jim Meyering  <meyering@lucent.com>
65090
65091         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
65092         functions.  Add the time.h and sys/time.h headers along with the
65093         AC_REQUIRE'ment of AC_HEADER_TIME.
65094
65095 2000-01-31  Jim Meyering  <meyering@lucent.com>
65096
65097         * lib/nanosleep.h (nanosleep): Guard declaration with
65098         `#if ! HAVE_DECL_NANOSLEEP'.
65099         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
65100         the declaration in that vendor's sys/timers.h.
65101         Reported by Christian Krackowizer.
65102
65103         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
65104         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
65105         (ISPRINT): Likewise.
65106         Reported by Tom Tromey.
65107
65108 2000-01-30  Jim Meyering  <meyering@lucent.com>
65109
65110         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
65111
65112         * m4/prereq.m4 (utmp_includes): Define.
65113         Check for ut_user and ut_name members in both struct utmpx
65114         and struct utmp.
65115
65116 2000-01-30  Jim Meyering  <meyering@lucent.com>
65117
65118         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
65119         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
65120         header files where only utmpx.ut_user is declared.
65121
65122         * lib/readutmp.h (UT_USER): Define.
65123
65124 2000-01-29  Jim Meyering  <meyering@lucent.com>
65125
65126         * m4/lib-check.m4: New file containing library-related checks from
65127         fileutils and sh-utils (textutils had none).
65128
65129 2000-01-28  Jim Meyering  <meyering@lucent.com>
65130
65131         * m4/perl.m4: Change format of warning message to look more like that
65132         from the missing script.  Suggestion from François Pinard.
65133
65134 2000-01-25  Jim Meyering  <meyering@lucent.com>
65135
65136         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
65137         well as time.h in the compile check.
65138         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
65139         Fix typo in cross-compiling case: s/yes/no/.
65140
65141 2000-01-23  Jim Meyering  <meyering@lucent.com>
65142
65143         * m4/jm-macros.m4: Move df-related tests here from
65144         fileutils/configure.in
65145
65146         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
65147         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
65148
65149         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
65150         s/space/ac_fsusage_space/.
65151         (jm_FILE_SYSTEM_USAGE): Take two parameters.
65152
65153         * m4/ftruncate.m4: New file (derived from part of
65154         fileutils/configure.in).
65155         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
65156         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
65157
65158         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
65159         AC_SUBST these here, rather than just in sh-util/configure.in, so
65160         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
65161         all the same.
65162         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
65163         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
65164         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
65165         (AC_SUBST(POW_LIBM)): Likewise.
65166         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
65167
65168 2000-01-23  Jim Meyering  <meyering@lucent.com>
65169
65170         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
65171         obstack.c.
65172
65173 2000-01-22  Jim Meyering  <meyering@lucent.com>
65174
65175         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
65176
65177         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
65178
65179         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
65180         configure.in
65181         (AC_CHECK_HEADERS): Likewise for sh-utils.
65182         (AC_CHECK_HEADERS): Likewise for textutils.
65183         Merge the three lists of headers.
65184
65185         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
65186         from fileutils' configure.in.
65187
65188         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
65189         code. Moved tests into their own function (_jm_DECL_HEADERS) in
65190         check-decl.m4.
65191
65192         * m4/check-decl.m4: Use #if rather than #ifdef.
65193         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
65194         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
65195         (_jm_DECL_HEADERS): Define new function.
65196         (jm_CHECK_DECLARATIONS): Require it.
65197
65198 2000-01-22  Jim Meyering  <meyering@lucent.com>
65199
65200         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
65201         [! HAVE_DECL_STRTOULL]: Declare strtoull.
65202         Required for some AIX systems.  Reported by Christian Krackowizer.
65203         [TESTING] (main): New function.
65204
65205         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
65206         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
65207         letters.
65208
65209         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
65210         iswprint.
65211
65212         * lib/strverscmp.c (ISDIGIT): Define.
65213         (strverscmp): Use ISDIGIT, not isdigit.
65214
65215 2000-01-19  Jim Meyering  <meyering@lucent.com>
65216
65217         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
65218         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
65219         defines `struct timespec' in <sys/time.h>
65220
65221         * m4/c-bs-a.m4: Remove uses of changequote altogether.
65222         Thanks to Akim for explaining.
65223
65224 2000-01-17  Paul Eggert  <eggert@twinsun.com>
65225
65226         * lib/nanosleep.c (nanosleep):
65227         Don't use SA_INTERRUPT to decide whether to call sigaction, as
65228         POSIX.1 doesn't require SA_INTERRUPT and some systems
65229         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
65230         it's been part of POSIX.1 since day 1 (in 1988).
65231
65232 2000-01-17  Jim Meyering  <meyering@lucent.com>
65233
65234         * lib/interlock: Remove unused file.  Reported by François Pinard.
65235
65236 2000-01-16  Paul Eggert  <eggert@twinsun.com>
65237
65238         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
65239         alert, backslash, formfeed, and vertical tab unnecessarily in
65240         shell quoting style.
65241
65242 2000-01-16  Jim Meyering  <meyering@lucent.com>
65243
65244         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
65245         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
65246         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
65247         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
65248
65249 2000-01-16  Jim Meyering  <meyering@lucent.com>
65250
65251         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
65252         because the latter didn't work.
65253
65254 2000-01-15  Jim Meyering  <meyering@lucent.com>
65255
65256         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
65257         (AC_REPLACE_FUNCS): Add memcpy and memset.
65258         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
65259         Add strpbrk.
65260         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
65261
65262 2000-01-12  Jim Meyering  <meyering@lucent.com>
65263
65264         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
65265         (jm_PREREQ): Use it.
65266         (jm_PREREQ_READUTMP): New macro.
65267         (jm_PREREQ): Use it.
65268
65269 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65270
65271         Quote multibyte characters correctly.
65272         * m4/c-bs-a.m4: New file.
65273         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
65274         (jm_PREREQ): Use it.
65275
65276 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65277
65278         * m4/uintmax_t.m4: Port to autoconf 2.13.
65279
65280 2000-01-08  Jim Meyering  <meyering@ascend.com>
65281
65282         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
65283         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
65284
65285 2000-01-04  Jim Meyering  <meyering@ascend.com>
65286
65287         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
65288         jm_STRUCT_DIRENT_D_TYPE.
65289         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
65290         jm_STRUCT_DIRENT_D_INO.
65291         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
65292         jm_STRUCT_UTIMBUF.
65293         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
65294         renamings.
65295         * m4/utime.m4: Likewise.
65296
65297         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
65298         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
65299
65300 2000-01-03  Paul Eggert  <eggert@twinsun.com>
65301
65302         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
65303         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
65304
65305 2000-01-02  Jim Meyering  <meyering@ascend.com>
65306
65307         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
65308         remember if this is necessary.
65309
65310 1999-12-26  Jim Meyering  <meyering@ascend.com>
65311
65312         * m4/jm-macros.m4: Use it here.
65313         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65314
65315 1999-12-23  Jim Meyering  <meyering@ascend.com>
65316
65317         * m4/jm-macros.m4: Check for clock_gettime (moved from
65318         fileutils/configure.in)
65319         Check for gettimeofday.
65320
65321 1999-12-20  Jim Meyering  <meyering@ascend.com>
65322
65323         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65324         autoconf-2.14a-1999-12-20.
65325
65326 1999-12-19  Jim Meyering  <meyering@ascend.com>
65327
65328         * m4/lstat-slash.m4: New file.
65329         * m4/jm-macros.m4: Use the new macro:
65330         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65331
65332 1999-12-07  Jim Meyering  <meyering@ascend.com>
65333
65334         * m4/perl.m4: Require that File::Compare be available, too.
65335         Too many systems seem to lack it.
65336
65337         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65338         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65339
65340 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65341
65342         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65343         problem with the QNX 4.25 shell, which doesn't propagate exit
65344         status of failed commands inside shell assignments.
65345
65346 1999-11-17  Jim Meyering  <meyering@ascend.com>
65347
65348         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65349
65350 1999-11-07  Jim Meyering  <meyering@ascend.com>
65351
65352         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65353
65354 1999-11-06  Jim Meyering  <meyering@ascend.com>
65355
65356         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65357         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65358
65359 1999-11-05  Jim Meyering  <meyering@ascend.com>
65360
65361         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65362         configure.in of textutils, fileutils, and sh-utils into this one
65363         (shared between those packages) file.
65364         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65365         AC_STRUCT_ST_BLKSIZE.
65366
65367 1999-11-03  Jim Meyering  <meyering@ascend.com>
65368
65369         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65370         of AC_CHECK_TYPE checks includes unistd.h.
65371         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65372         Suggestion from Akim Demaille.
65373
65374 1999-10-30  Jim Meyering  <meyering@ascend.com>
65375
65376         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65377         m4-quoted string.
65378         * m4/ls-mntd-fs.m4: Likewise.
65379         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65380         * m4/jm-winsz1.m4: Likewise.
65381
65382         * m4/const.m4: Remove file, since the fix made it into the experimental
65383         version of autoconf.
65384         * m4/mktime.m4: Likewise.
65385
65386         * m4/check-type.m4: Remove file, now that the latest version of
65387         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65388
65389         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65390         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65391         AC_CHECK_TYPE.
65392
65393 1999-10-04  Jim Meyering  <meyering@ascend.com>
65394
65395         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65396
65397 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65398
65399         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65400         2.95.1 bug with HP-UX 10.20.
65401
65402 1999-09-17  Jim Meyering  <meyering@ascend.com>
65403
65404         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65405         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65406         due to missing strdup (against sh-utils-2.0).
65407
65408 1999-08-29  Jim Meyering  <meyering@ascend.com>
65409
65410         * m4/jm-macros.m4: Require jm_BISON.
65411         * m4/bison.m4: New file.
65412
65413 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65414
65415         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65416         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65417
65418 1999-08-05  Jim Meyering  <meyering@ascend.com>
65419
65420         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65421         to avoid conflicts with `conftest' on 8+3 filesystems.
65422         Suggestion from Eli Zaretskii.
65423
65424 1999-08-04  Jim Meyering  <meyering@ascend.com>
65425
65426         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65427         fileutils and sh-utils (textutils's getline test was inadequate).
65428         (AM_FUNC_GETLINE): Run this test.
65429         (AC_CHECK_FUNCS): Check for getdelim.
65430         Reported by Bob Proulx.
65431
65432 1999-08-02  Jim Meyering  <meyering@ascend.com>
65433
65434         * m4/jm-macros.m4: Add a comment.
65435
65436 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65437
65438         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65439         <inttypes.h> defines strtoumax as a macro (and not as a
65440         function).
65441
65442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65443
65444         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65445         that we can shift, multiply and divide unsigned long long
65446         values; Ultrix cc can't do it.
65447
65448 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65449
65450         * m4/mktime.m4: New file, which is a preview of what should appear
65451         in the next public autoconf release.
65452
65453 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65454
65455         * m4/lfs.m4: Remove this file.
65456         * m4/largefile.m4: New file.  It contains the old contents of
65457         lfs.m4, except that all names with prefix AC_LFS have been
65458         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65459         compatible with future autoconf versions.  Also, some minor m4
65460         quoting problems have been fixed.
65461
65462 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65463
65464         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65465         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65466         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65467         and simplify the shell code.
65468
65469 1999-08-01  Jim Meyering  <meyering@ascend.com>
65470
65471         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65472         m4.
65473
65474 1999-07-20  Jim Meyering  <meyering@ascend.com>
65475
65476         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65477
65478 1999-07-15  Jim Meyering  <meyering@ascend.com>
65479
65480         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65481
65482 1999-05-22  Jim Meyering  <meyering@ascend.com>
65483
65484         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65485
65486 1999-05-20  Jim Meyering  <meyering@ascend.com>
65487
65488         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65489         Add a colon after each `then' in case $4 is empty.
65490
65491 1999-05-16  Jim Meyering  <meyering@ascend.com>
65492
65493         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65494
65495 1999-05-10  Jim Meyering  <meyering@ascend.com>
65496
65497         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65498
65499         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65500         AC_FUNC_MKTIME.
65501
65502 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65503
65504         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65505
65506 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65507
65508         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65509         not CPPFLAGS, so that linking works correctly in IRIX.
65510
65511 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65512
65513         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65514
65515 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65516
65517         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65518         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65519         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65520         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65521         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65522
65523         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65524
65525 1999-04-20  Jim Meyering  <meyering@ascend.com>
65526
65527         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65528         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65529         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65530
65531 1999-04-18  Jim Meyering  <meyering@ascend.com>
65532
65533         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65534         * m4/jm-macros.m4: Use it.
65535
65536 1999-04-06  Jim Meyering  <meyering@ascend.com>
65537
65538         * m4/strftime.m4: Remove test for %f.
65539
65540 1999-03-29  Jim Meyering  <meyering@ascend.com>
65541
65542         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65543         superset of the AC_TYPE_* checks in the textutils, fileutils,
65544         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65545         AC_TYPE_PID_T.
65546
65547 1999-03-28  Jim Meyering  <meyering@ascend.com>
65548
65549         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65550         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65551         replaced e.g., in the *.sh files of the sh-utils.
65552
65553 1999-03-20  Jim Meyering  <meyering@ascend.com>
65554
65555         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65556         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65557         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65558
65559 1999-03-19  Jim Meyering  <meyering@ascend.com>
65560
65561         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65562
65563 1999-03-12  Jim Meyering  <meyering@ascend.com>
65564
65565         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65566
65567 1999-03-07  Jim Meyering  <meyering@ascend.com>
65568
65569         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65570         declared.
65571
65572 1999-02-17  Jim Meyering  <meyering@ascend.com>
65573
65574         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65575         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65576
65577 1999-02-07  Jim Meyering  <meyering@ascend.com>
65578
65579         * m4/group-member.m4: New file -- extracted from sh-utils'
65580         configure.in.
65581
65582         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65583         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65584
65585 1999-02-06  Jim Meyering  <meyering@ascend.com>
65586
65587         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65588         * m4/fnmatch.m4: Likewise.
65589         * m4/getgroups.m4: Likewise.
65590         * m4/lstat.m4: Likewise.
65591         * m4/malloc.m4: Likewise.
65592         * m4/putenv.m4: Likewise.
65593         * m4/realloc.m4: Likewise.
65594         * m4/regex.m4: Likewise.
65595         * m4/stat.m4: Likewise.
65596         * m4/strftime.m4: Likewise.
65597         Suggestion from Alain Magloire.
65598
65599         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65600         * m4/fnmatch.m4: Likewise.
65601         * m4/getgroups.m4: Likewise.
65602         * m4/getline.m4: Likewise.
65603         * m4/lstat.m4: Likewise.
65604         * m4/malloc.m4: Likewise.
65605         * m4/memcmp.m4: Likewise.
65606         * m4/putenv.m4: Likewise.
65607         * m4/realloc.m4: Likewise.
65608         * m4/regex.m4: Likewise.
65609         * m4/stat.m4: Likewise.
65610         * m4/strftime.m4: Likewise.
65611         Suggestion from Alain Magloire.
65612
65613         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65614         an argument.
65615
65616         * m4/regex.m4: Add a run-time Test for proper operation of
65617         re_compile_pattern.
65618
65619 1999-01-31  Jim Meyering  <meyering@ascend.com>
65620
65621         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65622
65623 1999-01-30  Jim Meyering  <meyering@ascend.com>
65624
65625         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65626
65627         * m4/jm-mktime.m4: Make this a wrapper around the official
65628         AM_FUNC_MKTIME rather than my private copy, now that the official one
65629         is up to date.
65630         * m4/mktime.m4: Remove file.
65631
65632         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65633         * m4/uptime.m4: Likewise.
65634         * m4/uintmax_t.m4: Likewise.
65635
65636 1999-01-28  Jim Meyering  <meyering@ascend.com>
65637
65638         * m4/jm-macros.m4: Use jm_AFS.
65639         * m4/afs.m4: New file (from fileutils' configure.in).
65640
65641         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65642         * m4/chown.m4: Likewise.
65643         * m4/d-ino.m4: Likewise.
65644         * m4/d-type.m4: Likewise.
65645         * m4/fnmatch.m4: Likewise.
65646         * m4/getgroups.m4: Likewise.
65647         * m4/gettext.m4: Likewise.
65648         * m4/jm-mktime.m4: Likewise.
65649         * m4/jm-winsz2.m4: Likewise.
65650         * m4/lcmessage.m4: Likewise.
65651         * m4/ls-mntd-fs.m4: Likewise.
65652         * m4/malloc.m4: Likewise.
65653         * m4/memcmp.m4: Likewise.
65654         * m4/putenv.m4: Likewise.
65655         * m4/realloc.m4: Likewise.
65656         * m4/st_mtim.m4: Likewise.
65657         * m4/strftime.m4: Likewise.
65658
65659 1999-01-16  Jim Meyering  <meyering@ascend.com>
65660
65661         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65662         (ARGMATCH_DIE_DECL): Define.
65663
65664 1999-01-12  Jim Meyering  <meyering@ascend.com>
65665
65666         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65667         Reported by Lars Hecking.
65668
65669 1999-01-10  Jim Meyering  <meyering@ascend.com>
65670
65671         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65672         gross kludge.
65673         * m4/inttypes_h.m4: Likewise.
65674         * m4/lstat.m4: Likewise.
65675         * m4/malloc.m4: Likewise.
65676         * m4/readdir.m4: Likewise.
65677         * m4/realloc.m4: Likewise.
65678         * m4/st_dm_mode.m4: Likewise.
65679         * m4/stat.m4: Likewise.
65680         * m4/utimbuf.m4: Likewise.
65681         * m4/utimes.m4: Likewise.
65682
65683         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65684         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65685         comments in config.h.in are meaningful.
65686
65687         * m4/jm-macros.m4: Require autoconf-2.13 here.
65688
65689         * m4/regex.m4: By default, don't use the included regex.c on systems
65690         with glibc 2.  Suggestion from Uli Drepper.
65691
65692 1999-01-02  Jim Meyering  <meyering@ascend.com>
65693
65694         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65695
65696 1998-12-18  Jim Meyering  <meyering@ascend.com>
65697
65698         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65699         Based on a suggestion from Lars Hecking.
65700
65701 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65702
65703         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65704
65705 1998-11-16  Jim Meyering  <meyering@ascend.com>
65706
65707         * m4/lfs.m4: Double-quote the `uname...` expression.
65708
65709 1998-11-14  Jim Meyering  <meyering@ascend.com>
65710
65711         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65712         * m4/stat.m4: Likewise.
65713
65714 1998-11-03  Jim Meyering  <meyering@ascend.com>
65715
65716         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65717         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65718
65719 1998-10-18  Jim Meyering  <meyering@ascend.com>
65720
65721         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65722
65723 1998-10-17  Jim Meyering  <meyering@ascend.com>
65724
65725         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65726         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65727         calls for those previously hard-coded headers.  Instead, take a new
65728         parameter.
65729         (jm_CHECK_DECLARATIONS): Reflect interface change.
65730         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65731         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65732
65733         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65734
65735 1998-10-14  Jim Meyering  <meyering@ascend.com>
65736
65737         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65738         instead of "TZ=America/Vancouver".  From Paul Eggert.
65739
65740 1998-10-11  Jim Meyering  <meyering@ascend.com>
65741
65742         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65743         This adds a test for a recently added compatibility fix for mktime.c.
65744         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65745
65746 1998-09-27  Jim Meyering  <meyering@ascend.com>
65747
65748         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65749
65750         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65751         ../configure.in, including a change from Gordon Matzigkeit to allow
65752         cross-compiling for the Hurd.
65753
65754         * m4/glibc.m4: New file/macro to test for the GNU C Library
65755         versions 1 and 2.  From Gordon Matzigkeit.
65756         Indent.
65757
65758 1998-09-21  Jim Meyering  <meyering@ascend.com>
65759
65760         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65761
65762 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65763
65764         Port nanosecond-resolution times to UnixWare 2.1.2 and
65765         pedantic Solaris 2.6.
65766
65767         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65768         AC_STRUCT_ST_MTIM.
65769         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65770         Generate name of ns member, instead of just 1 or undef.
65771         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65772
65773 1998-08-15  Jim Meyering  <meyering@ascend.com>
65774
65775         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65776         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65777         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65778         instead of jm_TYPE_SSIZE_T.
65779
65780 1998-08-12  Jim Meyering  <meyering@ascend.com>
65781
65782         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65783
65784 1998-08-02  Jim Meyering  <meyering@ascend.com>
65785
65786         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65787         in acconfig.h manually.
65788
65789 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65790
65791         * m4/st_mtim.m4: New file.
65792
65793 1998-07-28  Jim Meyering  <meyering@ascend.com>
65794
65795         * m4/utimes.m4: Undef stat.
65796
65797 1998-07-25  Jim Meyering  <meyering@ascend.com>
65798
65799         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65800         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65801
65802 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65803
65804         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65805         uid and gid actually remain unchanged.
65806
65807 1998-07-07  Jim Meyering  <meyering@ascend.com>
65808
65809         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65810
65811 1998-07-04  Jim Meyering  <meyering@ascend.com>
65812
65813         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65814         to prove that this macro can be used in packages without regex.c.
65815
65816 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65817
65818         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65819         is to be used.
65820
65821 1998-07-03  Jim Meyering  <meyering@ascend.com>
65822
65823         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65824
65825         * m4/gettext.m4: New file -- from gettext-0.10.35.
65826         * m4/lcmessage.m4: Likewise.
65827         * m4/progtest.m4: Likewise.
65828
65829         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65830         * m4/jm-macros.m4: Require the new macro.
65831
65832 1998-06-29  Jim Meyering  <meyering@ascend.com>
65833
65834         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65835         for the definition of NGROUPS (used in a system header included
65836         by sys/mount.h).
65837
65838 1998-06-28  Jim Meyering  <meyering@ascend.com>
65839
65840         * m4/ls-mntd-fs.m4: New file.
65841         * m4/fstypename.m4: New file.
65842
65843         * m4/jm-macros.m4: Require the new macro.
65844         * m4/jm-glibc-io.m4: New file.
65845
65846 1998-05-19  Jim Meyering  <meyering@ascend.com>
65847
65848         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65849         * m4/lchown.m4: New file.
65850
65851         * m4/Makefile.am.in: New file.
65852         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65853
65854 1998-05-14  Jim Meyering  <meyering@ascend.com>
65855
65856         * m4/Makefile.am (EXTRA_DIST): Add them.
65857         * m4/jm-macros.m4: New file.
65858         * m4/utimbuf.m4: New file.
65859
65860 1998-05-12  Jim Meyering  <meyering@ascend.com>
65861
65862         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65863
65864 1998-05-11  Jim Meyering  <meyering@ascend.com>
65865
65866         * m4/isc-posix.m4: New file.
65867
65868 1998-05-10  Jim Meyering  <meyering@ascend.com>
65869
65870         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65871
65872 1998-05-09  Jim Meyering  <meyering@ascend.com>
65873
65874         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65875         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65876         with automake.
65877
65878         * m4/ssize_t.m4: New file.
65879         * m4/mktime.m4: Remove file -- the new automake has this now.
65880
65881 1998-04-26  Jim Meyering  <meyering@ascend.com>
65882
65883         * m4/assert.m4: New file.
65884         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65885
65886 1998-04-05  Jim Meyering  <meyering@ascend.com>
65887
65888         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65889         (jm_PREREQ): Use it here.
65890
65891 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65892
65893         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65894         in acconfig.h.
65895
65896 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65897
65898         * m4/prereq.m4: New file.
65899         * m4/error.m4: New file.
65900         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65901
65902 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65903
65904         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65905         cache-check for the same variable -- that defeated the purpose of
65906         the test; the test program was never run.  This was a problem only
65907         on systems with losing getline functions -- HP-UX 10.20 is one.
65908         Reported by Bjorn Helgaas.
65909
65910 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65911
65912         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65913
65914 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65915
65916         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65917
65918         * m4/const.m4: New file.  Use an initializer in this declaration
65919         typedef int charset[2]; const charset x;
65920         Reported by Bob Glickstein.
65921
65922 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65923
65924         * m4/chown.m4: Fix reversed types on -1 args to chown.
65925         From Kaveh Ghazi.
65926
65927 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65928
65929         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65930         Add lseek and memchr.
65931
65932         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65933         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65934         have a 20-character limit on names.
65935
65936 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65937
65938         * m4/inttypes_h.m4: New file.
65939         * m4/uintmax_t.m4: New file.
65940         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65941
65942
65943         -----
65944
65945         Local Variables:
65946         coding: utf-8
65947         End:
65948
65949         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65950
65951         Copying and distribution of this file, with or without
65952         modification, are permitted provided the copyright notice
65953         and this notice are preserved.