Stricter declaration checking in testdirs.
[pspp] / ChangeLog
1 2010-04-11  Bruno Haible  <bruno@clisp.org>
2
3         Stricter declaration checking in testdirs.
4         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5         If for_tests is true, augment AM_CPPFLAGS to define
6         GNULIB_STRICT_CHECKING.
7         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
8         GNULIB_STRICT_CHECKING is defined, verify that the function is
9         declared.
10
11 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
12             Bruno Haible  <bruno@clisp.org>
13
14         libunistring: Improve configure output.
15         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
16         Don't say "consider installing GNU libunistring" when checking again
17         with libiconv.
18
19 2010-04-11  Bruno Haible  <bruno@clisp.org>
20
21         libunistring: Correct value of $LTLIBUNISTRING.
22         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
23         correct the value of $LTLIBUNISTRING.
24
25 2010-04-11  Bruno Haible  <bruno@clisp.org>
26
27         havelib: Add static libraries to LIBS in the right order.
28         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30
31 2010-04-11  Bruno Haible  <bruno@clisp.org>
32
33         libunistring: Detect libunistring also when it depends on libiconv.
34         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35         the second AC_LIB_HAVE_LINKFLAGS invocation.
36
37 2010-04-11  James Youngman  <jay@gnu.org>
38
39         close-stream: declare local scalars to be "const"
40         * lib/close-stream.c (close_stream): Make boolean variables const
41         to document the fact that we set but do not change them.
42
43 2010-04-11  Bruno Haible  <bruno@clisp.org>
44
45         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
46
47 2010-04-11  Jim Meyering  <meyering@redhat.com>
48
49         maint.mk: don't include dist-check.mk
50         * top/maint.mk: Remove bogus include directive.
51
52         maint.mk: improve empty-line-at-EOF check
53         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
54         solution, rather than tail+Perl-based one.  The latter would read
55         a few kilobytes from the end of each file, and did not handle empty
56         files properly.
57
58         maint.mk: print the elapsed time for each syntax-check rule
59         * top/maint.mk (sc_m_rules_): Save start time in a file.
60         (sc_z_rules_): New rules: remove temp file and print elapsed time.
61         (local-check): Interpose the .z rules
62
63 2010-04-11  Jim Meyering  <meyering@redhat.com>
64
65         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
66         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
67         empty file with one that ends in an empty line.
68
69 2010-04-10  Bruno Haible  <bruno@clisp.org>
70
71         mkdir: Make it work on mingw64.
72         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
73         * lib/mkdir.c: Update comment.
74         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
75
76 2010-04-10  Bruno Haible  <bruno@clisp.org>
77
78         Don't override improved macro from newer autoconf.
79         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
80         autoconf >= 2.62.
81         Reported by Joel E. Denny <jdenny@clemson.edu>.
82
83 2010-04-10  Jim Meyering  <meyering@redhat.com>
84
85         maint.mk: new syntax-check rule: prohibit empty lines at end of file
86         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
87
88         maint.mk: correct a diagnostic
89         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
90         in diagnostic; now use $prohibit.
91
92 2010-04-10  Bruno Haible  <address@hidden>
93
94         fchownat: Fix a C++ test error on Solaris 8.
95         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
96         the function does not exist.
97
98 2010-04-10  Bruno Haible  <bruno@clisp.org>
99
100         vasnprintf: Add more tests.
101         * tests/test-vasnprintf-posix.c: Include <errno.h>.
102         (test_function): Test converting an invalid wide string.
103
104         vasnprintf: Correct handling of unconvertible wide string arguments.
105         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
106         VASNPRINTF.
107         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
108         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
109         smaller than the expected maximum need for the directive. Set errno to
110         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
111         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
112         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
113         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
114         * modules/vasnprintf (Files): Add m4/printf.m4.
115         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
116
117 2010-04-10  Bruno Haible  <bruno@clisp.org>
118
119         vasnprintf: Fix crash in %ls directive.
120         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
121         string is passed as argument to %ls, with no precision and no width.
122         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
123
124 2010-04-10  Bruno Haible  <bruno@clisp.org>
125
126         vasnprintf: Fix multiple test failures on mingw.
127         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
128         _snprintf, or snwprintf, not _snwprintf.
129
130 2010-04-10  Bruno Haible  <bruno@clisp.org>
131
132         write: Fix a C++ test error on mingw.
133         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
134
135 2010-04-10  Bruno Haible  <bruno@clisp.org>
136
137         vasnprintf test: Reduce code duplication.
138         * tests/test-vasnprintf.c (test_function): New function, extracted from
139         test_vasnprintf.
140         (test_vasnprintf, test_asnprintf): Invoke it.
141
142 2010-04-10  Bruno Haible  <bruno@clisp.org>
143
144         strnlen: Fix warning in C++ mode on MacOS X.
145         * lib/string.in.h (strnlen): Use the modern idiom.
146         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
147         defining strnlen as a macro already in <config.h>.
148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
149         REPLACE_STRNLEN.
150         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
151         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
152
153 2010-04-08  James Youngman  <jay@gnu.org>
154
155         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
156         the example.
157
158 2010-04-09  Jim Meyering  <meyering@redhat.com>
159
160         maint.mk: print better diagnostic when there is no $(_hv_file)
161         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
162         announce that when $(_hv_file) (aka help-version) does not exist.
163
164         init.sh: run tr in the "C" locale to avoid multibyte interpretation
165         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
166         not try to interpret its random input bytes.  Jarno Rajahalme reported
167         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
168         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
169         (mktempd_): Likewise, just in case.
170
171         ftruncate: add two years to projected module removal date: 2012
172         * m4/ftruncate.m4: Adjust comments.
173
174         ftruncate: mark module as obsolete; even MinGW provides it, now
175         * modules/ftruncate (Status): Obsolete.
176         (Notice): Say that.
177         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
178         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
179
180 2010-04-08  Bruno Haible  <bruno@clisp.org>
181
182         Fix side effects from tests-related modules.
183         * modules/dprintf-posix (Comment): New section.
184         * modules/fprintf-posix (Comment): Likewise.
185         * modules/obstack-printf-posix (Comment): Likewise.
186         * modules/printf-posix (Comment): Likewise.
187         * modules/snprintf-posix (Comment): Likewise.
188         * modules/sprintf-posix (Comment): Likewise.
189         * modules/vasnprintf-posix (Comment): Likewise.
190         * modules/vasprintf-posix (Comment): Likewise.
191         * modules/vdprintf-posix (Comment): Likewise.
192         * modules/vfprintf-posix (Comment): Likewise.
193         * modules/vprintf-posix (Comment): Likewise.
194         * modules/vsnprintf-posix (Comment): Likewise.
195         * modules/vsprintf-posix (Comment): Likewise.
196         * modules/xprintf-posix (Comment): Likewise.
197         * modules/xvasprintf-posix (Comment): Likewise.
198         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
199         * modules/floorf-tests (Depends-on): Likewise.
200         * modules/round-tests (Depends-on): Likewise.
201         * modules/roundf-tests (Depends-on): Likewise.
202         * modules/trunc-tests (Depends-on): Likewise.
203         * modules/truncf-tests (Depends-on): Likewise.
204         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
205         'fprintf-posix' module is not present.
206         * tests/test-floorf2.c (check): Likewise.
207         * tests/test-trunc2.c (check): Likewise.
208         * tests/test-truncf2.c (check): Likewise.
209         * tests/test-round2.c (equal): Likewise.
210         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
211
212 2010-04-07  Karl Berry  <karl@gnu.org>
213
214         * config/srclist.txt,
215         * config/srclistvars.sh,
216         * config/srclist-update: doc fixes.
217
218 2010-04-07  Jim Meyering  <meyering@redhat.com>
219
220         maint.mk: add a PATH crosschecking syntax-check rule
221         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
222         Useful if you use a test like the one in help-version (coreutils,
223         diffutils, grep, gzip) that ensures $(VERSION) matches what is
224         printed by prog --version.
225
226 2010-04-06  Bruno Haible  <bruno@clisp.org>
227
228         Fix link error on mingw.
229         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
230         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
231
232 2010-04-06  Bruno Haible  <bruno@clisp.org>
233
234         Assume rmdir exists.
235         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
236
237 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
238
239         doc: update users.txt
240         * users.txt: Add gcal.
241
242 2010-04-06  Jim Meyering  <meyering@redhat.com>
243
244         init.sh: simply unset TMPDIR rather than risking env -i
245         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
246         although it probably works fine on all Unix-based systems, some
247         systems (Cygwin?) cannot tolerate a totally cleared environment.
248         Suggestion from Eric Blake.
249
250 2010-04-06  Jim Meyering  <meyering@redhat.com>
251
252         init.sh: portability fix: use env's POSIX-specified -i option not -u
253         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
254         than unportable env -u.  Solaris 5.11's env lacks support for -u.
255
256 2010-04-05  Bruno Haible  <bruno@clisp.org>
257
258         btowc: Work around Cygwin 1.7.2 bug.
259         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
260         does not map NUL to 0.
261         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
262
263 2010-04-05  Bruno Haible  <bruno@clisp.org>
264
265         Make the multithread modules work on Cygwin 1.7.2.
266         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
267         imported symbols can be declared weak, so that it returns "no" on
268         Cygwin 1.7.2.
269
270 2010-04-05  Bruno Haible  <bruno@clisp.org>
271
272         Use the module 'strncat'.
273         * modules/unistr/u8-strncat (Depends-on): Add strncat.
274
275         Tests for module 'strncat'.
276         * modules/strncat-tests: New file.
277         * tests/test-strncat.c: New file.
278
279         New module 'strncat'.
280         * lib/string.in.h (strncat): New declaration.
281         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
282         * m4/strncat.m4: New file, based on m4/memchr.m4.
283         * modules/strncat: New file.
284         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
285         is declared.
286         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
287         REPLACE_STRNCAT.
288         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
289         REPLACE_STRNCAT.
290         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
291         module.
292         * tests/test-string-c++.cc: Check signature of strncat.
293
294 2010-04-05  Jim Meyering  <meyering@redhat.com>
295
296         xstrtoumax-tests: convert to use init.sh
297         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
298         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
299         Use Exit, not exit.
300         Remove uses of $EXEEXT and "./" to run a program in the current dir.
301
302         xstrtoimax-tests: convert to use init.sh
303         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
304         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
305         Use Exit, not exit.
306         Remove uses of $EXEEXT and "./" to run a program in the current dir.
307
308 2010-04-05  Bruno Haible  <bruno@clisp.org>
309
310         sys_socket: Avoid #define replacements in C++ mode.
311         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
312         warning to the function if possible, rather than #defining the symbol
313         to a dysfunctional alias.
314
315 2010-04-05  Bruno Haible  <bruno@clisp.org>
316
317         fseeko: Fix C++ test error on mingw.
318         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
319         gl_FUNC_FSEEKO.
320         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
321         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
322         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
323         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
324
325 2010-04-05  Bruno Haible  <bruno@clisp.org>
326
327         duplocale: Improve test output.
328         * tests/test-duplocale.c (main): Print reason for skipped test.
329
330 2010-04-05  Bruno Haible  <bruno@clisp.org>
331
332         Assume rmdir exists.
333         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
334         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
335
336 2010-04-05  Bruno Haible  <bruno@clisp.org>
337
338         Fix link error on Solaris 8 with cc.
339         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
340
341 2010-04-05  Bruno Haible  <bruno@clisp.org>
342
343         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
344         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
345
346 2010-04-05  Bruno Haible  <bruno@clisp.org>
347
348         vasprintf: Update documentation.
349         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
350
351 2010-04-05  Bruno Haible  <bruno@clisp.org>
352
353         ptsname: Improve test.
354         * tests/test-ptsname.c (main): Also try the various master names of BSD
355         systems.
356
357 2010-04-05  Bruno Haible  <bruno@clisp.org>
358
359         memchr: Avoid a possible C++ test error.
360         * lib/string.in.h (memchr): Provide declaration if function is missing.
361         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
362         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
364         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
365
366 2010-04-05  Bruno Haible  <bruno@clisp.org>
367
368         strtok_r: Improve idiom.
369         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
370         AC_LIBOBJ is used.
371
372 2010-04-05  Bruno Haible  <bruno@clisp.org>
373
374         strdup: Improve idiom.
375         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
376         AC_LIBOBJ is used.
377         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
378         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
379         when AC_LIBOBJ is used.
380
381 2010-04-05  Bruno Haible  <bruno@clisp.org>
382
383         mbsinit, mbrtowc, wcrtomb: Improve idioms.
384         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
385         don't set REPLACE_MBSINIT to 1.
386         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
387         don't set REPLACE_MBRTOWC to 1.
388         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
389         exist, don't set REPLACE_MBSRTOWCS to 1.
390         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
391         exist, don't set REPLACE_MBSNRTOWCS to 1.
392         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
393         don't set REPLACE_WCRTOMB to 1.
394         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
395         exist, don't set REPLACE_WCSRTOMBS to 1.
396         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
397         exist, don't set REPLACE_WCSNRTOMBS to 1.
398
399 2010-04-05  Bruno Haible  <bruno@clisp.org>
400
401         ldexpl: Improve idiom.
402         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
403         make sure to set HAVE_DECL_LDEXPL to 0.
404
405 2010-04-05  Jim Meyering  <meyering@redhat.com>
406
407         xstrtol-tests: convert to use init.sh
408         * modules/xstrtol-tests (Files): Add tests/init.sh.
409         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
410         Use Exit, not exit.
411         Remove uses of $EXEEXT and "./" to run a program in the current dir.
412
413         atexit-tests: convert to use init.sh
414         * modules/atexit-tests (Files): Add tests/init.sh.
415         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
416         Use Exit, not exit.
417         Remove uses of $EXEEXT and "./" to run a program in the current dir.
418
419         init.sh: fix typo
420         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
421
422         init.sh: make it easier for a test script to write to the tty, ...
423         when using automake's parallel-tests mode.
424         * tests/init.sh (stderr_fileno_): Define overridable variable.
425         (warn_): New function, to use it.
426         (fail_, skip_, framework_failure_): Use warn_.
427
428 2010-04-04  Bruno Haible  <bruno@clisp.org>
429
430         btowc: Avoid warning.
431         * lib/btowc.c: Include <stdlib.h>.
432         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
433
434 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
435             Bruno Haible  <bruno@clisp.org>
436
437         wchar: Port to NetBSD 1.5.
438         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
439         * lib/wctype.in.h (WEOF): Likewise.
440
441 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
442             Bruno Haible  <bruno@clisp.org>
443
444         Port extended stdio to NetBSD 1.5.
445         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
446         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
447         older.
448
449 2010-04-04  Bruno Haible  <bruno@clisp.org>
450
451         string: Remove unused substitution.
452         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
453         HAVE_DECL_STRERROR.
454         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
455
456 2010-04-04  Bruno Haible  <bruno@clisp.org>
457
458         strtod: Avoid a possible C++ test error.
459         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
460         set REPLACE_STRTOD.
461
462 2010-04-04  Bruno Haible  <bruno@clisp.org>
463
464         strerror: Update documentation.
465         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
466
467 2010-04-04  Bruno Haible  <bruno@clisp.org>
468
469         stdio: Fix some C++ test errors on Solaris 8 with GCC.
470         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
471         _GL_CXXALIAS_SYS_CAST.
472
473 2010-04-04  Bruno Haible  <bruno@clisp.org>
474
475         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
476         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
477         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
478         REPLACE_FREXPL to 1.
479         * doc/posix-functions/frexpl.texi: Update documentation.
480
481 2010-04-04  Bruno Haible  <bruno@clisp.org>
482
483         math: Fix some C++ test errors on Solaris 8 and Cygwin.
484         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
485
486 2010-04-04  Bruno Haible  <bruno@clisp.org>
487
488         Implement nanosleep for native Windows.
489         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
490
491 2010-04-04  Bruno Haible  <bruno@clisp.org>
492
493         math: Fix some C++ test errors on Solaris 8.
494         * lib/math.in.h (truncf, trunc): Use simpler idiom.
495
496 2010-04-04  Bruno Haible  <bruno@clisp.org>
497
498         math: Fix some C++ test errors on Cygwin.
499         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
500         truncl): Provide declaration if the system does not have it.
501         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
502         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
503         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
504         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
505         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
506         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
507         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
508         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
509         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
510         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
511         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
512         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
513         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
514         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
515         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
516         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
518         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
519         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
520         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
521         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
522         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
523
524 2010-04-04  Bruno Haible  <bruno@clisp.org>
525
526         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
527         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
528         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
529         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
530         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
531         * m4/isinf.m4 (gl_ISINF): Likewise.
532         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
533
534 2010-04-04  Bruno Haible  <bruno@clisp.org>
535
536         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
537         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
538
539 2010-04-04  Bruno Haible  <bruno@clisp.org>
540
541         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
542         * modules/tmpfile (configure.ac): Update.
543
544         tmpfile: Fix C++ test error on mingw.
545         * lib/stdio.in.h (tmpfile): New declaration.
546         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
547         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
548         * modules/tmpfile (Depends-on): Add stdio.
549         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
550         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
551         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
552         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
553         REPLACE_TMPFILE.
554         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
555
556 2010-04-04  Bruno Haible  <bruno@clisp.org>
557
558         ioctl: Fix C++ test error on mingw.
559         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
560         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
561         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
562
563 2010-04-03  Bruno Haible  <bruno@clisp.org>
564
565         wcwidth: Fix C++ test error on mingw.
566         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
568         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
569
570 2010-04-03  Bruno Haible  <bruno@clisp.org>
571
572         nanosleep: Fix C++ test error on mingw.
573         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
574         * lib/time.in.h (nanosleep): Use modern idiom.
575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
576         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
577         REPLACE_NANOSLEEP to 1.
578         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
579         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
580
581 2010-04-03  Bruno Haible  <bruno@clisp.org>
582
583         strptime: Fix C++ test error on mingw.
584         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
585         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
586         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
587         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
588         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
589         not REPLACE_STRPTIME.
590         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
591         REPLACE_STRPTIME.
592
593 2010-04-03  Bruno Haible  <bruno@clisp.org>
594
595         timegm: Fix C++ test error on mingw.
596         * lib/time.in.h (timegm): Use modern idiom.
597         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
598         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
599         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
600         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
601
602 2010-04-03  Bruno Haible  <bruno@clisp.org>
603
604         timegm: Assume declaration if function exists.
605         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
606         if it exists. Don't clobber ac_cv_func_timegm.
607
608 2010-04-03  Bruno Haible  <bruno@clisp.org>
609
610         time_r: Fix C++ test error on mingw.
611         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
612         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
613         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
614         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
615         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
616
617 2010-04-03  Bruno Haible  <bruno@clisp.org>
618
619         time_r: Minor updates.
620         * modules/time_r (Description): Mention the provided functions.
621         * lib/time_r.c: Don't include <string.h>.
622         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
623         * doc/posix-functions/localtime_r.texi: Likewise.
624
625 2010-04-03  Bruno Haible  <bruno@clisp.org>
626
627         time: Fix regression introduced on 2010-03-08.
628         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
629         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
630
631 2010-04-03  Jim Meyering  <meyering@redhat.com>
632
633         maint.mk: don't silently disable project-specific syntax-check rules
634         * top/maint.mk (_prohibit_regexp): Define, to help people realize
635         that they need to convert their project-specific syntax-check rules
636         to use the new _sc_search_regexp.
637
638 2010-04-03  Bruno Haible  <bruno@clisp.org>
639
640         fchdir: Fix regression introduced on 2010-03-08.
641         * lib/unistd.in.h (fchdir): Fix declaration.
642         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
644         REPLACE_FCHDIR.
645         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
646         REPLACE_FCHDIR.
647
648 2010-04-03  Bruno Haible  <bruno@clisp.org>
649
650         getpagesize: Fix C++ test error on mingw.
651         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
652         system does not declare the function.
653         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
654         declared.
655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
656         HAVE_DECL_GETPAGESIZE.
657         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
658
659 2010-04-03  Bruno Haible  <bruno@clisp.org>
660
661         stdio: Make C++ tests work on mingw.
662         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
663         does not declare the function.
664
665 2010-04-03  Bruno Haible  <bruno@clisp.org>
666
667         ftello: Fix C++ test error on mingw.
668         * lib/stdio.in.h (ftello): Use modern idiom.
669         * lib/ftello.c (ftello): Renamed from rpl_ftello.
670         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
671         is missing and that it needs to be replaced.
672         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
674         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
675
676 2010-04-03  Bruno Haible  <bruno@clisp.org>
677
678         fseeko: Fix C++ test error on mingw.
679         * lib/stdio.in.h (fseeko): Use modern idiom.
680         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
681         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
682         is missing and that it needs to be replaced.
683         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
685         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
686
687 2010-04-03  Bruno Haible  <bruno@clisp.org>
688
689         mkstemp: Fix C++ test error on mingw.
690         * lib/stdlib.in.h (mkstemp): Use modern idiom.
691         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
692         function is missing and that it needs to be replaced.
693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
694         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
695
696 2010-04-03  Bruno Haible  <bruno@clisp.org>
697
698         stpncpy: Fix C++ test error on mingw.
699         * lib/string.in.h (stpncpy): Use modern idiom.
700         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
701         function is missing and that it needs to be replaced.
702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
703         REPLACE_STPNCPY.
704         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
705
706 2010-04-03  Bruno Haible  <bruno@clisp.org>
707
708         sys_stat: Fix C++ test error on mingw.
709         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
710         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
711
712 2010-04-03  Bruno Haible  <bruno@clisp.org>
713
714         pty: Update doc.
715         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
716
717 2010-04-03  Bruno Haible  <bruno@clisp.org>
718
719         unistd: Fix C++ test error on mingw.
720         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
721
722 2010-04-03  Bruno Haible  <bruno@clisp.org>
723
724         Update doc regarding mingw.
725         * doc/glibc-functions/openpty.texi: Update regarding mingw.
726         * doc/glibc-functions/login_tty.texi: Likewise.
727         * doc/glibc-functions/forkpty.texi: Likewise.
728
729 2010-04-03  Bruno Haible  <bruno@clisp.org>
730
731         stdlib: Avoid compilation failure of c-strtold on mingw.
732         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
733
734 2010-04-03  Bruno Haible  <bruno@clisp.org>
735
736         locale: Make C++ tests work on Cygwin and mingw.
737         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
738         cannot provide the function.
739         Reported by Simon Josefsson.
740
741 2010-04-03  Bruno Haible  <bruno@clisp.org>
742
743         localename: Port to MacOS X 10.6.
744         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
745         memory layout of the locales in MacOS X 10.6 as well.
746         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
747
748 2010-04-02  Bruno Haible  <bruno@clisp.org>
749
750         gnulib-tool: Ensure that long-running tests are executed last.
751         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
752         running tests after the one for the other tests.
753
754 2010-04-02  Bruno Haible  <bruno@clisp.org>
755
756         gnulib-tool: Ensure the tests in the main directory are executed first.
757         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
758         start with the current directory.
759
760 2010-04-02  Bruno Haible  <bruno@clisp.org>
761
762         Tests for module 'havelib', moved here from GNU gettext.
763         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
764         modifications.
765         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
766         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
767         with modifications.
768         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
769         modifications.
770         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
771         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
772         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
773         with modifications.
774         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
775         with modifications.
776         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
777         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
778         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
779         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
780         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
781         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
782         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
783         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
784         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
785         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
786         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
787         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
788         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
789         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
790         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
791         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
792         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
793         with modifications.
794         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
795         with modifications.
796         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
797         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
798         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
799         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
800         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
801         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
802         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
803         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
804         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
805         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
806         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
807         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
808         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
809         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
810         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
811         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
812         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
813         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
814         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
815         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
816         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
817         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
818         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
819         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
820         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
821         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
822         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
823         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
824         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
825         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
826         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
827         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
828         * tests/havelib/rpathx/rpathx.c: New file, from
829         gettext/autoconf-lib-link.
830         * tests/havelib/rpathx/Makefile.am: New file, from
831         gettext/autoconf-lib-link.
832         * tests/havelib/rpathx/configure.ac: New file, from
833         gettext/autoconf-lib-link with modifications.
834         * tests/havelib/rpathy/rpathy.c: New file, from
835         gettext/autoconf-lib-link.
836         * tests/havelib/rpathy/Makefile.am: New file, from
837         gettext/autoconf-lib-link.
838         * tests/havelib/rpathy/configure.ac: New file, from
839         gettext/autoconf-lib-link with modifications.
840         * tests/havelib/rpathz/rpathz.c: New file, from
841         gettext/autoconf-lib-link.
842         * tests/havelib/rpathz/Makefile.am: New file, from
843         gettext/autoconf-lib-link.
844         * tests/havelib/rpathz/configure.ac: New file, from
845         gettext/autoconf-lib-link with modifications.
846         * tests/havelib/rpathlx/usex.c: New file, from
847         gettext/autoconf-lib-link.
848         * tests/havelib/rpathlx/Makefile.am: New file, from
849         gettext/autoconf-lib-link.
850         * tests/havelib/rpathlx/configure.ac: New file, from
851         gettext/autoconf-lib-link with modifications.
852         * tests/havelib/rpathly/usey.c: New file, from
853         gettext/autoconf-lib-link.
854         * tests/havelib/rpathly/Makefile.am: New file, from
855         gettext/autoconf-lib-link.
856         * tests/havelib/rpathly/configure.ac: New file, from
857         gettext/autoconf-lib-link with modifications.
858         * tests/havelib/rpathlz/usez.c: New file, from
859         gettext/autoconf-lib-link.
860         * tests/havelib/rpathlz/Makefile.am: New file, from
861         gettext/autoconf-lib-link.
862         * tests/havelib/rpathlz/configure.ac: New file, from
863         gettext/autoconf-lib-link with modifications.
864         * tests/havelib/rpathlyx/usey.c: New file, from
865         gettext/autoconf-lib-link.
866         * tests/havelib/rpathlyx/Makefile.am: New file, from
867         gettext/autoconf-lib-link.
868         * tests/havelib/rpathlyx/configure.ac: New file, from
869         gettext/autoconf-lib-link with modifications.
870         * tests/havelib/rpathlzyx/usez.c: New file, from
871         gettext/autoconf-lib-link.
872         * tests/havelib/rpathlzyx/Makefile.am: New file, from
873         gettext/autoconf-lib-link.
874         * tests/havelib/rpathlzyx/configure.ac: New file, from
875         gettext/autoconf-lib-link with modifications.
876         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
877         with modifications.
878
879 2010-04-02  Bruno Haible  <bruno@clisp.org>
880
881         gnulib-tool: Create distributed built sources also for the tests.
882         * gnulib-tool (func_create_testdir): Also generate distributed built
883         sources in the tests directory.
884
885 2010-04-02  Bruno Haible  <bruno@clisp.org>
886
887         gnulib-tool: Obey user's environment variables.
888         * gnulib-tool (func_create_testdir): When creating built sources,
889         respect the environment variables for autoconf, automake, etc. given by
890         the user.
891
892 2010-04-02  Bruno Haible  <bruno@clisp.org>
893
894         gnulib-tool: Provide the value of --m4-base to modules.
895         * gnulib-tool (func_import, func_create_testdir): Emit a definition
896         of gl_m4_base.
897
898 2010-04-02  Eric Blake  <eblake@redhat.com>
899
900         maint.mk: fix some fallout
901         * NEWS: Document the incompatible change, and its effect on cfg.mk.
902         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
903
904 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
905
906         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
907         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
908         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
909         (sc_cast_of_x_alloc_return_value): Likewise.
910         (sc_cast_of_alloca_return_value): Likewise.
911         (sc_space_tab): Likewise.
912         (sc_prohibit_atoi_atof): Likewise.
913         (sc_prohibit_magic_number_exit): Likewise.
914         (sc_error_exit_success): Likewise.
915         (sc_file_system): Likewise.
916         (sc_prohibit_have_config_h): Likewise.
917         (sc_require_config_h): Likewise.
918         (sc_prohibit_HAVE_MBRTOWC): Likewise.
919         (sc_obsolete_symbols): Likewise.
920         (sc_changelog): Likewise.
921         (sc_program_name): Likewise.
922         (sc_the_the): Likewise.
923         (sc_trailing_blank): Likewise.
924         (sc_two_space_separator_in_usage): Likewise.
925         (sc_useless_cpp_parens): Likewise.
926         (sc_GPL_version): Likewise.
927         (sc_GFDL_version): Likewise.
928         (sc_texinfo_acronym): Likewise.
929         (sc_prohibit_cvs_keyword): Likewise.
930         (sc_prohibit_stat_st_blocks): Likewise.
931         (sc_prohibit_S_IS_definition): Likewise.
932         (sc_redundant_const): Likewise.
933         (sc_makefile_TAB_only_indentation): Likewise.
934         (sc_m4_quote_check): Likewise.
935         (sc_makefile_path_separator_check): Likewise.
936         (sc_copyright_check): Likewise.
937         (sc_Wundef_boolean): Likewise.
938         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
939
940         maint.mk: match 0 or more whitespace-before-function-call '('
941         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
942         that have zero or two-and-more spaces between the function name
943         and the open parenthesis.
944         (sc_error_message_warn_fatal): Likewise.
945         (sc_error_message_uppercase): Likewise.
946         (sc_error_message_period): Likewise.
947
948 2010-03-31  Eric Blake  <eblake@redhat.com>
949
950         maint.mk: check for [ as well as test
951         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
952         Based on a libvirt report by Matthias Bolte.
953
954         gnumakefile: don't squelch _version output
955         * top/GNUmakefile (_version): Create one-shot dependency rather
956         than using $(shell) when version must be regenerated.
957         (_autoreconf): Run verbosely, by default.
958
959         sys_time: avoid compiler warnings
960         * lib/sys_time.in.h (includes): Ensure gcc pragma is
961         unconditional, fixing regression from 2010-03-29.
962         Reported by Simon Josefsson.
963
964 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
965
966         maint.mk: s/_header_without_use/_sc_header_without_use/
967         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
968         (sc_prohibit_assert_without_use): Use the new name.
969         (sc_prohibit_close_stream_without_use): Likewise.
970         (sc_prohibit_getopt_without_use): Likewise.
971         (sc_prohibit_quotearg_without_use): Likewise.
972         (sc_prohibit_quote_without_use): Likewise.
973         (sc_prohibit_long_options_without_use): Likewise.
974         (sc_prohibit_inttostr_without_use): Likewise.
975         (sc_prohibit_ignore_value_without_use): Likewise.
976         (sc_prohibit_error_without_use): Likewise.
977         (sc_prohibit_xalloc_without_use): Likewise.
978         (sc_prohibit_hash_without_use): Likewise.
979         (sc_prohibit_hash_pjw_without_use): Likewise.
980         (sc_prohibit_safe_read_without_use): Likewise.
981         (sc_prohibit_argmatch_without_use): Likewise.
982         (sc_prohibit_canonicalize_without_use): Likewise.
983         (sc_prohibit_root_dev_ino_without_use): Likewise.
984         (sc_prohibit_openat_without_use): Likewise.
985         (sc_prohibit_c_ctype_without_use): Likewise.
986         (sc_prohibit_signal_without_use): Likewise.
987         (sc_prohibit_intprops_without_use): Likewise.
988
989 2010-03-30  Eric Blake  <eblake@redhat.com>
990
991         maint: improve module indicators
992         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
993         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
994         columns, and avoid extra macro expansion.
995
996         fdopendir: work around FreeBSD bug
997         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
998         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
999         * modules/dirent (Makefile.am): Substitute it.
1000         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
1001         declaration.
1002         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
1003         fix.
1004         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1005
1006 2010-03-29  Bruno Haible  <bruno@clisp.org>
1007
1008         Emit #pragma system_header after the inclusion guard, not before.
1009         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
1010         guard that spans the entire file, not before. This enables an
1011         optimization in GCC's preprocessor.
1012         * lib/ctype.in.h: Likewise.
1013         * lib/dirent.in.h: Likewise.
1014         * lib/errno.in.h: Likewise.
1015         * lib/float.in.h: Likewise.
1016         * lib/getopt.in.h: Likewise.
1017         * lib/iconv.in.h: Likewise.
1018         * lib/langinfo.in.h: Likewise.
1019         * lib/locale.in.h: Likewise.
1020         * lib/math.in.h: Likewise.
1021         * lib/netdb.in.h: Likewise.
1022         * lib/netinet_in.in.h: Likewise.
1023         * lib/pty.in.h: Likewise.
1024         * lib/sched.in.h: Likewise.
1025         * lib/se-selinux.in.h: Likewise.
1026         * lib/search.in.h: Likewise.
1027         * lib/spawn.in.h: Likewise.
1028         * lib/stdarg.in.h: Likewise.
1029         * lib/stdint.in.h: Likewise.
1030         * lib/string.in.h: Likewise.
1031         * lib/strings.in.h: Likewise.
1032         * lib/sys_file.in.h: Likewise.
1033         * lib/sys_ioctl.in.h: Likewise.
1034         * lib/sys_time.in.h: Likewise.
1035         * lib/sys_times.in.h: Likewise.
1036         * lib/sys_utsname.in.h: Likewise.
1037         * lib/sys_wait.in.h: Likewise.
1038         * lib/sysexits.in.h: Likewise.
1039         * lib/wctype.in.h: Likewise.
1040
1041 2010-03-28  James Youngman  <jay@gnu.org>
1042
1043         save-cwd: don't leak a file descriptor when the caller execs.
1044         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
1045         saved file descriptor.
1046         * modules/save-cwd (Depends-on): Depend on cloexec.
1047
1048 2010-03-29  Bruno Haible  <bruno@clisp.org>
1049
1050         Remove vestiges of fts-lgpl module.
1051         * lib/fts_.h: Assume GNULIB_FTS is 1.
1052         * lib/fts.c: Likewise.
1053         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1054
1055 2010-03-28  Bruno Haible  <bruno@clisp.org>
1056
1057         Fix definition of tests witness macro.
1058         * gnulib-tool (func_import): Fix definition of witness macro.
1059
1060 2010-03-28  Bruno Haible  <bruno@clisp.org>
1061
1062         Fix ioctl's protoype on glibc systems.
1063         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
1064         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
1065         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
1066         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
1067         signature. If not, arrange to replace the ioctl function.
1068         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1069         REPLACE_IOCTL.
1070         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
1071         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
1072         Reported by Ludovic Courtès <ludo@gnu.org>.
1073
1074 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
1075
1076         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
1077         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
1078         made it so grep -r --include=GLOB* ... did not work.
1079
1080 2010-03-26  Jim Meyering  <meyering@redhat.com>
1081             Eric Blake  <eblake@redhat.com>
1082
1083         maint.mk: prohibit use of test's -o and -a operators
1084         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
1085
1086 2010-03-28  Bruno Haible  <bruno@clisp.org>
1087
1088         Remove unused GNULIB_XYZ macro definitions.
1089         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
1090         invocation.
1091
1092 2010-03-28  Bruno Haible  <bruno@clisp.org>
1093
1094         Mark privileged tests modules.
1095         * modules/idpriv-drop-tests (Status): New section.
1096         * modules/idpriv-droptemp-tests (Status): New section.
1097
1098 2010-03-28  Bruno Haible  <bruno@clisp.org>
1099
1100         Split C++ tests into separate tests modules.
1101         * modules/dirent-c++-tests: New file, extracted from
1102         modules/dirent-tests.
1103         * modules/dirent-tests: Depend on it.
1104         * modules/fcntl-h-c++-tests: New file, extracted from
1105         modules/fcntl-h-tests.
1106         * modules/fcntl-h-tests: Depend on it.
1107         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
1108         * modules/glob-tests: Depend on it.
1109         * modules/iconv-h-c++-tests: New file, extracted from
1110         modules/iconv-h-tests.
1111         * modules/iconv-h-tests: Depend on it.
1112         * modules/langinfo-c++-tests: New file, extracted from
1113         modules/langinfo-tests.
1114         * modules/langinfo-tests: Depend on it.
1115         * modules/locale-c++-tests: New file, extracted from
1116         modules/locale-tests.
1117         * modules/locale-tests: Depend on it.
1118         * modules/math-c++-tests: New file, extracted from modules/math-tests.
1119         * modules/math-tests: Depend on it.
1120         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
1121         * modules/pty-tests: Depend on it.
1122         * modules/search-c++-tests: New file, extracted from
1123         modules/search-tests.
1124         * modules/search-tests: Depend on it.
1125         * modules/signal-c++-tests: New file, extracted from
1126         modules/signal-tests.
1127         * modules/signal-tests: Depend on it.
1128         * modules/spawn-c++-tests: New file, extracted from
1129         modules/spawn-tests.
1130         * modules/spawn-tests: Depend on it.
1131         * modules/stdio-c++-tests: New file, extracted from
1132         modules/stdio-tests.
1133         * modules/stdio-tests: Depend on it.
1134         * modules/stdlib-c++-tests: New file, extracted from
1135         modules/stdlib-tests.
1136         * modules/stdlib-tests: Depend on it.
1137         * modules/string-c++-tests: New file, extracted from
1138         modules/string-tests.
1139         * modules/string-tests: Depend on it.
1140         * modules/sys_ioctl-c++-tests: New file, extracted from
1141         modules/sys_ioctl-tests.
1142         * modules/sys_ioctl-tests: Depend on it.
1143         * modules/sys_select-c++-tests: New file, extracted from
1144         modules/sys_select-tests.
1145         * modules/sys_select-tests: Depend on it.
1146         * modules/sys_socket-c++-tests: New file, extracted from
1147         modules/sys_socket-tests.
1148         * modules/sys_socket-tests: Depend on it.
1149         * modules/sys_stat-c++-tests: New file, extracted from
1150         modules/sys_stat-tests.
1151         * modules/sys_stat-tests: Depend on it.
1152         * modules/sys_time-c++-tests: New file, extracted from
1153         modules/sys_time-tests.
1154         * modules/sys_time-tests: Depend on it.
1155         * modules/time-c++-tests: New file, extracted from modules/time-tests.
1156         * modules/time-tests: Depend on it.
1157         * modules/unistd-c++-tests: New file, extracted from
1158         modules/unistd-tests.
1159         * modules/unistd-tests: Depend on it.
1160         * modules/wchar-c++-tests: New file, extracted from
1161         modules/wchar-tests.
1162         * modules/wchar-tests: Depend on it.
1163         * modules/wctype-c++-tests: New file, extracted from
1164         modules/wctype-tests.
1165         * modules/wctype-tests: Depend on it.
1166         Reported by Simon Josefsson.
1167
1168 2010-03-28  Bruno Haible  <bruno@clisp.org>
1169
1170         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
1171         * gnulib-tool (func_exists_module): New function, extracted from
1172         func_verify_module.
1173         (func_verify_module): Use it.
1174         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
1175         'foo' only if 'foo' exists.
1176         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
1177         module.
1178
1179 2010-03-28  Bruno Haible  <bruno@clisp.org>
1180
1181         gnulib-tool: Add support for special categories of tests.
1182         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
1183         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
1184         (func_usage): Document them.
1185         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
1186         inc_unportable_tests, inc_all_tests): New variables.
1187         (func_acceptable): Consider these variables.
1188         (func_modules_transitive_closure): Make it work when the 'Status' field
1189         consists of multiple words.
1190         (func_import): Store and restore the values of inc_cxx_tests,
1191         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
1192         inc_all_tests in gnulib-comp.m4.
1193         (func_create_testdir): Set inc_all_tests to true.
1194         * doc/gnulib.texi (Extra tests modules): New section.
1195         Suggested by Jim Meyering.
1196
1197 2010-03-28  Bruno Haible  <bruno@clisp.org>
1198
1199         ansi-c++-opt: Allow turning off the C++ build by default.
1200         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
1201         gl_CXX_CHOICE_DEFAULT_NO is defined.
1202         Requested by Eric Blake.
1203
1204 2010-03-28  Bruno Haible  <bruno@clisp.org>
1205
1206         unistd: Avoid #define replacements in C++ mode.
1207         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
1208         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
1209         setsockopt, shutdown, select): In C++, attach a warning to the function
1210         if possible, rather than #defining the symbol to a dysfunctional alias.
1211         Reported by John W. Eaton <jwe@gnu.org>.
1212
1213 2010-03-28  Bruno Haible  <bruno@clisp.org>
1214
1215         Fix link errors on mingw.
1216         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
1217         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
1218         $(LIBSOCKET).
1219         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
1220         $(LIBSOCKET).
1221
1222 2010-03-28  Bruno Haible  <bruno@clisp.org>
1223             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1224
1225         lib-ignore: Determine different options for different compilers.
1226         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
1227         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
1228         Add comments.
1229         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
1230         * NEWS: Mention the change.
1231
1232 2010-03-27  Bruno Haible  <bruno@clisp.org>
1233
1234         Remove unused GNULIB_XYZ macro definitions.
1235         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
1236         * modules/fseek (configure.ac): Likewise.
1237         * modules/ioctl (configure.ac): Likewise.
1238         * modules/open (configure.ac): Likewise.
1239         * modules/stdlib-safer (configure.ac): Likewise.
1240
1241 2010-03-27  Bruno Haible  <bruno@clisp.org>
1242
1243         Add a remark about certain modules.
1244         * modules/malloc (Comment): New section.
1245         * modules/realloc (Comment): Likewise.
1246         * modules/sigpipe (Comment): Likewise.
1247
1248 2010-03-27  Bruno Haible  <bruno@clisp.org>
1249
1250         Resolve conflict between the two kinds of module indicators.
1251         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
1252         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
1253         * modules/canonicalize (configure.ac): Invoke
1254         gl_MODULE_INDICATOR_FOR_TESTS.
1255         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
1256         GNULIB_XYZ.
1257         * tests/test-dirent-c++.cc: Likewise.
1258         * tests/test-dirent-safer.c: Likewise.
1259         * tests/test-dup2.c: Likewise.
1260         * tests/test-fchdir.c: Likewise.
1261         * tests/test-fcntl-h-c++.cc: Likewise.
1262         * tests/test-getopt.c: Likewise.
1263         * tests/test-getopt.h: Likewise.
1264         * tests/test-langinfo-c++.cc: Likewise.
1265         * tests/test-locale-c++.cc: Likewise.
1266         * tests/test-math-c++.cc: Likewise.
1267         * tests/test-pty-c++.cc: Likewise.
1268         * tests/test-search-c++.cc: Likewise.
1269         * tests/test-signal-c++.cc: Likewise.
1270         * tests/test-spawn-c++.cc: Likewise.
1271         * tests/test-stdio-c++.cc: Likewise.
1272         * tests/test-stdlib-c++.cc: Likewise.
1273         * tests/test-string-c++.cc: Likewise.
1274         * tests/test-sys_ioctl-c++.cc: Likewise.
1275         * tests/test-sys_select-c++.cc: Likewise.
1276         * tests/test-sys_socket-c++.cc: Likewise.
1277         * tests/test-sys_stat-c++.cc: Likewise.
1278         * tests/test-sys_time-c++.cc: Likewise.
1279         * tests/test-time-c++.cc: Likewise.
1280         * tests/test-unistd-c++.cc: Likewise.
1281         * tests/test-wchar-c++.cc: Likewise.
1282         * tests/uninorm/test-u8-nfc.c: Likewise.
1283         * tests/uninorm/test-u8-nfd.c: Likewise.
1284         * tests/uninorm/test-u8-nfkc.c: Likewise.
1285         * tests/uninorm/test-u8-nfkd.c: Likewise.
1286         * tests/uninorm/test-u16-nfc.c: Likewise.
1287         * tests/uninorm/test-u16-nfd.c: Likewise.
1288         * tests/uninorm/test-u16-nfkc.c: Likewise.
1289         * tests/uninorm/test-u16-nfkd.c: Likewise.
1290         * tests/uninorm/test-u32-nfc.c: Likewise.
1291         * tests/uninorm/test-u32-nfc-big.c: Likewise.
1292         * tests/uninorm/test-u32-nfd.c: Likewise.
1293         * tests/uninorm/test-u32-nfd-big.c: Likewise.
1294         * tests/uninorm/test-u32-nfkc.c: Likewise.
1295         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
1296         * tests/uninorm/test-u32-nfkd.c: Likewise.
1297         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
1298         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1299
1300 2010-03-27  Bruno Haible  <bruno@clisp.org>
1301
1302         Distinguish two kinds of module indicators.
1303         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
1304         gl_MODULE_INDICATOR.
1305         (gl_MODULE_INDICATOR): New macro.
1306         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
1307         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
1308         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1309         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1310         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1311         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1312         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1313         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1314         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1315         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1316         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1317         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1319         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1320         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1321         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1322         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1323         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1324         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1325         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1326         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1327         * modules/cloexec (configure.ac): Likewise.
1328         * modules/getopt-gnu (configure.ac): Likewise.
1329         * modules/uninorm/u8-normalize (configure.ac): Likewise.
1330         * modules/uninorm/u16-normalize (configure.ac): Likewise.
1331         * modules/uninorm/u32-normalize (configure.ac): Likewise.
1332         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
1333
1334 2010-03-27  Bruno Haible  <bruno@clisp.org>
1335
1336         New module description field 'Comment'.
1337         * gnulib-tool: New option --extract-comment.
1338         (func_usage): Document it.
1339         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
1340         (func_get_comment): New function.
1341         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
1342
1343 2010-03-27  Bruno Haible  <bruno@clisp.org>
1344
1345         Addendum to 2010-02-07 commit.
1346         * gnulib-tool (func_usage): Document --extract-applicability option.
1347
1348 2010-03-27  Bruno Haible  <bruno@clisp.org>
1349
1350         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
1351         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
1352         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
1353         rather than link errors.
1354
1355 2010-03-27  Bruno Haible  <bruno@clisp.org>
1356
1357         Avoid side effects from tests-related modules on the compilation of lib.
1358         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
1359         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
1360         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
1361         parameter. Emit into AM_CPPFLAGS a definition of the designated C
1362         macro.
1363         (func_import): Define a witness macro. Assign it a value that depends
1364         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
1365         tests-related modules.
1366         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
1367         Reported by Jim Meyering.
1368
1369 2010-03-27  Bruno Haible  <bruno@clisp.org>
1370
1371         Factorize common .m4 code.
1372         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
1373         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
1374         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
1375         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
1376         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
1377         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
1378         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
1379         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
1380         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
1381         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
1382         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
1383         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
1384         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
1385         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
1386         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
1387         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
1388         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
1389         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
1390         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
1391         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
1392         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
1393         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
1394         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
1395         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
1396         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
1397         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
1398         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
1399         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
1400         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
1401         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
1402         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
1403         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
1404
1405 2010-03-27  Bruno Haible  <bruno@clisp.org>
1406
1407         Fix a compilation error on Cygwin with g++ >= 4.3.
1408         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
1409         if it is undefined or if we alias it to chmod.
1410         (lstat): Don't warn about the use of this function if it is undefined
1411         or if we alias it to stat.
1412         Reported by Simon Josefsson.
1413
1414 2010-03-27  Bruno Haible  <bruno@clisp.org>
1415
1416         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
1417         * modules/getlogin (configure.ac): Update.
1418
1419         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
1420         * modules/getlogin_r (configure.ac): Update.
1421
1422         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
1423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
1424         * modules/inet_ntop (configure.ac): Update.
1425
1426         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
1427         * modules/inet_pton (configure.ac): Update.
1428
1429         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
1430         * modules/mbslen (configure.ac): Update.
1431
1432         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
1433         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
1434         * modules/forkpty (configure.ac): Update.
1435         * modules/openpty (configure.ac): Update.
1436
1437 2010-03-26  Simon Josefsson  <simon@josefsson.org>
1438
1439         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
1440         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
1441
1442 2010-03-25  Eric Blake  <eblake@redhat.com>
1443
1444         maint: use pragma consistently across replacement headers
1445         * lib/ctype.in.h (system_header): Hoist for consistent placement.
1446         * lib/dirent.in.h (system_header): Likewise.
1447         * lib/errno.in.h (system_header): Likewise.
1448         * lib/float.in.h (system_header): Likewise.
1449         * lib/getopt.in.h (system_header): Likewise.
1450         * lib/iconv.in.h (system_header): Likewise.
1451         * lib/inttypes.in.h (system_header): Likewise.
1452         * lib/langinfo.in.h (system_header): Likewise.
1453         * lib/locale.in.h (system_header): Likewise.
1454         * lib/math.in.h (system_header): Likewise.
1455         * lib/netdb.in.h (system_header): Likewise.
1456         * lib/netinet_in.in.h (system_header): Likewise.
1457         * lib/pty.in.h (system_header): Likewise.
1458         * lib/sched.in.h (system_header): Likewise.
1459         * lib/se-selinux.in.h (system_header): Likewise.
1460         * lib/search.in.h (system_header): Likewise.
1461         * lib/spawn.in.h (system_header): Likewise.
1462         * lib/stdarg.in.h (system_header): Likewise.
1463         * lib/stdint.in.h (system_header): Likewise.
1464         * lib/string.in.h (system_header): Likewise.
1465         * lib/strings.in.h (system_header): Likewise.
1466         * lib/sys_file.in.h (system_header): Likewise.
1467         * lib/sys_ioctl.in.h (system_header): Likewise.
1468         * lib/sys_socket.in.h (system_header): Likewise.
1469         * lib/sys_times.in.h (system_header): Likewise.
1470         * lib/sys_utsname.in.h (system_header): Likewise.
1471         * lib/sys_wait.in.h (system_header): Likewise.
1472         * lib/sysexits.in.h (system_header): Likewise.
1473         * lib/unistd.in.h (system_header): Likewise.
1474         * lib/wctype.in.h (system_header): Likewise.
1475
1476         arpa/inet: fix mingw compilation warning
1477         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
1478         Reported by Matthew Bolte.
1479
1480 2010-03-25  Bruno Haible  <bruno@clisp.org>
1481
1482         Avoid collision between gnulib wrapper and libintl wrapper.
1483         * lib/printf.c (printf): Don't define if a printf wrapper is already
1484         defined in intl/printf.c.
1485         Reported by Michel Boaventura <michel@michelboaventura.com>.
1486
1487 2010-03-25  Bruno Haible  <bruno@clisp.org>
1488
1489         Use ANSI C.
1490         * lib/readutmp.h (getutent): Provide ANSI C prototype.
1491
1492 2010-03-25  Bruno Haible  <bruno@clisp.org>
1493
1494         Minor formatting changes.
1495         * lib/acosl.c: Insert space before function argument list.
1496         * lib/argz.c: Likewise.
1497         * lib/asinl.c: Likewise.
1498         * lib/expl.c: Likewise.
1499         * lib/gen-uni-tables.c: Likewise.
1500         * lib/gettext.h: Likewise.
1501         * lib/glthread/lock.h: Likewise.
1502         * lib/tanl.c: Likewise.
1503         * lib/uniname/uniname.c: Likewise.
1504         * tests/test-idpriv-drop.c: Likewise.
1505         * tests/test-idpriv-droptemp.c: Likewise.
1506         * tests/test-lock.c: Likewise.
1507         * tests/test-tls.c: Likewise.
1508         * lib/argp-help.c: Insert space before function-like macro argument
1509         list.
1510         * lib/memcmp.c: Likewise.
1511         * tests/test-base64.c: Likewise.
1512         * lib/localename.c: Insert space before sizeof's argument list.
1513         * lib/safe-alloc.h: Likewise.
1514         * lib/file-set.h: Insert space before macro argument list.
1515         * tests/test-argp.c: Likewise.
1516         * lib/argp-namefrob.h: Insert space before function parameter list.
1517         * lib/getaddrinfo.c: Likewise.
1518         * lib/netdb.in.h: Likewise.
1519         * lib/parse-duration.h: Likewise.
1520         * lib/parse-duration.c: Likewise.
1521         * lib/poll.c: Likewise.
1522         * lib/select.c: Likewise.
1523         * lib/trim.h: Likewise.
1524         * tests/test-usleep.c: Likewise.
1525         * lib/ldexpl.c: Insert space before function parameter list and before
1526         function argument list.
1527         * lib/logl.c: Likewise.
1528         * lib/sqrtl.c: Likewise.
1529         * lib/trim.c: Likewise.
1530         * lib/cosl.c: Use GNU style indentation. Insert space before function
1531         argument list.
1532         * lib/sinl.c: Likewise.
1533         * lib/tsearch.c: Insert space after 'for'.
1534         Reported by Jim Meyering.
1535
1536 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
1537
1538         * maint.mk (sc_Wundef_boolean): Check for the presence of the
1539         config header before grepping, as it's not present before
1540         autoreconf/configure are run.  Reported by Simon Josefsson.
1541
1542 2010-03-23  Bruno Haible  <bruno@clisp.org>
1543
1544         pt_chown: Make it work with automake < 1.11.
1545         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
1546         Reported by Simon Josefsson.
1547
1548 2010-03-23  Bruno Haible  <bruno@clisp.org>
1549
1550         pt_chown: Don't depend on GPLed modules.
1551         * lib/pt_chown.c: Don't include idpriv.h.
1552         (main): Don't drop privileges.
1553         * modules/pt_chown (Depends-on): Remove idpriv-drop.
1554         Reported by Simon Josefsson.
1555
1556 2010-03-24  Simon Josefsson  <simon@josefsson.org>
1557
1558         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
1559         suggestions from karl@freefriends.org (Karl Berry).
1560
1561 2010-03-22  Eric Blake  <eblake@redhat.com>
1562
1563         gethostname: further tweaks
1564         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
1565         are overriding gethostname.
1566         Suggested by Bruno Haible.
1567
1568 2010-03-21  Bruno Haible  <bruno@clisp.org>
1569
1570         Fix comments.
1571         * lib/forkpty.c (rpl_forkpty): Fix comment.
1572         * lib/openpty.c (rpl_openpty): Likewise.
1573         Reported by Eric Blake.
1574
1575 2010-03-22  Eric Blake  <eblake@redhat.com>
1576
1577         gethostname: fix build on mingw
1578         * lib/unistd.in.h (includes): Work around fact that mingw
1579         <winsock2.h> re-includes <unistd.h>, by avoiding any
1580         redeclarations if we are being included by <winsock2.h>.
1581         Reported by Matthias Bolte.
1582
1583 2010-03-21  Bruno Haible  <bruno@clisp.org>
1584
1585         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1586         * lib/forkpty.c (forkpty): New replacement function, from glibc with
1587         modifications.
1588         * lib/pty.in.h (forkpty): Update declaration. Add comments.
1589         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
1590         provide the replacement.
1591         * modules/forkpty (Depends-on): Add openpty, login_tty.
1592         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
1593         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
1594         * doc/glibc-functions/forkpty.texi: More supported platforms.
1595         * config/srclist.txt: Add forkpty.c (commented).
1596
1597 2010-03-21  Bruno Haible  <bruno@clisp.org>
1598
1599         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
1600         (Makefile.am): Verify that PTY_LIB is defined.
1601
1602         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
1603
1604 2010-03-21  Bruno Haible  <bruno@clisp.org>
1605
1606         Tests for module 'login_tty'.
1607         * modules/login_tty-tests: New file.
1608         * tests/test-login_tty.c: New file.
1609
1610         New module 'login_tty'.
1611         * lib/login_tty.c: New file.
1612         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
1613         * modules/login_tty: New file.
1614         * doc/glibc-functions/login_tty.texi: Mention the new module.
1615
1616 2010-03-21  Bruno Haible  <bruno@clisp.org>
1617
1618         login_tty: Documentation.
1619         * doc/glibc-functions/login_tty.texi: New file.
1620         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
1621
1622 2010-03-21  Bruno Haible  <bruno@clisp.org>
1623
1624         pty: Consistent macro naming.
1625         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
1626         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
1627         * modules/pty (configure.ac): Update.
1628
1629 2010-03-21  Bruno Haible  <bruno@clisp.org>
1630
1631         Tests for openpty: Make stricter.
1632         * tests/test-openpty.c (main): Add test of canonical processing and
1633         erase.
1634         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
1635
1636         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
1637         * lib/openpty.c (openpty): New replacement function.
1638         * lib/pty.in.h: Include <termios.h>.
1639         (openpty): Update declaration. Add comments.
1640         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
1641         is not declared, arrange to provide the replacement. Check for _getpty
1642         and posix_openpt.
1643         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
1644         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
1645         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
1646         * modules/pty-tests (test_pty_c___LDADD): New variable.
1647         * doc/glibc-functions/openpty.texi: More supported platforms.
1648
1649 2010-03-21  Bruno Haible  <bruno@clisp.org>
1650
1651         setenv: Tweaks.
1652         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
1653         the test program.
1654         * doc/posix-functions/setenv.texi: Update platforms list.
1655
1656 2010-03-21  Bruno Haible  <bruno@clisp.org>
1657
1658         New module 'unlockpt'.
1659         * lib/unlockpt.c: New file, from glibc with modifications.
1660         * m4/unlockpt.m4: New file.
1661         * modules/unlockpt: New file.
1662         * lib/stdlib.in.h (unlockpt): New declaration.
1663         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
1664         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
1665         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
1666         HAVE_UNLOCKPT.
1667         * doc/posix-functions/unlockpt.texi: Mention the new module.
1668         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
1669         * config/srclist.txt: Add unlockpt.c (commented).
1670
1671 2010-03-21  Jim Meyering  <meyering@redhat.com>
1672
1673         maint.mk: prohibit inclusion of "intprops.h" without use
1674         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
1675
1676 2010-03-21  Bruno Haible  <bruno@clisp.org>
1677
1678         New module 'grantpt'.
1679         * lib/grantpt.c: New file, from glibc with modifications.
1680         * m4/grantpt.m4: New file.
1681         * modules/grantpt: New file.
1682         * lib/stdlib.in.h (grantpt): New declaration.
1683         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
1684         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
1685         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
1686         HAVE_GRANTPT.
1687         * doc/posix-functions/grantpt.texi: Mention the new module.
1688         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
1689         * config/srclist.txt: Add grantpt.c (commented).
1690
1691 2010-03-21  Bruno Haible  <bruno@clisp.org>
1692
1693         New module 'pt_chown'.
1694         * lib/pt_chown.c: New file, from glibc with modifications.
1695         * lib/pty-private.h: New file, from glibc with modifications.
1696         * modules/pt_chown: New file.
1697         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
1698
1699 2010-03-21  Bruno Haible  <bruno@clisp.org>
1700
1701         Tests for module 'ptsname'.
1702         * modules/ptsname-tests: New file.
1703         * tests/test-ptsname.c: New file.
1704
1705         New module 'ptsname'.
1706         * lib/ptsname.c: New file, from glibc with modifications.
1707         * m4/ptsname.m4: New file.
1708         * modules/ptsname: New file.
1709         * lib/stdlib.in.h (ptsname): New declaration.
1710         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
1711         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
1712         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
1713         HAVE_PTSNAME.
1714         * doc/posix-functions/ptsname.texi: Mention the new module.
1715         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
1716         * config/srclist.txt: Add ptsname.c (commented).
1717
1718 2010-03-21  Bruno Haible  <bruno@clisp.org>
1719
1720         Tests for module 'ttyname_r'.
1721         * modules/ttyname_r-tests: New file.
1722         * tests/test-ttyname_r.c: New file.
1723
1724         New module 'ttyname_r'.
1725         * lib/ttyname_r.c: New file.
1726         * m4/ttyname_r.m4: New file.
1727         * modules/ttyname_r: New file.
1728         * lib/unistd.in.h (ttyname_r): New declaration.
1729         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
1730         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
1731         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
1732         HAVE_TTYNAME_R.
1733         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
1734         * doc/posix-functions/ttyname_r.texi: Mention the new module.
1735
1736 2010-03-20  Bruno Haible  <bruno@clisp.org>
1737
1738         signal: Undefine macro definitions in C++ mode.
1739         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
1740         sigfillset): Undefine macro definitions from the system header in C++
1741         mode.
1742         Reported by John W. Eaton <jwe@gnu.org>.
1743
1744 2010-03-20  Bruno Haible  <bruno@clisp.org>
1745
1746         Ensure no #include statements inside extern "C" { ... }.
1747         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
1748         contain #include statements.
1749         * lib/time.in.h: Likewise.
1750
1751 2010-03-20  Bruno Haible  <bruno@clisp.org>
1752
1753         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
1754         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
1755         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
1756         Reported by John W. Eaton <jwe@gnu.org>.
1757
1758 2010-03-20  Bruno Haible  <bruno@clisp.org>
1759
1760         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
1761         Reported by Jim Meyering.
1762
1763 2010-03-20  Bruno Haible  <bruno@clisp.org>
1764
1765         pipe: Set errno upon failure.
1766         * lib/pipe.h: Specify that when -1 is returned, errno is set.
1767         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
1768         errno value in error message.
1769
1770 2010-03-20  Bruno Haible  <bruno@clisp.org>
1771             Jim Meyering  <meyering@redhat.com>
1772
1773         lchown: Avoid "unused variable" warning.
1774         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
1775
1776 2010-03-20  Bruno Haible  <bruno@clisp.org>
1777
1778         Work around unlink() bug on MacOS X 10.5.6.
1779         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
1780         attempting to unlink a parent directory.
1781         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
1782         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
1783         activate for the replacement function.
1784         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
1785
1786 2010-03-20  Bruno Haible  <bruno@clisp.org>
1787
1788         Fix link errors on Solaris 8.
1789         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
1790         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
1791
1792 2010-03-19  Jim Meyering  <meyering@redhat.com>
1793
1794         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
1795         The _LIBC implementation of build_range_exp correctly honors the
1796         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
1797         However, the non-_LIBC implementation would ignore that syntax-bit
1798         flag and return REG_ERANGE unconditionally.
1799         This change makes it honor that flag.
1800         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
1801         Make two pointer parameters "const".
1802         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
1803         (parse_bracket_exp): Update caller.
1804
1805         regex.m4: correct the reversed range endpoint ([b-a]) test
1806         * m4/regex.m4: When requiring that [b-a] evoke failure,
1807         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
1808         test pass once again for x86-based systems.
1809
1810 2010-03-19  Bruno Haible  <bruno@clisp.org>
1811
1812         scandir: Fix link error on Solaris 8.
1813         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
1814         macros.
1815
1816 2010-03-19  Bruno Haible  <bruno@clisp.org>
1817
1818         getusershell: Fix documentation.
1819         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
1820         module.
1821         * doc/glibc-functions/setusershell.texi: Likewise.
1822
1823         getusershell: Provide declaration, missing on Solaris 9.
1824         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
1825         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
1826         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
1827         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
1828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1829         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
1830         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
1831         HAVE_GETUSERSHELL.
1832         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
1833
1834 2010-03-19  Bruno Haible  <bruno@clisp.org>
1835
1836         wctype: Provide iswblank function.
1837         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
1838         exists and is fine.
1839         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
1840         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
1841         * tests/test-wctype.c (main): Re-enable the iswblank tests.
1842         * doc/posix-functions/iswblank.texi: Update.
1843
1844 2010-03-19  Bruno Haible  <bruno@clisp.org>
1845
1846         Tests of module 'pty' in C++ mode.
1847         * modules/pty-tests: New file.
1848         * tests/test-pty-c++.cc: New file.
1849         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
1850
1851 2010-03-19  Eric Blake  <eblake@redhat.com>
1852
1853         logb: fix documentation
1854         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
1855         1.5 declaration bug.
1856
1857         forkpty, openpty: prefer glibc's const-safe prototype
1858         * lib/forkpty.c (rpl_forkpty): New file.
1859         * lib/openpty.c (rpl_openpty): Likewise.
1860         * modules/forkpty (Files): Distribute it.
1861         * modules/openpty (Files): Likewise.
1862         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
1863         check...
1864         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
1865         replacement for for non-const BSD signature.
1866         * modules/pty (Makefile.am): Substitute witnesses.
1867         * lib/pty.in.h (forkpty, openpty): Declare replacements.
1868         * tests/test-forkpty.c: Update signature check.
1869         * tests/test-openpty.c: Likewise.
1870         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
1871         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1872
1873         forkpty, openpty: split functions into new modules
1874         * modules/pty (Makefile.am): Substitute new witnesses.
1875         (Libraries): Move library detection...
1876         * modules/forkpty: ...into new module.
1877         * modules/openpty: Another new module.
1878         * modules/pty-tests: Rename and split...
1879         * modules/forkpty-tests: ...to this...
1880         * modules/openpty-tests: ...and this.
1881         * tests/test-pty.c: Rename and split...
1882         * tests/test-forkpty.c: ...to this...
1883         * tests/test-openpty.c: ...and this.
1884         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
1885         (gl_PTY): Split library searching...
1886         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
1887         (gl_FORKPTY, gl_OPENPTY): New macros.
1888         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
1889         * NEWS: Mention the split.
1890         * MODULES.html.sh (Misc): Document the modules.
1891         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
1892         * doc/glibc-functions/openpty.texi (openpty): Likewise.
1893
1894         pty: improve replacement header
1895         * lib/pty.in.h: New file.
1896         * modules/pty (Files): Ship it.
1897         (Makefile.am): Always build replacement.
1898         * m4/pty.m4: Rename...
1899         * m4/pty_h.m4: ...to this.
1900         (gl_PTY): Modernize setting of witness macros; update check of
1901         forkpty to take proper advantage of cache.
1902         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
1903
1904         getopt: avoid compiler warning
1905         * lib/getopt.c (attribute_hidden): Remove unused macro.
1906
1907 2010-03-18  Bruno Haible  <bruno@clisp.org>
1908
1909         Fix link errors on Solaris 8.
1910         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
1911         * modules/search-tests (test_search_c___LDADD): Likewise.
1912         * modules/signal-tests (test_signal_c___LDADD): Likewise.
1913         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
1914         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
1915         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
1916         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
1917         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
1918         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
1919
1920 2010-03-18  Bruno Haible  <bruno@clisp.org>
1921
1922         Fix bug introduced on 2010-03-14.
1923         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
1924         (gl_SPAWN_H): Require it.
1925         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
1926         Reported by Simon Josefsson.
1927
1928 2010-03-18  Bruno Haible  <bruno@clisp.org>
1929
1930         Fix typo introduced on 2009-12-31.
1931         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
1932         posix_spawn_file_actions_adddup2.
1933
1934 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
1935         and Eric Blake  <eblake@redhat.com>
1936
1937         test-vc-list-files-git: make more robust
1938         * tests/test-vc-list-files-git.sh: Unset problematic environment
1939         variables.  Chain commands together.
1940
1941 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
1942
1943         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
1944         `AC_CHECK_DECL' invocation.
1945
1946 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
1947
1948         * lib/inttostr.c (inttostr): Make sure the invocation of verify
1949         appears before executable statements. Suggested by Petr Sumbera
1950         <Petr.Sumbera@Sun.COM>.
1951
1952 2010-03-14  Bruno Haible  <bruno@clisp.org>
1953
1954         * tests/test-flock.c (test_exclusive): Comment out a test that causes
1955         portability problems. Instead use a simpler test.
1956         (main): Check that invalid arguments are rejected only on Linux.
1957
1958 2010-03-14  Bruno Haible  <bruno@clisp.org>
1959
1960         Fix bug introduced on 2009-12-31.
1961         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
1962         gl_PREREQ_SYS_H_WINSOCK2 always.
1963         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
1964         SYS_SOCKET_H variable.
1965         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
1966         Update comments.
1967         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
1968         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1969         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1970         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1971         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
1972
1973 2010-03-14  Bruno Haible  <bruno@clisp.org>
1974
1975         Fix values returned by sinl, cosl.
1976         * lib/trigl.h: Add specification comments.
1977         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
1978         that combines the values from the precomputed table with the values of
1979         the Chebyshev polynomials.
1980
1981 2010-03-14  Bruno Haible  <bruno@clisp.org>
1982
1983         Fix compilation error when modules 'posix_spawn[p]' are not used.
1984         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
1985         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
1986
1987 2010-03-14  Bruno Haible  <bruno@clisp.org>
1988
1989         Fix compilation error on mingw when module 'time_r' is not used.
1990         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
1991         is 1.
1992         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
1993         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
1994         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
1995         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
1996
1997 2010-03-14  Bruno Haible  <bruno@clisp.org>
1998
1999         Fix compilation error with Sun C.
2000         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
2001         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
2002         instead of GCC specific ULONG_LONG_MAX.
2003         * lib/xstrtoll.c: Likewise.
2004         * lib/xstrtoull.c: Likewise.
2005
2006 2010-03-13  Bruno Haible  <bruno@clisp.org>
2007
2008         Allow the user to disable C++ code and tests.
2009         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
2010         (gl_PROG_ANSI_CXX): Require it.
2011
2012 2010-03-13  Bruno Haible  <bruno@clisp.org>
2013
2014         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
2015         cases.
2016
2017 2010-03-13  Bruno Haible  <bruno@clisp.org>
2018
2019         Test that gnulib does not break the standard C++ headers.
2020         * tests/test-locale-c++2.cc: New file.
2021         * modules/locale-tests (Files): Add it.
2022         (Makefile.am): Compile it for test-locale-c++.
2023         * tests/test-math-c++2.cc: New file.
2024         * modules/math-tests (Files): Add it.
2025         (Makefile.am): Compile it for test-math-c++.
2026         * tests/test-signal-c++2.cc: New file.
2027         * modules/signal-tests (Files): Add it.
2028         (Makefile.am): Compile it for test-signal-c++.
2029         * tests/test-stdio-c++2.cc: New file.
2030         * modules/stdio-tests (Files): Add it.
2031         (Makefile.am): Compile it for test-stdio-c++.
2032         * tests/test-stdlib-c++2.cc: New file.
2033         * modules/stdlib-tests (Files): Add it.
2034         (Makefile.am): Compile it for test-stdlib-c++.
2035         * tests/test-string-c++2.cc: New file.
2036         * modules/string-tests (Files): Add it.
2037         (Makefile.am): Compile it for test-string-c++.
2038         * tests/test-time-c++2.cc: New file.
2039         * modules/time-tests (Files): Add it.
2040         (Makefile.am): Compile it for test-time-c++.
2041         Reported by John W. Eaton <jwe@gnu.org>.
2042
2043 2010-03-13  Bruno Haible  <bruno@clisp.org>
2044
2045         * gnulib-tool (func_usage): Clarify which options are available for
2046         --create-testdir and --create-megatestdir.
2047
2048 2010-03-13  Bruno Haible  <bruno@clisp.org>
2049
2050         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
2051         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
2052         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
2053         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
2054         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
2055         when appropriate.
2056         Reported by Jim Meyering.
2057
2058 2010-03-12  Simon Josefsson  <simon@josefsson.org>
2059
2060         * gnulib-tool (func_import): Explain origin of code.
2061
2062 2010-03-12  Bruno Haible  <bruno@clisp.org>
2063
2064         Fix problem with automake's definition of CXXLINK.
2065         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
2066         Reported by Simon Josefsson and Ludovic Courtès.
2067
2068 2010-03-12  Bruno Haible  <bruno@clisp.org>
2069
2070         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
2071         stable releases.
2072
2073 2010-03-11  Bruno Haible  <bruno@clisp.org>
2074
2075         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
2076         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
2077         whether the system provides one variant or multiple variants of the
2078         function.
2079         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
2080         C++ compilers.
2081         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
2082         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
2083         Reported by Jim Meyering.
2084
2085 2010-03-09  Simon Josefsson  <simon@josefsson.org>
2086
2087         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
2088
2089 2010-03-08  Bruno Haible  <bruno@clisp.org>
2090
2091         gnulib-tool: Add support for --libtool in --create-testdir.
2092         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
2093         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
2094
2095 2010-03-08  Eric Blake  <eblake@redhat.com>
2096
2097         gnulib-tool.texi: mention possibility of git submodule
2098         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
2099         submodules.
2100         * doc/.gitignore: Ignore another generated file.
2101
2102 2010-03-08  Karl Berry  <karl@gnu.org>
2103
2104         * doc/gnulib-tool.texi (VCS Issues): Mention third option
2105         of committing gnulib files while skipping others.
2106
2107 2010-03-07  Bruno Haible  <bruno@clisp.org>
2108
2109         Tests of module 'wctype' in C++ mode.
2110         * tests/test-wctype-c++.cc: New file.
2111         * modules/wctype-tests (Files): Add it and tests/signature.h.
2112         (Depends-on): Add ansi-c++-opt.
2113         (Makefile.am): Arrange to compile and run test-wctype-c++.
2114
2115         Tests of module 'wchar' in C++ mode.
2116         * tests/test-wchar-c++.cc: New file.
2117         * modules/wchar-tests (Files): Add it and tests/signature.h.
2118         (Depends-on): Add ansi-c++-opt.
2119         (Makefile.am): Arrange to compile and run test-wchar-c++.
2120         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
2121         gl_MODULE_INDICATOR.
2122
2123         Tests of module 'unistd' in C++ mode.
2124         * tests/test-unistd-c++.cc: New file.
2125         * modules/unistd-tests (Files): Add it and tests/signature.h.
2126         (Depends-on): Add ansi-c++-opt.
2127         (Makefile.am): Arrange to compile and run test-unistd-c++.
2128         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
2129         gl_MODULE_INDICATOR.
2130
2131         Tests of module 'time' in C++ mode.
2132         * tests/test-time-c++.cc: New file.
2133         * modules/time-tests (Files): Add it and tests/signature.h.
2134         (Depends-on): Add ansi-c++-opt.
2135         (Makefile.am): Arrange to compile and run test-time-c++.
2136         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2137
2138         Tests of module 'sys_time' in C++ mode.
2139         * tests/test-sys_time-c++.cc: New file.
2140         * modules/sys_time-tests (Files): Add it and tests/signature.h.
2141         (Depends-on): Add ansi-c++-opt.
2142         (Makefile.am): Arrange to compile and run test-sys_time-c++.
2143         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
2144         gl_MODULE_INDICATOR.
2145
2146         Tests of module 'sys_stat' in C++ mode.
2147         * tests/test-sys_stat-c++.cc: New file.
2148         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
2149         (Depends-on): Add ansi-c++-opt.
2150         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
2151         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
2152         gl_MODULE_INDICATOR.
2153
2154         Tests of module 'sys_socket' in C++ mode.
2155         * tests/test-sys_socket-c++.cc: New file.
2156         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
2157         (Depends-on): Add ansi-c++-opt.
2158         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
2159         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
2160         gl_MODULE_INDICATOR.
2161
2162         Tests of module 'sys_select' in C++ mode.
2163         * tests/test-sys_select-c++.cc: New file.
2164         * modules/sys_select-tests (Files): Add it and tests/signature.h.
2165         (Depends-on): Add ansi-c++-opt.
2166         (Makefile.am): Arrange to compile and run test-sys_select-c++.
2167         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
2168         gl_MODULE_INDICATOR.
2169
2170         Tests of module 'sys_ioctl' in C++ mode.
2171         * tests/test-sys_ioctl-c++.cc: New file.
2172         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
2173         (Depends-on): Add ansi-c++-opt.
2174         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
2175         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
2176         gl_MODULE_INDICATOR.
2177
2178         Tests of module 'string' in C++ mode.
2179         * tests/test-string-c++.cc: New file.
2180         * modules/string-tests (Files): Add it and tests/signature.h.
2181         (Depends-on): Add ansi-c++-opt.
2182         (Makefile.am): Arrange to compile and run test-string-c++.
2183         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
2184         gl_MODULE_INDICATOR.
2185
2186         Tests of module 'stdlib' in C++ mode.
2187         * tests/test-stdlib-c++.cc: New file.
2188         * modules/stdlib-tests (Files): Add it and tests/signature.h.
2189         (Depends-on): Add ansi-c++-opt.
2190         (Makefile.am): Arrange to compile and run test-stdlib-c++.
2191         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
2192         gl_MODULE_INDICATOR.
2193
2194         Tests of module 'stdio' in C++ mode.
2195         * tests/test-stdio-c++.cc: New file.
2196         * modules/stdio-tests (Files): Add it and tests/signature.h.
2197         (Depends-on): Add ansi-c++-opt.
2198         (Makefile.am): Arrange to compile and run test-stdio-c++.
2199         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
2200         gl_MODULE_INDICATOR.
2201
2202         Tests of module 'spawn' in C++ mode.
2203         * tests/test-spawn-c++.cc: New file.
2204         * modules/spawn-tests (Files): Add it and tests/signature.h.
2205         (Depends-on): Add ansi-c++-opt.
2206         (Makefile.am): Arrange to compile and run test-spawn-c++.
2207         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
2208         gl_MODULE_INDICATOR.
2209
2210         Tests of module 'signal' in C++ mode.
2211         * tests/test-signal-c++.cc: New file.
2212         * modules/signal-tests (Files): Add it and tests/signature.h.
2213         (Depends-on): Add ansi-c++-opt.
2214         (Makefile.am): Arrange to compile and run test-signal-c++.
2215         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
2216         gl_MODULE_INDICATOR.
2217
2218         Tests of module 'search' in C++ mode.
2219         * tests/test-search-c++.cc: New file.
2220         * modules/search-tests (Files): Add it and tests/signature.h.
2221         (Depends-on): Add ansi-c++-opt.
2222         (Makefile.am): Arrange to compile and run test-search-c++.
2223         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
2224         gl_MODULE_INDICATOR.
2225
2226         Tests of module 'math' in C++ mode.
2227         * tests/test-math-c++.cc: New file.
2228         * modules/math-tests (Files): Add it and tests/signature.h.
2229         (Depends-on): Add ansi-c++-opt.
2230         (Makefile.am): Arrange to compile and run test-math-c++.
2231         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
2232
2233         Tests of module 'locale' in C++ mode.
2234         * tests/test-locale-c++.cc: New file.
2235         * modules/locale-tests (Files): Add it and tests/signature.h.
2236         (Depends-on): Add ansi-c++-opt.
2237         (Makefile.am): Arrange to compile and run test-locale-c++.
2238         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
2239         gl_MODULE_INDICATOR.
2240
2241         Tests of module 'langinfo' in C++ mode.
2242         * tests/test-langinfo-c++.cc: New file.
2243         * modules/langinfo-tests (Files): Add it and tests/signature.h.
2244         (Depends-on): Add ansi-c++-opt.
2245         (Makefile.am): Arrange to compile and run test-langinfo-c++.
2246         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
2247         gl_MODULE_INDICATOR.
2248
2249         Tests of module 'iconv-h' in C++ mode.
2250         * tests/test-iconv-h-c++.cc: New file.
2251         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
2252         (Depends-on): Add ansi-c++-opt.
2253         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
2254
2255         Tests of module 'glob' in C++ mode.
2256         * tests/test-glob-c++.cc: New file.
2257         * modules/glob-tests (Files): Add it.
2258         (Depends-on): Add ansi-c++-opt.
2259         (Makefile.am): Arrange to compile and run test-glob-c++.
2260
2261         Tests of module 'fcntl-h' in C++ mode.
2262         * tests/test-fcntl-h-c++.cc: New file.
2263         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
2264         (Depends-on): Add ansi-c++-opt.
2265         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
2266         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
2267         gl_MODULE_INDICATOR.
2268
2269         Tests of module 'dirent' in C++ mode.
2270         * tests/test-dirent-c++.cc: New file.
2271         * modules/dirent-tests (Files): Add it and tests/signature.h.
2272         (Depends-on): Add ansi-c++-opt.
2273         (Makefile.am): Arrange to compile and run test-dirent-c++.
2274         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
2275         gl_MODULE_INDICATOR.
2276
2277         New module 'ansi-c++-opt'.
2278         * modules/ansi-c++-opt: New file.
2279         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
2280
2281         Document C++ namespace mode.
2282         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
2283
2284         wctype: Avoid #define replacements in C++ mode.
2285         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
2286         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
2287         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
2288         In C++, define a namespaced alias symbol.
2289         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
2290         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
2291         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
2292         rule.
2293
2294         wchar: Avoid #define replacements in C++ mode.
2295         * lib/wchar.in.h: Include c++defs.h.
2296         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
2297         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
2298         symbol.
2299         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
2300         * modules/wchar (Depends-on): Add c++defs.
2301         (Makefile.am): Update wchar.h rule.
2302
2303         unistd: Avoid #define replacements in C++ mode.
2304         * lib/unistd.in.h: Include c++defs.h.
2305         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
2306         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
2307         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
2308         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
2309         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
2310         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
2311         symbol.
2312         (environ): Update.
2313         * modules/unistd (Depends-on): Add c++defs.
2314         (Makefile.am): Update unistd.h rule.
2315
2316         time: Avoid #define replacements in C++ mode.
2317         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
2318         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
2319         define a namespaced alias symbol.
2320         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
2321         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
2322         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
2323         * modules/time (Depends-on): Add c++defs, warn-on-use.
2324         (Makefile.am): Update time.h rule.
2325         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
2326         * modules/nanosleep (configure.ac): Likewise.
2327         * modules/strptime (configure.ac): Likewise.
2328         * modules/timegm (configure.ac): Likewise.
2329
2330         sys_time: Avoid #define replacements in C++ mode.
2331         * lib/sys_time.in.h: Include c++defs.h.
2332         (gettimeofday): In C++, define a namespaced alias symbol.
2333         * modules/sys_time (Depends-on): Add c++defs.
2334         (Makefile.am): Update sys/time.h rule.
2335
2336         sys_stat: Avoid #define replacements in C++ mode.
2337         * lib/sys_stat.in.h: Include c++defs.h.
2338         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
2339         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
2340         namespaced alias symbol.
2341         In C++, define a namespaced alias symbol.
2342         * modules/sys_stat (Depends-on): Add c++defs.
2343         (Makefile.am): Update sys/stat.h rule.
2344
2345         sys_socket: Avoid #define replacements in C++ mode.
2346         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
2347         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
2348         definitions also when the system has a <sys/socket.h>.
2349         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2350         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
2351         In C++, define a namespaced alias symbol.
2352         * modules/sys_socket (Depends-on): Add c++defs.
2353         (Makefile.am): Update sys/socket.h rule.
2354
2355         sys_select: Avoid #define replacements in C++ mode.
2356         * lib/sys_select.in.h: Include c++defs.h. Enable the function
2357         definitions also when the system has a <sys/select.h>.
2358         (select): In C++, define a namespaced alias symbol.
2359         * modules/sys_select (Depends-on): Add c++defs.
2360         (Makefile.am): Update sys/select.h rule.
2361
2362         sys_ioctl: Avoid #define replacements in C++ mode.
2363         * lib/sys_ioctl.in.h: Include c++defs.h.
2364         (ioctl): In C++, define a namespaced alias symbol.
2365         * modules/sys_ioctl (Depends-on): Add c++defs.
2366         (Makefile.am): Update sys/ioctl.h rule.
2367
2368         string: Avoid #define replacements in C++ mode.
2369         * lib/string.in.h: Include c++defs.h.
2370         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
2371         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2372         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2373         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
2374         strsignal, strverscmp): In C++, define a namespaced alias symbol.
2375         * modules/string (Depends-on): Add c++defs.
2376         (Makefile.am): Update string.h rule.
2377
2378         stdlib: Avoid #define replacements in C++ mode.
2379         * lib/stdlib.in.h: Include c++defs.h.
2380         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
2381         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
2382         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
2383         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
2384         symbol.
2385         * modules/stdlib (Depends-on): Add c++defs.
2386         (Makefile.am): Update stdlib.h rule.
2387
2388         stdio: Avoid #define replacements in C++ mode.
2389         * lib/stdio.in.h: Include c++defs.h.
2390         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
2391         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
2392         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
2393         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
2394         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
2395         namespaced alias symbol.
2396         * modules/stdio (Depends-on): Add c++defs.
2397         (Makefile.am): Update stdio.h rule.
2398
2399         spawn: Avoid #define replacements in C++ mode.
2400         * lib/spawn.in.h: Include c++defs.h.
2401         (posix_spawn, posix_spawnp, posix_spawnattr_init,
2402         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2403         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2404         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2405         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2406         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2407         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2408         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2409         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2410         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2411         In C++, define a namespaced alias symbol.
2412         * modules/spawn (Depends-on): Add c++defs.
2413         (Makefile.am): Update spawn.h rule.
2414
2415         signal: Avoid #define replacements in C++ mode.
2416         * lib/signal.in.h: Include c++defs.h.
2417         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2418         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
2419         namespaced alias symbol.
2420         * modules/signal (Depends-on): Add c++defs.
2421         (Makefile.am): Update signal.h rule.
2422
2423         search: Avoid #define replacements in C++ mode.
2424         * lib/search.in.h: Include c++defs.h.
2425         (_gl_search_compar_fn, _gl_search_action_fn): New types.
2426         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
2427         symbol.
2428         * modules/search (Depends-on): Add c++defs.
2429         (Makefile.am): Update search.h rule.
2430
2431         math: Avoid #define replacements in C++ mode.
2432         * lib/math.in.h: Include c++defs.h.
2433         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
2434         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
2435         trunc, truncl): In C++, define a namespaced alias symbol.
2436         * modules/math (Depends-on): Add c++defs.
2437         (Makefile.am): Update math.h rule.
2438
2439         locale: Avoid #define replacements in C++ mode.
2440         * lib/locale.in.h: Include c++defs.h.
2441         (duplocale): In C++, define a namespaced alias symbol.
2442         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
2443         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
2444         * modules/locale (Depends-on): Add c++defs.
2445         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
2446
2447         langinfo: Avoid #define replacements in C++ mode.
2448         * lib/langinfo.in.h: Include c++defs.h.
2449         (nl_langinfo): In C++, define a namespaced alias symbol.
2450         * modules/langinfo (Depends-on): Add c++defs.
2451         (Makefile.am): Update langinfo.h rule.
2452
2453         iconv-h: Avoid #define replacements in C++ mode.
2454         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
2455         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
2456         symbol.
2457         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2458         whenever iconv is present.
2459         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
2460         (Makefile.am): Update iconv.h rule.
2461
2462         glob: Avoid #define replacements in C++ mode.
2463         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
2464         (_gl_glob_errfunc_fn): New type.
2465         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
2466         symbol.
2467         * modules/glob (Depends-on): Add c++defs, warn-on-use.
2468         (Makefile.am): Update glob.h rule.
2469
2470         fcntl-h: Avoid #define replacements in C++ mode.
2471         * lib/fcntl.in.h: Include c++defs.h.
2472         (fcntl, open, openat): In C++, define a namespaced alias symbol.
2473         * modules/fcntl-h (Depends-on): Add c++defs.
2474         (Makefile.am): Update fcntl.h rule.
2475
2476         dirent: Avoid #define replacements in C++ mode.
2477         * lib/dirent.in.h: Include c++defs.h.
2478         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
2479         namespaced alias symbol.
2480         (dirfd): Update declaration.
2481         * modules/dirent (Depends-on): Add c++defs.
2482         (Makefile.am): Update dirent.h rule.
2483
2484         ctype: Make it usable in C++ code.
2485         * lib/ctype.in.h: Include c++defs.h.
2486         (isblank): Declare as extern "C".
2487         * modules/ctype (Depends-on): Add c++defs.
2488         (Makefile.am): Update ctype.h rule.
2489
2490         New module 'c++defs'.
2491         * modules/c++defs: New file.
2492         * build-aux/c++defs.h: New file.
2493         Reported by John W. Eaton <jwe@gnu.org>.
2494
2495 2010-03-07  Bruno Haible  <bruno@clisp.org>
2496
2497         logb: Provide missing declaration for Cygwin.
2498         * lib/math.in.h (logb): New declaration.
2499         * m4/logb.m4: New file.
2500         * modules/logb (Files): Add m4/logb.m4.
2501         (Depends-on): Add math.
2502         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
2503         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
2504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
2505         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
2506         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
2507
2508 2010-03-07  Bruno Haible  <bruno@clisp.org>
2509
2510         Fix test-cond link error.
2511         * tests/test-cond.c: Include <stdio.h>.
2512
2513 2010-03-07  Bruno Haible  <bruno@clisp.org>
2514
2515         Fix test-dirent-safer link error.
2516         * modules/dirent-safer-tests (Makefile.am): Define
2517         test_dirent_safer_LDADD.
2518
2519 2010-03-07  Bruno Haible  <bruno@clisp.org>
2520
2521         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
2522         among default module list.
2523
2524 2010-03-07  Bruno Haible  <bruno@clisp.org>
2525
2526         Fix link error on platforms with GNU libiconv.
2527         * modules/unistr/u8-strcoll-tests (Makefile): Define
2528         test_u8_strcoll_LDADD.
2529         * modules/unistr/u16-strcoll-tests (Makefile): Define
2530         test_u16_strcoll_LDADD.
2531         * modules/unistr/u32-strcoll-tests (Makefile): Define
2532         test_u32_strcoll_LDADD.
2533
2534 2010-03-07  Bruno Haible  <bruno@clisp.org>
2535
2536         Use POSIX declarations for socket functions.
2537         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
2538         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
2539         rpl_sendto): Change declaration to match POSIX.
2540         * lib/connect.c (rpl_connect): Likewise.
2541         * lib/accept.c (rpl_accept): Likewise.
2542         * lib/bind.c (rpl_bind): Likewise.
2543         * lib/getpeername.c (rpl_getpeername): Likewise.
2544         * lib/getsockname.c (rpl_getsockname): Likewise.
2545         * lib/recv.c (rpl_recv): Likewise.
2546         * lib/send.c (rpl_send): Likewise.
2547         * lib/recvfrom.c (rpl_recvfrom): Likewise.
2548         * lib/sendto.c (rpl_sendto): Likewise.
2549
2550 2010-03-06  Bruno Haible  <bruno@clisp.org>
2551
2552         Clarify access, euidaccess, faccessat.
2553         * doc/posix-functions/faccessat.texi: Mention security problem under
2554         "Other problems", not "Portability problems".
2555         * doc/posix-functions/access.texi: Likewise. Mention a related security
2556         problem.
2557         * doc/glibc-functions/euidaccess.texi: Mention security problems.
2558         * lib/euidaccess.c: Add comments about platforms.
2559         * lib/unistd.in.h (access, euidaccess): Add warnings.
2560
2561 2010-03-07  Bruno Haible  <bruno@clisp.org>
2562
2563         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
2564         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
2565         (POSIX_SPAWN_SETSCHEDULER): Likewise.
2566         (POSIX_SPAWN_USEVFORK): Define in a way that works when
2567         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2568         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
2569         declare when POSIX_SPAWN_SETSCHEDULER is zero.
2570         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
2571         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
2572         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
2573         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
2574         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
2575         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
2576         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
2577         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
2578         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
2579         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
2580         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
2581         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
2582         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
2583         Likewise.
2584         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
2585         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
2586         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
2587         Likewise.
2588         * tests/test-spawn.c (main): Make it work when
2589         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
2590
2591 2010-03-07  Bruno Haible  <bruno@clisp.org>
2592
2593         Fix incorrect Makefile.am generation in German locale.
2594         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2595         Execute sed command with character range in C locale.
2596
2597 2010-03-06  Bruno Haible  <bruno@clisp.org>
2598
2599         Tests for module 'iconv-h'.
2600         * modules/iconv-h-tests: New file.
2601         * tests/test-iconv-h.c: New file.
2602
2603         New module 'iconv-h'.
2604         * modules/iconv-h: New file.
2605         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
2606         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
2607         (configure.ac): Remove gl_ICONV_H.
2608         (Makefile.am): Remove rule for iconv.h.
2609
2610 2010-03-06  Bruno Haible  <bruno@clisp.org>
2611
2612         More consistent naming of *.m4 files.
2613         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
2614         * modules/wctype (Files): Update.
2615
2616         More consistent naming of *.m4 files.
2617         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
2618         * modules/wchar (Files): Update.
2619
2620 2010-03-06  Jim Meyering  <meyering@redhat.com>
2621
2622         euidaccess: relax license to LGPLv2+
2623         * modules/euidaccess (License): Relax to LGPLv2+.
2624
2625 2010-03-06  Bruno Haible  <bruno@clisp.org>
2626
2627         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
2628         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
2629         (Makefile.am): Augment lib_SOURCES instead.
2630
2631 2010-03-04  Jim Meyering  <meyering@redhat.com>
2632
2633         utime: remove obsolete module
2634         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
2635         unnecessary for years, and has been marked as obsolete for 10 months.
2636         * modules/utime: Remove file.
2637         * lib/utime.c: Remove file.
2638         * m4/utime.m4: Remove file.
2639         * m4/utimes-null.m4: Remove file.
2640         * doc/posix-functions/utime.texi (utime): Remove reference to
2641         the module.  Move the sole "fixed by gnulib" item into the
2642         "problems not fixed by Gnulib" list.
2643         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
2644
2645 2010-03-05  Simon Josefsson  <simon@josefsson.org>
2646
2647         * modules/exit (License): Relax license to LGPLv2+.
2648         (Status): Mark as obsolete.
2649         * NEWS: Mention deprecated 'exit' module.
2650         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
2651         of now obsolete 'exit'.
2652
2653 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2654
2655         fts-lgpl: remove unused module
2656         * modules/fts-lgpl: Remove.
2657         * MODULES.html.sh (func_all_modules): Adjust.
2658         * check-module (find_included_lib_files): Adjust.
2659         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
2660
2661 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
2662
2663         copy-acl: enhance Solaris ACL error handling
2664         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
2665         * lib/set-mode-acl.c (qset_acl): Likewise.
2666
2667 2010-03-02  Bruno Haible  <bruno@clisp.org>
2668
2669         spawn: Don't override the system defined values on FreeBSD 8.
2670         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
2671         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
2672         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
2673         if HAVE_POSIX_SPAWN is 1.
2674         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
2675
2676 2010-03-01  Bruno Haible  <bruno@clisp.org>
2677
2678         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
2679         regarding Automake.
2680
2681 2010-02-25  Bruno Haible  <bruno@clisp.org>
2682
2683         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
2684         * gnulib-tool: Define 'echo' as a function only before the ksh alias
2685         setting, not afterwards.
2686         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2687
2688 2010-02-24  Eric Blake  <eblake@redhat.com>
2689
2690         bootstrap, git-version-gen: use timestamp
2691         * build-aux/git-version-gen (scriptversion): Force UTC.
2692         * build-aux/bootstrap (scriptversion): New variable.
2693
2694         bootstrap: allow older git
2695         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
2696         older than 1.6.4.  Requested by the libvirt project.
2697
2698 2010-02-23  Eric Blake  <eblake@redhat.com>
2699
2700         warn-on-use: work with old autoconf
2701         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
2702         AS_VAR semantics of autoconf 2.60.
2703         Reported by Bruno Haible.
2704
2705         bootstrap: improve some comments
2706         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
2707         clarification comments.
2708
2709         gettimeofday: provide correct function
2710         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
2711         when replacement is declared, otherwise provide gettimeofday.
2712         Reported by Michael Goffioul.
2713
2714 2010-02-23  Jim Meyering  <meyering@redhat.com>
2715
2716         lib-ignore: relax license to "unlimited", not LGPLv2+
2717         * modules/lib-ignore (License): Relax to "unlimited".
2718
2719 2010-02-23  Jim Meyering  <meyering@redhat.com>
2720
2721         lib-ignore: relax license to LGPLv2+
2722         * modules/lib-ignore (License): Relax to LGPLv2+.
2723
2724 2010-02-22  Eric Blake  <eblake@redhat.com>
2725
2726         lseek: avoid bash 3.2 broken pipe bug
2727         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
2728         warning from bash 3.2.
2729         Reported by Ben Pfaff, with analysis from Bruno Haible.
2730
2731         bootstrap: support non-FSF copyright holder
2732         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
2733         bootstrap.conf override of COPYRIGHT_HOLDER.
2734         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
2735
2736         bootstrap: interoperate with gettext 0.14.1
2737         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
2738
2739         bootstrap: allow for alternate submodule location
2740         * build-aux/bootstrap (gnulib_path): New variable; use instead of
2741         hardcoding submodule location.
2742         (gnulib_mk): Allow direct use of Makefile.am.
2743
2744         bootstrap: use GNULIB_SRCDIR to reduce disk usage
2745         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
2746         rather than reconfiguring where the submodule points.
2747
2748         gettimeofday: restore support for platforms that lack function
2749         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
2750         replacement if function is missing.
2751         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
2752         * modules/sys_time (Makefile.am): Substitute it.
2753         * lib/sys_time.in.h (gettimeofday): Check it.
2754         Reported by Michael Goffioul.
2755
2756 2010-02-21  Bruno Haible  <bruno@clisp.org>
2757
2758         * lib/stdio.in.h (obstack_printf): Fix typo.
2759
2760 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
2761
2762         vc-list-files: use bzr ls's -R option
2763         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
2764         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
2765
2766 2010-02-21  Jim Meyering  <meyering@redhat.com>
2767
2768         init.sh: fix EXEEXT shims to work also for names like test-prog
2769         * tests/init.sh: Re-exec a better shell, when needed.
2770         If the current shell lacks support for posix $(...), an init.sh-using
2771         test will now try to find a shell that supports that.  If EXEEXT is
2772         nonempty, we also require support for hyphen-in-alias-name and shell
2773         substitutions like ${var#glob}.  Failure to find such a shell results
2774         in a skipped test.
2775
2776 2010-02-21  Bruno Haible  <bruno@clisp.org>
2777
2778         Really work around around "broken pipe" error message from bash 3.2.
2779         * gnulib-tool (func_reset_sigpipe): Remove function.
2780         (echo): In bash 3.2, define to a function that uses printf.
2781         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
2782
2783 2010-02-20  Bruno Haible  <bruno@clisp.org>
2784
2785         Restore support for automake 1.9.6 with autoconf 2.61.
2786         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
2787         Reported by James Youngman <jay@gnu.org>.
2788
2789 2010-02-20  Bruno Haible  <bruno@clisp.org>
2790
2791         Improve *printf warning condition.
2792         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
2793         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
2794         and the function is overridden due to SIGPIPE emulation.
2795
2796 2010-02-20  Bruno Haible  <bruno@clisp.org>
2797
2798         * lib/stdio.in.h: Tweak comments.
2799
2800 2010-02-19  Bruno Haible  <bruno@clisp.org>
2801
2802         Make it easier to find modules. New gnulib-tool option '--find'.
2803         * gnulib-tool: New option --find.
2804         (func_usage): Document it.
2805         (func_sanitize_modulelist): New function, extracted from
2806         func_all_modules.
2807         (func_all_modules): Invoke it.
2808         * doc/gnulib-tool.texi (Which modules?): New node.
2809
2810 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
2811
2812         * lib/sys_select.in.h: Provide select replacement even if
2813         sys/select.h exists on a system, for Interix.
2814
2815 2010-02-18  Jim Meyering  <meyering@redhat.com>
2816
2817         init.sh: don't use $(...) just yet
2818         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
2819         to accommodate e.g., Solaris' /bin/sh.
2820
2821 2010-02-17  Bruno Haible  <bruno@clisp.org>
2822
2823         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
2824         Reported by Ludovic Courtès <ludo@gnu.org>.
2825
2826 2010-02-16  Simon Josefsson  <simon@josefsson.org>
2827
2828         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
2829         linking with -lintl.
2830
2831 2010-02-17  Simon Josefsson  <simon@josefsson.org>
2832
2833         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
2834         if not provided by the system's netdb.h.  Reported by
2835         ludo@gnu.org (Ludovic Courtès).
2836
2837 2010-02-15  Jim Meyering  <meyering@redhat.com>
2838
2839         init.sh: improve portability and efficiency
2840         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
2841         "dummy" in a for loop.
2842         Use '!', not '^' to select the complement of a character set used
2843         in a "case" statement.
2844         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
2845         Suggestions from Eric Blake.
2846
2847         init.sh: automatically accommodate programs with the .exe suffix
2848         Automatically arrange for an invocation of "prog" to execute the
2849         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
2850         may use the simpler "prog", yet still work when built on a system
2851         that requires specifying the added suffix.
2852         Do this by constructing a function named "prog" that invokes
2853         "prog.exe" for each .exe file in selected directories.
2854         * tests/init.sh (find_exe_basenames_): New function.
2855         (create_exe_shim_functions_): New function.
2856         (path_prepend_): Use it.
2857
2858         maint.mk: mark syntax-check sc_*.m rules as .PHONY
2859         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
2860         "make -t syntax-check" doesn't create a ton of sc_*.m files.
2861
2862 2010-02-14  Jim Meyering  <meyering@redhat.com>
2863
2864         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
2865         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
2866         (sc_prohibit_hash_pjw_without_use): New rule.
2867
2868         maint.mk: allow the default upload destination dir to be overridden
2869         * top/maint.mk (upload_dest_dir_): Define with a default that
2870         preserves the status quo.
2871         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
2872         Reported by Peter Simons.
2873
2874         maint.mk: prohibit inclusion of "hash.h" without_use
2875         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
2876
2877 2010-02-10  Jim Meyering  <meyering@redhat.com>
2878
2879         maint.mk: prohibit inclusion of "ignore-value.h" without_use
2880         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
2881
2882 2010-02-09  Eric Blake  <ebb9@byu.net>
2883         and Bruno Haible  <bruno@clisp.org>
2884
2885         obstack-printf-posix: ensure declaration
2886         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
2887         extracted from gl_FUNC_OBSTACK_PRINTF.
2888         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
2889         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
2890         Likewise.
2891         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
2892         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
2893         0.
2894
2895 2010-02-08  Bruno Haible  <bruno@clisp.org>
2896
2897         gnulib-tool: Fix typo in 2010-02-07 commit.
2898         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
2899         Reported by Eric Blake.
2900
2901 2010-02-07  Bruno Haible  <bruno@clisp.org>
2902
2903         gnulib-tool: Fix up caching patches.
2904         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
2905         option --no-cache. Use associative arrays when supported by the shell.
2906         (sed_comments): New variable.
2907         (modcache): Renamed from do_cache.
2908         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
2909         abbreviate unnecessarily.
2910         (have_associative): New variable.
2911         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
2912         way also for ksh and zsh.
2913         (func_init_sed_convert_to_cache_statements): New function, extracted
2914         from func_cache_lookup_module. Add support for associative arrays.
2915         Don't set the c_MODULE_cached variable here. Ignore all lines before
2916         the first field header. Remove only the final newline, not all trailing
2917         newlines. Support empty fields correctly. Limit the use of 'eval' to
2918         assignments.
2919         (func_get_description, func_get_status, func_get_notice,
2920         func_get_applicability, func_get_filelist, func_get_dependencies,
2921         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
2922         func_get_automake_snippet, func_get_include_directive,
2923         func_get_link_directive, func_get_license, func_get_maintainer):
2924         Update documentation. List the unoptimized code first. Add support for
2925         associative arrays. Limit the use of 'eval' to assignments.
2926         (func_get_applicability): Undo stylistic pessimisations.
2927         (func_get_automake_snippet, func_get_include_directive): Reduce code
2928         duplication.
2929         (func_modules_transitive_closure, func_modules_add_dummy,
2930         func_modules_notice, func_modules_to_filelist, func_add_file,
2931         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
2932         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
2933         func_create_testdir, func_create_megatestdir): Update documentation.
2934
2935 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2936
2937         * gnulib-tool (func_cache_lookup_module): Store the module name
2938         belonging to the cache variable; error out if two different
2939         module names map to the same cache variable name.
2940
2941 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2942
2943         gnulib-tool: Make caching optional.
2944         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
2945         Update matching short versions of --no-changelog.
2946         (func_usage): Update.
2947         (sed_extract_cache_prog): Renamed from ...
2948         (sed_extract_prog): ... this; revert to old extraction script.
2949         (func_get_description, func_get_status)
2950         (func_get_notice, func_get_applicability, func_get_filelist)
2951         (func_get_dependencies, func_get_autoconf_early_snippet)
2952         (func_get_autoconf_snippet, func_get_automake_snippet)
2953         (func_get_include_directive, func_get_link_directive)
2954         (func_get_license, func_get_maintainer): If $do_cache is false,
2955         use old, non-caching extraction scripts.
2956         Suggestion by Bruno Haible.
2957
2958 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2959
2960         gnulib-tool: cache module metainformation.
2961         * gnulib-tool (sed_extract_prog): Match newline before each
2962         header, and rewrite header to a shell variable suffix.
2963         (func_cache_var, func_cache_lookup_module): New functions,
2964         to turn a module name into a cache variable prefix, and to
2965         look up and cache module metainformation.
2966         (func_get_description, func_get_status)
2967         (func_get_notice, func_get_applicability, func_get_filelist)
2968         (func_get_dependencies, func_get_autoconf_early_snippet)
2969         (func_get_autoconf_snippet, func_get_automake_snippet)
2970         (func_get_include_directive, func_get_link_directive)
2971         (func_get_license, func_get_maintainer): Use
2972         func_cache_lookup_module.
2973
2974 2010-02-07  Bruno Haible  <bruno@clisp.org>
2975
2976         fnctl: Fix missing dependency.
2977         * modules/fcntl (Depends-on): Add getdtablesize.
2978         Reported by John W. Eaton <jwe@gnu.org>.
2979
2980 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2981
2982         Argp: fix recognition of short alias options.
2983
2984         * lib/argp-parse.c (convert_options): Fix improper use of
2985         `|' between character values.
2986         * tests/test-argp.c (group1_option): New alias option
2987         --read (-r).
2988         (group1_parser): Special handling for 'r'.
2989         (test15): New test case.
2990         (test_fun): Add test15.
2991         * tests/test-argp-2.sh: Update expected --help and --usage
2992         outputs.
2993
2994 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
2995
2996         * tests/test-argp.c: Fix indentation.
2997
2998 2010-02-04  Eric Blake  <ebb9@byu.net>
2999
3000         gettimeofday: expose type of second argument
3001         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
3002         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
3003         * tests/test-gettimeofday.c: Use it to silence warning.
3004         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
3005         the issue.
3006
3007 2010-02-03  Jim Meyering  <meyering@redhat.com>
3008
3009         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
3010         * lib/regcomp.c (TYPE_SIGNED): Define.
3011         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
3012
3013         regcomp.c: avoid a new -Wshadow warning
3014         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
3015
3016 2010-02-01  Jim Meyering  <meyering@redhat.com>
3017
3018         removing useless parentheses in cpp #define directives
3019         For motivation, see commit c0221df4, "define STREQ(a,b)
3020         consistently, removing useless parentheses"
3021         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
3022         * lib/mountlist.c (MNT_IGNORE): Likewise.
3023         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
3024
3025 2010-02-01  Eric Blake  <ebb9@byu.net>
3026
3027         sys_time: use link-warning
3028         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
3029         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
3030         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
3031         * modules/sys_time (Depends-on): Add warn-on-use.
3032         (Makefile.am): Always build replacement.
3033         (configure.ac): Update substitutions.
3034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
3035         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
3036         bother with SYS_TIME_H.
3037         * modules/gettimeofday (configure.ac): Declare indicator.
3038         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
3039         in use.
3040
3041         closein-tests: silence compiler warning
3042         * tests/test-closein.c (main): Ignore fread result.
3043         * modules/closein-tests (Depends-on): Add ignore-value.
3044
3045         tests: silence warning about system return
3046         * tests/test-areadlink-with-size.c (main): Ignore system result.
3047         * tests/test-areadlink.c (main): Likewise.
3048         * tests/test-areadlinkat-with-size.c (main): Likewise.
3049         * tests/test-areadlinkat.c (main): Likewise.
3050         * tests/test-canonicalize-lgpl.c (main): Likewise.
3051         * tests/test-canonicalize.c (main): Likewise.
3052         * tests/test-chown.c (main): Likewise.
3053         * tests/test-fchownat.c (main): Likewise.
3054         * tests/test-fdutimensat.c (main): Likewise.
3055         * tests/test-fstatat.c (main): Likewise.
3056         * tests/test-futimens.c (main): Likewise.
3057         * tests/test-lchown.c (main): Likewise.
3058         * tests/test-link.c (main): Likewise.
3059         * tests/test-linkat.c (main): Likewise.
3060         * tests/test-lstat.c (main): Likewise.
3061         * tests/test-mkdir.c (main): Likewise.
3062         * tests/test-mkdirat.c (main): Likewise.
3063         * tests/test-mkfifo.c (main): Likewise.
3064         * tests/test-mkfifoat.c (main): Likewise.
3065         * tests/test-mknod.c (main): Likewise.
3066         * tests/test-readlink.c (main): Likewise.
3067         * tests/test-remove.c (main): Likewise.
3068         * tests/test-rename.c (main): Likewise.
3069         * tests/test-renameat.c (main): Likewise.
3070         * tests/test-rmdir.c (main): Likewise.
3071         * tests/test-symlink.c (main): Likewise.
3072         * tests/test-symlinkat.c (main): Likewise.
3073         * tests/test-unlink.c (main): Likewise.
3074         * tests/test-unlinkat.c (main): Likewise.
3075         * tests/test-utimens.c (main): Likewise.
3076         * tests/test-utimensat.c (main): Likewise.
3077         * modules/areadlink-tests (Depends-on): Add ignore-value.
3078         * modules/areadlink-with-size-tests (Depends-on): Likewise.
3079         * modules/areadlinkat-tests (Depends-on): Likewise.
3080         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
3081         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3082         * modules/canonicalize-tests (Depends-on): Likewise.
3083         * modules/chown-tests (Depends-on): Likewise.
3084         * modules/fdutimensat-tests (Depends-on): Likewise.
3085         * modules/futimens-tests (Depends-on): Likewise.
3086         * modules/lchown-tests (Depends-on): Likewise.
3087         * modules/link-tests (Depends-on): Likewise.
3088         * modules/linkat-tests (Depends-on): Likewise.
3089         * modules/lstat-tests (Depends-on): Likewise.
3090         * modules/mkdir-tests (Depends-on): Likewise.
3091         * modules/mkfifo-tests (Depends-on): Likewise.
3092         * modules/mkfifoat-tests (Depends-on): Likewise.
3093         * modules/mknod-tests (Depends-on): Likewise.
3094         * modules/openat-tests (Depends-on): Likewise.
3095         * modules/readlink-tests (Depends-on): Likewise.
3096         * modules/remove-tests (Depends-on): Likewise.
3097         * modules/rename-tests (Depends-on): Likewise.
3098         * modules/renameat-tests (Depends-on): Likewise.
3099         * modules/rmdir-tests (Depends-on): Likewise.
3100         * modules/symlink-tests (Depends-on): Likewise.
3101         * modules/symlinkat-tests (Depends-on): Likewise.
3102         * modules/unlink-tests (Depends-on): Likewise.
3103         * modules/utimens-tests (Depends-on): Likewise.
3104         * modules/utimensat-tests (Depends-on): Likewise.
3105
3106 2010-01-31  Bruno Haible  <bruno@clisp.org>
3107
3108         Perform the same test for many <math.h> functions.
3109         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
3110         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
3111         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
3112         of gl_MATHFUNC.
3113         * modules/acos (configure.ac): Likewise.
3114         * modules/asin (configure.ac): Likewise.
3115         * modules/atan (configure.ac): Likewise.
3116         * modules/atan2 (configure.ac): Likewise.
3117         * modules/cbrt (configure.ac): Likewise.
3118         * modules/copysign (configure.ac): Likewise.
3119         * modules/cos (configure.ac): Likewise.
3120         * modules/cosh (configure.ac): Likewise.
3121         * modules/erf (configure.ac): Likewise.
3122         * modules/erfc (configure.ac): Likewise.
3123         * modules/exp (configure.ac): Likewise.
3124         * modules/fmod (configure.ac): Likewise.
3125         * modules/hypot (configure.ac): Likewise.
3126         * modules/j0 (configure.ac): Likewise.
3127         * modules/j1 (configure.ac): Likewise.
3128         * modules/jn (configure.ac): Likewise.
3129         * modules/lgamma (configure.ac): Likewise.
3130         * modules/log (configure.ac): Likewise.
3131         * modules/log10 (configure.ac): Likewise.
3132         * modules/log1p (configure.ac): Likewise.
3133         * modules/pow (configure.ac): Likewise.
3134         * modules/remainder (configure.ac): Likewise.
3135         * modules/sin (configure.ac): Likewise.
3136         * modules/sinh (configure.ac): Likewise.
3137         * modules/tan (configure.ac): Likewise.
3138         * modules/tanh (configure.ac): Likewise.
3139         * modules/y0 (configure.ac): Likewise.
3140         * modules/y1 (configure.ac): Likewise.
3141         * modules/yn (configure.ac): Likewise.
3142         Suggested by Paolo Bonzini.
3143
3144 2010-01-31  Bruno Haible  <bruno@clisp.org>
3145
3146         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
3147
3148 2010-01-31  Bruno Haible  <bruno@clisp.org>
3149
3150         Work around getdelim() bug on FreeBSD 8.0.
3151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
3152         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
3153         not work.
3154         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
3155         is 1.
3156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
3157         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
3158         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
3159         a non-zero size.
3160         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
3161
3162 2010-01-31  Bruno Haible  <bruno@clisp.org>
3163
3164         Work around getline() bug on FreeBSD 8.0.
3165         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
3166         and a non-zero size.
3167         * tests/test-getline.c (main): Likewise.
3168         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
3169         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
3170
3171 2010-01-28  Eric Blake  <ebb9@byu.net>
3172
3173         regex: fix build failure
3174         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
3175         platforms.
3176
3177 2010-01-28  Jim Meyering  <meyering@redhat.com>
3178
3179         regex: do not ignore memory allocation failure
3180         * lib/regex_internal.c (create_cd_newstate): Detect
3181         re_node_set_init_copy failure.   Extracted from glibc commit
3182         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3183
3184         regex: sync more white-space changes from libc
3185         * lib/regex_internal.c: White-space only changes.
3186         * lib/regexec.c: Likewise.
3187
3188         regex: add many uses of __attribute_warn_unused_result__
3189         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
3190         * lib/regexec.c: Likewise.
3191         Extracted from a messy glibc commit.
3192
3193         regcomp.c: spelling and merge-artifact from glibc
3194         * lib/regcomp.c: Merge remainder of glibc's
3195         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3196
3197         regcomp.c: sync white-space changes from glibc
3198         * lib/regcomp.c: Merge to accommodate white space
3199         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
3200
3201         regcomp.c: do not ignore internal return values
3202         * lib/regcomp.c: Do not ignore internal return values.
3203         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
3204         but without its white-space changes and spelling fixes.
3205
3206         regex_internal.h: define __attribute_warn_unused_result__
3207         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
3208
3209         maint: add a syntax-check rule to check for vulnerable Makefile.in
3210         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
3211
3212 2010-01-27  Jim Meyering  <meyering@redhat.com>
3213
3214         ncftpput-ftp: clean up spaces
3215         * build-aux/ncftpput-ftp: Make Copyright line consistent.
3216         Remove trailing blanks.
3217
3218 2010-01-27  Simon Josefsson  <simon@josefsson.org>
3219
3220         * build-aux/git-version-gen: Fix copyright statement.
3221         * build-aux/gnupload: Likewise.
3222         * tests/test-arcfour.c: Likewise.
3223         * tests/test-arctwo.c: Likewise.
3224         * tests/test-count-one-bits.c: Likewise.
3225         * tests/test-crc.c: Likewise.
3226         * tests/test-des.c: Likewise.
3227         * tests/test-gc-arcfour.c: Likewise.
3228         * tests/test-gc-arctwo.c: Likewise.
3229         * tests/test-gc-des.c: Likewise.
3230         * tests/test-gc-hmac-md5.c: Likewise.
3231         * tests/test-gc-hmac-sha1.c: Likewise.
3232         * tests/test-gc-md2.c: Likewise.
3233         * tests/test-gc-md4.c: Likewise.
3234         * tests/test-gc-md5.c: Likewise.
3235         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3236         * tests/test-gc-rijndael.c: Likewise.
3237         * tests/test-gc-sha1.c: Likewise.
3238         * tests/test-gc.c: Likewise.
3239         * tests/test-gethostname.c: Likewise.
3240         * tests/test-gettimeofday.c: Likewise.
3241         * tests/test-hash.c: Likewise.
3242         * tests/test-hmac-md5.c: Likewise.
3243         * tests/test-hmac-sha1.c: Likewise.
3244         * tests/test-md2.c: Likewise.
3245         * tests/test-md4.c: Likewise.
3246         * tests/test-md5.c: Likewise.
3247         * tests/test-memchr.c: Likewise.
3248         * tests/test-memchr2.c: Likewise.
3249         * tests/test-memcmp.c: Likewise.
3250         * tests/test-memmem.c: Likewise.
3251         * tests/test-memrchr.c: Likewise.
3252         * tests/test-rawmemchr.c: Likewise.
3253         * tests/test-read-file.c: Likewise.
3254         * tests/test-rijndael.c: Likewise.
3255         * tests/test-sockets.c: Likewise.
3256         * tests/test-strchrnul.c: Likewise.
3257         * tests/test-strstr.c: Likewise.
3258         * tests/test-strtod.c: Likewise.
3259         * build-aux/ncftpput-ftp: Likewise.
3260
3261 2010-01-26  Eric Blake  <ebb9@byu.net>
3262
3263         ignore-value: update recommended header name
3264         * modules/ignore-value (Include): Only use <> for headers that
3265         exist in glibc.
3266
3267 2010-01-26  Jim Meyering  <meyering@redhat.com>
3268
3269         test-userspec.c: avoid compiler warnings
3270         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
3271         and "initialization discards qualifiers..." warnings.
3272         Put the first "uid" in its own scope, and make char* members "const".
3273
3274 2010-01-25  Bruno Haible  <bruno@clisp.org>
3275
3276         gnulib-tool: Make warning diagnostics consistent.
3277         * gnulib-tool (func_warning): New function.
3278         Use it everywhere where gnulib-tool produces output to stderr and it is
3279         not a fatal error.
3280
3281 2010-01-25  Bruno Haible  <bruno@clisp.org>
3282
3283         Fix test dependencies.
3284         * modules/xstrtol-tests (Depends-on): Add inttypes.
3285         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
3286
3287 2010-01-25 Pádraig Brady <P@draigBrady.com>
3288
3289         syntax-check: detect incorrect boolean macro values in config.h
3290         * modules/maintainer-makefile (configure.ac): Parameterize the location
3291         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
3292         The logic is from Eric Blake and the location indicated by Jim Meyering.
3293         Note the more natural CONFIG_HEADER name is prohibited by automake
3294         for backwards compatibility reasons.
3295         * top/maint.mk (sc_Wundef_boolean): New rule.
3296
3297 2010-01-25  Jim Meyering  <meyering@redhat.com>
3298
3299         bootstrap: detect MacOS 10.6's shasum, too
3300         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
3301         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
3302
3303 2010-01-23  Jim Meyering  <meyering@redhat.com>
3304
3305         xstrtoll: new module
3306         * modules/xstrtoll: New file.
3307         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
3308         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
3309         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
3310         ./configure fails if you use this module and lack "long long".
3311         * modules/xstrtoll-tests: New module.
3312         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
3313         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
3314         new init.sh-based test framework.
3315
3316 2010-01-24  Bruno Haible  <bruno@clisp.org>
3317
3318         Tests for module 'yn'.
3319         * modules/yn-tests: New file.
3320         * tests/test-yn.c: New file.
3321
3322         Tests for module 'y1'.
3323         * modules/y1-tests: New file.
3324         * tests/test-y1.c: New file.
3325
3326         Tests for module 'y0'.
3327         * modules/y0-tests: New file.
3328         * tests/test-y0.c: New file.
3329
3330         Tests for module 'tanh'.
3331         * modules/tanh-tests: New file.
3332         * tests/test-tanh.c: New file.
3333
3334         Tests for module 'tan'.
3335         * modules/tan-tests: New file.
3336         * tests/test-tan.c: New file.
3337
3338         Tests for module 'sqrt'.
3339         * modules/sqrt-tests: New file.
3340         * tests/test-sqrt.c: New file.
3341
3342         Tests for module 'sinh'.
3343         * modules/sinh-tests: New file.
3344         * tests/test-sinh.c: New file.
3345
3346         Tests for module 'sin'.
3347         * modules/sin-tests: New file.
3348         * tests/test-sin.c: New file.
3349
3350         Tests for module 'rint'.
3351         * modules/rint-tests: New file.
3352         * tests/test-rint.c: New file.
3353
3354         Tests for module 'remainder'.
3355         * modules/remainder-tests: New file.
3356         * tests/test-remainder.c: New file.
3357
3358         Tests for module 'pow'.
3359         * modules/pow-tests: New file.
3360         * tests/test-pow.c: New file.
3361
3362         Tests for module 'nextafter'.
3363         * modules/nextafter-tests: New file.
3364         * tests/test-nextafter.c: New file.
3365
3366         Tests for module 'modf'.
3367         * modules/modf-tests: New file.
3368         * tests/test-modf.c: New file.
3369
3370         Tests for module 'logb'.
3371         * modules/logb-tests: New file.
3372         * tests/test-logb.c: New file.
3373
3374         Tests for module 'log1p'.
3375         * modules/log1p-tests: New file.
3376         * tests/test-log1p.c: New file.
3377
3378         Tests for module 'log10'.
3379         * modules/log10-tests: New file.
3380         * tests/test-log10.c: New file.
3381
3382         Tests for module 'log'.
3383         * modules/log-tests: New file.
3384         * tests/test-log.c: New file.
3385
3386         Tests for module 'lgamma'.
3387         * modules/lgamma-tests: New file.
3388         * tests/test-lgamma.c: New file.
3389
3390         Tests for module 'ldexp'.
3391         * modules/ldexp-tests: New file.
3392         * tests/test-ldexp.c: New file.
3393
3394         Tests for module 'jn'.
3395         * modules/jn-tests: New file.
3396         * tests/test-jn.c: New file.
3397
3398         Tests for module 'j1'.
3399         * modules/j1-tests: New file.
3400         * tests/test-j1.c: New file.
3401
3402         Tests for module 'j0'.
3403         * modules/j0-tests: New file.
3404         * tests/test-j0.c: New file.
3405
3406         Tests for module 'hypot'.
3407         * modules/hypot-tests: New file.
3408         * tests/test-hypot.c: New file.
3409
3410         Tests for module 'fmod'.
3411         * modules/fmod-tests: New file.
3412         * tests/test-fmod.c: New file.
3413
3414         Tests for module 'fabs'.
3415         * modules/fabs-tests: New file.
3416         * tests/test-fabs.c: New file.
3417
3418         Tests for module 'exp'.
3419         * modules/exp-tests: New file.
3420         * tests/test-exp.c: New file.
3421
3422         Tests for module 'erfc'.
3423         * modules/erfc-tests: New file.
3424         * tests/test-erfc.c: New file.
3425
3426         Tests for module 'erf'.
3427         * modules/erf-tests: New file.
3428         * tests/test-erf.c: New file.
3429
3430         Tests for module 'cosh'.
3431         * modules/cosh-tests: New file.
3432         * tests/test-cosh.c: New file.
3433
3434         Tests for module 'cos'.
3435         * modules/cos-tests: New file.
3436         * tests/test-cos.c: New file.
3437
3438         Tests for module 'copysign'.
3439         * modules/copysign-tests: New file.
3440         * tests/test-copysign.c: New file.
3441
3442         Tests for module 'cbrt'.
3443         * modules/cbrt-tests: New file.
3444         * tests/test-cbrt.c: New file.
3445
3446         Tests for module 'atan2'.
3447         * modules/atan2-tests: New file.
3448         * tests/test-atan2.c: New file.
3449
3450         Tests for module 'atan'.
3451         * modules/atan-tests: New file.
3452         * tests/test-atan.c: New file.
3453
3454         Tests for module 'asin'.
3455         * modules/asin-tests: New file.
3456         * tests/test-asin.c: New file.
3457
3458         Tests for module 'acos'.
3459         * modules/acos-tests: New file.
3460         * tests/test-acos.c: New file.
3461
3462 2010-01-24  Bruno Haible  <bruno@clisp.org>
3463
3464         Fix tests for common <math.h> functions.
3465         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
3466         code snippet that references the function pointer, rather than merely
3467         calling the function. Substitute the FUNC_LIBM variable.
3468         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
3469         * modules/acos (configure.ac): Likewise.
3470         * modules/asin (configure.ac): Likewise.
3471         * modules/atan (configure.ac): Likewise.
3472         * modules/atan2 (configure.ac): Likewise.
3473         * modules/cbrt (configure.ac): Likewise.
3474         * modules/copysign (configure.ac): Likewise.
3475         * modules/cos (configure.ac): Likewise.
3476         * modules/cosh (configure.ac): Likewise.
3477         * modules/erf (configure.ac): Likewise.
3478         * modules/erfc (configure.ac): Likewise.
3479         * modules/exp (configure.ac): Likewise.
3480         * modules/fabs (configure.ac): Likewise.
3481         * modules/fmod (configure.ac): Likewise.
3482         * modules/hypot (configure.ac): Likewise.
3483         * modules/j0 (configure.ac): Likewise.
3484         * modules/j1 (configure.ac): Likewise.
3485         * modules/jn (configure.ac): Likewise.
3486         * modules/ldexp (configure.ac): Likewise.
3487         * modules/lgamma (configure.ac): Likewise.
3488         * modules/log (configure.ac): Likewise.
3489         * modules/log10 (configure.ac): Likewise.
3490         * modules/log1p (configure.ac): Likewise.
3491         * modules/logb (configure.ac): Likewise.
3492         * modules/modf (configure.ac): Likewise.
3493         * modules/nextafter (configure.ac): Likewise.
3494         * modules/pow (configure.ac): Likewise.
3495         * modules/remainder (configure.ac): Likewise.
3496         * modules/rint (configure.ac): Likewise.
3497         * modules/sin (configure.ac): Likewise.
3498         * modules/sinh (configure.ac): Likewise.
3499         * modules/tan (configure.ac): Likewise.
3500         * modules/tanh (configure.ac): Likewise.
3501         * modules/y0 (configure.ac): Likewise.
3502         * modules/y1 (configure.ac): Likewise.
3503         * modules/yn (configure.ac): Likewise.
3504
3505 2010-01-24  Bruno Haible  <bruno@clisp.org>
3506
3507         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
3508         * tests/test-acosl.c (x): New variable.
3509         (main): Store argument in x and fetch it from x.
3510         * tests/test-asinl.c (x): New variable.
3511         (main): Store argument in x and fetch it from x.
3512         * tests/test-atanl.c (x): New variable.
3513         (main): Store argument in x and fetch it from x.
3514         * tests/test-cosl.c (x): New variable.
3515         (main): Store argument in x and fetch it from x.
3516         * tests/test-expl.c (x): New variable.
3517         (main): Store argument in x and fetch it from x.
3518         * tests/test-logl.c (x): New variable.
3519         (main): Store argument in x and fetch it from x.
3520         * tests/test-sinl.c (x): New variable.
3521         (main): Store argument in x and fetch it from x.
3522         * tests/test-sqrtl.c (x): New variable.
3523         (main): Store argument in x and fetch it from x.
3524         * tests/test-tanl.c (x): New variable.
3525         (main): Store argument in x and fetch it from x.
3526
3527 2010-01-24  Bruno Haible  <bruno@clisp.org>
3528
3529         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
3530         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
3531         assignments to the initial TESTS_ENVIRONMENT.
3532         * doc/gnulib.texi (Unit test modules): Document it.
3533         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
3534         TESTS_ENVIRONMENT.
3535         * modules/btowc-tests (Makefile.am): Likewise.
3536         * modules/c-stack-tests (Makefile.am): Likewise.
3537         * modules/c-strcase-tests (Makefile.am): Likewise.
3538         * modules/copy-file-tests (Makefile.am): Likewise.
3539         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
3540         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
3541         * modules/mbrtowc-tests (Makefile.am): Likewise.
3542         * modules/mbscasecmp-tests (Makefile.am): Likewise.
3543         * modules/mbscasestr-tests (Makefile.am): Likewise.
3544         * modules/mbschr-tests (Makefile.am): Likewise.
3545         * modules/mbscspn-tests (Makefile.am): Likewise.
3546         * modules/mbsinit-tests (Makefile.am): Likewise.
3547         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
3548         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
3549         * modules/mbspbrk-tests (Makefile.am): Likewise.
3550         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
3551         * modules/mbsrchr-tests (Makefile.am): Likewise.
3552         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
3553         * modules/mbsspn-tests (Makefile.am): Likewise.
3554         * modules/mbsstr-tests (Makefile.am): Likewise.
3555         * modules/nl_langinfo-tests (Makefile.am): Likewise.
3556         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
3557         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
3558         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
3559         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
3560         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
3561         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
3562         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
3563         * modules/wcrtomb-tests (Makefile.am): Likewise.
3564         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
3565         * modules/wcsrtombs-tests (Makefile.am): Likewise.
3566         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
3567         assignments from TESTS_ENVIRONMENT.
3568         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
3569         augmentation.
3570         * modules/argp-version-etc-tests (Makefile.am): Likewise.
3571         * modules/atexit-tests (Makefile.am): Likewise.
3572         * modules/binary-io-tests (Makefile.am): Likewise.
3573         * modules/closein-tests (Makefile.am): Likewise.
3574         * modules/dprintf-posix-tests (Makefile.am): Likewise.
3575         * modules/exclude-tests (Makefile.am): Likewise.
3576         * modules/fflush-tests (Makefile.am): Likewise.
3577         * modules/fpending-tests (Makefile.am): Likewise.
3578         * modules/fprintf-posix-tests (Makefile.am): Likewise.
3579         * modules/freadahead-tests (Makefile.am): Likewise.
3580         * modules/freadptr-tests (Makefile.am): Likewise.
3581         * modules/freadseek-tests (Makefile.am): Likewise.
3582         * modules/fseek-tests (Makefile.am): Likewise.
3583         * modules/fseeko-tests (Makefile.am): Likewise.
3584         * modules/ftell-tests (Makefile.am): Likewise.
3585         * modules/ftello-tests (Makefile.am): Likewise.
3586         * modules/idpriv-drop-tests (Makefile.am): Likewise.
3587         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
3588         * modules/lseek-tests (Makefile.am): Likewise.
3589         * modules/parse-duration-tests (Makefile.am): Likewise.
3590         * modules/perror-tests (Makefile.am): Likewise.
3591         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
3592         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
3593         * modules/pipe-tests (Makefile.am): Likewise.
3594         * modules/pread-tests (Makefile.am): Likewise.
3595         * modules/printf-posix-tests (Makefile.am): Likewise.
3596         * modules/select-tests (Makefile.am): Likewise.
3597         * modules/sigpipe-tests (Makefile.am): Likewise.
3598         * modules/tsearch-tests (Makefile.am): Likewise.
3599         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
3600         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
3601         * modules/uniname/uniname-tests (Makefile.am): Likewise.
3602         * modules/uniwidth/width-tests (Makefile.am): Likewise.
3603         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
3604         * modules/version-etc-tests (Makefile.am): Likewise.
3605         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
3606         * modules/vprintf-posix-tests (Makefile.am): Likewise.
3607         * modules/xalloc-die-tests (Makefile.am): Likewise.
3608         * modules/xprintf-posix-tests (Makefile.am): Likewise.
3609         * modules/xstrtoimax-tests (Makefile.am): Likewise.
3610         * modules/xstrtol-tests (Makefile.am): Likewise.
3611         * modules/xstrtoumax-tests (Makefile.am): Likewise.
3612         * modules/yesno-tests (Makefile.am): Likewise.
3613         Suggested by Jim Meyering.
3614
3615 2010-01-24  Bruno Haible  <bruno@clisp.org>
3616
3617         More documentation.
3618         * doc/gnulib.texi (Writing modules): New chapter.
3619         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
3620         the new chapter.
3621
3622 2010-01-24  Jim Meyering  <meyering@redhat.com>
3623
3624         maint.mk: do not prepend "./" after filtering
3625         * top/maint.mk (_prepend_srcdir_prefix): New variable
3626         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
3627         "./" when $(srcdir) is ".".
3628
3629         define STREQ(a,b) consistently, removing useless parentheses
3630         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
3631         since the only risk is that "a" or "b" contains an unparenthesized
3632         comma, but if either did that, STREQ would have 3 or more arguments.
3633         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
3634         * lib/fts.c (STREQ): Remove unnecessary parentheses.
3635         * lib/hash-triple.c (STREQ): Likewise.
3636         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
3637         * lib/getugroups.c (STREQ): Likewise.
3638
3639 2010-01-23  Jim Meyering  <meyering@redhat.com>
3640
3641         maint.mk: fix syntax-check in a non-srcdir build directory
3642         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
3643         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
3644
3645 2010-01-22  Jim Meyering  <meyering@redhat.com>
3646
3647         userspec: add unit tests
3648         * tests/test-userspec.c: New file.
3649         * modules/userspec-tests: Likewise.
3650
3651 2010-01-21  Jim Meyering  <meyering@redhat.com>
3652
3653         maint.mk: handle source file names containing "." robustly
3654         * top/maint.mk (_dot_escaped_srcdir): Define.
3655         (VC_LIST): Use it in LHS of sed substitution.
3656
3657 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
3658
3659         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
3660         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
3661         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
3662         from a non-srcdir build.
3663
3664 2010-01-20  Eric Blake  <ebb9@byu.net>
3665
3666         warn-on-use: use instead of link-warning
3667         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
3668         * modules/unistd (Depends-on, Makefile.am): Likewise.
3669         * modules/arpa_inet (Depends-on): Replace link-warning with
3670         warn-on-use.
3671         (Makefile.am): Update rules accordingly.
3672         * modules/ctype (Depends-on, Makefile.am): Likewise.
3673         * modules/dirent (Depends-on, Makefile.am): Likewise.
3674         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
3675         * modules/inttypes (Depends-on, Makefile.am): Likewise.
3676         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3677         * modules/locale (Depends-on, Makefile.am): Likewise.
3678         * modules/math (Depends-on, Makefile.am): Likewise.
3679         * modules/search (Depends-on, Makefile.am): Likewise.
3680         * modules/signal (Depends-on, Makefile.am): Likewise.
3681         * modules/spawn (Depends-on, Makefile.am): Likewise.
3682         * modules/stdlib (Depends-on, Makefile.am): Likewise.
3683         * modules/string (Depends-on, Makefile.am): Likewise.
3684         * modules/strings (Depends-on, Makefile.am): Likewise.
3685         * modules/sys_file (Depends-on, Makefile.am): Likewise.
3686         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
3687         * modules/sys_select (Depends-on, Makefile.am): Likewise.
3688         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
3689         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
3690         * modules/sys_times (Depends-on, Makefile.am): Likewise.
3691         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3692         * modules/wchar (Depends-on, Makefile.am): Likewise.
3693         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
3694         should be poisoned.
3695         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
3696         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
3697         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
3698         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3699         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3700         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3701         * m4/math_h.m4 (gl_MATH_H): Likewise.
3702         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
3703         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
3704         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
3705         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
3706         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
3707         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
3708         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3709         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
3710         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3711         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3712         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
3713         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
3714         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3715         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3716         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3717         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3718         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
3719         GL_LINK_WARNING.
3720         * lib/ctype.in.h: Likewise.
3721         * lib/dirent.in.h: Likewise.
3722         * lib/fcntl.in.h: Likewise.
3723         * lib/inttypes.in.h: Likewise.
3724         * lib/langinfo.in.h: Likewise.
3725         * lib/locale.in.h: Likewise.
3726         * lib/math.in.h: Likewise.
3727         * lib/search.in.h: Likewise.
3728         * lib/signal.in.h: Likewise.
3729         * lib/spawn.in.h: Likewise.
3730         * lib/stdio.in.h: Likewise.
3731         * lib/stdlib.in.h: Likewise.
3732         * lib/string.in.h: Likewise.
3733         * lib/strings.in.h: Likewise.
3734         * lib/sys_file.in.h: Likewise.
3735         * lib/sys_ioctl.in.h: Likewise.
3736         * lib/sys_select.in.h: Likewise.
3737         * lib/sys_socket.in.h: Likewise.
3738         * lib/sys_stat.in.h: Likewise.
3739         * lib/sys_times.in.h: Likewise.
3740         * lib/sys_utsname.in.h: Likewise.
3741         * lib/unistd.in.h: Likewise.
3742         * lib/wchar.in.h: Likewise.
3743
3744 2010-01-20  Bruno Haible  <bruno@clisp.org>
3745
3746         Avoid duplicate -lm.
3747         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
3748         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
3749         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
3750         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
3751         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
3752         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
3753         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
3754         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
3755         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
3756         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
3757         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
3758         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3759         Reported by Paolo Bonzini.
3760
3761 2010-01-19  Bruno Haible  <bruno@clisp.org>
3762
3763         langinfo, nl_langinfo: Relicense under LGPLv2+.
3764         * modules/langinfo (License): Change to LGPLv2+.
3765         * modules/nl_langinfo (License): Likewise.
3766         Patch by David Lutterkort <lutter@redhat.com>.
3767
3768 2010-01-19  Bruno Haible  <bruno@clisp.org>
3769
3770         Avoid compilation error with cc on OSF/1 5.1.
3771         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
3772         statement, not before.
3773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3774
3775 2010-01-18  Bruno Haible  <bruno@clisp.org>
3776
3777         Avoid a link error due to the __printf__ symbol.
3778         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
3779         and 2.6.x.
3780         (__format__, __printf__): Remove definitions.
3781         * lib/argp-fmtstream.h: Likewise.
3782         * lib/argp.h: Likewise.
3783         * lib/error.h: Likewise.
3784         * lib/vasnprintf.h: Likewise.
3785         * lib/xprintf.h: Likewise.
3786         * lib/xvasprintf.h: Likewise.
3787         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3788
3789 2010-01-18  Bruno Haible  <bruno@clisp.org>
3790
3791         Tests for module 'tanl'.
3792         * modules/tanl-tests: New file.
3793         * tests/test-tanl.c: New file.
3794
3795         Tests for module 'sqrtl'.
3796         * modules/sqrtl-tests: New file.
3797         * tests/test-sqrtl.c: New file.
3798
3799         Tests for module 'sinl'.
3800         * modules/sinl-tests: New file.
3801         * tests/test-sinl.c: New file.
3802
3803         Tests for module 'logl'.
3804         * modules/logl-tests: New file.
3805         * tests/test-logl.c: New file.
3806
3807         Tests for module 'expl'.
3808         * modules/expl-tests: New file.
3809         * tests/test-expl.c: New file.
3810
3811         Tests for module 'cosl'.
3812         * modules/cosl-tests: New file.
3813         * tests/test-cosl.c: New file.
3814
3815         Tests for module 'atanl'.
3816         * modules/atanl-tests: New file.
3817         * tests/test-atanl.c: New file.
3818
3819         Tests for module 'asinl'.
3820         * modules/asinl-tests: New file.
3821         * tests/test-asinl.c: New file.
3822
3823         Tests for module 'acosl'.
3824         * modules/acosl-tests: New file.
3825         * tests/test-acosl.c: New file.
3826
3827         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3828         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3829         tanl): Use the standard gnulib idiom.
3830         * lib/cosl.c: Don't include trigl.c and sincosl.c.
3831         * lib/sinl.c: Likewise.
3832         * lib/tanl.c: Don't include trigl.c.
3833         (kernel_tanl): Make static.
3834         * lib/sincosl.c: Include trigl.h first.
3835         * lib/trigl.c: Likewise.
3836         * m4/acosl.m4: New file.
3837         * m4/asinl.m4: New file.
3838         * m4/atanl.m4: New file.
3839         * m4/cosl.m4: New file.
3840         * m4/expl.m4: New file.
3841         * m4/logl.m4: New file.
3842         * m4/sinl.m4: New file.
3843         * m4/sqrtl.m4: New file.
3844         * m4/tanl.m4: New file.
3845         * m4/mathl.m4: Remove file.
3846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
3847         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
3848         Don't initialize GNULIB_MATHL.
3849         * modules/acosl: New file.
3850         * modules/asinl: New file.
3851         * modules/atanl: New file.
3852         * modules/cosl: New file.
3853         * modules/expl: New file.
3854         * modules/logl: New file.
3855         * modules/sinl: New file.
3856         * modules/sqrtl: New file.
3857         * modules/tanl: New file.
3858         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
3859         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
3860         substitute GNULIB_MATHL.
3861         * modules/mathl: Rewritten.
3862         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
3863         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
3864         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
3865         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
3866         * doc/posix-functions/expl.texi: Mention the 'expl' module.
3867         * doc/posix-functions/logl.texi: Mention the 'logl' module.
3868         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
3869         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
3870         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
3871
3872 2010-01-18  Bruno Haible  <bruno@clisp.org>
3873
3874         sqrt: Make gl_FUNC_SQRT requirable.
3875         * m4/sqrt.m4: New file.
3876         * modules/sqrt (Files): Add it.
3877         (configure.ac): Invoke gl_FUNC_SQRT.
3878
3879 2010-01-18  Bruno Haible  <bruno@clisp.org>
3880
3881         New modules for common <math.h> functions.
3882         * m4/mathfunc.m4: New file.
3883         * modules/acos: New file.
3884         * modules/asin: New file.
3885         * modules/atan: New file.
3886         * modules/atan2: New file.
3887         * modules/cbrt: New file.
3888         * modules/copysign: New file.
3889         * modules/cos: New file.
3890         * modules/cosh: New file.
3891         * modules/erf: New file.
3892         * modules/erfc: New file.
3893         * modules/exp: New file.
3894         * modules/fabs: New file.
3895         * modules/fmod: New file.
3896         * modules/hypot: New file.
3897         * modules/j0: New file.
3898         * modules/j1: New file.
3899         * modules/jn: New file.
3900         * modules/ldexp: New file.
3901         * modules/lgamma: New file.
3902         * modules/log: New file.
3903         * modules/log10: New file.
3904         * modules/log1p: New file.
3905         * modules/logb: New file.
3906         * modules/modf: New file.
3907         * modules/nextafter: New file.
3908         * modules/pow: New file.
3909         * modules/remainder: New file.
3910         * modules/rint: New file.
3911         * modules/sin: New file.
3912         * modules/sinh: New file.
3913         * modules/sqrt: New file.
3914         * modules/tan: New file.
3915         * modules/tanh: New file.
3916         * modules/y0: New file.
3917         * modules/y1: New file.
3918         * modules/yn: New file.
3919         * doc/posix-functions/acos.texi: Mention the 'acos' module.
3920         * doc/posix-functions/asin.texi: Mention the 'asin' module.
3921         * doc/posix-functions/atan.texi: Mention the 'atan' module.
3922         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
3923         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
3924         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
3925         * doc/posix-functions/cos.texi: Mention the 'cos' module.
3926         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
3927         * doc/posix-functions/erf.texi: Mention the 'erf' module.
3928         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
3929         * doc/posix-functions/exp.texi: Mention the 'exp' module.
3930         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
3931         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
3932         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
3933         * doc/posix-functions/j0.texi: Mention the 'j0' module.
3934         * doc/posix-functions/j1.texi: Mention the 'j1' module.
3935         * doc/posix-functions/jn.texi: Mention the 'jn' module.
3936         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
3937         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
3938         * doc/posix-functions/log.texi: Mention the 'log' module.
3939         * doc/posix-functions/log10.texi: Mention the 'log10' module.
3940         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
3941         * doc/posix-functions/logb.texi: Mention the 'logb' module.
3942         * doc/posix-functions/modf.texi: Mention the 'modf' module.
3943         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
3944         * doc/posix-functions/pow.texi: Mention the 'pow' module.
3945         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
3946         * doc/posix-functions/rint.texi: Mention the 'rint' module.
3947         * doc/posix-functions/sin.texi: Mention the 'sin' module.
3948         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
3949         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
3950         * doc/posix-functions/tan.texi: Mention the 'tan' module.
3951         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
3952         * doc/posix-functions/y0.texi: Mention the 'y0' module.
3953         * doc/posix-functions/y1.texi: Mention the 'y1' module.
3954         * doc/posix-functions/yn.texi: Mention the 'yn' module.
3955
3956 2010-01-18  Jim Meyering  <meyering@redhat.com>
3957
3958         ignore-value: relax license to LGPLv2+
3959         * modules/ignore-value (License): Relax to LGPLv2+.
3960
3961         getdate: don't leak when TZ contains two or more '"'s
3962         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
3963         double quote in TZ after the first one.
3964
3965         readtokens: do not leak internal token_lengths buffer
3966         * lib/readtokens.c (readtokens): Free the local, lengths,
3967         when the supplied "token_lengths" parameter is NULL.
3968
3969 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3970
3971         Fix a couple of missing LIBTHREAD link failures on AIX.
3972         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
3973         $(LIBTHREAD).
3974         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
3975
3976         Link test-poll against INET_PTON_LIB.
3977         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
3978         for inet_pton on Solaris 10.
3979
3980 2010-01-17  Bruno Haible  <bruno@clisp.org>
3981
3982         unistdio/*-sprintf: Fix typo in module description.
3983         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
3984         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
3985         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
3986         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
3987         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
3988         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
3989         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
3990         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3991
3992 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3993
3994         gnulib-tool: fix filelist for AIX, HP-UX ksh.
3995         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
3996         variables in shell case patterns, for AIX and HP-UX ksh.
3997
3998         Split large sed scripts, for HP-UX sed.
3999         * modules/stdio: Split sed scripts around 50 sed commands,
4000         to avoid HP-UX limit of 99 commands, in the near future.
4001         * modules/string: Likewise.
4002         * modules/unistd: Likewise.
4003
4004         gnulib-tool: avoid writing in the current directory.
4005         * gnulib-tool (func_emit_lib_Makefile_am)
4006         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
4007         not in the current directory, so concurrent gnulib-tool
4008         instances do not interfere.
4009
4010 2010-01-16  Jim Meyering  <meyering@redhat.com>
4011
4012         doc: update users.txt
4013         * users.txt: Add grep.
4014         (diffutils, gzip): Update URLs.
4015
4016 2010-01-12  Bruno Haible  <bruno@clisp.org>
4017
4018         posix_spawn: Avoid test failure on Cygwin.
4019         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
4020         characters.
4021         Reported by Simon Josefsson.
4022
4023 2010-01-12  Bruno Haible  <bruno@clisp.org>
4024
4025         * tests/test-cond.c (main): When skipping the test, show the reason.
4026
4027 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4028
4029         * lib/striconv.c (str_cd_iconv): Avoid if before free.
4030
4031 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4032
4033         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
4034         VC_LIST_ALWAYS_EXCLUDE_REGEX.
4035
4036 2010-01-12  Eric Blake  <ebb9@byu.net>
4037
4038         build: guarantee AS_VAR_IF
4039         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
4040         (gl_AS_VAR_IF): Move...
4041         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
4042         Reported by Simon Josefsson.
4043
4044 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4045
4046         * lib/stdio.in.h: Fix typo.
4047
4048 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4049
4050         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
4051         libgpg-error.
4052
4053 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4054
4055         * tests/test-xalloc-die.sh: Use $EXEEXT.
4056
4057 2010-01-12  Simon Josefsson  <simon@josefsson.org>
4058             Bruno Haible  <bruno@clisp.org>
4059
4060         getlogin, getlogin_r: Avoid test failure.
4061         * tests/test-getlogin.c: Include <stdio.h>.
4062         (main): Skip the test when the function fails because stdin is not a
4063         tty.
4064         * tests/test-getlogin_r.c: Include <stdio.h>.
4065         (main): Skip the test when the function fails because stdin is not a
4066         tty.
4067
4068 2010-01-11  Eric Blake  <ebb9@byu.net>
4069
4070         tests: avoid more large file warnings
4071         * tests/test-fflush.c: Avoid warning about ftell use.
4072         * tests/test-fseek.c: Avoid warning about fseek use.
4073
4074 2010-01-10  Bruno Haible  <bruno@clisp.org>
4075
4076         nproc: Work better on Linux when /proc and /sys are not mounted.
4077         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
4078         as lower bound when, on glibc/Linux systems,
4079         sysconf (_SC_NPROCESSORS_CONF) returns 1.
4080         Suggested by Pádraig Brady <P@draigbrady.com>.
4081         Reported by Dmitry V. Levin <ldv@altlinux.org>.
4082
4083         nproc: Refactor.
4084         * lib/nproc.c (num_processors_via_affinity_mask): New function,
4085         extracted from num_processors.
4086         (num_processors): Call it.
4087
4088 2010-01-11  Jim Meyering  <meyering@redhat.com>
4089
4090         utimecmp: avoid new warning from upcoming gcc-4.5.0
4091         * lib/utimecmp.c (BILLION): Define using #define rather than an
4092         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
4093
4094 2010-01-11  Eric Blake  <ebb9@byu.net>
4095
4096         math: add portability warnings for classification macros
4097         * modules/math (Depends-on): Add warn-on-use.
4098         (Makefile.am): Provide new substitutions.
4099         * m4/math_h.m4 (gl_MATH_H): Require inline.
4100         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
4101         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
4102         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
4103         implement warnings.
4104
4105         unistd: warn on use of environ without module
4106         * modules/unistd (Depends-on): Add warn-on-use.
4107         (Makefile.am): Provide new substitutions.
4108         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
4109         * lib/unistd.in.h (environ): Wrap with a warning helper function.
4110
4111         stdio: warn on suspicious uses
4112         * modules/stdio (Depends-on): Add warn-on-use.
4113         (Makefile.am): Provide new substitutions.
4114         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
4115         fseeko.
4116         * lib/stdio.in.h (gets): Always warn on use.
4117         (fseek, ftell): Adjust when warnings are issued, and honor
4118         _GL_NO_LARGE_FILES as a way to silence the warning.
4119         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
4120         any warning about large file offsets.
4121         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
4122         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
4123         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
4124         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
4125         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
4126         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
4127         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
4128         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
4129
4130         warn-on-use: new module
4131         * modules/warn-on-use: New file.
4132         * build-aux/warn-on-use.h: Likewise.
4133         * m4/warn-on-use.m4: Likewise.
4134         * MODULES.html.sh (Support for building): Mention it.
4135
4136 2010-01-10  Bruno Haible  <bruno@clisp.org>
4137
4138         Tests for module 'unistr/u32-strdup'.
4139         * modules/unistr/u32-strdup-tests: New file.
4140         * tests/unistr/test-u32-strdup.c: New file.
4141
4142         Tests for module 'unistr/u16-strdup'.
4143         * modules/unistr/u16-strdup-tests: New file.
4144         * tests/unistr/test-u16-strdup.c: New file.
4145
4146         Tests for module 'unistr/u8-strdup'.
4147         * modules/unistr/u8-strdup-tests: New file.
4148         * tests/unistr/test-u8-strdup.c: New file.
4149         * tests/unistr/test-strdup.h: New file.
4150
4151         Tests for module 'unistr/u32-strncmp'.
4152         * modules/unistr/u32-strncmp-tests: New file.
4153         * tests/unistr/test-u32-strncmp.c: New file.
4154
4155         Tests for module 'unistr/u16-strncmp'.
4156         * modules/unistr/u16-strncmp-tests: New file.
4157         * tests/unistr/test-u16-strncmp.c: New file.
4158
4159         Tests for module 'unistr/u8-strncmp'.
4160         * modules/unistr/u8-strncmp-tests: New file.
4161         * tests/unistr/test-u8-strncmp.c: New file.
4162         * tests/unistr/test-strncmp.h: New file.
4163
4164         Tests for module 'unistr/u32-strcoll'.
4165         * modules/unistr/u32-strcoll-tests: New file.
4166         * tests/unistr/test-u32-strcoll.c: New file.
4167
4168         Tests for module 'unistr/u16-strcoll'.
4169         * modules/unistr/u16-strcoll-tests: New file.
4170         * tests/unistr/test-u16-strcoll.c: New file.
4171
4172         Tests for module 'unistr/u8-strcoll'.
4173         * modules/unistr/u8-strcoll-tests: New file.
4174         * tests/unistr/test-u8-strcoll.c: New file.
4175
4176         Tests for module 'unistr/u32-strcmp'.
4177         * modules/unistr/u32-strcmp-tests: New file.
4178         * tests/unistr/test-u32-strcmp.c: New file.
4179         * tests/unistr/test-u32-strcmp.h: New file.
4180
4181         Tests for module 'unistr/u16-strcmp'.
4182         * modules/unistr/u16-strcmp-tests: New file.
4183         * tests/unistr/test-u16-strcmp.c: New file.
4184         * tests/unistr/test-u16-strcmp.h: New file.
4185
4186         Tests for module 'unistr/u8-strcmp'.
4187         * modules/unistr/u8-strcmp-tests: New file.
4188         * tests/unistr/test-u8-strcmp.c: New file.
4189         * tests/unistr/test-u8-strcmp.h: New file.
4190         * tests/unistr/test-strcmp.h: New file.
4191
4192         Tests for module 'unistr/u32-strncat'.
4193         * modules/unistr/u32-strncat-tests: New file.
4194         * tests/unistr/test-u32-strncat.c: New file.
4195
4196         Tests for module 'unistr/u16-strncat'.
4197         * modules/unistr/u16-strncat-tests: New file.
4198         * tests/unistr/test-u16-strncat.c: New file.
4199
4200         Tests for module 'unistr/u8-strncat'.
4201         * modules/unistr/u8-strncat-tests: New file.
4202         * tests/unistr/test-u8-strncat.c: New file.
4203         * tests/unistr/test-strncat.h: New file.
4204
4205         Tests for module 'unistr/u32-strcat'.
4206         * modules/unistr/u32-strcat-tests: New file.
4207         * tests/unistr/test-u32-strcat.c: New file.
4208
4209         Tests for module 'unistr/u16-strcat'.
4210         * modules/unistr/u16-strcat-tests: New file.
4211         * tests/unistr/test-u16-strcat.c: New file.
4212
4213         Tests for module 'unistr/u8-strcat'.
4214         * modules/unistr/u8-strcat-tests: New file.
4215         * tests/unistr/test-u8-strcat.c: New file.
4216         * tests/unistr/test-strcat.h: New file.
4217
4218         Tests for module 'unistr/u32-stpncpy'.
4219         * modules/unistr/u32-stpncpy-tests: New file.
4220         * tests/unistr/test-u32-stpncpy.c: New file.
4221
4222         Tests for module 'unistr/u16-stpncpy'.
4223         * modules/unistr/u16-stpncpy-tests: New file.
4224         * tests/unistr/test-u16-stpncpy.c: New file.
4225
4226         Tests for module 'unistr/u8-stpncpy'.
4227         * modules/unistr/u8-stpncpy-tests: New file.
4228         * tests/unistr/test-u8-stpncpy.c: New file.
4229         * tests/unistr/test-stpncpy.h: New file.
4230
4231         Tests for module 'unistr/u32-strncpy'.
4232         * modules/unistr/u32-strncpy-tests: New file.
4233         * tests/unistr/test-u32-strncpy.c: New file.
4234
4235         Tests for module 'unistr/u16-strncpy'.
4236         * modules/unistr/u16-strncpy-tests: New file.
4237         * tests/unistr/test-u16-strncpy.c: New file.
4238
4239         Tests for module 'unistr/u8-strncpy'.
4240         * modules/unistr/u8-strncpy-tests: New file.
4241         * tests/unistr/test-u8-strncpy.c: New file.
4242         * tests/unistr/test-strncpy.h: New file.
4243
4244         Tests for module 'unistr/u32-stpcpy'.
4245         * modules/unistr/u32-stpcpy-tests: New file.
4246         * tests/unistr/test-u32-stpcpy.c: New file.
4247
4248         Tests for module 'unistr/u16-stpcpy'.
4249         * modules/unistr/u16-stpcpy-tests: New file.
4250         * tests/unistr/test-u16-stpcpy.c: New file.
4251
4252         Tests for module 'unistr/u8-stpcpy'.
4253         * modules/unistr/u8-stpcpy-tests: New file.
4254         * tests/unistr/test-u8-stpcpy.c: New file.
4255         * tests/unistr/test-stpcpy.h: New file.
4256
4257         Tests for module 'unistr/u32-strcpy'.
4258         * modules/unistr/u32-strcpy-tests: New file.
4259         * tests/unistr/test-u32-strcpy.c: New file.
4260
4261         Tests for module 'unistr/u16-strcpy'.
4262         * modules/unistr/u16-strcpy-tests: New file.
4263         * tests/unistr/test-u16-strcpy.c: New file.
4264
4265         Tests for module 'unistr/u8-strcpy'.
4266         * modules/unistr/u8-strcpy-tests: New file.
4267         * tests/unistr/test-u8-strcpy.c: New file.
4268         * tests/unistr/test-strcpy.h: New file.
4269
4270         Tests for module 'unistr/u32-strnlen'.
4271         * modules/unistr/u32-strnlen-tests: New file.
4272         * tests/unistr/test-u32-strnlen.c: New file.
4273
4274         Tests for module 'unistr/u16-strnlen'.
4275         * modules/unistr/u16-strnlen-tests: New file.
4276         * tests/unistr/test-u16-strnlen.c: New file.
4277
4278         Tests for module 'unistr/u8-strnlen'.
4279         * modules/unistr/u8-strnlen-tests: New file.
4280         * tests/unistr/test-u8-strnlen.c: New file.
4281         * tests/unistr/test-strnlen.h: New file.
4282
4283         Tests for module 'unistr/u32-strlen'.
4284         * modules/unistr/u32-strlen-tests: New file.
4285         * tests/unistr/test-u32-strlen.c: New file.
4286
4287         Tests for module 'unistr/u16-strlen'.
4288         * modules/unistr/u16-strlen-tests: New file.
4289         * tests/unistr/test-u16-strlen.c: New file.
4290
4291         Tests for module 'unistr/u8-strlen'.
4292         * modules/unistr/u8-strlen-tests: New file.
4293         * tests/unistr/test-u8-strlen.c: New file.
4294
4295         Tests for module 'unistr/u32-prev'.
4296         * modules/unistr/u32-prev-tests: New file.
4297         * tests/unistr/test-u32-prev.c: New file.
4298
4299         Tests for module 'unistr/u16-prev'.
4300         * modules/unistr/u16-prev-tests: New file.
4301         * tests/unistr/test-u16-prev.c: New file.
4302
4303         Tests for module 'unistr/u8-prev'.
4304         * modules/unistr/u8-prev-tests: New file.
4305         * tests/unistr/test-u8-prev.c: New file.
4306
4307         Tests for module 'unistr/u32-next'.
4308         * modules/unistr/u32-next-tests: New file.
4309         * tests/unistr/test-u32-next.c: New file.
4310
4311         Tests for module 'unistr/u16-next'.
4312         * modules/unistr/u16-next-tests: New file.
4313         * tests/unistr/test-u16-next.c: New file.
4314
4315         Tests for module 'unistr/u8-next'.
4316         * modules/unistr/u8-next-tests: New file.
4317         * tests/unistr/test-u8-next.c: New file.
4318
4319         Tests for module 'unistr/u32-strmbtouc'.
4320         * modules/unistr/u32-strmbtouc-tests: New file.
4321         * tests/unistr/test-u32-strmbtouc.c: New file.
4322
4323         Tests for module 'unistr/u16-strmbtouc'.
4324         * modules/unistr/u16-strmbtouc-tests: New file.
4325         * tests/unistr/test-u16-strmbtouc.c: New file.
4326
4327         Tests for module 'unistr/u8-strmbtouc'.
4328         * modules/unistr/u8-strmbtouc-tests: New file.
4329         * tests/unistr/test-u8-strmbtouc.c: New file.
4330
4331         Tests for module 'unistr/u32-strmblen'.
4332         * modules/unistr/u32-strmblen-tests: New file.
4333         * tests/unistr/test-u32-strmblen.c: New file.
4334
4335         Tests for module 'unistr/u16-strmblen'.
4336         * modules/unistr/u16-strmblen-tests: New file.
4337         * tests/unistr/test-u16-strmblen.c: New file.
4338
4339         Tests for module 'unistr/u8-strmblen'.
4340         * modules/unistr/u8-strmblen-tests: New file.
4341         * tests/unistr/test-u8-strmblen.c: New file.
4342
4343         Tests for module 'unistr/u32-cpy-alloc'.
4344         * modules/unistr/u32-cpy-alloc-tests: New file.
4345         * tests/unistr/test-u32-cpy-alloc.c: New file.
4346
4347         Tests for module 'unistr/u16-cpy-alloc'.
4348         * modules/unistr/u16-cpy-alloc-tests: New file.
4349         * tests/unistr/test-u16-cpy-alloc.c: New file.
4350
4351         Tests for module 'unistr/u8-cpy-alloc'.
4352         * modules/unistr/u8-cpy-alloc-tests: New file.
4353         * tests/unistr/test-u8-cpy-alloc.c: New file.
4354         * tests/unistr/test-cpy-alloc.h: New file.
4355
4356         Tests for module 'unistr/u32-mbsnlen'.
4357         * modules/unistr/u32-mbsnlen-tests: New file.
4358         * tests/unistr/test-u32-mbsnlen.c: New file.
4359
4360         Tests for module 'unistr/u16-mbsnlen'.
4361         * modules/unistr/u16-mbsnlen-tests: New file.
4362         * tests/unistr/test-u16-mbsnlen.c: New file.
4363
4364         Tests for module 'unistr/u8-mbsnlen'.
4365         * modules/unistr/u8-mbsnlen-tests: New file.
4366         * tests/unistr/test-u8-mbsnlen.c: New file.
4367
4368         Tests for module 'unistr/u32-chr'.
4369         * modules/unistr/u32-chr-tests: New file.
4370         * tests/unistr/test-u32-chr.c: New file.
4371
4372         Tests for module 'unistr/u16-chr'.
4373         * modules/unistr/u16-chr-tests: New file.
4374         * tests/unistr/test-u16-chr.c: New file.
4375
4376         Tests for module 'unistr/u8-chr'.
4377         * modules/unistr/u8-chr-tests: New file.
4378         * tests/unistr/test-u8-chr.c: New file.
4379         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
4380
4381         Tests for module 'unistr/u32-cmp2'.
4382         * modules/unistr/u32-cmp2-tests: New file.
4383         * tests/unistr/test-u32-cmp2.c: New file.
4384
4385         Tests for module 'unistr/u16-cmp2'.
4386         * modules/unistr/u16-cmp2-tests: New file.
4387         * tests/unistr/test-u16-cmp2.c: New file.
4388
4389         Tests for module 'unistr/u8-cmp2'.
4390         * modules/unistr/u8-cmp2-tests: New file.
4391         * tests/unistr/test-u8-cmp2.c: New file.
4392         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
4393
4394         Tests for module 'unistr/u32-cmp'.
4395         * modules/unistr/u32-cmp-tests: New file.
4396         * tests/unistr/test-u32-cmp.c: New file.
4397
4398         Tests for module 'unistr/u16-cmp'.
4399         * modules/unistr/u16-cmp-tests: New file.
4400         * tests/unistr/test-u16-cmp.c: New file.
4401
4402         Tests for module 'unistr/u8-cmp'.
4403         * modules/unistr/u8-cmp-tests: New file.
4404         * tests/unistr/test-u8-cmp.c: New file.
4405         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
4406
4407         Tests for module 'unistr/u32-set'.
4408         * modules/unistr/u32-set-tests: New file.
4409         * tests/unistr/test-u32-set.c: New file.
4410
4411         Tests for module 'unistr/u16-set'.
4412         * modules/unistr/u16-set-tests: New file.
4413         * tests/unistr/test-u16-set.c: New file.
4414
4415         Tests for module 'unistr/u8-set'.
4416         * modules/unistr/u8-set-tests: New file.
4417         * tests/unistr/test-u8-set.c: New file.
4418         * tests/unistr/test-set.h: New file.
4419
4420         Tests for module 'unistr/u32-move'.
4421         * modules/unistr/u32-move-tests: New file.
4422         * tests/unistr/test-u32-move.c: New file.
4423
4424         Tests for module 'unistr/u16-move'.
4425         * modules/unistr/u16-move-tests: New file.
4426         * tests/unistr/test-u16-move.c: New file.
4427
4428         Tests for module 'unistr/u8-move'.
4429         * modules/unistr/u8-move-tests: New file.
4430         * tests/unistr/test-u8-move.c: New file.
4431         * tests/unistr/test-move.h: New file.
4432
4433         Tests for module 'unistr/u32-cpy'.
4434         * modules/unistr/u32-cpy-tests: New file.
4435         * tests/unistr/test-u32-cpy.c: New file.
4436
4437         Tests for module 'unistr/u16-cpy'.
4438         * modules/unistr/u16-cpy-tests: New file.
4439         * tests/unistr/test-u16-cpy.c: New file.
4440
4441         Tests for module 'unistr/u8-cpy'.
4442         * modules/unistr/u8-cpy-tests: New file.
4443         * tests/unistr/test-u8-cpy.c: New file.
4444         * tests/unistr/test-cpy.h: New file.
4445
4446 2010-01-09  Bruno Haible  <bruno@clisp.org>
4447
4448         Tests for module 'unistr/u32-uctomb'.
4449         * modules/unistr/u32-uctomb-tests: New file.
4450         * tests/unistr/test-u32-uctomb.c: New file.
4451
4452         Tests for module 'unistr/u16-uctomb'.
4453         * modules/unistr/u16-uctomb-tests: New file.
4454         * tests/unistr/test-u16-uctomb.c: New file.
4455
4456         Tests for module 'unistr/u8-uctomb'.
4457         * modules/unistr/u8-uctomb-tests: New file.
4458         * tests/unistr/test-u8-uctomb.c: New file.
4459
4460         Tests for module 'unistr/u32-mbtoucr'.
4461         * modules/unistr/u32-mbtoucr-tests: New file.
4462         * tests/unistr/test-u32-mbtoucr.c: New file.
4463
4464         Tests for module 'unistr/u16-mbtoucr'.
4465         * modules/unistr/u16-mbtoucr-tests: New file.
4466         * tests/unistr/test-u16-mbtoucr.c: New file.
4467
4468         Tests for module 'unistr/u8-mbtoucr'.
4469         * modules/unistr/u8-mbtoucr-tests: New file.
4470         * tests/unistr/test-u8-mbtoucr.c: New file.
4471
4472         Tests for module 'unistr/u32-mbtouc'.
4473         * modules/unistr/u32-mbtouc-tests: New file.
4474         * tests/unistr/test-u32-mbtouc.c: New file.
4475
4476         Tests for module 'unistr/u16-mbtouc'.
4477         * modules/unistr/u16-mbtouc-tests: New file.
4478         * tests/unistr/test-u16-mbtouc.c: New file.
4479
4480         Tests for module 'unistr/u8-mbtouc'.
4481         * modules/unistr/u8-mbtouc-tests: New file.
4482         * tests/unistr/test-u8-mbtouc.c: New file.
4483
4484         Tests for module 'unistr/u32-mbtouc-unsafe'.
4485         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
4486         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
4487         * tests/unistr/test-u32-mbtouc.h: New file.
4488
4489         Tests for module 'unistr/u16-mbtouc-unsafe'.
4490         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
4491         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
4492         * tests/unistr/test-u16-mbtouc.h: New file.
4493
4494         Tests for module 'unistr/u8-mbtouc-unsafe'.
4495         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
4496         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
4497         * tests/unistr/test-u8-mbtouc.h: New file.
4498
4499         Tests for module 'unistr/u32-mblen'.
4500         * modules/unistr/u32-mblen-tests: New file.
4501         * tests/unistr/test-u32-mblen.c: New file.
4502
4503         Tests for module 'unistr/u16-mblen'.
4504         * modules/unistr/u16-mblen-tests: New file.
4505         * tests/unistr/test-u16-mblen.c: New file.
4506
4507         Tests for module 'unistr/u8-mblen'.
4508         * modules/unistr/u8-mblen-tests: New file.
4509         * tests/unistr/test-u8-mblen.c: New file.
4510
4511         Tests for module 'unistr/u32-to-u16'.
4512         * modules/unistr/u32-to-u16-tests: New file.
4513         * tests/unistr/test-u32-to-u16.c: New file.
4514
4515         Tests for module 'unistr/u32-to-u8'.
4516         * modules/unistr/u32-to-u8-tests: New file.
4517         * tests/unistr/test-u32-to-u8.c: New file.
4518
4519         Tests for module 'unistr/u16-to-u32'.
4520         * modules/unistr/u16-to-u32-tests: New file.
4521         * tests/unistr/test-u16-to-u32.c: New file.
4522
4523         Tests for module 'unistr/u16-to-u8'.
4524         * modules/unistr/u16-to-u8-tests: New file.
4525         * tests/unistr/test-u16-to-u8.c: New file.
4526
4527         Tests for module 'unistr/u8-to-u32'.
4528         * modules/unistr/u8-to-u32-tests: New file.
4529         * tests/unistr/test-u8-to-u32.c: New file.
4530
4531         Tests for module 'unistr/u8-to-u16'.
4532         * modules/unistr/u8-to-u16-tests: New file.
4533         * tests/unistr/test-u8-to-u16.c: New file.
4534
4535         Tests for module 'unistr/u32-check'.
4536         * modules/unistr/u32-check-tests: New file.
4537         * tests/unistr/test-u32-check.c: New file.
4538
4539         Tests for module 'unistr/u16-check'.
4540         * modules/unistr/u16-check-tests: New file.
4541         * tests/unistr/test-u16-check.c: New file.
4542
4543         Tests for module 'unistr/u8-check'.
4544         * modules/unistr/u8-check-tests: New file.
4545         * tests/unistr/test-u8-check.c: New file.
4546
4547         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
4548         (category_equals): New function.
4549         (main): Add more tests.
4550         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
4551
4552         * tests/unictype/test-bidi_byname.c (main): Add more tests.
4553
4554 2010-01-10  Bruno Haible  <bruno@clisp.org>
4555
4556         unistr/u*-strcoll: Try harder to distinguish different strings.
4557         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
4558         compare s1 and s2 to see if they are different.
4559
4560 2010-01-10  Bruno Haible  <bruno@clisp.org>
4561
4562         unistr/u*-stpncpy: Fix the return value.
4563         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
4564         description of the return value consistent with stpncpy in glibc.
4565         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
4566         written non-NUL unit.
4567
4568 2010-01-10  Bruno Haible  <bruno@clisp.org>
4569
4570         unistr/u*-next: Add missing dependencies.
4571         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
4572         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
4573         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
4574
4575 2010-01-10  Bruno Haible  <bruno@clisp.org>
4576
4577         unistr/u8-mbsnlen: Fix return value for incomplete character.
4578         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
4579         u8_mblen.
4580         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
4581         Remove unistr/u8-mblen.
4582         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
4583         u16_mblen.
4584         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
4585         Remove unistr/u16-mblen.
4586
4587 2010-01-10  Bruno Haible  <bruno@clisp.org>
4588
4589         wchar: Fix compilation error when <wchar.h> is used from coreutils.
4590         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
4591         Reported by Brian Gough <bjg@gnu.org> and
4592         Chris Clayton <chris2553@googlemail.com> via
4593         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
4594
4595 2010-01-09  Bruno Haible  <bruno@clisp.org>
4596
4597         unistr/u16-to-u32: Reject invalid input.
4598         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
4599         u16_mbtouc.
4600         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
4601         Remove unistr/u16-mbtouc.
4602
4603         unistr/u16-to-u8: Reject invalid input.
4604         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
4605         u16_mbtouc.
4606         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
4607         Remove unistr/u16-mbtouc.
4608
4609         unistr/u8-to-u32: Reject invalid input.
4610         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
4611         u8_mbtouc.
4612         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
4613         Remove unistr/u8-mbtouc.
4614
4615         unistr/u8-to-u16: Reject invalid input.
4616         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
4617         u8_mbtouc.
4618         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
4619         Remove unistr/u8-mbtouc.
4620
4621 2010-01-09  Bruno Haible  <bruno@clisp.org>
4622
4623         Tests for module 'getlogin'.
4624         * modules/getlogin-tests: New file.
4625         * tests/test-getlogin.c: New file.
4626
4627         New module 'getlogin'.
4628         * lib/unistd.in.h (getlogin): New declaration.
4629         * lib/getlogin.c: New file.
4630         * m4/getlogin.m4: New file.
4631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
4632         HAVE_GETLOGIN.
4633         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
4634         HAVE_GETLOGIN.
4635         * modules/getlogin: New file.
4636         * doc/posix-functions/getlogin.texi: Mention the new module.
4637         Reported by John W. Eaton <jwe@gnu.org>.
4638
4639 2010-01-09  Bruno Haible  <bruno@clisp.org>
4640
4641         getlogin_r: Support for native Windows.
4642         * lib/getlogin_r.c: Include <windows.h>
4643         (getlogin_r): Implement for native Windows.
4644         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
4645         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
4646         via John W. Eaton <jwe@gnu.org>.
4647
4648 2010-01-09  Bruno Haible  <bruno@clisp.org>
4649
4650         getlogin_r: Small fixes.
4651         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
4652         succeeds.
4653         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
4654         before testing whether getlogin_r is declared. No need to set
4655         HAVE_DECL_GETLOGIN_R to 1.
4656         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
4657
4658 2010-01-09  Bruno Haible  <bruno@clisp.org>
4659
4660         * lib/unistd.in.h (getlogin_r): Add comment.
4661
4662 2010-01-09  Bruno Haible  <bruno@clisp.org>
4663
4664         Tests for module 'getlogin_r'.
4665         * modules/getlogin_r-tests: New file.
4666         * tests/test-getlogin_r.c: New file.
4667
4668 2010-01-09  Jim Meyering  <meyering@redhat.com>
4669
4670         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
4671         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
4672         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
4673
4674 2010-01-08  Simon Josefsson  <simon@josefsson.org>
4675
4676         * lib/dup2.c (rpl_dup2): Improve comment.
4677
4678 2010-01-08  Eric Blake  <ebb9@byu.net>
4679
4680         maint.mk: allow packages to add makefile @@ exceptions
4681         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
4682         (sc_makefile_check): Rename...
4683         (sc_makefile_at_at_check): ...to this, and use hook.
4684
4685         dup2: work around mingw bug
4686         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
4687         Reported by Simon Josefsson.
4688
4689 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
4690
4691         glob: Fix C++ compilation.
4692         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
4693         C++.
4694
4695 2010-01-07  Bruno Haible  <bruno@clisp.org>
4696
4697         Fix indentation of wctype.in.h, broken since 2007-01-06.
4698         * lib/wctype.in.h: Fix indentation of preprocessor directives.
4699
4700 2010-01-07  Bruno Haible  <bruno@clisp.org>
4701
4702         mbslen: Avoid collision with system function.
4703         * lib/string.in.h [MirBSD]: Include <wchar.h>.
4704         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
4705         * m4/mbslen.m4: New file.
4706         * modules/mbslen (Files): Add it.
4707         (configure.ac): Invoke gl_MBSLEN.
4708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
4709         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
4710         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
4711         via Ian Beckwith <ianb@erislabs.net>.
4712
4713 2010-01-07  Bruno Haible  <bruno@clisp.org>
4714
4715         dirent: Document the last fix.
4716         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
4717
4718 2010-01-07  Bruno Haible  <bruno@clisp.org>
4719
4720         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
4721         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
4722         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
4723         va_list are defined.
4724         * doc/posix-headers/stdio.texi: Document the bug of missing types.
4725         Reported by Eric Blake.
4726
4727 2010-01-07  Bruno Haible  <bruno@clisp.org>
4728
4729         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
4730         * modules/xlist (Depends-on): Add 'list',
4731         * modules/xoset (Depends-on): Add 'oset'.
4732         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4733
4734 2010-01-07  Bruno Haible  <bruno@clisp.org>
4735
4736         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
4737         * doc/posix-functions/strncasecmp.texi: Likewise.
4738
4739 2010-01-07  Bruno Haible  <bruno@clisp.org>
4740
4741         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
4742
4743 2010-01-07  John W. Eaton  <jwe@octave.org>
4744
4745         wctype: allow C++ use
4746         * lib/wctype.in.h: Add extern "C" block for C++.
4747
4748 2010-01-06  Eric Blake  <ebb9@byu.net>
4749
4750         maint.mk: detect incorrect GFDL usage
4751         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
4752
4753 2010-01-06  Jim Meyering  <meyering@redhat.com>
4754         and Eric Blake  <ebb9@byu.net>
4755
4756         maint.mk: ignore multi-line copyright in NEWS
4757         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
4758
4759 2010-01-06  Eric Blake  <ebb9@byu.net>
4760
4761         select: add missing dependency
4762         * modules/select-tests (Depends-on): Move sockets dependency...
4763         * modules/select (Depends-on): ...here.
4764         Reported by Ian Beckwith.
4765
4766         doc: regenerate INSTALL
4767         * doc/INSTALL: Reflect recent autoconf update.
4768         * doc/INSTALL.ISO: Likewise.
4769         * doc/INSTALL.UTF-8: Likewise.
4770
4771         pread: fix compilation on glibc
4772         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
4773         Reported by Ralf Wildenhues.
4774
4775         dirent: fix test failure
4776         * lib/dirent.in.h (includes): Guarantee ino_t.
4777         Reported by Ralf Wildenhues.
4778
4779 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
4780
4781         linkat, renameat: avoid bad free
4782         * lib/at-func2.c (at_func2): Fix typo.
4783         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
4784
4785 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4786
4787         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
4788         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
4789         to avoid failure of symlink test later.
4790
4791 2010-01-06  Eric Blake  <ebb9@byu.net>
4792
4793         stdio, unistd: guarantee ssize_t
4794         * lib/unistd.in.h (includes): Ensure that types required by POSIX
4795         2008 are exposed when needed.
4796         * lib/stdio.in.h (includes): Likewise.
4797         Reported by Ralf Wildenhues.
4798
4799 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
4800
4801         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
4802         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
4803         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
4804
4805 2010-01-06  Jim Meyering  <meyering@redhat.com>
4806
4807         readtokens: this module *does* require xalloc.h
4808         It uses only functions that were omitted by the old syntax-check rule.
4809         * lib/readtokens.c: Include "xalloc.h" once again.
4810         * modules/readtokens (Depends-on): Add xalloc.
4811         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
4812
4813 2010-01-05  Eric Blake  <ebb9@byu.net>
4814
4815         maint: support 'make announcement' from a VPATH build
4816         * top/maint.mk (announcement): Look for correct NEWS file.
4817
4818 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
4819
4820         utimens (fdutimens): ignore a negative FD, per contract
4821         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
4822         when we have a valid file descriptor.  Otherwise, using a brand
4823         new glibc (with just-patched futimens that now fails with EBADF)
4824         would cause this function to fail with ENOSYS.
4825         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
4826         See also http://bugzilla.redhat.com/552320.
4827
4828 2010-01-05  Eric Blake  <ebb9@byu.net>
4829
4830         strcase: document what it provides
4831         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
4832         gnulib module.
4833         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
4834         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
4835
4836 2010-01-05  Jim Meyering  <meyering@redhat.com>
4837
4838         maint: remove useless inclusions of "xalloc.h"
4839         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
4840         * lib/readtokens.c: Likewise.
4841         * lib/same.c: Likewise.
4842         * modules/getloadavg (Depends-on): Remove xalloc.
4843         * modules/readtokens: Likewise.
4844         * modules/same: Likewise.
4845
4846         maint.mk: include 4 more function names in alloca.h-checking regexp
4847         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
4848         regexp.  Before, we would give a false-positive (saying alloca.h
4849         is included unnecessarily) when the only uses involved omitted symbols.
4850
4851         xalloc.h: use consistent formatting
4852         * lib/xalloc.h: Move declarations to start in the first column.
4853
4854 2010-01-05  Eric Blake  <ebb9@byu.net>
4855
4856         mkdir: avoid xalloc
4857         * lib/mkdir.c (includes): Drop unused header.
4858         Reported by John W. Eaton.
4859
4860 2010-01-04  Jim Meyering  <meyering@redhat.com>
4861
4862         nl_langinfo: avoid configure-time syntax error
4863         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
4864         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
4865         the empty string.  Don't let that provoke a shell syntax error.
4866
4867         regcomp, regexec, fnmatch: avoid array bounds read error
4868         * lib/regcomp.c (build_equiv_class): From glibc:
4869         Use only the low 24 bits of a findidx return value as an index
4870         into the weights array.  Patch by Ulrich Drepper:
4871         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
4872         * lib/regexec.c (check_node_accept_bytes): Likewise.
4873         * lib/fnmatch_loop.c (FCT): Likewise.
4874
4875         regcomp: skip collseq lookup when there are no rules
4876         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
4877         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
4878
4879         regcomp: recognize ill-formed { } expressions
4880         * lib/regcomp.c (parse_dup_op): From glibc:
4881         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
4882
4883         regcomp: fix typo in comment
4884         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
4885         s/satisfy/satisfies/.
4886
4887         regcomp: sync from glibc: remove dead store
4888         * lib/regcomp.c (duplicate_node_closure): Remove useless
4889         search_duplicated_node call and dead store.
4890
4891         regcomp: sync from glibc; always use nl_langinfo
4892         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
4893         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
4894         * modules/regex (Depends-on): Add nl_langinfo.
4895
4896 2010-01-04  Eric Blake  <ebb9@byu.net>
4897
4898         fdopendir: fix configure test
4899         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
4900
4901 2010-01-01  Bruno Haible  <bruno@clisp.org>
4902
4903         wchar: Remove unused configure check.
4904         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
4905
4906 2010-01-01  Eric Blake  <ebb9@byu.net>
4907
4908         headers: make check of system header explicit
4909         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
4910         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
4911         ourselves.
4912         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4913         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4914         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
4915         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
4916         internals.
4917         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
4918         missing.
4919         Suggested by Bruno Haible.
4920
4921 2010-01-01  Jim Meyering  <meyering@redhat.com>
4922
4923         ChangeLog: tweak to eliminate unnecessary copyright line
4924         * ChangeLog: Remove a copyright line that was mistakenly updated
4925         by today's update-copyright run.  Reported by Eric Blake.
4926
4927         test-update-copyright: don't let envvar setting cause test failure
4928         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
4929
4930 2010-01-01  Bruno Haible  <bruno@clisp.org>
4931
4932         localename: Avoid gcc warning.
4933         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
4934         function if it is not used.
4935
4936 2010-01-01  Jim Meyering  <meyering@redhat.com>
4937
4938         update nearly all FSF copyright year lists to include 2010
4939         Use the same procedure as for 2009, outlined in
4940         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
4941
4942         version-etc: set COPYRIGHT_YEAR to 2010
4943         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
4944
4945 2009-12-31  Eric Blake  <ebb9@byu.net>
4946
4947         doc: correct availability of cygwin 1.5.x getopt
4948         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
4949         variables.
4950         * doc/posix-functions/opterr.texi (opterr): Likewise.
4951         * doc/posix-functions/optind.texi (optind): Likewise.
4952         * doc/posix-functions/optopt.texi (optopt): Likewise.
4953         * doc/posix-functions/tzname.texi (tzname): Likewise.
4954
4955         openat: update maintainer
4956         * modules/openat (Maintainer): Add myself.
4957
4958         utimens: avoid shadowing warning
4959         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
4960         buffers into one, to avoid shadowing, as well as avoiding a
4961         redundant stat.
4962         Reported by Jim Meyering.
4963
4964         test-dup2: avoid compiler warning
4965         * tests/test-dup2.c (is_inheritable): Only define if used.
4966
4967 2010-01-01  Bruno Haible  <bruno@clisp.org>
4968
4969         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
4970         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
4971         defined, use wctomb instead of wcrtomb.
4972
4973 2010-01-01  Bruno Haible  <bruno@clisp.org>
4974
4975         iconv: Reject native Solaris iconv.
4976         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
4977         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
4978
4979 2009-12-31  Bruno Haible  <bruno@clisp.org>
4980
4981         * tests/test-signal.c (main): Remove test of 'SIG'.
4982
4983 2009-12-31  Bruno Haible  <bruno@clisp.org>
4984
4985         spawn: Fix incomplete fix.
4986         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
4987         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
4988         warnings for GNULIB_POSIXCHECK again.
4989         Reported by Eric Blake.
4990
4991 2009-12-31  Bruno Haible  <bruno@clisp.org>
4992
4993         Avoid namespace pollution on glibc systems.
4994         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
4995         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
4996         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
4997         glibc systems.
4998
4999 2009-12-31  Bruno Haible  <bruno@clisp.org>
5000
5001         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
5002         (gl_REPLACE_WCHAR_H): Turn into a no-op.
5003         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
5004         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
5005         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
5006         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
5007         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
5008
5009 2009-12-31  Bruno Haible  <bruno@clisp.org>
5010
5011         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
5012         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
5013         afterwards.
5014
5015 2009-12-31  Bruno Haible  <bruno@clisp.org>
5016
5017         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
5018         SYS_UTSNAME_H.
5019
5020 2009-12-31  Bruno Haible  <bruno@clisp.org>
5021
5022         spawn: Fix misapplied patch.
5023         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
5024         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
5025         warnings for GNULIB_POSIXCHECK.
5026
5027 2009-12-31  Bruno Haible  <bruno@clisp.org>
5028
5029         times: Update after sys_times changed.
5030         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
5031         * modules/times (Files): Add it.
5032         (configure.ac): Invoke gl_FUNC_TIMES.
5033
5034 2009-12-31  Bruno Haible  <bruno@clisp.org>
5035
5036         Use AC_C_INLINE where necessary.
5037         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
5038         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
5039         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
5040         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
5041         * m4/mbfile.m4 (gl_MBFILE): Likewise.
5042         * m4/mbiter.m4 (gl_MBITER): Likewise.
5043         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5044         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5045         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
5046         * modules/u64 (configure.ac): Likewise.
5047
5048 2009-12-31  Bruno Haible  <bruno@clisp.org>
5049
5050         Use AC_C_INLINE instead of module 'inline' where possible.
5051         * modules/inline (Description): Clarify purpose.
5052         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
5053         * modules/count-one-bits (Depends-on): Remove inline.
5054         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
5055         * modules/openat (Depends-on): Remove inline.
5056         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
5057         instead of depending on module 'inline'.
5058         * modules/filevercmp (Depends-on, configure.ac): Likewise.
5059         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
5060         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
5061         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
5062         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
5063         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
5064         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
5065         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
5066         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
5067         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
5068         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
5069         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
5070         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
5071         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
5072         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
5073         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
5074         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
5075         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
5076         Likewise.
5077         * modules/unictype/property-ascii-hex-digit (Depends-on,
5078         configure.ac): Likewise.
5079         * modules/unictype/property-bidi-arabic-digit (Depends-on,
5080         configure.ac): Likewise.
5081         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
5082         configure.ac): Likewise.
5083         * modules/unictype/property-bidi-block-separator (Depends-on,
5084         configure.ac): Likewise.
5085         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
5086         configure.ac): Likewise.
5087         * modules/unictype/property-bidi-common-separator (Depends-on,
5088         configure.ac): Likewise.
5089         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
5090         Likewise.
5091         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
5092         configure.ac): Likewise.
5093         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
5094         configure.ac): Likewise.
5095         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
5096         configure.ac): Likewise.
5097         * modules/unictype/property-bidi-european-digit (Depends-on,
5098         configure.ac): Likewise.
5099         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
5100         configure.ac): Likewise.
5101         * modules/unictype/property-bidi-left-to-right (Depends-on,
5102         configure.ac): Likewise.
5103         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
5104         configure.ac): Likewise.
5105         * modules/unictype/property-bidi-other-neutral (Depends-on,
5106         configure.ac): Likewise.
5107         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
5108         Likewise.
5109         * modules/unictype/property-bidi-segment-separator (Depends-on,
5110         configure.ac): Likewise.
5111         * modules/unictype/property-bidi-whitespace (Depends-on,
5112         configure.ac): Likewise.
5113         * modules/unictype/property-combining (Depends-on, configure.ac):
5114         Likewise.
5115         * modules/unictype/property-composite (Depends-on, configure.ac):
5116         Likewise.
5117         * modules/unictype/property-currency-symbol (Depends-on,
5118         configure.ac): Likewise.
5119         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
5120         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
5121         Likewise.
5122         * modules/unictype/property-default-ignorable-code-point (Depends-on,
5123         configure.ac): Likewise.
5124         * modules/unictype/property-deprecated (Depends-on, configure.ac):
5125         Likewise.
5126         * modules/unictype/property-diacritic (Depends-on, configure.ac):
5127         Likewise.
5128         * modules/unictype/property-extender (Depends-on, configure.ac):
5129         Likewise.
5130         * modules/unictype/property-format-control (Depends-on, configure.ac):
5131         Likewise.
5132         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
5133         Likewise.
5134         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
5135         Likewise.
5136         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
5137         Likewise.
5138         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
5139         Likewise.
5140         * modules/unictype/property-hyphen (Depends-on, configure.ac):
5141         Likewise.
5142         * modules/unictype/property-id-continue (Depends-on, configure.ac):
5143         Likewise.
5144         * modules/unictype/property-id-start (Depends-on, configure.ac):
5145         Likewise.
5146         * modules/unictype/property-ideographic (Depends-on, configure.ac):
5147         Likewise.
5148         * modules/unictype/property-ids-binary-operator (Depends-on,
5149         configure.ac): Likewise.
5150         * modules/unictype/property-ids-trinary-operator (Depends-on,
5151         configure.ac): Likewise.
5152         * modules/unictype/property-ignorable-control (Depends-on,
5153         configure.ac): Likewise.
5154         * modules/unictype/property-iso-control (Depends-on, configure.ac):
5155         Likewise.
5156         * modules/unictype/property-join-control (Depends-on, configure.ac):
5157         Likewise.
5158         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
5159         Likewise.
5160         * modules/unictype/property-line-separator (Depends-on, configure.ac):
5161         Likewise.
5162         * modules/unictype/property-logical-order-exception (Depends-on,
5163         configure.ac): Likewise.
5164         * modules/unictype/property-lowercase (Depends-on, configure.ac):
5165         Likewise.
5166         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
5167         * modules/unictype/property-non-break (Depends-on, configure.ac):
5168         Likewise.
5169         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
5170         Likewise.
5171         * modules/unictype/property-numeric (Depends-on, configure.ac):
5172         Likewise.
5173         * modules/unictype/property-other-alphabetic (Depends-on,
5174         configure.ac): Likewise.
5175         * modules/unictype/property-other-default-ignorable-code-point
5176         (Depends-on, configure.ac): Likewise.
5177         * modules/unictype/property-other-grapheme-extend (Depends-on,
5178         configure.ac): Likewise.
5179         * modules/unictype/property-other-id-continue (Depends-on,
5180         configure.ac): Likewise.
5181         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
5182         Likewise.
5183         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
5184         Likewise.
5185         * modules/unictype/property-other-math (Depends-on, configure.ac):
5186         Likewise.
5187         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
5188         Likewise.
5189         * modules/unictype/property-paired-punctuation (Depends-on,
5190         configure.ac): Likewise.
5191         * modules/unictype/property-paragraph-separator (Depends-on,
5192         configure.ac): Likewise.
5193         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
5194         Likewise.
5195         * modules/unictype/property-pattern-white-space (Depends-on,
5196         configure.ac): Likewise.
5197         * modules/unictype/property-private-use (Depends-on, configure.ac):
5198         Likewise.
5199         * modules/unictype/property-punctuation (Depends-on, configure.ac):
5200         Likewise.
5201         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
5202         Likewise.
5203         * modules/unictype/property-radical (Depends-on, configure.ac):
5204         Likewise.
5205         * modules/unictype/property-sentence-terminal (Depends-on,
5206         configure.ac): Likewise.
5207         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
5208         Likewise.
5209         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
5210         * modules/unictype/property-terminal-punctuation (Depends-on,
5211         configure.ac): Likewise.
5212         * modules/unictype/property-titlecase (Depends-on, configure.ac):
5213         Likewise.
5214         * modules/unictype/property-unassigned-code-value (Depends-on,
5215         configure.ac): Likewise.
5216         * modules/unictype/property-unified-ideograph (Depends-on,
5217         configure.ac): Likewise.
5218         * modules/unictype/property-uppercase (Depends-on, configure.ac):
5219         Likewise.
5220         * modules/unictype/property-variation-selector (Depends-on,
5221         configure.ac): Likewise.
5222         * modules/unictype/property-white-space (Depends-on, configure.ac):
5223         Likewise.
5224         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
5225         Likewise.
5226         * modules/unictype/property-xid-start (Depends-on, configure.ac):
5227         Likewise.
5228         * modules/unictype/property-zero-width (Depends-on, configure.ac):
5229         Likewise.
5230         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
5231         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
5232         Likewise.
5233
5234 2009-12-31  Bruno Haible  <bruno@clisp.org>
5235
5236         Remove unnecessary AC_C_INLINE invocation.
5237         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
5238         since 2009-08-21.
5239
5240 2009-12-31  Jim Meyering  <meyering@redhat.com>
5241
5242         maint.mk: don't require explicit gpg_key_ID in cfg.mk
5243         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
5244         With this change, we can all remove the gpg_key_ID = ... definition
5245         from our respective cfg.mk files.
5246
5247         maint.mk: create announcement template in ~/, not in /tmp
5248         * top/maint.mk (emit_upload_commands): Adjust.
5249         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
5250         Remove temporary file, .ci-msg.
5251
5252 2009-12-31  Eric Blake  <ebb9@byu.net>
5253
5254         link-warning: always build headers with link warnings
5255         * modules/arpa_inet (Makefile.am): Always build replacement
5256         header.
5257         * modules/ctype (Makefile.am): Likewise.
5258         * modules/dirent (Makefile.am): Likewise.
5259         * modules/inttypes (Makefile.am): Likewise.
5260         * modules/langinfo (Makefile.am): Likewise.
5261         * modules/locale (Makefile.am): Likewise.
5262         * modules/spawn (Makefile.am): Likewise.
5263         * modules/sys_file (Makefile.am): Likewise.
5264         * modules/sys_ioctl (Makefile.am): Likewise.
5265         * modules/sys_select (Makefile.am): Likewise.
5266         * modules/sys_socket (Makefile.am): Likewise.
5267         * modules/sys_times (Makefile.am): Likewise.
5268         * modules/sys_utsname (Makefile.am): Likewise.
5269         * modules/sys_wait (Makefile.am): Likewise.
5270         * modules/wchar (Makefile.am): Likewise.
5271         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
5272         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
5273         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
5274         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
5275         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
5276         Likewise.
5277         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
5278         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
5279         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
5280         Likewise.
5281         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
5282         Likewise.
5283         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5284         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
5285         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
5286         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5287         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5288         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5289         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5290         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
5291         (gl_WCHAR_H_DEFAULTS): Likewise.
5292
5293 2009-12-31  Eric Blake  <ebb9@byu.net>
5294
5295         signal, spawn: use link warnings
5296         * lib/signal.in.h (sigset_t): Make unconditional.
5297         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
5298         (sigpending, sigprocmask, sigaction): Add link warnings.
5299         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
5300         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
5301         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
5302         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
5303         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
5304         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
5305         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
5306         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
5307         (posix_spawn_file_actions_destroy)
5308         (posix_spawn_file_actions_addopen)
5309         (posix_spawn_file_actions_addclose)
5310         (posix_spawn_file_actions_adddup2): Likewise.
5311         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
5312         * tests/test-signal.c (main): Enhance test.
5313
5314         spawn: improve wrapper support
5315         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
5316         (gl_SPAWN_H_DEFAULTS): New defaults.
5317         * modules/spawn (Makefile.am): Substitute them.
5318         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
5319         Only declare if missing or broken.
5320
5321         sys_times, sys_utsname: use include_next
5322         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
5323         header.
5324         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
5325         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
5326         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
5327         * modules/sys_times (Depends-on): Add include_next.
5328         (Makefile.am): Substitute additional values.
5329         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
5330         * lib/sys_times.in.h (includes): Include native header, if
5331         available.
5332         * lib/sys_utsname.in.h (includes): Likewise.
5333         * tests/test-sys_times.c (main): Enhance test.
5334
5335         fdutimensat: revert prior patch
5336         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
5337         utimens.h.
5338         Reported by Bruno Haible.
5339
5340 2009-12-30  Eric Blake  <ebb9@byu.net>
5341
5342         sys_wait: drop link-warning dependency
5343         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
5344         link-warning efforts.
5345         * lib/sys_wait.in.h: Likewise.
5346
5347         fdutimensat: remove bogus dependency
5348         * modules/fdutimensat (Depends-on): Drop inline.
5349
5350         unistd: fix typo
5351         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
5352
5353 2009-12-30  Bruno Haible  <bruno@clisp.org>
5354
5355         Fix compilation error with Solaris cc.
5356         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
5357         * lib/unicase/u16-is-invariant.c: Likewise.
5358         * lib/unicase/u32-is-invariant.c: Likewise.
5359         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
5360
5361 2009-12-30  Bruno Haible  <bruno@clisp.org>
5362
5363         Fix test crash.
5364         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
5365         locales.
5366         Reported by Simon Josefsson <simon@josefsson.org>.
5367
5368 2009-12-30  Bruno Haible  <bruno@clisp.org>
5369
5370         Fix compilation error on most platforms.
5371         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
5372         Reported by Simon Josefsson <simon@josefsson.org>
5373         and Nelson H. F. Beebe <beebe@math.utah.edu>.
5374
5375 2009-12-30  Eric Blake  <ebb9@byu.net>
5376
5377         futimens, utimensat: work around ntfs-3g bug
5378         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
5379         a ctime bug is present, and expand workaround to cover ntfs-3g.
5380         * lib/utimens.c (fdutimens, lutimens): Likewise.
5381         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
5382         (validate_timespec): Adjust return value.
5383         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
5384         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5385         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
5386
5387 2009-12-29  Eric Blake  <ebb9@byu.net>
5388
5389         link-warning: make usage consistent
5390         * modules/ctype (Depends-on): Add link-warning.
5391         (Makefile.am): Update rules accordingly.
5392         * modules/langinfo (Depends-on, Makefile.am): Likewise.
5393         * modules/locale (Depends-on, Makefile.am): Likewise.
5394         * modules/sys_file (Makefile.am): Likewise.
5395         * modules/getopt-posix (Makefile.am): Delete unused link warning
5396         efforts.
5397         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
5398         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
5399         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
5400         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
5401
5402         stdio: remove unused variables
5403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
5404         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
5405         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5406
5407         tests: test more substitute headers
5408         * modules/ctype-tests: New file.
5409         * modules/dirent-tests: Likewise.
5410         * modules/spawn-tests: Likewise.
5411         * modules/sys_file-tests: Likewise.
5412         * modules/sys_ioctl-tests: Likewise.
5413         * modules/sys_wait-tests: Likewise.
5414         * tests/test-ctype.c: Likewise.
5415         * tests/test-dirent.c: Likewise.
5416         * tests/test-spawn.c: Likewise.
5417         * tests/test-sys_file.c: Likewise.
5418         * tests/test-sys_ioctl.c: Likewise.
5419         * tests/test-sys_wait.c: Likewise.
5420         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
5421         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
5422         whether or not flock is in use.
5423
5424         tests: remove License section from module
5425         * modules/arpa_inet-tests: Remove unneeded section.
5426         * modules/byteswap-tests: Likewise.
5427         * modules/ceilf-tests: Likewise.
5428         * modules/ceill-tests: Likewise.
5429         * modules/crypto/des-tests: Likewise.
5430         * modules/crypto/gc-arcfour-tests: Likewise.
5431         * modules/crypto/gc-arctwo-tests: Likewise.
5432         * modules/crypto/gc-des-tests: Likewise.
5433         * modules/crypto/gc-hmac-md5-tests: Likewise.
5434         * modules/crypto/gc-hmac-sha1-tests: Likewise.
5435         * modules/crypto/gc-md2-tests: Likewise.
5436         * modules/crypto/gc-md4-tests: Likewise.
5437         * modules/crypto/gc-md5-tests: Likewise.
5438         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
5439         * modules/crypto/gc-rijndael-tests: Likewise.
5440         * modules/crypto/gc-sha1-tests: Likewise.
5441         * modules/crypto/gc-tests: Likewise.
5442         * modules/crypto/md2-tests: Likewise.
5443         * modules/crypto/md4-tests: Likewise.
5444         * modules/fcntl-h-tests: Likewise.
5445         * modules/floorf-tests: Likewise.
5446         * modules/floorl-tests: Likewise.
5447         * modules/frexp-nolibm-tests: Likewise.
5448         * modules/frexp-tests: Likewise.
5449         * modules/frexpl-nolibm-tests: Likewise.
5450         * modules/frexpl-tests: Likewise.
5451         * modules/getaddrinfo-tests: Likewise.
5452         * modules/inttypes-tests: Likewise.
5453         * modules/isfinite-tests: Likewise.
5454         * modules/isinf-tests: Likewise.
5455         * modules/ldexpl-tests: Likewise.
5456         * modules/locale-tests: Likewise.
5457         * modules/math-tests: Likewise.
5458         * modules/netdb-tests: Likewise.
5459         * modules/netinet_in-tests: Likewise.
5460         * modules/printf-frexp-tests: Likewise.
5461         * modules/printf-frexpl-tests: Likewise.
5462         * modules/priv-set-tests: Likewise.
5463         * modules/random_r-tests: Likewise.
5464         * modules/round-tests: Likewise.
5465         * modules/roundf-tests: Likewise.
5466         * modules/roundl-tests: Likewise.
5467         * modules/search-tests: Likewise.
5468         * modules/select-tests: Likewise.
5469         * modules/signal-tests: Likewise.
5470         * modules/stdbool-tests: Likewise.
5471         * modules/stddef-tests: Likewise.
5472         * modules/stdint-tests: Likewise.
5473         * modules/stdio-tests: Likewise.
5474         * modules/stdlib-tests: Likewise.
5475         * modules/string-tests: Likewise.
5476         * modules/strings-tests: Likewise.
5477         * modules/sys_select-tests: Likewise.
5478         * modules/sys_socket-tests: Likewise.
5479         * modules/sys_stat-tests: Likewise.
5480         * modules/sys_time-tests: Likewise.
5481         * modules/sys_utsname-tests: Likewise.
5482         * modules/sysexits-tests: Likewise.
5483         * modules/time-tests: Likewise.
5484         * modules/trunc-tests: Likewise.
5485         * modules/truncf-tests: Likewise.
5486         * modules/truncl-tests: Likewise.
5487         * modules/tsearch-tests: Likewise.
5488         * modules/unistd-tests: Likewise.
5489         * modules/wchar-tests: Likewise.
5490         * modules/wctype-tests: Likewise.
5491
5492         tests: fix license on several tests
5493         * tests/test-des.c: Update to GPLv3+.
5494         * tests/test-flock.c: Likewise.
5495         * tests/test-fsync.c: Likewise.
5496         * tests/test-futimens.h: Likewise.
5497         * tests/test-gc-arcfour.c: Likewise.
5498         * tests/test-gc-arctwo.c: Likewise.
5499         * tests/test-gc-des.c: Likewise.
5500         * tests/test-gc-hmac-md5.c: Likewise.
5501         * tests/test-gc-hmac-sha1.c: Likewise.
5502         * tests/test-gc-md2.c: Likewise.
5503         * tests/test-gc-md4.c: Likewise.
5504         * tests/test-gc-md5.c: Likewise.
5505         * tests/test-gc-pbkdf2-sha1.c: Likewise.
5506         * tests/test-gc-rijndael.c: Likewise.
5507         * tests/test-gc-sha1.c: Likewise.
5508         * tests/test-gc.c: Likewise.
5509         * tests/test-getcwd.c: Likewise.
5510         * tests/test-link.c: Likewise.
5511         * tests/test-link.h: Likewise.
5512         * tests/test-lutimens.h: Likewise.
5513         * tests/test-md2.c: Likewise.
5514         * tests/test-md4.c: Likewise.
5515         * tests/test-mkdir.h: Likewise.
5516         * tests/test-rename.c: Likewise.
5517         * tests/test-rename.h: Likewise.
5518         * tests/test-safe-alloc.c: Likewise.
5519         * tests/test-utimens-common.h: Likewise.
5520         * tests/test-utimens.h: Likewise.
5521
5522         maint: sync license texts
5523         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
5524         * doc/gpl-3.0.texi: Revert copyright year update.
5525         * doc/lgpl-3.0.texi: Likewise.
5526
5527 2009-12-29  Jim Meyering  <meyering@redhat.com>
5528
5529         update nearly all FSF copyright year lists to include 2009
5530         The files named by the following are exempted:
5531             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
5532               test -f "$dst" && { echo "$dst"; continue; }
5533               test -d "$dst" || continue
5534               echo "$dst"/$(basename "$src")
5535             done > exempt
5536             git ls-files tests/unictype >> exempt
5537         In the remaining files, convert to all-interval notation if
5538         - there is already at least one year interval like 2000-2003
5539         - the file is maintained by me
5540         - the file is in lib/uni*/, where that style already prevails
5541         Otherwise, use update-copyright's default.
5542
5543 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5544         and Eric Blake  <ebb9@byu.net>
5545
5546         tests: don't require debug system() to pass
5547         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
5548         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5549         * tests/test-unlink.h (test_unlink_func): Likewise.
5550         * tests/test-fstatat.c (main): ...into callers.
5551         * tests/test-lstat.c (main): Likewise.
5552         * tests/test-rmdir.c (main): Likewise.
5553         * tests/test-unlink.c (main): Likewise.
5554         * tests/test-unlinkat.c (main): Likewise.
5555         * tests/test-areadlink-with-size.c (main): Don't require a
5556         debug-only system call to pass, aiding cross-testing to mingw.
5557         * tests/test-areadlink.c (main): Likewise.
5558         * tests/test-areadlinkat-with-size.c (main): Likewise.
5559         * tests/test-areadlinkat.c (main): Likewise.
5560         * tests/test-canonicalize-lgpl.c (main): Likewise.
5561         * tests/test-canonicalize.c (main): Likewise.
5562         * tests/test-chown.c (main): Likewise.
5563         * tests/test-fchownat.c (main): Likewise.
5564         * tests/test-lchown.c (main): Likewise.
5565         * tests/test-fdutimensat.c (main): Likewise.
5566         * tests/test-futimens.c (main): Likewise.
5567         * tests/test-link.c (main): Likewise.
5568         * tests/test-linkat.c (main): Likewise.
5569         * tests/test-mkdir.c (main): Likewise.
5570         * tests/test-mkdirat.c (main): Likewise.
5571         * tests/test-mkfifo.c (main): Likewise.
5572         * tests/test-mkfifoat.c (main): Likewise.
5573         * tests/test-mknod.c (main): Likewise.
5574         * tests/test-readlink.c (main): Likewise.
5575         * tests/test-remove.c (main): Likewise.
5576         * tests/test-rename.c (main): Likewise.
5577         * tests/test-renameat.c (main): Likewise.
5578         * tests/test-symlink.c (main): Likewise.
5579         * tests/test-symlinkat.c (main): Likewise.
5580         * tests/test-utimens.c (main): Likewise.
5581         * tests/test-utimensat.c (main): Likewise.
5582
5583 2009-12-29  Simon Josefsson  <simon@josefsson.org>
5584
5585         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
5586         on $(UNUSED_PARAMETER_H) to avoid build failure.
5587
5588 2009-12-28  Jim Meyering  <meyering@redhat.com>
5589
5590         update-copyright: you may specify a max. line length other than 72
5591         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
5592
5593         maint: use consistent FSF copyright line syntax
5594         * lib/posixtm.c: Add missing comma in FSF copyright line.
5595         * lib/posixtm.h: Likewise.
5596         * lib/getugroups.c: Add missing ", Inc.".
5597
5598         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
5599         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
5600         FSF copyright line.  Remove trailing blanks.
5601
5602 2009-12-28  Eric Blake  <ebb9@byu.net>
5603
5604         test-dup2: reduce dependencies
5605         * modules/cloexec (Configure.ac): Set witness.
5606         * modules/dup2-tests (Depends-on): Drop cloexec.
5607         * tests/test-dup2.c (main): Skip portion of test if cloexec module
5608         not present.
5609         Suggested by Bruno Haible.
5610
5611 2009-12-26  Bruno Haible  <bruno@clisp.org>
5612
5613         Remove an unneeded dependency.
5614         * modules/fseterr (Depends-on): Remove dup2.
5615
5616 2009-12-26  Eric Blake  <ebb9@byu.net>
5617
5618         tests: use macros.h in more places
5619         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
5620         (ASSERT_STREAM): Provide default of stderr.
5621         * tests/test-dirent-safer.c: Include macros.h, using alternate
5622         stream for assertions.
5623         * tests/test-dup-safer.c: Likewise.
5624         * tests/test-freopen-safer.c: Likewise.
5625         * tests/test-getopt.c: Likewise.
5626         * tests/test-openat-safer.c: Likewise.
5627         * tests/test-pipe.c: Likewise.
5628         * tests/test-popen-safer.c: Likewise.
5629         * modules/dirent-safer-tests (Files): Include macros.h.
5630         * modules/unistd-safer-tests (Files): Likewise.
5631         * modules/freopen-safer-tests (Files): Likewise.
5632         * modules/getopt-posix-tests (Files): Likewise.
5633         * modules/openat-safer-tests (Files): Likewise.
5634         * modules/pipe-tests (Files): Likewise.
5635
5636 2009-12-26  Bruno Haible  <bruno@clisp.org>
5637
5638         javacomp: Portability fix.
5639         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
5640         that it also works on Solaris.
5641
5642 2009-12-26  Bruno Haible  <bruno@clisp.org>
5643
5644         localename: Fix storage allocation of gl_locale_name_thread's result.
5645         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
5646         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
5647         all platforms that have 'uselocale'.
5648         (gl_locale_name_thread_unsafe): New function, extracted from
5649         gl_locale_name_thread.
5650         (gl_locale_name_thread): Call struniq on all platforms that have
5651         'uselocale'.
5652         * tests/test-localename.c (test_locale_name_thread): Check that the
5653         resulting strings are permanently allocated.
5654         * modules/localename-tests (Depends-on): Add strdup.
5655
5656 2009-12-26  Bruno Haible  <bruno@clisp.org>
5657
5658         * tests/test-localename.c (categories): Fill in the strings.
5659
5660 2009-12-26  Jim Meyering  <meyering@redhat.com>
5661
5662         isdir: complete the removal of m4/isdir.m4
5663         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
5664
5665         isdir: clean up, since at least grep still uses it
5666         * lib/isdir.c: Include "isdir.h".
5667         (S_ISDIR): Remove now-unneeded definition.
5668         * modules/isdir (Files): Add lib/isdir.h.
5669         * lib/isdir.h: New file, with declaration.
5670         * m4/isdir.m4: Remove file -- unneeded.
5671
5672 2009-12-25  Bruno Haible  <bruno@clisp.org>
5673
5674         selinux-h: Make generated .h files standalone.
5675         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
5676         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
5677         * lib/se-selinux.in.h: Likewise.
5678         * modules/selinux-h (Depends-on): Add unused-parameter.
5679         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
5680         selinux/selinux.h and selinux/context.h.
5681         Suggested by Eric Blake.
5682
5683 2009-12-25  Bruno Haible  <bruno@clisp.org>
5684
5685         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
5686         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
5687         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
5688         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
5689         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
5690
5691 2009-12-24  Bruno Haible  <bruno@clisp.org>
5692
5693         openat: Fix warning.
5694         * lib/openat-proc.c: Include <unistd.h>.
5695
5696 2009-12-24  Bruno Haible  <bruno@clisp.org>
5697
5698         New module 'unused-parameter'.
5699         * build-aux/unused-parameter.h: New file, extracted from earlier
5700         gnulib-common.m4.
5701         * modules/unused-parameter: New file.
5702         * lib/unistr.h: Include unused-parameter.h.
5703         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
5704         _GL_UNUSED.
5705         * modules/unistr/base (Depends-on): Add unused-parameter.
5706
5707 2009-12-24  Bruno Haible  <bruno@clisp.org>
5708
5709         Add missing dependencies to 'extensions' module.
5710         * m4/extensions.m4: Add comment.
5711         * modules/accept4 (Depends-on): Add extensions.
5712         * modules/dup3 (Depends-on): Likewise.
5713         * modules/fcntl (Depends-on): Likewise.
5714         * modules/futimens (Depends-on): Likewise.
5715         * modules/mknod (Depends-on): Likewise.
5716         * modules/pipe2 (Depends-on): Likewise.
5717         * modules/stat-time (Depends-on): Likewise.
5718         * modules/strcasestr-simple (Depends-on): Likewise.
5719         * modules/strsignal (Depends-on): Likewise.
5720         * modules/utimensat (Depends-on): Likewise.
5721         * modules/localcharset (Depends-on): Likewise. Needed because of
5722         gl_FCNTL_O_FLAGS.
5723         * modules/wcrtomb (Depends-on): Likewise. Needed because of
5724         AC_TYPE_MBSTATE_T.
5725         * modules/wcsnrtombs (Depends-on): Likewise.
5726         * modules/wcsrtombs (Depends-on): Likewise.
5727
5728 2009-12-24  Bruno Haible  <bruno@clisp.org>
5729
5730         binary-io: Avoid gcc warning due to SET_BINARY.
5731         * lib/binary-io.h (SET_BINARY): Cast the result to void.
5732         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
5733
5734 2009-12-24  Bruno Haible  <bruno@clisp.org>
5735
5736         Avoid future namespace pollution on glibc systems.
5737         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
5738         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
5739         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
5740         glibc systems.
5741
5742 2009-12-24  Bruno Haible  <bruno@clisp.org>
5743
5744         Refactor common macros used in tests.
5745         * tests/macros.h: New file.
5746         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
5747         and/or <stdlib.h>, if appropriate.
5748         (ASSERT, SIZEOF): Remove macros.
5749         * tests/test-areadlink-with-size.c: Likewise.
5750         * tests/test-areadlinkat.c: Likewise.
5751         * tests/test-areadlinkat-with-size.c: Likewise.
5752         * tests/test-argmatch.c: Likewise.
5753         * tests/test-argv-iter.c: Likewise.
5754         * tests/test-array-mergesort.c: Likewise.
5755         * tests/test-array_list.c: Likewise.
5756         * tests/test-array_oset.c: Likewise.
5757         * tests/test-avltree_list.c: Likewise.
5758         * tests/test-avltree_oset.c: Likewise.
5759         * tests/test-avltreehash_list.c: Likewise.
5760         * tests/test-base64.c: Likewise.
5761         * tests/test-binary-io.c: Likewise.
5762         * tests/test-bitrotate.c: Likewise.
5763         * tests/test-btowc.c: Likewise.
5764         * tests/test-byteswap.c: Likewise.
5765         * tests/test-c-ctype.c: Likewise.
5766         * tests/test-c-stack.c: Likewise.
5767         * tests/test-c-strcasecmp.c: Likewise.
5768         * tests/test-c-strcasestr.c: Likewise.
5769         * tests/test-c-strncasecmp.c: Likewise.
5770         * tests/test-c-strstr.c: Likewise.
5771         * tests/test-canonicalize-lgpl.c: Likewise.
5772         * tests/test-canonicalize.c: Likewise.
5773         * tests/test-carray_list.c: Likewise.
5774         * tests/test-ceilf1.c: Likewise.
5775         * tests/test-ceilf2.c: Likewise.
5776         * tests/test-ceill.c: Likewise.
5777         * tests/test-chown.c: Likewise.
5778         * tests/test-cloexec.c: Likewise.
5779         * tests/test-copy-acl.c: Likewise.
5780         * tests/test-copy-file.c: Likewise.
5781         * tests/test-count-one-bits.c: Likewise.
5782         * tests/test-dprintf-posix.c: Likewise.
5783         * tests/test-dup2.c: Likewise.
5784         * tests/test-dup3.c: Likewise.
5785         * tests/test-duplocale.c: Likewise.
5786         * tests/test-fbufmode.c: Likewise.
5787         * tests/test-fchdir.c: Likewise.
5788         * tests/test-fchownat.c: Likewise.
5789         * tests/test-fcntl-safer.c: Likewise.
5790         * tests/test-fcntl.c: Likewise.
5791         * tests/test-fdopendir.c: Likewise.
5792         * tests/test-fdutimensat.c: Likewise.
5793         * tests/test-fflush2.c: Likewise.
5794         * tests/test-file-has-acl.c: Likewise.
5795         * tests/test-filevercmp.c: Likewise.
5796         * tests/test-flock.c: Likewise.
5797         * tests/test-floorf1.c: Likewise.
5798         * tests/test-floorf2.c: Likewise.
5799         * tests/test-floorl.c: Likewise.
5800         * tests/test-fnmatch.c: Likewise.
5801         * tests/test-fopen.h: Likewise.
5802         * tests/test-fpending.c: Likewise.
5803         * tests/test-fprintf-posix.c: Likewise.
5804         * tests/test-fpurge.c: Likewise.
5805         * tests/test-freadable.c: Likewise.
5806         * tests/test-freadahead.c: Likewise.
5807         * tests/test-freading.c: Likewise.
5808         * tests/test-freadptr.c: Likewise.
5809         * tests/test-freadptr2.c: Likewise.
5810         * tests/test-freadseek.c: Likewise.
5811         * tests/test-freopen.c: Likewise.
5812         * tests/test-frexp.c: Likewise.
5813         * tests/test-frexpl.c: Likewise.
5814         * tests/test-fseek.c: Likewise.
5815         * tests/test-fseeko.c: Likewise.
5816         * tests/test-fstatat.c: Likewise.
5817         * tests/test-fstrcmp.c: Likewise.
5818         * tests/test-fsync.c: Likewise.
5819         * tests/test-ftell.c: Likewise.
5820         * tests/test-ftello.c: Likewise.
5821         * tests/test-func.c: Likewise.
5822         * tests/test-futimens.c: Likewise.
5823         * tests/test-fwritable.c: Likewise.
5824         * tests/test-fwriting.c: Likewise.
5825         * tests/test-getcwd.c: Likewise.
5826         * tests/test-getdate.c: Likewise.
5827         * tests/test-getdelim.c: Likewise.
5828         * tests/test-getdtablesize.c: Likewise.
5829         * tests/test-getgroups.c: Likewise.
5830         * tests/test-getline.c: Likewise.
5831         * tests/test-getndelim2.c: Likewise.
5832         * tests/test-glob.c: Likewise.
5833         * tests/test-hash.c: Likewise.
5834         * tests/test-i-ring.c: Likewise.
5835         * tests/test-iconv-utf.c: Likewise.
5836         * tests/test-iconv.c: Likewise.
5837         * tests/test-idpriv-drop.c: Likewise.
5838         * tests/test-idpriv-droptemp.c: Likewise.
5839         * tests/test-inet_ntop.c: Likewise.
5840         * tests/test-inet_pton.c: Likewise.
5841         * tests/test-isblank.c: Likewise.
5842         * tests/test-isfinite.c: Likewise.
5843         * tests/test-isinf.c: Likewise.
5844         * tests/test-isnan.c: Likewise.
5845         * tests/test-isnand.h: Likewise.
5846         * tests/test-isnanf.h: Likewise.
5847         * tests/test-isnanl.h: Likewise.
5848         * tests/test-lchown.c: Likewise.
5849         * tests/test-ldexpl.c: Likewise.
5850         * tests/test-link.c: Likewise.
5851         * tests/test-linkat.c: Likewise.
5852         * tests/test-linked_list.c: Likewise.
5853         * tests/test-linkedhash_list.c: Likewise.
5854         * tests/test-localename.c: Likewise.
5855         * tests/test-lseek.c: Likewise.
5856         * tests/test-lstat.c: Likewise.
5857         * tests/test-mbmemcasecmp.c: Likewise.
5858         * tests/test-mbmemcasecoll.c: Likewise.
5859         * tests/test-mbrtowc.c: Likewise.
5860         * tests/test-mbscasecmp.c: Likewise.
5861         * tests/test-mbscasestr1.c: Likewise.
5862         * tests/test-mbscasestr2.c: Likewise.
5863         * tests/test-mbscasestr3.c: Likewise.
5864         * tests/test-mbscasestr4.c: Likewise.
5865         * tests/test-mbschr.c: Likewise.
5866         * tests/test-mbscspn.c: Likewise.
5867         * tests/test-mbsinit.c: Likewise.
5868         * tests/test-mbsncasecmp.c: Likewise.
5869         * tests/test-mbsnrtowcs.c: Likewise.
5870         * tests/test-mbspbrk.c: Likewise.
5871         * tests/test-mbspcasecmp.c: Likewise.
5872         * tests/test-mbsrchr.c: Likewise.
5873         * tests/test-mbsrtowcs.c: Likewise.
5874         * tests/test-mbsspn.c: Likewise.
5875         * tests/test-mbsstr1.c: Likewise.
5876         * tests/test-mbsstr2.c: Likewise.
5877         * tests/test-mbsstr3.c: Likewise.
5878         * tests/test-memchr.c: Likewise.
5879         * tests/test-memchr2.c: Likewise.
5880         * tests/test-memcmp.c: Likewise.
5881         * tests/test-memmem.c: Likewise.
5882         * tests/test-memrchr.c: Likewise.
5883         * tests/test-mkdir.c: Likewise.
5884         * tests/test-mkdirat.c: Likewise.
5885         * tests/test-mkfifo.c: Likewise.
5886         * tests/test-mkfifoat.c: Likewise.
5887         * tests/test-mknod.c: Likewise.
5888         * tests/test-nanosleep.c: Likewise.
5889         * tests/test-nl_langinfo.c: Likewise.
5890         * tests/test-obstack-printf.c: Likewise.
5891         * tests/test-open.c: Likewise.
5892         * tests/test-openat.c: Likewise.
5893         * tests/test-pipe-filter-gi1.c: Likewise.
5894         * tests/test-pipe-filter-gi2-main.c: Likewise.
5895         * tests/test-pipe-filter-ii1.c: Likewise.
5896         * tests/test-pipe-filter-ii2-main.c: Likewise.
5897         * tests/test-pipe2.c: Likewise.
5898         * tests/test-popen.h: Likewise.
5899         * tests/test-posixtm.c: Likewise.
5900         * tests/test-pread.c: Likewise.
5901         * tests/test-printf-frexp.c: Likewise.
5902         * tests/test-printf-frexpl.c: Likewise.
5903         * tests/test-printf-posix.c: Likewise.
5904         * tests/test-priv-set.c: Likewise.
5905         * tests/test-quotearg.c: Likewise.
5906         * tests/test-random_r.c: Likewise.
5907         * tests/test-rawmemchr.c: Likewise.
5908         * tests/test-rbtree_list.c: Likewise.
5909         * tests/test-rbtree_oset.c: Likewise.
5910         * tests/test-rbtreehash_list.c: Likewise.
5911         * tests/test-readlink.c: Likewise.
5912         * tests/test-remove.c: Likewise.
5913         * tests/test-rename.c: Likewise.
5914         * tests/test-renameat.c: Likewise.
5915         * tests/test-rmdir.c: Likewise.
5916         * tests/test-round1.c: Likewise.
5917         * tests/test-roundf1.c: Likewise.
5918         * tests/test-roundl.c: Likewise.
5919         * tests/test-safe-alloc.c: Likewise.
5920         * tests/test-sameacls.c: Likewise.
5921         * tests/test-set-mode-acl.c: Likewise.
5922         * tests/test-setenv.c: Likewise.
5923         * tests/test-sigaction.c: Likewise.
5924         * tests/test-signbit.c: Likewise.
5925         * tests/test-sleep.c: Likewise.
5926         * tests/test-snprintf-posix.c: Likewise.
5927         * tests/test-snprintf.c: Likewise.
5928         * tests/test-sprintf-posix.c: Likewise.
5929         * tests/test-stat-time.c: Likewise.
5930         * tests/test-stat.c: Likewise.
5931         * tests/test-strcasestr.c: Likewise.
5932         * tests/test-strchrnul.c: Likewise.
5933         * tests/test-strerror.c: Likewise.
5934         * tests/test-striconv.c: Likewise.
5935         * tests/test-striconveh.c: Likewise.
5936         * tests/test-striconveha.c: Likewise.
5937         * tests/test-strsignal.c: Likewise.
5938         * tests/test-strstr.c: Likewise.
5939         * tests/test-strtod.c: Likewise.
5940         * tests/test-strverscmp.c: Likewise.
5941         * tests/test-symlink.c: Likewise.
5942         * tests/test-symlinkat.c: Likewise.
5943         * tests/test-trunc1.c: Likewise.
5944         * tests/test-trunc2.c: Likewise.
5945         * tests/test-truncf1.c: Likewise.
5946         * tests/test-truncf2.c: Likewise.
5947         * tests/test-truncl.c: Likewise.
5948         * tests/test-uname.c: Likewise.
5949         * tests/test-unlink.c: Likewise.
5950         * tests/test-unlinkat.c: Likewise.
5951         * tests/test-unsetenv.c: Likewise.
5952         * tests/test-usleep.c: Likewise.
5953         * tests/test-utimens.c: Likewise.
5954         * tests/test-utimensat.c: Likewise.
5955         * tests/test-vasnprintf-posix.c: Likewise.
5956         * tests/test-vasnprintf-posix2.c: Likewise.
5957         * tests/test-vasnprintf.c: Likewise.
5958         * tests/test-vasprintf-posix.c: Likewise.
5959         * tests/test-vasprintf.c: Likewise.
5960         * tests/test-vdprintf-posix.c: Likewise.
5961         * tests/test-vfprintf-posix.c: Likewise.
5962         * tests/test-vprintf-posix.c: Likewise.
5963         * tests/test-vsnprintf-posix.c: Likewise.
5964         * tests/test-vsnprintf.c: Likewise.
5965         * tests/test-vsprintf-posix.c: Likewise.
5966         * tests/test-wcrtomb.c: Likewise.
5967         * tests/test-wcsnrtombs.c: Likewise.
5968         * tests/test-wcsrtombs.c: Likewise.
5969         * tests/test-wctype.c: Likewise.
5970         * tests/test-wcwidth.c: Likewise.
5971         * tests/test-xfprintf-posix.c: Likewise.
5972         * tests/test-xmemdup0.c: Likewise.
5973         * tests/test-xprintf-posix.c: Likewise.
5974         * tests/test-xvasprintf.c: Likewise.
5975         * tests/unicase/test-locale-language.c: Likewise.
5976         * tests/unicase/test-mapping-part1.h: Likewise.
5977         * tests/unicase/test-predicate-part1.h: Likewise.
5978         * tests/unicase/test-u8-casecmp.c: Likewise.
5979         * tests/unicase/test-u8-casecoll.c: Likewise.
5980         * tests/unicase/test-u8-casefold.c: Likewise.
5981         * tests/unicase/test-u8-is-cased.c: Likewise.
5982         * tests/unicase/test-u8-is-casefolded.c: Likewise.
5983         * tests/unicase/test-u8-is-lowercase.c: Likewise.
5984         * tests/unicase/test-u8-is-titlecase.c: Likewise.
5985         * tests/unicase/test-u8-is-uppercase.c: Likewise.
5986         * tests/unicase/test-u8-tolower.c: Likewise.
5987         * tests/unicase/test-u8-totitle.c: Likewise.
5988         * tests/unicase/test-u8-toupper.c: Likewise.
5989         * tests/unicase/test-u16-casecmp.c: Likewise.
5990         * tests/unicase/test-u16-casecoll.c: Likewise.
5991         * tests/unicase/test-u16-casefold.c: Likewise.
5992         * tests/unicase/test-u16-is-cased.c: Likewise.
5993         * tests/unicase/test-u16-is-casefolded.c: Likewise.
5994         * tests/unicase/test-u16-is-lowercase.c: Likewise.
5995         * tests/unicase/test-u16-is-titlecase.c: Likewise.
5996         * tests/unicase/test-u16-is-uppercase.c: Likewise.
5997         * tests/unicase/test-u16-tolower.c: Likewise.
5998         * tests/unicase/test-u16-totitle.c: Likewise.
5999         * tests/unicase/test-u16-toupper.c: Likewise.
6000         * tests/unicase/test-u32-casecmp.c: Likewise.
6001         * tests/unicase/test-u32-casecoll.c: Likewise.
6002         * tests/unicase/test-u32-casefold.c: Likewise.
6003         * tests/unicase/test-u32-is-cased.c: Likewise.
6004         * tests/unicase/test-u32-is-casefolded.c: Likewise.
6005         * tests/unicase/test-u32-is-lowercase.c: Likewise.
6006         * tests/unicase/test-u32-is-titlecase.c: Likewise.
6007         * tests/unicase/test-u32-is-uppercase.c: Likewise.
6008         * tests/unicase/test-u32-tolower.c: Likewise.
6009         * tests/unicase/test-u32-totitle.c: Likewise.
6010         * tests/unicase/test-u32-toupper.c: Likewise.
6011         * tests/unicase/test-ulc-casecmp.c: Likewise.
6012         * tests/unicase/test-ulc-casecoll.c: Likewise.
6013         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
6014         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
6015         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
6016         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
6017         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
6018         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
6019         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
6020         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
6021         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
6022         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
6023         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
6024         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
6025         * tests/unictype/test-bidi_byname.c: Likewise.
6026         * tests/unictype/test-bidi_name.c: Likewise.
6027         * tests/unictype/test-bidi_of.c: Likewise.
6028         * tests/unictype/test-bidi_test.c: Likewise.
6029         * tests/unictype/test-block_list.c: Likewise.
6030         * tests/unictype/test-block_of.c: Likewise.
6031         * tests/unictype/test-block_test.c: Likewise.
6032         * tests/unictype/test-categ_and.c: Likewise.
6033         * tests/unictype/test-categ_and_not.c: Likewise.
6034         * tests/unictype/test-categ_byname.c: Likewise.
6035         * tests/unictype/test-categ_name.c: Likewise.
6036         * tests/unictype/test-categ_none.c: Likewise.
6037         * tests/unictype/test-categ_of.c: Likewise.
6038         * tests/unictype/test-categ_or.c: Likewise.
6039         * tests/unictype/test-categ_test_withtable.c: Likewise.
6040         * tests/unictype/test-combining.c: Likewise.
6041         * tests/unictype/test-decdigit.c: Likewise.
6042         * tests/unictype/test-digit.c: Likewise.
6043         * tests/unictype/test-mirror.c: Likewise.
6044         * tests/unictype/test-numeric.c: Likewise.
6045         * tests/unictype/test-pr_byname.c: Likewise.
6046         * tests/unictype/test-pr_test.c: Likewise.
6047         * tests/unictype/test-predicate-part1.h: Likewise.
6048         * tests/unictype/test-scripts.c: Likewise.
6049         * tests/unictype/test-sy_c_ident.c: Likewise.
6050         * tests/unictype/test-sy_java_ident.c: Likewise.
6051         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
6052         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
6053         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
6054         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
6055         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
6056         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
6057         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
6058         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
6059         * tests/uninorm/test-canonical-decomposition.c: Likewise.
6060         * tests/uninorm/test-compat-decomposition.c: Likewise.
6061         * tests/uninorm/test-composition.c: Likewise.
6062         * tests/uninorm/test-decomposing-form.c: Likewise.
6063         * tests/uninorm/test-decomposition.c: Likewise.
6064         * tests/uninorm/test-u8-nfc.c: Likewise.
6065         * tests/uninorm/test-u8-nfd.c: Likewise.
6066         * tests/uninorm/test-u8-nfkc.c: Likewise.
6067         * tests/uninorm/test-u8-nfkd.c: Likewise.
6068         * tests/uninorm/test-u8-normcmp.c: Likewise.
6069         * tests/uninorm/test-u8-normcoll.c: Likewise.
6070         * tests/uninorm/test-u16-nfc.c: Likewise.
6071         * tests/uninorm/test-u16-nfd.c: Likewise.
6072         * tests/uninorm/test-u16-nfkc.c: Likewise.
6073         * tests/uninorm/test-u16-nfkd.c: Likewise.
6074         * tests/uninorm/test-u16-normcmp.c: Likewise.
6075         * tests/uninorm/test-u16-normcoll.c: Likewise.
6076         * tests/uninorm/test-u32-nfc.c: Likewise.
6077         * tests/uninorm/test-u32-nfd.c: Likewise.
6078         * tests/uninorm/test-u32-nfkc.c: Likewise.
6079         * tests/uninorm/test-u32-nfkd.c: Likewise.
6080         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6081         * tests/uninorm/test-u32-normcmp.c: Likewise.
6082         * tests/uninorm/test-u32-normcoll.c: Likewise.
6083         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
6084         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
6085         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
6086         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
6087         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
6088         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
6089         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6090         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6091         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
6092         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
6093         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
6094         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
6095         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
6096         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
6097         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
6098         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6099         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
6100         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
6101         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
6102         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
6103         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6104         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6105         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
6106         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
6107         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
6108         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
6109         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
6110         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6111         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6112         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
6113         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
6114         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
6115         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
6116         * tests/uniwidth/test-u8-strwidth.c: Likewise.
6117         * tests/uniwidth/test-u8-width.c: Likewise.
6118         * tests/uniwidth/test-u16-strwidth.c: Likewise.
6119         * tests/uniwidth/test-u16-width.c: Likewise.
6120         * tests/uniwidth/test-u32-strwidth.c: Likewise.
6121         * tests/uniwidth/test-u32-width.c: Likewise.
6122         * tests/uniwidth/test-uc_width.c: Likewise.
6123         * tests/uniwidth/test-uc_width2.c: Likewise.
6124         * modules/acl-tests (Files): Add tests/macros.h.
6125         * modules/areadlink-tests (Files): Likewise.
6126         * modules/areadlink-with-size-tests (Files): Likewise.
6127         * modules/areadlinkat-tests (Files): Likewise.
6128         * modules/areadlinkat-with-size-tests (Files): Likewise.
6129         * modules/argmatch-tests (Files): Likewise.
6130         * modules/argv-iter-tests (Files): Likewise.
6131         * modules/array-list-tests (Files): Likewise.
6132         * modules/array-mergesort-tests (Files): Likewise.
6133         * modules/array-oset-tests (Files): Likewise.
6134         * modules/avltree-list-tests (Files): Likewise.
6135         * modules/avltree-oset-tests (Files): Likewise.
6136         * modules/avltreehash-list-tests (Files): Likewise.
6137         * modules/base64-tests (Files): Likewise.
6138         * modules/binary-io-tests (Files): Likewise.
6139         * modules/bitrotate-tests (Files): Likewise.
6140         * modules/btowc-tests (Files): Likewise.
6141         * modules/byteswap-tests (Files): Likewise.
6142         * modules/c-ctype-tests (Files): Likewise.
6143         * modules/c-stack-tests (Files): Likewise.
6144         * modules/c-strcase-tests (Files): Likewise.
6145         * modules/c-strcasestr-tests (Files): Likewise.
6146         * modules/c-strstr-tests (Files): Likewise.
6147         * modules/canonicalize-lgpl-tests (Files): Likewise.
6148         * modules/canonicalize-tests (Files): Likewise.
6149         * modules/carray-list-tests (Files): Likewise.
6150         * modules/ceilf-tests (Files): Likewise.
6151         * modules/ceill-tests (Files): Likewise.
6152         * modules/chown-tests (Files): Likewise.
6153         * modules/cloexec-tests (Files): Likewise.
6154         * modules/copy-file-tests (Files): Likewise.
6155         * modules/count-one-bits-tests (Files): Likewise.
6156         * modules/dprintf-posix-tests (Files): Likewise.
6157         * modules/dup2-tests (Files): Likewise.
6158         * modules/dup3-tests (Files): Likewise.
6159         * modules/duplocale-tests (Files): Likewise.
6160         * modules/fbufmode-tests (Files): Likewise.
6161         * modules/fchdir-tests (Files): Likewise.
6162         * modules/fcntl-safer-tests (Files): Likewise.
6163         * modules/fcntl-tests (Files): Likewise.
6164         * modules/fdopendir-tests (Files): Likewise.
6165         * modules/fdutimensat-tests (Files): Likewise.
6166         * modules/fflush-tests (Files): Likewise.
6167         * modules/filevercmp-tests (Files): Likewise.
6168         * modules/flock-tests (Files): Likewise.
6169         * modules/floorf-tests (Files): Likewise.
6170         * modules/floorl-tests (Files): Likewise.
6171         * modules/fnmatch-tests (Files): Likewise.
6172         * modules/fopen-safer-tests (Files): Likewise.
6173         * modules/fopen-tests (Files): Likewise.
6174         * modules/fpending-tests (Files): Likewise.
6175         * modules/fprintf-posix-tests (Files): Likewise.
6176         * modules/fpurge-tests (Files): Likewise.
6177         * modules/freadable-tests (Files): Likewise.
6178         * modules/freadahead-tests (Files): Likewise.
6179         * modules/freading-tests (Files): Likewise.
6180         * modules/freadptr-tests (Files): Likewise.
6181         * modules/freadseek-tests (Files): Likewise.
6182         * modules/freopen-tests (Files): Likewise.
6183         * modules/frexp-nolibm-tests (Files): Likewise.
6184         * modules/frexp-tests (Files): Likewise.
6185         * modules/frexpl-nolibm-tests (Files): Likewise.
6186         * modules/frexpl-tests (Files): Likewise.
6187         * modules/fseek-tests (Files): Likewise.
6188         * modules/fseeko-tests (Files): Likewise.
6189         * modules/fstrcmp-tests (Files): Likewise.
6190         * modules/fsync-tests (Files): Likewise.
6191         * modules/ftell-tests (Files): Likewise.
6192         * modules/ftello-tests (Files): Likewise.
6193         * modules/func-tests (Files): Likewise.
6194         * modules/futimens-tests (Files): Likewise.
6195         * modules/fwritable-tests (Files): Likewise.
6196         * modules/fwriting-tests (Files): Likewise.
6197         * modules/getcwd-tests (Files): Likewise.
6198         * modules/getdate-tests (Files): Likewise.
6199         * modules/getdelim-tests (Files): Likewise.
6200         * modules/getdtablesize-tests (Files): Likewise.
6201         * modules/getgroups-tests (Files): Likewise.
6202         * modules/getline-tests (Files): Likewise.
6203         * modules/getndelim2-tests (Files): Likewise.
6204         * modules/glob-tests (Files): Likewise.
6205         * modules/hash-tests (Files): Likewise.
6206         * modules/i-ring-tests (Files): Likewise.
6207         * modules/iconv-tests (Files): Likewise.
6208         * modules/iconv_open-utf-tests (Files): Likewise.
6209         * modules/idpriv-drop-tests (Files): Likewise.
6210         * modules/idpriv-droptemp-tests (Files): Likewise.
6211         * modules/inet_ntop-tests (Files): Likewise.
6212         * modules/inet_pton-tests (Files): Likewise.
6213         * modules/isblank-tests (Files): Likewise.
6214         * modules/isfinite-tests (Files): Likewise.
6215         * modules/isinf-tests (Files): Likewise.
6216         * modules/isnan-tests (Files): Likewise.
6217         * modules/isnand-nolibm-tests (Files): Likewise.
6218         * modules/isnand-tests (Files): Likewise.
6219         * modules/isnanf-nolibm-tests (Files): Likewise.
6220         * modules/isnanf-tests (Files): Likewise.
6221         * modules/isnanl-nolibm-tests (Files): Likewise.
6222         * modules/isnanl-tests (Files): Likewise.
6223         * modules/lchown-tests (Files): Likewise.
6224         * modules/ldexpl-tests (Files): Likewise.
6225         * modules/link-tests (Files): Likewise.
6226         * modules/linkat-tests (Files): Likewise.
6227         * modules/linked-list-tests (Files): Likewise.
6228         * modules/linkedhash-list-tests (Files): Likewise.
6229         * modules/localename-tests (Files): Likewise.
6230         * modules/lseek-tests (Files): Likewise.
6231         * modules/lstat-tests (Files): Likewise.
6232         * modules/mbmemcasecmp-tests (Files): Likewise.
6233         * modules/mbmemcasecoll-tests (Files): Likewise.
6234         * modules/mbrtowc-tests (Files): Likewise.
6235         * modules/mbscasecmp-tests (Files): Likewise.
6236         * modules/mbscasestr-tests (Files): Likewise.
6237         * modules/mbschr-tests (Files): Likewise.
6238         * modules/mbscspn-tests (Files): Likewise.
6239         * modules/mbsinit-tests (Files): Likewise.
6240         * modules/mbsncasecmp-tests (Files): Likewise.
6241         * modules/mbsnrtowcs-tests (Files): Likewise.
6242         * modules/mbspbrk-tests (Files): Likewise.
6243         * modules/mbspcasecmp-tests (Files): Likewise.
6244         * modules/mbsrchr-tests (Files): Likewise.
6245         * modules/mbsrtowcs-tests (Files): Likewise.
6246         * modules/mbsspn-tests (Files): Likewise.
6247         * modules/mbsstr-tests (Files): Likewise.
6248         * modules/memchr-tests (Files): Likewise.
6249         * modules/memchr2-tests (Files): Likewise.
6250         * modules/memcmp-tests (Files): Likewise.
6251         * modules/memmem-tests (Files): Likewise.
6252         * modules/memrchr-tests (Files): Likewise.
6253         * modules/mkdir-tests (Files): Likewise.
6254         * modules/mkfifo-tests (Files): Likewise.
6255         * modules/mkfifoat-tests (Files): Likewise.
6256         * modules/mknod-tests (Files): Likewise.
6257         * modules/nanosleep-tests (Files): Likewise.
6258         * modules/nl_langinfo-tests (Files): Likewise.
6259         * modules/obstack-printf-tests (Files): Likewise.
6260         * modules/open-tests (Files): Likewise.
6261         * modules/openat-tests (Files): Likewise.
6262         * modules/pipe-filter-gi-tests (Files): Likewise.
6263         * modules/pipe-filter-ii-tests (Files): Likewise.
6264         * modules/pipe2-tests (Files): Likewise.
6265         * modules/popen-safer-tests (Files): Likewise.
6266         * modules/popen-tests (Files): Likewise.
6267         * modules/posixtm-tests (Files): Likewise.
6268         * modules/pread-tests (Files): Likewise.
6269         * modules/printf-frexp-tests (Files): Likewise.
6270         * modules/printf-frexpl-tests (Files): Likewise.
6271         * modules/printf-posix-tests (Files): Likewise.
6272         * modules/priv-set-tests (Files): Likewise.
6273         * modules/quotearg-tests (Files): Likewise.
6274         * modules/random_r-tests (Files): Likewise.
6275         * modules/rawmemchr-tests (Files): Likewise.
6276         * modules/rbtree-list-tests (Files): Likewise.
6277         * modules/rbtree-oset-tests (Files): Likewise.
6278         * modules/rbtreehash-list-tests (Files): Likewise.
6279         * modules/readlink-tests (Files): Likewise.
6280         * modules/remove-tests (Files): Likewise.
6281         * modules/rename-tests (Files): Likewise.
6282         * modules/renameat-tests (Files): Likewise.
6283         * modules/rmdir-tests (Files): Likewise.
6284         * modules/round-tests (Files): Likewise.
6285         * modules/roundf-tests (Files): Likewise.
6286         * modules/roundl-tests (Files): Likewise.
6287         * modules/safe-alloc-tests (Files): Likewise.
6288         * modules/setenv-tests (Files): Likewise.
6289         * modules/sigaction-tests (Files): Likewise.
6290         * modules/signbit-tests (Files): Likewise.
6291         * modules/sleep-tests (Files): Likewise.
6292         * modules/snprintf-posix-tests (Files): Likewise.
6293         * modules/snprintf-tests (Files): Likewise.
6294         * modules/sprintf-posix-tests (Files): Likewise.
6295         * modules/stat-tests (Files): Likewise.
6296         * modules/stat-time-tests (Files): Likewise.
6297         * modules/strcasestr-tests (Files): Likewise.
6298         * modules/strchrnul-tests (Files): Likewise.
6299         * modules/strerror-tests (Files): Likewise.
6300         * modules/striconv-tests (Files): Likewise.
6301         * modules/striconveh-tests (Files): Likewise.
6302         * modules/striconveha-tests (Files): Likewise.
6303         * modules/strsignal-tests (Files): Likewise.
6304         * modules/strstr-tests (Files): Likewise.
6305         * modules/strtod-tests (Files): Likewise.
6306         * modules/strverscmp-tests (Files): Likewise.
6307         * modules/symlink-tests (Files): Likewise.
6308         * modules/symlinkat-tests (Files): Likewise.
6309         * modules/trunc-tests (Files): Likewise.
6310         * modules/truncf-tests (Files): Likewise.
6311         * modules/truncl-tests (Files): Likewise.
6312         * modules/uname-tests (Files): Likewise.
6313         * modules/unicase/cased-tests (Files): Likewise.
6314         * modules/unicase/ignorable-tests (Files): Likewise.
6315         * modules/unicase/locale-language-tests (Files): Likewise.
6316         * modules/unicase/tolower-tests (Files): Likewise.
6317         * modules/unicase/totitle-tests (Files): Likewise.
6318         * modules/unicase/toupper-tests (Files): Likewise.
6319         * modules/unicase/u8-casecmp-tests (Files): Likewise.
6320         * modules/unicase/u8-casecoll-tests (Files): Likewise.
6321         * modules/unicase/u8-casefold-tests (Files): Likewise.
6322         * modules/unicase/u8-is-cased-tests (Files): Likewise.
6323         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
6324         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
6325         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
6326         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
6327         * modules/unicase/u8-tolower-tests (Files): Likewise.
6328         * modules/unicase/u8-totitle-tests (Files): Likewise.
6329         * modules/unicase/u8-toupper-tests (Files): Likewise.
6330         * modules/unicase/u16-casecmp-tests (Files): Likewise.
6331         * modules/unicase/u16-casecoll-tests (Files): Likewise.
6332         * modules/unicase/u16-casefold-tests (Files): Likewise.
6333         * modules/unicase/u16-is-cased-tests (Files): Likewise.
6334         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
6335         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
6336         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
6337         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
6338         * modules/unicase/u16-tolower-tests (Files): Likewise.
6339         * modules/unicase/u16-totitle-tests (Files): Likewise.
6340         * modules/unicase/u16-toupper-tests (Files): Likewise.
6341         * modules/unicase/u32-casecmp-tests (Files): Likewise.
6342         * modules/unicase/u32-casecoll-tests (Files): Likewise.
6343         * modules/unicase/u32-casefold-tests (Files): Likewise.
6344         * modules/unicase/u32-is-cased-tests (Files): Likewise.
6345         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
6346         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
6347         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
6348         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
6349         * modules/unicase/u32-tolower-tests (Files): Likewise.
6350         * modules/unicase/u32-totitle-tests (Files): Likewise.
6351         * modules/unicase/u32-toupper-tests (Files): Likewise.
6352         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
6353         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
6354         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
6355         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
6356         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
6357         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
6358         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
6359         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
6360         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
6361         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
6362         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
6363         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
6364         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
6365         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
6366         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
6367         * modules/unictype/bidicategory-name-tests (Files): Likewise.
6368         * modules/unictype/bidicategory-of-tests (Files): Likewise.
6369         * modules/unictype/bidicategory-test-tests (Files): Likewise.
6370         * modules/unictype/block-list-tests (Files): Likewise.
6371         * modules/unictype/block-of-tests (Files): Likewise.
6372         * modules/unictype/block-test-tests (Files): Likewise.
6373         * modules/unictype/category-C-tests (Files): Likewise.
6374         * modules/unictype/category-Cc-tests (Files): Likewise.
6375         * modules/unictype/category-Cf-tests (Files): Likewise.
6376         * modules/unictype/category-Cn-tests (Files): Likewise.
6377         * modules/unictype/category-Co-tests (Files): Likewise.
6378         * modules/unictype/category-Cs-tests (Files): Likewise.
6379         * modules/unictype/category-L-tests (Files): Likewise.
6380         * modules/unictype/category-Ll-tests (Files): Likewise.
6381         * modules/unictype/category-Lm-tests (Files): Likewise.
6382         * modules/unictype/category-Lo-tests (Files): Likewise.
6383         * modules/unictype/category-Lt-tests (Files): Likewise.
6384         * modules/unictype/category-Lu-tests (Files): Likewise.
6385         * modules/unictype/category-M-tests (Files): Likewise.
6386         * modules/unictype/category-Mc-tests (Files): Likewise.
6387         * modules/unictype/category-Me-tests (Files): Likewise.
6388         * modules/unictype/category-Mn-tests (Files): Likewise.
6389         * modules/unictype/category-N-tests (Files): Likewise.
6390         * modules/unictype/category-Nd-tests (Files): Likewise.
6391         * modules/unictype/category-Nl-tests (Files): Likewise.
6392         * modules/unictype/category-No-tests (Files): Likewise.
6393         * modules/unictype/category-P-tests (Files): Likewise.
6394         * modules/unictype/category-Pc-tests (Files): Likewise.
6395         * modules/unictype/category-Pd-tests (Files): Likewise.
6396         * modules/unictype/category-Pe-tests (Files): Likewise.
6397         * modules/unictype/category-Pf-tests (Files): Likewise.
6398         * modules/unictype/category-Pi-tests (Files): Likewise.
6399         * modules/unictype/category-Po-tests (Files): Likewise.
6400         * modules/unictype/category-Ps-tests (Files): Likewise.
6401         * modules/unictype/category-S-tests (Files): Likewise.
6402         * modules/unictype/category-Sc-tests (Files): Likewise.
6403         * modules/unictype/category-Sk-tests (Files): Likewise.
6404         * modules/unictype/category-Sm-tests (Files): Likewise.
6405         * modules/unictype/category-So-tests (Files): Likewise.
6406         * modules/unictype/category-Z-tests (Files): Likewise.
6407         * modules/unictype/category-Zl-tests (Files): Likewise.
6408         * modules/unictype/category-Zp-tests (Files): Likewise.
6409         * modules/unictype/category-Zs-tests (Files): Likewise.
6410         * modules/unictype/category-and-not-tests (Files): Likewise.
6411         * modules/unictype/category-and-tests (Files): Likewise.
6412         * modules/unictype/category-byname-tests (Files): Likewise.
6413         * modules/unictype/category-name-tests (Files): Likewise.
6414         * modules/unictype/category-none-tests (Files): Likewise.
6415         * modules/unictype/category-of-tests (Files): Likewise.
6416         * modules/unictype/category-or-tests (Files): Likewise.
6417         * modules/unictype/category-test-withtable-tests (Files): Likewise.
6418         * modules/unictype/combining-class-tests (Files): Likewise.
6419         * modules/unictype/ctype-alnum-tests (Files): Likewise.
6420         * modules/unictype/ctype-alpha-tests (Files): Likewise.
6421         * modules/unictype/ctype-blank-tests (Files): Likewise.
6422         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
6423         * modules/unictype/ctype-digit-tests (Files): Likewise.
6424         * modules/unictype/ctype-graph-tests (Files): Likewise.
6425         * modules/unictype/ctype-lower-tests (Files): Likewise.
6426         * modules/unictype/ctype-print-tests (Files): Likewise.
6427         * modules/unictype/ctype-punct-tests (Files): Likewise.
6428         * modules/unictype/ctype-space-tests (Files): Likewise.
6429         * modules/unictype/ctype-upper-tests (Files): Likewise.
6430         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
6431         * modules/unictype/decimal-digit-tests (Files): Likewise.
6432         * modules/unictype/digit-tests (Files): Likewise.
6433         * modules/unictype/mirror-tests (Files): Likewise.
6434         * modules/unictype/numeric-tests (Files): Likewise.
6435         * modules/unictype/property-alphabetic-tests (Files): Likewise.
6436         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
6437         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
6438         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
6439         Likewise.
6440         * modules/unictype/property-bidi-block-separator-tests (Files):
6441         Likewise.
6442         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
6443         Likewise.
6444         * modules/unictype/property-bidi-common-separator-tests (Files):
6445         Likewise.
6446         * modules/unictype/property-bidi-control-tests (Files): Likewise.
6447         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
6448         Likewise.
6449         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
6450         Likewise.
6451         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
6452         Likewise.
6453         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
6454         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
6455         Likewise.
6456         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
6457         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
6458         Likewise.
6459         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
6460         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
6461         * modules/unictype/property-bidi-segment-separator-tests (Files):
6462         Likewise.
6463         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
6464         * modules/unictype/property-byname-tests (Files): Likewise.
6465         * modules/unictype/property-combining-tests (Files): Likewise.
6466         * modules/unictype/property-composite-tests (Files): Likewise.
6467         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
6468         * modules/unictype/property-dash-tests (Files): Likewise.
6469         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
6470         * modules/unictype/property-default-ignorable-code-point-tests (Files):
6471         Likewise.
6472         * modules/unictype/property-deprecated-tests (Files): Likewise.
6473         * modules/unictype/property-diacritic-tests (Files): Likewise.
6474         * modules/unictype/property-extender-tests (Files): Likewise.
6475         * modules/unictype/property-format-control-tests (Files): Likewise.
6476         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
6477         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
6478         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
6479         * modules/unictype/property-hex-digit-tests (Files): Likewise.
6480         * modules/unictype/property-hyphen-tests (Files): Likewise.
6481         * modules/unictype/property-id-continue-tests (Files): Likewise.
6482         * modules/unictype/property-id-start-tests (Files): Likewise.
6483         * modules/unictype/property-ideographic-tests (Files): Likewise.
6484         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
6485         * modules/unictype/property-ids-trinary-operator-tests (Files):
6486         Likewise.
6487         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
6488         * modules/unictype/property-iso-control-tests (Files): Likewise.
6489         * modules/unictype/property-join-control-tests (Files): Likewise.
6490         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
6491         * modules/unictype/property-line-separator-tests (Files): Likewise.
6492         * modules/unictype/property-logical-order-exception-tests (Files):
6493         Likewise.
6494         * modules/unictype/property-lowercase-tests (Files): Likewise.
6495         * modules/unictype/property-math-tests (Files): Likewise.
6496         * modules/unictype/property-non-break-tests (Files): Likewise.
6497         * modules/unictype/property-not-a-character-tests (Files): Likewise.
6498         * modules/unictype/property-numeric-tests (Files): Likewise.
6499         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
6500         * modules/unictype/property-other-default-ignorable-code-point-tests
6501         (Files): Likewise.
6502         * modules/unictype/property-other-grapheme-extend-tests (Files):
6503         Likewise.
6504         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
6505         * modules/unictype/property-other-id-start-tests (Files): Likewise.
6506         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
6507         * modules/unictype/property-other-math-tests (Files): Likewise.
6508         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
6509         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
6510         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
6511         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
6512         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
6513         * modules/unictype/property-private-use-tests (Files): Likewise.
6514         * modules/unictype/property-punctuation-tests (Files): Likewise.
6515         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
6516         * modules/unictype/property-radical-tests (Files): Likewise.
6517         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
6518         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
6519         * modules/unictype/property-space-tests (Files): Likewise.
6520         * modules/unictype/property-terminal-punctuation-tests (Files):
6521         Likewise.
6522         * modules/unictype/property-test-tests (Files): Likewise.
6523         * modules/unictype/property-titlecase-tests (Files): Likewise.
6524         * modules/unictype/property-unassigned-code-value-tests (Files):
6525         Likewise.
6526         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
6527         * modules/unictype/property-uppercase-tests (Files): Likewise.
6528         * modules/unictype/property-variation-selector-tests (Files): Likewise.
6529         * modules/unictype/property-white-space-tests (Files): Likewise.
6530         * modules/unictype/property-xid-continue-tests (Files): Likewise.
6531         * modules/unictype/property-xid-start-tests (Files): Likewise.
6532         * modules/unictype/property-zero-width-tests (Files): Likewise.
6533         * modules/unictype/scripts-tests (Files): Likewise.
6534         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
6535         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
6536         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
6537         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
6538         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
6539         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
6540         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
6541         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
6542         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
6543         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
6544         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
6545         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
6546         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
6547         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
6548         * modules/uninorm/composition-tests (Files): Likewise.
6549         * modules/uninorm/decomposing-form-tests (Files): Likewise.
6550         * modules/uninorm/decomposition-tests (Files): Likewise.
6551         * modules/uninorm/filter-tests (Files): Likewise.
6552         * modules/uninorm/nfc-tests (Files): Likewise.
6553         * modules/uninorm/nfd-tests (Files): Likewise.
6554         * modules/uninorm/nfkc-tests (Files): Likewise.
6555         * modules/uninorm/nfkd-tests (Files): Likewise.
6556         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
6557         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
6558         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
6559         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
6560         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
6561         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
6562         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
6563         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
6564         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
6565         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
6566         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
6567         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
6568         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
6569         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
6570         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
6571         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
6572         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
6573         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
6574         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
6575         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
6576         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
6577         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
6578         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
6579         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
6580         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
6581         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
6582         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
6583         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
6584         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
6585         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
6586         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
6587         * modules/uniwidth/u8-width-tests (Files): Likewise.
6588         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
6589         * modules/uniwidth/u16-width-tests (Files): Likewise.
6590         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
6591         * modules/uniwidth/u32-width-tests (Files): Likewise.
6592         * modules/uniwidth/width-tests (Files): Likewise.
6593         * modules/unlink-tests (Files): Likewise.
6594         * modules/unsetenv-tests (Files): Likewise.
6595         * modules/usleep-tests (Files): Likewise.
6596         * modules/utimens-tests (Files): Likewise.
6597         * modules/utimensat-tests (Files): Likewise.
6598         * modules/vasnprintf-posix-tests (Files): Likewise.
6599         * modules/vasnprintf-tests (Files): Likewise.
6600         * modules/vasprintf-posix-tests (Files): Likewise.
6601         * modules/vasprintf-tests (Files): Likewise.
6602         * modules/vdprintf-posix-tests (Files): Likewise.
6603         * modules/vfprintf-posix-tests (Files): Likewise.
6604         * modules/vprintf-posix-tests (Files): Likewise.
6605         * modules/vsnprintf-posix-tests (Files): Likewise.
6606         * modules/vsnprintf-tests (Files): Likewise.
6607         * modules/vsprintf-posix-tests (Files): Likewise.
6608         * modules/wcrtomb-tests (Files): Likewise.
6609         * modules/wcsnrtombs-tests (Files): Likewise.
6610         * modules/wcsrtombs-tests (Files): Likewise.
6611         * modules/wctype-tests (Files): Likewise.
6612         * modules/wcwidth-tests (Files): Likewise.
6613         * modules/xmemdup0-tests (Files): Likewise.
6614         * modules/xprintf-posix-tests (Files): Likewise.
6615         * modules/xvasprintf-tests (Files): Likewise.
6616
6617 2009-12-24  Eric Blake  <ebb9@byu.net>
6618
6619         test-nanosleep: fix typo
6620         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6621         patch.
6622         Reported by Bruno Haible.
6623
6624 2009-12-24  Bruno Haible  <bruno@clisp.org>
6625
6626         Reduce namespace pollution on glibc systems.
6627         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
6628         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
6629         systems.
6630         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
6631         <getopt.h> on glibc systems.
6632         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
6633         systems.
6634         * lib/fcntl.c: Include <unistd.h> here instead.
6635
6636 2009-12-24  Bruno Haible  <bruno@clisp.org>
6637
6638         * lib/stdlib.in.h (includes): Fix typo in today's commit.
6639
6640 2009-12-24  Eric Blake  <ebb9@byu.net>
6641
6642         tests: add signature checks
6643         * tests/signature.h (SIGNATURE_CHECK): New file.
6644         * modules/atexit-tests (Files): Use it.
6645         * modules/btowc-tests (Files): Likewise.
6646         * modules/canonicalize-lgpl-tests (Files): Likewise.
6647         * modules/ceilf-tests (Files): Likewise.
6648         * modules/ceill-tests (Files): Likewise.
6649         * modules/chown-tests (Files): Likewise.
6650         * modules/dprintf-posix-tests (Files): Likewise.
6651         * modules/dup2-tests (Files): Likewise.
6652         * modules/dup3-tests (Files): Likewise.
6653         * modules/duplocale-tests (Files): Likewise.
6654         * modules/fchdir-tests (Files): Likewise.
6655         * modules/fcntl-tests (Files): Likewise.
6656         * modules/fdopendir-tests (Files): Likewise.
6657         * modules/fflush-tests (Files): Likewise.
6658         * modules/flock-tests (Files): Likewise.
6659         * modules/floorf-tests (Files): Likewise.
6660         * modules/floorl-tests (Files): Likewise.
6661         * modules/fnmatch-tests (Files): Likewise.
6662         * modules/fopen-tests (Files): Likewise.
6663         * modules/fprintf-posix-tests (Files): Likewise.
6664         * modules/freopen-tests (Files): Likewise.
6665         * modules/frexp-nolibm-tests (Files): Likewise.
6666         * modules/frexp-tests (Files): Likewise.
6667         * modules/frexpl-nolibm-tests (Files): Likewise.
6668         * modules/frexpl-tests (Files): Likewise.
6669         * modules/fseek-tests (Files): Likewise.
6670         * modules/fseeko-tests (Files): Likewise.
6671         * modules/fsync-tests (Files): Likewise.
6672         * modules/ftell-tests (Files): Likewise.
6673         * modules/ftello-tests (Files): Likewise.
6674         * modules/futimens-tests (Files): Likewise.
6675         * modules/getaddrinfo-tests (Files): Likewise.
6676         * modules/getcwd-tests (Files): Likewise.
6677         * modules/getdelim-tests (Files): Likewise.
6678         * modules/getdtablesize-tests (Files): Likewise.
6679         * modules/getgroups-tests (Files): Likewise.
6680         * modules/gethostname-tests (Files): Likewise.
6681         * modules/getline-tests (Files): Likewise.
6682         * modules/getopt-posix-tests (Files): Likewise.
6683         * modules/gettimeofday-tests (Files): Likewise.
6684         * modules/glob-tests (Files): Likewise.
6685         * modules/iconv-tests (Files): Likewise.
6686         * modules/inet_ntop-tests (Files): Likewise.
6687         * modules/inet_pton-tests (Files): Likewise.
6688         * modules/isblank-tests (Files): Likewise.
6689         * modules/lchown-tests (Files): Likewise.
6690         * modules/ldexpl-tests (Files): Likewise.
6691         * modules/link-tests (Files): Likewise.
6692         * modules/linkat-tests (Files): Likewise.
6693         * modules/lseek-tests (Files): Likewise.
6694         * modules/lstat-tests (Files): Likewise.
6695         * modules/mbrtowc-tests (Files): Likewise.
6696         * modules/mbsinit-tests (Files): Likewise.
6697         * modules/mbsnrtowcs-tests (Files): Likewise.
6698         * modules/mbsrtowcs-tests (Files): Likewise.
6699         * modules/memchr-tests (Files): Likewise.
6700         * modules/memcmp-tests (Files): Likewise.
6701         * modules/memmem-tests (Files): Likewise.
6702         * modules/memrchr-tests (Files): Likewise.
6703         * modules/mkdir-tests (Files): Likewise.
6704         * modules/mkfifo-tests (Files): Likewise.
6705         * modules/mkfifoat-tests (Files): Likewise.
6706         * modules/mknod-tests (Files): Likewise.
6707         * modules/nanosleep-tests (Files): Likewise.
6708         * modules/nl_langinfo-tests (Files): Likewise.
6709         * modules/obstack-printf-tests (Files): Likewise.
6710         * modules/open-tests (Files): Likewise.
6711         * modules/openat-tests (Files): Likewise.
6712         * modules/perror-tests (Files): Likewise.
6713         * modules/pipe2-tests (Files): Likewise.
6714         * modules/poll-tests (Files): Likewise.
6715         * modules/popen-tests (Files): Likewise.
6716         * modules/posix_spawn-tests (Files): Likewise.
6717         * modules/posix_spawnp-tests (Files): Likewise.
6718         * modules/pread-tests (Files): Likewise.
6719         * modules/printf-posix-tests (Files): Likewise.
6720         * modules/pty-tests (Files): Likewise.
6721         * modules/random_r-tests (Files): Likewise.
6722         * modules/rawmemchr-tests (Files): Likewise.
6723         * modules/readlink-tests (Files): Likewise.
6724         * modules/remove-tests (Files): Likewise.
6725         * modules/rename-tests (Files): Likewise.
6726         * modules/renameat-tests (Files): Likewise.
6727         * modules/rmdir-tests (Files): Likewise.
6728         * modules/round-tests (Files): Likewise.
6729         * modules/roundf-tests (Files): Likewise.
6730         * modules/roundl-tests (Files): Likewise.
6731         * modules/select-tests (Files): Likewise.
6732         * modules/setenv-tests (Files): Likewise.
6733         * modules/sigaction-tests (Files): Likewise.
6734         * modules/sleep-tests (Files): Likewise.
6735         * modules/snprintf-posix-tests (Files): Likewise.
6736         * modules/snprintf-tests (Files): Likewise.
6737         * modules/sprintf-posix-tests (Files): Likewise.
6738         * modules/stat-tests (Files): Likewise.
6739         * modules/strcasestr-tests (Files): Likewise.
6740         * modules/strchrnul-tests (Files): Likewise.
6741         * modules/strerror-tests (Files): Likewise.
6742         * modules/strsignal-tests (Files): Likewise.
6743         * modules/strstr-tests (Files): Likewise.
6744         * modules/strtod-tests (Files): Likewise.
6745         * modules/strverscmp-tests (Files): Likewise.
6746         * modules/symlink-tests (Files): Likewise.
6747         * modules/symlinkat-tests (Files): Likewise.
6748         * modules/times-tests (Files): Likewise.
6749         * modules/trunc-tests (Files): Likewise.
6750         * modules/truncf-tests (Files): Likewise.
6751         * modules/truncl-tests (Files): Likewise.
6752         * modules/tsearch-tests (Files): Likewise.
6753         * modules/uname-tests (Files): Likewise.
6754         * modules/unlink-tests (Files): Likewise.
6755         * modules/unsetenv-tests (Files): Likewise.
6756         * modules/usleep-tests (Files): Likewise.
6757         * modules/utimensat-tests (Files): Likewise.
6758         * modules/vasprintf-tests (Files): Likewise.
6759         * modules/vdprintf-posix-tests (Files): Likewise.
6760         * modules/vfprintf-posix-tests (Files): Likewise.
6761         * modules/vprintf-posix-tests (Files): Likewise.
6762         * modules/vsnprintf-posix-tests (Files): Likewise.
6763         * modules/vsnprintf-tests (Files): Likewise.
6764         * modules/vsprintf-posix-tests (Files): Likewise.
6765         * modules/wcrtomb-tests (Files): Likewise.
6766         * modules/wcsnrtombs-tests (Files): Likewise.
6767         * modules/wcsrtombs-tests (Files): Likewise.
6768         * modules/wcwidth-tests (Files): Likewise.
6769         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
6770         * tests/test-isinf.c (isinf): Likewise.
6771         * tests/test-isnan.c (isnan): Likewise.
6772         * tests/test-signbit.c (signbit): Likewise.
6773         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
6774         declaration, either as macro or with correct signature.
6775         (select): Ensure function under test is declared with correct
6776         signature in correct header.
6777         * tests/test-atexit.c (atexit): Likewise.
6778         * tests/test-btowc.c (btowc): Likewise.
6779         * tests/test-canonicalize-lgpl.c (realpath)
6780         (canonicalize_file_name): Likewise.
6781         * tests/test-ceilf1.c (ceilf): Likewise.
6782         * tests/test-ceill.c (ceill): Likewise.
6783         * tests/test-chown.c (chown): Likewise.
6784         * tests/test-dprintf-posix.c (dprintf): Likewise.
6785         * tests/test-dup2.c (dup2): Likewise.
6786         * tests/test-dup3.c (dup3): Likewise.
6787         * tests/test-duplocale.c (duplocale): Likewise.
6788         * tests/test-fchdir.c (fchdir): Likewise.
6789         * tests/test-fchownat.c (fchownat): Likewise.
6790         * tests/test-fcntl.c (fcntl): Likewise.
6791         * tests/test-fdopendir.c (fdopendir): Likewise.
6792         * tests/test-fflush.c (fflush): Likewise.
6793         * tests/test-flock.c (flock): Likewise.
6794         * tests/test-floorf1.c (floorf): Likewise.
6795         * tests/test-floorl.c (floorl): Likewise.
6796         * tests/test-fnmatch.c (fnmatch): Likewise.
6797         * tests/test-fopen.c (fopen): Likewise.
6798         * tests/test-fprintf-posix.c (fprintf): Likewise.
6799         * tests/test-freopen.c (freopen): Likewise.
6800         * tests/test-frexp.c (frexp): Likewise.
6801         * tests/test-frexpl.c (frexpl): Likewise.
6802         * tests/test-fseek.c (fseek): Likewise.
6803         * tests/test-fseeko.c (fseeko): Likewise.
6804         * tests/test-fstatat.c (fstatat): Likewise.
6805         * tests/test-fsync.c (fsync): Likewise.
6806         * tests/test-ftell.c (ftell): Likewise.
6807         * tests/test-ftello.c (ftello): Likewise.
6808         * tests/test-futimens.c (futimens): Likewise.
6809         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
6810         (gai_strerror): Likewise.
6811         * tests/test-getcwd.c (getcwd): Likewise.
6812         * tests/test-getdelim.c (getdelim): Likewise.
6813         * tests/test-getdtablesize.c (getdtablesize): Likewise.
6814         * tests/test-getgroups.c (getgroups): Likewise.
6815         * tests/test-gethostname.c (gethostname): Likewise.
6816         * tests/test-getline.c (getline): Likewise.
6817         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
6818         Likewise.
6819         * tests/test-gettimeofday.c (gettimeofday): Likewise.
6820         * tests/test-glob.c (glob, globfree): Likewise.
6821         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
6822         * tests/test-inet_ntop.c (inet_ntop): Likewise.
6823         * tests/test-inet_pton.c (inet_pton): Likewise.
6824         * tests/test-isblank.c (isblank): Likewise.
6825         * tests/test-lchown.c (lchown): Likewise.
6826         * tests/test-ldexpl.c (ldexpl): Likewise.
6827         * tests/test-link.c (link): Likewise.
6828         * tests/test-linkat.c (linkat): Likewise.
6829         * tests/test-lseek.c (lseek): Likewise.
6830         * tests/test-lstat.c (lstat): Likewise.
6831         * tests/test-mbrtowc.c (mbrtowc): Likewise.
6832         * tests/test-mbsinit.c (mbsinit): Likewise.
6833         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
6834         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
6835         * tests/test-memchr.c (memchr): Likewise.
6836         * tests/test-memcmp.c (memcmp): Likewise.
6837         * tests/test-memmem.c (memmem): Likewise.
6838         * tests/test-memrchr.c (memrchr): Likewise.
6839         * tests/test-mkdir.c (mkdir): Likewise.
6840         * tests/test-mkdirat.c (mkdirat): Likewise.
6841         * tests/test-mkfifo.c (mkfifo): Likewise.
6842         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
6843         * tests/test-mknod.c (mknod): Likewise.
6844         * tests/test-nanosleep.c (nanosleep): Likewise.
6845         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
6846         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
6847         Likewise.
6848         * tests/test-open.c (open): Likewise.
6849         * tests/test-openat.c (openat): Likewise.
6850         * tests/test-perror.c (perror): Likewise.
6851         * tests/test-pipe2.c (pipe2): Likewise.
6852         * tests/test-poll.c (poll): Likewise.
6853         * tests/test-popen.c (popen, pclose): Likewise.
6854         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
6855         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
6856         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
6857         (posix_spawn_file_actions_destroy)
6858         (posix_spawn_file_actions_addclose)
6859         (posix_spawn_file_actions_addopen)
6860         (posix_spawn_file_actions_adddup2): Likewise.
6861         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
6862         * tests/test-pread.c (pread): Likewise.
6863         * tests/test-printf-posix.c (printf): Likewise.
6864         * tests/test-pty.c (openpty, forkpty): Likewise.
6865         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
6866         (random_r): Likewise.
6867         * tests/test-rawmemchr.c (rawmemchr): Likewise.
6868         * tests/test-readlink.c (readlink): Likewise.
6869         * tests/test-remove.c (remove): Likewise.
6870         * tests/test-rename.c (rename): Likewise.
6871         * tests/test-renameat.c (renameat): Likewise.
6872         * tests/test-rmdir.c (rmdir): Likewise.
6873         * tests/test-round1.c (round): Likewise.
6874         * tests/test-roundf1.c (roundf): Likewise.
6875         * tests/test-roundl.c (roundl): Likewise.
6876         * tests/test-setenv.c (setenv): Likewise.
6877         * tests/test-sigaction.c (sigaction): Likewise.
6878         * tests/test-sleep.c (sleep): Likewise.
6879         * tests/test-snprintf.c (snprintf): Likewise.
6880         * tests/test-sprintf-posix.c (sprintf): Likewise.
6881         * tests/test-stat.c (stat): Likewise.
6882         * tests/test-stpncpy.c (stpncpy): Likewise.
6883         * tests/test-strcasestr.c (strcasestr): Likewise.
6884         * tests/test-strchrnul.c (strchrnul): Likewise.
6885         * tests/test-strerror.c (strerror): Likewise.
6886         * tests/test-strsignal.c (strsignal): Likewise.
6887         * tests/test-strstr.c (strstr): Likewise.
6888         * tests/test-strtod.c (strtod): Likewise.
6889         * tests/test-strverscmp.c (strverscmp): Likewise.
6890         * tests/test-symlink.c (symlink): Likewise.
6891         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
6892         * tests/test-times.c (times): Likewise.
6893         * tests/test-trunc1.c (trunc): Likewise.
6894         * tests/test-truncf1.c (truncf): Likewise.
6895         * tests/test-truncl.c (truncl): Likewise.
6896         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
6897         Likewise.
6898         * tests/test-uname.c (uname): Likewise.
6899         * tests/test-unlink.c (unlink): Likewise.
6900         * tests/test-unlinkat.c (unlinkat): Likewise.
6901         * tests/test-unsetenv.c (unsetenv): Likewise.
6902         * tests/test-usleep.c (usleep): Likewise.
6903         * tests/test-utimensat.c (utimensat): Likewise.
6904         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
6905         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
6906         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
6907         * tests/test-vprintf-posix.c (vprintf): Likewise.
6908         * tests/test-vsnprintf.c (vsnprintf): Likewise.
6909         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
6910         * tests/test-wcrtomb.c (wcrtomb): Likewise.
6911         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
6912         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
6913         * tests/test-wcwidth.c (wcwidth): Likewise.
6914
6915         build: pull in conditional headers during GNULIB_POSIXCHECK
6916         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
6917         definitions from any conditionally-included headers.
6918         * lib/stdlib.in.h (includes): Likewise.
6919         * lib/unistd.in.h (includes): Likewise.
6920
6921 2009-12-24  Bruno Haible  <bruno@clisp.org>
6922
6923         * tests/test-argv-iter.c: Include header file being tested immediately
6924         after config.h.
6925         * tests/test-base64.c: Likewise.
6926         * tests/test-flock.c: Likewise.
6927         * tests/test-fsync.c: Likewise.
6928         * tests/test-getdate.c: Likewise.
6929         * tests/test-getndelim2.c: Likewise.
6930         * tests/test-isfinite.c: Likewise.
6931         * tests/test-isinf.c: Likewise.
6932         * tests/test-strerror.c: Likewise.
6933         * tests/test-strsignal.c: Likewise.
6934
6935 2009-12-23  Eric Blake  <ebb9@byu.net>
6936
6937         unistd: work around cygwin bug
6938         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
6939         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
6940         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
6941
6942 2009-12-23  Bruno Haible  <bruno@clisp.org>
6943
6944         localename: More tests.
6945         * tests/test-localename.c (SIZEOF): New macro.
6946         (categories): New variable.
6947         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
6948         test_locale_name_default): Add test w.r.t. thread locale.
6949         (test_locale_name_thread): New function.
6950         (main): Invoke it.
6951
6952         localename: Make aware of thread locale.
6953         * lib/localename.h (gl_locale_name_thread): New declaration.
6954         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
6955         behaviour with respect to thread locale.
6956         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
6957         <langinfo.h>, glthread/lock.h.
6958         (SIZE_BITS): New macro.
6959         (string_hash): New function.
6960         (struct hash_node): New type.
6961         (HASH_TABLE_SIZE): New macro.
6962         (struniq_hash_table, struniq_lock): New variables.
6963         (struniq): New function.
6964         (gl_locale_name_thread): New function.
6965         (gl_locale_name): Invoke it.
6966         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
6967         * modules/localename (Depends-on): Add lock.
6968         Reported by Mike Gran <spk121@yahoo.com>.
6969
6970 2009-12-23  Eric Blake  <ebb9@byu.net>
6971
6972         va-args: new module
6973         * modules/va-args: New file.
6974         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
6975         * MODULES.html.sh (Core language properties): Mention it.
6976
6977         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
6978         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
6979         named alias for __attribute__((__unused__)).
6980         * lib/chown.c: Update client.
6981         * lib/fchmodat.c: Likewise.
6982         * lib/fts.c: Likewise.
6983         * lib/getdate.y: Likewise.
6984         * lib/getgroups.c: Likewise.
6985         * lib/getopt.c: Likewise.
6986         * lib/getugroups.c: Likewise.
6987         * lib/mkdir.c: Likewise.
6988         * lib/mkfifo.c: Likewise.
6989         * lib/mkfifoat.c: Likewise.
6990         * lib/mknod.c: Likewise.
6991         * lib/mknodat.c: Likewise.
6992         * lib/readlink.c: Likewise.
6993         * lib/se-context.in.h: Likewise.
6994         * lib/se-selinux.in.h: Likewise.
6995         * lib/sockets.c: Likewise.
6996         * lib/symlink.c: Likewise.
6997         * lib/symlinkat.c: Likewise.
6998         * lib/unicodeio.c: Likewise.
6999         * lib/unistr.h: Likewise.
7000         * tests/test-areadlink.c: Likewise.
7001         * tests/test-areadlinkat.c: Likewise.
7002         * tests/test-filenamecat.c: Likewise.
7003         * tests/test-fseeko.c: Likewise.
7004         * tests/test-ftello.c: Likewise.
7005         * tests/test-getdate.c: Likewise.
7006         * tests/test-getgroups.c: Likewise.
7007         * tests/test-gethostname.c: Likewise.
7008         * tests/test-quotearg.c: Likewise.
7009         * tests/test-version-etc.c: Likewise.
7010         * tests/test-xalloc-die.c: Likewise.
7011         * tests/test-xfprintf-posix.c: Likewise.
7012         * tests/test-xprintf-posix.c: Likewise.
7013         * tests/test-xvasprintf.c: Likewise.
7014
7015         tests: avoid compiler warnings
7016         * tests/test-fcntl.c (main): Delete unused parameters.
7017         * tests/test-freopen-safer.c (main): Likewise.
7018         * tests/test-xalloc-die.c (main): Mark unused parameters.
7019         * tests/test-fseeko.c (main): Likewise.
7020         * tests/test-ftello.c (main): Likewise.
7021         * tests/test-nanosleep.c (main): Avoid declaration warning.
7022         * tests/test-sleep.c (main): Likewise.
7023         * tests/test-unsetenv.c (main): Silence warning about string
7024         literal.
7025         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
7026
7027 2009-12-23  Bruno Haible  <bruno@clisp.org>
7028
7029         * tests/test-localename.c (test_locale_name): New function, extracted
7030         from main. Also test mixed situations.
7031         (test_locale_name_posix, test_locale_name_environ,
7032         test_locale_name_default): New functions.
7033         (main): Invoke them all.
7034         * modules/localename-tests (configure.ac): Test for newlocale.
7035
7036 2009-12-23  Bruno Haible  <bruno@clisp.org>
7037
7038         unistd: Ensure getcwd gets declared before being overridden.
7039         * lib/unistd.in.h: Conditionally include <io.h>.
7040
7041 2009-12-22  Bruno Haible  <bruno@clisp.org>
7042
7043         wchar: Diagnose broken combination of glibc and gcc versions and flags.
7044         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
7045         (gl_WCHAR_H): Invoke it.
7046         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
7047         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
7048         Reported by Karl Berry <karl@freefriends.org>.
7049
7050 2009-12-22  Eric Blake  <ebb9@byu.net>
7051
7052         math, unistd: avoid redundant includes
7053         * lib/math.in.h (isnan): No need to re-include <math.h>.
7054         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
7055
7056         getsubopt: work around cygwin bug
7057         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
7058         avoid conflicting with system getsubopt.
7059         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
7060         bug.
7061
7062         getopt: synchronize from glibc
7063         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
7064         parameter order.  Adjust all callers.
7065         (_getopt_internal_r, main): Adjust quoting in error messages.
7066         Drop considerations for outdated POSIX 1003.2 error message.
7067         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
7068         callers.
7069         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
7070
7071         test-getopt: test stderr behavior
7072         * modules/getopt-posix-tests (Depends-on): Add dup2.
7073         * tests/test-getopt.c (ASSERT): Avoid stderr.
7074         (main): Move stderr to a temporary file.
7075         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
7076         Instead, add parameter to inform caller if output occurred.
7077         (test_getopt): Adjust all existing tests to expect silence, and
7078         add new tests of leading ":".
7079         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7080         glibc shortcomings with leading "-:" or "+:" in optstring.
7081         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7082         Likewise.
7083         * doc/posix-functions/getopt.texi (getopt): Likewise.
7084
7085         test-getopt: enhance test
7086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
7087         supports optind=0.
7088         * tests/test-getopt.c (OPTIND_MIN): Move...
7089         * tests/test-getopt.h (OPTIND_MIN): ...here.
7090         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
7091         Require that optind=0 works, since modern BSD supports it in
7092         addition to optreset, and since coreutils expects it.
7093         (test_getopt_long_only): New test.
7094         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
7095         glibc shortcomings with 'W;', and enforcement of optind=0.
7096         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7097         Likewise.
7098
7099 2009-12-21  Bruno Haible  <bruno@clisp.org>
7100
7101         localename: Improvements for MacOS X and Cygwin.
7102         * lib/localename.h (gl_locale_name_environ): New declaration.
7103         * lib/localename.c (gl_locale_name_environ): New function, extracted from
7104         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
7105         (gl_locale_name_posix): Invoke it.
7106         (gl_locale_name_default): Add comments. Use Windows native API also on
7107         Cygwin.
7108
7109 2009-12-21  Bruno Haible  <bruno@clisp.org>
7110
7111         Update list of Win32 locale ids.
7112         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
7113         (LANG_SAMI): Renamed from LANG_SAAMI.
7114         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
7115         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
7116         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
7117         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
7118         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
7119         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
7120         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
7121         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
7122         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
7123         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
7124         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
7125         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
7126         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
7127         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
7128         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
7129         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
7130         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
7131         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
7132         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
7133         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
7134         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
7135         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
7136         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
7137         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
7138         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
7139         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
7140         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
7141         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
7142         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
7143         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
7144         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
7145         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
7146         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
7147         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
7148         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
7149         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
7150         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
7151         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
7152         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
7153         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
7154         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
7155         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
7156         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
7157         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
7158         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
7159         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
7160         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
7161         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
7162         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
7163         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
7164         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
7165         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
7166         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
7167         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
7168         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
7169         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
7170         Add more languages and countries for Sami, Sorbian. Add more countries
7171         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
7172         for Pashto. Change country for Syriac, Tswana.
7173
7174 2009-12-21  Eric Blake  <ebb9@byu.net>
7175
7176         test-utimens: avoid spurious failure
7177         * tests/test-chown.h (nap): Factor...
7178         * tests/nap.h: ...into new file.
7179         * tests/test-lchown.h (nap): Avoid duplication.
7180         * tests/test-utimens-common.h (nap): Use shared implementation,
7181         necessary on file systems with 1-second resolution.
7182         * modules/chown-tests (Files): Include new file.
7183         * modules/fdutimensat-tests (Files): Likewise.
7184         * modules/futimens-tests (Files): Likewise.
7185         * modules/lchown-tests (Files): Likewise.
7186         * modules/openat-tests (Files): Likewise.
7187         * modules/utimens-tests (Files): Likewise.
7188         * modules/utimensat-tests (Files): Likewise.
7189
7190 2009-12-19  Eric Blake  <ebb9@byu.net>
7191
7192         futimens, utimensat: work around Linux bug
7193         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
7194         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7195         * lib/utimensat.c (rpl_utimensat): Work around it.
7196         * lib/futimens.c (rpl_futimens): Adjust comment.
7197
7198         utimens: work around Linux ctime bug
7199         * lib/utimens.c (detect_ctime_bug): New helper function.
7200         (update_timespec): Differentiate between workaround needed for
7201         this bug vs. what is needed for systems that lack utimensat.
7202         (fdutimens, lutimens): Work around bug.
7203
7204         utimens: check for ctime update
7205         * tests/test-utimens-common.h (check_ctime): Define.
7206         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
7207         * tests/test-futimens.h (test_futimens): Likewise.
7208         * tests/test-lutimens.h (test_lutimens): Likewise.
7209         * doc/posix-functions/futimens.texi (futimens): Document the bug.
7210         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7211
7212 2009-12-19  Bruno Haible  <bruno@clisp.org>
7213
7214         dprintf-posix: Check against memory leak fixed on 2009-12-15.
7215         * tests/test-dprintf-posix2.sh: New file.
7216         * tests/test-dprintf-posix2.c: New file.
7217         * modules/dprintf-posix-tests (Files): Add them.
7218         (configure.ac): Check for getrlimit and setrlimit.
7219         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7220
7221 2009-12-19  Bruno Haible  <bruno@clisp.org>
7222
7223         fprintf-posix: Check against memory leak fixed on 2009-12-15.
7224         * tests/test-fprintf-posix3.sh: New file.
7225         * tests/test-fprintf-posix3.c: New file.
7226         * modules/fprintf-posix-tests (Files): Add them.
7227         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
7228
7229 2009-12-19  Eric Blake  <ebb9@byu.net>
7230
7231         dirfd: fix prototype
7232         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
7233         * lib/dirfd.c (dirfd): Likewise.
7234
7235         canonicalize: reduce memory usage
7236         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
7237         allocation to size.
7238         Reported by Solar Designer <solar@openwall.com>.
7239
7240 2009-12-19  Bruno Haible  <bruno@clisp.org>
7241
7242         New module attribute 'Applicability'.
7243         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
7244         * gnulib-tool: New option --extract-applicability.
7245         (func_usage): Document it.
7246         (sed_extract_prog): Recognize it.
7247         (func_get_applicability): New function.
7248         (func_import): Generalize handling of 'link-warning' module.
7249         * modules/link-warning (Applicability): New section.
7250         * modules/arg-nonnull (Applicability): New section.
7251         Repoted by Simon Josefsson <simon@josefsson.org>.
7252
7253 2009-12-19  Bruno Haible  <bruno@clisp.org>
7254
7255         fflush: tweak
7256         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
7257         * lib/fseeko.c (rpl_fseeko): Likewise.
7258
7259 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
7260
7261         * lib/gl_list.h: Fix typo in comment.
7262
7263 2009-12-16  Eric Blake  <ebb9@byu.net>
7264
7265         fcntl: use to simplify other modules
7266         * modules/cloexec (Depends-on): Add fcntl.
7267         * modules/fchdir (Depends-on): Likewise.
7268         * modules/fd-safer-flag (Depends-on): Likewise.
7269         * modules/unistd-safer (Depends-on): Likewise.
7270         * modules/dup3 (configure.ac): Set module indicator.
7271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
7272         missing.
7273         * lib/fchdir.c (_gl_register_dup): Fix comment.
7274         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
7275         * lib/dup-safer.c (dup_safer): Likewise.
7276         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
7277         * lib/dup3.c (dup3): Likewise.
7278         * tests/test-fchdir.c (main): Enhance test.
7279         Fixes a dup_cloexec bug reported by Ondřej Vašík.
7280
7281         fcntl: port portions of fcntl to mingw
7282         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
7283         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
7284         replacement for mingw.
7285         * modules/fcntl (Description): Update.
7286         (Depends-on): Add dup2.
7287         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
7288         * modules/fcntl-h (Makefile.am): Substitute it.
7289         * lib/fcntl.in.h (fcntl): Update declaration.
7290         (F_DUPFD, F_GETFD): New macros, when needed.
7291         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7292         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
7293         * tests/test-fcntl.c (check_flags, main): Enhance test for items
7294         we now guarantee.
7295
7296         fcntl: work around cygwin bug in F_DUPFD
7297         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
7298         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
7299         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
7300         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
7301         * doc/posix-functions/fcntl.texi (fcntl): Document it.
7302
7303         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
7304         * modules/fcntl (Files): List new files.
7305         (configure.ac): Run a test.
7306         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
7307         * lib/fcntl.c (rpl_fcntl): Likewise.
7308         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
7309         (gl_FCNTL_H): Always replace fcntl.h.
7310         * modules/fcntl-h (Makefile.am): Substitute witnesses.
7311         * lib/fcntl.in.h (fcntl): Declare replacement.
7312         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
7313         needed, plus a witness.
7314         * doc/posix-functions/fcntl.texi (fcntl): Document this.
7315         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7316         * tests/test-fcntl.c: New file.
7317         * modules/fcntl-tests: Likewise.
7318
7319         binary-io: avoid potential compilation warning
7320         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
7321         directives.
7322
7323         fflush: avoid compilation error on NetBSD
7324         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
7325         between off_t and fpos_t, since the latter is sometimes a struct.
7326         * lib/fseeko.c (rpl_fseeko): Likewise.
7327         Reported by Alexander Nasonov <alnsn@yandex.ru>.
7328
7329 2009-12-15  Eric Blake  <ebb9@byu.net>
7330
7331         fcntl-h, stdio, sys_ioctl: fix declarations
7332         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
7333         function must not take arguments.
7334         * lib/sys_ioctl.in.h (ioctl): Likewise.
7335         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
7336         (open): Add a link warning.
7337
7338 2009-12-15  Jim Meyering  <meyering@redhat.com>
7339
7340         areadlink, areadlink-with-size: relax license to LGPLv2+
7341         * modules/areadlink (License): Relax to LGPLv2+.
7342         * modules/areadlink-with-size (License): Likewise.
7343
7344 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
7345             Bruno Haible  <bruno@clisp.org>
7346
7347         *printf: Fix memory leak.
7348         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
7349         * lib/vfprintf.c (vfprintf): Likewise.
7350         * lib/dprintf.c (dprintf): Likewise.
7351         * lib/vdprintf.c (vdprintf): Likewise.
7352
7353 2009-12-14  Eric Blake  <ebb9@byu.net>
7354
7355         accept4: adjust module dependencies
7356         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
7357
7358         utimens: one more try at avoiding compiler warning
7359         * lib/utimens.c (lutimens): Lower scope of result.
7360
7361 2009-12-13  Bruno Haible  <bruno@clisp.org>
7362
7363         Move the malloc checking from module 'list' to new module 'xlist'.
7364         * modules/xlist: New file.
7365         * lib/gl_xlist.h: New file.
7366         * lib/gl_xlist.c: New file.
7367         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
7368         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
7369         gl_list_add_last, gl_list_add_before, gl_list_add_after,
7370         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
7371         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
7372         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
7373         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
7374         gl_sortedlist_nx_add): New declarations.
7375         (struct gl_list_implementation): Rename and change methods accordingly.
7376         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
7377         (gl_list_nx_create): Renamed from gl_list_create.
7378         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7379         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7380         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7381         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7382         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7383         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7384         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7385         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7386         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
7387         gl_list_create_empty.
7388         (gl_list_nx_create): Renamed from gl_list_create.
7389         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
7390         (gl_list_nx_set_at): Renamed from gl_list_set_at.
7391         (gl_list_nx_add_first): Renamed from gl_list_add_first.
7392         (gl_list_nx_add_last): Renamed from gl_list_add_last.
7393         (gl_list_nx_add_before): Renamed from gl_list_add_before.
7394         (gl_list_nx_add_after): Renamed from gl_list_add_after.
7395         (gl_list_nx_add_at): Renamed from gl_list_add_at.
7396         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
7397         * lib/gl_array_list.c: Don't include xalloc.h.
7398         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
7399         NULL upon out-of-memory.
7400         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
7401         out-of-memory.
7402         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
7403         Change return type to 'int'.
7404         (gl_array_nx_set_at): Renamed from gl_array_set_at.
7405         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7406         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
7407         upon out-of-memory.
7408         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
7409         upon out-of-memory.
7410         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
7411         upon out-of-memory.
7412         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
7413         upon out-of-memory.
7414         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
7415         out-of-memory.
7416         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
7417         Update.
7418         (gl_array_list_implementation): Update.
7419         * lib/gl_carray_list.c: Don't include xalloc.h.
7420         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
7421         Return NULL upon out-of-memory.
7422         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
7423         out-of-memory.
7424         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
7425         Change return type to 'int'.
7426         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
7427         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
7428         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
7429         upon out-of-memory.
7430         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
7431         upon out-of-memory.
7432         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
7433         out-of-memory.
7434         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
7435         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
7436         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
7437         Update.
7438         (gl_carray_list_implementation): Update.
7439         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
7440         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
7441         gl_linked_create_empty. Return NULL upon out-of-memory.
7442         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
7443         out-of-memory.
7444         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
7445         Change return type to 'int'. Return -1 upon out-of-memory.
7446         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
7447         out-of-memory.
7448         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
7449         upon out-of-memory.
7450         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
7451         upon out-of-memory.
7452         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
7453         NULL upon out-of-memory.
7454         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
7455         upon out-of-memory.
7456         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
7457         out-of-memory.
7458         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
7459         Update.
7460         * lib/gl_linked_list.c: Don't include xalloc.h.
7461         (gl_linked_list_implementation): Update.
7462         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
7463         (add_to_bucket): Change return type to 'int'.
7464         (gl_linkedhash_list_implementation): Update.
7465         * lib/gl_anytree_list1.h (free_subtree): New function.
7466         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
7467         gl_tree_create_empty. Return NULL upon out-of-memory.
7468         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
7469         Change return type to 'int'. Return -1 upon out-of-memory.
7470         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
7471         out-of-memory.
7472         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
7473         (gl_tree_remove_node): New function, moved here from
7474         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
7475         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
7476         Update.
7477         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
7478         malloc, not xmalloc. Return NULL upon out-of-memory.
7479         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7480         out-of-memory.
7481         (gl_tree_remove_node_from_tree): New function, extracted from
7482         gl_tree_remove_node.
7483         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7484         upon out-of-memory.
7485         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7486         out-of-memory.
7487         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7488         upon out-of-memory.
7489         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7490         upon out-of-memory.
7491         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7492         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
7493         not xmalloc. Return NULL upon out-of-memory.
7494         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
7495         out-of-memory.
7496         (gl_tree_remove_node_from_tree): New function, extracted from
7497         gl_tree_remove_node.
7498         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
7499         upon out-of-memory.
7500         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
7501         out-of-memory.
7502         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
7503         upon out-of-memory.
7504         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
7505         upon out-of-memory.
7506         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
7507         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
7508         gl_anytree_list1.h before gl_anyavltree_list2.h.
7509         (gl_avltree_list_implementation): Update.
7510         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
7511         gl_anytree_list1.h before gl_anyavltree_list2.h.
7512         (gl_rbtree_list_implementation): Update.
7513         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
7514         Change return type to 'int'. Return -1 upon out-of-memory. Use
7515         __builtin_expect.
7516         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
7517         (gl_avltreehash_list_implementation): Update.
7518         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
7519         (gl_rbtreehash_list_implementation): Update.
7520         * modules/array-list (Depends-on): Remove xalloc.
7521         * modules/carray-list (Depends-on): Likewise.
7522         * modules/linked-list (Depends-on): Likewise.
7523         * modules/linkedhash-list (Depends-on): Likewise.
7524         * modules/avltree-list (Depends-on): Likewise.
7525         * modules/rbtree-list (Depends-on): Likewise.
7526         * modules/avltreehash-list (Depends-on): Likewise.
7527         * modules/rbtreehash-list (Depends-on): Likewise.
7528
7529         * modules/xsublist: New file.
7530         * lib/gl_xsublist.h: New file.
7531         * lib/gl_xsublist.c: New file.
7532         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
7533         (gl_sublist_nx_create): New declaration.
7534         * lib/gl_sublist.c: Don't include xalloc.h.
7535         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
7536         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
7537         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
7538         Change return type to 'int'. Return -1 upon out-of-memory.
7539         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
7540         upon out-of-memory.
7541         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
7542         NULL upon out-of-memory.
7543         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
7544         upon out-of-memory.
7545         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
7546         NULL upon out-of-memory.
7547         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
7548         NULL upon out-of-memory.
7549         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
7550         upon out-of-memory.
7551         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
7552         (gl_sublist_list_implementation): Update.
7553         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
7554         upon out-of-memory.
7555         * modules/sublist (Depends-on): Remove xalloc.
7556
7557         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
7558         * tests/test-carray_list.c: Likewise.
7559         * tests/test-linked_list.c: Likewise.
7560         * tests/test-linkedhash_list.c: Likewise.
7561         * tests/test-avltree_list.c: Likewise.
7562         * tests/test-rbtree_list.c: Likewise.
7563         * tests/test-avltreehash_list.c: Likewise.
7564         * tests/test-rbtreehash_list.c: Likewise.
7565         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
7566         * modules/carray-list-tests (Makefile.am): Likewise.
7567         * modules/linked-list-tests (Makefile.am): Likewise.
7568         * modules/linkedhash-list-tests (Makefile.am): Likewise.
7569         * modules/avltree-list-tests (Makefile.am): Likewise.
7570         * modules/rbtree-list-tests (Makefile.am): Likewise.
7571         * modules/avltreehash-list-tests (Makefile.am): Likewise.
7572         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
7573
7574         * NEWS: Mention the changes.
7575
7576         * lib/clean-temp.c: Include gl_xlist.h.
7577         * modules/clean-temp (Depends-on): Add xlist.
7578
7579         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
7580         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
7581
7582         * tests/test-array_oset.c: Include gl_xlist.h.
7583         * modules/array-oset-tests (Depends-on): Add xlist.
7584
7585         Reported by José E. Marchesi <jemarch@gnu.org>.
7586
7587 2009-12-13  Bruno Haible  <bruno@clisp.org>
7588
7589         Move the malloc checking from module 'oset' to new module 'xoset'.
7590         * modules/xoset: New file.
7591         * lib/gl_xoset.h: New file.
7592         * lib/gl_xoset.c: New file.
7593         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
7594         declarations.
7595         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
7596         (struct gl_oset_implementation): Rename and change methods accordingly.
7597         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
7598         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7599         'int'. Mark as __warn_unused_result__.
7600         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
7601         gl_oset_create_empty.
7602         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
7603         'int'.
7604         * lib/gl_array_oset.c: Don't include xalloc.h.
7605         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
7606         malloc, not xmalloc.
7607         (grow): Change return type to 'int'. Don't call xalloc_die.
7608         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
7609         to 'int'.
7610         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
7611         'int'.
7612         (gl_array_oset_implementation): Update.
7613         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
7614         gl_tree_create_empty.
7615         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
7616         'int'.
7617         * lib/gl_avltree_oset.c: Don't include xalloc.h.
7618         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7619         xmalloc.
7620         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7621         not xmalloc.
7622         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7623         xmalloc.
7624         (gl_avltree_oset_implementation): Update.
7625         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
7626         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
7627         xmalloc.
7628         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
7629         not xmalloc.
7630         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
7631         xmalloc.
7632         (gl_rbtree_oset_implementation): Update.
7633         * modules/array-oset (Depends-on): Remove xalloc.
7634         * modules/avltree-oset (Depends-on): Likewise.
7635         * modules/rbtree-oset (Depends-on): Likewise.
7636         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
7637         * tests/test-avltree_oset.c: Likewise.
7638         * tests/test-rbtree_oset.c: Likewise.
7639         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
7640         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
7641         * modules/rbtree-oset-tests (Makefile.am): Likewise.
7642         * NEWS: Mention the change.
7643
7644 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
7645
7646         maint.mk: allow a project to override release-prep commands
7647         * top/maint.mk (alpha, beta, stable): Move release-preparatory
7648         commands into a new rule.
7649         (release-prep): New rule.
7650         (release-prep-hook): New overridable variable.
7651
7652 2009-12-13  Bruno Haible  <bruno@clisp.org>
7653
7654         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
7655
7656 2009-12-13  Jim Meyering  <meyering@redhat.com>
7657
7658         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
7659         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
7660
7661 2009-12-12  Bruno Haible  <bruno@clisp.org>
7662
7663         duplocale: Tweak.
7664         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
7665
7666 2009-12-12  Karl Berry  <karl@gnu.org>
7667
7668         * config/srclist.txt (strtoll.c): tab changes, no more sync.
7669
7670 2009-12-12  Bruno Haible  <bruno@clisp.org>
7671
7672         * m4/po.m4: Undo incorrect untabification.
7673
7674 2009-12-12  Bruno Haible  <bruno@clisp.org>
7675
7676         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
7677         * modules/c-strtod (Depends-on): Add locale.
7678         * modules/c-strtold (Depends-on): Likewise.
7679
7680 2009-12-12  Bruno Haible  <bruno@clisp.org>
7681
7682         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
7683
7684 2009-12-11  Eric Blake  <ebb9@byu.net>
7685
7686         setenv: relax requirement in light of POSIX ruling
7687         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
7688         not NULL.
7689         * tests/test-setenv.c (main): Relax test.
7690         * tests/test-unsetenv.c (main): Likewise.
7691         * doc/posix-functions/setenv.texi (setenv): Document this.
7692         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
7693
7694 2009-12-11  Bruno Haible  <bruno@clisp.org>
7695
7696         New module 'fd-safer-flag'.
7697         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
7698         * lib/dup-safer.c (dup_safer_flag): Remove function.
7699         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
7700         * lib/fd-safer.c (fd_safer_flag): Remove function.
7701         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
7702         * modules/cloexec (configure.ac): Drop indicator macro.
7703         * modules/fd-safer-flag: New file.
7704         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
7705         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
7706         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
7707
7708 2009-12-11  Bruno Haible  <bruno@clisp.org>
7709
7710         Tests for module 'nl_langinfo'.
7711         * modules/nl_langinfo-tests: New file.
7712         * tests/test-nl_langinfo.sh: New file.
7713         * tests/test-nl_langinfo.c: New file.
7714
7715         New module 'nl_langinfo'.
7716         * lib/nl_langinfo.c: New file.
7717         * m4/nl_langinfo.m4: New file.
7718         * modules/nl_langinfo: New file.
7719         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
7720
7721 2009-12-11  Bruno Haible  <bruno@clisp.org>
7722
7723         Tests for module 'langinfo'.
7724         * modules/langinfo-tests: New file.
7725         * tests/test-langinfo.c: New file.
7726
7727         New module 'langinfo'.
7728         * lib/langinfo.in.h: New file.
7729         * m4/langinfo_h.m4: New file.
7730         * modules/langinfo: New file.
7731         * doc/posix-headers/langinfo.texi: Mention the new module.
7732
7733 2009-12-11  Bruno Haible  <bruno@clisp.org>
7734
7735         * lib/config.charset: Untabify.
7736
7737 2009-12-11  Bruno Haible  <bruno@clisp.org>
7738
7739         * modules/unistd-safer (configure.ac): Drop indicator macro.
7740
7741 2009-12-11  Bruno Haible  <bruno@clisp.org>
7742
7743         Move pipe2-safer code to its own file.
7744         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
7745         * lib/pipe-safer.c (pipe2_safer): Remove function.
7746         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
7747         (Makefile.am): Add it to lib_SOURCES.
7748
7749 2009-12-10  Bruno Haible  <bruno@clisp.org>
7750
7751         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
7752
7753 2009-12-10  Bruno Haible  <bruno@clisp.org>
7754
7755         Declare which arguments expect non-NULL values, for GCC and clang.
7756         * build-aux/arg-nonnull.h: New file.
7757         * modules/arg-nonnull: New file.
7758         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
7759         (inet_ntop, inet_pton): Use it.
7760         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
7761         (closedir, dirfd, opendir, scandir, alphasort): Use it.
7762         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
7763         (open, openat): Use it.
7764         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
7765         (fnmatch): Use it.
7766         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
7767         (getopt, getopt_long, getopt_long_only): Use it.
7768         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
7769         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
7770         Use it.
7771         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
7772         (iconv_open): Use it.
7773         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
7774         (strtoimax, strtoumax): Use it.
7775         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
7776         (duplocale): Use it.
7777         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
7778         (frexp, frexpl): Use it.
7779         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
7780         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
7781         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
7782         (tsearch, tfind, tdelete, twalk): Use it.
7783         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
7784         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7785         sigpending): Use it.
7786         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
7787         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7788         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7789         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7790         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7791         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7792         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7793         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7794         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7795         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7796         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7797         Use it.
7798         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
7799         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
7800         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
7801         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
7802         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
7803         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
7804         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
7805         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
7806         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
7807         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
7808         strtoull, unsetenv): Use it.
7809         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
7810         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7811         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7812         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
7813         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
7814         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
7815         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
7816         (strcasecmp, strncasecmp): Use it.
7817         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
7818         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
7819         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
7820         rpl_setsockopt): Use it.
7821         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
7822         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
7823         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
7824         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
7825         (gettimeofday): Use it.
7826         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
7827         (times): Use it.
7828         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
7829         (uname): Use it.
7830         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
7831         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
7832         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
7833         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
7834         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
7835         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
7836         unlinkat, write): Use it.
7837         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
7838         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
7839         * lib/argv-iter.h: Include arg-nonnull.h.
7840         (_ATTRIBUTE_NONNULL_): Remove macro.
7841         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
7842         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
7843         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
7844         optimization.
7845         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
7846         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
7847         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
7848         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
7849         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
7850         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
7851         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
7852         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
7853         * modules/arpa_inet (Depends-on): Add arg-nonnull.
7854         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
7855         * modules/dirent (Depends-on): Add arg-nonnull.
7856         (Makefile.am): Insert arg-nonnull.h into dirent.h.
7857         * modules/fcntl-h (Depends-on): Add arg-nonnull.
7858         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
7859         * modules/fnmatch (Depends-on): Add arg-nonnull.
7860         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
7861         * modules/getopt-posix (Depends-on): Add arg-nonnull.
7862         (Makefile.am): Insert arg-nonnull.h into getopt.h.
7863         * modules/glob (Depends-on): Add arg-nonnull.
7864         (Makefile.am): Insert arg-nonnull.h into glob.h.
7865         * modules/iconv_open (Depends-on): Add arg-nonnull.
7866         (Makefile.am): Insert arg-nonnull.h into iconv.h.
7867         * modules/inttypes (Depends-on): Add arg-nonnull.
7868         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
7869         * modules/locale (Depends-on): Add arg-nonnull.
7870         (Makefile.am): Insert arg-nonnull.h into locale.h.
7871         * modules/math (Depends-on): Add arg-nonnull.
7872         (Makefile.am): Insert arg-nonnull.h into math.h.
7873         * modules/netdb (Depends-on): Add arg-nonnull.
7874         (Makefile.am): Insert arg-nonnull.h into netdb.h.
7875         * modules/search (Depends-on): Add arg-nonnull.
7876         (Makefile.am): Insert arg-nonnull.h into search.h.
7877         * modules/signal (Depends-on): Add arg-nonnull.
7878         (Makefile.am): Insert arg-nonnull.h into signal.h.
7879         * modules/spawn (Depends-on): Add arg-nonnull.
7880         (Makefile.am): Insert arg-nonnull.h into spawn.h.
7881         * modules/stdio (Depends-on): Add arg-nonnull.
7882         (Makefile.am): Insert arg-nonnull.h into stdio.h.
7883         * modules/stdlib (Depends-on): Add arg-nonnull.
7884         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
7885         * modules/string (Depends-on): Add arg-nonnull.
7886         (Makefile.am): Insert arg-nonnull.h into string.h.
7887         * modules/strings (Depends-on): Add arg-nonnull.
7888         (Makefile.am): Insert arg-nonnull.h into strings.h.
7889         * modules/sys_socket (Depends-on): Add arg-nonnull.
7890         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
7891         * modules/sys_stat (Depends-on): Add arg-nonnull.
7892         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
7893         * modules/sys_time (Depends-on): Add arg-nonnull.
7894         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
7895         * modules/sys_times (Depends-on): Add arg-nonnull.
7896         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
7897         * modules/sys_utsname (Depends-on): Add arg-nonnull.
7898         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
7899         * modules/time (Depends-on): Add arg-nonnull.
7900         (Makefile.am): Insert arg-nonnull.h into time.h.
7901         * modules/unistd (Depends-on): Add arg-nonnull.
7902         (Makefile.am): Insert arg-nonnull.h into unistd.h.
7903         * modules/wchar (Depends-on): Add arg-nonnull.
7904         (Makefile.am): Insert arg-nonnull.h into wchar.h.
7905         * modules/argv-iter (Depends-on): Add arg-nonnull.
7906         * tests/test-canonicalize.c (null_ptr): New function.
7907         (main): Use it.
7908         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
7909         (main): Use it.
7910         * tests/test-memmem.c (null_ptr): New function.
7911         (main): Use it.
7912         Reported by Jim Meyering.
7913
7914 2009-12-10  Bruno Haible  <bruno@clisp.org>
7915
7916         Use spaces for indentation, not tabs.
7917         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
7918         * m4/*.m4: Untabify.
7919         * build-aux/*.h: Untabify.
7920         * tests/**/*.[hc]: Untabify.
7921         * README: New section "Indent with spaces, not TABs", based on
7922         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
7923         * NEWS: Mention the change.
7924
7925 2009-12-10  Bruno Haible  <bruno@clisp.org>
7926
7927         pty test: Fix link error.
7928         * modules/pty-tests (Makefile.am): Add the default LDADD value to
7929         test_pty_LDADD.
7930
7931 2009-12-07  Simon Josefsson  <simon@josefsson.org>
7932
7933         * modules/pty: New file.
7934         * modules/pty-tests: New file.
7935         * m4/pty.m4: New file.
7936         * tests/test-pty.c: New file.
7937         * doc/glibc-headers/pty.texi: Modified.
7938         * doc/glibc-functions/forkpty.texi: Modified.
7939         * doc/glibc-functions/openpty.texi: Modified.
7940
7941 2009-12-10  Bruno Haible  <bruno@clisp.org>
7942
7943         Avoid syntax error in C++ mode.
7944         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
7945
7946 2009-12-10  Bruno Haible  <bruno@clisp.org>
7947
7948         Use sed with option -e.
7949         * gnulib-tool (func_version, func_emit_copyright_notice,
7950         func_emit_initmacro_end, func_import, func_create_testdir): Pass
7951         option -e to sed.
7952         * modules/link-warning (Makefile.am): Likewise.
7953
7954 2009-12-10  Jim Meyering  <meyering@redhat.com>
7955
7956         mgetgroups: do not write bytes beyond end of malloc'd buffer
7957         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
7958         username, we call getgroups with a one-element-shorter buffer,
7959         but still told it the length was original, max_n_groups.
7960
7961 2009-12-09  Eric Blake  <ebb9@byu.net>
7962
7963         cloexec: relax license
7964         * modules/cloexec (Maintainer): Add myself.
7965         (License): Use LGPL, not GPL.
7966
7967         link-warning: optimize generation
7968         * modules/link-warning (Makefile.am): Reduce process usage.
7969
7970 2009-12-09  Bruno Haible  <bruno@clisp.org>
7971
7972         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
7973         workaround was added on 2009-11-17.
7974
7975 2009-12-09  Jim Meyering  <meyering@redhat.com>
7976             Bruno Haible  <bruno@clisp.org>
7977
7978         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
7979         * modules/link-warning (Makefile.am): Make the comment-removing sed
7980         command more robust in the face of bootstrap-prepended comment lines.
7981
7982 2009-12-09  Bruno Haible  <bruno@clisp.org>
7983
7984         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
7985         most one group.
7986
7987 2009-12-09  Simon Josefsson <simon@josefsson.org>
7988             Bruno Haible  <bruno@clisp.org>
7989
7990         * build-aux/link-warning.h: Add copyright notice.
7991         * modules/link-warning (Makefile.am): Generate link-warning.h from
7992         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
7993         * NEWS: Mention change in link-warning module.
7994         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
7995         * modules/dirent (Makefile.am): Add dependency to dirent.h.
7996         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
7997         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
7998         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
7999         * modules/math (Makefile.am): Add dependency to math.h.
8000         * modules/search (Makefile.am): Add dependency to search.h.
8001         * modules/signal (Makefile.am): Add dependency to signal.h.
8002         * modules/spawn (Makefile.am): Add dependency to spawn.h.
8003         * modules/stdio (Makefile.am): Add dependency to stdio.h.
8004         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
8005         * modules/string (Makefile.am): Add dependency to string.h.
8006         * modules/strings (Makefile.am): Add dependency to strings.h.
8007         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
8008         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
8009         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
8010         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
8011         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
8012         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
8013         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
8014         * modules/unistd (Makefile.am): Add dependency to unistd.h.
8015         * modules/wchar (Makefile.am): Add dependency to wchar.h.
8016
8017 2009-12-09  Bruno Haible  <bruno@clisp.org>
8018
8019         fchdir: Optimize away rpl_fstat when possible.
8020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
8021         REPLACE_OPEN_DIRECTORY.
8022         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
8023
8024 2009-12-09  Bruno Haible  <bruno@clisp.org>
8025
8026         * lib/fchdir.c: Update comment.
8027
8028 2009-12-09  Bruno Haible  <bruno@clisp.org>
8029
8030         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
8031
8032 2009-12-08  Eric Blake  <ebb9@byu.net>
8033
8034         fchdir: avoid memory leak on re-registration.
8035         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
8036
8037 2009-12-08  Jim Meyering  <meyering@redhat.com>
8038
8039         init.sh: avoid Solaris 10 /bin/sh portability problem
8040         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
8041         sourced script:
8042           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
8043           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
8044           bar
8045         tests/init.sh relied on that, accepting a --set-path=DIR argument,
8046         and two tests used that idiom.
8047         * tests/init.sh: Update suggested usage comments.
8048         (path_prepend_): New function, to be used in place
8049         of the --src-path=DIR option.
8050         (setup_): Move PATH-prepending code into path_prepend_.
8051         * tests/test-pread.sh: Adapt to new usage.
8052         * tests/test-xalloc-die.sh: Likewise.
8053
8054 2009-12-08  Simon Josefsson  <simon@josefsson.org>
8055
8056         * doc/gnulib.texi (Glibc pty.h): Add.
8057         * doc/glibc-functions/forkpty.texi: Add.
8058         * doc/glibc-functions/openpty.texi: Add.
8059         Suggested by Bruno Haible.
8060
8061 2009-12-08  Eric Blake  <ebb9@byu.net>
8062
8063         fchdir: fix logic bugs
8064         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
8065         * tests/test-fchdir.c (main): Enhance test.
8066         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
8067         is in use.
8068
8069         dup2: fix logic bugs
8070         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
8071         REPLACE_DUP2 to decide when rpl_dup2 is needed.
8072         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
8073         exists.
8074         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
8075
8076 2009-12-07  Eric Blake  <ebb9@byu.net>
8077
8078         unlink: fix m4 detection
8079         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
8080
8081         unistd-safer: add unit test
8082         * modules/unistd-safer-tests: New file.
8083         * tests/test-dup-safer.c: Likewise.
8084         * tests/test-cloexec.c (setmode): Avoid compiler warning.
8085         * tests/test-dup2.c (setmode): Likewise.
8086         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
8087
8088         cloexec: preserve text vs. binary across dup_cloexec
8089         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
8090         mode.
8091         * modules/dup2-tests (Depends-on): Add binary-io.
8092         * modules/cloexec-tests (Depends-on): Likewise.
8093         * tests/test-dup2.c (setmode, is_mode): New helpers.
8094         (main): Add tests that translation mode is preserved.
8095         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
8096         Reported by Bruno Haible.
8097
8098         mgetgroups: reduce duplicate listings
8099         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
8100         resulting array.
8101         * tests/test-chown.h (test_chown): Simplify client.
8102         * tests/test-lchown.h (test_lchown): Likewise.
8103
8104 2009-12-06  Bruno Haible  <bruno@clisp.org>
8105
8106         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
8107         value.
8108
8109 2009-12-06  Bruno Haible  <bruno@clisp.org>
8110
8111         * lib/progname.c: Include stdio.h, stdlib.h.
8112         (set_program_name): Reject a NULL argument.
8113
8114 2009-12-05  Eric Blake  <ebb9@byu.net>
8115
8116         pipe2-safer: new module
8117         * modules/pipe2-safer: New file.
8118         * lib/unistd-safer.h (pipe2_safer): New prototype.
8119         * lib/unistd--.h (pipe2): New wrapper.
8120         * lib/pipe-safer.c (pipe2_safer): New function.
8121         * modules/pipe (Depends-on): Add pipe2-safer.
8122         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
8123
8124         stdlib-safer: preserve cloexec flag for mkostemp[s]
8125         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
8126         fd_safer_flag.
8127
8128         unistd-safer: allow preservation of cloexec status via flag
8129         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
8130         prototypes.
8131         * lib/dup-safer.c (dup_safer_flag): New function.
8132         * lib/fd-safer.c (fd_safer_flag): Likewise.
8133         * modules/cloexec (configure.ac): Set witness.
8134
8135         test-dup2: enhance test
8136         * modules/dup2-tests (Depends-on): Add cloexec.
8137         * tests/test-dup2.c (main): Enhance test.
8138
8139         cloexec: add dup_cloexec
8140         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
8141         header and comments.
8142         * lib/cloexec.c (set_cloexec_flag): Add comments.
8143         (dup_cloexec): New function, with mingw implementation borrowed
8144         from...
8145         * lib/w32spawn.h (dup_noinherit): ...here.
8146         * modules/execute (Depends-on): Add cloexec.
8147         * modules/pipe (Depends-on): Likewise.
8148         * modules/cloexec (Depends-on): Add dup2.
8149         * modules/cloexec-tests (Files): New file.
8150         * tests/test-cloexec.c: Likewise.
8151
8152         test-xalloc-die: fix test for mingw
8153         * modules/xalloc-die-tests (Files): Add tests/init.sh.
8154         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
8155         directory and .exe suffix off argv[0] output.
8156
8157         test-fseeko: fix test for mingw
8158         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
8159         than undefining fseek, so test will pass on mingw.
8160
8161 2009-12-05  Bruno Haible  <bruno@clisp.org>
8162
8163         * lib/progname.h (set_program_name): Clarify specification.
8164         * lib/progname.c (set_program_name): Likewise.
8165         Reported by Jim Meyering.
8166
8167 2009-12-05  Jim Meyering  <meyering@redhat.com>
8168
8169         maint.mk: backslash-escape parens in default regexp
8170         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
8171         backslash-escape the literal parentheses.
8172
8173         maint.mk: news-date-check: use grep -E
8174         * top/maint.mk (today): Define a Make variable, not a...
8175         (news-date-check): ...shell variable.
8176         (news-date-regexp): Use the Make variable.
8177         Use grep's -E option.  Change the failing diagnostic to mention
8178         the variable, $(news-date-regexp).
8179
8180 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
8181
8182         maintainer-makefile: allow customization of NEWS entry format
8183         * top/maint.mk (news-date-regexp): New overridable variable.
8184         (news-date-check): Use it.
8185
8186 2009-12-04  Eric Blake  <ebb9@byu.net>
8187
8188         mgetgroups: add xgetgroups, and avoid ENOSYS failures
8189         * lib/mgetgroups.h (xgetgroups): New prototype.
8190         * lib/mgetgroups.c (xgetgroups): New wrapper.
8191         (mgetgroups): Handle ENOSYS.
8192         * modules/mgetgroups (Depends-on): Add realloc.
8193         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
8194
8195         mgetgroups: avoid argument promotion issues with -1
8196         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
8197         for invalid gid_t.
8198         * tests/test-chown.h (getegid, test_chown): Likewise.
8199         * tests/test-lchown.h (getegid, test_lchown): Likewise.
8200
8201 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
8202
8203         exclude: Fix header file problems.
8204         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
8205
8206 2009-12-01  Jim Meyering  <meyering@redhat.com>
8207
8208         fts: fts_open: do not let an empty string cause immediate failure
8209         This is required in support of GNU rm, for which the command
8210         "rm A '' B" must process and remove both A and B, in spite of
8211         the empty string argument.
8212         * lib/fts.c (fts_open): Do not let the presence of an empty string
8213         cause fts_open to fail immediately.  Most fts-using tools must be
8214         able to process all arguments, in order, and can be expected to
8215         diagnose such arguments themselves.
8216
8217 2009-11-30  Eric Blake  <ebb9@byu.net>
8218
8219         utimens: fix compilation error
8220         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
8221         Declare variable at right scope.
8222
8223 2009-11-29  Jim Meyering  <meyering@redhat.com>
8224
8225         bootstrap: handle perl-5.11's changed --version output
8226         * build-aux/bootstrap (get_version): Handle perl separately,
8227         since perl-5.11's --version output is different.
8228
8229 2009-11-28  Jim Meyering  <meyering@redhat.com>
8230
8231         userspec: depend on the inttostr module, too
8232         * modules/userspec (Depends-on): Add inttostr.
8233
8234         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
8235         * lib/userspec.c (parse_with_separator): Do not accept a user ID
8236         number of MAXUID when it evaluates to (uid_t) -1.
8237         Likewise for group ID.  Reported by Matt McCutchen in
8238         <http://savannah.gnu.org/bugs/?28113>
8239
8240         userspec: reformat to use spaces, not TABs
8241         * lib/userspec.c: Expand TABs to spaces.
8242         Add Emacs' "indent-tabs-mode: nil" hint.
8243
8244 2009-11-27  Eric Blake  <ebb9@byu.net>
8245
8246         getopt-gnu: flush out another BSD bug
8247         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
8248         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
8249         flush out BSD bug.
8250         * tests/test-getopt.h (test_getopt): End lists with NULL.
8251         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8252         (test_getopt_long_posix): Enhance test.
8253         * modules/getopt-posix-tests (Depends-on): Add stdbool.
8254         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
8255         getopt-gnu.
8256         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8257         Likewise.
8258
8259 2009-11-27  Simon Josefsson  <simon@josefsson.org>
8260
8261         * modules/idpriv-droptemp-tests (Notice): Fix text.
8262
8263 2009-11-27  Jim Meyering  <meyering@redhat.com>
8264
8265         test-xalloc-die: avoid spurious failure due to libtool argv difference
8266         In a libtool-enabled project, this test would fail due to a difference
8267         in the emitted program name, e.g.,
8268         -test-xalloc-die: memory exhausted
8269         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
8270         Use program to avoid that.
8271         * modules/xalloc-die-tests (Depends-on): Add progname.
8272         * tests/test-xalloc-die.c: Include progname.h".
8273         (program_name): Remove decl.
8274         (main): Call set_program_name.
8275         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
8276
8277 2009-11-26  Richard Jones  <rjones@redhat.com>
8278
8279         w32sock: leave win32 error in place.
8280         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
8281
8282 2009-11-26  Eric Blake  <ebb9@byu.net>
8283
8284         init.sh: suggest to use skip_ and fail_ functions in comments
8285         * tests/init.sh: Add a sentence.
8286
8287 2009-11-25  Bruno Haible  <bruno@clisp.org>
8288
8289         init.sh: add documentation in comments
8290         * tests/init.sh: Add some developer and user documentation.
8291
8292 2009-11-26  Jim Meyering  <meyering@redhat.com>
8293
8294         init.sh: accommodate even those who specify bogus srcdir manually
8295         * tests/init.sh: Normally, srcdir is guaranteed by automake and
8296         configure-time tests to be sanitized, so that there is no need to
8297         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
8298         (with no double quotes) suffices.  However, since tests may be
8299         invoked manually, and since you may explicitly set srcdir to the
8300         name of a directory containing spaces, do quote its uses here.
8301         * tests/test-pread.sh: Likewise.
8302         Suggested by Bruno Haible.
8303
8304         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
8305         * tests/test-pread.sh: Write no data into the pipe, because
8306         test-pread actually reads none.  This avoids a diagnostic,
8307         "bash: echo: write error: Broken pipe", that arises in the unusual
8308         event something is ignoring SIGPIPE, and might be interpreted
8309         as some sort of failure.  Reported by Bruno Haible.
8310
8311 2009-11-25  Jim Meyering  <meyering@redhat.com>
8312
8313         test-pread: cover failure with ESPIPE and EINVAL
8314         * tests/test-pread.c (main): Test for failure, too.
8315         * tests/test-pread.sh: Invoke with stdin on a pipe.
8316         Suggested by Eric Blake.
8317
8318         pread: improvement and fix
8319         * modules/pread (Depends-on): Depend on lseek, for portability to
8320         e.g., mingw.  Suggested by Eric Blake.
8321         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
8322
8323         unistd.in.h: correct declaration of pread
8324         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
8325         Reported by Richard W.M. Jones.
8326
8327         test-pread.sh: distribute the test script
8328         * modules/pread-tests (Files): Include test-pread.sh.
8329
8330         test-pread.sh: clean up
8331         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
8332         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
8333         That is unnecessary, since it's always ".".
8334         Suggestion from Eric Blake.
8335
8336         test-pread.sh: make executable
8337         * tests/test-pread.sh: Set executable bit.
8338         Reported by Eric Blake.
8339
8340         correct typo in test-pread.sh
8341         * tests/test-pread.sh: Add #! line.
8342
8343         test pread
8344         * tests/test-pread.c: New file.
8345         * tests/test-pread.sh: Likewise.
8346         * modules/pread-tests: Likewise.
8347
8348         pread: new module
8349         * modules/pread: New file.
8350         * lib/unistd.in.h (pread): Define/declare.
8351         * lib/pread.c (pread): New file.
8352         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
8353         * modules/unistd (Makefile.am): Substitute witnesses.
8354         * doc/posix-functions/pread.texi (pread): Update.
8355         * MODULES.html.sh: Add pread.
8356
8357 2009-11-25  Jim Meyering  <meyering@redhat.com>
8358
8359         tests/init.sh: new file to be used via most *.sh tests
8360         * tests/init.sh: New file.
8361
8362 2009-11-25  Eric Blake  <ebb9@byu.net>
8363
8364         utimens: work around older Linux failure with symlinks
8365         * lib/utimens.c (lutimensat_works_really): New variable.
8366         (fdutimens, lutimens): Use it to manage kernels that support
8367         nanosecond times on files, but not on symlinks.
8368         Reported by Ondřej Vašík.
8369
8370         utimes: fix configure grammar
8371         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
8372
8373 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
8374
8375         regex: Fix fastmap for multibyte character ranges.
8376         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
8377         characters when a multibyte character range is included.
8378
8379 2009-11-22  Andy Wingo  <wingo@pobox.com>
8380
8381         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
8382         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
8383
8384 2009-11-24  Bruno Haible  <bruno@clisp.org>
8385
8386         doc: Most *_l functions exist in MacOS X 10.5.
8387         * doc/posix-functions/duplocale.texi: Update platforms list.
8388         * doc/posix-functions/freelocale.texi: Likewise.
8389         * doc/posix-functions/newlocale.texi: Likewise.
8390         * doc/posix-functions/uselocale.texi: Likewise.
8391         * doc/posix-functions/isalnum_l.texi: Likewise.
8392         * doc/posix-functions/isalpha_l.texi: Likewise.
8393         * doc/posix-functions/isblank_l.texi: Likewise.
8394         * doc/posix-functions/iscntrl_l.texi: Likewise.
8395         * doc/posix-functions/isdigit_l.texi: Likewise.
8396         * doc/posix-functions/isgraph_l.texi: Likewise.
8397         * doc/posix-functions/islower_l.texi: Likewise.
8398         * doc/posix-functions/isprint_l.texi: Likewise.
8399         * doc/posix-functions/ispunct_l.texi: Likewise.
8400         * doc/posix-functions/isspace_l.texi: Likewise.
8401         * doc/posix-functions/isupper_l.texi: Likewise.
8402         * doc/posix-functions/iswalnum_l.texi: Likewise.
8403         * doc/posix-functions/iswalpha_l.texi: Likewise.
8404         * doc/posix-functions/iswblank_l.texi: Likewise.
8405         * doc/posix-functions/iswcntrl_l.texi: Likewise.
8406         * doc/posix-functions/iswctype_l.texi: Likewise.
8407         * doc/posix-functions/iswdigit_l.texi: Likewise.
8408         * doc/posix-functions/iswgraph_l.texi: Likewise.
8409         * doc/posix-functions/iswlower_l.texi: Likewise.
8410         * doc/posix-functions/iswprint_l.texi: Likewise.
8411         * doc/posix-functions/iswpunct_l.texi: Likewise.
8412         * doc/posix-functions/iswspace_l.texi: Likewise.
8413         * doc/posix-functions/iswupper_l.texi: Likewise.
8414         * doc/posix-functions/iswxdigit_l.texi: Likewise.
8415         * doc/posix-functions/isxdigit_l.texi: Likewise.
8416         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
8417         * doc/posix-functions/strcasecmp_l.texi: Likewise.
8418         * doc/posix-functions/strcoll_l.texi: Likewise.
8419         * doc/posix-functions/strfmon_l.texi: Likewise.
8420         * doc/posix-functions/strftime_l.texi: Likewise.
8421         * doc/posix-functions/strncasecmp_l.texi: Likewise.
8422         * doc/posix-functions/strxfrm_l.texi: Likewise.
8423         * doc/posix-functions/tolower_l.texi: Likewise.
8424         * doc/posix-functions/toupper_l.texi: Likewise.
8425         * doc/posix-functions/towctrans_l.texi: Likewise.
8426         * doc/posix-functions/towlower_l.texi: Likewise.
8427         * doc/posix-functions/towupper_l.texi: Likewise.
8428         * doc/posix-functions/wcscoll_l.texi: Likewise.
8429         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8430         * doc/posix-functions/wctrans_l.texi: Likewise.
8431         * doc/posix-functions/wctype_l.texi: Likewise.
8432         * doc/glibc-functions/strptime_l.texi: Likewise.
8433         * doc/glibc-functions/strtod_l.texi: Likewise.
8434         * doc/glibc-functions/strtof_l.texi: Likewise.
8435         * doc/glibc-functions/strtol_l.texi: Likewise.
8436         * doc/glibc-functions/strtold_l.texi: Likewise.
8437         * doc/glibc-functions/strtoll_l.texi: Likewise.
8438         * doc/glibc-functions/strtoul_l.texi: Likewise.
8439         * doc/glibc-functions/strtoull_l.texi: Likewise.
8440         * doc/glibc-functions/wcsftime_l.texi: Likewise.
8441         * doc/glibc-functions/wcstod_l.texi: Likewise.
8442         * doc/glibc-functions/wcstof_l.texi: Likewise.
8443         * doc/glibc-functions/wcstol_l.texi: Likewise.
8444         * doc/glibc-functions/wcstold_l.texi: Likewise.
8445         * doc/glibc-functions/wcstoll_l.texi: Likewise.
8446         * doc/glibc-functions/wcstoul_l.texi: Likewise.
8447         * doc/glibc-functions/wcstoull_l.texi: Likewise.
8448
8449 2009-11-24  Bruno Haible  <bruno@clisp.org>
8450
8451         duplocale: Fix logic bug.
8452         * lib/duplocale.c: Don't include <langinfo.h>.
8453         (_NL_LOCALE_NAME): Remove macro.
8454         (rpl_duplocale): Use setlocale instead of nl_langinfo.
8455         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
8456
8457 2009-11-23  Jim Meyering  <meyering@redhat.com>
8458
8459         test-update-copyright: don't hard-code /usr/bin/perl
8460         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
8461         perl to print the current year.  Gilles Espinasse reported that
8462         the replaced use of perl was hard-coded as /usr/bin/perl.
8463
8464 2009-11-23  Bruno Haible  <bruno@clisp.org>
8465
8466         duplocale: Add support for glibc 2.3.x.
8467         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
8468
8469 2009-11-22  Bruno Haible  <bruno@clisp.org>
8470
8471         vasnprintf: Tiny optimization.
8472         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
8473         MacOS X.
8474
8475 2009-11-22  Bruno Haible  <bruno@clisp.org>
8476
8477         Tests for module 'duplocale'.
8478         * modules/duplocale-tests: New file.
8479         * tests/test-duplocale.c: New file.
8480
8481         New module 'duplocale'.
8482         * m4/duplocale.m4: New file.
8483         * lib/locale.in.h (duplocale): New declaration.
8484         * lib/duplocale.c: New file.
8485         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
8486         gl_LOCALE_H_DEFAULTS): New macros.
8487         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
8488         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
8489         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
8490         REPLACE_DUPLOCALE.
8491         * modules/duplocale: New file.
8492         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
8493
8494 2009-11-22  Bruno Haible  <bruno@clisp.org>
8495
8496         * modules/locale-tests (configure.ac): Test for newlocale function.
8497         * tests/test-locale.c: When the system has extended locale functions,
8498         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
8499
8500         locale: Make locale_t available when possible.
8501         * lib/locale.in.h: Include <xlocale.h> when it exists.
8502         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
8503         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
8504         * modules/locale (Depends-on): Add extensions.
8505         (Makefile.am): Also substitute HAVE_XLOCALE_H.
8506         * doc/posix-headers/locale.texi: Document the problem with locale_t.
8507
8508 2009-11-22  Bruno Haible  <bruno@clisp.org>
8509
8510         Add comments.
8511         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
8512         invocation.
8513         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8514         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8515         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8516
8517 2009-11-22  Bruno Haible  <bruno@clisp.org>
8518
8519         error: account for the possibility of freopen (stdout).
8520         * lib/error.c: Include <unistd.h>.
8521         (flush_stdout): New function, extracted from error and error_at_line.
8522         Determine stdout's fd dynamically.
8523         (error, error_at_line): Invoke flush_stdout.
8524         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
8525         * modules/error (Depends-on): Add unistd.
8526
8527 2009-11-22  Bruno Haible  <bruno@clisp.org>
8528
8529         diffseq: Add comment.
8530         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
8531
8532 2009-11-22  Jim Meyering  <meyering@redhat.com>
8533
8534         c-stack: avoid defining an unused static function
8535         * lib/c-stack.c (find_stack_direction): Do not define this function
8536         when it will not be used.
8537
8538         diffseq: avoid spurious gcc warnings
8539         * lib/diffseq.h (IF_LINT2): Define.
8540         (compareseq): Use it to initialize two members of "part".
8541         This avoids two used-uninitialized warnings.
8542
8543 2009-11-21  Jim Meyering  <meyering@redhat.com>
8544
8545         c-stack: avoid "ignoring return value of `write'" warning
8546         * lib/c-stack.c: Include "ignore-value.h".
8547         (die): Explicitly ignore each write return value.
8548         * modules/c-stack (Depends-on): Add ignore-value.
8549
8550 2009-11-21  Bruno Haible  <bruno@clisp.org>
8551
8552         diffseq: reduce scope of variable 'best'.
8553         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
8554         variable, earlier used for two different purposes.
8555
8556 2009-11-21  Jim Meyering  <meyering@redhat.com>
8557
8558         diffseq: remove useless assignment to "best"
8559         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
8560         assignment.  At that point "best" is already guaranteed to be zero.
8561
8562 2009-11-20  Eric Blake  <ebb9@byu.net>
8563
8564         build: mention ftp redirector in release announcements
8565         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
8566         values that used to come from cfg.mk; mention FTP redirect URL.
8567         * build-aux/announce-gen: Mention the mirror list.
8568         Suggested by Karl Berry.
8569
8570         nanosleep: improve port to mingw
8571         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
8572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
8573         LIB_NANOSLEEP, but only when needed.
8574         * modules/select (Link): Document LIBSOCKET.
8575         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
8576         enough.
8577
8578         nanosleep: work around cygwin bug
8579         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
8580         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
8581         bug.
8582         (getnow): Delete, not needed.
8583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
8584         LIB_CLOCK_GETTIME.
8585         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
8586         clock-time, gettime.
8587         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
8588         bug.
8589         * modules/nanosleep-tests: New test.
8590         * tests/test-nanosleep.c: New file.
8591
8592         sleep: work around cygwin bug
8593         * lib/sleep.c (rpl_sleep): Work around the bug.
8594         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
8595         (gl_PREREQ_SLEEP): Delete unused macro.
8596         * modules/sleep (Depends-on): Add verify.
8597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8598         * modules/unistd (Makefile.am): Substitute witness.
8599         * lib/unistd.in.h (sleep): Update prototype.
8600         * doc/posix-functions/sleep.texi (sleep): Document the bug.
8601         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
8602         * modules/sleep-tests (Depends-on): Check for alarm.
8603
8604 2009-11-20  Jim Meyering  <meyering@redhat.com>
8605
8606         maint.mk: improve sc_prohibit_magic_number_exit
8607         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
8608         so it does not match uses like System.exit(1).
8609         Add comments showing how to correct all offenders.
8610
8611 2009-11-19  Eric Blake  <ebb9@byu.net>
8612
8613         xalloc-die-tests: add missing library
8614         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
8615
8616         test-xvasprintf: silence compiler warnings
8617         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
8618         empty string from gcc.
8619
8620 2009-11-19  Jim Meyering  <meyering@redhat.com>
8621
8622         xfreopen: new module, from coreutils
8623         * modules/xfreopen: New module.
8624         * lib/xfreopen.c: New file.
8625         * lib/xfreopen.h: New file.
8626         * MODULES.html.sh (File stream based Input/Output"): Add it.
8627
8628 2009-11-19  Eric Blake  <ebb9@byu.net>
8629
8630         manywarnings: depend on warnings
8631         * modules/manywarnings (Depends-on): Add warnings.
8632
8633         build: avoid compiler warnings
8634         * lib/select.c (rpl_select): Delete unused variable.
8635         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
8636
8637 2009-11-18  Eric Blake  <ebb9@byu.net>
8638
8639         tests: avoid false negative with --with-packager
8640         * tests/test-version-etc.sh: Discard packager information.
8641         * tests/test-argp-version-etc-1.sh: Likewise.
8642         Reported by Mike Frysinger.
8643
8644         utimens: fix regression on Solaris
8645         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
8646         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
8647         can only change fd timestamps via futimesat.  Instead, use an
8648         additional witness macro to avoid BSD bug.
8649         Reported by Jim Meyering.
8650
8651 2009-11-17  Eric Blake  <ebb9@byu.net>
8652
8653         usleep: use it to simplify tests
8654         * modules/stat-time-tests (Depends-on): Add usleep.
8655         (configure.ac): Drop usleep check.
8656         * modules/chown-tests (Depends-on, configure.ac): Likewise.
8657         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
8658         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
8659         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
8660         * modules/openat-tests (Depends-on, configure.ac): Likewise.
8661         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
8662         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
8663         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
8664         Likewise.
8665         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
8666         * tests/test-lchown.h (nap): Likewise.
8667         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
8668         * tests/test-stat-time.c (nap): Likewise.
8669         * tests/test-utimens-common.h (nap): Update comments.
8670
8671         usleep: new module
8672         * modules/usleep: New file.
8673         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
8674         * lib/usleep.c (usleep): Likewise.
8675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8676         * modules/unistd (Makefile.am): Substitute witnesses.
8677         * lib/unistd.in.h (usleep): Add declaration.
8678         * doc/pastposix-functions/usleep.texi (usleep): Document this.
8679         * MODULES.html.sh (Date and time): Likewise.
8680         * modules/usleep-tests (Depends-on): New test.
8681         * tests/test-usleep.c: New file.
8682
8683         chown: work around OpenBSD bug
8684         * lib/chown.c (rpl_chown): Work around the bug.
8685         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
8686         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
8687         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
8688         * modules/chown (Depends-on): Add stdbool.
8689         * modules/lchown (Depends-on): Likewise.
8690         * doc/posix-functions/chown.texi (chown): Document the bug.
8691         * doc/posix-functions/lchown.texi (lchown): Likewise.
8692         * tests/test-lchown.h (test_chown): Relax test.
8693
8694         mkstemp: avoid conflict with C++ keyword template
8695         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
8696         * lib/mkostemp.c (mkostemp): Likewise.
8697         * lib/mkostemps.c (mkostemps): Likewise.
8698         * lib/mkstemp.c (mkstemp): Likewise.
8699         * lib/mkstemps.c (mkstemps): Likewise.
8700
8701         xalloc-die-tests: optimize
8702         * tests/test-xalloc-die.sh: Reduce number of processes.
8703
8704 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8705
8706         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
8707         patch from ludo@gnu.org (Ludovic Courtès).
8708
8709 2009-11-17  Jim Meyering  <meyering@redhat.com>
8710
8711         version-etc: use proper license string
8712         * modules/version-etc (License): Use LGPL, not LGPLv3+.
8713         * modules/version-etc-fsf: Likewise.
8714
8715 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8716
8717         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
8718         printed to stdout.  Deal with EOL differences.
8719
8720 2009-11-17  Eric Blake  <ebb9@byu.net>
8721
8722         unsetenv: work around Solaris bug
8723         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
8724         * lib/unsetenv.c (rpl_unsetenv): Work around it.
8725         Reported by Jim Meyering.
8726
8727         vasnprintf: avoid compiler warnings
8728         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
8729         variables.
8730         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
8731
8732 2009-11-17  Simon Josefsson  <simon@josefsson.org>
8733
8734         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
8735         settings since xalloc-die is no longer the self test,
8736         xalloc-die.sh is.
8737
8738 2009-11-17  Jim Meyering  <meyering@redhat.com>
8739
8740         test-xalloc-die.sh: make the code agree with the commit log
8741         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
8742         at the end, just in case you happen to have a test-xalloc-die
8743         program in some other PATH directory.
8744
8745         test-xalloc-die.sh: fix a portability bug
8746         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
8747         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
8748         Otherwise, argv[0] (as often seen in diagnostics) would be too
8749         system-dependent, sometimes with, and sometimes without the leading "./".
8750
8751         version-etc-fsf: relax license to LGPLv3+
8752         * modules/version-etc-fsf (License): Relax license.
8753
8754 2009-11-16  Eric Blake  <ebb9@byu.net>
8755
8756         xalloc-die-tests: avoid printing null pointer
8757         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
8758         shell script.
8759         * tests/test-xalloc-die.c (program_name): Declare.
8760         * tests/test-xalloc-die.sh (tmpfiles): New file.
8761
8762         setenv, unsetenv: work around various bugs
8763         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
8764         (setenv) [HAVE_SETENV]: Work around bugs.
8765         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
8766         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
8767         for bugs.
8768         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
8769         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
8770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
8771         * modules/stdlib (Makefile.am): Update substitutions.
8772         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
8773         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
8774         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
8775         * modules/setenv-tests: New test.
8776         * modules/unsetenv-tests: Likewise.
8777         * tests/test-setenv.c: New file.
8778         * tests/test-unsetenv.c: Likewise.
8779
8780 2009-11-16  Jim Meyering  <meyering@redhat.com>
8781
8782         version-etc: relax license to LGPLv3+
8783         * modules/version-etc (License): Relax license.
8784
8785         better AC_REQUIRE expanded-before-required-warning avoidance
8786         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
8787         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
8788         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
8789         which is no longer needed.
8790
8791 2009-11-16  Eric Blake  <ebb9@byu.net>
8792
8793         test-freading: clean up temporary file
8794         * tests/test-freading.c (main): Remove file on success, and use
8795         ASSERT more liberally.
8796         Reported by Jim Meyering.
8797
8798 2009-11-16  Jim Meyering  <meyering@redhat.com>
8799
8800         avoid new AC_REQUIRE expanded-before-required warnings
8801         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
8802         merely using it.
8803         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
8804         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
8805
8806 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8807
8808         * tests/test-xalloc-die.c: New file.
8809         * modules/xalloc-die-tests: New file.
8810         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
8811         XFAIL_TESTS so it can be appended by modules.
8812
8813 2009-11-15  Simon Josefsson  <simon@josefsson.org>
8814
8815         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
8816         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
8817
8818 2009-11-14  Eric Blake  <ebb9@byu.net>
8819
8820         fnmatch: avoid compiler warning
8821         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
8822         to silence compiler warning about mismatch signedness in ?:.
8823         Reported by Robert Millan.
8824
8825         intprops: add double-inclusion guard
8826         * lib/intprops.h: Allow idempotent includes.
8827         Suggested by Bruce Korb.
8828
8829         openat: detect Solaris fchownat bug
8830         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
8831         penalizing glibc chownat when only lchownat is broken.
8832         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
8833         trailing slash bugs.
8834         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
8835         * modules/openat-tests (Files): Include more files.
8836         (Depends-on): Add mgetgroups, sleep, stat-time.
8837         (configure.ac): Add additional checks.
8838         (Makefile.am): Build new test.
8839         * tests/test-fchownat.c: New file.
8840
8841         lchown: detect Solaris and FreeBSD bug
8842         * lib/lchown.c (rpl_lchown): Work around bug.
8843         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
8844         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8845         * modules/unistd (Makefile.am): Populate it.
8846         * lib/unistd.in.h (lchown): Update declaration.
8847         * doc/posix-functions/lchown.texi (lchown): Document the bug.
8848         * modules/lchown-tests: New file.
8849         * tests/test-lchown.h (test_lchown): Likewise.
8850         * tests/test-lchown.c (main): Likewise.
8851
8852         chown: detect Solaris and FreeBSD bug
8853         * lib/chown.c (rpl_chown): Work around bug.
8854         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
8855         (gl_PREREQ_CHOWN): Delete.
8856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8857         * modules/unistd (Makefile.am): Populate it.
8858         * lib/unistd.in.h (chown): Update declaration.
8859         * lib/lchown.c (chown): Update client.
8860         * modules/lchown (Depends-on): Add lstat.
8861         * doc/posix-functions/chown.texi (chown): Document the bug.
8862         * doc/posix-functions/getgroups.texi (getgroups): Document
8863         getgroups pitfall.
8864         * modules/chown-tests: New file.
8865         * tests/test-chown.h (test_chown): Likewise.
8866         * tests/test-chown.c (main): Likewise.
8867
8868 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
8869
8870         gnulib-tool: correctly detect absence of m4 directories
8871         * gnulib-tool: Avoid extra newline on data passed to wc -l.
8872
8873 2009-11-14  Jim Meyering  <meyering@redhat.com>
8874
8875         maint.mk: Prohibit inclusion of "xalloc.h" without use.
8876         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
8877
8878 2009-11-14  John W. Eaton  <jwe@gnu.org>
8879
8880         strftime.h: wrap funtion declaration in extern "C" block
8881         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
8882
8883 2009-11-13  Eric Blake  <ebb9@byu.net>
8884
8885         getgroups: avoid compiler warning
8886         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
8887
8888         getgroups: work around FreeBSD bug
8889         * lib/getgroups.c (rpl_getgroups): Work around the bug.
8890         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
8891         * doc/posix-functions/getgroups.texi (getgroups): Document it.
8892         * tests/test-getgroups.c (main): Fix buffer overrun.
8893
8894         getgroups: avoid compilation failure
8895         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
8896         * modules/getgroups (Depends-on): Add stdint.
8897
8898 2009-11-13  Jim Meyering  <meyering@redhat.com>
8899
8900         test-getgroups: avoid compilation failure
8901         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
8902
8903 2009-11-13  Eric Blake  <ebb9@byu.net>
8904
8905         mgetgroups: new module, taken from coreutils
8906         * modules/mgetgroups: New file.
8907         * lib/mgetgroups.h: Likewise.
8908         * lib/mgetgroups.c (mgetgroups): Likewise.
8909         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
8910         * MODULES.html.sh (Users and groups): Mention it.
8911
8912         getgroups: don't expose GETGROUPS_T to user
8913         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
8914         an element at a time if GETGROUPS_T is wrong size.
8915         * lib/getugroups.h (getugroups): Change signature.
8916         * lib/unistd.in.h (getgroups): Likewise.
8917         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
8918         signature needs fixing.
8919         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
8920         AC_TYPE_GETGROUPS.
8921         * modules/group-member (Depends-on): Add getgroups.
8922         * lib/group-member.c (group_info, get_group_info): Use gid_t.
8923         (group_member): Rely on getgroups replacement.
8924         * lib/getugroups.c (getugroups): Use gid_t.
8925         * tests/test-getgroups.c (main): Likewise.
8926         * NEWS: Mention the signature change.
8927         * doc/posix-functions/getgroups.texi (getgroups): Mention the
8928         problem with signature.
8929         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
8930         GETGROUPS_T is still useful for setgroups.
8931
8932         getgroups, getugroups: provide stubs for mingw
8933         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
8934         * lib/getugroups.c (getugroups): Likewise.
8935         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
8936         function.  Modernize replacement scheme.
8937         (gl_PREREQ_GETGROUPS): Delete.
8938         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
8939         * modules/getgroups (configure.ac): Declare witness.
8940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
8941         * modules/unistd (Depends-on): Substitute witness.
8942         * lib/unistd.in.h (getgroups): Declare replacement.
8943
8944         getgroups: avoid calling exit
8945         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
8946         drop xalloc.
8947         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
8948         dependencies.
8949         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
8950         exiting, in the rare case of malloc failure.
8951
8952         getgroups: fix logic error
8953         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
8954         has more than 20 groups.
8955         * modules/getgroups-tests: New test.
8956         * tests/test-getgroups.c: New file.
8957
8958 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8959
8960         * tests/test-base64.c: Improve.
8961
8962 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8963
8964         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
8965         Blake <ebb9@byu.net>.
8966
8967 2009-11-13  Simon Josefsson  <simon@josefsson.org>
8968
8969         * tests/test-xvasprintf.c: Add %s%s related checks.
8970
8971 2009-11-12  Eric Blake  <ebb9@byu.net>
8972
8973         version-etc: match standards.texi style
8974         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
8975         and use <> only for URLs.
8976
8977 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
8978
8979         fts: do not fail on a submount during traversal
8980         * lib/fts.c (fts_build): Read the stat info again after opening
8981         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
8982         Original report at http://bugzilla.redhat.com/501848.
8983
8984 2009-11-12  Jim Meyering  <meyering@redhat.com>
8985
8986         bootstrap: sync from coreutils
8987         * build-aux/bootstrap (bootstrap_epilogue): New function.
8988         Use git_modules_config in one more place.  This make bootstrap's
8989         --gnulib-srcdir option more useful for testing.
8990
8991         bootstrap: generalize autoheader check
8992         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
8993         AC_CONFIG_HEADERS.
8994
8995 2009-11-11  Eric Blake  <ebb9@byu.net>
8996
8997         mkfifoat: use new modules for Solaris and BSD bugs
8998         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
8999         * lib/mkfifoat.c (mknodat): Split...
9000         * lib/mknodat.c (mknodat): ...into new file.
9001         * modules/mkfifoat (Files): Ship new file.
9002         (Depends-on): Add mkfifo, mknod.
9003         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
9004         (Depends-on): Add symlink.
9005         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
9006         redundant with test_mkfifo.h.
9007         (do_mkfifoat, do_mknodat): New helpers.
9008
9009         mknod: new module
9010         * modules/mknod: New file.
9011         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
9012         * lib/mknod.c (mknod): Likewise.
9013         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9014         defaults.
9015         * modules/sys_stat (Makefile.am): Substitute them.
9016         * lib/sys_stat.in.h (mknod): Declare replacement.
9017         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9018         Document it.
9019         * doc/posix-functions/mknod.texi (mknod): Likewise.
9020         * modules/mknod-tests: New test.
9021         * tests/test-mknod.c: Likewise.
9022
9023         mkfifo: new module
9024         * modules/mkfifo: New file.
9025         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9026         * lib/mkfifo.c (mkfifo): Likewise.
9027         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
9028         defaults.
9029         * modules/sys_stat (Makefile.am): Substitute them.
9030         * lib/sys_stat.in.h (mkfifo): Declare replacement.
9031         * MODULES.html.sh (Support for systems lacking POSIX:2008):
9032         Document it.
9033         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
9034         * modules/mkfifo-tests: New test.
9035         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
9036         from test-mkfifoat.c.
9037         * tests/test-mkfifo.c: New file.
9038
9039         readlink: detect FreeBSD bug
9040         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
9041         slash on symlink.
9042         * doc/posix-functions/readlink.texi (readlink): Document the bug.
9043         * tests/test-readlink.h (test_readlink): Enhance test.
9044
9045         symlink: detect FreeBSD bug
9046         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
9047         slash on symlink.
9048         * doc/posix-functions/symlink.texi (symlink): Document the bug.
9049         * tests/test-symlink.h (test_symlink): Enhance test.
9050
9051 2009-11-10  Eric Blake  <ebb9@byu.net>
9052
9053         link: detect FreeBSD bug
9054         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
9055         symlink.
9056         * doc/posix-functions/link.texi (link): Document the bug.
9057         * tests/test-link.h (test_link): Enhance test.
9058         * tests/test-linkat.c (main): Update caller.
9059
9060         unlink, remove: detect FreeBSD bug
9061         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
9062         slash on symlink.
9063         * doc/posix-functions/unlink.texi (unlink): Document the bug.
9064         * doc/posix-functions/remove.texi (remove): Likewise.
9065         * tests/test-unlink.h (test_unlink): Enhance test.
9066         * tests/test-remove.c (main): Likewise.
9067
9068 2009-11-09  Eric Blake  <ebb9@byu.net>
9069
9070         rename: detect FreeBSD bug
9071         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
9072         slash on symlink.
9073         * modules/renameat-tests (Depends-on): Add filenamecat.
9074         * tests/test-rename.h (test_rename): Allow one more errno.
9075         * tests/test-renameat.c (main): Likewise.
9076         * doc/posix-functions/rename.texi (rename): Document the bug.
9077
9078         open: detect FreeBSD bug
9079         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
9080         symlink.
9081         * doc/posix-functions/open.texi (open): Document the bug.
9082         * doc/posix-functions/utimes.texi (utimes): Likewise.
9083         * tests/test-open.h (test_open): Add parameters, and test symlink
9084         handling.
9085         * tests/test-open.c (main): Adjust caller.
9086         * tests/test-fcntl-safer.c (main): Likewise.
9087         * modules/open-tests (Depends-on): Add stdbool, symlink.
9088         * modules/fcntl-safer-tests (Depends-on): Likewise.
9089         * tests/test-openat.c (main): Add test-open tests.
9090
9091         stat: detect FreeBSD bug
9092         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
9093         symlink.
9094         * doc/posix-functions/stat.texi (stat): Document the bug.
9095         * tests/test-stat.h (test_stat_func): Add argument.
9096         * tests/test-stat.c (main): Adjust caller.
9097         * tests/test-fstatat.c (main): Likewise.
9098         * modules/stat-tests (Depends-on): Add stdbool, symlink.
9099         Reported by Jim Meyering.
9100
9101 2009-11-09  James Youngman  <jay@gnu.org>
9102
9103         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
9104         * lib/strftime.c: Correct placement of #include "ignore-value.h".
9105
9106 2009-11-08  Jim Meyering  <meyering@redhat.com>
9107
9108         utimens: remove invalid futimesat call
9109         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
9110         It used the file descriptor of the target file as the DIR_FD
9111         parameter and NULL as the file name.  That caused failure with
9112         errno == EFAULT on FreeBSD-8.0-rc2
9113
9114 2009-11-07  Eric Blake  <ebb9@byu.net>
9115
9116         fflush, freadseek: use fseeko, not fseek
9117         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
9118         (clear_ungetc_buffer): Avoid potential problems on large files.
9119         * lib/freadseek.c (freadseek): Likewise.
9120         * modules/freadseek (Depends-on): Add fseeko.
9121         * modules/fseek (configure.ac): Set a witness.
9122         * tests/test-fflush.c (main): Use fseeko.
9123         * tests/test-fpurge.c (fseek): Disable link warning.
9124         * tests/test-freadable.c (fseek): Likewise.
9125         * tests/test-freading.c (fseek): Likewise.
9126         * tests/test-fseeko.c (fseek): Likewise.
9127         * tests/test-ftell.c (fseek): Likewise.
9128         * tests/test-ftello.c (fseek): Likewise.
9129         * tests/test-fwritable.c (fseek): Likewise.
9130         * tests/test-fwriting.c (fseek): Likewise.
9131
9132 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9133
9134         * modules/memchr (Depends-on): Drop getpagesize dependency.
9135
9136 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9137
9138         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
9139         Reported by Ludovic Courtès.
9140         * build-aux/pmccabe2html: Improve example usage.
9141         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
9142
9143 2009-11-06  Jim Meyering  <meyering@redhat.com>
9144
9145         do-release-commit-and-tag: New module.
9146         Automate the release-commit and tag process.
9147         * build-aux/do-release-commit-and-tag: New script, from coreutils.
9148         * modules/do-release-commit-and-tag: New file.
9149         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9150
9151 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9152
9153         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
9154         because test-select.c uses inet_pton.
9155
9156 2009-11-06  Simon Josefsson  <simon@josefsson.org>
9157
9158         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
9159         GETADDRINFO_LIB.  Bump serial number.
9160         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
9161         Suggested by Eric Blake <ebb9@byu.net>.
9162
9163 2009-11-05  Eric Blake  <ebb9@byu.net>
9164
9165         strtod: detect darwin bug
9166         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
9167         Reported by Leo Davis.
9168
9169         freopen-safer: new module
9170         * modules/freopen-safer: New module.
9171         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
9172         * lib/freopen-safer.c (freopen_safer): New file.
9173         * lib/stdio-safer.h (freopen_safer): New declaration.
9174         * lib/stdio--.h (freopen): New override.
9175         * MODULES.html.sh (File stream based Input/Output): Mention it.
9176         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
9177         freopen-safer module.
9178         * doc/posix-functions/stderr.texi (stderr): Likewise.
9179         * doc/posix-functions/stdin.texi (stdin): Likewise.
9180         * doc/posix-functions/stdout.texi (stdout): Likewise.
9181         * modules/freopen-safer-tests: New test.
9182         * tests/test-reopen-safer.c: New file.
9183
9184 2009-11-05  Jim Meyering  <meyering@redhat.com>
9185
9186         maint.mk: Prohibit inclusion of "close-stream.h" without use.
9187         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
9188
9189 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9190
9191         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
9192
9193 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9194
9195         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
9196
9197 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9198
9199         Fix link error.
9200         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9201         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9202
9203 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9204
9205         * tests/test-func.c: Also test value of __func__.
9206
9207 2009-11-05  Simon Josefsson  <simon@josefsson.org>
9208
9209         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
9210         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
9211
9212 2009-11-05  Bruno Haible  <bruno@clisp.org>
9213
9214         Fix link error.
9215         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
9216         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
9217         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
9218
9219 2009-11-05  Bruno Haible  <bruno@clisp.org>
9220
9221         Tests for module 'inet_pton'.
9222         * modules/inet_pton-tests: New file.
9223         * tests/test-inet_pton.c: New file.
9224
9225 2009-11-05  Bruno Haible  <bruno@clisp.org>
9226
9227         Tests for module 'inet_ntop'.
9228         * modules/inet_ntop-tests: New file.
9229         * tests/test-inet_ntop.c: New file.
9230
9231 2009-11-04  Eric Blake  <ebb9@byu.net>
9232
9233         stdlib-safer: wrap all mkstemp variants
9234         * modules/mkostemp (configure.ac): Set witness.
9235         * modules/mkostemps (configure.ac): Likewise.
9236         * modules/mkstemps (configure.ac): Likewise.
9237         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
9238         (mkstemps_safer): Wrap more functions.
9239         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
9240         wrapping.
9241         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
9242         (mkstemps_safer): Implement the wrappers.
9243
9244         mkstemps, mkostemps: new modules
9245         * modules/mkostemps: New module.
9246         * modules/mkstemps: Likewise.
9247         * lib/mkostemps.c (mkostemps): New file.
9248         * lib/mkstemps.c (mkstemps): Likewise.
9249         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
9250         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
9251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
9252         * modules/stdlib (Makefile.am): Substitute them.
9253         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
9254         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
9255         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9256         * doc/gnulib.texi (Glibc stdlib.h): Include them.
9257         * MODULES.html.sh (File system functions): Mention them.
9258
9259         tempname: resync from glibc
9260         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
9261         same values for __GT_FILE as glibc.  Abort even when assertions
9262         are disabled.
9263         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
9264         match its value otherwise.  Allow idempotent inclusion.
9265         * lib/mkdtemp.c (mkdtemp): Adjust caller.
9266         * lib/mkostemp.c (mkostemp): Likewise.
9267         * lib/mkstemp.c (mkstemp): Likewise.
9268         * lib/tmpfile.c (tmpfile): Likewise.
9269         * NEWS: Document this.
9270
9271         utimens: fix use of futimens on older Linux
9272         * lib/utimens.c (fdutimens): Use updated, rather than original,
9273         timespec to avoid bug in older Linux kernel.
9274         Reported by Simon Josefsson.
9275
9276 2009-11-04  Bruno Haible  <bruno@clisp.org>
9277
9278         Make num_processors more flexible and consistent.
9279         * lib/nproc.h (enum nproc_query): New type.
9280         (num_processors): Add a 'query' argument.
9281         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
9282         (num_processors): Add a 'query' argument. Test the value of the
9283         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
9284         mingw, count the number of CPUs available for the current process.
9285         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
9286         Check for sched_getaffinity and sched_getaffinity_np.
9287         * modules/nproc (Depends-on): Add c-ctype, extensions.
9288         * NEWS: Mention the change.
9289
9290 2009-11-03  Bruno Haible  <bruno@clisp.org>
9291
9292         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
9293
9294 2009-11-03  Jim Meyering  <meyering@redhat.com>
9295
9296         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
9297         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
9298         if it is defined.
9299
9300 2009-11-02  Eric Blake  <ebb9@byu.net>
9301
9302         mktime, timegm: share common declaration
9303         * lib/mktime-internal.h: New file.
9304         * lib/mktime.c: Use it rather than open-coding a declaration.
9305         * lib/timegm.c: Likewise.
9306         * modules/mktime (Files): Ship it.
9307         * modules/timegm (Files): Likewise.
9308         Suggested by Bruno Haible.
9309
9310         test-update-copyright: update test to match script changes
9311         * tests/test-update-copyright.sh: Avoid hard-coding perl
9312         location.  Don't update *.bak created by earlier runs.
9313
9314 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
9315             Simon Josefsson  <simon@josefsson.org>
9316             Bruno Haible  <bruno@clisp.org>
9317
9318         Fix link error on Solaris 8.
9319         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
9320         also in libnsl. Define also INET_PTON_LIB.
9321         * modules/inet_pton (Link): New section.
9322
9323 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9324             Bruno Haible  <bruno@clisp.org>
9325
9326         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
9327         * modules/inet_ntop (Link): New section.
9328         Reported by Boyan Kasarov <bkasarov@gmail.com>.
9329
9330 2009-11-02  Eric Blake  <ebb9@byu.net>
9331
9332         maint: avoid compiler warnings in m4 macros
9333         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
9334         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
9335
9336 2009-11-02  Simon Josefsson  <simon@josefsson.org>
9337
9338         * m4/pmccabe2html.m4: Remove file.
9339         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
9340         function.  Change maintainer.
9341         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
9342         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
9343         Courtès).
9344
9345 2009-10-31  Eric Blake  <ebb9@byu.net>
9346
9347         fseeko: fix m4 regression
9348         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
9349         regression from 2009-10-27.
9350         Reported by Ralf Wildenhues.
9351
9352 2009-10-31  Jim Meyering  <meyering@redhat.com>
9353
9354         inttostr: aesthetics and improved (compile-time) safety
9355         Define inttype_is_signed rather than inttype_is_unsigned,
9356         since the sole use is via "#if inttype_is_signed".
9357         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
9358         inttype_is_unsigned.
9359         * lib/offtostr.c (inttype_is_signed): Likewise.
9360         * lib/uinttostr.c (inttype_is_signed): Likewise.
9361         * lib/umaxtostr.c (inttype_is_signed): Likewise.
9362         * lib/inttostr.c (inttostr): Use verify to cross-check the
9363         inttype_is_signed value and the signedness of the actual type.
9364         * modules/inttostr (Depends-on): Add verify.
9365
9366 2009-10-30  Eric Blake  <ebb9@byu.net>
9367
9368         build: avoid compiler warnings
9369         * lib/fchmodat.c (lchmod): Mark unused variables.
9370         * lib/getopt.c (_getopt_initialize): Likewise.
9371         * lib/mktime.c (__mktime_internal): Provide prototype.
9372         * lib/inttostr.c (inttostr): Avoid compiler warning even with
9373         older gcc that do not understand #pragma GCC diagnostic.
9374         * lib/uinttostr.c (inttype_is_unsigned): Define.
9375         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
9376
9377 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9378
9379         stat: fix compilation on AIX
9380         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
9381         only see struct stat64.
9382
9383 2009-10-30  Eric Blake  <ebb9@byu.net>
9384
9385         exclude: make more robust
9386         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
9387         rather than masking a coding bug.
9388         Suggested by Bruno Haible.
9389
9390 2009-10-30  Jim Meyering  <meyering@redhat.com>
9391
9392         perl scripts: remove #!/usr/bin/perl in favor of more portable...
9393         Rather than putting #!/usr/bin/perl on the first line,
9394         start with a variant of what's recommended by "man perlrun" that
9395         invokes the first "perl" program from your shell's search path.
9396         * build-aux/gitlog-to-changelog: Replace #!... as above.
9397         Add a "Local Variables" perl mode setting.
9398         Prompted by a patch from Ludovic Courtès.
9399         Improved by Eric Blake.
9400         * build-aux/useless-if-before-free: Likewise.
9401         * build-aux/announce-gen: Likewise.
9402         * build-aux/update-copyright: Likewise.
9403
9404 2009-10-29  Eric Blake  <ebb9@byu.net>
9405
9406         filenamecat-lgpl: adjust clients
9407         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
9408         filenamecat.
9409         * modules/renameat (Depends-on): Likewise.
9410
9411         filenamecat: split into filenamecat-lgpl
9412         * modules/filenamecat-lgpl: New module.
9413         * modules/filenamecat (Files): Move library-safe files into
9414         filenamecat-lgpl.
9415         (Depends-on): Add filenamecat-lgpl.
9416         (configure.ac): Declare witness.
9417         * lib/filenamecat.h (file_name_concat): Only declare when using
9418         GPL module.
9419         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
9420         Move...
9421         * lib/filenamecat-lgpl.c: ...into new file.
9422         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
9423         (gl_FILE_NAME_CONCAT): Use it.
9424         * MODULES.html.sh (File system functions): Mention new module.
9425
9426         argp: avoid memory leak
9427         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
9428         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
9429         base_name, since the latter malloc()s and can call exit().
9430         Leak introduced 2006-07-03.
9431
9432         dirname-lgpl: adjust clients that don't need full dirname
9433         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
9434         * modules/filenamecat (Depends-on): Likewise.
9435         * modules/linkat (Depends-on): Likewise.
9436         * modules/mkancesdirs (Depends-on): Likewise.
9437         * modules/mkdir (Depends-on): Likewise.
9438         * modules/openat (Depends-on): Likewise.
9439         * modules/savewd (Depends-on): Likewise.
9440         * modules/rename (Depends-on): Likewise.
9441         (License): Relax license.
9442         * modules/mkdir-tests (Depends-on): Drop progname.
9443         (Makefile.am): Delete unneeded LDADD.
9444         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
9445
9446         dirname: split into dirname-lgpl
9447         * modules/dirname-lgpl: New module.
9448         * modules/dirname (Files): Move library-safe files into
9449         dirname-lgpl.
9450         (Depends-on): Add dirname-lgpl.
9451         (configure.ac): Declare witness.
9452         * modules/double-slash-root (License): Relax license.
9453         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
9454         module.
9455         * lib/dirname.c (dir_len, mdir_name): Move...
9456         * lib/dirname-lgpl.c: ...into new file.
9457         * lib/basename.c (last_component, base_len): Move...
9458         * lib/basename-lgpl.c: ...into new file.
9459         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
9460         (gl_DIRNAME): Use it.
9461         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
9462         Mention new module.
9463         * modules/dirname-tests (Depends-on): Add progname.
9464         * tests/test-dirname.c (program_name): Delete.
9465
9466         mkdir: make safe for libraries
9467         * modules/mkdir (Depends-on): Drop xalloc.
9468         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
9469         exit.
9470
9471         tests: avoid some compiler warnings
9472         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
9473         literals.
9474         * tests/test-memchr.c (main): Avoid type mismatch.
9475         * tests/test-arpa_inet.c (main): Avoid unused parameters.
9476         * tests/test-base64.c (main): Likewise.
9477         * tests/test-getdelim.c (main): Likewise.
9478         * tests/test-gethostname.c (main): Likewise.
9479         * tests/test-getline.c (main): Likewise.
9480         * tests/test-netinet_in.c (main): Likewise.
9481         * tests/test-select.c (open_server_socket, main): Likewise.
9482         * tests/test-select-stdin.c (main): Likewise.
9483         * tests/test-sockets.c (main): Likewise.
9484         * tests/test-strsignal.c (main): Likewise.
9485         * tests/test-sys_select.c (main): Likewise.
9486         * tests/test-sys_socket.c (main): Likewise.
9487         * tests/test-u64.c (main): Likewise.
9488         * tests/test-xfprintf-posix.c (main): Likewise.
9489         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
9490
9491         sockets: avoid compiler warning
9492         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
9493
9494         maint: detect usage(1) and other suspicious exits
9495         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
9496
9497 2009-10-29  Jim Meyering  <meyering@redhat.com>
9498
9499         timespec: long-to-int truncation could make timespec_cmp malfunction
9500         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
9501         a multiple of 2^32 nanoseconds as no difference.
9502
9503 2009-10-28  Jim Meyering  <meyering@redhat.com>
9504
9505         fprintftime: wrap macro code argument in "do {...} while(0)"
9506         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
9507         cpy macro must be a statement that can be followed by a semicolon.
9508         Now that the else clause contains a comment and is hence longer
9509         than one line, I require curly braces.  That in turn requires
9510         that we wrap this code block in the standard do...while(0).
9511
9512         fprintftime: remove stray semicolon from previous change
9513         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
9514
9515         fprintftime: avoid a warning about ignored fwrite return value
9516         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
9517         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9518         that is unsafe.
9519         * modules/fprintftime (Depends-on): Add ignore-value.
9520
9521         exclude: avoid an unwarranted warning
9522         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
9523
9524 2009-10-27  Eric Blake  <ebb9@byu.net>
9525
9526         fseek: avoid compilation failure when fflush is replaced
9527         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
9528         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
9529         module is in use.
9530         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
9531         module is not in use; since REPLACE_FSEEK worked otherwise.
9532         (GNULIB_FTELLO): Likewise for ftell.
9533         Reported by Ian Beckwith and others.
9534
9535 2009-10-27  Bruno Haible  <bruno@clisp.org>
9536
9537         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
9538         Reported by Jim Meyering.
9539
9540 2009-10-27  Jim Meyering  <jim@meyering.net>
9541             Bruno Haible  <bruno@clisp.org>
9542
9543         Avoid warning despite dropping the return value of fwrite.
9544         * lib/unicodeio.c: Include ignore-value.h.
9545         (fwrite_success_callback): Explicitly ignore fwrite's return value.
9546         * modules/unicodeio (Depends-on): Add ignore-value.
9547
9548 2009-10-26  Eric Blake  <ebb9@byu.net>
9549
9550         areadlinkat: fix fallback path
9551         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
9552         pointer and zero.
9553
9554 2009-10-22  Pádraig Brady  <P@draigBrady.com>
9555
9556         Use a better IO block size for modern systems
9557         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
9558         * lib/md2.c: Likewise.
9559         * lib/md4.c: Likewise.
9560         * lib/md5.c: Likewise.
9561         * lib/sha1.c: Likewise.
9562         * lib/sha256.c: Likewise.
9563         * lib/sha512.c: Likewise.
9564
9565 2009-10-22  Eric Blake  <ebb9@byu.net>
9566
9567         tests: avoid several compiler warnings
9568         * tests/test-getcwd.c (main): Avoid buffer underflow.
9569         * tests/test-getdate.c (main): String literals are not safe with
9570         putenv, so use setenv.  Declare unused argument.
9571         * modules/getdate-tests (Depends-on): Add setenv.
9572         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
9573         problems with string literals in char *.
9574         * tests/test-hash.c (main): Avoid shadowing declaration.
9575         (insert_new): Treat string literals as char const *.
9576         * tests/test-getopt.h (test_getopt): Likewise.
9577         (getopt_loop): Alter types to minimize casting elsewhere.
9578         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
9579         (test_getopt_long_posix): Likewise.
9580         (do_getopt_long): Add wrapper to minimize casting.
9581         * tests/test-atexit.c (clear_temp_file): Use void.
9582         * tests/test-areadlink-with-size.c (main): Declare unused
9583         arguments.
9584         * tests/test-areadlink.c (main): Likewise.
9585         * tests/test-areadlinkat-with-size.c (main): Likewise.
9586         * tests/test-areadlinkat.c (main): Likewise.
9587         * tests/test-canonicalize-lgpl.c (main): Likewise.
9588         * tests/test-canonicalize.c (main): Likewise.
9589         * tests/test-dirent-safer.c (main): Likewise.
9590         * tests/test-dirname.c (main): Likewise.
9591         * tests/test-dup2.c (main): Likewise.
9592         * tests/test-fchdir.c (main): Likewise.
9593         * tests/test-fcntl-h.c (main): Likewise.
9594         * tests/test-fcntl-safer.c (main): Likewise.
9595         * tests/test-fdopendir.c (main): Likewise.
9596         * tests/test-fdutimensat.c (main): Likewise.
9597         * tests/test-fflush.c (main): Likewise.
9598         * tests/test-filenamecat.c (main): Likewise.
9599         * tests/test-filevercmp.c (main): Likewise.
9600         * tests/test-fopen-safer.c (main): Likewise.
9601         * tests/test-fopen.c (main): Likewise.
9602         * tests/test-fpending.c (main): Likewise.
9603         * tests/test-fpurge.c (main): Likewise.
9604         * tests/test-freading.c (main): Likewise.
9605         * tests/test-fstatat.c (main): Likewise.
9606         * tests/test-fsync.c (main): Likewise.
9607         * tests/test-futimens.c (main): Likewise.
9608         * tests/test-getndelim2.c (main): Likewise.
9609         * tests/test-gettimeofday.c (main): Likewise.
9610         * tests/test-getopt.c (main): Likewise.
9611         * tests/test-i-ring.c (main): Likewise.
9612         * tests/test-inttypes.c (main): Likewise.
9613         * tests/test-link.c (main): Likewise.
9614         * tests/test-lstat.c (main): Likewise.
9615         * tests/test-math.c (main): Likewise.
9616         * tests/test-md5.c (main): Likewise.
9617         * tests/test-memchr2.c (main): Likewise.
9618         * tests/test-memrchr.c (main): Likewise.
9619         * tests/test-mkdir.c (main): Likewise.
9620         * tests/test-mkdirat.c (main): Likewise.
9621         * tests/test-mkfifoat.c (main): Likewise.
9622         * tests/test-open.c (main): Likewise.
9623         * tests/test-openat-safer.c (main): Likewise.
9624         * tests/test-openat.c (main): Likewise.
9625         * tests/test-quotearg.c (main): Likewise.
9626         * tests/test-rawmemchr.c (main): Likewise.
9627         * tests/test-readlink.c (main): Likewise.
9628         * tests/test-remove.c (main): Likewise.
9629         * tests/test-rename.c (main): Likewise.
9630         * tests/test-renameat.c (main): Likewise.
9631         * tests/test-rmdir.c (main): Likewise.
9632         * tests/test-sha1.c (main): Likewise.
9633         * tests/test-signal.c (main): Likewise.
9634         * tests/test-sigaction.c (main): Likewise.
9635         * tests/test-stat.c (main): Likewise.
9636         * tests/test-stat-time.c (main): Likewise.
9637         * tests/test-stddef.c (main): Likewise.
9638         * tests/test-stdint.c (main): Likewise.
9639         * tests/test-stdio.c (main): Likewise.
9640         * tests/test-stdlib.c (main): Likewise.
9641         * tests/test-strchrnul.c (main): Likewise.
9642         * tests/test-strerror.c (main): Likewise.
9643         * tests/test-string.c (main): Likewise.
9644         * tests/test-strtod.c (main): Likewise.
9645         * tests/test-strverscmp.c (main): Likewise.
9646         * tests/test-symlink.c (main): Likewise.
9647         * tests/test-symlinkat.c (main): Likewise.
9648         * tests/test-sys_stat.c (main): Likewise.
9649         * tests/test-sys_time.c (main): Likewise.
9650         * tests/test-time.c (main): Likewise.
9651         * tests/test-unistd.c (main): Likewise.
9652         * tests/test-unlink.c (main): Likewise.
9653         * tests/test-unlinkat.c (main): Likewise.
9654         * tests/test-utimens.c (main): Likewise.
9655         * tests/test-utimensat.c (main): Likewise.
9656         * tests/test-version-etc.c (main): Likewise.
9657         * tests/test-wchar.c (main): Likewise.
9658         * tests/test-wctype.c (main): Likewise.
9659         * tests/test-xprintf-posix.c (main): Likewise.
9660         * tests/test-posixtm.c (main): Likewise.
9661         (STREQ): Delete unused macro.
9662         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
9663         shadowed variables.
9664         * tests/test-memchr.c (main): Likewise.
9665
9666 2009-10-21  Eric Blake  <ebb9@byu.net>
9667
9668         areadlinkat: avoid failure on older glibc
9669         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
9670         rather than mis-comparing 0 against FUNC_RESULT of char*.
9671
9672 2009-10-21  Bruno Haible  <bruno@clisp.org>
9673
9674         * modules/stpncpy (License): Relicense under LGPLv2+.
9675         Reported by David Lutterkort <lutter@redhat.com>.
9676
9677 2009-10-20  Eric Blake  <ebb9@byu.net>
9678
9679         utimensat: work around Solaris 9 bug
9680         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
9681         has trailing slash bugs.
9682         * tests/test-lutimens.h (test_lutimens): Enhance test.
9683         * tests/test-utimens.h (test_utimens): Likewise.
9684         * doc/posix-functions/utime.texi (utime): Enhance documentation.
9685         * doc/posix-functions/utimes.texi (utimes): Likewise.
9686         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9687         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
9688         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
9689         * doc/posix-functions/futimens.texi (futimens): Likewise.
9690
9691         fdutimensat: new module
9692         * modules/fdutimensat: New file.
9693         * lib/fdutimensat.c (fdutimensat): Likewise.
9694         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
9695         * MODULES.html.sh (File system functions): Mention module.
9696         * modules/fdutimensat-tests: New test.
9697         * tests/test-fdutimensat.c: Likewise.
9698
9699         doc: regenerate INSTALL
9700         * doc/INSTALL: Reflect recent autoconf update.
9701         * doc/INSTALL.ISO: Likewise.
9702         * doc/INSTALL.UTF-8: Likewise.
9703
9704 2009-10-20  Pádraig Brady  <P@draigBrady.com>
9705
9706         acl: warn if ACL support is not detected
9707         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
9708
9709 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
9710
9711         * lib/nproc.h: Add extern "C" block for C++.
9712
9713 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
9714             Bruno Haible  <bruno@clisp.org>
9715
9716         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
9717         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
9718         * doc/posix-functions/isalpha.texi: Likewise.
9719         * doc/posix-functions/isblank.texi: Likewise.
9720         * doc/posix-functions/iscntrl.texi: Likewise.
9721         * doc/posix-functions/isdigit.texi: Likewise.
9722         * doc/posix-functions/isgraph.texi: Likewise.
9723         * doc/posix-functions/islower.texi: Likewise.
9724         * doc/posix-functions/isprint.texi: Likewise.
9725         * doc/posix-functions/ispunct.texi: Likewise.
9726         * doc/posix-functions/isspace.texi: Likewise.
9727         * doc/posix-functions/isupper.texi: Likewise.
9728         * doc/posix-functions/isxdigit.texi: Likewise.
9729
9730 2009-10-18  Bruno Haible  <bruno@clisp.org>
9731
9732         Tests for module 'isblank'.
9733         * modules/isblank-tests: New file.
9734         * tests/test-isblank.c: New file.
9735
9736         New module 'isblank'.
9737         * lib/isblank.c: New file.
9738         * m4/isblank.m4: New file.
9739         * modules/isblank: New file.
9740         * doc/posix-functions/isblank.texi: Mention the new module.
9741
9742 2009-10-18  Bruno Haible  <bruno@clisp.org>
9743
9744         New module 'ctype'.
9745         * lib/ctype.in.h: New file.
9746         * m4/ctype.m4: New file.
9747         * modules/ctype: New file.
9748         * doc/posix-headers/ctype.texi: Mention the new module.
9749
9750 2009-10-18  Jim Meyering  <meyering@redhat.com>
9751
9752         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
9753         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
9754         right after its initialization, rather than farther down.
9755         Keeping these in close proximity makes it easier to ensure
9756         that each such variable is initialized.  E.g.,
9757
9758             LIB_CLOCK_GETTIME=
9759             AC_SUBST([LIB_CLOCK_GETTIME])
9760
9761         This change also increments these serial numbers.
9762         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
9763         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9764         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9765
9766 2009-10-18  Bruno Haible  <bruno@clisp.org>
9767
9768         Don't let environment variables perturb build.
9769         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
9770         (gl_PREREQ_GETHRXTIME): ... not here.
9771
9772 2009-10-18  Bruno Haible  <bruno@clisp.org>
9773
9774         Avoid symlink attack in localcharset module.
9775         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
9776         (O_NOFOLLOW): Define fallback.
9777         (get_charset_aliases): Don't open the file if it is a symbolic link.
9778         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
9779         gl_FCNTL_H.
9780         (gl_FCNTL_H): Require it.
9781         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
9782         * modules/localcharset (Files): Add m4/fcntl_h.m4.
9783         Reported by Fergal Glynn <fglynn@veracode.com>.
9784
9785 2009-10-18  Bruno Haible  <bruno@clisp.org>
9786
9787         Implement nproc for mingw.
9788         * lib/nproc.c: Include <windows.h>
9789         (num_processors): On native Windows platforms, try GetSystemInfo.
9790
9791 2009-10-18  Bruno Haible  <bruno@clisp.org>
9792
9793         Implement nproc for IRIX.
9794         * lib/nproc.c: Include <sys/sysmp.h>.
9795         (num_processors): On IRIX systems, try sysmp.
9796         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
9797
9798 2009-10-18  Bruno Haible  <bruno@clisp.org>
9799
9800         Implement nproc for HP-UX.
9801         * lib/nproc.c: Include <sys/pstat.h>
9802         (num_processors): On HP-UX systems, try pstat_getdynamic.
9803         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
9804         pstat_getdynamic.
9805
9806 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
9807             Bruno Haible  <bruno@clisp.org>
9808
9809         Implement nproc for NetBSD, OpenBSD.
9810         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
9811         (ARRAY_SIZE): New macro.
9812         (num_processors): On BSD systems, try sysctl of HW_NCPU.
9813         * m4/nproc.m4: New file.
9814         * modules/nproc (Files): Add m4/nproc.m4.
9815         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
9816         (Makefile.am): Instead, augment lib_SOURCES.
9817
9818 2009-10-18  Bruno Haible  <bruno@clisp.org>
9819
9820         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
9821         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
9822         sys/param.h.
9823
9824 2009-10-16  Eric Blake  <ebb9@byu.net>
9825
9826         utimensat: new module
9827         * modules/utimensat: New file.
9828         * lib/utimensat.c (utimensat): Likewise.
9829         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9830         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
9831         so we can work around Linux bugs.
9832         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9833         * modules/sys_stat (Makefile.am): Substitute them.
9834         * lib/sys_stat.in.h (utimensat): Declare it.
9835         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9836         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
9837         * modules/utimensat-tests: New test.
9838         * tests/test-utimensat.c: Likewise.
9839
9840         utimens: let lutimens work on non-symlinks
9841         * lib/utimens.c (lutimens): Fall back to utimens rather than
9842         failing with ENOSYS, when file is not a symlink.
9843         (utimens): Reduce redirection.
9844         * tests/test-lutimens.h (test_lutimens): Update test to cover
9845         non-symlinks.
9846         * tests/test-utimens.h (test_utimens): Update test to cover
9847         symlinks.
9848         * tests/test-utimens.c (main): Update caller.
9849
9850         utimens: cache whether utimensat syscall works
9851         * lib/utimens.c (utimensat_works_really): New cache variable.
9852         (fdutimens, lutimens): Use it to avoid failing syscall.
9853
9854         test-stat-time, test-utimens: improve portability
9855         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
9856         ext4 on alpha, and for cygwin.
9857         * tests/test-utimens-common.h: New file.
9858         (nap): Factor delays into single function.
9859         * tests/test-lutimens.h (test_lutimens): Use new header.
9860         * tests/test-futimens.h (test_futimens): Likewise.
9861         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
9862         timestamps to occur from same machine, as was done previously for
9863         test_utimens.
9864         * modules/utimens-tests (Files): Ship new file.
9865         * modules/futimens-tests (Files): Likewise.
9866         Reported in part by Jim Meyering.
9867
9868         sys_stat: sort replacement declarations
9869         * lib/sys_stat.in.h: Sort declarations.
9870         * lib/futimens.c (futimens): Fix typo.
9871
9872 2009-10-15  Jim Meyering  <meyering@redhat.com>
9873
9874         don't let environment settings perturb build
9875         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
9876         could cause a configure-time and/or build-time malfunction.
9877         Typically, a configure-time function-in-library test is performed
9878         via code like this:
9879
9880           LIB_VAR=
9881           AC_SUBST([LIB_VAR])
9882           prefix_saved_LIBS=$LIBS
9883             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
9884                        [test "$ac_cv_search_FUNC" = "none required" ||
9885                         LIB_VAR=$ac_cv_search_FUNC])
9886           LIBS=$prefix_saved_LIBS
9887
9888         However, in each of the files affected by this change, the LIB_VAR=
9889         initialization was omitted.  Thus, when set in the environment, its
9890         value would propagate into generated Makefiles when FUNC is not found
9891         in LIB_NAME.
9892         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
9893         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9894         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9895
9896 2009-10-14  Eric Blake  <ebb9@byu.net>
9897
9898         fchdir: avoid infinite recursion in mingw
9899         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
9900         recursing.
9901
9902         test-stat-time: port to mingw
9903         * tests/test-stat-time.c (force_unlink): Return a value.
9904         (test_ctime) [W32]: Fix compilation error.
9905         (nap): Don't call usleep with too large an argument.  Use
9906         force_unlink.
9907         * doc/pastposix-functions/usleep.texi (usleep): Document the
9908         portability issue.
9909
9910 2009-10-13  Jim Meyering  <meyering@redhat.com>
9911
9912         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
9913         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
9914         * modules/pipe-filter-ii: Likewise.
9915         * modules/sys_socket-tests: Likewise.
9916         * modules/tsearch-tests: Likewise.
9917         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
9918         (check): Depend on it.
9919
9920 2009-10-12  Eric Blake  <ebb9@byu.net>
9921
9922         utimens-tests: port to NFS file systems
9923         * tests/test-utimens.h (test_utimens): Refactor utimecmp
9924         comparisons to avoid spurious failures from timestamp drift
9925         between NFS machines.
9926
9927 2009-10-12  Eric Blake  <ebb9@byu.net>
9928
9929         stat-time-tests: minor cleanups
9930         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
9931         * tests/test-stat-time.c (nap): Separate assignment from call.
9932         Suggested by Paolo Bonzini and Bruno Haible.
9933
9934         sys_stat: guarantee struct timespec
9935         * lib/sys_stat.in.h (includes): Always include <time.h>
9936         * modules/sys_stat (Depends-on): Add time.
9937         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
9938         mode_t permission values.
9939         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
9940         get at subsecond timestamps.
9941
9942 2009-10-10  Eric Blake  <ebb9@byu.net>
9943
9944         futimens: new module
9945         * modules/futimens: New file.
9946         * lib/futimens.c (futimens): Likewise.
9947         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
9948         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
9949         we can work around Linux bugs.
9950         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9951         * modules/sys_stat (Makefile.am): Substitute them.
9952         * lib/sys_stat.in.h (futimens): Declare it.
9953         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
9954         * doc/posix-functions/futimens.texi (futimens): Likewise.
9955         * modules/futimens-tests: New test.
9956         * tests/test-futimens.c: Likewise.
9957
9958         utimens: introduce fdutimens
9959         * lib/utimens.h (fdutimens): New prototype.
9960         * lib/utimens.c (gl_futimens): Move guts...
9961         (fdutimens): ...to new interface.
9962         * tests/test-utimens.c (do_fdutimens): Use it.
9963
9964         utimens: add UTIME_NOW and UTIME_OMIT support
9965         * lib/utimens.c (validate_timespec, update_timespec): New helper
9966         functions.
9967         (gl_futimens, lutimens): Use them.
9968         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
9969         stdbool, sys_stat.
9970         (Link): Mention resulting library dependency.
9971         * modules/utimecmp (Link): Likewise.
9972         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
9973         (Makefile.am): Pick up library dependency.
9974         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
9975         definition.
9976         * tests/test-sys_stat.c: Test the definitions.
9977         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
9978         * NEWS: Document library dependency.
9979
9980         utimecmp: support symlink timestamps
9981         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
9982         hashing when possible.  Use pathconf when available.
9983         (SYSCALL_RESOLUTION): Recognize tighter resolution.
9984         * modules/utimecmp (Depends-on): Add lstat.
9985
9986         utimens: add lutimens interface
9987         * lib/utimens.c (lutimens): New function.
9988         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
9989         * lib/utimens.h (lutimens): Declare new interface.
9990         * tests/test-utimens.c (main): Enhance test.
9991         * tests/test-lutimens.h (test_lutimens): New file.
9992         * modules/utimens-tests (Files): Distribute it.
9993         (Depends-on): Add symlink.
9994         (configure.ac): Check for usleep.
9995
9996         utimens: validate futimens usage
9997         * lib/utimens.c (gl_futimens): Require valid fd up front, using
9998         fewer syscalls on failure later on.  Avoid compiler warning on
9999         mingw.
10000         * modules/utimens (Depends-on): Add dup2.
10001
10002         utimens: add test
10003         * modules/utimens-tests: New test.
10004         * tests/test-utimens.h: New file.
10005         * tests/test-futimens.h: Likewise.
10006         * tests/test-utimens.c: Likewise.
10007
10008         doc: mention timestamp portability issues
10009         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
10010         instead.
10011         * doc/posix-functions/utime.texi (utime): Likewise.
10012         * doc/posix-functions/utimes.texi (utimes): Likewise.
10013         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
10014         instead.
10015         * doc/posix-functions/futimens.texi (futimens): Mention utimens
10016         module.
10017         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
10018         Mention weakness with symlink timestamps.
10019         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
10020         to utimensat/futimens instead.
10021         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
10022
10023         test-dup2: enhance test
10024         * tests/test-dup2.c (main): Also check AT_FDCWD.
10025
10026         test-stat-time: avoid more spurious failures
10027         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
10028         xfs; and avoid race if the two timestamps cross quantization edge.
10029
10030         relocatable: prefer 'file system' over 'filesystem'
10031         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
10032         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
10033         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
10034         * doc/relocatable.texi (Enabling Relocatability): Likewise.
10035         * lib/relocatable.c (compute_curr_prefix): Likewise.
10036
10037 2009-10-10  Jim Meyering  <meyering@redhat.com>
10038
10039         stat-time-tests: check for the usleep function
10040         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
10041
10042 2009-10-10  Bruno Haible  <bruno@clisp.org>
10043
10044         * modules/xnanosleep: Put the Link section after the Include section.
10045
10046 2009-10-09  Eric Blake  <ebb9@byu.net>
10047
10048         dup2: work around FreeBSD 6.1 bug
10049         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
10050         * doc/posix-functions/dup2.texi (dup2): Document it.
10051         Reported by Nelson H. F. Beebe and Jim Meyering.
10052
10053         test-stat-time: port to buggy NFS clients
10054         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
10055         (test_ctime): Also skip test if mtime and ctime are skewed.
10056
10057         maint: prefer 'file system' over 'filesystem'
10058         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10059         * doc/posix-functions/lstat.texi (lstat): Likewise.
10060         * lib/file-has-acl.c (file_has_acl): Likewise.
10061         * lib/fwriteerror.c [TEST]: Likewise.
10062         * tests/test-areadlink.h (test_areadlink): Likewise.
10063         * tests/test-areadlinkat-with-size.c (main): Likewise.
10064         * tests/test-areadlinkat.c (main): Likewise.
10065         * tests/test-canonicalize-lgpl.c (main): Likewise.
10066         * tests/test-canonicalize.c (main): Likewise.
10067         * tests/test-fstatat.c (main): Likewise.
10068         * tests/test-linkat.c (main): Likewise.
10069         * tests/test-lstat.h (test_lstat_func): Likewise.
10070         * tests/test-mkdir.h (test_mkdir): Likewise.
10071         * tests/test-readlink.h (test_readlink): Likewise.
10072         * tests/test-remove.c (main): Likewise.
10073         * tests/test-rename.h (test_rename): Likewise.
10074         * tests/test-renameat.c (main): Likewise.
10075         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10076         * tests/test-symlink.h (test_symlink): Likewise.
10077         * tests/test-symlinkat.c (main): Likewise.
10078         * tests/test-unlink.h (test_unlink_func): Likewise.
10079         * tests/test-unlinkat.c (main): Likewise.
10080
10081         maint: make realtime library usage explicit
10082         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
10083         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
10084         * modules/settime (Link): Likewise.
10085         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
10086
10087         test-stat-time: speed up execution
10088         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
10089         warning on mingw.
10090         (nap): New helper function.
10091         (prepare_test): Use it to reduce sleep time.
10092         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
10093         execution.
10094         * modules/stat-time-tests (configure.ac): Check for usleep.
10095
10096 2009-10-09  Jim Meyering  <meyering@redhat.com>
10097
10098         selinux-h: always use getfilecon wrappers
10099         * lib/getfilecon.c: New file.
10100         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
10101         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
10102         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
10103         (fgetfilecon): Provide a stub.
10104         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
10105         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
10106         file unconditionally.
10107         When <selinux/selinux.h> is found, arrange to use wrappers.
10108         * modules/selinux-h (Files): Add getfilecon.c.
10109         (Makefile.am): Substitute include-next-related bits
10110         into the now-always-generated selinux/selinux.h file.
10111         * doc/glibc-functions/lgetfilecon.texi: New file.
10112         * doc/glibc-functions/fgetfilecon.texi: New file.
10113         * doc/glibc-functions/getfilecon.texi: New file.
10114         * doc/glibc-functions/getfilecon-desc.texi: New file.
10115         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
10116         which to pull in the new files.
10117         * MODULES.html.sh (Misc): Add selinux-h.
10118
10119 2009-10-08  Jim Meyering  <meyering@redhat.com>
10120
10121         unistd: fix comment typo
10122         * lib/unistd.in.h (euidaccess): Fix a comment typo.
10123
10124 2009-10-08  Eric Blake  <ebb9@byu.net>
10125
10126         areadlink: use SIZE_MAX consistently
10127         * modules/areadlink (Depends-on): Add stdint.
10128         * modules/areadlink-with-size (Depends-on): Likewise.
10129         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
10130         gives NULL; drop sys/types, since unistd gives size_t; and add
10131         stdint for SIZE_MAX.
10132         (SIZE_MAX): Rely on headers.
10133         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
10134         and add stdint.
10135         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
10136         (SIZE_MAX): Likewise.
10137         (INITIAL_BUF_SIZE): Turn into enum.
10138         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
10139
10140 2009-10-08  Jim Meyering  <meyering@redhat.com>
10141
10142         areadlinkat: avoid compilation failure
10143         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
10144         Fix typo in comment.
10145
10146 2009-10-07  Eric Blake  <ebb9@byu.net>
10147
10148         areadlinkat-with-size: new module
10149         * modules/areadlinkat-with-size: New module.
10150         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
10151         * lib/areadlink.h (areadlinkat): Declare it.
10152         * MODULES.html.sh (File system functions): Mention it.
10153         * modules/areadlinkat-with-size-tests: New test.
10154         * tests/test-areadlinkat-with-size.c: New file.
10155
10156         xreadlinkat: new module
10157         * modules/xreadlinkat: New module.
10158         * lib/xreadlinkat.c (xreadlinkat): New file.
10159         * lib/xreadlink.h (xreadlinkat): Declare it.
10160         * MODULES.html.sh (File system functions): Mention it.
10161
10162         areadlinkat: new module
10163         * lib/at-func.c (FUNC_FAIL): New define.
10164         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
10165         * modules/areadlinkat: New module.
10166         * lib/linkat.c (areadlinkat): Move...
10167         * lib/areadlinkat.c (areadlinkat): ...to new file.
10168         * lib/areadlink.h (areadlinkat): Declare it.
10169         * modules/linkat (Depends-on): Add areadlinkat.
10170         * MODULES.html.sh (File system functions): Mention it.
10171         * modules/areadlinkat-tests: New test.
10172         * tests/test-areadlinkat.c: New file.
10173
10174         areadlink, areadlink-with-size: add tests
10175         * modules/areadlink-tests: New test.
10176         * modules/areadlink-with-size-tests: Likewise.
10177         * tests/test-areadlink.h: New file.
10178         * tests/test-areadlink.c: Likewise.
10179         * tests/test-areadlink-with-size.c: Likewise.
10180
10181         maint: minor cleanups
10182         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
10183         _UNUSED_PARAMETER_ instead.
10184         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
10185         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
10186         * modules/linkat-tests (Files): Distribute test-link.h.
10187
10188         openat, utimens: whitespace cleanup
10189         * lib/openat.c: Prefer space throughout, rather than mix of 8
10190         spaces vs. tabs.
10191         * lib/at-func.c: Likewise.
10192         * lib/utimens.c: Likewise.
10193
10194         openat: avoid using wrong fd
10195         * lib/openat.c (openat_permissive): Reject user's fd if saving the
10196         working directory chooses same fd.
10197         * lib/at-func.c (AT_FUNC_NAME): Likewise.
10198
10199         mkdir, mkdirat: fix cygwin 1.5.x bug
10200         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
10201         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
10202         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
10203         bug.
10204         (gl_PREREQ_MKDIR): Delete unused macro.
10205         * modules/mkdir (Files): Track file rename.
10206         (configure.ac): Update macro name.
10207         * modules/openat (Depends-on): Add mkdir.
10208         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
10209
10210         mkdir, mkdirat: add tests
10211         * modules/mkdir-tests: New test.
10212         * tests/test-mkdir.h: New file.
10213         * tests/test-mkdir.c: Likewise.
10214         * tests/test-mkdirat.c: Likewise.
10215         * modules/openat-tests (Files): Add new files.
10216         (Makefile.am): Run new test.
10217
10218 2009-10-06  Eric Blake  <ebb9@byu.net>
10219
10220         doc: tweak *at function documentation
10221         * doc/posix-functions/faccessat.texi (faccessat): Mention
10222         known issue with replacement.
10223         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
10224         * doc/posix-functions/linkat.texi (linkat): Likewise.
10225         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
10226         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
10227         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10228         * doc/posix-functions/renameat.texi (renameat): Likewise.
10229         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
10230
10231         openat: fix GNU/Hurd bug in unlinkat
10232         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
10233         broken.
10234         * doc/posix-functions/unlink.texi (unlink): Document this.
10235         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
10236
10237         fdopendir: fix GNU/Hurd bug
10238         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
10239         allowing non-directory fds.
10240         * lib/fdopendir.c (rpl_fdopendir): Work around it.
10241         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
10242         * modules/dirent (Makefile.am): Substitute it.
10243         * lib/dirent.in.h (fdopendir): Declare replacement.
10244         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
10245         * tests/test-fdopendir.c (main): Test something other than
10246         /dev/null, since on Hurd that behaves like a directory.
10247
10248         test-symlink: port to GNU/Hurd
10249         * tests/test-symlink.h (test_symlink): Relax expected errno.
10250
10251         doc: tweak more cygwin information
10252         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
10253         now compatible with glibc.
10254         * doc/posix-functions/getopt.texi (getopt): Likewise.
10255
10256         getopt-gnu: add another test
10257         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
10258         guarantee behavior relied on by m4.
10259         * tests/test-getopt.c (main): Use it.
10260         * modules/getopt-posix-tests (Depends-on): Add setenv.
10261         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
10262
10263         getopt: fix compilation on darwin
10264         * lib/getopt.in.h (includes): Leave breadcrumbs during system
10265         include.
10266         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
10267         Reported by Ludovic Courtès.
10268
10269 2009-10-06  Bruno Haible  <bruno@clisp.org>
10270
10271         * modules/size_max (Description): Discourage its use.
10272         Reported by Simon Josefsson.
10273
10274 2009-10-06  Jim Meyering  <meyering@redhat.com>
10275
10276         linkat: avoid compilation failure
10277         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
10278
10279 2009-10-05  Eric Blake  <ebb9@byu.net>
10280
10281         linkat: support Linux 2.6.17
10282         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
10283         linkat on Linux, but allow cache variable override.
10284         * lib/linkat.c (rpl_linkat): Define override.
10285         * modules/linkat (Depends-on): Add symlinkat.
10286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
10287         * modules/unistd (Makefile.am): Substitute it.
10288         * lib/unistd.in.h (linkat): Declare replacement.
10289         Reported by Pádraig Brady.
10290
10291         quotearg: port test to systems with C.UTF-8 locale
10292         * tests/test-quotearg.c (struct result_strings): Add another
10293         member, differentiating between C.ASCII and C.UTF-8 handling.
10294         (compare_strings): Add parameter.
10295         (main): Adjust all callers.
10296
10297         getopt: avoid clash with FreeBSD _getopt_internal
10298         * lib/getopt.in.h (_getopt_internal): Override the name.
10299         * lib/getopt_int.h (includes): Pick up any overrides.
10300         Reported by Reuben Thomas.
10301
10302         hash: allow C89 compilation
10303         * lib/hash.c (check_tuning): Move declaration before statement.
10304         Reported by Reuben Thomas.
10305
10306 2009-10-05  Karl Berry  <karl@gnu.org>
10307
10308         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
10309
10310 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
10311             Bruno Haible  <bruno@clisp.org>
10312
10313         * lib/uname.c (uname): Use a table-driven algorithm to compute
10314         Windows NT versions.
10315
10316 2009-10-04  Bruno Haible  <bruno@clisp.org>
10317
10318         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
10319         program_invocation_short_name.
10320         * modules/progname (configure.ac): Test for presence of
10321         program_invocation_short_name.
10322         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
10323
10324 2009-10-04  Bruno Haible  <bruno@clisp.org>
10325
10326         * lib/progname.c (set_program_name): Fix comment.
10327         Reported by Jim Meyering.
10328
10329 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10330             Bruno Haible  <bruno@clisp.org>
10331
10332         * lib/uname.c: Include <string.h>.
10333         (uname): Do only one call to GetVersionEx in the common case.
10334
10335 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
10336             Bruno Haible  <bruno@clisp.org>
10337
10338         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
10339         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
10340         (uname): Add support for Windows CE and various non-x86 CPU types.
10341
10342 2009-10-03  Bruno Haible  <bruno@clisp.org>
10343
10344         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
10345         invocation to tests/configure.ac.
10346         Reported by Ian Beckwith <ianb@erislabs.net>.
10347
10348 2009-10-02  Eric Blake  <ebb9@byu.net>
10349
10350         fchdir: avoid compiler warning
10351         * lib/fchdir.c (canonicalize_file_name)
10352         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
10353
10354         test-open: support mingw errno values
10355         * tests/test-open.h (test_open): Relax test.
10356         * tests/test-fopen.h (test_fopen): Likewise.
10357         * tests/test-openat-safer.c (main): Likewise.
10358
10359         open: fix opening directory on mingw
10360         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
10361
10362         test-open: on GNU/Hurd, /dev/null is a directory
10363         * tests/test-fopen.h (main): Rename...
10364         (test_fopen): ...to this.  Use a guaranteed non-directory when
10365         confirming open behavior on trailing slash.
10366         * tests/test-openat-safer.c (main): Likewise.
10367         * tests/test-open.h (main): Likewise....
10368         (test_open): ...to this.
10369         * tests/test-fopen.c (main): Adjust caller.
10370         * tests/test-fopen-safer.c (main): Likewise.
10371         * tests/test-open.c (main): Likewise.
10372         * tests/test-fcntl-safer.c (main): Likewise.
10373         Reported by Samuel Thibault.
10374
10375         rename, fchdir: don't ignore chdir failure
10376         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
10377         * lib/rename.c (rpl_rename) [W32]: Likewise.
10378         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
10379         an empty destination directory if source cannot be renamed,
10380         although there is still possibility for failure.
10381         * doc/posix-functions/rename.texi (rename): Document the race.
10382         Reported by Jim Meyering.
10383
10384         maint: cleanup whitespace in recent commits
10385         * lib/rename.c (rpl_rename): Remove tabs.
10386         * tests/test-link.h (test_link): Likewise.
10387         * lib/fchdir.c (get_name): Likewise.
10388         Reported by Jim Meyering.
10389
10390 2009-10-02  Ben Pfaff  <blp@gnu.org>
10391
10392         relocatable-prog-wrapper: Add missing dependency on
10393         double-slash-root.
10394         * modules/relocatable-prog-wrapper: Add dependency.
10395         Reported by Ian Beckwith <ianb@erislabs.net>.
10396
10397 2009-10-02  Eric Blake  <ebb9@byu.net>
10398
10399         renameat: fix Solaris bugs
10400         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
10401         needed fixing.
10402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
10403         * modules/stdio (Makefile.am): Substitute it.
10404         * lib/stdio.in.h (renameat): Declare replacement.
10405         * lib/renameat.c (rpl_renameat): Implement fix.
10406
10407         renameat: new module
10408         * modules/renameat: New file.
10409         * lib/renameat.c (renameat): Likewise.
10410         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
10411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10412         * modules/stdio (Makefile.am): Substitute them.
10413         * lib/stdio.in.h (renameat): Declare it.
10414         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10415         * doc/posix-functions/renameat.texi (renameat): Likewise.
10416         * modules/renameat-tests: New test.
10417         * tests/test-renameat.c: Likewise.
10418
10419         rename: fix mingw bugs
10420         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
10421         directory overwrite bugs.
10422
10423         rename: fix another cygwin 1.5 bug
10424         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
10425         checks.
10426         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
10427         unnecessary cygwin workarounds.  Also work around bug with moving
10428         full directory onto an empty one.
10429         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
10430
10431         rename-dest-slash: merge into rename module
10432         * modules/rename-dest-slash (Status): Mark obsolete.
10433         (Depends-on): Add rename.
10434         (Files): Let rename do it all.
10435         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
10436         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
10437         * m4/rename-dest-slash.m4: ...so this file can be deleted.
10438         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
10439         * lib/rename.c (rpl_rename): Update comments.
10440
10441         rename: fix cygwin 1.5.x bugs
10442         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
10443         * lib/rename.c (rpl_rename): Work around them.
10444         * modules/rename (Depends-on): Add same-inode.
10445
10446         rename: fix Solaris 10 bug
10447         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10448         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
10449         was the only bug.
10450
10451         rename: fix Solaris 9 bug
10452         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
10453         on non-directory.  Avoid calling exit.
10454         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
10455         strdup.
10456         * modules/rename-tests (Depends-on): Drop lstat.
10457         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
10458         (gl_PREREQ_RENAME): Delete unused macro.
10459
10460         rename-dest-slash: fix NetBSD bug
10461         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
10462         links.
10463         * modules/rename-dest-slash (Depends-on): Add same-inode.
10464
10465         rename-tests: new test, exposes several platform bugs
10466         * modules/rename-tests: New file.
10467         * tests/test-rename.h: Likewise.
10468         * tests/test-rename.c: Likewise.
10469         * doc/posix-functions/rename.texi (rename): Improve documentation,
10470         including bugs that will eventually be fixed in gnulib.
10471
10472 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
10473
10474         * lib/uname.c: Include <stdlib.h>
10475         (uname): Assume version info is available.
10476
10477 2009-10-02  Jim Meyering  <meyering@redhat.com>
10478
10479         gnu-web-doc-update: correct --help output
10480         * build-aux/gnu-web-doc-update: Make --help output relevant.
10481
10482         gnu-web-doc-update: add standard options
10483         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
10484
10485         gnu-web-doc-update: New module.
10486         Use this script to automatically update the on-line web documentation
10487         for your GNU project at http://www.gnu.org/software/$pkg/manual/
10488         * modules/gnu-web-doc-update: New file, from coreutils.
10489         * build-aux/gnu-web-doc-update: New script.
10490
10491 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
10492
10493         link: LoadLibrary is not needed.
10494         * lib/link.c: Use GetModuleHandle.
10495
10496 2009-10-01  Eric Blake  <ebb9@byu.net>
10497
10498         getopt: bump serial number
10499         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
10500         change.
10501
10502         tests: tighten link, rmdir, and remove tests
10503         * tests/test-link.h (includes): No need to use <config.h> here.
10504         Clean up if directory hard link was created, otherwise test for
10505         trailing '.'.
10506         * tests/test-linkat.c (main): Simplify.
10507         * tests/test-remove.c (main): Enhance test for trailing '.'.
10508         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10509
10510 2009-10-01  Jim Meyering  <meyering@redhat.com>
10511
10512         maint.mk: requiring "make major" was annoying, for a "minor" release.
10513         What is intended is "stable", to contrast with alpha and beta,
10514         so require "make stable", not "make major".
10515         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
10516         (get_tool_versions): Likewise.
10517         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
10518
10519 2009-09-30  Ben Pfaff  <blp@gnu.org>
10520
10521         Fix broken build of replacement for Windows tmpfile().
10522         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
10523         flags argument added along with the 'mkostemp' module.
10524
10525 2009-09-28  Bruno Haible  <bruno@clisp.org>
10526
10527         Avoid identifier clash with POSIX function 'remove' defined as a macro.
10528         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
10529         to 'remove_elt'.
10530         (gl_list_remove): Update.
10531         * lib/gl_list.c (gl_list_remove): Update.
10532         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
10533         to 'remove_elt'.
10534         (gl_oset_remove): Update.
10535         * lib/gl_list.c (gl_oset_remove): Update.
10536         Reported by Eric Blake.
10537
10538 2009-09-28  Eric Blake  <ebb9@byu.net>
10539
10540         doc: mention yet more cygwin 1.7 status
10541         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
10542         cygwin.
10543         * doc/glibc-functions/execvpe.texi (execvpe): New file.
10544         * doc/gnulib.texi (Glibc unistd.h): Mention it.
10545
10546         argp: fix test failure
10547         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
10548         that are not upper-case.  Pass correct range to tolower.
10549
10550 2009-09-27  Jim Meyering  <meyering@redhat.com>
10551
10552         test-yesno: work around sparc-dash here-document infelicity
10553         Without this change, the literal \177 byte in a here document
10554         would make dash 0.5.5.1-3 access uninitialized memory.
10555         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
10556         Instead, use a marker, "@", and filter through tr to create the desired
10557         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
10558
10559 2009-09-27  Bruno Haible  <bruno@clisp.org>
10560
10561         Disable untested support for new flavours of ACLs on AIX.
10562         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
10563         progress.
10564         * lib/set-mode-acl.c (qset_acl): Likewise.
10565
10566 2008-12-07  Bruno Haible  <bruno@clisp.org>
10567
10568         Add support for new flavours of ACLs on AIX. (Untested.)
10569         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
10570         (file_has_acl): Add support for newer AIX.
10571         * lib/set-mode-acl.c (qset_acl): Likewise.
10572         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
10573         Rainer Tammer <tammer@tammer.net>.
10574
10575 2009-09-26  Eric Blake  <ebb9@byu.net>
10576
10577         argp: fix compilation of getopt
10578         * lib/getopt.in.h (includes): Use different guard than glibc.
10579         Reported by Sergey Poznyakoff.
10580
10581         doc: mention more cygwin 1.7 status
10582         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
10583         bug.
10584         * doc/posix-functions/execl.texi (execl): Likewise.
10585         * doc/posix-functions/execle.texi (execle): Likewise.
10586         * doc/posix-functions/execlp.texi (execlp): Likewise.
10587         * doc/posix-functions/execv.texi (execv): Likewise.
10588         * doc/posix-functions/execve.texi (execve): Likewise.
10589         * doc/posix-functions/execvp.texi (execvp): Likewise.
10590         * doc/glibc-functions/canonicalize_file_name.texi
10591         (canonicalize_file_name): Cygwin 1.7 now provides this.
10592         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
10593         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
10594         on AT_SYMLINK_NOFOLLOW.
10595
10596 2009-09-24  Eric Blake  <ebb9@byu.net>
10597
10598         test-linkat: make test more robust
10599         * tests/test-linkat.c (main): Avoid collision with EEXIST.
10600
10601         getopt: fix inclusion guards for cygwin
10602         * modules/getopt-posix (Depends-on): Add include-next.
10603         (Makefile.am): Substitute more items in replacement header.
10604         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
10605         <getopt.h>.
10606         * lib/getopt.in.h (includes): Use split inclusion guard, and
10607         prefer <getopt.h> over include <unistd.h> when one is present.
10608         (option): Also override name of 'struct option'.
10609
10610         same-inode: revert prior change; it is not yet ready
10611         * NEWS: Undo mention of this change.
10612         * lib/same-inode.h (same-inode.h): Undo tri-state change.
10613         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10614         * lib/cycle-check.c (cycle_check): Likewise.
10615         * lib/same.c (same_name): Likewise.
10616         * lib/at-func2.c (at_func2): Likewise.
10617
10618 2009-09-23  Eric Blake  <ebb9@byu.net>
10619
10620         linkat: new module
10621         * modules/linkat: New file.
10622         * lib/at-func2.c (at_func2): Likewise.
10623         * lib/linkat.c (linkat): Likewise.
10624         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
10625         * lib/openat-priv.h (at_func2): Add declaration.
10626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10627         * modules/unistd (Makefile.am): Substitute them.
10628         * lib/unistd.in.h (linkat): Declare it.
10629         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10630         * doc/posix-functions/linkat.texi (linkat): Likewise.
10631         * doc/posix-functions/link.texi (link): Tweak wording.
10632         * tests/test-link.c (main): Move guts...
10633         * tests/test-link.h (test_link): ...into new file.
10634         * modules/linkat-tests: New test.
10635         * tests/test-linkat.c: Likewise.
10636         * modules/link-tests (Files): Ship new file.
10637         (Depends-on): Add stdbool.
10638
10639         dirname: add library-safe mdir_name
10640         * lib/dirname.h (mdir_name): New prototype.
10641         * lib/dirname.c (dir_name): Move guts...
10642         (mdir_name): ...to new function that avoids xalloc_die.
10643
10644         fchdir: another mingw fix
10645         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
10646         * lib/fchdir.c (get_name): New helper method; skips canonicalize
10647         on mingw (where it has not yet been ported), and make it optional
10648         elsewhere.
10649         (_gl_register_fd): Use it.
10650
10651         same-inode: make SAME_INODE tri-state, to port to mingw
10652         * NEWS: Mention this change.
10653         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
10654         st_ino always being 0.
10655         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
10656         * lib/cycle-check.c (cycle_check): Likewise.
10657         * lib/same.c (same_name): Likewise.
10658
10659         lstat: avoid mingw compilation error
10660         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
10661         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
10662         lstat ourselves.
10663         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
10664         was adequate.
10665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
10666         the checks for lstat.
10667         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
10668
10669         link: fix test failure on Solaris 9
10670         * lib/link.c (rpl_link): Don't assume link will catch bogus
10671         trailing slash on source.
10672
10673         test-symlinkat: enhance test
10674         * tests/test-readlink.c (main): Move guts...
10675         * tests/test-readlink.h (test_readlink): ...into new file.
10676         * tests/test-symlink.c (main): Move guts...
10677         * tests/test-symlink.h (test_symlink): ...into new file.
10678         * tests/test-symlinkat.c (main): Use new files for further
10679         coverage.
10680         (do_symlink, do_readlink): New helper functions.
10681         * modules/symlink-tests (Files): Ship new file.
10682         (Depends-on): Add stdbool.
10683         * modules/readlink-tests (Files): Ship new file.
10684         (Depends-on): Add stdbool.
10685         * modules/symlinkat-tests (Files): Use new files.
10686
10687 2009-09-23  Eric Blake  <ebb9@byu.net>
10688
10689         readlink: document portability issue with symlink length
10690         * doc/posix-functions/lstat.texi (lstat): Mention that some file
10691         systems have bogus st_size on symlinks, and mention the
10692         areadlink-with-size module.
10693         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
10694         * doc/posix-functions/readlink.texi (readlink): Mention the
10695         areadlink module, and ERANGE failure.
10696         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10697         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
10698
10699         readlink: fix Solaris 9 bug with trailing slash
10700         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
10701         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
10702         * doc/posix-functions/readlink.texi (readlink): Document this.
10703         * modules/readlink-tests: New test.
10704         * tests/test-readlink.c: Likewise.
10705
10706         readlink: fix cygwin 1.5.x bug with return type
10707         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
10708         * lib/unistd.in.h (readlink): Use ssize_t.
10709         * lib/readlink.c (readlink): Likewise.
10710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10711         * modules/unistd (Makefile.am): Substitute it.
10712         * lib/unistd.in.h (readlink): Declare replacement.
10713         * doc/posix-functions/readlink.texi (readlink): Document this.
10714
10715         symlink: use throughout gnulib
10716         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
10717         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
10718         symlink is not used.
10719         * modules/symlinkat (Depends-on): Add symlink.
10720         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10721         * modules/canonicalize-tests (Depends-on): Likewise.
10722         * modules/lstat-tests (Depends-on): Likewise.
10723         * modules/openat-tests (Depends-on): Likewise.
10724         * modules/remove-tests (Depends-on): Likewise.
10725         * modules/rmdir-tests (Depends-on): Likewise.
10726         * modules/unlink-tests (Depends-on): Likewise.
10727         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
10728         * tests/test-canonicalize.c (symlink): Likewise.
10729         * tests/test-fstatat.c (symlink): Likewise.
10730         * tests/test-lstat.c (symlink): Likewise.
10731         * tests/test-remove.c (symlink): Likewise.
10732         * tests/test-rmdir.c (symlink): Likewise.
10733         * tests/test-unlink.c (symlink): Likewise.
10734         * tests/test-unlinkat.c (symlink): Likewise.
10735
10736         symlink: new module, for Solaris 9 bug
10737         * modules/symlink: New file.
10738         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
10739         * lib/symlink.c: Likewise.
10740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
10741         * modules/unistd (Makefile.am): Substitute them.
10742         * lib/unistd.in.h (symlink): Declare replacement.
10743         * MODULES.html.sh (File system functions): Mention it.
10744         * doc/posix-functions/symlink.texi (symlink): Likewise.
10745         * modules/symlink-tests: New test.
10746         * tests/test-symlink.c: Likewise.
10747
10748 2009-09-23  Bruno Haible  <bruno@clisp.org>
10749
10750         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
10751         when needed.
10752         Test case: gnulib-tool --import --with-tests atexit inttypes.
10753         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
10754
10755 2009-09-23  Bruno Haible  <bruno@clisp.org>
10756
10757         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
10758         subcommand, not in a subshell.
10759
10760 2009-09-22  Eric Blake  <ebb9@byu.net>
10761
10762         unistd: sort replacement declarations
10763         * lib/unistd.in.h: Sort declarations.
10764
10765         open, openat: minor optimization
10766         * lib/open.c (open): If open succeeded, len is non-zero.
10767         * lib/openat.c (rpl_openat): Likewise.
10768
10769         link-follow: ensure correct result
10770         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
10771         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
10772         distinguish between possible failures.
10773
10774 2009-09-21  Eric Blake  <ebb9@byu.net>
10775
10776         fts: avoid compiler warning
10777         * lib/fts.c (dirent_inode_sort_may_be_useful)
10778         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
10779
10780 2009-09-19  Bruno Haible  <bruno@clisp.org>
10781
10782         * lib/progreloc.c (canonicalize_file_name): New declaration.
10783
10784 2009-09-19  Eric Blake  <ebb9@byu.net>
10785
10786         link: fix quoting
10787         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
10788
10789         openat: fix openat bugs on Solaris 9
10790         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
10791         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
10792         * modules/openat (Depends-on): Add open.
10793         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
10794         * modules/fcntl-h (Makefile.am): Substitute it.
10795         * lib/fcntl.in.h (openat): Declare replacement.
10796         * doc/posix-functions/openat.texi (openat): Document this.
10797
10798         openat: move fstatat and unlinkat into correct files
10799         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
10800         compiled.
10801         * lib/openat.c (fstatat, unlinkat): Move...
10802         * lib/fstatat.c (fstatat): ...into correct files.
10803         * lib/unlinkat.c (unlinkat): Likewise.
10804
10805         openat: fix unlinkat bugs on Solaris 9
10806         * lib/unlinkat.c (unlinkat): New file.
10807         * modules/openat (Depends-on): Add unlink.
10808         (Files): Distribute it.
10809         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
10810         trailing slash behavior is broken.
10811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10812         * modules/unistd (Makefile.am): Substitute it.
10813         * lib/unistd.in.h (unlinkat): Declare replacement.
10814         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
10815
10816         openat: fix fstatat bugs on Solaris 9
10817         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
10818         stat.
10819         * doc/posix-functions/fstatat.texi (fstatat): Document this.
10820
10821         test-unlinkat: enhance test, to expose Solaris 9 bug
10822         * tests/test-unlink.c (main): Factor guts...
10823         * tests/test-unlink.h (test_rmdir_func): ...into new file.
10824         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
10825         * tests/test-rmdir.c (main): Adjust caller.
10826         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
10827         (unlinker): New helper function.
10828         (rmdirat): Enhance check.
10829         * modules/rmdir-tests (Depends-on): Add stdbool.
10830         * modules/unlink-tests (Depends-on): Likewise.
10831         (Files): Add test-unlink.h.
10832         * modules/openat-tests (Files): Likewise.
10833         (Depends-on): Add unlinkdir.
10834
10835         test-fstatat: new test, to expose Solaris 9 bugs
10836         * tests/test-stat.c (main): Factor guts...
10837         * tests/test-stat.h (test_stat_func): ...into new file.
10838         * tests/test-lstat.c (main): Factor guts...
10839         * tests/test-lstat.h (test_lstat_func): ...into new file.
10840         * tests/test-fstatat.c: New file.
10841         * modules/stat-tests (Files): Add test-stat.h.
10842         * modules/lstat-tests (Files): Add test-lstat.h.
10843         (Depends-on): Add stdbool.
10844         * modules/openat-tests (Depends-on): Add pathmax.
10845         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
10846         (Makefile.am): Run new test.
10847
10848         remove: new module, for mingw and Solaris 9 bugs
10849         * modules/remove: New file.
10850         * lib/remove.c: Likewise.
10851         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
10852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
10853         * modules/stdio (Makefile.am): Use them.
10854         * lib/stdio.in.h (remove): Declare replacement.
10855         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10856         * doc/posix-functions/remove.texi (remove): Likewise.
10857         * modules/remove-tests: New test.
10858         * tests/test-remove.c: Likewise.
10859
10860         unlink: new module, for Solaris 9 bug
10861         * modules/unlink: New file.
10862         * lib/unlink.c: Likewise.
10863         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
10865         * modules/unistd (Makefile.am): Use them.
10866         * lib/unistd.in.h (stat): Declare replacement.
10867         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10868         * doc/posix-functions/unlink.texi (unlink): Likewise.
10869         * modules/unlink-tests: New test.
10870         * tests/test-unlink.c: Likewise.
10871
10872         lstat: fix Solaris 9 bug
10873         * lib/lstat.c (lstat): Also check for trailing slash on
10874         non-symlink, non-directories.  Use stat module to simplify logic.
10875         * doc/posix-functions/lstat.texi (lstat): Document it.
10876         * modules/lstat-tests (Depends-on): Add errno, same-inode.
10877         (configure.ac): Check for symlink.
10878         * tests/test-lstat.c (main): Add more tests.
10879
10880         stat: add as dependency to other modules
10881         * modules/chown (Depends-on): Add stat.
10882         * modules/euidaccess (Depends-on): Likewise.
10883         * modules/fchdir (Depends-on): Likewise.
10884         * modules/isdir (Depends-on): Likewise.
10885         * modules/link (Depends-on): Likewise.
10886         * modules/lstat (Depends-on): Likewise.
10887         * modules/mkdir-p (Depends-on): Likewise.
10888         * modules/modechange (Depends-on): Likewise.
10889         * modules/open (Depends-on): Likewise.
10890         * modules/readlink (Depends-on): Likewise.
10891         * modules/same (Depends-on): Likewise.
10892
10893         stat: fix Solaris 9 bug
10894         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
10895         slash.
10896         * lib/stat.c (rpl_stat): Work around it.
10897         * doc/posix-functions/stat.texi (stat): Update documentation.
10898
10899         stat: new module, for mingw bug
10900         * modules/stat: New file.
10901         * lib/stat.c: Likewise.
10902         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10903         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
10904         * modules/sys_stat (Makefile.am): Use them.
10905         * lib/sys_stat.in.h (stat): Declare replacement.
10906         * lib/openat.c (fstatat): Deal with lstat and stat being function
10907         macros.
10908         * modules/openat (Depends-on): Add inline.
10909         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
10910         * doc/posix-functions/stat.texi (stat): Likewise.
10911         * modules/stat-tests: New test.
10912         * tests/test-stat.c: Likewise.
10913
10914 2009-09-19  Jim Meyering  <meyering@redhat.com>
10915
10916         syntax-check: detect unnecessary inclusion of canonicalize.h
10917         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
10918
10919 2009-09-19  Eric Blake  <ebb9@byu.net>
10920
10921         canonicalize-lgpl: adjust clients to use correct header
10922         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
10923         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
10924         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
10925         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
10926         * lib/progreloc.c (includes): Likewise.
10927
10928 2009-09-19  Jim Meyering  <meyering@redhat.com>
10929
10930         test-posixtm.c: correct a comment
10931         * tests/test-posixtm.c: Correct first-line comment.
10932         Spotted by Eric Blake.
10933
10934 2009-09-16  Jim Meyering  <meyering@redhat.com>
10935
10936         posixtm-tests: make T const-correct; add a test case
10937         * tests/test-posixtm.c (T): Declare const.
10938         Add a test for -(2^31+1).
10939         Remove useless can-succeed-only-in-2002 test.
10940
10941         posixtm-tests: adjust the sole failing test
10942         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
10943         expected output matches what mktime now produces.  Cross-checked via
10944         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
10945
10946         posixtm: move #ifdef'd tests into a new module
10947         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
10948         * tests/test-posixtm.c: ... this new file.
10949         * modules/posixtm-tests: New module.
10950
10951 2009-09-19  Eric Blake  <ebb9@byu.net>
10952
10953         openat: simplify use of at-func.c
10954         * lib/at-func.c (includes): Include prerequisites here, to
10955         simplify requirements on client files.
10956         * lib/openat-priv.h: Add double-inclusion guard.
10957         * lib/faccessat.c (includes): Simplify.
10958         * lib/fchmodat.c (includes): Likewise.
10959         * lib/fchownat.c (includes): Likewise.
10960         * lib/mkdirat.c (includes): Likewise.
10961         * lib/mkfifoat.c (includes): Likewise.
10962         * lib/symlinkat.c (includes): Likewise.
10963
10964         openat: allow return of fd 0
10965         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
10966         * modules/save-cwd (Depends-on): Replace fcntl-safer with
10967         unistd-safer.
10968         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
10969         <fcntl.h>; this module does not leak fds.
10970         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
10971         must be allowed to return 0, leaving openat_safer to add the
10972         safety.
10973         (openat_permissive): Avoid writing to just-opened fd 2 if
10974         restoring the current directory fails.
10975         * lib/openat-die.c (openat_restore_fail): Add comment.
10976         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
10977         (save_cwd): Guarantee safe fd, but without use of open_safer.
10978         * tests/test-openat.c: New test.
10979         * modules/openat-tests (Files, Makefile.am): Distribute and build
10980         new file.
10981
10982         relocatable-prog-wrapper: fix build
10983         * modules/relocatable-prog-wrapper (Files): Update name of
10984         canonicalize m4 file, broken on 2009-09-17.
10985         Reported by emad hajjar <aleppos@hotmail.com>.
10986
10987 2009-09-19  Bruno Haible  <bruno@clisp.org>
10988
10989         * lib/safe-alloc.h: Use the standard header with GPL copyright.
10990         * lib/safe-alloc.c: Likewise.
10991         Reported by Ian Beckwith <ianb@erislabs.net>.
10992
10993 2009-09-18  Bruno Haible  <bruno@clisp.org>
10994
10995         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
10996         Reported by <erobles@sensacd.com.mx>.
10997
10998 2009-09-17  Eric Blake  <ebb9@byu.net>
10999
11000         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
11001         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
11002         slashes when checking if last component is missing.
11003         * tests/test-canonicalize.c (main): Test this.
11004
11005         canonicalize, canonicalize-lgpl: honor // if distinct from /
11006         * modules/canonicalize (Files): Add double-slash-root.m4.
11007         * modules/canonicalize-lgpl (Files): Likewise.
11008         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
11009         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
11010         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
11011         fallback definition.
11012         (canonicalize_filename_mode): Use it to protect //.
11013         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
11014         (__realpath): Likewise.
11015         * tests/test-canonicalize.c (main): Test this.
11016         * tests/test-canonicalize-lgpl.c (main): Likewise.
11017         * modules/canonicalize-tests (Depends-on): Add same-inode.
11018         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
11019
11020         canonicalize-lgpl: fix glibc bug with trailing slash
11021         * m4/canonicalize-lgpl.m4: Move contents...
11022         * m4/canonicalize.m4: ...here.
11023         (gl_CANONICALIZE_LGPL): Factor realpath check...
11024         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
11025         glibc 2.3.5 bug, fixed 2005-04-27.
11026         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
11027         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
11028         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
11029         * modules/canonicalize-lgpl (Files): Manage file rename.
11030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11031         * modules/stdlib (Makefile.am): Substitute witness.
11032         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
11033         is needed.
11034         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
11035         replacement is required.
11036         * lib/canonicalize.c (canonicalize_file_name): Likewise.
11037         * doc/glibc-functions/canonicalize_file_name.texi
11038         (canonicalize_file_name): Document this.
11039         * doc/posix-functions/realpath.texi (realpath): Likewise.
11040
11041         canonicalize-lgpl: reject non-directory with trailing slash
11042         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
11043         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
11044         catches failures in glibc 2.3.5.
11045         * tests/test-canonicalize.c (main): Likewise.
11046
11047         canonicalize-lgpl: use native realpath if it works
11048         * lib/canonicalize-lgpl.c (realpath): Guard with
11049         FUNC_REALPATH_WORKS.
11050         * lib/stdlib.in.h (realpath): Make declaration optional based on
11051         HAVE_REALPATH.
11052         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
11053         native realpath works.
11054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
11055         * modules/stdlib (Makefile.am): Substitute witness.
11056
11057         canonicalize, canonicalize-lgpl: use <stdlib.h>
11058         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
11059         (Include): Mention <stdlib.h>.
11060         (configure.ac): Mention functions we provide.
11061         * modules/canonicalize (configure.ac): Likewise.
11062         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
11063         realpath if canonicalize_file_name is missing.
11064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
11065         * modules/stdlib (Makefile.am): Substitute witnesses.
11066         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
11067         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
11068         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
11069         * NEWS: Document this.
11070         * doc/glibc-functions/canonicalize_file_name.texi
11071         (canonicalize_file_name): Likewise.
11072         * doc/posix-functions/realpath.texi (realpath): Likewise.
11073         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
11074
11075         test-canonicalize: consolidate into single C program
11076         * tests/test-canonicalize.sh: Delete; move setup into...
11077         * tests/test-canonicalize.c (main): ...the program, making it
11078         easier to run in debugger.  Add some tests.
11079         * modules/canonicalize-tests (Files): Remove unused file.
11080         (Depends-on): Add progname.
11081         (configure.ac, Makefile.am): Simplify.
11082
11083         test-canonicalize-lgpl: consolidate into single C program
11084         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
11085         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
11086         easier to run in debugger.  Add some tests.
11087         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
11088         (configure.ac, Makefile.am): Simplify.
11089
11090         canonicalize: avoid resolvepath
11091         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
11092         unnecessary checks.
11093         * lib/canonicalize.c (includes): Simplify.
11094         (canonicalize_file_name): Drop resolvepath implementation.
11095         * modules/canonicalize (Depends-on): Drop filenamecat.
11096
11097         canonicalize: don't lose errno
11098         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
11099         over calls to free.
11100
11101         canonicalize: simplify errno handling
11102         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
11103         assignment.
11104
11105         canonicalize, canonicalize-lgpl: update module dependencies
11106         * modules/canonicalize (Depends-on): Add extensions, lstat,
11107         pathmax, stdlib.
11108         (Files): Drop pathmax.h.
11109         (configure.ac): Adjust macro name.
11110         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
11111         lstat, stdlib, sys_stat.
11112         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
11113         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
11114         extensions.
11115         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
11116         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
11117         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
11118         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
11119         declaration, if available.
11120         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
11121         we can rely on the readlink module.
11122         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
11123         (includes): Use <unistd.h> unconditionally.
11124
11125 2009-09-17  Eric Blake  <ebb9@byu.net>
11126
11127         maint: make Include sections of modules consistent
11128         * modules/alloca: Use only header name; no need to list #include.
11129         * modules/alloca-opt: Likewise.
11130         * modules/arpa_inet: Likewise.
11131         * modules/canon-host: Likewise.
11132         * modules/configmake: Likewise.
11133         * modules/dirent: Likewise.
11134         * modules/eealloc: Likewise.
11135         * modules/environ: Likewise.
11136         * modules/fchdir: Likewise.
11137         * modules/fcntl: Likewise.
11138         * modules/fcntl-h: Likewise.
11139         * modules/gethrxtime: Likewise.
11140         * modules/gettime: Likewise.
11141         * modules/ignore-value: Likewise.
11142         * modules/inet_ntop: Likewise.
11143         * modules/inet_pton: Likewise.
11144         * modules/inttypes: Likewise.
11145         * modules/isnand-nolibm: Likewise.
11146         * modules/isnanf-nolibm: Likewise.
11147         * modules/mbchar: Likewise.
11148         * modules/mbfile: Likewise.
11149         * modules/mbiter: Likewise.
11150         * modules/mbuiter: Likewise.
11151         * modules/netdb: Likewise.
11152         * modules/netinet_in: Likewise.
11153         * modules/nproc: Likewise.
11154         * modules/pagealign_alloc: Likewise.
11155         * modules/poll: Likewise.
11156         * modules/printf-frexp: Likewise.
11157         * modules/pthread: Likewise.
11158         * modules/putenv: Likewise.
11159         * modules/random_r: Likewise.
11160         * modules/relocatable-prog: Likewise.
11161         * modules/search: Likewise.
11162         * modules/select: Likewise.
11163         * modules/selinux-h: Likewise.
11164         * modules/settime: Likewise.
11165         * modules/signal: Likewise.
11166         * modules/size_max: Likewise.
11167         * modules/socklen: Likewise.
11168         * modules/ssize_t: Likewise.
11169         * modules/stdarg: Likewise.
11170         * modules/stdbool: Likewise.
11171         * modules/stddef: Likewise.
11172         * modules/stdint: Likewise.
11173         * modules/stdio: Likewise.
11174         * modules/stdlib: Likewise.
11175         * modules/string: Likewise.
11176         * modules/strings: Likewise.
11177         * modules/sys_file: Likewise.
11178         * modules/sys_ioctl: Likewise.
11179         * modules/sys_select: Likewise.
11180         * modules/sys_socket: Likewise.
11181         * modules/sys_stat: Likewise.
11182         * modules/sys_time: Likewise.
11183         * modules/sys_times: Likewise.
11184         * modules/sys_utsname: Likewise.
11185         * modules/sys_wait: Likewise.
11186         * modules/sysexits: Likewise.
11187         * modules/time: Likewise.
11188         * modules/times: Likewise.
11189         * modules/tmpfile: Likewise.
11190         * modules/trim: Likewise.
11191         * modules/unistd: Likewise.
11192         * modules/wchar: Likewise.
11193         * modules/wctype: Likewise.
11194
11195 2009-09-17  Bruno Haible  <bruno@clisp.org>
11196
11197         Make getdate.y compile on QNX and NetBSD 5 / i386.
11198         * m4/getdate.m4 (gl_GETDATE): Conditionally define
11199         TIME_T_FITS_IN_LONG_INT.
11200         * lib/getdate.y (long_time_t): New type.
11201         (relative_time): Change type of 'seconds' field to long_time_t.
11202         (get_date): Update types of local variables. Check against overflow
11203         during conversion from long_time_t to time_t.
11204         Reported by Matt Kraai <kraai@ftbfs.org>
11205         and Hasso Tepper <hasso@netbsd.org>.
11206
11207 2009-09-17  Bruno Haible  <bruno@clisp.org>
11208
11209         * modules/COPYING: Update copyright years.
11210         * modules/README: Likeiwse.
11211         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
11212         Reported by Ian Beckwith <ianb@erislabs.net>.
11213
11214 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11215
11216         * users.txt: Update references for gnuit package.
11217
11218 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
11219
11220         * m4/getdelim.m4: Fix typo in copyright line.
11221
11222 2009-09-17  Bruno Haible  <bruno@clisp.org>
11223
11224         * lib/atoll.c: Use the standard header with GPL copyright.
11225         * lib/argz.in.h: Likewise.
11226         * lib/glob.c: Likewise.
11227         * lib/glob-libc.h: Likewise.
11228         * lib/random_r.c: Likewise.
11229         * lib/siglist.h: Likewise.
11230         * lib/strsignal.c: Likewise.
11231         Reported by Ian Beckwith <ianb@erislabs.net>.
11232
11233 2009-09-17  Eric Blake  <ebb9@byu.net>
11234
11235         rmdir: ensure correct dependency order
11236         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
11237
11238 2009-09-17  Bruno Haible  <bruno@clisp.org>
11239
11240         Disable assertion that fails on NetBSD 5 / i386.
11241         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
11242         Reported by Sam Steingold <sds@gnu.org>
11243         and Hasso Tepper <hasso@netbsd.org>.
11244
11245 2009-09-16  Eric Blake  <ebb9@byu.net>
11246
11247         unlinkdir: port to mingw
11248         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
11249         on which no one can unlink a directory.
11250
11251         stdlib: sort witness names
11252         * modules/stdlib (Makefile.am): Sort replacements.
11253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
11254         * lib/stdlib.in.h: Likewise.
11255
11256         parse-duration-tests: avoid link failure
11257         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
11258         LIBINTL.
11259         Reported by Tom G. Christensen.
11260
11261         openat-tests: ensure unlinkat behaves like rmdir
11262         * tests/test-rmdir.c (main): Factor guts...
11263         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
11264         * modules/rmdir-tests (Files): Ship new file.
11265         * modules/openat-tests: New test.
11266         * tests/test-unlinkat.c: Likewise.
11267
11268         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
11269         * modules/rmdir-errno (Status, Notice): Now obsolete.
11270
11271         rmdir: work around cygwin 1.5.x and mingw bugs
11272         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
11273         * lib/rmdir.c (rmdir): Work around it.
11274         * modules/rmdir (Status, Notice): No longer obsolete.
11275         (Files): Add dos.m4.
11276         (Depends-on): Add unistd.
11277         (configure.ac): Set witnesses.
11278         (License): Relax to LGPLv2+.
11279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
11280         * modules/unistd (Makefile.am): Substitute witnesses.
11281         * lib/unistd.in.h (rmdir): Declare replacement.
11282         * doc/posix-functions/rmdir.texi (rmdir): Document this.
11283         * modules/rmdir-tests: New tests.
11284         * tests/test-rmdir.c: Likewise.
11285
11286 2009-09-15  Eric Blake  <ebb9@byu.net>
11287
11288         fchdir: improve use of replacement functions
11289         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
11290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
11291         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
11292         REPLACE_CLOSEDIR.
11293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
11294         * modules/sys_stat (Makefile.am): Substitute correct witness.
11295         * modules/dirent (Makefile.am): Likewise.
11296         * modules/unistd (Makefile.am): Likewise.
11297         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
11298         * lib/unistd.in.h (dup): Likewise.
11299         * lib/sys_stat.in.h (fstat): Likewise.
11300
11301         maint: ignore gnulib-tool temp files
11302         * .gitignore: Ignore files created during gnulib-tool --test.
11303
11304 2009-09-13  Jim Meyering  <meyering@redhat.com>
11305
11306         posixtm: don't reject a time that specify "60" as the number of seconds
11307         * lib/posixtm.c (posixtime): The code to reject invalid dates
11308         would also reject a time specified with the .60 suffix.
11309         But POSIX allows that, in order to accommodate leap seconds.
11310         So don't reject it.
11311         (main): Adjust tests accordingly.
11312         * modules/posixtm (Depends-on): Add stpcpy.
11313
11314 2009-09-11  Jim Meyering  <meyering@redhat.com>
11315
11316         announce-gen: include [$release_type] in emitted Subject:
11317         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
11318         e.g., [stable] in the emitted Subject: line.
11319
11320 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11321
11322         Remove obsolete macros from several modules.
11323         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
11324         obsolete Autoconf macros with their modern counterparts.
11325         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
11326         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
11327         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11328         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11329         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
11330         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
11332         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11333         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
11334         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
11335         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11336         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11337         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
11338         * m4/sockets.m4 (gl_SOCKETS): Likewise.
11339         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
11340         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
11341         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
11342         * m4/time_r.m4 (gl_TIME_R): Likewise.
11343         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
11344         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
11345         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
11346
11347         Fix copyright header in build-aux scripts.
11348         * build-aux/git-version-gen: Fix copyright header to match GPLv3
11349         recommendation.
11350         * build-aux/ncftpput-ftp: Likewise.
11351         * build-aux/update-copyright: Likewise.
11352
11353 2009-09-09  Eric Blake  <ebb9@byu.net>
11354
11355         test-link: allow Linux choice of errno
11356         * tests/test-link.c (main): Relax test for alternate error.
11357
11358         strndup: fix improper m4 caching
11359         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
11360         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
11361         (gl_PREREQ_STRNDUP): Delete.
11362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
11363         * modules/string (Makefile.am): Substitute it.
11364         * lib/string.in.h (strndup): Modernize prototype.
11365
11366         getcwd: port to mingw
11367         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
11368         different from the POSIX assumptions made throughout the getcwd
11369         module; fortunately, the mingw getcwd does not need replacement.
11370         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
11371         * modules/getcwd-tests: New test.
11372         * tests/test-getcwd.c: Likewise.
11373
11374         link: fix platform bugs
11375         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
11376         * lib/link.c (link): Work around them.  Fix related mingw bug.
11377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
11378         * modules/unistd (Makefile.am): Substitute it.
11379         * lib/unistd.in.h (link): Declare replacement.
11380         * doc/posix-functions/link.texi (link): Document this.
11381         * modules/link (Depends-on): Add strdup-posix, sys_stat.
11382
11383         test-link: consolidate into single C program, test more cases
11384         * tests/test-link.sh: Delete.
11385         * tests/test-link.c: Test more error conditions.  Exposes bugs on
11386         at least Cygwin and Solaris.
11387         * modules/link-tests (Files): Remove unused file.
11388         (Depends-on): Add errno, sys_stat.
11389         (Makefile.am): Simplify.
11390
11391 2009-09-08  Bruno Haible  <bruno@clisp.org>
11392
11393         Work around towlower, towupper bug on mingw.
11394         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
11395         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
11396         * doc/posix-functions/towlower.texi: Mention the mingw bug.
11397         * doc/posix-functions/towupper.texi: Likewise.
11398         Reported by Eric Blake.
11399
11400 2009-09-08  Jim Meyering  <meyering@redhat.com>
11401
11402         build: don't try to run autoheader if we don't use it
11403         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
11404         is not used in configure.ac.
11405
11406 2009-09-08  Eric Blake  <ebb9@byu.net>
11407
11408         euidaccess: fix compilation error
11409         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
11410
11411         rawmemchr: relax license
11412         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
11413         okay.
11414         Reported by Jim Meyering.
11415
11416         mkfifoat: new module
11417         * modules/mkfifoat: New file.
11418         * lib/mkfifoat.c: Likewise.
11419         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
11420         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
11421         * modules/sys_stat (Makefile.am): Use them.
11422         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
11423         * MODULES.html.sh (File system functions): Mention module.
11424         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
11425         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
11426         * modules/mkfifoat-tests: New test.
11427         * tests/test-mkfifoat.c: Likewise.
11428
11429         strchrnul: relax license
11430         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
11431         okay.
11432         Reported by Jim Meyering.
11433
11434 2009-09-08  Eric Blake  <ebb9@byu.net>
11435
11436         fstatat: fix compilation on Solaris
11437         * lib/fstatat.c (includes): Add fcntl.h.
11438         Reported by Pádraig Brady.
11439
11440 2009-09-07  Eric Blake  <ebb9@byu.net>
11441
11442         rename: modernize replacement
11443         * modules/rename (Depends-on): Add stdio.
11444         (configure.ac): Declare witness.
11445         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
11446         stdio take care of replacement.
11447         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
11448         * modules/stdio (Makefile.am): Substitute them.
11449         * lib/stdio.in.h (rename): Declare replacement.
11450         * lib/rename.c (includes): Allow cross-compilation to non-windows
11451         machines.
11452         * doc/posix-functions/rename.texi (rename): Improve
11453         documentation.
11454
11455         stdio: sort witness names
11456         * modules/stdio (Makefile.am): Sort replacements.
11457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11458         * lib/stdio.in.h: Likewise.
11459
11460         getcwd: minor cleanups
11461         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
11462         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
11463
11464         openat: provide more convenience names
11465         * modules/faccessat (configure.ac): Add C witness.
11466         * lib/unistd.in.h (readlinkat): Fix typo.
11467         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
11468         convenience wrappers.
11469         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
11470         wrappers in syntax checks.
11471
11472 2009-09-06  Eric Blake  <ebb9@byu.net>
11473
11474         doc: fix comments in recent patches
11475         * lib/faccessat.c: Mention correct function.
11476         * lib/fchmodat.c: Likewise.
11477         * lib/fchownat.c: Likewise.
11478         * lib/symlinkat.c: Likewise.
11479         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
11480         constants.
11481
11482         faccessat, symlinkat: continue cleanup of previous patch
11483         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
11484         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11485         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
11486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
11487         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
11488         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
11489         set.
11490
11491 2009-09-06  Bruno Haible  <bruno@clisp.org>
11492
11493         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
11494         (fstatat): Declare if GNULIB_FSTATAT is set.
11495         (mkdirat): Declare if GNULIB_MKDIRAT is set.
11496         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
11497         (unlinkat): Declare if GNULIB_UNLINKAT is set.
11498         * modules/fcntl-h (Files): Remove m4/openat.m4.
11499         * modules/sys_stat (Files): Remove m4/openat.m4.
11500         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
11501         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
11502         * modules/unistd (Files): Remove m4/openat.m4.
11503         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
11504         GNULIB_OPENAT.
11505         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
11506         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
11507         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
11508         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
11509         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
11510         gl_OPENAT_DEFAULTS.
11511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
11512         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
11513         Don't require gl_OPENAT_DEFAULTS.
11514         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
11515         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
11516         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
11517         (gl_OPENAT_DEFAULTS): Remove macro.
11518
11519 2009-09-06  Bruno Haible  <bruno@clisp.org>
11520
11521         * modules/openat (configure.ac): Remove unneeded witness.
11522
11523 2009-09-06  Bruno Haible  <bruno@clisp.org>
11524
11525         Set errno to ENOSYS when a function is entirely unsupported.
11526         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
11527         EOPNOTSUPP.
11528         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11529         * modules/chown (Depends-on): Remove errno.
11530
11531 2009-09-06  Bruno Haible  <bruno@clisp.org>
11532
11533         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
11534
11535 2009-09-06  Bruno Haible  <bruno@clisp.org>
11536
11537         * lib/sys_stat.in.h: Fix preprocessor command indentation.
11538
11539 2009-09-06  Ben Pfaff  <blp@gnu.org>
11540             Bruno Haible  <bruno@clisp.org>
11541
11542         Work around a glibc bug in strtok_r.
11543         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
11544         Undefine if UNDEFINE_STRTOK_R is set.
11545         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
11546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
11547         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
11548         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
11549         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
11550         UNDEFINE_STRTOK_R.
11551         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
11552
11553 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
11554
11555         exclude: minor fix
11556         * lib/exclude.c: Include wctype.h
11557
11558 2009-09-06  Akim Demaille  <demaille@gostai.com>
11559
11560         bootstrap: improve error message
11561         * build-aux/bootstrap (find_tool): Upon failure, report the list
11562         of candidates.
11563         Honor the initial value of the envvar.
11564
11565 2009-09-05  Eric Blake  <ebb9@byu.net>
11566
11567         symlinkat: new module
11568         * modules/symlinkat: New file.
11569         * lib/symlinkat.c: Likewise.
11570         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
11571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
11572         * modules/unistd (Makefile.am): Use them.
11573         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
11574         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
11575         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
11576         * MODULES.html.sh (File system functions): Mention module.
11577         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11578         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
11579         * modules/symlinkat-tests: New test.
11580         * tests/test-symlinkat.c: Likewise.
11581
11582         test-openat-safer: add more checks
11583         * tests/test-openat-safer.c (main): Check more code paths.
11584
11585 2009-09-05  Jim Meyering  <meyering@redhat.com>
11586
11587         syntax-check: detect unnecessary inclusion of openat.h
11588         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
11589
11590 2009-09-05  Bruno Haible  <bruno@clisp.org>
11591
11592         Support towlower, towupper.
11593         * doc/posix-functions/towlower.texi: Mention module wctype.
11594         * doc/posix-functions/towupper.texi: Likewise.
11595         * lib/wctype.in.h (towlower, towupper): New functions.
11596         * tests/test-wctype.c: Include stdio.h, stdlib.h.
11597         (ASSERT): New macro.
11598         (e): New variable.
11599         (main): Test also towlower, towupper. Test WEOF argument.
11600         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11601
11602 2009-09-05  Bruno Haible  <bruno@clisp.org>
11603
11604         Fix conversion behaviour when the input is invalid.
11605         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
11606         mark occurring in first pass of indirect conversion.
11607         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
11608         input.
11609         Found by clang's static analyzer.
11610
11611 2009-09-05  Bruno Haible  <bruno@clisp.org>
11612
11613         * tests/test-striconveh.c (main): Test indirect conversion on platforms
11614         where direct conversion is possible.
11615
11616 2009-09-04  Eric Blake  <ebb9@byu.net>
11617
11618         openat: fail with ENOENT on empty name
11619         * lib/openat-proc.c (openat_proc_name): Special-case the empty
11620         buffer.
11621
11622         link-follow: fix logic bug in prior patch
11623         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
11624         reversed sense of yes and no in prior patch.  Avoid confusing
11625         compilation failure with desired semantics.
11626
11627         link-follow: accomodate mingw and cross-compilation
11628         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
11629         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
11630         cross-compilation results to -1, to make linkat easier to
11631         implement when cross-compiling.  Trivially support mingw.
11632         * modules/link-follow (configure.ac): Call new name.
11633         * NEWS: Mention this.
11634
11635 2009-09-03  Eric Blake  <ebb9@byu.net>
11636
11637         faccessat: compile replacement
11638         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
11639         needed.
11640
11641         fts: fix compilation error
11642         * lib/fts.c (includes): Re-add "openat.h", for
11643         openat_needs_fchdir.
11644
11645         faccessat: new module
11646         * modules/faccessat: New file.
11647         * lib/faccessat.c: Likewise.
11648         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
11649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11650         * modules/unistd (Makefile.am): Use it.
11651         * lib/unistd.in.h (faccessat): Declare it.
11652         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
11653         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
11654         * MODULES.html.sh (File system functions): Mention it.
11655         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
11656         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11657
11658         euidaccess: prefer POSIX over non-standard implementation
11659         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
11660         * lib/euidaccess.c (euidaccess): Use it if available.
11661
11662         openat: make template easier to use
11663         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
11664         AT_FUNC_F2 to be undefined.
11665         (VALIDATE_FLAG): New macro; use it to reject bad flags.
11666         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
11667         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
11668         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
11669         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
11670         Likewise.
11671         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
11672         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
11673         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
11674         Likewise.
11675
11676         openat: declare in POSIX headers
11677         * NEWS: Mention this.
11678         * modules/openat (configure.ac): Declare witnesses.
11679         (Depends-on): Add fcntl-h, sys_stat, unistd.
11680         (Include): Mention correct headers.
11681         * modules/fcntl-h (Depends-on): Add link-warning.
11682         (Files): Add openat.m4.
11683         (Makefile.am): Substitute witnesses.
11684         * modules/sys_stat (Files, Makefile.am): Likewise.
11685         * modules/unistd (Files, Makefile.am): Likewise.
11686         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
11687         (gl_OPENAT_DEFAULTS): New macro.
11688         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
11689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
11690         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
11691         (SYS_STAT_H): Remove unused variable.
11692         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
11693         * lib/fcntl--.h (includes): Remove unneeded header.
11694         * lib/openat-safer.c (includes): Likewise.
11695         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
11696         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
11697         appropriate headers.
11698         (__OPENAT_PREFIX): Delete.
11699         * lib/fcntl.in.h (openat): Provide declaration.
11700         (AT_FDCWD): Fix Solaris bug.
11701         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
11702         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
11703         * lib/fchmodat.c (includes):  Adjust to find declaration.
11704         * lib/fchownat.c (includes): Likewise.
11705         * lib/mkdirat.c (includes): Likewise.
11706         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
11707         still visible.
11708
11709 2009-09-02  Eric Blake  <ebb9@byu.net>
11710
11711         errno: use consistently
11712         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
11713         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
11714         * lib/canonicalize.c (ELOOP): Likewise.
11715         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
11716         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
11717         * lib/lchown.c (EOPNOTSUPP): Likewise.
11718         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
11719         * lib/savewd.c (ESTALE): Likewise.
11720         * lib/settime.c (ENOSYS): Likewise.
11721         * lib/utimens.c (ENOSYS): Likewise.
11722         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
11723         * lib/chdir-safer.c (ELOOP): Likewise.
11724         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
11725         * modules/c-stack (Depends-on): Add errno.
11726         * modules/canonicalize (Depends-on): Likewise.
11727         * modules/chdir-safer (Depends-on): Likewise.
11728         * modules/fdopendir (Depends-on): Likewise.
11729         * modules/inet_ntop (Depends-on): Likewise.
11730         * modules/inet_pton (Depends-on): Likewise.
11731         * modules/lchown (Depends-on): Likewise.
11732         * modules/openat (Depends-on): Likewise.
11733         * modules/savewd (Depends-on): Likewise.
11734         * modules/settime (Depends-on): Likewise.
11735         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
11736
11737         fts: avoid leaking fds
11738         * modules/fts (Depends-on): Add cloexec.
11739         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
11740         flag.
11741
11742         fts: make directory fds more robust
11743         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
11744         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
11745
11746         backupfile, chdir-long, fts, savedir: make safer
11747         * lib/backupfile.c (includes): Use "dirent--.h", since
11748         numbered_backup can write to stderr during readdir.
11749         * lib/savedir.c (includes): Likewise.
11750         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
11751         emulation can write to stderr on failure.
11752         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
11753         * lib/getcwd.c: Document why opendir_safer is unused.
11754         * lib/glob.c: Likewise.
11755         * lib/scandir.c: Likewise.
11756         * lib/openat-proc.c: Likewise, for open_safer.
11757         * modules/backupfile (Depends-on): Add dirent-safer.
11758         * modules/savedir (Depends-on): Likewise.
11759         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
11760         * modules/chdir-long (Depends-on): Add openat-safer.
11761
11762         openat-safer: new module
11763         * modules/openat-safer: New file.
11764         * lib/openat-safer.c: Likewise.
11765         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
11766         * lib/fcntl-safer.h (openat_safer): Declare.
11767         * lib/fcntl--.h (openat): Override.
11768         * MODULES.html.sh (File descriptor based I/O): Mention it.
11769         * lib/openat.h: Add double-inclusion guards.
11770         * lib/openat.c (includes): Only include "fcntl-safer.h", not
11771         "fcntl--.h", so we can implement openat.
11772         * modules/openat-safer-tests: New test.
11773         * tests/test-openat-safer.c: New file.
11774
11775         dirent-safer: new module
11776         * modules/dirent-safer: New file.
11777         * lib/dirent--.h: Likewise.
11778         * lib/dirent-safer.h: Likewise.
11779         * lib/opendir-safer.c: Likewise.
11780         * m4/dirent-safer.m4: Likewise.
11781         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
11782         * modules/dirent-safer-tests: New test.
11783         * tests/test-dirent-safer.c: New file.
11784         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
11785
11786         fdopendir: optimize on mingw
11787         * lib/unistd.in.h (_gl_directory_name): New prototype.
11788         * lib/fchdir.c (_gl_directory_name): Implement it.
11789         (fchdir): Use it to simplify implementation.
11790         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
11791         fchdir, when available, to avoid calling [f]chdir().
11792
11793         fdopendir: split into its own module
11794         * lib/openat.c (fdopendir): Move...
11795         * lib/fdopendir.c: ...into new file.
11796         * modules/fdopendir: New module.
11797         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
11798         * modules/openat (Depends-on): Add fdopendir.
11799         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
11800         fdopendir here.
11801         * modules/savedir (Depends-on): Only need fdopendir, not full
11802         openat.
11803         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
11804         * lib/openat.h (fdopendir): Drop prototype.
11805         * lib/dirent.in.h (fdopendir): Provide prototype.
11806         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
11807         * modules/dirent (Makefile.am): Substitute them.
11808         * MODULES.html.sh (File system functions): Mention it.
11809         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
11810         * modules/fdopendir-tests: New file.
11811         * tests/test-fdopendir.c: Likewise.
11812
11813         fchdir: use more consistent macro convention
11814         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
11815         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
11816         REPLACE_FCHDIR, rather than relying on config.h macros.
11817         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
11818         inside a single make-time REPLACE_FCHDIR block, rather than using
11819         the config.h FCHDIR_REPLACEMENT.
11820         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
11821         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
11822         Manage fstat replacement.
11823         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
11824         REPLACE_FCHDIR.
11825         * modules/sys_stat (Files): Add m4/unistd_h.m4.
11826         (Makefile.am): Substitute REPLACE_FCHDIR.
11827         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
11828         FCHDIR_REPLACEMENT.
11829         * lib/dup-safer.c (dup_safer): Likewise.
11830         * lib/dup2.c (rpl_dup2): Likewise.
11831         * lib/dup3.c (rpl_dup3): Likewise.
11832         * lib/open.c (rpl_open): Likewise.
11833
11834         fchdir: simplify error handling, and support dup3
11835         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
11836         stdbool, malloc-posix, realloc-posix.
11837         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
11838         (ensure_dirs_slot): Return false on allocation failure.
11839         (rpl_dup2): Delete.
11840         (_gl_register_dup): New function.
11841         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
11842         (_gl_register_fd): Close fd on allocation failure.
11843         * lib/fcntl.in.h (_gl_register_fd): Update signature.
11844         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
11845         prototype.
11846         (rpl_dup2_fchdir): Delete prototype.
11847         * lib/open.c (open): Update caller.
11848         * lib/dup2.c (dup2): Track fchdir metadata.
11849         * lib/dup3.c (dup3): Likewise.
11850         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
11851         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
11852
11853 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11854
11855         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
11856         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
11857         don't pass arguments to AC_OUTPUT.
11858
11859 2009-09-02  Bruno Haible  <bruno@clisp.org>
11860
11861         * modules/mkdtemp (License): Relicense under LGPLv2+.
11862         Reported by Paolo Bonzini.
11863
11864 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11865
11866         Replace uses of obsolete autoconf macros in Jim's modules.
11867         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
11868         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
11869         can evoke a warning from autoconf when run with -Wobsolete
11870         enabled.  They were declared obsolete for good reasons (see
11871         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
11872         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
11873         should not continue using the deprecated macros.
11874         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
11875         obsolete Autoconf macros with modern counterparts.
11876         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11877         * m4/dos.m4 (gl_AC_DOS): Likewise.
11878         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
11879         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
11880         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
11881         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
11882         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11883         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
11884         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
11885         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
11886         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
11887         Likewise.
11888         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
11889         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
11890         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
11891         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
11892         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
11893         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
11894
11895 2009-09-01  Eric Blake  <ebb9@byu.net>
11896
11897         fchdir: fix off-by-one bug in previous patch
11898         * lib/fchdir.c (rpl_fstat): Use correct bounds.
11899         (_gl_unregister_fd): Delete useless if.
11900
11901 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
11902
11903         maint.mk: sort the list of syntax-check rules
11904         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
11905         easier to get a sense of progress when the rules are run sequentially
11906         and take a long time.
11907
11908 2009-09-01  Simon Josefsson  <simon@josefsson.org>
11909
11910         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
11911         * modules/netinet_in: Likewise.
11912         * modules/sys_file: Likewise.
11913         * modules/sys_ioctl: Likewise.
11914         * modules/sys_select: Likewise.
11915         * modules/sys_socket: Likewise.
11916         * modules/sys_stat: Likewise.
11917         * modules/sys_time: Likewise.
11918         * modules/sys_times: Likewise.
11919         * modules/sys_utsname: Likewise.
11920         * modules/sys_wait: Likewise.
11921
11922 2009-09-01  Jim Meyering  <meyering@redhat.com>
11923
11924         fts: help ensure that return values are not ignored
11925         * lib/fts_.h (__GNUC_PREREQ): Define.
11926         (__attribute_warn_unused_result__): Define.
11927         (fts_children, fts_close, fts_open, fts_read): Declare with
11928         __attribute_warn_unused_result__.
11929
11930         fts: fts_close now fails also when closing a dir file descriptor fails
11931         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
11932         and propagate to caller, along with errno.
11933
11934         announce-gen: correct formatting in --help output
11935         * build-aux/announce-gen (usage): Move the one-line description in
11936         --help output "up", to where it belongs, just after Usage:.
11937
11938 2009-08-31  Eric Blake  <ebb9@byu.net>
11939
11940         fchdir: port to mingw
11941         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
11942         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
11943         opened, then use a substitute.
11944         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
11945         replacement.
11946         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
11947         (_gl_register_fd): No need to check stat if open already filters
11948         all directories.
11949         (fchdir): Fix error condition to match POSIX.
11950         * modules/fchdir (Depends-on): Add sys_stat.
11951         * doc/posix-functions/open.texi (open): Document the limitation.
11952         * modules/fchdir-tests: New file.
11953         * tests/test-fchdir.c: Likewise.
11954
11955         canonicalize: allow cross-testing from cygwin to mingw
11956         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
11957         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
11958         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
11959         Likewise.
11960         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
11961         target does not support symlinks.
11962         * tests/test-canonicalize-lgpl.sh: Likewise.
11963
11964         chown: avoid compilation warning on mingw
11965         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
11966         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
11967         mingw.
11968         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
11969         * modules/chown (Depends-on): Add errno.
11970
11971 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11972
11973         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
11974         command.
11975
11976 2009-08-31  Jim Meyering  <meyering@redhat.com>
11977
11978         canonicalize: remove useless initialization
11979         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
11980         initialization of local, "end".
11981
11982 2009-08-30  Bruno Haible  <bruno@clisp.org>
11983
11984         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
11985         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
11986         ENOSYS.
11987
11988 2009-08-30  Bruno Haible  <bruno@clisp.org>
11989
11990         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
11991         /usr/xpg4/bin/tr when it exists.
11992         * tests/test-pipe-filter-gi1.sh: Likewise.
11993
11994 2009-08-30  Bruno Haible  <bruno@clisp.org>
11995
11996         Work around deficient /usr/bin/id program on Solaris.
11997         * tests/test-file-has-acl.sh (ID): New variable.
11998         * tests/test-set-mode-acl.sh (ID): Likewise.
11999         * tests/test-copy-acl.sh (ID): Likewise.
12000         * tests/test-copy-file.sh (ID): Likewise.
12001
12002 2009-08-30  Bruno Haible  <bruno@clisp.org>
12003
12004         New module 'xstriconveh'.
12005         * lib/xstriconveh.h: New file.
12006         * lib/xstriconveh.c: New file.
12007         * modules/xstriconveh: New file.
12008
12009 2009-08-30  Bruno Haible  <bruno@clisp.org>
12010
12011         Make it easier to use mem_cd_iconveh.
12012         * lib/striconveh.h (iconveh_t): New type.
12013         (iconveh_open, iconveh_close): New declarations.
12014         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12015         with a single 'const iconveh_t *' argument.
12016         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
12017         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
12018         with a single 'const iconveh_t *' argument.
12019         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
12020         * tests/test-striconveh.c (main): Update.
12021         * NEWS: Mention the change.
12022
12023 2009-08-30  Bruno Haible  <bruno@clisp.org>
12024
12025         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
12026         problem.
12027
12028 2009-08-30  Bruno Haible  <bruno@clisp.org>
12029
12030         Work around iconv_open problem on Solaris.
12031         * lib/iconv_open-solaris.gperf: New file.
12032         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
12033         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
12034         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
12035         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
12036         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
12037         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
12038
12039 2009-08-29  Jim Meyering  <meyering@redhat.com>
12040
12041         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
12042         * top/maint.mk (cvs-check): Remove target; it was just an alias
12043         to the better-named vc-diff-check.
12044         (maintainer-distcheck): Remove rule.  It was used only from
12045         the (alpha/beta/major) target, and all of its commands but one
12046         were coreutils-specific.
12047         (vc-dist): Remove rule.
12048         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
12049         Run vc-diff-check, not vc-dist.
12050         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
12051
12052 2009-08-27  Bruno Haible  <bruno@clisp.org>
12053
12054         * tests/test-bitrotate.c (main): Remove test that uses a shift count
12055         of 0.
12056
12057 2009-08-27  Bruno Haible  <bruno@clisp.org>
12058
12059         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
12060         compilers.
12061         * doc/func.texi: Document the SunPRO C bug.
12062
12063 2009-08-27  Bruno Haible  <bruno@clisp.org>
12064
12065         Fix link error on Solaris.
12066         * tests/test-parse-duration.c (xstrdup): Remove function.
12067
12068 2009-08-26  Pádraig Brady  <P@draigbrady.com>
12069
12070         ignore-value: handle pointer types, too
12071         * lib/ignore-value.h (__attribute__): Remove definition.
12072         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
12073         of a more concise and more-often effective "(void) i" statement.
12074         (ignore_ptr): New function to suppress warnings from functions that
12075         return pointers, and to make it explicit that one function doesn't
12076         handle all cases.
12077
12078 2009-08-25  Bruno Haible  <bruno@clisp.org>
12079
12080         dup2: work around a Linux bug.
12081         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
12082         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
12083         * doc/posix-functions/dup2.texi: Mention the Linux bug.
12084         Reported by Simon Josefsson.
12085
12086 2009-08-25  Jim Meyering  <meyering@redhat.com>
12087
12088         libguestfs uses gnulib
12089         * users.txt: Add libguestfs.
12090
12091 2009-08-24  Eric Blake  <ebb9@byu.net>
12092
12093         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
12094         * lib/pipe2.c (includes): Add binary-io.h.
12095         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
12096
12097 2009-08-24  Bruno Haible  <bruno@clisp.org>
12098
12099         Tolerate declared but missing accept4 syscall.
12100         * lib/accept4.c (accept4): Invoke original accept4 function first, if
12101         available.
12102         * lib/sys_socket.in.h (accept4): If the function is already present,
12103         override it.
12104         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
12105         * modules/accept4 (Makefile.am): Compile accept4.c always.
12106         Reported by Paolo Bonzini and Eric Blake.
12107
12108 2009-08-23  Bruno Haible  <bruno@clisp.org>
12109
12110         New module 'accept4'.
12111         * lib/sys_socket.in.h (accept4): New declaration.
12112         * lib/accept4.c: New file.
12113         * m4/accept4.m4: New file.
12114         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
12115         GNULIB_ACCEPT4, HAVE_ACCEPT4.
12116         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
12117         HAVE_ACCEPT4.
12118         * modules/accept4: New file.
12119         * doc/glibc-functions/accept4.texi: Mention the new module.
12120
12121 2009-08-24  Jim Meyering  <meyering@redhat.com>
12122
12123         progname: also set global program_invocation_name, when possible
12124         Before this change, a libtool-enabled program that calls glibc's
12125         error function would report the program name as
12126         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
12127         * modules/progname (configure.ac): Check for a declaration of
12128         program_invocation_name.
12129         * lib/progname.c:  Include <errno.h>.
12130         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
12131         Set program_invocation_name.
12132
12133 2009-08-23  Bruno Haible  <bruno@clisp.org>
12134
12135         * lib/dup3.c: Include <string.h>.
12136
12137 2009-08-23  Bruno Haible  <bruno@clisp.org>
12138
12139         * lib/dup3.c (dup3): Test only once whether the system actually exists.
12140         * lib/pipe2.c (pipe2): Likewise.
12141         Suggested by Eric Blake.
12142
12143 2009-08-23  Bruno Haible  <bruno@clisp.org>
12144
12145         Tolerate declared but missing dup3 syscall.
12146         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
12147         * lib/unistd.in.h (dup3): If the function is already present,
12148         override it.
12149         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
12150         * modules/dup3 (Makefile.am): Compile dup3.c always.
12151         Reported by Paolo Bonzini.
12152
12153 2009-08-23  Bruno Haible  <bruno@clisp.org>
12154
12155         Tolerate declared but missing pipe2 syscall.
12156         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
12157         available.
12158         * lib/unistd.in.h (pipe2): If the function is already present,
12159         override it.
12160         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
12161         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
12162         Reported by Paolo Bonzini.
12163
12164 2009-08-23  Bruno Haible  <bruno@clisp.org>
12165
12166         * lib/pipe2.c (pipe2): Move #ifs inside function.
12167
12168 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12169
12170         quotearg: document limitations of quote_these_too
12171         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
12172         those limitations are created.
12173         * lib/quotearg.h (set_char_quoting): Document that digits and
12174         letters that are special after backslash are not permitted.
12175         (quotearg_char): Cross-reference set_char_quoting documentation.
12176
12177 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
12178
12179         quotearg: implement custom_quoting_style
12180         * lib/quotearg.c: (struct quoting_options): Add left_quote and
12181         right_quote fields.
12182         (set_custom_quoting): New public function.
12183         (quotearg_buffer_restyled): Add left_quote and right_quote
12184         arguments, handle them very much like locale quoting, and update
12185         all uses.
12186         (quotearg_n_custom): New public function.
12187         (quotearg_n_custom_mem): New public function.
12188         (quotearg_custom): New public function.
12189         (quotearg_custom_mem): New public function.
12190         * lib/quotearg.h: Prototype and document new public functions.
12191         (enum quoting_style): For escape_quoting_style and
12192         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
12193         ignored even though they're otherwise like c_quoting_style.
12194         Add custom_quoting_style member and document with comparison to
12195         clocale_quoting_style.
12196         * tests/test-quotearg.c (custom_quotes): New array.
12197         (custom_results): New array.
12198         (main): Extend to test custom quoting.
12199
12200 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12201
12202         quotearg: fix right quote escaping when it's in quote_these_too
12203         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
12204         quote, be sure to prepend only one backslash.
12205         * tests/test-quotearg.c (use_quote_double_quotes): New function.
12206         (main): Test it.
12207
12208 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
12209
12210         quotearg-tests: test escaping of embedded locale quotes
12211         * tests/test-quotearg.c (struct result_strings): Add member for
12212         new input.
12213         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
12214         (inputs): Add new input.
12215         (results_g): Add expected results.
12216         (flag_results): Likewise.
12217         (locale_results): Likewise.
12218         (compare_strings): Check those.
12219
12220 2009-08-23  Bruno Haible  <bruno@clisp.org>
12221
12222         Tests for module 'dup3'.
12223         * modules/dup3-tests: New file.
12224         * tests/test-dup3.c: New file.
12225
12226         New module 'dup3'.
12227         * lib/unistd.in.h (dup3): New declaration.
12228         * lib/dup3.c: New file.
12229         * m4/dup3.m4: New file.
12230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
12231         HAVE_DUP3.
12232         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
12233         * modules/dup3: New file.
12234         * doc/glibc-functions/dup3.texi: Mention the new module.
12235
12236 2009-08-23  Bruno Haible  <bruno@clisp.org>
12237
12238         Tweak the dup2 test.
12239         * tests/test-dup2.c (main): Create the test file empty. Verify that an
12240         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
12241         the test file is still empty. Fix argument order of lseek.
12242
12243 2009-08-23  Bruno Haible  <bruno@clisp.org>
12244
12245         Avoid test link errors when the modules getopt-gnu, gettext are used.
12246         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
12247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12248
12249 2009-08-23  Bruno Haible  <bruno@clisp.org>
12250
12251         Fix getdtablesize() on mingw.
12252         * lib/getdtablesize.c (getdtablesize): Implement differently.
12253         * lib/unistd.in.h (getdtablesize): Improve comment.
12254
12255 2009-08-23  Bruno Haible  <bruno@clisp.org>
12256
12257         New module 'mkostemp'.
12258         Based on Ulrich Drepper's 2007-08-10 change in glibc.
12259         * lib/stdlib.in.h (mksotemp): New declaration.
12260         * lib/mkostemp.c: New file, from glibc with modifications.
12261         * lib/tempname.h (GT_FILE): Remove outdated comment.
12262         (gen_tempname): Add flags argument.
12263         * lib/tempname.c (__GT_BIGFILE): Remove macro.
12264         (__GT_FILE): Map to 1.
12265         (small_open, large_open): Remove macros.
12266         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
12267         * lib/mkstemp.c (mkstemp): Update.
12268         * lib/mkdtemp.c (mkdtemp): Likewise.
12269         * m4/mkostemp.m4: New file.
12270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
12271         HAVE_MKOSTEMP.
12272         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
12273         HAVE_MKOSTEMP.
12274         * modules/mkostemp: New file, based on modules/mkstemp.
12275         * doc/glibc-functions/mkostemp.texi: Mention the new module.
12276         * NEWS: Mention the change.
12277
12278 2009-08-23  Bruno Haible  <bruno@clisp.org>
12279
12280         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
12281         Reported by Eric Blake.
12282
12283 2009-08-23  Bruno Haible  <bruno@clisp.org>
12284
12285         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
12286         Reported by Eric Blake.
12287
12288 2009-08-23  Bruno Haible  <bruno@clisp.org>
12289
12290         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
12291         * modules/pipe2 (Depends-on): Likewise.
12292
12293 2009-08-23  Eric Blake  <ebb9@byu.net>
12294
12295         fcntl-h: add O_TTY_INIT support
12296         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
12297         * tests/test-fcntl-h.c (o): Test it.
12298         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12299
12300         fcntl-h: rename from fcntl, in preparation for fcntl(2)
12301         * modules/fcntl: Move <fcntl.h> header replacement...
12302         * modules/fcntl-h: ...to new name, so as not to collide with
12303         like-named function.
12304         * tests/test-fcntl.c: Rename...
12305         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
12306         * modules/fcntl-tests: Rename...
12307         * modules/fcntl-h-tests: ...to this.  Update test file name.
12308         * modules/chdir-long (Depends-on): Update clients.
12309         * modules/chdir-safer (Depends-on): Likewise.
12310         * modules/fcntl-safer (Depends-on): Likewise.
12311         * modules/fts (Depends-on): Likewise.
12312         * modules/mkancesdirs (Depends-on): Likewise.
12313         * modules/mkdir-p (Depends-on): Likewise.
12314         * modules/open (Depends-on): Likewise.
12315         * modules/savewd (Depends-on): Likewise.
12316         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
12317         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12318
12319 2009-08-22  Bruno Haible  <bruno@clisp.org>
12320
12321         * modules/binary-io (License): Relicense under LGPL.
12322         * modules/pipe2 (License): Likewise.
12323
12324 2009-08-22  Bruno Haible  <bruno@clisp.org>
12325
12326         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
12327         return value.
12328         * lib/pipe-filter-gi.c (filter_init): Likewise.
12329         Reported by Eric Blake.
12330
12331 2009-08-22  Bruno Haible  <bruno@clisp.org>
12332
12333         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
12334         * modules/pipe (Depends-on): Add pipe2.
12335
12336 2009-08-22  Bruno Haible  <bruno@clisp.org>
12337
12338         Tests for module 'pipe2'.
12339         * modules/pipe2-tests: New file.
12340         * tests/test-pipe2.c: New file.
12341
12342         New module 'pipe2'.
12343         * lib/unistd.in.h (pipe2): New declaration.
12344         * lib/pipe2.c: New file.
12345         * m4/pipe2.m4: New file.
12346         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
12347         HAVE_PIPE2.
12348         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
12349         * modules/pipe2: New file.
12350         * doc/glibc-functions/pipe2.texi: Mention the new module.
12351
12352 2009-08-22  Bruno Haible  <bruno@clisp.org>
12353
12354         Reference some new glibc functions.
12355         * doc/glibc-functions/accept4.texi: New file.
12356         * doc/glibc-functions/dup3.texi: New file.
12357         * doc/glibc-functions/mkostemp.texi: New file.
12358         * doc/glibc-functions/pipe2.texi: New file.
12359         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
12360         (Glibc sys/socket.h): Refer to accept4.
12361         (Glibc unistd.h): Refer to dup3, pipe2.
12362         Reported by Eric Blake.
12363
12364 2009-08-22  Jim Meyering  <meyering@redhat.com>
12365             Bruno Haible  <bruno@clisp.org>
12366
12367         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
12368         This makes it so packages using automake-1.11's silent-rules option
12369         can print e.g., a single "GEN    configmake.h" line, rather than
12370         the 30+ statements that perform the job.  If you want to see the
12371         actual commands, you can still run "make V=1".
12372         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
12373         so that make output is abbreviated when those variables are defined
12374         appropriately.
12375         * modules/argz: Likewise.
12376         * modules/arpa_inet: Likewise.
12377         * modules/byteswap: Likewise.
12378         * modules/configmake: Likewise.
12379         * modules/dirent: Likewise.
12380         * modules/errno: Likewise.
12381         * modules/fcntl: Likewise.
12382         * modules/float: Likewise.
12383         * modules/fnmatch: Likewise.
12384         * modules/getopt-posix: Likewise.
12385         * modules/glob: Likewise.
12386         * modules/iconv_open: Likewise.
12387         * modules/inttypes: Likewise.
12388         * modules/localcharset: Likewise.
12389         * modules/locale: Likewise.
12390         * modules/math: Likewise.
12391         * modules/netdb: Likewise.
12392         * modules/netinet_in: Likewise.
12393         * modules/poll: Likewise.
12394         * modules/posix_spawnp-tests: Likewise.
12395         * modules/sched: Likewise.
12396         * modules/search: Likewise.
12397         * modules/selinux-h: Likewise.
12398         * modules/signal: Likewise.
12399         * modules/spawn: Likewise.
12400         * modules/stdarg: Likewise.
12401         * modules/stdbool: Likewise.
12402         * modules/stddef: Likewise.
12403         * modules/stdint: Likewise.
12404         * modules/stdio: Likewise.
12405         * modules/stdlib: Likewise.
12406         * modules/string: Likewise.
12407         * modules/strings: Likewise.
12408         * modules/sys_file: Likewise.
12409         * modules/sys_ioctl: Likewise.
12410         * modules/sys_select: Likewise.
12411         * modules/sys_socket: Likewise.
12412         * modules/sys_stat: Likewise.
12413         * modules/sys_time: Likewise.
12414         * modules/sys_times: Likewise.
12415         * modules/sys_utsname: Likewise.
12416         * modules/sys_wait: Likewise.
12417         * modules/sysexits: Likewise.
12418         * modules/time: Likewise.
12419         * modules/unistd: Likewise.
12420         * modules/wchar: Likewise.
12421         * modules/wctype: Likewise.
12422
12423 2009-08-22  Jim Meyering  <meyering@redhat.com>
12424
12425         announce-gen: detect write failure
12426         * build-aux/announce-gen: Add Coda at end.
12427         Remove equivalent-but-more-verbose block at top.
12428
12429 2009-08-19  Akim Demaille  <demaille@gostai.com>
12430
12431         bootstrap: --help to stdout.
12432         * bootstrap (usage): Don't send --help to stderr.
12433         Use a here doc instead of a long string.
12434
12435 2009-08-21  Eric Blake  <ebb9@byu.net>
12436
12437         test-popen-safer: split from test-popen
12438         * tests/test-popen.c (main): Move...
12439         * tests/test-popen.h: ...into new file.
12440         * tests/test-popen-safer2.c: New file.
12441         * modules/popen-tests (Files): Add test-popen.h.
12442         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
12443         Suggested by Bruno Haible.
12444
12445         test-fcntl-safer: split from test-open
12446         * tests/test-open.c (main): Move...
12447         * tests/test-open.h: ...into new file.
12448         * tests/test-fcntl-safer.c: New file.
12449         * modules/open-tests (Files): Add test-open.h.
12450         * modules/fcntl-safer-tests: New file.
12451         Suggested by Bruno Haible.
12452
12453         test-fopen-safer: split from test-fopen
12454         * tests/test-fopen.c (main): Move...
12455         * tests/test-fopen.h: ...into new file.
12456         * tests/test-fopen-safer.c: New file.
12457         * modules/fopen-tests (Files): Add test-fopen.h.
12458         * modules/fopen-safer-tests: New file.
12459         Suggested by Bruno Haible.
12460
12461 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12462
12463         popen-safer: test O_CLOEXEC at run-time.
12464         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
12465
12466 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
12467
12468         fcntl: move more flags to the header
12469         * lib/cloexec.c: Do not define FD_CLOEXEC here.
12470         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
12471         * lib/fcntl.in.h: Do both things here.
12472
12473 2009-08-21  Jim Meyering  <meyering@redhat.com>
12474
12475         consistently remove $@-t before redirecting to it
12476         * modules/argz: Remove $@-t and $@ before redirecting to the former.
12477         * modules/alloca-opt: Likewise.
12478         * modules/byteswap: Likewise.
12479         * modules/fnmatch: Likewise.
12480         * modules/getopt-posix: Likewise.
12481         * modules/glob: Likewise.
12482         * modules/poll: Likewise.
12483         * modules/posix_spawnp-tests: Likewise.
12484         * modules/sys_socket: Likewise.
12485         * modules/sysexits: Likewise.
12486
12487 2009-08-21  Eric Blake  <ebb9@byu.net>
12488
12489         popen: simplify access to original popen
12490         * lib/popen.c (rpl_popen): No need to worry about popen being a
12491         macro.
12492         Reported by Bruno Haible.
12493
12494 2009-08-20  Eric Blake  <ebb9@byu.net>
12495
12496         build: avoid some compiler warnings
12497         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
12498         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
12499         type.
12500         (new_exclude_segment, excluded_file_pattern_p)
12501         (excluded_file_name_p): Reduce scope.
12502         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
12503         old-style declaration.
12504
12505 2009-08-20  Simon Josefsson  <simon@josefsson.org>
12506
12507         * tests/test-exclude1.sh: Handle Windows EOL.
12508         * tests/test-exclude2.sh: Likewise.
12509         * tests/test-exclude3.sh: Likewise.
12510         * tests/test-exclude4.sh: Likewise.
12511         * tests/test-exclude5.sh: Likewise.
12512         * tests/test-exclude6.sh: Likewise.
12513         * tests/test-exclude7.sh: Likewise.
12514
12515 2009-08-19  Akim Demaille  <demaille@gostai.com>
12516
12517         bootstrap: find sha1sum when named gsha1sum.
12518         * bootstrap (find_tool): New.
12519         ($SHA1SUM): New.
12520         Use it.
12521
12522 2009-08-20  Jim Meyering  <meyering@redhat.com>
12523
12524         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
12525         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
12526         expression that converts "." in a file name to "\." in the resulting
12527         regexp.  Start with a dummy statement, so that prior shell variable
12528         definitions are expanded portably.  Reported by Simon Josefsson.
12529
12530 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
12531
12532         Fix polling for writeability of a screen buffer.
12533         * lib/poll.c: Distinguish input and screen buffers for the
12534         Win32 implementation.
12535         * lib/select.c: Likewise.
12536
12537 2009-08-19  Eric Blake  <ebb9@byu.net>
12538
12539         popen-safer: prevent popen from clobbering std descriptors
12540         * modules/popen-safer: New file.
12541         * lib/popen-safer.c: Likewise.
12542         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
12543         * lib/stdio--.h (popen): Provide override.
12544         * lib/stdio-safer.h (popen_safer): Provide declaration.
12545         * tests/test-popen.c (includes): Partially test this.
12546         * modules/popen-safer-tests: New file, for more tests.
12547         * tests/test-popen-safer.c: Likewise.
12548         * MODULES.html.sh (file stream based Input/Output): Mention it.
12549
12550         tests: test some of the *-safer modules
12551         * modules/fopen-safer (Depends-on): Add fopen.
12552         * modules/fcntl-safer (Depends-on): Add fcntl.
12553         * modules/stdlib-safer (Depends-on): Add stdlib.
12554         (configure.ac): Set indicator.
12555         * modules/unistd-safer (configure.ac): Likewise.
12556         * modules/tmpfile-safer (configure.ac): Likewise.
12557         (Depends-on): Add tmpfile.
12558         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
12559         active.
12560         * tests/test-fopen.c (includes): Test safer versions when they are
12561         in use.
12562         * tests/test-open.c (includes): Likewise.
12563
12564         popen: fix cygwin 1.5 bug when stdin closed
12565         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
12566         * modules/popen: New file.
12567         * modules/popen-tests: Likewise.
12568         * tests/test-popen.c: Likewise.
12569         * m4/popen.m4: Likewise.
12570         * lib/popen.c: Likewise.
12571         * lib/stdio.in.h (popen): New declaration.
12572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
12573         * modules/stdio (Makefile.am): Likewise.
12574         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
12575
12576 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
12577
12578         maint.mk: give full control over update-copyright exclusions
12579         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
12580         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
12581         (update-copyright): Don't force inclusion of top-level
12582         ChangeLog.  Don't force exclusion of all COPYING files, but make
12583         them the default exclusion instead.
12584
12585 2009-08-16  Bruno Haible  <bruno@clisp.org>
12586
12587         Fix test failures on Solaris 10.
12588         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
12589         tests when Solaris iconv() is used.
12590         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12591         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12592         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12593         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12594         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12595
12596 2009-08-16  Bruno Haible  <bruno@clisp.org>
12597
12598         Fix test failures on Solaris 10.
12599         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
12600         'tr' program and pass it as first argument.
12601         * tests/test-pipe-filter-gi1.sh: Likewise.
12602         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
12603         program as first argument.
12604         * tests/test-pipe-filter-gi1.c (main): Likewise.
12605
12606 2009-08-16  Eric Blake  <ebb9@byu.net>
12607
12608         fpurge: fix previous commits
12609         * modules/fpurge (Makefile.am): Make replacement conditional,
12610         partially reverting 2007-04-29 change; missed in previous
12611         attempt.
12612         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
12613         is missing.
12614
12615 2009-08-16  Bruno Haible  <bruno@clisp.org>
12616
12617         Clarify fpurge's effect on the file position.
12618         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
12619         * tests/test-fpurge.c (main): Make a second pass for checking the file
12620         position.
12621
12622 2009-08-16  Bruno Haible  <bruno@clisp.org>
12623
12624         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
12625         declaration of fpurge is missing.
12626         * tests/test-fpurge.c (main): Check that the file has not more contents
12627         than expected. Close the file before removing it.
12628
12629 2009-08-15  Eric Blake  <ebb9@byu.net>
12630
12631         fpurge: don't wrap working cygwin implementation
12632         * lib/fpurge.c (fpurge): Fix comment typo.
12633         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
12634         1.7 to avoid replacement.
12635         * tests/test-fpurge.c (main): Enhance test.
12636
12637 2009-08-15  Eric Blake  <ebb9@byu.net>
12638         and Jim Meyering  <meyering@redhat.com>
12639
12640         test-update-copyright: skip if perl is insufficient
12641         * tests/test-update-copyright.sh: Failure to run maintainer tool
12642         should not cause testsuite failure on cygwin 1.5.
12643
12644 2009-08-14  Eric Blake  <ebb9@byu.net>
12645
12646         doc: mention more functions added in cygwin 1.7.0
12647         * doc/posix-headers/limits.texi (limits.h): Update for recent
12648         cygwin additions.
12649         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
12650         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12651         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
12652         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
12653         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
12654
12655 2009-08-14  Eric Blake  <ebb9@byu.net>
12656
12657         maint.mk: simplify update-copyright rule
12658         * top/maint.mk (update-copyright-local): Delete, and document how
12659         to do it in cfg.mk instead.
12660         (update-copyright-exclude-regexp): Delete, and document how to do
12661         it in .x-update-copyright instead.
12662         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
12663         exclude ChangeLog.
12664
12665 2009-08-14  Bruno Haible  <bruno@clisp.org>
12666
12667         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
12668
12669 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12670
12671         maint.mk: support update-copyright-env
12672         * top/maint.mk (update-copyright-env): Define place-holder.
12673         (update-copyright): Expand $(update-copyright-env) before
12674         invoking update-copyright.
12675
12676 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12677
12678         update-copyright: implement forced reformatting
12679         * build-aux/update-copyright: Implement and document
12680         UPDATE_COPYRIGHT_FORCE.
12681         * tests/test-update-copyright.sh: Test it.
12682
12683 2009-08-14  Eric Blake  <ebb9@byu.net>
12684         and Bruno Haible  <bruno@clisp.org>
12685
12686         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
12687         * tests/test-locale.c: Revert previous patch related to NULL.
12688         * tests/test-stdio.c: Likewise.
12689         * tests/test-stdlib.c: Likewise.
12690         * tests/test-string.c: Likewise.
12691         * tests/test-unistd.c: Likewise.
12692         * modules/time-tests (Depends-on): Add verify.
12693         * modules/wchar-tests (Depends-on): Likewise.
12694         * tests/test-time.c: Test for NULL compliance.
12695         * tests/test-wchar.c: Likewise.
12696         * modules/locale (Depends-on): Add stddef.
12697         * modules/stdio (Depends-on): Likewise.
12698         * modules/stdlib (Depends-on): Likewise.
12699         * modules/string (Depends-on): Likewise.
12700         * modules/time (Depends-on): Likewise.
12701         * modules/unistd (Depends-on): Likewise.
12702         * modules/wchar (Depends-on): Likewise.
12703         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
12704         * lib/stdlib.in.h (includes): Likewise.
12705         * lib/string.in.h (includes): Likewise.
12706         * lib/time.in.h (includes): Likewise.
12707         * lib/unistd.in.h (includes): Likewise.
12708         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
12709         replaced.
12710         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
12711         * m4/stddef_h.m4: New file.
12712         * modules/stddef: Likewise.
12713         * lib/stddef.in.h: Likewise.
12714         * modules/stddef-tests: Likewise.
12715         * tests/test-stddef.c: Likewise.
12716         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
12717         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
12718         * doc/posix-headers/locale.texi (locale.h): Likewise.
12719         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
12720         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
12721         * doc/posix-headers/string.texi (string.h): Likewise.
12722         * doc/posix-headers/time.texi (time.h): Likewise.
12723         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
12724         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
12725
12726 2009-08-14  Eric Blake  <ebb9@byu.net>
12727
12728         doc: improve git diff of texinfo files
12729         * .gitattributes: Add rule for *.texi files, with hint on how to
12730         use it.
12731         Copied from m4, and based on a report by Bruno Haible.
12732
12733 2009-08-14  Bruno Haible  <bruno@clisp.org>
12734
12735         Disable multithread support by default on Cygwin 1.5.x for real.
12736         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
12737
12738 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
12739
12740         update-copyright: much ado about intervals
12741         * build-aux/update-copyright: Implement and document
12742         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
12743         of copyright year intervals.
12744         Also, document UPDATE_COPYRIGHT_YEAR.
12745         * tests/test-update-copyright.sh: Test it.
12746
12747         update-copyright: convert 2-digit to 4-digit years
12748         * build-aux/update-copyright: Implement and document.
12749         * tests/test-update-copyright.sh: Update.
12750
12751 2009-08-14  Jim Meyering  <meyering@redhat.com>
12752
12753         test-exclude: avoid coreutils "make check" failure
12754         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
12755         just as in test-argmatch.c.
12756
12757 2009-08-13  Eric Blake  <ebb9@byu.net>
12758
12759         test-dup2: fix bad assumption
12760         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
12761         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
12762
12763         test-version-etc: fix CRLF portability issue
12764         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
12765         recognize \r.
12766         * tests/test-argp-version-etc-1.sh: Likewise.
12767
12768         getopt: update client modules
12769         * modules/argp (Depends-on): Use getopt-gnu.
12770         * modules/git-merge-changelog (Depends-on): Likewise.
12771         * modules/long-options (Depends-on): Likewise.
12772         * modules/xstrtol (Depends-on): Likewise.
12773
12774 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12775
12776         * tests/test-version-etc.sh: Don't fail on different
12777         project/version.  Don't fail on CRLF differences.  Rewrite to use
12778         multiple -e instead of multiple sed forks, suggested by Eric Blake
12779         <ebb9@byu.net>.
12780         * tests/test-argp-version-etc-1.sh: Likewise.
12781
12782 2009-08-13  Simon Josefsson  <simon@josefsson.org>
12783
12784         * tests/test-version-etc.sh: Don't fail on different
12785         project/version.
12786
12787 2009-08-12  Bruno Haible  <bruno@clisp.org>
12788
12789         Tests for modules 'getopt-posix', 'getopt-gnu'.
12790         * modules/getopt-posix-tests: New file.
12791         * tests/test-getopt.c: New file.
12792         * tests/test-getopt.h: New file.
12793         * tests/test-getopt_long.h: New file.
12794
12795         New modules 'getopt-posix', 'getopt-gnu'.
12796         * modules/getopt-gnu: New file, renamed from modules/getopt.
12797         * modules/getopt-posix: New file.
12798         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
12799         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
12800         (gl_GETOPT): Remove macro.
12801         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
12802         Disable the test against BSD systems that declare optreset. Test
12803         against mingw bug. Test against lack of support of optional arguments
12804         on many platforms.
12805         * doc/glibc-headers/getopt.texi: Update module name and list of
12806         relevant platforms.
12807         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
12808         'getopt-gnu' and more portability problems.
12809         * NEWS: Mention the changes.
12810
12811 2009-08-12  Bruno Haible  <bruno@clisp.org>
12812
12813         Ensure that optarg etc. get declared by <unistd.h>.
12814         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
12815         AC_USE_SYSTEM_EXTENSIONS.
12816         * modules/getopt (Depends-on): Add 'extensions'.
12817
12818 2009-08-12  Bruno Haible  <bruno@clisp.org>
12819
12820         Avoid test link errors.
12821         * modules/pipe-filter-ii-tests (Makefile.am): Define
12822         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
12823         * modules/pipe-filter-gi-tests (Makefile.am): Define
12824         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
12825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12826
12827 2009-08-12  Bruno Haible  <bruno@clisp.org>
12828
12829         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
12830         gl_GETOPT_SUBSTITUTE before.
12831         (gl_GETOPT): Use it.
12832         * m4/argp.m4 (gl_ARGP): Update.
12833         Reported by Sergey Poznyakoff.
12834
12835         * m4/getopt.m4: Reorder macros.
12836         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
12837         (gl_GETOPT_SUBSTITUTE): Remove macro.
12838
12839 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12840
12841         Minor improvement in gitlog-to-changelog
12842
12843         * build-aux/gitlog-to-changelog: New option `--format' makes
12844         output format string configurable.
12845
12846 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
12847
12848         Optimize exclude: use hash tables for non-wildcard patterns.
12849
12850         * lib/exclude.c: Include hash.h and mbuiter.h
12851         (struct exclude_pattern, exclude_segment): New data types.
12852         (struct exclude): Rewrite.
12853         (fnmatch_pattern_has_wildcards): New function.
12854         (new_exclude_segment, free_exclude_segment): New functions.
12855         (excluded_file_pattern_p, excluded_file_name_p): New functions.
12856         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
12857         * lib/exclude.h (is_fnmatch_pattern): New prototype.
12858         * modules/exclude: Depend on hash and mbuiter.
12859
12860         * modules/exclude-tests: New file.
12861         * tests/test-exclude.c: New file.
12862         * tests/test-exclude1.sh: New file.
12863         * tests/test-exclude2.sh: New file.
12864         * tests/test-exclude3.sh: New file.
12865         * tests/test-exclude4.sh: New file.
12866         * tests/test-exclude5.sh: New file.
12867         * tests/test-exclude6.sh: New file.
12868         * tests/test-exclude7.sh: New file.
12869
12870 2009-08-12  Bruno Haible  <bruno@clisp.org>
12871
12872         Ensure that getopt() gets declared by <unistd.h>.
12873         * lib/unistd.in.h: Conditionally include getopt.h.
12874         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
12875         Set GNULIB_UNISTD_H_GETOPT.
12876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12877         GNULIB_UNISTD_H_GETOPT.
12878         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
12879
12880 2009-08-12  Bruno Haible  <bruno@clisp.org>
12881
12882         Clarify logic.
12883         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
12884         gl_replace_getopt instead of GETOPT_H.
12885
12886 2009-08-12  Bruno Haible  <bruno@clisp.org>
12887
12888         * m4/getopt.m4: Add comments.
12889
12890 2009-08-12  Bruno Haible  <bruno@clisp.org>
12891
12892         Disable multithread support by default on Cygwin 1.5.x.
12893         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
12894         set gl_use_threads=no if not specified otherwise.
12895
12896 2009-08-11  Bruno Haible  <bruno@clisp.org>
12897
12898         Avoid compilation error on NetBSD 5.0.
12899         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
12900         * tests/test-stdio.c: Likewise.
12901         * tests/test-stdlib.c: Likewise.
12902         * tests/test-string.c: Likewise.
12903         * tests/test-unistd.c: Likewise.
12904         Reported by Greg Troxel <gdt@ir.bbn.com>
12905         at <https://savannah.gnu.org/support/?106973>.
12906
12907 2009-08-11  Bruno Haible  <bruno@clisp.org>
12908
12909         * modules/dup2-tests (Depends-on): Remove close.
12910
12911         Undo 2009-07-19 commit.
12912         * modules/acl-tests (Depends-on): Remove close.
12913         * modules/binary-io-tests (Depends-on): Likewise.
12914         * modules/closein-tests (Depends-on): Likewise.
12915         * modules/flock-tests (Depends-on): Likewise.
12916         * modules/fsync-tests (Depends-on): Likewise.
12917         * modules/lseek-tests (Depends-on): Likewise.
12918         * modules/pipe-tests (Depends-on): Likewise.
12919         * modules/posix_spawn-tests (Depends-on): Likewise.
12920         * modules/posix_spawnp-tests (Depends-on): Likewise.
12921         * modules/stat-time-tests (Depends-on): Likewise.
12922         * modules/yesno-tests (Depends-on): Likewise.
12923
12924 2009-08-10  Bruno Haible  <bruno@clisp.org>
12925
12926         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
12927
12928 2009-08-10  Bruno Haible  <bruno@clisp.org>
12929
12930         Fix a gcc warning.
12931         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
12932
12933 2009-08-10  Bruno Haible  <bruno@clisp.org>
12934
12935         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
12936         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
12937         not only the first time.
12938         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
12939         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
12940         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
12941         is 1, not only the the first time.
12942
12943 2009-08-10  Bruno Haible  <bruno@clisp.org>
12944
12945         Make it possible to use module 'gethostname' without module 'close'.
12946         * lib/unistd.in.h (close): Evoke a link error only if
12947         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12949         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12950         * modules/unistd (Makefile.am): Substitute
12951         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12952         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
12953         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
12954         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
12955         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12956         * modules/sys_ioctl (Makefile.am): Substitute
12957         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12958         * modules/socket (configure.ac): On native Windows, set
12959         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
12960         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
12961         Reported by Sam Steingold <sds@gnu.org>.
12962
12963 2009-08-10  Bruno Haible  <bruno@clisp.org>
12964
12965         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
12966         * modules/ioctl (configure.ac): Likewise.
12967
12968 2009-08-10  Bruno Haible  <bruno@clisp.org>
12969
12970         Avoid collision between gnulib wrapper and libintl wrapper.
12971         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
12972         already defined in intl/printf.c.
12973         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
12974         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
12975
12976 2009-08-09  Bruno Haible  <bruno@clisp.org>
12977
12978         Make <sys/select.h> really self-contained, also on Solaris 10.
12979         * lib/sys_select.in.h: Include <string.h>.
12980         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
12981         Solaris 10 problem.
12982         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
12983         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
12984         Reported by Jim Meyering.
12985
12986 2009-08-09  Bruno Haible  <bruno@clisp.org>
12987
12988         Avoid warnings from 'aclocal' that are due to a use of macro name
12989         AM_XGETTEXT_OPTION that is not defined in automake.
12990         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
12991         automake.
12992         * modules/error (configure.ac): Likewise.
12993         * modules/propername (configure.ac): Likewise.
12994         * modules/vasprintf (configure.ac): Likewise.
12995         * modules/verror (configure.ac): Likewise.
12996         * modules/xprintf (configure.ac): Likewise.
12997         * modules/xvasprintf (configure.ac): Likewise.
12998
12999 2009-08-08  Bruno Haible  <bruno@clisp.org>
13000
13001         Avoid compilation error in C++ mode.
13002         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
13003         Reported by Sam Steingold <sds@gnu.org>.
13004
13005 2009-08-08  Bruno Haible  <bruno@clisp.org>
13006
13007         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
13008         for the various Unix platforms.
13009         * doc/posix-headers/limits.texi: Update platforms list regarding
13010         HOST_NAME_MAX.
13011         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13012
13013 2009-08-07  Jim Meyering  <meyering@redhat.com>
13014
13015         selinux-at: fix typo in a comment
13016         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
13017         Spotted by Paolo Bonzini.
13018
13019         selinux-at: remove redundant m4 code, add documentation
13020         * modules/selinux-at (configure.ac): Remove redundant code.
13021         LIB_SELINUX is already set via the dependent module, selinux-h.
13022         (Include): Add quotes around selinux-at.h.
13023         * lib/selinux-at.h: Add documentation.
13024         Reported by Bruno Haible in
13025         http://marc.info/?l=gnulib-bug&m=124958988300749
13026
13027 2009-08-07  Bruno Haible  <bruno@clisp.org>
13028
13029         Avoid link error on MacOS X 10.3 and 10.4.
13030         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
13031         on non-ELF systems.
13032         * lib/argp-pv.c (argp_program_version): Likewise.
13033         Reported by Simon Josefsson.
13034
13035 2009-08-07  Simon Josefsson  <simon@josefsson.org>
13036
13037         * tests/test-version-etc.sh: Use $EXEEXT.
13038
13039 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
13040
13041         update-copyright: update documentation to point to maint.mk
13042         * build-aux/update-copyright: Here.
13043
13044 2009-08-06  Jim Meyering  <meyering@redhat.com>
13045
13046         maint.mk: support update-copyright-local
13047         * top/maint.mk (update-copyright-local): Define place-holder.
13048         (update-copyright): Depend on $(update-copyright-local).
13049
13050 2009-08-06  Jim Meyering  <meyering@redhat.com>
13051
13052         selinux-at: new module
13053         Initially written for coreutils, this module will soon be
13054         used by findutils, too.
13055         * MODULES.html.sh [Misc]: Add selinux-at.
13056         * lib/selinux-at.h: New file, from coreutils.
13057         * lib/selinux-at.c: Likewise.
13058         * modules/selinux-at: Likewise.
13059         (License): Change from LGPL to GPL, since it depends
13060         on the GPL'd openat module.
13061
13062         doc: update README
13063         * README: Remove references to cogito.
13064         Remove cvs-repo-updating instructions from 2007.
13065         Don't imply that CVS is better if you have limited disk space.
13066
13067 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13068
13069         update-copyright: support C-style comments
13070         * build-aux/update-copyright: Implement and document.
13071         * tests/test-update-copyright.sh: Test.
13072
13073 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13074
13075         update-copyright: support omitted "(C)"
13076         * build-aux/update-copyright: Implement and document.  Also,
13077         allow variable whitespace before "(C)".
13078         * tests/test-update-copyright.sh: Test.
13079
13080 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13081
13082         update-copyright: don't trip on non-FSF copyright statements
13083         * build-aux/update-copyright: Fix so that the first correctly
13084         formatted FSF copyright statement is recognized no matter what
13085         appears before it.  Update documentation.
13086         * tests/test-update-copyright.sh: Test that.
13087
13088 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13089
13090         update-copyright: clean up code a little
13091         * build-aux/update-copyright: Append "_re" to the name of any
13092         variable holding a regular expression.
13093         Replace "old" and "new" with "stmt" in variable names.
13094         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
13095         handled correctly.
13096         Format code more consistently.
13097
13098 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
13099
13100         update-copyright-tests: improve portability
13101         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
13102         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
13103
13104 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13105
13106         update-copyright: support @copyright{} and &copy;
13107         * build-aux/update-copyright: Implement and document.
13108         * tests/test-update-copyright.sh: Test.
13109
13110 2009-08-04  Jim Meyering  <meyering@redhat.com>
13111
13112         update-copyright-tests: correctly test EOL=\r\n handling
13113         * tests/test-update-copyright.sh: Put \r at the end of some lines
13114         for the dos-eol tests.  Based on a patch by Joel E. Denny.
13115
13116         maint.mk: make update-copyright exclusion list more configurable
13117         * top/maint.mk (update-copyright): Default to excluding COPYING,
13118         but allow an override, in case someone does want to update that file.
13119
13120         maint.mk: don't update copyright date in COPYING
13121         * top/maint.mk (update-copyright): Exclude COPYING.
13122
13123         maint.mk: add a copyright-updating rule
13124         * top/maint.mk (update-copyright): New rule.
13125         Derived from coreutils/Makefile.am.
13126
13127         update-copyright: rename some variables
13128         * build-aux/update-copyright: Rename a few variables for clarity.
13129         Tweak syntax.  List Joel E. Denny as coauthor.
13130
13131 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
13132
13133         update-copyright: fix bug for 2-digit last year and add tests
13134         * build-aux/update-copyright: Fix bug.
13135         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
13136         specified.
13137         * modules/update-copyright-tests: New
13138         * tests/test-update-copyright.sh: New.
13139
13140 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13141
13142         update-copyright: handle leading tabs in line prefix
13143         * build-aux/update-copyright: Count leading tabs as 8 spaces
13144         when computing margin.  This helps with the formatting of
13145         ChangeLogs, for example.
13146         Fix documentation a little.
13147
13148 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13149
13150         update-copyright: support EOL=\r\n
13151         * build-aux/update-copyright: Implement that.
13152
13153 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
13154
13155         update-copyright: automatically format copyright statements
13156         * build-aux/update-copyright: Implement that.
13157         Also, be a little more predictable and safer by always failing
13158         when the full copyright format is not perfectly recognized as an
13159         unbroken whole.  Discussed at
13160         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
13161         Rewrite documentation.
13162
13163 2009-08-03  Bruno Haible  <bruno@clisp.org>
13164
13165         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
13166
13167 2009-08-02  Bruno Haible  <bruno@clisp.org>
13168
13169         Tests for module 'uname'.
13170         * modules/uname-tests: New file.
13171         * tests/test-uname.c: New file.
13172
13173         New module 'uname'.
13174         * lib/uname.c: New file.
13175         * m4/uname.m4: New file.
13176         * modules/uname: New file.
13177         * doc/posix-functions/uname.texi: Mention the new module.
13178
13179 2009-08-02  Bruno Haible  <bruno@clisp.org>
13180
13181         Tests for module 'sys_utsname'.
13182         * modules/sys_utsname-tests: New file.
13183         * tests/test-sys_utsname.c: New file.
13184
13185         New module 'sys_utsname'.
13186         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
13187         * m4/sys_utsname_h.m4: New file.
13188         * modules/sys_utsname: New file.
13189         * doc/posix-headers/sys_utsname.texi: Mention the new module.
13190
13191 2009-08-02  Bruno Haible  <bruno@clisp.org>
13192
13193         Implicitly initialize the sockets library.
13194         * lib/gethostname.c: Include sockets.h.
13195         (rpl_gethostname): Invoke gl_sockets_startup.
13196         * lib/socket.c: Include sockets.h.
13197         (rpl_socket): Invoke gl_sockets_startup.
13198         * modules/gethostname (Depends-on): Add sockets.
13199         * modules/socket (Depends-on): Likewise.
13200         * tests/test-poll.c: Don't include sockets.h.
13201         (main): Don't invoke gl_sockets_startup.
13202         * tests/test-select.c: Don't include sockets.h.
13203         (main): Don't invoke gl_sockets_startup.
13204
13205 2009-08-02  Bruno Haible  <bruno@clisp.org>
13206
13207         Allow multiple calls to gl_sockets_startup.
13208         * lib/sockets.c (initialized_sockets_version): New variable.
13209         (gl_sockets_startup): Do nothing if already called for this or a higher
13210         version.
13211         (gl_sockets_cleanup): Reset initialized_sockets_version.
13212
13213 2009-08-03  Simon Josefsson  <simon@josefsson.org>
13214
13215         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
13216         different project/version.
13217
13218 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
13219             Bruno Haible  <bruno@clisp.org>
13220
13221         Tests for module 'pipe-filter-gi'.
13222         * modules/pipe-filter-gi-tests: New file.
13223         * tests/test-pipe-filter-gi1.sh: New file.
13224         * tests/test-pipe-filter-gi1.c: New file.
13225         * tests/test-pipe-filter-gi2.sh: New file.
13226         * tests/test-pipe-filter-gi2-main.c: New file.
13227         * tests/test-pipe-filter-gi2-child.c: New file.
13228
13229         New module 'pipe-filter-gi'.
13230         * lib/pipe-filter-gi.c: New file.
13231         * modules/pipe-filter-gi: New file.
13232
13233 2009-08-02  Bruno Haible  <bruno@clisp.org>
13234             Paolo Bonzini  <bonzini@gnu.org>
13235
13236         Tests for module 'pipe-filter-ii'.
13237         * modules/pipe-filter-ii-tests: New file.
13238         * tests/test-pipe-filter-ii1.sh: New file.
13239         * tests/test-pipe-filter-ii1.c: New file.
13240         * tests/test-pipe-filter-ii2.sh: New file.
13241         * tests/test-pipe-filter-ii2-main.c: New file.
13242         * tests/test-pipe-filter-ii2-child.c: New file.
13243
13244         New module 'pipe-filter-ii'.
13245         * lib/pipe-filter.h: New file.
13246         * lib/pipe-filter-ii.c: New file.
13247         * lib/pipe-filter-aux.h: New file.
13248         * modules/pipe-filter-ii: New file.
13249
13250 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13251
13252         * lib/gc-libgcrypt.c: Change copyright to FSF.
13253         * lib/gc-gnulib.c: Likewise.
13254
13255 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
13256
13257         * lib/gethostname.c: Include limits.h.
13258
13259 2009-08-02  Simon Josefsson  <simon@josefsson.org>
13260             Bruno Haible  <bruno@clisp.org>
13261
13262         Ensure HOST_NAME_MAX as part of the gethostname module.
13263         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
13264         define also HOST_NAME_MAX.
13265         * tests/test-gethostname.c: Include <limits.h>.
13266         (main): Check also HOST_NAME_MAX.
13267         * doc/posix-headers/limits.texi: Document the mingw problem.
13268
13269 2009-08-02  Bruno Haible  <bruno@clisp.org>
13270
13271         * lib/gethostname.c (gethostname): Fix handling of large len argument.
13272         Add comments.
13273
13274 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13275
13276         * lib/gethostname.c: Add Windows wrapper.
13277         * m4/gethostname.m4: Look for gethostname in -lws2_32.
13278         * modules/gethostname: Depend on sys_socket & errno, for also
13279         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
13280         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
13281
13282 2009-07-31  Jim Meyering  <meyering@redhat.com>
13283
13284         getloadavg: fix symbol name in comment
13285         * lib/getloadavg.c: Correct a typo I introduced when adding
13286         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
13287         Matt Kraai spotted the problem.
13288
13289 2009-07-29  Matt Kraai  <mkraai@beckman.com>
13290
13291         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
13292         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
13293         code also if ! defined N_NAME_POINTER.
13294         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
13295         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
13296         but the n_name member is a 12-byte array.
13297
13298 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
13299
13300         update-copyright: generalize comment handling
13301         * build-aux/update-copyright: Handle copyright statements
13302         within more comment styles.
13303         Document usage.
13304         Report any file with an external copyright holder or parse failure.
13305
13306 2009-07-29  Jim Meyering  <meyering@redhat.com>
13307
13308         mktime: correct setting of REPLACE_MKTIME
13309         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
13310
13311         update-copyright: new module
13312         * modules/update-copyright: New file.
13313         * build-aux/update-copyright: New file.
13314         * MODULES.html.sh (maint+release support): Add update-copyright.
13315
13316 2009-07-27  Bruno Haible  <bruno@clisp.org>
13317
13318         Fix compilation error when <ctime> is used and mktime is replaced.
13319         * lib/time.in.h (mktime): New declaration.
13320         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
13321         REPLACE_MKTIME instead of defining mktime in config.h.
13322         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
13323         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
13324         Reported by Ross McFarland <rwmcfa1@neces.com>.
13325
13326 2009-07-27  Bruno Haible  <bruno@clisp.org>
13327
13328         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
13329         Reported by Matt Kraai <mkraai@beckman.com>.
13330
13331 2009-07-25  Jim Meyering  <meyering@redhat.com>
13332
13333         maint.mk: avoid warnings about missing files
13334         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
13335         diagnostic when .prev-version does not exist.
13336         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
13337         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
13338         nonexistent cfg.mk.
13339         Suggestions from Simon Josefsson.
13340
13341 2009-07-25  Bruno Haible  <bruno@clisp.org>
13342
13343         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
13344         defined as macros. Needed on QNX 6.4.1.
13345         Reported by Matt Kraai <mkraai@beckman.com>.
13346
13347 2009-07-23  Jim Meyering  <meyering@redhat.com>
13348
13349         maint.mk: invoke "make dist" with a working value of XZ_OPT
13350         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
13351
13352 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
13353
13354         Make fseeko.c compile on QNX.
13355         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
13356
13357 2009-07-22  Peter Simons  <simons@cryp.to>
13358
13359         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
13360         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
13361         * lib/md4.h: Likewise.
13362         * lib/md5.h: Likewise.
13363         * lib/sha1.h: Likewise.
13364         * lib/sha256.h: Likewise.
13365         * lib/sha512.h: Likewise.
13366
13367         tests-sha1: don't assign literal string to 'char *' variable
13368         * tests/test-sha1.c (main): Declare locals with "const" to match
13369         attributes of the right hand side.
13370
13371 2009-07-21  Eric Blake  <ebb9@byu.net>
13372
13373         dup2: fix more mingw problems
13374         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
13375         fd to itself.
13376         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13377         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
13378         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
13379         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
13380         care of mingw bugs.
13381
13382 2009-07-21  Jim Meyering  <meyering@redhat.com>
13383
13384         vc-list-files: avoid failure when /bin/sh is dash
13385         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
13386         On some Debian based systems, /bin/sh is a symlink to dash, and running
13387         this command would omit the "/" following each 'tests' prefix:
13388           dash -x build-aux/vc-list-files -C . tests
13389         That is because bash and dash work differently:
13390           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
13391           bash ok
13392           dash odd
13393
13394 2009-07-21  Eric Blake  <ebb9@byu.net>
13395
13396         dup2-tests: test previous patch
13397         * modules/dup2-tests: New file.
13398         * tests/test-dup2.c: Likewise.
13399         * tests/test-open.c (main): Avoid unspecified behavior.
13400         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
13401         test.
13402
13403         dup2: work around mingw and cygwin 1.5 bug
13404         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
13405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13406         * modules/unistd (Makefile.am): Substitute it.
13407         * lib/unistd.in.h (dup2): Declare the replacement.
13408         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
13409         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
13410         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
13411         * modules/execute (Depends-on): Add dup2.
13412         * modules/fseterr (Depends-on): Likewise.
13413         * modules/pipe (Depends-on): Likewise.
13414         * modules/posix_spawn-internal (Depends-on): Likewise.
13415
13416 2009-07-21  Bruno Haible  <bruno@clisp.org>
13417
13418         * modules/.gitattributes: New file.
13419
13420 2009-07-20  Bruno Haible  <bruno@clisp.org>
13421
13422         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
13423         (main): Use it.
13424
13425 2009-07-20  Eric Blake  <ebb9@byu.net>
13426
13427         test-pipe: make a bit more robust.
13428         * tests/test-pipe.c (myerr): Allow error messages regardless of
13429         what we do to stderr.
13430         (test_pipe): Rearrange to avoid deadlock.
13431         (child_main): Try a larger read, to ensure we avoided deadlock.
13432         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
13433         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
13434         if misused.
13435
13436 2009-07-19  Jim Meyering  <meyering@redhat.com>
13437
13438         fts: avoid false-positive cycle-detection
13439         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
13440         for each new command line argument.
13441
13442 2009-07-19  Bruno Haible  <bruno@clisp.org>
13443
13444         Fix build error on mingw with the modules sys_select and unistd.
13445         * modules/acl-tests (Depends-on): Add close.
13446         * modules/binary-io-tests (Depends-on): Likewise.
13447         * modules/closein-tests (Depends-on): Likewise.
13448         * modules/flock-tests (Depends-on): Likewise.
13449         * modules/fsync-tests (Depends-on): Likewise.
13450         * modules/lseek-tests (Depends-on): Likewise.
13451         * modules/pipe-tests (Depends-on): Likewise.
13452         * modules/posix_spawn-tests (Depends-on): Likewise.
13453         * modules/posix_spawnp-tests (Depends-on): Likewise.
13454         * modules/stat-time-tests (Depends-on): Likewise.
13455         * modules/yesno-tests (Depends-on): Likewise.
13456
13457 2009-07-19  Bruno Haible  <bruno@clisp.org>
13458
13459         Unify conditionals.
13460         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
13461         macros, not at the compiler macros.
13462         * lib/pipe.c: Likewise.
13463         * lib/execute.c: Likewise.
13464         * lib/spawni.c: Likewise.
13465
13466 2009-07-19  Bruno Haible  <bruno@clisp.org>
13467
13468         Fix handling of closed stdin/stdout/stderr on mingw.
13469         * lib/w32spawn.h: Include unistd.h.
13470         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
13471         file descriptor with O_NOINHERIT flag.
13472         (fd_safer_noinherit): New function, based on fd-safer.c.
13473         (dup_safer_noinherit): New function, based on dup-safer.c.
13474         (undup_safer_noinherit): New function.
13475         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
13476         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
13477         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
13478         instead of fd_safer.
13479         * tests/test-pipe.c: Include <windows.h>.
13480         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
13481
13482         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
13483         from main.
13484         (test_pipe): Pass an extra argument for disambiguation.
13485         (main): Invoke parent_main or child_main.
13486
13487         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
13488         consistently.
13489
13490 2009-07-18  Eric Blake  <ebb9@byu.net>
13491
13492         test-pipe: fix mingw build
13493         * tests/test-pipe.c (main): Avoid fcntl on mingw.
13494
13495 2009-07-18  Bruno Haible  <bruno@clisp.org>
13496
13497         * modules/pipe-tests (Makefile.am): Fix typo.
13498
13499 2009-07-18  Eric Blake  <ebb9@byu.net>
13500
13501         error: fix mingw build
13502         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
13503         Reported by Bruno Haible.
13504
13505         error: avoid undefined use of stdout
13506         * lib/error.c (error, error_at_line): Check that fd 1 is open
13507         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
13508         is handling faults and the close_stdout module wants to report the
13509         detection of closed stdout as an error.
13510
13511 2009-07-17  Eric Blake  <ebb9@byu.net>
13512
13513         pipe: be robust in face of closed fds
13514         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
13515         should cause child to misbehave.
13516         * modules/pipe-tests: New module.
13517         * tests/test-pipe.c: New file.
13518         * tests/test-pipe.sh: New file.
13519         Reported by Akim Demaille.
13520
13521 2009-07-14  Bruno Haible  <bruno@clisp.org>
13522
13523         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
13524         Reported by anonymous kc.
13525
13526 2009-07-07  Jim Meyering  <meyering@redhat.com>
13527
13528         maint.mk: don't look for translatable strings in *.m4 or *.mk
13529         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
13530         when searching for translatable strings.
13531
13532 2009-07-05  Jim Meyering  <meyering@redhat.com>
13533
13534         remove superfluous parentheses in STREQ definition
13535         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
13536         * lib/getugroups.c (STREQ): Likewise.
13537         * lib/fnmatch.c (STREQ): Likewise.
13538         Spotted by Bruno Haible.
13539
13540 2009-07-04  Jim Meyering  <meyering@redhat.com>
13541
13542         argv-iter: new module
13543         * MODULES.html.sh: Add argv-iter.
13544         * lib/argv-iter.c, lib/argv-iter.h: New files.
13545         * modules/argv-iter: New file.
13546         * modules/argv-iter-tests: New file.
13547         * tests/test-argv-iter.c: Test it.
13548
13549 2009-07-04  Bruno Haible  <bruno@clisp.org>
13550
13551         Fix assertion.
13552         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
13553         contains more exact copies of a given entry than file2, leave the extra
13554         copies unpaired rather than aborting.
13555         Reported by Eric Blake.
13556
13557 2009-07-02  Bruno Haible  <bruno@clisp.org>
13558
13559         Speedup git-merge-changelog for git cherry-pick.
13560         * lib/git-merge-changelog.c (struct entries_mapping): New type.
13561         (entries_mapping_get): New function, extracted from compute_mapping.
13562         (entries_mapping_reverse_get): New function.
13563         (compute_mapping): Add a 'full' argument. Return the result in a
13564         'struct entries_mapping'.
13565         (main): Update. Access the mappings through entries_mapping_get.
13566         Reported by Eric Blake.
13567
13568 2009-07-02  Bruno Haible  <bruno@clisp.org>
13569
13570         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
13571         best_i.
13572
13573 2009-07-02  Bruno Haible  <bruno@clisp.org>
13574
13575         Speed up approximate search for matching ChangeLog entries.
13576         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
13577         argument. Call fstrcmp_bounded instead of fstrcmp.
13578         (compute_mapping, try_split_merged_entry, main): Update callers.
13579
13580 2009-07-02  Bruno Haible  <bruno@clisp.org>
13581
13582         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
13583
13584 2009-06-30  Bruno Haible  <bruno@clisp.org>
13585
13586         Reduce the number of uc_is_cased calls.
13587         * lib/unicase.h (casing_suffix_context_t): Add
13588         'first_char_except_ignorable' field.
13589         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
13590         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
13591         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
13592         Update initializer.
13593         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
13594         case-ignorable characters.
13595         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
13596         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
13597         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
13598         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
13599         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
13600
13601 2009-06-30  Bruno Haible  <bruno@clisp.org>
13602
13603         Tests for module 'unicase/ignorable'.
13604         * modules/unicase/ignorable-tests: New file.
13605         * tests/unicase/test-ignorable.c: New file, generated by
13606         gen-uni-tables.
13607
13608         Tests for module 'unicase/cased'.
13609         * modules/unicase/cased-tests: New file.
13610         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
13611         * tests/unicase/test-predicate-part1.h: New file, derived from
13612         tests/unictype/test-predicate-part1.h.
13613         * tests/unicase/test-predicate-part2.h: New file, same as
13614         tests/unictype/test-predicate-part2.h.
13615
13616         Fix evaluation of "Before C" condition of FINAL_SIGMA.
13617         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
13618         (output_casing_properties): New function.
13619         (main): Call it.
13620         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
13621         * lib/unicase/cased.c: Include unictype/bitmap.h.
13622         (uc_is_cased): Define through a bitmap lookup.
13623         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
13624         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
13625         (uc_is_case_ignorable): Define through a bitmap lookup.
13626         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
13627         lib/unictype/bitmap.h.
13628         (Depends-on): Add inline. Clean up.
13629         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
13630         lib/unictype/bitmap.h.
13631         (Depends-on): Add inline. Clean up.
13632         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
13633         recognition.
13634         * tests/unicase/test-u16-tolower.c (main): Likewise.
13635         * tests/unicase/test-u32-tolower.c (main): Likewise.
13636
13637 2009-06-30  Bruno Haible  <bruno@clisp.org>
13638
13639         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
13640         * lib/unicase/u16-casemap.c: Likewise.
13641         * lib/unicase/u32-casemap.c: Likewise.
13642
13643 2009-06-29  Bruno Haible  <bruno@clisp.org>
13644
13645         Define u32_casefold as a wrapper around u32_ct_casefold.
13646         * lib/unicase/u32-casefold.c: Update.
13647         * modules/unicase/u32-casefold (Depends-on): Add
13648         unicase/u32-ct-casefold, unicase/empty-prefix-context,
13649         unicase/empty-suffix-context. Clean up.
13650
13651         Define u16_casefold as a wrapper around u16_ct_casefold.
13652         * lib/unicase/u16-casefold.c: Update.
13653         * modules/unicase/u16-casefold (Depends-on): Add
13654         unicase/u16-ct-casefold, unicase/empty-prefix-context,
13655         unicase/empty-suffix-context. Clean up.
13656
13657         Define u8_casefold as a wrapper around u8_ct_casefold.
13658         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
13659         * lib/unicase/u8-casefold.c: Update.
13660         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
13661         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13662
13663         Define u32_totitle as a wrapper around u32_ct_totitle.
13664         * lib/unicase/u32-totitle.c: Update.
13665         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
13666         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13667
13668         Define u16_totitle as a wrapper around u16_ct_totitle.
13669         * lib/unicase/u16-totitle.c: Update.
13670         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
13671         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13672
13673         Define u8_totitle as a wrapper around u8_ct_totitle.
13674         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
13675         functions.
13676         (FUNC): Delegate to U_CT_TOTITLE.
13677         * lib/unicase/u8-totitle.c: Update.
13678         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
13679         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
13680
13681         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
13682         invocation.
13683         * modules/unicase/u32-tolower (Depends-on): Add
13684         unicase/empty-prefix-context, unicase/empty-suffix-context.
13685
13686         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
13687         invocation.
13688         * modules/unicase/u16-tolower (Depends-on): Add
13689         unicase/empty-prefix-context, unicase/empty-suffix-context.
13690
13691         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
13692         * modules/unicase/u8-tolower (Depends-on): Add
13693         unicase/empty-prefix-context, unicase/empty-suffix-context.
13694
13695         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
13696         invocation.
13697         * modules/unicase/u32-toupper (Depends-on): Add
13698         unicase/empty-prefix-context, unicase/empty-suffix-context.
13699
13700         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
13701         invocation.
13702         * modules/unicase/u16-toupper (Depends-on): Add
13703         unicase/empty-prefix-context, unicase/empty-suffix-context.
13704
13705         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
13706         * modules/unicase/u8-toupper (Depends-on): Add
13707         unicase/empty-prefix-context, unicase/empty-suffix-context.
13708
13709         New module 'unicase/u32-ct-casefold'.
13710         * lib/unicase/u32-ct-casefold.c: New file.
13711         * modules/unicase/u32-ct-casefold: New file.
13712
13713         New module 'unicase/u16-ct-casefold'.
13714         * lib/unicase/u16-ct-casefold.c: New file.
13715         * modules/unicase/u16-ct-casefold: New file.
13716
13717         New module 'unicase/u8-ct-casefold'.
13718         * lib/unicase/u8-ct-casefold.c: New file.
13719         * lib/unicase/u-ct-casefold.h: New file, derived from
13720         lib/unicase/u-casefold.h.
13721         * modules/unicase/u8-ct-casefold: New file.
13722
13723         New module 'unicase/u32-ct-totitle'.
13724         * lib/unicase/u32-ct-totitle.c: New file.
13725         * modules/unicase/u32-ct-totitle: New file.
13726
13727         New module 'unicase/u16-ct-totitle'.
13728         * lib/unicase/u16-ct-totitle.c: New file.
13729         * modules/unicase/u16-ct-totitle: New file.
13730
13731         New module 'unicase/u8-ct-totitle'.
13732         * lib/unicase/u8-ct-totitle.c: New file.
13733         * lib/unicase/u-ct-totitle.h: New file, derived from
13734         lib/unicase/u-totitle.h.
13735         * modules/unicase/u8-ct-totitle: New file.
13736
13737         New module 'unicase/u32-ct-tolower'.
13738         * lib/unicase/u32-ct-tolower.c: New file.
13739         * modules/unicase/u32-ct-tolower: New file.
13740
13741         New module 'unicase/u16-ct-tolower'.
13742         * lib/unicase/u16-ct-tolower.c: New file.
13743         * modules/unicase/u16-ct-tolower: New file.
13744
13745         New module 'unicase/u8-ct-tolower'.
13746         * lib/unicase/u8-ct-tolower.c: New file.
13747         * modules/unicase/u8-ct-tolower: New file.
13748
13749         New module 'unicase/u32-ct-toupper'.
13750         * lib/unicase/u32-ct-toupper.c: New file.
13751         * modules/unicase/u32-ct-toupper: New file.
13752
13753         New module 'unicase/u16-ct-toupper'.
13754         * lib/unicase/u16-ct-toupper.c: New file.
13755         * modules/unicase/u16-ct-toupper: New file.
13756
13757         New module 'unicase/u8-ct-toupper'.
13758         * lib/unicase/u8-ct-toupper.c: New file.
13759         * modules/unicase/u8-ct-toupper: New file.
13760
13761         Add context arguments to u*_casemap functions.
13762         * lib/unicase/unicasemap.h: Include unicase.h.
13763         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
13764         suffix_context arguments.
13765         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
13766         functions.
13767         (FUNC): Add prefix_context and suffix_context arguments. Use
13768         uc_is_cased and uc_is_case_ignorable.
13769         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
13770         * lib/unicase/u16-casemap.c: Likewise.
13771         * lib/unicase/u32-casemap.c: Likewise.
13772         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
13773         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13774         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
13775         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13776         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
13777         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
13778
13779         New module 'unicase/u32-suffix-context'.
13780         * lib/unicase/u32-suffix-context.c: New file.
13781         * modules/unicase/u32-suffix-context: New file.
13782
13783         New module 'unicase/u16-suffix-context'.
13784         * lib/unicase/u16-suffix-context.c: New file.
13785         * modules/unicase/u16-suffix-context: New file.
13786
13787         New module 'unicase/u8-suffix-context'.
13788         * lib/unicase/u8-suffix-context.c: New file.
13789         * lib/unicase/u-suffix-context.h: New file.
13790         * modules/unicase/u8-suffix-context: New file.
13791
13792         New module 'unicase/empty-suffix-context'.
13793         * lib/unicase/empty-suffix-context.c: New file.
13794         * modules/unicase/empty-suffix-context: New file.
13795
13796         New module 'unicase/u32-prefix-context'.
13797         * lib/unicase/u32-prefix-context.c: New file.
13798         * modules/unicase/u32-prefix-context: New file.
13799
13800         New module 'unicase/u16-prefix-context'.
13801         * lib/unicase/u16-prefix-context.c: New file.
13802         * modules/unicase/u16-prefix-context: New file.
13803
13804         New module 'unicase/u8-prefix-context'.
13805         * lib/unicase/u8-prefix-context.c: New file.
13806         * lib/unicase/u-prefix-context.h: New file.
13807         * lib/unicase/context.h: New file.
13808         * modules/unicase/u8-prefix-context: New file.
13809
13810         New module 'unicase/empty-prefix-context'.
13811         * lib/unicase/empty-prefix-context.c: New file.
13812         * modules/unicase/empty-prefix-context: New file.
13813
13814         New module 'unicase/ignorable'.
13815         * lib/unicase/ignorable.c: New file.
13816         * modules/unicase/ignorable: New file.
13817
13818         New module 'unicase/cased'.
13819         * lib/unicase/caseprop.h: New file.
13820         * lib/unicase/cased.c: New file.
13821         * modules/unicase/cased: New file.
13822
13823         New functions for case mapping of substrings.
13824         * lib/unicase.h (casing_prefix_context_t): New type.
13825         (unicase_empty_prefix_context): New variable.
13826         (u8_casing_prefix_context, u16_casing_prefix_context,
13827         u32_casing_prefix_context, u8_casing_prefixes_context,
13828         u16_casing_prefixes_context, u32_casing_prefixes_context): New
13829         declarations.
13830         (casing_suffix_context_t): New type.
13831         (unicase_empty_suffix_context): New variable.
13832         (u8_casing_suffix_context, u16_casing_suffix_context,
13833         u32_casing_suffix_context, u8_casing_suffixes_context,
13834         u16_casing_suffixes_context, u32_casing_suffixes_context,
13835         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
13836         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
13837         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
13838         declarations.
13839
13840 2009-06-28  Jim Meyering  <meyering@redhat.com>
13841
13842         boostrap: indent only with spaces
13843         * build-aux/bootstrap: Indent only with spaces, never TABs.
13844
13845         bootstrap: split long lines
13846         * build-aux/bootstrap: Keep line length < 80.
13847
13848         bootstrap: sync from coreutils
13849         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
13850         just as autoreconf does.  Verify a list of prerequisite
13851         package-name,version-number pairs if defined in bootstrap.conf.
13852         Refer to README-prereq, if prerequisites are not satisfied.
13853
13854 2009-06-27  Eric Blake  <ebb9@byu.net>
13855
13856         tests: add test for bogus NULL definition
13857         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
13858         * tests/test-stdlib.c: Likewise.
13859         * tests/test-string.c: Likewise.
13860         * tests/test-locale.c: Likewise.
13861         * tests/test-unistd.c: Likewise.
13862         * modules/stdio-tests (Depends-on): Add verify.
13863         * modules/stdlib-tests (Depends-on): Likewise.
13864         * modules/string-tests (Depends-on): Likewise.
13865         * modules/locale-tests (Depends-on): Likewise.
13866         * modules/unistd-tests (Depends-on): Likewise.
13867
13868 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
13869
13870         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
13871         self-explaining comment.
13872         * m4/selinux-selinux-h: Update serial.
13873         (gl_LIBSELINUX): New macro, adding a warning for missing development
13874         packages to code extracted from...
13875         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
13876         Add warning for missing development packages here, too.
13877
13878 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
13879
13880         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
13881
13882 2009-06-25  Eric Blake  <ebb9@byu.net>
13883
13884         version-etc: fix regression
13885         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
13886         gcc.
13887         (version_etc): Use it, to catch bugs with trailing NULL.
13888         * lib/version-etc.c (version_etc_arn): Delete unused argument.
13889         (version_etc_va): Fix logic bug.
13890         * modules/version-etc-tests: Add test.
13891         * tests/test-version-etc.c: New file.
13892         * tests/test-version-etc.sh: Likewise.
13893
13894 2009-06-25  Sam Steingold  <sds@gnu.org>
13895
13896         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
13897         mbtowc declaration.
13898
13899 2009-06-25  Eric Blake  <ebb9@byu.net>
13900
13901         fpurge: migrate into <stdio.h>
13902         * lib/fpurge.h: Delete...
13903         * lib/stdio.in.h (fpurge): ...and declare here, instead.
13904         * lib/fpurge.c (fpurge): Change declaring header.
13905         * modules/fpurge (Files): Drop deleted file.
13906         (Depends-on): Add stdio.
13907         (configure.ac): Set witness.
13908         * modules/stdio (Makefile.am): Support fpurge macros.
13909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13910         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
13911         * lib/fflush.c: Update client.
13912         * tests/test-fpurge.c: Likewise.
13913         * NEWS: Mention the change.
13914
13915 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13916
13917         * lib/argp-version-etc.c (program_authors): Add const
13918         qualifier.
13919         * lib/version-etc.c: Fix typos in the comments.
13920         * modules/argp-version-etc: Depends on version-etc.
13921
13922 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13923
13924         argp-version-etc: new module.
13925
13926         * lib/argp-version-etc.c: New file.
13927         * lib/argp-version-etc.h: New file.
13928         * modules/argp-version-etc: New file.
13929         * modules/argp-version-etc-tests: New file.
13930         * tests/test-argp-version-etc.c: New test.
13931         * tests/test-argp-version-etc-1.sh: New test.
13932
13933 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13934
13935         Provide additional interfaces and documentation for version-etc
13936         module.
13937
13938         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
13939         interfaces.
13940         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
13941         prototypes.
13942
13943 2009-06-24  Bruno Haible  <bruno@clisp.org>
13944
13945         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
13946         HAVE_LIB${NAME} macro.
13947         Reported by Sam Steingold <sds@gnu.org>.
13948
13949 2009-06-23  Simon Josefsson  <simon@josefsson.org>
13950
13951         * modules/hash-tests (test_hash_LDADD): Link to libintl when
13952         needed.
13953
13954 2009-06-21  Bruno Haible  <bruno@clisp.org>
13955
13956         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
13957         work.
13958         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
13959         together with LIB${NAME}, LTLIB${NAME}.
13960         Reported by Sam Steingold <sds@gnu.org>.
13961
13962 2009-06-20  Jim Meyering  <meyering@redhat.com>
13963
13964         tests: make sc_require_test_exit_idiom more generic
13965         * top/maint.mk (Exit_witness_file): New overridable variable.
13966         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
13967         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
13968
13969 2009-06-19  Jim Meyering  <meyering@redhat.com>
13970
13971         hash: reverse order of src/dst parameters in an internal interface
13972         * lib/hash.c (transfer_entries): Reverse order of parameters to
13973         put DST before SRC.  Adjust callers.
13974
13975         tests: test-hash: avoid wholesale duplication
13976         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
13977         Instead, use a loop and add a single conditional.
13978
13979         tests: test-hash: allow seed selection via a command line argument
13980         * tests/test-hash.c (get_seed): New function.
13981         (main): Use it.
13982
13983 2009-06-19  Eric Blake  <ebb9@byu.net>
13984
13985         hash: avoid memory leak on allocation failure
13986         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
13987         failure.  Factor repeated algorithm...
13988         (transfer_entries): ...into new helper routine.
13989         (hash_delete): React to hash_rehash return value.
13990
13991         hash: reduce memory pressure in hash_rehash no-op case
13992         * lib/hash.c (next_prime): Avoid overflow.
13993         (hash_initialize): Factor bucket size computation...
13994         (compute_bucket_size): ...into new helper function.
13995         (hash_rehash): Use new function and open coding to reduce memory
13996         pressure, and avoid a memory leak in USE_OBSTACK code.
13997         Reported by Jim Meyering.
13998
13999 2009-06-18  Eric Blake  <ebb9@byu.net>
14000
14001         hash: make rotation more obvious
14002         * modules/hash (Depends-on): Add bitrotate and stdint.
14003         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
14004         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
14005         (SIZE_MAX): Rely on headers for definition.
14006         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
14007         (raw_hasher): Use rotr_sz.
14008         Suggested by Jim Meyering.
14009
14010         hash: fix memory leak in last patch
14011         * lib/hash.c (hash_rehash): Avoid memory leak.
14012
14013         hash: avoid no-op rehashing
14014         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
14015
14016         hash: provide default callback functions
14017         * lib/hash.c (raw_hasher, raw_comparator): New functions.
14018         (hash_initialize): Use them as defaults.
14019         * tests/test-hash.c (main): Test this.
14020
14021         hash: minor optimization
14022         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
14023         when possible.
14024         (hash_initialize): Document this promise.
14025         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
14026         * tests/test-hash.c (hash_compare_strings): Test this.
14027
14028 2009-06-18  Bruno Haible  <bruno@clisp.org>
14029
14030         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
14031         going to be replaced anyway.
14032
14033 2009-06-18  Bruno Haible  <bruno@clisp.org>
14034
14035         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
14036         in one place.
14037         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
14038         be replaced anyway.
14039
14040 2009-06-18  Eric Blake  <ebb9@byu.net>
14041
14042         hash: check for resize before insertion
14043         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
14044         threshold before insertion, so that a pathological hash_rehash
14045         that fills every bucket can still trigger another rehash.
14046
14047 2009-06-18  Jim Meyering  <meyering@redhat.com>
14048
14049         hash-tests: add a loop around the small tests
14050         * tests/test-hash.c (main): Repeat small tests with selected
14051         small initial table sizes.
14052
14053 2009-06-17  Eric Blake  <ebb9@byu.net>
14054
14055         hash: minor cleanups
14056         * lib/hash.h (hash_entry): Make opaque, by moving...
14057         * lib/hash.c (hash_entry): ...here.
14058         (hash_insert): Clarify restrictions on what can be inserted.
14059         (hash_get_next): Clarify when it is safe to remove an element
14060         during traversal.
14061         (check_tuning): Skip verification when tuning is known safe.
14062         (hash_initialize): Clarify restrictions on tuning.
14063
14064 2009-06-17  Jim Meyering  <jim@meyering.net>
14065         and Eric Blake  <ebb9@byu.net>
14066
14067         hash-tests: new module
14068         * modules/hash-tests: New file.
14069         * tests/test-hash.c: New file.
14070
14071 2009-06-17  Eric Blake  <ebb9@byu.net>
14072
14073         strstr-simple: document new module
14074         * MODULES.html.sh: Document new module.
14075
14076         strstr, strcasestr: replace on platforms with broken memchr
14077         * modules/strstr: Split into...
14078         * modules/strstr-simple: ...new module that does not care about
14079         performance, but does care about glibc bug.
14080         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
14081         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
14082         if platform memchr is broken, per Debian bug 521737.
14083         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
14084         memchr.
14085         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
14086         * doc/posix-functions/strstr.texi (strstr): Document the fix.
14087         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14088         * modules/mountlist (Depends-on): Add strstr-simple.
14089         * modules/gen-uni-tables (Depends-on): Likewise.
14090         * modules/argz (Depends-on): Add strstr.
14091
14092 2009-06-17  Bruno Haible  <bruno@clisp.org>
14093
14094         * modules/posix_spawn-internal (Depends-on): Add errno.
14095
14096 2009-06-17  Bruno Haible  <bruno@clisp.org>
14097
14098         Define missing ESTALE on Interix 3.5.
14099         * lib/errno.in.h (ESTALE): Assign a value if missing.
14100         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
14101         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
14102         missing.
14103         * doc/posix-headers/errno.texi: Mention the Interix bug.
14104         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
14105
14106 2009-06-15  Eric Blake  <ebb9@byu.net>
14107
14108         memchr, memchr2: add valgrind exception
14109         * lib/memchr.valgrind: New file.
14110         * lib/memchr2.valgrind: New file.
14111         * modules/memchr (Files): Distribute valgrind file.
14112         * modules/memchr2 (Files): Likewise.
14113
14114         docs: memchr is no longer obsolete
14115         * MODULES.html.sh: Move memchr from obsolete to string.h section.
14116         * lib/string.in.h (memchr): Simplify logic.
14117
14118 2009-06-14  Jim Meyering  <meyering@redhat.com>
14119
14120         link-follow: fix the "checking..." message to not mention trailing slash
14121         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
14122         never considered trailing slashes.
14123
14124 2009-06-14  Bruno Haible  <bruno@clisp.org>
14125
14126         * m4/memchr.m4: Mention also the bug on IA-64.
14127         * doc/posix-functions/memchr.texi: Likewise.
14128
14129 2009-06-12  Eric Blake  <ebb9@byu.net>
14130
14131         memchr: detect broken x86_64 and alpha implementations
14132         * modules/memchr-tests (Depends-on): Move mmap detection...
14133         * modules/memchr (Depends-on): ...here.
14134         (configure.ac): Set indicator.
14135         * lib/string.in.h (memchr): Declare replacement.
14136         * modules/string (Makefile.am): Trigger replacement.
14137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
14138         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
14139         bugs.
14140         * doc/posix-functions/memchr.texi (memchr): Document the bug.
14141         * modules/getpagesize (License): Relax license.
14142
14143 2009-06-11  Bruno Haible  <bruno@clisp.org>
14144
14145         * lib/idpriv.h: Add more references.
14146
14147 2009-06-08  Bruno Haible  <bruno@clisp.org>
14148
14149         Tests for module 'idpriv-droptemp'.
14150         * modules/idpriv-droptemp-tests: New file.
14151         * tests/test-idpriv-droptemp.sh: New file.
14152         * tests/test-idpriv-droptemp.su.sh: New file.
14153         * tests/test-idpriv-droptemp.c: New file.
14154
14155         New module 'idpriv-droptemp'.
14156         * lib/idpriv-droptemp.c: New file.
14157         * modules/idpriv-droptemp: New file.
14158
14159 2009-06-08  Bruno Haible  <bruno@clisp.org>
14160
14161         Tests for module 'idpriv-drop'.
14162         * modules/idpriv-drop-tests: New file.
14163         * tests/test-idpriv-drop.sh: New file.
14164         * tests/test-idpriv-drop.su.sh: New file.
14165         * tests/test-idpriv-drop.c: New file.
14166
14167         New module 'idpriv-drop'.
14168         * lib/idpriv.h: New file.
14169         * lib-idpriv-drop.c: New file.
14170         * m4/idpriv.m4: New file.
14171         * modules/idpriv-drop: New file.
14172
14173 2009-06-08  Bruno Haible  <bruno@clisp.org>
14174
14175         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
14176         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14177         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14178         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14179         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14180         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14181         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14182
14183 2009-06-08  Eric Blake  <ebb9@byu.net>
14184
14185         test-strstr: use memory fence, when possible
14186         * tests/test-strstr.c (main): Use memory fence, in order to be
14187         more likely to trigger Debian bug 521737.
14188         * modules/strstr-tests (Files): Pull in additional files.
14189
14190         memchr: no longer obsolete, for wider field testing
14191         * modules/memchr (Status, Notice): Delete, this module is no
14192         longer obsolete.
14193         * modules/vasnprintf (Depends-on): Add memchr.
14194
14195 2009-06-07  Jim Meyering  <meyering@redhat.com>
14196
14197         hash: declare some functions with the warn_unused_result attribute
14198         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
14199
14200 2009-06-07  Bruno Haible  <bruno@clisp.org>
14201
14202         * tests/test-alignof.c: Don't test int64_t if it does not exist.
14203         Reported by Eric Blake.
14204
14205 2009-06-06  Eric Blake  <ebb9@byu.net>
14206
14207         test-alignof: fix typo with long double
14208         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
14209         compiler error.
14210
14211 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
14212
14213         Escape non-texinfo { and }s.
14214         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
14215         markup error.
14216
14217 2009-06-04  Jim Meyering  <meyering@redhat.com>
14218
14219         gitlog-to-changelog: don't infloop on an empty commit log
14220         * build-aux/gitlog-to-changelog: Warn about an empty log message.
14221         Reported by Boris Petersen <transacid@centerim.org>.
14222
14223 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
14224
14225         version-etc: extend for packagers
14226         Add three new configure options, intended for packagers:
14227           --with-packager="packager name"
14228           --with-packager-version="packager-specific version"
14229           --with-packager-bug-reports="packager bug reporting"
14230         An example with coreutils:
14231           $ ./configure \
14232             --with-packager=Gentoo \
14233             --with-packager-bug-report=http://bugs.gentoo.org/ \
14234             --with-packager-version="patchset 1.6"
14235           $ ./src/ls --version | head -n2
14236           ls (GNU coreutils) 7.1-dirty
14237           Packaged by Gentoo (patchset 1.6)
14238         Note that the bug reporting info via --help doesn't show up because
14239         coreutils uses its own custom emit_bug_reporting_address() implementation
14240         in src/system.h.  If it didn't, it'd look like:
14241           $ ./src/ls --help | tail -n4
14242           Report bugs to <bug-coreutils@gnu.org>.
14243           Report Gentoo bugs to <http://bugs.gentoo.org/>.
14244           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
14245           General help using GNU software: <http://www.gnu.org/gethelp/>.
14246         * lib/version-etc.c: Print new information, if provided.
14247         * m4/version-etc.m4: New file.
14248         * modules/version-etc (Files): Add m4/version-etc.m4.
14249         (configure.ac): Add gl_VERSION_ETC.
14250
14251 2009-05-31  Bruno Haible  <bruno@clisp.org>
14252
14253         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
14254         and 'int64_t'.
14255         * modules/alignof-tests (Dependencies): Add stdint.
14256         Reported by Eric Blake.
14257
14258 2009-05-31  Bruno Haible  <bruno@clisp.org>
14259
14260         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
14261         restriction due to compiler bugs.
14262         Reported by Eric Blake.
14263
14264 2009-05-31  Simon Josefsson  <simon@josefsson.org>
14265             Bruno Haible  <bruno@clisp.org>
14266
14267         Fix test-alignof failure.
14268         * lib/alignof.h (alignof_slot): New macro.
14269         (alignof_type): New macro, with the same semantics as the previous
14270         'alignof'.
14271         (alignof): Alias to alignof_slot.
14272         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
14273         check that the results are usable as constant expressions.
14274
14275 2009-05-31  Bruno Haible  <bruno@clisp.org>
14276
14277         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
14278         * tests/test-memchr.c (main): Check that memchr does not read past the
14279         first occurrence of the byte.
14280         * tests/test-strstr.c (main): Update comment.
14281         Suggested by Eric Blake.
14282
14283 2009-05-30  Bruno Haible  <bruno@clisp.org>
14284
14285         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
14286         detail how to use dumpbin.
14287         Reported by David Byron <dbyron@dbyron.com>.
14288
14289 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14290
14291         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
14292
14293 2009-06-02  Simon Josefsson  <simon@josefsson.org>
14294
14295         * m4/manywarnings.m4: Add GCC 4.4 warnings.
14296
14297 2009-05-28  Bruno Haible  <bruno@clisp.org>
14298
14299         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
14300         build-aux/ files.
14301
14302 2009-05-28  Simon Josefsson  <simon@josefsson.org>
14303
14304         * gnulib-tool (func_import): Transform license on build-aux/ files too.
14305
14306 2009-05-27  Simon Josefsson  <simon@josefsson.org>
14307
14308         * gnulib-tool (sed_transform_main_lib_file)
14309         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
14310         regexps.
14311
14312 2009-05-26  Simon Josefsson  <simon@josefsson.org>
14313
14314         * tests/test-strstr.c: Add another self-test.
14315         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
14316         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
14317
14318 2009-05-23  Bruno Haible  <bruno@clisp.org>
14319
14320         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
14321         change.
14322
14323 2009-05-21  Bruno Haible  <bruno@clisp.org>
14324
14325         Simplify use of mode_t varargs.
14326         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
14327         uses 'mode_t' or 'int'.
14328         * lib/openat.c (openat): Likewise.
14329         * lib/open-safer.c (open_safer): Likewise.
14330         * m4/mode_t.m4: New file.
14331         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
14332         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
14333         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
14334         * modules/open (Files): Add m4/mode_t.m4.
14335         * modules/openat (Files): Likewise.
14336         * modules/fcntl-safer (Files): Likewise.
14337         Suggested by Eric Blake.
14338
14339 2009-05-21  Pádraig Brady  <P@draigbrady.com>
14340
14341         * doc/glibc-functions/fallocate.texi: New file.
14342         * doc/gnulib.texi: Include it.
14343
14344 2009-05-21  Eric Blake  <ebb9@byu.net>
14345             Bruno Haible  <bruno@clisp.org>
14346
14347         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
14348         invocations.
14349         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14350
14351 2009-05-21  Eric Blake  <ebb9@byu.net>
14352             Bruno Haible  <bruno@clisp.org>
14353
14354         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
14355         include_next. Fix of 2008-11-20 commit.
14356         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
14357         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
14358         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
14359         NEXT_MATH_H.
14360         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
14361         instead of NEXT_MATH_H.
14362
14363 2009-05-21  Bruno Haible  <bruno@clisp.org>
14364
14365         Avoid redefinition warnings for SIZE_MAX.
14366         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
14367         Reported by Simon Josefsson.
14368
14369 2009-05-21  Bruno Haible  <bruno@clisp.org>
14370
14371         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
14372         AC_CACHE_VAL.
14373
14374 2009-05-20  Bruno Haible  <bruno@clisp.org>
14375
14376         Make zeroptr.h work on mingw.
14377         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
14378         mprotect.
14379         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
14380         * modules/memchr2-tests (configure.ac): Likewise.
14381         * modules/memcmp-tests (configure.ac): Likewise.
14382         * modules/memmem-tests (configure.ac): Likewise.
14383         * modules/memrchr-tests (configure.ac): Likewise.
14384         Reported by Simon Josefsson.
14385
14386 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14387
14388         * tests/test-glob.c: Include string.h for strcmp prototype.
14389
14390 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14391
14392         * modules/getdelim (Depends-on): Add explicit stdint, although it
14393         was implicitly already pulled in via realloc-posix.
14394         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
14395
14396 2009-05-20  Simon Josefsson  <simon@josefsson.org>
14397
14398         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
14399         G. Christensen" <tgc@jupiterrise.com>.
14400         * m4/sys_socket_h.m4: Check for sa_family_t.
14401         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
14402         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
14403         * tests/test-sys_socket.c: Check that sa_family_t works.
14404
14405 2009-05-18  Eric Blake  <ebb9@byu.net>
14406
14407         maint.mk: allow gnulib_dir in VPATH build
14408         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
14409
14410 2009-05-15  Jim Meyering  <meyering@redhat.com>
14411
14412         maint.mk: Give gnulib_dir a default definition.
14413         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
14414         Thus, most packages no longer need to specify this variable in cfg.mk
14415
14416 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
14417
14418         rename.m4: fix typos that would make non-mingw cross-configure fail
14419         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
14420
14421 2009-05-13  Eric Blake  <ebb9@byu.net>
14422
14423         mmap-anon: avoid out-of-order autoconf expansion
14424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
14425         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
14426         * modules/memchr-tests (Depends-on): Add extensions.
14427         * modules/memchr2-tests (Depends-on): Add extensions.
14428         * modules/memcmp-tests (Depends-on): Add extensions.
14429         * modules/memmem-tests (Depends-on): Add extensions.
14430         * modules/memrchr-tests (Depends-on): Add extensions.
14431
14432 2009-05-13  Bruno Haible  <bruno@clisp.org>
14433
14434         Make some tests ISO C 99 compliant.
14435         * tests/zerosize-ptr.h: New file.
14436         * tests/test-memchr.c: Include zerosize-ptr.h.
14437         (main): Use a zero-size object pointer instead of NULL.
14438         * tests/test-memchr2.c: Include zerosize-ptr.h.
14439         (main): Use a zero-size object pointer instead of NULL.
14440         * tests/test-memcmp.c: Include zerosize-ptr.h.
14441         (main): Use a zero-size object pointer instead of NULL.
14442         * tests/test-memmem.c: Include zerosize-ptr.h.
14443         (main): Use a zero-size object pointer instead of NULL.
14444         * tests/test-memrchr.c: Include zerosize-ptr.h.
14445         (main): Use a zero-size object pointer instead of NULL.
14446         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
14447         m4/mmap-anon.m4.
14448         (Depends-on): Add getpagesize.
14449         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14450         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
14451         m4/mmap-anon.m4.
14452         (Depends-on): Add getpagesize.
14453         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14454         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
14455         m4/mmap-anon.m4.
14456         (Depends-on): Add getpagesize.
14457         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14458         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
14459         m4/mmap-anon.m4.
14460         (Depends-on): Add getpagesize.
14461         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14462         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
14463         m4/mmap-anon.m4.
14464         (Depends-on): Add getpagesize.
14465         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
14466
14467 2009-05-12  Bruno Haible  <bruno@clisp.org>
14468
14469         Tests for module 'alignof'.
14470         * modules/alignof-tests: New file.
14471         * tests/test-alignof.c: New file.
14472
14473 2009-05-12  Bruno Haible  <bruno@clisp.org>
14474
14475         Fix alignof macro.
14476         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
14477         vendor compilers that are always correct.
14478
14479 2009-05-12  Bruno Haible  <bruno@clisp.org>
14480
14481         Make the MAP_ANONYMOUS detection work on HP-UX 11.
14482         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
14483         not whether its fully works.
14484
14485 2009-05-12  Bruno Haible  <bruno@clisp.org>
14486
14487         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
14488
14489 2009-05-12  Jim Meyering  <meyering@redhat.com>
14490
14491         * top/maint.mk: Adjust backslash alignment.
14492
14493 2009-05-11  Simon Josefsson  <simon@josefsson.org>
14494
14495         * top/maint.mk: Make $(srcdir)/build-aux configurable.
14496
14497 2009-05-11  Eric Blake  <ebb9@byu.net>
14498
14499         argp: avoid undefined behavior
14500         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
14501         macros.
14502
14503 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14504
14505         * tests/test-vc-list-files-git.sh: Do git config of user.email and
14506         user.name to prevent git commit from complaining.
14507
14508 2009-05-10  Bruno Haible  <bruno@clisp.org>
14509
14510         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
14511         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
14512         it rewrites every file name only once.
14513         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
14514
14515 2009-05-08  Bruno Haible  <bruno@clisp.org>
14516
14517         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
14518         instead of 'max'.
14519
14520 2009-05-08  Simon Josefsson  <simon@josefsson.org>
14521
14522         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
14523         sockaddr_storage test.
14524
14525 2009-05-07  Simon Josefsson  <simon@josefsson.org>
14526
14527         * modules/sys_socket (Makefile.am): Substitute
14528         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
14529         * m4/sys_socket_h.m4: Check for sockaddr_storage.
14530         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
14531         * tests/test-sys_socket.c: Check sockaddr_storage.
14532
14533 2009-05-08  Bruno Haible  <bruno@clisp.org>
14534
14535         New module 'alignof'.
14536         * lib/alignof.h: New file.
14537         * modules/alignof: New file.
14538
14539 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14540             Bruno Haible  <bruno@clisp.org>
14541
14542         Fix test-file-has-acl on FreeBSD.
14543         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
14544         mask is implicitly added.
14545         * tests/test-file-has-acl.c: Include <signal.h>.
14546         (main): Terminate the test after 5 seconds.
14547         * modules/acl-tests (configure.ac): Check for alarm function.
14548
14549 2009-05-04  Bruno Haible  <bruno@clisp.org>
14550
14551         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
14552         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
14553         * modules/errno (configure.ac): Drop AC_REQUIRE.
14554         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
14555         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
14556
14557 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14558
14559         * modules/glob-tests: New module.
14560         * tests/test-glob.c: Add.
14561
14562 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14563
14564         * modules/fnmatch-tests: New module.
14565         * tests/test-fnmatch.c: Add.
14566
14567 2009-05-04  Eric Blake  <ebb9@byu.net>
14568
14569         maint: make the new no-submodule-changes rule VPATH-safe
14570         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
14571
14572 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14573             Bruno Haible  <bruno@clisp.org>
14574
14575         acl: Fix infinite loop on FreeBSD.
14576         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
14577         of return value from acl_get_entry.
14578         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
14579         Likewise.
14580
14581 2009-05-03  Bruno Haible  <bruno@clisp.org>
14582
14583         * lib/acl-internal.h (acl_entries): Clarify return value.
14584         * lib/acl_entries.c (acl_entries): Likewise.
14585
14586 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14587
14588         Bug fix in acl module.
14589         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
14590
14591 2009-05-03  Bruno Haible  <bruno@clisp.org>
14592
14593         Create gperf-generated file in the source dir, not in the build dir.
14594         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
14595         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
14596         * modules/unicase/locale-language (unicase/locale-languages.h):
14597         Likewise.
14598         * modules/unicase/special-casing (unicase/special-casing-table.h):
14599         Likewise.
14600         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
14601         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
14602         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
14603         Reported by Ralf Wildenhues.
14604
14605 2009-05-03  Bruno Haible  <bruno@clisp.org>
14606
14607         * modules/fnmatch (Description, configure.ac): Taken from
14608         fnmatch-posix.
14609         * modules/fnmatch-posix: Turn into a symbolic reference to the
14610         'fnmatch' module, and deprecate.
14611         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
14612
14613 2009-05-03  Bruno Haible  <bruno@clisp.org>
14614
14615         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
14616         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
14617         Reported by Ralf Wildenhues.
14618
14619 2009-05-04  Simon Josefsson  <simon@josefsson.org>
14620
14621         * m4/fnmatch.m4: Fix fnmatch re-define.
14622
14623 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
14624
14625         priv-set: new module and tests; adapt write-any-file
14626         * lib/priv-set.c: New file.
14627         * lib/priv-set.h: New file.
14628         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
14629         * lib/write-any-file.c: Simplify by using priv-set module.
14630         * m4/priv-set.m4: New file.
14631         * modules/priv-set: New file.
14632         * modules/unlinkdir: Add dependency on priv-set module.
14633         * modules/write-any-file: Likewise.
14634
14635         Tests for module 'priv-set'.
14636         * modules/priv-set-tests: New file.
14637         * tests/test-priv-set.c: New file.
14638
14639 2009-05-03  Jim Meyering  <meyering@redhat.com>
14640             Bruno Haible  <bruno@clisp.org>
14641
14642         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
14643         use the converted UTF-8 variant of the name instead.
14644
14645 2009-05-03  Jim Meyering  <meyering@redhat.com>
14646
14647         tests: tighten some getdate tests
14648         * tests/test-getdate.c (main): Tighten tests: require equality,
14649         not just greater than.  Set TZ envvar to UTC0.
14650
14651 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14652
14653         getdate: correctly interpret "next monday" when run on a Monday
14654         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
14655         that e.g., "next tues" (when run on a tuesday) results in a date
14656         that is one week in the future, and not today's date.
14657         I.e., add a week when the wday is the same as the current one.
14658         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
14659         and earlier by Martin Bernreuther and Jan Minář.
14660         * tests/test-getdate.c (main): Check that "next DAY" is always in
14661         the future and that "last DAY" is always in the past.
14662
14663 2009-05-02  Jim Meyering  <meyering@redhat.com>
14664
14665         build: ensure that a release build fails when a submodule is unclean
14666         * top/maint.mk (no-submodule-changes): New rule.
14667         (alpha beta major): Depend on it.
14668
14669 2009-05-02  Bruno Haible  <bruno@clisp.org>
14670
14671         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
14672         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
14673         shell variable gl_fnmatch_required to detect which variant is
14674         requested.
14675         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
14676         gl_FUNC_FNMATCH_POSIX.
14677         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
14678         exclude fnmatch-posix.
14679
14680 2009-05-02  Bruno Haible  <bruno@clisp.org>
14681
14682         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
14683         * modules/mbsrtowcs (License): Change to LGPLv2+.
14684         * modules/strnlen1 (License): Likewise.
14685         Reported by Simon Josefsson.
14686
14687 2009-05-02  Bruno Haible  <bruno@clisp.org>
14688
14689         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
14690         "cross".
14691         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
14692         gnulib-tool was called with option --source-base=lib.
14693
14694 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14695
14696         Use automake *-local hooks without commands, for extensibility.
14697         * modules/localcharset (Makefile.am): Rename install-exec-local
14698         rule to install-exec-localcharset, and make it a prerequisite of
14699         install-exec-local.  Likewise, rename the uninstall-local rule to
14700         uninstall-localcharset, and make it a prerequisite of the former.
14701
14702 2009-05-01  Bruno Haible  <bruno@clisp.org>
14703
14704         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
14705         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14706         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
14707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
14708         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
14709         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14710         m4/locale-zh.m4, m4/codeset.m4.
14711
14712         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
14713         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
14714         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
14715         m4/locale-zh.m4.
14716
14717         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
14718         REPLACE_WCRTOMB if mbstate_t must be replaced.
14719         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
14720         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
14721
14722 2009-05-01  Bruno Haible  <bruno@clisp.org>
14723
14724         Avoid compiler warnings when redefining macros defined by <libintl.h>.
14725         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
14726         dngettext, dcngettext, textdomain, bindtextdomain,
14727         bind_textdomain_codeset): Undefine before redefining.
14728
14729 2009-04-30  Bruno Haible  <bruno@clisp.org>
14730
14731         Fix bug introduced on 2009-04-25.
14732         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
14733         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
14734         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
14735         is defined.
14736         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
14737         is defined.
14738         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
14739         is defined.
14740         Reported by Elbert_Pol <elbert.pol@gmail.com>.
14741
14742 2009-04-28  Bruno Haible  <bruno@clisp.org>
14743
14744         Comment tweaks.
14745         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
14746         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
14747         * lib/unicase.h (u*_casexfrm): Likewise.
14748         Reported by Paolo Bonzini.
14749
14750 2009-04-28  Bruno Haible  <bruno@clisp.org>
14751
14752         Fix a compilation error.
14753         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
14754         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
14755         Reported by Jim Meyering.
14756
14757 2009-04-27  Bruno Haible  <bruno@clisp.org>
14758
14759         New module 'libunistring'.
14760         * modules/libunistring: New file.
14761         * m4/libunistring.m4: New file.
14762         * MODULES.html.sh (Unicode string functions): Add it.
14763
14764 2009-04-27  Eric Blake  <ebb9@byu.net>
14765
14766         maint.mk: allow package-specific header to provide <config.h>
14767         * top/maint.mk (sc_require_config_h): New variable.
14768         (sc_require_config_h, sc_require_config_h_first): Use it.
14769
14770 2009-04-27  Simon Josefsson  <simon@josefsson.org>
14771
14772         * top/maint.mk (sc_avoid_if_before_free): Except
14773         useless-if-before-free script.
14774
14775 2009-04-27  Eric Blake  <ebb9@byu.net>
14776
14777         maintainer-makefile: depend on all required helper scripts
14778         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
14779         useless-if-before-free.
14780         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
14781         version, rather than assuming gnulib checkout is available.
14782         Reported by Simen Josefsson.
14783
14784 2009-04-26  Bruno Haible  <bruno@clisp.org>
14785
14786         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
14787         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
14788         "../" or "..".
14789
14790 2009-04-26  Bruno Haible  <bruno@clisp.org>
14791
14792         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
14793         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
14794         AC_LIB_HAVE_LINKFLAGS.
14795
14796 2009-04-26  Bruno Haible  <bruno@clisp.org>
14797
14798         Simplify calling convention of u*_conv_from_encoding.
14799         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
14800         u32_conv_from_encoding): Expect a resultbuf argument and return the
14801         result directly as a pointer.
14802         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14803         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
14804         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
14805         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
14806         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
14807         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14808         Update.
14809         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
14810         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
14811         * lib/vasnprintf.c (VASNPRINTF): Update.
14812         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
14813         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
14814         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
14815         * NEWS: Mention the change.
14816
14817 2009-04-26  Bruno Haible  <bruno@clisp.org>
14818
14819         Simplify calling convention of u*_conv_to_encoding.
14820         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14821         u32_conv_to_encoding): Expect a resultbuf argument and return the
14822         result directly as a pointer.
14823         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14824         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
14825         freeing scaled_offsets if mem_iconveha failed.
14826         * lib/unicase/u-casexfrm.h (FUNC): Update.
14827         * lib/uninorm/u-normxfrm.h (FUNC): Update.
14828         * lib/vasnprintf.c (VASNPRINTF): Update.
14829         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
14830         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
14831         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
14832         * NEWS: Mention the change.
14833
14834 2009-04-26  Bruno Haible  <bruno@clisp.org>
14835
14836         Avoid test failures on AIX and OSF/1.
14837         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
14838         malloc(0).
14839         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14840         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
14841         Likewise.
14842         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
14843         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
14844         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
14845         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
14846         * doc/posix-functions/malloc.texi: Document the portability problem
14847         related to malloc(0).
14848
14849 2009-04-26  Bruno Haible  <bruno@clisp.org>
14850
14851         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
14852         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
14853         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
14854
14855 2009-04-25  Bruno Haible  <bruno@clisp.org>
14856
14857         Avoid link error when creating a namespace clean library.
14858         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
14859         as macro with arguments if already defined as an alias.
14860         * lib/signbitf.c (gl_signbitf): Don't undefine.
14861         * lib/signbitd.c (gl_signbitd): Don't undefine.
14862         * lib/signbitl.c (gl_signbitl): Don't undefine.
14863
14864 2009-04-25  Jim Meyering  <meyering@redhat.com>
14865
14866         vc-list-files: fix another quoting bug
14867         * build-aux/vc-list-files: Avoid sed backslash expansion
14868         of pathological directory names.
14869
14870 2009-04-25  Eric Blake  <ebb9@byu.net>
14871
14872         vc-list-files: fix shell quoting error
14873         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
14874         timestamp.
14875
14876 2009-04-25  Jim Meyering  <meyering@redhat.com>
14877
14878         vc-list-files: restore lost functionality with subdir argument
14879         * build-aux/vc-list-files: When given a non-"." sub-directory
14880         argument, substitute the $dir/ prefix back onto each resulting name.
14881         Otherwise, coreutils' root_tests check would fail.
14882
14883 2009-04-24  Eric Blake  <ebb9@byu.net>
14884
14885         vc-list-files: ignore git symlinks
14886         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
14887         than ls-files, to ignore git symlinks.
14888
14889         maint.mk: import improvements from m4
14890         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
14891         (move_if_change): Delete unused macro.
14892         (news-date-check, vc-diff-check): Support VPATH builds.
14893         (announcement): Likewise.  Split --bootstrap-tools list...
14894         (boostrap-tools): ...into separate list, which can be overridden
14895         in cfg.mk.
14896         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
14897         requiring dependency on useless-if-before-free module.
14898         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
14899         Support VPATH builds.
14900
14901 2009-04-24  Jim Meyering  <meyering@redhat.com>
14902
14903         maint.mk: remove coreutils-specific rules and variables
14904         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
14905         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
14906         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
14907
14908         maint.mk: remove obsolete rule
14909         * top/maint.mk (rel-check): Remove rule.
14910         (WGET, WGETFLAGS): Remove now-unused variables.
14911
14912 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14913
14914         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
14915         consistency.
14916
14917         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
14918         '$(PATH_SEPARATOR)' instead of ':'.
14919
14920 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14921
14922         * lib/getopt1.c (main): Use 'const' for static array.
14923
14924 2009-04-24  Simon Josefsson  <simon@josefsson.org>
14925
14926         * top/maint.mk: Sync with coreutils.
14927         * NEWS: Explain incompatibilities.
14928
14929 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14930             Bruno Haible  <bruno@clisp.org>
14931
14932         Fix cross-compilation results.
14933         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
14934         statement, as third argument of AC_TRY_RUN.
14935         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
14936         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
14937         Likewise.
14938         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14939         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
14940         Likewise.
14941         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
14942         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
14943         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
14944
14945 2009-04-20  Bruno Haible  <bruno@clisp.org>
14946
14947         Avoid test failure on mingw.
14948         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
14949
14950 2009-04-20  Bruno Haible  <bruno@clisp.org>
14951
14952         Avoid compilation error on mingw.
14953         * modules/localename-tests (Depends-on): Add locale.
14954
14955 2009-04-19  Bruno Haible  <bruno@clisp.org>
14956
14957         Support for building a shared library on Windows platforms.
14958         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
14959         (main): Test the presence of UNINORM_NFC here.
14960         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
14961         (main): Test the presence of UNINORM_NFD here.
14962         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
14963         (main): Test the presence of UNINORM_NFKC here.
14964         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
14965         (main): Test the presence of UNINORM_NFKD here.
14966
14967 2009-04-19  Bruno Haible  <bruno@clisp.org>
14968
14969         Avoid a compiler warning.
14970         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
14971         Change type of variable 'sequence'.
14972
14973 2009-04-19  Bruno Haible  <bruno@clisp.org>
14974
14975         * modules/configmake (Makefile.am): When the contents of configmake.h
14976         does not change, arrange to preserve its modification time.
14977
14978 2009-04-17  Simon Josefsson  <simon@josefsson.org>
14979
14980         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
14981         gettext domain.
14982
14983 2009-04-16  Jim Meyering  <meyering@redhat.com>
14984
14985         useless-if-before-free: improve conversion code
14986         * build-aux/useless-if-before-free: Adjust code-in-comment to match
14987         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
14988
14989 2009-04-14  Bruno Haible  <bruno@clisp.org>
14990
14991         * modules/fcntl (Depends-on): Add extensions.
14992         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
14993
14994 2009-04-12  Ben Pfaff  <blp@gnu.org>
14995
14996         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
14997         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
14998
14999 2009-03-20  Ben Pfaff  <blp@gnu.org>
15000
15001         Make rename replace existing destinations on Windows.
15002         * m4/rename.m4: Add test for Mingw.
15003         * lib/rename.c: Add rename replacement that uses MoveFileEx with
15004         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
15005         * doc/posix-functions/rename.texi: Document.
15006
15007 2009-04-10  Bruno Haible  <bruno@clisp.org>
15008
15009         New include file "iconveh.h".
15010         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
15011         * lib/striconveh.h: Include it.
15012         (enum iconv_ilseq_handler): Remove definition.
15013         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
15014         striconveh.h.
15015         * lib/striconveha.c: Include striconveh.h.
15016         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
15017         * modules/striconveh (Files): Add lib/iconveh.h.
15018         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
15019         lib/striconveh.h.
15020
15021 2009-04-10  Bruno Haible  <bruno@clisp.org>
15022
15023         * lib/uniconv.h: Update comment.
15024
15025 2009-04-10  Bruno Haible  <bruno@clisp.org>
15026
15027         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
15028         always.
15029         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
15030         * lib/unistr/u16-mbtouc-aux.c: Likewise.
15031         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
15032         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
15033         "unistring-notinline.h", so that the function gets defined always.
15034         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
15035         * lib/unistr/u8-uctomb.c: Likewise.
15036         * lib/unistr/u16-mbtouc.c: Likewise.
15037         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
15038         * lib/unistr/u16-uctomb.c: Likewise.
15039         * lib/unistr/u32-mbtouc.c: Likewise.
15040         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
15041         * lib/unistr/u32-uctomb.c: Likewise.
15042
15043 2009-04-10  Bruno Haible  <bruno@clisp.org>
15044
15045         Mark 'utime' obsolete.
15046         * modules/utime (Status, Notice): New sections.
15047         Suggested by Jim Meyering.
15048
15049         Fix cross-compile guess for utime test.
15050         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
15051         autoconf.
15052         * doc/posix-functions/utime.texi: Give more precisions.
15053         Reported by Jan <ipif@ymail.com>.
15054
15055 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
15056
15057         filevercmp: correct today's change
15058         * lib/filevercmp.c: Also handle coreutils' test inputs.
15059         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
15060
15061         Fix regression in 'filevercmp' module. Thanks Sven Joachim
15062         for reporting it.
15063         * lib/filevercmp.c: Special handle for "", "." and "..".
15064         * tests/test-filevercmp.c: Enlarge the set suite.
15065
15066 2009-04-07  Jim Meyering  <meyering@redhat.com>
15067
15068         useless-if-before-free: show how to remove braced useless free, too
15069         * build-aux/useless-if-before-free: still only in a comment, though.
15070
15071 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
15072
15073         maint.mk: import changes to syntax-check macros from coreutils
15074         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
15075         Use them in the relevant macros.
15076
15077 2009-04-06  Bruno Haible  <bruno@clisp.org>
15078
15079         Fix unportable use of bit-fields.
15080         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
15081         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
15082         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
15083
15084 2009-04-06  Bruno Haible  <bruno@clisp.org>
15085
15086         Avoid test failures on AIX and OSF/1.
15087         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
15088         that malloc(0) = NULL.
15089         * tests/unicase/test-u8-tolower.c (check): Likewise.
15090         * tests/unicase/test-u8-totitle.c (check): Likewise.
15091         * tests/unicase/test-u8-toupper.c (check): Likewise.
15092         * tests/unicase/test-u16-casefold.c (check): Likewise.
15093         * tests/unicase/test-u16-tolower.c (check): Likewise.
15094         * tests/unicase/test-u16-totitle.c (check): Likewise.
15095         * tests/unicase/test-u16-toupper.c (check): Likewise.
15096         * tests/unicase/test-u32-casefold.c (check): Likewise.
15097         * tests/unicase/test-u32-tolower.c (check): Likewise.
15098         * tests/unicase/test-u32-totitle.c (check): Likewise.
15099         * tests/unicase/test-u32-toupper.c (check): Likewise.
15100         * tests/uninorm/test-u8-nfc.c (check): Likewise.
15101         * tests/uninorm/test-u8-nfd.c (check): Likewise.
15102         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
15103         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
15104         * tests/uninorm/test-u16-nfc.c (check): Likewise.
15105         * tests/uninorm/test-u16-nfd.c (check): Likewise.
15106         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
15107         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
15108         * tests/uninorm/test-u32-nfc.c (check): Likewise.
15109         * tests/uninorm/test-u32-nfd.c (check): Likewise.
15110         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
15111         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
15112
15113 2009-04-05  Bruno Haible  <bruno@clisp.org>
15114
15115         Work around an autoconf limitation.
15116         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
15117         comment line if it would be longer than 3 KB.
15118
15119 2009-04-05  Bruno Haible  <bruno@clisp.org>
15120
15121         Avoid test failure with libiconv-1.13.
15122         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
15123         of the expected test results.
15124
15125 2009-04-05  Bruno Haible  <bruno@clisp.org>
15126
15127         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
15128         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
15129         that it should be installed.
15130
15131 2009-04-05  Bruno Haible  <bruno@clisp.org>
15132
15133         * gnulib-tool: New option --copy-file.
15134         (func_usage): Document it.
15135         (func_dest_tmpfilename): Moved out of func_import.
15136         (func_add_file, func_update_file): New functions, extracted from
15137         func_import.
15138         (func_import): Update.
15139
15140 2009-04-05  Karl Berry  <karl@gnu.org>
15141
15142         * README: prominently mention gnulib-tool.
15143         Rearrange sections so getting the code is near the top.
15144
15145 2009-04-05  Bruno Haible  <bruno@clisp.org>
15146
15147         * lib/unicase.h: Mention u*_cmp2.
15148         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15149         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
15150         * lib/unicase/ulc-casecmp.c: Likewise.
15151         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
15152         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
15153         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
15154         unistr/u8-cmp.
15155         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
15156         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
15157         unistr/u16-cmp.
15158         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
15159         unistr/u32-cmp.
15160
15161         * lib/uninorm.h: Mention u*_cmp2.
15162         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
15163         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
15164         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
15165         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
15166         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
15167         unistr/u8-cmp.
15168         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
15169         unistr/u16-cmp.
15170         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
15171         unistr/u32-cmp.
15172
15173         New module 'unistr/u32-cmp2'.
15174         * lib/unistr/u32-cmp2.c: New file.
15175         * modules/unistr/u32-cmp2: New file.
15176
15177         New module 'unistr/u16-cmp2'.
15178         * lib/unistr/u16-cmp2.c: New file.
15179         * modules/unistr/u16-cmp2: New file.
15180
15181         New module 'unistr/u8-cmp2'.
15182         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
15183         * lib/unistr/u8-cmp2.c: New file.
15184         * lib/unistr/u-cmp2.h: New file.
15185         * modules/unistr/u8-cmp2: New file.
15186
15187 2009-04-05  Bruno Haible  <bruno@clisp.org>
15188
15189         * lib/unictype.h (uc_property_is_valid): New macro.
15190         * tests/unictype/test-pr_byname.c (main): Use it.
15191
15192         * lib/unistr.h: Doc fixes.
15193         * lib/uniconv.h: Doc fixes.
15194         * lib/unictype.h: Doc fixes.
15195
15196 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
15197
15198         Port coreutils 7.2 to Solaris 8.
15199
15200         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
15201         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
15202         for Solaris 8.  This is a bit of a hack, as it means it's the
15203         caller's responsibility to add -lnsl if needed, but most likely it
15204         won't be needed since only getaddrinfo uses this and getaddrinfo
15205         isn't needed on Solaris 8.
15206
15207         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
15208         problem to Solaris 8 encountered with coreutils 7.2, which
15209         resulted in a message "fnmatch.c:292: warning: passing argument 4
15210         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
15211         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
15212
15213 2009-04-03  Simon Josefsson  <simon@josefsson.org>
15214
15215         * m4/ld-version-script.m4: Add FIXME comment.
15216
15217 2009-04-02  Simon Josefsson  <simon@josefsson.org>
15218
15219         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
15220         SOVERSION variable.
15221
15222 2009-04-02  Bruno Haible  <bruno@clisp.org>
15223
15224         * Makefile (info, html, dvi, pdf): Combine the rules.
15225         Suggested by Jim Meyering.
15226
15227 2009-04-01  Bruno Haible  <bruno@clisp.org>
15228
15229         * Makefile (info, html, dvi, pdf): New targets.
15230         Reported by Reuben Thomas <rrt@sc3d.org>.
15231
15232 2009-04-01  Bruno Haible  <bruno@clisp.org>
15233
15234         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
15235         can be put into PATH.
15236         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
15237
15238 2009-04-01  Bruno Haible  <bruno@clisp.org>
15239
15240         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
15241
15242 2009-04-01  Bruno Haible  <bruno@clisp.org>
15243
15244         Rename module 'visibility'.
15245         * modules/lib-symbol-visibility: Renamed from modules/visibility.
15246         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
15247         * doc/gnulib.texi: Update.
15248         * MODULES.html.sh (Misc): Update.
15249         * NEWS: Mention the change.
15250
15251 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15252
15253         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
15254         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
15255         Eric Blake <ebb9@byu.net> for review.
15256         * MODULES.html.sh: Add lib-msvc-compat.
15257         * doc/gnulib.texi: Link to new section.
15258         * m4/ld-output-def.m4: New file.
15259         * doc/ld-output-def.texi: New file.
15260
15261 2009-04-01  Simon Josefsson  <simon@josefsson.org>
15262
15263         Rename ld-version-script to lib-symbol-versions.  Suggested by
15264         Bruno Haible <bruno@clisp.org>.
15265         * modules/ld-version-script: Renamed to lib-symbol-versions.
15266         * doc/ld-version-script.texi: Fix module name.
15267         * MODULES.html.sh: Add lib-symbol-versions.
15268
15269 2009-03-31  Simon Josefsson  <simon@josefsson.org>
15270
15271         * modules/u64-tests: New file.
15272         * tests/test-u64.c: New file.
15273
15274 2009-03-04  Simon Josefsson  <simon@josefsson.org>
15275
15276         * MODULES.html.sh: Mention u64.
15277         * modules/u64: New module.
15278         * modules/crypto/sha512: Depend on u64 module instead of providing
15279         u64.h.
15280
15281 2009-03-27  Eric Blake  <ebb9@byu.net>
15282
15283         test-strerror: make debugging EAI_SYSTEM easier
15284         * modules/getaddrinfo-tests (Depends-on): Add strerror.
15285         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
15286         failure was EAI_SYSTEM.
15287
15288 2009-03-25  Bruno Haible  <bruno@clisp.org>
15289
15290         Fix a problem with --enable-relocatable on Solaris 7.
15291         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
15292         since 2008-02-24.
15293
15294 2009-03-25  Eric Blake  <ebb9@byu.net>
15295
15296         test-sockets: avoid gcc warning
15297         * tests/test-sockets.c (main): Silence compiler warning.
15298
15299 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
15300
15301         New modules nproc, pthread, contributed by Glen Lenker.
15302
15303         * MODULES.html.sh: Add pthread, nproc.
15304         * lib/nproc.c: New file.
15305         * lib/nproc.h: New file.
15306         * lib/pthread.in.h: New file.
15307         * m4/pthread.m4: New file.
15308         * modules/nproc: New file.
15309         * modules/pthread: New file.
15310
15311 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15312
15313         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
15314         New variable.
15315
15316 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
15317
15318         filevercmp: handle simple~ and numbered.~3~ backup suffixes
15319         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
15320         * tests/test-filevercmp.c: Add tests for backup suffixes.
15321
15322 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15323
15324         * modules/stdlib (Depends-on): Add stdint, needed when defining
15325         struct random_data on, for example, HP-UX 10.20.  Reported by
15326         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15327
15328 2009-03-24  Simon Josefsson  <simon@josefsson.org>
15329
15330         * lib/readline.c (readline): Call fflush on stdout after printing
15331         prompt.
15332
15333 2009-03-20  Bruno Haible  <bruno@clisp.org>
15334
15335         Remove dependency from 'close' module to -lws2_32 on native Windows.
15336         * lib/close-hook.h: New file.
15337         * lib/close-hook.c: New file.
15338         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
15339         w32sock.h.
15340         (_gl_close_fd_maybe_socket): Remove function.
15341         (rpl_close): Invoke execute_all_close_hooks instead of
15342         _gl_close_fd_maybe_socket.
15343         * lib/sockets.c: Include close-hook.h, w32sock.h.
15344         (close_fd_maybe_socket): New function, essentially from lib/close.c.
15345         (close_sockets_hook): New variable.
15346         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
15347         (gl_sockets_cleanup): Unregister it.
15348         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
15349         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
15350         * modules/close-hook: New file.
15351         * modules/close (Files): Remove lib/w32sock.h.
15352         (Depends-on): Add close-hook.
15353         (Link): Remove section.
15354         * modules/sockets (Files): Add lib/w32sock.h.
15355         (Depends-on): Add close-hook.
15356         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
15357         invocation.
15358         * NEWS: Mention that LIB_CLOSE is gone.
15359
15360 2009-03-23  Eric Blake  <ebb9@byu.net>
15361
15362         signal-tests: test previous patch
15363         * tests/test-signal.c: New file.
15364         * modules/signal-tests: Likewise.
15365
15366         signal.h: always support 'volatile sig_atomic_t'
15367         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
15368         (gl_SIGNAL_H_DEFAULTS): Add a default.
15369         * modules/signal (Makefile.am): Substitute if needed.
15370         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
15371         users can blindly add volatile.
15372         * doc/posix-headers/signal.texi (signal.h): Document it.
15373         Reported by Matthew Woehlke.
15374
15375 2009-03-23  Jim Meyering  <meyering@redhat.com>
15376
15377         pathmax: PATH_MAX: use pathconf only when available
15378         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
15379         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
15380         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
15381         This avoids a link failure in a PSP cross-compilation environment
15382         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
15383
15384         * lib/vasnprintf.c (divide): Fix typo in comment.
15385
15386 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15387
15388         * gnulib-tool (func_filter_filelist): Fix comment.
15389
15390 2009-03-20  Bruno Haible  <bruno@clisp.org>
15391
15392         Make sockets.h self-contained.
15393         * lib/sockets.c: Include sockets.h first.
15394         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
15395
15396 2009-03-19  Eric Blake  <ebb9@byu.net>
15397
15398         doc: mention more functions added in cygwin 1.7.0
15399         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
15400         addition.
15401         * doc/posix-functions/log2f.texi: Likewise.
15402
15403 2009-03-19  Jim Meyering  <meyering@redhat.com>
15404
15405         fsusage: avoid syntax error due to statement-before-declaration
15406         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
15407         after all declarations.  Reported by Matthew Woehlke in
15408         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
15409
15410 2009-03-18  Eric Blake  <ebb9@byu.net>
15411
15412         build-aux/compile: sync from automake
15413         * build-aux/compile: New file, from automake.
15414         * config/srclist.txt: Mention build-aux/compile.
15415
15416 2009-03-17  Bruno Haible  <bruno@clisp.org>
15417
15418         * lib/git-merge-changelog.c: Fix typo in comment.
15419         Reported by Reuben Thomas <rrt@sc3d.org>.
15420
15421 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
15422
15423         * m4/regex.m4: update and improve help for
15424         --without-included-regex.
15425
15426 2009-03-17  Simon Josefsson  <simon@josefsson.org>
15427
15428         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
15429         failure on missing include files.
15430
15431 2009-03-17  Eric Blake  <ebb9@byu.net>
15432
15433         doc: mention more functions added in cygwin 1.7.0
15434         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
15435         addition.
15436         * doc/posix-functions/fwscanf.texi: Likewise.
15437         * doc/posix-functions/swprintf.texi: Likewise.
15438         * doc/posix-functions/swscanf.texi: Likewise.
15439         * doc/posix-functions/vfwprintf.texi: Likewise.
15440         * doc/posix-functions/vfwscanf.texi: Likewise.
15441         * doc/posix-functions/vswprintf.texi: Likewise.
15442         * doc/posix-functions/vswscanf.texi: Likewise.
15443         * doc/posix-functions/vwprintf.texi: Likewise.
15444         * doc/posix-functions/vwscanf.texi: Likewise.
15445         * doc/posix-functions/wcscasecmp.texi: Likewise.
15446         * doc/posix-functions/wcsdup.texi: Likewise.
15447         * doc/posix-functions/wcsftime.texi: Likewise.
15448         * doc/posix-functions/wcsncasecmp.texi: Likewise.
15449         * doc/posix-functions/wprintf.texi: Likewise.
15450         * doc/posix-functions/wscanf.texi: Likewise.
15451         * doc/glibc-functions/gethostbyname2.texi: Likewise.
15452
15453 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15454
15455         maint.mk: really add $(AM_MAKEFLAGS)
15456         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
15457         was inadvertently omitted in the last commit.
15458         Spotted by Bruno Haible.
15459
15460         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
15461         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
15462         $(AM_MAKEFLAGS)' rather than plain `make'.
15463
15464         gnulib-tool: execute $MAKE not make
15465         * gnulib-tool: Default $MAKE to 'make'.
15466         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
15467         than make.  Initialize $MAKE in the do-autobuild script.
15468
15469         gnulib-tool: use $MAKE not make in generated files
15470         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
15471         make, in generated files.  Initialize $MAKE in the do-autobuild
15472         script.
15473
15474         * top/GNUmakefile (_have-git-version-gen): Fix typo.
15475
15476         GNUmakefile: disable parallelism only for multiple, recursive targets
15477         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
15478         additions in the Makefile.
15479         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
15480         by Automake.
15481         (.NOTPARALLEL): Only disable parallel builds if multiple targets
15482         are listed on the command line and at least one of them is
15483         listed in $(ALL_RECURSIVE_TARGETS).
15484
15485 2009-03-14  Bruno Haible  <bruno@clisp.org>
15486
15487         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
15488         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
15489         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
15490         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
15491         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
15492         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
15493         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
15494         unistr/u8-uctomb.
15495         * modules/unistr/u8-strchr (Depends-on): Likewise.
15496         * modules/unistr/u8-strrchr (Depends-on): Likewise.
15497         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
15498         unistr/u16-uctomb.
15499         * modules/unistr/u16-strchr (Depends-on): Likewise.
15500         * modules/unistr/u16-strrchr (Depends-on): Likewise.
15501
15502 2009-03-12  Bruno Haible  <bruno@clisp.org>
15503
15504         Work around select() bug on Interix 3.5.
15505         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
15506         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
15507         * m4/select.m4: New file.
15508         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
15509         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
15510         * modules/select (Files): Add m4/select.m4.
15511         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
15512         * modules/nanosleep (Depends-on): Add select.
15513         * modules/poll (Depends-on): Likewise.
15514         * doc/posix-functions/select.texi: Mention the Interix bug.
15515         Reported by Markus Duft <mduft@gentoo.org>.
15516
15517         * lib/select.c: Renamed from lib/winsock-select.c.
15518         * modules/select (Files): Add lib/select.c, remove
15519         lib/winsock-select.c.
15520         (configure.ac): Update.
15521
15522 2009-03-12  Jim Meyering  <meyering@redhat.com>
15523
15524         avoid gcc warnings about unused macro definitions
15525         * lib/readtokens.c (STREQ): Remove unused definition.
15526         * lib/xmalloc.c (SIZE_MAX): Likewise.
15527         * lib/openat-die.c (N_): Likewise.
15528         * lib/mountlist.c (SIZE_MAX): Remove definition.
15529         Instead, include <stdint.h>.
15530         * lib/readutmp.c: Likewise.
15531         * modules/readutmp (Depends-on): Add stdint.
15532         * modules/mountlist (Depends-on): Add stdint.
15533         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
15534
15535 2009-03-10  Bruno Haible  <bruno@clisp.org>
15536
15537         Tests for module 'mbmemcasecoll'.
15538         * modules/mbmemcasecoll-tests: New file.
15539         * tests/test-mbmemcasecoll1.sh: New file.
15540         * tests/test-mbmemcasecoll2.sh: New file.
15541         * tests/test-mbmemcasecoll3.sh: New file.
15542         * tests/test-mbmemcasecoll.c: New file.
15543
15544         New module 'mbmemcasecoll'.
15545         * lib/mbmemcasecoll.h: New file.
15546         * lib/mbmemcasecoll.c: New file.
15547         * modules/mbmemcasecoll: New file.
15548
15549         * tests/test-mbmemcasecmp.h: New file, extracted from
15550         tests/test-mbmemcasecmp.c.
15551         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
15552         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
15553         (main): Update.
15554         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
15555
15556 2009-03-09  Bruno Haible  <bruno@clisp.org>
15557
15558         Tests for module 'mbmemcasecmp'.
15559         * modules/mbmemcasecmp-tests: New file.
15560         * tests/test-mbmemcasecmp1.sh: New file.
15561         * tests/test-mbmemcasecmp2.sh: New file.
15562         * tests/test-mbmemcasecmp3.sh: New file.
15563         * tests/test-mbmemcasecmp.c: New file.
15564
15565         New module 'mbmemcasecmp'.
15566         * lib/mbmemcasecmp.h: New file.
15567         * lib/mbmemcasecmp.c: New file.
15568         * modules/mbmemcasecmp: New file.
15569
15570 2009-03-09  Bruno Haible  <bruno@clisp.org>
15571
15572         Tests for module 'unicase/ulc-casecoll'.
15573         * modules/unicase/ulc-casecoll-tests: New file.
15574         * tests/unicase/test-ulc-casecoll1.sh: New file.
15575         * tests/unicase/test-ulc-casecoll2.sh: New file.
15576         * tests/unicase/test-ulc-casecoll.c: New file.
15577
15578         New module 'unicase/ulc-casecoll'.
15579         * lib/unicase.h (ulc_casecoll): New declaration.
15580         * lib/unicase/ulc-casecoll.c: New file.
15581         * modules/unicase/ulc-casecoll: New file.
15582
15583         New module 'unicase/ulc-casexfrm'.
15584         * lib/unicase.h (ulc_casexfrm): New declaration.
15585         * lib/unicase/ulc-casexfrm.c: New file.
15586         * modules/unicase/ulc-casexfrm: New file.
15587
15588 2009-03-09  Bruno Haible  <bruno@clisp.org>
15589
15590         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
15591         invocations.
15592
15593         * m4/mbscasecmp.m4: Remove file.
15594         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
15595         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
15596
15597         * m4/mbscasestr.m4: Remove file.
15598         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
15599         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
15600
15601         * m4/mbschr.m4: Remove file.
15602         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
15603         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
15604
15605         * m4/mbscspn.m4: Remove file.
15606         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
15607         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
15608
15609         * m4/mbslen.m4: Remove file.
15610         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
15611         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
15612
15613         * m4/mbsncasecmp.m4: Remove file.
15614         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
15615         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
15616
15617         * m4/mbsnlen.m4: Remove file.
15618         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
15619         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
15620
15621         * m4/mbspbrk.m4: Remove file.
15622         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
15623         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
15624
15625         * m4/mbspcasecmp.m4: Remove file.
15626         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
15627         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
15628
15629         * m4/mbsrchr.m4: Remove file.
15630         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
15631         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
15632
15633         * m4/mbssep.m4: Remove file.
15634         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
15635         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
15636
15637         * m4/mbsspn.m4: Remove file.
15638         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
15639         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
15640
15641         * m4/mbsstr.m4: Remove file.
15642         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
15643         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
15644
15645         * m4/mbstok_r.m4: Remove file.
15646         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
15647         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
15648
15649         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
15650
15651         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
15652         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
15653
15654         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
15655
15656 2009-03-08  Bruno Haible  <bruno@clisp.org>
15657
15658         Tests for module 'unicase/ulc-casecmp'.
15659         * modules/unicase/ulc-casecmp-tests: New file.
15660         * tests/unicase/test-ulc-casecmp1.sh: New file.
15661         * tests/unicase/test-ulc-casecmp2.sh: New file.
15662         * tests/unicase/test-ulc-casecmp.c: New file.
15663
15664         New module 'unicase/ulc-casecmp'.
15665         * lib/unicase.h (ulc_casecmp): New declaration.
15666         * lib/unicase/ulc-casecmp.c: New file.
15667         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
15668         'const SRC_UNIT *'.
15669         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
15670         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
15671         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
15672         * modules/unicase/ulc-casecmp: New file.
15673
15674         Tests for module 'unicase/u32-is-cased'.
15675         * modules/unicase/u32-is-cased-tests: New file.
15676         * tests/unicase/test-u32-is-cased.c: New file.
15677
15678         Tests for module 'unicase/u16-is-cased'.
15679         * modules/unicase/u16-is-cased-tests: New file.
15680         * tests/unicase/test-u16-is-cased.c: New file.
15681
15682         Tests for module 'unicase/u8-is-cased'.
15683         * modules/unicase/u8-is-cased-tests: New file.
15684         * tests/unicase/test-u8-is-cased.c: New file.
15685         * tests/unicase/test-is-cased.h: New file.
15686
15687         New module 'unicase/u32-is-cased'.
15688         * lib/unicase/u32-is-cased.c: New file.
15689         * modules/unicase/u32-is-cased: New file.
15690
15691         New module 'unicase/u16-is-cased'.
15692         * lib/unicase/u16-is-cased.c: New file.
15693         * modules/unicase/u16-is-cased: New file.
15694
15695         New module 'unicase/u8-is-cased'.
15696         * lib/unicase/u8-is-cased.c: New file.
15697         * lib/unicase/u-is-cased.h: New file.
15698         * modules/unicase/u8-is-cased: New file.
15699
15700         Tests for module 'unicase/u32-is-casefolded'.
15701         * modules/unicase/u32-is-casefolded-tests: New file.
15702         * tests/unicase/test-u32-is-casefolded.c: New file.
15703
15704         Tests for module 'unicase/u16-is-casefolded'.
15705         * modules/unicase/u16-is-casefolded-tests: New file.
15706         * tests/unicase/test-u16-is-casefolded.c: New file.
15707
15708         Tests for module 'unicase/u8-is-casefolded'.
15709         * modules/unicase/u8-is-casefolded-tests: New file.
15710         * tests/unicase/test-u8-is-casefolded.c: New file.
15711         * tests/unicase/test-is-casefolded.h: New file.
15712
15713         New module 'unicase/u32-is-casefolded'.
15714         * lib/unicase/u32-is-casefolded.c: New file.
15715         * modules/unicase/u32-is-casefolded: New file.
15716
15717         New module 'unicase/u16-is-casefolded'.
15718         * lib/unicase/u16-is-casefolded.c: New file.
15719         * modules/unicase/u16-is-casefolded: New file.
15720
15721         New module 'unicase/u8-is-casefolded'.
15722         * lib/unicase/u8-is-casefolded.c: New file.
15723         * modules/unicase/u8-is-casefolded: New file.
15724
15725         Tests for module 'unicase/u32-is-titlecase'.
15726         * modules/unicase/u32-is-titlecase-tests: New file.
15727         * tests/unicase/test-u32-is-titlecase.c: New file.
15728
15729         Tests for module 'unicase/u16-is-titlecase'.
15730         * modules/unicase/u16-is-titlecase-tests: New file.
15731         * tests/unicase/test-u16-is-titlecase.c: New file.
15732
15733         Tests for module 'unicase/u8-is-titlecase'.
15734         * modules/unicase/u8-is-titlecase-tests: New file.
15735         * tests/unicase/test-u8-is-titlecase.c: New file.
15736         * tests/unicase/test-is-titlecase.h: New file.
15737
15738         New module 'unicase/u32-is-titlecase'.
15739         * lib/unicase/u32-is-titlecase.c: New file.
15740         * modules/unicase/u32-is-titlecase: New file.
15741
15742         New module 'unicase/u16-is-titlecase'.
15743         * lib/unicase/u16-is-titlecase.c: New file.
15744         * modules/unicase/u16-is-titlecase: New file.
15745
15746         New module 'unicase/u8-is-titlecase'.
15747         * lib/unicase/u8-is-titlecase.c: New file.
15748         * modules/unicase/u8-is-titlecase: New file.
15749
15750         Tests for module 'unicase/u32-is-lowercase'.
15751         * modules/unicase/u32-is-lowercase-tests: New file.
15752         * tests/unicase/test-u32-is-lowercase.c: New file.
15753
15754         Tests for module 'unicase/u16-is-lowercase'.
15755         * modules/unicase/u16-is-lowercase-tests: New file.
15756         * tests/unicase/test-u16-is-lowercase.c: New file.
15757
15758         Tests for module 'unicase/u8-is-lowercase'.
15759         * modules/unicase/u8-is-lowercase-tests: New file.
15760         * tests/unicase/test-u8-is-lowercase.c: New file.
15761         * tests/unicase/test-is-lowercase.h: New file.
15762
15763         New module 'unicase/u32-is-lowercase'.
15764         * lib/unicase/u32-is-lowercase.c: New file.
15765         * modules/unicase/u32-is-lowercase: New file.
15766
15767         New module 'unicase/u16-is-lowercase'.
15768         * lib/unicase/u16-is-lowercase.c: New file.
15769         * modules/unicase/u16-is-lowercase: New file.
15770
15771         New module 'unicase/u8-is-lowercase'.
15772         * lib/unicase/u8-is-lowercase.c: New file.
15773         * modules/unicase/u8-is-lowercase: New file.
15774
15775         Tests for module 'unicase/u32-is-uppercase'.
15776         * modules/unicase/u32-is-uppercase-tests: New file.
15777         * tests/unicase/test-u32-is-uppercase.c: New file.
15778
15779         Tests for module 'unicase/u16-is-uppercase'.
15780         * modules/unicase/u16-is-uppercase-tests: New file.
15781         * tests/unicase/test-u16-is-uppercase.c: New file.
15782
15783         Tests for module 'unicase/u8-is-uppercase'.
15784         * modules/unicase/u8-is-uppercase-tests: New file.
15785         * tests/unicase/test-u8-is-uppercase.c: New file.
15786         * tests/unicase/test-is-uppercase.h: New file.
15787
15788         New module 'unicase/u32-is-uppercase'.
15789         * lib/unicase/u32-is-uppercase.c: New file.
15790         * modules/unicase/u32-is-uppercase: New file.
15791
15792         New module 'unicase/u16-is-uppercase'.
15793         * lib/unicase/u16-is-uppercase.c: New file.
15794         * modules/unicase/u16-is-uppercase: New file.
15795
15796         New module 'unicase/u8-is-uppercase'.
15797         * lib/unicase/u8-is-uppercase.c: New file.
15798         * modules/unicase/u8-is-uppercase: New file.
15799
15800         New module 'unicase/u32-is-invariant'.
15801         * lib/unicase/u32-is-invariant.c: New file.
15802         * modules/unicase/u32-is-invariant: New file.
15803
15804         New module 'unicase/u16-is-invariant'.
15805         * lib/unicase/u16-is-invariant.c: New file.
15806         * modules/unicase/u16-is-invariant: New file.
15807
15808         New module 'unicase/u8-is-invariant'.
15809         * lib/unicase/u8-is-invariant.c: New file.
15810         * lib/unicase/invariant.h: New file.
15811         * lib/unicase/u-is-invariant.h: New file.
15812         * modules/unicase/u8-is-invariant: New file.
15813
15814         Tests for module 'unicase/u32-casecoll'.
15815         * modules/unicase/u32-casecoll-tests: New file.
15816         * tests/unicase/test-u32-casecoll.c: New file.
15817
15818         Tests for module 'unicase/u16-casecoll'.
15819         * modules/unicase/u16-casecoll-tests: New file.
15820         * tests/unicase/test-u16-casecoll.c: New file.
15821
15822         Tests for module 'unicase/u8-casecoll'.
15823         * modules/unicase/u8-casecoll-tests: New file.
15824         * tests/unicase/test-u8-casecoll.c: New file.
15825
15826         New module 'unicase/u32-casecoll'.
15827         * lib/unicase/u32-casecoll.c: New file.
15828         * modules/unicase/u32-casecoll: New file.
15829
15830         New module 'unicase/u16-casecoll'.
15831         * lib/unicase/u16-casecoll.c: New file.
15832         * modules/unicase/u16-casecoll: New file.
15833
15834         New module 'unicase/u8-casecoll'.
15835         * lib/unicase/u8-casecoll.c: New file.
15836         * lib/unicase/u-casecoll.h: New file.
15837         * modules/unicase/u8-casecoll: New file.
15838
15839         New module 'unicase/u32-casexfrm'.
15840         * lib/unicase/u32-casexfrm.c: New file.
15841         * modules/unicase/u32-casexfrm: New file.
15842
15843         New module 'unicase/u16-casexfrm'.
15844         * lib/unicase/u16-casexfrm.c: New file.
15845         * modules/unicase/u16-casexfrm: New file.
15846
15847         New module 'unicase/u8-casexfrm'.
15848         * lib/unicase/u8-casexfrm.c: New file.
15849         * lib/unicase/u-casexfrm.h: New file.
15850         * modules/unicase/u8-casexfrm: New file.
15851
15852         Tests for module 'unicase/u32-casecmp'.
15853         * modules/unicase/u32-casecmp-tests: New file.
15854         * tests/unicase/test-u32-casecmp.c: New file.
15855
15856         Tests for module 'unicase/u16-casecmp'.
15857         * modules/unicase/u16-casecmp-tests: New file.
15858         * tests/unicase/test-u16-casecmp.c: New file.
15859
15860         Tests for module 'unicase/u8-casecmp'.
15861         * modules/unicase/u8-casecmp-tests: New file.
15862         * tests/unicase/test-u8-casecmp.c: New file.
15863         * tests/unicase/test-casecmp.h: New file.
15864
15865         New module 'unicase/u32-casecmp'.
15866         * lib/unicase/u32-casecmp.c: New file.
15867         * modules/unicase/u32-casecmp: New file.
15868
15869         New module 'unicase/u16-casecmp'.
15870         * lib/unicase/u16-casecmp.c: New file.
15871         * modules/unicase/u16-casecmp: New file.
15872
15873         New module 'unicase/u8-casecmp'.
15874         * lib/unicase/u8-casecmp.c: New file.
15875         * lib/unicase/u-casecmp.h: New file.
15876         * modules/unicase/u8-casecmp: New file.
15877
15878         Tests for module 'unicase/u32-casefold'.
15879         * modules/unicase/u32-casefold-tests: New file.
15880         * tests/unicase/test-u32-casefold.c: New file.
15881
15882         Tests for module 'unicase/u16-casefold'.
15883         * modules/unicase/u16-casefold-tests: New file.
15884         * tests/unicase/test-u16-casefold.c: New file.
15885
15886         Tests for module 'unicase/u8-casefold'.
15887         * modules/unicase/u8-casefold-tests: New file.
15888         * tests/unicase/test-u8-casefold.c: New file.
15889
15890         New module 'unicase/u32-casefold'.
15891         * lib/unicase/u32-casefold.c: New file.
15892         * modules/unicase/u32-casefold: New file.
15893
15894         New module 'unicase/u16-casefold'.
15895         * lib/unicase/u16-casefold.c: New file.
15896         * modules/unicase/u16-casefold: New file.
15897
15898         New module 'unicase/u8-casefold'.
15899         * lib/unicase/u8-casefold.c: New file.
15900         * lib/unicase/u-casefold.h: New file.
15901         * modules/unicase/u8-casefold: New file.
15902
15903         New module 'unicase/tocasefold'.
15904         * lib/unicase/casefold.h: New file.
15905         * lib/unicase/tocasefold.c: New file.
15906         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
15907         * modules/unicase/tocasefold: New file.
15908
15909         Tests for module 'unicase/u32-totitle'.
15910         * modules/unicase/u32-totitle-tests: New file.
15911         * tests/unicase/test-u32-totitle.c: New file.
15912
15913         Tests for module 'unicase/u16-totitle'.
15914         * modules/unicase/u16-totitle-tests: New file.
15915         * tests/unicase/test-u16-totitle.c: New file.
15916
15917         Tests for module 'unicase/u8-totitle'.
15918         * modules/unicase/u8-totitle-tests: New file.
15919         * tests/unicase/test-u8-totitle.c: New file.
15920
15921         New module 'unicase/u32-totitle'.
15922         * lib/unicase/u32-totitle.c: New file.
15923         * modules/unicase/u32-totitle: New file.
15924
15925         New module 'unicase/u16-totitle'.
15926         * lib/unicase/u16-totitle.c: New file.
15927         * modules/unicase/u16-totitle: New file.
15928
15929         New module 'unicase/u8-totitle'.
15930         * lib/unicase/u8-totitle.c: New file.
15931         * lib/unicase/u-totitle.h: New file.
15932         * modules/unicase/u8-totitle: New file.
15933
15934         Tests for module 'unicase/u32-tolower'.
15935         * modules/unicase/u32-tolower-tests: New file.
15936         * tests/unicase/test-u32-tolower.c: New file.
15937
15938         Tests for module 'unicase/u16-tolower'.
15939         * modules/unicase/u16-tolower-tests: New file.
15940         * tests/unicase/test-u16-tolower.c: New file.
15941
15942         Tests for module 'unicase/u8-tolower'.
15943         * modules/unicase/u8-tolower-tests: New file.
15944         * tests/unicase/test-u8-tolower.c: New file.
15945
15946         New module 'unicase/u32-tolower'.
15947         * lib/unicase/u32-tolower.c: New file.
15948         * modules/unicase/u32-tolower: New file.
15949
15950         New module 'unicase/u16-tolower'.
15951         * lib/unicase/u16-tolower.c: New file.
15952         * modules/unicase/u16-tolower: New file.
15953
15954         New module 'unicase/u8-tolower'.
15955         * lib/unicase/u8-tolower.c: New file.
15956         * modules/unicase/u8-tolower: New file.
15957
15958         Tests for module 'unicase/u32-toupper'.
15959         * modules/unicase/u32-toupper-tests: New file.
15960         * tests/unicase/test-u32-toupper.c: New file.
15961
15962         Tests for module 'unicase/u16-toupper'.
15963         * modules/unicase/u16-toupper-tests: New file.
15964         * tests/unicase/test-u16-toupper.c: New file.
15965
15966         Tests for module 'unicase/u8-toupper'.
15967         * modules/unicase/u8-toupper-tests: New file.
15968         * tests/unicase/test-u8-toupper.c: New file.
15969
15970         New module 'unicase/u32-toupper'.
15971         * lib/unicase/u32-toupper.c: New file.
15972         * modules/unicase/u32-toupper: New file.
15973
15974         New module 'unicase/u16-toupper'.
15975         * lib/unicase/u16-toupper.c: New file.
15976         * modules/unicase/u16-toupper: New file.
15977
15978         New module 'unicase/u8-toupper'.
15979         * lib/unicase/u8-toupper.c: New file.
15980         * modules/unicase/u8-toupper: New file.
15981
15982         New module 'unicase/u32-casemap'.
15983         * lib/unicase/u32-casemap.c: New file.
15984         * modules/unicase/u32-casemap: New file.
15985
15986         New module 'unicase/u16-casemap'.
15987         * lib/unicase/u16-casemap.c: New file.
15988         * modules/unicase/u16-casemap: New file.
15989
15990         New module 'unicase/u8-casemap'.
15991         * lib/unicase/unicasemap.h: New file.
15992         * lib/unicase/u8-casemap.c: New file.
15993         * lib/unicase/u-casemap.h: New file.
15994         * modules/unicase/u8-casemap: New file.
15995
15996         New module 'unicase/special-casing'.
15997         * lib/unicase/special-casing.h: New file.
15998         * lib/unicase/special-casing.c: New file.
15999         * lib/unicase/special-casing-table.gperf: New file, generated by
16000         gen-uni-tables.c.
16001         * modules/unicase/special-casing: New file.
16002
16003         Tests for module 'unicase/locale-language'.
16004         * modules/unicase/locale-language-tests: New file.
16005         * tests/unicase/test-locale-language.sh: New file.
16006         * tests/unicase/test-locale-language.c: New file.
16007
16008         New module 'unicase/locale-language'.
16009         * lib/unicase/locale-language.c: New file.
16010         * lib/unicase/locale-languages.gperf: New file.
16011         * modules/unicase/locale-language: New file.
16012
16013         Generate more tables for case conversion and case folding.
16014         * lib/gen-uni-tables.c (SCC_*): New enum items.
16015         (struct special_casing_rule): New type.
16016         (casing_rules, num_casing_rules, allocated_casing_rules): New
16017         variables.
16018         (add_casing_rule, fill_casing_rules): New functions.
16019         (struct casefold_rule): New type.
16020         (casefolding_rules, num_casefolding_rules,
16021         allocated_casefolding_rules): New variables.
16022         (fill_casefolding_rules): New function.
16023         (unicode_casefold): New variable.
16024         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
16025         sort_casing_rules, output_casing_rules): New functions.
16026         (main): Accept to more arguments: SpecialCasing.txt and
16027         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
16028         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
16029         Output mapping for casefolding.
16030
16031         * lib/unicase.h: Include stdbool.h, uninorm.h.
16032         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
16033         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
16034         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
16035         arguments.
16036         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
16037         resultp arguments.
16038         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
16039         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
16040         resultp arguments.
16041         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
16042         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
16043         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
16044         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
16045         declarations.
16046         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
16047
16048 2009-03-08  Bruno Haible  <bruno@clisp.org>
16049
16050         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16051         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
16052         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
16053         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16054
16055 2009-03-07  Bruno Haible  <bruno@clisp.org>
16056
16057         Adjust u*_normcmp, u*_normcoll API.
16058         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
16059         u16_normcoll, u32_normcoll): Change failure conventions.
16060         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
16061         errno and return -1.
16062         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
16063
16064 2009-03-07  Bruno Haible  <bruno@clisp.org>
16065
16066         Tests for module 'uninorm/u32-normcoll'.
16067         * modules/uninorm/u32-normcoll-tests: New file.
16068         * tests/uninorm/test-u32-normcoll.c: New file.
16069
16070         Tests for module 'uninorm/u16-normcoll'.
16071         * modules/uninorm/u16-normcoll-tests: New file.
16072         * tests/uninorm/test-u16-normcoll.c: New file.
16073
16074         Tests for module 'uninorm/u8-normcoll'.
16075         * modules/uninorm/u8-normcoll-tests: New file.
16076         * tests/uninorm/test-u8-normcoll.c: New file.
16077
16078 2009-03-07  Bruno Haible  <bruno@clisp.org>
16079
16080         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
16081         tests/uninorm/test-u32-normcmp.c.
16082         * tests/uninorm/test-u32-normcmp.c: Include it.
16083         (test_nonascii): New function, extracted from main. Add some more
16084         tests.
16085         (main): Invoke test_ascii and test_nonascii.
16086         * modules/uninorm/u32-normcmp-tests (Files): Add
16087         tests/uninorm/test-u32-normcmp.h.
16088         (Depends-on): Remove uninorm/u32-normcmp.
16089
16090         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
16091         tests/uninorm/test-u16-normcmp.c.
16092         * tests/uninorm/test-u16-normcmp.c: Include it.
16093         (test_nonascii): New function, extracted from main. Add some more
16094         tests.
16095         (main): Invoke test_ascii and test_nonascii.
16096         * modules/uninorm/u16-normcmp-tests (Files): Add
16097         tests/uninorm/test-u16-normcmp.h.
16098         (Depends-on): Remove uninorm/u16-normcmp.
16099
16100         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
16101         tests/uninorm/test-u8-normcmp.c.
16102         * tests/uninorm/test-u8-normcmp.c: Include it.
16103         (test_nonascii): New function, extracted from main. Add some more
16104         tests.
16105         (main): Invoke test_ascii and test_nonascii.
16106         * modules/uninorm/u8-normcmp-tests (Files): Add
16107         tests/uninorm/test-u8-normcmp.h.
16108         (Depends-on): Remove uninorm/u8-normcmp.
16109
16110 2009-03-07  Bruno Haible  <bruno@clisp.org>
16111
16112         New module 'uninorm/u32-normcoll'.
16113         * lib/uninorm/u32-normcoll.c: New file.
16114         * modules/uninorm/u32-normcoll: New file.
16115
16116         New module 'uninorm/u16-normcoll'.
16117         * lib/uninorm/u16-normcoll.c: New file.
16118         * modules/uninorm/u16-normcoll: New file.
16119
16120         New module 'uninorm/u8-normcoll'.
16121         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
16122         declarations.
16123         * lib/uninorm/u8-normcoll.c: New file.
16124         * lib/uninorm/u-normcoll.h: New file.
16125         * modules/uninorm/u8-normcoll: New file.
16126
16127         New module 'uninorm/u32-normxfrm'.
16128         * lib/uninorm/u32-normxfrm.c: New file.
16129         * modules/uninorm/u32-normxfrm: New file.
16130
16131         New module 'uninorm/u16-normxfrm'.
16132         * lib/uninorm/u16-normxfrm.c: New file.
16133         * modules/uninorm/u16-normxfrm: New file.
16134
16135         New module 'uninorm/u8-normxfrm'.
16136         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
16137         declarations.
16138         * lib/uninorm/u8-normxfrm.c: New file.
16139         * lib/uninorm/u-normxfrm.h: New file.
16140         * modules/uninorm/u8-normxfrm: New file.
16141
16142 2009-03-07  Bruno Haible  <bruno@clisp.org>
16143
16144         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
16145         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
16146         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
16147
16148 2009-03-07  Bruno Haible  <bruno@clisp.org>
16149
16150         New module 'memxfrm'.
16151         * lib/memxfrm.h: New file.
16152         * lib/memxfrm.c: New file.
16153         * modules/memxfrm: New file.
16154
16155 2009-03-07  Bruno Haible  <bruno@clisp.org>
16156
16157         New module 'memcmp2'.
16158         * lib/memcmp2.h: New file.
16159         * lib/memcmp2.c: New file.
16160         * modules/memcmp2: New file.
16161
16162 2009-03-07  Bruno Haible  <bruno@clisp.org>
16163
16164         Tests for module 'uninorm/decomposing-form'.
16165         * modules/uninorm/decomposing-form-tests: New file.
16166         * tests/uninorm/test-decomposing-form.c: New file.
16167
16168         New module 'uninorm/decomposing-form'.
16169         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
16170         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
16171         Add 'decomposing_variant' field.
16172         * lib/uninorm/decomposing-form.c: New file.
16173         * lib/uninorm/nfc.c (uninorm_nfc): Update.
16174         * lib/uninorm/nfd.c (uninorm_nfd): Update.
16175         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
16176         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
16177         * modules/uninorm/decomposing-form: New file.
16178         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
16179         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
16180
16181 2009-03-07  Bruno Haible  <bruno@clisp.org>
16182
16183         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
16184         strings.
16185
16186 2009-03-06  Bruno Haible  <bruno@clisp.org>
16187
16188         Tests for module 'uninorm/u32-normcmp'.
16189         * tests/uninorm/test-u32-normcmp.c: New file.
16190         * modules/uninorm/u32-normcmp-tests: New file.
16191
16192         Tests for module 'uninorm/u16-normcmp'.
16193         * tests/uninorm/test-u16-normcmp.c: New file.
16194         * modules/uninorm/u16-normcmp-tests: New file.
16195
16196         Tests for module 'uninorm/u8-normcmp'.
16197         * tests/uninorm/test-u8-normcmp.c: New file.
16198         * modules/uninorm/u8-normcmp-tests: New file.
16199
16200         New module 'uninorm/u32-normcmp'.
16201         * lib/uninorm/u32-normcmp.c: New file.
16202         * modules/uninorm/u32-normcmp: New file.
16203
16204         New module 'uninorm/u16-normcmp'.
16205         * lib/uninorm/u16-normcmp.c: New file.
16206         * modules/uninorm/u16-normcmp: New file.
16207
16208         New module 'uninorm/u8-normcmp'.
16209         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
16210         declarations.
16211         * lib/uninorm/u8-normcmp.c: New file.
16212         * lib/uninorm/u-normcmp.h: New file.
16213         * modules/uninorm/u8-normcmp: New file.
16214
16215 2009-03-06  Bruno Haible  <bruno@clisp.org>
16216
16217         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
16218         Reported by Eric Blake.
16219
16220 2009-03-06  Eric Blake  <ebb9@byu.net>
16221             Bruno Haible  <bruno@clisp.org>
16222
16223         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
16224         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
16225         condition.
16226         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16227         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
16228         condition.
16229         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
16230
16231 2009-03-06  Eric Blake  <ebb9@byu.net>
16232
16233         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
16234         to avoid compiler warnings.
16235         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
16236
16237 2009-03-05  Bruno Haible  <bruno@clisp.org>
16238
16239         * tests/test-ftell.c (main): Disable test beyond end of file on
16240         FreeMiNT.
16241         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16242
16243 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
16244
16245         * lib/filevercmp.c: Move hidden files up in ordering.
16246         * tests/test-filevercmp.c: Add tests for hidden files.
16247
16248 2009-03-04  Bruno Haible  <bruno@clisp.org>
16249
16250         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
16251         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
16252         AM_CFLAGS.
16253         Reported by Simon Josefsson.
16254
16255 2009-03-03  Bruno Haible  <bruno@clisp.org>
16256
16257         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
16258         Reported by Simon Josefsson.
16259
16260         * doc/ld-version-script.texi: Update node reference.
16261
16262 2009-03-03  Bruno Haible  <bruno@clisp.org>
16263
16264         * modules/visibility (License): Change to 'unlimited'.
16265         Suggested by Simon Josefsson.
16266
16267 2009-03-03  Jim Meyering  <meyering@redhat.com>
16268
16269         unlinkdir: cannot_unlink_dir may modify process state
16270         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
16271         it's neither thread-safe nor appropriate for use in a library.
16272
16273 2009-03-03  Eric Blake  <ebb9@byu.net>
16274
16275         test-closein: silence test under Darwin
16276         * tests/test-closein.sh: Ignore stderr from cat, since we don't
16277         care if it dies from EPIPE or EBADF.
16278
16279 2009-03-03  Bruno Haible  <bruno@clisp.org>
16280
16281         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
16282         earlier.
16283         * doc/visibility.texi: Fix @node and @section.
16284
16285 2009-03-03  Simon Josefsson  <simon@josefsson.org>
16286
16287         * doc/gnulib.texi: Link to sections for ld version script and
16288         visibility.
16289         * doc/visibility.texi: Add @node and @section.
16290         * modules/ld-version-script: New module.
16291         * m4/ld-version-script.m4: New file.
16292         * doc/ld-version-script.texi: New file.
16293
16294 2009-03-02  David Lutterkort  <lutter@redhat.com>
16295
16296         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
16297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16298
16299 2009-03-02  Bruno Haible  <bruno@clisp.org>
16300
16301         * doc/visibility.texi: Mention libtool's -export-symbols option.
16302
16303 2009-03-02  Jim Meyering  <meyering@redhat.com>
16304
16305         announce-gen: new option: --no-print-checksums
16306         * build-aux/announce-gen (usage): Describe it.
16307         (print_checksums): Print a newline here, not in the [*] footnote.
16308         (main): Honor it.
16309
16310 2009-03-01  Bruno Haible  <bruno@clisp.org>
16311
16312         Use socklen_t in the native Windows replacements prototypes.
16313         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
16314         instead of 'int'.
16315         * lib/getsockopt.c (rpl_getsockopt): Likewise.
16316         * lib/setsockopt.c (rpl_setsockopt): Likewise.
16317         * modules/getsockopt (Depends-on): Add socklen.
16318         * modules/setsockopt (Depends-on): Add socklen.
16319
16320 2009-03-01  Bruno Haible  <bruno@clisp.org>
16321
16322         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
16323         least 4.2.
16324
16325 2009-03-01  Eric Blake  <ebb9@byu.net>
16326             Bruno Haible  <bruno@clisp.org>
16327
16328         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
16329         error messages.
16330         * lib/wait-process.c (wait_subprocess): Omit error message about
16331         deadly signal sent to the child of termsigp != NULL.
16332
16333 2009-03-01  Eric Blake  <ebb9@byu.net>
16334
16335         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
16336
16337 2009-03-01  Bruno Haible  <bruno@clisp.org>
16338
16339         Avoid a gcc warning.
16340         * tests/test-sched.c (b): Make global.
16341         Reported by Eric Blake.
16342
16343 2009-01-19  Martin Lambers  <marlam@marlam.de>
16344
16345         Provide POSIX semantics for socket timeout options on W32.
16346         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
16347         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
16348         * modules/setsockopt: Depend on sys_time module for struct timeval.
16349         * modules/getsockopt: Depend on sys_time module for struct timeval.
16350
16351 2009-03-01  Simon Josefsson  <simon@josefsson.org>
16352
16353         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
16354         __USE_GNU, for consistency with netdb.in.h.
16355         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16356
16357 2009-03-01  Bruno Haible  <bruno@clisp.org>
16358
16359         More support for FreeMiNT.
16360         * lib/fseeko.c (rpl_fseeko): Complete last commit.
16361         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16362
16363 2009-03-01  Bruno Haible  <bruno@clisp.org>
16364
16365         More support for FreeMiNT.
16366         * lib/fpurge.c (fpurge): Correct last commit.
16367         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16368
16369 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16370
16371         Fix unportable awk script in vc-list-files.
16372         * build-aux/vc-list-files: In the replacement awk script, use
16373         substr with a second argument of 1, not zero.
16374         Report by Simon Josefsson.
16375
16376 2009-02-28  Bruno Haible  <bruno@clisp.org>
16377
16378         More support for FreeMiNT.
16379         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
16380         to FreeMiNT today.
16381         * lib/fwriting.c (fwriting): Likewise.
16382         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
16383
16384 2009-02-28  Bruno Haible  <bruno@clisp.org>
16385
16386         * tests/test-freadseek.c (main): Disable test beyond end of file on
16387         FreeMiNT.
16388         * tests/test-ftello.c (main): Likewise.
16389         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
16390
16391 2009-02-28  Bruno Haible  <bruno@clisp.org>
16392
16393         Add tentative support for FreeMiNT.
16394         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
16395         * lib/fpurge.c (fpurge): Likewise.
16396         * lib/freadable.c (freadable): Likewise.
16397         * lib/freading.c (freading): Likewise.
16398         * lib/freadptr.c (freadptr): Likewise.
16399         * lib/freadseek.c (freadptrinc): Likewise.
16400         * lib/fseeko.c (rpl_fseeko): Likewise.
16401         * lib/fseterr.c (fseterr): Likewise.
16402         * lib/fwritable.c (fwritable): Likewise.
16403         * lib/fwriting.c (fwriting): Likewise.
16404         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
16405         Hourihane.
16406         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16407
16408 2009-02-28  Bruno Haible  <bruno@clisp.org>
16409
16410         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
16411         SIGCHLD.
16412         Reported by Jim Meyering.
16413
16414 2009-02-28  Bruno Haible  <bruno@clisp.org>
16415
16416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
16417         Mention the results of these tests on various platforms.
16418         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
16419         order.
16420         * doc/posix-functions/printf.texi: Likewise.
16421         * doc/posix-functions/snprintf.texi: Likewise.
16422         * doc/posix-functions/sprintf.texi: Likewise.
16423         * doc/posix-functions/vfprintf.texi: Likewise.
16424         * doc/posix-functions/vprintf.texi: Likewise.
16425         * doc/posix-functions/vsnprintf.texi: Likewise.
16426         * doc/posix-functions/vsprintf.texi: Likewise.
16427         * doc/glibc-functions/obstack_printf.texi: Likewise.
16428         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16429
16430 2009-02-28  Bruno Haible  <bruno@clisp.org>
16431
16432         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
16433         Reported by Loïc Minier <lool@dooz.org>.
16434
16435 2009-02-27  Bruno Haible  <bruno@clisp.org>
16436
16437         * gnulib-tool (func_import): Make the sed expression used to create the
16438         sed script for updating the .gitignore file POSIX compliant.
16439         Reported by Eric Blake.
16440
16441 2009-02-27  Bruno Haible  <bruno@clisp.org>
16442
16443         * gnulib-tool (sed): Don't alias as "sed --posix".
16444         Reported by Eric Blake.
16445
16446 2009-02-27  Bruno Haible  <bruno@clisp.org>
16447
16448         Avoid test link errors.
16449         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
16450         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
16451         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
16452         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
16453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16454
16455 2009-02-27  Bruno Haible  <bruno@clisp.org>
16456
16457         Avoid spurious "(cached)" in configure output.
16458         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
16459         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
16460         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16461         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16462         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16463         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16464         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16465         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16466         Reported by Eric Blake.
16467
16468 2009-02-27  Eric Blake  <ebb9@byu.net>
16469
16470         printf: fix regression in previous patch
16471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
16472
16473 2009-02-27  Bruno Haible  <bruno@clisp.org>
16474
16475         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
16476         value.
16477         * lib/stdint.in.h: Likewise.
16478         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
16479
16480 2009-02-27  Eric Blake  <ebb9@byu.net>
16481
16482         doc: mention more functions added in cygwin 1.7.0
16483         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
16484         addition.
16485         * doc/posix-functions/open_wmemstream.texi: Likewise.
16486         * doc/posix-functions/wcsnlen.texi: Likewise.
16487         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16488         * doc/posix-functions/wcstod.texi: Likewise.
16489         * doc/posix-functions/wcstof.texi: Likewise.
16490         * doc/posix-functions/wcstoimax.texi: Likewise.
16491         * doc/posix-functions/wcstok.texi: Likewise.
16492         * doc/posix-functions/wcstoumax.texi: Likewise.
16493
16494         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
16495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
16496         * doc/posix-functions/fprintf.texi: Update.
16497         * doc/posix-functions/printf.texi: Update.
16498         * doc/posix-functions/snprintf.texi: Update.
16499         * doc/posix-functions/sprintf.texi: Update.
16500         * doc/posix-functions/vfprintf.texi: Update.
16501         * doc/posix-functions/vprintf.texi: Update.
16502         * doc/posix-functions/vsnprintf.texi: Update.
16503         * doc/posix-functions/vsprintf.texi: Update.
16504         * doc/glibc-functions/obstack_printf.texi: Update.
16505         * doc/glibc-functions/obstack_vprintf.texi: Update.
16506
16507 2009-02-26  Eric Blake  <ebb9@byu.net>
16508
16509         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
16510         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
16511         compilation bug by using runtime conversion.
16512         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
16513         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
16514         * modules/ceill-tests (Files): Use nan.h.
16515         * modules/floorl-tests (Files): Likewise.
16516         * modules/frexpl-tests (Files): Likewise.
16517         * modules/isnanl-tests (Files): Likewise.
16518         * modules/ldexpl-tests (Files): Likewise.
16519         * modules/roundl-tests (Files): Likewise.
16520         * modules/truncl-tests (Files): Likewise.
16521         * tests/test-ceill.c (main): Use a working NaN.
16522         * tests/test-floorl.c (main): Likewise.
16523         * tests/test-frexpl.c (main): Likewise.
16524         * tests/test-isnan.c (test_long_double): Likewise.
16525         * tests/test-isnanl.h (main): Likewise.
16526         * tests/test-ldexpl.h (main): Likewise.
16527         * tests/test-roundl.h (main): Likewise.
16528         * tests/test-truncl.h (main): Likewise.
16529         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
16530
16531 2009-02-26  Eric Blake  <ebb9@byu.net>
16532             Bruno Haible  <bruno@clisp.org>
16533
16534         Work around a *printf bug with %ls on Solaris.
16535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
16536         precision is specified, sprintf stops converting the wide string
16537         argument when the number of bytes that have been produced by this
16538         conversion equals or exceeds the precision.
16539         * doc/posix-functions/fprintf.texi: Update.
16540         * doc/posix-functions/printf.texi: Update.
16541         * doc/posix-functions/snprintf.texi: Update.
16542         * doc/posix-functions/sprintf.texi: Update.
16543         * doc/posix-functions/vfprintf.texi: Update.
16544         * doc/posix-functions/vprintf.texi: Update.
16545         * doc/posix-functions/vsnprintf.texi: Update.
16546         * doc/posix-functions/vsprintf.texi: Update.
16547         * doc/glibc-functions/obstack_printf.texi: Update.
16548         * doc/glibc-functions/obstack_vprintf.texi: Update.
16549
16550 2009-02-26  Eric Blake  <ebb9@byu.net>
16551
16552         stdlib: favor compiler check of random.h
16553         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
16554         to avoid an ObjC random.h installed by Swarm.
16555
16556 2009-02-26  Bruno Haible  <bruno@clisp.org>
16557
16558         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
16559         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
16560         Reported by Gary V. Vaughan <gary@gnu.org>.
16561
16562 2009-02-26  Bruno Haible  <bruno@clisp.org>
16563
16564         Fix *printf behaviour regarding the %ls directive.
16565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
16566         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
16567         NEED_PRINTF_DIRECTIVE_LS.
16568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
16569         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16571         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
16572         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
16573         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
16574         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
16575         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16578         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16579         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
16580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16583         * doc/posix-functions/fprintf.texi: Update.
16584         * doc/posix-functions/printf.texi: Update.
16585         * doc/posix-functions/snprintf.texi: Update.
16586         * doc/posix-functions/sprintf.texi: Update.
16587         * doc/posix-functions/vfprintf.texi: Update.
16588         * doc/posix-functions/vprintf.texi: Update.
16589         * doc/posix-functions/vsnprintf.texi: Update.
16590         * doc/posix-functions/vsprintf.texi: Update.
16591         * doc/glibc-functions/obstack_printf.texi: Update.
16592         * doc/glibc-functions/obstack_vprintf.texi: Update.
16593         Reported by Eric Blake.
16594
16595 2009-02-25  Bruno Haible  <bruno@clisp.org>
16596
16597         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
16598         with known value.
16599         Reported by Gary V. Vaughan <gary@gnu.org>.
16600
16601 2009-02-25  Bruno Haible  <bruno@clisp.org>
16602
16603         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
16604         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
16605         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
16606         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
16607         Reported by Gary V. Vaughan <gary@gnu.org>.
16608
16609 2009-02-25  Bruno Haible  <bruno@clisp.org>
16610
16611         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
16612         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
16613         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
16614         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
16615         Reported by Gary V. Vaughan <gary@gnu.org>.
16616
16617 2009-02-25  Eric Blake  <ebb9@byu.net>
16618
16619         tests: skip fseek/ftell tests if ungetc is broken
16620         * m4/ungetc.m4: New file.
16621         * modules/fseek-tests: Split test, so ungetc dependency is
16622         separate from rest of test.
16623         * modules/fseeko-tests: Likewise.
16624         * modules/ftell-tests: Likewise.
16625         * modules/ftello-tests: Likewise.
16626         * tests/test-fseek.c (main): Isolate ungetc dependency.
16627         * tests/test-fseeko.c (main): Likewise.
16628         * tests/test-ftell.c (main): Likewise.
16629         * tests/test-ftello.c (main): Likewise.
16630         * tests/test-fseek2.sh: New file.
16631         * tests/test-fseeko2.sh: Likewise.
16632         * tests/test-ftell2.sh: Likewise.
16633         * tests/test-ftello2.sh: Likewise.
16634
16635 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
16636
16637         test-getaddrinfo: fix usage of skip return code 77
16638         * tests/test-gettaddrinfo.c: Return skip code 77 only
16639         for first occurance of skip (4x77 is not 77)
16640
16641 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
16642
16643         strtod: avoid C99 decl-after-statement
16644         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
16645
16646 2009-02-24  Eric Blake  <ebb9@byu.net>
16647
16648         strtod: detect HP-UX 11.31 bug
16649         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
16650         Reported by Gary V. Vaughan.
16651
16652 2009-02-23  Bruno Haible  <bruno@clisp.org>
16653
16654         Fix invalid read past end of memory block.
16655         * lib/vasnprintf.c (DCHAR_SET): Define.
16656         (local_wcslen): Define only when needed.
16657         (local_strnlen, local_wcsnlen): New functions.
16658         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
16659         directives that involve a conversion ourselves.
16660         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
16661         wcsnlen, mbrtowc, wcrtomb.
16662         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
16663         * tests/test-vasprintf-posix.c (test_function): Likewise.
16664         * tests/test-snprintf-posix.h (test_function): Likewise.
16665         * tests/test-sprintf-posix.h (test_function): Likewise.
16666         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16667
16668 2009-02-22  Bruno Haible  <bruno@clisp.org>
16669
16670         Implement new clarified decomposition of Hangul syllables.
16671         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
16672         of type LTV, return only a pairwise decomposition.
16673         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
16674         Likewise.
16675         * tests/uninorm/test-decomposition.c (main): Updated expected result.
16676         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
16677         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
16678
16679 2009-02-22  Bruno Haible  <bruno@clisp.org>
16680
16681         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
16682         zero-length results and shrink excess allocated memory.
16683         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
16684         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
16685         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
16686         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
16687         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
16688         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
16689         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
16690         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
16691         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
16692         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
16693         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
16694         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
16695
16696 2009-02-21  Bruno Haible  <bruno@clisp.org>
16697
16698         * doc/gnulib.texi: Include safe-alloc.texi earlier.
16699         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
16700         spaces after a period. Put a space between a macro name and its
16701         argument list. Trivial rewordings.
16702         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
16703         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
16704         (main): Return 0 explicitly.
16705
16706 2009-02-21  Bruno Haible  <bruno@clisp.org>
16707
16708         Tests for module 'uninorm/filter'.
16709         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
16710         * modules/uninorm/filter-tests: New file.
16711
16712         New module 'uninorm/filter'.
16713         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
16714         uninorm_filter_flush, uninorm_filter_free): New declarations.
16715         * lib/uninorm/uninorm-filter.c: New file.
16716         * modules/uninorm/filter: New file.
16717
16718 2009-02-21  Bruno Haible  <bruno@clisp.org>
16719
16720         Tests for module 'uninorm/nfkc'.
16721         * tests/uninorm/test-nfkc.c: New file.
16722         * tests/uninorm/test-u8-nfkc.c: New file.
16723         * tests/uninorm/test-u16-nfkc.c: New file.
16724         * tests/uninorm/test-u32-nfkc.c: New file.
16725         * tests/uninorm/test-u32-nfkc-big.sh: New file.
16726         * tests/uninorm/test-u32-nfkc-big.c: New file.
16727         * modules/uninorm/nfkc-tests: New file.
16728
16729         New module 'uninorm/nfkc'.
16730         * lib/uninorm/nfkc.c: New file.
16731         * modules/uninorm/nfkc: New file.
16732
16733         Tests for module 'uninorm/nfkd'.
16734         * tests/uninorm/test-nfkd.c: New file.
16735         * tests/uninorm/test-u8-nfkd.c: New file.
16736         * tests/uninorm/test-u16-nfkd.c: New file.
16737         * tests/uninorm/test-u32-nfkd.c: New file.
16738         * tests/uninorm/test-u32-nfkd-big.sh: New file.
16739         * tests/uninorm/test-u32-nfkd-big.c: New file.
16740         * modules/uninorm/nfkd-tests: New file.
16741
16742         New module 'uninorm/nfkd'.
16743         * lib/uninorm/nfkd.c: New file.
16744         * modules/uninorm/nfkd: New file.
16745
16746         Tests for module 'uninorm/nfc'.
16747         * tests/uninorm/test-nfc.c: New file.
16748         * tests/uninorm/test-u8-nfc.c: New file.
16749         * tests/uninorm/test-u16-nfc.c: New file.
16750         * tests/uninorm/test-u32-nfc.c: New file.
16751         * tests/uninorm/test-u32-nfc-big.sh: New file.
16752         * tests/uninorm/test-u32-nfc-big.c: New file.
16753         * modules/uninorm/nfc-tests: New file.
16754
16755         New module 'uninorm/nfc'.
16756         * lib/uninorm/nfc.c: New file.
16757         * modules/uninorm/nfc: New file.
16758
16759         Tests for module 'uninorm/nfd'.
16760         * tests/uninorm/test-nfd.c: New file.
16761         * tests/uninorm/test-u8-nfd.c: New file.
16762         * tests/uninorm/test-u16-nfd.c: New file.
16763         * tests/uninorm/test-u32-nfd.c: New file.
16764         * tests/uninorm/test-u32-nfd-big.sh: New file.
16765         * tests/uninorm/test-u32-nfd-big.c: New file.
16766         * tests/uninorm/test-u32-normalize-big.h: New file.
16767         * tests/uninorm/test-u32-normalize-big.c: New file.
16768         * tests/uninorm/NormalizationTest.txt: New file, created from
16769         Unicode 5.1.0 NormalizationTest.txt.
16770         * modules/uninorm/nfd-tests: New file.
16771
16772         New module 'uninorm/nfd'.
16773         * lib/uninorm/nfd.c: New file.
16774         * modules/uninorm/nfd: New file.
16775
16776         New module 'uninorm/u32-normalize'.
16777         * lib/uninorm/u32-normalize.c: New file.
16778         * modules/uninorm/u32-normalize: New file.
16779
16780         New module 'uninorm/u16-normalize'.
16781         * lib/uninorm/u16-normalize.c: New file.
16782         * modules/uninorm/u16-normalize: New file.
16783
16784         New module 'uninorm/u8-normalize'.
16785         * lib/uninorm/u8-normalize.c: New file.
16786         * lib/uninorm/normalize-internal.h: New file.
16787         * lib/uninorm/u-normalize-internal.h: New file.
16788         * modules/uninorm/u8-normalize: New file.
16789
16790         New module 'uninorm/decompose-internal'.
16791         * lib/uninorm/decompose-internal.c: New file.
16792         * modules/uninorm/decompose-internal: New file.
16793
16794         Tests for module 'uninorm/composition'.
16795         * tests/uninorm/test-composition.c: New file.
16796         * modules/uninorm/composition-tests: New file.
16797
16798         New module 'uninorm/composition'.
16799         * lib/uninorm/composition.c: New file.
16800         * lib/uninorm/composition-table.gperf: New file, generated by
16801         gen-uni-tables.
16802         * modules/uninorm/composition: New file.
16803
16804         Tests for module 'uninorm/compat-decomposition'.
16805         * tests/uninorm/test-compat-decomposition.c: New file.
16806         * modules/uninorm/compat-decomposition-tests: New file.
16807
16808         New module 'uninorm/compat-decomposition'.
16809         * lib/uninorm/decompose-internal.h: New file.
16810         * lib/uninorm/compat-decomposition.c: New file.
16811         * modules/uninorm/compat-decomposition: New file.
16812
16813         Tests for module 'uninorm/canonical-decomposition'.
16814         * tests/uninorm/test-canonical-decomposition.c: New file.
16815         * modules/uninorm/canonical-decomposition-tests: New file.
16816
16817         New module 'uninorm/canonical-decomposition'.
16818         * lib/uninorm/canonical-decomposition.c: New file.
16819         * modules/uninorm/canonical-decomposition: New file.
16820
16821         Tests for module 'uninorm/decomposition'.
16822         * tests/uninorm/test-decomposition.c: New file.
16823         * modules/uninorm/decomposition-tests: New file.
16824
16825         New module 'uninorm/decomposition'.
16826         * lib/uninorm/decomposition.c: New file.
16827         * modules/uninorm/decomposition: New file.
16828
16829         New module 'uninorm/decomposition-table'.
16830         * lib/uninorm/decomposition-table.h: New file.
16831         * lib/uninorm/decomposition-table.c: New file.
16832         * lib/uninorm/decomposition-table1.h: New file, generated by
16833         gen-uni-tables.
16834         * lib/uninorm/decomposition-table2.h: New file, generated by
16835         gen-uni-tables.
16836         * modules/uninorm/decomposition-table: New file.
16837
16838         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
16839         (UC_DECOMP_*): New enumeration items.
16840         (get_decomposition): New function.
16841         (struct decomp_table): New type.
16842         (output_decomposition, output_decomposition_tables): New functions.
16843         (unicode_composition_exclusions): New variable.
16844         (fill_composition_exclusions, debug_output_composition_tables): New
16845         functions.
16846         (main): Accept one more argument. Invoke fill_composition_exclusions.
16847         Output decomposition and composition tables.
16848
16849         New module 'uninorm/base'.
16850         * lib/uninorm.h: New file.
16851         * lib/unictype.h: Update comment.
16852         * modules/uninorm/base: New file.
16853
16854 2009-02-21  David Lutterkort  <lutter@redhat.com>
16855
16856         Tests for module 'safe-alloc'.
16857         * tests/test-safe-alloc.c: New file.
16858         * modules/safe-alloc-tests: New file.
16859
16860         New module 'safe-alloc'.
16861         * lib/safe-alloc.h: New file.
16862         * lib/safe-alloc.c: New file.
16863         * m4/safe-alloc.m4: New file.
16864         * modules/safe-alloc: New file.
16865         * doc/safe-alloc.texi: New file.
16866         * doc/gnulib.texi: Include it.
16867         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16868         safe-alloc.
16869
16870 2009-02-18  Bruno Haible  <bruno@clisp.org>
16871
16872         Fix link error on non-glibc systems.
16873         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
16874         variable.
16875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16876
16877 2009-02-18  Jim Meyering  <meyering@redhat.com>
16878
16879         fts: avoid used-uninitialized error due to recent change
16880         * lib/fts.c (fts_read): Guard uses of the new member,
16881         parent->fts_n_dirs_remaining, since it's not relevant for
16882         the parent of a directory specified on the command-line.
16883
16884 2009-02-17  James Youngman  <jay@gnu.org>
16885             Bruno Haible  <bruno@clisp.org>
16886
16887         * m4/include_next.m4: Reformulate comment.
16888
16889 2009-02-16  Jim Meyering  <meyering@redhat.com>
16890
16891         fts: add #if guards so that the fts_lgpl module still builds
16892         * lib/fts.c: Guard just-added hash-table-using parts with
16893         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
16894         Reported by Simon Josefsson.
16895
16896 2009-02-15  Bruno Haible  <bruno@clisp.org>
16897
16898         * modules/array-mergesort-tests: New file.
16899         * tests/test-array-mergesort.c: New file.
16900
16901         New module 'array-mergesort'.
16902         * modules/array-mergesort: New file.
16903         * lib/array-mergesort.h: New file.
16904
16905 2009-02-15  Bruno Haible  <bruno@clisp.org>
16906
16907         Fix 2009-02-07 commit.
16908         * lib/gen-uni-tables.c (output_predicate, output_category,
16909         output_combclass, output_bidi_category, output_decimal_digit,
16910         output_digit, output_numeric, output_mirror, output_scripts,
16911         output_ident_category, output_simple_mapping): Fix format directives.
16912         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
16913
16914 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
16915
16916         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
16917         fixes are available from IBM.
16918
16919 2009-02-13  Jim Meyering  <meyering@redhat.com>
16920
16921         fts: arrange not to stat non-directories in more cases
16922         This makes GNU find (when it doesn't need to stat each file)
16923         *much* more efficient at traversing reiserfs file systems.
16924         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
16925         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
16926         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
16927         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
16928         (leaf_optimization_applies): New function.
16929         (LCO_hash, LCO_compare): New helper functions.
16930         (link_count_optimize_ok): New function.
16931         (fts_stat): Initialize new member (if dir).
16932         (fts_read): Decrement parent's fts_n_dirs_remaining count if
16933         we've just stat'ed a directory.  Skip the stat call when possible.
16934         ---
16935         Note this AFS-related exchange:
16936         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
16937         and note find's pioctl call in find/fstype.c.
16938         But that is necessary only if you want to enable the
16939         optimization for AFS, and for now, I don't.
16940
16941         fts: move a function definition "up" (no semantic change)
16942         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
16943         "up" to precede upcoming use of a related function.
16944
16945 2009-02-11  Jim Meyering  <meyering@redhat.com>
16946
16947         fts: correct internal computation of nlinks (optimization-related)
16948         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
16949         whether the current entry is a directory, so don't test it.
16950
16951 2009-02-10  Bruno Haible  <bruno@clisp.org>
16952
16953         Tests for module 'uniwbrk/ulc-wordbreaks'.
16954         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
16955         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
16956         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
16957
16958         Tests for module 'uniwbrk/u32-wordbreaks'.
16959         * modules/uniwbrk/u32-wordbreaks-tests: New file.
16960         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
16961
16962         Tests for module 'uniwbrk/u16-wordbreaks'.
16963         * modules/uniwbrk/u16-wordbreaks-tests: New file.
16964         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
16965
16966         Tests for module 'uniwbrk/u8-wordbreaks'.
16967         * modules/uniwbrk/u8-wordbreaks-tests: New file.
16968         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
16969
16970 2009-02-10  Bruno Haible  <bruno@clisp.org>
16971
16972         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
16973         property.
16974         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
16975         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
16976         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
16977
16978 2009-02-10  Simon Josefsson  <simon@josefsson.org>
16979
16980         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
16981         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
16982
16983 2009-02-10  Bruno Haible  <bruno@clisp.org>
16984
16985         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
16986         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
16987         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
16988         * lib/unilbrk/u8-possible-linebreaks.c: Update.
16989         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
16990         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
16991
16992 2009-02-09  Simon Josefsson  <simon@josefsson.org>
16993
16994         * lib/sockets.h (gl_fd_to_handle): New function.
16995
16996         * tests/test-sockets.c: Call gl_fd_to_handle.
16997
16998 2009-02-09  Bruno Haible  <bruno@clisp.org>
16999
17000         * doc/havelib.texi: Document the conventions on bi-arch systems.
17001
17002 2009-02-08  Bruno Haible  <bruno@clisp.org>
17003
17004         Document the AC_LIB_LINKFLAGS macro.
17005         * doc/havelib.texi: New file, mostly written on 2005-05-24.
17006         * doc/gnulib.texi: Include it.
17007
17008 2009-02-08  Bruno Haible  <bruno@clisp.org>
17009
17010         Fix wrong order of sections, compared to TOC.
17011         * doc/gnulib.texi: Include relocatable-maint.texi after the
17012         "Regular expressions" node, not before.
17013
17014 2009-02-08  Bruno Haible  <bruno@clisp.org>
17015
17016         Tests for module 'unicase/totitle'.
17017         * modules/unicase/totitle-tests: New file.
17018
17019         Tests for module 'unicase/tolower'.
17020         * modules/unicase/tolower-tests: New file.
17021
17022         Tests for module 'unicase/toupper'.
17023         * modules/unicase/toupper-tests: New file.
17024         * tests/unicase/test-mapping-part1.h: New file.
17025         * tests/unicase/test-mapping-part2.h: New file.
17026
17027         New module 'unicase/totitle'.
17028         * modules/unicase/totitle: New file.
17029         * lib/unicase/totitle.c: New file.
17030
17031         New module 'unicase/tolower'.
17032         * modules/unicase/tolower: New file.
17033         * lib/unicase/tolower.c: New file.
17034
17035         New module 'unicase/toupper'.
17036         * modules/unicase/toupper: New file.
17037         * lib/unicase/toupper.c: New file.
17038         * lib/unicase/simple-mapping.h: New file.
17039
17040         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
17041         (mapping_table): New structure.
17042         (output_simple_mapping): New function.
17043         (main): Invoke output_simple_mapping_test and output_simple_mapping.
17044         * modules/gen-uni-tables (Description): Update.
17045         * lib/unicase/toupper.h: New file, automatically generated by
17046         gen-uni-tables.
17047         * lib/unicase/tolower.h: New file, automatically generated by
17048         gen-uni-tables.
17049         * lib/unicase/totitle.h: New file, automatically generated by
17050         gen-uni-tables.
17051         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
17052         gen-uni-tables.
17053         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
17054         gen-uni-tables.
17055         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
17056         gen-uni-tables.
17057
17058         New module 'unicase/base'.
17059         * modules/unicase/base: New file.
17060         * lib/unicase.h: New file.
17061
17062 2009-02-08  Bruno Haible  <bruno@clisp.org>
17063
17064         New module 'uniwbrk/ulc-wordbreaks'.
17065         * modules/uniwbrk/ulc-wordbreaks: New file.
17066         * lib/uniwbrk/ulc-wordbreaks.c: New file.
17067
17068         New module 'uniwbrk/u32-wordbreaks'.
17069         * modules/uniwbrk/u32-wordbreaks: New file.
17070         * lib/uniwbrk/u32-wordbreaks.c: New file.
17071
17072         New module 'uniwbrk/u16-wordbreaks'.
17073         * modules/uniwbrk/u16-wordbreaks: New file.
17074         * lib/uniwbrk/u16-wordbreaks.c: New file.
17075
17076         New module 'uniwbrk/u8-wordbreaks'.
17077         * modules/uniwbrk/u8-wordbreaks: New file.
17078         * lib/uniwbrk/u8-wordbreaks.c: New file.
17079         * lib/uniwbrk/u-wordbreaks.h: New file.
17080
17081         New module 'uniwbrk/table'.
17082         * modules/uniwbrk/table: New file.
17083         * lib/uniwbrk/wbrktable.h: New file.
17084         * lib/uniwbrk/wbrktable.c: New file.
17085
17086         New module 'uniwbrk/wordbreak-property'.
17087         * modules/uniwbrk/wordbreak-property: New file.
17088         * lib/uniwbrk/wordbreak-property.c: New file.
17089
17090         * lib/gen-uni-tables.c (WBP_*): New enum items.
17091         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
17092         (unicode_org_wbp): New variable.
17093         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
17094         New functions.
17095         (wbp_table): New structure.
17096         (output_wbp, output_wbrk_tables): New functions.
17097         (main): Accept additional argument. Invoke fill_org_wbp,
17098         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
17099         output_wbrk_tables.
17100         * modules/gen-uni-tables (Description): Update.
17101         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
17102         gen-uni-tables.
17103
17104         New module 'uniwbrk/base'.
17105         * modules/uniwbrk/base: New file.
17106         * lib/uniwbrk.h: New file.
17107
17108 2009-02-08  Bruno Haible  <bruno@clisp.org>
17109
17110         Update to Unicode 5.1.0.
17111         * lib/gen-uni-tables.c (is_property_alphabetic): Include
17112         U+2185..U+2188.
17113         (is_property_default_ignorable_code_point): Don't include characters
17114         of category Cc or Cs and not-a-characters.
17115         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
17116         U+0D79, U+109E, U+109F, U+A60C.
17117         * lib/unictype/bidi_of.h: Regenerated.
17118         * lib/unictype/blocks.h: Regenerated.
17119         * lib/unictype/categ_C.h: Regenerated.
17120         * lib/unictype/categ_Cf.h: Regenerated.
17121         * lib/unictype/categ_Cn.h: Regenerated.
17122         * lib/unictype/categ_L.h: Regenerated.
17123         * lib/unictype/categ_Ll.h: Regenerated.
17124         * lib/unictype/categ_Lm.h: Regenerated.
17125         * lib/unictype/categ_Lo.h: Regenerated.
17126         * lib/unictype/categ_Lu.h: Regenerated.
17127         * lib/unictype/categ_M.h: Regenerated.
17128         * lib/unictype/categ_Mc.h: Regenerated.
17129         * lib/unictype/categ_Me.h: Regenerated.
17130         * lib/unictype/categ_Mn.h: Regenerated.
17131         * lib/unictype/categ_N.h: Regenerated.
17132         * lib/unictype/categ_Nd.h: Regenerated.
17133         * lib/unictype/categ_Nl.h: Regenerated.
17134         * lib/unictype/categ_No.h: Regenerated.
17135         * lib/unictype/categ_P.h: Regenerated.
17136         * lib/unictype/categ_Pd.h: Regenerated.
17137         * lib/unictype/categ_Pe.h: Regenerated.
17138         * lib/unictype/categ_Pf.h: Regenerated.
17139         * lib/unictype/categ_Pi.h: Regenerated.
17140         * lib/unictype/categ_Po.h: Regenerated.
17141         * lib/unictype/categ_Ps.h: Regenerated.
17142         * lib/unictype/categ_S.h: Regenerated.
17143         * lib/unictype/categ_Sk.h: Regenerated.
17144         * lib/unictype/categ_Sm.h: Regenerated.
17145         * lib/unictype/categ_So.h: Regenerated.
17146         * lib/unictype/categ_of.h: Regenerated.
17147         * lib/unictype/combining.h: Regenerated.
17148         * lib/unictype/ctype_alnum.h: Regenerated.
17149         * lib/unictype/ctype_alpha.h: Regenerated.
17150         * lib/unictype/ctype_graph.h: Regenerated.
17151         * lib/unictype/ctype_lower.h: Regenerated.
17152         * lib/unictype/ctype_print.h: Regenerated.
17153         * lib/unictype/ctype_punct.h: Regenerated.
17154         * lib/unictype/ctype_upper.h: Regenerated.
17155         * lib/unictype/decdigit.h: Regenerated.
17156         * lib/unictype/digit.h: Regenerated.
17157         * lib/unictype/mirror.h: Regenerated.
17158         * lib/unictype/numeric.h: Regenerated.
17159         * lib/unictype/pr_alphabetic.h: Regenerated.
17160         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
17161         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
17162         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
17163         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
17164         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
17165         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
17166         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
17167         * lib/unictype/pr_combining.h: Regenerated.
17168         * lib/unictype/pr_dash.h: Regenerated.
17169         * lib/unictype/pr_decimal_digit.h: Regenerated.
17170         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
17171         * lib/unictype/pr_deprecated.h: Regenerated.
17172         * lib/unictype/pr_diacritic.h: Regenerated.
17173         * lib/unictype/pr_extender.h: Regenerated.
17174         * lib/unictype/pr_format_control.h: Regenerated.
17175         * lib/unictype/pr_grapheme_base.h: Regenerated.
17176         * lib/unictype/pr_grapheme_extend.h: Regenerated.
17177         * lib/unictype/pr_grapheme_link.h: Regenerated.
17178         * lib/unictype/pr_id_continue.h: Regenerated.
17179         * lib/unictype/pr_id_start.h: Regenerated.
17180         * lib/unictype/pr_ideographic.h: Regenerated.
17181         * lib/unictype/pr_ignorable_control.h: Regenerated.
17182         * lib/unictype/pr_lowercase.h: Regenerated.
17183         * lib/unictype/pr_math.h: Regenerated.
17184         * lib/unictype/pr_numeric.h: Regenerated.
17185         * lib/unictype/pr_other_alphabetic.h: Regenerated.
17186         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
17187         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
17188         * lib/unictype/pr_other_id_continue.h: Regenerated.
17189         * lib/unictype/pr_other_lowercase.h: Regenerated.
17190         * lib/unictype/pr_other_math.h: Regenerated.
17191         * lib/unictype/pr_punctuation.h: Regenerated.
17192         * lib/unictype/pr_sentence_terminal.h: Regenerated.
17193         * lib/unictype/pr_soft_dotted.h: Regenerated.
17194         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
17195         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
17196         * lib/unictype/pr_unified_ideograph.h: Regenerated.
17197         * lib/unictype/pr_uppercase.h: Regenerated.
17198         * lib/unictype/pr_xid_continue.h: Regenerated.
17199         * lib/unictype/pr_xid_start.h: Regenerated.
17200         * lib/unictype/pr_zero_width.h: Regenerated.
17201         * lib/unictype/scripts.h: Regenerated.
17202         * lib/unictype/scripts_byname.gperf: Regenerated.
17203         * lib/unictype/sy_java_ident.h: Regenerated.
17204         * lib/unilbrk/lbrkprop1.h: Regenerated.
17205         * lib/unilbrk/lbrkprop2.h: Regenerated.
17206         * tests/unictype/test-categ_C.c: Regenerated.
17207         * tests/unictype/test-categ_Cf.c: Regenerated.
17208         * tests/unictype/test-categ_Cn.c: Regenerated.
17209         * tests/unictype/test-categ_L.c: Regenerated.
17210         * tests/unictype/test-categ_Ll.c: Regenerated.
17211         * tests/unictype/test-categ_Lm.c: Regenerated.
17212         * tests/unictype/test-categ_Lo.c: Regenerated.
17213         * tests/unictype/test-categ_Lu.c: Regenerated.
17214         * tests/unictype/test-categ_M.c: Regenerated.
17215         * tests/unictype/test-categ_Mc.c: Regenerated.
17216         * tests/unictype/test-categ_Me.c: Regenerated.
17217         * tests/unictype/test-categ_Mn.c: Regenerated.
17218         * tests/unictype/test-categ_N.c: Regenerated.
17219         * tests/unictype/test-categ_Nd.c: Regenerated.
17220         * tests/unictype/test-categ_Nl.c: Regenerated.
17221         * tests/unictype/test-categ_No.c: Regenerated.
17222         * tests/unictype/test-categ_P.c: Regenerated.
17223         * tests/unictype/test-categ_Pd.c: Regenerated.
17224         * tests/unictype/test-categ_Pe.c: Regenerated.
17225         * tests/unictype/test-categ_Pf.c: Regenerated.
17226         * tests/unictype/test-categ_Pi.c: Regenerated.
17227         * tests/unictype/test-categ_Po.c: Regenerated.
17228         * tests/unictype/test-categ_Ps.c: Regenerated.
17229         * tests/unictype/test-categ_S.c: Regenerated.
17230         * tests/unictype/test-categ_Sk.c: Regenerated.
17231         * tests/unictype/test-categ_Sm.c: Regenerated.
17232         * tests/unictype/test-categ_So.c: Regenerated.
17233         * tests/unictype/test-ctype_alnum.c: Regenerated.
17234         * tests/unictype/test-ctype_alpha.c: Regenerated.
17235         * tests/unictype/test-ctype_graph.c: Regenerated.
17236         * tests/unictype/test-ctype_lower.c: Regenerated.
17237         * tests/unictype/test-ctype_print.c: Regenerated.
17238         * tests/unictype/test-ctype_punct.c: Regenerated.
17239         * tests/unictype/test-ctype_upper.c: Regenerated.
17240         * tests/unictype/test-decdigit.h: Regenerated.
17241         * tests/unictype/test-digit.h: Regenerated.
17242         * tests/unictype/test-numeric.h: Regenerated.
17243         * tests/unictype/test-pr_alphabetic.c: Regenerated.
17244         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
17245         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
17246         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
17247         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
17248         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
17249         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
17250         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
17251         * tests/unictype/test-pr_combining.c: Regenerated.
17252         * tests/unictype/test-pr_dash.c: Regenerated.
17253         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
17254         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
17255         * tests/unictype/test-pr_deprecated.c: Regenerated.
17256         * tests/unictype/test-pr_diacritic.c: Regenerated.
17257         * tests/unictype/test-pr_extender.c: Regenerated.
17258         * tests/unictype/test-pr_format_control.c: Regenerated.
17259         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
17260         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
17261         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
17262         * tests/unictype/test-pr_id_continue.c: Regenerated.
17263         * tests/unictype/test-pr_id_start.c: Regenerated.
17264         * tests/unictype/test-pr_ideographic.c: Regenerated.
17265         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
17266         * tests/unictype/test-pr_lowercase.c: Regenerated.
17267         * tests/unictype/test-pr_math.c: Regenerated.
17268         * tests/unictype/test-pr_numeric.c: Regenerated.
17269         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
17270         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
17271         Regenerated.
17272         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
17273         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
17274         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
17275         * tests/unictype/test-pr_other_math.c: Regenerated.
17276         * tests/unictype/test-pr_punctuation.c: Regenerated.
17277         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
17278         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
17279         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
17280         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
17281         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
17282         * tests/unictype/test-pr_uppercase.c: Regenerated.
17283         * tests/unictype/test-pr_xid_continue.c: Regenerated.
17284         * tests/unictype/test-pr_xid_start.c: Regenerated.
17285         * tests/unictype/test-pr_zero_width.c: Regenerated.
17286
17287         Update to Unicode 5.1.0.
17288         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
17289         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
17290         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
17291         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
17292         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
17293         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
17294         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
17295         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
17296         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
17297         (nonspacing_table_ind): Update.
17298         * tests/uniwidth/test-uc_width2.sh: Update expected result.
17299
17300         Update to Unicode 5.1.0.
17301         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
17302         code transform.
17303         * lib/uniname/uniname.c (unicode_character_name,
17304         unicode_name_character): Add the range 0x1Fxxx to the code transform.
17305         * lib/uniname/uninames.h: Regenerated.
17306         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
17307
17308 2009-02-07  Bruno Haible  <bruno@clisp.org>
17309
17310         Merge gen-ctype and gen-lbrk into a single program.
17311         * lib/gen-uni-tables.c: New file, incorporating
17312         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
17313         Add directory prefixes to the names of the generated files.
17314         * lib/unictype/gen-ctype.c: Remove file.
17315         * lib/unilbrk/gen-lbrk.c: Remove file.
17316         * modules/gen-uni-tables: New file.
17317         * modules/unictype/gen-ctype: Remove file.
17318         * modules/unilbrk/gen-lbrk: Remove file.
17319
17320 2009-02-07  Bruno Haible  <bruno@clisp.org>
17321
17322         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
17323
17324         New module 'unistr/u32-strcoll'.
17325         * modules/unistr/u32-strcoll: New file.
17326         * lib/unistr/u32-strcoll.c: New file.
17327
17328         New module 'unistr/u16-strcoll'.
17329         * modules/unistr/u16-strcoll: New file.
17330         * lib/unistr/u16-strcoll.c: New file.
17331
17332         New module 'unistr/u8-strcoll'.
17333         * modules/unistr/u8-strcoll: New file.
17334         * lib/unistr/u8-strcoll.c: New file.
17335         * lib/unistr/u-strcoll.h: New file.
17336
17337 2009-02-07  Bruno Haible  <bruno@clisp.org>
17338
17339         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
17340         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17341         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
17342         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
17343         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
17344         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
17345
17346 2009-02-07  Bruno Haible  <bruno@clisp.org>
17347
17348         Make 64-bit clean.
17349         * lib/unictype/gen-ctype.c (output_predicate, output_category,
17350         output_combclass, output_bidi_category, output_decimal_digit,
17351         output_digit, output_numeric, output_mirror, output_scripts,
17352         output_ident_category): Use proper width specifier in format strings.
17353
17354 2009-02-07  Bruno Haible  <bruno@clisp.org>
17355
17356         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
17357         failure behaviour.
17358
17359 2009-02-07  Jim Meyering  <meyering@redhat.com>
17360
17361         regex: avoid compilation failure with upcoming gcc-4.4
17362         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
17363         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
17364         "... error: integer overflow in preprocessor expression".
17365
17366 2009-02-05  Ben Pfaff  <blp@gnu.org>
17367
17368         Fix link errors on Windows when close module is used.
17369         * modules/close: Add $(LIB_CLOSE) to Link section.
17370         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
17371         $(LIB_CLOSE) on Windows.
17372
17373 2009-02-05  Jim Meyering  <meyering@redhat.com>
17374
17375         still avoid unused-parameter warnings, but do it cleanly
17376         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
17377         (get_fs_usage): Cast to void instead.
17378         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
17379         (dev_from_mount_options, read_file_system_list): Cast to void.
17380         Prompted by Bruno Haible.
17381
17382 2009-02-04  Jim Meyering  <meyering@redhat.com>
17383
17384         fsusage.c: correct copyright year
17385         * lib/fsusage.c: Reflect year in which the change is pushed into
17386
17387         avoid misc. warnings
17388         * lib/fsusage.c (UNUSED_PARAM): Define.
17389         (get_fs_usage): Mark parameter "disk" as unused.
17390         * lib/getugroups.c (getgrent): Use "void" in prototype.
17391         * lib/mountlist.c: Mark unused parameters.
17392         (read_file_system_list): Declare a local with "const".
17393         * lib/nanosleep.c (getnow): Declare static.
17394         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
17395
17396         dirfd: set errno upon failure
17397         * lib/dirfd.c: Include <errno.h>.
17398         Set errno to ENOTSUP when returning -1.
17399         * modules/dirfd (Depends-on): Add errno.
17400         Suggested by John Kodis <kodis@comcast.net>.
17401
17402 2009-02-01  Bruno Haible  <bruno@clisp.org>
17403
17404         Don't assume sizeof (long) >= sizeof (void *).
17405         * lib/memcmp.c: Include stdint.h.
17406         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
17407         srcp2 to 'const byte *'.
17408         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
17409         types to uintptr_t.
17410         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
17411         * modules/memcmp (Depends-on): Add stdint.
17412         Reported by Ozkan Sezer <sezeroz@gmail.com>.
17413
17414 2009-01-30  Eric Blake  <ebb9@byu.net>
17415
17416         fix more require-before-expand issues
17417         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
17418         expand, AC_PROG_AWK.
17419         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
17420
17421 2009-01-28  Eric Blake  <ebb9@byu.net>
17422
17423         version-etc: use consistent URL formatting
17424         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
17425         Improve formatting.  Use fputs for string without %.
17426
17427 2009-01-28  Jim Meyering  <meyering@redhat.com>
17428
17429         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
17430         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
17431         "underquoted definition of NAME" from autoconf-2.59.
17432
17433 2009-01-28  Bruno Haible  <bruno@clisp.org>
17434
17435         * doc/gnulib.texi: Add "Obsolete modules" to index.
17436
17437 2009-01-28  Jim Meyering  <meyering@redhat.com>
17438
17439         useless-if-before-free: recognize more variants
17440         * build-aux/useless-if-before-free: Also recognize e.g.,
17441         if (NULL != p) free (p);
17442
17443 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
17444
17445         test-getaddrinfo: skip (don't fail) this test when there's no network
17446         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
17447         on the presumption that it means you lack network access.
17448
17449 2009-01-26  Jim Meyering  <meyering@redhat.com>
17450
17451         fflush: avoid warnings on modern systems
17452         * lib/fflush.c (rpl_fflush): Move declarations of locals,
17453         pos and result, into scopes where they're used.
17454
17455 2009-01-26  Eric Blake  <ebb9@byu.net>
17456
17457         Silence warning reintroduced by recent extensions patch.
17458         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
17459         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
17460         autoconf.
17461
17462         Backport improved autoconf semantics of AC_DEFUN_ONCE.
17463         * m4/00gnulib.m4: New file.
17464         * gnulib-tool (func_get_filelist): Always use it.
17465         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
17466         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
17467
17468 2009-01-25  Bruno Haible  <bruno@clisp.org>
17469
17470         Make test-quotearg work on MacOS X and AIX.
17471         * tests/test-quotearg.sh: New file.
17472         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
17473         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
17474         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
17475         include <libintl.h>.
17476         (fake_locale): Remove variable.
17477         (gettext, dgettext, dcgettext): Remove functions.
17478         (main): Instead of setting a fake locale, set a real locale. Call
17479         textdomain and bindtextdomain.
17480         * modules/quotearg-tests (Files): Add the new files.
17481         (Depends-on): Add gettext, setenv, unsetenv.
17482         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17483         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
17484         Augment TESTS_ENVIRONMENT.
17485
17486 2009-01-25  Bruno Haible  <bruno@clisp.org>
17487
17488         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
17489         fr_FR.ISO8859-1 locale on MacOS X.
17490         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
17491         ja_JP.eucJP locale on MacOS X.
17492         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
17493         zh_CN.GB18030 locale on MacOS X.
17494
17495 2009-01-25  Bruno Haible  <bruno@clisp.org>
17496
17497         Avoid link errors on MacOS X 10.3.
17498         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
17499         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
17500
17501 2009-01-25  Bruno Haible  <bruno@clisp.org>
17502
17503         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17504         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
17505         * modules/pipe (Files): Remove m4/posix_spawn.m4.
17506         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17507         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
17508         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17509         posix_spawnattr_init, posix_spawnattr_setsigmask,
17510         posix_spawnattr_setflags, posix_spawnattr_destroy.
17511
17512         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
17513         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
17514         * modules/execute (Files): Remove m4/posix_spawn.m4.
17515         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
17516         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
17517         posix_spawnattr_init, posix_spawnattr_setsigmask,
17518         posix_spawnattr_setflags, posix_spawnattr_destroy.
17519
17520 2009-01-25  Bruno Haible  <bruno@clisp.org>
17521
17522         * lib/glthread/threadlib.c: Include <stdlib.h>.
17523
17524 2009-01-25  Bruno Haible  <bruno@clisp.org>
17525
17526         * lib/glthread/threadlib.c (dummy): New declaration.
17527
17528 2009-01-25  Bruno Haible  <bruno@clisp.org>
17529
17530         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
17531         multibyte characters also for the GB18030 encoding. Don't crash when
17532         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
17533
17534 2009-01-25  Bruno Haible  <bruno@clisp.org>
17535
17536         Avoid redefining 'struct random_data' on OSF/1 5.1.
17537         * lib/stdlib.in.h: Include <random.h> if it exists.
17538         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
17539         HAVE_RANDOM_H. Include <random.h> when testing whether
17540         'struct random_data' exists.
17541         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
17542
17543 2009-01-25  Bruno Haible  <bruno@clisp.org>
17544
17545         Don't install charset.alias on MacOS X >= 10.3.
17546         * lib/localcharset.c (DARWIN7): New macro.
17547         (get_charset_aliases): Hardcode the result for Darwin7.
17548         * modules/localcharset (install-exec-local): Don't install
17549         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
17550
17551 2009-01-25  Bruno Haible  <bruno@clisp.org>
17552
17553         Don't install charset.alias on mingw and Cygwin.
17554         * modules/localcharset (install-exec-local): Don't install
17555         charset.alias on mingw and Cygwin, if the file does not yet exist.
17556         The result for these platforms is hardcoded in localcharset.c.
17557
17558 2009-01-25  Bruno Haible  <bruno@clisp.org>
17559
17560         Make it possible again to use AC_GNU_SOURCE together with gnulib.
17561         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
17562         before requiring AC_USE_SYSTEM_EXTENSIONS.
17563
17564 2009-01-25  Jim Meyering  <meyering@redhat.com>
17565
17566         c-strtod: avoid warnings
17567         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
17568         "assignment discards qualifiers from pointer target type" warnings.
17569
17570 2009-01-24  Bruno Haible  <bruno@clisp.org>
17571
17572         Add support for non-UTF-8 locales on MacOS X.
17573         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
17574         canonical encodings. For Darwin 7 and newer, don't map traditional
17575         encodings to UTF-8.
17576         Reported by Vincent Lefevre <vincent@vinc17.org>
17577         at <http://savannah.gnu.org/bugs/?25235>.
17578
17579 2009-01-24  Bruno Haible  <bruno@clisp.org>
17580
17581         * doc/gnulib.texi (Obsolete modules): New section.
17582         Reported by Mike Frysinger <vapier@gentoo.org>.
17583
17584 2009-01-24  Bruno Haible  <bruno@clisp.org>
17585
17586         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
17587         (%.dvi): New rule.
17588
17589 2009-01-24  Bruno Haible  <bruno@clisp.org>
17590
17591         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
17592         Reported by Eric Blake.
17593
17594 2009-01-24  Bruno Haible  <bruno@clisp.org>
17595
17596         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
17597         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
17598         Reported by Gary V. Vaughan <gary@gnu.org>.
17599
17600 2009-01-24  Bruno Haible  <bruno@clisp.org>
17601
17602         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
17603
17604 2009-01-23  Bruno Haible  <bruno@clisp.org>
17605
17606         Make c-strtod, c-strtold usable in libraries.
17607         * lib/c-strtod.c: Include string.h instead of xalloc.h.
17608         (C_STRTOD): Call strdup instead of xstrdup.
17609         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
17610         * modules/c-strtold (Depends-on): Likewise.
17611         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
17612         * NEWS: Mention the change.
17613         Reported by Michael Gold <mgold@ncf.ca>.
17614
17615 2009-01-23  Jim Meyering  <meyering@redhat.com>
17616
17617         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
17618         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
17619         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
17620
17621 2009-01-23  Simon Josefsson  <simon@josefsson.org>
17622
17623         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
17624         GNU CoreUtils.
17625         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
17626         * modules/version-etc (Description): Update.
17627
17628 2009-01-22  Bruno Haible  <bruno@clisp.org>
17629
17630         Cache the C locale object.
17631         * lib/c-strtod.c (c_locale_cache): New variable.
17632         (c_locale): New function.
17633         (C_STRTOD): Use it, and don't call freelocale.
17634         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
17635         Suggested by Paolo Bonzini.
17636
17637 2009-01-21  Bruno Haible  <bruno@clisp.org>
17638
17639         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
17640         conditions other than overflow.
17641
17642 2009-01-21  Bruno Haible  <bruno@clisp.org>
17643
17644         * lib/c-strtod.c: Include errno.h.
17645         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
17646         value from STRTOD_L and STRTOD.
17647
17648 2009-01-21  Bruno Haible  <bruno@clisp.org>
17649         and Jim Meyering  <meyering@redhat.com>
17650
17651         nanosleep: skip configure test (fail it) for apple universal builds
17652         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
17653         universal builds, assume that nanosleep does not work.
17654         * modules/nanosleep (Depends-on): Add multiarch.
17655
17656         mktime: skip configure test (fail it) for apple universal builds
17657         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
17658         universal builds, assume that mktime does not work.
17659         * modules/mktime (Depends-on): Add multiarch.
17660
17661 2009-01-21  Eric Blake  <ebb9@byu.net>
17662
17663         multiarch: avoid expand-before-require warning
17664         * modules/multiarch (configure.ac): Require, rather than expand,
17665         gl_MULTIARCH.
17666         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
17667         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
17668         enforce that all clients require it.  Partial reversion of
17669         2008-12-29 patch.
17670
17671         error: avoid expand-before-require warning
17672         * modules/errno (configure.ac): Require, rather than expand,
17673         gl_HEADER_ERRNO_H.
17674         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
17675         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
17676         enforce that all clients require it.
17677
17678         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
17679         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
17680         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
17681         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
17682
17683 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
17684
17685         Revert:
17686         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17687
17688         regex: do not depend on obsolete modules.
17689         * modules/regex: Remove memcmp and memmove.
17690
17691 2009-01-20  Bruno Haible  <bruno@clisp.org>
17692
17693         Make the 'link' module link on Windows NT 4.
17694         * lib/link.c (_WIN32_WINNT): Don't define.
17695         (CreateHardLinkFuncType): New type.
17696         (CreateHardLinkFunc, initialized): New variables.
17697         (initialize): New function.
17698         (link): Invoke CreateHardLink indirectly through the function pointer.
17699
17700 2009-01-20  Bruno Haible  <bruno@clisp.org>
17701
17702         Fix compilation failure on mingw.
17703         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
17704
17705 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
17706
17707         * doc/c-strtod.texi: Mention a couple of restrictions.
17708
17709 2009-01-20  Jim Meyering  <meyering@redhat.com>
17710
17711         gettimeofday: move more declarations out of functions
17712         * lib/gettimeofday.c: Move extern declarations of tzset and
17713         gmtime out of containing functions.  Prompted by Bruno Haible.
17714
17715 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
17716
17717         regex: do not depend on obsolete modules.
17718         * modules/regex: Remove memcmp and memmove.
17719
17720 2009-01-19  Bruno Haible  <bruno@clisp.org>
17721
17722         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17723         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
17724         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17725         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
17726         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
17727
17728 2009-01-19  Bruno Haible  <bruno@clisp.org>
17729
17730         * tests/test-link.c: Include <errno.h>.
17731         (main): Exit with code 77 when a hard link cannot be created due to
17732         the file system.
17733         * tests/test-link.sh: Skip test when a hard link cannot be created due
17734         to the file system.
17735         Suggested by Eric Blake.
17736
17737 2009-01-19  Martin Lambers  <marlam@marlam.de>
17738
17739         * modules/link-tests: New file.
17740         * tests/test-link.sh: New file.
17741         * tests/test-link.c: New file.
17742
17743 2009-01-19  Eric Blake  <ebb9@byu.net>
17744
17745         doc: mention another function added in cygwin 1.7.0
17746         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
17747         Another new function in cygwin 1.7.
17748
17749 2009-01-19  Bruno Haible  <bruno@clisp.org>
17750
17751         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
17752         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
17753         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
17754         gl_BIGENDIAN, not AC_C_BIGENDIAN.
17755         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17756         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
17757         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17758         * m4/md4.m4 (gl_MD4): Likewise.
17759         * m4/md5.m4 (gl_MD5): Likewise.
17760         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
17761         * m4/sha1.m4 (gl_SHA1): Likewise.
17762         * m4/sha256.m4 (gl_SHA256): Likewise.
17763         * m4/sha512.m4 (gl_SHA512): Likewise.
17764
17765 2009-01-19  Bruno Haible  <bruno@clisp.org>
17766
17767         * modules/uniname/uniname-tests (Depends-on): Add progname.
17768         * tests/uniname/test-uninames.c: Include progname.h.
17769         (main): Call set_program_name.
17770
17771         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
17772         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
17773         (main): Call set_program_name.
17774
17775         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
17776         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
17777         (main): Call set_program_name.
17778
17779         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
17780         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
17781         (main): Call set_program_name.
17782
17783         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
17784         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
17785         (main): Call set_program_name.
17786
17787         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
17788         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
17789         (main): Call set_program_name.
17790
17791         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
17792         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
17793         (main): Call set_program_name.
17794
17795         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
17796         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
17797         (main): Call set_program_name.
17798
17799         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
17800         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
17801         (main): Call set_program_name.
17802
17803 2009-01-19  Eric Blake  <ebb9@byu.net>
17804
17805         test-unistd: test previous patch
17806         * tests/test-unistd.c: Test *_FILENO macros.
17807
17808         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
17809         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17810         Guarantee a definition.
17811         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
17812         * modules/unistd-safer (Depends-on): Add dependency on unistd.
17813         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
17814         * lib/dup-safer.c (STDERR_FILENO): Likewise.
17815         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17816         Likewise.
17817         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
17818         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
17819         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
17820         Likewise.
17821         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
17822         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
17823         (STDERR_FILENO): Likewise.
17824         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
17825         (STDERR_FILENO): Likewise.
17826         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
17827         (STDERR_FILENO): Likewise.
17828         Reported by Elbert Pol.
17829
17830 2009-01-19  Eric Blake  <ebb9@byu.net>
17831
17832         doc: mention more functions added in cygwin 1.7.0
17833         * doc/posix-functions/abort.texi (abort): Update wording related
17834         to cygwin.
17835         * doc/posix-functions/daylight.texi (daylight): Likewise.
17836         * doc/posix-functions/optarg.texi (optarg): Likewise.
17837         * doc/posix-functions/optarg.texi (opterr): Likewise.
17838         * doc/posix-functions/optarg.texi (optind): Likewise.
17839         * doc/posix-functions/optarg.texi (optopt): Likewise.
17840         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
17841         worked in 1.5.x, and was withdrawn in 1.7.
17842         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17843         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
17844         cygwin versions.
17845         * doc/posix-functions/perror.texi (perror): Likewise.
17846         * doc/posix-functions/printf.texi (printf): Likewise.
17847         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17848         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17849         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17850         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17851         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17852         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17853         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17854         Likewise.
17855         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17856         Likewise.
17857         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
17858         this function.
17859         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
17860         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
17861         Likewise.
17862         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
17863         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
17864         * doc/posix-functions/confstr.texi (confstr): Likewise.
17865         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17866         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
17867         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
17868         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
17869         * doc/posix-functions/fputws.texi (fputws): Likewise.
17870         * doc/posix-functions/fwide.texi (fwide): Likewise.
17871         * doc/posix-functions/getwc.texi (getwc): Likewise.
17872         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
17873         * doc/posix-functions/putwc.texi (putwc): Likewise.
17874         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17875         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
17876         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
17877         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17878         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
17879         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
17880         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
17881         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
17882         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
17883         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
17884         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
17885
17886 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17887
17888         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
17889         * lib/ioctl.c: Include <sys/ioctl.h>.
17890
17891 2009-01-19  Simon Josefsson  <simon@josefsson.org>
17892
17893         * modules/getdate-tests (Depends-on): Add progname.
17894         * tests/test-getdate.c: Use progname module, to avoid link errors
17895         on non-glibc systems.
17896
17897 2009-01-18  Simon Josefsson  <simon@josefsson.org>
17898
17899         * modules/filenamecat-tests (Depends-on): Add progname.
17900         * modules/fstrcmp-tests (Depends-on): Likewise.
17901
17902         * tests/test-filenamecat.c: Use progname module, to avoid link
17903         errors on non-glibc systems.
17904         * tests/test-fstrcmp.c: Likewise.
17905
17906 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
17907
17908         gettimeofday: avoid warning: nested extern declaration of 'localtime'
17909         * lib/gettimeofday.c: Move extern declaration out of function.
17910
17911 2009-01-18  Bruno Haible  <bruno@clisp.org>
17912
17913         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
17914         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
17915         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
17916
17917 2009-01-18  Bruno Haible  <bruno@clisp.org>
17918
17919         * lib/strftime.c (MEMPCPY): Remove unused macro.
17920         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
17921
17922 2009-01-18  Martin Lambers  <marlam@marlam.de>
17923
17924         New module 'link'.
17925         * lib/unistd.in.h (link): New declaration.
17926         * lib/link.c: New file.
17927         * m4/link.m4: New file.
17928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
17929         HAVE_LINK.
17930         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
17931         * modules/link: New file.
17932         * doc/posix-functions/link.texi: Mention the new module.
17933
17934 2009-01-18  Bruno Haible  <bruno@clisp.org>
17935
17936         * tests/test-avltree_list.c (main): Call set_program_name.
17937         * tests/test-avltree_oset.c (main): Likewise.
17938         * tests/test-obstack-printf.c: Include progname.h.
17939         (main): Call set_program_name.
17940         * tests/test-quotearg.c: Include progname.h.
17941         (main): Call set_program_name.
17942         * tests/test-xmemdup0.c: Include progname.h.
17943         (main): Call set_program_name.
17944
17945 2009-01-18  Bruno Haible  <bruno@clisp.org>
17946
17947         New module 'alphasort'.
17948         * lib/dirent.in.h (alphasort): New declaration.
17949         * lib/alphasort.c: New file, from glibc with modifications.
17950         * m4/alphasort.m4: New file.
17951         * modules/alphasort: New file.
17952         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
17953         HAVE_ALPHASORT.
17954         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
17955         HAVE_ALPHASORT.
17956         * doc/posix-functions/alphasort.texi: Mention the new module and the
17957         portability problems.
17958
17959 2009-01-18  Bruno Haible  <bruno@clisp.org>
17960
17961         New module 'scandir'.
17962         * lib/dirent.in.h (scandir): New declaration.
17963         * lib/scandir.c: New file, from glibc with modifications.
17964         * m4/scandir.m4: New file.
17965         * modules/scandir: New file.
17966         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
17967         HAVE_SCANDIR.
17968         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
17969         HAVE_SCANDIR.
17970         * doc/posix-functions/scandir.texi: Mention the new module and the
17971         portability problems.
17972
17973 2009-01-17  Bruno Haible  <bruno@clisp.org>
17974
17975         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
17976         Update documentation.
17977         (func_remove_suffix): Escape all dots in the suffix. Update
17978         documentation.
17979         (func_filter_filelist): Update documentation.
17980         Reported by Ralf Wildenhues.
17981
17982 2009-01-17  Bruno Haible  <bruno@clisp.org>
17983
17984         * modules/dprintf-posix-tests: New file.
17985         * tests/test-dprintf-posix.sh: New file.
17986         * tests/test-dprintf-posix.c: New file.
17987
17988         New modules 'dprintf', 'dprintf-posix'.
17989         * lib/stdio.in.h (dprintf): New declaration.
17990         * lib/dprintf.c: New file.
17991         * m4/dprintf.m4: New file.
17992         * m4/dprintf-posix.m4: New file.
17993         * modules/dprintf: New file.
17994         * modules/dprintf-posix: New file.
17995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
17996         HAVE_DPRINTF, REPLACE_DPRINTF.
17997         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
17998         HAVE_DPRINTF, REPLACE_DPRINTF.
17999         * doc/posix-functions/dprintf.texi: Mention the new modules.
18000
18001 2009-01-17  Bruno Haible  <bruno@clisp.org>
18002
18003         * modules/vdprintf-posix-tests: New file.
18004         * tests/test-vdprintf-posix.sh: New file.
18005         * tests/test-vdprintf-posix.c: New file.
18006
18007         New modules 'vdprintf', 'vdprintf-posix'.
18008         * lib/stdio.in.h (vdprintf): New declaration.
18009         * lib/vdprintf.c: New file.
18010         * m4/vdprintf.m4: New file.
18011         * m4/vdprintf-posix.m4: New file.
18012         * modules/vdprintf: New file.
18013         * modules/vdprintf-posix: New file.
18014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
18015         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18016         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
18017         HAVE_VDPRINTF, REPLACE_VDPRINTF.
18018         * doc/posix-functions/vdprintf.texi: Mention the new modules.
18019
18020 2009-01-17  Bruno Haible  <bruno@clisp.org>
18021
18022         Fix replacement of fopen on mingw.
18023         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
18024         mingw.
18025
18026 2009-01-17  Bruno Haible  <bruno@clisp.org>
18027
18028         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
18029         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
18030
18031 2009-01-17  Bruno Haible  <bruno@clisp.org>
18032
18033         Avoid test-fflush2.sh failure on mingw.
18034         * tests/test-fflush2.c: Include binary-io.h.
18035         (main): Put standard input into binary mode.
18036         * modules/fflush-tests (Depends-on): Add binary-io.
18037
18038 2009-01-17  Bruno Haible  <bruno@clisp.org>
18039
18040         * lib/wchar.in.h: In another particular situation, include only the
18041         system's <wchar.h> file.
18042         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
18043         Reported by Albert Chin-A-Young <china@thewrittenword.com>
18044         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
18045
18046 2009-01-17  Bruno Haible  <bruno@clisp.org>
18047
18048         Support for stripping executables in --enable-relocatable.
18049         * build-aux/install-reloc: Expect one more argument, or an environment
18050         variable RELOC_STRIP_PROG. If set, strip the destination program and
18051         its wrapper.
18052         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
18053         RELOC_STRIP_PROG.
18054         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
18055         to set RELOCATABLE_STRIP.
18056         * NEWS: Mention the new Makefile requirement.
18057
18058 2009-01-17  Bruno Haible  <bruno@clisp.org>
18059
18060         * build-aux/install-reloc: Remove debugging information left over by
18061         C compiler on MacOS X.
18062
18063 2009-01-17  Bruno Haible  <bruno@clisp.org>
18064
18065         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
18066         * lib/progreloc.c (find_executable): Fix type of pointer passed to
18067         _NSGetExecutablePath.
18068
18069 2009-01-16  Jim Meyering  <meyering@redhat.com>
18070
18071         strerror: avoid warnings about discarding "const"
18072         * lib/strerror.c (rpl_strerror): Instead of returning a const
18073         string from each and every "case", use a variable, and add a single
18074         cast after the switch.
18075
18076 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
18077
18078         * lib/arpa_inet.in.h: Add extern "C" block for C++.
18079
18080 2009-01-16  Bruno Haible  <bruno@clisp.org>
18081
18082         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
18083         array initializer syntax that also works in C++ mode.
18084         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18085
18086 2009-01-16  Jim Meyering  <meyering@redhat.com>
18087
18088         poll: suppress a warning
18089         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
18090         to ignore "...unsigned expression < 0 is always false" warnings.
18091
18092 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
18093
18094         poll: remove declarations of unused variables
18095         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
18096         sockbuf and optlen.
18097
18098 2009-01-15  Bruno Haible  <bruno@clisp.org>
18099
18100         Make fflush-after-ungetc POSIX compliant on BSD systems.
18101         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
18102         (clear_ungetc_buffer): Implement also for other systems.
18103         (rpl_fflush): On glibc systems, invoke
18104         clear_ungetc_buffer_preserving_position. Otherwise, invoke
18105         clear_ungetc_buffer after fetching the stream's position, not before.
18106
18107 2009-01-15  Bruno Haible  <bruno@clisp.org>
18108
18109         Make fflush-after-ungetc POSIX compliant on glibc systems.
18110         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
18111         after ungetc.
18112         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
18113         (rpl_fflush): On glibc systems, simply call the system's fflush
18114         function after clearing the ungetc buffer.
18115         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
18116         Instead, lseek only to the end of file, then use the system's fseeko
18117         for the rest. On glibc systems, reset the EOF indicator bit.
18118
18119 2009-01-15  Jim Meyering  <meyering@redhat.com>
18120
18121         openmp.m4: revert quote-adding change, for portability to older autoconf
18122         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
18123         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
18124         Simon Josefsson noticed the problem when using autoconf-2.61.
18125
18126 2009-01-15  Bruno Haible  <bruno@clisp.org>
18127
18128         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
18129         * tests/test-fflush2.c (ASSERT): Always fail.
18130         (main): Add two tests for fflush() after ungetc(), taking into account
18131         the Austin Group's clarification.
18132         Suggested by Eric Blake.
18133
18134 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
18135
18136         mktime.m4: remove K&R-style function prototypes
18137         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
18138         for the Sun C++ compiler.
18139
18140 2009-01-14  Bruno Haible  <bruno@clisp.org>
18141
18142         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
18143         while including <wchar.h>.
18144         * lib/wchar.in.h: In two particular situations on HP-UX, include only
18145         the system's <wchar.h> file.
18146         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18147
18148 2009-01-14  Bruno Haible  <bruno@clisp.org>
18149
18150         * m4/csharp.m4: Don't mention gettext on the serial number line.
18151         * m4/csharpexec.m4: Likewise.
18152         * m4/eaccess.m4: Likewise.
18153         * m4/javaexec.m4: Likewise.
18154         * m4/sig_atomic_t.m4: Likewise.
18155         * m4/tmpdir.m4: Likewise.
18156         * m4/intldir.m4: Bump gettext version.
18157         * m4/lib-ld.m4: Likewise.
18158
18159 2009-01-14  Bruno Haible  <bruno@clisp.org>
18160
18161         * lib/progname.c (set_program_name): Add more comments.
18162         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
18163
18164 2009-01-14  Simon Josefsson  <simon@josefsson.org>
18165
18166         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
18167         were sys/stat.h does not define it.
18168
18169 2009-01-14  Jim Meyering  <meyering@redhat.com>
18170
18171         many *.m4 files: improve m4 quoting
18172         99% of this change was performed by running the following commands:
18173         git ls-files | grep '\.m4$' | xargs perl -pi \
18174           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
18175           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18176           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
18177           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
18178         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
18179         The remainder were to add Copyright dates, increment serial numbers,
18180         undo some changes in comments, exclude m4/intl.m4, and add quotes
18181         around the "1" in ",1" where the unusual spacing prohibited the
18182         above regexps from doing the job.  For more details, see
18183         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
18184         * m4/acl.m4: Modified.
18185         * m4/afs.m4: Likewise.
18186         * m4/alloca.m4: Likewise.
18187         * m4/argp.m4: Likewise.
18188         * m4/argz.m4: Likewise.
18189         * m4/atexit.m4: Likewise.
18190         * m4/bison-i18n.m4: Likewise.
18191         * m4/bison.m4: Likewise.
18192         * m4/byteswap.m4: Likewise.
18193         * m4/c-stack.m4: Likewise.
18194         * m4/c-strtod.m4: Likewise.
18195         * m4/calloc.m4: Likewise.
18196         * m4/canonicalize-lgpl.m4: Likewise.
18197         * m4/chown.m4: Likewise.
18198         * m4/clock_time.m4: Likewise.
18199         * m4/codeset.m4: Likewise.
18200         * m4/copy-file.m4: Likewise.
18201         * m4/csharp.m4: Likewise.
18202         * m4/csharpcomp.m4: Likewise.
18203         * m4/csharpexec.m4: Likewise.
18204         * m4/d-ino.m4: Likewise.
18205         * m4/d-type.m4: Likewise.
18206         * m4/dirfd.m4: Likewise.
18207         * m4/double-slash-root.m4: Likewise.
18208         * m4/eaccess.m4: Likewise.
18209         * m4/eealloc.m4: Likewise.
18210         * m4/environ.m4: Likewise.
18211         * m4/errno_h.m4: Likewise.
18212         * m4/euidaccess.m4: Likewise.
18213         * m4/execute.m4: Likewise.
18214         * m4/fatal-signal.m4: Likewise.
18215         * m4/fchdir.m4: Likewise.
18216         * m4/fcntl_h.m4: Likewise.
18217         * m4/fileblocks.m4: Likewise.
18218         * m4/filenamecat.m4: Likewise.
18219         * m4/findprog.m4: Likewise.
18220         * m4/flexmember.m4: Likewise.
18221         * m4/fnmatch.m4: Likewise.
18222         * m4/fopen.m4: Likewise.
18223         * m4/fpending.m4: Likewise.
18224         * m4/fprintf-posix.m4: Likewise.
18225         * m4/free.m4: Likewise.
18226         * m4/frexp.m4: Likewise.
18227         * m4/frexpl.m4: Likewise.
18228         * m4/fsusage.m4: Likewise.
18229         * m4/ftruncate.m4: Likewise.
18230         * m4/gc-camellia.m4: Likewise.
18231         * m4/gc-random.m4: Likewise.
18232         * m4/gc.m4: Likewise.
18233         * m4/getaddrinfo.m4: Likewise.
18234         * m4/getcwd-abort-bug.m4: Likewise.
18235         * m4/getcwd-path-max.m4: Likewise.
18236         * m4/getdate.m4: Likewise.
18237         * m4/getdomainname.m4: Likewise.
18238         * m4/getgroups.m4: Likewise.
18239         * m4/gethostname.m4: Likewise.
18240         * m4/gethrxtime.m4: Likewise.
18241         * m4/getline.m4: Likewise.
18242         * m4/getloadavg.m4: Likewise.
18243         * m4/getndelim2.m4: Likewise.
18244         * m4/getpass.m4: Likewise.
18245         * m4/gettext.m4: Likewise.
18246         * m4/gettime.m4: Likewise.
18247         * m4/gettimeofday.m4: Likewise.
18248         * m4/gnulib-common.m4: Likewise.
18249         * m4/group-member.m4: Likewise.
18250         * m4/host-os.m4: Likewise.
18251         * m4/iconv.m4: Likewise.
18252         * m4/iconv_open.m4: Likewise.
18253         * m4/inet_ntop.m4: Likewise.
18254         * m4/inet_pton.m4: Likewise.
18255         * m4/inline.m4: Likewise.
18256         * m4/intldir.m4: Likewise.
18257         * m4/intlmacosx.m4: Likewise.
18258         * m4/intmax.m4: Likewise.
18259         * m4/intmax_t.m4: Likewise.
18260         * m4/inttypes.m4: Likewise.
18261         * m4/inttypes_h.m4: Likewise.
18262         * m4/inttypes-pri.m4: Likewise.
18263         * m4/isapipe.m4: Likewise.
18264         * m4/isnand.m4: Likewise.
18265         * m4/isnanf.m4: Likewise.
18266         * m4/isnanl.m4: Likewise.
18267         * m4/javacomp.m4: Likewise.
18268         * m4/javaexec.m4: Likewise.
18269         * m4/jm-winsz1.m4: Likewise.
18270         * m4/jm-winsz2.m4: Likewise.
18271         * m4/lchown.m4: Likewise.
18272         * m4/lcmessage.m4: Likewise.
18273         * m4/ldexpl.m4: Likewise.
18274         * m4/lib-ld.m4: Likewise.
18275         * m4/lib-link.m4: Likewise.
18276         * m4/libsigsegv.m4: Likewise.
18277         * m4/link-follow.m4: Likewise.
18278         * m4/localcharset.m4: Likewise.
18279         * m4/locale-fr.m4: Likewise.
18280         * m4/locale-ja.m4: Likewise.
18281         * m4/locale-tr.m4: Likewise.
18282         * m4/locale-zh.m4: Likewise.
18283         * m4/lock.m4: Likewise.
18284         * m4/longlong.m4: Likewise.
18285         * m4/ls-mntd-fs.m4: Likewise.
18286         * m4/lstat.m4: Likewise.
18287         * m4/malloc.m4: Likewise.
18288         * m4/mathl.m4: Likewise.
18289         * m4/mbrtowc.m4: Likewise.
18290         * m4/mbstate_t.m4: Likewise.
18291         * m4/mbswidth.m4: Likewise.
18292         * m4/memchr.m4: Likewise.
18293         * m4/memcmp.m4: Likewise.
18294         * m4/memcpy.m4: Likewise.
18295         * m4/memmem.m4: Likewise.
18296         * m4/memmove.m4: Likewise.
18297         * m4/mempcpy.m4: Likewise.
18298         * m4/memrchr.m4: Likewise.
18299         * m4/memset.m4: Likewise.
18300         * m4/minmax.m4: Likewise.
18301         * m4/mkdir-slash.m4: Likewise.
18302         * m4/mkdtemp.m4: Likewise.
18303         * m4/mktime.m4: Likewise.
18304         * m4/mmap-anon.m4: Likewise.
18305         * m4/mountlist.m4: Likewise.
18306         * m4/nanosleep.m4: Likewise.
18307         * m4/nls.m4: Likewise.
18308         * m4/nocrash.m4: Likewise.
18309         * m4/open.m4: Likewise.
18310         * m4/openat.m4: Likewise.
18311         * m4/openmp.m4: Likewise.
18312         * m4/pathmax.m4: Likewise.
18313         * m4/perl.m4: Likewise.
18314         * m4/physmem.m4: Likewise.
18315         * m4/pipe.m4: Likewise.
18316         * m4/po.m4: Likewise.
18317         * m4/poll.m4: Likewise.
18318         * m4/posixtm.m4: Likewise.
18319         * m4/posixver.m4: Likewise.
18320         * m4/printf-frexp.m4: Likewise.
18321         * m4/printf-frexpl.m4: Likewise.
18322         * m4/printf-posix.m4: Likewise.
18323         * m4/printf-posix-rpl.m4: Likewise.
18324         * m4/printf.m4: Likewise.
18325         * m4/progtest.m4: Likewise.
18326         * m4/putenv.m4: Likewise.
18327         * m4/readline.m4: Likewise.
18328         * m4/readlink.m4: Likewise.
18329         * m4/readutmp.m4: Likewise.
18330         * m4/realloc.m4: Likewise.
18331         * m4/regex.m4: Likewise.
18332         * m4/relocatable.m4: Likewise.
18333         * m4/relocatable-lib.m4: Likewise.
18334         * m4/rename-dest-slash.m4: Likewise.
18335         * m4/rename.m4: Likewise.
18336         * m4/rmdir-errno.m4: Likewise.
18337         * m4/rmdir.m4: Likewise.
18338         * m4/roundf.m4: Likewise.
18339         * m4/roundl.m4: Likewise.
18340         * m4/rpmatch.m4: Likewise.
18341         * m4/save-cwd.m4: Likewise.
18342         * m4/selinux-selinux-h.m4: Likewise.
18343         * m4/setenv.m4: Likewise.
18344         * m4/settime.m4: Likewise.
18345         * m4/sig2str.m4: Likewise.
18346         * m4/sig_atomic_t.m4: Likewise.
18347         * m4/signalblocking.m4: Likewise.
18348         * m4/signbit.m4: Likewise.
18349         * m4/sigpipe.m4: Likewise.
18350         * m4/sockets.m4: Likewise.
18351         * m4/sockpfaf.m4: Likewise.
18352         * m4/st_dm_mode.m4: Likewise.
18353         * m4/stat-time.m4: Likewise.
18354         * m4/stdbool.m4: Likewise.
18355         * m4/stdint.m4: Likewise.
18356         * m4/stdint_h.m4: Likewise.
18357         * m4/stpcpy.m4: Likewise.
18358         * m4/stpncpy.m4: Likewise.
18359         * m4/strcase.m4: Likewise.
18360         * m4/strchrnul.m4: Likewise.
18361         * m4/strcspn.m4: Likewise.
18362         * m4/strdup.m4: Likewise.
18363         * m4/strftime.m4: Likewise.
18364         * m4/strndup.m4: Likewise.
18365         * m4/strnlen.m4: Likewise.
18366         * m4/strpbrk.m4: Likewise.
18367         * m4/strptime.m4: Likewise.
18368         * m4/strsep.m4: Likewise.
18369         * m4/strtod.m4: Likewise.
18370         * m4/strtoimax.m4: Likewise.
18371         * m4/strtok_r.m4: Likewise.
18372         * m4/strtol.m4: Likewise.
18373         * m4/strtoll.m4: Likewise.
18374         * m4/strtoul.m4: Likewise.
18375         * m4/strtoull.m4: Likewise.
18376         * m4/strtoumax.m4: Likewise.
18377         * m4/strverscmp.m4: Likewise.
18378         * m4/threadlib.m4: Likewise.
18379         * m4/timegm.m4: Likewise.
18380         * m4/tm_gmtoff.m4: Likewise.
18381         * m4/tmpdir.m4: Likewise.
18382         * m4/tmpfile.m4: Likewise.
18383         * m4/tzset.m4: Likewise.
18384         * m4/uintmax_t.m4: Likewise.
18385         * m4/unlinkdir.m4: Likewise.
18386         * m4/unlocked-io.m4: Likewise.
18387         * m4/uptime.m4: Likewise.
18388         * m4/userspec.m4: Likewise.
18389         * m4/utimbuf.m4: Likewise.
18390         * m4/utime.m4: Likewise.
18391         * m4/utimes-null.m4: Likewise.
18392         * m4/utimes.m4: Likewise.
18393         * m4/vararrays.m4: Likewise.
18394         * m4/vasnprintf.m4: Likewise.
18395         * m4/vfprintf-posix.m4: Likewise.
18396         * m4/vprintf-posix.m4: Likewise.
18397         * m4/wait-process.m4: Likewise.
18398         * m4/wchar_t.m4: Likewise.
18399         * m4/wint_t.m4: Likewise.
18400         * m4/write-any-file.m4: Likewise.
18401         * m4/yield.m4: Likewise.
18402
18403 2009-01-13  Bruno Haible  <bruno@clisp.org>
18404
18405         Avoid test-copy-file.sh failures when ACL support insufficient.
18406         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
18407         TESTS_ENVIRONMENT.
18408         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
18409         Reported by Jim Meyering.
18410
18411 2009-01-13  Bruno Haible  <bruno@clisp.org>
18412
18413         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
18414         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
18415         * modules/unistdio/u8-printf-parse (Files): Likewise.
18416         * modules/unistdio/u32-printf-parse (Files): Likewise.
18417         * modules/unistdio/ulc-printf-parse (Files): Likewise.
18418
18419 2009-01-13  Simon Josefsson  <simon@josefsson.org>
18420
18421         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
18422         and m4/inttypes_h.m4 too.
18423
18424 2009-01-12  Eric Blake  <ebb9@byu.net>
18425
18426         tests: IRIX 6.2 cc can't compile -0.0 into .data
18427         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
18428         rather than at compile-time.
18429         * tests/test-floorl.c (minus_zero): Likewise.
18430         * tests/test-frexpl.c (minus_zero): Likewise.
18431         * tests/test-isnan.c (minus_zerol): Likewise.
18432         * tests/test-isnanl.h (minus_zero): Likewise.
18433         * tests/test-ldexpl.c (minus_zero): Likewise.
18434         * tests/test-roundl.c (minus_zero): Likewise.
18435         * tests/test-signbit.c (minus_zerol): Likewise.
18436         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18437         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18438         * tests/test-truncl.c (minus_zero): Likewise.
18439         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18440         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18441         Reported by Tom G. Christensen and Nelson H. F. Beebe.
18442
18443 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18444
18445         regex: fix glibc bug 9697
18446         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
18447         handling.
18448
18449 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18450
18451         regex: fix glibc bug 697
18452         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
18453         being NULL also if there are no backreferences.
18454
18455 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
18456
18457         regex: merge glibc changes
18458         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
18459         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
18460         re_string_skip_chars, re_string_reconstruct): Likewise.
18461         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
18462
18463 2009-01-07  Jim Meyering  <meyering@redhat.com>
18464
18465         poll: filter through cppi
18466         * lib/poll.c: Indent cpp directives to reflect nesting.
18467
18468 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
18469
18470         poll: don't return uninitialized
18471         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
18472
18473 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
18474
18475         avoid compile failure on AIX 6.1
18476         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
18477         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
18478
18479 2009-01-04  Jim Meyering  <meyering@redhat.com>
18480
18481         remove duplicate inclusion of <stdio.h>
18482         * tests/test-fprintf-posix.c: Likewise.
18483         * tests/test-printf-posix.c: Likewise.
18484         * tests/test-snprintf-posix.c: Likewise.
18485         * tests/test-sprintf-posix.c: Likewise.
18486         * tests/test-vasprintf-posix.c: Likewise.
18487         * tests/test-vfprintf-posix.c: Likewise.
18488         * tests/test-vprintf-posix.c: Likewise.
18489         * tests/test-vsnprintf-posix.c: Likewise.
18490         * tests/test-vsprintf-posix.c: Likewise.
18491
18492 2009-01-03  Jim Meyering  <meyering@redhat.com>
18493
18494         gnulib-tool: fix sed-based filtering
18495         * gnulib-tool (func_filter_filelist): Remove extra backslash
18496         in sed_fff_filter definition.
18497
18498 2009-01-02  Jim Meyering  <meyering@redhat.com>
18499
18500         strftime: avoid compilation failure on Solaris 2.6
18501         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
18502         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
18503         Don't #define mbrlen or mbsinit, since now they're guaranteed to
18504         be available.  Reported by Tom G. Christensen.  Details in
18505         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
18506
18507 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18508             Bruno Haible  <bruno@clisp.org>
18509
18510         Speed up gnulib-tool by doing more string processing through shell
18511         built-ins.
18512         * gnulib-tool (fast_func_append): New variable.
18513         (func_remove_prefix, func_remove_suffix): New functions.
18514         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
18515         (func_filter_filelist): New function.
18516         (func_get_dependencies): Use func_remove_suffix instead of sed.
18517         (func_get_automake_snippet): Use func_filter_filelist instead of a
18518         subshell and sed invocation.
18519
18520 2009-01-01  Bruno Haible  <bruno@clisp.org>
18521
18522         Fix a security bug.
18523         * gnulib-tool (func_import, import, update): Don't allow the characters
18524         '"', '$', '`', '\' in macro arguments that become part of commands that
18525         are evaluated.
18526
18527 2009-01-01  Bruno Haible  <bruno@clisp.org>
18528
18529         * gnulib-tool (func_reset_sigpipe): Add more comments.
18530
18531 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18532
18533         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
18534         func_emit_tests_Makefile_am, func_import): Abort loops early if we
18535         already know the answer.
18536
18537 2009-01-01  Jim Meyering  <meyering@redhat.com>
18538
18539         * lib/version-etc.c (version_etc_va): Update copyright year.
18540
18541 2008-12-30  Bruno Haible  <bruno@clisp.org>
18542
18543         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
18544         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
18545         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
18546
18547 2008-12-29  Eric Blake  <ebb9@byu.net>
18548
18549         multiarch: avoid autoconf AC_REQUIRE bug
18550         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
18551         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
18552         2.63 and older.
18553         Reported by Bruno Haible, and analyzed in
18554         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
18555
18556 2008-12-29  Bruno Haible  <bruno@clisp.org>
18557
18558         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
18559         files in subdirectories correctly.
18560         Reported by Ralf Wildenhues.
18561
18562 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18563
18564         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
18565         rather than 'join FILE -', for Solaris join.
18566
18567 2008-12-29  Bruno Haible  <bruno@clisp.org>
18568
18569         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
18570         quoting.
18571         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
18572         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18573         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18574         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
18575         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18576         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
18577         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
18578         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
18579         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18580         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
18581         * m4/nls.m4 (AM_NLS): Likewise.
18582         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
18583         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18584         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18585         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
18586         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
18587         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18588         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
18589         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
18590         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
18591         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
18592         * m4/xsize.m4 (gl_XSIZE): Likewise.
18593         Suggested by Jim Meyering.
18594
18595 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18596
18597         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
18598         * lib/parse-duration.c: use a switch instead of cascading if's.
18599
18600 2008-12-29  Eric Blake  <ebb9@byu.net>
18601
18602         wchar.h: supply WEOF on Irix 5.3
18603         * lib/wchar.in.h (wint_t): Also supply WEOF.
18604         * lib/wctype.in.h (wint_t): Likewise.
18605         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
18606         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
18607         Reported by Tom G. Christensen.
18608
18609 2008-12-26  Bruno Haible  <bruno@clisp.org>
18610
18611         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
18612         i486, i586, i686.
18613
18614 2008-12-26  Bruno Haible  <bruno@clisp.org>
18615
18616         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
18617
18618 2008-12-26  Bruno Haible  <bruno@clisp.org>
18619
18620         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
18621         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
18622         not __STDC_CONSTANT_MACROS.
18623         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18624
18625 2008-12-25  Bruno Haible  <bruno@clisp.org>
18626
18627         Add support for universal builds to vasnprintf.
18628         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
18629         universal builds, guess no.
18630         * modules/vasnprintf-posix (Depends-on): Add multiarch.
18631         * modules/vasprintf-posix (Depends-on): Likewise.
18632         * modules/fprintf-posix (Depends-on): Likewise.
18633         * modules/vfprintf-posix (Depends-on): Likewise.
18634         * modules/snprintf-posix (Depends-on): Likewise.
18635         * modules/vsnprintf-posix (Depends-on): Likewise.
18636         * modules/sprintf-posix (Depends-on): Likewise.
18637         * modules/vsprintf-posix (Depends-on): Likewise.
18638         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18639         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18640         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18641         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18642         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18643         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18644         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18645
18646         Add support for universal builds to <inttypes.h>.
18647         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18648         _SCNu64_PREFIX): In Apple
18649         universal builds, define directly, using _LP64.
18650         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
18651         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
18652         * modules/inttypes (Depends-on): Add multiarch.
18653         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18654
18655         Add support for universal builds to <stdint.h>.
18656         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
18657         universal builds, define directly, using _LP64.
18658         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
18659         Apple universal builds, don't test for the size and suffix of ptrdiff_t
18660         and size_t.
18661         * modules/stdint (Depends-on): Add multiarch.
18662         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
18663
18664         New module 'multiarch'.
18665         * modules/multiarch: New file.
18666         * m4/multiarch.m4: New file.
18667
18668 2008-12-25  Bruno Haible  <bruno@clisp.org>
18669
18670         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
18671
18672 2008-12-25  Bruno Haible  <bruno@clisp.org>
18673
18674         * modules/btowc (License): Relicense under LGPLv2+.
18675         * modules/mbsinit (License): Likewise.
18676         * modules/mbrtowc (License): Likewise.
18677         * modules/wcrtomb (License): Likewise.
18678         * modules/streq (License): Likewise.
18679         Reported by David Lutterkort <lutter@redhat.com>.
18680
18681 2008-12-23  Bruno Haible  <bruno@clisp.org>
18682
18683         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
18684
18685 2008-12-23  Bruno Haible  <bruno@clisp.org>
18686
18687         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
18688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
18689         GETADDRINFO_LIB, not in LIBS.
18690         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
18691         * modules/canon-host (Link): Likewise.
18692         * NEWS: Mention the change.
18693         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
18694         GETADDRINFO_LIB.
18695
18696 2008-12-22  Bruno Haible  <bruno@clisp.org>
18697
18698         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
18699         * doc/posix-functions/iswalpha_l.texi: Likewise.
18700         * doc/posix-functions/iswblank_l.texi: Likewise.
18701         * doc/posix-functions/iswcntrl_l.texi: Likewise.
18702         * doc/posix-functions/iswctype_l.texi: Likewise.
18703         * doc/posix-functions/iswdigit_l.texi: Likewise.
18704         * doc/posix-functions/iswgraph_l.texi: Likewise.
18705         * doc/posix-functions/iswlower_l.texi: Likewise.
18706         * doc/posix-functions/iswprint_l.texi: Likewise.
18707         * doc/posix-functions/iswpunct_l.texi: Likewise.
18708         * doc/posix-functions/iswspace_l.texi: Likewise.
18709         * doc/posix-functions/iswupper_l.texi: Likewise.
18710         * doc/posix-functions/iswxdigit_l.texi: Likewise.
18711         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
18712         * doc/posix-functions/open_wmemstream.texi: Likewise.
18713         * doc/posix-functions/swscanf.texi: Likewise.
18714         * doc/posix-functions/towctrans_l.texi: Likewise.
18715         * doc/posix-functions/towlower.texi: Likewise.
18716         * doc/posix-functions/towlower_l.texi: Likewise.
18717         * doc/posix-functions/towupper.texi: Likewise.
18718         * doc/posix-functions/towupper_l.texi: Likewise.
18719         * doc/posix-functions/vfwprintf.texi: Likewise.
18720         * doc/posix-functions/vfwscanf.texi: Likewise.
18721         * doc/posix-functions/vswscanf.texi: Likewise.
18722         * doc/posix-functions/vwprintf.texi: Likewise.
18723         * doc/posix-functions/vwscanf.texi: Likewise.
18724         * doc/posix-functions/wcpcpy.texi: Likewise.
18725         * doc/posix-functions/wcpncpy.texi: Likewise.
18726         * doc/posix-functions/wcscasecmp.texi: Likewise.
18727         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
18728         * doc/posix-functions/wcscoll_l.texi: Likewise.
18729         * doc/posix-functions/wcsdup.texi: Likewise.
18730         * doc/posix-functions/wcsncasecmp.texi: Likewise.
18731         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
18732         * doc/posix-functions/wcsnlen.texi: Likewise.
18733         * doc/posix-functions/wcsnrtombs.texi: Likewise.
18734         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
18735         * doc/posix-functions/wctrans_l.texi: Likewise.
18736         * doc/posix-functions/wctype_l.texi: Likewise.
18737         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
18738         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
18739         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
18740         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
18741         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
18742         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
18743         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
18744         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
18745         * doc/glibc-functions/wcschrnul.texi: Likewise.
18746         * doc/glibc-functions/wcsftime_l.texi: Likewise.
18747         * doc/glibc-functions/wcstod_l.texi: Likewise.
18748         * doc/glibc-functions/wcstof_l.texi: Likewise.
18749         * doc/glibc-functions/wcstol_l.texi: Likewise.
18750         * doc/glibc-functions/wcstold_l.texi: Likewise.
18751         * doc/glibc-functions/wcstoll_l.texi: Likewise.
18752         * doc/glibc-functions/wcstoq.texi: Likewise.
18753         * doc/glibc-functions/wcstoul_l.texi: Likewise.
18754         * doc/glibc-functions/wcstoull_l.texi: Likewise.
18755         * doc/glibc-functions/wcstouq.texi: Likewise.
18756         * doc/glibc-functions/wmempcpy.texi: Likewise.
18757
18758 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
18759             Eric Blake  <ebb9@byu.net>
18760             Paolo Bonzini  <bonzini@gnu.org>
18761             Bruno Haible  <bruno@clisp.org>
18762
18763         Make c-stack work on Haiku.
18764         * lib/c-stack.c (SA_ONSTACK): Define fallback.
18765         (c_stack_action): Use SA_ONSTACK flag.
18766
18767 2008-12-22  Bruno Haible  <bruno@clisp.org>
18768
18769         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
18770
18771 2008-12-22  Bruno Haible  <bruno@clisp.org>
18772
18773         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
18774         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
18775         being overridden.
18776         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
18777         New macros.
18778         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
18779         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
18780         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
18781         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
18782
18783 2008-12-22  Bruno Haible  <bruno@clisp.org>
18784
18785         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
18786         from test code.
18787
18788 2008-12-22  Eric Blake  <ebb9@byu.net>
18789
18790         Avoid gcc warnings on cygwin.
18791         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18792         Avoid unused variable.
18793         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18794         Likewise.
18795
18796 2008-12-22  Bruno Haible  <bruno@clisp.org>
18797
18798         Remove HAVE_MBRTOWC conditionals.
18799         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
18800         (mbscasecmp): Assume mbrtowc function.
18801         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
18802         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
18803         * lib/mbschr.c: Include mbuiter.h unconditionally.
18804         (mbschr): Assume mbrtowc function.
18805         * lib/mbscspn.c: Include mbuiter.h unconditionally.
18806         (mbscspn): Assume mbrtowc function.
18807         * lib/mbslen.c: Include mbuiter.h unconditionally.
18808         (mbslen): Assume mbrtowc function.
18809         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
18810         (mbsncasecmp): Assume mbrtowc function.
18811         * lib/mbsnlen.c: Include mbiter.h unconditionally.
18812         (mbsnlen): Assume mbrtowc function.
18813         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
18814         (mbspbrk): Assume mbrtowc function.
18815         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
18816         (mbspcasecmp): Assume mbrtowc function.
18817         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
18818         (mbsrchr): Assume mbrtowc function.
18819         * lib/mbssep.c: Include mbuiter.h unconditionally.
18820         (mbssep): Assume mbrtowc function.
18821         * lib/mbsspn.c: Include mbuiter.h unconditionally.
18822         (mbsspn): Assume mbrtowc function.
18823         * lib/mbsstr.c: Include mbuiter.h unconditionally.
18824         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
18825         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
18826         (mbstok_r): Assume mbrtowc function.
18827         * lib/propername.c: Include mbuiter.h unconditionally.
18828         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
18829         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
18830         (trim2): Assume mbrtowc function.
18831         * lib/mbswidth.c (mbsinit): Remove fallback definition.
18832         (mbsnwidth): Assume mbrtowc function.
18833         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
18834         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
18835         fallback definitions.
18836         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
18837
18838 2008-12-22  Bruno Haible  <bruno@clisp.org>
18839
18840         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
18841
18842 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
18843
18844         * modules/regex: Request emulations for the mb*/wc* functions we need.
18845         * m4/regex.m4: Don't look for those functions here.
18846         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
18847
18848 2008-12-22  Bruno Haible  <bruno@clisp.org>
18849
18850         * modules/fnmatch (Depends-on): Remove duplicated dependency.
18851
18852 2008-12-21  Bruno Haible  <bruno@clisp.org>
18853
18854         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
18855         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
18856         (Include): Remove conditionalization.
18857         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
18858         (Include): Remove conditionalization.
18859         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
18860         (Include): Remove conditionalization.
18861         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
18862         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18863         * NEWS: Mention the change.
18864         Reported by Alan Hourihane <alanh@fairlite.co.uk>
18865         via Sergey Poznyakoff <gray@gnu.org.ua>.
18866
18867 2008-12-21  Bruno Haible  <bruno@clisp.org>
18868
18869         * MODULES.html.sh (Extended multibyte and wide character utilities
18870         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
18871         wcrtomb, wcsrtombs.
18872         (Support for systems lacking POSIX:2008): Add accept, bind, close,
18873         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
18874         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
18875         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
18876
18877 2008-12-21  Bruno Haible  <bruno@clisp.org>
18878
18879         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
18880
18881 2008-12-21  Bruno Haible  <bruno@clisp.org>
18882
18883         * modules/wcsnrtombs-tests: New file.
18884         * tests/test-wcsnrtombs1.sh: New file.
18885         * tests/test-wcsnrtombs2.sh: New file.
18886         * tests/test-wcsnrtombs3.sh: New file.
18887         * tests/test-wcsnrtombs4.sh: New file.
18888         * tests/test-wcsnrtombs.c: New file.
18889
18890         New module 'wcsnrtombs'.
18891         * lib/wchar.in.h (wcsnrtombs): New declaration.
18892         * lib/wcsnrtombs.c: New file.
18893         * lib/wcsrtombs-state.c: New file.
18894         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
18895         (internal_state): Remove variable.
18896         * m4/wcsnrtombs.m4: New file.
18897         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
18898         compilation units.
18899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
18900         HAVE_WCSNRTOMBS.
18901         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
18902         HAVE_WCSNRTOMBS.
18903         * modules/wcsnrtombs: New file.
18904         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
18905         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
18906
18907 2008-12-21  Bruno Haible  <bruno@clisp.org>
18908
18909         * modules/wcsrtombs-tests: New file.
18910         * tests/test-wcsrtombs1.sh: New file.
18911         * tests/test-wcsrtombs2.sh: New file.
18912         * tests/test-wcsrtombs3.sh: New file.
18913         * tests/test-wcsrtombs4.sh: New file.
18914         * tests/test-wcsrtombs.c: New file.
18915
18916         New module 'wcsrtombs'.
18917         * lib/wchar.in.h (wcsrtombs): New declaration.
18918         * lib/wcsrtombs.c: New file.
18919         * m4/wcsrtombs.m4: New file.
18920         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
18921         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
18923         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
18924         * modules/wcsrtombs: New file.
18925         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
18926         bugs.
18927
18928 2008-12-21  Bruno Haible  <bruno@clisp.org>
18929
18930         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
18931         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
18932         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
18933         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
18934         if not correct.
18935         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
18936         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
18937         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
18938         m4/locale-zh.m4, m4/codeset.m4.
18939         * doc/posix-functions/wcrtomb.texi: Document the bug.
18940
18941 2008-12-21  Bruno Haible  <bruno@clisp.org>
18942
18943         Work around a btowc() bug on IRIX 6.5.
18944         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
18945         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
18946         REPLACE_WTOBC if not.
18947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
18948         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
18949         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
18950
18951 2008-12-21  Bruno Haible  <bruno@clisp.org>
18952
18953         * modules/wcrtomb-tests: New file.
18954         * tests/test-wcrtomb.sh: New file.
18955         * tests/test-wcrtomb.c: New file.
18956
18957         New module 'wcrtomb'.
18958         * lib/wchar.in.h (wcrtomb): New declaration.
18959         * lib/wcrtomb.c: New file.
18960         * m4/wcrtomb.m4: New file.
18961         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
18962         HAVE_WCRTOMB.
18963         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
18964         HAVE_WCRTOMB.
18965         * modules/wcrtomb: New file.
18966         * doc/posix-functions/wcrtomb.texi: Mention the new module.
18967
18968 2008-12-21  Bruno Haible  <bruno@clisp.org>
18969
18970         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
18971         * modules/mbsrtowcs (Files): Likewise.
18972         * modules/wctob (Files): Likewise.
18973         * modules/c-strcase-tests (Files): Likewise.
18974         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
18975         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
18976         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
18977         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
18978         * modules/vasnprintf-posix-tests (Files): Likewise.
18979
18980 2008-12-21  William Pursell  <bill.pursell@gmail.com>
18981
18982         gitlog-to-changelog: pass all command-line arguments to git-log
18983         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
18984         it is sometimes convenient to filter the commits in various ways.
18985         gitlog-to-changelog only allows --since to specify a start date,
18986         but git-log itself supports many other filtering mechanisms.
18987         At the moment, I want to filter by branch name.  Rather than
18988         adding a --branch option to gitlog-to-changelog, it seems more
18989         flexible to simply pass all options directly to git-log and let
18990         git do the work.  Notice that this effectively makes --since a
18991         redundant option for gitlog-to-changelog, but removing it would
18992         require current usage to change since calls would then require
18993         an additional '--'.
18994
18995 2008-12-21  Bruno Haible  <bruno@clisp.org>
18996
18997         * modules/mbsnrtowcs-tests: New file.
18998         * tests/test-mbsnrtowcs1.sh: New file.
18999         * tests/test-mbsnrtowcs2.sh: New file.
19000         * tests/test-mbsnrtowcs3.sh: New file.
19001         * tests/test-mbsnrtowcs4.sh: New file.
19002         * tests/test-mbsnrtowcs.c: New file.
19003
19004         New module 'mbsnrtowcs'.
19005         * lib/wchar.in.h (mbsnrtowcs): New declaration.
19006         * lib/mbsnrtowcs.c: New file.
19007         * lib/mbsrtowcs-state.c: New file.
19008         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
19009         (internal_state): Remove variable.
19010         * m4/mbsnrtowcs.m4: New file.
19011         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
19012         compilation units.
19013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
19014         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19015         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
19016         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
19017         * modules/mbsnrtowcs: New file.
19018         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
19019         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
19020         portability problem.
19021
19022 2008-12-21  Bruno Haible  <bruno@clisp.org>
19023
19024         Work around mbsrtowcs bug.
19025         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
19026         (gl_FUNC_MBSRTOWCS): Invoke it.
19027         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19028         m4/locale-zh.m4.
19029         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
19030
19031 2008-12-21  Bruno Haible  <bruno@clisp.org>
19032
19033         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
19034
19035 2008-12-21  Bruno Haible  <bruno@clisp.org>
19036
19037         Update doc for AIX.
19038         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
19039         16-bit wchar_t type.
19040         * doc/posix-functions/btowc.texi: Likewise.
19041         * doc/posix-functions/fgetwc.texi: Likewise.
19042         * doc/posix-functions/fgetws.texi: Likewise.
19043         * doc/posix-functions/fputwc.texi: Likewise.
19044         * doc/posix-functions/fputws.texi: Likewise.
19045         * doc/posix-functions/fwide.texi: Likewise.
19046         * doc/posix-functions/fwprintf.texi: Likewise.
19047         * doc/posix-functions/fwscanf.texi: Likewise.
19048         * doc/posix-functions/getwchar.texi: Likewise.
19049         * doc/posix-functions/getwc.texi: Likewise.
19050         * doc/posix-functions/iswalnum.texi: Likewise.
19051         * doc/posix-functions/iswalpha.texi: Likewise.
19052         * doc/posix-functions/iswblank.texi: Likewise.
19053         * doc/posix-functions/iswcntrl.texi: Likewise.
19054         * doc/posix-functions/iswctype.texi: Likewise.
19055         * doc/posix-functions/iswdigit.texi: Likewise.
19056         * doc/posix-functions/iswgraph.texi: Likewise.
19057         * doc/posix-functions/iswlower.texi: Likewise.
19058         * doc/posix-functions/iswprint.texi: Likewise.
19059         * doc/posix-functions/iswpunct.texi: Likewise.
19060         * doc/posix-functions/iswspace.texi: Likewise.
19061         * doc/posix-functions/iswupper.texi: Likewise.
19062         * doc/posix-functions/iswxdigit.texi: Likewise.
19063         * doc/posix-functions/mbrtowc.texi: Likewise.
19064         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19065         * doc/posix-functions/mbstowcs.texi: Likewise.
19066         * doc/posix-functions/mbtowc.texi: Likewise.
19067         * doc/posix-functions/putwchar.texi: Likewise.
19068         * doc/posix-functions/putwc.texi: Likewise.
19069         * doc/posix-functions/swprintf.texi: Likewise.
19070         * doc/posix-functions/tolower.texi: Likewise.
19071         * doc/posix-functions/toupper.texi: Likewise.
19072         * doc/posix-functions/towctrans.texi: Likewise.
19073         * doc/posix-functions/ungetwc.texi: Likewise.
19074         * doc/posix-functions/vswprintf.texi: Likewise.
19075         * doc/posix-functions/wcrtomb.texi: Likewise.
19076         * doc/posix-functions/wcscat.texi: Likewise.
19077         * doc/posix-functions/wcschr.texi: Likewise.
19078         * doc/posix-functions/wcscmp.texi: Likewise.
19079         * doc/posix-functions/wcscoll.texi: Likewise.
19080         * doc/posix-functions/wcscpy.texi: Likewise.
19081         * doc/posix-functions/wcscspn.texi: Likewise.
19082         * doc/posix-functions/wcsftime.texi: Likewise.
19083         * doc/posix-functions/wcslen.texi: Likewise.
19084         * doc/posix-functions/wcsncat.texi: Likewise.
19085         * doc/posix-functions/wcsncmp.texi: Likewise.
19086         * doc/posix-functions/wcsncpy.texi: Likewise.
19087         * doc/posix-functions/wcspbrk.texi: Likewise.
19088         * doc/posix-functions/wcsrchr.texi: Likewise.
19089         * doc/posix-functions/wcsrtombs.texi: Likewise.
19090         * doc/posix-functions/wcsspn.texi: Likewise.
19091         * doc/posix-functions/wcsstr.texi: Likewise.
19092         * doc/posix-functions/wcstod.texi: Likewise.
19093         * doc/posix-functions/wcstof.texi: Likewise.
19094         * doc/posix-functions/wcstoimax.texi: Likewise.
19095         * doc/posix-functions/wcstok.texi: Likewise.
19096         * doc/posix-functions/wcstold.texi: Likewise.
19097         * doc/posix-functions/wcstoll.texi: Likewise.
19098         * doc/posix-functions/wcstol.texi: Likewise.
19099         * doc/posix-functions/wcstombs.texi: Likewise.
19100         * doc/posix-functions/wcstoull.texi: Likewise.
19101         * doc/posix-functions/wcstoul.texi: Likewise.
19102         * doc/posix-functions/wcstoumax.texi: Likewise.
19103         * doc/posix-functions/wcswidth.texi: Likewise.
19104         * doc/posix-functions/wcsxfrm.texi: Likewise.
19105         * doc/posix-functions/wctob.texi: Likewise.
19106         * doc/posix-functions/wctomb.texi: Likewise.
19107         * doc/posix-functions/wctrans.texi: Likewise.
19108         * doc/posix-functions/wctype.texi: Likewise.
19109         * doc/posix-functions/wcwidth.texi: Likewise.
19110         * doc/posix-functions/wmemchr.texi: Likewise.
19111         * doc/posix-functions/wmemcmp.texi: Likewise.
19112         * doc/posix-functions/wmemcpy.texi: Likewise.
19113         * doc/posix-functions/wmemmove.texi: Likewise.
19114         * doc/posix-functions/wmemset.texi: Likewise.
19115         * doc/posix-functions/wprintf.texi: Likewise.
19116         * doc/posix-functions/wscanf.texi: Likewise.
19117
19118 2008-12-21  Bruno Haible  <bruno@clisp.org>
19119
19120         Update doc for HP-UX 11.11.
19121         * doc/posix-functions/btowc.texi: Clarify that the function is missing
19122         in HP-UX version 11.00, not in all versions of HP-UX 11.
19123         * doc/posix-functions/fwide.texi: Likewise.
19124         * doc/posix-functions/fwprintf.texi: Likewise.
19125         * doc/posix-functions/fwscanf.texi: Likewise.
19126         * doc/posix-functions/inet_ntop.texi: Likewise.
19127         * doc/posix-functions/inet_pton.texi: Likewise.
19128         * doc/posix-functions/mbrlen.texi: Likewise.
19129         * doc/posix-functions/mbrtowc.texi: Likewise.
19130         * doc/posix-functions/mbsinit.texi: Likewise.
19131         * doc/posix-functions/mbsrtowcs.texi: Likewise.
19132         * doc/posix-functions/swprintf.texi: Likewise.
19133         * doc/posix-functions/swscanf.texi: Likewise.
19134         * doc/posix-functions/towctrans.texi: Likewise.
19135         * doc/posix-functions/vfwprintf.texi: Likewise.
19136         * doc/posix-functions/vswprintf.texi: Likewise.
19137         * doc/posix-functions/vwprintf.texi: Likewise.
19138         * doc/posix-functions/wcrtomb.texi: Likewise.
19139         * doc/posix-functions/wcsrtombs.texi: Likewise.
19140         * doc/posix-functions/wcsstr.texi: Likewise.
19141         * doc/posix-functions/wctob.texi: Likewise.
19142         * doc/posix-functions/wctrans.texi: Likewise.
19143         * doc/posix-functions/wmemchr.texi: Likewise.
19144         * doc/posix-functions/wmemcmp.texi: Likewise.
19145         * doc/posix-functions/wmemcpy.texi: Likewise.
19146         * doc/posix-functions/wmemmove.texi: Likewise.
19147         * doc/posix-functions/wmemset.texi: Likewise.
19148         * doc/posix-functions/wprintf.texi: Likewise.
19149         * doc/posix-functions/wscanf.texi: Likewise.
19150
19151 2008-12-21  Bruno Haible  <bruno@clisp.org>
19152
19153         Work around a portability problem.
19154         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
19155         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
19156
19157 2008-12-20  Bruno Haible  <bruno@clisp.org>
19158
19159         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
19160         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
19161         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
19162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
19163         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
19164
19165         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
19166         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
19167         set.
19168         (GNULIB_defined_mbstate_t): New macro.
19169         (mbsinit): Redefine if REPLACE_MBSINIT is set.
19170         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
19171         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
19172         reuses the system's mbrtowc function but works around the bugs.
19173         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
19174         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
19175         macros.
19176         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
19177         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
19178         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
19179         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
19180         REPLACE_MBSINIT if mbsinit needs to be overridden.
19181         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
19182         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19183         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
19184         REPLACE_MBSINIT, REPLACE_MBRTOWC.
19185         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
19186         m4/locale-zh.m4.
19187         (Depends): Add mbsinit.
19188         * modules/mbsinit (Depends): Add mbrtowc.
19189         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
19190
19191 2008-12-20  Bruno Haible  <bruno@clisp.org>
19192
19193         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
19194         so that there are no conversion errors on AIX.
19195         * tests/test-mbsrtowcs.c (main): LIkewise.
19196
19197 2008-12-20  Bruno Haible  <bruno@clisp.org>
19198
19199         Work around wctob bug on Solaris <= 9.
19200         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
19201         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
19202         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
19203         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
19204         * modules/wctob (Files): Add m4/locale-fr.m4.
19205         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
19206
19207 2008-12-20  Bruno Haible  <bruno@clisp.org>
19208
19209         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
19210         /dev/null.
19211         * tests/test-select-in.sh: Likewise.
19212         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19213
19214 2008-12-20  Bruno Haible  <bruno@clisp.org>
19215
19216         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
19217         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
19218         Cygwin 1.5.x.
19219
19220 2008-12-20  Bruno Haible  <bruno@clisp.org>
19221
19222         Ensure mbstate_t is defined on HP-UX 11.11.
19223         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
19224         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
19225         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
19226         AC_USE_SYSTEM_EXTENSIONS.
19227         * modules/fnmatch (Depends-on): Add extensions.
19228         * modules/mbrlen (Depends-on): Likewise.
19229         * modules/mbrtowc (Depends-on): Likewise.
19230         * modules/mbsinit (Depends-on): Likewise.
19231         * modules/mbsrtowcs (Depends-on): Likewise.
19232         * modules/mbswidth (Depends-on): Likewise.
19233         * modules/quotearg (Depends-on): Likewise.
19234         * modules/strftime (Depends-on): Likewise.
19235
19236 2008-12-20  Bruno Haible  <bruno@clisp.org>
19237
19238         Ensure wctob is declared on IRIX 6.5.
19239         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
19240         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
19241         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
19242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
19243         of HAVE_WCTOB.
19244         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
19245         HAVE_WCTOB.
19246         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
19247
19248 2008-12-19  Bruno Haible  <bruno@clisp.org>
19249
19250         * modules/mbsrtowcs-tests: New file.
19251         * tests/test-mbsrtowcs1.sh: New file.
19252         * tests/test-mbsrtowcs2.sh: New file.
19253         * tests/test-mbsrtowcs3.sh: New file.
19254         * tests/test-mbsrtowcs4.sh: New file.
19255         * tests/test-mbsrtowcs.c: New file.
19256
19257         New module 'mbsrtowcs'.
19258         * lib/wchar.in.h (mbsrtowcs): New declaration.
19259         * lib/mbsrtowcs.c: New file.
19260         * m4/mbsrtowcs.m4: New file.
19261         * modules/mbsrtowcs: New file.
19262         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
19263         HAVE_MBSRTOWCS.
19264         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
19265         HAVE_MBSRTOWCS.
19266         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
19267
19268 2008-12-19  Bruno Haible  <bruno@clisp.org>
19269
19270         New module 'mbrlen'.
19271         * lib/wchar.in.h (mbrlen): New declaration.
19272         * lib/mbrlen.c: New file.
19273         * m4/mbrlen.m4: New file.
19274         * modules/mbrlen: New file.
19275         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
19276         HAVE_MBRLEN.
19277         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
19278         HAVE_MBRLEN.
19279         * doc/posix-functions/mbrlen.texi: Document the new module.
19280
19281 2008-12-19  Bruno Haible  <bruno@clisp.org>
19282
19283         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
19284         * modules/mbrtowc (Depends-on): Add verify.
19285         Suggested by Paul Eggert.
19286
19287 2008-12-18  Bruno Haible  <bruno@clisp.org>
19288
19289         * modules/mbsinit-tests: New file.
19290         * tests/test-mbsinit.sh: New file.
19291         * tests/test-mbsinit.c: New file.
19292
19293 2008-12-18  Bruno Haible  <bruno@clisp.org>
19294
19295         * modules/mbrtowc-tests: New file.
19296         * tests/test-mbrtowc1.sh: New file.
19297         * tests/test-mbrtowc2.sh: New file.
19298         * tests/test-mbrtowc3.sh: New file.
19299         * tests/test-mbrtowc4.sh: New file.
19300         * tests/test-mbrtowc.c: New file.
19301
19302         New module 'mbrtowc'.
19303         * lib/wchar.in.h (mbstate_t): Override when the system does not have
19304         mbsinit and mbrtowc.
19305         (mbrtowc): New declaration.
19306         * lib/mbrtowc.c: New file.
19307         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
19308         * modules/mbrtowc: New file.
19309         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
19310         HAVE_MBRTOWC.
19311         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
19312         HAVE_MBRTOWC.
19313         * doc/posix-functions/mbrtowc.texi: Document the new module.
19314
19315 2008-12-18  Bruno Haible  <bruno@clisp.org>
19316
19317         New module 'wctob'.
19318         * lib/wchar.in.h (wctob): New declaration.
19319         * lib/wctob.c: New file.
19320         * m4/wctob.m4: New file.
19321         * modules/wctob: New file.
19322         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
19323         HAVE_WCTOB.
19324         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
19325         * doc/posix-functions/wctob.texi: Document the new module.
19326
19327 2008-12-18  Bruno Haible  <bruno@clisp.org>
19328
19329         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
19330         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
19331
19332 2008-12-18  Simon Josefsson  <simon@josefsson.org>
19333
19334         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
19335         G. Christensen" <tgc@jupiterrise.com>.
19336
19337         * lib/flock.c: Need to include errno.h.  Reported by "Tom
19338         G. Christensen" <tgc@jupiterrise.com>.
19339
19340         * lib/flock.c: Need to include string.h.  Reported by "Tom
19341         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
19342         <ebb9@byu.net>.
19343
19344 2008-12-18  Bruno Haible  <bruno@clisp.org>
19345
19346         * m4/locale-ja.m4: New file, from GNU gettext.
19347
19348 2008-12-17  Bruno Haible  <bruno@clisp.org>
19349
19350         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
19351         Suggested by Eric Blake.
19352
19353 2008-12-17  Bruno Haible  <bruno@clisp.org>
19354
19355         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
19356
19357 2008-12-17  Bruno Haible  <bruno@clisp.org>
19358
19359         * lib/mbsinit.c: Include verify.h. Verify an assumption.
19360         * modules/mbsinit (Depends-on): Add verify.
19361         Suggested by Paul Eggert.
19362
19363 2008-12-17  Bruno Haible  <bruno@clisp.org>
19364
19365         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
19366         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
19367         gl_FUNC_MBRTOWC.
19368         * m4/mbiter.m4 (gl_MBITER): LIkewise.
19369         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
19370         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
19371         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
19372         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
19373         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
19374         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
19375         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
19376         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
19377         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
19378         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
19379         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
19380         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
19381         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
19382         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
19383         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19384         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
19385         * modules/trim (configure.ac): Likewise.
19386
19387 2008-12-17  Bruno Haible  <bruno@clisp.org>
19388
19389         * modules/btowc-tests: New file.
19390         * tests/test-btowc1.sh: New file.
19391         * tests/test-btowc2.sh: New file.
19392         * tests/test-btowc.c: New file.
19393
19394         New module 'btowc'.
19395         * lib/wchar.in.h (btowc): New declaration.
19396         * lib/btowc.c: New file.
19397         * m4/btowc.m4: New file.
19398         * modules/btowc: New file.
19399         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
19400         HAVE_BTOWC.
19401         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
19402         * doc/posix-functions/btowc.texi: Document the new module.
19403
19404 2008-12-17  Bruno Haible  <bruno@clisp.org>
19405
19406         New module 'mbsinit'.
19407         * lib/wchar.in.h (mbsinit): New declaration.
19408         * lib/mbsinit.c: New file.
19409         * m4/mbsinit.m4: New file.
19410         * modules/mbsinit: New file.
19411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
19412         HAVE_MBSINIT.
19413         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
19414         HAVE_MBSINIT.
19415         * doc/posix-functions/mbsinit.texi: Document the new module.
19416
19417 2008-12-16  Bruno Haible  <bruno@clisp.org>
19418
19419         * lib/unistd.in.h: Add comment.
19420         * tests/test-environ.c: Don't include <stdlib.h>.
19421
19422 2008-12-16  Bruno Haible  <bruno@clisp.org>
19423
19424         * lib/parse-duration.h (parse_duration): Document return value
19425         convention.
19426         * lib/parse-duration.c: Include specification header first. Add
19427         comments.
19428         (_): Remove macro.
19429         (parse_year_month_day, parse_hour_minute_second): Move side effects
19430         outside of strchr call.
19431         (parse_non_iso8601): Move side effects outside of isspace call.
19432         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
19433         call.
19434
19435 2008-12-16  Bruno Haible  <bruno@clisp.org>
19436
19437         * tests/test-parse-duration.sh: Produce no output when the test
19438         succeeds.
19439
19440 2008-12-16  Bruno Haible  <bruno@clisp.org>
19441
19442         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
19443         expressions.
19444
19445 2008-12-15  Bruno Haible  <bruno@clisp.org>
19446
19447         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
19448         * doc/glibc-functions/flistxattr.texi: Likewise.
19449         * doc/glibc-functions/fopencookie.texi: Likewise.
19450         * doc/glibc-functions/fremovexattr.texi: Likewise.
19451         * doc/glibc-functions/fsetxattr.texi: Likewise.
19452         * doc/glibc-functions/getxattr.texi: Likewise.
19453         * doc/glibc-functions/lgetxattr.texi: Likewise.
19454         * doc/glibc-functions/listxattr.texi: Likewise.
19455         * doc/glibc-functions/llistxattr.texi: Likewise.
19456         * doc/glibc-functions/lremovexattr.texi: Likewise.
19457         * doc/glibc-functions/lsetxattr.texi: Likewise.
19458         * doc/glibc-functions/removexattr.texi: Likewise.
19459         * doc/glibc-functions/setxattr.texi: Likewise.
19460         * doc/posix-functions/open_memstream.texi: Likewise.
19461
19462 2008-12-15  Eric Blake  <ebb9@byu.net>
19463
19464         Update doc for cygwin 1.7.
19465         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
19466         functions.
19467         * doc/posix-functions/fchmodat.texi: Likewise.
19468         * doc/posix-functions/fchownat.texi: Likewise.
19469         * doc/posix-functions/fdopendir.texi: Likewise.
19470         * doc/posix-functions/fmemopen.texi: Likewise.
19471         * doc/posix-functions/freeaddrinfo.texi: Likewise.
19472         * doc/posix-functions/fstatat.texi: Likewise.
19473         * doc/posix-functions/futimens.texi: Likewise.
19474         * doc/posix-functions/gai_strerror.texi: Likewise.
19475         * doc/posix-functions/getaddrinfo.texi: Likewise.
19476         * doc/posix-functions/getnameinfo.texi: Likewise.
19477         * doc/posix-functions/if_freenameindex.texi: Likewise.
19478         * doc/posix-functions/if_indextoname.texi: Likewise.
19479         * doc/posix-functions/if_nameindex.texi: Likewise.
19480         * doc/posix-functions/if_nametoindex.texi: Likewise.
19481         * doc/posix-functions/insque.texi: Likewise.
19482         * doc/posix-functions/linkat.texi: Likewise.
19483         * doc/posix-functions/llrint.texi: Likewise.
19484         * doc/posix-functions/llrintf.texi: Likewise.
19485         * doc/posix-functions/llrintl.texi: Likewise.
19486         * doc/posix-functions/lockf.texi: Likewise.
19487         * doc/posix-functions/lrintl.texi: Likewise.
19488         * doc/posix-functions/mkdirat.texi: Likewise.
19489         * doc/posix-functions/mkfifoat.texi: Likewise.
19490         * doc/posix-functions/mknodat.texi: Likewise.
19491         * doc/posix-functions/mq_close.texi: Likewise.
19492         * doc/posix-functions/mq_getattr.texi: Likewise.
19493         * doc/posix-functions/mq_notify.texi: Likewise.
19494         * doc/posix-functions/mq_open.texi: Likewise.
19495         * doc/posix-functions/mq_receive.texi: Likewise.
19496         * doc/posix-functions/mq_send.texi: Likewise.
19497         * doc/posix-functions/mq_setattr.texi: Likewise.
19498         * doc/posix-functions/mq_timedreceive.texi: Likewise.
19499         * doc/posix-functions/mq_timedsend.texi: Likewise.
19500         * doc/posix-functions/mq_unlink.texi: Likewise.
19501         * doc/posix-functions/open_memstream.texi: Likewise.
19502         * doc/posix-functions/openat.texi: Likewise.
19503         * doc/posix-functions/posix_fadvise.texi: Likewise.
19504         * doc/posix-functions/posix_fallocate.texi: Likewise.
19505         * doc/posix-functions/posix_madvise.texi: Likewise.
19506         * doc/posix-functions/posix_memalign.texi: Likewise.
19507         * doc/posix-functions/posix_openpt.texi: Likewise.
19508         * doc/posix-functions/readlinkat.texi: Likewise.
19509         * doc/posix-functions/remque.texi: Likewise.
19510         * doc/posix-functions/renameat.texi: Likewise.
19511         * doc/posix-functions/rintl.texi: Likewise.
19512         * doc/posix-functions/sem_unlink.texi: Likewise.
19513         * doc/posix-functions/shm_open.texi: Likewise.
19514         * doc/posix-functions/shm_unlink.texi: Likewise.
19515         * doc/posix-functions/signgam.texi: Likewise.
19516         * doc/posix-functions/sigset.texi: Likewise.
19517         * doc/posix-functions/stpcpy.texi: Likewise.
19518         * doc/posix-functions/stpncpy.texi: Likewise.
19519         * doc/posix-functions/strerror.texi: Likewise.
19520         * doc/posix-functions/strtod.texi: Likewise.
19521         * doc/posix-functions/symlinkat.texi: Likewise.
19522         * doc/posix-functions/unlinkat.texi: Likewise.
19523         * doc/posix-functions/utimensat.texi: Likewise.
19524         * doc/glibc-functions/bindresvport.texi: Likewise.
19525         * doc/glibc-functions/dn_expand.texi: Likewise.
19526         * doc/glibc-functions/exp10.texi: Likewise.
19527         * doc/glibc-functions/exp10f.texi: Likewise.
19528         * doc/glibc-functions/fgetxattr.texi: Likewise.
19529         * doc/glibc-functions/flistxattr.texi: Likewise.
19530         * doc/glibc-functions/fopencookie.texi: Likewise.
19531         * doc/glibc-functions/freeifaddrs.texi: Likewise.
19532         * doc/glibc-functions/fremovexattr.texi: Likewise.
19533         * doc/glibc-functions/fsetxattr.texi: Likewise.
19534         * doc/glibc-functions/getifaddrs.texi: Likewise.
19535         * doc/glibc-functions/getxattr.texi: Likewise.
19536         * doc/glibc-functions/lgetxattr.texi: Likewise.
19537         * doc/glibc-functions/listxattr.texi: Likewise.
19538         * doc/glibc-functions/llistxattr.texi: Likewise.
19539         * doc/glibc-functions/lremovexattr.texi: Likewise.
19540         * doc/glibc-functions/lsetxattr.texi: Likewise.
19541         * doc/glibc-functions/pow10.texi: Likewise.
19542         * doc/glibc-functions/pow10f.texi: Likewise.
19543         * doc/glibc-functions/rcmd_af.texi: Likewise.
19544         * doc/glibc-functions/removexattr.texi: Likewise.
19545         * doc/glibc-functions/res_init.texi: Likewise.
19546         * doc/glibc-functions/res_mkquery.texi: Likewise.
19547         * doc/glibc-functions/res_query.texi: Likewise.
19548         * doc/glibc-functions/res_querydomain.texi: Likewise.
19549         * doc/glibc-functions/res_send.texi: Likewise.
19550         * doc/glibc-functions/rresvport_af.texi: Likewise.
19551         * doc/glibc-functions/setxattr.texi: Likewise.
19552         * doc/glibc-functions/strcasestr.texi: Likewise.
19553
19554 2008-12-15  Bruno Haible  <bruno@clisp.org>
19555
19556         Fix compilation error on OSF/1 4.0.
19557         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
19558         <sys/time.h>, simply delegate to the system header.
19559         Reported by Daniel Richard G. <oss@teragram.com>.
19560
19561 2008-12-15  Bruno Haible  <bruno@clisp.org>
19562
19563         * doc/posix-functions/openat.texi: Mention the 'openat' module.
19564         * doc/posix-functions/fchmodat.texi: Likewise.
19565         * doc/posix-functions/fchownat.texi: Likewise.
19566         * doc/posix-functions/fdopendir.texi: Likewise.
19567         * doc/posix-functions/fstatat.texi: Likewise.
19568         * doc/posix-functions/mkdirat.texi: Likewise.
19569         * doc/posix-functions/unlinkat.texi: Likewise.
19570
19571 2008-12-14  Bruno Haible  <bruno@clisp.org>
19572
19573         Update doc for POSIX:2008.
19574         * doc/posix-functions/faccessat.texi: New file.
19575         * doc/posix-functions/fchmodat.texi: New file.
19576         * doc/posix-functions/fchownat.texi: New file.
19577         * doc/posix-functions/fdopendir.texi: New file.
19578         * doc/posix-functions/fstatat.texi: New file.
19579         * doc/posix-functions/futimens.texi: New file.
19580         * doc/posix-functions/linkat.texi: New file.
19581         * doc/posix-functions/mkdirat.texi: New file.
19582         * doc/posix-functions/mkfifoat.texi: New file.
19583         * doc/posix-functions/mknodat.texi: New file.
19584         * doc/posix-functions/open_wmemstream.texi: New file.
19585         * doc/posix-functions/openat.texi: New file.
19586         * doc/posix-functions/psiginfo.texi: New file.
19587         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
19588         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
19589         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
19590         * doc/posix-functions/readlinkat.texi: New file.
19591         * doc/posix-functions/renameat.texi: New file.
19592         * doc/posix-functions/strerror_l.texi: New file.
19593         * doc/posix-functions/symlinkat.texi: New file.
19594         * doc/posix-functions/unlinkat.texi: New file.
19595         * doc/posix-functions/utimensat.texi: New file.
19596         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19597
19598 2008-12-14  Bruno Haible  <bruno@clisp.org>
19599
19600         Update doc for POSIX:2008.
19601         * doc/posix-functions/alphasort.texi: Renamed from
19602         doc/glibc-functions/alphasort.texi.
19603         * doc/posix-functions/dirfd.texi: Renamed from
19604         doc/glibc-functions/dirfd.texi.
19605         * doc/posix-functions/dprintf.texi: Renamed from
19606         doc/glibc-functions/dprintf.texi.
19607         * doc/posix-functions/duplocale.texi: Renamed from
19608         doc/glibc-functions/duplocale.texi.
19609         * doc/posix-functions/fexecve.texi: Renamed from
19610         doc/glibc-functions/fexecve.texi.
19611         * doc/posix-functions/fmemopen.texi: Renamed from
19612         doc/glibc-functions/fmemopen.texi.
19613         * doc/posix-functions/freelocale.texi: Renamed from
19614         doc/glibc-functions/freelocale.texi.
19615         * doc/posix-functions/getdate_err.texi: Renamed from
19616         doc/glibc-functions/getdate_err.texi.
19617         * doc/posix-functions/isalnum_l.texi: Renamed from
19618         doc/glibc-functions/isalnum_l.texi.
19619         * doc/posix-functions/isalpha_l.texi: Renamed from
19620         doc/glibc-functions/isalpha_l.texi.
19621         * doc/posix-functions/isblank_l.texi: Renamed from
19622         doc/glibc-functions/isblank_l.texi.
19623         * doc/posix-functions/iscntrl_l.texi: Renamed from
19624         doc/glibc-functions/iscntrl_l.texi.
19625         * doc/posix-functions/isdigit_l.texi: Renamed from
19626         doc/glibc-functions/isdigit_l.texi.
19627         * doc/posix-functions/isgraph_l.texi: Renamed from
19628         doc/glibc-functions/isgraph_l.texi.
19629         * doc/posix-functions/islower_l.texi: Renamed from
19630         doc/glibc-functions/islower_l.texi.
19631         * doc/posix-functions/isprint_l.texi: Renamed from
19632         doc/glibc-functions/isprint_l.texi.
19633         * doc/posix-functions/ispunct_l.texi: Renamed from
19634         doc/glibc-functions/ispunct_l.texi.
19635         * doc/posix-functions/isspace_l.texi: Renamed from
19636         doc/glibc-functions/isspace_l.texi.
19637         * doc/posix-functions/isupper_l.texi: Renamed from
19638         doc/glibc-functions/isupper_l.texi.
19639         * doc/posix-functions/iswalnum_l.texi: Renamed from
19640         doc/glibc-functions/iswalnum_l.texi.
19641         * doc/posix-functions/iswalpha_l.texi: Renamed from
19642         doc/glibc-functions/iswalpha_l.texi.
19643         * doc/posix-functions/iswblank_l.texi: Renamed from
19644         doc/glibc-functions/iswblank_l.texi.
19645         * doc/posix-functions/iswcntrl_l.texi: Renamed from
19646         doc/glibc-functions/iswcntrl_l.texi.
19647         * doc/posix-functions/iswctype_l.texi: Renamed from
19648         doc/glibc-functions/iswctype_l.texi.
19649         * doc/posix-functions/iswdigit_l.texi: Renamed from
19650         doc/glibc-functions/iswdigit_l.texi.
19651         * doc/posix-functions/iswgraph_l.texi: Renamed from
19652         doc/glibc-functions/iswgraph_l.texi.
19653         * doc/posix-functions/iswlower_l.texi: Renamed from
19654         doc/glibc-functions/iswlower_l.texi.
19655         * doc/posix-functions/iswprint_l.texi: Renamed from
19656         doc/glibc-functions/iswprint_l.texi.
19657         * doc/posix-functions/iswpunct_l.texi: Renamed from
19658         doc/glibc-functions/iswpunct_l.texi.
19659         * doc/posix-functions/iswspace_l.texi: Renamed from
19660         doc/glibc-functions/iswspace_l.texi.
19661         * doc/posix-functions/iswupper_l.texi: Renamed from
19662         doc/glibc-functions/iswupper_l.texi.
19663         * doc/posix-functions/iswxdigit_l.texi: Renamed from
19664         doc/glibc-functions/iswxdigit_l.texi.
19665         * doc/posix-functions/isxdigit_l.texi: Renamed from
19666         doc/glibc-functions/isxdigit_l.texi.
19667         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
19668         doc/glibc-functions/mbsnrtowcs.texi.
19669         * doc/posix-functions/mkdtemp.texi: Renamed from
19670         doc/glibc-functions/mkdtemp.texi.
19671         * doc/posix-functions/newlocale.texi: Renamed from
19672         doc/glibc-functions/newlocale.texi.
19673         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
19674         doc/glibc-functions/nl_langinfo_l.texi.
19675         * doc/posix-functions/open_memstream.texi: Renamed from
19676         doc/glibc-functions/open_memstream.texi.
19677         * doc/posix-functions/opterr.texi: Renamed from
19678         doc/glibc-functions/opterr.texi.
19679         * doc/posix-functions/optind.texi: Renamed from
19680         doc/glibc-functions/optind.texi.
19681         * doc/posix-functions/optopt.texi: Renamed from
19682         doc/glibc-functions/optopt.texi.
19683         * doc/posix-functions/psignal.texi: Renamed from
19684         doc/glibc-functions/psignal.texi.
19685         * doc/posix-functions/scandir.texi: Renamed from
19686         doc/glibc-functions/scandir.texi.
19687         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
19688         doc/glibc-functions/sched_get_priority_min.texi.
19689         * doc/posix-functions/signgam.texi: Renamed from
19690         doc/glibc-functions/signgam.texi.
19691         * doc/posix-functions/stpcpy.texi: Renamed from
19692         doc/glibc-functions/stpcpy.texi.
19693         * doc/posix-functions/stpncpy.texi: Renamed from
19694         doc/glibc-functions/stpncpy.texi.
19695         * doc/posix-functions/strcasecmp_l.texi: Renamed from
19696         doc/glibc-functions/strcasecmp_l.texi.
19697         * doc/posix-functions/strcoll_l.texi: Renamed from
19698         doc/glibc-functions/strcoll_l.texi.
19699         * doc/posix-functions/strfmon_l.texi: Renamed from
19700         doc/glibc-functions/strfmon_l.texi.
19701         * doc/posix-functions/strftime_l.texi: Renamed from
19702         doc/glibc-functions/strftime_l.texi.
19703         * doc/posix-functions/strncasecmp_l.texi: Renamed from
19704         doc/glibc-functions/strncasecmp_l.texi.
19705         * doc/posix-functions/strndup.texi: Renamed from
19706         doc/glibc-functions/strndup.texi.
19707         * doc/posix-functions/strnlen.texi: Renamed from
19708         doc/glibc-functions/strnlen.texi.
19709         * doc/posix-functions/strsignal.texi: Renamed from
19710         doc/glibc-functions/strsignal.texi.
19711         * doc/posix-functions/strxfrm_l.texi: Renamed from
19712         doc/glibc-functions/strxfrm_l.texi.
19713         * doc/posix-functions/timer_gettime.texi: Renamed from
19714         doc/glibc-functions/timer_gettime.texi.
19715         * doc/posix-functions/tolower_l.texi: Renamed from
19716         doc/glibc-functions/tolower_l.texi.
19717         * doc/posix-functions/toupper_l.texi: Renamed from
19718         doc/glibc-functions/toupper_l.texi.
19719         * doc/posix-functions/towctrans_l.texi: Renamed from
19720         doc/glibc-functions/towctrans_l.texi.
19721         * doc/posix-functions/towlower_l.texi: Renamed from
19722         doc/glibc-functions/towlower_l.texi.
19723         * doc/posix-functions/towupper_l.texi: Renamed from
19724         doc/glibc-functions/towupper_l.texi.
19725         * doc/posix-functions/uselocale.texi: Renamed from
19726         doc/glibc-functions/uselocale.texi.
19727         * doc/posix-functions/vdprintf.texi: Renamed from
19728         doc/glibc-functions/vdprintf.texi.
19729         * doc/posix-functions/wcpcpy.texi:
19730         Renamed from doc/glibc-functions/wcpcpy.texi.
19731         * doc/posix-functions/wcpncpy.texi: Renamed from
19732         doc/glibc-functions/wcpncpy.texi.
19733         * doc/posix-functions/wcscasecmp.texi: Renamed from
19734         doc/glibc-functions/wcscasecmp.texi.
19735         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
19736         doc/glibc-functions/wcscasecmp_l.texi.
19737         * doc/posix-functions/wcscoll_l.texi: Renamed from
19738         doc/glibc-functions/wcscoll_l.texi.
19739         * doc/posix-functions/wcsdup.texi: Renamed from
19740         doc/glibc-functions/wcsdup.texi.
19741         * doc/posix-functions/wcsncasecmp.texi: Renamed from
19742         doc/glibc-functions/wcsncasecmp.texi.
19743         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
19744         doc/glibc-functions/wcsncasecmp_l.texi.
19745         * doc/posix-functions/wcsnlen.texi: Renamed from
19746         doc/glibc-functions/wcsnlen.texi.
19747         * doc/posix-functions/wcsnrtombs.texi: Renamed from
19748         doc/glibc-functions/wcsnrtombs.texi.
19749         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
19750         doc/glibc-functions/wcsxfrm_l.texi.
19751         * doc/posix-functions/wctrans_l.texi: Renamed from
19752         doc/glibc-functions/wctrans_l.texi.
19753         * doc/posix-functions/wctype_l.texi: Renamed from
19754         doc/glibc-functions/wctype_l.texi.
19755         * doc/gnulib.texi (Function Substitutes): Add these subsections.
19756         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
19757         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
19758         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
19759         these subsections.
19760         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
19761         Remove sections.
19762
19763 2008-12-14  Bruno Haible  <bruno@clisp.org>
19764
19765         Update doc for POSIX:2008.
19766         * doc/posix-functions/*.texi: Update URL of POSIX specification.
19767
19768 2008-12-14  Bruno Haible  <bruno@clisp.org>
19769
19770         Update doc for POSIX:2008.
19771         * doc/pastposix-functions/bcmp.texi: Renamed from
19772         doc/posix-functions/bcmp.texi.
19773         * doc/pastposix-functions/bcopy.texi: Renamed from
19774         doc/posix-functions/bcopy.texi.
19775         * doc/pastposix-functions/bsd_signal.texi: Renamed from
19776         doc/posix-functions/bsd_signal.texi.
19777         * doc/pastposix-functions/bzero.texi: Renamed from
19778         doc/posix-functions/bzero.texi.
19779         * doc/pastposix-functions/ecvt.texi: Renamed from
19780         doc/posix-functions/ecvt.texi.
19781         * doc/pastposix-functions/fcvt.texi: Renamed from
19782         doc/posix-functions/fcvt.texi.
19783         * doc/pastposix-functions/ftime.texi: Renamed from
19784         doc/posix-functions/ftime.texi.
19785         * doc/pastposix-functions/gcvt.texi: Renamed from
19786         doc/posix-functions/gcvt.texi.
19787         * doc/pastposix-functions/getcontext.texi: Renamed from
19788         doc/posix-functions/getcontext.texi.
19789         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
19790         doc/posix-functions/gethostbyaddr.texi.
19791         * doc/pastposix-functions/gethostbyname.texi: Renamed from
19792         doc/posix-functions/gethostbyname.texi.
19793         * doc/pastposix-functions/getwd.texi: Renamed from
19794         doc/posix-functions/getwd.texi.
19795         * doc/pastposix-functions/h_errno.texi: Renamed from
19796         doc/posix-functions/h_errno.texi.
19797         * doc/pastposix-functions/index.texi: Renamed from
19798         doc/posix-functions/index.texi.
19799         * doc/pastposix-functions/makecontext.texi: Renamed from
19800         doc/posix-functions/makecontext.texi.
19801         * doc/pastposix-functions/mktemp.texi: Renamed from
19802         doc/posix-functions/mktemp.texi.
19803         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
19804         doc/posix-functions/pthread_attr_getstackaddr.texi.
19805         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
19806         doc/posix-functions/pthread_attr_setstackaddr.texi.
19807         * doc/pastposix-functions/rindex.texi: Renamed from
19808         doc/posix-functions/rindex.texi.
19809         * doc/pastposix-functions/scalb.texi: Renamed from
19810         doc/posix-functions/scalb.texi.
19811         * doc/pastposix-functions/setcontext.texi: Renamed from
19812         doc/posix-functions/setcontext.texi.
19813         * doc/pastposix-functions/swapcontext.texi: Renamed from
19814         doc/posix-functions/swapcontext.texi.
19815         * doc/pastposix-functions/ualarm.texi: Renamed from
19816         doc/posix-functions/ualarm.texi.
19817         * doc/pastposix-functions/usleep.texi: Renamed from
19818         doc/posix-functions/usleep.texi.
19819         * doc/pastposix-functions/vfork.texi: Renamed from
19820         doc/posix-functions/vfork.texi.
19821         * doc/pastposix-functions/wcswcs.texi: Renamed from
19822         doc/posix-functions/wcswcs.texi.
19823         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
19824         (Function Substitutes): Update.
19825
19826 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19827
19828         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
19829         m4/strerror.m4.
19830
19831 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19832             Bruno Haible  <bruno@clisp.org>
19833
19834         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
19835
19836 2008-12-13  Bruno Haible  <bruno@clisp.org>
19837
19838         * modules/strtoull (Depends-on): Remove unistd.
19839
19840 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19841
19842         * modules/strtoull (Depends-on): Add stdlib.
19843
19844 2008-12-11  Simon Josefsson  <simon@josefsson.org>
19845
19846         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
19847
19848 2008-12-10  Jim Meyering  <meyering@redhat.com>
19849
19850         gl_ASSERT: don't say assertions are disabled when they're not
19851         * m4/assert.m4 (gl_ASSERT): Do not make configure report
19852         "checking whether to enable assertions... no", when they are in
19853         fact enabled.  This is solely a bug in the output of configure.
19854         In spite of saying "no", NDEBUG was not defined in that case.
19855         Also, as noted by Eric Blake, leave assertions enabled upon
19856         --enable-assert=INVALID.
19857
19858 2008-12-10  Bruno Haible  <bruno@clisp.org>
19859
19860         Change MODULES.html to refer to POSIX:2008 where possible.
19861         * MODULES.html.sh (POSIX2008_URL): New variable.
19862         (posix_headers): Remove sys/timeb, ucontext.
19863         (posix2001_headers): New variable.
19864         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
19865         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
19866         index, makecontext, mktemp, pthread_attr_getstackaddr,
19867         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
19868         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
19869         (posix2001_functions): New variable.
19870         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
19871         otherwise.
19872
19873 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19874
19875         add missing include to parse-duration.c
19876         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
19877         * modules/parse-duration (Depends-on): Add xalloc.
19878
19879         fix sed script reading maint.mk
19880         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
19881         (syntax-check-rules): Use it.
19882
19883 2008-12-09  Bruno Haible  <bruno@clisp.org>
19884
19885         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
19886         MacOS X 10.4/PowerPC.
19887         Reported by Simon Josefsson.
19888
19889 2008-12-08  Jim Meyering  <meyering@redhat.com>
19890
19891         work around mingw's lack of some S_IF definitions
19892         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
19893         Reported by Simon Josefsson.
19894
19895 2008-12-08  Bruno Haible  <bruno@clisp.org>
19896
19897         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
19898         applied to variables. Needed on MacOS X 10.4/PowerPC.
19899         Reported by Simon Josefsson.
19900
19901 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
19902         and Eric Blake  <ebb9@byu.net>
19903
19904         assert: honor --enable-assert
19905         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
19906         order to honor --enable-assert, rather than treating it as a
19907         synonym for --disable-assert.
19908
19909 2008-12-08  Jim Meyering  <meyering@redhat.com>
19910
19911         * lib/posixtm.c: Remove now-useless declaration of mktime.
19912
19913         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
19914
19915 2008-12-07  Bruno Haible  <bruno@clisp.org>
19916
19917         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
19918         test_once): Mark functions as static.
19919         * tests/test-tls.c (test_tls): Likewise.
19920
19921 2008-12-07  Bruno Haible  <bruno@clisp.org>
19922
19923         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
19924         iconv_register_autodetect.
19925
19926 2008-12-07  Jim Meyering  <meyering@redhat.com>
19927
19928         posixtm.c: avoid a warning
19929         * lib/posixtm.c (posixtime): Don't initialize tm0.
19930         It's no longer needed to placate gcc4's -Wuninitialized,
19931         and the attempt to placate would elicit a new warning.
19932
19933         unicodeio.c: mark unused parameters
19934         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19935         (fallback_failure_callback): Likewise.
19936
19937 2008-12-07  Bruno Haible  <bruno@clisp.org>
19938
19939         * gnulib-tool (func_create_testdir): When building the tests
19940         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
19941         Reported by Simon Josefsson.
19942
19943 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19944
19945         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
19946
19947 2008-12-06  Bruno Haible  <bruno@clisp.org>
19948
19949         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
19950         Suggested by Eric Blake.
19951
19952 2008-12-06  Bruno Haible  <bruno@clisp.org>
19953
19954         Fix a c-stack test failure on MacOS X.
19955         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
19956         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
19957         handler for SIGBUS as well.
19958         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
19959         install a signal handler for SIGBUS as well.
19960         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
19961
19962 2008-12-06  Bruno Haible  <bruno@clisp.org>
19963
19964         Advocacy documentation.
19965         * doc/gnulib-intro.texi (Benefits): New section.
19966         * doc/gnulib.texi: Update.
19967
19968 2008-12-06  Bruno Haible  <bruno@clisp.org>
19969
19970         Document the 'manywarnings' module.
19971         * doc/manywarnings.texi: New file.
19972         * doc/gnulib.texi: Include it.
19973
19974 2008-12-05  Eric Blake  <ebb9@byu.net>
19975
19976         tests: silence some gcc warnings
19977         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
19978         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
19979         type mismatches.
19980
19981 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19982             Bruno Haible  <bruno@clisp.org>
19983
19984         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
19985
19986 2008-11-29  Jim Meyering  <meyering@redhat.com>
19987
19988         unicodeio.c: mark unused parameters
19989         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
19990         (fallback_failure_callback): Likewise.
19991
19992         fts: fix a thinko
19993         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
19994         (set_stat_type): Return S_IF*-valued "type" directly.
19995         Prompted by James Youngman's spotting a related bug.
19996         Confirmed by further testing through find.
19997
19998         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
19999         * lib/fts.c (D_TYPE): Define.
20000         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
20001         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
20002         (s_ifmt_shift_bits): New function.
20003         (set_stat_type): New function.
20004         (fts_build): When not calling fts_stat, call set_stat_type
20005         to propagate dirent.d_type info to fts_read caller.
20006         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
20007         fts_statp->st_mode type information may be valid.
20008
20009 2008-11-28  Simon Josefsson  <simon@josefsson.org>
20010
20011         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
20012         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
20013         <sds@gnu.org>.
20014
20015 2008-11-20  Bruno Haible  <bruno@clisp.org>
20016
20017         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
20018         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
20019         INCLUDE_NEXT.
20020         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
20021         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
20022         * modules/math (Makefile.am): Substitute
20023         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
20024         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20025
20026 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20027             Bruno Haible  <bruno@clisp.org>
20028
20029         * lib/stdint.in.h: Define all type macros so that their expansion is
20030         a single typedef'ed token. Fixes a compilation failure in Boost which
20031         does "using ::int8_t;".
20032
20033 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20034
20035         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
20036         gl_MANYWARN_ALL_GCC.
20037         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
20038         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
20039         * modules/manywarnings: New file.
20040         * MODULES.html.sh: Mention manywarnings module.
20041
20042 2008-11-18  Bruno Haible  <bruno@clisp.org>
20043
20044         * doc/gnulib-tool.texi (Unit tests): New section.
20045
20046 2008-11-18  Simon Josefsson  <simon@josefsson.org>
20047
20048         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
20049         paths like 'lib/po/foo.po'.
20050
20051 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20052
20053         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
20054         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
20055
20056 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20057
20058         * m4/warnings.m4: Use CPPFLAGS to really check whether the
20059         parameter works.
20060
20061 2008-11-17  Simon Josefsson  <simon@josefsson.org>
20062
20063         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
20064
20065 2008-11-17  Bruce Korb  <bkorb@gnu.org>
20066
20067         * modules/parse-duration-tests: New file.
20068         * tests/test-parse-duration.sh: New file.
20069         * tests/test-parse-duration.c: New file.
20070
20071         New module 'parse-duration'.
20072         * lib/parse-duration.h: New file.
20073         * lib/parse-duration.c: New file.
20074         * modules/parse-duration: New file.
20075
20076 2008-11-17  Bruno Haible  <bruno@clisp.org>
20077
20078         * tests/test-select-out.sh: Comment out the first pipe test.
20079         Reported by Simon Josefsson.
20080
20081 2008-11-17  Bruno Haible  <bruno@clisp.org>
20082
20083         * modules/getaddrinfo (Depends-on): Add servent, hostent.
20084         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
20085         gl_HOSTENT.
20086
20087 2008-11-17  Bruno Haible  <bruno@clisp.org>
20088
20089         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
20090         -lnetwork and -lnet. Needed for Haiku and BeOS.
20091
20092 2008-11-16  Bruno Haible  <bruno@clisp.org>
20093
20094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
20095
20096 2008-11-16  Bruno Haible  <bruno@clisp.org>
20097
20098         Avoid test failure on Haiku.
20099         * tests/test-fsync.c: Include <errno.h>.
20100         (main): Don't require that fsync (0) fails.
20101
20102 2008-11-15  Bruno Haible  <bruno@clisp.org>
20103
20104         New module 'hostent'.
20105         * modules/hostent: New file.
20106         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
20107
20108 2008-11-15  Bruno Haible  <bruno@clisp.org>
20109
20110         New module 'servent'.
20111         * modules/servent: New file.
20112         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
20113
20114 2008-11-15  Bruno Haible  <bruno@clisp.org>
20115
20116         Avoid generating same test program with two different rules.
20117         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
20118         test-frexp to test-frexp-nolibm.
20119         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
20120         test-frexpl to test-frexpl-nolibm.
20121
20122 2008-11-15  Bruno Haible  <bruno@clisp.org>
20123
20124         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
20125         $(FREXPL_LIBM).
20126
20127 2008-11-15  Bruno Haible  <bruno@clisp.org>
20128
20129         * lib/netdb.in.h: Activate the definitions also when the system's
20130         <netdb.h> has 'struct addrinfo'.
20131         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
20132         EAI_OVERFLOW or AI_NUMERICSERV.
20133         * doc/posix-headers/netdb.texi: Document the problem.
20134
20135 2008-11-15  Bruno Haible  <bruno@clisp.org>
20136
20137         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
20138
20139         Make the 'sched' module work on platforms where <sched.h> exists but
20140         is incomplete (such as Haiku).
20141         * lib/sched.in.h; Include the system's <sched.h> if it exists.
20142         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
20143         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
20144         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
20145         HAVE_STRUCT_SCHED_PARAM.
20146         * modules/sched (Depends-on): Add include_next.
20147         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
20148         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
20149         * doc/posix-headers/sched.texi: Document the issue.
20150
20151 2008-11-13  Jim Meyering  <meyering@redhat.com>
20152
20153         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
20154         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
20155         test would fail due to the difference in the Report bugs to ...
20156         line.  The expected address is empty, "<>", while the actual
20157         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
20158
20159 2008-11-12  Bruno Haible  <bruno@clisp.org>
20160
20161         lstat: don't compile lstat.c on systems lacking lstat
20162         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
20163         which don't have lstat; this is handled by lib/sys_stat.in.h already.
20164         Reported by Daniel P. Berrange via Jim Meyering.
20165
20166 2008-11-12  Jim Meyering  <meyering@redhat.com>
20167
20168         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
20169
20170 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20171
20172         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
20173         instead.
20174
20175 2008-11-12  Bruno Haible  <bruno@clisp.org>
20176
20177         * lib/unicodeio.c: Include unistr.h.
20178         (utf8_wctomb): Remove function.
20179         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
20180
20181 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20182
20183         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
20184         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
20185         <bruno@clisp.org>.
20186         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
20187
20188 2008-11-12  Simon Josefsson  <simon@josefsson.org>
20189
20190         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
20191         * doc/gnulib.texi: Add section for warnings.
20192
20193 2008-11-11  Bruno Haible  <bruno@clisp.org>
20194
20195         * lib/sockets.h: Add a comment.
20196
20197 2008-11-11  Karl Berry  <karl@gnu.org>
20198
20199         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
20200
20201 2008-11-11  Eric Blake  <ebb9@byu.net>
20202
20203         fdl.texi: avoid git symlinks
20204         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
20205
20206 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20207
20208         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
20209
20210 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20211
20212         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
20213         (gl_WARN_ADD): Substitute $2 if literal.
20214
20215 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20216
20217         * m4/warning.m4: Remove.
20218
20219 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
20220
20221         * m4/warnings.m4: Almost complete rewrite. :-)
20222
20223 2008-11-10  Simon Josefsson  <simon@josefsson.org>
20224
20225         * modules/warnings: New module.
20226         * m4/warnings.m4: New file.
20227         * MODULES.html.sh: Mention warnings module.
20228         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
20229         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20230
20231 2008-11-10  Eric Blake  <ebb9@byu.net>
20232
20233         fdl.texi: make a symlink to the latest version
20234         * doc/standards.texi: Revert today's earlier change.
20235         * doc/fdl-1.2.texi: Rename from old fdl.texi...
20236         * doc/fdl.texi: ...and replace this with a symlink to the newer
20237         fdl-1.3.texi.
20238
20239 2008-11-10  Bruno Haible  <bruno@clisp.org>
20240
20241         * tests/test-select-fd.c (main): Accept the result file name as fourth
20242         argument.
20243         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
20244         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
20245
20246 2008-11-10  Bruno Haible  <bruno@clisp.org>
20247
20248         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
20249         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
20250         as autoconf-substituted macros.
20251         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
20252         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
20253         gl_NETDB_H_DEFAULTS. Set these variables.
20254         * modules/netdb (Makefile.am): Substitute these variables.
20255
20256 2008-11-10  Eric Blake  <ebb9@byu.net>
20257
20258         standards.texi: include correct file for FDL 1.3
20259         * doc/standards.texi (GNU Free Documentation License): Change
20260         include file to pull in FDL 1.3, not 1.2.
20261
20262         fdl.texi: revert accidental change to license
20263         * doc/fdl.texi: This is FDL 1.2, not 1.3.
20264
20265 2008-11-10  Bruno Haible  <bruno@clisp.org>
20266
20267         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
20268         cross-compiling guesses also when the native compile gives no result.
20269
20270 2008-11-10  Bruno Haible  <bruno@clisp.org>
20271
20272         * lib/spawni.c (__spawni): Force variable into the stack.
20273
20274 2008-11-10  Bruno Haible  <bruno@clisp.org>
20275
20276         Add support for Haiku.
20277         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
20278         glibc and BeOS, but also on Haiku.
20279         * lib/fpurge.c (fpurge): Likewise.
20280         * lib/freadable.c (freadable): Likewise.
20281         * lib/freadahead.c (freadahead): Likewise.
20282         * lib/freading.c (freading): Likewise.
20283         * lib/freadptr.c (freadptr): Likewise.
20284         * lib/freadseek.c (freadptrinc): Likewise.
20285         * lib/fseeko.c (rpl_fseeko): Likewise.
20286         * lib/fseterr.c (fseterr): Likewise.
20287         * lib/fwritable.c (fwritable): Likewise.
20288         * lib/fwriting.c (fwriting): Likewise.
20289         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
20290
20291 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20292
20293         * lib/config.charset: Treat Haiku like BeOS.
20294
20295 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
20296
20297         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
20298         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
20299
20300 2008-11-08  Bruno Haible  <bruno@clisp.org>
20301
20302         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
20303         AC_CACHE_CHECK.
20304
20305 2008-11-08  Bruno Haible  <bruno@clisp.org>
20306
20307         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
20308
20309 2008-11-08  Bruno Haible  <bruno@clisp.org>
20310
20311         * tests/test-select-fd.c: New file.
20312         * tests/test-select-in.sh: New file.
20313         * tests/test-select-out.sh: New file.
20314         * tests/test-select-stdin.c: New file.
20315         * modules/select-tests (Files): Add the new files.
20316         (Depends-on): Add gettimeofday.
20317         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
20318         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
20319         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
20320
20321 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
20322             Bruno Haible  <bruno@clisp.org>
20323
20324         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
20325
20326 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
20327
20328         * build-aux/pmccabe2html: Added support for C++ source files.
20329
20330 2008-11-05  Ben Pfaff  <blp@gnu.org>
20331
20332         Fix lib/close.c build on Windows.
20333         * modules/close (Files): Add lib/w32sock.h.
20334
20335 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
20336
20337         Accept Bison's NEWS format.
20338         * build-aux/announce-gen (print_news_deltas): Tweak
20339         $re_prefix.
20340
20341 2008-11-04  Bruno Haible  <bruno@clisp.org>
20342
20343         * modules/random_r (Maintainer): Add glibc.
20344
20345 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20346
20347         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
20348         by karl@freefriends.org (Karl Berry).
20349         * doc/alloca.texi: Likewise.
20350         * doc/c-ctype.texi: Likewise.
20351         * doc/c-strcase.texi: Likewise.
20352         * doc/c-strcaseeq.texi: Likewise.
20353         * doc/c-strcasestr.texi: Likewise.
20354         * doc/c-strstr.texi: Likewise.
20355         * doc/c-strtod.texi: Likewise.
20356         * doc/c-strtold.texi: Likewise.
20357         * doc/ctime.texi: Likewise.
20358         * doc/error.texi: Likewise.
20359         * doc/fdl.texi: Likewise.
20360         * doc/gcd.texi: Likewise.
20361         * doc/getdate.texi: Likewise.
20362         * doc/gnulib-intro.texi: Likewise.
20363         * doc/gnulib-tool.texi: Likewise.
20364         * doc/gnulib.texi: Likewise.
20365         * doc/inet_ntoa.texi: Likewise.
20366         * doc/maintain.texi: Likewise.
20367         * doc/make-stds.texi: Likewise.
20368         * doc/quote.texi: Likewise.
20369         * doc/regexprops-generic.texi: Likewise.
20370         * doc/standards.texi: Likewise.
20371         * doc/verify.texi: Likewise.
20372         * doc/visibility.texi: Likewise.
20373         * doc/gnulib.texi (GNU Free Documentation License): Include
20374         fdl-1.3.texi instead of fdl.texi.
20375
20376 2008-11-04  Simon Josefsson  <simon@josefsson.org>
20377
20378         * doc/fdl-1.3.texi: New file, from
20379         <http://www.gnu.org/licenses/fdl-1.3.texi>.
20380         * modules/fdl-1.3: Add.
20381         * MODULES.html.sh: Add fdl-1.3.
20382
20383 2008-11-03  Bruno Haible  <bruno@clisp.org>
20384
20385         Make determination of absolute name of header file work with AIX xlc.
20386         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
20387         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
20388         preprocessing.
20389         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20390         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
20391
20392 2008-11-03  Simon Josefsson  <simon@josefsson.org>
20393
20394         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
20395         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
20396         <ludo@gnu.org>.
20397
20398 2008-11-02  Bruno Haible  <bruno@clisp.org>
20399
20400         Mark 'strpbrk' obsolete.
20401         * modules/strpbrk (Status, Notice): New sections.
20402         * modules/strtok_r (Depends-on): Add strpbrk.
20403
20404 2008-11-02  Bruno Haible  <bruno@clisp.org>
20405
20406         Mark 'strdup' obsolete.
20407         * modules/strdup (Status, Notice): New sections.
20408         * modules/findprog (Depends-on): Add strdup.
20409         * modules/getaddrinfo (Depends-on): Likewise.
20410         * modules/localename (Depends-on): Likewise.
20411         * modules/relocatable-lib (Depends-on): Likewise.
20412         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
20413         * modules/relocatable-prog (Depends-on): Likewise.
20414         * modules/trim (Depends-on): Likewise.
20415         * modules/unictype/gen-ctype (Depends-on): Likewise.
20416         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20417
20418 2008-11-02  Bruno Haible  <bruno@clisp.org>
20419
20420         Mark 'strcspn' obsolete.
20421         * modules/strcspn (Status, Notice): New sections.
20422
20423 2008-11-02  Bruno Haible  <bruno@clisp.org>
20424
20425         Mark 'rmdir' obsolete.
20426         * modules/rmdir (Status, Notice): New sections.
20427         * modules/clean-temp (Depends-on): Add rmdir.
20428         * modules/openat (Depends-on): Likewise.
20429
20430 2008-11-02  Bruno Haible  <bruno@clisp.org>
20431
20432         Mark 'raise' obsolete.
20433         * modules/raise (Status, Notice): New sections.
20434         (Include): Specify <signal.h>.
20435         * modules/stdio (Depends-on): Add raise.
20436         * modules/write (Depends-on): Likewise.
20437
20438 2008-11-02  Bruno Haible  <bruno@clisp.org>
20439
20440         Mark 'memset' obsolete.
20441         * modules/memset (Status, Notice): New sections.
20442
20443 2008-11-02  Bruno Haible  <bruno@clisp.org>
20444
20445         Mark 'memmove' obsolete.
20446         * modules/memmove (Status, Notice): New sections.
20447         * modules/argp (Depends-on): Add memmove.
20448         * modules/argz (Depends-on): Likewise.
20449         * modules/canonicalize (Depends-on): Likewise.
20450         * modules/canonicalize-lgpl (Depends-on): Likewise.
20451         * modules/fts (Depends-on): Likewise.
20452         * modules/getcwd (Depends-on): Likewise.
20453         * modules/human (Depends-on): Likewise.
20454         * modules/regex (Depends-on): Likewise.
20455         * modules/striconveh (Depends-on): Likewise.
20456         * modules/trim (Depends-on): Likewise.
20457         * modules/unistr/u8-move (Depends-on): Likewise.
20458         * modules/unistr/u16-move (Depends-on): Likewise.
20459         * modules/unistr/u32-move (Depends-on): Likewise.
20460
20461 2008-11-02  Bruno Haible  <bruno@clisp.org>
20462
20463         Mark 'memcpy' obsolete.
20464         * modules/memcpy (Status, Notice): New sections.
20465
20466 2008-11-02  Bruno Haible  <bruno@clisp.org>
20467
20468         Mark 'memcmp' obsolete.
20469         * modules/memcmp (Status, Notice): New sections.
20470         * modules/argmatch (Depends-on): Add memchr.
20471         * modules/backupfile (Depends-on): Likewise.
20472         * modules/c-strcasestr (Depends-on): Likewise.
20473         * modules/crypto/des (Depends-on): Likewise.
20474         * modules/csharpcomp (Depends-on): Likewise.
20475         * modules/fnmatch (Depends-on): Likewise.
20476         * modules/git-merge-changelog (Depends-on): Likewise.
20477         * modules/isnand (Depends-on): Likewise.
20478         * modules/isnand-nolibm (Depends-on): Likewise.
20479         * modules/isnanf (Depends-on): Likewise.
20480         * modules/isnanf-nolibm (Depends-on): Likewise.
20481         * modules/isnanl (Depends-on): Likewise.
20482         * modules/isnanl-nolibm (Depends-on): Likewise.
20483         * modules/mbchar (Depends-on): Likewise.
20484         * modules/memcoll (Depends-on): Likewise.
20485         * modules/quotearg (Depends-on): Likewise.
20486         * modules/regex (Depends-on): Likewise.
20487         * modules/relocatable-prog (Depends-on): Likewise.
20488         * modules/same (Depends-on): Likewise.
20489         * modules/signbit (Depends-on): Likewise.
20490         * modules/strcasestr-simple (Depends-on): Likewise.
20491         * modules/unictype/gen-ctype (Depends-on): Likewise.
20492         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
20493         * modules/uniname/uniname (Depends-on): Likewise.
20494         * modules/unistr/u8-cmp (Depends-on): Likewise.
20495
20496 2008-11-02  Bruno Haible  <bruno@clisp.org>
20497
20498         Mark 'memchr' obsolete.
20499         * modules/memchr (Status, Notice): New sections.
20500         * modules/argp (Depends-on): Add memchr.
20501         * modules/base64 (Depends-on): Likewise.
20502         * modules/c-strcasestr (Depends-on): Likewise.
20503         * modules/chdir-long (Depends-on): Likewise.
20504         * modules/fnmatch (Depends-on): Likewise.
20505         * modules/getsubopt (Depends-on): Likewise.
20506         * modules/git-merge-changelog (Depends-on): Likewise.
20507         * modules/glob (Depends-on): Likewise.
20508         * modules/strcasestr-simple (Depends-on): Likewise.
20509         * modules/strnlen (Depends-on): Likewise.
20510
20511 2008-11-02  Bruno Haible  <bruno@clisp.org>
20512
20513         Mark 'atexit' obsolete.
20514         * modules/atexit (Status, Notice): New sections.
20515         * modules/chdir-long (Depends-on): Add atexit.
20516         * modules/wait-process (Depends-on): Likewise.
20517
20518 2008-11-02  Bruno Haible  <bruno@clisp.org>
20519
20520         * gnulib-tool: New option --with-obsolete.
20521         (func_usage): Document it.
20522         (func_modules_transitive_closure): Drop obsolete dependencies if
20523         incobsolete is not true.
20524         (func_import): Read and save the incobsolete variable to the cache.
20525
20526 2008-11-02  Bruno Haible  <bruno@clisp.org>
20527
20528         * modules/TEMPLATE-EXTENDED: New field 'Status'.
20529         * gnulib-tool: New option --extract-status.
20530         (func_usage): Document it.
20531         (sed_extract_prog): Recognize it.
20532         (func_get_status): New function.
20533
20534 2008-10-30  Simon Josefsson  <simon@josefsson.org>
20535
20536         * modules/sockets (License): Change from LGPL to LGPLv2+.
20537
20538 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20539
20540         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
20541
20542 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20543
20544         * MODULES.html.sh (Support for systems lacking POSIX:2001):
20545         Mention times and sys_times.
20546         * modules/sys_times, modules/sys_times-tests: New modules.
20547         * modules/times, modules/times-tests: Likewise
20548         * m4/sys_times_h.m4: New file.
20549         * lib/sys_times.in.h: Likewise
20550         * lib/times.c: Likewise.
20551         * tests/test-sys_times.c: Likewise.
20552         * tests/test-times.c: Likewise.
20553         * doc/posix-headers/sys_times.texi: Update.
20554         * doc/posix-functions/times.texi: Update.
20555
20556 2008-10-28  Jim Meyering  <meyering@redhat.com>
20557
20558         * modules/tempname (Depends-on): Add lstat.
20559
20560         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
20561
20562 2008-10-28  Simon Josefsson  <simon@josefsson.org>
20563
20564         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
20565         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
20566         using idiom used elsewhere in gnulib.
20567
20568 2008-10-27  Jim Meyering  <meyering@redhat.com>
20569
20570         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
20571
20572 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20573
20574         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
20575         TESTS_ENVIRONMENT, for shell scripts that needs to call built
20576         programs.
20577         * tests/test-argp-2.sh: Use $EXEEXT when needed.
20578
20579 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20580
20581         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
20582
20583 2008-10-27  Bruno Haible  <bruno@clisp.org>
20584
20585         * tests/test-lstat.c: Include <stdio.h>.
20586
20587 2008-10-27  Simon Josefsson  <simon@josefsson.org>
20588
20589         * modules/lstat-tests: New module.
20590         * tests/test-lstat.c: New file.
20591
20592 2008-10-26  Jim Meyering  <meyering@redhat.com>
20593
20594         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
20595
20596 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20597             Bruno Haible  <bruno@clisp.org>
20598
20599         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
20600         * modules/configmake (Include): Add a note that the include must come
20601         after all system headers.
20602         * lib/javaversion.c: Include configmake.h after all other includes.
20603
20604 2008-10-26  Bruno Haible  <bruno@clisp.org>
20605
20606         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
20607         HAVE_STRUCT_RANDOM_DATA to 1.
20608         (gl_STDLIB_H): Simplify.
20609
20610 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20611
20612         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
20613         substitute HAVE_STRUCT_RANDOM_DATA.
20614         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
20615         random_data.
20616         * modules/stdlib (Makefile.am): Substitute
20617         HAVE_STRUCT_RANDOM_DATA.
20618
20619 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20620
20621         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
20622         * doc/gnulib-intro.texi (Copyright): Likewise.
20623
20624 2008-10-26  Simon Josefsson  <simon@josefsson.org>
20625
20626         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
20627         findings.
20628
20629 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
20630             Bruno Haible  <bruno@clisp.org>
20631
20632         * lib/unistd.in.h: Include <winsock2.h>.
20633         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
20634         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
20635         Provide dummy declarations.
20636         (gethostname): Override.
20637         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
20638         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
20639         gl_PREREQ_SYS_H_WINSOCK2.
20640         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
20641         * doc/posix-functions/gethostname.texi: More details.
20642
20643 2008-10-25  Bruno Haible  <bruno@clisp.org>
20644
20645         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
20646         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
20647         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
20648
20649         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
20650         here ...
20651         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
20652         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
20653         gl_UNISTD_H_DEFAULTS.
20654
20655 2008-10-25  Eric Blake  <ebb9@byu.net>
20656
20657         signbit: avoid spurious compiler failure
20658         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
20659         declarations inside function.
20660
20661 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20662             Bruno Haible  <bruno@clisp.org>
20663
20664         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
20665         * modules/random_r (Depends-on): Add stdint.
20666
20667 2008-10-24  Bruno Haible  <bruno@clisp.org>
20668
20669         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
20670         Eggert.
20671         * modules/strerror (License): Likewise.
20672
20673 2008-10-24  Jim Meyering  <meyering@redhat.com>
20674
20675         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
20676         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
20677
20678 2008-10-24  Eric Blake  <ebb9@byu.net>
20679
20680         getgroups: fix compilation when getgroups is available
20681         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
20682         but with <config.h> override of getgroups disabled.
20683
20684 2008-10-24  Simon Josefsson  <simon@josefsson.org>
20685
20686         * doc/gnulib.texi (Header files): Add note about C++ problems.
20687         Explained by Bruno Haible <bruno@clisp.org>.
20688
20689 2008-10-23  Bruno Haible  <bruno@clisp.org>
20690
20691         Define a dummy SA_NODEFER macro on Interix.
20692         * lib/signal.in.h (SA_NODEFER): Define fallback.
20693         Reported by Aleksey Cheusov <cheusov@tut.by> via
20694         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
20695
20696 2008-10-23  Bruno Haible  <bruno@clisp.org>
20697
20698         * modules/freadahead (License): Change to LGPLv2+.
20699         Suggested by Simon Josefsson.
20700
20701 2008-10-23  Jim Meyering  <meyering@redhat.com>
20702
20703         random_r: new module
20704         * modules/random_r: New file.
20705         * m4/random_r.m4: New file.
20706         * lib/random_r.c: New file, from glibc.
20707         * modules/random_r-tests: New file.
20708         * tests/test-random_r.c: New file.
20709         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
20710          Declare.
20711         (RAND_MAX): Define.
20712         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
20713         * modules/stdlib: Substitute them, too.
20714         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
20715         * doc/glibc-functions/initstate_r.texi: Mention the new module.
20716         * doc/glibc-functions/random_r.texi: Likewise.
20717         * doc/glibc-functions/setstate_r.texi: Likewise.
20718         * doc/glibc-functions/srandom_r.texi: Likewise.
20719         * config/srclist.txt: Mention it.
20720
20721 2008-10-23  David Lutterkort  <lutter@redhat.com>
20722
20723         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
20724         link requirement
20725
20726 2008-10-23  Jim Meyering  <meyering@redhat.com>
20727
20728         selinux-h: mark parameters of stub functions as intentionally unused
20729         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
20730         * lib/se-context.in.h: Likewise.
20731
20732 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20733
20734         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
20735
20736 2008-10-22  Simon Josefsson  <simon@josefsson.org>
20737
20738         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
20739
20740 2008-10-22  Eric Blake  <ebb9@byu.net>
20741
20742         glthread/thread: avoid compiler warning
20743         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
20744         Add unreachable abort to silence compiler.
20745
20746 2008-10-22  Eric Blake  <ebb9@byu.net>
20747
20748         netdb: also supply struct addrinfo for cygwin 1.5.x
20749         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
20750         older cygwin.
20751         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
20752         cygwin.
20753         * doc/posix-headers/netdb.texi (netdb.h): Document this.
20754
20755 2008-10-22  Bruno Haible  <bruno@clisp.org>
20756
20757         * users.txt: Update entry about pspp.
20758
20759 2008-10-21  Bruno Haible  <bruno@clisp.org>
20760
20761         Simplification.
20762         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
20763         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
20764
20765         Simplification.
20766         * lib/ioctl.c (ioctl): Don't undefine.
20767         * lib/socket.c (socket): Don't undefine.
20768
20769         Remove unused module indicator macros.
20770         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
20771         GNULIB_$1 as a C macro.
20772
20773         * doc/posix-functions/close.texi: Undo last change.
20774         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
20775         Windows platforms.
20776
20777 2008-10-21  Bruno Haible  <bruno@clisp.org>
20778
20779         Add gethostname() declaration to <unistd.h>.
20780         * lib/unistd.in.h (gethostname): New declaration.
20781         * lib/gethostname.c: Include <unistd.h>.
20782         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
20783         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
20784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
20785         and HAVE_GETHOSTNAME.
20786         * modules/gethostname (Depends-on): Add unistd.
20787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20788         (Include): Specify <unistd.h>.
20789         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
20790         HAVE_GETHOSTNAME.
20791         * tests/test-gethostname.c: Include <unistd.h> first.
20792
20793 2008-10-21  Bruno Haible  <bruno@clisp.org>
20794
20795         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
20796         * modules/select-tests (Depends-on): Likewise.
20797         Reported by Simon Josefsson.
20798
20799 2008-10-21  Simon Josefsson  <simon@josefsson.org>
20800
20801         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
20802         * lib/accept.c: New file, based on winsock.c.
20803         * lib/bind.c: New file, based on winsock.c.
20804         * lib/connect.c: New file, based on winsock.c.
20805         * lib/getpeername.c: New file, based on winsock.c.
20806         * lib/getsockname.c: New file, based on winsock.c.
20807         * lib/getsockopt.c: New file, based on winsock.c.
20808         * lib/ioctl.c: New file, based on winsock.c.
20809         * lib/listen.c: New file, based on winsock.c.
20810         * lib/recv.c: New file, based on winsock.c.
20811         * lib/recvfrom.c: New file, based on winsock.c.
20812         * lib/send.c: New file, based on winsock.c.
20813         * lib/sendto.c: New file, based on winsock.c.
20814         * lib/setsockopt.c: New file, based on winsock.c.
20815         * lib/shutdown.c: New file, based on winsock.c.
20816         * lib/socket.c: New file, based on winsock.c.
20817         * lib/w32sock.h: New file, based on winsock.c.
20818         * lib/winsock.c: Remove file.
20819         * modules/accept: Likewise.
20820         * modules/bind: Likewise.
20821         * modules/connect: Likewise.
20822         * modules/getpeername: Likewise.
20823         * modules/getsockname: Likewise.
20824         * modules/getsockopt: Likewise.
20825         * modules/ioctl: Likewise.
20826         * modules/listen: Likewise.
20827         * modules/recv: Likewise.
20828         * modules/recvfrom: Likewise.
20829         * modules/send: Likewise.
20830         * modules/sendto: Likewise.
20831         * modules/setsockopt: Likewise.
20832         * modules/shutdown: Likewise.
20833         * modules/socket: Use socket.c instead of winsock.c.
20834         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
20835         * doc/posix-functions/accept.texi: Doc fix.
20836         * doc/posix-functions/bind.texi: Doc fix.
20837         * doc/posix-functions/close.texi: Doc fix.
20838         * doc/posix-functions/connect.texi: Doc fix.
20839         * doc/posix-functions/getpeername.texi: Doc fix.
20840         * doc/posix-functions/getsockname.texi: Doc fix.
20841         * doc/posix-functions/getsockopt.texi: Doc fix.
20842         * doc/posix-functions/ioctl.texi: Doc fix.
20843         * doc/posix-functions/listen.texi: Doc fix.
20844         * doc/posix-functions/recv.texi: Doc fix.
20845         * doc/posix-functions/recvfrom.texi: Doc fix.
20846         * doc/posix-functions/send.texi: Doc fix.
20847         * doc/posix-functions/sendto.texi: Doc fix.
20848         * doc/posix-functions/setsockopt.texi: Doc fix.
20849         * doc/posix-functions/shutdown.texi: Doc fix.
20850         * doc/posix-functions/socket.texi: Doc fix.
20851
20852 2008-10-20  Bruno Haible  <bruno@clisp.org>
20853
20854         Take into account the role of SIGABRT_COMPAT on Windows 2008.
20855         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
20856         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
20857         as an alias for SIGABRT.
20858         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
20859         (sigaction): Map it to SIGABRT.
20860         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
20861
20862 2008-10-20  Bruno Haible  <bruno@clisp.org>
20863
20864         * lib/fts.c: Don't include lstat.h.
20865         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
20866
20867         Move the lstat() declaration to <sys/stat.h>.
20868         * lib/lstat.h: Remove file.
20869         * lib/sys_stat.in.h: Add special invocation convention.
20870         (lstat): New declaration.
20871         * lib/lstat.c (orig_lstat): New function.
20872         (rpl_lstat): Use orig_lstat instead of lstat.
20873         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
20874         AC_C_INLINE. Set REPLACE_LSTAT.
20875         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
20876         and REPLACE_LSTAT.
20877         * modules/lstat (Files): Remove lib/lstat.h.
20878         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
20879         (Include): Specify <sys/stat.h> instead of lstat.h.
20880         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
20881         REPLACE_LSTAT.
20882         * NEWS: Mention the change.
20883
20884 2008-10-20  Bruno Haible  <bruno@clisp.org>
20885
20886         * modules/posix_spawn-tests: New file.
20887         * tests/test-posix_spawn3.c: New file.
20888
20889 2008-10-20  Bruno Haible  <bruno@clisp.org>
20890
20891         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
20892         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20893         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
20894         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
20895         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
20896
20897 2008-10-20  Bruno Haible  <bruno@clisp.org>
20898
20899         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
20900         of posix_spawn on AIX 5.3.
20901
20902 2008-10-20  Bruno Haible  <bruno@clisp.org>
20903
20904         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
20905
20906 2008-10-20  Bruno Haible  <bruno@clisp.org>
20907
20908         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
20909         of AC_LANG_PROGRAM.
20910
20911 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20912
20913         * lib/netdb.in.h: Don't define GNU specific constants until they
20914         are supported or needed.  Reported by Bruno Haible
20915         <bruno@clisp.org>.
20916
20917 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20918
20919         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
20920
20921 2008-10-20  Simon Josefsson  <simon@josefsson.org>
20922
20923         * lib/getaddrinfo.h: Remove file.
20924         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
20925         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
20926         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
20927         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
20928         * modules/netdb: Substitute GNULIB_GETADDRINFO.
20929         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
20930         * tests/test-getaddrinfo.c: Likewise.
20931         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
20932         * NEWS: Mention change.
20933
20934 2008-10-19  Bruno Haible  <bruno@clisp.org>
20935
20936         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
20937
20938 2008-10-19  Bruno Haible  <bruno@clisp.org>
20939
20940         * lib/wait-process.c: Include simply <sys/wait.h>.
20941         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
20942         WIFSTOPPED): Remove fallback definitions.
20943         * modules/wait-process (Depends-on): Add sys_wait.
20944
20945         New module 'sys_wait'.
20946         * modules/sys_wait: New file.
20947         * lib/sys_wait.in.h: New file, partially copied from
20948         lib/wait-process.c.
20949         * m4/sys_wait_h.m4: New file.
20950         * doc/posix-headers/sys_wait.texi: Mention the new module.
20951
20952 2008-10-19  Bruno Haible  <bruno@clisp.org>
20953
20954         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
20955
20956 2008-10-19  Bruno Haible  <bruno@clisp.org>
20957
20958         Assume that waitpid() fills an 'int' status, not a 'union wait'.
20959         * lib/wait-process.c (WAIT_T): Remove type.
20960         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
20961         (wait_subprocess): Update.
20962
20963 2008-10-19  Bruno Haible  <bruno@clisp.org>
20964
20965         New module 'atoll'.
20966         * modules/atoll: New file.
20967         * lib/stdlib.in.h (atoll): New declaration.
20968         * lib/atoll.c: New file, from glibc with modifications.
20969         * m4/atoll.m4: New file.
20970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
20971         HAVE_ATOLL.
20972         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
20973         * doc/posix-functions/atoll.texi: Mention the new module.
20974
20975 2008-10-19  Bruno Haible  <bruno@clisp.org>
20976
20977         Add strtoull() declaration to <stdlib.h>.
20978         * lib/stdlib.in.h (strtoull): New declaration.
20979         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20980         Set HAVE_STRTOULL.
20981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
20982         HAVE_STRTOULL.
20983         * modules/strtoull (Depends-on): Add stdlib.
20984         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20985         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
20986         HAVE_STRTOULL.
20987
20988 2008-10-19  Bruno Haible  <bruno@clisp.org>
20989
20990         Add strtoll() declaration to <stdlib.h>.
20991         * lib/stdlib.in.h (strtoll): New declaration.
20992         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
20993         Set HAVE_STRTOLL.
20994         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
20995         HAVE_STRTOLL.
20996         * modules/strtoll (Depends-on): Add stdlib.
20997         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20998         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
20999
21000 2008-10-19  Bruno Haible  <bruno@clisp.org>
21001
21002         * modules/bcopy (Depends-on): Add strings.
21003         (Include): Specify <strings.h>.
21004
21005 2008-10-19  Bruno Haible  <bruno@clisp.org>
21006
21007         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
21008
21009 2008-10-19  Bruno Haible  <bruno@clisp.org>
21010
21011         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
21012         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
21013         mingw.
21014
21015 2008-10-19  Bruno Haible  <bruno@clisp.org>
21016
21017         * lib/atanl.c: Don't include isnanl.h.
21018         * lib/cosl.c: Likewise.
21019         * lib/ldexpl.c: Likewise.
21020         * lib/logl.c: Likewise.
21021         * lib/sinl.c: Likewise.
21022         * lib/sqrtl.c: Likewise.
21023         * lib/tanl.c: Likewise.
21024
21025         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
21026         * lib/isnanf.h: Remove file.
21027         * lib/isnand.h: Remove file.
21028         * lib/isnanl.h: Remove file.
21029         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
21030         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
21031         macros.
21032         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
21033         HAVE_ISNANF, don't define it as a C macro.
21034         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
21035         HAVE_ISNAND, don't define it as a C macro.
21036         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
21037         HAVE_ISNANL, don't define it as a C macro.
21038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
21039         HAVE_ISNAN[FDL].
21040         * modules/isnanf (Files): Remove lib/isnanf.h.
21041         (Depends-on): Add math.
21042         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21043         (Include): Specify <math.h> instead of isnanf.h.
21044         * modules/isnand (Files): Remove lib/isnand.h.
21045         (Depends-on): Add math.
21046         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21047         (Include): Specify <math.h> instead of isnand.h.
21048         * modules/isnanl (Files): Remove lib/isnanl.h.
21049         (Depends-on): Add math.
21050         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21051         (Include): Specify <math.h> instead of isnanl.h.
21052         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
21053         HAVE_ISNAN[FDL].
21054         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
21055         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
21056         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
21057         * NEWS: Mention the change.
21058
21059 2008-10-18  Bruno Haible  <bruno@clisp.org>
21060
21061         Add getusershell(), setusershell(), endusershell() declarations to
21062         <unistd.h>.
21063         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
21064         declarations.
21065         * lib/getusershell.c: Include unistd.h.
21066         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
21067         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21068         HAVE_GETUSERSHELL.
21069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
21070         and HAVE_GETUSERSHELL.
21071         * modules/getusershell (Depends-on): Add unistd, extensions.
21072         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21073         (Include): Specify <unistd.h>.
21074         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
21075         HAVE_GETUSERSHELL.
21076
21077 2008-10-18  Bruno Haible  <bruno@clisp.org>
21078
21079         Add a getloadavg() declaration to <stdlib.h>.
21080         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
21081         getloadavg declaration.
21082         (getloadavg): New declaration.
21083         * lib/getloadavg.c: Include <stdlib.h> first.
21084         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
21085         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
21086         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
21087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
21088         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21089         * modules/getloadavg (Depends-on): Add stdlib, extensions.
21090         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21091         (Include): Specify <stdlib.h>.
21092         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
21093         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
21094
21095 2008-10-18  Bruno Haible  <bruno@clisp.org>
21096
21097         * lib/dirchownmod.c: Don't include lchmod.h.
21098
21099         Move the lchmod() declaration to <sys/stat.h>.
21100         * lib/lchmod.h: Remove file.
21101         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
21102         (lchmod): New declaration, moved here from lib/lchown.h.
21103         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
21104         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
21105         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
21106         and HAVE_LCHMOD.
21107         * modules/lchmod (Files): Remove lib/lchmod.h.
21108         (Depends-on): Add sys_stat, extensions.
21109         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
21110         (Include): Specify <sys/stat.h> instead of lchmod.h.
21111         * modules/sys_stat (Depends-on): Add link-warning.
21112         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
21113         definition of GL_LINK_WARNING.
21114         * NEWS: Mention the change.
21115
21116 2008-10-18  Bruno Haible  <bruno@clisp.org>
21117
21118         * lib/fchdir.c: Don't include dirfd.h.
21119         * lib/fts.c: Likewise.
21120         * lib/getcwd.c: Likewise.
21121         * lib/glob.c: Likewise.
21122
21123         Move the dirfd() declaration to <dirent.h>.
21124         * lib/dirfd.h: Remove file.
21125         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
21126         (dirfd): New declaration.
21127         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
21128         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
21129         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
21130         HAVE_DECL_DIRFD.
21131         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
21132         HAVE_DECL_DIRFD.
21133         * modules/dirfd (Files): Remove lib/dirfd.h.
21134         (Depends-on): Add dirent, extensions.
21135         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
21136         (Include): Specify <dirent.h> instead of dirfd.h.
21137         * modules/dirent (Depends-on): Add link-warning.
21138         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
21139         definition of GL_LINK_WARNING.
21140         * NEWS: Mention the change.
21141
21142 2008-10-18  Bruno Haible  <bruno@clisp.org>
21143
21144         Move the euidaccess() declaration to <unistd.h>.
21145         * lib/euidaccess.h: Remove file.
21146         * lib/unistd.in.h (euidaccess): New declaration.
21147         * lib/euidaccess.c: Don't include euidaccess.h.
21148         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
21149         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
21150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
21151         and HAVE_EUIDACCESS.
21152         * modules/euidaccess (Files): Remove lib/euidaccess.h.
21153         (Depends-on): Add unistd.
21154         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21155         (Include): Specify <unistd.h> instead of euidaccess.h.
21156         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
21157         HAVE_EUIDACCESS.
21158         * NEWS: Mention the change.
21159
21160 2008-10-18  Bruno Haible  <bruno@clisp.org>
21161
21162         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
21163
21164         Move the getdomainname() declaration to <unistd.h>.
21165         * lib/getdomainname.h: Remove file.
21166         * lib/unistd.in.h (getdomainname): New declaration.
21167         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
21168         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
21169         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
21170         HAVE_GETDOMAINNAME.
21171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21172         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
21173         * modules/getdomainname (Files): Remove lib/getdomainname.h.
21174         (Depends-on): Add unistd, extensions.
21175         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21176         (Includes): Specify <unistd.h> instead of getdomainname.h.
21177         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
21178         HAVE_GETDOMAINNAME.
21179         * NEWS: Mention the change.
21180
21181 2008-10-18  Bruno Haible  <bruno@clisp.org>
21182
21183         * modules/dirent: New file.
21184         * m4/dirent_h.m4: New file.
21185         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
21186         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
21187         * modules/fchdir (Files): Remove lib/dirent.in.h.
21188         (Depends-on): Add dirent.
21189         (Makefile.am): Move rules to modules/dirent.
21190         * doc/posix-headers/dirent.texi: Mention the new module.
21191
21192 2008-10-18  Bruno Haible  <bruno@clisp.org>
21193
21194         Avoid -Wunused-parameter warnings in public gnulib header files.
21195         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
21196         macro.
21197         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
21198
21199 2008-10-18  Bruno Haible  <bruno@clisp.org>
21200
21201         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
21202         * doc/glibc-functions/error.texi: Mention the module 'error'.
21203         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
21204         * doc/glibc-functions/getdomainname.texi: Mention the module
21205         'getdomainname'.
21206         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
21207         * doc/glibc-functions/getpagesize.texi: Mention the module
21208         'getpagesize'.
21209         * doc/glibc-functions/getusershell.texi: Mention the module
21210         'getusershell'.
21211         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
21212         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
21213         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
21214         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
21215         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
21216         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
21217         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
21218         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
21219         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
21220         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
21221         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
21222         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
21223         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
21224         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
21225
21226 2008-10-17  Bruno Haible  <bruno@clisp.org>
21227
21228         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
21229         HP-UX and IRIX, use -0.0L.
21230         * tests/test-ceill.c (minus_zero): Likewise.
21231         * tests/test-floorl.c (minus_zero): Likewise.
21232         * tests/test-frexpl.c (minus_zero): Likewise.
21233         * tests/test-isnan.c (minus_zerol): Likewise.
21234         * tests/test-isnanl.h (minus_zero): Likewise.
21235         * tests/test-ldexpl.c (minus_zero): Likewise.
21236         * tests/test-roundl.c (minus_zero): Likewise.
21237         * tests/test-signbit.c (minus_zerol): Likewise.
21238         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
21239         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
21240         * tests/test-truncl.c (minus_zero): Likewise.
21241         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
21242         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
21243         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
21244         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
21245
21246 2008-10-17  Bruno Haible  <bruno@clisp.org>
21247
21248         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
21249         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
21250         that it gets activated only for gcc >= 3.0.
21251         * lib/dirent.in.h: Likewise.
21252         * lib/errno.in.h: Likewise.
21253         * lib/fcntl.in.h: Likewise.
21254         * lib/float.in.h: Likewise.
21255         * lib/iconv.in.h: Likewise.
21256         * lib/inttypes.in.h: Likewise.
21257         * lib/locale.in.h: Likewise.
21258         * lib/math.in.h: Likewise.
21259         * lib/netdb.in.h: Likewise.
21260         * lib/netinet_in.in.h: Likewise.
21261         * lib/search.in.h: Likewise.
21262         * lib/signal.in.h: Likewise.
21263         * lib/spawn.in.h: Likewise.
21264         * lib/stdarg.in.h: Likewise.
21265         * lib/stdint.in.h: Likewise.
21266         * lib/stdio.in.h: Likewise.
21267         * lib/stdlib.in.h: Likewise.
21268         * lib/string.in.h: Likewise.
21269         * lib/strings.in.h: Likewise.
21270         * lib/sys_file.in.h: Likewise.
21271         * lib/sys_ioctl.in.h: Likewise.
21272         * lib/sys_select.in.h: Likewise.
21273         * lib/sys_socket.in.h: Likewise.
21274         * lib/sys_stat.in.h: Likewise.
21275         * lib/sys_time.in.h: Likewise.
21276         * lib/sysexits.in.h: Likewise.
21277         * lib/time.in.h: Likewise.
21278         * lib/unistd.in.h: Likewise.
21279         * lib/wchar.in.h: Likewise.
21280         * lib/wctype.in.h: Likewise.
21281         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
21282
21283 2008-10-17  Jim Meyering  <meyering@redhat.com>
21284
21285         ignore-value: don't depend on inline module
21286         * modules/ignore-value (Depends-on): Remove 'inline'.
21287         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
21288         Suggestion from Bruno Haible.
21289
21290 2008-10-17  Bruno Haible  <bruno@clisp.org>
21291
21292         New implementation of condition variables for Win32.
21293         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
21294         (gl_linked_waitqueue_t): New type.
21295         (gl_cond_t): Use it.
21296         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
21297         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
21298         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
21299         (glthread_cond_init_func, glthread_cond_wait_func,
21300         glthread_cond_timedwait_func, glthread_cond_signal_func,
21301         glthread_cond_broadcast_func, glthread_cond_destroy_func):
21302         Reimplemented on the basis of gl_linked_waitqueue_t.
21303         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
21304         gl_waitqueue_t.
21305         (gl_rwlock_t): Update.
21306         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
21307
21308 2008-10-17  Simon Josefsson  <simon@josefsson.org>
21309
21310         * modules/recvfrom (Depends-on): Add dependency on getpeername.
21311         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21312
21313 2008-10-17  Jim Meyering  <meyering@redhat.com>
21314
21315         ignore-value: new module
21316         * modules/ignore-value: New file.
21317         * lib/ignore-value.h: New file.
21318         * MODULES.html.sh (Compiler warning management): New section,
21319         just for this module.  More to come.
21320
21321 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21322
21323         open-safer.c: avoid 'signed and unsigned in conditional...' warning
21324         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
21325         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
21326
21327 2008-10-16  Jim Meyering  <meyering@redhat.com>
21328
21329         openat-die.c: avoid 'no previous prototype' warning
21330         * lib/openat-die.c: Include "openat.h".
21331         Reported by Reuben Thomas <rrt@sc3d.org>.
21332
21333 2008-10-16  Simon Josefsson  <simon@josefsson.org>
21334
21335         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
21336         * lib/netdb.in.h: Fix typo.
21337         Reported by Bruno Haible  <bruno@clisp.org>
21338
21339         * lib/netdb.in.h: Include sys/socket.h for platforms without
21340         netdb.h, to get structures like hostent on MinGW.
21341         * modules/netdb (Depends-on): Add sys_socket.
21342
21343 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21344
21345         * modules/netdb, modules/netdb-tests: New file.
21346         * m4/netdb_h.m4: New file.
21347         * lib/netdb.in.h: Add, currently just an empty file pending
21348         definitions.
21349         * tests/test-netdb.c: New file.
21350         * doc/posix-headers/netdb.texi: Mention that we replace it if
21351         needed.
21352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21353         netdb.
21354
21355 2008-10-15  Simon Josefsson  <simon@josefsson.org>
21356
21357         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
21358         with code.
21359
21360 2008-10-13  Bruno Haible  <bruno@clisp.org>
21361
21362         * lib/glthread/cond.c (glthread_cond_wait_func,
21363         glthread_cond_timedwait_func): Add a comment.
21364
21365 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21366
21367         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
21368         * tests/test-select.c: Likewise,
21369
21370 2008-10-13  Bruno Haible  <bruno@clisp.org>
21371
21372         * lib/glthread/cond.c (glthread_cond_wait_func,
21373         glthread_cond_timedwait_func): Fix variable name.
21374         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21375
21376 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
21377
21378         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
21379         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
21380         struct sockaddr.sa_len.
21381         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
21382
21383 2008-10-13  Simon Josefsson  <simon@josefsson.org>
21384
21385         * build-aux/pmccabe2html: Add css and css_url parameters.
21386
21387 2008-10-12  Bruno Haible  <bruno@clisp.org>
21388
21389         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
21390         calling aclx_get.
21391         Reported by Rainer Tammer <tammer@tammer.net>.
21392
21393 2008-10-12  Bruno Haible  <bruno@clisp.org>
21394
21395         Use msvcrt aware primitives for creation/termination of Win32 threads.
21396         * lib/glthread/thread.c: Include <process.h>.
21397         (glthread_create_func): Use _beginthreadex instead of CreateThread.
21398         (wrapper_func): Update signature.
21399         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
21400
21401 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
21402             Bruno Haible  <bruno@clisp.org>
21403
21404         Provide a Win32 implementation of the 'cond' module.
21405         * lib/glthread/cond.h [USE_WIN32]: New implementation.
21406         * lib/glthread/cond.c (glthread_cond_init_func,
21407         glthread_cond_wait_func, glthread_cond_timedwait_func,
21408         glthread_cond_signal_func, glthread_cond_broadcast_func,
21409         glthread_cond_destroy_func) [USE_WIN32]: New functions.
21410         * modules/cond (Dependencies): Add gettimeofday.
21411
21412 2008-10-11  Bruno Haible  <bruno@clisp.org>
21413
21414         Make sleep work on older versions of mingw.
21415         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
21416         only whether it exists.
21417         * doc/posix-functions/sleep.texi: Mention the problem with older
21418         versions of mingw.
21419
21420 2008-10-11  Bruno Haible  <bruno@clisp.org>
21421
21422         New module 'shutdown'.
21423         * modules/shutdown: New file.
21424         * lib/sys_socket.in.h (shutdown): New declaration.
21425         * lib/winsock.c (shutdown): New function.
21426         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
21427         GNULIB_SHUTDOWN.
21428         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
21429         * doc/posix-functions/shutdown.texi: Document the new module.
21430
21431 2008-10-11  Jim Meyering  <meyering@redhat.com>
21432
21433         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
21434
21435 2008-10-11  Bruno Haible  <bruno@clisp.org>
21436
21437         New module 'fclose'.
21438         * modules/fclose: New file.
21439         * lib/stdio.in.h (fclose): New declaration.
21440         * lib/fclose.c: New file.
21441         * m4/fclose.m4: New file.
21442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
21443         REPLACE_FCLOSE.
21444         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
21445         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
21446         REPLACE_FCLOSE.
21447         * modules/close (Depends-on): fclose.
21448         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
21449
21450 2008-10-11  Bruno Haible  <bruno@clisp.org>
21451
21452         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
21453         set errno and don't call _close.
21454
21455 2008-10-10  Bruno Haible  <bruno@clisp.org>
21456
21457         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
21458         ACL, not afterwards. Fixes test failure on Cygwin.
21459
21460 2008-10-09  Ben Pfaff  <blp@gnu.org>
21461
21462         * build-aux/announce-gen: Fix gnulib version related part of usage
21463         message.  Die with a useful error message if no tarballs are
21464         found.
21465
21466 2008-10-10  Jim Meyering  <meyering@redhat.com>
21467
21468         bootstrap: use git's --depth=N option only if it's supported
21469         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
21470         recognize the --depth option.  Reported by Pádraig Brady.
21471
21472 2008-10-09  Bruno Haible  <bruno@clisp.org>
21473
21474         New module 'ioctl'.
21475         * modules/ioctl: New file.
21476         * lib/sys_socket.in.h (ioctl): Remove declaration.
21477         * lib/winsock.c: Include <sys/ioctl.h>.
21478         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
21479         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
21480         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
21481         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
21482         * doc/posix-functions/ioctl.texi: Mention the new module.
21483
21484 2008-10-09  Bruno Haible  <bruno@clisp.org>
21485
21486         New module 'sys_ioctl'.
21487         * lib/sys_ioctl.in.h: New file.
21488         * m4/sys_ioctl_h.m4: New file.
21489         * modules/sys_ioctl: New file.
21490         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
21491
21492 2008-10-09  Bruno Haible  <bruno@clisp.org>
21493
21494         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
21495         * lib/winsock.c: Include <stdarg.h>.
21496         (rpl_ioctl): Change to second argument 'int' and then varargs.
21497
21498 2008-10-09  Bruno Haible  <bruno@clisp.org>
21499
21500         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
21501         when the sys_socket module is present and the system has <winsock2.h>.
21502
21503 2008-10-09  Bruno Haible  <bruno@clisp.org>
21504
21505         * doc/posix-functions/close.texi: Mention module 'close' instead of
21506         module 'sys_socket'.
21507
21508 2008-10-09  Bruno Haible  <bruno@clisp.org>
21509
21510         * doc/glibc-headers/sys_ioctl.texi: New file.
21511         * doc/gnulib.texi: Include it.
21512
21513 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21514             Bruno Haible  <bruno@clisp.org>
21515
21516         Combine the two replacements of 'close'.
21517         * lib/sys_socket.in.h (close): Define to a reminder to include
21518         <unistd.h>.
21519         (_gl_close_fd_maybe_socket): New declaration.
21520         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
21521         * lib/winsock.c (close): Remove undefinition.
21522         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
21523         needed for the gnulib module 'close'.
21524         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
21525         define to an error symbol or to a warning, if suitable.
21526         * lib/close.c: Include <sys/socket.h>.
21527         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
21528         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
21529         UNISTD_H_HAVE_WINSOCK2_H.
21530         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
21531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21532         UNISTD_H_HAVE_WINSOCK2_H.
21533         * modules/sys_socket (Files): Add m4/unistd_h.m4.
21534         (configure.ac): Set a module indicator.
21535         (Makefile.am): Substitute GNULIB_CLOSE.
21536         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
21537         * modules/poll-tests (Depends-on): Add close.
21538         * modules/select-tests (Depends-on): Likewise.
21539
21540 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21541             Bruno Haible  <bruno@clisp.org>
21542
21543         New module 'close'.
21544         * modules/close: New file.
21545         * lib/unistd.in.h (close): Move declaration out of the
21546         FCHDIR_REPLACEMENT scope.
21547         (_gl_unregister_fd): New declaration.
21548         * lib/close.c: New file.
21549         * lib/fchdir.c (rpl_close): Remove function.
21550         * m4/close.m4: New file.
21551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21552         close.
21553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
21554         REPLACE_CLOSE.
21555         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
21556         REPLACE_CLOSE.
21557         * modules/fchdir (Depends-on): Add close.
21558
21559 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21560             Bruno Haible  <bruno@clisp.org>
21561
21562         * lib/fcntl.in.h (open): Simplify conditionals.
21563         (_gl_register_fd): New declaration.
21564         * lib/fchdir.c (rpl_open): Remove function.
21565         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
21566         also.
21567         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
21568         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
21569         open.
21570
21571 2008-10-09  Jim Meyering  <meyering@redhat.com>
21572
21573         GNUmakefile: use the more name-space-friendly "_version"
21574         * top/GNUmakefile (_dummy): Update.
21575         (_version): Rename from "version".
21576
21577 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21578             Bruno Haible  <bruno@clisp.org>
21579
21580         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
21581         rpl_close.
21582         (_gl_register_fd): New function, extracted from rpl_open.
21583         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
21584         (rpl_open, rpl_opendir): Use _gl_register_fd.
21585
21586 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
21587
21588         Fix organization of 'open' replacement.
21589         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
21590         (gl_FUNC_OPEN): Use it.
21591         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
21592
21593 2008-10-08  Bruno Haible  <bruno@clisp.org>
21594
21595         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
21596
21597 2008-10-08  Simon Josefsson  <simon@josefsson.org>
21598
21599         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
21600         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
21601         listen).
21602
21603 2008-10-08  Eric Blake  <ebb9@byu.net>
21604
21605         GNUmakefile: add 'make version' target
21606         * top/GNUmakefile (_curr-ver): Split version update rules...
21607         (version): ...into a target.
21608
21609 2008-10-07  Bruno Haible  <bruno@clisp.org>
21610
21611         Use a more portable replacement expression for -0.0L.
21612         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
21613         instead of -0.0L. Fix m4 quotation.
21614
21615         * tests/test-signbit.c: Include <float.h>.
21616         (minus_zero): New variable.
21617         (test_signbitl): Use minus_zero instead of -zero.
21618         * modules/signbit-tests (Depends-on): Add float.
21619
21620         * tests/test-ceill.c: Include <float.h>.
21621         (zero): Remove variable.
21622         (minus_zero): New variable.
21623         (main): Use minus_zero instead of -zero.
21624         * modules/ceill-tests (Depends-on): Add float.
21625
21626         * tests/test-floorl.c: Include <float.h>.
21627         (zero): Remove variable.
21628         (minus_zero): New variable.
21629         (main): Use minus_zero instead of -zero.
21630         * modules/floorl-tests (Depends-on): Add float.
21631
21632         * tests/test-roundl.c: Include <float.h>.
21633         (zero): Remove variable.
21634         (minus_zero): New variable.
21635         (main): Use minus_zero instead of -zero.
21636         * modules/roundl-tests (Depends-on): Add float.
21637
21638         * tests/test-truncl.c: Include <float.h>.
21639         (zero): Remove variable.
21640         (minus_zero): New variable.
21641         (main): Use minus_zero instead of -zero.
21642         * modules/truncl-tests (Depends-on): Add float.
21643
21644         * tests/test-frexpl.c (zero): Remove variable.
21645         (minus_zero): New variable.
21646         (main): Use minus_zero instead of -zero.
21647         * modules/frexpl-tests (Depends-on): Add float.
21648
21649         * tests/test-isnan.c (zerol): Remove variable.
21650         (minus_zerol): New variable.
21651         (test_long_double): Use minus_zerol instead of -zerol.
21652         * modules/isnan-tests (Depends-on): Add float.
21653
21654         * tests/test-isnanl.h (zero): Remove variable.
21655         (minus_zero): New variable.
21656         (main): Use minus_zero instead of -zero.
21657         * modules/isnanl-nolibm-tests (Depends-on): Add float.
21658         * modules/isnanl-tests (Depends-on): Add float.
21659
21660         * tests/test-ldexpl.c (zero): Remove variable.
21661         (minus_zero): New variable.
21662         (main): Use minus_zero instead of -zero.
21663         * modules/ldexpl-tests (Depends-on): Add float.
21664
21665         * tests/test-snprintf-posix.h (zerol): Remove variable.
21666         (minus_zerol): New variable.
21667         (test_function): Use minus_zerol instead of -zerol.
21668         * modules/snprintf-posix-tests (Depends-on): Add float.
21669         * modules/vsnprintf-posix-tests (Depends-on): Add float.
21670
21671         * tests/test-sprintf-posix.h (zerol): Remove variable.
21672         (minus_zerol): New variable.
21673         (test_function): Use minus_zerol instead of -zerol.
21674         * modules/sprintf-posix-tests (Depends-on): Add float.
21675         * modules/vsprintf-posix-tests (Depends-on): Add float.
21676
21677         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
21678         (minus_zerol): New variable.
21679         (test_function): Use minus_zerol instead of -zerol.
21680         * modules/vasnprintf-posix-tests (Depends-on): Add float.
21681
21682         * tests/test-vasprintf-posix.c (zerol): Remove variable.
21683         (minus_zerol): New variable.
21684         (test_function): Use minus_zerol instead of -zerol.
21685         * modules/vasprintf-posix-tests (Depends-on): Add float.
21686
21687 2008-10-07  Simon Josefsson  <simon@josefsson.org>
21688
21689         * MODULES.html.sh (Support for building documentation): Mention
21690         pmccabe2html.  Sort entries.
21691
21692         Add pmccabe2html module, from gnupdf.
21693         * build-aux/pmccabe.css: New file.
21694         * build-aux/pmccabe2html: New file.
21695         * m4/pmccabe2html.m4: New file.
21696         * modules/pmccabe2html: New file.
21697
21698 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
21699
21700         flock: new module
21701         * MODULES.html.sh: Add to list of modules.
21702         * lib/flock.c: flock implementation for Windows and Unix systems
21703         which have fcntl.
21704         * doc/glibc-functions/flock.texi: Update documentation.
21705         * lib/sys_file.in.h: <sys/file.h> header file.
21706         * m4/flock.m4: M4 macros.
21707         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
21708         * modules/flock: flock module.
21709         * modules/flock-tests: flock tests module.
21710         * modules/sys_file: sys/file.h module.
21711         * tests/test-flock.c: test suite for flock.
21712
21713 2008-10-06  Jim Meyering  <meyering@redhat.com>
21714
21715         bootstrap: check for LT_INIT more portably still ;-)
21716         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
21717         Spotted by Bruno Haible.
21718
21719 2008-10-06  Eric Blake  <ebb9@byu.net>
21720
21721         test-signbit: avoid tripping Irix cc bug on -0.0L
21722         * tests/test-signbit.c (minus_zerol): Delete, and replace with
21723         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
21724         entire testsuite consistent and avoids an Irix 6.2 bug.
21725
21726 2008-10-05  Bruno Haible  <bruno@clisp.org>
21727             Jim Meyering  <jim@meyering.net>
21728
21729         Add an option for ignoring EPIPE during close_stdout.
21730         * lib/closeout.h: Include <stdbool.h>.
21731         (close_stdout_set_ignore_EPIPE): New declaration.
21732         * lib/closeout.c: Include <stdbool.h>.
21733         (ignore_EPIPE): New variable.
21734         (close_stdout_set_ignore_EPIPE): New function.
21735         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
21736         * lib/close-stream.c (close_stream): Mention the possible EPIPE
21737         failure.
21738         * modules/closeout (Depends-on): Add stdbool.
21739
21740 2008-10-05  Bruno Haible  <bruno@clisp.org>
21741
21742         * modules/accept: New file.
21743         * modules/bind: New file.
21744         * modules/connect: New file.
21745         * modules/getpeername: New file.
21746         * modules/getsockname: New file.
21747         * modules/getsockopt: New file.
21748         * modules/listen: New file.
21749         * modules/recv: New file.
21750         * modules/recvfrom: New file.
21751         * modules/send: New file.
21752         * modules/sendto: New file.
21753         * modules/setsockopt: New file.
21754         * modules/socket: New file.
21755         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
21756         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
21757         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
21758         the particular module is requested. Add a link warning when the
21759         particular module is not requested.
21760         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
21761         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
21762         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
21763         the particular module is requested.
21764         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
21765         gl_SYS_SOCKET_H_DEFAULTS): New macros.
21766         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
21767         * modules/sys_socket (Depends-on): Add link-warning.
21768         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
21769         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
21770         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
21771         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
21772         GL_LINK_WARNING.
21773         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
21774         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
21775         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
21776         * doc/posix-functions/getpeername.texi: Mention the new module
21777         'getpeername'.
21778         * doc/posix-functions/getsockname.texi: Mention the new module
21779         'getsockname'.
21780         * doc/posix-functions/getsockopt.texi: Mention the new module
21781         'getsockopt'.
21782         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
21783         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
21784         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
21785         * doc/posix-functions/send.texi: Mention the new module 'send'.
21786         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
21787         * doc/posix-functions/setsockopt.texi: Mention the new module
21788         'setsockopt'.
21789         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
21790         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
21791         listen, connect, accept.
21792         * modules/select-tests (Depends-on): Likewise.
21793
21794 2008-10-05  Bruno Haible  <bruno@clisp.org>
21795
21796         * lib/winsock.c (strerror): Remove unused #undef.
21797         (rpl_close): Remove unused local variable.
21798
21799         * modules/sys_socket (Depends-on); Add errno.
21800
21801 2008-10-05  Bruno Haible  <bruno@clisp.org>
21802
21803         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
21804         (select): Add a link warning when the 'select' module is not used.
21805         * modules/sys_select (Depends-on): Add link-warning.
21806         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
21807         Suggested by Paolo Bonzini.
21808
21809 2008-10-05  Jim Meyering  <meyering@redhat.com>
21810
21811         bootstrap: check for LT_INIT more portably
21812         * build-aux/bootstrap: Avoid using grep -E, since it's not
21813         portable enough.  Suggestion from Bruno Haible.
21814
21815 2008-10-05  Bruno Haible  <bruno@clisp.org>
21816
21817         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
21818         as being fixed by gnulib.
21819
21820 2008-10-05  Bruno Haible  <bruno@clisp.org>
21821
21822         * modules/select-tests: New file, mostly copied from
21823         modules/sys_select-tests.
21824         * tests/test-select.c: New file, mostly copied from
21825         tests/test-sys_select.c.
21826         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
21827         * modules/sys_select-tests (Depends-on): Remove all dependencies.
21828         (Makefile.am): Remove test_sys_select_LDADD.
21829
21830         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
21831         to an undefined symbol, for an error message.
21832         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
21833         (gl_SYS_SELECT_H_DEFAULTS): New macro.
21834         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
21835         winsock-select.c here.
21836         * modules/sys_select (Files): Remove lib/winsock-select.c.
21837         (Depends-on): Remove alloca.
21838         (Makefile.am): Substitute GNULIB_SELECT.
21839         * modules/select: New file.
21840         * doc/posix-functions/select.texi: Update.
21841
21842 2008-10-05  Bruno Haible  <bruno@clisp.org>
21843
21844         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
21845         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
21846         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
21847         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
21848         getdtablesize.
21849         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
21850         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
21851
21852 2008-10-05  Bruno Haible  <bruno@clisp.org>
21853
21854         * modules/getdtablesize-tests: New file.
21855         * tests/test-getdtablesize.c: New file.
21856
21857         New module 'getdtablesize'.
21858         * lib/unistd.in.h (getdtablesize): New declaration.
21859         * lib/getdtablesize.c: New file.
21860         * m4/getdtablesize.m4: New file.
21861         * modules/getdtablesize: New file.
21862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21863         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
21864         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
21865         HAVE_GETDTABLESIZE.
21866         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
21867
21868 2008-10-05  Bruno Haible  <bruno@clisp.org>
21869
21870         * modules/sched (Makefile.am): Fix typo.
21871         Reported by Simon Josefsson.
21872
21873 2008-10-05  Jim Meyering  <meyering@redhat.com>
21874
21875         bootstrap: check for LT_INIT, too
21876         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
21877         are deprecated.  Suggestion from Ralf Wildenhues.
21878
21879 2008-10-05  Bruno Haible  <bruno@clisp.org>
21880
21881         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
21882         overriding them by ours.
21883         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
21884
21885 2008-10-05  Jim Meyering  <meyering@redhat.com>
21886
21887         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
21888         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
21889         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
21890
21891 2008-10-04  Bruno Haible  <bruno@clisp.org>
21892
21893         * modules/dup2 (License): Change to LGPLv2+.
21894         * modules/sleep (License): Likewise.
21895         * modules/perror (License): Likewise.
21896         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
21897         Blake.
21898         * modules/signal (License): Likewise.
21899         * modules/sigprocmask (License): Likewise.
21900         * modules/raise (License): Change to LGPLv2+, with approval by Jim
21901         Meyering.
21902
21903 2008-10-04  Bruno Haible  <bruno@clisp.org>
21904
21905         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
21906         Reported by Rainer Tammer <tammer@tammer.net>.
21907
21908 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
21909             Bruno Haible  <bruno@clisp.org>
21910
21911         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
21912         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
21913         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
21914
21915 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
21916
21917         filevercmp: new module
21918         * lib/filevercmp.h: New function filevercmp comparing version strings.
21919         * lib/filevercmp.c: Implementation of filevercmp function.
21920         * modules/filevercmp: Module metadata.
21921         * tests/test-filevercmp.c: Unit test for new module.
21922         * modules/filevercmp-tests: Unit test metadata.
21923         * MODULES.html.sh: Add filevercmp module.
21924
21925 2008-10-03  Bruno Haible  <bruno@clisp.org>
21926
21927         * lib/c-ctype.h: Add comment.
21928         Reported by Jim Meyering.
21929
21930 2008-10-02  Bruno Haible  <bruno@clisp.org>
21931
21932         * modules/posix_spawn-internal (Depends-on): Add 'open'.
21933
21934 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21935
21936         * build-aux/bootstrap: Allow renaming bootstrap, and change the
21937         name of bootstrap.conf accordingly.
21938
21939 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21940
21941         * build-aux/bootstrap: Install git-merge-changelog configuration
21942         items into .gitconfig if needed.
21943
21944 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
21945
21946         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
21947         git repository, and initialize/update it accordingly.
21948
21949 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
21950
21951         * modules/fsync-tests: New file.
21952         * tests/test-fsync.c: New file.
21953
21954         New module 'fsync'.
21955         * lib/fsync.c: New file.
21956         * m4/fsync.m4: New file.
21957         * modules/fsync: New file.
21958         * lib/unistd.in.h (fsync): New declaration.
21959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
21960         GNULIB_FSYNC and HAVE_FSYNC.
21961         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
21962         * MODULES.html.sh (posix_functions): Add fsync.
21963         * doc/posix-functions/fsync.texi: Mention the new module.
21964
21965 2008-10-02  Jim Meyering  <meyering@redhat.com>
21966
21967         fts.c: sync with similar code from coreutils' remove.c
21968         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
21969         Guard also with "#if defined __linux__", since for now at least,
21970         this code is Linux-kernel-specific.
21971
21972 2008-10-02  Jim Meyering  <meyering@redhat.com>
21973
21974         fts: bug fixes
21975         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
21976         Include <sys/vfs.h>, not <sys/statfs.h>.
21977
21978         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
21979         Include <sys/vfs.h>, not <sys/statfs.h>.
21980
21981 2008-10-01  Bruno Haible  <bruno@clisp.org>
21982
21983         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
21984         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
21985         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
21986         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
21987         * doc/posix-functions/posix_spawnp.texi: Likewise.
21988         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
21989         whether posix_spawn actually works.
21990         * m4/pipe.m4 (gl_PIPE): Likewise.
21991         * modules/execute (Files): Add m4/posix_spawn.m4.
21992         * modules/pipe (Files): Add m4/posix_spawn.m4.
21993         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
21994
21995 2008-10-01  Jim Meyering  <meyering@redhat.com>
21996
21997         remove trailing spaces
21998         * NEWS: Likewise.
21999         * lib/poll.c (poll): Likewise.
22000         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
22001         * lib/winsock.c (rpl_close): Likewise.
22002         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
22003         * modules/yield: Likewise.
22004         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
22005         * tests/test-sys_select.c (connect_to_socket): Likewise.
22006
22007         fts.c: adjust a new interface to be more generally useful
22008         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
22009         (fts_build): Adjust caller.
22010
22011 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22012
22013         * modules/cond-tests: New file.
22014         * tests/test-cond.c: New file.
22015
22016 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22017             Bruno Haible  <bruno@clisp.org>
22018
22019         * modules/cond (Dependencies): Add errno, time.
22020         * lib/glthread/cond.h: Include <time.h>.
22021         (gl_cond_define, gl_cond_define_initialized): Use the same definition
22022         across platforms.
22023
22024 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22025             Bruno Haible  <bruno@clisp.org>
22026
22027         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
22028
22029 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22030             Bruno Haible  <bruno@clisp.org>
22031
22032         * modules/tls-tests (Depends-on): Add thread, yield.
22033         (configure.ac): Remove all checks.
22034         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
22035         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22036         gl_thread_self): Remove definitions. Include glthread/thread.h and
22037         glthread/yield.h instead.
22038         (test_tls): Pass an additional NULL argument to gl_thread_join.
22039
22040 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22041             Bruno Haible  <bruno@clisp.org>
22042
22043         * modules/lock-tests (Depends-on): Add thread, yield.
22044         (configure.ac): Remove all checks.
22045         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
22046         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
22047         gl_thread_self): Remove definitions. Include glthread/thread.h and
22048         glthread/yield.h instead.
22049         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
22050         additional NULL argument to gl_thread_join.
22051
22052 2008-09-30  Bruno Haible  <bruno@clisp.org>
22053
22054         Fix the Win32 implementation of the 'thread' module.
22055         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
22056         pointer type.
22057         (gl_thread_self): Invoke gl_thread_self_func.
22058         (gl_thread_self_func): New declaration.
22059         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
22060         (do_init_self_key, init_self_key): New functions.
22061         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
22062         Remove some fields.
22063         (running_threads, running_lock): Remove variables.
22064         (get_current_thread_handle): New function.
22065         (gl_thread_self_func, wrapper_func, glthread_create_func,
22066         glthread_join_func, gl_thread_exit_func): Largely rewritten and
22067         simplified.
22068
22069 2008-09-30  Bruno Haible  <bruno@clisp.org>
22070
22071         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
22072         files.
22073
22074 2008-09-30  Jim Meyering  <meyering@redhat.com>
22075
22076         fts.m4: correct the test for statfs.f_type
22077         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
22078         when checking for statfs.f_type.
22079
22080 2008-09-15  Simon Josefsson  <simon@josefsson.org>
22081
22082         tests: avoid some compiler warnings
22083         * tests/test-memchr.c (main): Pass NULL indirectly.
22084         * tests/test-getdate.c (main): Remove unused variable 'ret'.
22085
22086 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
22087
22088         getdate.y: disallow countable dayshifts like "4 yesterday ago"
22089         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
22090         exactly specified dayshifts.
22091         (dayshift): New rule.
22092         (rel): Add dayshift.
22093         (relative_time_table) [tomorrow, yesterday, today, now]:
22094         Use tDAY_SHIFT in place of tDAY_UNIT.
22095         * tests/test-getdate.c: Add tests for now-disallowed countable
22096         dayshifts, e.g., "4 yesterday ago".
22097
22098 2008-09-29  Bruno Haible  <bruno@clisp.org>
22099
22100         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
22101         * tests/test-posix_spawn1.in.sh: Renamed from
22102         tests/test-posix_spawn.in.sh.
22103         * tests/test-posix_spawn2.c: New file.
22104         * tests/test-posix_spawn2.in.sh: New file.
22105         * modules/posix_spawnp-tests (Files): Update.
22106         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
22107
22108 2008-09-29  Bruno Haible  <bruno@clisp.org>
22109
22110         Propagate effects of putenv/setenv/unsetenv to child processes.
22111         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
22112         * lib/pipe.c (create_pipe): Likewise.
22113
22114 2008-09-29  Bruno Haible  <bruno@clisp.org>
22115
22116         Enable use of shell scripts as executables in mingw.
22117         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
22118         run the program as a shell script.
22119         * lib/pipe.c (create_pipe): Likewise.
22120         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
22121         resulting array.
22122
22123 2008-09-29  Eric Blake  <ebb9@byu.net>
22124
22125         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
22126
22127 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
22128
22129         * doc/posix-functions/accept.texi: Update mingw problems.
22130         * doc/posix-functions/bind.texi: Update mingw problems.
22131         * doc/posix-functions/close.texi: Update mingw problems.
22132         * doc/posix-functions/connect.texi: Update mingw problems.
22133         * doc/posix-functions/getpeername.texi: Update mingw problems.
22134         * doc/posix-functions/getsockname.texi: Update mingw problems.
22135         * doc/posix-functions/getsockopt.texi: Update mingw problems.
22136         * doc/posix-functions/ioctl.texi: Update mingw problems.
22137         * doc/posix-functions/listen.texi: Update mingw problems.
22138         * doc/posix-functions/recv.texi: Update mingw problems.
22139         * doc/posix-functions/recvfrom.texi: Update mingw problems.
22140         * doc/posix-functions/select.texi: Update mingw problems.
22141         * doc/posix-functions/send.texi: Update mingw problems.
22142         * doc/posix-functions/sendto.texi: Update mingw problems.
22143         * doc/posix-functions/setsockopt.texi: Update mingw problems.
22144         * doc/posix-functions/socket.texi: Update mingw problems.
22145
22146 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
22147             Bruno Haible  <bruno@clisp.org>
22148
22149         * lib/sys_select.in.h: Include sys/time.h.
22150         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
22151         * modules/sys_select: Depend on sys_time.
22152         * tests/test-sys_select.c: Test that sys/select.h defines struct
22153         timeval fully.
22154
22155 2008-09-29  Bruno Haible  <bruno@clisp.org>
22156
22157         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
22158         * lib/sys_select.in.h: Likewise.
22159
22160 2008-09-29  Bruno Haible  <bruno@clisp.org>
22161
22162         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
22163
22164 2008-09-29  Bruno Haible  <bruno@clisp.org>
22165
22166         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
22167         Set LIBSOCKET instead of augmenting LIBS.
22168         * modules/sockets (Link): New section.
22169         * modules/sockets-tests (test_sockets_LDADD): New variable.
22170         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
22171         * modules/poll-tests (test_poll_LDADD): New variable.
22172         * NEWS: Document the change.
22173
22174 2008-09-29  Bruno Haible  <bruno@clisp.org>
22175
22176         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
22177         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
22178         ARPA_INET_H directly.
22179         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
22180
22181 2008-09-28  Bruno Haible  <bruno@clisp.org>
22182
22183         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
22184         from gl_HEADER_SYS_SOCKET.
22185         (gl_HEADER_SYS_SOCKET): Invoke it.
22186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22187
22188 2008-09-28  Bruno Haible  <bruno@clisp.org>
22189
22190         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
22191         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
22192         Needed on OSF/1 4.0.
22193
22194 2008-09-28  Bruno Haible  <bruno@clisp.org>
22195
22196         Override open more carefully.
22197         * lib/open.c (orig_open): New function.
22198         (rpl_open): Use orig_open instead of open.
22199         * lib/fcntl.in.h: Add special invocation convention.
22200         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
22201         (gl_FUNC_OPEN): Invoke it.
22202
22203         Override freopen more carefully.
22204         * lib/freopen.c (orig_freopen): New function.
22205         (rpl_freopen): Use orig_freopen instead of freopen.
22206         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
22207         (gl_FUNC_FREOPEN): Invoke it.
22208
22209         Override fopen more carefully.
22210         * lib/fopen.c (orig_fopen): New function.
22211         (rpl_fopen): Use orig_fopen instead of fopen.
22212         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
22213         (gl_FUNC_FOPEN): Invoke it.
22214         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
22215
22216 2008-09-28  Bruno Haible  <bruno@clisp.org>
22217
22218         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
22219         SIGPIPE.
22220
22221 2008-09-28  Bruno Haible  <bruno@clisp.org>
22222
22223         * tests/test-sigaction.c (handler, main): Disable the check whether
22224         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
22225         glibc systems with LinuxThreads.
22226
22227 2008-09-28  Bruno Haible  <bruno@clisp.org>
22228
22229         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
22230
22231         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
22232         with AIX xlc.
22233         * lib/fcntl.in.h (open): Likewise.
22234         Reported by Rainer Tammer <tammer@tammer.net>.
22235
22236 2008-09-28  Bruno Haible  <bruno@clisp.org>
22237
22238         * modules/posix_spawnp-tests: New file.
22239         * tests/test-posix_spawn.c: New file.
22240         * tests/test-posix_spawn.in.sh: New file.
22241
22242         New module 'posix_spawnp'.
22243         * modules/posix_spawnp: New file.
22244         * lib/spawnp.c: New file, from GNU libc with modifications.
22245         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
22246
22247         New module 'posix_spawn'.
22248         * modules/posix_spawn: New file.
22249         * lib/spawn.c: New file, from GNU libc with modifications.
22250         * doc/posix-functions/posix_spawn.texi: Mention the new module.
22251
22252         New module 'posix_spawnattr_destroy'.
22253         * modules/posix_spawnattr_destroy: New file.
22254         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
22255         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
22256         module.
22257
22258         New module 'posix_spawnattr_setsigmask'.
22259         * modules/posix_spawnattr_setsigmask: New file.
22260         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
22261         modifications.
22262         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
22263         new module.
22264
22265         New module 'posix_spawnattr_getsigmask'.
22266         * modules/posix_spawnattr_getsigmask: New file.
22267         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
22268         modifications.
22269         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
22270         new module.
22271
22272         New module 'posix_spawnattr_setsigdefault'.
22273         * modules/posix_spawnattr_setsigdefault: New file.
22274         * lib/spawnattr_setdefault.c: New file, from GNU libc with
22275         modifications.
22276         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
22277         new module.
22278
22279         New module 'posix_spawnattr_getsigdefault'.
22280         * modules/posix_spawnattr_getsigdefault: New file.
22281         * lib/spawnattr_getdefault.c: New file, from GNU libc with
22282         modifications.
22283         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
22284         new module.
22285
22286         New module 'posix_spawnattr_setschedpolicy'.
22287         * modules/posix_spawnattr_setschedpolicy: New file.
22288         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
22289         modifications.
22290         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
22291         new module.
22292
22293         New module 'posix_spawnattr_getschedpolicy'.
22294         * modules/posix_spawnattr_getschedpolicy: New file.
22295         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
22296         modifications.
22297         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
22298         new module.
22299
22300         New module 'posix_spawnattr_setschedparam'.
22301         * modules/posix_spawnattr_setschedparam: New file.
22302         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
22303         modifications.
22304         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
22305         new module.
22306
22307         New module 'posix_spawnattr_getschedparam'.
22308         * modules/posix_spawnattr_getschedparam: New file.
22309         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
22310         modifications.
22311         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
22312         new module.
22313
22314         New module 'posix_spawnattr_setpgroup'.
22315         * modules/posix_spawnattr_setpgroup: New file.
22316         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
22317         modifications.
22318         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
22319         module.
22320
22321         New module 'posix_spawnattr_getpgroup'.
22322         * modules/posix_spawnattr_getpgroup: New file.
22323         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
22324         modifications.
22325         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
22326         module.
22327
22328         New module 'posix_spawnattr_setflags'.
22329         * modules/posix_spawnattr_setflags: New file.
22330         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
22331         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
22332         module.
22333
22334         New module 'posix_spawnattr_getflags'.
22335         * modules/posix_spawnattr_getflags: New file.
22336         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
22337         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
22338         module.
22339
22340         New module 'posix_spawnattr_init'.
22341         * modules/posix_spawnattr_init: New file.
22342         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
22343         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
22344         module.
22345
22346         New module 'posix_spawn_file_actions_destroy'.
22347         * modules/posix_spawn_file_actions_destroy: New file.
22348         * lib/spawn_faction_destroy.c: New file, from GNU libc with
22349         modifications.
22350         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
22351         the new module.
22352
22353         New module 'posix_spawn_file_actions_addopen'.
22354         * modules/posix_spawn_file_actions_addopen: New file.
22355         * lib/spawn_faction_addopen.c: New file, from GNU libc with
22356         modifications.
22357         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
22358         the new module.
22359
22360         New module 'posix_spawn_file_actions_adddup2'.
22361         * modules/posix_spawn_file_actions_adddup2: New file.
22362         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
22363         modifications.
22364         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
22365         the new module.
22366
22367         New module 'posix_spawn_file_actions_addclose'.
22368         * modules/posix_spawn_file_actions_addclose: New file.
22369         * lib/spawn_faction_addclose.c: New file, from GNU libc with
22370         modifications.
22371         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
22372         the new module.
22373
22374         New module 'posix_spawn_file_actions_init'.
22375         * modules/posix_spawn_file_actions_init: New file.
22376         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
22377         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
22378         new module.
22379
22380         New module 'posix_spawn-internal'.
22381         * modules/posix_spawn-internal: New file.
22382         * lib/spawn_int.h: New file, from GNU libc with modifications.
22383         * lib/spawni.c: New file, from GNU libc with modifications.
22384         * m4/posix_spawn.m4: New file.
22385
22386         New module 'spawn'.
22387         * modules/spawn: New file.
22388         * lib/spawn.in.h: New file, from GNU libc with modifications.
22389         * m4/spawn_h.m4: New file.
22390         * doc/posix-headers/spawn.texi: Mention the new module.
22391
22392 2008-09-28  Bruno Haible  <bruno@clisp.org>
22393
22394         * modules/sched-tests: New file.
22395         * tests/test-sched.c: New file.
22396
22397         New module 'sched'.
22398         * modules/sched: New file.
22399         * lib/sched.in.h: New file.
22400         * m4/sched_h.m4: New file.
22401         * doc/posix-headers/sched.texi: Mention the new module.
22402
22403 2008-09-27  Eric Blake  <ebb9@byu.net>
22404
22405         Fix previous patch, and tweak references to $0.
22406         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
22407         (func_version, func_gnulib_dir): Don't call this program
22408         gnulib-tool.
22409         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
22410         with using $0 in function.
22411         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
22412         (func_fatal_error): Reuse the name the user invoked us with.
22413
22414 2008-09-27  Bruno Haible  <bruno@clisp.org>
22415
22416         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
22417         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
22418         (gl_ICONV_H): Not here.
22419         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22420         instead of assigning ICONV_H directly.
22421
22422         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
22423         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
22424         WCHAR_H directly.
22425
22426 2008-09-27  Bruno Haible  <bruno@clisp.org>
22427
22428         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
22429         * modules/arpa_inet (Depends-on): Add link-warning.
22430         (Makefile.am): Insert the definition of GL_LINK-WARNING.
22431         * modules/unistd (Makefile.am): Likewise.
22432
22433 2008-09-26  Bruno Haible  <bruno@clisp.org>
22434
22435         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
22436         variables.
22437         (func_version): Essentially copied from gnulib-tool.
22438         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
22439         func_readlink): Copied from gnulib-tool.
22440
22441 2008-09-26  Bruno Haible  <bruno@clisp.org>
22442
22443         * gnulib-tool (func_version): Change directory to $gnulib_dir before
22444         invoking git-version-gen.
22445
22446 2008-09-26  Bruno Haible  <bruno@clisp.org>
22447
22448         * posix-modules: Update to directory names changed on 2008-01-19.
22449         Remove commas in output before splitting into words. No more need to
22450         avoid 'ftruncate' since 2007-02-19.
22451
22452 2008-09-26  Bruno Haible  <bruno@clisp.org>
22453
22454         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
22455
22456 2008-09-26  Bruno Haible  <bruno@clisp.org>
22457
22458         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
22459         * modules/fwriteerror (Depends-on): Add errno.
22460
22461 2008-09-26  Bruno Haible  <bruno@clisp.org>
22462
22463         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
22464         * tests/test-vc-list-files-cvs.sh: Likewise.
22465
22466 2008-09-26  Bruno Haible  <bruno@clisp.org>
22467
22468         * doc/posix-headers/sys_resource.texi: Reorder items.
22469
22470 2008-09-26  Jim Meyering  <meyering@redhat.com>
22471
22472         fts: tweak inode comparison function
22473         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
22474         inode numbers, as documented.
22475
22476         fts: sort dirent entries on inode number before traversing
22477         This avoids a quadratic, seek-related performance penalty when
22478         operating on a directory containing many entries (measurable at 10k;
22479         3.5 hours at 2 million entries with a cold cache) on certain types
22480         of file systems, including ext3 and ext4, but not tmpfs.
22481         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
22482         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
22483         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
22484         (fs_handles_readdir_ordered_dirents_efficiently): New function.
22485         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
22486         (fts_build): Set the stat.st_ino member from D_INO.
22487         If it is likely to be useful, sort dirent entries on inode number.
22488
22489         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
22490         and the struct statfs.f_type member.
22491         * modules/fts (Depends-on): Add d-ino.
22492
22493 2008-09-26  Bruno Haible  <bruno@clisp.org>
22494
22495         * modules/sigpipe-die (Depends-on): Add sigpipe.
22496
22497         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
22498         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
22499         and GNULIB_STDIO_H_SIGPIPE are set.
22500         * lib/stdio-write.c: New file.
22501         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
22502         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22503         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22504         REPLACE_STDIO_WRITE_FUNCS.
22505         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
22506         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22507         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22508         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22509         * modules/stdio (Files): Add lib/stdio-write.c.
22510         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
22511         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
22512         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
22513         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
22514         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
22515         REPLACE_FPRINTF_POSIX.
22516         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
22517         REPLACE_PRINTF_POSIX.
22518         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
22519         REPLACE_VFPRINTF_POSIX.
22520         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
22521         REPLACE_VPRINTF_POSIX.
22522         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
22523         SIGPIPE issue.
22524         * doc/posix-functions/fputc.texi: Likewise.
22525         * doc/posix-functions/fputs.texi: Likewise.
22526         * doc/posix-functions/fwrite.texi: Likewise.
22527         * doc/posix-functions/printf.texi: Likewise.
22528         * doc/posix-functions/putc.texi: Likewise.
22529         * doc/posix-functions/putchar.texi: Likewise.
22530         * doc/posix-functions/puts.texi: Likewise.
22531         * doc/posix-functions/vfprintf.texi: Likewise.
22532         * doc/posix-functions/vprintf.texi: Likewise.
22533
22534         * modules/safe-write (Depends-on): Add write.
22535
22536         * modules/sigpipe-tests: New file.
22537         * tests/test-sigpipe.c: New file.
22538         * tests/test-sigpipe.sh: New file.
22539
22540         * modules/write: New file.
22541         * lib/unistd.in.h: Include <sys/types.h>.
22542         (write): New declaration.
22543         * lib/write.c: New file.
22544         * m4/write.m4: New file.
22545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22546         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
22547         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
22548         GNULIB_WRITE, REPLACE_WRITE.
22549         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
22550         and the SIGPIPE issue.
22551
22552         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
22553         (raise): New declaration.
22554         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
22555         (ext_signal): New function.
22556         (rpl_raise): New function.
22557         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
22558         GNULIB_SIGNAL_H_SIGPIPE.
22559         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
22560         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
22561
22562         * modules/sigpipe: New file.
22563         * m4/sigpipe.m4: New file.
22564
22565 2008-09-25  Derek Price  <derek@ximbiot.com>
22566             Bruno Haible  <bruno@clisp.org>
22567
22568         * gnulib-tool (func_import): Report all license incompatibilities, not
22569         just the first one.
22570
22571 2008-09-25  Bruno Haible  <bruno@clisp.org>
22572
22573         * gnulib-tool (func_import): When computing the edits, consider not
22574         only the Makefile.ams that exist but also those that will be generated.
22575
22576 2008-09-25  Simon Josefsson  <simon@josefsson.org>
22577
22578         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
22579         fixes gnulib-tool --test warning about duplicate dependency.
22580
22581 2008-09-25  Bruno Haible  <bruno@clisp.org>
22582
22583         * gnulib-tool: Don't ask the user to perform edits in the generated
22584         Makefile.ams.
22585         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
22586         apply to the Makefile.am being generated.
22587         (func_emit_tests_Makefile_am): Execute edits that apply to the
22588         Makefile.am being generated.
22589         (func_import): Setup list of Makefile.am edits before emitting the
22590         Makefile.ams, not at the end.
22591         (func_create_testdir): Update.
22592         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22593
22594 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22595
22596         * gnulib-tool (func_import): Store the --tests-base option in the
22597         comment in gnulib-cache.m4.
22598
22599 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
22600
22601         * NEWS: Document increased portability that sys_select now provides.
22602
22603         * lib/sys_select.in.h: Install select wrapper.
22604         * lib/sys_socket.in.h: Use more descriptive name when there is no
22605         select wrapper.
22606         * lib/winsock-select.c: New.
22607         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
22608         Require gl_HEADER_SYS_SOCKET.
22609         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
22610         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
22611         * tests/test-sys_select.c: Add functional tests.
22612
22613 2008-09-24  Eric Blake  <ebb9@byu.net>
22614
22615         open, fopen: close fd leak in last patch
22616         * lib/open.c (rpl_open): Close fd before returning error.
22617         * lib/fopen.c (rpl_fopen): Close fd before returning error.
22618         * doc/posix-functions/open.texi (open): Document that Irix also
22619         has the bug.
22620         * doc/posix-functions/fopen.texi (fopen): Likewise.
22621         Reported by Paolo Bonzini.
22622
22623 2008-09-24  Bruno Haible  <bruno@clisp.org>
22624
22625         Ensure that a filename ending in a slash cannot be used to access a
22626         non-directory.
22627         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
22628         to check whether it's really a directory.
22629         * lib/fopen.c: Include fcntl.h, unistd.h.
22630         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
22631         and fdopen().
22632         * modules/fopen (Depends-on): Add unistd.
22633         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
22634         * tests/test-fopen.c (main): Likewise.
22635         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
22636         * doc/posix-functions/fopen.texi: Likewise.
22637         Reported by Eric Blake.
22638
22639 2008-09-23  Eric Blake  <ebb9@byu.net>
22640
22641         c-stack: avoid compiler optimizations when provoking overflow
22642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
22643         recursion harder to optimize, to ensure a stack overflow occurs.
22644         * tests/test-c-stack.c (recurse): Likewise.
22645         Borrowed from libsigsegv.
22646
22647         c-stack: work around Irix sigaltstack bug
22648         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
22649         whether sigaltstack uses wrong end of stack_t (copied in part from
22650         libsigsegv).
22651         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
22652         Irix bug, without requiring an over-allocation.
22653         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
22654         bug.
22655
22656         fopen: document mingw bug on directories
22657         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
22658         not allowing a stream visiting a directory, even though reading
22659         from such a stream is not portable.
22660
22661 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22662
22663         * lib/poll.c: Rewrite.
22664         * modules/poll: Depend on alloca.
22665
22666 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22667
22668         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
22669         instead define prototypes for a full set of wrappers.  Ensure
22670         that Cygwin does not use the compatibility code, which is only
22671         for MinGW.
22672         * lib/winsock.c: New.
22673         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
22674         * modules/sys_socket: Add lib/winsock.c.
22675
22676         * modules/poll-tests: Add errno and perror.
22677         * tests/test-poll.c: Use ioctl, not ioctlsocket.
22678
22679 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
22680
22681         * tests/test-poll.c: Downgrade minimum needed Winsock version.
22682
22683 2008-09-23  Bruno Haible  <bruno@clisp.org>
22684
22685         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
22686         * doc/glibc-functions/*: Likewise.
22687
22688 2008-09-23  Simon Josefsson  <simon@josefsson.org>
22689
22690         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
22691         success.
22692
22693 2008-09-22  Eric Blake  <ebb9@byu.net>
22694             Bruno Haible  <bruno@clisp.org>
22695
22696         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
22697         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
22698         supply %A but mishandle pseudo-NaN.
22699         Reported by Simon Josefsson.
22700
22701 2008-09-21  Bruno Haible  <bruno@clisp.org>
22702
22703         * tests/test-lock.c (main): Tweak skip message.
22704         * tests/test-tls.c (main): Likewise.
22705
22706 2008-09-21  Bruno Haible  <bruno@clisp.org>
22707
22708         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
22709         whether 'struct sigaction' has sa_sigaction here...
22710         (gl_PREREQ_SIG_HANDLER_H): ... not here.
22711         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
22712
22713 2008-09-21  Bruno Haible  <bruno@clisp.org>
22714
22715         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
22716         section.
22717         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
22718         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
22719         the new section.
22720         (Support for obsolete systems lacking POSIX:2001): New section.
22721         (String handling <string.h>): Move strdup to the new section.
22722         Suggested by Simon Josefsson and Paolo Bonzini.
22723
22724 2008-09-21  Bruno Haible  <bruno@clisp.org>
22725
22726         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
22727         exponents in %e and %g results on 'long double'. Needed for mingw's
22728         improved *printf functions.
22729         * tests/test-vasprintf-posix.c (test_function): Likewise.
22730         * tests/test-snprintf-posix.h (test_function): Likewise.
22731         * tests/test-sprintf-posix.h (test_function): Likewise.
22732         Reported by Eric Blake.
22733
22734 2008-09-21  Bruno Haible  <bruno@clisp.org>
22735
22736         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
22737         * tests/test-sprintf-posix.h (test_function): Likewise.
22738
22739 2008-09-21  Bruno Haible  <bruno@clisp.org>
22740
22741         * modules/getpass (Depends-on): Add strdup-posix.
22742
22743         New module 'strdup-posix'.
22744         * modules/strdup-posix: New file.
22745         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
22746         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
22747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22748         REPLACE_STRDUP.
22749         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
22750         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
22751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22752         strdup-posix.
22753
22754         * modules/strdup (Depends-on): Remove malloc-posix.
22755
22756 2008-09-20  Bruno Haible  <bruno@clisp.org>
22757
22758         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
22759         Wildenhues.
22760
22761 2008-09-20  Bruno Haible  <bruno@clisp.org>
22762
22763         Ensure that wint_t gets defined on IRIX 5.3.
22764         * lib/wchar.in.h (wint_t): Define if not defined by the system.
22765         * lib/wctype.in.h (wint_t): Likewise.
22766         (__wctype_wint_t): Remove type.
22767         (isw*): Use wint_t instead of __wctype_wint_t.
22768         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
22769         * modules/wchar (Files): Add m4/wint_t.m4.
22770         (Makefile.am): Substitute HAVE_WINT_T.
22771         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
22772         * tests/test-wctype.c: Check that wint_t is defined.
22773         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
22774         * doc/posix-headers/wctype.texi: Likewise.
22775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22776
22777 2008-09-18  Bruno Haible  <bruno@clisp.org>
22778
22779         * gnulib-tool (func_exit): Update comment.
22780
22781 2008-09-18  Simon Josefsson  <simon@josefsson.org>
22782
22783         * modules/getaddrinfo (Depends-on): Remove strdup, this module
22784         assumes strdup exists and does not depend on strdup to return
22785         ENOMEM on out of memory conditions.
22786
22787 2008-09-18  Bruno Haible  <bruno@clisp.org>
22788
22789         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
22790         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
22791         digits for the exponent.
22792
22793 2008-09-18  Jim Meyering  <meyering@redhat.com>
22794             Bruno Haible  <bruno@clisp.org>
22795
22796         * lib/vasnprintf.c (decimal_point_char): Define also if
22797         NEED_PRINTF_INFINITE_LONG_DOUBLE.
22798
22799 2008-09-16  Bruno Haible  <bruno@clisp.org>
22800         and Eric Blake  <ebb9@byu.net>
22801
22802         vasnprintf: support Irix 5.3
22803         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
22804         that mishandle long double infinity.
22805         Reported by Tom G. Christensen.
22806
22807 2008-09-16  Bruno Haible  <bruno@clisp.org>
22808
22809         * doc/glibc-functions/scandir.texi: Mention the function is missing on
22810         Solaris 9.
22811         * doc/glibc-functions/alphasort.texi: Likewise.
22812         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
22813
22814 2008-09-16  Jim Meyering  <meyering@redhat.com>
22815
22816         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
22817         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
22818         a umask modification leak out of a subshell.  Otherwise, the
22819         opensolaris /bin/sh would be accepted and thus cause unwarranted
22820         failures in the coreutils test suite.
22821
22822 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
22823
22824         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
22825         to succeed.
22826
22827 2008-09-16  Jim Meyering  <meyering@redhat.com>
22828
22829         avoid spurious test failure when library is built without ACL support
22830         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
22831         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
22832         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
22833         * tests/test-copy-acl.sh: Likewise.
22834
22835 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22836
22837         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
22838         based on character occurrence counts.
22839
22840 2008-09-15  Eric Blake  <ebb9@byu.net>
22841
22842         tests: avoid some compiler warnings
22843         * tests/test-memchr.c (main): Pass NULL indirectly.
22844         * tests/test-closein.c (main): Avoid unused variable.
22845
22846 2008-09-15  Bruno Haible  <bruno@clisp.org>
22847
22848         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
22849         are missing on OpenBSD 4.0 individually.
22850         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22851
22852 2008-09-15  Bruno Haible  <bruno@clisp.org>
22853
22854         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
22855         * doc/posix-functions/strerror.texi: Mention also Cygwin.
22856         * doc/posix-functions/perror.texi: Likewise.
22857         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
22858         is missing.
22859         Reported by Eric Blake.
22860
22861         * lib/errno.in.h: Use replacement values >= 2000.
22862         Reported by Eric Blake.
22863
22864 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22865
22866         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
22867         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
22868         limit.
22869         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
22870         compareseq was aborted.
22871
22872 2008-09-14  Bruno Haible  <bruno@clisp.org>
22873
22874         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
22875         yvec_edit_count.
22876         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
22877         (fstrcmp_bounded): Simplify result computation accordingly.
22878
22879 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22880
22881         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
22882         (fstrcmp): Define in terms of fstrcmp_bounded.
22883         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
22884         lower_bound argument.
22885         Return quickly if the result is certainly < lower_bound.
22886         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
22887
22888 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22889
22890         * lib/diffseq.h (EARLY_ABORT): New macro.
22891         (compareseq): Change return type to bool. Return true when EARLY_ABORT
22892         evaluates to true.
22893
22894 2008-09-14  Bruno Haible  <bruno@clisp.org>
22895
22896         * modules/perror-tests: New file.
22897         * tests/test-perror.sh: New file.
22898         * tests/test-perror.c: New file.
22899
22900         New module 'perror'.
22901         * lib/stdio.in.h (perror): New declaration.
22902         * lib/perror.c: New file.
22903         * m4/perror.m4: New file.
22904         * modules/perror: New file.
22905         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
22906         * doc/posix-functions/perror.texi: Mention the perror module.
22907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
22908         REPLACE_PERROR.
22909         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
22910         REPLACE_PERROR.
22911
22912 2008-09-14  Bruno Haible  <bruno@clisp.org>
22913
22914         * modules/stdio (Makefile.am): Reorder to match the order in
22915         lib/stdio.in.h.
22916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22917
22918 2008-09-13  Bruno Haible  <bruno@clisp.org>
22919
22920         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
22921
22922 2008-09-13  Bruno Haible  <bruno@clisp.org>
22923
22924         Extend strerror to cover the added errno values.
22925         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
22926         (rpl_strerror): Provide error messages for the added errno values and
22927         for the WSA* values.
22928         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
22929         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
22930         strerror.
22931         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
22932         * modules/strerror (Depends-on): Add errno.
22933         * doc/posix-functions/strerror.texi: Document the change.
22934         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
22935         and EOVERFLOW.
22936
22937 2008-09-13  Bruno Haible  <bruno@clisp.org>
22938
22939         * modules/EOVERFLOW: Remove file.
22940         * m4/eoverflow.m4: Remove file.
22941         * modules/EOVERFLOW-tests: Remove file.
22942         * tests/test-EOVERFLOW.c: Remove file.
22943         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
22944         * modules/ftell (Depends-on): Likewise.
22945         * modules/getdelim (Depends-on): Likewise.
22946         * modules/getugroups (Depends-on): Likewise.
22947         * modules/poll (Depends-on): Likewise.
22948         * modules/snprintf (Depends-on): Likewise.
22949         * modules/sprintf-posix (Depends-on): Likewise.
22950         * modules/vasnprintf (Depends-on): Likewise.
22951         * modules/vasprintf (Depends-on): Likewise.
22952         * modules/vfprintf-posix (Depends-on): Likewise.
22953         * modules/vsnprintf (Depends-on): Likewise.
22954         * modules/vsprintf-posix (Depends-on): Likewise.
22955         * modules/xvasprintf (Depends-on): Likewise.
22956         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22957         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
22958         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
22959         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
22960         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22961         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
22962         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
22963         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
22964         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22965         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
22966         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
22967         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
22968         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22969         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
22970         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
22971         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
22972         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22973         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
22974         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
22975         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
22976         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22977         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
22978         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
22979         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
22980         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
22981         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22982         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
22983         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
22984         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
22985         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
22986         * MODULES.html.sh: Remove EOVERFLOW.
22987         * NEWS: Mention the change.
22988
22989 2008-09-13  Bruno Haible  <bruno@clisp.org>
22990
22991         * modules/errno-tests: New file.
22992         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
22993
22994         * lib/errno.in.h: New file.
22995         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
22996         * modules/errno: New file.
22997         * doc/posix-headers/errno.texi: Update documentation.
22998         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
22999
23000 2008-09-13  Bruno Haible  <bruno@clisp.org>
23001
23002         * tests/test-poll.c: Use #if for native Windows, rather than testing
23003         __MSVCRT__.
23004
23005 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23006             Bruno Haible  <bruno@clisp.org>
23007
23008         * lib/glob.c: Don't include <pwd.h> on native Windows.
23009         (WINDOWS32): New macro.
23010         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
23011
23012 2008-09-13  Bruno Haible  <bruno@clisp.org>
23013
23014         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
23015         (ETIMEDOUT): Remove macro.
23016         (glthread_cond_timedwait_multithreaded): New declaration.
23017         (glthread_cond_timedwait): Use it.
23018         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
23019         (glthread_cond_timedwait_multithreaded): New function.
23020
23021 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23022
23023         * modules/poll-tests: Do not check for io.h.
23024         * tests/test-poll.c: Check for __MSVCRT__ instead.
23025
23026 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23027
23028         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
23029         * modules/poll-tests: Add inet_pton, stdbool, sockets.
23030         * tests/test-poll.c: Use them.  Use _pipe on Windows.
23031
23032 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
23033
23034         * modules/poll-tests: New.
23035         * tests/test-poll.c: New.
23036
23037 2008-09-12  Eric Blake  <ebb9@byu.net>
23038
23039         frexp: test for NetBSD failure on -0.0
23040         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
23041         not all, bugs from NetBSD 3.0 have been fixed.
23042         * doc/posix-functions/frexp.texi (frexp): Document bug.
23043         Reported by Thomas Klausner.
23044
23045         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
23046         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
23047         literal -0.0.
23048         Reported by Jonathan C. Patschke <jp@centtech.com>.
23049
23050 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23051
23052         * lib/glthread/cond.h: Use dummy implementation also if
23053         USE_WIN32_THREADS.
23054
23055 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23056
23057         * modules/fnmatch-posix (License): Change to LGPLv2+.
23058         * modules/fnmatch-gnu (License): Likewise.
23059
23060 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23061
23062         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
23063
23064 2008-09-11  Jim Meyering  <meyering@redhat.com>
23065
23066         * users.txt: Add gtk-vnc.
23067
23068 2008-09-08  Simon Josefsson  <simon@josefsson.org>
23069
23070         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
23071         rotate amounts.
23072
23073         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
23074         required for 16-bit and 8-bit rotates.
23075         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
23076         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
23077         UINT8_MAX instead of hard-coded constants.
23078         Suggested by Paul Eggert.
23079
23080 2008-09-07  Bruno Haible  <bruno@clisp.org>
23081
23082         * tests/test-striconveh.c (main): Check behaviour when converting from
23083         UTF-7.
23084
23085         Make striconveh work better with stateful encodings.
23086         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
23087         that iconv does not increment the inptr when returning -1/EINVAL.
23088
23089 2008-09-07  Bruno Haible  <bruno@clisp.org>
23090
23091         * build-aux/config.rpath: Update according to libtool-2.2.6.
23092         * build-aux/config.libpath: Likewise.
23093
23094 2008-09-06  Bruno Haible  <bruno@clisp.org>
23095
23096         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
23097         * lib/freadptr.c (freadptr): Likewise.
23098         * lib/freadseek.c (freadptrinc): Likewise.
23099         Reported by Simon Josefsson.
23100
23101 2008-09-06  Bruno Haible  <bruno@clisp.org>
23102
23103         * modules/freadptr (License): Change to LGPLv2+.
23104         * modules/freadseek (License): Likewise.
23105         Suggested by Eric Blake.
23106
23107         * modules/memchr2 (License): Change to LGPLv2+.
23108         Approved by Eric Blake.
23109
23110 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23111             Bruno Haible  <bruno@clisp.org>
23112
23113         Make gnulib-tool work with native 'sed' on AIX.
23114         * gnulib-tool (sed_noop): New variable.
23115         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
23116         func_add_or_update, func_create_testdir): Use it to initialize sed
23117         script variables.
23118         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23119
23120 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
23121             Bruno Haible  <bruno@clisp.org>
23122
23123         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
23124         also works after #include directives.
23125
23126 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
23127
23128         getdate.y: reject an out-of-range timezone value
23129         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
23130         the range [-24...+24].  When specified with only one or two digits,
23131         * tests/test-getdate.c: Tests for the fix.
23132         * doc/getdate.texi: Document this change.
23133
23134 2008-09-03  Bruno Haible  <bruno@clisp.org>
23135
23136         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
23137
23138 2008-09-02  Simon Josefsson  <simon@josefsson.org>
23139
23140         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
23141         <bruce.korb@gmail.com> with ideas from Ben Pfaff
23142         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
23143         Blake <ebb9@byu.net>.
23144
23145         * tests/test-bitrotate.c: Add more test vectors.
23146
23147 2008-09-02  Eric Blake  <ebb9@byu.net>
23148
23149         vasnprintf-posix: handle large precision via %.*d
23150         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
23151         when handling it ourselves.
23152         * tests/test-vasnprintf-posix.c (test_function): Add test.
23153         * tests/test-snprintf-posix.h (test_function): Likewise.
23154         * tests/test-sprintf-posix.h (test_function): Likewise.
23155         * tests/test-vasprintf-posix.c (test_function): Likewise.
23156         Reported by Alain Guibert.
23157
23158 2008-09-01  Eric Blake  <ebb9@byu.net>
23159
23160         c-stack: make configure-time check more robust
23161         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
23162         successful sigaction call.
23163         Reported by Tom G. Christensen.
23164
23165 2008-09-01  Bruno Haible  <bruno@clisp.org>
23166
23167         New module 'findprog-lgpl'.
23168         * modules/findprog-lgpl: New file.
23169         * lib/findprog-lgpl.c: New file.
23170         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
23171         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
23172         to decide whether to use strdup or xstrdup, concatenated_filename or
23173         xconcatenated_filename.
23174
23175 2008-09-01  Bruno Haible  <bruno@clisp.org>
23176
23177         Split module 'concat-filename' into 'concat-filename' (LGPL) and
23178         'xconcat-filename' (GPL).
23179         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
23180         (License): Change to LGPLv2+.
23181         * modules/xconcat-filename: New file.
23182         * lib/concat-filename.h (concatenated_filename): Change specification.
23183         (xconcatenated_filename): New declaration.
23184         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
23185         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
23186         memory situations.
23187         * lib/xconcat-filename.c: New file.
23188         * NEWS: Mention the change.
23189         * lib/findprog.c: Include concat-filename.h, not filename.h.
23190         (find_in_path): Use xconcatenated_filename instead of
23191         concatenated_filename.
23192         * lib/javacomp.c: Include concat-filename.h, not filename.h.
23193         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
23194         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
23195         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
23196         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
23197         instead of concatenated_filename.
23198         * lib/javaexec.c: Include concat-filename.h, not filename.h.
23199         (execute_java_class): Use xconcatenated_filename instead of
23200         concatenated_filename.
23201         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
23202         * modules/javacomp (Depends-on): Likewise.
23203         * modules/javaexec (Depends-on): Likewise.
23204
23205 2008-09-01  Bruno Haible  <bruno@clisp.org>
23206
23207         Split module 'filename' into 'filename' and 'concat-filename'.
23208         * modules/filename: Keep only lib/filename.h.
23209         (License): Change to LGPLv2+.
23210         * modules/concat-filename: New file, extracted from modules/filename.
23211         * lib/filename.h (concatenated_filename): Remove declaration.
23212         * lib/concat-filename.h: New file, extracted from lib/filename.h.
23213         * lib/concat-filename.c: Include concat-filename.h.
23214         * NEWS: Mention the change.
23215
23216 2008-09-01  Simon Josefsson  <simon@josefsson.org>
23217
23218         * lib/bitrotate.h (rotl8, rotr8): Add.
23219
23220         * modules/bitrotate (configure.ac): Need
23221         AC_REQUIRE([AC_C_INLINE]).
23222         (Description): Mention stdint.h.  Reported by Bruno Haible
23223         <bruno@clisp.org>.
23224
23225         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
23226         Paolo Bonzini <bonzini@gnu.org>.
23227
23228 2008-08-31  Bruno Haible  <bruno@clisp.org>
23229
23230         Assume Solaris specific bi-arch conventions on Solaris systems.
23231         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
23232         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
23233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
23234         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
23235         like acl_libdirstem.
23236         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
23237         acl_libdirstem.
23238         * NEWS: Mention the change.
23239         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
23240
23241 2008-08-31  Jim Meyering  <meyering@redhat.com>
23242
23243         * lib/strftime.h: Add comments describing the two added arguments.
23244
23245         remove duplicate #include directives
23246         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
23247         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
23248
23249 2008-08-31  Bruno Haible  <bruno@clisp.org>
23250
23251         New module 'sigpipe-die'.
23252         * modules/sigpipe-die: New file.
23253         * lib/sigpipe-die.h: New file.
23254         * lib/sigpipe-die.c: New file.
23255         * MODULES.html.sh (Signal handling): Add sigpipe-die.
23256
23257 2008-08-31  Bruno Haible  <bruno@clisp.org>
23258
23259         Don't override previously installed signal handlers.
23260         * lib/fatal-signal.c (saved_sigactions): New variable.
23261         (uninstall_handlers): Reset the signal to the saved handler, not
23262         to SIG_DFL (except when ignored).
23263         (install_handlers): Save the previous handlers.
23264
23265 2008-08-30  Bruno Haible  <bruno@clisp.org>
23266
23267         * gnulib-tool (func_reset_sigpipe): New function.
23268         (func_get_automake_snippet, func_modules_transitive_closure,
23269         func_import): Invoke it before a join command that reads from stdin,
23270         to avoid "echo: write error: Broken pipe" error messages on stderr.
23271         Reported by Sam Steingold <sds@gnu.org>.
23272
23273 2008-08-30  Bruno Haible  <bruno@clisp.org>
23274
23275         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
23276         Code copied from m4/open.m4.
23277         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
23278         access and the filename ends in a slash. Code copied from lib/open.c.
23279         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
23280         * tests/test-fopen.c (main): Check against bug with trailing slash.
23281
23282 2008-08-29  Bruno Haible  <bruno@clisp.org>
23283
23284         Avoid some "gcc -pedantic" warnings.
23285         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
23286         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
23287         * lib/dirent.in.h: Likewise.
23288         * lib/fcntl.in.h: Likewise.
23289         * lib/float.in.h: Likewise.
23290         * lib/iconv.in.h: Likewise.
23291         * lib/inttypes.in.h: Likewise.
23292         * lib/locale.in.h: Likewise.
23293         * lib/math.in.h: Likewise.
23294         * lib/netinet_in.in.h: Likewise.
23295         * lib/search.in.h: Likewise.
23296         * lib/signal.in.h: Likewise.
23297         * lib/stdarg.in.h: Likewise.
23298         * lib/stdint.in.h: Likewise.
23299         * lib/stdio.in.h: Likewise.
23300         * lib/stdlib.in.h: Likewise.
23301         * lib/string.in.h: Likewise.
23302         * lib/strings.in.h: Likewise.
23303         * lib/sys_select.in.h: Likewise.
23304         * lib/sys_socket.in.h: Likewise.
23305         * lib/sys_stat.in.h: Likewise.
23306         * lib/sys_time.in.h: Likewise.
23307         * lib/sysexits.in.h: Likewise.
23308         * lib/time.in.h: Likewise.
23309         * lib/unistd.in.h: Likewise.
23310         * lib/wchar.in.h: Likewise.
23311         * lib/wctype.in.h: Likewise.
23312         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
23313         * modules/fchdir (Makefile.am): Likewise.
23314         * modules/fcntl (Makefile.am): Likewise.
23315         * modules/float (Makefile.am): Likewise.
23316         * modules/iconv_open (Makefile.am): Likewise.
23317         * modules/inttypes (Makefile.am): Likewise.
23318         * modules/locale (Makefile.am): Likewise.
23319         * modules/math (Makefile.am): Likewise.
23320         * modules/netinet_in (Makefile.am): Likewise.
23321         * modules/search (Makefile.am): Likewise.
23322         * modules/signal (Makefile.am): Likewise.
23323         * modules/stdarg (Makefile.am): Likewise.
23324         * modules/stdint (Makefile.am): Likewise.
23325         * modules/stdio (Makefile.am): Likewise.
23326         * modules/stdlib (Makefile.am): Likewise.
23327         * modules/string (Makefile.am): Likewise.
23328         * modules/strings (Makefile.am): Likewise.
23329         * modules/sys_select (Makefile.am): Likewise.
23330         * modules/sys_socket (Makefile.am): Likewise.
23331         * modules/sys_stat (Makefile.am): Likewise.
23332         * modules/sys_time (Makefile.am): Likewise.
23333         * modules/sysexits (Makefile.am): Likewise.
23334         * modules/time (Makefile.am): Likewise.
23335         * modules/unistd (Makefile.am): Likewise.
23336         * modules/wchar (Makefile.am): Likewise.
23337         * modules/wctype (Makefile.am): Likewise.
23338         Reported by Reuben Thomas <rrt@sc3d.org>.
23339
23340 2008-08-29  Bruno Haible  <bruno@clisp.org>
23341
23342         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
23343         any more.
23344
23345 2008-08-29  Simon Josefsson  <simon@josefsson.org>
23346
23347         * MODULES.html.sh (Misc): Add bitrotate.
23348
23349         * modules/bitrotate: New file.
23350
23351         * lib/bitrotate.h: New file.
23352
23353         * modules/bitrotate-tests: New file.
23354
23355         * tests/test-bitrotate.c: New file.
23356
23357         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
23358         on the bitrotate module.
23359
23360         * lib/arctwo.c: Use new bitrotate module.
23361
23362 2008-08-29  Jim Meyering  <meyering@redhat.com>
23363
23364         bootstrap: merge changes from coreutils
23365         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
23366         of copied files.  Remove a kludge, now that this is fixed.
23367         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
23368         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
23369         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
23370
23371 2008-08-29  Bruno Haible  <bruno@clisp.org>
23372
23373         * MODULES.html.sh: Remove --cvs-urls option.
23374
23375 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
23376
23377         maint.mk: adjust to file name change
23378         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
23379
23380 2008-08-28  Jim Meyering  <meyering@redhat.com>
23381
23382         * modules/getndelim2 (License): Relicense to LGPLv2+.
23383         Approved by Richard Stallman for the version of 1995, and by
23384         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
23385
23386 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
23387
23388         * lib/getdelim.c (flockfile, funlockfile): Make all of them
23389         dummy if one is not available.  Do not touch them if
23390         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
23391         (getc_maybe_unlocked): New.
23392         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
23393
23394 2008-08-26  Eric Blake  <ebb9@byu.net>
23395
23396         doc/INSTALL: resync from autoconf
23397         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
23398         (INSTALL_PRELUDE): Delete; this is done more efficiently by
23399         moving...
23400         * install.texi [!autoconf]: ...here.  Resync from autoconf.
23401         * INSTALL: Regenerate.
23402         * INSTALL.ISO: New file.
23403         * INSTALL.UTF-8: Likewise.
23404
23405 2008-08-26  Jim Meyering  <meyering@redhat.com>
23406
23407         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
23408         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
23409         these definitions conditional, so that they may be overridden, too.
23410
23411 2008-08-26  Bruno Haible  <bruno@clisp.org>
23412
23413         Generate INSTALL file variants with prettier quotes.
23414         * doc/Makefile (INSTALL_PRELUDE): New macro.
23415         (INSTALL): Use it.
23416         (INSTALL.ISO, INSTALL.UTF-8): New rules.
23417
23418 2008-08-26  Bruno Haible  <bruno@clisp.org>
23419
23420         Run makeinfo in an English locale.
23421         * doc/Makefile (MAKEINFO): New variable.
23422
23423 2008-08-26  Bruno Haible  <bruno@clisp.org>
23424
23425         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
23426         Suggested by Eric Blake.
23427
23428 2008-08-25  Bruno Haible  <bruno@clisp.org>
23429
23430         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
23431
23432 2008-08-25  Eric Blake  <ebb9@byu.net>
23433
23434         c-stack: test that stack overflow can be caught
23435         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
23436         that platform allows handling stack overflow; at least OS/2 EMX
23437         has sigaltstack, but crashes before transferring control to
23438         handler on stack overflow.
23439         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
23440         check for HAVE_STACK_OVERFLOW_HANDLING.
23441         Reported by Elbert Pol.
23442
23443 2008-08-25  Bruno Haible  <bruno@clisp.org>
23444
23445         * doc/posix-functions/strftime.texi: Fix description of strftime
23446         module.
23447
23448 2008-08-24  Bruno Haible  <bruno@clisp.org>
23449
23450         * tests/uniwidth/test-uc_width2.c: New file.
23451         * tests/uniwidth/test-uc_width2.sh: New file.
23452         * modules/uniwidth/width-tests (Files): Add the new files.
23453         (TESTS): Add uniwidth/test-uc_width2.sh.
23454         (TESTS_ENVIRONMENT): New variable.
23455         (check_PROGRAMS): Add test-uc_width2.
23456         (test_uc_width2_SOURCES): New variable.
23457
23458         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
23459         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
23460         not 0x00AB.
23461         Reported by Alexander V. Lukyanov <lav@netis.ru>.
23462
23463 2008-08-22  Eric Blake  <ebb9@byu.net>
23464
23465         test-lock, test-tls: mention why a test is skipped
23466         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
23467         skipped.
23468         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
23469
23470         count-one-bits: relax license
23471         * modules/count-one-bits (License): Relicense to LGPLv2+.
23472         Suggested by Ludovic Courtès, approved by Ben Pfaff.
23473
23474 2008-08-22  Andreas Schwab  <schwab@suse.de>
23475
23476         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23477         Remove spurious space in assignment.
23478
23479 2008-08-21  Simon Josefsson  <simon@josefsson.org>
23480
23481         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
23482         Paul Eggert <eggert@CS.UCLA.EDU>.
23483
23484 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
23485
23486         * modules/gettext: Add m4/threadlib.m4.
23487
23488 2008-08-19  Eric Blake  <ebb9@byu.net>
23489
23490         test-c-stack: fix compilation failure on FreeBSD 5.0
23491         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
23492         headers before <sys/resource.h>.
23493         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
23494         the bug.
23495         Reported by Nelson H. F. Beebe.
23496
23497         strverscmp: migrate from "strverscmp.h" to <string.h>
23498         * modules/string (Makefile.am): Add new hooks.
23499         * modules/strverscmp (Files): Remove strverscmp.h.
23500         (Depends-on): Add string.
23501         (configure.ac): Add indicator.
23502         (Include): Mention new header.
23503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
23504         defaults.
23505         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
23506         results.
23507         * lib/strverscmp.h: Delete.
23508         * lib/string.in.h (strverscmp): Provide declaration, when needed.
23509         * tests/test-strverscmp.c (includes): Adjust client.
23510         * lib/check-version.c (includes): Likewise.
23511         * NEWS: Document the change.
23512
23513         strverscmp: add unit test
23514         * modules/strverscmp-tests: New file.
23515         * tests/test-strverscmp.c: Likewise.
23516
23517 2008-08-19  Simon Josefsson  <simon@josefsson.org>
23518
23519         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
23520         regarding Windows crypto stuff, from Mono.
23521
23522 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
23523
23524         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
23525         if present, for intel RND.  Return error on failures.
23526
23527 2008-08-18  Ben Pfaff  <blp@gnu.org>
23528
23529         gitlog-to-changelog: give better diagnostic for failed pipe-open
23530         * build-aux/gitlog-to-changelog: Improve error message: suggest
23531         that the version of Git may be too old.
23532
23533 2008-08-18  Simon Josefsson  <simon@josefsson.org>
23534
23535         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
23536         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
23537
23538 2008-08-18  Bruno Haible  <bruno@clisp.org>
23539
23540         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
23541         pthread_in_use().
23542
23543 2008-08-18  Bruno Haible  <bruno@clisp.org>
23544
23545         * lib/glthread/threadlib.c: Include <pthread.h>.
23546
23547 2008-08-18  Bruno Haible  <bruno@clisp.org>
23548
23549         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
23550         glthread_recursive_lock_* macros.
23551         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
23552         Fix syntax error.
23553
23554 2008-08-18  Bruno Haible  <bruno@clisp.org>
23555
23556         * lib/glthread/thread.c: Avoid forcing a context switch right after
23557         thread creation.
23558
23559 2008-08-17  Bruno Haible  <bruno@clisp.org>
23560
23561         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
23562         * lib/glthread/thread.h: Provide Win32 specific implementation.
23563         * modules/thread (Files): Add lib/glthread/thread.c.
23564         (Depends-on): Add lock.
23565         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
23566
23567 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23568
23569         New module 'yield'.
23570         * modules/yield: New file.
23571         * lib/glthread/yield.h: New file.
23572         * m4/yield.m4: New file.
23573         * MODULES.html.sh (Multithreading): Add yield.
23574
23575 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23576
23577         New module 'thread'.
23578         * modules/thread: New file.
23579         * lib/glthread/thread.h: New file.
23580         * m4/thread.m4: New file.
23581         * MODULES.html.sh (Multithreading): Add thread.
23582
23583 2008-08-17  Bruno Haible  <bruno@clisp.org>
23584
23585         * lib/glthread/lock.h: Include <stdlib.h> always.
23586         * lib/glthread/tls.h: Likewise.
23587         * lib/glthread/cond.h: Likewise.
23588
23589 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23590
23591         New module 'cond'.
23592         * modules/cond: New file.
23593         * lib/glthread/cond.h: New file.
23594         * lib/glthread/cond.c: New file.
23595         * m4/cond.m4: New file.
23596         * MODULES.html.sh (Multithreading): Add cond.
23597
23598 2008-08-16  Eric Blake  <ebb9@byu.net>
23599
23600         c-stack: fix regression on Irix 5.3 from 2008-06-21
23601         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
23602         sa_sigaction...
23603         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
23604         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
23605         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
23606         * modules/signal (Makefile.am): Use the value.
23607         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
23608         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
23609         * doc/posix-headers/signal.texi (signal.h): Document this
23610         portability issue.
23611         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
23612         Reported by Tom G. Christensen.
23613
23614 2008-08-17  Bruno Haible  <bruno@clisp.org>
23615
23616         New module 'threadlib'.
23617         * modules/threadlib: New file.
23618         * lib/glthread/threadlib.c: New file, extracted from
23619         lib/glthread/lock.c.
23620         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
23621         functions.
23622         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
23623         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
23624         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
23625         macros.
23626         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
23627         (gl_DISABLE_THREADS): Remove macro.
23628         * modules/lock (Files): Remove build-aux/config.rpath.
23629         (Depends-on): Remove havelib. Add threadlib.
23630         (configure.ac-early): Remove section.
23631         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
23632         * modules/tls (Depends-on): Remove lock. Add threadlib.
23633         (Link): New section, copied from threadlib.
23634         * MODULES.html.sh (Multithreading): Add threadlib.
23635
23636 2008-08-14  Bruno Haible  <bruno@clisp.org>
23637
23638         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
23639         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
23640         glthread_rwlock_unlock, glthread_rwlock_destroy,
23641         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
23642         glthread_recursive_lock_destroy): Define as macros always.
23643         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
23644         glthread_lock_lock.
23645         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
23646         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
23647         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
23648         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
23649         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
23650         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
23651         (glthread_recursive_lock_lock_func): Renamed from
23652         glthread_recursive_lock_lock.
23653         (glthread_recursive_lock_unlock_func): Renamed from
23654         glthread_recursive_lock_unlock.
23655         (glthread_recursive_lock_destroy_func): Renamed from
23656         glthread_recursive_lock_destroy.
23657
23658 2008-08-14  Bruno Haible  <bruno@clisp.org>
23659
23660         * lib/glthread/lock.h: Renamed from lib/lock.h.
23661         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
23662         * lib/glthread/tls.h: Renamed from lib/tls.h.
23663         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
23664         * lib/fstrcmp.c: Update includes.
23665         * lib/strsignal.c: Update includes.
23666         * modules/lock (Files, Makefile.am): Update.
23667         (Include): Change to "glthread/lock.h".
23668         * modules/tls (Files, Makefile.am): Update.
23669         (Include): Change to "glthread/tls.h".
23670         * tests/test-lock.c: Update includes.
23671         * tests/test-tls.c: Update includes.
23672         * NEWS: Mention the renamed header files.
23673
23674 2008-08-11  Jim Meyering  <meyering@redhat.com>
23675
23676         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
23677
23678 2008-08-11  Eric Blake  <ebb9@byu.net>
23679
23680         test-c-stack: avoid C99-ism
23681         * tests/test-c-stack.c (main): Fix whitespace, move declaration
23682         before statement.
23683         Reported by Alain Guibert.
23684
23685 2008-08-10  Jim Meyering  <meyering@redhat.com>
23686
23687         ensure that return value of uinttostr et al are not ignored
23688         * lib/inttostr.h (__GNUC_PREREQ): Define.
23689         (__attribute_warn_unused_result__): Define.
23690         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
23691
23692 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
23693
23694         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
23695         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
23696
23697 2008-08-07  Jim Meyering  <meyering@redhat.com>
23698
23699         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
23700
23701         * modules/mkstemp (License): Relicense under LGPLv2+.
23702         * modules/tempname (License): Likewise.
23703
23704 2008-08-06  Bruno Haible  <bruno@clisp.org>
23705
23706         * lib/poll.c (poll): Further micro-optimization.
23707
23708 2008-08-06  Jim Meyering  <meyering@redhat.com>
23709
23710         inet_pton.c: use locale-independent tolower
23711         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
23712         (inet_pton6): Use c_tolower rather than tolower.
23713         * modules/inet_pton (Depends-on): Add c-ctype.
23714
23715 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
23716
23717         * lib/poll.c (poll): Avoid division when timeout is 0, cache
23718         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
23719
23720 2008-08-06  Jim Meyering  <meyering@redhat.com>
23721
23722         * modules/inet_pton (License): Relicense under LGPLv2+.
23723
23724 2008-08-03  Bruno Haible  <bruno@clisp.org>
23725
23726         Additional non-aborting API for lock and tls.
23727         * lib/lock.h: Include <errno.h>.
23728         (glthread_lock_init): New macro/function.
23729         (gl_lock_init): Define as wrapper around glthread_lock_init.
23730         (glthread_lock_lock): New macro/function.
23731         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
23732         (glthread_lock_unlock): New macro/function.
23733         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
23734         (glthread_lock_destroy): New macro/function.
23735         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
23736         (glthread_rwlock_init): New macro/function.
23737         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
23738         (glthread_rwlock_rdlock): New macro/function.
23739         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
23740         (glthread_rwlock_wrlock): New macro/function.
23741         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
23742         (glthread_rwlock_unlock): New macro/function.
23743         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
23744         (glthread_rwlock_destroy): New macro/function.
23745         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
23746         (glthread_recursive_lock_init): New macro/function.
23747         (gl_recursive_lock_init): Define as wrapper around
23748         glthread_recursive_lock_init.
23749         (glthread_recursive_lock_lock): New macro/function.
23750         (gl_recursive_lock_lock): Define as wrapper around
23751         glthread_recursive_lock_lock.
23752         (glthread_recursive_lock_unlock): New macro/function.
23753         (gl_recursive_lock_unlock): Define as wrapper around
23754         glthread_recursive_lock_unlock.
23755         (glthread_recursive_lock_destroy): New macro/function.
23756         (gl_recursive_lock_destroy): Define as wrapper around
23757         glthread_recursive_lock_destroy.
23758         (glthread_once): New macro/function.
23759         (gl_once): Define as wrapper around glthread_once.
23760         Update function declarations.
23761         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
23762         glthread_rwlock_init. Return error code.
23763         (glthread_rwlock_rdlock_multithreaded): Renamed from
23764         glthread_rwlock_rdlock. Return error code.
23765         (glthread_rwlock_wrlock_multithreaded): Renamed from
23766         glthread_rwlock_wrlock. Return error code.
23767         (glthread_rwlock_unlock_multithreaded): Renamed from
23768         glthread_rwlock_unlock. Return error code.
23769         (glthread_rwlock_destroy_multithreaded): Renamed from
23770         glthread_rwlock_destroy. Return error code.
23771         (glthread_recursive_lock_init_multithreaded): Renamed from
23772         glthread_recursive_lock_init. Return error code.
23773         (glthread_recursive_lock_lock_multithreaded): Renamed from
23774         glthread_recursive_lock_lock. Return error code.
23775         (glthread_recursive_lock_unlock_multithreaded): Renamed from
23776         glthread_recursive_lock_unlock. Return error code.
23777         (glthread_recursive_lock_destroy_multithreaded): Renamed from
23778         glthread_recursive_lock_destroy. Return error code.
23779         (glthread_once_call): Make static.
23780         (glthread_once_multithreaded): Renamed from glthread_once.
23781         * lib/tls.h: Include <errno.h>.
23782         (glthread_tls_key_init): New macro/function.
23783         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
23784         (glthread_tls_set): New macro/function.
23785         (gl_tls_set): Define as wrapper around glthread_tls_set.
23786         (glthread_tls_key_destroy): New macro/function.
23787         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
23788         Update function declarations.
23789         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
23790         glthread_tls_get.
23791         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
23792
23793 2008-08-04  Eric Blake  <ebb9@byu.net>
23794
23795         gnumakefile: use space, not TAB, outside of targets
23796         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
23797
23798 2008-08-02  Jim Meyering  <meyering@redhat.com>
23799
23800         getdate.y: avoid locale-dependent date parsing failure
23801         In Turkish locales, getdate would fail to recognize keywords
23802         containing a lowercase "i".  The solution is not to rely on
23803         locale-sensitive case-conversion.
23804         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
23805         (lookup_word): Use c_toupper in place of toupper.
23806         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
23807         Reported by Vefa Bicakci <bicave@superonline.com> in
23808         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
23809         * modules/getdate (Depends-on): Add c-ctype.
23810
23811 2008-08-02  Bruno Haible  <bruno@clisp.org>
23812
23813         * gnulib-tool (func_import): When updating or creating a .gitignore
23814         file, prepend each added line with a slash, and ignore leading slashes
23815         from the existing lines.
23816         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23817
23818 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23819
23820         Portability fix for GNU make 3.79.1.
23821         * top/GNUmakefile: Avoid 'else COND', which older GNU make
23822         versions do not understand.
23823
23824 2008-08-01  Bruno Haible  <bruno@clisp.org>
23825
23826         Work around bug of HP-UX 10.20 cc with -0.0 literal.
23827         * tests/test-isnanf.h (zero): New variable.
23828         (main): Avoid literal -0.0f.
23829         * tests/test-isnand.h (zero): New variable.
23830         (main): Avoid literal -0.0.
23831         * tests/test-isnanl.h (zero): New variable.
23832         (main): Avoid literal -0.0L.
23833         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
23834         (test_float, test_double, test_long_double): Avoid literals -0.0f,
23835         -0.0, -0.0L.
23836         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
23837         (test_signbitd): Avoid literal -0.0.
23838         (test_signbitl): Avoid literal -0.0L.
23839         * tests/test-ceilf1.c (zero): New variable.
23840         (main): Avoid literal -0.0f.
23841         * tests/test-ceill.c (zero): New variable.
23842         (main): Avoid literal -0.0L.
23843         * tests/test-floorf1.c (zero): New variable.
23844         (main): Avoid literal -0.0f.
23845         * tests/test-floorl.c (zero): New variable.
23846         (main): Avoid literal -0.0L.
23847         * tests/test-roundf1.c (zero): New variable.
23848         (main): Avoid literal -0.0f.
23849         * tests/test-round1.c (zero): New variable.
23850         (main): Avoid literal -0.0.
23851         * tests/test-roundl.c (zero): New variable.
23852         (main): Avoid literal -0.0L.
23853         * tests/test-truncf1.c (zero): New variable.
23854         (main): Avoid literal -0.0f.
23855         * tests/test-trunc1.c (zero): New variable.
23856         (main): Avoid literal -0.0.
23857         * tests/test-truncl.c (zero): New variable.
23858         (main): Avoid literal -0.0L.
23859         * tests/test-frexp.c (zero): New variable.
23860         (main): Avoid literal -0.0.
23861         * tests/test-frexpl.c (zero): New variable.
23862         (main): Avoid literal -0.0L.
23863         * tests/test-ldexpl.c (zero): New variable.
23864         (main): Avoid literal -0.0L.
23865         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23866         (zerod, zerol): New variables.
23867         (test_function): Avoid literals -0.0, -0.0L.
23868         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
23869         (zerod, zerol): New variables.
23870         (test_function): Avoid literals -0.0, -0.0L.
23871         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23872         (zerod, zerol): New variables.
23873         (test_function): Avoid literals -0.0, -0.0L.
23874         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
23875         (zerod, zerol): New variables.
23876         (test_function): Avoid literals -0.0, -0.0L.
23877         * tests/test-strtod.c (zero): New variable.
23878         (main): Avoid literal -0.0.
23879         Reported by Jonathan C. Patschke <jp@centtech.com>.
23880
23881 2008-07-31  Jim Meyering  <meyering@redhat.com>
23882
23883         sha256.h: correct definition of SHA224_DIGEST_SIZE
23884         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
23885         Reported by Paulie Pena IV <paulie4@gmail.com>.
23886         Define as 224 / 8, rather than as a literal.
23887         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
23888         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
23889         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
23890
23891 2008-07-31  Bruno Haible  <bruno@clisp.org>
23892
23893         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
23894         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
23895         Reported by Jonathan Patschke <jp@centtech.com>.
23896
23897 2008-07-31  Bruno Haible  <bruno@clisp.org>
23898
23899         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
23900         Reported by Paolo Bonzini <bonzini@gnu.org>.
23901
23902 2008-07-30  Eric Blake  <ebb9@byu.net>
23903
23904         test-strtod: allow compilation without -lm
23905         * tests/test-strtod.c (main): Avoid link dependence on fabs.
23906         Reported by Dennis Clarke <blastwave@gmail.com>.
23907
23908 2008-07-28  Jim Meyering  <meyering@redhat.com>
23909
23910         bootstrap: work also when there are no .po files in po/
23911         * build-aux/bootstrap (update_po_files): Complete the change
23912         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
23913
23914 2008-07-27  Jim Meyering  <meyering@redhat.com>
23915
23916         * users.txt: Add zile.
23917
23918 2008-07-26  Ben Pfaff  <blp@gnu.org>
23919
23920         Add missing dependencies on new m4/exponent[fdl].m4 files.
23921         * modules/isnanf-nolibm: Add m4/exponentf.m4.
23922         * modules/isnand-nolibm: Add m4/exponentd.m4.
23923         * modules/isnanl-nolibm: Add m4/exponentl.m4.
23924         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
23925         m4/isnan[fdl].m4, because the macros actually used moved.
23926         Reported by Jim Meyering.
23927
23928 2008-07-14  Ben Pfaff  <blp@gnu.org>
23929
23930         Add isinf module.
23931         * lib/isinf.c: New file.
23932         * lib/math.in.h: Define isinf macro if we have decided to replace
23933         it.
23934         * m4/isinf.m4: New file.
23935         * m4/math_h.m4: Initialize and substitute variables for isinf
23936         module.
23937         * modules/isinf: New file.
23938         * modules/isinf-tests: New file.
23939         * modules/math: Add substitutions for new module.
23940         * tests/test-isinf.c: New file.
23941         * doc/posix-functions/isinf.texi: Mention new module.
23942         * MODULES.html.sh: Mention new module.
23943
23944 2008-07-14  Ben Pfaff  <blp@gnu.org>
23945
23946         Factor out some macros for use by additional modules.
23947         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
23948         exponentf.m4.
23949         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
23950         exponentd.m4.
23951         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
23952         file exponentl.m4.
23953         * m4/exponentf.m4: New file.
23954         * m4/exponentd.m4: New file.
23955         * m4/exponentl.m4: New file.
23956         * modules/isnanf: Use new file m4/exponentf.m4.
23957         * modules/isnand: Use new file m4/exponentd.m4.
23958         * modules/isnanl: Use new file m4/exponentl.m4.
23959
23960 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
23961
23962         mktime.c: normalize tp->tm_isdst value to -1/0/1.
23963         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
23964         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
23965         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
23966
23967         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
23968         readlink on platforms without PATH_MAX.
23969
23970 2008-07-21  Eric Blake  <ebb9@byu.net>
23971
23972         Warn, not fail, on stale version.
23973         * top/GNUmakefile (_curr-ver): Tone down previous patch.
23974
23975         Don't allow installation with stale devel version number.
23976         * top/GNUmakefile (_is-install-target): New macro.
23977         (_curr-ver): Forbid installation with stale version number.
23978
23979 2008-07-20  Bruno Haible  <bruno@clisp.org>
23980
23981         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
23982         TESTS_ENVIRONMENT.
23983         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
23984
23985 2008-07-20  Bruno Haible  <bruno@clisp.org>
23986
23987         * lib/c-stack.h (c_stack_action): Add documentation.
23988         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
23989
23990 2008-07-20  Bruno Haible  <bruno@clisp.org>
23991
23992         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
23993         * modules/readlink (License): Likewise.
23994
23995 2008-07-17  Eric Blake  <ebb9@byu.net>
23996
23997         * modules/c-stack (Link): Fix typo.
23998
23999         Make c-stack use libsigsegv, when available.
24000         * modules/c-stack (Depends-on): Add libsigsegv.
24001         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
24002         needed.
24003         * lib/c-stack.c (SIGSTKSZ): Define fallback.
24004         (segv_handler, overflow_handler, c_stack_action)
24005         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
24006         implementation when libsigsegv is available, but only when using
24007         the library is necessary.
24008         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
24009         comment, explaining why XSI check fails on Linux.
24010         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
24011         * tests/test-c-stack2.sh: Tweak skip message.
24012         * NEWS: Document new link-time requirements.
24013
24014 2008-07-16  Eric Blake  <ebb9@byu.net>
24015
24016         c-stack: Expose false positives when not using libsigsegv.
24017         * modules/c-stack-tests (Files): Expand test.
24018         * tests/test-c-stack.c (main): Add means to conditionally trigger
24019         non-overflow SIGSEGV.
24020         * tests/test-c-stack2.sh: New file.
24021
24022 2008-07-14  Bruno Haible  <bruno@clisp.org>
24023
24024         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
24025         Reported by Eric Blake.
24026
24027 2008-07-14  Sam Steingold  <sds@gnu.org>
24028             Bruno Haible  <bruno@clisp.org>
24029
24030         New module libsigsegv.
24031         * modules/libsigsegv: New file.
24032         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
24033         modifications.
24034         * MODULES.html.sh (Signal handling): New section.
24035
24036 2008-07-14  Bruno Haible  <bruno@clisp.org>
24037
24038         * modules/unictype/ctype-* (Description): Add the word "function".
24039         Improves the resulting doc in MODULES.html.
24040
24041 2008-07-12  Ben Pfaff  <blp@gnu.org>
24042
24043         Add longlong module.
24044         * modules/longlong: New file.
24045
24046 2008-07-12  Bruno Haible  <bruno@clisp.org>
24047
24048         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
24049         to empty.
24050
24051 2008-07-10  Ben Pfaff  <blp@gnu.org>
24052
24053         Add isnan module.
24054         * doc/posix-functions/isnan.texi: Mention new module.
24055         * lib/math.in.h: Define isnan macro if we have decided to replace
24056         it.
24057         * m4/isnan.m4: New file.
24058         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
24059         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
24060         also.
24061         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
24062         redundancy.
24063         * m4/math_h.m4: Initialize and substitute variables for isnan
24064         module.
24065         * modules/isnan: New file.
24066         * modules/isnan-tests: New file.
24067         * modules/math: Add substitutions for new module.
24068         * tests/test-isnan.c: New file.
24069         * MODULES.html.sh: Mention new module.
24070
24071 2008-07-10  Ben Pfaff  <blp@gnu.org>
24072
24073         Add isnanf module.
24074         * lib/isnanf.m4: New file.
24075         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
24076         (gl_HAVE_ISNANF_IN_LIBM): New macro.
24077         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
24078         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
24079         * modules/isnanf: New file.
24080         * modules/isnanf-tests: New file.
24081         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
24082         files.
24083         * tests/test-isnanf-nolibm.c: factored most of its contents into
24084         new file tests/test-isnanf.h.
24085         * tests/test-isnanf.h: New file.
24086         * tests/test-isnanf.c: New file.
24087         * MODULES.html.sh: Mention new module.
24088         * doc/glibc-functions/isnanf.texi: Mention new module.
24089
24090 2008-07-10  Ben Pfaff  <blp@gnu.org>
24091
24092         Add isnand module.
24093         * lib/isnand.h: New file.
24094         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
24095         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
24096         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
24097         functionality also.
24098         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
24099         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
24100         (gl_HAVE_ISNAND_IN_LIBM): New macro.
24101         * modules/isnand: New file.
24102         * modules/isnand-tests: New file.
24103         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
24104         files.
24105         * tests/test-isnand-nolibm.c: factored most of its contents into
24106         new file tests/test-isnand.h.
24107         * tests/test-isnand.h: New file.
24108         * tests/test-isnand.c: New file.
24109         * MODULES.html.sh: Mention new module.
24110
24111 2008-07-10  Ben Pfaff  <blp@gnu.org>
24112
24113         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
24114         * lib/isnand.h: Rename lib/isnand-nolibm.h.
24115         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
24116         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
24117         * modules/isnanf-nolibm: Update references to renamed files.
24118         * modules/isnand-nolibm: Likewise.
24119         * modules/isnanf-nolibm-tests: Likewise.
24120         * modules/isnand-nolibm-tests: Likewise.
24121         * lib/frexp.c: Likewise.
24122         * lib/isfinite.c: Likewise.
24123         * lib/signbitd.c: Likewise.
24124         * lib/signbitf.c: Likewise.
24125         * lib/vasnprintf.c: Likewise.
24126         * tests/test-ceilf1.c: Likewise.
24127         * tests/test-ceilf2.c: Likewise.
24128         * tests/test-floorf1.c: Likewise.
24129         * tests/test-floorf2.c: Likewise.
24130         * tests/test-frexp.c: Likewise.
24131         * tests/test-round1.c: Likewise.
24132         * tests/test-round2.c: Likewise.
24133         * tests/test-roundf1.c: Likewise.
24134         * tests/test-strtod.c: Likewise.
24135         * tests/test-trunc1.c: Likewise.
24136         * tests/test-trunc2.c: Likewise.
24137         * tests/test-truncf1.c: Likewise.
24138         * tests/test-truncf2.c: Likewise.
24139         * NEWS: Mention the renamed header files.
24140
24141 2008-07-11  Jim Meyering  <meyering@redhat.com>
24142
24143         vc-list-files: make the last-resort awk code more portable
24144         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
24145         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
24146         does not support it.
24147
24148 2008-07-10  Eric Blake  <ebb9@byu.net>
24149
24150         Work with tar's bootstrap.
24151         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
24152         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
24153         an m4 comment.
24154
24155 2008-07-09  Jim Meyering  <meyering@redhat.com>
24156
24157         posix-shell.m4: fix typo that made this test malfunction
24158         * m4/posix-shell.m4: Remove capitalization in variable name.
24159
24160 2008-07-08  Bruno Haible  <bruno@clisp.org>
24161
24162         * m4/onceonly.m4: Update comments.
24163         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24164
24165 2008-07-04  Jim Meyering  <meyering@redhat.com>
24166
24167         * users.txt: Add vc-dwim.
24168         (bison, coreutils): Use the gitweb URL.
24169
24170 2008-07-03  Jim Meyering  <meyering@redhat.com>
24171
24172         * users.txt: Add libffcall.  From Sam Steingold.
24173
24174 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
24175
24176         getdate.y: do not ignore TZ with relative day, month or year offset
24177         * lib/getdate.y (get_date): Move the tz-handling block to follow the
24178         relative-date-handling, since otherwise, the latter would clobber the
24179         sole output (an updated Start value) of the tz-handling block.
24180         * tests/test-getdate.c: Tests for the fix
24181
24182 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24183
24184         Recognize 'foo_LIBRARIES += libgnu.a'.
24185         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
24186         makefile snippet has already specified an installation location,
24187         also using '+='.
24188
24189 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
24190
24191         getdate.y: factor out common actions
24192         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
24193         Use them in place of open-coded actions.
24194
24195 2008-07-01  Simon Josefsson  <simon@josefsson.org>
24196
24197         Add self-test for getdate module.
24198         * modules/getdate-tests: New file.
24199         * tests/test-getdate.c: New file.
24200
24201 2008-06-29  Bruno Haible  <bruno@clisp.org>
24202
24203         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
24204         .gitignore.
24205         Reported by Sylvain Beucler <beuc@beuc.net>.
24206
24207 2008-06-29  Bruno Haible  <bruno@clisp.org>
24208
24209         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
24210         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
24211
24212 2008-06-29  Bruno Haible  <bruno@clisp.org>
24213
24214         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
24215         EXTRA_DIST.
24216         Reported by Sylvain Beucler <beuc@beuc.net>.
24217
24218 2008-06-26  Jim Meyering  <meyering@redhat.com>
24219
24220         make several modules depend on the "open" module
24221         This provides slightly increased consistency when opening-for-write
24222         the name of a non-directory spelled with a trailing slash.
24223         * modules/chdir-safer: Likewise.
24224         * modules/chown: Likewise.
24225         * modules/clean-temp: Likewise.
24226         * modules/copy-file: Likewise.
24227         * modules/fchdir: Likewise.
24228         * modules/fcntl-safer: Likewise.
24229         * modules/pipe: Likewise.
24230         * modules/utime: Likewise.
24231         Prompted by Eric Blake and Bruno Haible.
24232
24233 2008-06-24  Andreas Schwab  <schwab@suse.de>
24234
24235         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
24236         literals can be used as initializers for global variables.
24237
24238 2008-06-23  Eric Blake  <ebb9@byu.net>
24239
24240         Make gnulib-cache.m4 easier to diff.
24241         * gnulib-tool (func_import): Allow newlines when reading cached
24242         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
24243
24244 2008-06-23  Bruno Haible  <bruno@clisp.org>
24245
24246         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
24247         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
24248         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
24249         m4/signalblocking.m4.
24250         (gl_PREREQ_SIGACTION): Don't invoke it.
24251         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
24252         gl_PREREQ_SIG_HANDLER_H.
24253         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24254         Don't check for sigaction here.
24255
24256 2008-06-23  Bruno Haible  <bruno@clisp.org>
24257
24258         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
24259         (install_handlers): Don't set the SA_RESETHAND flag.
24260
24261 2008-06-23  Bruno Haible  <bruno@clisp.org>
24262
24263         * m4/sigaction.m4: Comment fixes.
24264         * lib/signal.in.h: Likewise.
24265
24266 2008-06-23  Eric Blake  <ebb9@byu.net>
24267
24268         Fix typo.
24269         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
24270
24271         Avoid SA_ namespace.
24272         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
24273         Reported by Ralf Wildenhues.
24274
24275         Avoid test failure due to SA_RESTORER.
24276         * tests/test-sigaction.c (SA_MASK): New macro.
24277         (main): Avoid failing due to extension flags being set.
24278         Reported by Jim Meyering.
24279
24280         Revert use of sig-handler.h in sigprocmask.c.
24281         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
24282         it requires the existence of struct sigaction.
24283         * lib/sigprocmask.c (handler_t): Restore typedef.
24284         (rpl_signal, old_handlers): Use local type.
24285
24286 2008-06-22  Bruno Haible  <bruno@clisp.org>
24287
24288         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
24289         conditionally.
24290         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24291
24292 2008-06-22  Bruno Haible  <bruno@clisp.org>
24293
24294         * doc/posix-functions/siginterrupt.texi: Move note.
24295
24296         * lib/signal.in.h (SA_RESTART): New macro.
24297         * lib/sigaction.c: Update comment.
24298
24299         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
24300
24301         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
24302         (gl_PREREQ_SIGPROCMASK): Invoke it.
24303         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
24304
24305         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
24306
24307         * lib/sigprocmask.c: Update a comment.
24308
24309 2008-06-21  Eric Blake  <ebb9@byu.net>
24310
24311         Use sigaction module rather than signal().
24312         * modules/c-stack (Depends-on): Add sigaction.
24313         * modules/fatal-signal (Depends-on): Likewise.
24314         * modules/nanosleep (Depends-on): Likewise.
24315         * modules/sigprocmask (Files): Add sig-handler.h.
24316         * modules/sigaction (Files): Likewise.
24317         * lib/sig-handler.h (get_handler): New file, suggested by Paul
24318         Eggert.
24319         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
24320         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
24321         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
24322         (init_fatal_signals): Likewise.
24323         * lib/nanosleep.c (rpl_nanosleep): Likewise.
24324         (siginterrupt): Delete fallback.
24325         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
24326         instead.
24327         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
24328         siginterrupt.
24329
24330         New module sigaction, for mingw.
24331         * modules/sigaction: New module...
24332         * modules/sigaction-tests: ...and its test.
24333         * m4/sigaction.m4: New file.
24334         * lib/sigaction.c: Likewise.
24335         * tests/test-sigaction.c: Likewise.
24336         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
24337         * modules/signal (Makefile.am): Likewise.
24338         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
24339         needed.
24340         * doc/posix-headers/signal.texi (signal.h): Mention provided
24341         types.
24342         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
24343         that sigaction is preferable.
24344         * doc/posix-functions/sigaction.texi (sigaction): Mention new
24345         module.
24346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
24347         sigaction.
24348
24349         Improve robustness of sigprocmask by overriding signal.
24350         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
24351         is in use.
24352         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
24353         (SIGKILL, SIGSTOP): Provide fallbacks.
24354         (rpl_signal): Implement.
24355         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
24356         signal can be called inside handlers.
24357
24358         Fix nanosleep module on mingw.
24359         * modules/nanosleep (Depends-on): Add sys_select.
24360         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
24361
24362         Fix licensing of sigprocmask.
24363         * modules/raise (License): Relicense as LGPL.
24364
24365 2008-06-21  Bruno Haible  <bruno@clisp.org>
24366
24367         * lib/propername.c (proper_name_utf8): Don't use the transliterated
24368         result if it contains question marks.
24369         Reported by Michael Geng <linux@michaelgeng.de>.
24370
24371 2008-06-19  Bruno Haible  <bruno@clisp.org>
24372
24373         Fix CVS-ism.
24374         * doc/gnulib.texi: Include updated-stamp.texi.
24375         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
24376         (updated-stamp.texi): New rule.
24377         (gnulib.info): Depend on it.
24378         * doc/.gitignore: Add updated-stamp.texi.
24379         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
24380
24381 2008-06-19  Bruno Haible  <bruno@clisp.org>
24382
24383         * doc/Makefile (gnulib.info): Update and simplify dependencies.
24384         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24385
24386 2008-06-19  Eric Blake  <ebb9@byu.net>
24387
24388         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
24389         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
24390         Reported by Stepan Kasal.
24391
24392 2008-06-18  Bruno Haible  <bruno@clisp.org>
24393
24394         * lib/fatal-signal.c (init_fatal_signals): Add comment.
24395         Reported by Eric Blake.
24396
24397 2008-06-18  Eric Blake  <ebb9@byu.net>
24398
24399         Work around cygwin 1.5.25 strsignal bug.
24400         * tests/test-strsignal.c: Allow for const char *.
24401         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
24402
24403 2008-06-18  Simon Josefsson  <simon@josefsson.org>
24404
24405         * users.txt: Update URL to article and add author/date
24406         information.
24407
24408 2008-06-17  Bruno Haible  <bruno@clisp.org>
24409
24410         New macro gl_DISABLE_THREADS.
24411         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
24412         if the user did not pass --enable-threads or --disable-threads option.
24413         (gl_DISABLE_THREADS): New macro.
24414         Reported by Eric Blake <ebb9@byu.net>.
24415
24416 2008-06-17  Bruno Haible  <bruno@clisp.org>
24417
24418         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
24419         when the macro ignores it.
24420         Based on a patch by Eric Blake <ebb9@byu.net>.
24421
24422 2008-06-17  Bruno Haible  <bruno@clisp.org>
24423
24424         * modules/tls (License): Change to LGPLv2+.
24425         Reported by Eric Blake.
24426
24427 2008-06-17  Eric Blake  <ebb9@byu.net>
24428
24429         Simplify c-stack prerequisites.
24430         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
24431         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
24432         no longer requires <ucontext.h> to exist.  Optimize setrlimit
24433         check.
24434         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
24435         <sys/resource.h>.
24436
24437         Move c-stack test into testsuite.
24438         * modules/c-stack-tests: New file.
24439         * lib/c-stack.c [DEBUG]: Move test program...
24440         * tests/test-c-stack.c: ...into this new file.  Skip rather than
24441         fail test if sigaltstack is lacking.
24442         * tests/test-c-stack.sh: New driver file.
24443
24444 2008-06-16  Eric Blake  <ebb9@byu.net>
24445
24446         Use raise module consistently.
24447         * modules/fatal-signal (Depends-on): Add raise.
24448         * modules/sigprocmask (Depends-on): Likewise.
24449         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
24450         * lib/sigprocmask.c (sigprocmask): Likewise.
24451         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
24452         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
24453
24454         Fix compliance bug in sigpending.
24455         * lib/sigprocmask.c (sigpending): Return pending array via
24456         parameter, not return value.
24457
24458 2008-06-14  Eric Blake  <ebb9@byu.net>
24459
24460         Improve obstack-printf test code.
24461         * tests/test-obstack-printf.c (test_function): Fix comment, and
24462         simplify usage of obstack_* in macros.  Add a test for coverage.
24463         Reported by Bruno Haible.
24464
24465 2008-06-14  Bruno Haible  <bruno@clisp.org>
24466
24467         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
24468         array size as a constant, not as a const variable.
24469         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
24470         AC_USE_SYSTEM_EXTENSIONS.
24471         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
24472         Test whether the obstack_printf function actually exists.
24473         * modules/obstack-printf (Depends-on): Add extensions.
24474         (Include): Remove obstack.h.
24475         * modules/obstack-printf-posix (Depends-on): Add extensions.
24476         (Include): Remove obstack.h.
24477
24478 2008-06-13  Eric Blake  <ebb9@byu.net>
24479
24480         Add obstack-printf and obstack-printf-posix modules.
24481         * modules/obstack-printf: New file.
24482         * modules/obstack-printf-posix: Likewise.
24483         * MODULES.html.sh (Misc): Mention them.
24484         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24485         Likewise.
24486         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24487         Likewise.
24488         * modules/stdio (Makefile.am): Accomodate new modules.
24489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24490         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
24491         Declare.
24492         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
24493         functions.
24494         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
24495         (gl_REPLACE_OBSTACK_PRINTF): New macros
24496         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
24497         * tests/test-obstack-printf.c: New file.
24498         * modules/obstack-printf-tests: Likewise.
24499         * modules/obstack-printf-posix-tests: Likewise.
24500
24501 2008-06-11  Bruno Haible  <bruno@clisp.org>
24502
24503         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
24504         * lib/open.c: Include errno.h.
24505         (open): Fail when attempting to write to a file that has a trailing
24506         slash.
24507         * tests/test-open.c (main): Test against trailing slash bug.
24508         * doc/posix-functions/open.texi: Mention the trailing slash bug.
24509
24510 2008-06-10  Bruno Haible  <bruno@clisp.org>
24511
24512         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
24513         for $? to work inside the trap command, with various /bin/sh-s.
24514         * tests/test-vc-list-files-cvs.sh: Likewise.
24515
24516 2008-06-10  Bruno Haible  <bruno@clisp.org>
24517
24518         * lib/acl-internal.h: Don't include gettext.h here.
24519         * lib/set-mode-acl.c: Include gettext.h here.
24520         * lib/copy-acl.c: Likewise.
24521
24522 2008-06-10  Bruno Haible  <bruno@clisp.org>
24523
24524         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
24525         * lib/wait-process.c (wait_subprocess): Likewise.
24526         * lib/execute.h (execute): Add termsigp argument.
24527         * lib/execute.c (execute): Likewise.
24528         * lib/csharpcomp.c (compile_csharp_using_pnet,
24529         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
24530         * lib/csharpexec.c (execute_csharp_using_pnet,
24531         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
24532         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
24533         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
24534         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
24535         is_jikes_present): Update.
24536         * lib/javaexec.c (execute_java_class): Update.
24537         * lib/javaversion.c (execute_and_read_line): Update.
24538         * NEWS: Document the changes.
24539         Reported by Eric Blake.
24540
24541 2008-06-10  Eric Blake  <ebb9@byu.net>
24542
24543         Add missing include.
24544         * tests/test-strstr.c (includes): Add <signal.h>.
24545         * tests/test-strcasestr.c (includes): Likewise.
24546         * tests/test-memmem.c (includes): Likewise.
24547
24548 2008-06-10  Bruno Haible  <bruno@clisp.org>
24549
24550         * lib/wait-process.c (wait_subprocess): Add an assertion.
24551
24552 2008-06-10  Bruno Haible  <bruno@clisp.org>
24553
24554         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
24555
24556 2008-06-10  Bruno Haible  <bruno@clisp.org>
24557
24558         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
24559         using alarm().
24560         * tests/test-strcasestr.c (main): Likewise.
24561         * tests/test-strstr.c (main): Likewise.
24562
24563 2008-06-09  Bruno Haible  <bruno@clisp.org>
24564
24565         Work around the Solaris 10 ACE ACLs ABI change.
24566         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
24567         declare if ACL_NO_TRIVIAL is present.
24568         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
24569         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
24570         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
24571         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
24572         define if ACL_NO_TRIVIAL is present.
24573         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
24574         and use the current ABI.
24575         (file_has_acl): Use same #if condition as elsewhere.
24576         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
24577         in use, and use the current ABI.
24578         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
24579         Reported by Jim Meyering.
24580
24581 2008-06-09  Eric Blake  <ebb9@byu.net>
24582
24583         Work around environments that (stupidly) ignore SIGALRM.
24584         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
24585         before using alarm().
24586         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24587         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24588         Reported by Ian Beckwith <ianb@erislabs.net>.
24589
24590         Produce autobuild blurb earlier in log.
24591         * modules/autobuild (configure.ac-early): Move AB_INIT here.
24592
24593 2008-06-09  Jim Meyering  <meyering@redhat.com>
24594         and Ondřej Vašík  <ovasik@redhat.com>
24595
24596         utimens.c: correct kernel bug work-around
24597         Ondřej Vašík found that the invalid return value of 280 indicates
24598         failure, not success, and the kernel bug we're trying to work
24599         around affects not just the utimensat call, but also the fallback
24600         futimens call.
24601         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
24602         not success.
24603         [HAVE_FUTIMENS]: Use the same work-around, here.
24604
24605 2008-06-09  Jim Meyering  <meyering@redhat.com>
24606
24607         add more guards around definition of ACE_-related code
24608         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
24609         ALLOW and ACE_OWNER are also defined.
24610
24611 2008-06-08  Bruno Haible  <bruno@clisp.org>
24612
24613         * lib/acl-internal.h: Add me as co-author.
24614         * lib/file-has-acl.c: Likewise.
24615         * lib/set-mode-acl.c: Likewise.
24616         * lib/copy-acl.c: Likewise.
24617
24618 2008-06-08  Bruno Haible  <bruno@clisp.org>
24619
24620         Add support for AIX ACLs.
24621         * lib/acl-internal.h (acl_nontrivial): New declaration.
24622         * lib/file-has-acl.c (acl_nontrivial): New function.
24623         (file_has_acl): Add implementation using AIX 4 ACL API.
24624         * lib/set-mode-acl.c (qset_acl): Likewise.
24625         * lib/copy-acl.c (qcopy_acl): Likewise.
24626
24627 2008-06-08  Bruno Haible  <bruno@clisp.org>
24628
24629         Add support for HP-UX ACLs.
24630         * lib/acl-internal.h (acl_nontrivial): New declaration.
24631         * lib/file-has-acl.c (acl_nontrivial): New function.
24632         (file_has_acl): Add implementation using HP-UX 11 ACL API.
24633         * lib/set-mode-acl.c (qset_acl): Likewise.
24634         * lib/copy-acl.c (qcopy_acl): Likewise.
24635
24636 2008-06-08  Bruno Haible  <bruno@clisp.org>
24637
24638         Add support for Cygwin ACLs.
24639         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
24640         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
24641         the chmod_or_fchmod call.
24642         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
24643
24644 2008-06-08  Bruno Haible  <bruno@clisp.org>
24645
24646         Fix bug with setuid modes in Solaris 10+ code.
24647         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
24648         succeeded, when the mode contains some special bits.
24649
24650 2008-06-08  Bruno Haible  <bruno@clisp.org>
24651
24652         Add support for Solaris 7..10 ACLs.
24653         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
24654         declarations.
24655         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
24656         functions.
24657         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
24658         * lib/set-mode-acl.c (qset_acl): Likewise.
24659         * lib/copy-acl.c (qcopy_acl): Likewise.
24660
24661 2008-06-08  Bruno Haible  <bruno@clisp.org>
24662
24663         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
24664         declaration.
24665         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
24666         (acl_access_nontrivial): Remove MacOS X case.
24667         (file_has_acl): Use acl_extended_nontrivial.
24668         * lib/copy-acl.c (qcopy_acl): Likewise.
24669
24670 2008-06-08  Bruno Haible  <bruno@clisp.org>
24671
24672         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
24673
24674 2008-06-08  Jim Meyering  <meyering@redhat.com>
24675
24676         * modules/acl (Maintainer): Add Bruno Haible.
24677
24678 2008-06-07  Bruno Haible  <bruno@clisp.org>
24679
24680         Improve support for Tru64 ACLs.
24681         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
24682         ACL on OSF/1.
24683
24684 2008-06-07  Bruno Haible  <bruno@clisp.org>
24685
24686         Add support for MacOS X ACLs.
24687         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
24688         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
24689         * lib/set-mode-acl.c (qset_acl): Likewise.
24690         * lib/copy-acl.c (qcopy_acl): Likewise.
24691
24692 2008-06-07  Bruno Haible  <bruno@clisp.org>
24693
24694         Fix memory leak introduced on 2008-05-22.
24695         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
24696         use.
24697
24698 2008-06-07  Bruno Haible  <bruno@clisp.org>
24699
24700         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
24701         to construct an empty ACL.
24702
24703 2008-06-07  Bruno Haible  <bruno@clisp.org>
24704
24705         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
24706         precisely.
24707         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
24708
24709 2008-06-07  Bruno Haible  <bruno@clisp.org>
24710
24711         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
24712         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
24713
24714 2008-06-07  Bruno Haible  <bruno@clisp.org>
24715
24716         * doc/posix-functions/_setjmp.texi: Explain the use of this function
24717         regardless of POSIX.
24718         * doc/posix-functions/_longjmp.texi: Likewise.
24719         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
24720         SystemV platform in this case.
24721
24722 2008-06-06  Eric Blake  <ebb9@byu.net>
24723
24724         Document abort() bugs.
24725         * doc/posix-functions/abort.texi (abort): Mention anomalies.
24726
24727         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
24728         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
24729         sigsetjmp.
24730         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
24731         siglongjmp, but only as a macro.
24732         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
24733         is obsolete.
24734         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
24735
24736         Tweak documentation to cover cygwin argz bugs.
24737         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
24738         argz bug fix; no code change needed since no cygwin releases
24739         occurred between the last fix and the bug being tested.
24740         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
24741         module and recently fixed cygwin bugs.
24742         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
24743         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
24744         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
24745         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
24746         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
24747         Likewise.
24748         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
24749         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
24750         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
24751         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
24752         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
24753         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
24754         Likewise.
24755
24756         Avoid gcc warning on cygwin.
24757         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
24758         !ACL_NO_TRIVIAL]: Avoid unused variable.
24759
24760 2008-06-05  Eric Blake  <ebb9@byu.net>
24761
24762         Be tolerant of UNKNOWN version in gnulib-tool test dir.
24763         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
24764         git-version-gen fails to come up with a version.
24765         Reported by Simon Josefsson.
24766
24767 2008-06-05  Jim Meyering  <meyering@redhat.com>
24768             Paul Eggert  <eggert@cs.ucla.edu>
24769
24770         utimens.c: work around a probable Linux kernel bug
24771         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
24772         appears to be a kernel bug that causes utimensat to return 280
24773         instead of 0, indicating success.
24774
24775 2008-06-04  Bruno Haible  <bruno@clisp.org>
24776
24777         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
24778         2008-06-01 commit.
24779
24780 2008-06-04  Bruno Haible  <bruno@clisp.org>
24781
24782         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
24783         * lib/file-has-acl.c (acl_access_nontrivial): New function.
24784         (file_has_acl): Use it. Save errno afterwards.
24785         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
24786
24787 2008-06-03  Bruno Haible  <bruno@clisp.org>
24788
24789         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
24790         draft code. Simplify #ifs.
24791         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
24792         Put Solaris code after POSIX-draft code. Fix comments regarding
24793         Solaris 10, HP-UX. Mention Cygwin.
24794         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
24795
24796 2008-06-03  Eric Blake  <ebb9@byu.net>
24797
24798         Provide fallback for older kernels.
24799         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
24800         Provide runtime fallback if kernel lacks support.
24801         Reported by Mike Frysinger.
24802
24803 2008-06-02  Bruno Haible  <bruno@clisp.org>
24804
24805         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
24806         it exists.
24807
24808 2008-06-02  Bruno Haible  <bruno@clisp.org>
24809
24810         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
24811         * lib/copy-acl.c (qcopy_acl): Update comment.
24812
24813 2008-06-02  Bruno Haible  <bruno@clisp.org>
24814
24815         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
24816         like ACL APIs.
24817
24818 2008-06-02  Bruno Haible  <bruno@clisp.org>
24819
24820         * tests/test-file-has-acl.sh: Use different code for Cygwin.
24821         * tests/test-set-mode-acl.sh: Likewise.
24822         * tests/test-copy-acl.sh: Likewise.
24823         * tests/test-copy-file.sh: Likewise.
24824
24825 2008-06-02  Bruno Haible  <bruno@clisp.org>
24826
24827         * tests/test-file-has-acl.sh: Remove unused code.
24828
24829 2008-06-01  Bruno Haible  <bruno@clisp.org>
24830
24831         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
24832         (copy_acl): Just a wrapper around qcopy_acl that emits the error
24833         messages.
24834         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
24835
24836 2008-06-01  Bruno Haible  <bruno@clisp.org>
24837
24838         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
24839         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
24840         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
24841         APIs.
24842         * modules/acl-tests (configure.ac): Remove tests now contained in
24843         m4/acl.m4.
24844
24845 2008-06-02  Jim Meyering  <meyering@redhat.com>
24846
24847         announce-gen: use a better key-server host name
24848         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
24849         it may be more consistently reliable.  Suggested by Werner Koch
24850         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
24851
24852 2008-06-01  Bruno Haible  <bruno@clisp.org>
24853
24854         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
24855         Reported by Voroskoi Andras <voroskoi@gmail.com>.
24856
24857 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
24858
24859         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
24860
24861 2008-06-01  Bruno Haible  <bruno@clisp.org>
24862
24863         New ACL tests.
24864         * tests/test-file-has-acl.sh: New file.
24865         * tests/test-file-has-acl.c: New file.
24866         * tests/test-set-mode-acl.sh: New file.
24867         * tests/test-set-mode-acl.c: New file.
24868         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
24869         * tests/test-copy-acl.c: New file.
24870         * modules/acl-tests: New file, based on modules/copy-file-tests.
24871         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
24872         (Depends-on): Add acl-tests.
24873         (configure.ac): Remove checks.
24874         (Makefile.am): Don't create test-sameacls program here any more.
24875
24876 2008-06-01  Bruno Haible  <bruno@clisp.org>
24877
24878         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
24879         * tests/test-sameacls.c: Include progname.h.
24880         (main): Invoke set_program_name. Portability fixes for MacOS X,
24881         Solaris, HP-UX.
24882
24883 2008-06-01  Bruno Haible  <bruno@clisp.org>
24884
24885         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
24886         function.
24887         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
24888
24889 2008-06-01  Bruno Haible  <bruno@clisp.org>
24890
24891         * modules/rpmatch (Depends-on): Add strdup.
24892
24893 2008-06-01  Bruno Haible  <bruno@clisp.org>
24894
24895         * lib/pipe.c: Include unistd-safer.h.
24896         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
24897         * modules/pipe (Depends-on): Add unistd-safer.
24898
24899 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24900
24901         * modules/autobuild (configure.ac): Call AB_INIT.
24902
24903 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24904
24905         * tests/test-getaddrinfo.c: Don't print debug messages by default.
24906         Suggested by Bruno Haible <bruno@clisp.org>.
24907
24908 2008-05-30  Simon Josefsson  <simon@josefsson.org>
24909
24910         * tests/test-base64.c: Cast size_t to unsigned long when invoking
24911         printf.  Use %lu instead of %d.  Reported by Bruno Haible
24912         <bruno@clisp.org>.
24913
24914 2008-05-29  Eric Blake  <ebb9@byu.net>
24915
24916         Prefer new POSIX 200x interfaces over futimesat.
24917         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
24918         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
24919         when available.
24920         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
24921
24922 2008-05-28  Bruno Haible  <bruno@clisp.org>
24923
24924         * modules/stpcpy (License): Change to LGPLv2+.
24925         Requested by David Lutterkort <dlutter@redhat.com>.
24926
24927 2008-05-27  Bruno Haible  <bruno@clisp.org>
24928
24929         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
24930         current mingw.
24931         Reported by Jose E. Marchesi <jemarch@gnu.org>.
24932
24933 2008-05-27  Bruno Haible  <bruno@clisp.org>
24934
24935         * modules/iconv_open (Link): New section, from module 'iconv'.
24936         * modules/striconv (Link): Likewise.
24937         * modules/striconveh (Link): Likewise.
24938         * modules/xstriconv (Link): Likewise.
24939         * modules/unicodeio (Link): Likewise.
24940         * modules/propername (Link): Likewise.
24941         Reported by Jim Meyering.
24942
24943 2008-05-26  Jim Meyering  <meyering@redhat.com>
24944
24945         sha256: do not artificially restrict buffer length to be < 2^32
24946         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
24947         uint32_t to size_t.
24948         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
24949         to match.
24950
24951         avoid unaligned access errors, e.g., on sparc
24952         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
24953         direct access through a possibly-unaligned uint64* pointer.
24954         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
24955         direct access through a possibly-unaligned uint32* pointer.
24956         Prompted by this patch from Tom "spot" Callaway:
24957         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
24958
24959         sha512.c: fix typo in comment
24960         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
24961
24962 2008-05-25  Bruno Haible  <bruno@clisp.org>
24963
24964         * lib/set-mode-acl.c: Renamed from lib/acl.c.
24965         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
24966         (Makefile.am): Update lib_SOURCES.
24967
24968 2008-05-25  Bruno Haible  <bruno@clisp.org>
24969
24970         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
24971
24972 2008-05-25  Jim Meyering  <meyering@redhat.com>
24973
24974         useless-if-before-free: freed expr may have white-space differences
24975         * build-aux/useless-if-before-free: Recognize cases in which the
24976         freed expression differs from the tested one in embedded white
24977         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
24978         $1 was used, so we can't make any regexp shy.  Improved tests now
24979         detect this.
24980
24981         useless-if-before-free: accept white space in the expression.
24982         * build-aux/useless-if-before-free: For now, any white space
24983         in the expression must be identical in the free argument.
24984
24985         useless-if-before-free: efficiency tweak
24986         * build-aux/useless-if-before-free: Make the expression-matching
24987         regexp "shy".
24988         Make the *outer* regexp shy, not the expr-matching one.
24989
24990         update code-in-comment to accept cast of free arg
24991         * build-aux/useless-if-before-free: Update regexp.
24992
24993 2008-05-25  Bruno Haible  <bruno@clisp.org>
24994
24995         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
24996         * modules/copy-file-tests (Files, Makefile.am): Update.
24997         * tests/test-copy-file.c (func_test_copy): Update.
24998
24999 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
25000
25001         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
25002
25003 2008-05-23  Bruno Haible  <bruno@clisp.org>
25004
25005         Improve support for ACLs on OSF/1.
25006         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
25007         Remove fallback for unknown flavors of ACLs.
25008
25009 2008-05-22  Bruno Haible  <bruno@clisp.org>
25010
25011         Add support for ACLs on OSF/1.
25012         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
25013         replacements.
25014         (acl_free_text): New macro fallback.
25015         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
25016         acl_free.
25017         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
25018         acl_free_text function. Require AC_C_INLINE.
25019
25020 2008-05-22  Bruno Haible  <bruno@clisp.org>
25021
25022         Make copy_acl work on MacOS X 10.5.
25023         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
25024         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
25025         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
25026         If MODE_INSIDE_ACL, don't assume that every system has the same text
25027         representation for ACLs as FreeBSD.
25028         * lib/copy-acl.c (copy_acl): Add support for platforms with
25029         !MODE_INSIDE_ACL.
25030         * lib/file-has-acl.c (file_has_acl): Likewise.
25031         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
25032         FreeBSD, MacOS X, or IRIX, respectively.
25033
25034 2008-05-22  Bruno Haible  <bruno@clisp.org>
25035
25036         * lib/acl.h: Don't include <sys/acl.h>.
25037         (GETACLCNT): Move fallback to lib/acl-internal.h.
25038         * lib/acl-internal.h: Include <sys/acl.h> here.
25039         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
25040
25041 2008-05-22  Bruno Haible  <bruno@clisp.org>
25042
25043         Split off copy_acl function to separate file.
25044         * lib/copy-acl.c: New file, extracted from lib/acl.c.
25045         * lib/acl.c (copy_acl): Moved function to separate file.
25046         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
25047         * modules/acl (Files): Add lib/copy-acl.c.
25048         (Makefiles.am): Augment lib_SOURCES.
25049
25050 2008-05-22  Bruno Haible  <bruno@clisp.org>
25051
25052         * modules/copy-file-tests: New file.
25053         * tests/test-copy-file.sh: New file.
25054         * tests/test-copy-file.c: New file.
25055         * tests/test-copy-file-sameacls.c: New file.
25056
25057 2008-05-22  Eric Blake  <ebb9@byu.net>
25058
25059         Avoid gcc warning.
25060         * tests/test-memcmp.c (main): Pass NULL indirectly.
25061
25062 2008-05-21  Bruno Haible  <bruno@clisp.org>
25063
25064         Add reference doc about ACLs.
25065         * doc/acl-resources.txt: New file.
25066         * doc/acl-cygwin.txt: New file.
25067
25068 2008-05-21  Bruno Haible  <bruno@clisp.org>
25069
25070         Avoid one more warning from gcc.
25071         * lib/vasnprintf.c (IF_LINT): Update comments.
25072         (VASNPRINTF): Use it also for the 'prefix' array initializer.
25073
25074 2008-05-21  Jim Meyering  <meyering@redhat.com>
25075
25076         avoid a warning from gcc
25077         * lib/vasnprintf.c (IF_LINT): Define.
25078         (scale10_round_decimal_long_double):
25079         Use it to avoid a "may be used uninitialized" warning.
25080         (scale10_round_decimal_double): Likewise.
25081
25082 2008-05-21  Simon Josefsson  <simon@josefsson.org>
25083
25084         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
25085         declared.
25086
25087 2008-05-20  Bruno Haible  <bruno@clisp.org>
25088
25089         * tests/test-memcmp.c (main): Test also the sign of the result. Test
25090         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
25091
25092 2008-05-20  Simon Josefsson  <simon@josefsson.org>
25093
25094         * modules/memcmp-tests: New file.
25095         * tests/test-memcmp.c: New file.
25096
25097 2008-05-19  Bruno Haible  <bruno@clisp.org>
25098
25099         * modules/propername (Notice, configure.ac): Put quoted "..." into
25100         --keyword option.
25101         * lib/propername.h: Update comments accordingly.
25102         Reported by Eric Blake.
25103
25104 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
25105
25106         * modules/getpass-gnu (Depends-on): Add fseeko.
25107
25108 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25109
25110         * modules/base64-tests: New file.
25111
25112 2008-05-19  Bo Borgerson <gigabo@gmail.com>
25113
25114         * lib/base64.c (base64_decode_ctx): If a decode context structure
25115         was passed in use it to ignore newlines.  If a context structure
25116         was _not_ passed in, continue to treat newlines as garbage (this
25117         is the historical behavior).  Formerly base64_decode.
25118         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25119         takes a decode context structure.
25120         * lib/base64.h (base64_decode): Macro for four-argument calls.
25121         (base64_decode_alloc): Likewise.
25122         * lib/base64.c (base64_decode_ctx): If a decode context structure
25123         was passed in use it to ignore newlines.  If a context structure
25124         was _not_ passed in, continue to treat newlines as garbage (this
25125         is the historical behavior).  Formerly base64_decode.
25126         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
25127         takes a decode context structure.
25128         * lib/base64.h (base64_decode): Macro for four-argument calls.
25129         (base64_decode_alloc): Likewise.
25130
25131 2008-05-19  Jim Meyering  <meyering@redhat.com>
25132
25133         avoid a warning from gcc
25134         * lib/trim.c (IF_LINT): Define.
25135         (trim2): Use it to avoid a "may be used uninitialized" warning.
25136
25137         Fix doc typo.
25138         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
25139
25140 2008-05-19  Bruno Haible  <bruno@clisp.org>
25141
25142         * doc/glibc-functions/getpass.texi: Document limits of other
25143         implementations.
25144
25145 2008-05-19  Simon Josefsson  <simon@josefsson.org>
25146             Bruno Haible <bruno@clisp.org>
25147
25148         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
25149
25150 2008-05-18  Bruno Haible  <bruno@clisp.org>
25151
25152         * modules/propername: New file, from GNU gettext.
25153         * lib/propername.h: New file, from GNU gettext.
25154         * lib/propername.c: New file, from GNU gettext.
25155         * MODULES.html.sh (Internationalization functions): Add propername.
25156
25157 2008-05-16  Jim Meyering  <meyering@redhat.com>
25158             Bruno Haible  <bruno@clisp.org>
25159
25160         Avoid some warnings from "gcc -Wshadow".
25161         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
25162
25163 2008-05-15  Eric Blake  <ebb9@byu.net>
25164
25165         Extend previous patch to cygwin 1.7.0.
25166         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
25167         fast implementation in cygwin >= 1.7.0.
25168         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25170
25171 2008-05-15  Bruno Haible  <bruno@clisp.org>
25172
25173         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
25174         implementation in glibc >= 2.9.
25175         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25176         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25177
25178 2008-05-15  Bruno Haible  <bruno@clisp.org>
25179
25180         * MODULES.html.sh (Internationalization functions): Remove linebreak.
25181         (Unicode string functions): Add unilbrk/*.
25182         Reported by Karl Berry.
25183
25184 2008-05-15  Eric Blake  <ebb9@byu.net>
25185
25186         Fix violation of <stdbool.h> replacement in regex.
25187         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
25188         * lib/regexec.c (re_search_internal): Likewise.
25189         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
25190
25191 2008-05-15  Jim Meyering  <meyering@redhat.com>
25192
25193         avoid distracting test output when git or cvs is not found
25194         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
25195         * tests/test-vc-list-files-git.sh: Likewise.
25196
25197 2008-05-15  Eric Blake  <ebb9@byu.net>
25198
25199         Glibc finally accepted the memmem speedup code, bugzilla #5514.
25200         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
25201         glibc version.
25202         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25203         * doc/posix-functions/strstr.texi (strstr): Likewise.
25204         * lib/str-two-way.h (MAX): Sychronize with glibc.
25205
25206 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
25207
25208         * lib/regcomp.c (optimize_utf8): Add a note on why we test
25209         opr.ctx_type.
25210         (calc_first): Initialize constraint field.
25211         (duplicate_node_closure): Use it instead of special casing ANCHORS.
25212         Fix grammar.
25213         (duplicate_node): Merge constraint field for all node types.
25214         (calc_eclosure_iter): Look at constraint field for all node types.
25215         * lib/regex_internal.c (create_cd_newstate): Don't look at
25216         opr.ctx_type.
25217
25218 2008-05-14  Bruno Haible  <bruno@clisp.org>
25219
25220         Help GCC to do better code generation.
25221         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
25222         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25223         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
25224         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
25225         Declare with attribute 'malloc' if supported.
25226
25227 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
25228
25229         use "echo STR|wc -c" rather than unportable "expr length STR"
25230         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
25231         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
25232
25233 2008-05-14  Jim Meyering  <meyering@redhat.com>
25234
25235         use dd ibs=$n count=1 ... rather than less-portable head -c$n
25236         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
25237         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
25238         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
25239         via Collin Lasse.
25240
25241 2008-05-14  Eric Blake  <ebb9@byu.net>
25242
25243         Avoid quadratic growth in gl_LIBSOURCES.
25244         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
25245         Suggested by Bruno Haible.
25246
25247         Test xmemdup0.
25248         * modules/xmemdup0-tests: New file.
25249         * tests/test-xmemdup0.c: Likewise.
25250
25251 2008-05-13  Eric Blake  <ebb9@byu.net>
25252
25253         Split xmemdup0 into its own module.
25254         * modules/xmemdup0: New file.
25255         * lib/xmemdup0.h: Likewise.
25256         * lib/xmemdup0.c: Likewise.
25257         * MODULES.html.sh (Memory management functions): Add xmemdup0.
25258         * lib/xalloc.h (xmemdup0): Remove.
25259         * lib/xmalloc.c (xmemdup0): Likewise.
25260
25261 2008-05-13  Eric Blake  <ebb9@byu.net>
25262             Bruno Haible  <bruno@clisp.org>
25263
25264         Reduce number of forks required during autoconf.
25265         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
25266         and gl_LIBSOURCES_DIR.
25267         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
25268         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
25269         m4_syscmd per file.
25270         <m4_foreach_w>: Move...
25271         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
25272
25273 2008-05-13  Eric Blake  <ebb9@byu.net>
25274
25275         * gnulib-tool: Fix various comment typos.
25276
25277 2008-05-12  Bruno Haible  <bruno@clisp.org>
25278
25279         Tailor the linebreaking algorithm.
25280         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
25281
25282 2008-05-12  Bruno Haible  <bruno@clisp.org>
25283
25284         Update to Unicode 5.0.0.
25285         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25286         LBP_JV, LBP_JT. Redistribute values.
25287         (unilbrk_table): Change size.
25288         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
25289         Unicode TR#14 rev. 22.
25290         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
25291         LBP_JV, LBP_JT. Redistribute values.
25292         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
25293         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
25294         Update.
25295         * lib/unilbrk/lbrkprop1.h: Regenerated.
25296         * lib/unilbrk/lbrkprop2.h: Regenerated.
25297         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
25298         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
25299         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
25300         Likewise.
25301         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
25302         Likewise.
25303         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
25304         result.
25305         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25306         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25307         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25308         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
25309         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
25310         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
25311
25312 2008-05-11  Bruno Haible  <bruno@clisp.org>
25313
25314         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
25315
25316 2008-05-11  Bruno Haible  <bruno@clisp.org>
25317
25318         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
25319         * modules/unilbrk/gen-lbrk: New file.
25320
25321 2008-05-11  Bruno Haible  <bruno@clisp.org>
25322
25323         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
25324         * m4/sha512.m4 (gl_SHA512): Likewise.
25325
25326 2008-05-11  Jim Meyering  <meyering@redhat.com>
25327
25328         New modules: crypto/sha256, crypto/sha512 (from coreutils)
25329         * modules/crypto/sha256: New file.
25330         * modules/crypto/sha512: Likewise.
25331         * lib/sha256.c: Likewise.
25332         * lib/sha256.h: Likewise.
25333         * lib/sha512.c: Likewise.
25334         * lib/sha512.h: Likewise.
25335         * lib/u64.h: Likewise.
25336         * m4/sha256.m4: Likewise.
25337         * m4/sha512.m4: Likewise.
25338         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
25339
25340 2008-05-10  Bruno Haible  <bruno@clisp.org>
25341
25342         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
25343         (Input/Output <stdio.h>): Add xprintf.
25344         (Signal handling <signal.h>): Add strsignal.
25345         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
25346         (Core language properties): Add func.
25347         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
25348         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
25349         strings.
25350         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
25351         (Input/output): New section.
25352         (File system functions): Add openat-die, stat-macros.
25353         (Networking functions): Add sockets.
25354         (Unicode string functions): Add unictype/*.
25355         (Support for building libraries and executables): Add gperf.
25356         (Support for building documentation): Add agpl-3.0.
25357         (Misc): Add nocrash.
25358
25359 2008-05-10  Bruno Haible  <bruno@clisp.org>
25360
25361         * modules/unictype/gen-ctype: New file.
25362
25363 2008-05-10  Jim Meyering  <meyering@redhat.com>
25364
25365         Make chdir-safer.c more efficient on a system with no symlinks.
25366         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
25367         also if ELOOP is zero.  Suggested by Bruno Haible.
25368
25369         Make chdir-safer.c slightly safer.
25370         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
25371         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
25372
25373         Avoid compile failure on systems without ELOOP (like mingw).
25374         * lib/chdir-safer.c (ELOOP): Define if not already defined.
25375         Reported by Bruno Haible.
25376
25377 2008-05-10  Bruno Haible  <bruno@clisp.org>
25378
25379         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
25380         (is_utf8_encoding): Use a case-insensitive comparison.
25381         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
25382         streq.
25383
25384 2008-05-10  Bruno Haible  <bruno@clisp.org>
25385
25386         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
25387         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
25388         * lib/unilbrk/ulc-common.h (iconv_string_length,
25389         iconv_string_keeping_offsets): Remove declarations.
25390         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
25391         Don't include <iconv.h>, streq.h, xsize.h.
25392         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
25393         conversion.
25394         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
25395         <iconv.h>, streq.h, xsize.h.
25396         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
25397         conversion.
25398         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
25399         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
25400         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
25401         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
25402
25403 2008-05-10  Bruno Haible  <bruno@clisp.org>
25404
25405         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
25406         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
25407
25408         * modules/unilbrk/u32-width-linebreaks-tests: New file.
25409         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
25410
25411         * modules/unilbrk/u16-width-linebreaks-tests: New file.
25412         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
25413
25414         * modules/unilbrk/u8-width-linebreaks-tests: New file.
25415         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
25416
25417         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
25418         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
25419
25420         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
25421         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
25422
25423         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
25424         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
25425
25426         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
25427         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
25428
25429 2008-05-10  Bruno Haible  <bruno@clisp.org>
25430
25431         Split up 'linebreak' module.
25432         * lib/unilbrk.h: New file, based on lib/linebreak.h.
25433         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
25434         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
25435         modifications.
25436         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
25437         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
25438         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
25439         lib/linebreak.c.
25440         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
25441         lib/linebreak.c.
25442         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
25443         lib/linebreak.c.
25444         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
25445         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
25446         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
25447         lib/linebreak.c.
25448         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
25449         lib/linebreak.c.
25450         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
25451         lib/linebreak.c.
25452         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
25453         lib/linebreak.c.
25454         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
25455         lib/linebreak.c.
25456         * modules/unilbrk/base: New file.
25457         * modules/unilbrk/tables: New file.
25458         * modules/unilbrk/u8-possible-linebreaks: New file.
25459         * modules/unilbrk/u16-possible-linebreaks: New file.
25460         * modules/unilbrk/u32-possible-linebreaks: New file.
25461         * modules/unilbrk/ulc-common: New file.
25462         * modules/unilbrk/ulc-possible-linebreaks: New file.
25463         * modules/unilbrk/u8-width-linebreaks: New file.
25464         * modules/unilbrk/u16-width-linebreaks: New file.
25465         * modules/unilbrk/u32-width-linebreaks: New file.
25466         * modules/unilbrk/ulc-width-linebreaks: New file.
25467         * lib/linebreak.h: Remove file.
25468         * lib/linebreak.c: Remove file.
25469         * m4/linebreak.m4: Remove file.
25470         * modules/linebreak: Remove file.
25471         * NEWS: Mention the changes.
25472
25473 2008-05-09  Eric Blake  <ebb9@byu.net>
25474
25475         Add xmemdup0.
25476         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
25477         implementation.
25478         * lib/xmalloc.c (xmemdup0): New C implementation.
25479
25480 2008-05-08  Bruno Haible  <bruno@clisp.org>
25481
25482         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
25483
25484 2008-05-07  Eric Blake  <ebb9@byu.net>
25485
25486         Support cross-compilation of <wctype.h>.
25487         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
25488         AC_CACHE_CHECK.
25489
25490 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
25491
25492         * build-aux/vc-list-files: Add support for bzr.
25493
25494 2008-05-03  Jim Meyering  <meyering@redhat.com>
25495
25496         avoid failed assertion with tight malloc
25497         * tests/test-getndelim2.c: Correct an off-by-one assertion.
25498
25499 2008-05-03  Simon Josefsson  <simon@josefsson.org>
25500
25501         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
25502         are needed from arpa/inet.h.
25503         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
25504         Reported by Bruno Haible.
25505
25506 2008-05-02  Jim Meyering  <meyering@redhat.com>
25507
25508         avoid compilation error on FreeBSD 6
25509         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
25510
25511 2008-05-01  Jim Meyering  <meyering@redhat.com>
25512
25513         useless-if-before-free: correct --help's exit status description
25514         * build-aux/useless-if-before-free (usage): Like grep, exit 0
25515         for one or more matches, etc.  Reported by Bruno Haible.
25516
25517         vc-list-files: make the stand-alone gnulib test work
25518         * modules/vc-list-files-tests (configure.ac):
25519         Define and AC_SUBST abs_aux_dir.
25520         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
25521         $(abs_top_srcdir) to each script and having each of them
25522         duplicate the work of setting PATH, set PATH here, using
25523         the new variable, abs_aux_dir instead.
25524         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
25525         * tests/test-vc-list-files-git.sh: Likewise.
25526         Reported by Bruno Haible.
25527
25528 2008-05-01  Bruno Haible  <bruno@clisp.org>
25529
25530         * lib/getndelim2.c (getndelim2): Fix newsize computation during
25531         reallocation. Rename 'done' to 'found_delimiter'.
25532
25533 2008-05-01  Jim Meyering  <meyering@redhat.com>
25534
25535         vc-list-files: accommodate /bin/sh like the one from Solaris 10
25536         * build-aux/vc-list-files: Use `...`, not $(...).
25537
25538 2008-04-30  Jim Meyering  <meyering@redhat.com>
25539
25540         add tests for vc-list-files
25541         * modules/vc-list-files-tests: New module.
25542         * tests/test-vc-list-files-cvs.sh: New file.
25543         * tests/test-vc-list-files-git.sh: New file.
25544
25545         avoid a warning from gcc
25546         * lib/getndelim2.c (IF_LINT): Define.
25547         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
25548
25549         vc-list-files: work properly with build-aux/cvsu, too
25550         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
25551         to all cvs-based clauses.
25552
25553         vc-list-files: work properly in the CVS+awk case, too
25554         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
25555
25556         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
25557         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
25558         take more than one file argument, so .  Add quotes, just in case $dir
25559         ever contains a shell meta-character.  Prompted by Soren Hansen in
25560         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
25561
25562 2008-04-29  Eric Blake  <ebb9@byu.net>
25563
25564         Optimize getndelim2 to use block operations when possible.
25565         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
25566         freadseek, and memchr2.
25567         * lib/getndelim2.c (getndelim2): Use them for block reads.
25568
25569 2008-04-29  Bruno Haible  <bruno@clisp.org>
25570
25571         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
25572         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25573         * modules/inet_ntop (Depends-on): Add extensions.
25574         * modules/inet_pton (Depends-on): Likewise.
25575         Reported by Simon Josefsson.
25576
25577 2008-04-29  Jim Meyering  <meyering@redhat.com>
25578
25579         When the is more than one match in a block, match all of them.
25580         * build-aux/useless-if-before-free: Iterate through each block
25581         until there are no more matches.
25582
25583         Fix broken useless-if-before-free script.
25584         * build-aux/useless-if-before-free: Fix typo: missing "?" after
25585         the expression to match cast of argument to free-like function.
25586
25587 2008-04-29  Eric Blake  <ebb9@byu.net>
25588
25589         Use new header.
25590         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
25591
25592 2008-04-29  Jim Meyering  <meyering@redhat.com>
25593
25594         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
25595         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
25596         by gnulib to exist and to declare e.g., inet_ntop.
25597         Don't include "inet_ntop.h", now removed.
25598
25599         * m4/arpa_inet_h.m4: Remove trailing blanks.
25600
25601 2008-04-29  Eric Blake  <ebb9@byu.net>
25602
25603         Silence valgrind on safe reads beyond potential array bounds.
25604         * lib/rawmemchr.valgrind: New file.
25605         * lib/strchrnul.valgrind: Likewise.
25606         * modules/rawmemchr (Files): Distribute new file.
25607         * modules/strchrnul (Files): Likewise.
25608         Suggested by Bruno Haible.
25609
25610 2008-04-29  Bruno Haible  <bruno@clisp.org>
25611
25612         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
25613         (inet_ntop, inet_pton): Change portability warning's wording.
25614         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
25615         Invoke gl_CHECK_NEXT_HEADERS.
25616         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
25617         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
25618         set ARPA_INET_H.
25619         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
25620         * modules/arpa_inet (Description): No longer only for systems that
25621         lack it.
25622         (Depends-on): Add include_next.
25623         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
25624         HAVE_ARPA_INET_H.
25625
25626 2008-04-29  Jim Meyering  <meyering@redhat.com>
25627
25628         * modules/mkdir (License): Re-license as LGPLv2+.
25629
25630 2008-04-29  Bruno Haible  <bruno@clisp.org>
25631
25632         * modules/rawmemchr (Maintainer): Set to Eric.
25633         * modules/strchrnul (Maintainer): Likewise.
25634
25635 2008-04-29  Simon Josefsson  <simon@josefsson.org>
25636
25637         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
25638         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
25639
25640         * modules/arpa_inet (arpa/inet.h): Use them.
25641
25642 2008-04-28  Eric Blake  <ebb9@byu.net>
25643
25644         Test getndelim2.
25645         * modules/getndelim2-tests: New file.
25646         * tests/test-getndelim2.c: Likewise.
25647         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
25648         stream.
25649         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
25650
25651         * MODULES.html.sh: Document new module.
25652
25653 2008-04-20  Bruno Haible  <bruno@clisp.org>
25654
25655         * lib/c-stack.c (die): Use raise.
25656         * modules/c-stack (Depends-on): Add raise.
25657
25658 2008-04-28  Bruno Haible  <bruno@clisp.org>
25659
25660         Expect rpmatch to be declared.
25661         * lib/yesno.c (rpmatch): Remove declaration.
25662
25663         Declare rpmatch.
25664         * lib/stdlib.in.h (rpmatch): New declaration.
25665         * lib/rpmatch.c: Include <stdlib.h> first.
25666         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
25667         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
25668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
25669         HAVE_RPMATCH.
25670         * modules/rpmatch (Depends-on): Add stdlib, extensions.
25671         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25672         (Include): Set to <stdlib.h>.
25673         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
25674         HAVE_RPMATCH.
25675         * NEWS: Document the change.
25676
25677 2008-04-28  Bruno Haible  <bruno@clisp.org>
25678
25679         Change rpmatch to use nl_langinfo when appropriate.
25680         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
25681         (N_): New macro.
25682         (localized_pattern): New function/macro.
25683         (try): Remove match, nomatch arguments. Copy the pattern into safe
25684         memory before caching it.
25685         (rpmatch): Use localized_pattern. Add translator comments.
25686         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
25687         Suggested by Eric Blake.
25688         * modules/rpmatch (Depends-on): Add stdbool.
25689
25690 2008-04-28  Eric Blake  <ebb9@byu.net>
25691
25692         Add rawmemchr module, matching glibc.
25693         * modules/string (Makefile.am): New indicator.
25694         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
25695         * lib/string.in.h (rawmemchr): Declare when appropriate.
25696         * modules/rawmemchr: New file.
25697         * m4/rawmemchr.m4: Likewise.
25698         * lib/rawmemchr.c: Likewise.
25699         * modules/rawmemchr-tests: Likewise.
25700         * tests/test-rawmemchr.c: Likewise.
25701         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
25702         module.
25703         * modules/strchrnul (Depends-on): Add rawmemchr.
25704         * lib/strchrnul.c (strchrnul): Optimize a corner case.
25705
25706         Whitespace cleanup.
25707         * tests/test-strchrnul.c: Reindent.
25708         * lib/strchrnul.c: Likewise.
25709
25710         Optimize and test strchrnul.
25711         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
25712         * modules/strchrnul-tests: New file.
25713         * tests/test-strchrnul.c: Likewise.
25714
25715         Remove intprops dependency.
25716         * modules/memchr (Depends-on): Remove intprops.
25717         * modules/memrchr (Depends-on): Likewise.
25718         * modules/memchr2 (Depends-on): Likewise.
25719         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
25720         * lib/memrchr.c (__memrchr): Likewise.
25721         * lib/memrchr2.c (memchr2): Likewise.
25722         Reported by Simon Josefsson.
25723
25724 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25725
25726         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
25727         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25728
25729 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25730
25731         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
25732
25733         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
25734
25735         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
25736
25737         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
25738         declarations.
25739         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
25740
25741         * m4/inet_pton.m4: Don't check for header files.
25742
25743         * m4/inet_ntop.m4: Don't check for header files.
25744
25745 2008-04-28  Simon Josefsson  <simon@josefsson.org>
25746
25747         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
25748         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
25749         trigger for cygwin).
25750         Reported by Bruno Haible  <bruno@clisp.org>.
25751
25752 2008-04-28  Bruno Haible  <bruno@clisp.org>
25753
25754         * doc/posix-functions/strdup.texi: Mention mingw problem.
25755
25756 2008-04-27  Bruno Haible  <bruno@clisp.org>
25757
25758         * modules/stat-time-tests (Depends-on): Add sleep.
25759         * tests/test-stat-time.c (force_unlink): New function.
25760         (cleanup): Use it.
25761         (test_mtime): Remove the ctime related tests.
25762         (test_ctime): New function, containing the ctime related tests.
25763         (main): Call test_ctime, except on native Windows platforms.
25764
25765 2008-04-27  Bruno Haible  <bruno@clisp.org>
25766
25767         * lib/rpmatch.c (rpmatch): Add some comments.
25768         Reported by James Youngman <jay@gnu.org>.
25769
25770 2008-04-27  Bruno Haible  <bruno@clisp.org>
25771
25772         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
25773         quiet NaNs.
25774
25775 2008-04-27  Bruno Haible  <bruno@clisp.org>
25776
25777         Make test-yesno.sh work on mingw.
25778         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
25779         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
25780         (main): Set stdin to binary mode.
25781         * modules/yesno-tests (Depends-on): Add binary-io.
25782
25783 2008-04-27  Bruno Haible  <bruno@clisp.org>
25784
25785         Fix 'isfinite' on x86, x86_64, ia64 platforms.
25786         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
25787         argument that lie outside the IEEE 854 domain.
25788         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
25789         (gl_ISFINITE): Use it.
25790         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
25791
25792 2008-04-27  Bruno Haible  <bruno@clisp.org>
25793
25794         Allow local renaming in config.h.
25795         * lib/memrchr.c (memrchr): Don't undefine outside libc.
25796
25797 2008-04-27  Bruno Haible  <bruno@clisp.org>
25798
25799         * lib/memchr.c (__memchr): Change type of 'i'.
25800         * lib/memchr2.c (memchr2): Likewise.
25801
25802 2008-04-26  Eric Blake  <ebb9@byu.net>
25803         and Bruno Haible  <bruno@clisp.org>
25804
25805         Optimize and test memrchr.
25806         * modules/memrchr (Depends-on): Add intprops.
25807         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
25808         * modules/memrchr-tests: New file.
25809         * tests/test-memrchr.c: New file.
25810
25811 2008-04-26  Bruno Haible  <bruno@clisp.org>
25812
25813         Add tentative support for DragonFly BSD.
25814         * lib/stdio-impl.h: Add macros for DragonFly BSD.
25815         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
25816         fp.
25817         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25818         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
25819         * lib/fpurge.c (fpurge): Likewise.
25820         * lib/freadable.c (freaadable): Likewise.
25821         * lib/freadahead.c (freadahead): Likewise.
25822         * lib/freading.c (freading): Likewise.
25823         * lib/freadptr.c (freadptr): Likewise.
25824         * lib/freadseek.c (freadptrinc): Likewise.
25825         * lib/fseeko.c (fseeko): Likewise.
25826         * lib/fseterr.c (fseterr): Likewise.
25827         * lib/fwritable.c (fwritable): Likewise.
25828         * lib/fwriting.c (fwriting): Likewise.
25829
25830 2008-04-26  Bruno Haible  <bruno@clisp.org>
25831
25832         * lib/stdio-impl.h: New file.
25833         * lib/fbufmode.c: Include stdio-impl.h.
25834         (fbufmode): Use fp_, remove redundant #defines.
25835         * lib/fflush.c: Include stdio-impl.h.
25836         (clear_ungetc_buffer): Remove redundant #defines.
25837         * lib/fpurge.c: Include stdio-impl.h.
25838         (fpurge): Remove redundant #defines.
25839         * lib/freadable.c: Include stdio-impl.h.
25840         (freadable): Remove redundant #defines.
25841         * lib/freadahead.c: Include stdio-impl.h.
25842         (freadahead): Remove redundant #defines.
25843         * lib/freading.c: Include stdio-impl.h.
25844         (freading): Remove redundant #defines.
25845         * lib/freadptr.c: Include stdio-impl.h.
25846         (freadptr): Remove redundant #defines.
25847         * lib/freadseek.c: Include stdio-impl.h.
25848         (freadptrinc): Remove redundant #defines.
25849         * lib/fseeko.c: Include stdio-impl.h.
25850         (rpl_fseeko): Remove redundant #defines.
25851         * lib/fseterr.c: Include stdio-impl.h.
25852         (fseterr): Remove redundant #defines.
25853         * lib/fwritable.c: Include stdio-impl.h.
25854         (fwritable: Remove redundant #defines.
25855         * lib/fwriting.c: Include stdio-impl.h.
25856         (fwriting): Remove redundant #defines.
25857         * modules/fbufmode (Files): Add lib/stdio-impl.h.
25858         * modules/fflush (Files): Likewise.
25859         * modules/fpurge (Files): Likewise.
25860         * modules/freadable (Files): Likewise.
25861         * modules/freadahead (Files): Likewise.
25862         * modules/freading (Files): Likewise.
25863         * modules/freadptr (Files): Likewise.
25864         * modules/freadseek (Files): Likewise.
25865         * modules/fseeko (Files): Likewise.
25866         * modules/fseterr (Files): Likewise.
25867         * modules/fwritable (Files): Likewise.
25868         * modules/fwriting (Files): Likewise.
25869
25870 2008-04-26  Bruno Haible  <bruno@clisp.org>
25871
25872         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
25873         restore_seek_optimization, update_fpos_cache): New functions, extracted
25874         from rpl_fflush.
25875         (rpl_fflush): Use them.
25876         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
25877         (gl_REPLACE_FFLUSH): Use it.
25878
25879 2008-04-26  Bruno Haible  <bruno@clisp.org>
25880
25881         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
25882         on Solaris.
25883         * tests/test-xstrtoimax.sh: Likewise.
25884         * tests/test-xstrtoumax.sh: Likewise.
25885         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25886
25887 2008-04-26  Bruno Haible  <bruno@clisp.org>
25888
25889         * modules/memchr-tests: New file.
25890         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
25891
25892 2008-04-26  Eric Blake  <ebb9@byu.net>
25893             Bruno Haible  <bruno@clisp.org>
25894
25895         * lib/memchr.c: Include intprops.h.
25896         (__memchr): Optimize parallel detection of matching bytes. Rename local
25897         variables. Add explanatory comments.
25898
25899 2008-04-26  Bruno Haible  <bruno@clisp.org>
25900
25901         Fix module 'memchr', broken since 2000-10-28.
25902         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
25903
25904 2008-04-26  Bruno Haible  <bruno@clisp.org>
25905
25906         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
25907         comments.
25908
25909 2008-04-25  Eric Blake  <ebb9@byu.net>
25910
25911         Use native fstatat on cygwin 1.7.0.
25912         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
25913         first.
25914
25915 2008-04-23  Eric Blake  <ebb9@byu.net>
25916
25917         Improve memchr2 performance.
25918         * lib/memchr2.c (memchr2): Further optimize parallel detection of
25919         NUL bytes.
25920         * modules/memchr2 (Depends-on): Use intprops.h.
25921
25922 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25923
25924         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
25925         an inline function instead of a CPP macro.  Patch by Ben Pfaff
25926         <blp@cs.stanford.edu>.
25927
25928 2008-04-23  Simon Josefsson  <simon@josefsson.org>
25929
25930         * lib/arpa_inet.in.h: New file.
25931
25932         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
25933         (Makefile.am): Sed in substitute header file.
25934
25935         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
25936         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
25937
25938         * modules/inet_ntop (configure.ac): Use
25939         gl_ARPA_INET_MODULE_INDICATOR.
25940
25941         * modules/inet_pton (configure.ac): Use
25942         gl_ARPA_INET_MODULE_INDICATOR.
25943
25944 2008-04-22  Jim Meyering  <meyering@redhat.com>
25945
25946         * modules/verify (License): Re-license as LGPLv2+.
25947
25948 2008-04-22  Simon Josefsson  <simon@josefsson.org>
25949
25950         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
25951         parameter to void* as per POSIX standard (MinGW uses char*).
25952
25953 2008-04-21  Bruno Haible  <bruno@clisp.org>
25954
25955         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25956         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25957         Define to replacements if REPLACE_ISWCNTRL is 1.
25958         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
25959         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
25960         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
25961         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
25962         what it fixes.
25963         * doc/posix-functions/iswalpha.texi: Likewise.
25964         * doc/posix-functions/iswblank.texi: Likewise.
25965         * doc/posix-functions/iswcntrl.texi: Likewise.
25966         * doc/posix-functions/iswdigit.texi: Likewise.
25967         * doc/posix-functions/iswgraph.texi: Likewise.
25968         * doc/posix-functions/iswlower.texi: Likewise.
25969         * doc/posix-functions/iswprint.texi: Likewise.
25970         * doc/posix-functions/iswpunct.texi: Likewise.
25971         * doc/posix-functions/iswspace.texi: Likewise.
25972         * doc/posix-functions/iswupper.texi: Likewise.
25973         * doc/posix-functions/iswxdigit.texi: Likewise.
25974         Reported by Alain Guibert.
25975
25976 2008-04-21  Bruno Haible  <bruno@clisp.org>
25977
25978         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
25979         Patch by Alain Guibert.
25980
25981 2008-04-21  Bruno Haible  <bruno@clisp.org>
25982
25983         Fix test failures on mingw.
25984         * tests/test-xstrtol.c (print_no_progname): New function.
25985         (main): Install it in error_print_progname hook.
25986         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
25987         * tests/test-xstrtoimax.sh: Likewise.
25988         * tests/test-xstrtoumax.sh: Likewise.
25989
25990 2008-04-21  Bruno Haible  <bruno@clisp.org>
25991
25992         Fix test failure on mingw.
25993         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
25994
25995 2008-04-21  Bruno Haible  <bruno@clisp.org>
25996
25997         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
25998         Actually assign a value.
25999
26000 2008-04-20  Bruno Haible  <bruno@clisp.org>
26001
26002         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
26003         take 2.
26004         * lib/canonicalize.c (canonicalize_file_name): Elide if the
26005         'canonicalize-lgpl' module is also used.
26006         * lib/canonicalize-lgpl.c: Undo last change.
26007         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
26008
26009 2008-04-20  Bruno Haible  <bruno@clisp.org>
26010
26011         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
26012         config.h. Provide _mkdir based fallback for mingw.
26013         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
26014         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
26015         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
26016         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
26017         rather than defining mkdir in config.h.
26018         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
26019         (gl_SYS_STAT_H_DEFAULTS): New macro.
26020         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
26021         HAVE_IO_H any more.
26022         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
26023         HAVE_DECL_MKDIR and HAVE_IO_H.
26024
26025 2008-04-20  Bruno Haible  <bruno@clisp.org>
26026
26027         * lib/isapipe.c: Port to native Windows platforms.
26028
26029 2008-04-20  Bruno Haible  <bruno@clisp.org>
26030
26031         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
26032
26033 2008-04-21  Eric Blake  <ebb9@byu.net>
26034
26035         Work around preprocessors that don't handle UINTMAX_MAX.
26036         * lib/memchr2.c (memchr2): Avoid embedded #if.
26037         Reported by Alain Guibert, fix suggested by Bruno Haible.
26038
26039 2008-04-21  Simon Josefsson  <simon@josefsson.org>
26040
26041         * doc/posix-functions/strftime.texi (strftime): Explain better
26042         Windows incompatibility.  Suggested by Micah Cowan
26043         <micah@cowan.name>.
26044
26045 2008-04-20  Bruno Haible  <bruno@clisp.org>
26046
26047         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
26048         unistr/u8-mblen.
26049
26050 2008-04-20  Bruno Haible  <bruno@clisp.org>
26051
26052         Fix test failure on platforms with non-GNU iconv.
26053         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
26054         (U_TO_U8): Use it, rather than u16_to_u8.
26055         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
26056         units at the end of the input string.
26057         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
26058
26059 2008-04-20  Bruno Haible  <bruno@clisp.org>
26060
26061         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
26062         when the resulting length is 0.
26063         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
26064
26065 2008-04-20  Bruno Haible  <bruno@clisp.org>
26066
26067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
26068         works.
26069         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
26070
26071 2008-04-20  Bruno Haible  <bruno@clisp.org>
26072
26073         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
26074         * modules/tsearch-tests (configure.ac): Test for initstate function.
26075
26076 2008-04-20  Bruno Haible  <bruno@clisp.org>
26077
26078         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
26079         for nlink_t if missing.
26080         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
26081
26082 2008-04-19  Bruno Haible  <bruno@clisp.org>
26083
26084         Work around snprintf bug on Linux libc5.
26085         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
26086         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26087         gl_SNPRINTF_SIZE1.
26088         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26089         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
26090         that test failed.
26091         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
26092         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
26093         * modules/snprintf (Files): Add m4/printf.m4.
26094         * modules/vsnprintf (Files): Likewise.
26095         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
26096         * doc/posix-functions/vsnprintf.texi: Likewise.
26097
26098 2008-04-19  Bruno Haible  <bruno@clisp.org>
26099
26100         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
26101         from 0.0058 to less than 10^-7.
26102
26103 2008-04-19  Bruno Haible  <bruno@clisp.org>
26104
26105         Fix rounding when a precision is given.
26106         * lib/vasnprintf.c (is_borderline): New function.
26107         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
26108         9...9x.
26109         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
26110         %e, %g.
26111         * tests/test-vasprintf-posix.c (test_function): Likewise.
26112         * tests/test-snprintf-posix.h (test_function): Likewise.
26113         * tests/test-sprintf-posix.h (test_function): Likewise.
26114         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
26115         * tests/test-printf-posix.h (test_function): Likewise.
26116         * tests/test-printf-posix.output: Update.
26117         Reported by John Darrington <john@darrington.wattle.id.au> via
26118         Ben Pfaff <blp@cs.stanford.edu>.
26119
26120 2008-04-18  Simon Josefsson  <simon@josefsson.org>
26121
26122         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
26123         Suggested by Bruno Haible <bruno@clisp.org>.
26124
26125 2008-04-17  Bruno Haible  <bruno@clisp.org>
26126
26127         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
26128         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
26129         implementation.
26130         Patch by Bruce Merry <bmerry@gmail.com>.
26131
26132 2008-04-17  Simon Josefsson  <simon@josefsson.org>
26133
26134         * doc/posix-functions/strftime.texi (strftime): Mention that %e
26135         doesn't work under Windows.
26136
26137 2008-04-16  Bruno Haible  <bruno@clisp.org>
26138
26139         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
26140         New macros.
26141         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
26142         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
26143         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
26144         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
26145         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
26146         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
26147         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
26148         macros.
26149         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
26150         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
26151         Northern Sotho, Uighur.
26152
26153 2008-04-16  Bruno Haible  <bruno@clisp.org>
26154
26155         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
26156         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
26157         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
26158         Reported by Daniel Bergström <daniel@octocode.com>.
26159
26160 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
26161             Bruno Haible  <bruno@clisp.org>
26162
26163         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
26164         function.
26165         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
26166         New functions, mostly extracted from gl_locale_name_default.
26167         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
26168
26169 2008-04-16  Eric Blake  <ebb9@byu.net>
26170
26171         Adjust strtod detection to catch glibc 2.7 bug.
26172         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
26173         Reported by John Gatewood Ham.
26174
26175 2008-04-16  Bruno Haible  <bruno@clisp.org>
26176
26177         Add tentative support for Linux libc5.
26178         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
26179         * lib/fpurge.c (fpurge): Likewise.
26180         * lib/freadable.c (freadable): Likewise.
26181         * lib/freadahead.c (freadahead): Likewise.
26182         * lib/freading.c (freading): Likewise.
26183         * lib/freadptr.c (freadptr): Likewise.
26184         * lib/freadseek.c (freadptrinc): Likewise.
26185         * lib/fseeko.c (rpl_fseeko): Likewise.
26186         * lib/fseterr.c (fseterr): Likewise.
26187         * lib/fwritable.c (fwritable): Likewise.
26188         * lib/fwriting.c (fwriting): Likewise.
26189         Reported by Alain Guibert <alguibert+bts@free.fr>.
26190
26191 2008-04-15  Bruno Haible  <bruno@clisp.org>
26192
26193         * modules/mathl (configure.ac): Define module indicator.
26194
26195 2008-04-15  Bruno Haible  <bruno@clisp.org>
26196
26197         * lib/logl.c (logl): Remove unused variables.
26198
26199 2008-04-15  Bruno Haible  <bruno@clisp.org>
26200
26201         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
26202         fails.
26203
26204 2008-04-15  Bruno Haible  <bruno@clisp.org>
26205
26206         * lib/trim.c (trim2): Fix argument of isspace() macro.
26207
26208 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
26209
26210         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
26211         to 0.
26212         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
26213
26214 2008-04-14  Bruno Haible  <bruno@clisp.org>
26215
26216         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
26217         AC_LANG_PROGRAM argument.
26218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
26219         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
26220         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26221         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26222         * m4/math_h.m4 (gl_MATH_H): Likewise.
26223         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26224         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26225         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
26226         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
26227         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26228         * m4/regex.m4 (gl_REGEX): Likewise.
26229         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
26230         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
26231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26232         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
26233         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26234         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26235         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26236         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26237
26238 2008-04-14  Jim Meyering  <meyering@redhat.com>
26239
26240         test-strtod: fix typos: s/abs/fabs/
26241         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
26242
26243 2008-04-13  Bruno Haible  <bruno@clisp.org>
26244
26245         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
26246         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
26247         module is also used and while not building the reloc-wrapper.
26248
26249 2008-04-13  Bruno Haible  <bruno@clisp.org>
26250
26251         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
26252
26253 2008-04-13  Bruno Haible  <bruno@clisp.org>
26254
26255         Fix AIX compilation failure introduced on 2008-04-02.
26256         * tests/test-frexp.c (exp): Undefine before redefining.
26257         * tests/test-frexpl.c (exp): Likewise.
26258
26259 2008-04-13  Bruno Haible  <bruno@clisp.org>
26260
26261         Work around a HP-UX stdio bug.
26262         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
26263         * tests/test-ftello.c (main): Likewise.
26264         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
26265         * doc/posix-functions/ftello.texi: Likewise.
26266
26267 2008-04-13  Bruno Haible  <bruno@clisp.org>
26268
26269         Make test-signbit pass on HP-UX/hppa.
26270         * tests/test-signbit.c (minus_zerol): New variable.
26271         (test_signbitl): Use it.
26272
26273 2008-04-13  Bruno Haible  <bruno@clisp.org>
26274
26275         Make truncl work on OSF/1 4.0.
26276         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
26277         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26278         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
26279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
26280         HAVE_DECL_TRUNCL.
26281         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
26282         HAVE_DECL_TRUNCL.
26283         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
26284
26285 2008-04-13  Bruno Haible  <bruno@clisp.org>
26286
26287         * lib/unictype.h: Remove trailing comma from enumeration definitions.
26288
26289 2008-04-13  Bruno Haible  <bruno@clisp.org>
26290
26291         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
26292         expression, so as to avoid HP-UX 11 cc compiler bug.
26293
26294 2008-04-13  Bruno Haible  <bruno@clisp.org>
26295
26296         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
26297
26298 2008-04-13  Bruno Haible  <bruno@clisp.org>
26299
26300         * lib/git-merge-changelog.c: Remove empty declaration outside of
26301         functions.
26302
26303 2008-04-13  Bruno Haible  <bruno@clisp.org>
26304
26305         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
26306
26307 2008-04-13  Bruno Haible  <bruno@clisp.org>
26308
26309         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
26310         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
26311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
26312         also if it exists but lacks definitions of the SHUT_* macros.
26313         * modules/sys_socket (Description): Update.
26314         Reported by Elbert Pol <e.pol@chello.nl>.
26315
26316 2008-04-13  Bruno Haible  <bruno@clisp.org>
26317
26318         * lib/localcharset.c (OS2): Don't redefine if already defined.
26319         Reported by Elbert Pol <e.pol@chello.nl>.
26320
26321 2008-04-13  Bruno Haible  <bruno@clisp.org>
26322
26323         * lib/binary-io.h [__EMX__]: Include <io.h>.
26324         Reported by Elbert Pol <e.pol@chello.nl>.
26325
26326 2008-04-12  Bruno Haible  <bruno@clisp.org>
26327
26328         * lib/fpucw.h: Enable the definitions also for x86_64.
26329         Needed for NetBSD/x86_64.
26330         Reported by Thomas Klausner <tk@giga.or.at>.
26331
26332 2008-04-12  Bruno Haible  <bruno@clisp.org>
26333
26334         * tests/test-strtod.c: Include isnand.h.
26335         (main): Use isnand instead of isnan.
26336         Reported by Jim Meyering.
26337
26338 2008-04-12  Bruno Haible  <bruno@clisp.org>
26339
26340         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
26341         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26342
26343 2008-04-12  Jim Meyering  <meyering@redhat.com>
26344
26345         * m4/math_h.m4 (gl_MATH_H): Fix typos.
26346
26347 2008-04-12  Bruno Haible  <bruno@clisp.org>
26348
26349         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
26350         Reported by Elbert Pol <e.pol@chello.nl>.
26351
26352 2008-04-12  Eric Blake  <ebb9@byu.net>
26353
26354         Work around Solaris 10 math.h bug.
26355         * m4/math_h.m4 (gl_MATH_H): Check for bug.
26356         (gl_MATH_H_DEFAULTS): Set up default.
26357         * modules/math (Makefile.am): Replace new indicators.
26358         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
26359         * tests/test-math.c (main): Test this.
26360         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
26361         * doc/posix-headers/math.texi (math.h): Mention bug.
26362         Reported by Nelson H. F. Beebe and Jim Meyering.
26363
26364 2008-04-11  Bruno Haible  <bruno@clisp.org>
26365
26366         Adapt to future versions of Apple GCC.
26367         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
26368         Reported by Peter O'Gorman <peter@pogma.com>.
26369
26370 2008-04-11  Bruno Haible  <bruno@clisp.org>
26371
26372         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
26373
26374 2008-04-11  Bruno Haible  <bruno@clisp.org>
26375
26376         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
26377
26378         * modules/getaddrinfo-tests (Makefile.am): Define
26379         test_getaddrinfo_LDADD.
26380
26381 2008-04-11  Bruno Haible  <bruno@clisp.org>
26382
26383         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
26384         (init): Fix syntax error.
26385         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
26386         is declared.
26387
26388 2008-04-11  Bruno Haible  <bruno@clisp.org>
26389
26390         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
26391         * modules/glob (Depends-on): Add stdbool.
26392
26393 2008-04-11  Bruno Haible  <bruno@clisp.org>
26394
26395         * lib/trim.c: Include <string.h>.
26396
26397 2008-04-11  Eric Blake  <ebb9@byu.net>
26398
26399         Avoid compile failure on OS/2.
26400         * lib/regex_internal.h (internal_function): Disable optimization
26401         on OS/2 (__EMX__), where it caused compiler error.
26402         Reported by Elbert Pol.
26403
26404 2008-04-11  Bruno Haible  <bruno@clisp.org>
26405
26406         Flush the standard error stream before aborting. Needed on mingw.
26407         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
26408         * tests/test-array_list.c (ASSERT): Likewise.
26409         * tests/test-array_oset.c (ASSERT): Likewise.
26410         * tests/test-avltree_list.c (ASSERT): Likewise.
26411         * tests/test-avltree_oset.c (ASSERT): Likewise.
26412         * tests/test-avltreehash_list.c (ASSERT): Likewise.
26413         * tests/test-binary-io.c (ASSERT): Likewise.
26414         * tests/test-byteswap.c (ASSERT): Likewise.
26415         * tests/test-c-ctype.c (ASSERT): Likewise.
26416         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
26417         * tests/test-c-strcasestr.c (ASSERT): Likewise.
26418         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
26419         * tests/test-c-strstr.c (ASSERT): Likewise.
26420         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
26421         * tests/test-canonicalize.c (ASSERT): Likewise.
26422         * tests/test-carray_list.c (ASSERT): Likewise.
26423         * tests/test-ceilf1.c (ASSERT): Likewise.
26424         * tests/test-ceilf2.c (ASSERT): Likewise.
26425         * tests/test-ceill.c (ASSERT): Likewise.
26426         * tests/test-count-one-bits.c (ASSERT): Likewise.
26427         * tests/test-fbufmode.c (ASSERT): Likewise.
26428         * tests/test-fflush2.c (ASSERT): Likewise.
26429         * tests/test-floorf1.c (ASSERT): Likewise.
26430         * tests/test-floorf2.c (ASSERT): Likewise.
26431         * tests/test-floorl.c (ASSERT): Likewise.
26432         * tests/test-fopen.c (ASSERT): Likewise.
26433         * tests/test-fpending.c (ASSERT): Likewise.
26434         * tests/test-fprintf-posix.c (ASSERT): Likewise.
26435         * tests/test-fpurge.c (ASSERT): Likewise.
26436         * tests/test-freadable.c (ASSERT): Likewise.
26437         * tests/test-freadahead.c (ASSERT): Likewise.
26438         * tests/test-freading.c (ASSERT): Likewise.
26439         * tests/test-freadptr.c (ASSERT): Likewise.
26440         * tests/test-freadptr2.c (ASSERT): Likewise.
26441         * tests/test-freadseek.c (ASSERT): Likewise.
26442         * tests/test-freopen.c (ASSERT): Likewise.
26443         * tests/test-frexp.c (ASSERT): Likewise.
26444         * tests/test-frexpl.c (ASSERT): Likewise.
26445         * tests/test-fseek.c (ASSERT): Likewise.
26446         * tests/test-fseeko.c (ASSERT): Likewise.
26447         * tests/test-fstrcmp.c (ASSERT): Likewise.
26448         * tests/test-ftell.c (ASSERT): Likewise.
26449         * tests/test-ftello.c (ASSERT): Likewise.
26450         * tests/test-func.c (ASSERT): Likewise.
26451         * tests/test-fwritable.c (ASSERT): Likewise.
26452         * tests/test-fwriting.c (ASSERT): Likewise.
26453         * tests/test-getdelim.c (ASSERT): Likewise.
26454         * tests/test-getline.c (ASSERT): Likewise.
26455         * tests/test-i-ring.c (ASSERT): Likewise.
26456         * tests/test-iconv-utf.c (ASSERT): Likewise.
26457         * tests/test-iconv.c (ASSERT): Likewise.
26458         * tests/test-isfinite.c (ASSERT): Likewise.
26459         * tests/test-isnand.c (ASSERT): Likewise.
26460         * tests/test-isnanf.c (ASSERT): Likewise.
26461         * tests/test-isnanl.h (ASSERT): Likewise.
26462         * tests/test-ldexpl.c (ASSERT): Likewise.
26463         * tests/test-linked_list.c (ASSERT): Likewise.
26464         * tests/test-linkedhash_list.c (ASSERT): Likewise.
26465         * tests/test-localename.c (ASSERT): Likewise.
26466         * tests/test-lseek.c (ASSERT): Likewise.
26467         * tests/test-mbscasecmp.c (ASSERT): Likewise.
26468         * tests/test-mbscasestr1.c (ASSERT): Likewise.
26469         * tests/test-mbscasestr2.c (ASSERT): Likewise.
26470         * tests/test-mbscasestr3.c (ASSERT): Likewise.
26471         * tests/test-mbscasestr4.c (ASSERT): Likewise.
26472         * tests/test-mbschr.c (ASSERT): Likewise.
26473         * tests/test-mbscspn.c (ASSERT): Likewise.
26474         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
26475         * tests/test-mbspbrk.c (ASSERT): Likewise.
26476         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
26477         * tests/test-mbsrchr.c (ASSERT): Likewise.
26478         * tests/test-mbsspn.c (ASSERT): Likewise.
26479         * tests/test-mbsstr1.c (ASSERT): Likewise.
26480         * tests/test-mbsstr2.c (ASSERT): Likewise.
26481         * tests/test-mbsstr3.c (ASSERT): Likewise.
26482         * tests/test-memchr2.c (ASSERT): Likewise.
26483         * tests/test-memmem.c (ASSERT): Likewise.
26484         * tests/test-open.c (ASSERT): Likewise.
26485         * tests/test-printf-frexp.c (ASSERT): Likewise.
26486         * tests/test-printf-frexpl.c (ASSERT): Likewise.
26487         * tests/test-printf-posix.c (ASSERT): Likewise.
26488         * tests/test-quotearg.c (ASSERT): Likewise.
26489         * tests/test-rbtree_list.c (ASSERT): Likewise.
26490         * tests/test-rbtree_oset.c (ASSERT): Likewise.
26491         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
26492         * tests/test-round1.c (ASSERT): Likewise.
26493         * tests/test-roundf1.c (ASSERT): Likewise.
26494         * tests/test-roundl.c (ASSERT): Likewise.
26495         * tests/test-signbit.c (ASSERT): Likewise.
26496         * tests/test-sleep.c (ASSERT): Likewise.
26497         * tests/test-snprintf-posix.c (ASSERT): Likewise.
26498         * tests/test-snprintf.c (ASSERT): Likewise.
26499         * tests/test-sprintf-posix.c (ASSERT): Likewise.
26500         * tests/test-stat-time.c (ASSERT): Likewise.
26501         * tests/test-strcasestr.c (ASSERT): Likewise.
26502         * tests/test-strerror.c (ASSERT): Likewise.
26503         * tests/test-striconv.c (ASSERT): Likewise.
26504         * tests/test-striconveh.c (ASSERT): Likewise.
26505         * tests/test-striconveha.c (ASSERT): Likewise.
26506         * tests/test-strsignal.c (ASSERT): Likewise.
26507         * tests/test-strstr.c (ASSERT): Likewise.
26508         * tests/test-strtod.c (ASSERT): Likewise.
26509         * tests/test-trunc1.c (ASSERT): Likewise.
26510         * tests/test-trunc2.c (ASSERT): Likewise.
26511         * tests/test-truncf1.c (ASSERT): Likewise.
26512         * tests/test-truncf2.c (ASSERT): Likewise.
26513         * tests/test-truncl.c (ASSERT): Likewise.
26514         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
26515         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
26516         * tests/test-vasnprintf.c (ASSERT): Likewise.
26517         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
26518         * tests/test-vasprintf.c (ASSERT): Likewise.
26519         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
26520         * tests/test-vprintf-posix.c (ASSERT): Likewise.
26521         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
26522         * tests/test-vsnprintf.c (ASSERT): Likewise.
26523         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
26524         * tests/test-wcwidth.c (ASSERT): Likewise.
26525         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
26526         * tests/test-xprintf-posix.c (ASSERT): Likewise.
26527         * tests/test-xvasprintf.c (ASSERT): Likewise.
26528         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
26529         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
26530         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
26531         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
26532         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
26533         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
26534         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
26535         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
26536         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
26537         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
26538         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
26539         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
26540         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
26541         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
26542         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
26543         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
26544         * tests/unictype/test-block_list.c (ASSERT): Likewise.
26545         * tests/unictype/test-block_of.c (ASSERT): Likewise.
26546         * tests/unictype/test-block_test.c (ASSERT): Likewise.
26547         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
26548         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
26549         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
26550         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
26551         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
26552         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
26553         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
26554         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
26555         * tests/unictype/test-combining.c (ASSERT): Likewise.
26556         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
26557         * tests/unictype/test-digit.c (ASSERT): Likewise.
26558         * tests/unictype/test-mirror.c (ASSERT): Likewise.
26559         * tests/unictype/test-numeric.c (ASSERT): Likewise.
26560         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
26561         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
26562         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
26563         * tests/unictype/test-scripts.c (ASSERT): Likewise.
26564         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
26565         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
26566         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
26567         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
26568         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
26569         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
26570         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
26571         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
26572         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
26573         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
26574         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
26575         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
26576         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
26577         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
26578         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
26579         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
26580         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
26581         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
26582         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
26583         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
26584         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
26585         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
26586         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
26587         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
26588         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
26589         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
26590         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
26591         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
26592         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
26593         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
26594         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
26595         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
26596         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
26597         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
26598         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
26599         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
26600         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
26601         Reported by Eric Blake.
26602
26603 2008-04-11  Bruno Haible  <bruno@clisp.org>
26604
26605         * lib/wchar.in.h: Tweak comment.
26606
26607 2008-04-11  Bruno Haible  <bruno@clisp.org>
26608
26609         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
26610         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
26611         gl_COMMON.
26612         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
26613
26614 2008-04-11  Bruno Haible  <bruno@clisp.org>
26615
26616         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
26617
26618 2008-04-11  Simon Josefsson  <simon@josefsson.org>
26619
26620         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
26621         of attempting to use non-existing /dev/*random.  Based on patch
26622         from Adam Strzelecki <ono@java.pl> in
26623         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
26624
26625 2008-04-08  Bruno Haible  <bruno@clisp.org>
26626
26627         Add tentative support for emx+gcc.
26628         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
26629         * lib/fpurge.c (fpurge): Likewise.
26630         * lib/freadable.c (freadable): Likewise.
26631         * lib/freadahead.c (freadahead): Likewise.
26632         * lib/freading.c (freading): Likewise.
26633         * lib/freadptr.c (freadptr): Likewise.
26634         * lib/freadseek.c (freadptrinc): Likewise.
26635         * lib/fseeko.c (rpl_fseeko): Likewise.
26636         * lib/fseterr.c (fseterr): Likewise.
26637         * lib/fwritable.c (fwritable): Likewise.
26638         * lib/fwriting.c (fwriting): Likewise.
26639         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
26640
26641 2008-04-09  Eric Blake  <ebb9@byu.net>
26642
26643         Avoid some autoconf warnings.
26644         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
26645         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
26646         * m4/afs.m4 (gl_AFS): Likewise.
26647         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
26648         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
26649         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26650         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
26651         (gl_INTEGER_TYPE_SUFFIX): Likewise.
26652         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
26653         (AC_CHECK_DECLS_ONCE): Likewise.
26654         Rename file...
26655         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
26656         gnulib-tool requires autoconf 2.59 or better.
26657         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
26658
26659 2008-04-08  Eric Blake  <ebb9@byu.net>
26660
26661         Use 'git describe --match' if present (added in git 1.5.5).
26662         * build-aux/git-version-gen: Limit result to tags that match 'v*'
26663         if possible.
26664
26665 2008-04-08  Bruno Haible  <bruno@clisp.org>
26666
26667         Add tentative support for OpenServer.
26668         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
26669         _ptr, _cnt.
26670         * lib/fpurge.c (fpurge): Likewise.
26671         * lib/freadable.c (freadable): Likewise.
26672         * lib/freadahead.c (freadahead): Likewise.
26673         * lib/freading.c (freading): Likewise.
26674         * lib/freadptr.c (freadptr): Likewise.
26675         * lib/freadseek.c (freadptrinc): Likewise.
26676         * lib/fseeko.c (rpl_fseeko): Likewise.
26677         * lib/fseterr.c (fseterr): Likewise.
26678         * lib/fwritable.c (fwritable): Likewise.
26679         * lib/fwriting.c (fwriting): Likewise.
26680         Reported by Roger Cornelius <rac@tenzing.org> and
26681         Brian K. White <brian@aljex.com>.
26682
26683 2008-04-06  Jim Meyering  <meyering@redhat.com>
26684
26685         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
26686
26687 2008-04-06  Bruno Haible  <bruno@clisp.org>
26688
26689         Avoid possible error with non-ASCII bytes in UTF-8 locales.
26690         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
26691         * tests/test-printf-posix.sh: Likewise.
26692         * tests/test-vfprintf-posix.sh: Likewise.
26693         * tests/test-vprintf-posix.sh: Likewise.
26694         * tests/test-xprintf-posix.sh: Likewise.
26695
26696 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26697
26698         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
26699         hide error from 'ls', needed on OS/2.
26700         Report by Elbert Pol <elbert.pol@gmail.com>.
26701
26702 2008-04-04  Eric Blake  <ebb9@byu.net>
26703
26704         Make test-fseeko.c failures meaningful.
26705         * tests/test-fseeko.c: Print line number on failure.
26706         * tests/test-fseek.c: Likewise.
26707         Reported by Nelson H. F. Beebe.
26708
26709         Improve strtod bug detection check.
26710         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
26711         required for Solaris 10.
26712         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
26713
26714 2008-04-04  Bruno Haible  <bruno@clisp.org>
26715
26716         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
26717         by m4/setenv.m4.
26718
26719 2008-04-03  Eric Blake  <ebb9@byu.net>
26720
26721         Ensure sane .version contents.
26722         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
26723         version string.
26724         * build-aux/git-version-gen: Improve documentation.
26725
26726         Make GNU make output nicer.
26727         * top/GNUmakefile [!_have-Makefile]: Add dependency on
26728         MAKECMDGOALS to enforce message for all command line targets.  Set
26729         srcdir for use in maint.mk.
26730
26731         Another maintainer tweak.
26732         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
26733         a target that regenerates version.
26734
26735 2008-04-03  Jim Meyering  <meyering@redhat.com>
26736
26737         vc-list-files: don't cause coreutils "make po-check" failure
26738         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
26739
26740 2008-04-03  Eric Blake  <ebb9@byu.net>
26741
26742         Allow VPATH usage of vc-list-files.
26743         * build-aux/vc-list-files (scriptversion): Add timestamp.
26744         (options): Add --help, --version, -C.
26745         (CVS): Support installed cvsu.
26746
26747 2008-04-02  Bruno Haible  <bruno@clisp.org>
26748
26749         Avoid some "statement with no effect" warnings from gcc.
26750         * tests/test-wctype.c (main): Explicitly ignore unused values.
26751         Reported by Jim Meyering.
26752
26753 2008-04-02  Jim Meyering  <meyering@redhat.com>
26754
26755         Avoid some warnings from "gcc -Wshadow".
26756         * tests/test-frexp.c (exp): Define to a different identifier.
26757         * tests/test-frexpl.c (exp): Likewise.
26758
26759 2008-04-03  Jim Meyering  <meyering@redhat.com>
26760
26761         bootstrap: remove dangling *.[ch] symlinks from lib
26762         * build-aux/bootstrap [dangling symlink removal]: Move find's
26763         -depth option to precede all others, to avoid a warning.
26764         Remove *.[ch] files too, and from "$source_base" (usually lib/).
26765
26766 2008-04-02  Bruno Haible  <bruno@clisp.org>
26767
26768         Avoid some warnings from "gcc -Wshadow".
26769         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
26770         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
26771         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
26772         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
26773         Reported by Jim Meyering.
26774
26775 2008-04-01  Bruno Haible  <bruno@clisp.org>
26776
26777         Fix test to work on IRIX 6.5 with cc.
26778         * tests/test-math.c (numeric_equal): New function.
26779         (main): Use it.
26780
26781 2008-04-01  Bruno Haible  <bruno@clisp.org>
26782
26783         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
26784
26785 2008-04-01  Bruno Haible  <bruno@clisp.org>
26786
26787         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
26788         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26789         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
26790         (Depends-on): Remove math.
26791
26792         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
26793         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26794         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
26795         (Depends-on): Remove math.
26796
26797         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
26798         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26799         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
26800         (Depends-on): Remove math.
26801         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
26802         (Depends-on): Remove math.
26803
26804         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
26805         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
26806         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
26807         (Depends-on): Remove math.
26808         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
26809         (Depends-on): Remove math.
26810
26811         * tests/test-round1.c: Include nan.h.
26812         (main): Use NaNd instead of NAN.
26813         * modules/round-tests (Files): Add tests/nan.h.
26814
26815         * tests/test-trunc1.c: Include nan.h.
26816         (main): Use NaNd instead of NAN.
26817         * modules/trunc-tests (Files): Add tests/nan.h.
26818
26819         * tests/test-roundf1.c: Include nan.h.
26820         (main): Use NaNf instead of NAN.
26821         * modules/roundf-tests (Files): Add tests/nan.h.
26822
26823         * tests/test-truncf1.c: Include nan.h.
26824         (main): Use NaNf instead of NAN.
26825         * modules/truncf-tests (Files): Add tests/nan.h.
26826
26827         * tests/test-ceilf1.c: Include nan.h.
26828         (main): Use NaNf instead of NAN.
26829         * modules/ceilf-tests (Files): Add tests/nan.h.
26830
26831         * tests/test-floorf1.c: Include nan.h.
26832         (main): Use NaNf instead of NAN.
26833         * modules/floorf-tests (Files): Add tests/nan.h.
26834
26835         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
26836         (main): Use NaNf instead of NAN.
26837         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
26838
26839         * tests/test-isnand.c: Include nan.h instead of <math.h>.
26840         (main): Use NaNd instead of NAN.
26841         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
26842
26843         * tests/test-frexp.c: Include nan.h.
26844         (main): Use NaNd instead of NAN.
26845         * modules/frexp-tests (Files): Add tests/nan.h.
26846
26847         * lib/isnan.c: Don't include <math.h>.
26848         (FUNC): Don't use NAN macro.
26849         * modules/isnand-nolibm (Depends-on): Remove math.
26850         * modules/isnanf-nolibm (Depends-on): Remove math.
26851         * modules/isnanl (Depends-on): Remove math.
26852         * modules/isnanl-nolibm (Depends-on): Remove math.
26853
26854         * tests/nan.h: New file.
26855
26856 2008-04-01  Eric Blake  <ebb9@byu.net>
26857
26858         Fix typos.
26859         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
26860         values to be the right type.
26861
26862         For now, cater to gnulib strtod inaccuracies.
26863         * tests/test-strtod.c (main): Allow 1-ulp error on expected
26864         fractional results.  While not as nice from a QoI perspective, it
26865         is a quicker patch than correctly implementing decimal to binary
26866         rounding.
26867
26868 2008-03-31  Eric Blake  <ebb9@byu.net>
26869
26870         Guarantee a definition of NAN.
26871         * lib/math.in.h (NAN): Define if missing.
26872         * tests/test-math.c (main): Test it.
26873         * doc/posix-headers/math.texi (math.h): Document this.
26874         * lib/isnan.c (rpl_isnand): Use it.
26875         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
26876         * tests/test-floorf1.c (NaN): Likewise.
26877         * tests/test-frexp.c (NaN): Likewise.
26878         * tests/test-isnand.c (NaN): Likewise.
26879         * tests/test-isnanf.c (NaN): Likewise.
26880         * tests/test-round1.c (NaN): Likewise.
26881         * tests/test-roundf1.c (NaN): Likewise.
26882         * tests/test-snprintf-posix.h (NaN): Likewise.
26883         * tests/test-sprintf-posix.h (NaN): Likewise.
26884         * tests/test-trunc1.c (NaN): Likewise.
26885         * tests/test-truncf1.c (NaN): Likewise.
26886         * tests/test-vasnprintf-posix.c (NaN): Likewise.
26887         * tests/test-vasprintf-posix.c (NaN): Likewise.
26888         * modules/isnand-nolibm (Depends-on): Add math.
26889         * modules/isnanf-nolibm (Depends-on): Likewise.
26890         * modules/isnanl (Depends-on): Likewise.
26891         * modules/isnanl-nolibm (Depends-on): Likewise.
26892         * modules/snprintf-posix-tests (Depends-on): Likewise.
26893         * modules/sprintf-posix-tests (Depends-on): Likewise.
26894         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
26895         * modules/vsprintf-posix-tests (Depends-on): Likewise.
26896         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
26897         * modules/vasprintf-posix-tests (Depends-on): Likewise.
26898
26899 2008-03-31  Bruno Haible  <bruno@clisp.org>
26900
26901         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
26902         * doc/posix-functions/strtod.texi: Likewise.
26903
26904 2008-03-31  Bruno Haible  <bruno@clisp.org>
26905
26906         * tests/test-strtod.c (main): Don't use C99 syntax.
26907
26908 2008-03-31  Bruno Haible  <bruno@clisp.org>
26909
26910         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
26911         Reported by Eric Blake.
26912
26913 2008-03-31  Jim Meyering  <meyering@redhat.com>
26914
26915         Don't compare actual signbit return values.
26916         * tests/test-strtod.c (main): Rather, compare only their
26917         zero/non-zero nature.
26918
26919 2008-03-31  Eric Blake  <ebb9@byu.net>
26920
26921         More strtod documentation.
26922         * doc/posix-functions/strtod.texi (strtod): Interpret more test
26923         failures as distinct bugs.
26924
26925 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
26926
26927         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
26928         Problem reported by Erik Benada in
26929         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
26930
26931 2008-03-30  Bruno Haible  <bruno@clisp.org>
26932
26933         * tests/test-strtod.c: Add comments about which assertion fails on which
26934         platform.
26935         * doc/posix-functions/strtod.texi: Add info about many more platforms.
26936
26937 2008-03-30  Eric Blake  <ebb9@byu.net>
26938
26939         Test signbit behavior on zeros.
26940         * tests/test-signbit.c (test_signbitf): Add tests for zero.
26941         (test_signbitd, test_signbitl): Likewise.
26942
26943         More strtod touchups.
26944         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
26945         sign of negative underflow, for now.  Use .5, not .1.
26946         * doc/posix-functions/strtod.texi (strtod): Mention these
26947         limitations.
26948         Reported by Jim Meyering.
26949
26950 2008-03-30  Bruno Haible  <bruno@clisp.org>
26951
26952         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
26953         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
26954
26955 2008-03-30  Bruno Haible  <bruno@clisp.org>
26956
26957         Avoid failure when attempting to return empty iconv results on some
26958         platforms.
26959         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
26960         allocation, don't report ENOMEM when the resulting string is empty.
26961
26962 2008-03-30  Bruno Haible  <bruno@clisp.org>
26963
26964         Fix buffer overrun.
26965         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
26966         Don't consider the width for tmp_length. Check count against tmp_length
26967         before doing the padding. Ensure enough allocation during padding.
26968
26969 2008-03-30  Eric Blake  <ebb9@byu.net>
26970
26971         strtod touchups.
26972         * lib/strtod.c (strtod): Avoid compiler warnings.
26973         Reported by Jim Meyering.
26974
26975 2008-03-30  Bruno Haible  <bruno@clisp.org>
26976
26977         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
26978         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
26979         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
26980         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
26981         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
26982         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
26983         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
26984         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
26985
26986         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
26987         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
26988         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
26989         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
26990         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
26991         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
26992         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
26993         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
26994
26995         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
26996         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
26997         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
26998         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
26999         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
27000         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
27001         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
27002         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
27003
27004         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
27005         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
27006
27007         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
27008         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
27009
27010         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
27011         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
27012
27013         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
27014         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
27015         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
27016
27017         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
27018         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
27019         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
27020
27021         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
27022         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
27023         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
27024
27025         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
27026         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
27027         * modules/vasprintf (Depends-on): Add EOVERFLOW.
27028
27029         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
27030         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
27031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
27032         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
27033         (Depends-on): Add EOVERFLOW.
27034         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
27035         (Depends-on): Add EOVERFLOW.
27036         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27037         (Depends-on): Add EOVERFLOW.
27038         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
27039         (Depends-on): Add EOVERFLOW.
27040         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27041         (Depends-on): Add EOVERFLOW.
27042         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
27043         (Depends-on): Add EOVERFLOW.
27044         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27045         (Depends-on): Add EOVERFLOW.
27046         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
27047         (Depends-on): Add EOVERFLOW.
27048
27049         * lib/sprintf.c (EOVERFLOW): Remove fallback.
27050         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
27051         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
27052
27053         * lib/snprintf.c (EOVERFLOW): Remove fallback.
27054         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
27055         * modules/snprintf (Depends-on): Add EOVERFLOW.
27056
27057         * lib/poll.c (EOVERFLOW): Remove fallback.
27058         * modules/poll (Depends-on): Add EOVERFLOW.
27059
27060         * lib/getugroups.c (EOVERFLOW): Remove fallback.
27061         * modules/getugroups (Depends-on): Add EOVERFLOW.
27062
27063         * lib/getdelim.c (EOVERFLOW): Remove fallback.
27064         * modules/getdelim (Depends-on): Add EOVERFLOW.
27065
27066         * lib/ftell.c (EOVERFLOW): Remove fallback.
27067         * modules/ftell (Depends-on): Add EOVERFLOW.
27068
27069         * lib/fprintf.c (EOVERFLOW): Remove fallback.
27070         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
27071         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
27072
27073         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
27074
27075         * modules/EOVERFLOW-tests: New file.
27076         * tests/test-EOVERFLOW.c: New file.
27077
27078         * modules/EOVERFLOW: New file.
27079         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
27080
27081 2008-03-30  Bruno Haible  <bruno@clisp.org>
27082
27083         Fix bug introduced on 2007-06-10.
27084         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
27085         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
27086
27087 2008-03-30  Bruno Haible  <bruno@clisp.org>
27088
27089         Improve freadseek's efficiency after ungetc.
27090         * lib/freadseek.c: Include freadahead.h.
27091         (freadptrinc): New function, extracted from freadseek.
27092         (freadseek): Use it in a loop. Use freadahead to determine the number
27093         of loop iterations.
27094         * modules/freadseek (Depends-on): Add freadahead.
27095         (configure.ac): Require AC_C_INLINE.
27096
27097 2008-03-30  Bruno Haible  <bruno@clisp.org>
27098
27099         * lib/freadseek.c (freadseek): Don't ignore the return value of
27100         freadptr.
27101
27102 2008-03-29  Eric Blake  <ebb9@byu.net>
27103
27104         Add hex float support.
27105         * modules/strtod (Depends-on): Add c-ctype.
27106         (Link): Mention POW_LIB.
27107         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
27108         whitespace between 'e' and exponent.
27109         * tests/test-strtod.c (main): Enable hex float tests.
27110         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
27111         now provides.
27112
27113         Document various strtod bugs, with some fixes.
27114         * doc/posix-functions/strtod.texi (strtod): Document bugs with
27115         "-0x", "inf", "nan", and hex constants.
27116         * doc/posix-functions/atof.texi (atof): Likewise.
27117         * modules/stdlib (Makefile.am): Support strtod.
27118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
27119         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
27120         detect additional strtod bugs.
27121         * lib/stdlib.in.h (rpl_strtod): Add declarations.
27122         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
27123         bool where appropriate.  Parse 'inf' and 'nan'.
27124         * tests/test-strtod.c: New file.
27125         * modules/strtod (Depends-on): Add stdbool, stdlib.
27126         (configure.ac): Turn on module indicator.
27127         * modules/strtod-tests: New module.
27128
27129 2008-03-29  Eric Blake  <ebb9@byu.net>
27130
27131         Fix ftell on mingw.
27132         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
27133         * modules/ftell-tests (Depends-on): Add binary-io.
27134         * modules/ftello-tests (Depends-on): Likewise.
27135         * tests/test-ftell.c (main): Enhance test to cover behavior after
27136         ungetc.  Enforce binary mode.
27137         * tests/test-ftello.c (main): Likewise.
27138
27139         Pass test-freadseek on cygwin.
27140         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
27141         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
27142         ungetc buffer.
27143
27144         * tests/test-fflush2.c (main): Fix typo.
27145
27146 2008-03-29  Bruno Haible  <bruno@clisp.org>
27147
27148         * tests/test-fflush2.c (main): Temporarily disable the contents of
27149         this test.
27150         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
27151         Reported by Eric Blake.
27152
27153 2008-03-28  Simon Josefsson  <simon@josefsson.org>
27154
27155         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
27156         (GC_SHA224_DIGEST_SIZE): Add.
27157
27158         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
27159         (gc_hash_digest_length): Likewise.
27160         (gc_hash_buffer): Likewise.
27161
27162 2008-03-25  Bruno Haible  <bruno@clisp.org>
27163
27164         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
27165         detail which gettext release to use.
27166         Reported by Simon Josefsson.
27167
27168 2008-03-26  Jim Meyering  <meyering@redhat.com>
27169
27170         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
27171         * modules/gnumakefile (clean-GNUmakefile): Also, use
27172         test ... && ... || : syntax rather than if-then ... fi.
27173
27174         gnumakefile: Don't double-quote-expand $(VPATH) value.
27175         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
27176
27177 2008-03-24  Eric Blake  <ebb9@byu.net>
27178
27179         Alter GNUmakefile to install into top directory.
27180         * modules/maintainer-makefile: Split, and add dependency...
27181         * modules/gnumakefile: to this new module.
27182         * build-aux/GNUmakefile: Move...
27183         * top/GNUmakefile: ...here.
27184         * build-aux/maint.mk: Move...
27185         * top/maint.mk: ...here.
27186         * MODULES.html.sh (Support for maintaining...): Document new
27187         module.
27188
27189 2008-03-23  Bruno Haible  <bruno@clisp.org>
27190
27191         * gnulib-tool: New options --vc-files, --no-vc-files.
27192         (func_usage): Document them.
27193         (vc_files): New variable.
27194         (func_import): Consider vc_files.
27195         (func_create_testdir): Set vc_files to empty.
27196         Suggested by Jim Meyering and Karl Berry.
27197
27198 2008-03-23  Bruno Haible  <bruno@clisp.org>
27199
27200         Fix regex compilation error on HP-UX 11.
27201         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
27202         * modules/regex (Files): Add m4/mbstate_t.m4.
27203         Reported by Ton Voon <ton.voon@altinity.com>.
27204
27205 2008-03-23  Bruno Haible  <bruno@clisp.org>
27206
27207         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
27208
27209 2008-03-23  Eric Blake  <ebb9@byu.net>
27210             Bruno Haible  <bruno@clisp.org>
27211
27212         Install files from top/ in the destination directory.
27213         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
27214         augmentation also for the files from top/.
27215         (func_import, func_create_testdir): Rewrite file names:
27216         top/filename -> filename.
27217
27218 2008-03-23  Bruno Haible  <bruno@clisp.org>
27219
27220         Tweak "gnulib --version" output.
27221         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
27222
27223 2008-03-23  Bruno Haible  <bruno@clisp.org>
27224
27225         Tweak "gnulib --version" output.
27226         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
27227         rather than contents of ChangeLog, when possible.
27228
27229 2008-03-21  Eric Blake  <ebb9@byu.net>
27230
27231         More --version tweaks.
27232         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
27233         date of last ChangeLog entry.
27234
27235 2008-03-21  Jim Meyering  <meyering@redhat.com>
27236
27237         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
27238
27239 2008-03-20  Eric Blake  <ebb9@byu.net>
27240
27241         VPATH fix.
27242         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
27243
27244 2008-03-20  Simon Josefsson  <simon@josefsson.org>
27245
27246         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
27247         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
27248
27249 2008-03-20  Eric Blake  <ebb9@byu.net>
27250
27251         Sync GNUmakefile with coreutils.
27252         * build-aux/GNUmakefile (have-Makefile): Rename...
27253         (_have-Makefile): ...to this, for namespace consideration.
27254         (GNUmakefile.cfg): Include, if present.
27255         (_autoreconf): Define a default.
27256         (_is-dist-target): New rule for rebuilds to pick up intra-release
27257         version.
27258         (maint-cfg.mk): Rename...
27259         (cfg.mk): ...to this.
27260
27261 2008-03-18  Jim Meyering  <meyering@redhat.com>
27262
27263         New script and module: mktempd
27264         * MODULES.html.sh (maint+release support): Add mktempd.
27265         * build-aux/mktempd: New file.
27266         * modules/mktempd: New file.
27267
27268 2008-03-15  Jim Meyering  <meyering@redhat.com>
27269
27270         Undo last change.
27271         * lib/sha1.c, lib/md5.c: 63 != ~63.
27272         Reported by Andreas Schwab.
27273
27274         sha1.c, md5.c: Hoist a redundant expression.
27275         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
27276         "ctx->buflen" only once, before calling *_process_block.
27277         * lib/md5.c (md5_process_bytes): Likewise.
27278
27279 2008-03-14  Eric Blake  <ebb9@byu.net>
27280
27281         Bump copyright year in files generated by gnulib-tool.
27282         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
27283         gnulib-tool, rather than hard-coding it.
27284
27285         Fix 'gnulib-tool --version' output to work with git.
27286         * gnulib-tool (func_gnulib_dir): New function, extracted from...
27287         (startup): ...here.
27288         (func_version): Use it to invoke git-version-gen, rather than
27289         relying on CVS keyword expansion.  Modernize wording.
27290         (cvsdatestamp, last_checkin_date, version): Kill unused
27291         variables.
27292
27293 2008-03-12  Jim Meyering  <meyering@redhat.com>
27294
27295         Recognize optional cast of the argument to free.
27296         * build-aux/useless-if-before-free: Update regexps.
27297
27298         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
27299
27300 2008-03-11  Bruno Haible  <bruno@clisp.org>
27301
27302         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
27303         by a single package.
27304         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
27305         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
27306         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
27307         Reported by Sam Steingold <sds@gnu.org>.
27308
27309 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
27310
27311         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
27312         repositories.
27313
27314 2008-03-11  Bruno Haible  <bruno@clisp.org>
27315
27316         Avoid conflicts between local macro definitions.
27317         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27318         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
27319
27320 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
27321             Bruno Haible  <bruno@clisp.org>
27322
27323         Make va_copy work with some version of xlc on AIX 5.1.
27324         * lib/stdarg.in.h: New file.
27325         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
27326         On AIX, use a <stdarg.h> file substitute.
27327         * modules/stdarg (Files): Add lib/stdarg.in.h.
27328         (Depends-on): Add include_next.
27329         (Makefile.am): Build a stdarg.h substitute if requested.
27330         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
27331
27332 2008-03-10  Bruno Haible  <bruno@clisp.org>
27333
27334         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
27335         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27336         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27337
27338 2008-03-10  Bruno Haible  <bruno@clisp.org>
27339
27340         * modules/stdlib (Depends-on): Add include_next, remove
27341         absolute-header.
27342
27343 2008-03-09  Bruno Haible  <bruno@clisp.org>
27344
27345         * lib/freadahead.h (freadahead): Document more precisely.
27346         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
27347         the sum of both buffer sizes.
27348         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
27349         * NEWS: Document the change.
27350
27351 2008-03-09  Bruno Haible  <bruno@clisp.org>
27352
27353         Extend freadptr to return also the buffer size.
27354         * lib/freadptr.h (freadptr): Add sizep argument.
27355         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
27356         (freadptr): Add sizep argument. Determine buffer size like freadahead
27357         does.
27358         * tests/test-freadptr.c: Don't include freadahead.h.
27359         (main): Adapt for new calling convention of freadptr.
27360         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
27361         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
27362         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
27363         tests/test-freadptr2.sh.
27364         (Depends): Remove freadahead.
27365         (TESTS): Add test-freadptr2.sh.
27366         (check_PROGRAMS): Add test-freadptr2.
27367
27368 2008-03-09  Bruno Haible  <bruno@clisp.org>
27369
27370         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
27371         Report and solution by Simon Josefsson.
27372
27373 2008-03-06  Bruno Haible  <bruno@clisp.org>
27374
27375         Make fflush after ungetc work on BSD platforms.
27376         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
27377         * tests/test-fflush2.c: New file.
27378         * tests/test-fflush2.sh: New file.
27379         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
27380         tests/test-fflush2.c.
27381         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
27382         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
27383
27384 2008-03-06  Eric Blake  <ebb9@byu.net>
27385
27386         Likewise for ftello.
27387         * modules/ftello (Dependencies): Add extensions.
27388         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
27389
27390 2008-03-06  Bruno Haible  <bruno@clisp.org>
27391
27392         * modules/fseeko (Dependencies): Add extensions.
27393         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
27394         Needed on glibc systems.
27395
27396 2008-03-06  Bruno Haible  <bruno@clisp.org>
27397
27398         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
27399         email address.
27400         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27401
27402 2008-03-06  Bruno Haible  <bruno@clisp.org>
27403
27404         * users.txt: Add libgnupdf.
27405
27406 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27407
27408         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
27409         (Header File Substitutes, Function Substitutes,
27410         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
27411         (Build robot for gnulib): Fix typo.
27412
27413 2008-03-06  Bruno Haible  <bruno@clisp.org>
27414
27415         * doc/gnulib-tool.texi (VCS Issues): Small updates.
27416         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27417
27418 2008-03-06  Bruno Haible  <bruno@clisp.org>
27419
27420         * doc/func.texi: New file, extracted from doc/gnulib.texi.
27421         * doc/gnulib.texi: Include it.
27422
27423 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27424
27425         * modules/func (License): Change license to unlimited; there was
27426         no LGPL parts in the module anyway.
27427
27428 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27429
27430         * modules/__func__: Renamed to modules/func.
27431         * modules/__func__-tests: Renamed to modules/func-tests.
27432         * tests/test-__func__.c: Renamed to tests/test-func.c.
27433         * m4/__func__.m4: Renamed to m4/func.m4.
27434         * doc/gnulib.texi (__func__): Section renamed to func.
27435         Suggested by Eric Blake <ebb9@byu.net>.
27436
27437 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27438
27439         * doc/gnulib.texi (__func__): Use C99 terminology when talking
27440         about __func__.  Make example self-contained.  Suggested by Eric
27441         Blake <ebb9@byu.net>.
27442
27443         * tests/test-__func__.c (main): Avoid extraneous () around __func.
27444         Suggested by Eric Blake <ebb9@byu.net>.
27445
27446 2008-03-06  Simon Josefsson  <simon@josefsson.org>
27447
27448         * modules/__func__: New file.
27449         * modules/__func__-tests: New file.
27450         * tests/test-__func__.c: New file.
27451         * m4/__func__.m4: New file.
27452         * doc/gnulib.texi (__func__): Document __func__ module.
27453
27454 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27455
27456         * modules/byteswap (License): Re-license as LGPLv2+.
27457
27458 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27459
27460         * doc/Makefile: Add pdf target.
27461
27462 2008-03-05  Simon Josefsson  <simon@josefsson.org>
27463
27464         * modules/inline (License): Use 'unlimited', since there are only
27465         *.m4 files in this module.
27466
27467 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27468             Bruno Haible  <bruno@clisp.org>
27469
27470         Add support for HP C 7.1 on OpenVMS 8.3.
27471         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
27472
27473 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
27474
27475         Update VMS specifics.
27476         * lib/getopt.c [VMS]: Remove include of unixlib.h.
27477
27478 2008-03-02  Jim Meyering  <meyering@redhat.com>
27479
27480         Remove the last dependency on the "free" module.
27481         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
27482         Reported by Bob Proulx.
27483
27484         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
27485
27486         Remove useless "if" tests before free.  Deprecate "free" module.
27487         * doc/posix-functions/free.texi: Mention that this
27488         module is no longer useful.
27489         * modules/free (Notice): Say this module is obsolete.
27490         * modules/readutmp (Depends-on): Remove free.
27491         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
27492         * lib/putenv.c (putenv): Likewise.
27493         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
27494         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
27495         * tests/test-c-strcasestr.c (main): Likewise.
27496         * tests/test-c-strstr.c (main): Likewise.
27497         * tests/test-mbscasestr1.c (main): Likewise.
27498         * tests/test-mbscasestr2.c (main): Likewise.
27499         * tests/test-mbsstr1.c (main): Likewise.
27500         * tests/test-mbsstr2.c (main): Likewise.
27501         * tests/test-memmem.c (main): Likewise.
27502         * tests/test-strcasestr.c (main): Likewise.
27503         * tests/test-striconv.c (main): Likewise.
27504         * tests/test-striconveh.c (main): Likewise.
27505         * tests/test-striconveha.c (main): Likewise.
27506         * tests/test-strstr.c (main): Likewise.
27507
27508         * build-aux/git-version-gen: Adjust a comment and the Usage string.
27509
27510         bootstrap: sync from coreutils again
27511         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
27512
27513 2008-03-01  Jim Meyering  <meyering@redhat.com>
27514
27515         bootstrap: sync from coreutils
27516         * build-aux/bootstrap (update_po_files): Copy a .po file into place
27517         also when the target doesn't exist.
27518
27519 2008-03-01  Eric Blake  <ebb9@byu.net>
27520
27521         Fix bugs in last patch.
27522         * lib/memchr2.c (memchr2): Fix typo.
27523         * tests/test-memchr2.c: Test previous bug, and don't use GNU
27524         extension.
27525         Reported by Bruce Korb.
27526
27527         New module 'memchr2'.
27528         * modules/memchr2: New file.
27529         * modules/memchr2-tests: Likewise.
27530         * lib/memchr2.h: Likewise.
27531         * lib/memchr2.c: Likewise, based on memchr.c.
27532         * tests/test-memchr2.c: New test.
27533         * MODULES.html.sh (String handling): Add memchr2.
27534
27535 2008-02-29  Bruno Haible  <bruno@clisp.org>
27536
27537         * modules/freadseek-tests: New file.
27538         * tests/test-freadseek.sh: New file.
27539         * tests/test-freadseek.c: New file.
27540
27541         New module 'freadseek'.
27542         * modules/freadseek: New file.
27543         * lib/freadseek.h: New file.
27544         * lib/freadseek.c: New file.
27545         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
27546
27547 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
27548
27549         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
27550         wydawca.
27551
27552         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
27553         program_invocation_name and program_invocation_short_name are
27554         present.
27555
27556 2008-02-28  Bruno Haible  <bruno@clisp.org>
27557
27558         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
27559         * tests/test-freadptr.sh: Also test non-seekable stdin.
27560
27561 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
27562
27563         * build-aux/bootstrap (source_base, m4_base)
27564         (doc_base, tests_base): New variables.
27565         (gnulib_tool_options): Do not hardcode base directories, use
27566         the above variables instead.
27567
27568 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
27569
27570         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
27571
27572 2008-02-28  Bruno Haible  <bruno@clisp.org>
27573
27574         * modules/freadptr-tests: New file.
27575         * tests/test-freadptr.sh: New file.
27576         * tests/test-freadptr.c: New file.
27577
27578         New module 'freadptr'.
27579         * modules/freadptr: New file.
27580         * lib/freadptr.h: New file.
27581         * lib/freadptr.c: New file.
27582         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
27583
27584 2008-02-26  Karl Berry  <karl@freefriends.org>
27585
27586         Sync from Libtool:
27587         * libltdl/argz.c (argz_add, argz_count): New functions.
27588         * libltdl/argz.in.h: Declare them.
27589         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
27590
27591 2008-02-22  Bruno Haible  <bruno@clisp.org>
27592
27593         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
27594         is a pointer type.  Needed for HP-UX 10.
27595         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
27596         * doc/posix-functions/gmtime_r.texi: Likewise.
27597         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
27598
27599 2008-02-24  Bruno Haible  <bruno@clisp.org>
27600
27601         * modules/environ-tests: New file.
27602         * tests/test-environ.c: New file.
27603
27604         New module 'environ'.
27605         * modules/environ: New file.
27606         * lib/unistd.in.h (environ): New declaration.
27607         * m4/environ.m4: New file.
27608         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
27609         after use.
27610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
27611         HAVE_DECL_ENVIRON.
27612         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
27613         HAVE_DECL_ENVIRON.
27614         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
27615         wrong claim that 'environ' is missing on some systems.
27616         * modules/execute (Depends-on): Add environ.
27617         * lib/execute.c (environ): Remove fallback declaration.
27618         * modules/pipe (Depends-on): Add environ.
27619         * lib/pipe.c (environ): Remove fallback declaration.
27620         * modules/setenv (Depends-on): Add environ.
27621         * lib/setenv.c (environ): Remove fallback declaration.
27622         * modules/unsetenv (Depends-on): Add environ.
27623         * lib/unsetenv.c (environ): Remove fallback declaration.
27624         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
27625         m4/environ.m4.
27626         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
27627         (gl_PREREQ_UNSETENV): Likewise.
27628
27629 2008-02-24  Bruno Haible  <bruno@clisp.org>
27630
27631         * doc/posix-functions/environ.texi: Document the MacOS X problem.
27632
27633 2008-02-20  Bob Proulx  <bob@proulx.com>
27634
27635         Enable use of older two part flavor 'git describe'.
27636         * build-aux/git-version-gen: If using the older two part flavor of
27637         git version then recreate the third part now present in the
27638         newer three part flavor of git describe.
27639
27640 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
27641
27642         * lib/fts.c (fts_build): Typo correction to comment.
27643
27644 2008-02-17  Bruno Haible  <bruno@clisp.org>
27645
27646         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
27647         generating no-op conflicts.
27648
27649 2008-02-17  Bruno Haible  <bruno@clisp.org>
27650
27651         Speed up by 10%.
27652         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
27653         result_entries, rather than an index-based loop.
27654
27655 2008-02-17  Bruno Haible  <bruno@clisp.org>
27656
27657         Speed up by 25%.
27658         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
27659         'hashcode_cached'.
27660         (entry_create): New function.
27661         (entry_hashcode): Use the cached hashcode if possible.
27662         (read_changelog_file, try_split_merged_entry): Use entry_create.
27663
27664 2008-02-17  Bruno Haible  <bruno@clisp.org>
27665
27666         Speed up from O(n^2) to O(n) for long ChangeLog files.
27667         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
27668         (read_changelog_file): Change implementation of entries_reversed list
27669         to rbtreehash.
27670         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
27671
27672 2008-02-17  Bruno Haible  <bruno@clisp.org>
27673
27674         New option --split-merged-entry.
27675         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
27676         (find_paragraph_end, try_split_merged_entry): New functions.
27677         (long_options): Add option --split-merged-entry.
27678         (usage): Document option --split-merged-entry.
27679         (main): Implement option --split-merged-entry.
27680         Reported by Eric Blake.
27681
27682 2008-02-17  Bruno Haible  <bruno@clisp.org>
27683
27684         * lib/git-merge-changelog.c: Include c-strstr.h.
27685         (main): Support the "git pull --rebase" situation.
27686         * modules/git-merge-changelog (Depends-on): Add c-strstr.
27687         Reported by Eric Blake.
27688
27689 2008-02-16  Eric Blake  <ebb9@byu.net>
27690
27691         Avoid doubling \ in common case of "c-maybe" quoting style.
27692         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
27693         eliding outer quotes.
27694         * lib/quotearg.h: Document this.
27695         * tests/test-quotearg.c (result_strings, inputs, results_g)
27696         (flag_results, locale_results): Test it by adding a new string to
27697         each test group.
27698         (compare_strings): Test new string.
27699
27700 2008-02-13  Eric Blake  <ebb9@byu.net>
27701
27702         Avoid trigraph quoting in default output.
27703         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
27704         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
27705         unless explicitly requested.
27706         * tests/test-quotearg.c (flag_results, main): Add additional tests.
27707
27708 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
27709
27710         Don't rely on signed integer overflowing to negative value.
27711         * lib/getugroups.c (getugroups): Include <limits.h>.
27712         Instead, compare against INT_MAX, and increment only if the test passes.
27713
27714 2008-02-13  Jim Meyering  <meyering@redhat.com>
27715         and Eric Blake  <ebb9@byu.net>
27716
27717         Avoid shadowing warning and compile errors on Linux.
27718         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
27719         forwarding macros on Linux.
27720         (dcgettext): Define a stub, for Linux.
27721         (results_g, main): Avoid warnings.
27722
27723 2008-02-12  Eric Blake  <ebb9@byu.net>
27724
27725         Silence warning in last patch.
27726         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
27727
27728         Quotearg part 4: add tests, fix c-maybe colon quoting.
27729         * lib/quotearg.h: Improve documentation.
27730         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
27731         escapes when adding outer quotes.  When quoting trigraphs, use
27732         valid C notation.  When quoting NUL, omit extra characters if next
27733         character is not digit.  Alter prototype.
27734         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
27735         callers.
27736         * modules/quotearg-tests: New module.
27737         * tests/test-quotearg.c: New test.
27738
27739 2008-02-07  Eric Blake  <ebb9@byu.net>
27740
27741         Quotearg part 3: add flag to control outer quote elision.
27742         * lib/quotearg.h (c_maybe_quoting_style): New style.
27743         (enum quoting_flags): Better documentation of flags.
27744         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
27745         c-maybe style.
27746         (quotearg_buffer_restyled): Handle new flag to elide outer
27747         quotes.
27748
27749         Quotearg part 2: add flag that can control NUL elision.
27750         * lib/quotearg.h (set_quoting_flags): New prototype.
27751         * lib/quotearg.c (struct quoting_options): Add flag field.
27752         (set_quoting_flags): New function.
27753         (quotearg_buffer_restyled): Add flags parameter.
27754         (quotearg_alloc_mem): Set the flag if length cannot be returned.
27755         (quotearg_n_options): Set the flag, since length cannot be
27756         returned.
27757         (quoting_options_from_style): Default flags correctly.
27758
27759         Quotearg part 1: more wrappers, restore quotearg_char state.
27760         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
27761         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
27762         (quotearg_colon_mem): New wrappers.
27763         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
27764         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
27765         functions.
27766         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
27767         (quotearg_colon_mem): New functions.
27768
27769 2008-02-11  Bruno Haible  <bruno@clisp.org>
27770
27771         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
27772         library in the current directory: it does not work with parallel make.
27773         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27774
27775 2008-02-11  Bruno Haible  <bruno@clisp.org>
27776
27777         * .gitattributes: New file.
27778
27779 2008-02-11  Jim Meyering  <meyering@redhat.com>
27780
27781         useless-if-before-free: Fix reversed exit values.
27782         * build-aux/useless-if-before-free: Use correct values
27783         for EXIT_MATCH and EXIT_NO_MATCH.
27784
27785         * build-aux/useless-if-before-free: Close stdout carefully.
27786
27787 2008-02-10  Bruno Haible  <bruno@clisp.org>
27788
27789         New module 'git-merge-changelog'.
27790         * modules/git-merge-changelog: New file.
27791         * lib/git-merge-changelog.c: New file.
27792
27793 2008-02-10  Jim Meyering  <meyering@redhat.com>
27794
27795         useless-if-before-free: New option: --list (-l).
27796
27797         useless-if-before-free: Don't exit immediately upon open failure.
27798         * build-aux/useless-if-before-free: Exit 2 for errors.
27799         Upon failure to open a file, don't exit immediately.
27800         Rather, just warn and continue with any remaining files.
27801
27802 2008-02-10  Bruno Haible  <bruno@clisp.org>
27803
27804         New abstract list operation 'node_set_value'.
27805         * lib/gl_list.h (gl_list_node_set_value): New function.
27806         (struct gl_list_implementation): New field node_set_value.
27807         * lib/gl_list.c (gl_list_node_set_value): New function.
27808         * lib/gl_array_list.c (gl_array_node_set_value): New function.
27809         (gl_array_list_implementation): Update.
27810         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
27811         (gl_carray_list_implementation): Update.
27812         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
27813         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
27814         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
27815         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
27816         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
27817         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
27818         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
27819         Update.
27820         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
27821         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
27822         (gl_sublist_list_implementation): Update.
27823
27824 2008-02-10  Bruno Haible  <bruno@clisp.org>
27825
27826         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
27827         Needed when ELEMENT is #defined to 'some_type *'.
27828
27829 2008-02-10  Jim Meyering  <meyering@redhat.com>
27830
27831         New script and module: useless-if-before-free
27832         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
27833         * build-aux/useless-if-before-free: New file.
27834         * modules/useless-if-before-free: New file.
27835
27836         * build-aux/gitlog-to-changelog: Use committer date, not author date.
27837
27838         xstrtol_error: Fix typo.
27839         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
27840         s/exit_failure/exit_status/.
27841
27842 2008-02-09  Jim Meyering  <meyering@redhat.com>
27843
27844         New script and module: gitlog-to-changelog
27845         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
27846         * modules/gitlog-to-changelog: New file.
27847         * build-aux/gitlog-to-changelog: New file.
27848
27849 2008-02-08  Jim Meyering  <meyering@redhat.com>
27850
27851         Avoid two "parameter unused" warnings.
27852         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
27853         Mark "st" as used.
27854
27855         Use "git COMMAND", not "git-COMMAND".
27856         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
27857         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
27858         * build-aux/git-version-gen: Use "git status", not "git-status".
27859
27860 2008-02-07  Bruno Haible  <bruno@clisp.org>
27861
27862         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
27863         Avoids a crash on Windows Vista.
27864         Reported by Adam Strzelecki <ono@java.pl> via
27865         Simon Josefsson <simon@josefsson.org>.
27866
27867 2008-02-06  Bruno Haible  <bruno@clisp.org>
27868
27869         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
27870         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
27871         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
27872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
27873         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27874         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27875         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
27876         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
27877         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27878         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27879         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27881         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27882         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27883         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27884         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
27885         left-adjust flag.
27886         * tests/test-snprintf-posix.h (test_function): Likewise.
27887         * tests/test-sprintf-posix.h (test_function): Likewise.
27888         * tests/test-vasprintf-posix.c (test_function): Likewise.
27889         * doc/posix-functions/fprintf.texi: Update.
27890         * doc/posix-functions/printf.texi: Update.
27891         * doc/posix-functions/snprintf.texi: Update.
27892         * doc/posix-functions/sprintf.texi: Update.
27893         * doc/posix-functions/vfprintf.texi: Update.
27894         * doc/posix-functions/vprintf.texi: Update.
27895         * doc/posix-functions/vsnprintf.texi: Update.
27896         * doc/posix-functions/vsprintf.texi: Update.
27897         Reported by Peter Fales <psfales@alcatel-lucent.com>.
27898
27899 2008-02-06  Bruno Haible  <bruno@clisp.org>
27900
27901         Fix bug introduced on 2008-01-26.
27902         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
27903
27904 2008-02-06  Bruno Haible  <bruno@clisp.org>
27905
27906         Fix bug introduced on 2007-06-10.
27907         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
27908         !NEED_PRINTF_FLAG_ZERO.
27909
27910 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
27911
27912         getloadavg: use libperfstat on AIX5
27913         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
27914
27915 2008-02-03  Bruno Haible  <bruno@clisp.org>
27916
27917         * lib/diffseq.h: Add comments about required #includes.
27918         Reported by Michael Biggs <gnulib@doubleplum.net>.
27919
27920 2008-02-01  Bruno Haible  <bruno@clisp.org>
27921
27922         * users.txt: Add gnuit.
27923
27924 2008-01-31  Bruno Haible  <bruno@clisp.org>
27925
27926         * lib/md4.c (set_uint32): Mark as inline.
27927         * lib/md5.c (set_uint32): Likewise.
27928         * lib/sha1.c (set_uint32): Likewise.
27929         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
27930         * m4/md5.m4 (gl_MD5): Likewise.
27931         * m4/sha1.m4 (gl_SHA1): Likewise.
27932
27933 2008-01-31  Jim Meyering  <meyering@redhat.com>
27934
27935         Use "sizeof VAR", rather than a literal "4".
27936         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
27937         * lib/md4.c (md4_read_ctx): Likewise.
27938         * lib/sha1.c (sha1_read_ctx): Likewise.
27939
27940 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27941
27942         * tests/test-sha1.c: New file, based on test-md5.c.
27943
27944         * modules/crypto/sha1-tests: New file.
27945
27946 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27947
27948         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
27949
27950 2008-01-31  Jim Meyering  <meyering@redhat.com>
27951
27952         Prefer "sizeof v" over the equivalent "4".
27953         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
27954         * lib/md5.c (set_uint32): Likewise.
27955         * lib/sha1.c (set_uint32): Likewise.
27956
27957 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27958
27959         * lib/sha1.c (set_uint32): Mark function as static.
27960
27961 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27962
27963         md2: clarify comments to say that alignment is not required.
27964         * lib/md2.h: Remove warning about alignment in comment.
27965         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
27966         never been required.
27967
27968 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27969
27970         md4: adapt alignment constraint fix from sha1.
27971         * lib/md4.c (set_uint32): New function, from sha1.c
27972         (md4_read_ctx): Use it.
27973         (md4_finish_ctx): Doc fix.
27974         * lib/md4.h: Doc fix.
27975
27976 2008-01-31  Simon Josefsson  <simon@josefsson.org>
27977
27978         md5: adapt alignment constraint fix from sha1.
27979         * lib/md5.c (set_uint32): New function, from sha1.c
27980         (md5_read_ctx): Use it.
27981         (md5_finish_ctx): Doc fix.
27982         * lib/md5.h: Doc fix.
27983
27984 2008-01-30  Peter Palfrader  <weasel@debian.org>
27985
27986         sha1: remove the result buffer alignment constraint
27987         * lib/sha1.c (set_uint32): New function.
27988         (sha1_read_ctx): Rewrite to remove the result buffer alignment
27989         constraint.
27990         (sha1_finish_ctx): Remove comment warning about alignment constraint.
27991         * lib/sha1.h: Likewise.
27992
27993 2008-01-30  Andreas Schwab  <schwab@suse.de>
27994             Bruno Haible  <bruno@clisp.org>
27995
27996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
27997         correct definition of LDBL_MIN_EXP.
27998
27999 2008-01-30  Karl Berry  <karl@gnu.org>
28000
28001         * config/srclist-update: try to preserve x bit on updates.
28002         * config/srclistvars.sh: update for karl.
28003
28004 2008-01-29  Jim Meyering  <meyering@redhat.com>
28005
28006         vasnprintf.c: Avoid warning about unused label
28007         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
28008         "overflow" label definition and associated code with the
28009         same cpp condition that guards the sole use of that label.
28010
28011 2008-01-26  Bruno Haible  <bruno@clisp.org>
28012
28013         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
28014         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
28015         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
28016         * lib/isnanl-nolibm.h (isnanl): Likewise.
28017         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28018
28019 2008-01-26  Bruno Haible  <bruno@clisp.org>
28020
28021         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
28022         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
28023
28024 2008-01-26  Bruno Haible  <bruno@clisp.org>
28025
28026         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
28027         GCC >= 4.0 built-in.
28028         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
28029
28030 2008-01-26  Bruno Haible  <bruno@clisp.org>
28031
28032         Rename isnan, applicable to 'double' only, to isnand.
28033         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
28034         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
28035         (configure.ac): Update.
28036         (Include): Replace "isnan.h" with "isnand.h".
28037         * m4/isnand.m4: Renamed from m4/isnan.m4.
28038         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
28039         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
28040         instead of isnan.c.
28041         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
28042         instead of HAVE_ISNAN_IN_LIBC.
28043         (isnand): Renamed from isnan.
28044         * lib/isnand.c: New file.
28045         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
28046         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
28047         (Makefile.am): Update.
28048         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
28049         Include isnand.h instead of isnan.h.
28050         (main): Test isnand instead of isnan.
28051         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
28052         isnan-nolibm.
28053         * modules/frexp (Depends-on): Likewise.
28054         * modules/frexp-tests (Depends-on): Likewise.
28055         * modules/frexp-nolibm (Depends-on): Likewise.
28056         * modules/frexp-nolibm-tests (Depends-on): Likewise.
28057         * modules/isfinite (Depends-on): Likewise.
28058         * modules/round-tests (Depends-on): Likewise.
28059         * modules/signbit (Depends-on): Likewise.
28060         * modules/signbit-tests (Depends-on): Likewise.
28061         * modules/snprintf-posix (Depends-on): Likewise.
28062         * modules/sprintf-posix (Depends-on): Likewise.
28063         * modules/trunc-tests (Depends-on): Likewise.
28064         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28066         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28071         * modules/vasnprintf-posix (Depends-on): Likewise.
28072         * modules/vasprintf-posix (Depends-on): Likewise.
28073         * modules/vfprintf-posix (Depends-on): Likewise.
28074         * modules/vsnprintf-posix (Depends-on): Likewise.
28075         * modules/vsprintf-posix (Depends-on): Likewise.
28076         * lib/frexp.c: Include isnand.h instead of isnan.h.
28077         (ISNAN): Set to isnand instead of isnan.
28078         * lib/isfinite.c: Include isnand.h instead of isnan.h.
28079         (gl_isfinited): Use isnand instead of isnan.
28080         * lib/signbitd.c: Include isnand.h instead of isnan.h.
28081         (gl_signbitd): Use isnand instead of isnan.
28082         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
28083         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
28084         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
28085         (main): Use isnand instead of isnan.
28086         * tests/test-round1.c: Include isnand.h.
28087         (main): Use isnand instead of isnan.
28088         * tests/test-round2.c: Include isnand.h instead of isnan.h.
28089         (ISNAN): Set to isnand instead of isnan.
28090         * tests/test-trunc1.c: Include isnand.h.
28091         (main): Use isnand instead of isnan.
28092         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
28093         (equal): Use isnand instead of isnan.
28094         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
28095         isnand-nolibm.
28096         * NEWS: Mention the change.
28097
28098 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28099             Bruno Haible  <bruno@clisp.org>
28100
28101         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
28102         the GCC builtins for signbits are present and set
28103         REPLACE_SIGNBIT_USING_GCC if so.
28104         * lib/math.in.h (signbit): Define using GCC builtins if
28105         REPLACE_SIGNBIT_USING_GCC is set.
28106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
28107         REPLACE_SIGNBIT_USING_GCC.
28108         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
28109
28110 2008-01-25  Jim Meyering  <meyering@redhat.com>
28111
28112         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
28113         * lib/poll.c: Include <config.h>, not "config.h".
28114         * tests/test-getaddrinfo.c: Likewise.
28115
28116 2008-01-25  Simon Josefsson  <simon@josefsson.org>
28117
28118         * modules/sockets-tests: New file.
28119
28120 2008-01-24  Simon Josefsson  <simon@josefsson.org>
28121
28122         * modules/sockets: New module, can be used to call WSA_Startup and
28123         WSA_Cleanup when needed.
28124
28125         * lib/sockets.h, lib/sockets.c: New files.
28126
28127         * m4/sockets.m4: New file.
28128
28129         * tests/test-sockets.c: New file.
28130
28131 2008-01-19  Bruno Haible  <bruno@clisp.org>
28132
28133         * doc/posix-headers: Renamed from doc/headers.
28134         * doc/posix-functions: Renamed from doc/functions.
28135         * doc/gnulib.texi: Update.
28136
28137 2008-01-19  Bruno Haible  <bruno@clisp.org>
28138
28139         * doc/glibc-functions/strcasestr.texi: Include contents of
28140         doc/functions/strcasestr.texi, fixing the list of platforms.
28141         * doc/functions/strcasestr.texi: Remove file.
28142
28143 2008-01-19  Bruno Haible  <bruno@clisp.org>
28144
28145         * doc/glibc-functions/memmem.texi: Include contents of
28146         doc/functions/memmem.texi.
28147         * doc/functions/memmem.texi: Remove file.
28148
28149 2008-01-18  Bruno Haible  <bruno@clisp.org>
28150
28151         * doc/glibc-functions/*.texi: New files.
28152         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
28153         to use the new files.
28154
28155 2008-01-17  Bruno Haible  <bruno@clisp.org>
28156
28157         * tests/test-gethostname.c (main): Fix printf statement.
28158
28159 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28160
28161         * modules/gethostname-tests: New file.
28162
28163         * tests/test-gethostname.c: New file.
28164
28165 2008-01-17  Simon Josefsson  <simon@josefsson.org>
28166
28167         * lib/gethostname.c: Include string.h unconditionally, strncpy is
28168         used by the UNAME case.  Reported by Bruno Haible
28169         <bruno@clisp.org>.
28170
28171 2008-01-17  Eric Blake  <ebb9@byu.net>
28172
28173         Convert c-strcasestr to be more efficient.
28174         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
28175         (Depends-on): Add c-strcase, remove malloca, strnlen.
28176         * tests/test-c-strcasestr.c (main): Enhance test.
28177         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
28178
28179 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28180
28181         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
28182         Use it in creating po/Makevars.
28183
28184 2008-01-15  Simon Josefsson  <simon@josefsson.org>
28185
28186         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
28187         Applications that requires it should initialize libgcrypt
28188         manually.
28189
28190 2008-01-16  Simon Josefsson  <simon@josefsson.org>
28191
28192         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
28193
28194 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28195
28196         Fix problem with getdate on mingw32 reported by Simon Josefsson
28197         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
28198         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
28199         tzname", when deciding whether to declare tzname.
28200         * lib/strftime.c (tzname): Likewise.
28201
28202 2008-01-15  Bruno Haible  <bruno@clisp.org>
28203
28204         Work around a MacOS X 10.5 bug in frexpl().
28205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
28206         * doc/functions/frexpl.texi: Document the bug.
28207         Reported by Elias Pipping <pipping@gentoo.org>.
28208
28209 2008-01-14  Eric Blake  <ebb9@byu.net>
28210
28211         Touch up previous patch.
28212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
28213         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
28214
28215         Convert strcasestr module to use Two-Way algorithm.
28216         * modules/strcasestr-simple: New module, based on the old
28217         strcasestr, but with Two-Way rather than KMP.
28218         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
28219         * lib/string.in.h (rpl_strcasestr): Declare.
28220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
28221         performance.
28222         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
28223         * modules/string (Makefile.am): Support strcasestr.
28224         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28225         * modules/strcasestr-tests (Depends-on): Check for alarm.
28226         * tests/test-strcasestr.c: Augment test.
28227         * lib/str-two-way.h: Clean up stray macro.
28228         * NEWS: Document new module.
28229         * MODULES.html.sh (string handling): Likewise.
28230         * doc/functions/strcasestr.texi: New file.
28231         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
28232         here, since it is not a POSIX function.
28233
28234 2008-01-14  Colin Watson  <cjwatson@debian.org>
28235             Bruno Haible  <bruno@clisp.org>
28236
28237         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
28238         works fine; if not, set REPLACE_STRSIGNAL.
28239         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
28240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28241         REPLACE_STRSIGNAL.
28242         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
28243         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
28244         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
28245
28246 2008-01-14  Bruno Haible  <bruno@clisp.org>
28247
28248         * modules/strsignal (Include): Change to <string.h>.
28249
28250 2008-01-14  Colin Watson  <cjwatson@debian.org>
28251
28252         * modules/argp (Notice): Add a notice recommending to change
28253         XGETTEXT_OPTIONS.
28254         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
28255
28256 2008-01-13  Colin Watson  <cjwatson@debian.org>
28257
28258         * modules/strsignal-tests: New file.
28259         * tests/test-strsignal.c: New file.
28260
28261         * lib/strsignal.c: New file, from glibc with modifications.
28262         * lib/siglist.h: New file, from glibc with modifications.
28263         * lib/string.in.h (strsignal): New declaration.
28264         * m4/strsignal.m4: New file.
28265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28266         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
28267         * modules/strsignal: New file.
28268         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
28269         HAVE_DECL_STRSIGNAL.
28270
28271 2008-01-13  Bruno Haible  <bruno@clisp.org>
28272
28273         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
28274         locale encoding is not ASCII. Needed for OpenBSD 4.0.
28275         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28276         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28277
28278 2008-01-13  Bruno Haible  <bruno@clisp.org>
28279
28280         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
28281         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
28282         * lib/argp.h (__attribute__): Likewise.
28283         * lib/c-stack.c (__attribute__): Likewise.
28284         * lib/error.h (__attribute__): Likewise.
28285         * lib/fts.c (__attribute__): Likewise.
28286         * lib/openat.h (__attribute__): Likewise.
28287         * lib/stdio.in.h (__attribute__): Likewise.
28288         * lib/string.in.h (__attribute__): Likewise.
28289         * lib/utimens.c (__attribute__): Likewise.
28290         * lib/vasnprintf.h (__attribute__): Likewise.
28291         * lib/xalloc.h (__attribute__): Likewise.
28292         * lib/xprintf.h (__attribute__): Likewise.
28293         * lib/xstrtol.h (__attribute__): Likewise.
28294         * lib/xvasprintf.h (__attribute__): Likewise.
28295
28296 2008-01-12  Bruno Haible  <bruno@clisp.org>
28297
28298         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
28299         * doc/glibc-headers/a.out.texi: New file.
28300         * doc/glibc-headers/aliases.texi: New file.
28301         * doc/glibc-headers/alloca.texi: New file.
28302         * doc/glibc-headers/ar.texi: New file.
28303         * doc/glibc-headers/argp.texi: New file.
28304         * doc/glibc-headers/argz.texi: New file.
28305         * doc/glibc-headers/byteswap.texi: New file.
28306         * doc/glibc-headers/crypt.texi: New file.
28307         * doc/glibc-headers/endian.texi: New file.
28308         * doc/glibc-headers/envz.texi: New file.
28309         * doc/glibc-headers/err.texi: New file.
28310         * doc/glibc-headers/error.texi: New file.
28311         * doc/glibc-headers/execinfo.texi: New file.
28312         * doc/glibc-headers/fpu_control.texi: New file.
28313         * doc/glibc-headers/fstab.texi: New file.
28314         * doc/glibc-headers/fts.texi: New file.
28315         * doc/glibc-headers/getopt.texi: New file.
28316         * doc/glibc-headers/ieee754.texi: New file.
28317         * doc/glibc-headers/ifaddrs.texi: New file.
28318         * doc/glibc-headers/libintl.texi: New file.
28319         * doc/glibc-headers/mcheck.texi: New file.
28320         * doc/glibc-headers/mntent.texi: New file.
28321         * doc/glibc-headers/obstack.texi: New file.
28322         * doc/glibc-headers/paths.texi: New file.
28323         * doc/glibc-headers/printf.texi: New file.
28324         * doc/glibc-headers/pty.texi: New file.
28325         * doc/glibc-headers/resolv.texi: New file.
28326         * doc/glibc-headers/shadow.texi: New file.
28327         * doc/glibc-headers/sysexits.texi: New file.
28328         * doc/glibc-headers/ttyent.texi: New file.
28329
28330 2008-01-12  Jim Meyering  <meyering@redhat.com>
28331
28332         announce-gen: emit Gnulib's git-based version string.
28333         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
28334         New option --gnulib-version=V, where V is expected to be
28335         the output of running git describe in the gnulib directory.
28336         (get_tool_versions): Request feedback on xdelta.  I suspect it's
28337         not useful, and plan to stop publishing an xdelta file with each
28338         coreutils release.
28339
28340         * build-aux/announce-gen: Also check for lzma-compressed files.
28341
28342 2008-01-11  Bruno Haible  <bruno@clisp.org>
28343
28344         * tests/test-memmem.c (main): Increase maximum allowed time.
28345         * tests/test-strstr.c (main): Likewise.
28346
28347 2008-01-11  Bruno Haible  <bruno@clisp.org>
28348
28349         * doc/functions/memmem.texi: Add more precisions about platforms.
28350         * doc/functions/strstr.texi: Likewise.
28351
28352 2008-01-10  Eric Blake  <ebb9@byu.net>
28353
28354         * m4/strstr.m4: Delete cruft from copy-n-paste.
28355         Reported by Bruno Haible.
28356
28357 2008-01-10  Bruno Haible  <bruno@clisp.org>
28358
28359         Make c-strstr rely on strstr.
28360         * lib/c-strstr.c: Don't include str-kmp.h.
28361         (c_strstr): Define in terms of strstr.
28362         * modules/c-strstr (Files): Remove lib/str-kmp.h.
28363         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
28364
28365 2008-01-10  Bruno Haible  <bruno@clisp.org>
28366
28367         * doc/gnulib.texi (String Functions in C Locale): New section.
28368         * doc/c-ctype.texi: New file.
28369         * doc/c-strcase.texi: New file.
28370         * doc/c-strcaseeq.texi: New file.
28371         * doc/c-strcasestr.texi: New file.
28372         * doc/c-strstr.texi: New file.
28373         * doc/c-strtod.texi: New file.
28374         * doc/c-strtold.texi: New file.
28375
28376 2008-01-10  Eric Blake  <ebb9@byu.net>
28377
28378         * lib/relocatable.h: Fix a comment.
28379
28380 2008-01-10  Eric Blake  <ebb9@byu.net>
28381
28382         Share two-way algorithm.
28383         * lib/str-two-way.h: New file, merged from...
28384         * lib/memmem.c: ...here...
28385         * lib/strstr.c: ...and here.
28386         * modules/memmem (Files): Use it.
28387         * modules/strstr (Files): Likewise.
28388
28389         Avoid quadratic strstr implementations.
28390         * lib/strstr.c: New file.
28391         * m4/strstr.m4: Likewise.
28392         * modules/strstr: Likewise.
28393         * modules/strstr-tests: Likewise.
28394         * tests/test-strstr.c: Likewise.
28395         * lib/string.in.h (rpl_strstr): Declare.
28396         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
28397         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
28398         * modules/string (Makefile.am): Likewise.
28399         * MODULES.html.sh (string handling): Mention new module.
28400         * doc/functions/strstr.texi (strstr): Document the bug.
28401
28402 2008-01-10  Bruno Haible  <bruno@clisp.org>
28403
28404         * lib/relocatable.h (relocate): State whether result is freshly
28405         allocated or not.
28406         * lib/relocatable.c (relocate): Return a freshly allocated string
28407         instead of a pointer to a privately held string.
28408         Reported by Sylvain Beucler <beuc@gnu.org>.
28409
28410 2008-01-10  Colin Watson  <cjwatson@debian.org>
28411
28412         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
28413         s/S_ISNLK/S_ISLNK/.
28414
28415 2008-01-09  Bruno Haible  <bruno@clisp.org>
28416
28417         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
28418         and other files.
28419         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
28420         if it's only a guess.
28421         * modules/memmem: Simplify by depending on memmem-simple.
28422
28423 2008-01-09  Bruno Haible  <bruno@clisp.org>
28424
28425         Work around OpenBSD 4.0 tdelete() bug.
28426         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
28427         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
28428         macros and don't redefine the enum values.
28429         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
28430         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
28431         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
28432
28433 2008-01-09  Bruno Haible  <bruno@clisp.org>
28434
28435         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
28436         (main): Don't perform the tests if setlocale did not install a UTF-8
28437         locale. Needed on OpenBSD 4.0.
28438         * modules/wcwidth-tests (Depends-on): Add localcharset.
28439
28440 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
28441
28442         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
28443         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
28444         * NEWS: announce this.
28445         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
28446
28447 2008-01-09  Simon Josefsson  <simon@josefsson.org>
28448         and Eric Blake  <ebb9@byu.net>
28449
28450         Add memmem-simple module.
28451         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
28452         (gl_FUNC_MEMMEM): Separate performance from presence checks.
28453         * modules/memmem-simple: New file.
28454         * modules/memmem (Description): Tweak.
28455         * MODULES.html.sh (string handling): Mention new module.
28456         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
28457         addressed by memmem-simple.
28458         * NEWS: Document the difference.
28459
28460 2008-01-09  Eric Blake  <ebb9@byu.net>
28461
28462         Give gcc some memmem optimization hints.
28463         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
28464         (strcasestr): Declare as pure.
28465         * modules/memmem (Maintainer): Claim my implementation.
28466
28467 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28468
28469         Support AIX 6.1 and higher.
28470         * build-aux/config.libpath: Likewise.
28471         * build-aux/config.rpath: Likewise.
28472
28473 2008-01-08  Jim Meyering  <meyering@redhat.com>
28474             Bruno Haible  <bruno@clisp.org>
28475
28476         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
28477         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
28478         Reported by Peter Fales in
28479         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
28480
28481 2008-01-08  Bruno Haible  <bruno@clisp.org>
28482
28483         * modules/unictype/category-of (Depends-on): Add
28484         unictype/category-none.
28485         * modules/unictype/category-and-tests (Depends-on): Add
28486         unictype/category-{L,N,Lu,Nd}.
28487         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
28488         * modules/unictype/category-or-tests (Depends-on): Add
28489         unictype/category-{L,N}.
28490         * modules/unictype/category-name-tests (Depends-on): Add
28491         unictype/category-{Z,Nl}.
28492         Reported by Simon Josefsson.
28493
28494 2008-01-08  Bruno Haible  <bruno@clisp.org>
28495
28496         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
28497         convention better.
28498         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
28499         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
28500         Reported by Peter Miller <millerp@canb.auug.org.au>.
28501
28502 2008-01-08  Eric Blake  <ebb9@byu.net>
28503
28504         Rewrite memmem to guarantee linear complexity without malloc.
28505         * lib/memmem.c (memmem): Use Two-Way rather than
28506         Knuth-Morris-Pratt, to allow O(1) space usage.
28507         (critical_factorization, two_way_short_needle)
28508         (two_way_long_needle): New functions.
28509         (knuth_morris_pratt): Delete.
28510         * modules/memmem (Depends-on): No longer need malloca or stdbool.
28511         Add stdint.
28512         * tests/test-memmem.c (main): Add tests for periodic needle and
28513         sublinear performance.
28514         * doc/functions/memmem.texi (memmem): Document other deficiencies
28515         in cygwin and older glibc.
28516
28517 2008-01-08  Bruno Haible  <bruno@clisp.org>
28518
28519         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
28520         augmentation.
28521
28522 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
28523
28524         Add a configure time option: --disable-acl.
28525         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
28526         AC_ARG_ENABLE(acl).
28527
28528 2008-01-06  Simon Josefsson  <simon@josefsson.org>
28529
28530         * tests/test-localename.c: Don't include obsolete "setenv.h".
28531
28532         * modules/localename-tests (Depends-on): Need unsetenv.
28533
28534 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28535
28536         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
28537
28538 2008-01-06  Colin Watson  <cjwatson@debian.org>
28539
28540         * users.txt: Add man-db.
28541
28542 2008-01-07  Bruno Haible  <bruno@clisp.org>
28543
28544         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
28545         previous section name.
28546
28547 2008-01-07  Bruno Haible  <bruno@clisp.org>
28548
28549         * lib/progname.c (set_program_name): Don't strip off a leading
28550         "lt-" prefix outside a .libs directory.
28551         Suggested by Paul Eggert.
28552
28553 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
28554             Bruno Haible  <bruno@clisp.org>
28555
28556         Improve memory cleanup in 'relocatable' module.
28557         * lib/relocatable.h (compute_curr_prefix): Change return type to
28558         'char *'.
28559         * lib/relocatable.c (compute_curr_prefix): Change return type to
28560         'char *'. Free curr_installdir after use.
28561         (relocate): Free curr_prefix_better after use.
28562         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
28563
28564 2008-01-01  Bruno Haible  <bruno@clisp.org>
28565
28566         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
28567         failure on older glibc systems.
28568         Reported by Peter Fales <psfales@alcatel-lucent.com>.
28569
28570 2008-01-05  Eric Blake  <ebb9@byu.net>
28571
28572         Avoid quadratic system memmem.
28573         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
28574         Reported by Ralf Wildenhues.
28575
28576         Fix memmem test for mingw.
28577         * modules/memmem-tests (configure.ac): Check for alarm.
28578         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
28579         it.
28580         * doc/functions/memmem.texi: New file.
28581         * doc/gnulib.texi (Function Substitutes): Add memmem.
28582         Reported by Bruno Haible.
28583
28584 2008-01-04  Bruno Haible  <bruno@clisp.org>
28585
28586         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
28587         Require gl_HEADER_STRINGS_H_DEFAULTS, not
28588         gl_HEADER_STRING_H_DEFAULTS.
28589
28590 2008-01-04  Eric Blake  <ebb9@byu.net>
28591
28592         Shorten duration of memmem test.
28593         * tests/test-memmem.c (main): Use alarm to declare failure if test
28594         is taking too long.
28595         Reported by Ralf Wildenhues.
28596
28597 2007-12-21  Simon Josefsson  <simon@josefsson.org>
28598
28599         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
28600         string, needed by strerror.
28601
28602 2008-01-03  Colin Watson  <cjwatson@debian.org>
28603             Bruno Haible  <bruno@clisp.org>
28604
28605         * doc/gnulib-tool.texi (Localization): New section.
28606
28607 2008-01-02  Bruno Haible  <bruno@clisp.org>
28608
28609         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
28610         variables to 'unsigned char *' type.
28611         Reported by Paul Eggert.
28612
28613 2008-01-02  Jim Meyering  <jim@meyering.net>
28614
28615         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
28616
28617 2007-12-31  Jim Meyering  <jim@meyering.net>
28618
28619         Avoid use of private FTS type name.
28620         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
28621
28622 2007-12-30  Karl Berry  <karl@gnu.org>
28623
28624         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
28625         work around defect in Texinfo and/or the standalone Info browser.
28626
28627 2007-12-30  Bruno Haible  <bruno@clisp.org>
28628
28629         Unify 5 copies of the KMP code.
28630         * lib/str-kmp.h: New file.
28631         * lib/c-strcasestr.c: Include str-kmp.h.
28632         (knuth_morris_pratt): Remove function.
28633         (c_strcasestr): Update.
28634         * lib/c-strstr.c: Include str-kmp.h.
28635         (knuth_morris_pratt): Remove function.
28636         (c_strcasestr): Update.
28637         * lib/mbscasestr.c: Include str-kmp.h.
28638         (knuth_morris_pratt_unibyte): Remove function.
28639         * lib/mbsstr.c: Include str-kmp.h.
28640         (knuth_morris_pratt_unibyte): Remove function.
28641         * lib/strcasestr.c: Include str-kmp.h.
28642         (knuth_morris_pratt): Remove function.
28643         (strcasestr): Update.
28644         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
28645         * modules/c-strstr (Files): Likewise.
28646         * modules/mbscasestr (Files): Likewise.
28647         * modules/mbsstr (Files): Likewise.
28648         * modules/strcasestr (Files): Likewise.
28649         Suggested by Paul Eggert.
28650
28651 2007-12-30  Bruno Haible  <bruno@clisp.org>
28652
28653         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
28654         defined.
28655
28656 2007-12-30  Bruno Haible  <bruno@clisp.org>
28657
28658         * lib/xmalloca.h: Include xalloc.h.
28659         (xnmalloca): New macro.
28660
28661 2007-12-30  Bruno Haible  <bruno@clisp.org>
28662
28663         * lib/malloca.h (nmalloca): New macro.
28664         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
28665         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
28666         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
28667         knuth_morris_pratt_multibyte): Likewise.
28668         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
28669         knuth_morris_pratt_multibyte): Likewise.
28670         * lib/memmem.c (knuth_morris_pratt): Likewise.
28671         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
28672
28673 2007-12-25  Bruno Haible  <bruno@clisp.org>
28674
28675         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
28676         * lib/glob.c: Don't include openat.h.
28677         (link_exists2_p): Add back the code that deals with the
28678         !GLOB_ALTDIRFUNC case.
28679         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
28680         let it do the filename concatenation.
28681         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
28682         * modules/glob (Depends-on): Remove openat.
28683
28684 2007-12-31  Bruno Haible  <bruno@clisp.org>
28685
28686         * modules/dirfd (License): Change to LGPLv2+.
28687         Approved by Jim Meyering.
28688
28689 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28690
28691         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
28692         when multiplying M by sizeof (size_t).
28693
28694 2007-12-10  Martin Lambers  <marlam@marlam.de>
28695
28696         Override getpagesize on mingw.
28697         * lib/getpagesize.c: New file.
28698         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
28699         * modules/getpagesize (Files): Add lib/getpagesize.c.
28700         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
28701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28702         REPLACE_GETPAGESIZE.
28703         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
28704
28705 2007-12-25  Bruno Haible  <bruno@clisp.org>
28706
28707         * modules/localcharset (Notice): New field.
28708         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
28709         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
28710
28711 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28712             Bruno Haible  <bruno@clisp.org>
28713
28714         Avoid using the syntax symbol() in formatted documentation.
28715         * MODULES.html.sh (func_module): When replacing symbol() with a
28716         hyperlink, remove the parentheses. Show an error if some remain.
28717         Recognize and render the '...' syntax.
28718         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
28719         Rework. Add paragraph about GCC's inlining.
28720         * doc/alloca.texi: Likewise.
28721         * doc/error.texi: Remove parentheses from symbol reference.
28722         * doc/gnulib-intro.texi: Likewise.
28723         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
28724         * modules/fnmatch (Description): Reword to say "the ... function".
28725         * modules/full-read (Description): Likewise.
28726         * modules/full-write (Description): Likewise.
28727         * modules/safe-read (Description): Likewise.
28728         * modules/safe-write (Description): Likewise.
28729         * modules/strchrnul (Description): Likewise.
28730         * modules/trim (Description): Likewise.
28731         * modules/error (Description): Remove parentheses from symbol
28732         references.
28733         * modules/verror (Description): Likewise.
28734         Reported by Karl Berry.
28735
28736 2007-12-25  Bruno Haible  <bruno@clisp.org>
28737
28738         Fixup after 2007-10-16 commit.
28739         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
28740
28741 2007-12-24  Bruno Haible  <bruno@clisp.org>
28742
28743         Make --enable-relocatable work with DESTDIR.
28744         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
28745         to compute installdir from destprog.
28746         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
28747         also set the RELOC_DESTDIR variable.
28748         Reported by Левашев Иван <octagram@bluebottle.com>.
28749
28750 2007-12-24  Bruno Haible  <bruno@clisp.org>
28751
28752         Fix link error due to xalloc_die().
28753         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
28754         of xreadlink.
28755         * lib/relocwrapper.c: Update comments.
28756         * build-aux/install-reloc: Remove xreadlink.c from file list.
28757         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
28758         xreadlink.c.
28759         Reported by Левашев Иван <octagram@bluebottle.com>.
28760
28761 2007-12-24  Bruno Haible  <bruno@clisp.org>
28762
28763         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
28764         * lib/setenv.h: Remove file.
28765         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
28766         lib/setenv.h.
28767         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
28768         (Depends-on): Add stdlib.
28769         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
28770         gl_FUNC_UNSETENV.
28771         (Include): Replace setenv.h with <stdlib.h>.
28772         * modules/unsetenv: New file.
28773         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
28774         * lib/unsetenv.c: Include <stdlib.h> first.
28775         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
28776         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
28777         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
28778         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
28779         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
28780         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
28782         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
28783         * doc/functions/unsetenv.texi: Update.
28784         * modules/xsetenv (Depends-on): Add unsetenv.
28785         * modules/getdate (Depends-on): Likewise.
28786         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
28787         * lib/xsetenv.c: Don't include setenv.h.
28788         * lib/getdate.y: Likewise.
28789         * lib/relocwrapper.c: Likewise.
28790         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
28791         (Depends-on): Add stdlib.
28792         * NEWS: Mention the changes.
28793         Reported by Левашев Иван <octagram@bluebottle.com>.
28794
28795 2007-12-23  Bruno Haible  <bruno@clisp.org>
28796
28797         * lib/memmem.c (memmem): Use lowercase variable names. Tab
28798         indentation.
28799
28800 2007-12-23  Bruno Haible  <bruno@clisp.org>
28801
28802         * lib/c-strcasestr.c: Add more comments.
28803         * lib/c-strstr.c: Likewise.
28804         * lib/mbscasestr.c: Likewise.
28805         * lib/mbsstr.c: Likewise.
28806         * lib/strcasestr.c: Likewise.
28807         * lib/memmem.c: Likewise.
28808
28809 2007-12-23  Bruno Haible  <bruno@clisp.org>
28810
28811         * tests/test-memmem.c: Include <string.h> first.
28812
28813 2007-12-22  Bruno Haible  <bruno@clisp.org>
28814
28815         * gnulib-tool (func_create_testdir): Change $auxdir while generating
28816         the contents of $testsbase.
28817         Reported by Ralf Wildenhues.
28818
28819 2007-12-22  Bruno Haible  <bruno@clisp.org>
28820
28821         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
28822         two variables local_ldadd_before, local_ldadd_last.
28823
28824 2007-12-20  Eric Blake  <ebb9@byu.net>
28825
28826         Work around circular library issue when cross-compiling.
28827         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
28828         that progname.o does not need to pull in rpl_memcmp.
28829
28830 2007-12-19  Eric Blake  <ebb9@byu.net>
28831
28832         Fix memmem to avoid O(n^2) worst-case complexity.
28833         * lib/memmem.c (knuth_morris_pratt): New function.
28834         (memmem): Use it if first few naive iterations fail.
28835         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
28836         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
28837         * modules/memchr (License): Likewise.
28838         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
28839         malloca.
28840         * tests/test-memmem.c: Rewrite, borrowing ideas from
28841         test-mbsstr1.c; the old version wouldn't even compile!
28842         * modules/memmem-tests: New file.
28843         * lib/string.in.h (rpl_memmem): Add declaration.
28844         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
28845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
28846         REPLACE_MEMMEM.
28847
28848 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28849
28850         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
28851         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
28852         before any system include files, and undef after them all.  This
28853         should fix a problem on VMS reported by John E. Malmberg in
28854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
28855
28856 2007-12-17  Eric Blake  <ebb9@byu.net>
28857
28858         Revert addition of verify, for BSD/OS.
28859         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
28860         can't handle large files, for the sake of obsolete platforms.
28861         * modules/fseeko (Depends-on): Remove verify.
28862         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
28863         * doc/functions/ftello.texi (ftello): Likewise.
28864         * doc/functions/fgetpos.texi (fgetpos): Likewise.
28865         Reported by Larry Jones.
28866
28867 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
28868
28869         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
28870         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
28871
28872 2007-12-17  Jim Meyering  <meyering@redhat.com>
28873
28874         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
28875         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
28876         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
28877         * modules/getcwd (Depends-on): Add openat.
28878         Reported by Petr Salinger.
28879
28880 2007-12-17  Bruno Haible  <bruno@clisp.org>
28881
28882         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
28883         avoid a segmentation fault of the configure test on x86_64 systems.
28884
28885 2007-12-15  Jim Meyering  <meyering@redhat.com>
28886
28887         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
28888
28889 2007-12-13  Eric Blake  <ebb9@byu.net>
28890
28891         Another fseek test.
28892         * tests/test-fseek.c (main): Also test ungetc handling.
28893         * tests/test-fseeko.c (main): Likewise.
28894         * modules/fseeko (Depends-on): Add verify.
28895         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
28896         large.
28897         Reported by Larry Jones.
28898
28899         Fix fseeko on mingw.
28900         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
28901         seek.
28902
28903         Beef up fseek tests.
28904         * tests/test-fseek.c (main): Also test eof handling.
28905         * tests/test-fseeko.c (main): Likewise.
28906         Reported by Larry Jones.
28907
28908 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
28909
28910         Fix fseeko on BSD-based platforms.
28911         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
28912         successful seek.
28913
28914 2007-12-12  Eric Blake  <ebb9@byu.net>
28915
28916         Allow circular dependency of separate libtests.a
28917         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
28918         when use_libtests.
28919
28920 2007-12-11  Eric Blake  <ebb9@byu.net>
28921
28922         Fix bug with -0.0L in previous patch.
28923         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
28924         * tests/test-isnan.c (main): Also test on zeroes.
28925         * tests/test-isnanf.c (main): Likewise.
28926         * tests/test-isnanl.h (main): Likewise.
28927
28928         Detect pseudo-denormals on x86 even when cross-compiling.
28929         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
28930         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
28931         invalid bit patterns that happen to satisfy ==.
28932
28933         Avoid link failures with separate libtests.a.
28934         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
28935         last, to satisfy circular dependencies.
28936
28937 2007-12-11  Eric Blake  <ebb9@byu.net>
28938         and Bruno Haible  <bruno@clisp.org>
28939
28940         Fix OpenBSD 4.0 <float.h> handling of long double.
28941         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
28942         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
28943         * doc/headers/float.texi (float.h): Document OpenBSD bug.
28944
28945 2007-12-11  Jim Meyering  <meyering@redhat.com>
28946
28947         * users.txt: Add libvirt.
28948
28949         Support versions of autoconf prior to 2.59c.
28950         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
28951         if it is not already defined.
28952
28953 2007-12-09  Bruno Haible  <bruno@clisp.org>
28954
28955         Let 'gnulib-tool --import' collect sources needed for the tests in
28956         tests/ rather than in lib/.
28957         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
28958         argument. If true, add rules to generate libtests.a, and put libtests.a
28959         into $(LDADD). Consider source files in subdirectories and set
28960         uses_subdirs.
28961         (func_emit_initmacro_start, func_emit_initmacro_end,
28962         func_emit_initmacro_done): Pass all arguments explicitly.
28963         (func_import): Determine two module lists main_modules,
28964         testsrelated_modules. Determine use_libtests. Determine two variables
28965         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
28966         instead of just sed_transform_lib_file. Determine two variables
28967         main_files and testsrelated_files. Compute 'files' as the union of
28968         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
28969         func_add_or_update. In the generated gnulib-comp.m4, collect the
28970         object files for tests/ in different variables than those for lib/.
28971         Substitute LIBTESTS_LIBDEPS.
28972         (func_create_testdir): Combine the uses_subdirs results from
28973         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
28974
28975 2007-12-09  Bruno Haible  <bruno@clisp.org>
28976
28977         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
28978         the build-aux directory.
28979
28980 2007-12-09  Bruno Haible  <bruno@clisp.org>
28981
28982         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
28983         introduced on 2006-09-09.
28984
28985 2007-12-07  Jim Meyering  <meyering@redhat.com>
28986
28987         Let these macros work also with autoconf-2.59.
28988         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
28989         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
28990         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28991
28992 2007-12-06  Jim Meyering  <meyering@redhat.com>
28993
28994         Avoid a configure-time syntax error in gl_FUNC_ACL.
28995         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
28996         function in each branch, before testing the cache variable.
28997
28998 2007-12-04  Eric Blake  <ebb9@byu.net>
28999
29000         Make scripts executable.
29001         * build-aux/config.guess: Add execute permissions.
29002         * build-aux/config.sub: Likewise.
29003         * build-aux/gendocs.sh: Likewise.
29004
29005         Fix frexp on mingw.
29006         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
29007         cross-compiling.
29008         * doc/functions/frexp.texi (frexp): Document the bug.
29009
29010         Make cygwin fseeko check more reliable.
29011         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
29012         version numbers, rather than unrelated feature check.
29013         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
29014         * doc/functions/ftello.texi (ftello): Likewise.
29015         Reported by Bruno Haible.
29016
29017         * m4/strerror.m4: Bump version number.
29018
29019 2007-12-03  Bruno Haible  <bruno@clisp.org>
29020
29021         * doc/functions/mprotect.texi: Mention the mingw problem.
29022
29023 2007-12-03  Eric Blake  <ebb9@byu.net>
29024
29025         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
29026         REPLACE_STRERROR is initialized before this macro.
29027
29028 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
29029
29030         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
29031         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
29032         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
29033         put -lsec in even for programs other than 'ls'.  This fixes a problem
29034         for gettext reported by Bruno Haible in
29035         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
29036         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
29037         Add support for Solaris 10.  This isn't efficient, but should get the
29038         job done for now.
29039
29040 2007-12-03  James Youngman  <jay@gnu.org>
29041
29042         * doc/regexprops-generic.texi: change "an close-group" to "a
29043         close-group" and "illegal" to "not allowed".
29044
29045 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29046
29047         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
29048         pr_byname.h. Needed for the rare case when the maintainer has done
29049         "make maintainer-clean" in the source directory and then attempts a
29050         build outside the source directory.
29051         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
29052         scripts_byname.h.
29053
29054 2007-12-02  Martin Lambers <marlam@marlam.de>
29055             Bruno Haible  <bruno@clisp.org>
29056
29057         * lib/getpagesize.h: Remove file.
29058         * lib/unistd.in.h: Include declaration of getpagesize here.
29059         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
29060         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
29061         HAVE_SYS_PARAM_H.
29062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
29063         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29064         * modules/getpagesize (Files): Remove lib/getpagesize.h.
29065         (Depends-on): Add unistd.
29066         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29067         (Include): Use <unistd.h> instead of getpagesize.h.
29068         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
29069         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
29070         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
29071         gl_GETPAGESIZE invocation, already handled by module dependency.
29072         * lib/pagealign_alloc.c: Don't include getpagesize.h.
29073
29074 2007-12-02  Bruno Haible  <bruno@clisp.org>
29075
29076         * modules/strings-tests: New file.
29077         * tests/test-strings.c: New file.
29078
29079         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
29080         * lib/strings.in.h: New file.
29081         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
29082         * m4/strings_h.m4: New file.
29083         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
29084         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
29085         * modules/strings: New file.
29086         * modules/string (Makefile.am): Update.
29087         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
29088         Reported by Karl Berry.
29089
29090 2007-12-01  Eric Blake  <ebb9@byu.net>
29091
29092         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
29093         accomodate fix in cygwin 1.5.25.
29094
29095 2007-12-01  Jim Meyering  <meyering@redhat.com>
29096
29097         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
29098         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
29099         that would inhibit utf8-optimization of a regexp containing line-
29100         or buffer-anchors, e.g., `^', `$'.
29101
29102 2007-11-30  Bruno Haible  <bruno@clisp.org>
29103
29104         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
29105         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
29106         glthread_recursive_lock_init.
29107         * lib/lock.c (glthread_recursive_lock_init)
29108         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
29109         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29110
29111 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
29112
29113         New function qset_acl, like set_acl but with syscall semantics.
29114         * lib/acl.h (qset_acl): New decl.
29115         * lib/acl.c (qset_acl): New function.
29116         (set_acl): Use new function.  Use more-consistent diagnostics.
29117
29118 2007-11-28  Jim Meyering  <meyering@redhat.com>
29119
29120         * modules/physmem (License): Change from GPL to LGPLv2+.
29121
29122 2007-11-26  Bruno Haible  <bruno@clisp.org>
29123
29124         * lib/vasnprintf.c (decode_long_double): Don't abort if the
29125         'long double' type has excess precision.
29126         Reported by Jim Meyering in
29127         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
29128
29129 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29130
29131         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
29132         Sync from <http://gnu.org/licenses>.
29133         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
29134         with license text from same location.
29135         * doc/maintain.texi, doc/standards.texi:  Sync from
29136         <http://savannah.gnu.org/projects/gnustandards>.
29137
29138 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
29139         and Jim Meyering  <meyering@redhat.com>
29140
29141         Adjust getdate' grammar to accept a slightly more regular language.
29142         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
29143         Before, the former was rejected.
29144         * lib/getdate.y (digits_to_date_time): New function, factored
29145         out of ...
29146         (number): ...here.  Just call digits_to_date_time.
29147         (hybrid): New non-terminal to handle an <unsigned number,
29148         signed relative offset> sequence consistently.
29149
29150 2007-11-18  Jim Meyering  <meyering@redhat.com>
29151
29152         Pull my changes from coreutils:
29153         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
29154         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
29155         use of $gnulib_tool_option_extras, so that it's separated from the
29156         preceding argument.
29157
29158         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
29159         * build-aux/bootstrap (cp_mark_as_generated): Create any required
29160         parent destination directories before copying a file into place.
29161
29162 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
29163
29164         bootstrap: work also with 4-argument variant of AC_INIT
29165         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
29166
29167 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29168
29169         Port test-getaddrinfo to Solaris.
29170         Problem reported by Bruno Haible in
29171         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
29172         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
29173         explanation of setting 'hints'.
29174         Don't reject an implementation merely because it returns EAI_SERVICE.
29175         (EAI_SERVICE): Define to 0 if not defined.
29176
29177 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29178
29179         The license of gnu-make and posix-shell is now "GPLed build tool".
29180         * modules/gnu-make (License): Likewise.
29181         * modules/posix-shell (License): Likewise.
29182
29183         New module posix-shell, for determining a POSIX shell
29184         or perhaps something that is close enough to a POSIX shell.
29185         * m4/posix-shell.m4: New file.
29186         * modules/posix-shell: New file.
29187
29188         * MODULES.html.sh: Mention new module.
29189
29190         New module gnu-make, for determining whether we're using GNU Make.
29191         * m4/gnu-make.m4: New file.
29192         * modules/gnu-make: New file.
29193         * MODULES.html.sh: Mention new module.
29194
29195 2007-11-14  Jim Meyering  <meyering@redhat.com>
29196
29197         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
29198         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
29199         use this macro to create a function _definition_.
29200         Remove useless "#undef ARGMATCH_DIE".
29201
29202 2007-11-14  Bruno Haible  <bruno@clisp.org>
29203
29204         * lib/config.charset: Update for OpenBSD 4.1.
29205         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
29206
29207 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
29208
29209         Document 64-bit #if problems in stdint.texi.
29210         * doc/headers/stdint.texi (stdint.h): Mention problems with
29211         64-bit-#if, and how to work around them.
29212
29213         Don't insist on 'long long int' support in the preprocessor.  It
29214         breaks too many things.  For example, PRIdMAX still uses a 'long
29215         long int' format with the latest Sun compiler, even though
29216         HAVE_LONG_LONG_INT isn't defined due to that compiler's
29217         preprocessor problem.  This causes the latest coreutils to dump
29218         core on Solaris 10 sparc with the Sun C compiler.
29219         Instead, fix the 2007-10-16 problem in a different way, by evaluating
29220         the troublesome expressions at configure-time, not at #if-time.
29221         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
29222         preprocessor.
29223         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
29224         compile-time C checks, done at 'configure'-time.
29225         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
29226         * modules/inttypes (Makefile): Substitute the new symbols that
29227         gl_INTTYPES_H now generates.
29228         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
29229
29230 2007-11-12  Bruno Haible  <bruno@clisp.org>
29231
29232         Tests for Unicode character classification functions.
29233
29234         * modules/unictype/bidicategory-byname-tests: New file.
29235         * modules/unictype/bidicategory-name-tests: New file.
29236         * modules/unictype/bidicategory-of-tests: New file.
29237         * modules/unictype/bidicategory-test-tests: New file.
29238         * modules/unictype/block-list-tests: New file.
29239         * modules/unictype/block-of-tests: New file.
29240         * modules/unictype/block-test-tests: New file.
29241         * modules/unictype/category-C-tests: New file.
29242         * modules/unictype/category-Cc-tests: New file.
29243         * modules/unictype/category-Cf-tests: New file.
29244         * modules/unictype/category-Cn-tests: New file.
29245         * modules/unictype/category-Co-tests: New file.
29246         * modules/unictype/category-Cs-tests: New file.
29247         * modules/unictype/category-L-tests: New file.
29248         * modules/unictype/category-Ll-tests: New file.
29249         * modules/unictype/category-Lm-tests: New file.
29250         * modules/unictype/category-Lo-tests: New file.
29251         * modules/unictype/category-Lt-tests: New file.
29252         * modules/unictype/category-Lu-tests: New file.
29253         * modules/unictype/category-M-tests: New file.
29254         * modules/unictype/category-Mc-tests: New file.
29255         * modules/unictype/category-Me-tests: New file.
29256         * modules/unictype/category-Mn-tests: New file.
29257         * modules/unictype/category-N-tests: New file.
29258         * modules/unictype/category-Nd-tests: New file.
29259         * modules/unictype/category-Nl-tests: New file.
29260         * modules/unictype/category-No-tests: New file.
29261         * modules/unictype/category-P-tests: New file.
29262         * modules/unictype/category-Pc-tests: New file.
29263         * modules/unictype/category-Pd-tests: New file.
29264         * modules/unictype/category-Pe-tests: New file.
29265         * modules/unictype/category-Pf-tests: New file.
29266         * modules/unictype/category-Pi-tests: New file.
29267         * modules/unictype/category-Po-tests: New file.
29268         * modules/unictype/category-Ps-tests: New file.
29269         * modules/unictype/category-S-tests: New file.
29270         * modules/unictype/category-Sc-tests: New file.
29271         * modules/unictype/category-Sk-tests: New file.
29272         * modules/unictype/category-Sm-tests: New file.
29273         * modules/unictype/category-So-tests: New file.
29274         * modules/unictype/category-Z-tests: New file.
29275         * modules/unictype/category-Zl-tests: New file.
29276         * modules/unictype/category-Zp-tests: New file.
29277         * modules/unictype/category-Zs-tests: New file.
29278         * modules/unictype/category-and-not-tests: New file.
29279         * modules/unictype/category-and-tests: New file.
29280         * modules/unictype/category-byname-tests: New file.
29281         * modules/unictype/category-name-tests: New file.
29282         * modules/unictype/category-none-tests: New file.
29283         * modules/unictype/category-of-tests: New file.
29284         * modules/unictype/category-or-tests: New file.
29285         * modules/unictype/category-test-withtable-tests: New file.
29286         * modules/unictype/combining-class-tests: New file.
29287         * modules/unictype/ctype-alnum-tests: New file.
29288         * modules/unictype/ctype-alpha-tests: New file.
29289         * modules/unictype/ctype-blank-tests: New file.
29290         * modules/unictype/ctype-cntrl-tests: New file.
29291         * modules/unictype/ctype-digit-tests: New file.
29292         * modules/unictype/ctype-graph-tests: New file.
29293         * modules/unictype/ctype-lower-tests: New file.
29294         * modules/unictype/ctype-print-tests: New file.
29295         * modules/unictype/ctype-punct-tests: New file.
29296         * modules/unictype/ctype-space-tests: New file.
29297         * modules/unictype/ctype-upper-tests: New file.
29298         * modules/unictype/ctype-xdigit-tests: New file.
29299         * modules/unictype/decimal-digit-tests: New file.
29300         * modules/unictype/digit-tests: New file.
29301         * modules/unictype/mirror-tests: New file.
29302         * modules/unictype/numeric-tests: New file.
29303         * modules/unictype/property-alphabetic-tests: New file.
29304         * modules/unictype/property-ascii-hex-digit-tests: New file.
29305         * modules/unictype/property-bidi-arabic-digit-tests: New file.
29306         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
29307         * modules/unictype/property-bidi-block-separator-tests: New file.
29308         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
29309         * modules/unictype/property-bidi-common-separator-tests: New file.
29310         * modules/unictype/property-bidi-control-tests: New file.
29311         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
29312         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
29313         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
29314         * modules/unictype/property-bidi-european-digit-tests: New file.
29315         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
29316         * modules/unictype/property-bidi-left-to-right-tests: New file.
29317         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
29318         * modules/unictype/property-bidi-other-neutral-tests: New file.
29319         * modules/unictype/property-bidi-pdf-tests: New file.
29320         * modules/unictype/property-bidi-segment-separator-tests: New file.
29321         * modules/unictype/property-bidi-whitespace-tests: New file.
29322         * modules/unictype/property-byname-tests: New file.
29323         * modules/unictype/property-combining-tests: New file.
29324         * modules/unictype/property-composite-tests: New file.
29325         * modules/unictype/property-currency-symbol-tests: New file.
29326         * modules/unictype/property-dash-tests: New file.
29327         * modules/unictype/property-decimal-digit-tests: New file.
29328         * modules/unictype/property-default-ignorable-code-point-tests: New file.
29329         * modules/unictype/property-deprecated-tests: New file.
29330         * modules/unictype/property-diacritic-tests: New file.
29331         * modules/unictype/property-extender-tests: New file.
29332         * modules/unictype/property-format-control-tests: New file.
29333         * modules/unictype/property-grapheme-base-tests: New file.
29334         * modules/unictype/property-grapheme-extend-tests: New file.
29335         * modules/unictype/property-grapheme-link-tests: New file.
29336         * modules/unictype/property-hex-digit-tests: New file.
29337         * modules/unictype/property-hyphen-tests: New file.
29338         * modules/unictype/property-id-continue-tests: New file.
29339         * modules/unictype/property-id-start-tests: New file.
29340         * modules/unictype/property-ideographic-tests: New file.
29341         * modules/unictype/property-ids-binary-operator-tests: New file.
29342         * modules/unictype/property-ids-trinary-operator-tests: New file.
29343         * modules/unictype/property-ignorable-control-tests: New file.
29344         * modules/unictype/property-iso-control-tests: New file.
29345         * modules/unictype/property-join-control-tests: New file.
29346         * modules/unictype/property-left-of-pair-tests: New file.
29347         * modules/unictype/property-line-separator-tests: New file.
29348         * modules/unictype/property-logical-order-exception-tests: New file.
29349         * modules/unictype/property-lowercase-tests: New file.
29350         * modules/unictype/property-math-tests: New file.
29351         * modules/unictype/property-non-break-tests: New file.
29352         * modules/unictype/property-not-a-character-tests: New file.
29353         * modules/unictype/property-numeric-tests: New file.
29354         * modules/unictype/property-other-alphabetic-tests: New file.
29355         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
29356         * modules/unictype/property-other-grapheme-extend-tests: New file.
29357         * modules/unictype/property-other-id-continue-tests: New file.
29358         * modules/unictype/property-other-id-start-tests: New file.
29359         * modules/unictype/property-other-lowercase-tests: New file.
29360         * modules/unictype/property-other-math-tests: New file.
29361         * modules/unictype/property-other-uppercase-tests: New file.
29362         * modules/unictype/property-paired-punctuation-tests: New file.
29363         * modules/unictype/property-paragraph-separator-tests: New file.
29364         * modules/unictype/property-pattern-syntax-tests: New file.
29365         * modules/unictype/property-pattern-white-space-tests: New file.
29366         * modules/unictype/property-private-use-tests: New file.
29367         * modules/unictype/property-punctuation-tests: New file.
29368         * modules/unictype/property-quotation-mark-tests: New file.
29369         * modules/unictype/property-radical-tests: New file.
29370         * modules/unictype/property-sentence-terminal-tests: New file.
29371         * modules/unictype/property-soft-dotted-tests: New file.
29372         * modules/unictype/property-space-tests: New file.
29373         * modules/unictype/property-terminal-punctuation-tests: New file.
29374         * modules/unictype/property-test-tests: New file.
29375         * modules/unictype/property-titlecase-tests: New file.
29376         * modules/unictype/property-unassigned-code-value-tests: New file.
29377         * modules/unictype/property-unified-ideograph-tests: New file.
29378         * modules/unictype/property-uppercase-tests: New file.
29379         * modules/unictype/property-variation-selector-tests: New file.
29380         * modules/unictype/property-white-space-tests: New file.
29381         * modules/unictype/property-xid-continue-tests: New file.
29382         * modules/unictype/property-xid-start-tests: New file.
29383         * modules/unictype/property-zero-width-tests: New file.
29384         * modules/unictype/scripts-tests: New file.
29385         * modules/unictype/syntax-c-ident-tests: New file.
29386         * modules/unictype/syntax-c-whitespace-tests: New file.
29387         * modules/unictype/syntax-java-ident-tests: New file.
29388         * modules/unictype/syntax-java-whitespace-tests: New file.
29389         * tests/unictype/test-bidi_byname.c: New file.
29390         * tests/unictype/test-bidi_name.c: New file.
29391         * tests/unictype/test-bidi_of.c: New file.
29392         * tests/unictype/test-bidi_test.c: New file.
29393         * tests/unictype/test-block_list.c: New file.
29394         * tests/unictype/test-block_of.c: New file.
29395         * tests/unictype/test-block_test.c: New file.
29396         * tests/unictype/test-categ_and.c: New file.
29397         * tests/unictype/test-categ_and_not.c: New file.
29398         * tests/unictype/test-categ_byname.c: New file.
29399         * tests/unictype/test-categ_name.c: New file.
29400         * tests/unictype/test-categ_none.c: New file.
29401         * tests/unictype/test-categ_of.c: New file.
29402         * tests/unictype/test-categ_or.c: New file.
29403         * tests/unictype/test-categ_test_withtable.c: New file.
29404         * tests/unictype/test-combining.c: New file.
29405         * tests/unictype/test-decdigit.c: New file.
29406         * tests/unictype/test-digit.c: New file.
29407         * tests/unictype/test-mirror.c: New file.
29408         * tests/unictype/test-numeric.c: New file.
29409         * tests/unictype/test-pr_byname.c: New file.
29410         * tests/unictype/test-pr_test.c: New file.
29411         * tests/unictype/test-predicate-part1.h: New file.
29412         * tests/unictype/test-predicate-part2.h: New file.
29413         * tests/unictype/test-scripts.c: New file.
29414         * tests/unictype/test-sy_c_ident.c: New file.
29415         * tests/unictype/test-sy_java_ident.c: New file.
29416
29417         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
29418         for Unicode 5.0.0.
29419         * tests/unictype/test-categ_Cc.c: Likewise.
29420         * tests/unictype/test-categ_Cf.c: Likewise.
29421         * tests/unictype/test-categ_Cn.c: Likewise.
29422         * tests/unictype/test-categ_Co.c: Likewise.
29423         * tests/unictype/test-categ_Cs.c: Likewise.
29424         * tests/unictype/test-categ_L.c: Likewise.
29425         * tests/unictype/test-categ_Ll.c: Likewise.
29426         * tests/unictype/test-categ_Lm.c: Likewise.
29427         * tests/unictype/test-categ_Lo.c: Likewise.
29428         * tests/unictype/test-categ_Lt.c: Likewise.
29429         * tests/unictype/test-categ_Lu.c: Likewise.
29430         * tests/unictype/test-categ_M.c: Likewise.
29431         * tests/unictype/test-categ_Mc.c: Likewise.
29432         * tests/unictype/test-categ_Me.c: Likewise.
29433         * tests/unictype/test-categ_Mn.c: Likewise.
29434         * tests/unictype/test-categ_N.c: Likewise.
29435         * tests/unictype/test-categ_Nd.c: Likewise.
29436         * tests/unictype/test-categ_Nl.c: Likewise.
29437         * tests/unictype/test-categ_No.c: Likewise.
29438         * tests/unictype/test-categ_P.c: Likewise.
29439         * tests/unictype/test-categ_Pc.c: Likewise.
29440         * tests/unictype/test-categ_Pd.c: Likewise.
29441         * tests/unictype/test-categ_Pe.c: Likewise.
29442         * tests/unictype/test-categ_Pf.c: Likewise.
29443         * tests/unictype/test-categ_Pi.c: Likewise.
29444         * tests/unictype/test-categ_Po.c: Likewise.
29445         * tests/unictype/test-categ_Ps.c: Likewise.
29446         * tests/unictype/test-categ_S.c: Likewise.
29447         * tests/unictype/test-categ_Sc.c: Likewise.
29448         * tests/unictype/test-categ_Sk.c: Likewise.
29449         * tests/unictype/test-categ_Sm.c: Likewise.
29450         * tests/unictype/test-categ_So.c: Likewise.
29451         * tests/unictype/test-categ_Z.c: Likewise.
29452         * tests/unictype/test-categ_Zl.c: Likewise.
29453         * tests/unictype/test-categ_Zp.c: Likewise.
29454         * tests/unictype/test-categ_Zs.c: Likewise.
29455         * tests/unictype/test-ctype_alnum.c: Likewise.
29456         * tests/unictype/test-ctype_alpha.c: Likewise.
29457         * tests/unictype/test-ctype_blank.c: Likewise.
29458         * tests/unictype/test-ctype_cntrl.c: Likewise.
29459         * tests/unictype/test-ctype_digit.c: Likewise.
29460         * tests/unictype/test-ctype_graph.c: Likewise.
29461         * tests/unictype/test-ctype_lower.c: Likewise.
29462         * tests/unictype/test-ctype_print.c: Likewise.
29463         * tests/unictype/test-ctype_punct.c: Likewise.
29464         * tests/unictype/test-ctype_space.c: Likewise.
29465         * tests/unictype/test-ctype_upper.c: Likewise.
29466         * tests/unictype/test-ctype_xdigit.c: Likewise.
29467         * tests/unictype/test-decdigit.h: Likewise.
29468         * tests/unictype/test-digit.h: Likewise.
29469         * tests/unictype/test-numeric.h: Likewise.
29470         * tests/unictype/test-pr_alphabetic.c: Likewise.
29471         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
29472         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
29473         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
29474         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
29475         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
29476         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
29477         * tests/unictype/test-pr_bidi_control.c: Likewise.
29478         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
29479         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
29480         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
29481         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
29482         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
29483         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
29484         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
29485         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
29486         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
29487         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
29488         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
29489         * tests/unictype/test-pr_combining.c: Likewise.
29490         * tests/unictype/test-pr_composite.c: Likewise.
29491         * tests/unictype/test-pr_currency_symbol.c: Likewise.
29492         * tests/unictype/test-pr_dash.c: Likewise.
29493         * tests/unictype/test-pr_decimal_digit.c: Likewise.
29494         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
29495         * tests/unictype/test-pr_deprecated.c: Likewise.
29496         * tests/unictype/test-pr_diacritic.c: Likewise.
29497         * tests/unictype/test-pr_extender.c: Likewise.
29498         * tests/unictype/test-pr_format_control.c: Likewise.
29499         * tests/unictype/test-pr_grapheme_base.c: Likewise.
29500         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
29501         * tests/unictype/test-pr_grapheme_link.c: Likewise.
29502         * tests/unictype/test-pr_hex_digit.c: Likewise.
29503         * tests/unictype/test-pr_hyphen.c: Likewise.
29504         * tests/unictype/test-pr_id_continue.c: Likewise.
29505         * tests/unictype/test-pr_id_start.c: Likewise.
29506         * tests/unictype/test-pr_ideographic.c: Likewise.
29507         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
29508         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
29509         * tests/unictype/test-pr_ignorable_control.c: Likewise.
29510         * tests/unictype/test-pr_iso_control.c: Likewise.
29511         * tests/unictype/test-pr_join_control.c: Likewise.
29512         * tests/unictype/test-pr_left_of_pair.c: Likewise.
29513         * tests/unictype/test-pr_line_separator.c: Likewise.
29514         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
29515         * tests/unictype/test-pr_lowercase.c: Likewise.
29516         * tests/unictype/test-pr_math.c: Likewise.
29517         * tests/unictype/test-pr_non_break.c: Likewise.
29518         * tests/unictype/test-pr_not_a_character.c: Likewise.
29519         * tests/unictype/test-pr_numeric.c: Likewise.
29520         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
29521         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
29522         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
29523         * tests/unictype/test-pr_other_id_continue.c: Likewise.
29524         * tests/unictype/test-pr_other_id_start.c: Likewise.
29525         * tests/unictype/test-pr_other_lowercase.c: Likewise.
29526         * tests/unictype/test-pr_other_math.c: Likewise.
29527         * tests/unictype/test-pr_other_uppercase.c: Likewise.
29528         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
29529         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
29530         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
29531         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
29532         * tests/unictype/test-pr_private_use.c: Likewise.
29533         * tests/unictype/test-pr_punctuation.c: Likewise.
29534         * tests/unictype/test-pr_quotation_mark.c: Likewise.
29535         * tests/unictype/test-pr_radical.c: Likewise.
29536         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
29537         * tests/unictype/test-pr_soft_dotted.c: Likewise.
29538         * tests/unictype/test-pr_space.c: Likewise.
29539         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
29540         * tests/unictype/test-pr_titlecase.c: Likewise.
29541         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
29542         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
29543         * tests/unictype/test-pr_uppercase.c: Likewise.
29544         * tests/unictype/test-pr_variation_selector.c: Likewise.
29545         * tests/unictype/test-pr_white_space.c: Likewise.
29546         * tests/unictype/test-pr_xid_continue.c: Likewise.
29547         * tests/unictype/test-pr_xid_start.c: Likewise.
29548         * tests/unictype/test-pr_zero_width.c: Likewise.
29549         * tests/unictype/test-sy_c_whitespace.c: Likewise.
29550         * tests/unictype/test-sy_java_whitespace.c: Likewise.
29551
29552 2007-11-12  Bruno Haible  <bruno@clisp.org>
29553
29554         Unicode character classification functions.
29555         * lib/unictype.h: New file.
29556         * modules/unictype/base: New file.
29557         * modules/unictype/category-L: New file.
29558         * modules/unictype/category-Lu: New file.
29559         * modules/unictype/category-Ll: New file.
29560         * modules/unictype/category-Lt: New file.
29561         * modules/unictype/category-Lm: New file.
29562         * modules/unictype/category-Lo: New file.
29563         * modules/unictype/category-M: New file.
29564         * modules/unictype/category-Mn: New file.
29565         * modules/unictype/category-Mc: New file.
29566         * modules/unictype/category-Me: New file.
29567         * modules/unictype/category-N: New file.
29568         * modules/unictype/category-Nd: New file.
29569         * modules/unictype/category-Nl: New file.
29570         * modules/unictype/category-No: New file.
29571         * modules/unictype/category-P: New file.
29572         * modules/unictype/category-Pc: New file.
29573         * modules/unictype/category-Pd: New file.
29574         * modules/unictype/category-Ps: New file.
29575         * modules/unictype/category-Pe: New file.
29576         * modules/unictype/category-Pi: New file.
29577         * modules/unictype/category-Pf: New file.
29578         * modules/unictype/category-Po: New file.
29579         * modules/unictype/category-S: New file.
29580         * modules/unictype/category-Sm: New file.
29581         * modules/unictype/category-Sc: New file.
29582         * modules/unictype/category-Sk: New file.
29583         * modules/unictype/category-So: New file.
29584         * modules/unictype/category-Z: New file.
29585         * modules/unictype/category-Zs: New file.
29586         * modules/unictype/category-Zl: New file.
29587         * modules/unictype/category-Zp: New file.
29588         * modules/unictype/category-C: New file.
29589         * modules/unictype/category-Cc: New file.
29590         * modules/unictype/category-Cf: New file.
29591         * modules/unictype/category-Cs: New file.
29592         * modules/unictype/category-Co: New file.
29593         * modules/unictype/category-Cn: New file.
29594         * modules/unictype/category-or: New file.
29595         * modules/unictype/category-of: New file.
29596         * modules/unictype/category-test: New file.
29597         * modules/unictype/category-test-withtable: New file.
29598         * modules/unictype/category-byname: New file.
29599         * modules/unictype/category-none: New file.
29600         * modules/unictype/category-and: New file.
29601         * modules/unictype/category-and-not: New file.
29602         * modules/unictype/category-name: New file.
29603         * modules/unictype/combining-class: New file.
29604         * modules/unictype/category-all: New file.
29605         * modules/unictype/bidicategory-all: New file.
29606         * modules/unictype/bidicategory-byname: New file.
29607         * modules/unictype/bidicategory-name: New file.
29608         * modules/unictype/bidicategory-of: New file.
29609         * modules/unictype/bidicategory-test: New file.
29610         * modules/unictype/decimal-digit: New file.
29611         * modules/unictype/digit: New file.
29612         * modules/unictype/numeric: New file.
29613         * modules/unictype/mirror: New file.
29614         * modules/unictype/property-white-space: New file.
29615         * modules/unictype/property-alphabetic: New file.
29616         * modules/unictype/property-other-alphabetic: New file.
29617         * modules/unictype/property-not-a-character: New file.
29618         * modules/unictype/property-default-ignorable-code-point: New file.
29619         * modules/unictype/property-other-default-ignorable-code-point: New
29620         file.
29621         * modules/unictype/property-deprecated: New file.
29622         * modules/unictype/property-logical-order-exception: New file.
29623         * modules/unictype/property-variation-selector: New file.
29624         * modules/unictype/property-private-use: New file.
29625         * modules/unictype/property-unassigned-code-value: New file.
29626         * modules/unictype/property-uppercase: New file.
29627         * modules/unictype/property-other-uppercase: New file.
29628         * modules/unictype/property-lowercase: New file.
29629         * modules/unictype/property-other-lowercase: New file.
29630         * modules/unictype/property-titlecase: New file.
29631         * modules/unictype/property-soft-dotted: New file.
29632         * modules/unictype/property-id-start: New file.
29633         * modules/unictype/property-other-id-start: New file.
29634         * modules/unictype/property-id-continue: New file.
29635         * modules/unictype/property-other-id-continue: New file.
29636         * modules/unictype/property-xid-start: New file.
29637         * modules/unictype/property-xid-continue: New file.
29638         * modules/unictype/property-pattern-white-space: New file.
29639         * modules/unictype/property-pattern-syntax: New file.
29640         * modules/unictype/property-join-control: New file.
29641         * modules/unictype/property-grapheme-base: New file.
29642         * modules/unictype/property-grapheme-extend: New file.
29643         * modules/unictype/property-other-grapheme-extend: New file.
29644         * modules/unictype/property-grapheme-link: New file.
29645         * modules/unictype/property-bidi-control: New file.
29646         * modules/unictype/property-bidi-left-to-right: New file.
29647         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
29648         * modules/unictype/property-bidi-arabic-right-to-left: New file.
29649         * modules/unictype/property-bidi-european-digit: New file.
29650         * modules/unictype/property-bidi-eur-num-separator: New file.
29651         * modules/unictype/property-bidi-eur-num-terminator: New file.
29652         * modules/unictype/property-bidi-arabic-digit: New file.
29653         * modules/unictype/property-bidi-common-separator: New file.
29654         * modules/unictype/property-bidi-block-separator: New file.
29655         * modules/unictype/property-bidi-segment-separator: New file.
29656         * modules/unictype/property-bidi-whitespace: New file.
29657         * modules/unictype/property-bidi-non-spacing-mark: New file.
29658         * modules/unictype/property-bidi-boundary-neutral: New file.
29659         * modules/unictype/property-bidi-pdf: New file.
29660         * modules/unictype/property-bidi-embedding-or-override: New file.
29661         * modules/unictype/property-bidi-other-neutral: New file.
29662         * modules/unictype/property-hex-digit: New file.
29663         * modules/unictype/property-ascii-hex-digit: New file.
29664         * modules/unictype/property-ideographic: New file.
29665         * modules/unictype/property-unified-ideograph: New file.
29666         * modules/unictype/property-radical: New file.
29667         * modules/unictype/property-ids-binary-operator: New file.
29668         * modules/unictype/property-ids-trinary-operator: New file.
29669         * modules/unictype/property-zero-width: New file.
29670         * modules/unictype/property-space: New file.
29671         * modules/unictype/property-non-break: New file.
29672         * modules/unictype/property-iso-control: New file.
29673         * modules/unictype/property-format-control: New file.
29674         * modules/unictype/property-dash: New file.
29675         * modules/unictype/property-hyphen: New file.
29676         * modules/unictype/property-punctuation: New file.
29677         * modules/unictype/property-line-separator: New file.
29678         * modules/unictype/property-paragraph-separator: New file.
29679         * modules/unictype/property-quotation-mark: New file.
29680         * modules/unictype/property-sentence-terminal: New file.
29681         * modules/unictype/property-terminal-punctuation: New file.
29682         * modules/unictype/property-currency-symbol: New file.
29683         * modules/unictype/property-math: New file.
29684         * modules/unictype/property-other-math: New file.
29685         * modules/unictype/property-paired-punctuation: New file.
29686         * modules/unictype/property-left-of-pair: New file.
29687         * modules/unictype/property-combining: New file.
29688         * modules/unictype/property-composite: New file.
29689         * modules/unictype/property-decimal-digit: New file.
29690         * modules/unictype/property-numeric: New file.
29691         * modules/unictype/property-diacritic: New file.
29692         * modules/unictype/property-extender: New file.
29693         * modules/unictype/property-ignorable-control: New file.
29694         * modules/unictype/property-test: New file.
29695         * modules/unictype/property-byname: New file.
29696         * modules/unictype/property-all: New file.
29697         * modules/unictype/scripts: New file.
29698         * modules/unictype/scripts-all: New file.
29699         * modules/unictype/block-of: New file.
29700         * modules/unictype/block-test: New file.
29701         * modules/unictype/block-list: New file.
29702         * modules/unictype/block-all: New file.
29703         * modules/unictype/syntax-c-whitespace: New file.
29704         * modules/unictype/syntax-java-whitespace: New file.
29705         * modules/unictype/syntax-c-ident: New file.
29706         * modules/unictype/syntax-java-ident: New file.
29707         * modules/unictype/ctype-alnum: New file.
29708         * modules/unictype/ctype-alpha: New file.
29709         * modules/unictype/ctype-cntrl: New file.
29710         * modules/unictype/ctype-digit: New file.
29711         * modules/unictype/ctype-graph: New file.
29712         * modules/unictype/ctype-lower: New file.
29713         * modules/unictype/ctype-print: New file.
29714         * modules/unictype/ctype-punct: New file.
29715         * modules/unictype/ctype-space: New file.
29716         * modules/unictype/ctype-upper: New file.
29717         * modules/unictype/ctype-xdigit: New file.
29718         * modules/unictype/ctype-blank: New file.
29719         * lib/unictype/bidi_byname.c: New file.
29720         * lib/unictype/bidi_name.c: New file.
29721         * lib/unictype/bidi_of.c: New file.
29722         * lib/unictype/bidi_test.c: New file.
29723         * lib/unictype/bitmap.h: New file.
29724         * lib/unictype/block_test.c: New file.
29725         * lib/unictype/blocks.c: New file.
29726         * lib/unictype/categ_C.c: New file.
29727         * lib/unictype/categ_Cc.c: New file.
29728         * lib/unictype/categ_Cf.c: New file.
29729         * lib/unictype/categ_Cn.c: New file.
29730         * lib/unictype/categ_Co.c: New file.
29731         * lib/unictype/categ_Cs.c: New file.
29732         * lib/unictype/categ_L.c: New file.
29733         * lib/unictype/categ_Ll.c: New file.
29734         * lib/unictype/categ_Lm.c: New file.
29735         * lib/unictype/categ_Lo.c: New file.
29736         * lib/unictype/categ_Lt.c: New file.
29737         * lib/unictype/categ_Lu.c: New file.
29738         * lib/unictype/categ_M.c: New file.
29739         * lib/unictype/categ_Mc.c: New file.
29740         * lib/unictype/categ_Me.c: New file.
29741         * lib/unictype/categ_Mn.c: New file.
29742         * lib/unictype/categ_N.c: New file.
29743         * lib/unictype/categ_Nd.c: New file.
29744         * lib/unictype/categ_Nl.c: New file.
29745         * lib/unictype/categ_No.c: New file.
29746         * lib/unictype/categ_P.c: New file.
29747         * lib/unictype/categ_Pc.c: New file.
29748         * lib/unictype/categ_Pd.c: New file.
29749         * lib/unictype/categ_Pe.c: New file.
29750         * lib/unictype/categ_Pf.c: New file.
29751         * lib/unictype/categ_Pi.c: New file.
29752         * lib/unictype/categ_Po.c: New file.
29753         * lib/unictype/categ_Ps.c: New file.
29754         * lib/unictype/categ_S.c: New file.
29755         * lib/unictype/categ_Sc.c: New file.
29756         * lib/unictype/categ_Sk.c: New file.
29757         * lib/unictype/categ_Sm.c: New file.
29758         * lib/unictype/categ_So.c: New file.
29759         * lib/unictype/categ_Z.c: New file.
29760         * lib/unictype/categ_Zl.c: New file.
29761         * lib/unictype/categ_Zp.c: New file.
29762         * lib/unictype/categ_Zs.c: New file.
29763         * lib/unictype/categ_and.c: New file.
29764         * lib/unictype/categ_and_not.c: New file.
29765         * lib/unictype/categ_byname.c: New file.
29766         * lib/unictype/categ_name.c: New file.
29767         * lib/unictype/categ_none.c: New file.
29768         * lib/unictype/categ_of.c: New file.
29769         * lib/unictype/categ_or.c: New file.
29770         * lib/unictype/categ_test.c: New file.
29771         * lib/unictype/combining.c: New file.
29772         * lib/unictype/ctype_alnum.c: New file.
29773         * lib/unictype/ctype_alpha.c: New file.
29774         * lib/unictype/ctype_blank.c: New file.
29775         * lib/unictype/ctype_cntrl.c: New file.
29776         * lib/unictype/ctype_digit.c: New file.
29777         * lib/unictype/ctype_graph.c: New file.
29778         * lib/unictype/ctype_lower.c: New file.
29779         * lib/unictype/ctype_print.c: New file.
29780         * lib/unictype/ctype_punct.c: New file.
29781         * lib/unictype/ctype_space.c: New file.
29782         * lib/unictype/ctype_upper.c: New file.
29783         * lib/unictype/ctype_xdigit.c: New file.
29784         * lib/unictype/decdigit.c: New file.
29785         * lib/unictype/digit.c: New file.
29786         * lib/unictype/identsyntaxmap.h: New file.
29787         * lib/unictype/mirror.c: New file.
29788         * lib/unictype/numeric.c: New file.
29789         * lib/unictype/pr_alphabetic.c: New file.
29790         * lib/unictype/pr_ascii_hex_digit.c: New file.
29791         * lib/unictype/pr_bidi_arabic_digit.c: New file.
29792         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
29793         * lib/unictype/pr_bidi_block_separator.c: New file.
29794         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
29795         * lib/unictype/pr_bidi_common_separator.c: New file.
29796         * lib/unictype/pr_bidi_control.c: New file.
29797         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
29798         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
29799         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
29800         * lib/unictype/pr_bidi_european_digit.c: New file.
29801         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
29802         * lib/unictype/pr_bidi_left_to_right.c: New file.
29803         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
29804         * lib/unictype/pr_bidi_other_neutral.c: New file.
29805         * lib/unictype/pr_bidi_pdf.c: New file.
29806         * lib/unictype/pr_bidi_segment_separator.c: New file.
29807         * lib/unictype/pr_bidi_whitespace.c: New file.
29808         * lib/unictype/pr_byname.c: New file.
29809         * lib/unictype/pr_byname.gperf: New file.
29810         * lib/unictype/pr_combining.c: New file.
29811         * lib/unictype/pr_composite.c: New file.
29812         * lib/unictype/pr_currency_symbol.c: New file.
29813         * lib/unictype/pr_dash.c: New file.
29814         * lib/unictype/pr_decimal_digit.c: New file.
29815         * lib/unictype/pr_default_ignorable_code_point.c: New file.
29816         * lib/unictype/pr_deprecated.c: New file.
29817         * lib/unictype/pr_diacritic.c: New file.
29818         * lib/unictype/pr_extender.c: New file.
29819         * lib/unictype/pr_format_control.c: New file.
29820         * lib/unictype/pr_grapheme_base.c: New file.
29821         * lib/unictype/pr_grapheme_extend.c: New file.
29822         * lib/unictype/pr_grapheme_link.c: New file.
29823         * lib/unictype/pr_hex_digit.c: New file.
29824         * lib/unictype/pr_hyphen.c: New file.
29825         * lib/unictype/pr_id_continue.c: New file.
29826         * lib/unictype/pr_id_start.c: New file.
29827         * lib/unictype/pr_ideographic.c: New file.
29828         * lib/unictype/pr_ids_binary_operator.c: New file.
29829         * lib/unictype/pr_ids_trinary_operator.c: New file.
29830         * lib/unictype/pr_ignorable_control.c: New file.
29831         * lib/unictype/pr_iso_control.c: New file.
29832         * lib/unictype/pr_join_control.c: New file.
29833         * lib/unictype/pr_left_of_pair.c: New file.
29834         * lib/unictype/pr_line_separator.c: New file.
29835         * lib/unictype/pr_logical_order_exception.c: New file.
29836         * lib/unictype/pr_lowercase.c: New file.
29837         * lib/unictype/pr_math.c: New file.
29838         * lib/unictype/pr_non_break.c: New file.
29839         * lib/unictype/pr_not_a_character.c: New file.
29840         * lib/unictype/pr_numeric.c: New file.
29841         * lib/unictype/pr_other_alphabetic.c: New file.
29842         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
29843         * lib/unictype/pr_other_grapheme_extend.c: New file.
29844         * lib/unictype/pr_other_id_continue.c: New file.
29845         * lib/unictype/pr_other_id_start.c: New file.
29846         * lib/unictype/pr_other_lowercase.c: New file.
29847         * lib/unictype/pr_other_math.c: New file.
29848         * lib/unictype/pr_other_uppercase.c: New file.
29849         * lib/unictype/pr_paired_punctuation.c: New file.
29850         * lib/unictype/pr_paragraph_separator.c: New file.
29851         * lib/unictype/pr_pattern_syntax.c: New file.
29852         * lib/unictype/pr_pattern_white_space.c: New file.
29853         * lib/unictype/pr_private_use.c: New file.
29854         * lib/unictype/pr_punctuation.c: New file.
29855         * lib/unictype/pr_quotation_mark.c: New file.
29856         * lib/unictype/pr_radical.c: New file.
29857         * lib/unictype/pr_sentence_terminal.c: New file.
29858         * lib/unictype/pr_soft_dotted.c: New file.
29859         * lib/unictype/pr_space.c: New file.
29860         * lib/unictype/pr_terminal_punctuation.c: New file.
29861         * lib/unictype/pr_test.c: New file.
29862         * lib/unictype/pr_titlecase.c: New file.
29863         * lib/unictype/pr_unassigned_code_value.c: New file.
29864         * lib/unictype/pr_unified_ideograph.c: New file.
29865         * lib/unictype/pr_uppercase.c: New file.
29866         * lib/unictype/pr_variation_selector.c: New file.
29867         * lib/unictype/pr_white_space.c: New file.
29868         * lib/unictype/pr_xid_continue.c: New file.
29869         * lib/unictype/pr_xid_start.c: New file.
29870         * lib/unictype/pr_zero_width.c: New file.
29871         * lib/unictype/scripts.c: New file.
29872         * lib/unictype/sy_c_ident.c: New file.
29873         * lib/unictype/sy_c_whitespace.c: New file.
29874         * lib/unictype/sy_java_ident.c: New file.
29875         * lib/unictype/sy_java_whitespace.c: New file.
29876
29877         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
29878         Unicode 5.0.0.
29879         * lib/unictype/blocks.h: Likewise.
29880         * lib/unictype/categ_C.h: Likewise.
29881         * lib/unictype/categ_Cc.h: Likewise.
29882         * lib/unictype/categ_Cf.h: Likewise.
29883         * lib/unictype/categ_Cn.h: Likewise.
29884         * lib/unictype/categ_Co.h: Likewise.
29885         * lib/unictype/categ_Cs.h: Likewise.
29886         * lib/unictype/categ_L.h: Likewise.
29887         * lib/unictype/categ_Ll.h: Likewise.
29888         * lib/unictype/categ_Lm.h: Likewise.
29889         * lib/unictype/categ_Lo.h: Likewise.
29890         * lib/unictype/categ_Lt.h: Likewise.
29891         * lib/unictype/categ_Lu.h: Likewise.
29892         * lib/unictype/categ_M.h: Likewise.
29893         * lib/unictype/categ_Mc.h: Likewise.
29894         * lib/unictype/categ_Me.h: Likewise.
29895         * lib/unictype/categ_Mn.h: Likewise.
29896         * lib/unictype/categ_N.h: Likewise.
29897         * lib/unictype/categ_Nd.h: Likewise.
29898         * lib/unictype/categ_Nl.h: Likewise.
29899         * lib/unictype/categ_No.h: Likewise.
29900         * lib/unictype/categ_P.h: Likewise.
29901         * lib/unictype/categ_Pc.h: Likewise.
29902         * lib/unictype/categ_Pd.h: Likewise.
29903         * lib/unictype/categ_Pe.h: Likewise.
29904         * lib/unictype/categ_Pf.h: Likewise.
29905         * lib/unictype/categ_Pi.h: Likewise.
29906         * lib/unictype/categ_Po.h: Likewise.
29907         * lib/unictype/categ_Ps.h: Likewise.
29908         * lib/unictype/categ_S.h: Likewise.
29909         * lib/unictype/categ_Sc.h: Likewise.
29910         * lib/unictype/categ_Sk.h: Likewise.
29911         * lib/unictype/categ_Sm.h: Likewise.
29912         * lib/unictype/categ_So.h: Likewise.
29913         * lib/unictype/categ_Z.h: Likewise.
29914         * lib/unictype/categ_Zl.h: Likewise.
29915         * lib/unictype/categ_Zp.h: Likewise.
29916         * lib/unictype/categ_Zs.h: Likewise.
29917         * lib/unictype/categ_of.h: Likewise.
29918         * lib/unictype/combining.h: Likewise.
29919         * lib/unictype/ctype_alnum.h: Likewise.
29920         * lib/unictype/ctype_alpha.h: Likewise.
29921         * lib/unictype/ctype_blank.h: Likewise.
29922         * lib/unictype/ctype_cntrl.h: Likewise.
29923         * lib/unictype/ctype_digit.h: Likewise.
29924         * lib/unictype/ctype_graph.h: Likewise.
29925         * lib/unictype/ctype_lower.h: Likewise.
29926         * lib/unictype/ctype_print.h: Likewise.
29927         * lib/unictype/ctype_punct.h: Likewise.
29928         * lib/unictype/ctype_space.h: Likewise.
29929         * lib/unictype/ctype_upper.h: Likewise.
29930         * lib/unictype/ctype_xdigit.h: Likewise.
29931         * lib/unictype/decdigit.h: Likewise.
29932         * lib/unictype/digit.h: Likewise.
29933         * lib/unictype/mirror.h: Likewise.
29934         * lib/unictype/numeric.h: Likewise.
29935         * lib/unictype/pr_alphabetic.h: Likewise.
29936         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
29937         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
29938         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
29939         * lib/unictype/pr_bidi_block_separator.h: Likewise.
29940         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
29941         * lib/unictype/pr_bidi_common_separator.h: Likewise.
29942         * lib/unictype/pr_bidi_control.h: Likewise.
29943         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
29944         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
29945         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
29946         * lib/unictype/pr_bidi_european_digit.h: Likewise.
29947         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
29948         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
29949         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
29950         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
29951         * lib/unictype/pr_bidi_pdf.h: Likewise.
29952         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
29953         * lib/unictype/pr_bidi_whitespace.h: Likewise.
29954         * lib/unictype/pr_combining.h: Likewise.
29955         * lib/unictype/pr_composite.h: Likewise.
29956         * lib/unictype/pr_currency_symbol.h: Likewise.
29957         * lib/unictype/pr_dash.h: Likewise.
29958         * lib/unictype/pr_decimal_digit.h: Likewise.
29959         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
29960         * lib/unictype/pr_deprecated.h: Likewise.
29961         * lib/unictype/pr_diacritic.h: Likewise.
29962         * lib/unictype/pr_extender.h: Likewise.
29963         * lib/unictype/pr_format_control.h: Likewise.
29964         * lib/unictype/pr_grapheme_base.h: Likewise.
29965         * lib/unictype/pr_grapheme_extend.h: Likewise.
29966         * lib/unictype/pr_grapheme_link.h: Likewise.
29967         * lib/unictype/pr_hex_digit.h: Likewise.
29968         * lib/unictype/pr_hyphen.h: Likewise.
29969         * lib/unictype/pr_id_continue.h: Likewise.
29970         * lib/unictype/pr_id_start.h: Likewise.
29971         * lib/unictype/pr_ideographic.h: Likewise.
29972         * lib/unictype/pr_ids_binary_operator.h: Likewise.
29973         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
29974         * lib/unictype/pr_ignorable_control.h: Likewise.
29975         * lib/unictype/pr_iso_control.h: Likewise.
29976         * lib/unictype/pr_join_control.h: Likewise.
29977         * lib/unictype/pr_left_of_pair.h: Likewise.
29978         * lib/unictype/pr_line_separator.h: Likewise.
29979         * lib/unictype/pr_logical_order_exception.h: Likewise.
29980         * lib/unictype/pr_lowercase.h: Likewise.
29981         * lib/unictype/pr_math.h: Likewise.
29982         * lib/unictype/pr_non_break.h: Likewise.
29983         * lib/unictype/pr_not_a_character.h: Likewise.
29984         * lib/unictype/pr_numeric.h: Likewise.
29985         * lib/unictype/pr_other_alphabetic.h: Likewise.
29986         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
29987         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
29988         * lib/unictype/pr_other_id_continue.h: Likewise.
29989         * lib/unictype/pr_other_id_start.h: Likewise.
29990         * lib/unictype/pr_other_lowercase.h: Likewise.
29991         * lib/unictype/pr_other_math.h: Likewise.
29992         * lib/unictype/pr_other_uppercase.h: Likewise.
29993         * lib/unictype/pr_paired_punctuation.h: Likewise.
29994         * lib/unictype/pr_paragraph_separator.h: Likewise.
29995         * lib/unictype/pr_pattern_syntax.h: Likewise.
29996         * lib/unictype/pr_pattern_white_space.h: Likewise.
29997         * lib/unictype/pr_private_use.h: Likewise.
29998         * lib/unictype/pr_punctuation.h: Likewise.
29999         * lib/unictype/pr_quotation_mark.h: Likewise.
30000         * lib/unictype/pr_radical.h: Likewise.
30001         * lib/unictype/pr_sentence_terminal.h: Likewise.
30002         * lib/unictype/pr_soft_dotted.h: Likewise.
30003         * lib/unictype/pr_space.h: Likewise.
30004         * lib/unictype/pr_terminal_punctuation.h: Likewise.
30005         * lib/unictype/pr_titlecase.h: Likewise.
30006         * lib/unictype/pr_unassigned_code_value.h: Likewise.
30007         * lib/unictype/pr_unified_ideograph.h: Likewise.
30008         * lib/unictype/pr_uppercase.h: Likewise.
30009         * lib/unictype/pr_variation_selector.h: Likewise.
30010         * lib/unictype/pr_white_space.h: Likewise.
30011         * lib/unictype/pr_xid_continue.h: Likewise.
30012         * lib/unictype/pr_xid_start.h: Likewise.
30013         * lib/unictype/pr_zero_width.h: Likewise.
30014         * lib/unictype/scripts.h: Likewise.
30015         * lib/unictype/scripts_byname.gperf: Likewise.
30016         * lib/unictype/sy_c_ident.h: Likewise.
30017         * lib/unictype/sy_c_whitespace.h: Likewise.
30018         * lib/unictype/sy_java_ident.h: Likewise.
30019         * lib/unictype/sy_java_whitespace.h: Likewise.
30020
30021         * lib/unictype/Makefile: New file.
30022         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
30023         glibc.
30024         * lib/unictype/3level.h: New file, copied from glibc.
30025         * lib/unictype/3levelbit.h: New file.
30026
30027 2007-11-11  Bruno Haible  <bruno@clisp.org>
30028
30029         * modules/gperf: New file.
30030         * modules/iconv_open (Depends-on): Add it.
30031         (Makefile.am): Remove the GPERF definition.
30032
30033 2007-11-11  Bruno Haible  <bruno@clisp.org>
30034
30035         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
30036         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
30037
30038 2007-11-11  Bruno Haible  <bruno@clisp.org>
30039
30040         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
30041         (usage): Remove function.
30042
30043 2007-11-11  Bruno Haible  <bruno@clisp.org>
30044
30045         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
30046         gl_FUNC_CEILF_LIBS.
30047         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
30048         gl_FUNC_CEIL_LIBS.
30049         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
30050         gl_FUNC_CEILL_LIBS.
30051         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
30052         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
30053         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
30054
30055 2007-11-11  Bruno Haible  <bruno@clisp.org>
30056
30057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
30058         roundf were declared but do not exist on functions.
30059         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
30060         roundl were declared but do not exist on functions.
30061         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
30062         HAVE_FLOORL_AND_CEILL, respectively.
30063         Needed for Sun C on Solaris 10.
30064
30065 2007-11-11  Bruno Haible  <bruno@clisp.org>
30066
30067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
30068         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
30069         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
30070         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
30071         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
30072         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
30073         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
30074         HAVE_DECL_ROUNDF.
30075         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
30076         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
30077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
30078         of HAVE_DECL_ROUND*.
30079         * modules/math (Makefile.am): Update.
30080
30081 2007-11-10  Bruno Haible  <bruno@clisp.org>
30082
30083         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
30084         ptrdiff_t as m4/intl.m4.
30085
30086 2007-11-10  Jim Meyering  <meyering@redhat.com>
30087
30088         Avoid link failure for the argmatch test.
30089         * tests/test-argmatch.c (usage): Define function to avoid a link
30090         failure: argmatch_die requires a usage function.
30091
30092 2007-11-09  Bruno Haible  <bruno@clisp.org>
30093
30094         * doc/functions/snprintf.texi: Mention BeOS deficiency.
30095         * doc/functions/vsnprintf.texi: Likewise.
30096         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
30097         with a size argument < 2.
30098
30099 2007-11-09  Bruno Haible  <bruno@clisp.org>
30100
30101         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
30102         buffer. Fixes an inefficiency introduced on 2007-11-03.
30103
30104 2007-11-09  Bruno Haible  <bruno@clisp.org>
30105
30106         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
30107         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
30108
30109 2007-11-08  Jim Meyering  <meyering@redhat.com>
30110
30111         Change cache variable name prefix "jm_" to "gl_" everywhere.
30112         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
30113         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
30114         * m4/uptime.m4: s/gl_/jm_/
30115
30116 2007-11-07  Bruno Haible  <bruno@clisp.org>
30117
30118         Update to GNU gettext 0.17.
30119         * m4/intl.m4: Update to GNU gettext 0.17.
30120         * m4/po.m4: Likewise.
30121         * modules/gettext (Files): Remove m4/ulonglong.m4.
30122         (configure.ac): Require gettext infrastructure from version 0.17.
30123
30124 2007-11-06  Bruno Haible  <bruno@clisp.org>
30125
30126         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
30127         symbolic values are not defined in a public header.
30128         * lib/freadable.c (freadable) [QNX]: Likewise.
30129         * lib/freadahead.c (freadahead) [QNX]: Likewise.
30130         * lib/freading.c (freading) [QNX]: Likewise.
30131         * lib/fseterr.c (fseterr) [QNX]: Likewise.
30132         * lib/fwritable.c (fwritable) [QNX]: Likewise.
30133         * lib/fwriting.c (fwriting) [QNX]: Likewise.
30134         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
30135         Reported by Alain Magloire.
30136
30137         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
30138
30139 2007-11-05  Bruno Haible  <bruno@clisp.org>
30140
30141         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
30142         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
30143         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
30144         Reported by Eric Blake.
30145
30146 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30147             Bruno Haible  <bruno@clisp.org>
30148
30149         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
30150         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
30151         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
30152         (malloc): Undefine also before including <stdlib.h>.
30153         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
30154         Needed on OSF/1 4.0.
30155
30156 2007-11-05  Jim Meyering  <meyering@redhat.com>
30157
30158         git-version-gen: sync from coreutils.
30159         * build-aux/git-version-gen: Add comments.
30160         Change the first '-' to '.' in the snapshot version string,
30161         e.g., 6.9-377-08144 -> 6.9.377-08144
30162         Remove first parameter.
30163         Don't declare a version "-dirty" merely because a time
30164         stamp has changed.
30165
30166 2007-11-04  Bruno Haible  <bruno@clisp.org>
30167
30168         * lib/lock.h: Protect all macro definitions containing an 'if'
30169         statement through a "do { ... } while (0)".
30170         * lib/tls.h: Likewise.
30171
30172 2007-11-04  Bruno Haible  <bruno@clisp.org>
30173
30174         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
30175
30176 2007-11-04  Bruno Haible  <bruno@clisp.org>
30177
30178         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
30179         * modules/fprintf-posix (Depends-on): Add nocrash.
30180         * modules/snprintf-posix (Depends-on): Likewise.
30181         * modules/sprintf-posix (Depends-on): Likewise.
30182         * modules/vasnprintf-posix (Depends-on): Likewise.
30183         * modules/vasprintf-posix (Depends-on): Likewise.
30184         * modules/vfprintf-posix (Depends-on): Likewise.
30185         * modules/vsnprintf-posix (Depends-on): Likewise.
30186         * modules/vsprintf-posix (Depends-on): Likewise.
30187         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30188         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30189         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30190         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30191         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30192         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30193         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30194
30195 2007-11-04  Bruno Haible  <bruno@clisp.org>
30196
30197         * modules/nocrash: New file.
30198         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
30199         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
30200
30201 2007-11-04  Bruno Haible  <bruno@clisp.org>
30202
30203         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
30204         precision handling.
30205         * tests/test-vasprintf-posix.c (test_function): Likewise.
30206         * tests/test-snprintf-posix.h (test_function): Likewise.
30207         * tests/test-sprintf-posix.h (test_function): Likewise.
30208
30209         Fix *printf behaviour for large precisions on mingw and BeOS.
30210         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
30211         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
30212         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
30213         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30214         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30215         gl_PRINTF_PRECISION and test its result. Invoke
30216         gl_PREREQ_VASNPRINTF_PRECISION.
30217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30218         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30219         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30220         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30221         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30222         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30223         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30224         * doc/functions/fprintf.texi: Update.
30225         * doc/functions/printf.texi: Update.
30226         * doc/functions/snprintf.texi: Update.
30227         * doc/functions/sprintf.texi: Update.
30228         * doc/functions/vfprintf.texi: Update.
30229         * doc/functions/vprintf.texi: Update.
30230         * doc/functions/vsnprintf.texi: Update.
30231         * doc/functions/vsprintf.texi: Update.
30232
30233 2007-11-04  Bruno Haible  <bruno@clisp.org>
30234
30235         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
30236
30237 2007-11-04  Bruno Haible  <bruno@clisp.org>
30238
30239         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
30240         Reported by Sylvain Beucler <beuc@gnu.org>.
30241
30242 2007-11-03  Bruno Haible  <bruno@clisp.org>
30243
30244         * tests/test-fprintf-posix2.sh: New file.
30245         * tests/test-fprintf-posix2.c: New file.
30246         * modules/fprintf-posix-tests (Files): Add them.
30247         (TESTS): Add test-fprintf-posix2.sh.
30248         (configure.ac): Check for getrlimit and setrlimit.
30249         (check_PROGRAMS): Add test-fprintf-posix2.
30250
30251         * tests/test-printf-posix2.sh: New file.
30252         * tests/test-printf-posix2.c: New file.
30253         * modules/printf-posix-tests (Files): Add them.
30254         (TESTS): Add test-printf-posix2.sh.
30255         (configure.ac): Check for getrlimit and setrlimit.
30256         (check_PROGRAMS): Add test-printf-posix2.
30257
30258         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
30259         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
30260         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
30261         (decode_double): New function, copied from decode_long_double.
30262         (scale10_round_decimal_decoded): New function, extracted from
30263         scale10_round_decimal_long_double.
30264         (scale10_round_decimal_long_double): Use it.
30265         (scale10_round_decimal_double): New function.
30266         (floorlog10): New function.
30267         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
30268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
30269         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30270         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30271         gl_PRINTF_ENOMEM and test its result. Invoke
30272         gl_PREREQ_VASNPRINTF_ENOMEM.
30273         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30277         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30278         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30279         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30280         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
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         * doc/functions/fprintf.texi: Update.
30289         * doc/functions/printf.texi: Update.
30290         * doc/functions/snprintf.texi: Update.
30291         * doc/functions/sprintf.texi: Update.
30292         * doc/functions/vfprintf.texi: Update.
30293         * doc/functions/vprintf.texi: Update.
30294         * doc/functions/vsnprintf.texi: Update.
30295         * doc/functions/vsprintf.texi: Update.
30296
30297 2007-11-03  Bruno Haible  <bruno@clisp.org>
30298
30299         * modules/frexp-nolibm-tests: New file.
30300
30301         * modules/frexp-nolibm: New file.
30302         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
30303
30304 2007-11-03  Bruno Haible  <bruno@clisp.org>
30305
30306         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
30307         value is C99 compliant.
30308         Needed for OSF/1 5.1.
30309
30310 2007-11-03  Bruno Haible  <bruno@clisp.org>
30311
30312         Fix out-of-memory handling of vasnprintf.
30313         * lib/printf-parse.c: Include <errno.h>.
30314         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
30315         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
30316         is already set.
30317
30318 2007-11-02  Eric Blake  <ebb9@byu.net>
30319
30320         Fix tests on cygwin.
30321         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
30322
30323 2007-11-01  Bruno Haible  <bruno@clisp.org>
30324
30325         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
30326         warning.
30327         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
30328         needed for POSIX compatibility.
30329
30330 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30331
30332         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
30333         for compatibility with GNU.
30334
30335 2007-11-01  Bruno Haible  <bruno@clisp.org>
30336
30337         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
30338         (putenv): Renamed from rpl_putenv. Change argument type from
30339         'const char *' to 'char *'.
30340         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
30341         of defining putenv in config.h, just set REPLACE_PUTENV.
30342         * modules/putenv (Depends-on): Add stdlib.
30343         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30344         (Include): Use <stdlib.h>.
30345         * lib/stdlib.in.h (putenv): New declaration.
30346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
30347         REPLACE_PUTENV.
30348         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
30349         REPLACE_PUTENV.
30350         Needed for MacOS X 10.5.0.
30351         Reported by Peter O'Gorman <peter@pogma.com>.
30352
30353 2007-11-01  Jim Meyering  <meyering@redhat.com>
30354
30355         Treat an empty date string exactly like "0".
30356         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
30357         if the remaining date string (to be parsed) is empty, use "0".
30358         Reported by Mischa Molhoek and discussed in this thread:
30359         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
30360
30361 2007-10-31  Bruno Haible  <bruno@clisp.org>
30362
30363         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
30364         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
30365         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
30366         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
30367         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
30368         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
30369
30370 2007-10-31  Bruno Haible  <bruno@clisp.org>
30371
30372         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
30373         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
30374         (AC_TYPE_LONG_LONG_INT): Use it.
30375         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
30376         it as well.
30377         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
30378         to m4/longlong.m4.
30379         * modules/stdint (Files): Remove m4/ulonglong.m4.
30380         * modules/strtoull (Files): Use m4/longlong.m4 instead of
30381         m4/ulonglong.m4.
30382         * modules/strtoumax (Files): Likewise.
30383
30384 2007-10-30  Bruno Haible  <bruno@clisp.org>
30385
30386         * modules/xvasprintf-posix: New file.
30387         Suggested by Eric Blake.
30388
30389 2007-10-30  Bruno Haible  <bruno@clisp.org>
30390
30391         * modules/xprintf-posix-tests: New file.
30392         * tests/test-xprintf-posix.sh: New file.
30393         * tests/test-xprintf-posix.c: New file.
30394         * tests/test-xfprintf-posix.c: New file.
30395
30396         * modules/xprintf-posix: New file.
30397
30398 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30399
30400         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
30401         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
30402         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
30403
30404 2007-10-29  Bruno Haible  <bruno@clisp.org>
30405
30406         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
30407         contain the special marker '_cv_'.
30408         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30409         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30410         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30411         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30412         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30413         Reported by Ralf Wildenhues.
30414
30415 2007-10-29  Bruno Haible  <bruno@clisp.org>
30416
30417         * gnulib-tool (func_import): When --lgpl is not specified, set
30418         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
30419         GPLv3.
30420         Reported by Simon Josefsson.
30421
30422 2007-10-28  Bruno Haible  <bruno@clisp.org>
30423
30424         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
30425         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
30426         HAVE_DECL_ISFINITE.
30427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30428         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
30429         HAVE_DECL_ISFINITE.
30430
30431 2007-10-28  Bruno Haible  <bruno@clisp.org>
30432
30433         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
30434         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
30435
30436 2007-10-28  Bruno Haible  <bruno@clisp.org>
30437
30438         Fix link errors with Sun C 5.0 on Solaris 10.
30439         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
30440         function is declared but not present in the compiler's libm.
30441         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30442         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30443         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
30444         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
30445         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
30446         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
30447         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
30448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
30449         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
30450         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
30451         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
30452         HAVE_DECL_FLOORL.
30453
30454 2007-10-28  Bruno Haible  <bruno@clisp.org>
30455
30456         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
30457         gl_FUNC_FLOORL. Cache the result.
30458         (gl_FUNC_FLOORL): Use it.
30459         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
30460         gl_FUNC_CEILL. Cache the result.
30461         (gl_FUNC_CEILL): Use it.
30462
30463         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
30464         gl_FUNC_FLOOR. Cache the result.
30465         (gl_FUNC_FLOOR): Use it.
30466         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
30467         gl_FUNC_CEIL. Cache the result.
30468         (gl_FUNC_CEIL): Use it.
30469
30470         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
30471         gl_FUNC_FLOORF. Cache the result.
30472         (gl_FUNC_FLOORF): Use it.
30473         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
30474         gl_FUNC_CEILF. Cache the result.
30475         (gl_FUNC_CEILF): Use it.
30476
30477 2007-10-28  Bruno Haible  <bruno@clisp.org>
30478
30479         * gnulib-tool: Allow specifying the LGPL version number through
30480         --lgpl=2 or --lgpl=3.
30481         (func_usage): Document --lgpl with argument.
30482         Handle --lgpl=... arguments.
30483         (func_import): Recognize also gl_LGPL calls with an argument. When
30484         --lgpl=2 is used and the module's license is just LGPL, report an
30485         error. Set sed_transform_lib_file according to the lgpl variable. In
30486         the generated files, use --lgpl or gl_LGPL invocations with argument,
30487         if necessary.
30488         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
30489         an LGPv2+ license.
30490         * doc/gnulib-tool.texi (Modified imports): Update explanation of
30491         gl_LGPL macro.
30492
30493 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30494             Bruno Haible  <bruno@clisp.org>
30495
30496         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
30497         (u16_uctomb_aux): Likewise.
30498         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
30499         !HAVE_INLINE.
30500         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
30501
30502 2007-10-28  Bruno Haible  <bruno@clisp.org>
30503
30504         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
30505         Invoke AM_GETTEXT_OPTION if it exists.
30506         * modules/vasprintf: Likewise.
30507         * modules/verror: Likewise.
30508         * modules/xprintf: Likewise.
30509         * modules/xvasprintf: Likewise.
30510
30511 2007-10-27  Ben Pfaff  <blp@gnu.org>
30512
30513         * lib/math.in.h: Define isfinite macro and prototypes for
30514         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
30515         implementations.
30516         * m4/math_h.m4: New substitutions for isfinite module.
30517         * lib/isfinite.c: New file.
30518         * m4/isfinite.m4: New file.
30519         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
30520         * modules/isfinite: New file.
30521         * modules/isfinite-tests: New file.
30522         * tests/tests-isfinite.c: New file.
30523         * doc/functions/isfinite.texi: Mention isfinite module.
30524         * MODULES.html.sh: Mention new module.
30525
30526 2007-10-27  Ben Pfaff  <blp@gnu.org>
30527
30528         Ralf Wildenhues reported that Tru64 4.0D declares the round
30529         functions but does not have definitions.
30530         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
30531         cannot be found in any library, set the output variable to
30532         "missing" instead of "".
30533         * m4/round.m4: Also use our substitute if we cannot find round in
30534         any library, even if it is declared.
30535         * m4/roundf.m4: Likewise for roundf.
30536         * m4/roundl.m4: Likewise for roundl.
30537         * lib/math.in.h: Undefine roundf, round, roundl before defining
30538         their replacements, to allow for hypothetical systems where these
30539         may be defined as macros but not available in libraries.
30540
30541 2007-10-27  Bruno Haible  <bruno@clisp.org>
30542
30543         * doc/gnulib.texi: Invoke @firstparagraphindent.
30544         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
30545         changes in gnulib.
30546         (Source changes): New section.
30547
30548 2007-10-26  Bruno Haible  <bruno@clisp.org>
30549
30550         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
30551         borrowed from autoconf.
30552
30553 2007-10-26  Bruno Haible  <bruno@clisp.org>
30554
30555         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
30556         strerror returned the empty string. Needed on HP-UX 11.00.
30557
30558 2007-10-24  Micah Cowan  <micah@cowan.name>
30559
30560         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
30561         * build-aux/bootstrap: Remove support for now-unnecessary option,
30562         --cvs-user, and envvars CVS_USER, CVS_RSH.
30563
30564 2007-10-24  Jim Meyering  <meyering@redhat.com>
30565
30566         Avoid diagnostics from sha1sum when there is no cached checksum.
30567         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
30568         if the po.s1 file hasn't been created yet.
30569
30570         * build-aux/bootstrap: Sync from coreutils:
30571         2007-10-24  Jim Meyering  <meyering@redhat.com>
30572         Get gnulib from the git repository, not from an obsolete cvs one.
30573         * build-aux/bootstrap: Suggestion from Micah Cowan.
30574         2007-10-04  Jim Meyering  <jim@meyering.net>
30575         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
30576         (update_po_files): Work also when there are no .po files in po/.
30577
30578 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30579
30580         * README: Append ".git" to git and cg examples.
30581         Problem reported by Benoit Sigoure.
30582
30583 2007-10-23  Micah Cowan  <micah@cowan.name>
30584
30585         * users.txt: Add wget.
30586
30587 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30588
30589         Fix linking of some unistdio tests on FreeBSD.
30590         * modules/unistdio/u16-vsnprintf-tests
30591         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
30592         * modules/unistdio/u16-vsprintf-tests
30593         (test_u16_vsnprintf1_LDADD): Likewise.
30594         * modules/unistdio/u32-vsnprintf-tests
30595         (test_u32_vsnprintf1_LDADD): Likewise.
30596         * modules/unistdio/u32-vsprintf-tests
30597         (test_u32_vsprintf1_LDADD): Likewise.
30598         * modules/unistdio/u8-vsnprintf-tests
30599         (test_u8_vsnprintf1_LDADD): Likewise.
30600         * modules/unistdio/u8-vsprintf-tests
30601         (test_u8_vsprintf1_LDADD): Likewise.
30602         * modules/unistdio/ulc-vsnprintf-tests
30603         (test_ulc_vsnprintf1_LDADD): Likewise.
30604         * modules/unistdio/ulc-vsprintf-tests
30605         (test_ulc_vsprintf1_LDADD): Likewise.
30606
30607         Fix linking of some uniconv tests on FreeBSD.
30608         * modules/uniconv/u16-conv-from-enc-tests
30609         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
30610         * modules/uniconv/u16-conv-to-enc-tests
30611         (test_u16_conv_to_enc_LDADD): Likewise.
30612         * modules/uniconv/u16-strconv-from-enc-tests
30613         (test_u16_strconv_from_enc_LDADD): Likewise.
30614         * modules/uniconv/u16-strconv-to-enc-tests
30615         (test_u16_strconv_to_enc_LDADD): Likewise.
30616         * modules/uniconv/u32-conv-from-enc-tests
30617         (test_u32_conv_from_enc_LDADD): Likewise.
30618         * modules/uniconv/u32-conv-to-enc-tests
30619         (test_u32_conv_to_enc_LDADD): Likewise.
30620         * modules/uniconv/u32-strconv-from-enc-tests
30621         (test_u32_strconv_from_enc_LDADD): Likewise.
30622         * modules/uniconv/u32-strconv-to-enc-tests
30623         (test_u32_strconv_to_enc_LDADD): Likewise.
30624         * modules/uniconv/u8-conv-from-enc-tests
30625         (test_u8_conv_from_enc_LDADD): Likewise.
30626         * modules/uniconv/u8-conv-to-enc-tests
30627         (test_u8_conv_to_enc_LDADD): Likewise.
30628         * modules/uniconv/u8-strconv-from-enc-tests
30629         (test_u8_strconv_from_enc_LDADD): Likewise.
30630         * modules/uniconv/u8-strconv-to-enc-tests
30631         (test_u8_strconv_to_enc_LDADD): Likewise.
30632
30633 2007-10-22  Bruno Haible  <bruno@clisp.org>
30634
30635         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
30636         size.
30637
30638 2007-10-22  Eric Blake  <ebb9@byu.net>
30639
30640         Tweak x*printf documentation.
30641         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
30642         variable name and comments.
30643         Suggested by Bruno Haible.
30644
30645 2007-10-22  Bruno Haible  <bruno@clisp.org>
30646
30647         * lib/acl.c (copy_acl): Fix file name in comment.
30648
30649 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30650
30651         Fix Tru64 problem with stdbool.h.
30652         * lib/stdbool.in.h (false, true):
30653         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
30654         Don't declare as an enum in this situation; it runs afoul of Tru64.
30655         Problem reported by Steven M. Schweda in
30656         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
30657
30658 2007-10-22  Eric Blake  <ebb9@byu.net>
30659
30660         Also wrap vf?printf.
30661         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
30662         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
30663         (xvprintf, xvfprintf): New functions.
30664
30665 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30666
30667         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
30668         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
30669
30670         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
30671         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
30672
30673 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
30674
30675         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
30676         by Bruno Haible.
30677
30678 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30679
30680         * lib/getloadavg.c
30681         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
30682         Undef `sys' after including sys/table.h, for Tru64 4.0D.
30683
30684         * tests/test-i-ring.c: Work for C89.
30685
30686 2007-10-22  Bruno Haible  <bruno@clisp.org>
30687
30688         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
30689         -1u, in preprocessor expression, so that we don't test for the bug
30690         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
30691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
30692
30693 2007-10-22  Eric Blake  <ebb9@byu.net>
30694
30695         * tests/test-yesno.sh: Silence stderr during test.
30696
30697 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30698
30699         * modules/crypto/gc-camellia: New file.
30700
30701         * m4/gc-camellia.m4: New file.
30702
30703         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
30704
30705         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
30706
30707 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30708
30709         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
30710         --help to stdout.  Reported by sms@antinode.org (Steven
30711         M. Schweda).
30712
30713 2007-10-22  Simon Josefsson  <simon@josefsson.org>
30714
30715         * users.txt: Fix link to libksba.
30716
30717 2007-10-21  Ben Pfaff  <blp@gnu.org>
30718
30719         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
30720         round.c roundf implementation that depends on floorf and ceilf to
30721         be tested unconditionally.
30722
30723 2007-10-21  Ben Pfaff  <blp@gnu.org>
30724
30725         * m4/check-libm-func.m4: Removed.
30726         * m4/check-math-lib.m4: New file.
30727         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
30728         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
30729         definition and lack of AC_LIBOBJ([roundf]).
30730         * m4/roundl.m4: Ditto, and similarly for roundl.
30731         * modules/round: Reference new m4 file.
30732         * modules/roundf: Ditto.
30733         * modules/roundl: Ditto.
30734         * tests/test-round2.c (main): Use ROUND instead of round.
30735         Bug report from Bruno Haible.
30736
30737 2007-10-21  Bruno Haible  <bruno@clisp.org>
30738
30739         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
30740         context.
30741
30742 2007-10-21  Bruno Haible  <bruno@clisp.org>
30743
30744         * tests/test-wcwidth.c (main): Allow negative result for some control
30745         characters.
30746
30747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
30748         Needed on OSF/1 5.1.
30749
30750 2007-10-21  Bruno Haible  <bruno@clisp.org>
30751
30752         * tests/test-floorf1.c: Include isnanf.h.
30753         (main): Use isnanf() instead of isnan().
30754         * tests/test-ceilf1.c: Include isnanf.h.
30755         (main): Use isnanf() instead of isnan().
30756         * tests/test-truncf1.c: Include isnanf.h.
30757         (main): Use isnanf() instead of isnan().
30758         * tests/test-roundf1.c: Include isnanf.h.
30759         (main): Use isnanf() instead of isnan().
30760
30761 2007-10-21  Eric Blake  <ebb9@byu.net>
30762
30763         * users.txt: Update URL for m4.
30764
30765 2007-10-21  Bruno Haible  <bruno@clisp.org>
30766
30767         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
30768
30769 2007-10-21  Bruno Haible  <bruno@clisp.org>
30770
30771         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
30772         Git's management files if the CVS files are not present.
30773
30774 2007-10-20  Bruno Haible  <bruno@clisp.org>
30775
30776         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
30777         gcc-3.4.x.
30778
30779 2007-10-20  Ben Pfaff  <blp@gnu.org>
30780
30781         * lib/math.in.h: Declare round, roundf, roundl if we are providing
30782         implementations.
30783         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
30784         * lib/round.c: New file.
30785         * lib/roundf.c: New file.
30786         * lib/roundl.c: New file.
30787         * m4/round.m4: New file.
30788         * m4/roundf.m4: New file.
30789         * m4/roundl.m4: New file.
30790         * m4/check-libm-func-m4: New file.
30791         * modules/math: Replace round, roundf, roundl related @VARS@ in
30792         math.in.h.
30793         * modules/round: New file.
30794         * modules/round-tests: New file.
30795         * modules/roundf: New file.
30796         * modules/roundf-tests: New file.
30797         * modules/roundl: New file.
30798         * modules/roundl-tests: New file.
30799         * tests/test-round1.c: New file.
30800         * tests/test-round2.c: New file.
30801         * tests/test-roundf1.c: New file.
30802         * tests/test-roundf2.c: New file.
30803         * tests/test-roundl.c: New file.
30804         * doc/functions/round.texi: Mention round module.
30805         * doc/functions/roundf.texi: Mention roundf module.
30806         * doc/functions/roundl.texi: Mention roundl module.
30807         * MODULES.html.sh: Mention new modules.
30808         Thanks to Bruno Haible for suggestions.
30809
30810 2007-10-20  Jim Meyering  <meyering@redhat.com>
30811
30812         * lib/xprintf.c: Include <config.h> unconditionally.
30813
30814         Change xprintf's license to GPL.
30815         * modules/xprintf (License): s/LGPL/GPL/, since this module
30816         depends on modules (exit and exitfail) which are GPL.
30817         Suggestion from Bruno Haible.
30818
30819         xprintf fixes.
30820         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
30821         Use a clearer diagnostic.
30822         Patch from Bruno Haible.
30823
30824 2007-10-20  Bruno Haible  <bruno@clisp.org>
30825
30826         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
30827         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
30828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30829
30830 2007-10-20  Bruno Haible  <bruno@clisp.org>
30831
30832         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
30833         precision in the comparison result > x - 1 or similar.
30834         * tests/test-ceilf2.c (correct_result_p): Likewise.
30835         * tests/test-truncf2.c (correct_result_p): Likewise.
30836         * tests/test-trunc2.c (correct_result_p): Likewise.
30837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30838
30839 2007-10-20  Bruno Haible  <bruno@clisp.org>
30840
30841         * modules/ceil: New file.
30842         * m4/ceil.m4: New file.
30843         * doc/functions/ceil.texi: Mention the 'ceil' module.
30844
30845 2007-10-20  Bruno Haible  <bruno@clisp.org>
30846
30847         * modules/floor: New file.
30848         * m4/floor.m4: New file.
30849         * doc/functions/floor.texi: Mention the 'floor' module.
30850
30851 2007-10-20  Bruno Haible  <bruno@clisp.org>
30852
30853         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
30854         of %a.
30855         * modules/floorf-tests (Depends-on): Likewise.
30856         * modules/truncf-tests (Depends-on): Likewise.
30857         * modules/trunc-tests (Depends-on): Likewise.
30858         Reported by Ben Pfaff.
30859
30860 2007-10-19  Jim Meyering  <meyering@redhat.com>
30861
30862         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
30863         Don't bother testing specific errno values.  Just test ferror.
30864
30865         New module: xprintf
30866         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
30867
30868 2007-10-19  Bruno Haible  <bruno@clisp.org>
30869
30870         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
30871         syntax.
30872         * modules/javaexec (Makefile.am): Likewise.
30873         * modules/relocatable-prog (Makefile.am): Likewise.
30874         Suggested by Jim Meyering.
30875
30876 2007-10-18  Bruno Haible  <bruno@clisp.org>
30877
30878         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
30879         Reported by Jim Meyering.
30880
30881 2007-10-18  Eric Blake  <ebb9@byu.net>
30882
30883         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
30884
30885 2007-10-18  Bruno Haible  <bruno@clisp.org>
30886
30887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
30888         the format string into writable memory. Needed in Fortify conditions.
30889
30890 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
30891             Bruno Haible  <bruno@clisp.org>
30892
30893         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
30894         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
30895         * modules/trim (Depends-on): Add mbchar.
30896         (configure.ac): Add gl_FUNC_MBRTOWC.
30897         (Makefile.am): Augment lib_SOURCES.
30898
30899 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30900
30901         Modify glob.c to use fstatat and dirfd, to simplify it.
30902         Suggested by Eric Blake.
30903         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
30904         Don't include <stdbool.h>; not used.
30905         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
30906         (link_exists_p): Simplify implementation, since we can now assume
30907         dirfd and fstatat.
30908         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
30909
30910 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30911
30912         * gnulib-tool (func_get_dependencies): Fix sed script to
30913         match only tests.
30914
30915 2007-10-17  Bruno Haible  <bruno@clisp.org>
30916
30917         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
30918         allow locale names without encoding suffix.
30919         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
30920         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30921
30922 2007-10-16  Bruno Haible  <bruno@clisp.org>
30923
30924         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
30925         * lib/getgroups.c (getgroups): Likewise.
30926         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
30927
30928 2007-10-16  Bruno Haible  <bruno@clisp.org>
30929
30930         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
30931         * modules/malloc-posix (License): Likewise.
30932         * modules/realloc-posix (License): Likewise.
30933         * modules/calloc-posix (License): Likewise.
30934         * modules/intprops (License): Change from GPL to LGPL, with
30935         Paul Eggert's approval.
30936
30937 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30938
30939         Merge glibc changes into lib/glob.c.
30940
30941         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
30942         2007-10-15 04:59:03 UTC.  Here are the changes:
30943
30944         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
30945
30946         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
30947
30948         * lib/glob.c: Add some branch prediction throughout.
30949
30950         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
30951
30952         [BZ #5103]
30953         * lib/glob.c (glob): Recognize patterns starting \/.
30954
30955         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
30956
30957         [BZ #3996]
30958         * lib/glob.c (attribute_hidden): Define if not defined.
30959         (glob): Unescape dirname, filename or username when needed and not
30960         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
30961         is NULL.  Handle unescaped [ in pattern without closing ].
30962         Don't pass GLOB_CHECK down to recursive glob for directories.
30963         (__glob_pattern_type): New function.
30964         (__glob_pattern_p): Implement using __glob_pattern_type.
30965         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
30966         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
30967         Remove unreachable code.
30968
30969         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
30970
30971         * lib/glob.c (glob_in_dir): Add some comments and asserts to
30972         explain why there are no leaks.
30973
30974         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
30975
30976         [BZ #3253]
30977         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
30978         time, rather allocate increasingly bigger arrays of pointers, if
30979         possible with alloca, if too large with malloc.
30980
30981 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30982
30983         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
30984         Problem reported by H.Merijn Brand in
30985         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
30986         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
30987         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
30988
30989 2007-10-15  Bruno Haible  <bruno@clisp.org>
30990
30991         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
30992         with explicit rpl_ prefix.
30993         * lib/fopen.c (fopen): Likewise.
30994         * lib/freopen.c (freopen): Likewise.
30995         * lib/iconv.c (iconv): Likewise.
30996         * lib/iconv_close.c (iconv_close): Likewise.
30997
30998 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30999
31000         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
31001
31002 2007-10-15  Bruno Haible  <bruno@clisp.org>
31003
31004         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
31005         <stddef.h> instead of <stdlib.h> since we only need NULL.
31006         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31007
31008 2007-10-15  Bruno Haible  <bruno@clisp.org>
31009
31010         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
31011         Replace paragraph talking about LIBOBJS.
31012         Reported by Colin Watson <cjwatson@debian.org>.
31013
31014 2007-10-15  Bruno Haible  <bruno@clisp.org>
31015
31016         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
31017         <stdlib.h> before using NULL.
31018
31019 2007-10-15  Simon Josefsson  <simon@josefsson.org>
31020
31021         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
31022         Reported by Albert Chin <china@thewrittenword.com>.
31023
31024 2007-10-14  Bruno Haible  <bruno@clisp.org>
31025
31026         * modules/iconv_open-utf-tests: New file.
31027         * tests/test-iconv-utf.c: New file.
31028
31029         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
31030         * modules/iconv_open-utf: New file.
31031         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
31032         (iconv, iconv_close): New declarations.
31033         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
31034         be defined.
31035         (iconv_open): Add special handling of conversion between UTF-8 and
31036         UTF-{16,32}{BE,LE}.
31037         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
31038         * lib/iconv_close.c: New file.
31039         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
31040         gl_FUNC_ICONV_OPEN.
31041         (gl_FUNC_ICONV_OPEN): Use it.
31042         (gl_FUNC_ICONV_OPEN_UTF): New macro.
31043         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
31044         and REPLACE_ICONV_UTF.
31045         * modules/iconv_open (Depends-on): Add c-strcase.
31046         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
31047         ICONV_CONST.
31048         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
31049
31050 2007-10-13  Albert Chin  <china@thewrittenword.com>
31051             Bruno Haible  <bruno@clisp.org>
31052
31053         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
31054         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
31055
31056 2007-10-13  Bruno Haible  <bruno@clisp.org>
31057
31058         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
31059         defined, use the ISO C99 inline semantics.
31060         * lib/argp.h (ARGP_EI): Likewise.
31061
31062 2007-10-13  Bruno Haible  <bruno@clisp.org>
31063
31064         Handle 'inline' change in gcc 4.3.0.
31065         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
31066         argp_fmtstream_write, argp_fmtstream_set_lmargin,
31067         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
31068         argp_fmtstream_point): Disable 'extern' declaration if the function
31069         definition is going to be provided inline.
31070         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
31071         semantics, not the ISO C99 inline semantics.
31072         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
31073         'extern' declaration if the function definition is going to be provided
31074         inline.
31075         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
31076         the GNU C inline semantics, not the ISO C99 inline semantics. With
31077         GCC 4.2, avoid a warning.
31078
31079 2007-10-13  Bruno Haible  <bruno@clisp.org>
31080
31081         * lib/freading.h (freading): Enable the use of __freading for
31082         glibc >= 2.7.
31083         * lib/freading.c (freading): Likewise.
31084
31085 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31086
31087         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
31088         "warning: C99 inline functions are not supported; using GNU89".
31089
31090 2007-10-12  Bruno Haible  <bruno@clisp.org>
31091
31092         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
31093         of 2.
31094         * tests/test-ceilf2.c: New file.
31095         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
31096
31097         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
31098         * modules/ceilf-tests: Update.
31099
31100 2007-10-12  Bruno Haible  <bruno@clisp.org>
31101
31102         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
31103         of 2.
31104         * tests/test-floorf2.c: New file.
31105         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
31106
31107         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
31108         * modules/floorf-tests: Update.
31109
31110 2007-10-12  Bruno Haible  <bruno@clisp.org>
31111
31112         * tests/test-trunc2.c: New file.
31113         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
31114
31115         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
31116         * modules/trunc-tests: Update.
31117
31118 2007-10-12  Bruno Haible  <bruno@clisp.org>
31119
31120         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
31121         of 2.
31122         * tests/test-truncf2.c: New file.
31123         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
31124
31125         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
31126         * modules/truncf-tests: Update.
31127
31128 2007-10-11  Eric Blake  <ebb9@byu.net>
31129
31130         Don't claim strerror is broken on Interix.
31131         * doc/functions/strerror.texi (strerror): Known broken systems are
31132         now Solaris 8, and not Interix.
31133         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
31134         Interix on cross-compile.
31135         Reported by Martin Koeppe in
31136         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
31137
31138 2007-10-11  Bruno Haible  <bruno@clisp.org>
31139
31140         * modules/i-ring-tests: New file.
31141         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
31142         instead of assert.
31143
31144 2007-10-11  Bruno Haible  <bruno@clisp.org>
31145
31146         * modules/filenamecat-tests: New file.
31147         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
31148         * lib/filenamecat.c: Remove test code.
31149
31150 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31151
31152         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
31153
31154         * lib/strerror.c: Include <string.h> always, to test interface,
31155         and to remove the need for the dummy.
31156         Include intprops.h to compute width instead of doing it ourselves
31157         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
31158         (strerror): Define it to return NULL if there's no system strerror.
31159         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
31160         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
31161         ancient pre-strerror Unix systems well any more.  Saying "unknown
31162         system error" is enough.
31163         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
31164         simpler strerror.c implementation.
31165         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
31166         Simplify the tests to reflect the simpler strerror implementation.
31167         * modules/strerror (Depends-on): Add intprops.
31168
31169 2007-10-09  Eric Blake  <ebb9@byu.net>
31170
31171         Silence test-fpending.
31172         * modules/fpending-tests (Files): Add wrapper script.
31173         * tests/test-fpending.sh: New file.
31174
31175 2007-10-09  Bruno Haible  <bruno@clisp.org>
31176
31177         * MODULES.html.sh (func_module): Don't create a hyperlink for
31178         function names like 'printf_frexp'.
31179         (Misc): Add crc, memxor.
31180         (Characteristics of floating types): New section.
31181         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
31182         isnanf-nolibm, signbit, trunc, truncf, truncl.
31183         (Enhancements for ISO C 99 functions): New subsection Input/output.
31184         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
31185         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
31186         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
31187         (Compatibility checks for POSIX:2001 functions): Add clock-time.
31188         (Enhancements for POSIX:2001 functions): Add chdir-long.
31189         (File system functions): Add areadlink, chdir-safer, read-file.
31190         Remove cycle-check.
31191         (File system as inode set): New section.
31192         (Date and time): Add gethrxtime.
31193         (Multithreading): Add openmp.
31194         (Internationalization functions): Add localename.
31195         (Unicode string functions): Add unistr/u*-mbsnlen.
31196         (Support for maintaining and releasing projects): Add git-version-gen.
31197         (Lone files): Remove directories.
31198
31199 2007-10-08  Ben Pfaff  <blp@gnu.org>
31200
31201         * lib/xmalloca.h: Fix typo in comment.
31202
31203 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31204
31205         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
31206         when avoiding problems with integer overflow.  Use a portable test
31207         instead.
31208
31209 2007-10-08  Simon Josefsson  <simon@josefsson.org>
31210
31211         * modules/dummy (License): Change to LGPLv2+.
31212         * modules/float (License): Likewise
31213         * modules/realloc (License): Likewise
31214         * modules/stdlib (License): Likewise
31215
31216 2007-10-07  Bruno Haible  <bruno@clisp.org>
31217
31218         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
31219         * floor.c (TWO_MANT_DIG): Likewise.
31220         * ceil.c (TWO_MANT_DIG): Likewise.
31221         Reported by Ben Pfaff.
31222
31223 2007-10-07  Bruno Haible  <bruno@clisp.org>
31224
31225         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
31226         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
31227         * lib/frexp.c (FUNC): Likewise.
31228         * lib/printf-frexp.h (printf_frexp): Likewise.
31229         * lib/printf-frexpl.h (printf_frexpl): Likewise.
31230         * lib/printf-frexp.c (FUNC): Likewise.
31231         Suggested by Jim Meyering.
31232
31233 2007-10-07  Jim Meyering  <meyering@redhat.com>
31234
31235         Make xnanosleep's integer overflow test more robust.
31236         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
31237         so that gcc-4.3.0 doesn't optimize away this test for overflow.
31238
31239 2007-10-07  Bruno Haible  <bruno@clisp.org>
31240
31241         * NEWS: Mention the license change.
31242
31243         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
31244         abbreviations in the modules files.
31245
31246         Change copyright notice from GPLv2+ to GPLv3+.
31247         * README: Change copyright notice.
31248         * MODULES.html.sh: Likewise.
31249         * build-aux/bootstrap.conf: Likewise.
31250         * build-aux/config.libpath: Likewise.
31251         * build-aux/csharpcomp.sh.in: Likewise.
31252         * build-aux/csharpexec.sh.in: Likewise.
31253         * build-aux/install-reloc: Likewise.
31254         * build-aux/javacomp.sh.in: Likewise.
31255         * build-aux/javaexec.sh.in: Likewise.
31256         * build-aux/ldd.sh.in: Likewise.
31257         * build-aux/reloc-ldflags: Likewise.
31258         * build-aux/relocatable.sh.in: Likewise.
31259         * build-aux/x-to-1.in: Likewise.
31260         * check-module: Likewise.
31261         * config/srclistvars.sh: Likewise.
31262         * gnulib-tool: Likewise.
31263         * lib/acl-internal.h: Likewise.
31264         * lib/acl.c: Likewise.
31265         * lib/acl.h: Likewise.
31266         * lib/acl_entries.c: Likewise.
31267         * lib/areadlink-with-size.c: Likewise.
31268         * lib/areadlink.c: Likewise.
31269         * lib/areadlink.h: Likewise.
31270         * lib/argmatch.c: Likewise.
31271         * lib/argmatch.h: Likewise.
31272         * lib/argp-ba.c: Likewise.
31273         * lib/argp-eexst.c: Likewise.
31274         * lib/argp-fmtstream.c: Likewise.
31275         * lib/argp-fmtstream.h: Likewise.
31276         * lib/argp-fs-xinl.c: Likewise.
31277         * lib/argp-help.c: Likewise.
31278         * lib/argp-namefrob.h: Likewise.
31279         * lib/argp-parse.c: Likewise.
31280         * lib/argp-pin.c: Likewise.
31281         * lib/argp-pv.c: Likewise.
31282         * lib/argp-pvh.c: Likewise.
31283         * lib/argp-xinl.c: Likewise.
31284         * lib/argp.h: Likewise.
31285         * lib/at-func.c: Likewise.
31286         * lib/atanl.c: Likewise.
31287         * lib/backupfile.c: Likewise.
31288         * lib/backupfile.h: Likewise.
31289         * lib/basename.c: Likewise.
31290         * lib/binary-io.h: Likewise.
31291         * lib/byteswap.in.h: Likewise.
31292         * lib/c-stack.c: Likewise.
31293         * lib/c-stack.h: Likewise.
31294         * lib/c-strcasestr.c: Likewise.
31295         * lib/c-strcasestr.h: Likewise.
31296         * lib/c-strstr.c: Likewise.
31297         * lib/c-strstr.h: Likewise.
31298         * lib/c-strtod.c: Likewise.
31299         * lib/calloc.c: Likewise.
31300         * lib/canon-host.c: Likewise.
31301         * lib/canon-host.h: Likewise.
31302         * lib/canonicalize-lgpl.c: Likewise.
31303         * lib/canonicalize.c: Likewise.
31304         * lib/canonicalize.h: Likewise.
31305         * lib/ceil.c: Likewise.
31306         * lib/ceilf.c: Likewise.
31307         * lib/ceill.c: Likewise.
31308         * lib/chdir-long.c: Likewise.
31309         * lib/chdir-long.h: Likewise.
31310         * lib/chdir-safer.c: Likewise.
31311         * lib/chdir-safer.h: Likewise.
31312         * lib/chown.c: Likewise.
31313         * lib/classpath.c: Likewise.
31314         * lib/classpath.h: Likewise.
31315         * lib/clean-temp.c: Likewise.
31316         * lib/clean-temp.h: Likewise.
31317         * lib/cloexec.c: Likewise.
31318         * lib/close-stream.c: Likewise.
31319         * lib/closein.c: Likewise.
31320         * lib/closein.h: Likewise.
31321         * lib/closeout.c: Likewise.
31322         * lib/closeout.h: Likewise.
31323         * lib/concat-filename.c: Likewise.
31324         * lib/copy-file.c: Likewise.
31325         * lib/copy-file.h: Likewise.
31326         * lib/count-one-bits.h: Likewise.
31327         * lib/crc.c: Likewise.
31328         * lib/crc.h: Likewise.
31329         * lib/creat-safer.c: Likewise.
31330         * lib/csharpcomp.c: Likewise.
31331         * lib/csharpcomp.h: Likewise.
31332         * lib/csharpexec.c: Likewise.
31333         * lib/csharpexec.h: Likewise.
31334         * lib/cycle-check.c: Likewise.
31335         * lib/cycle-check.h: Likewise.
31336         * lib/diacrit.c: Likewise.
31337         * lib/diacrit.h: Likewise.
31338         * lib/diffseq.h: Likewise.
31339         * lib/dirchownmod.c: Likewise.
31340         * lib/dirent.in.h: Likewise.
31341         * lib/dirfd.c: Likewise.
31342         * lib/dirfd.h: Likewise.
31343         * lib/dirname.c: Likewise.
31344         * lib/dirname.h: Likewise.
31345         * lib/dummy.c: Likewise.
31346         * lib/dup-safer.c: Likewise.
31347         * lib/dup2.c: Likewise.
31348         * lib/eealloc.h: Likewise.
31349         * lib/error.c: Likewise.
31350         * lib/error.h: Likewise.
31351         * lib/euidaccess.c: Likewise.
31352         * lib/exclude.c: Likewise.
31353         * lib/exclude.h: Likewise.
31354         * lib/execute.c: Likewise.
31355         * lib/execute.h: Likewise.
31356         * lib/exitfail.c: Likewise.
31357         * lib/exitfail.h: Likewise.
31358         * lib/expl.c: Likewise.
31359         * lib/fatal-signal.c: Likewise.
31360         * lib/fatal-signal.h: Likewise.
31361         * lib/fbufmode.c: Likewise.
31362         * lib/fbufmode.h: Likewise.
31363         * lib/fchdir.c: Likewise.
31364         * lib/fchmodat.c: Likewise.
31365         * lib/fchownat.c: Likewise.
31366         * lib/fcntl--.h: Likewise.
31367         * lib/fcntl-safer.h: Likewise.
31368         * lib/fcntl.in.h: Likewise.
31369         * lib/fd-safer.c: Likewise.
31370         * lib/fflush.c: Likewise.
31371         * lib/file-has-acl.c: Likewise.
31372         * lib/file-set.c: Likewise.
31373         * lib/file-type.c: Likewise.
31374         * lib/file-type.h: Likewise.
31375         * lib/fileblocks.c: Likewise.
31376         * lib/filemode.c: Likewise.
31377         * lib/filemode.h: Likewise.
31378         * lib/filename.h: Likewise.
31379         * lib/filenamecat.c: Likewise.
31380         * lib/filenamecat.h: Likewise.
31381         * lib/findprog.c: Likewise.
31382         * lib/findprog.h: Likewise.
31383         * lib/float.in.h: Likewise.
31384         * lib/floor.c: Likewise.
31385         * lib/floorf.c: Likewise.
31386         * lib/floorl.c: Likewise.
31387         * lib/fopen-safer.c: Likewise.
31388         * lib/fopen.c: Likewise.
31389         * lib/fpending.c: Likewise.
31390         * lib/fpending.h: Likewise.
31391         * lib/fprintf.c: Likewise.
31392         * lib/fprintftime.h: Likewise.
31393         * lib/fpucw.h: Likewise.
31394         * lib/fpurge.c: Likewise.
31395         * lib/fpurge.h: Likewise.
31396         * lib/freadable.c: Likewise.
31397         * lib/freadable.h: Likewise.
31398         * lib/freadahead.c: Likewise.
31399         * lib/freadahead.h: Likewise.
31400         * lib/freading.c: Likewise.
31401         * lib/freading.h: Likewise.
31402         * lib/free.c: Likewise.
31403         * lib/freopen.c: Likewise.
31404         * lib/frexp.c: Likewise.
31405         * lib/frexpl.c: Likewise.
31406         * lib/fseek.c: Likewise.
31407         * lib/fseterr.c: Likewise.
31408         * lib/fseterr.h: Likewise.
31409         * lib/fstatat.c: Likewise.
31410         * lib/fstrcmp.c: Likewise.
31411         * lib/fstrcmp.h: Likewise.
31412         * lib/fsusage.c: Likewise.
31413         * lib/fsusage.h: Likewise.
31414         * lib/ftell.c: Likewise.
31415         * lib/ftello.c: Likewise.
31416         * lib/fts-cycle.c: Likewise.
31417         * lib/fts.c: Likewise.
31418         * lib/fts_.h: Likewise.
31419         * lib/full-read.c: Likewise.
31420         * lib/full-read.h: Likewise.
31421         * lib/full-write.c: Likewise.
31422         * lib/full-write.h: Likewise.
31423         * lib/fwritable.c: Likewise.
31424         * lib/fwritable.h: Likewise.
31425         * lib/fwriteerror.c: Likewise.
31426         * lib/fwriteerror.h: Likewise.
31427         * lib/fwriting.c: Likewise.
31428         * lib/fwriting.h: Likewise.
31429         * lib/gcd.c: Likewise.
31430         * lib/gcd.h: Likewise.
31431         * lib/getcwd.c: Likewise.
31432         * lib/getdate.h: Likewise.
31433         * lib/getdate.y: Likewise.
31434         * lib/getdomainname.c: Likewise.
31435         * lib/getdomainname.h: Likewise.
31436         * lib/getgroups.c: Likewise.
31437         * lib/gethostname.c: Likewise.
31438         * lib/gethrxtime.c: Likewise.
31439         * lib/gethrxtime.h: Likewise.
31440         * lib/getloadavg.c: Likewise.
31441         * lib/getndelim2.c: Likewise.
31442         * lib/getndelim2.h: Likewise.
31443         * lib/getnline.c: Likewise.
31444         * lib/getnline.h: Likewise.
31445         * lib/getopt.c: Likewise.
31446         * lib/getopt.in.h: Likewise.
31447         * lib/getopt1.c: Likewise.
31448         * lib/getopt_int.h: Likewise.
31449         * lib/getpagesize.h: Likewise.
31450         * lib/getsubopt.c: Likewise.
31451         * lib/gettime.c: Likewise.
31452         * lib/getugroups.c: Likewise.
31453         * lib/getugroups.h: Likewise.
31454         * lib/getusershell.c: Likewise.
31455         * lib/gl_anyavltree_list1.h: Likewise.
31456         * lib/gl_anyavltree_list2.h: Likewise.
31457         * lib/gl_anyhash_list1.h: Likewise.
31458         * lib/gl_anyhash_list2.h: Likewise.
31459         * lib/gl_anylinked_list1.h: Likewise.
31460         * lib/gl_anylinked_list2.h: Likewise.
31461         * lib/gl_anyrbtree_list1.h: Likewise.
31462         * lib/gl_anyrbtree_list2.h: Likewise.
31463         * lib/gl_anytree_list1.h: Likewise.
31464         * lib/gl_anytree_list2.h: Likewise.
31465         * lib/gl_anytree_oset.h: Likewise.
31466         * lib/gl_anytreehash_list1.h: Likewise.
31467         * lib/gl_anytreehash_list2.h: Likewise.
31468         * lib/gl_array_list.c: Likewise.
31469         * lib/gl_array_list.h: Likewise.
31470         * lib/gl_array_oset.c: Likewise.
31471         * lib/gl_array_oset.h: Likewise.
31472         * lib/gl_avltree_list.c: Likewise.
31473         * lib/gl_avltree_list.h: Likewise.
31474         * lib/gl_avltree_oset.c: Likewise.
31475         * lib/gl_avltree_oset.h: Likewise.
31476         * lib/gl_avltreehash_list.c: Likewise.
31477         * lib/gl_avltreehash_list.h: Likewise.
31478         * lib/gl_carray_list.c: Likewise.
31479         * lib/gl_carray_list.h: Likewise.
31480         * lib/gl_linked_list.c: Likewise.
31481         * lib/gl_linked_list.h: Likewise.
31482         * lib/gl_linkedhash_list.c: Likewise.
31483         * lib/gl_linkedhash_list.h: Likewise.
31484         * lib/gl_list.c: Likewise.
31485         * lib/gl_list.h: Likewise.
31486         * lib/gl_oset.c: Likewise.
31487         * lib/gl_oset.h: Likewise.
31488         * lib/gl_rbtree_list.c: Likewise.
31489         * lib/gl_rbtree_list.h: Likewise.
31490         * lib/gl_rbtree_oset.c: Likewise.
31491         * lib/gl_rbtree_oset.h: Likewise.
31492         * lib/gl_rbtreehash_list.c: Likewise.
31493         * lib/gl_rbtreehash_list.h: Likewise.
31494         * lib/gl_sublist.c: Likewise.
31495         * lib/gl_sublist.h: Likewise.
31496         * lib/group-member.c: Likewise.
31497         * lib/group-member.h: Likewise.
31498         * lib/hard-locale.c: Likewise.
31499         * lib/hard-locale.h: Likewise.
31500         * lib/hash-pjw.c: Likewise.
31501         * lib/hash-pjw.h: Likewise.
31502         * lib/hash-triple.c: Likewise.
31503         * lib/hash.c: Likewise.
31504         * lib/hash.h: Likewise.
31505         * lib/human.c: Likewise.
31506         * lib/human.h: Likewise.
31507         * lib/i-ring.c: Likewise.
31508         * lib/i-ring.h: Likewise.
31509         * lib/idcache.c: Likewise.
31510         * lib/imaxabs.c: Likewise.
31511         * lib/imaxdiv.c: Likewise.
31512         * lib/inet_pton.c: Likewise.
31513         * lib/inet_pton.h: Likewise.
31514         * lib/intprops.h: Likewise.
31515         * lib/inttostr.c: Likewise.
31516         * lib/inttostr.h: Likewise.
31517         * lib/inttypes.in.h: Likewise.
31518         * lib/isapipe.c: Likewise.
31519         * lib/isdir.c: Likewise.
31520         * lib/isnan.c: Likewise.
31521         * lib/isnan.h: Likewise.
31522         * lib/isnanf.c: Likewise.
31523         * lib/isnanf.h: Likewise.
31524         * lib/isnanl-nolibm.h: Likewise.
31525         * lib/isnanl.c: Likewise.
31526         * lib/isnanl.h: Likewise.
31527         * lib/javacomp.c: Likewise.
31528         * lib/javacomp.h: Likewise.
31529         * lib/javaexec.c: Likewise.
31530         * lib/javaexec.h: Likewise.
31531         * lib/javaversion.c: Likewise.
31532         * lib/javaversion.h: Likewise.
31533         * lib/javaversion.java: Likewise.
31534         * lib/lbrkprop.h: Likewise.
31535         * lib/lchmod.h: Likewise.
31536         * lib/lchown.c: Likewise.
31537         * lib/ldexpl.c: Likewise.
31538         * lib/linebreak.c: Likewise.
31539         * lib/linebreak.h: Likewise.
31540         * lib/linebuffer.c: Likewise.
31541         * lib/linebuffer.h: Likewise.
31542         * lib/locale.in.h: Likewise.
31543         * lib/logl.c: Likewise.
31544         * lib/long-options.c: Likewise.
31545         * lib/long-options.h: Likewise.
31546         * lib/lstat.c: Likewise.
31547         * lib/lstat.h: Likewise.
31548         * lib/math.in.h: Likewise.
31549         * lib/mbchar.c: Likewise.
31550         * lib/mbchar.h: Likewise.
31551         * lib/mbfile.h: Likewise.
31552         * lib/mbiter.h: Likewise.
31553         * lib/mbscasecmp.c: Likewise.
31554         * lib/mbscasestr.c: Likewise.
31555         * lib/mbschr.c: Likewise.
31556         * lib/mbscspn.c: Likewise.
31557         * lib/mbslen.c: Likewise.
31558         * lib/mbsncasecmp.c: Likewise.
31559         * lib/mbsnlen.c: Likewise.
31560         * lib/mbspbrk.c: Likewise.
31561         * lib/mbspcasecmp.c: Likewise.
31562         * lib/mbsrchr.c: Likewise.
31563         * lib/mbssep.c: Likewise.
31564         * lib/mbsspn.c: Likewise.
31565         * lib/mbsstr.c: Likewise.
31566         * lib/mbstok_r.c: Likewise.
31567         * lib/mbswidth.c: Likewise.
31568         * lib/mbswidth.h: Likewise.
31569         * lib/mbuiter.h: Likewise.
31570         * lib/memcasecmp.c: Likewise.
31571         * lib/memcasecmp.h: Likewise.
31572         * lib/memchr.c: Likewise.
31573         * lib/memcmp.c: Likewise.
31574         * lib/memcoll.c: Likewise.
31575         * lib/memcoll.h: Likewise.
31576         * lib/memcpy.c: Likewise.
31577         * lib/memrchr.c: Likewise.
31578         * lib/mkancesdirs.c: Likewise.
31579         * lib/mkdir-p.c: Likewise.
31580         * lib/mkdir-p.h: Likewise.
31581         * lib/mkdir.c: Likewise.
31582         * lib/mkdirat.c: Likewise.
31583         * lib/mkdtemp.c: Likewise.
31584         * lib/mkstemp-safer.c: Likewise.
31585         * lib/mkstemp.c: Likewise.
31586         * lib/modechange.c: Likewise.
31587         * lib/modechange.h: Likewise.
31588         * lib/mountlist.c: Likewise.
31589         * lib/mountlist.h: Likewise.
31590         * lib/mpsort.c: Likewise.
31591         * lib/nanosleep.c: Likewise.
31592         * lib/obstack.c: Likewise.
31593         * lib/obstack.h: Likewise.
31594         * lib/open-safer.c: Likewise.
31595         * lib/open.c: Likewise.
31596         * lib/openat-die.c: Likewise.
31597         * lib/openat-priv.h: Likewise.
31598         * lib/openat-proc.c: Likewise.
31599         * lib/openat.c: Likewise.
31600         * lib/openat.h: Likewise.
31601         * lib/pagealign_alloc.c: Likewise.
31602         * lib/pagealign_alloc.h: Likewise.
31603         * lib/physmem.c: Likewise.
31604         * lib/physmem.h: Likewise.
31605         * lib/pipe-safer.c: Likewise.
31606         * lib/pipe.c: Likewise.
31607         * lib/pipe.h: Likewise.
31608         * lib/posixtm.c: Likewise.
31609         * lib/posixtm.h: Likewise.
31610         * lib/posixver.c: Likewise.
31611         * lib/printf-frexp.c: Likewise.
31612         * lib/printf-frexp.h: Likewise.
31613         * lib/printf-frexpl.c: Likewise.
31614         * lib/printf-frexpl.h: Likewise.
31615         * lib/printf.c: Likewise.
31616         * lib/progname.c: Likewise.
31617         * lib/progname.h: Likewise.
31618         * lib/progreloc.c: Likewise.
31619         * lib/putenv.c: Likewise.
31620         * lib/quote.c: Likewise.
31621         * lib/quote.h: Likewise.
31622         * lib/quotearg.c: Likewise.
31623         * lib/quotearg.h: Likewise.
31624         * lib/raise.c: Likewise.
31625         * lib/readline.c: Likewise.
31626         * lib/readline.h: Likewise.
31627         * lib/readlink.c: Likewise.
31628         * lib/readtokens.c: Likewise.
31629         * lib/readtokens.h: Likewise.
31630         * lib/readtokens0.c: Likewise.
31631         * lib/readtokens0.h: Likewise.
31632         * lib/readutmp.c: Likewise.
31633         * lib/readutmp.h: Likewise.
31634         * lib/realloc.c: Likewise.
31635         * lib/relocwrapper.c: Likewise.
31636         * lib/rename-dest-slash.c: Likewise.
31637         * lib/rename.c: Likewise.
31638         * lib/rmdir.c: Likewise.
31639         * lib/rpmatch.c: Likewise.
31640         * lib/safe-read.c: Likewise.
31641         * lib/safe-read.h: Likewise.
31642         * lib/safe-write.c: Likewise.
31643         * lib/safe-write.h: Likewise.
31644         * lib/same-inode.h: Likewise.
31645         * lib/same.c: Likewise.
31646         * lib/same.h: Likewise.
31647         * lib/save-cwd.c: Likewise.
31648         * lib/save-cwd.h: Likewise.
31649         * lib/savedir.c: Likewise.
31650         * lib/savedir.h: Likewise.
31651         * lib/savewd.c: Likewise.
31652         * lib/savewd.h: Likewise.
31653         * lib/search.in.h: Likewise.
31654         * lib/setenv.c: Likewise.
31655         * lib/setenv.h: Likewise.
31656         * lib/settime.c: Likewise.
31657         * lib/sh-quote.c: Likewise.
31658         * lib/sh-quote.h: Likewise.
31659         * lib/sig2str.c: Likewise.
31660         * lib/sig2str.h: Likewise.
31661         * lib/signal.in.h: Likewise.
31662         * lib/signbitd.c: Likewise.
31663         * lib/signbitf.c: Likewise.
31664         * lib/signbitl.c: Likewise.
31665         * lib/sigprocmask.c: Likewise.
31666         * lib/sincosl.c: Likewise.
31667         * lib/sleep.c: Likewise.
31668         * lib/sprintf.c: Likewise.
31669         * lib/sqrtl.c: Likewise.
31670         * lib/stat-time.h: Likewise.
31671         * lib/stdio--.h: Likewise.
31672         * lib/stdio-safer.h: Likewise.
31673         * lib/stdlib--.h: Likewise.
31674         * lib/stdlib-safer.h: Likewise.
31675         * lib/stdlib.in.h: Likewise.
31676         * lib/stpcpy.c: Likewise.
31677         * lib/stpncpy.c: Likewise.
31678         * lib/strchrnul.c: Likewise.
31679         * lib/strcspn.c: Likewise.
31680         * lib/strerror.c: Likewise.
31681         * lib/strftime.c: Likewise.
31682         * lib/strftime.h: Likewise.
31683         * lib/striconveh.c: Likewise.
31684         * lib/striconveh.h: Likewise.
31685         * lib/striconveha.c: Likewise.
31686         * lib/striconveha.h: Likewise.
31687         * lib/stripslash.c: Likewise.
31688         * lib/strnlen1.c: Likewise.
31689         * lib/strnlen1.h: Likewise.
31690         * lib/strtod.c: Likewise.
31691         * lib/strtoimax.c: Likewise.
31692         * lib/strtok_r.c: Likewise.
31693         * lib/strtol.c: Likewise.
31694         * lib/strtoll.c: Likewise.
31695         * lib/strtoul.c: Likewise.
31696         * lib/strtoull.c: Likewise.
31697         * lib/sysexits.in.h: Likewise.
31698         * lib/tempname.c: Likewise.
31699         * lib/tempname.h: Likewise.
31700         * lib/timespec.h: Likewise.
31701         * lib/tls.c: Likewise.
31702         * lib/tls.h: Likewise.
31703         * lib/tmpdir.c: Likewise.
31704         * lib/tmpdir.h: Likewise.
31705         * lib/tmpfile-safer.c: Likewise.
31706         * lib/tmpfile.c: Likewise.
31707         * lib/trigl.c: Likewise.
31708         * lib/trigl.h: Likewise.
31709         * lib/trim.c: Likewise.
31710         * lib/trim.h: Likewise.
31711         * lib/trunc.c: Likewise.
31712         * lib/truncf.c: Likewise.
31713         * lib/truncl.c: Likewise.
31714         * lib/tsearch.c: Likewise.
31715         * lib/unicodeio.c: Likewise.
31716         * lib/unicodeio.h: Likewise.
31717         * lib/unistd--.h: Likewise.
31718         * lib/unistd-safer.h: Likewise.
31719         * lib/unistdio/ulc-fprintf.c: Likewise.
31720         * lib/unistdio/ulc-vfprintf.c: Likewise.
31721         * lib/unlinkdir.c: Likewise.
31722         * lib/unlinkdir.h: Likewise.
31723         * lib/unlocked-io.h: Likewise.
31724         * lib/unsetenv.c: Likewise.
31725         * lib/userspec.c: Likewise.
31726         * lib/utime.c: Likewise.
31727         * lib/utimecmp.c: Likewise.
31728         * lib/utimecmp.h: Likewise.
31729         * lib/utimens.c: Likewise.
31730         * lib/verify.h: Likewise.
31731         * lib/verror.c: Likewise.
31732         * lib/verror.h: Likewise.
31733         * lib/version-etc-fsf.c: Likewise.
31734         * lib/version-etc.c: Likewise.
31735         * lib/version-etc.h: Likewise.
31736         * lib/vfprintf.c: Likewise.
31737         * lib/vprintf.c: Likewise.
31738         * lib/vsprintf.c: Likewise.
31739         * lib/w32spawn.h: Likewise.
31740         * lib/wait-process.c: Likewise.
31741         * lib/wait-process.h: Likewise.
31742         * lib/wcwidth.c: Likewise.
31743         * lib/write-any-file.c: Likewise.
31744         * lib/xalloc-die.c: Likewise.
31745         * lib/xalloc.h: Likewise.
31746         * lib/xasprintf.c: Likewise.
31747         * lib/xgetcwd.c: Likewise.
31748         * lib/xgetcwd.h: Likewise.
31749         * lib/xgetdomainname.c: Likewise.
31750         * lib/xgetdomainname.h: Likewise.
31751         * lib/xgethostname.c: Likewise.
31752         * lib/xmalloc.c: Likewise.
31753         * lib/xmalloca.c: Likewise.
31754         * lib/xmalloca.h: Likewise.
31755         * lib/xmemcoll.c: Likewise.
31756         * lib/xnanosleep.c: Likewise.
31757         * lib/xreadlink.c: Likewise.
31758         * lib/xreadlink.h: Likewise.
31759         * lib/xsetenv.c: Likewise.
31760         * lib/xsetenv.h: Likewise.
31761         * lib/xstriconv.c: Likewise.
31762         * lib/xstriconv.h: Likewise.
31763         * lib/xstrndup.c: Likewise.
31764         * lib/xstrndup.h: Likewise.
31765         * lib/xstrtod.c: Likewise.
31766         * lib/xstrtod.h: Likewise.
31767         * lib/xstrtol-error.c: Likewise.
31768         * lib/xstrtol.c: Likewise.
31769         * lib/xstrtol.h: Likewise.
31770         * lib/xtime.h: Likewise.
31771         * lib/xvasprintf.c: Likewise.
31772         * lib/xvasprintf.h: Likewise.
31773         * lib/yesno.c: Likewise.
31774         * lib/yesno.h: Likewise.
31775         * posix-modules: Likewise.
31776         * tests/test-alloca-opt.c: Likewise.
31777         * tests/test-arcfour.c: Likewise.
31778         * tests/test-arctwo.c: Likewise.
31779         * tests/test-argmatch.c: Likewise.
31780         * tests/test-argp-2.sh: Likewise.
31781         * tests/test-argp.c: Likewise.
31782         * tests/test-arpa_inet.c: Likewise.
31783         * tests/test-array_list.c: Likewise.
31784         * tests/test-array_oset.c: Likewise.
31785         * tests/test-atexit.c: Likewise.
31786         * tests/test-avltree_list.c: Likewise.
31787         * tests/test-avltree_oset.c: Likewise.
31788         * tests/test-avltreehash_list.c: Likewise.
31789         * tests/test-base64.c: Likewise.
31790         * tests/test-binary-io.c: Likewise.
31791         * tests/test-byteswap.c: Likewise.
31792         * tests/test-c-ctype.c: Likewise.
31793         * tests/test-c-strcasecmp.c: Likewise.
31794         * tests/test-c-strcasestr.c: Likewise.
31795         * tests/test-c-strncasecmp.c: Likewise.
31796         * tests/test-c-strstr.c: Likewise.
31797         * tests/test-canonicalize-lgpl.c: Likewise.
31798         * tests/test-canonicalize.c: Likewise.
31799         * tests/test-carray_list.c: Likewise.
31800         * tests/test-ceilf.c: Likewise.
31801         * tests/test-ceill.c: Likewise.
31802         * tests/test-count-one-bits.c: Likewise.
31803         * tests/test-crc.c: Likewise.
31804         * tests/test-dirname.c: Likewise.
31805         * tests/test-fbufmode.c: Likewise.
31806         * tests/test-fcntl.c: Likewise.
31807         * tests/test-fflush.c: Likewise.
31808         * tests/test-floorf.c: Likewise.
31809         * tests/test-floorl.c: Likewise.
31810         * tests/test-fopen.c: Likewise.
31811         * tests/test-fprintf-posix.c: Likewise.
31812         * tests/test-fprintf-posix.h: Likewise.
31813         * tests/test-fpurge.c: Likewise.
31814         * tests/test-freadable.c: Likewise.
31815         * tests/test-freadahead.c: Likewise.
31816         * tests/test-freading.c: Likewise.
31817         * tests/test-freopen.c: Likewise.
31818         * tests/test-frexp.c: Likewise.
31819         * tests/test-frexpl.c: Likewise.
31820         * tests/test-fseek.c: Likewise.
31821         * tests/test-fseeko.c: Likewise.
31822         * tests/test-fseterr.c: Likewise.
31823         * tests/test-fstrcmp.c: Likewise.
31824         * tests/test-ftell.c: Likewise.
31825         * tests/test-ftello.c: Likewise.
31826         * tests/test-fwritable.c: Likewise.
31827         * tests/test-fwriting.c: Likewise.
31828         * tests/test-getaddrinfo.c: Likewise.
31829         * tests/test-getpass.c: Likewise.
31830         * tests/test-gettimeofday.c: Likewise.
31831         * tests/test-hmac-md5.c: Likewise.
31832         * tests/test-hmac-sha1.c: Likewise.
31833         * tests/test-iconv.c: Likewise.
31834         * tests/test-iconvme.c: Likewise.
31835         * tests/test-inttypes.c: Likewise.
31836         * tests/test-isnan.c: Likewise.
31837         * tests/test-isnanf.c: Likewise.
31838         * tests/test-isnanl-nolibm.c: Likewise.
31839         * tests/test-isnanl.c: Likewise.
31840         * tests/test-isnanl.h: Likewise.
31841         * tests/test-ldexpl.c: Likewise.
31842         * tests/test-linked_list.c: Likewise.
31843         * tests/test-linkedhash_list.c: Likewise.
31844         * tests/test-locale.c: Likewise.
31845         * tests/test-localename.c: Likewise.
31846         * tests/test-lock.c: Likewise.
31847         * tests/test-lseek.c: Likewise.
31848         * tests/test-malloca.c: Likewise.
31849         * tests/test-math.c: Likewise.
31850         * tests/test-mbscasecmp.c: Likewise.
31851         * tests/test-mbscasestr1.c: Likewise.
31852         * tests/test-mbscasestr2.c: Likewise.
31853         * tests/test-mbscasestr3.c: Likewise.
31854         * tests/test-mbscasestr4.c: Likewise.
31855         * tests/test-mbschr.c: Likewise.
31856         * tests/test-mbscspn.c: Likewise.
31857         * tests/test-mbsncasecmp.c: Likewise.
31858         * tests/test-mbspbrk.c: Likewise.
31859         * tests/test-mbspcasecmp.c: Likewise.
31860         * tests/test-mbsrchr.c: Likewise.
31861         * tests/test-mbsspn.c: Likewise.
31862         * tests/test-mbsstr1.c: Likewise.
31863         * tests/test-mbsstr2.c: Likewise.
31864         * tests/test-mbsstr3.c: Likewise.
31865         * tests/test-md5.c: Likewise.
31866         * tests/test-memmem.c: Likewise.
31867         * tests/test-netinet_in.c: Likewise.
31868         * tests/test-open.c: Likewise.
31869         * tests/test-printf-frexp.c: Likewise.
31870         * tests/test-printf-frexpl.c: Likewise.
31871         * tests/test-printf-posix.c: Likewise.
31872         * tests/test-printf-posix.h: Likewise.
31873         * tests/test-rbtree_list.c: Likewise.
31874         * tests/test-rbtree_oset.c: Likewise.
31875         * tests/test-rbtreehash_list.c: Likewise.
31876         * tests/test-read-file.c: Likewise.
31877         * tests/test-rijndael.c: Likewise.
31878         * tests/test-search.c: Likewise.
31879         * tests/test-signbit.c: Likewise.
31880         * tests/test-sleep.c: Likewise.
31881         * tests/test-snprintf-posix.c: Likewise.
31882         * tests/test-snprintf-posix.h: Likewise.
31883         * tests/test-snprintf.c: Likewise.
31884         * tests/test-sprintf-posix.c: Likewise.
31885         * tests/test-sprintf-posix.h: Likewise.
31886         * tests/test-stat-time.c: Likewise.
31887         * tests/test-stdbool.c: Likewise.
31888         * tests/test-stdint.c: Likewise.
31889         * tests/test-stdio.c: Likewise.
31890         * tests/test-stdlib.c: Likewise.
31891         * tests/test-stpncpy.c: Likewise.
31892         * tests/test-strcasestr.c: Likewise.
31893         * tests/test-striconv.c: Likewise.
31894         * tests/test-striconveh.c: Likewise.
31895         * tests/test-striconveha.c: Likewise.
31896         * tests/test-string.c: Likewise.
31897         * tests/test-sys_select.c: Likewise.
31898         * tests/test-sys_socket.c: Likewise.
31899         * tests/test-sys_stat.c: Likewise.
31900         * tests/test-sys_time.c: Likewise.
31901         * tests/test-sysexits.c: Likewise.
31902         * tests/test-time.c: Likewise.
31903         * tests/test-tls.c: Likewise.
31904         * tests/test-trunc.c: Likewise.
31905         * tests/test-truncf.c: Likewise.
31906         * tests/test-truncl.c: Likewise.
31907         * tests/test-unistd.c: Likewise.
31908         * tests/test-vasnprintf-posix.c: Likewise.
31909         * tests/test-vasnprintf-posix2.c: Likewise.
31910         * tests/test-vasnprintf.c: Likewise.
31911         * tests/test-vasprintf-posix.c: Likewise.
31912         * tests/test-vasprintf.c: Likewise.
31913         * tests/test-verify.c: Likewise.
31914         * tests/test-vfprintf-posix.c: Likewise.
31915         * tests/test-vprintf-posix.c: Likewise.
31916         * tests/test-vsnprintf-posix.c: Likewise.
31917         * tests/test-vsnprintf.c: Likewise.
31918         * tests/test-vsprintf-posix.c: Likewise.
31919         * tests/test-wchar.c: Likewise.
31920         * tests/test-wctype.c: Likewise.
31921         * tests/test-wcwidth.c: Likewise.
31922         * tests/test-xstrtol.c: Likewise.
31923         * tests/test-xvasprintf.c: Likewise.
31924         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31925         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31926         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31927         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31928         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31929         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31930         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31931         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31932         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31933         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31934         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31935         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31936         * tests/uniname/test-uninames.c: Likewise.
31937         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31938         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
31939         * tests/unistdio/test-u16-printf1.h: Likewise.
31940         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31941         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31942         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31943         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31944         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31945         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31946         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31947         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
31948         * tests/unistdio/test-u32-printf1.h: Likewise.
31949         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31950         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31951         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31952         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31953         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31954         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31955         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31956         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
31957         * tests/unistdio/test-u8-printf1.h: Likewise.
31958         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31959         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31960         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31961         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31962         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31963         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31964         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31965         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
31966         * tests/unistdio/test-ulc-printf1.h: Likewise.
31967         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31968         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31969         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31970         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31971         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31972         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31973         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31974         * tests/uniwidth/test-u16-width.c: Likewise.
31975         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31976         * tests/uniwidth/test-u32-width.c: Likewise.
31977         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31978         * tests/uniwidth/test-u8-width.c: Likewise.
31979         * tests/uniwidth/test-uc_width.c: Likewise.
31980         * config/srclist-update: Likewise.
31981         (fixlicense): Update to GPLv3+.
31982
31983         Change copyright notice from LGPLv2.1+ to LGPLv3+.
31984         * tests/test-tsearch.c: Change copyright notice.
31985
31986         Change copyright notice from LGPLv2.0+ to LGPLv3+.
31987         * lib/c-strcaseeq.h: Change copyright notice.
31988         * lib/streq.h: Likewise.
31989         * lib/uniconv.h: Likewise.
31990         * lib/uniconv/u-conv-from-enc.h: Likewise.
31991         * lib/uniconv/u-conv-to-enc.h: Likewise.
31992         * lib/uniconv/u-strconv-from-enc.h: Likewise.
31993         * lib/uniconv/u-strconv-to-enc.h: Likewise.
31994         * lib/uniconv/u16-conv-from-enc.c: Likewise.
31995         * lib/uniconv/u16-conv-to-enc.c: Likewise.
31996         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
31997         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
31998         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
31999         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
32000         * lib/uniconv/u32-conv-from-enc.c: Likewise.
32001         * lib/uniconv/u32-conv-to-enc.c: Likewise.
32002         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
32003         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
32004         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
32005         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
32006         * lib/uniconv/u8-conv-from-enc.c: Likewise.
32007         * lib/uniconv/u8-conv-to-enc.c: Likewise.
32008         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
32009         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
32010         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
32011         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
32012         * lib/uniname.h: Likewise.
32013         * lib/uniname/uniname.c: Likewise.
32014         * lib/unistdio.h: Likewise.
32015         * lib/unistdio/u-asnprintf.h: Likewise.
32016         * lib/unistdio/u-asprintf.h: Likewise.
32017         * lib/unistdio/u-printf-args.c: Likewise.
32018         * lib/unistdio/u-printf-args.h: Likewise.
32019         * lib/unistdio/u-printf-parse.h: Likewise.
32020         * lib/unistdio/u-snprintf.h: Likewise.
32021         * lib/unistdio/u-sprintf.h: Likewise.
32022         * lib/unistdio/u-vasprintf.h: Likewise.
32023         * lib/unistdio/u-vsnprintf.h: Likewise.
32024         * lib/unistdio/u-vsprintf.h: Likewise.
32025         * lib/unistdio/u16-asnprintf.c: Likewise.
32026         * lib/unistdio/u16-asprintf.c: Likewise.
32027         * lib/unistdio/u16-printf-parse.c: Likewise.
32028         * lib/unistdio/u16-snprintf.c: Likewise.
32029         * lib/unistdio/u16-sprintf.c: Likewise.
32030         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
32031         * lib/unistdio/u16-u16-asprintf.c: Likewise.
32032         * lib/unistdio/u16-u16-snprintf.c: Likewise.
32033         * lib/unistdio/u16-u16-sprintf.c: Likewise.
32034         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
32035         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
32036         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
32037         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
32038         * lib/unistdio/u16-vasnprintf.c: Likewise.
32039         * lib/unistdio/u16-vasprintf.c: Likewise.
32040         * lib/unistdio/u16-vsnprintf.c: Likewise.
32041         * lib/unistdio/u16-vsprintf.c: Likewise.
32042         * lib/unistdio/u32-asnprintf.c: Likewise.
32043         * lib/unistdio/u32-asprintf.c: Likewise.
32044         * lib/unistdio/u32-printf-parse.c: Likewise.
32045         * lib/unistdio/u32-snprintf.c: Likewise.
32046         * lib/unistdio/u32-sprintf.c: Likewise.
32047         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
32048         * lib/unistdio/u32-u32-asprintf.c: Likewise.
32049         * lib/unistdio/u32-u32-snprintf.c: Likewise.
32050         * lib/unistdio/u32-u32-sprintf.c: Likewise.
32051         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
32052         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
32053         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
32054         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
32055         * lib/unistdio/u32-vasnprintf.c: Likewise.
32056         * lib/unistdio/u32-vasprintf.c: Likewise.
32057         * lib/unistdio/u32-vsnprintf.c: Likewise.
32058         * lib/unistdio/u32-vsprintf.c: Likewise.
32059         * lib/unistdio/u8-asnprintf.c: Likewise.
32060         * lib/unistdio/u8-asprintf.c: Likewise.
32061         * lib/unistdio/u8-printf-parse.c: Likewise.
32062         * lib/unistdio/u8-snprintf.c: Likewise.
32063         * lib/unistdio/u8-sprintf.c: Likewise.
32064         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
32065         * lib/unistdio/u8-u8-asprintf.c: Likewise.
32066         * lib/unistdio/u8-u8-snprintf.c: Likewise.
32067         * lib/unistdio/u8-u8-sprintf.c: Likewise.
32068         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
32069         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
32070         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
32071         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
32072         * lib/unistdio/u8-vasnprintf.c: Likewise.
32073         * lib/unistdio/u8-vasprintf.c: Likewise.
32074         * lib/unistdio/u8-vsnprintf.c: Likewise.
32075         * lib/unistdio/u8-vsprintf.c: Likewise.
32076         * lib/unistdio/ulc-asnprintf.c: Likewise.
32077         * lib/unistdio/ulc-asprintf.c: Likewise.
32078         * lib/unistdio/ulc-printf-parse.c: Likewise.
32079         * lib/unistdio/ulc-snprintf.c: Likewise.
32080         * lib/unistdio/ulc-sprintf.c: Likewise.
32081         * lib/unistdio/ulc-vasnprintf.c: Likewise.
32082         * lib/unistdio/ulc-vasprintf.c: Likewise.
32083         * lib/unistdio/ulc-vsnprintf.c: Likewise.
32084         * lib/unistdio/ulc-vsprintf.c: Likewise.
32085         * lib/unistr.h: Likewise.
32086         * lib/unistr/u-cpy-alloc.h: Likewise.
32087         * lib/unistr/u-cpy.h: Likewise.
32088         * lib/unistr/u-endswith.h: Likewise.
32089         * lib/unistr/u-move.h: Likewise.
32090         * lib/unistr/u-set.h: Likewise.
32091         * lib/unistr/u-startswith.h: Likewise.
32092         * lib/unistr/u-stpcpy.h: Likewise.
32093         * lib/unistr/u-stpncpy.h: Likewise.
32094         * lib/unistr/u-strcat.h: Likewise.
32095         * lib/unistr/u-strcpy.h: Likewise.
32096         * lib/unistr/u-strcspn.h: Likewise.
32097         * lib/unistr/u-strdup.h: Likewise.
32098         * lib/unistr/u-strlen.h: Likewise.
32099         * lib/unistr/u-strncat.h: Likewise.
32100         * lib/unistr/u-strncpy.h: Likewise.
32101         * lib/unistr/u-strnlen.h: Likewise.
32102         * lib/unistr/u-strpbrk.h: Likewise.
32103         * lib/unistr/u-strspn.h: Likewise.
32104         * lib/unistr/u-strstr.h: Likewise.
32105         * lib/unistr/u-strtok.h: Likewise.
32106         * lib/unistr/u16-check.c: Likewise.
32107         * lib/unistr/u16-chr.c: Likewise.
32108         * lib/unistr/u16-cmp.c: Likewise.
32109         * lib/unistr/u16-cpy-alloc.c: Likewise.
32110         * lib/unistr/u16-cpy.c: Likewise.
32111         * lib/unistr/u16-endswith.c: Likewise.
32112         * lib/unistr/u16-mblen.c: Likewise.
32113         * lib/unistr/u16-mbsnlen.c: Likewise.
32114         * lib/unistr/u16-mbtouc-aux.c: Likewise.
32115         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
32116         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
32117         * lib/unistr/u16-mbtouc.c: Likewise.
32118         * lib/unistr/u16-mbtoucr.c: Likewise.
32119         * lib/unistr/u16-move.c: Likewise.
32120         * lib/unistr/u16-next.c: Likewise.
32121         * lib/unistr/u16-prev.c: Likewise.
32122         * lib/unistr/u16-set.c: Likewise.
32123         * lib/unistr/u16-startswith.c: Likewise.
32124         * lib/unistr/u16-stpcpy.c: Likewise.
32125         * lib/unistr/u16-stpncpy.c: Likewise.
32126         * lib/unistr/u16-strcat.c: Likewise.
32127         * lib/unistr/u16-strchr.c: Likewise.
32128         * lib/unistr/u16-strcmp.c: Likewise.
32129         * lib/unistr/u16-strcpy.c: Likewise.
32130         * lib/unistr/u16-strcspn.c: Likewise.
32131         * lib/unistr/u16-strdup.c: Likewise.
32132         * lib/unistr/u16-strlen.c: Likewise.
32133         * lib/unistr/u16-strmblen.c: Likewise.
32134         * lib/unistr/u16-strmbtouc.c: Likewise.
32135         * lib/unistr/u16-strncat.c: Likewise.
32136         * lib/unistr/u16-strncmp.c: Likewise.
32137         * lib/unistr/u16-strncpy.c: Likewise.
32138         * lib/unistr/u16-strnlen.c: Likewise.
32139         * lib/unistr/u16-strpbrk.c: Likewise.
32140         * lib/unistr/u16-strrchr.c: Likewise.
32141         * lib/unistr/u16-strspn.c: Likewise.
32142         * lib/unistr/u16-strstr.c: Likewise.
32143         * lib/unistr/u16-strtok.c: Likewise.
32144         * lib/unistr/u16-to-u32.c: Likewise.
32145         * lib/unistr/u16-to-u8.c: Likewise.
32146         * lib/unistr/u16-uctomb-aux.c: Likewise.
32147         * lib/unistr/u16-uctomb.c: Likewise.
32148         * lib/unistr/u32-check.c: Likewise.
32149         * lib/unistr/u32-chr.c: Likewise.
32150         * lib/unistr/u32-cmp.c: Likewise.
32151         * lib/unistr/u32-cpy-alloc.c: Likewise.
32152         * lib/unistr/u32-cpy.c: Likewise.
32153         * lib/unistr/u32-endswith.c: Likewise.
32154         * lib/unistr/u32-mblen.c: Likewise.
32155         * lib/unistr/u32-mbsnlen.c: Likewise.
32156         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
32157         * lib/unistr/u32-mbtouc.c: Likewise.
32158         * lib/unistr/u32-mbtoucr.c: Likewise.
32159         * lib/unistr/u32-move.c: Likewise.
32160         * lib/unistr/u32-next.c: Likewise.
32161         * lib/unistr/u32-prev.c: Likewise.
32162         * lib/unistr/u32-set.c: Likewise.
32163         * lib/unistr/u32-startswith.c: Likewise.
32164         * lib/unistr/u32-stpcpy.c: Likewise.
32165         * lib/unistr/u32-stpncpy.c: Likewise.
32166         * lib/unistr/u32-strcat.c: Likewise.
32167         * lib/unistr/u32-strchr.c: Likewise.
32168         * lib/unistr/u32-strcmp.c: Likewise.
32169         * lib/unistr/u32-strcpy.c: Likewise.
32170         * lib/unistr/u32-strcspn.c: Likewise.
32171         * lib/unistr/u32-strdup.c: Likewise.
32172         * lib/unistr/u32-strlen.c: Likewise.
32173         * lib/unistr/u32-strmblen.c: Likewise.
32174         * lib/unistr/u32-strmbtouc.c: Likewise.
32175         * lib/unistr/u32-strncat.c: Likewise.
32176         * lib/unistr/u32-strncmp.c: Likewise.
32177         * lib/unistr/u32-strncpy.c: Likewise.
32178         * lib/unistr/u32-strnlen.c: Likewise.
32179         * lib/unistr/u32-strpbrk.c: Likewise.
32180         * lib/unistr/u32-strrchr.c: Likewise.
32181         * lib/unistr/u32-strspn.c: Likewise.
32182         * lib/unistr/u32-strstr.c: Likewise.
32183         * lib/unistr/u32-strtok.c: Likewise.
32184         * lib/unistr/u32-to-u16.c: Likewise.
32185         * lib/unistr/u32-to-u8.c: Likewise.
32186         * lib/unistr/u32-uctomb.c: Likewise.
32187         * lib/unistr/u8-check.c: Likewise.
32188         * lib/unistr/u8-chr.c: Likewise.
32189         * lib/unistr/u8-cmp.c: Likewise.
32190         * lib/unistr/u8-cpy-alloc.c: Likewise.
32191         * lib/unistr/u8-cpy.c: Likewise.
32192         * lib/unistr/u8-endswith.c: Likewise.
32193         * lib/unistr/u8-mblen.c: Likewise.
32194         * lib/unistr/u8-mbsnlen.c: Likewise.
32195         * lib/unistr/u8-mbtouc-aux.c: Likewise.
32196         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
32197         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
32198         * lib/unistr/u8-mbtouc.c: Likewise.
32199         * lib/unistr/u8-mbtoucr.c: Likewise.
32200         * lib/unistr/u8-move.c: Likewise.
32201         * lib/unistr/u8-next.c: Likewise.
32202         * lib/unistr/u8-prev.c: Likewise.
32203         * lib/unistr/u8-set.c: Likewise.
32204         * lib/unistr/u8-startswith.c: Likewise.
32205         * lib/unistr/u8-stpcpy.c: Likewise.
32206         * lib/unistr/u8-stpncpy.c: Likewise.
32207         * lib/unistr/u8-strcat.c: Likewise.
32208         * lib/unistr/u8-strchr.c: Likewise.
32209         * lib/unistr/u8-strcmp.c: Likewise.
32210         * lib/unistr/u8-strcpy.c: Likewise.
32211         * lib/unistr/u8-strcspn.c: Likewise.
32212         * lib/unistr/u8-strdup.c: Likewise.
32213         * lib/unistr/u8-strlen.c: Likewise.
32214         * lib/unistr/u8-strmblen.c: Likewise.
32215         * lib/unistr/u8-strmbtouc.c: Likewise.
32216         * lib/unistr/u8-strncat.c: Likewise.
32217         * lib/unistr/u8-strncmp.c: Likewise.
32218         * lib/unistr/u8-strncpy.c: Likewise.
32219         * lib/unistr/u8-strnlen.c: Likewise.
32220         * lib/unistr/u8-strpbrk.c: Likewise.
32221         * lib/unistr/u8-strrchr.c: Likewise.
32222         * lib/unistr/u8-strspn.c: Likewise.
32223         * lib/unistr/u8-strstr.c: Likewise.
32224         * lib/unistr/u8-strtok.c: Likewise.
32225         * lib/unistr/u8-to-u16.c: Likewise.
32226         * lib/unistr/u8-to-u32.c: Likewise.
32227         * lib/unistr/u8-uctomb-aux.c: Likewise.
32228         * lib/unistr/u8-uctomb.c: Likewise.
32229         * lib/unitypes.h: Likewise.
32230         * lib/uniwidth.h: Likewise.
32231         * lib/uniwidth/cjk.h: Likewise.
32232         * lib/uniwidth/u16-strwidth.c: Likewise.
32233         * lib/uniwidth/u16-width.c: Likewise.
32234         * lib/uniwidth/u32-strwidth.c: Likewise.
32235         * lib/uniwidth/u32-width.c: Likewise.
32236         * lib/uniwidth/u8-strwidth.c: Likewise.
32237         * lib/uniwidth/u8-width.c: Likewise.
32238         * lib/uniwidth/width.c: Likewise.
32239
32240 2007-10-07  Bruno Haible  <bruno@clisp.org>
32241
32242         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
32243         The file is still under LGPL (see modules/inttypes).
32244
32245 2007-10-06  Bruno Haible  <bruno@clisp.org>
32246
32247         * modules/trunc (Dependencies): Add 'extensions'.
32248         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
32249         Reported by Ben Pfaff <blp@gnu.org>.
32250
32251 2007-10-06  Bruno Haible  <bruno@clisp.org>
32252
32253         * modules/freopen-tests: New file.
32254         * tests/test-freopen.c: New file.
32255
32256         * modules/fopen-tests: New file.
32257         * tests/test-fopen.c: New file.
32258
32259         * modules/fopen: New file.
32260         * lib/fopen.c: New file.
32261         * m4/fopen.m4: New file.
32262         * modules/freopen: New file.
32263         * lib/freopen.c: New file.
32264         * m4/freopen.m4: New file.
32265         * lib/stdio.in.h (fopen, freopen): New declarations.
32266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
32267         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32268         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
32269         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
32270         * doc/functions/fopen.texi: Mention the 'fopen' module.
32271         * doc/functions/freopen.texi: Mention the 'freopen' module.
32272
32273 2007-10-06  Bruno Haible  <bruno@clisp.org>
32274
32275         * modules/open-tests: New file.
32276         * tests/test-open.c: New file.
32277
32278         * modules/open: New file.
32279         * lib/open.c: New file.
32280         * m4/open.m4: New file.
32281         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
32282         lib/open.c does.
32283         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
32284         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
32285         macros.
32286         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
32287         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
32288         REPLACE_OPEN.
32289         * doc/functions/open.texi: Mention the 'open' module.
32290
32291 2007-10-04  Bruno Haible  <bruno@clisp.org>
32292
32293         * modules/ceill-tests: New file.
32294         * tests/test-ceill.c: New file.
32295
32296         * modules/ceill: New file.
32297         * lib/ceill.c: Replace entire file.
32298         * m4/ceill.m4: New file.
32299         * lib/math.in.h (ceill): Replace declaration.
32300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
32301         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
32302         * doc/functions/ceill.texi: Mention the 'ceill' module.
32303         * modules/mathl (Files): Remove lib/ceill.c.
32304         (Depends-on): Add ceill.
32305
32306 2007-10-04  Bruno Haible  <bruno@clisp.org>
32307
32308         * modules/ceilf-tests: New file.
32309         * tests/test-ceilf.c: New file.
32310
32311         * modules/ceilf: New file.
32312         * lib/ceil.c: New file.
32313         * lib/ceilf.c: New file.
32314         * m4/ceilf.m4: New file.
32315         * lib/math.in.h (ceilf): New declaration.
32316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
32317         HAVE_DECL_CEILF.
32318         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
32319         HAVE_DECL_CEILF.
32320         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
32321
32322 2007-10-04  Bruno Haible  <bruno@clisp.org>
32323
32324         * modules/floorl-tests: New file.
32325         * tests/test-floorl.c: New file.
32326
32327         * modules/floorl: New file.
32328         * lib/floorl.c: Replace entire file.
32329         * m4/floorl.m4: New file.
32330         * lib/math.in.h (floorl): Replace declaration.
32331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
32332         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
32333         * doc/functions/floorl.texi: Mention the 'floorl' module.
32334         * modules/mathl (Files): Remove lib/floorl.c.
32335         (Depends-on): Add floorl.
32336
32337 2007-10-04  Bruno Haible  <bruno@clisp.org>
32338
32339         * modules/floorf-tests: New file.
32340         * tests/test-floorf.c: New file.
32341
32342         * modules/floorf: New file.
32343         * lib/floor.c: New file.
32344         * lib/floorf.c: New file.
32345         * m4/floorf.m4: New file.
32346         * lib/math.in.h (floorf): New declaration.
32347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
32348         HAVE_DECL_FLOORF.
32349         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
32350         HAVE_DECL_FLOORF.
32351         * doc/functions/floorf.texi: Mention the 'floorf' module.
32352
32353 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
32354             Bruno Haible  <bruno@clisp.org>
32355
32356         Advertise for the Git server instead of the CVS server.
32357         * doc/gnulib-intro.texi (Steady Development): Mention the Git
32358         repository instead of the CVS one.
32359         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
32360         about all VCS systems generically.
32361         * doc/gnulib.texi (Introduction): Capitalize `Git'.
32362
32363 2007-10-04  Bruno Haible  <bruno@clisp.org>
32364
32365         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
32366         means.
32367         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
32368
32369 2007-10-04  Bruno Haible  <bruno@clisp.org>
32370
32371         * modules/truncl-tests: New file.
32372         * tests/test-truncl.c: New file.
32373
32374         * modules/truncl: New file.
32375         * lib/truncl.c: New file.
32376         * m4/truncl.m4: New file.
32377         * lib/math.in.h (truncl): New declaration.
32378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
32379         HAVE_DECL_TRUNCL.
32380         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
32381         HAVE_DECL_TRUNCL.
32382         * doc/functions/truncl.texi: Mention the 'truncl' module.
32383
32384 2007-10-04  Bruno Haible  <bruno@clisp.org>
32385
32386         * modules/truncf-tests: New file.
32387         * tests/test-truncf.c: New file.
32388
32389         * modules/truncf: New file.
32390         * lib/trunc.c: Make paramerizable through USE_* macros.
32391         * lib/truncf.c: New file.
32392         * m4/truncf.m4: New file.
32393         * lib/math.in.h (truncf): New declaration.
32394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
32395         HAVE_DECL_TRUNCF.
32396         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
32397         HAVE_DECL_TRUNCF.
32398         * doc/functions/truncf.texi: Mention the 'truncf' module.
32399
32400 2007-10-03  Bruno Haible  <bruno@clisp.org>
32401
32402         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32403         augmentation also for tests modules.
32404         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
32405         * modules/atexit-tests (Makefile.am): Likewise.
32406         * modules/binary-io-tests (Makefile.am): Likewise.
32407         * modules/c-strcase-tests (Makefile.am): Likewise.
32408         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
32409         * modules/canonicalize-tests (Makefile.am): Likewise.
32410         * modules/closein-tests (Makefile.am): Likewise.
32411         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32412         * modules/freadahead-tests (Makefile.am): Likewise.
32413         * modules/fseek-tests (Makefile.am): Likewise.
32414         * modules/fseeko-tests (Makefile.am): Likewise.
32415         * modules/ftell-tests (Makefile.am): Likewise.
32416         * modules/ftello-tests (Makefile.am): Likewise.
32417         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
32418         * modules/isnanl-tests (Makefile.am): Likewise.
32419         * modules/lseek-tests (Makefile.am): Likewise.
32420         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32421         * modules/mbscasestr-tests (Makefile.am): Likewise.
32422         * modules/mbschr-tests (Makefile.am): Likewise.
32423         * modules/mbscspn-tests (Makefile.am): Likewise.
32424         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32425         * modules/mbspbrk-tests (Makefile.am): Likewise.
32426         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32427         * modules/mbsrchr-tests (Makefile.am): Likewise.
32428         * modules/mbsspn-tests (Makefile.am): Likewise.
32429         * modules/mbsstr-tests (Makefile.am): Likewise.
32430         * modules/printf-posix-tests (Makefile.am): Likewise.
32431         * modules/snprintf-posix-tests (Makefile.am): Likewise.
32432         * modules/sprintf-posix-tests (Makefile.am): Likewise.
32433         * modules/tsearch-tests (Makefile.am): Likewise.
32434         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32435         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32436         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32437         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32438         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32439         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32440         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32441         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32442         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
32443         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
32444         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32445         * modules/xstrtol-tests (Makefile.am): Likewise.
32446         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32447         * modules/yesno-tests (Makefile.am): Likewise.
32448
32449 2007-10-03  Bruno Haible  <bruno@clisp.org>
32450
32451         * modules/trunc-tests: New file.
32452         * tests/test-trunc.c: New file.
32453
32454         * modules/trunc: New file.
32455         * lib/trunc.c: New file.
32456         * m4/trunc.m4: New file.
32457         * lib/math.in.h (trunc): New declaration.
32458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
32459         HAVE_DECL_TRUNC.
32460         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
32461         HAVE_DECL_TRUNC.
32462         * doc/functions/trunc.texi: Mention the 'trunc' module.
32463
32464 2007-10-03  Bruno Haible  <bruno@clisp.org>
32465
32466         * tests/test-fpending.c: New file, mostly copied
32467         from coreutils/lib/t-fpending.c.
32468         * modules/fpending-tests: New file.
32469
32470 2007-10-03  Bruno Haible  <bruno@clisp.org>
32471
32472         Port the stdio extensions to QNX (untested).
32473         * lib/fseterr.c (fseterr): Add support for QNX.
32474         * lib/fbufmode.c (fbufmode): Likewise.
32475         * lib/freadable.c (freadable): Likewise.
32476         * lib/fwritable.c (fwritable): Likewise.
32477         * lib/freading.c (freading): Likewise.
32478         * lib/fwriting.c (fwriting): Likewise.
32479         * lib/freadahead.c (freadahed): Likewise.
32480         * lib/fpurge.c (fpurge): Likewise.
32481         * lib/fseeko.c (rpl_fseeko): Likewise.
32482
32483 2007-10-03  Bruno Haible  <bruno@clisp.org>
32484             Jim Meyering  <jim@meyering.net>
32485             Eric Blake  <ebb9@byu.net>
32486
32487         * doc/relocatable.texi: Use @command instead of @program.
32488
32489 2007-10-02  Jim Meyering  <jim@meyering.net>
32490
32491         Perform one more "_.h" -> ".in.h" substitution.
32492         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
32493         instead of unistd_.h here, too.
32494
32495 2007-10-01  Bruno Haible  <bruno@clisp.org>
32496
32497         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
32498         Needed for the alloca-opt module.
32499
32500 2007-09-30  Bruno Haible  <bruno@clisp.org>
32501
32502         * lib/alloca.in.h: Renamed from lib/alloca_.h.
32503         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
32504         alloca_.h.
32505         * lib/argz.in.h: Renamed from lib/argz_.h.
32506         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
32507         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
32508         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
32509         byteswap_.h.
32510         * lib/dirent.in.h: Renamed from lib/dirent_.h.
32511         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
32512         dirent_.h.
32513         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
32514         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
32515         fcntl_.h.
32516         * lib/float.in.h: Renamed from lib/float_.h.
32517         * modules/float (Files, Makefile.am): Use float.in.h instead of
32518         float_.h.
32519         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
32520         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
32521         fnmatch_.h.
32522         * lib/getopt.in.h: Renamed from lib/getopt_.h.
32523         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
32524         getopt_.h.
32525         * lib/glob.in.h: Renamed from lib/glob_.h.
32526         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
32527         * lib/iconv.in.h: Renamed from lib/iconv_.h.
32528         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
32529         iconv_.h.
32530         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
32531         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
32532         inttypes_.h.
32533         * lib/locale.in.h: Renamed from lib/locale_.h.
32534         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
32535         locale_.h.
32536         * lib/math.in.h: Renamed from lib/math_.h.
32537         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
32538         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
32539         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
32540         of netinet_in_.h. Add dependency.
32541         * lib/poll.in.h: Renamed from lib/poll_.h.
32542         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
32543         * lib/search.in.h: Renamed from lib/search_.h.
32544         * modules/search (Files, Makefile.am): Use search.in.h instead of
32545         search_.h.
32546         * lib/signal.in.h: Renamed from lib/signal_.h.
32547         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
32548         _signal.h.
32549         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
32550         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
32551         stdbool_.h.
32552         * lib/stdint.in.h: Renamed from lib/stdint_.h.
32553         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
32554         stdint_.h.
32555         * lib/stdio.in.h: Renamed from lib/stdio_.h.
32556         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
32557         stdio_.h.
32558         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
32559         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
32560         stdlib_.h.
32561         * lib/string.in.h: Renamed from lib/string_.h.
32562         * modules/string (Files, Makefile.am): Use string.in.h instead of
32563         string_.h.
32564         * doc/gnulib-tool.texi (Initial import): Update.
32565         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
32566         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
32567         of sys_select_.h. Add dependency.
32568         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
32569         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
32570         of sys_socket_.h.
32571         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
32572         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
32573         sys_stat_.h.
32574         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
32575         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
32576         sys_time_.h.
32577         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
32578         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
32579         sysexits_.h.
32580         * lib/time.in.h: Renamed from lib/time_.h.
32581         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
32582         * lib/unistd.in.h: Renamed from lib/unistd_.h.
32583         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
32584         unistd_.h.
32585         * lib/wchar.in.h: Renamed from lib/wchar_.h.
32586         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
32587         wchar_.h.
32588         * lib/wctype.in.h: Renamed from lib/wctype_.h.
32589         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
32590         wctype_.h.
32591         * build-aux/bootstrap (slurp): Update.
32592         * lib/.cppi-disable: Update.
32593
32594 2007-09-30  Bruno Haible  <bruno@clisp.org>
32595
32596         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
32597         Needed on BeOS.
32598
32599 2007-09-30  Bruno Haible  <bruno@clisp.org>
32600
32601         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
32602
32603 2007-09-29  Bruno Haible  <bruno@clisp.org>
32604
32605         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
32606
32607 2007-09-29  Bruno Haible  <bruno@clisp.org>
32608
32609         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
32610         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
32611         * build-aux/install-reloc: Compile also areadlink.c.
32612         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
32613
32614 2007-09-29  Bruno Haible  <bruno@clisp.org>
32615
32616         * gnulib-tool (func_emit_initmacro_done): Indentation.
32617
32618 2007-09-29  Bruno Haible  <bruno@clisp.org>
32619
32620         * README: Add CVS checkout update instructions.
32621         Info from Bob Proulx <bob@proulx.com>.
32622
32623 2007-09-28  Eric Blake  <ebb9@byu.net>
32624
32625         Provide move-if-change.
32626         * build-aux/move-if-change: New file, based on best practice
32627         rather than any canonical upstream location.
32628
32629 2007-09-28  Jim Meyering  <jim@meyering.net>
32630
32631         Fix canonicalize loop-detection corner case.
32632         Do not attempt to stat the symlink values stored via seen_triple.
32633         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32634         on linux-2.6.18, (but not 2.6.22).
32635         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
32636         triple_compare.  The former compares dev,ino,filename, while the latter
32637         would actually stat dirname(filename) when dev and ino were equal.
32638         * lib/hash-triple.c: Install <string.h>.
32639         (STREQ): Define.
32640         (triple_compare_ino_str): New function.
32641         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
32642
32643 2007-09-28  Eric Blake  <ebb9@byu.net>
32644
32645         Enforce that AC_REPLACE_FUNCS files exist.
32646         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
32647         override check for typos.
32648
32649         Fix test-closein on Solaris 10.
32650         * tests/test-closein.c (main): Don't assume stdin can be inherited
32651         closed on all systems.
32652         * tests/test-closein.sh: Likewise.
32653         Reported by Piotr Tarnowski.
32654
32655 2007-09-28  Jim Meyering  <jim@meyering.net>
32656
32657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
32658
32659 2007-09-27  Jim Meyering  <jim@meyering.net>
32660
32661         canonicalize: Avoid a false-positive cycle failure.
32662         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
32663         Sort.  Remove cycle-check.
32664         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
32665         not cycle-check.h.
32666         (seen_triple): New function.
32667         (canonicalize_filename_mode): Use it instead of cycle-check.
32668         * tests/test-canonicalize.c: Add a test for this bug.
32669         * tests/test-canonicalize.sh: Set up and run the test.
32670
32671         New module, file-set, from coreutils.
32672         * modules/file-set: Define it.
32673         * lib/file-set.c, lib/file-set.h: Implement.
32674
32675         New module, hash-triple, from coreutils.
32676         * modules/hash-triple: Define it.
32677         * lib/hash-triple.c, lib/hash-triple.h: Implement.
32678
32679 2007-09-25  Eric Blake  <ebb9@byu.net>
32680
32681         Fix strerror on Interix.
32682         * lib/string_.h (strerror): Declare replacement.
32683         * doc/functions/strerror.texi (strerror): Document the Interix
32684         shortcoming.
32685         * modules/string (Makefile.am): Support new hooks.
32686         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
32687         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
32688         gl_FUNC_STRERROR_SEPARATE.
32689         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
32690         * lib/strerror.c (rpl_strerror): Provide replacement.
32691         * modules/strerror (Depends-on): Add string.
32692         (configure.ac): Detect use of module.
32693         * tests/test-strerror.c: New file.
32694         * modules/strerror-tests: New test module.
32695         * modules/argp (Depends-on): Add strerror.
32696         * modules/error (Depends-on): Likewise.
32697         Reported by Martin Koeppe.
32698
32699 2007-09-24  Bruno Haible  <bruno@clisp.org>
32700
32701         * README: Update git instructions.
32702
32703 2007-09-24  Eric Blake  <ebb9@byu.net>
32704
32705         Revert fpending breakage from 2007-09-08.
32706         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
32707         __fpending.c.
32708
32709 2007-09-24  Jim Meyering  <jim@meyering.net>
32710
32711         filenamecat.c: Add a test.
32712         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
32713         showing how the function works when DIR is the empty string.
32714
32715 2007-09-21  Simon Josefsson  <simon@josefsson.org>
32716
32717         * tests/test-canonicalize.sh: Turn on executable bit.
32718
32719 2007-09-19  Eric Blake  <ebb9@byu.net>
32720
32721         * README: Update CVS instructions.
32722
32723 2007-09-18  Bruno Haible  <bruno@clisp.org>
32724
32725         * modules/areadlink: New file.
32726         * lib/areadlink.h (areadlink): New declaration.
32727         * lib/areadlink.c: New file, based on lib/xreadlink.c.
32728
32729 2007-09-17  Jim Meyering  <jim@meyering.net>
32730
32731         * lib/savewd.c (ESTALE) [!defined]: Define.
32732         Reported to be required on Interix by Martin Koeppe.
32733
32734 2007-09-17  Bruno Haible  <bruno@clisp.org>
32735
32736         * gnulib-tool (func_version): Use $version.
32737
32738 2007-09-16  Bruno Haible  <bruno@clisp.org>
32739
32740         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
32741         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
32742         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
32743         Reported by Greg Schafer <gschafer@zip.com.au>.
32744
32745 2007-09-15  Bruno Haible  <bruno@clisp.org>
32746
32747         * gnulib-tool (sed): Try a little harder to make bash understand the
32748         alias.
32749         Reported by Bruce Korb <bruce.korb@gmail.com>.
32750
32751 2007-09-13  Eric Blake  <ebb9@byu.net>
32752
32753         * ChangeLog: Remove conflict markers.
32754
32755 2007-09-13  Simon Josefsson  <simon@josefsson.org>
32756
32757         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
32758         Reported by Bruno Haible <bruno@clisp.org>.
32759
32760 2007-09-12  Bruno Haible  <bruno@clisp.org>
32761
32762         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
32763         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
32764         is not defined.
32765
32766 2007-09-12  Eric Blake  <ebb9@byu.net>
32767
32768         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
32769         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
32770         Autoconf definition.
32771         * modules/euidaccess (Depends-on): Add extensions, for
32772         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
32773         * modules/fnmatch (Depends-on): Likewise.
32774         * modules/getaddrinfo (Depends-on): Likewise.
32775         * modules/getdelim (Depends-on): Likewise.
32776         * modules/getline (Depends-on): Likewise.
32777         * modules/getsubopt (Depends-on): Likewise.
32778         * modules/gettext (Depends-on): Likewise.
32779         * modules/group-member (Depends-on): Likewise.
32780         * modules/mbchar (Depends-on): Likewise.
32781         * modules/memmem (Depends-on): Likewise.
32782         * modules/mempcpy (Depends-on): Likewise.
32783         * modules/memrchr (Depends-on): Likewise.
32784         * modules/pagealign_alloc (Depends-on): Likewise.
32785         * modules/readutmp (Depends-on): Likewise.
32786         * modules/stpcpy (Depends-on): Likewise.
32787         * modules/stpncpy (Depends-on): Likewise.
32788         * modules/strchrnul (Depends-on): Likewise.
32789         * modules/strndup (Depends-on): Likewise.
32790         * modules/strsep (Depends-on): Likewise.
32791         * modules/strverscmp (Depends-on): Likewise.
32792         * modules/vasprintf (Depends-on): Likewise.
32793         * modules/wcwidth (Depends-on): Likewise.
32794         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
32795         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
32796         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
32797         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
32798         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
32799         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32800         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
32801         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
32802         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
32803         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
32804         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32805         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32806         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32807         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
32808         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
32809         * m4/readutmp.m4 (gl_READUTMP): Likewise.
32810         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32811         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32812         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32813         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32814         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32815         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32816         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32817         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
32818         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
32819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32820         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
32821         so that lock.m4 can be used in gettext without extensions module.
32822
32823 2007-09-11  Bruno Haible  <bruno@clisp.org>
32824
32825         * m4/isc-posix.m4: Remove file.
32826         Suggested by Eric Blake.
32827
32828 2007-09-11  Eric Blake  <ebb9@byu.net>
32829
32830         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
32831
32832 2007-09-10  Bruno Haible  <bruno@clisp.org>
32833
32834         * posix-modules: Fix typo in error message.
32835         Reported by Matt <mkraai@beckman.com>.
32836
32837 2007-09-09  Bruno Haible  <bruno@clisp.org>
32838
32839         * doc/functions/getdelim.texi: Update list of platforms lacking the
32840         function.
32841         * doc/functions/getline.texi: Likewise.
32842
32843 2007-09-09  Jim Meyering  <jim@meyering.net>
32844
32845         * lib/hash.c (hash_initialize): Detect calloc failure.
32846         Reported by Bruno Haible.
32847
32848 2007-09-09  Bruno Haible  <bruno@clisp.org>
32849
32850         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
32851         malloc or realloc fails.
32852
32853 2007-09-09  Bruno Haible  <bruno@clisp.org>
32854
32855         * modules/getcwd (Depends-on): Add malloc-posix.
32856         * modules/glob (Depends-on): Likewise.
32857         * modules/putenv (Depends-on): Likewise.
32858         * modules/strdup (Depends-on): Likewise.
32859         * modules/getdelim (Depends-on): Add realloc-posix.
32860         * modules/read-file (Depends-on): Likewise.
32861
32862 2007-09-09  Bruno Haible  <bruno@clisp.org>
32863
32864         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
32865         (gl_FUNC_MALLOC_POSIX): Require it.
32866         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
32867         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
32868         * modules/realloc (Files): Add m4/malloc.m4.
32869         * modules/calloc (Files): Likewise.
32870
32871 2007-09-09  Bruno Haible  <bruno@clisp.org>
32872
32873         * modules/malloc-posix: New file.
32874         * modules/malloc (Depends-on): Add malloc-posix.
32875         * lib/malloc.c: Include errno.h.
32876         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
32877         and a POSIX-compatible malloc into a single function. Set ENOMEM
32878         when returning NULL.
32879         * m4/malloc.m4: New file.
32880         * doc/functions/malloc.texi: Mention the malloc-posix module.
32881         * lib/stdlib_.h (malloc): New declaration.
32882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32883         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
32884         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
32885         and HAVE_MALLOC_POSIX.
32886
32887 2007-09-09  Bruno Haible  <bruno@clisp.org>
32888
32889         * modules/realloc-posix: New file.
32890         * modules/realloc (Depends-on): Add realloc-posix.
32891         * lib/realloc.c: Include errno.h.
32892         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
32893         and a POSIX-compatible realloc into a single function. Set ENOMEM
32894         when returning NULL.
32895         * m4/realloc.m4: New file.
32896         * doc/functions/realloc.texi: Mention the realloc-posix module.
32897         * lib/stdlib_.h (realloc): New declaration.
32898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32899         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
32900         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
32901         and HAVE_REALLOC_POSIX.
32902
32903 2007-09-09  Bruno Haible  <bruno@clisp.org>
32904
32905         * modules/calloc-posix: New file.
32906         * modules/calloc (Depends-on): Add calloc-posix.
32907         * lib/calloc.c: Include errno.h.
32908         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
32909         and a POSIX-compatible calloc into a single function. Set ENOMEM
32910         when returning NULL.
32911         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
32912         * doc/functions/calloc.texi: Mention the calloc-posix module.
32913         * lib/stdlib_.h (calloc): New declaration.
32914         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
32915         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
32916         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
32917         and HAVE_CALLOC_POSIX.
32918
32919 2007-09-09  Bruno Haible  <bruno@clisp.org>
32920
32921         Allow for modules to show an arbitrary notice.
32922         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
32923         * gnulib-tool: New option --extract-notice.
32924         (func_usage): Document it.
32925         (sed_extract_prog): Update.
32926         (func_get_notice): New function.
32927         (func_modules_notice): New function.
32928         (func_import, func_create_testdir): Invoke it.
32929         Suggested by Jim Meyering.
32930
32931 2007-09-09  Bruno Haible  <bruno@clisp.org>
32932
32933         * gnulib-tool: New options --verbose, --quiet.
32934         (func_usage): Document them.
32935         (verbose): New variable.
32936         (func_execute_command): New function.
32937         (func_import): Don't show the module list and the file list if
32938         $verbose < 0.
32939         (func_create_testdir): Likewise. Use func_execute_command.
32940         (func_create_megatestdir): Use func_execute_command.
32941
32942 2007-09-08  Bruno Haible  <bruno@clisp.org>
32943
32944         * gnulib-tool (func_import): Prefer rsync over wget when available,
32945         for fetching the PO files.
32946
32947 2007-09-08  Bruno Haible  <bruno@clisp.org>
32948
32949         * posix-modules: New file. Portions copied from gnulib-tool.
32950         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
32951
32952 2007-09-08  Jim Meyering  <jim@meyering.net>
32953
32954         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
32955         * lib/fpending.h: Rename from __fpending.h.
32956         * lib/fpending.c: Rename from __fpending.c.
32957         Include "fpending.h", not "__fpending.h".
32958         * lib/__fpending.h, lib/__fpending.c: Remove files.
32959         * modules/fpending (Files): Reflect new file names.
32960         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
32961
32962 2007-09-08  Bruno Haible  <bruno@clisp.org>
32963
32964         * m4/inttypes-h.m4: Remove stub file.
32965
32966 2007-09-07  Simon Josefsson  <simon@josefsson.org>
32967
32968         * doc/headers/stdint.texi: Discuss #include_next issue.
32969
32970 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
32971
32972         * build-aux/bootstrap: Remove obsolete comment about wget --help.
32973
32974 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32975
32976         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
32977         in variable name.
32978
32979 2007-09-03  Jim Meyering  <jim@meyering.net>
32980
32981         New module: git-version-gen.
32982         * modules/git-version-gen: New file.
32983
32984         Import changes from coreutils for bootstrap script.
32985
32986         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
32987
32988         bootstrap: uses rsync to download the .po files
32989         * build-aux/bootstrap (po_download_command_format): New global.
32990         (download_po_files): Use rsync.
32991         (update_po_files): Don't remove .po files after download,
32992         so future rsync runs can take advantage of the copies.
32993
32994         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
32995
32996         Solve the unnecessary-.po-file-regeneration problem once and for all.
32997         * build-aux/bootstrap (download_po_files): New function, renamed from
32998         get_translations.  Now, downloads, but doesn't update LINGUAS.
32999         (update_po_files): New function.
33000
33001         bootstrap: Ignore more.
33002         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
33003         uniwidth to e.g., lib/.gitignore.
33004         (slurp): Handle the sys_stat_.h -> sys mapping, too.
33005
33006         * build-aux/bootstrap: New setting: vc_ignore.
33007         (insert_sorted_if_absent): Create $file if absent.
33008         Adapt to new, possibly empty, list: $vc_ignore.
33009
33010         bootstrap: generate more ignorable names
33011         * build-aux/bootstrap (slurp): When generating ignorable names,
33012         also map .sin to .sed, .gperf to .c, and .y to .c.
33013
33014 2007-09-03  Jim Meyering  <jim@meyering.net>
33015
33016         * build-aux/git-version-gen: New file, from coreutils.  For details, see
33017         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
33018
33019 2007-09-02  Bruno Haible  <bruno@clisp.org>
33020
33021         Fix mis-recognition of 'mcs' on QNX 6.
33022         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
33023         output contains the string "Mono".
33024         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
33025         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
33026
33027 2007-09-01  Bruno Haible  <bruno@clisp.org>
33028
33029         Fix collision between uniwidth/* and linebreak modules.
33030         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
33031         u32_width): Remove declarations.
33032         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
33033         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
33034         streq3, streq2, streq1, streq0): Remove functions.
33035         (STREQ): Remove macro.
33036         (is_cjk_encoding): Remove function.
33037         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
33038         (uc_width, u8_width, u16_width, u32_width): Remove functions.
33039         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
33040         * NEWS: Document the change.
33041
33042 2007-09-01  Bruno Haible  <bruno@clisp.org>
33043
33044         * lib/streq.h: Add double-inclusion guard.
33045
33046 2007-09-01  Karl Berry  <karl@gnu.org>
33047
33048         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
33049
33050 2007-08-28  Jim Meyering  <jim@meyering.net>
33051
33052         Rename mreadlink_with_size to areadlink_with_size.
33053         * NEWS: Document the change.
33054         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
33055         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
33056         * lib/mreadlink.h: Rename this to...
33057         * lib/areadlink.h: ...this.
33058         * modules/mreadlink-with-size: Rename this to...
33059         * modules/areadlink-with-size: ...this.
33060         * lib/canonicalize.c: Reflect the renaming.
33061         * modules/canonicalize: Likewise.
33062
33063 2007-08-26  Bruno Haible  <bruno@clisp.org>
33064
33065         * gnulib-tool (func_import): When deciding which files to remove,
33066         consider also dangling symbolic links.
33067         Reported by Eric Blake.
33068
33069 2007-08-26  Bruno Haible  <bruno@clisp.org>
33070
33071         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
33072
33073 2007-08-23  Simon Josefsson  <simon@josefsson.org>
33074
33075         * lib/readline.c: Don't include getline.h, the prototype is now
33076         found in stdio.h.
33077
33078 2007-08-23  Jim Meyering  <jim@meyering.net>
33079
33080         Getdelim touchup.
33081         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
33082         around the funlockfile call, since funlockfile never sets errno.
33083         Don't set errno upon failed realloc.
33084
33085 2007-08-22  Eric Blake  <ebb9@byu.net>
33086
33087         Getline touchups.
33088         * lib/getdelim.c (getdelim): Revert regression that required *n to
33089         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
33090         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
33091         getdelim, rather than whether implementation is missing.
33092         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
33093         * lib/stdio_.h (getline): Also declare if replacement is
33094         required.
33095         * doc/functions/getdelim.texi: New file.
33096         * doc/functions/getline.texi: Likewise.
33097         * doc/gnulib.texi (Function Substitutes): Add new files.
33098         Reported by Bruno Haible.
33099
33100 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
33101
33102         * users.txt: Add Guile.
33103
33104 2007-08-22  Eric Blake  <ebb9@byu.net>
33105
33106         * tests/test-getdelim.c (main): Use remove, not unlink.
33107         * tests/test-getline.c (main): Likewise.
33108
33109         Move getline and getdelim into stdio.h, per POSIX 200x.
33110         * modules/getline (Files): Remove getline.h.
33111         (Depends-on): Add stdio.
33112         (configure.ac): Add module indicator.
33113         * modules/getdelim (Files): Remove getdelim.h.
33114         (Depends-on): Add stdio.
33115         (configure.ac): Add module indicator.
33116         * modules/stdio (Makefile.am): Work with new indicators.
33117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33118         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
33119         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33120         * lib/getdelim.h: Delete.
33121         * lib/getline.h: Delete.
33122         * lib/stdio_.h (getdelim, getline): Declare.
33123         * modules/getdelim-tests: New module.
33124         * modules/getline-tests: Likewise.
33125         * tests/test-getdelim.c: New file.
33126         * tests/test-getline.c: Likewise.
33127         * NEWS: Document the change.
33128         * lib/getline.c: Update choice of header.
33129         * lib/csharpcomp.c: Likewise.
33130         * lib/getpass.c: Likewise.
33131         * lib/javacomp.c: Likewise.
33132         * lib/javaversion.c: Likewise.
33133         * lib/yesno.c: Likewise.
33134         * lib/getdelim.c: Likewise.
33135         (getdelim): Set errno on failure, and avoid memory leak.
33136
33137 2007-08-19  Bruno Haible  <bruno@clisp.org>
33138
33139         * modules/closein (Depends-on): Add freadahead.
33140         * lib/closein.c: Include freadahead.h.
33141         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
33142         is zero.
33143
33144 2007-08-19  Bruno Haible  <bruno@clisp.org>
33145
33146         * modules/freadahead-tests: New file.
33147         * tests/test-freadahead.sh: New file.
33148         * tests/test-freadahead.c: New file.
33149
33150         * modules/freadahead: New file.
33151         * lib/freadahead.h: New file.
33152         * lib/freadahead.c: New file.
33153         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
33154         fbufmode, fpurge, freadable, fwritable.
33155
33156 2007-08-19  Eric Blake  <ebb9@byu.net>
33157
33158         Test yesno in combination with closein.
33159         * lib/yesno.c (yesno): Document use of stdin.
33160         * modules/yesno-tests (Files): New module.
33161         * tests/test-yesno.c (main): New file.
33162         * tests/test-yesno.sh: Likewise.
33163
33164 2007-08-19  Bruno Haible  <bruno@clisp.org>
33165
33166         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
33167         * lib/fseeko.c (rpl_fseeko): Likewise.
33168         * lib/fseterr.c (fseterr): Likewise.
33169
33170 2007-08-19  Bruno Haible  <bruno@clisp.org>
33171
33172         * tests/test-lseek.c (main): Disable a test for BeOS.
33173         * doc/functions/lseek.texi: Document the BeOS bug.
33174
33175 2007-08-19  Bruno Haible  <bruno@clisp.org>
33176             Eric Blake  <ebb9@byu.net>
33177
33178         * lib/lseek.c: Include <sys/stat.h>.
33179         (rpl_lseek): Add workaround code also for Unix platforms.
33180         Needed for BeOS.
33181         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
33182         * doc/functions/lseek.texi: Document BeOS definiency.
33183
33184 2007-08-18  Bruno Haible  <bruno@clisp.org>
33185
33186         * modules/fstrcmp-tests: New file.
33187         * tests/test-fstrcmp.c: New file.
33188
33189 2007-08-18  Bruno Haible  <bruno@clisp.org>
33190
33191         * modules/fstrcmp: New file, from GNU gettext with modifications.
33192         * lib/fstrcmp.h: New file, from GNU gettext.
33193         * lib/fstrcmp.c: New file, from GNU gettext.
33194         * MODULES.html.sh (String handling): Add fstrcmp.
33195
33196 2007-08-18  Bruno Haible  <bruno@clisp.org>
33197
33198         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
33199         'bool'.
33200         (diag, compareseq): Remove const from the ctxt argument.
33201         (USE_HEURISTIC): Undefine at the end.
33202
33203 2007-08-18  Jim Meyering  <jim@meyering.net>
33204
33205         New file: lib/idcache.h
33206         * NEWS: Mention the addition.
33207         * modules/idcache (Files): Add lib/idcache.h
33208         * lib/idcache.c: Include "idcache.h".
33209         Don't include <sys/types.h>.
33210         Add a FIXME comment.
33211         Move file-scoped "static" declarations to the top.
33212         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
33213
33214 2007-08-17  Bruno Haible  <bruno@clisp.org>
33215         and Paul Eggert  <eggert@cs.ucla.edu>
33216
33217         * MODULES.html.sh: Add diffseq.
33218         * modules/diffseq: New file.
33219         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
33220         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
33221
33222 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33223
33224         Import changes from coreutils for bootstrap script.
33225
33226         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
33227
33228         * build-aux/bootstrap (slurp): Work even in environments where
33229         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
33230         current code does not slurp files whose names start with ".", and
33231         this looks like it might be a troublesome area.
33232
33233         2007-07-11  Jim Meyering  <jim@meyering.net>
33234
33235         If there's a GPL vN copyright comment, require that N == 3.
33236
33237         2007-07-08  Jim Meyering  <jim@meyering.net>
33238
33239         Run the coreutils-specific code only if tests/Makefile.am.in exists.
33240         * build-aux/bootstrap (mam_template): Move definition out of loop.
33241
33242         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
33243
33244         * build-aux/bootstrap (symlink_to_dir): Rename function from
33245         symlink_to_gnulib.  Add a directory parameter.  Update all
33246         callers.
33247         (cp_mark_as_generated): Also check for -- and link to -- files in
33248         gl/.
33249
33250         2007-07-08  Jim Meyering  <jim@meyering.net>
33251
33252         Adapt to deeper hierarchy in gnulib.
33253         * build-aux/bootstrap (symlink_to_dir): If the destination
33254         directory doesn't exist, create it. This is required at least for
33255         "lib/uniwidth/cjk.h".
33256
33257         2007-05-15  Jim Meyering  <jim@meyering.net>
33258
33259         * build-aux/bootstrap: Now that generated Makefile.am files
33260         are no longer under version control, they must be created at
33261         bootstrap time.
33262
33263 2007-08-14  Ben Pfaff  <blp@gnu.org>
33264
33265         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
33266
33267 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33268
33269         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
33270         given the changes below.
33271         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
33272         even on hosts that have padding bits beyond the supported 64.
33273
33274 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33275
33276         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
33277         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
33278         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
33279         depends on it.
33280         (xstrtol_error): Remove.
33281         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
33282         but with a different signature.
33283         (ATTRIBUTE_NORETURN, __attribute__): New macros.
33284         * lib/xstrtol-error.c: Include exitfail.h.
33285         (xstrtol_fatal): New function, with a different signature from the
33286         old xstrtol_error, so that the caller need not worry about passing
33287         in an exit status, or about storage management of the option argument.
33288         (xstrtol_error): Now a static function.  Redo signature to
33289         implement xstrtol_fatal.  Output the correct number of hyphens in
33290         front of the option so that the caller need not worry about
33291         storage management.
33292         (N_): New macro.
33293         (_): Remove; not used now.
33294         * modules/xstrtol: Depend on getopt.
33295         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
33296         of old STRTOL_FATAL_ERROR macro.
33297         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
33298         of test program.
33299         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
33300         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
33301
33302 2007-08-08  Eric Blake  <ebb9@byu.net>
33303
33304         * lib/xstrtol-error.c: Add missing include.
33305
33306         Move xstrtol messages into gnulib domain, when --pobase is used.
33307         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
33308         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
33309         * modules/xstrtol (Files): Distribute new file.
33310         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
33311         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
33312         * tests/test-xstrtol.c: ...into new file.
33313         * tests/test-xstrtoul.c: Also test xstrtoul.
33314         * tests/test-xstrtoimax.c: Also test xstrtoimax.
33315         * tests/test-xstrtoumax.c: Also test xstrtoumax.
33316         * tests/test-xstrtol.sh: Drive the tests.
33317         * tests/test-xstrtoimax.sh: Likewise.
33318         * tests/test-xstrtoumax.sh: Likewise.
33319         * modules/xstrtol-tests: New module.
33320         * modules/xstrtoimax-tests: Likewise.
33321         * modules/xstrtoumax-tests: Likewise.
33322
33323 2007-08-08  Jim Meyering  <jim@meyering.net>
33324
33325         New function: mfile_name_concat.
33326         * lib/filenamecat.c (mfile_name_concat): New function, just like
33327         file_name_concat, but return NULL upon failure rather than exiting
33328         with a diagnostic.
33329         * lib/filenamecat.h: Declare it.
33330
33331 2007-08-07  Bruno Haible  <bruno@clisp.org>
33332
33333         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
33334         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
33335         warning from gcc.
33336         Reported by Eric Blake.
33337
33338 2007-08-07  Simon Josefsson  <simon@josefsson.org>
33339
33340         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
33341         * modules/crypto/arcfour (License): Likewise.
33342         * modules/crypto/des-tests (License): Likewise.
33343         * modules/crypto/gc-arctwo-tests (License): Likewise.
33344         * modules/crypto/gc-des-tests (License): Likewise.
33345         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
33346         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
33347         * modules/crypto/gc-md2-tests (License): Likewise.
33348         * modules/crypto/gc-md4-tests (License): Likewise.
33349         * modules/crypto/gc-md5-tests (License): Likewise.
33350         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
33351         * modules/crypto/gc-rijndael-tests (License): Likewise.
33352         * modules/crypto/gc-sha1-tests (License): Likewise.
33353         * modules/crypto/gc-tests (License): Likewise.
33354         * modules/crypto/hmac-md5 (License): Likewise.
33355         * modules/crypto/hmac-sha1 (License): Likewise.
33356         * modules/crypto/md2-tests (License): Likewise.
33357         * modules/crypto/md4-tests (License): Likewise.
33358         * modules/crypto/md5 (License): Likewise.
33359         * modules/crypto/rijndael (License): Likewise.
33360         * modules/crypto/sha1 (License): Likewise.
33361         * modules/memxor (License): Likewise.
33362
33363 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
33364         and Bruno Haible  <bruno@clisp.org>
33365
33366         * NEWS: Describe interface changes to human, xstrtol.
33367         * lib/human.h: Include <xstrtol.h>.
33368         (human_options): Return enum strtol_error, not int.  Remove
33369         bool arg; take int * instead.
33370         * lib/human.c: Don't include "gettext.h".
33371         (_): Remove; no longer used.
33372         Don't include <xstrtol.h>, since human.h does it.
33373         (human_options): Adjust to abovementioned interface changes.
33374         Do not report error to stderr; that's now the caller's
33375         responsibility.
33376         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
33377         interface change.
33378         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
33379         Str, Argument_type_string.  All uses changed.  Put " argument"
33380         in diagnostics to make them clearer.  Change wording of suffix
33381         message for clarity.
33382         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
33383         Argument_type_string.
33384         (STRTOL_FATAL_WARN): Remove; no longer used.
33385         * modules/human (Depends-on): Remove gettext-h.
33386
33387 2007-08-06  Simon Josefsson  <simon@josefsson.org>
33388
33389         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
33390
33391 2007-07-31  Bruno Haible  <bruno@clisp.org>
33392
33393         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
33394         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
33395         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
33396
33397 2007-07-31  Bruno Haible  <bruno@clisp.org>
33398
33399         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
33400         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
33401
33402 2007-07-30  Bruno Haible  <bruno@clisp.org>
33403
33404         * modules/base64 (License): Use the synonymous term "LGPLv2+".
33405         * modules/c-ctype (License): Likewise.
33406         * modules/c-strcase (License): Likewise.
33407         * modules/check-version (License): Likewise.
33408         * modules/iconv (License): Likewise.
33409         * modules/iconv_open (License): Likewise.
33410         * modules/read-file (License): Likewise.
33411         * modules/striconv (License): Likewise.
33412         * modules/strverscmp (License): Likewise.
33413         * modules/vasprintf (License): Likewise.
33414         * modules/crypto/des (License): Likewise.
33415         * modules/crypto/gc (License): Likewise.
33416         * modules/crypto/gc-arcfour (License): Likewise.
33417         * modules/crypto/gc-arctwo (License): Likewise.
33418         * modules/crypto/gc-des (License): Likewise.
33419         * modules/crypto/gc-hmac-md5 (License): Likewise.
33420         * modules/crypto/gc-hmac-sha1 (License): Likewise.
33421         * modules/crypto/gc-md2 (License): Likewise.
33422         * modules/crypto/gc-md4 (License): Likewise.
33423         * modules/crypto/gc-md5 (License): Likewise.
33424         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
33425         * modules/crypto/gc-random (License): Likewise.
33426         * modules/crypto/gc-rijndael (License): Likewise.
33427         * modules/crypto/gc-sha1 (License): Likewise.
33428         * modules/crypto/md2 (License): Likewise.
33429         * modules/crypto/md4 (License): Likewise.
33430
33431 2007-07-30  Jim Meyering  <jim@meyering.net>
33432
33433         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
33434         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
33435         it has valid stat data.  This bug would cause du not to count the
33436         sizes of inaccessible directories.
33437         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
33438         in <http://bugzilla.redhat.com/250077>.
33439
33440 2007-07-25  Peter O'Gorman  <peter@pogma.com>
33441             Bruno Haible  <bruno@clisp.org>
33442
33443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
33444         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
33445         #include_next, gives a diagnostic about it, but reports no error in
33446         the exit code.
33447         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
33448
33449 2007-07-24  Ben Pfaff  <blp@gnu.org>
33450
33451         Improve name: "count-one-bits" is better than "popcount".
33452         * MODULES.html.sh: Update name.
33453         * lib/popcount.h: Renamed lib/count-one-bits.h.
33454         (popcount): Renamed count_one_bits.
33455         (popcountl): Renamed count_one_bits_l.
33456         (popcountll): Renamed count_one_bits_ll.
33457         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
33458         * modules/popcount: Renamed module/count-one-bits.
33459         * modules/popcount-tests: Renamed module/count-one-bits-tests.
33460         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
33461
33462 2007-07-23  Ben Pfaff  <blp@gnu.org>
33463
33464         * lib/popcount.h (popcount32): Reduce size of constants, to allow
33465         better code generation, and add U to large constants to avoid
33466         warnings, in non-GCC case.
33467         Suggested by Bruno Haible.
33468
33469 2007-07-23  Ben Pfaff  <blp@gnu.org>
33470
33471         * lib/popcount.h: Use verify_true instead of if...abort.
33472         * modules/popcount: Depend on verify module.
33473         Suggested by Jim Meyering.
33474
33475 2007-07-23  Bruno Haible  <bruno@clisp.org>
33476
33477         * gnulib-tool (func_import): Create a .cvsignore file also when the
33478         directory is not yet in CVS but the toplevel directory is. When
33479         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
33480         Reported by Karl Berry.
33481
33482 2007-07-22  Ben Pfaff  <blp@gnu.org>
33483
33484         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
33485         case.
33486         Suggested by Eric Blake.
33487
33488 2007-07-22  Ben Pfaff  <blp@gnu.org>
33489
33490         New module: popcount.
33491         * MODULES.html.sh: Add popcount.
33492         * modules/popcount: New file.
33493         * modules/popcount-tests: New file.
33494         * tests/test-popcount.c: New file.
33495         * lib/popcount.h: New file.
33496         * m4/popcount.m4: New file.
33497
33498 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
33499
33500         * build-aux/announce-gen: Update to GPLv3.
33501
33502         * build-aux/config.guess: Update from config.
33503
33504 2007-07-21  Bruno Haible  <bruno@clisp.org>
33505
33506         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
33507         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
33508
33509 2007-07-20  Jim Meyering  <jim@meyering.net>
33510
33511         * check-module: Diagnose a self-dependency.
33512
33513 2007-07-19  Bruno Haible  <bruno@clisp.org>
33514
33515         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
33516         empty.
33517         Reported by Eric Blake.
33518
33519 2007-07-18  Bruno Haible  <bruno@clisp.org>
33520
33521         * gnulib-tool: New options --po-base, --po-domain.
33522         (func_usage): Document them.
33523         (pobase, po_domain): New variables.
33524         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
33525         DEFAULT_TEXT_DOMAIN.
33526         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
33527         (func_import): Consider pobase and po_domain. Create a po/ directory.
33528         (func_create_testdir): Set pobase and po_domain to empty.
33529         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
33530         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
33531
33532 2007-07-18  Bruno Haible  <bruno@clisp.org>
33533
33534         * gnulib-tool (func_get_automake_snippet): Synthesize also an
33535         EXTRA_DIST augmentation for files in build-aux/.
33536
33537 2007-07-16  Bruno Haible  <bruno@clisp.org>
33538
33539         * modules/lseek (License): Use the synonymous term "LGPLv2+".
33540         * modules/getdelim (License): Likewise.
33541
33542 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33543
33544         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
33545         * modules/d-type (License): Likewise.
33546         * modules/extensions (License): Likewise.
33547         * modules/fnmatch (License): Likewise.
33548         * modules/fseeko (License): Likewise.
33549         * modules/getaddrinfo (License): Likewise.
33550         * modules/getline (License): Likewise.
33551         * modules/getlogin_r (License): Likewise.
33552         * modules/getpass (License): Likewise.
33553         * modules/gettimeofday (License): Likewise.
33554         * modules/glob (License): Likewise.
33555         * modules/inet_ntop (License): Likewise.
33556         * modules/malloc (License): Likewise.
33557         * modules/malloca (License): Likewise.
33558         * modules/memmem (License): Likewise.
33559         * modules/mempcpy (License): Likewise.
33560         * modules/memset (License): Likewise.
33561         * modules/minmax (License): Likewise.
33562         * modules/mktime (License): Likewise.
33563         * modules/netinet_in (License): Likewise.
33564         * modules/pathmax (License): Likewise.
33565         * modules/poll (License): Likewise.
33566         * modules/regex (License): Likewise.
33567         * modules/snprintf (License): Likewise.
33568         * modules/stdbool (License): Likewise.
33569         * modules/stdint (License): Likewise.
33570         * modules/stdio (License): Likewise.
33571         * modules/strcase (License): Likewise.
33572         * modules/strcasestr (License): Likewise.
33573         * modules/strdup (License): Likewise.
33574         * modules/string (License): Likewise.
33575         * modules/strndup (License): Likewise.
33576         * modules/strnlen (License): Likewise.
33577         * modules/strpbrk (License): Likewise.
33578         * modules/strptime (License): Likewise.
33579         * modules/strsep (License): Likewise.
33580         * modules/sys_select (License): Likewise.
33581         * modules/sys_socket (License): Likewise.
33582         * modules/sys_stat (License): Likewise.
33583         * modules/sys_time (License): Likewise.
33584         * modules/time (License): Likewise.
33585         * modules/time_r (License): Likewise.
33586         * modules/timegm (License): Likewise.
33587         * modules/unistd (License): Likewise.
33588         * modules/vsnprintf (License): Likewise.
33589         * modules/wctype (License): Likewise.
33590
33591 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33592
33593         * modules/argz (License): LGPLv2+.
33594
33595 2007-07-15  Karl Berry  <karl@gnu.org>
33596
33597         * doc/gnulib.texi: revise node structure per new fdl.texi.
33598
33599 2007-07-14  Bruno Haible  <bruno@clisp.org>
33600
33601         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
33602         the output file.
33603         * lib/uniname/uninames.h: Regenerated.
33604
33605 2007-07-14  Karl Berry  <karl@gnu.org>
33606
33607         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
33608         omitting sectioning and index commands.
33609
33610 2007-07-13  Bruno Haible  <bruno@clisp.org>
33611
33612         New gnulib-tool option --more-symlinks.
33613         * gnulib-tool (func_usage): Document --more-symlinks.
33614         (do_copyrights): New variable.
33615         Recognize option --more-symlinks.
33616         (func_import): Don't add a copyright notice transform to
33617         sed_transform_lib_file if do_copyrights is empty.
33618
33619 2007-07-13  Bruno Haible  <bruno@clisp.org>
33620
33621         * lib/vasnprintf.c (decimal_point_char): Define also if
33622         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
33623         && !NEED_PRINTF_DIRECTIVE_A.
33624         Reported by Clemens Koller <clemens.koller@anagramm.de> via
33625         Gary V. Vaughan <gary@gnu.org>.
33626
33627 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
33628
33629         * lib/inttypes_.h: Undo previous change, since it was fixed
33630         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
33631
33632 2007-07-13  Bruno Haible  <bruno@clisp.org>
33633
33634         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
33635         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
33636
33637 2007-07-13  Jim Meyering  <jim@meyering.net>
33638
33639         df: Don't fail for Tru64's "file-on-file mount".
33640         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
33641         so we fall through and use statfs instead.  Details here:
33642         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
33643         Reported by Albert Chin.
33644
33645 2007-07-13  Bruno Haible  <bruno@clisp.org>
33646
33647         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
33648         * modules/configmake (License): Likewise.
33649         * modules/gettext (License): Likewise.
33650         * modules/gettext-h (License): Likewise.
33651         * modules/include_next (License): Likewise.
33652         * modules/link-warning (License): Likewise.
33653         * modules/localcharset (License): Likewise.
33654         * modules/localename (License): Likewise.
33655         * modules/lock (License): Likewise.
33656         * modules/relocatable-lib-lgpl (License): Likewise.
33657         * modules/size_max (License): Likewise.
33658         * modules/vasnprintf (License): Likewise.
33659         * modules/wchar (License): Likewise.
33660         * modules/xsize (License): Likewise.
33661
33662 2007-07-13  Bruno Haible  <bruno@clisp.org>
33663
33664         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
33665         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
33666
33667 2007-07-12  Bruno Haible  <bruno@clisp.org>
33668
33669         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
33670         in the modules files.
33671
33672 2007-07-11  Karl Berry  <karl@gnu.org>
33673
33674         * MODULES.html.sh (func_module): use
33675          sed -e '\|^'"${includefile}"'$|d'
33676          instead of /.../d, to avoid errors on $includefile's containing /.
33677
33678 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
33679
33680         * gnulib-tool (func_import): Avoid duplication of --avoid
33681         statements
33682         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
33683         names to `_' in variable names.
33684
33685 2007-07-10  Eric Blake  <ebb9@byu.net>
33686
33687         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
33688         * NEWS: Document this change.
33689
33690 2007-07-08  Bruno Haible  <bruno@clisp.org>
33691
33692         Update to Unicode 5.0.
33693         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
33694         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
33695         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
33696         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
33697         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
33698         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
33699         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
33700         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
33701         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
33702         U+10A3F, U+1D242..U+1D244.
33703         (nonspacing_table_ind): Update.
33704         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
33705         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
33706
33707 2007-07-08  Bruno Haible  <bruno@clisp.org>
33708
33709         Update to Unicode 5.0.
33710         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
33711         code transform. Extend the name index field of unicode_name_to_code and
33712         unicode_code_to_name from 16 to 24 bits.
33713         * lib/uniname/uniname.c (unicode_character_name,
33714         unicode_name_character): Add the range 0x12xxx to the code transform.
33715         * lib/uniname/uninames.h: Regenerated.
33716         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
33717
33718 2007-07-07  Bruno Haible  <bruno@clisp.org>
33719
33720         * modules/wcwidth-tests: New file.
33721         * tests/test-wcwidth.c: New file.
33722
33723         Work around MacOS X wcwidth() bug.
33724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
33725         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
33726         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
33727         original wcwidth in non-UTF-8 locales.
33728         * modules/wcwidth (Depends-on): Add localcharset, streq,
33729         uniwidth/width.
33730         * doc/functions/wcwidth.texi: Update.
33731
33732 2007-07-07  Bruno Haible  <bruno@clisp.org>
33733
33734         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
33735         (wcwidth): New declaration.
33736         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
33737         macros.
33738         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
33739         here. Prepare for creating <wchar.h> unconditionally.
33740         * modules/wchar (Depends-on): Add link-warning.
33741         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
33742         REPLACE_WCWIDTH, and GL_LINK_WARNING.
33743         * lib/wcwidth.h: Remove file.
33744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
33745         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
33746         * modules/wcwidth (Files): Remove lib/wcwidth.h.
33747         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
33748         (Include): Replace wcwidth.h with <wchar.h>.
33749         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
33750         * lib/mbchar.h: Don't include wcwidth.h.
33751         * lib/mbswidth.c: Likewise.
33752         * NEWS: Mention the change.
33753
33754 2007-07-07  Bruno Haible  <bruno@clisp.org>
33755
33756         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
33757         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
33758         definition with an external declaration.
33759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
33760         defined as a function. Remove AC_C_INLINE requirement.
33761         * modules/wcwidth (Files): Add lib/wcwidth.c.
33762         (Makefile.am): Remove redundant statement.
33763
33764 2007-07-07  Bruno Haible  <bruno@clisp.org>
33765
33766         * MODULES.html.sh (Unicode string functions): Add the new modules.
33767
33768         * tests/uniwidth/test-u32-strwidth.c: New file.
33769         * modules/uniwidth/u32-strwidth-tests: New file.
33770
33771         * lib/uniwidth/u32-strwidth.c: New file.
33772         * modules/uniwidth/u32-strwidth: New file.
33773
33774         * tests/uniwidth/test-u16-strwidth.c: New file.
33775         * modules/uniwidth/u16-strwidth-tests: New file.
33776
33777         * lib/uniwidth/u16-strwidth.c: New file.
33778         * modules/uniwidth/u16-strwidth: New file.
33779
33780         * tests/uniwidth/test-u8-strwidth.c: New file.
33781         * modules/uniwidth/u8-strwidth-tests: New file.
33782
33783         * lib/uniwidth/u8-strwidth.c: New file.
33784         * modules/uniwidth/u8-strwidth: New file.
33785
33786         * tests/uniwidth/test-u32-width.c: New file.
33787         * modules/uniwidth/u32-width-tests: New file.
33788
33789         * lib/uniwidth/u32-width.c: New file.
33790         * modules/uniwidth/u32-width: New file.
33791
33792         * tests/uniwidth/test-u16-width.c: New file.
33793         * modules/uniwidth/u16-width-tests: New file.
33794
33795         * lib/uniwidth/u16-width.c: New file.
33796         * modules/uniwidth/u16-width: New file.
33797
33798         * tests/uniwidth/test-u8-width.c: New file.
33799         * modules/uniwidth/u8-width-tests: New file.
33800
33801         * lib/uniwidth/u8-width.c: New file.
33802         * modules/uniwidth/u8-width: New file.
33803
33804         * tests/uniwidth/test-uc_width.c: New file.
33805         * modules/uniwidth/width-tests: New file.
33806
33807         * lib/uniwidth/width.c: New file, from GNU libiconv.
33808         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
33809         * modules/uniwidth/width: New file.
33810
33811         * lib/uniwidth.h: New file, from GNU libiconv.
33812         * modules/uniwidth/base: New file.
33813
33814 2007-07-07  Bruno Haible  <bruno@clisp.org>
33815
33816         * lib/uniname.h: New file, from GNU gettext.
33817         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
33818         * lib/uniname/uninames.h: New file, from GNU gettext.
33819         * lib/uniname/uniname.c: New file, from GNU gettext.
33820         * tests/uniname/test-uninames.sh: New file.
33821         * tests/uniname/test-uninames.c: New file, from GNU gettext.
33822         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
33823         * modules/uniname/base: New file.
33824         * modules/uniname/uniname: New file.
33825         * modules/uniname/uniname-tests: New file.
33826         * MODULES.html.sh (Unicode string functions): Add the new modules.
33827
33828 2007-07-06  Bruno Haible  <bruno@clisp.org>
33829
33830         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
33831
33832 2007-07-06  Bruno Haible  <bruno@clisp.org>
33833
33834         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
33835         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
33836         includes <cygwin/sys_time.h> which includes <sys/select.h> which
33837         include <sys/time.h>.
33838         Reported by Eric Blake.
33839
33840 2007-07-06  Eric Blake  <ebb9@byu.net>
33841
33842         Fix testing canonicalize on cygwin.
33843         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
33844         Revert patch from 2007-06-19.
33845         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
33846         canonicalize module is also in use.
33847         * tests/test-canonicalize.c: New file.
33848         * tests/test-canonicalize.sh: Likewise.
33849         * modules/canonicalize-tests: Likewise.
33850
33851 2007-07-06  Jim Meyering  <jim@meyering.net>
33852
33853         * lib/getugroups.c (getugroups): Detect getgrent failure.
33854         Adjust comment to reflect reality: this function may return -1.
33855
33856 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33857
33858         * build-aux/bootstrap (TP_URL,get_translations): Update to use
33859         the new TP address.
33860         (usage): Fix typo
33861         (gnulib_mk): New variable.
33862
33863 2007-07-05  Jim Meyering  <jim@meyering.net>
33864
33865         Don't let endgrent clobber errno, no matter how improbable.
33866         * lib/getugroups.c (getugroups): Save and restore errno around
33867         endgrent call.
33868
33869         Close the group DB even when failing with 2^31 or more members.
33870         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
33871
33872 2007-07-04  Jim Meyering  <jim@meyering.net>
33873
33874         * lib/getugroups.h: New file.
33875         * lib/getugroups.c: Include "getugroups.h".
33876         Remove uses of "register" keyword.
33877         Move local variable, "cp", down into scope where used.
33878         Give "username" parameter the "const" attribute.
33879         * modules/getugroups (Files): Add lib/getugroups.h
33880
33881 2007-07-04  Karl Berry  <karl@gnu.org>
33882
33883         * MODULES.html.sh (func_all_modules): Complete rename of
33884         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
33885
33886 2007-07-02  Bruno Haible  <bruno@clisp.org>
33887
33888         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
33889         mode, when inttypes.h comes from gnulib.
33890         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33891
33892 2007-07-02  Simon Josefsson  <simon@josefsson.org>
33893
33894         * NEWS: Mention lgpl module name change.
33895
33896         * modules/lgpl-2.1: Renamed from lgpl.
33897
33898         * NEWS: Mention gpl module name change.
33899
33900         * modules/gpl-3.0: New file, based on gpl-2.0.
33901
33902         * modules/gpl-2.0: Renamed from gpl.
33903
33904         * modules/gpl: Fix filename, doc/gpl.texi is now found at
33905         doc/gpl-2.0.texi.
33906
33907 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
33908
33909         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
33910         #define __STDC_LIMIT_MACROS temporarily while including
33911         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
33912         Problem reported by Joel E. Denny in
33913         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
33914
33915 2007-07-01  Bruno Haible  <bruno@clisp.org>
33916
33917         * lib/unistdio.h: New file.
33918         * lib/unistdio/u-asnprintf.h: New file.
33919         * lib/unistdio/u-asprintf.h: New file.
33920         * lib/unistdio/u-printf-args.c: New file.
33921         * lib/unistdio/u-printf-args.h: New file.
33922         * lib/unistdio/u-printf-parse.h: New file.
33923         * lib/unistdio/u-snprintf.h: New file.
33924         * lib/unistdio/u-sprintf.h: New file.
33925         * lib/unistdio/u-vasprintf.h: New file.
33926         * lib/unistdio/u-vsnprintf.h: New file.
33927         * lib/unistdio/u-vsprintf.h: New file.
33928         * lib/unistdio/ulc-asnprintf.c: New file.
33929         * lib/unistdio/ulc-asprintf.c: New file.
33930         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
33931         * lib/unistdio/ulc-printf-parse.c: New file.
33932         * lib/unistdio/ulc-snprintf.c: New file.
33933         * lib/unistdio/ulc-sprintf.c: New file.
33934         * lib/unistdio/ulc-vasnprintf.c: New file.
33935         * lib/unistdio/ulc-vasprintf.c: New file.
33936         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
33937         * lib/unistdio/ulc-vsnprintf.c: New file.
33938         * lib/unistdio/ulc-vsprintf.c: New file.
33939         * lib/unistdio/u8-asnprintf.c: New file.
33940         * lib/unistdio/u8-asprintf.c: New file.
33941         * lib/unistdio/u8-printf-parse.c: New file.
33942         * lib/unistdio/u8-snprintf.c: New file.
33943         * lib/unistdio/u8-sprintf.c: New file.
33944         * lib/unistdio/u8-vasnprintf.c: New file.
33945         * lib/unistdio/u8-vasprintf.c: New file.
33946         * lib/unistdio/u8-vsnprintf.c: New file.
33947         * lib/unistdio/u8-vsprintf.c: New file.
33948         * lib/unistdio/u8-u8-asnprintf.c: New file.
33949         * lib/unistdio/u8-u8-asprintf.c: New file.
33950         * lib/unistdio/u8-u8-snprintf.c: New file.
33951         * lib/unistdio/u8-u8-sprintf.c: New file.
33952         * lib/unistdio/u8-u8-vasnprintf.c: New file.
33953         * lib/unistdio/u8-u8-vasprintf.c: New file.
33954         * lib/unistdio/u8-u8-vsnprintf.c: New file.
33955         * lib/unistdio/u8-u8-vsprintf.c: New file.
33956         * lib/unistdio/u16-asnprintf.c: New file.
33957         * lib/unistdio/u16-asprintf.c: New file.
33958         * lib/unistdio/u16-printf-parse.c: New file.
33959         * lib/unistdio/u16-snprintf.c: New file.
33960         * lib/unistdio/u16-sprintf.c: New file.
33961         * lib/unistdio/u16-vasnprintf.c: New file.
33962         * lib/unistdio/u16-vasprintf.c: New file.
33963         * lib/unistdio/u16-vsnprintf.c: New file.
33964         * lib/unistdio/u16-vsprintf.c: New file.
33965         * lib/unistdio/u16-u16-asnprintf.c: New file.
33966         * lib/unistdio/u16-u16-asprintf.c: New file.
33967         * lib/unistdio/u16-u16-snprintf.c: New file.
33968         * lib/unistdio/u16-u16-sprintf.c: New file.
33969         * lib/unistdio/u16-u16-vasnprintf.c: New file.
33970         * lib/unistdio/u16-u16-vasprintf.c: New file.
33971         * lib/unistdio/u16-u16-vsnprintf.c: New file.
33972         * lib/unistdio/u16-u16-vsprintf.c: New file.
33973         * lib/unistdio/u32-asnprintf.c: New file.
33974         * lib/unistdio/u32-asprintf.c: New file.
33975         * lib/unistdio/u32-printf-parse.c: New file.
33976         * lib/unistdio/u32-snprintf.c: New file.
33977         * lib/unistdio/u32-sprintf.c: New file.
33978         * lib/unistdio/u32-vasnprintf.c: New file.
33979         * lib/unistdio/u32-vasprintf.c: New file.
33980         * lib/unistdio/u32-vsnprintf.c: New file.
33981         * lib/unistdio/u32-vsprintf.c: New file.
33982         * lib/unistdio/u32-u32-asnprintf.c: New file.
33983         * lib/unistdio/u32-u32-asprintf.c: New file.
33984         * lib/unistdio/u32-u32-snprintf.c: New file.
33985         * lib/unistdio/u32-u32-sprintf.c: New file.
33986         * lib/unistdio/u32-u32-vasnprintf.c: New file.
33987         * lib/unistdio/u32-u32-vasprintf.c: New file.
33988         * lib/unistdio/u32-u32-vsnprintf.c: New file.
33989         * lib/unistdio/u32-u32-vsprintf.c: New file.
33990         * tests/unistdio/test-ulc-asnprintf1.c: New file.
33991         * tests/unistdio/test-ulc-asnprintf1.h: New file.
33992         * tests/unistdio/test-ulc-printf1.h: New file.
33993         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
33994         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
33995         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
33996         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
33997         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
33998         * tests/unistdio/test-ulc-vasprintf1.c: New file.
33999         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
34000         * tests/unistdio/test-ulc-vsprintf1.c: New file.
34001         * tests/unistdio/test-u8-asnprintf1.c: New file.
34002         * tests/unistdio/test-u8-asnprintf1.h: New file.
34003         * tests/unistdio/test-u8-printf1.h: New file.
34004         * tests/unistdio/test-u8-vasnprintf1.c: New file.
34005         * tests/unistdio/test-u8-vasnprintf2.c: New file.
34006         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
34007         * tests/unistdio/test-u8-vasnprintf3.c: New file.
34008         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
34009         * tests/unistdio/test-u8-vasprintf1.c: New file.
34010         * tests/unistdio/test-u8-vsnprintf1.c: New file.
34011         * tests/unistdio/test-u8-vsprintf1.c: New file.
34012         * tests/unistdio/test-u16-asnprintf1.c: New file.
34013         * tests/unistdio/test-u16-asnprintf1.h: New file.
34014         * tests/unistdio/test-u16-printf1.h: New file.
34015         * tests/unistdio/test-u16-vasnprintf1.c: New file.
34016         * tests/unistdio/test-u16-vasnprintf2.c: New file.
34017         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
34018         * tests/unistdio/test-u16-vasnprintf3.c: New file.
34019         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
34020         * tests/unistdio/test-u16-vasprintf1.c: New file.
34021         * tests/unistdio/test-u16-vsnprintf1.c: New file.
34022         * tests/unistdio/test-u16-vsprintf1.c: New file.
34023         * tests/unistdio/test-u32-asnprintf1.c: New file.
34024         * tests/unistdio/test-u32-asnprintf1.h: New file.
34025         * tests/unistdio/test-u32-printf1.h: New file.
34026         * tests/unistdio/test-u32-vasnprintf1.c: New file.
34027         * tests/unistdio/test-u32-vasnprintf2.c: New file.
34028         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
34029         * tests/unistdio/test-u32-vasnprintf3.c: New file.
34030         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
34031         * tests/unistdio/test-u32-vasprintf1.c: New file.
34032         * tests/unistdio/test-u32-vsnprintf1.c: New file.
34033         * tests/unistdio/test-u32-vsprintf1.c: New file.
34034         * modules/unistdio/base: New file.
34035         * modules/unistdio/u-printf-args: New file.
34036         * modules/unistdio/ulc-asnprintf: New file.
34037         * modules/unistdio/ulc-asprintf: New file.
34038         * modules/unistdio/ulc-fprintf: New file.
34039         * modules/unistdio/ulc-printf-parse: New file.
34040         * modules/unistdio/ulc-snprintf: New file.
34041         * modules/unistdio/ulc-sprintf: New file.
34042         * modules/unistdio/ulc-vasnprintf: New file.
34043         * modules/unistdio/ulc-vasprintf: New file.
34044         * modules/unistdio/ulc-vfprintf: New file.
34045         * modules/unistdio/ulc-vsnprintf: New file.
34046         * modules/unistdio/ulc-vsprintf: New file.
34047         * modules/unistdio/u8-asnprintf: New file.
34048         * modules/unistdio/u8-asprintf: New file.
34049         * modules/unistdio/u8-printf-parse: New file.
34050         * modules/unistdio/u8-snprintf: New file.
34051         * modules/unistdio/u8-sprintf: New file.
34052         * modules/unistdio/u8-vasnprintf: New file.
34053         * modules/unistdio/u8-vasprintf: New file.
34054         * modules/unistdio/u8-vsnprintf: New file.
34055         * modules/unistdio/u8-vsprintf: New file.
34056         * modules/unistdio/u8-u8-asnprintf: New file.
34057         * modules/unistdio/u8-u8-asprintf: New file.
34058         * modules/unistdio/u8-u8-snprintf: New file.
34059         * modules/unistdio/u8-u8-sprintf: New file.
34060         * modules/unistdio/u8-u8-vasnprintf: New file.
34061         * modules/unistdio/u8-u8-vasprintf: New file.
34062         * modules/unistdio/u8-u8-vsnprintf: New file.
34063         * modules/unistdio/u8-u8-vsprintf: New file.
34064         * modules/unistdio/u16-asnprintf: New file.
34065         * modules/unistdio/u16-asprintf: New file.
34066         * modules/unistdio/u16-printf-parse: New file.
34067         * modules/unistdio/u16-snprintf: New file.
34068         * modules/unistdio/u16-sprintf: New file.
34069         * modules/unistdio/u16-vasnprintf: New file.
34070         * modules/unistdio/u16-vasprintf: New file.
34071         * modules/unistdio/u16-vsnprintf: New file.
34072         * modules/unistdio/u16-vsprintf: New file.
34073         * modules/unistdio/u16-u16-asnprintf: New file.
34074         * modules/unistdio/u16-u16-asprintf: New file.
34075         * modules/unistdio/u16-u16-snprintf: New file.
34076         * modules/unistdio/u16-u16-sprintf: New file.
34077         * modules/unistdio/u16-u16-vasnprintf: New file.
34078         * modules/unistdio/u16-u16-vasprintf: New file.
34079         * modules/unistdio/u16-u16-vsnprintf: New file.
34080         * modules/unistdio/u16-u16-vsprintf: New file.
34081         * modules/unistdio/u32-asnprintf: New file.
34082         * modules/unistdio/u32-asprintf: New file.
34083         * modules/unistdio/u32-printf-parse: New file.
34084         * modules/unistdio/u32-snprintf: New file.
34085         * modules/unistdio/u32-sprintf: New file.
34086         * modules/unistdio/u32-vasnprintf: New file.
34087         * modules/unistdio/u32-vasprintf: New file.
34088         * modules/unistdio/u32-vsnprintf: New file.
34089         * modules/unistdio/u32-vsprintf: New file.
34090         * modules/unistdio/u32-u32-asnprintf: New file.
34091         * modules/unistdio/u32-u32-asprintf: New file.
34092         * modules/unistdio/u32-u32-snprintf: New file.
34093         * modules/unistdio/u32-u32-sprintf: New file.
34094         * modules/unistdio/u32-u32-vasnprintf: New file.
34095         * modules/unistdio/u32-u32-vasprintf: New file.
34096         * modules/unistdio/u32-u32-vsnprintf: New file.
34097         * modules/unistdio/u32-u32-vsprintf: New file.
34098         * modules/unistdio/ulc-asnprintf-tests: New file.
34099         * modules/unistdio/ulc-vasnprintf-tests: New file.
34100         * modules/unistdio/ulc-vasprintf-tests: New file.
34101         * modules/unistdio/ulc-vsnprintf-tests: New file.
34102         * modules/unistdio/ulc-vsprintf-tests: New file.
34103         * modules/unistdio/u8-asnprintf-tests: New file.
34104         * modules/unistdio/u8-vasnprintf-tests: New file.
34105         * modules/unistdio/u8-vasprintf-tests: New file.
34106         * modules/unistdio/u8-vsnprintf-tests: New file.
34107         * modules/unistdio/u8-vsprintf-tests: New file.
34108         * modules/unistdio/u16-asnprintf-tests: New file.
34109         * modules/unistdio/u16-vasnprintf-tests: New file.
34110         * modules/unistdio/u16-vasprintf-tests: New file.
34111         * modules/unistdio/u16-vsnprintf-tests: New file.
34112         * modules/unistdio/u16-vsprintf-tests: New file.
34113         * modules/unistdio/u32-asnprintf-tests: New file.
34114         * modules/unistdio/u32-vasnprintf-tests: New file.
34115         * modules/unistdio/u32-vasprintf-tests: New file.
34116         * modules/unistdio/u32-vsnprintf-tests: New file.
34117         * modules/unistdio/u32-vsprintf-tests: New file.
34118         * MODULES.html.sh (Unicode string functions): Add the new modules.
34119
34120 2007-07-01  Bruno Haible  <bruno@clisp.org>
34121
34122         * lib/sprintf.c (sprintf): Limit the available length estimation,
34123         to avoid address wraparound.
34124         * lib/vsprintf.c (vsprintf): Likewise.
34125         * modules/sprintf-posix (Dependencies): Add stdint.
34126         * modules/vsprintf-posix (Dependencies): Likewise.
34127
34128 2007-07-01  Bruno Haible  <bruno@clisp.org>
34129
34130         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
34131         Windows PATH as well. Conservative double-quoting. Comments.
34132
34133 2007-07-01  Bruno Haible  <bruno@clisp.org>
34134             Eric Blake  <ebb9@byu.net>
34135             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34136
34137         * gnulib-tool (self_abspathname): Fix algorithm to cope with
34138         empty components in $PATH, denoting '.'.
34139
34140 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34141
34142         * gnulib-tool: Fix indentation.
34143         (func_create_megatestdir): Likewise.
34144         Report by Bruno Haible.
34145
34146 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34147
34148         Sync from Automake.
34149         * build-aux/gnupload: Fix shell portability issues with for loops.
34150         Report by Karl Berry.
34151
34152 2007-06-29  Simon Josefsson  <simon@josefsson.org>
34153
34154         * build-aux/maint.mk (POURL): Use translationproject.org.
34155
34156 2007-06-27  Simon Josefsson  <simon@josefsson.org>
34157             Bruno Haible  <bruno@clisp.org>
34158
34159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
34160         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
34161         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
34162         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
34163         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
34164
34165 2007-06-27  Bruno Haible  <bruno@clisp.org>
34166
34167         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
34168         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
34169
34170 2007-06-26  Karl Berry  <karl@gnu.org>
34171
34172         * MODULES.html.sh: remove xreadlink-with-size.
34173
34174 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34175
34176         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
34177         method that I hope also handles the double-include problem noted
34178         by Bruno Haible in
34179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
34180
34181 2007-06-23  Bruno Haible  <bruno@clisp.org>
34182
34183         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34184         Don't let the 'mostlyclean' target fail if the last subdirectory could
34185         not be removed.
34186         Reported by Karl Berry.
34187
34188 2007-06-23  Bruno Haible  <bruno@clisp.org>
34189
34190         * gnulib-tool (echo): Add a speedier workaround for ksh.
34191         * tests/test-echo.sh: Likewise.
34192
34193 2007-06-23  Bruno Haible  <bruno@clisp.org>
34194
34195         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
34196         * tests/test-echo.sh: Likewise.
34197
34198 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34199
34200         * gnulib-tool (IFS): Initialize early, so we don't set it to
34201         empty later.
34202         (self_abspathname): Rewrite algorithm to set it, reindent.
34203         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
34204         (func_create_megatestdir): Merge some sed scripts.
34205
34206 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
34207
34208         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
34209         exposed by Sun Studio 11 cc on Solaris 8.
34210
34211 2007-06-22  Bruno Haible  <bruno@clisp.org>
34212
34213         * gnulib-tool (echo): Ensure the echo primitive does not interpret
34214         backslashes.
34215         * tests/test-echo.sh: New file.
34216
34217 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34218
34219         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
34220         simplify `sed_replace_build_aux' scripts, they are portable but
34221         echoing them with `echo' is not.
34222         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
34223
34224 2007-06-21  Karl Berry  <karl@gnu.org>
34225
34226         * config/srclist.txt: guess we can't handle the licenses via
34227         srclist at the moment.
34228
34229 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
34230
34231         * MODULES.html.sh: Add include_next.
34232         * modules/include_next: New file.
34233
34234 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
34235
34236         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
34237         INCLUDE_NEXT.
34238         (gl_CHECK_NEXT_HEADERS): New macro.
34239         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
34240         the obsolescent gl_ABSOLUTE_HEADER.
34241         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
34242         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
34243         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34244         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34245         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34246         * m4/math_h.m4 (gl_MATH_H): Likewise.
34247         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
34248         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34249         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34250         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34251         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34252         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34253         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34255         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34256         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34257         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34258         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
34259         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
34260         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34261         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34262         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34263         * m4/inttypes.m4 (gl_INTTYPES_H): Define
34264         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
34265         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
34266         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
34267         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
34268         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
34269         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
34270         * lib/float_.h: Likewise.
34271         * lib/inttypes_.h: Likewise.
34272         * lib/math_.h: Likewise.
34273         * lib/search_.h: Likewise.
34274         * lib/signal_.h: Likewise.
34275         * lib/stdint_.h: Likewise.
34276         * lib/stdio_.h: Likewise.
34277         * lib/stdlib_.h: Likewise.
34278         * lib/string_.h: Likewise.
34279         * lib/sys_stat_.h: Likewise.
34280         * lib/sys_time_.h: Likewise.
34281         * lib/time_.h: Likewise.
34282         * lib/unistd_.h: Likewise.
34283         * lib/wchar_.h: Likewise.
34284         * lib/wctype_.h: Likewise.
34285         * lib/dirent_.h: Likewise.
34286         * lib/iconv_.h: Likewise.
34287         * lib/locale_.h: Likewise.
34288         * lib/netinet_in_.h: Likewise.
34289         * lib/sys_select_.h: Likewise.
34290         * lib/sys_socket_.h: Likewise.
34291         * lib/sysexits_.h: Likewise.
34292         * modules/fcntl (Depends-on): Depend on include_next, not
34293         absolute_header.
34294         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
34295         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
34296         * modules/fchdir: Likewise.
34297         * modules/float: Likewise.
34298         * modules/iconv_open: Likewise.
34299         * modules/inttypes: Likewise.
34300         * modules/locale: Likewise.
34301         * modules/math: Likewise.
34302         * modules/netinet_in: Likewise.
34303         * modules/search: Likewise.
34304         * modules/signal: Likewise.
34305         * modules/stdint: Likewise.
34306         * modules/stdio: Likewise.
34307         * modules/stdlib: Likewise.
34308         * modules/string: Likewise.
34309         * modules/sys_select: Likewise.
34310         * modules/sys_socket: Likewise.
34311         * modules/sys_stat: Likewise.
34312         * modules/sys_time: Likewise.
34313         * modules/sysexits: Likewise.
34314         * modules/time: Likewise.
34315         * modules/unistd: Likewise.
34316         * modules/wchar: Likewise.
34317         * modules/wctype: Likewise.
34318         * modules/sys_stat: Change maintainer to "all".
34319         * modules/unistd: Likewise.
34320
34321 2007-06-20  Karl Berry  <karl@gnu.org>
34322
34323         * config/srclist.txt: track www changes in license files.
34324
34325 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
34326
34327         * build-aux/bootstrap: Remove stray dot.
34328         Make sure build_aux settings are honored when linking
34329         gnulib_extra_files.
34330
34331 2007-06-19  Eric Blake  <ebb9@byu.net>
34332
34333         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
34334         Allow compilation on cygwin.
34335
34336 2007-06-19  Jim Meyering  <jim@meyering.net>
34337
34338         xreadlink-with-size: Remove module.  No longer used.
34339         Ex-callers now use xreadlink or mreadlink-with-size.
34340         * modules/xreadlink-with-size: Remove module.
34341         * lib/xreadlink-with-size.c: Remove file.
34342         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
34343         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
34344         just before the function definition *is* accurate.
34345
34346         Eliminate one way canonicalize_filename_mode could exit.
34347         * lib/canonicalize.c (canonicalize_filename_mode):
34348         Use mreadlink_with_size, not xreadlink_with_size.
34349
34350 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
34351
34352         Detect porting problems to FreeBSD/arm, which has time_t wider than
34353         long int.  Original problem reported for GNU diff by Xin Li in
34354         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
34355         * modules/getdate (Depends-on): Add intprops, verify.
34356         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
34357         is an integer type no wider than long int.
34358
34359 2007-06-18  Jim Meyering  <jim@meyering.net>
34360
34361         New module: mreadlink-with-size.
34362         * MODULES.html.sh: Add mreadlink-with-size.
34363         * modules/mreadlink-with-size: New module
34364         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
34365         not xreadlink-with-size.
34366         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
34367
34368 2007-06-16  Bruno Haible  <bruno@clisp.org>
34369
34370         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
34371         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
34372         Reported by Gary V. Vaughan <gary@gnu.org>.
34373
34374 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
34375
34376         Revamp lchown so that it lives in unistd.h where it belongs.
34377         * lib/lchown.h: Remove.
34378         * lib/dirchownmod.c: Don't include lib/lchown.h.
34379         * lib/fchownat.c: Likewise.
34380         * lib/openat.c: Likewise.
34381         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
34382         does not follow symlinks.
34383         (EOPNOTSUPP): Define if not defined.
34384         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
34385         is defined to 0.
34386         (lchown): New decl.
34387         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
34388         Do not check for lchown decl.
34389         Set REPLACE_LCHOWN.
34390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
34391         REPLACE_LCHOWN.
34392         * modules/chown: Make it clear it follows symlinks.
34393         * modules/lchown: Make it clear it doesn't follow symlinks.
34394         (Files): Remove lib/lchown.h
34395         (Depends-on): Add unistd.
34396         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
34397         (Include): Include <unistd.h>, not "lchown.h".
34398         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
34399         REPLACE_LCHOWN.
34400
34401 2007-06-15  Jim Meyering  <jim@meyering.net>
34402
34403         Change license (GPL to LGPL) of fsusage and dependents.
34404         * modules/fsusage (License): Change to LGPL.
34405         * modules/full-read (License): Likewise.
34406         * modules/full-write (License): Likewise.
34407         * modules/safe-read (License): Likewise.
34408         * modules/safe-write (License): Likewise.
34409
34410 2007-06-14  Ben Pfaff  <blp@gnu.org>
34411
34412         Missing part of allocsa -> malloca transition.
34413         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
34414         gl_MALLOCA.
34415
34416 2007-06-12  Bruno Haible  <bruno@clisp.org>
34417
34418         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
34419         to ia64, x86_64, i386.
34420         Reported by Eric Blake.
34421
34422 2007-06-12  Bruno Haible  <bruno@clisp.org>
34423
34424         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
34425         cross-compiling to x86_64.
34426
34427 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
34428
34429         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
34430         glitch reported by Ralf Wildenhues in
34431         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
34432
34433         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
34434         Vin Shelton.
34435
34436 2007-06-11  Bruno Haible  <bruno@clisp.org>
34437
34438         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
34439         replacement string.
34440         Reported by Eric Blake.
34441
34442 2007-06-10  Bruno Haible  <bruno@clisp.org>
34443
34444         Prepare vasnprintf code for use with Unicode strings.
34445         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
34446         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
34447         TYPE_U32_STRING.
34448         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
34449         a_u32_string variants.
34450         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34451         * lib/printf-args.c: Don't include config.h and the specification
34452         header if PRINTF_FETCHARGS is already defined.
34453         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
34454         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
34455         TYPE_U16_STRING, TYPE_U32_STRING.
34456         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
34457         u16_directive, u16_directives, u32_directive, u32_directives): New
34458         types.
34459         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
34460         New declarations.
34461         * lib/printf-parse.c: Don't include config.h and the specification
34462         header if PRINTF_PARSE is already defined. Eliminate the set of
34463         parameters for WIDE_CHAR_VERSION; the user of this file must provide
34464         them now. Include c-ctype.h.
34465         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
34466         directive and CHAR_T_ONLY_ASCII.
34467         * lib/vasnprintf.c: Don't include config.h and the specification header
34468         if VASNPRINTF is already defined.
34469         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
34470         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
34471         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
34472         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
34473         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
34474         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
34475         code accordingly.
34476         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
34477         pad_ourselves also in this case, with the 'c' and 's' directives, and
34478         with a different notion of "width".
34479         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
34480
34481 2007-06-10  Bruno Haible  <bruno@clisp.org>
34482
34483         * modules/unistr/u32-mbsnlen: New file.
34484         * lib/unistr/u32-mbsnlen.c: New file.
34485
34486         * modules/unistr/u16-mbsnlen: New file.
34487         * lib/unistr/u16-mbsnlen.c: New file.
34488
34489         * modules/unistr/u8-mbsnlen: New file.
34490         * lib/unistr/u8-mbsnlen.c: New file.
34491
34492         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
34493         declarations.
34494
34495 2007-06-10  Bruno Haible  <bruno@clisp.org>
34496
34497         * lib/string_.h (mbsnlen): New declaration.
34498         * lib/mbsnlen.c: New file.
34499         * m4/mbsnlen.m4: New file.
34500         * modules/mbsnlen: New file.
34501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
34502         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
34503         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
34504
34505 2007-06-10  Bruno Haible  <bruno@clisp.org>
34506
34507         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
34508
34509 2007-06-10  Bruno Haible  <bruno@clisp.org>
34510
34511         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
34512         * lib/mbuiter.h: Likewise.
34513
34514 2007-06-10  Bruno Haible  <bruno@clisp.org>
34515
34516         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
34517         declaration.
34518
34519 2007-06-10  Karl Berry  <karl@gnu.org>
34520
34521         * config/srclist.txt: remove gettext entries, Bruno prefers
34522         to update individually.
34523
34524 2007-06-10  Bruno Haible  <bruno@clisp.org>
34525
34526         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
34527         'maxlen'. Ensure only length + width bytes are allocated, not
34528         length + 1 + width.
34529
34530 2007-06-09  Bruno Haible  <bruno@clisp.org>
34531
34532         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
34533         (CHAR_T): Remove macro.
34534         (VASNPRINTF): Update.
34535
34536 2007-06-09  Bruno Haible  <bruno@clisp.org>
34537
34538         * MODULES.html.sh (Unicode string functions): Add the new modules.
34539
34540         * modules/uniconv/u32-conv-to-enc: New file.
34541         * lib/uniconv/u32-conv-to-enc.c: New file.
34542         * modules/uniconv/u32-conv-to-enc-tests: New file.
34543         * tests/uniconv/test-u32-conv-to-enc.c: New file.
34544
34545         * modules/uniconv/u16-conv-to-enc: New file.
34546         * lib/uniconv/u16-conv-to-enc.c: New file.
34547         * lib/uniconv/u-conv-to-enc.h: New file.
34548         * modules/uniconv/u16-conv-to-enc-tests: New file.
34549         * tests/uniconv/test-u16-conv-to-enc.c: New file.
34550
34551         * modules/uniconv/u8-conv-to-enc: New file.
34552         * lib/uniconv/u8-conv-to-enc.c: New file.
34553         * modules/uniconv/u8-conv-to-enc-tests: New file.
34554         * tests/uniconv/test-u8-conv-to-enc.c: New file.
34555
34556         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34557         u32_conv_to_encoding): New declarations.
34558
34559 2007-06-09  Bruno Haible  <bruno@clisp.org>
34560
34561         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
34562
34563 2007-06-09  Bruno Haible  <bruno@clisp.org>
34564
34565         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
34566         * modules/malloca: Renamed from modules/allocsa, updated.
34567         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
34568         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
34569         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
34570         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
34571         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
34572         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
34573         * modules/xmalloca: Renamed from modules/xallocsa, updated.
34574         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
34575         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
34576         * modules/c-strcasestr (Depends-on): Update.
34577         * lib/c-strcasestr.c: Update.
34578         * modules/c-strstr (Depends-on): Update.
34579         * lib/c-strstr.c: Update.
34580         * modules/canonicalize-lgpl (Depends-on): Update.
34581         * lib/canonicalize-lgpl.c: Update.
34582         * modules/clean-temp (Depends-on): Update.
34583         * lib/clean-temp.c: Update.
34584         * modules/csharpcomp (Depends-on): Update.
34585         * lib/csharpcomp.c: Update.
34586         * modules/csharpexec (Depends-on): Update.
34587         * lib/csharpexec.c: Update.
34588         * modules/javacomp (Depends-on): Update.
34589         * lib/javacomp.c: Update.
34590         * modules/javaexec (Depends-on): Update.
34591         * lib/javaexec.c: Update.
34592         * modules/mbscasestr (Depends-on): Update.
34593         * lib/mbscasestr.c: Update.
34594         * modules/mbsstr (Depends-on): Update.
34595         * lib/mbsstr.c: Update.
34596         * modules/setenv (Depends-on): Update.
34597         * lib/setenv.c: Update.
34598         * modules/strcasestr (Depends-on): Update.
34599         * lib/strcasestr.c: Update.
34600         * modules/striconveha (Depends-on): Update.
34601         * lib/striconveha.c: Update.
34602         * modules/relocatable-prog-wrapper (Files): Update.
34603         * lib/relocwrapper.c: Update.
34604         * build-aux/install-reloc: Update.
34605         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
34606
34607 2007-06-08  Bruno Haible  <bruno@clisp.org>
34608
34609         Port to uClibc.
34610         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
34611         * lib/fpurge.c (fpurge): Likewise.
34612         * lib/freading.c (freading): Likewise.
34613         * lib/fseeko.c (rpl_fseeko): Likewise.
34614         * lib/fseterr.c (fseterr): Likewise.
34615         * lib/fwriting.c (fwriting): Likewise.
34616         * tests/test-fflush.c (main): Avoid a failure on uClibc.
34617
34618 2007-06-08  Bruno Haible  <bruno@clisp.org>
34619
34620         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
34621         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
34622         * modules/gettext (Files): Add m4/intlmacosx.m4.
34623
34624 2007-06-07  Bruno Haible  <bruno@clisp.org>
34625
34626         * modules/localename-tests: New file.
34627         * tests/test-localename.c: New file.
34628
34629         New module 'localename'.
34630         * lib/localename.h: New file.
34631         * lib/localename.c: New file, from GNU gettext.
34632         * m4/localename.m4: New file.
34633         * modules/localename: New file.
34634
34635 2007-06-07  Bruno Haible  <bruno@clisp.org>
34636
34637         Work around the lack of <wchar.h> on some builds of uClibc.
34638         * doc/headers/wchar.texi: Update.
34639         * lib/wchar_.h: Include <wchar.h> only if it exists.
34640         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
34641         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
34642         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
34643         doesn't exist.
34644         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
34645         * modules/mbfile (Depends-on): Add wchar.
34646         * modules/mbiter (Depends-on): Likewise.
34647         * modules/mbuiter (Depends-on): Likewise.
34648         Reported by Simon Josefsson.
34649
34650 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
34651
34652         Work around problem reported by Steven M. Schweda in
34653         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
34654         Tru64 5.1B with the Compaq compiler environment installed declares
34655         an 'isblank' function but does not define it in the C library.
34656         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
34657         * lib/regex_internal.h (isblank): Likewise.
34658         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
34659         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34660
34661 2007-06-05  Bruno Haible  <bruno@clisp.org>
34662
34663         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
34664         ia64.
34665         * modules/printf-safe: New file.
34666         * modules/fprintf-posix (Depends-on): Add printf-safe.
34667         * modules/printf-posix (Depends-on): Likewise.
34668         * modules/snprintf-posix (Depends-on): Likewise.
34669         * modules/sprintf-posix (Depends-on): Likewise.
34670         * modules/vasnprintf-posix (Depends-on): Likewise.
34671         * modules/vasprintf-posix (Depends-on): Likewise.
34672         * modules/vfprintf-posix (Depends-on): Likewise.
34673         * modules/vprintf-posix (Depends-on): Likewise.
34674         * modules/vsnprintf-posix (Depends-on): Likewise.
34675         * modules/vsprintf-posix (Depends-on): Likewise.
34676         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
34677         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
34678         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
34679         "no" on i386, x86_64, ia64.
34680         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
34681         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34682         on i386, x86_64, ia64.
34683         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
34684         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34685         on i386, x86_64, ia64.
34686         * tests/test-vasnprintf-posix.c: Include float.h.
34687         (LDBL80_WORDS): New macro.
34688         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34689         on i386, x86_64, ia64.
34690         * tests/test-vasprintf-posix.c: Include float.h.
34691         (LDBL80_WORDS): New macro.
34692         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
34693         on i386, x86_64, ia64.
34694         * tests/test-snprintf-posix.c: Include float.h.
34695         * tests/test-sprintf-posix.c: Likewise.
34696         * tests/test-vsnprintf-posix.c: Likewise.
34697         * tests/test-vsprintf-posix.c: Likewise.
34698
34699 2007-06-05  Bruno Haible  <bruno@clisp.org>
34700
34701         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
34702         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
34703         non-IEEE numbers on i386, x86_64, ia64.
34704         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
34705         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
34706         * tests/test-isnanl.h: Include float.h.
34707         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
34708
34709 2007-06-05  Bruno Haible  <bruno@clisp.org>
34710
34711         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
34712         also the %a / %A. Handle the %a / %A code before this extra handling.
34713
34714 2007-06-05  Bruno Haible  <bruno@clisp.org>
34715
34716         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
34717         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
34718
34719 2007-06-05  Bruno Haible  <bruno@clisp.org>
34720
34721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
34722         typo in variable name.
34723
34724 2007-06-05  Eric Blake  <ebb9@byu.net>
34725
34726         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
34727         Reported by Simon Josefsson.
34728
34729 2007-06-04  Bruno Haible  <bruno@clisp.org>
34730
34731         Avoid test failures on some PowerPC platforms.
34732         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
34733         Define differently for PowerPC.
34734         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
34735         Reported by Gary V. Vaughan <gary@gnu.org>.
34736
34737 2007-06-02  Bruno Haible  <bruno@clisp.org>
34738
34739         Fix test-stdint failure on FreeBSD/ia64.
34740         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
34741         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
34742         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
34743         * doc/headers/stdint.texi: Update.
34744
34745 2007-06-01  Bruno Haible  <bruno@clisp.org>
34746
34747         * tests/test-binary-io.c (main): Pass a third argument to open().
34748         Reported by Gary V. Vaughan <gary@gnu.org>.
34749
34750 2007-06-01  Bruno Haible  <bruno@clisp.org>
34751
34752         * doc/functions/frexpl.texi: Update for mingw.
34753
34754 2007-06-01  Bruno Haible  <bruno@clisp.org>
34755
34756         * tests/test-lseek.c (main): Disable test of errno for invalid third
34757         argument.
34758         * doc/functions/lseek.texi: Update.
34759         Reported by Gary V. Vaughan <gary@gnu.org>.
34760
34761 2007-05-28  Bruno Haible  <bruno@clisp.org>
34762
34763         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
34764
34765 2007-05-31  Eric Blake  <ebb9@byu.net>
34766
34767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
34768         cross compiling.
34769
34770 2007-05-30  Eric Blake  <ebb9@byu.net>
34771         and Bruno Haible  <bruno@clisp.org>
34772
34773         Work around mingw test failures exposed by m4-1.4.9b.
34774         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
34775         * tests/test-unistd.c: Disable uid_t and git_t tests for the
34776         moment.
34777
34778 2007-05-30  Bruno Haible  <bruno@clisp.org>
34779
34780         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
34781         assuming that they are closed. Needed on HP-UX 11.
34782
34783 2007-05-29  Bruno Haible  <bruno@clisp.org>
34784
34785         Fix a problem with #include_next.
34786         * lib/dirent_.h: Split the double-inclusion guard.
34787         * lib/fcntl_.h: Likewise.
34788         * lib/float_.h: Likewise.
34789         * lib/iconv_.h: Likewise.
34790         * lib/inttypes_.h: Likewise.
34791         * lib/locale_.h: Likewise.
34792         * lib/math_.h: Likewise.
34793         * lib/netinet_in_.h: Likewise.
34794         * lib/search_.h: Likewise.
34795         * lib/signal_.h: Likewise.
34796         * lib/stdint_.h: Likewise.
34797         * lib/stdio_.h: Likewise.
34798         * lib/stdlib_.h: Likewise.
34799         * lib/string_.h: Likewise.
34800         * lib/sys_select_.h: Likewise.
34801         * lib/sys_socket_.h: Likewise.
34802         * lib/sys_stat_.h: Likewise.
34803         * lib/sys_time_.h: Likewise.
34804         * lib/sysexits_.h: Likewise.
34805         * lib/time_.h: Likewise.
34806         * lib/unistd_.h: Likewise.
34807         * lib/wchar_.h: Likewise.
34808         * lib/wctype_.h: Likewise.
34809
34810 2007-05-29  Bruno Haible  <bruno@clisp.org>
34811
34812         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
34813         for the moment.
34814
34815 2007-05-29  Bruno Haible  <bruno@clisp.org>
34816
34817         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
34818         invocation.
34819         Reported by Eric Blake.
34820
34821 2007-05-29  Bruno Haible  <bruno@clisp.org>
34822
34823         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
34824         compiling case.
34825
34826 2007-05-29  Eric Blake  <ebb9@byu.net>
34827             Bruno Haible  <bruno@clisp.org>
34828
34829         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
34830         cross compiles.
34831
34832 2007-05-28  Eric Blake  <ebb9@byu.net>
34833
34834         * modules/closein-tests (test_closein_LDADD): Support test on
34835         cygwin with libtool.
34836
34837 2007-05-28  Bruno Haible  <bruno@clisp.org>
34838
34839         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
34840         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34841         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34842         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34843         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34844         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34845         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34846         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34847         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34848
34849 2007-05-28  Eric Blake  <ebb9@byu.net>
34850
34851         Unconditionally include <config.h> in unit tests.
34852         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
34853         * tests/test-allocsa.c, tests/test-arcfour.c,
34854         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
34855         tests/test-array_list.c, tests/test-array_oset.c,
34856         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
34857         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
34858         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
34859         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
34860         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
34861         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
34862         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
34863         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
34864         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
34865         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
34866         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
34867         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
34868         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
34869         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
34870         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
34871         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
34872         test-md5.c, test-memmem.c, test-printf-posix.c,
34873         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
34874         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
34875         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
34876         test-strcasestr.c, test-striconv.c, test-striconveh.c,
34877         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
34878         test-vasnprintf-posix2.c, test-vasnprintf.c,
34879         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
34880         test-vfprintf-posix.c, test-vprintf-posix.c,
34881         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
34882         test-xvasprintf.c: Likewise.
34883
34884 2007-05-28  Bruno Haible  <bruno@clisp.org>
34885
34886         * gnulib-tool (func_import): Remember the --with-tests command-line
34887         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
34888         Reported by Eric Blake.
34889
34890 2007-05-28  Bruno Haible  <bruno@clisp.org>
34891
34892         * modules/ftell-tests: New file.
34893         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
34894         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
34895
34896         * lib/ftell.c: New file.
34897         * modules/ftell: New file.
34898         * m4/ftell.m4: New file.
34899         * doc/functions/ftell.texi: Update.
34900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
34901         REPLACE_FTELL.
34902         * lib/stdio_.h (rpl_ftell): New declaration.
34903         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
34904         REPLACE_FTELL.
34905
34906 2007-05-28  Eric Blake  <ebb9@byu.net>
34907
34908         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
34909
34910 2007-05-28  Bruno Haible  <bruno@clisp.org>
34911
34912         * modules/fseek-tests: New file.
34913         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
34914         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
34915
34916         * lib/fseek.c: New file.
34917         * modules/fseek: New file.
34918         * m4/fseek.m4: New file.
34919         * doc/functions/fseek.texi: Update.
34920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
34921         REPLACE_FSEEK.
34922         * lib/stdio_.h (rpl_fseek): New declaration.
34923         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
34924         REPLACE_FSEEK.
34925
34926 2007-05-28  Bruno Haible  <bruno@clisp.org>
34927
34928         * lib/stdio_.h (fflush): More comments.
34929
34930 2007-05-28  Bruno Haible  <bruno@clisp.org>
34931
34932         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
34933         runtime test.
34934
34935 2007-05-28  Eric Blake  <ebb9@byu.net>
34936
34937         Improve lseek module.
34938         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
34939         * lib/unistd_.h (lseek): Scale back link warning message.
34940         * tests/test-lseek.c: Beef up test.
34941         * tests/test-lseek.sh: Exercise more facets of lseek.
34942         Reported by Bruno Haible.
34943
34944 2007-05-28  Bruno Haible  <bruno@clisp.org>
34945
34946         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
34947         to define.
34948
34949 2007-05-27  Bruno Haible  <bruno@clisp.org>
34950
34951         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
34952
34953 2007-05-27  Bruno Haible  <bruno@clisp.org>
34954
34955         * modules/openmp: New file.
34956         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
34957         Noah Misch.
34958
34959 2007-05-26  Bruno Haible  <bruno@clisp.org>
34960
34961         * modules/chdir-long (Depends-on): Add fchdir.
34962         * modules/chdir-safer (Depends-on): Likewise.
34963         * modules/fts (Depends-on): Likewise.
34964         * modules/fts-lgpl (Depends-on): Likewise.
34965         * modules/openat (Depends-on): Likewise.
34966         * modules/savewd (Depends-on): Likewise.
34967
34968 2007-05-24  Eric Blake  <ebb9@byu.net>
34969
34970         Fix lseek on mingw.
34971         * modules/lseek: New module.
34972         * m4/lseek.m4: New file.
34973         * lib/lseek.c: New file.
34974         * modules/lseek-tests: New file.
34975         * tests/test-lseek.c: New file.
34976         * tests/test-lseek.sh: New file.
34977         * MODULES.html.sh: Document lseek module.
34978         * modules/fflush (Depends-on): Add lseek, fseeko.
34979         * modules/fseeko (Depends-on): Likewise.
34980         * modules/ftello (Depends-on): Likewise.
34981         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
34982         broken.
34983         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
34984         broken.
34985         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
34986         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
34987         * lib/ftello.c (rpl_ftello): Likewise.
34988         * tests/test-fseeko.c (main): Test this.
34989         * tests/test-fseeko.sh: Likewise.
34990         * tests/test-ftello.c (main): Likewise.
34991         * tests/test-ftello.sh: Likewise.
34992         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
34993         implies replacing fseek.
34994         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
34995         HAVE_FTELLO.
34996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
34997         * modules/unistd (Makefile.am): Likewise.
34998         * lib/unistd_.h (lseek): Declare a replacement.
34999         * doc/functions/lseek.texi (lseek): Document this fix.
35000         * doc/functions/fseek.texi (fseek): Likewise.
35001         * doc/functions/ftell.texi (ftell): Likewise.
35002
35003 2007-05-24  Bruno Haible  <bruno@clisp.org>
35004
35005         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
35006         in the printed representation of a NaN.
35007         * tests/test-vasprintf-posix.c (test_function): Likewise.
35008         * tests/test-snprintf-posix.h (test_function): Likewise.
35009         * tests/test-sprintf-posix.h (test_function): Likewise.
35010         Reported by Eric Blake.
35011
35012 2007-05-23  Eric Blake  <ebb9@byu.net>
35013
35014         Fix fseeko/ftello on cygwin 1.5.24.
35015         * doc/functions/fseeko.texi (fseeko): Document the fix.
35016         * doc/functions/ftello.texi (ftello): Document the fix.
35017         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
35018         * doc/functions/stdout.text (stdout): New file.
35019         * doc/functions/stderr.text (stderr): New file.
35020         * doc/gnulib.texi (Function Substitutes): Use new files.
35021         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
35022         prior to 1.7.0.
35023         * tests/test-ftello.c (main): Likewise for ftello.
35024         * tests/test-fseeko.sh: New file.
35025         * tests/test-ftello.sh: New file.
35026         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
35027         with seekable stdin.
35028         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
35029         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
35030         (gl_REPLACE_FSEEKO): New macro.
35031         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
35032         * modules/fseeko (Files): Distribute fseeko.c.
35033         * modules/ftello (Files): Distribute ftello.c.
35034         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
35035         mode.
35036         * lib/ftello.c (rpl_ftello): New file.
35037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
35038         fseeko, ftello.
35039         (gl_STDIN_LARGE_OFFSET): New macro.
35040         * modules/stdio (Makefile.am): Perform the replacement.
35041         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
35042
35043 2007-05-23  Bruno Haible  <bruno@clisp.org>
35044
35045         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
35046         GNULIB_POSIXCHECK is defined.
35047
35048 2007-05-21  Bruno Haible  <bruno@clisp.org>
35049
35050         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
35051         Check also the output for NaN arguments. When cross-compiling, guess
35052         no on IRIX.
35053         * lib/vasnprintf.c: Update comments.
35054         * tests/test-vasnprintf-posix.c (strisnan): New function.
35055         (test_function): Use it.
35056         * tests/test-vasprintf-posix.c (strisnan): New function.
35057         (test_function): Use it.
35058         * tests/test-snprintf-posix.h (strisnan): New function.
35059         (test_function): Use it.
35060         * tests/test-sprintf-posix.h (strisnan): New function.
35061         (test_function): Use it.
35062         Reported by Eric Blake.
35063
35064 2007-05-20  Bruno Haible  <bruno@clisp.org>
35065
35066         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
35067         numbers that fails on BeOS.
35068         * doc/functions/frexpl.texi: Update.
35069
35070 2007-05-20  Jim Meyering  <jim@meyering.net>
35071
35072         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
35073         forced upon us by glibc-2.6.
35074
35075 2007-05-20  Bruno Haible  <bruno@clisp.org>
35076
35077         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
35078         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
35079         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
35080         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
35081         NEED_PRINTF_INFINITE.
35082         (is_infinitel): New function.
35083         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
35084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
35085         gl_PREREQ_VASNPRINTF_INFINITE.
35086         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
35087         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35088         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
35089         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
35090         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
35091         gl_PREREQ_VASNPRINTF_INFINITE.
35092         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35093         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35095         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35096         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35098         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35099         * doc/functions/fprintf.texi: Update.
35100         * doc/functions/printf.texi: Update.
35101         * doc/functions/snprintf.texi: Update.
35102         * doc/functions/sprintf.texi: Update.
35103         * doc/functions/vfprintf.texi: Update.
35104         * doc/functions/vprintf.texi: Update.
35105         * doc/functions/vsnprintf.texi: Update.
35106         * doc/functions/vsprintf.texi: Update.
35107
35108 2007-05-20  Bruno Haible  <bruno@clisp.org>
35109
35110         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
35111         was not found in libc.
35112         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
35113
35114 2007-05-20  Bruno Haible  <bruno@clisp.org>
35115
35116         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35117         printed as "-nan" instead of "nan".
35118         * tests/test-vasprintf-posix.c (test_function): Likewise.
35119         * tests/test-snprintf-posix.h (test_function): Likewise.
35120         * tests/test-sprintf-posix.h (test_function): Likewise.
35121         Needed for HP-UX 11.
35122
35123 2007-05-20  Jim Meyering  <jim@meyering.net>
35124
35125         Fix buggy test for the fchownat-deref bug.
35126         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
35127         symlink required for the run-test.  Without it, this test would
35128         always declare that fchownat doesn't work, and client code would
35129         unnecessarily use the replacement function with fixed libc.
35130         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
35131         Reported by Greg Schafer.
35132
35133 2007-05-19  Bruno Haible  <bruno@clisp.org>
35134
35135         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
35136         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
35137         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
35138         Needed for IRIX 6.5 and Solaris 2.5.1.
35139
35140 2007-05-19  Bruno Haible  <bruno@clisp.org>
35141
35142         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
35143         (test_function): Skip tests involving -0.0 on platforms where
35144         -0.0 = 0.0.
35145         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
35146         (test_function): Skip tests involving -0.0 on platforms where
35147         -0.0 = 0.0.
35148         * tests/test-snprintf-posix.h (have_minus_zero): New function.
35149         (test_function): Skip tests involving -0.0 on platforms where
35150         -0.0 = 0.0.
35151         * tests/test-sprintf-posix.h (have_minus_zero): New function.
35152         (test_function): Skip tests involving -0.0 on platforms where
35153         -0.0 = 0.0.
35154         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
35155         tests.
35156         * tests/test-printf-posix.h (test_function): Likewise.
35157         * tests/test-printf-posix.output: Remove all -0.0 related results.
35158         Needed for IRIX 6.5.
35159
35160 2007-05-19  Bruno Haible  <bruno@clisp.org>
35161
35162         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
35163         printed as "nan0x7fffffff" instead of "nan".
35164         * tests/test-vasprintf-posix.c (test_function): Likewise.
35165         * tests/test-snprintf-posix.h (test_function): Likewise.
35166         * tests/test-sprintf-posix.h (test_function): Likewise.
35167         * tests/test-fprintf-posix.h (NaN): Remove macro.
35168         (test_function): Remove all NaN related tests.
35169         * tests/test-printf-posix.h (NaN): Remove macro.
35170         (test_function): Remove all NaN related tests.
35171         * tests/test-printf-posix.output: Remove all NaN related results.
35172         Needed for IRIX 6.5.
35173
35174 2007-05-19  Bruno Haible  <bruno@clisp.org>
35175
35176         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
35177         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
35178
35179 2007-05-19  Bruno Haible  <bruno@clisp.org>
35180
35181         * lib/float_.h: New file.
35182         * m4/float_h.m4: New file.
35183         * modules/float: New file.
35184         * modules/isnanl (Dependencies): Add float.
35185         * modules/isnanl-nolibm (Dependencies): Likewise.
35186         * modules/mathl (Dependencies): Likewise.
35187         * modules/printf-frexpl (Dependencies): Likewise.
35188         * modules/signbit (Dependencies): Likewise.
35189         * modules/vasnprintf (Dependencies): Likewise.
35190         * doc/headers/float.texi: Update.
35191
35192 2007-05-19  Jim Meyering  <jim@meyering.net>
35193
35194         * lib/utimens.c (gl_futimens): Rename from futimens,
35195         now that glibc-2.6 declares futimens.
35196         * lib/utimens.h: Likewise.
35197
35198 2007-05-19  Bruno Haible  <bruno@clisp.org>
35199
35200         Avoid test failures on mingw.
35201         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
35202         * tests/test-printf-posix.sh: Likewise.
35203         * tests/test-vfprintf-posix.sh: Likewise.
35204         * tests/test-vprintf-posix.sh: Likewise.
35205
35206 2007-05-19  Bruno Haible  <bruno@clisp.org>
35207
35208         Fix *printf result for NaN, Inf, -0.0 on mingw.
35209         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
35210         * lib/vasnprintf.c: Include math.h and isnan.h.
35211         (is_infinite_or_zero): New function.
35212         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
35213         values in the %f, %F, %e, %E, %g, %G directives.
35214         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
35215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35216         gl_PRINTF_INFINITE and test its result. Invoke
35217         gl_PREREQ_VASNPRINTF_INFINITE.
35218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35223         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35225         * doc/functions/fprintf.texi: Update.
35226         * doc/functions/printf.texi: Update.
35227         * doc/functions/snprintf.texi: Update.
35228         * doc/functions/sprintf.texi: Update.
35229         * doc/functions/vfprintf.texi: Update.
35230         * doc/functions/vprintf.texi: Update.
35231         * doc/functions/vsnprintf.texi: Update.
35232         * doc/functions/vsprintf.texi: Update.
35233
35234 2007-05-19  Bruno Haible  <bruno@clisp.org>
35235
35236         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
35237         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
35238         Instead of multiplying with 10^k, set extra_zeroes to k.
35239         (scale10_round_long_double): Remove function.
35240
35241 2007-05-18  Bruno Haible  <bruno@clisp.org>
35242
35243         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
35244         introduced on 2007-05-06.
35245
35246 2007-05-18  Bruno Haible  <bruno@clisp.org>
35247
35248         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
35249         %g directives.
35250         * tests/test-vasprintf-posix.c (test_function): Likewise.
35251         * tests/test-snprintf-posix.h (test_function): Likewise.
35252         * tests/test-sprintf-posix.h (test_function): Likewise.
35253
35254 2007-05-18  Bruno Haible  <bruno@clisp.org>
35255
35256         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
35257         (strmatch): New function.
35258         (test_function): Test the %f directive on numbers of various exponents.
35259         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
35260         (strmatch): New function.
35261         (test_function): Test the %f directive on numbers of various exponents.
35262         * tests/test-snprintf-posix.h (strmatch): New function.
35263         (test_function): Test the %f directive on numbers of various exponents.
35264         * tests/test-sprintf-posix.h (strmatch): New function.
35265         (test_function): Test the %f directive on numbers of various exponents.
35266         * tests/test-snprintf-posix.c (SIZEOF): New macro.
35267         * tests/test-sprintf-posix.c (SIZEOF): New macro.
35268         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
35269         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
35270
35271 2007-05-18  Bruno Haible  <bruno@clisp.org>
35272
35273         Add support for 'long double' number output.
35274         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
35275         * lib/vasnprintf.c: Include math.h and float+.h.
35276         (mp_limb_t): New type.
35277         (GMP_LIMB_BITS): New macro.
35278         (mp_twolimb_t): New type.
35279         (GMP_TWOLIMB_BITS): New macro.
35280         (mpn_t): New type.
35281         (multiply, divide, convert_to_decimal, decode_long_double,
35282         scale10_round_long_double, scale10_round_decimal_long_double,
35283         floorlog10l): New functions.
35284         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
35285         for the %f, %F, %e, %E, %g, %G directives.
35286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
35287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35288         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
35289         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
35290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35291         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35292         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35293         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35294         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35296         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35297         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
35298         * modules/snprintf-posix (Depends-on): Likewise.
35299         * modules/sprintf-posix (Depends-on): Likewise.
35300         * modules/vasnprintf-posix (Depends-on): Likewise.
35301         * modules/vasprintf-posix (Depends-on): Likewise.
35302         * modules/vfprintf-posix (Depends-on): Likewise.
35303         * modules/vsnprintf-posix (Depends-on): Likewise.
35304         * modules/vsprintf-posix (Depends-on): Likewise.
35305         * modules/vasnprintf (Files): Add lib/float+.h.
35306         * doc/functions/fprintf.texi: Update.
35307         * doc/functions/printf.texi: Update.
35308         * doc/functions/snprintf.texi: Update.
35309         * doc/functions/sprintf.texi: Update.
35310         * doc/functions/vfprintf.texi: Update.
35311         * doc/functions/vprintf.texi: Update.
35312         * doc/functions/vsnprintf.texi: Update.
35313         * doc/functions/vsprintf.texi: Update.
35314
35315 2007-05-18  Bruno Haible  <bruno@clisp.org>
35316
35317         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
35318
35319 2007-05-18  Bruno Haible  <bruno@clisp.org>
35320
35321         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
35322         for printing 64-bit integers. Needed for mingw.
35323
35324 2007-05-18  Bruno Haible  <bruno@clisp.org>
35325
35326         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
35327         gl_FUNC_FREXPL_WORKS.
35328         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
35329
35330 2007-05-18  Bruno Haible  <bruno@clisp.org>
35331
35332         * modules/frexpl-nolibm-tests: New file.
35333
35334         * modules/frexpl-nolibm: New file.
35335         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
35336
35337 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
35338
35339         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
35340         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35341         GCC 4.2, which otherwise issues a lot of warnings.
35342         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
35343         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
35344         Likewise.
35345         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
35346         * modules/iconv_open (iconv.h): Likewise.
35347         * modules/locale (locale.h): Likewise.
35348         * modules/netinet_in (netinet/in.h): Likewise.
35349         * modules/sys_select (sys_select.h): Likewise.
35350         * modules/sys_socket (sys/socket.h): Likewise.
35351         * modules/sys_stat (sys/stat.h): Likewise.
35352         * modules/sysexits (sysexits.h): Likewise.
35353         * modules/unistd (unistd.h): Likewise.
35354
35355 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35356
35357         * modules/closein-tests (Makefile.am): Distribute
35358         `test-closein.sh'.
35359
35360 2007-05-17  Bruno Haible  <bruno@clisp.org>
35361
35362         * tests/test-printf-posix.output: Renamed from
35363         tests/test-fprintf-posix.out.
35364         * modules/fprintf-posix-tests: Update.
35365         * modules/printf-posix-tests: Update.
35366         * modules/vfprintf-posix-tests: Update.
35367         * modules/vprintf-posix-tests: Update.
35368         * tests/test-fprintf-posix.sh: Update.
35369         * tests/test-printf-posix.sh: Update.
35370         * tests/test-vfprintf-posix.sh: Update.
35371         * tests/test-vprintf-posix.sh: Update.
35372         Reported by Ralf Wildenhues.
35373
35374 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
35375
35376         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
35377         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
35378         GCC 4.2, which otherwise issues a lot of warnings.
35379         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
35380         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
35381         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
35382         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
35383         it should no longer be needed.
35384         * lib/string_.h: Likewise.
35385         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
35386         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
35387         * modules/inttypes (inttypes.h): Likewise.
35388         * modules/math (math.h): Likewise.
35389         * modules/search (search.h): Likewise.
35390         * modules/signal (signal.h): Likewise.
35391         * modules/stdint (stdint.h): Likewise.
35392         * modules/stdio (stdio.h): Likewise.
35393         * modules/stdlib (stdlib.h): Likewise.
35394         * modules/string (string.h): Likewise.
35395         * modules/sys_time (sys/time.h): Likewise.
35396         * modules/time (time.h): Likewise.
35397         * modules/wchar (wchar.h): Likewise.
35398         * modules/wctype (wtype.h): Likewise.
35399
35400 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
35401
35402         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
35403
35404 2007-05-13  Bruno Haible  <bruno@clisp.org>
35405
35406         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
35407         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35408         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
35409         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35410         (gl_PREREQ_STRTOK_R): Don't require it here.
35411
35412 2007-05-13  Bruno Haible  <bruno@clisp.org>
35413
35414         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
35415         when used in C++ mode.
35416
35417 2007-05-12  Bruno Haible  <bruno@clisp.org>
35418
35419         * lib/linebuffer.h: Tweak doc.
35420         * lib/linebuffer.c: Likewise.
35421
35422 2007-05-12  James Youngman  <jay@gnu.org>
35423
35424         * lib/linebuffer.c (readlinebuffer_delim): New function,
35425         like readlinebuffer, but use a caller-specified delimiter.
35426         (readlinebuffer): Just call readlinebuffer_delim with '\n'
35427         as the delimiter.
35428         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
35429
35430 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35431
35432         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
35433         * modules/openat (Files): Remove openat-die.c.
35434         (Depends-on): Add openat-die.
35435         * modules/openat-die: New module.
35436
35437 2007-05-06  Bruno Haible  <bruno@clisp.org>
35438
35439         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
35440         Update with info about Cygwin.
35441         * doc/functions/fprintf.texi: Update.
35442         * doc/functions/printf.texi: Update.
35443         * doc/functions/snprintf.texi: Update.
35444         * doc/functions/sprintf.texi: Update.
35445         * doc/functions/vfprintf.texi: Update.
35446         * doc/functions/vprintf.texi: Update.
35447         * doc/functions/vsnprintf.texi: Update.
35448         * doc/functions/vsprintf.texi: Update.
35449         Reported by Eric Blake.
35450
35451 2007-05-06  Bruno Haible  <bruno@clisp.org>
35452
35453         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
35454         padding ourselves for the floating-point directives.
35455         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
35456         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
35457         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35458         gl_PRINTF_FLAG_ZERO and test its result. Invoke
35459         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
35460         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35461         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35462         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35463         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35464         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35465         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35466         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35467         * tests/test-snprintf-posix.h (test_function): Also check the width
35468         and some flags in the %f directive.
35469         * tests/test-sprintf-posix.h (test_function): Likewise.
35470         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35471         * tests/test-vasprintf-posix.c (test_function): Likewise.
35472         * doc/functions/fprintf.texi: Update.
35473         * doc/functions/printf.texi: Update.
35474         * doc/functions/snprintf.texi: Update.
35475         * doc/functions/sprintf.texi: Update.
35476         * doc/functions/vfprintf.texi: Update.
35477         * doc/functions/vprintf.texi: Update.
35478         * doc/functions/vsnprintf.texi: Update.
35479         * doc/functions/vsprintf.texi: Update.
35480
35481 2007-05-06  Bruno Haible  <bruno@clisp.org>
35482
35483         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
35484         pass the ' flag character to sprintf or snprintf.
35485         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
35486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
35487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35488         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
35489         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
35490         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
35492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35497         * tests/test-snprintf-posix.h (test_function): Also check the grouping
35498         flag.
35499         * tests/test-sprintf-posix.h (test_function): Likewise.
35500         * tests/test-vasnprintf-posix.c (test_function): Likewise.
35501         * tests/test-vasprintf-posix.c (test_function): Likewise.
35502         * doc/functions/fprintf.texi: Update.
35503         * doc/functions/printf.texi: Update.
35504         * doc/functions/snprintf.texi: Update.
35505         * doc/functions/sprintf.texi: Update.
35506         * doc/functions/vfprintf.texi: Update.
35507         * doc/functions/vprintf.texi: Update.
35508         * doc/functions/vsnprintf.texi: Update.
35509         * doc/functions/vsprintf.texi: Update.
35510
35511 2007-05-01  Bruno Haible  <bruno@clisp.org>
35512
35513         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
35514
35515 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
35516
35517         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
35518         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
35519
35520 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35521
35522         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
35523         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
35524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
35525
35526 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
35527
35528         * lib/argp-help.c (struct hol_entry): New member `ord'.
35529         (HOL_ENTRY_PTRCMP): Use ord for comparison
35530         (hol_sort): Initialize ord.
35531
35532 2007-05-01  Bruno Haible  <bruno@clisp.org>
35533
35534         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
35535         Reported by Eric Blake.
35536         * doc/gnulib.texi (Function Substitutes): Update.
35537
35538 2007-05-01  Bruno Haible  <bruno@clisp.org>
35539
35540         * doc/functions.texi: Remove file, now redundant through
35541         doc/functions/*.texi.
35542
35543 2007-05-01  Bruno Haible  <bruno@clisp.org>
35544
35545         * modules/argp (Depends-on): Add sleep.
35546
35547 2007-05-01  Bruno Haible  <bruno@clisp.org>
35548
35549         * modules/sleep-tests: New file.
35550         * tests/test-sleep.c: New file.
35551
35552         * modules/sleep: New file.
35553         * lib/sleep.c: New file.
35554         * m4/sleep.m4: New file.
35555         * lib/unistd_.h (sleep): New declaration.
35556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
35557         HAVE_SLEEP.
35558         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
35559         * doc/functions/sleep.texi: Document the sleep module.
35560
35561 2007-05-01  Bruno Haible  <bruno@clisp.org>
35562
35563         * lib/sigprocmask.h: Remove file.
35564         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
35565         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
35566         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
35567         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
35568         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35569         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
35570         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
35571         HAVE_SIGSET_T as a shell variable.
35572         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
35573         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
35574         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
35575         (Depends-on): Add signal. Remove verify.
35576         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
35577         (Include): Mention <signal.h> instead of sigprocmask.h.
35578         * NEWS: Mention the change.
35579         * lib/fatal-signal.c: Don't include sigprocmask.h.
35580
35581 2007-05-01  Bruno Haible  <bruno@clisp.org>
35582
35583         * modules/signal: New file.
35584         * lib/signal_.h: New file.
35585         * m4/signal_h.m4: New file.
35586
35587 2007-05-01  Bruno Haible  <bruno@clisp.org>
35588
35589         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
35590         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
35591         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
35592         HAVE_WCTYPE_CTMP_BUG into wctype.h.
35593
35594 2007-05-01  Bruno Haible  <bruno@clisp.org>
35595
35596         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
35597         configure time.
35598         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
35599         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
35600         * modules/sys_stat (Makefile.am): Substitute their values into
35601         sys/stat.h.
35602
35603 2007-05-01  Bruno Haible  <bruno@clisp.org>
35604
35605         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
35606         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
35607         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
35608
35609 2007-05-01  Bruno Haible  <bruno@clisp.org>
35610
35611         * doc/header/assert.texi: Undo last change: don't mention the gnulib
35612         'assert' module here.
35613
35614 2007-05-01  Bruno Haible  <bruno@clisp.org>
35615
35616         * doc/functions/*.texi: New files.
35617         * doc/functions/google-ranking.txt: New file.
35618         * doc/gnulib.texi (Function Substitutes): New chapter.
35619         (ctime, inet_ntoa): Remove sections.
35620         * doc/ctime.texi: Remove file.
35621         * doc/inet_ntoa.texi: Remove file.
35622         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
35623         dependencies.
35624         (%.info): New rule, specifying a --reference-limit.
35625
35626 2007-05-01  Bruno Haible  <bruno@clisp.org>
35627
35628         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
35629
35630 2007-05-01  Bruno Haible  <bruno@clisp.org>
35631
35632         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
35633         the portability of 'mkdir' to mingw systems.
35634
35635 2007-05-01  Bruno Haible  <bruno@clisp.org>
35636
35637         * doc/headers/google-ranking.txt: New file.
35638
35639 2007-04-30  Eric Blake  <ebb9@byu.net>
35640
35641         Prefer fseeko to fseek.
35642         * modules/getpass (Depends-on): Add fseeko.
35643         * lib/getpass.c (getpass): Use fseeko, not fseek.
35644
35645 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
35646
35647         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
35648         assumes the sorting is stable, while most qsort implementations
35649         are not.  Use argument addresses to ensure they never compare as
35650         equal.
35651
35652         * tests/test-argp-2.sh (usage-indent test): Fix output
35653         (func_compare): Restore diff options
35654         * tests/test-argp.c: Restore #include "progname.h"
35655
35656 2007-04-29  Bruno Haible  <bruno@clisp.org>
35657
35658         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
35659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
35660         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
35661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35662         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
35663         (configure.ac): Define CHECK_SNPRINTF_POSIX.
35664         (TESTS, check_PROGRAMS): Add test-snprintf.
35665         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
35666         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
35667         (TESTS, check_PROGRAMS): Add test-vsnprintf.
35668         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
35669         assertions that fail on HP-UX, OSF/1, or IRIX.
35670         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
35671
35672 2007-04-29  Bruno Haible  <bruno@clisp.org>
35673
35674         * MODULES.html.sh (posix_functions): Remove 'contents'.
35675
35676 2007-04-29  Karl Berry  <karl@gnu.org>
35677
35678         * config/srclist.txt (gendocs_template_min): new entry.
35679
35680 2007-04-29  Bruno Haible  <bruno@clisp.org>
35681
35682         Work around fpurge bug on BSD systems.
35683         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
35684         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
35685         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
35686         fpurge to rpl_fpurge if the system already has this function.
35687         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
35688         the case where the system already has this function. Correct invariants
35689         on BSD systems.
35690         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
35691         BSD systems.
35692
35693 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
35694
35695         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
35696         proposed by Sven Verdoolaege.
35697
35698         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
35699         options.
35700         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
35701         (usage and help tests): Update
35702
35703 2007-04-29  Bruno Haible  <bruno@clisp.org>
35704
35705         * tests/test-fflush.c (main): Use a file of size 17, not 10.
35706         Print more information in case of failure. Disable a test on BeOS.
35707
35708 2007-04-29  Bruno Haible  <bruno@clisp.org>
35709
35710         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
35711         This helps debugging on systems on which no gdb is available.
35712
35713 2007-04-29  Bruno Haible  <bruno@clisp.org>
35714
35715         * lib/freading.h: Improve comments.
35716         * lib/fwriting.h: Likewise.
35717         * tests/test-freading.c (main): Don't check freading immediately after
35718         repositioning. Needed for glibc.
35719
35720 2007-04-29  Bruno Haible  <bruno@clisp.org>
35721
35722         * lib/freading.c (freading): Trivial simplification.
35723
35724 2007-04-28  Bruno Haible  <bruno@clisp.org>
35725
35726         * tests/test-fwriting.c (main): Also test the interaction between
35727         fflush and fwriting.
35728         * modules/fwriting-tests (Depends-on): Add fflush.
35729
35730         * tests/test-freading.c (main): Also test the interaction between
35731         fflush and freading.
35732         * modules/freading-tests (Depends-on): Add fflush.
35733
35734 2007-04-28  Bruno Haible  <bruno@clisp.org>
35735
35736         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
35737         fseeko and ftello.
35738         Suggested by Eric Blake.
35739
35740 2007-04-28  Jim Meyering  <jim@meyering.net>
35741
35742         Avoid false-negative in gl_STDINT_H's C99 conformance test.
35743         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
35744         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
35745
35746 2007-04-27  Eric Blake  <ebb9@byu.net>
35747
35748         * doc/headers/assert.texi (assert.h): Document assert module use.
35749
35750 2007-04-27  Bruno Haible  <bruno@clisp.org>
35751
35752         * doc/headers/*.texi: New files.
35753         * doc/gnulib.texi (Header File Substitutes): New chapter.
35754         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
35755         dependencies.
35756         (standards.info ,standards.html, standards.dvi): Update dependencies.
35757         (mostlyclean, clean): New targets.
35758
35759 2007-04-27  Bruno Haible  <bruno@clisp.org>
35760
35761         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
35762         * modules/sysexits (Files, Makefile.am): Update.
35763
35764         * lib/sys_socket_.h: Renamed from lib/socket_.h.
35765         * modules/sys_socket (Files, Makefile.am): Update.
35766
35767         * lib/sys_stat_.h: Renamed from lib/stat_.h.
35768         * modules/sys_stat (Files, Makefile.am): Update.
35769
35770 2007-04-27  Eric Blake  <ebb9@byu.net>
35771
35772         * lib/freading.h: Improve comments.
35773         * lib/fwriting.h: Likewise.
35774         * lib/fflush.c: Likewise.
35775
35776         Fix closein for mingw.
35777         * modules/closein-tests: Add tests for closein.
35778         * tests/test-closein.c: New file.
35779         * tests/test-closein.sh: Likewise.
35780         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
35781         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
35782
35783 2007-04-27  Bruno Haible  <bruno@clisp.org>
35784
35785         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
35786         version is < 6.
35787         * lib/math_.h [__DECC]: Likewise.
35788         * lib/stdio_.h [__DECC]: Likewise.
35789         * lib/stdlib_.h [__DECC]: Likewise.
35790         * lib/string_.h [__DECC]: Likewise.
35791         * lib/time_.h [__DECC]: Likewise.
35792         * lib/wchar_.h [__DECC]: Likewise.
35793         * lib/wctype_.h [__DECC]: Likewise.
35794
35795 2007-04-27  Bruno Haible  <bruno@clisp.org>
35796
35797         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
35798
35799 2007-04-27  Bruno Haible  <bruno@clisp.org>
35800
35801         * lib/fflush.c: Add comments.
35802         * modules/fpurge-tests (Depends-on): Add fflush.
35803         * modules/freadable-tests (Depends-on): Likewise.
35804         * modules/fwritable-tests (Depends-on): Likewise.
35805
35806 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
35807
35808         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
35809         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
35810         Report by Bruno Haible <bruno@clisp.org>.
35811
35812 2007-04-26  Eric Blake  <ebb9@byu.net>
35813
35814         Fix fflush on mingw.
35815         * modules/fflush (Depends-on): Add freading.
35816         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
35817         but unread data.
35818
35819 2007-04-26  Eric Blake  <ebb9@byu.net>
35820         and Bruno Haible  <bruno@clisp.org>
35821
35822         Implement freading and fwriting.
35823         * lib/freading.c: New file.
35824         * lib/freading.h: Likewise.
35825         * m4/freading.m4: Likewise.
35826         * modules/freading: Likewise.
35827         * modules/freading-tests: Likewise.
35828         * tests/test-freading.c: Likewise.
35829         * lib/fwriting.c: New file.
35830         * lib/fwriting.h: Likewise.
35831         * m4/fwriting.m4: Likewise.
35832         * modules/fwriting: Likewise.
35833         * modules/fwriting-tests: Likewise.
35834         * tests/test-fwriting.c: Likewise.
35835         * MODULES.html.sh (File stream based Input/Output): Mention them.
35836
35837 2007-04-26  Bruno Haible  <bruno@clisp.org>
35838
35839         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
35840         'long' when we assume it.
35841         Suggested by Eric Blake.
35842
35843 2007-04-26  Bruno Haible  <bruno@clisp.org>
35844
35845         Ensure fseeko, ftello are declared on glibc systems.
35846         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
35847         * modules/fseeko (configure.ac-early): Likewise.
35848         * modules/ftello (configure.ac-early): Likewise.
35849         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
35850         AC_FUNC_FSEEKO for this.
35851         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
35852         (gl_CHECK_FSEEKO): Remove macro.
35853
35854 2007-04-26  Bruno Haible  <bruno@clisp.org>
35855
35856         * tests/test-fflush.c (main): Also check the ftell result after
35857         fflush and fseek/fseeko.
35858         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
35859         file descriptor position cache in the stream.
35860         * lib/fseeko.c (rpl_fseeko): Likewise.
35861
35862 2007-04-26  Bruno Haible  <bruno@clisp.org>
35863
35864         * modules/fflush-tests (Depends-on): Add fseeko.
35865
35866 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
35867             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35868
35869         * lib/argz_.h: ensure error_t definition is obtained in same
35870         mechanism system argz.h would have.
35871         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
35872         argz facilities are known bad.  Err on the side of caution if
35873         cross-compiling.
35874
35875 2007-04-25  Eric Blake  <ebb9@byu.net>
35876
35877         * lib/fpurge.c (includes): Use stdlib.h for free.
35878         * tests/test-fflush.c (main): Also test fflush-fseeko.
35879
35880 2007-04-25  Bruno Haible  <bruno@clisp.org>
35881
35882         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
35883         * lib/fseeko.c: New file.
35884         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
35885         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
35886         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
35887         gl_FUNC_FSEEKO.
35888         (gl_FUNC_FSEEKO): Invoke it.
35889         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
35890         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
35891         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
35892
35893 2007-04-25  Bruno Haible  <bruno@clisp.org>
35894
35895         * modules/fflush (Depends-on): Add ftello.
35896
35897 2007-04-25  Bruno Haible  <bruno@clisp.org>
35898
35899         * modules/ftello-tests: New file.
35900         * tests/test-ftello.c: New file.
35901
35902         * modules/ftello: New file.
35903         * m4/ftello.m4: New file.
35904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
35905         HAVE_FTELLO.
35906         * lib/stdio_.h (ftello): New declaration.
35907         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
35908         HAVE_FTELLO.
35909
35910 2007-04-25  Bruno Haible  <bruno@clisp.org>
35911
35912         * modules/fseeko-tests: New file.
35913         * tests/test-fseeko.c: New file.
35914
35915         * modules/fseeko: New file.
35916         * m4/fseeko.m4: New file.
35917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
35918         HAVE_FSEEKO.
35919         * lib/stdio_.h (fseeko): New declaration.
35920         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
35921         HAVE_FSEEKO.
35922
35923 2007-04-25  Bruno Haible  <bruno@clisp.org>
35924
35925         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
35926
35927 2007-04-25  Bruno Haible  <bruno@clisp.org>
35928
35929         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
35930         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
35931         * tests/test-unistd.c: Likewise.
35932         * tests/test-fcntl.c: Likewise.
35933
35934 2007-04-23  Eric Blake  <ebb9@byu.net>
35935
35936         * lib/fflush.c: Fix missing include.
35937         Reported by Bruno Haible.
35938
35939 2007-04-23  Bruno Haible  <bruno@clisp.org>
35940
35941         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
35942         Reported by Eric Blake.
35943
35944 2007-04-23  Bruno Haible  <bruno@clisp.org>
35945
35946         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
35947
35948 2007-04-23  Bruno Haible  <bruno@clisp.org>
35949
35950         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
35951
35952 2007-04-23  Bruno Haible  <bruno@clisp.org>
35953
35954         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
35955         Needed on HP-UX 11.
35956
35957 2007-04-16  Eric Blake  <ebb9@byu.net>
35958
35959         Make fflush rely on fpurge.
35960         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
35961         open coding all variants.
35962         * modules/fflush (Depends-on): Add fpurge and unistd.
35963         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
35964         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
35965
35966         Fix --with-tests compilation on cygwin.
35967         * modules/argmatch-tests (Makefile.am): List gnulib library first
35968         in LDADD.
35969         * modules/argp-tests (Makefile.am): Likewise.
35970         * modules/array-list-tests (Makefile.am): Likewise.
35971         * modules/array-oset-tests (Makefile.am): Likewise.
35972         * modules/avltree-list-tests (Makefile.am): Likewise.
35973         * modules/avltree-oset-tests (Makefile.am): Likewise.
35974         * modules/avltreehash-list-tests (Makefile.am): Likewise.
35975         * modules/carray-list-tests (Makefile.am): Likewise.
35976         * modules/dirname-tests (Makefile.am): Likewise.
35977         * modules/frexp-tests (Makefile.am): Likewise.
35978         * modules/isnanl-tests (Makefile.am): Likewise.
35979         * modules/linked-list-tests (Makefile.am): Likewise.
35980         * modules/linkedhash-list-tests (Makefile.am): Likewise.
35981         * modules/lock-tests (Makefile.am): Likewise.
35982         * modules/rbtree-list-tests (Makefile.am): Likewise.
35983         * modules/rbtree-oset-tests (Makefile.am): Likewise.
35984         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
35985         * modules/tls-tests (Makefile.am): Likewise.
35986         * modules/tsearch-tests (Makefile.am): Likewise.
35987         * modules/xvasprintf-tests (Makefile.am): Likewise.
35988
35989         Fix fpurge for cygwin.
35990         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
35991         value.
35992         * modules/fpurge-tests (Depends-on): Clean up trash.
35993
35994 2007-04-16  Simon Josefsson  <simon@josefsson.org>
35995
35996         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
35997
35998         * m4/autobuild.m4: Re-indent.
35999
36000 2007-04-13  Bruno Haible  <bruno@clisp.org>
36001
36002         * modules/fpurge-tests: New file.
36003         * tests/test-fpurge.c: New file.
36004
36005         * modules/fpurge: New file.
36006         * lib/fpurge.h: New file.
36007         * lib/fpurge.c: New file.
36008         * m4/fpurge.m4: New file.
36009
36010 2007-04-13  Bruno Haible  <bruno@clisp.org>
36011
36012         * modules/fbufmode-tests: New file.
36013         * tests/test-fbufmode.c: New file.
36014
36015         * modules/fbufmode: New file.
36016         * lib/fbufmode.h: New file.
36017         * lib/fbufmode.c: New file.
36018         * m4/fbufmode.m4: New file.
36019
36020 2007-04-13  Bruno Haible  <bruno@clisp.org>
36021
36022         * modules/fwritable-tests: New file.
36023         * tests/test-fwritable.c: New file.
36024
36025         * modules/fwritable: New file.
36026         * lib/fwritable.h: New file.
36027         * lib/fwritable.c: New file.
36028         * m4/fwritable.m4: New file.
36029
36030 2007-04-13  Bruno Haible  <bruno@clisp.org>
36031
36032         * modules/freadable-tests: New file.
36033         * tests/test-freadable.c: New file.
36034
36035         * modules/freadable: New file.
36036         * lib/freadable.h: New file.
36037         * lib/freadable.c: New file.
36038         * m4/freadable.m4: New file.
36039
36040 2007-04-13  Bruno Haible  <bruno@clisp.org>
36041
36042         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
36043         MOSTLYCLEANFILES.
36044
36045 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36046
36047         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
36048         gzip bootstrap.conf to avoid dragging in i18n machinery.
36049         (gnulib_tool_option): Use it.
36050
36051 2007-04-13  Bruno Haible  <bruno@clisp.org>
36052
36053         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
36054         %F directives.
36055         * tests/test-vasprintf-posix.c (test_function): Likewise.
36056         * tests/test-snprintf-posix.h (test_function): Likewise.
36057         * tests/test-sprintf-posix.h (test_function): Likewise.
36058         * tests/test-fprintf-posix.h (test_function): Likewise.
36059         * tests/test-printf-posix.h (test_function): Likewise.
36060         * tests/test-fprintf-posix.out: Likewise.
36061
36062 2007-04-13  Bruno Haible  <bruno@clisp.org>
36063
36064         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
36065         * modules/tls-tests (configure.ac): Likewise.
36066         Reported by Arto C. Nirkko <anirkko@insel.ch>.
36067
36068 2007-04-13  Bruno Haible  <bruno@clisp.org>
36069
36070         * lib/tls.c (glthread_tls_get): Fix return type.
36071         Patch by Arto C. Nirkko <anirkko@insel.ch>.
36072
36073 2007-04-12  Eric Blake  <ebb9@byu.net>
36074
36075         * modules/gettime (Depends-on): Remove gettime.
36076         Reported by Dmitry V. Levin.
36077
36078 2007-04-12  Bruno Haible  <bruno@clisp.org>
36079
36080         * modules/fflush (Include): Mention <stdio.h>.
36081         * modules/strtoimax (Include): Mention <inttypes.h>.
36082         * modules/strtoumax (Include): Likewise.
36083
36084 2007-04-12  Eric Blake  <ebb9@byu.net>
36085
36086         * .cvsignore: New file.
36087         * .gitignore: Likewise.
36088
36089 2007-04-12  Bruno Haible  <bruno@clisp.org>
36090
36091         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
36092         not before, since $(LDADD) often contains libgnu.a.
36093         * modules/striconv-tests (test_striconv_LDADD): Likewise.
36094         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
36095         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
36096         Needed on Cygwin.
36097
36098 2007-04-12  Eric Blake  <ebb9@byu.net>
36099
36100         Work around glibc's failure to flush stdin on fclose.
36101         * lib/closein.c (close_stdin): Flush stdin before closing.
36102
36103         Work around glibc's failure to reset seekable stdin on exit.
36104         * modules/closein: New module.
36105         * lib/closein.c: New file.
36106         * lib/closein.h: Likewise.
36107         * m4/closein.m4: Likewise.
36108         * MODULES.html.sh (File stream based Input/Output): Document it.
36109
36110 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36111
36112         * gnulib-tool: Rename generated 'autobuild' script to
36113         'do-autobuild' in --create-megatestdir output.
36114
36115         * doc/gnulib.texi (Build robot for gnulib): Fix.
36116
36117 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36118
36119         * modules/sysexits (Depends-on): Add absolute-header.
36120
36121 2007-04-12  Eric Blake  <ebb9@byu.net>
36122
36123         No need to preserve errno on success.
36124         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
36125         Reported by Bruno Haible.
36126
36127 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36128
36129         * MODULES.html.sh (Support for maintaining and releasing
36130         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
36131
36132 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36133
36134         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
36135
36136 2007-04-12  Simon Josefsson  <simon@josefsson.org>
36137
36138         * modules/autobuild: New module.
36139
36140         * m4/autobuild.m4: New file.
36141
36142 2007-04-11  Bruno Haible  <bruno@clisp.org>
36143
36144         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
36145         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
36146         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
36147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
36148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36149         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36150         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
36152         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36153         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
36155         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36156         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
36158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36160         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
36161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36163         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
36164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
36167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36169         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
36170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
36171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
36172         Reported by Eric Blake.
36173
36174 2007-04-11  Bruno Haible  <bruno@clisp.org>
36175
36176         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
36177
36178 2007-04-10  Bruno Haible  <bruno@clisp.org>
36179
36180         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
36181         for NaN and Infinity. Needed on FreeBSD 6.1.
36182         * tests/test-vasnprintf-posix.c (test_function): Undo last change
36183         regarding results for "%010a" of Infinity and NaN.
36184         * tests/test-vasprintf-posix.c (test_function): Likewise.
36185         * tests/test-snprintf-posix.h (test_function): Likewise.
36186         * tests/test-sprintf-posix.h (test_function): Likewise.
36187         * tests/test-fprintf-posix.h (test_function): Likewise.
36188         * tests/test-printf-posix.h (test_function): Likewise.
36189         * tests/test-fprintf-posix.out: Likewise.
36190
36191 2007-04-10  Bruno Haible  <bruno@clisp.org>
36192
36193         * modules/locale-tests: New file.
36194         * tests/test-locale.c: New file.
36195
36196         * modules/locale: New file.
36197         * lib/locale_.h: New file.
36198         * m4/locale_h.m4: New file.
36199
36200 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
36201             Bruno Haible  <bruno@clisp.org>
36202
36203         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
36204         be determined, test for availability of the copysignf, copysign,
36205         copysignl functions.
36206         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
36207         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
36208         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
36209
36210 2007-04-09  Eric Blake  <ebb9@byu.net>
36211
36212         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
36213         * modules/stdio (Makefile.am): Support fflush.
36214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36215         * modules/fflush: New file.
36216         * lib/fflush.c: Likewise.
36217         * m4/fflush.m4: Likewise.
36218         * modules/fflush-tests: New test.
36219         * tests/test-fflush.c: Likewise.
36220         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
36221
36222 2007-04-06  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
36225         (VASNPRINTF): Use signbit for faster determination whether to print a
36226         minus sign.
36227         * modules/vasnprintf (Files): Remove lib/float+.h.
36228         * modules/fprintf-posix (Depends-on): Add signbit.
36229         * modules/snprintf-posix (Depends-on): Likewise.
36230         * modules/sprintf-posix (Depends-on): Likewise.
36231         * modules/vasnprintf-posix (Depends-on): Likewise.
36232         * modules/vasprintf-posix (Depends-on): Likewise.
36233         * modules/vfprintf-posix (Depends-on): Likewise.
36234         * modules/vsnprintf-posix (Depends-on): Likewise.
36235         * modules/vsprintf-posix (Depends-on): Likewise.
36236
36237 2007-04-06  Bruno Haible  <bruno@clisp.org>
36238
36239         * tests/test-frexp.c (main): Test also the sign bit of zero results.
36240         * tests/test-frexpl.c (main): Likewise.
36241         * tests/test-ldexpl.c (main): Likewise.
36242         * modules/frexp-tests (Depends-on): Add signbit.
36243         * modules/frexpl-tests (Depdends-on): Likewise.
36244         * modules/ldexpl-tests (Depdends-on): Likewise.
36245
36246 2007-04-06  Bruno Haible  <bruno@clisp.org>
36247
36248         * modules/signbit-tests: New file.
36249         * tests/test-signbit.c: New file.
36250
36251         * modules/signbit: New file.
36252         * lib/signbitf.c: New file.
36253         * lib/signbitd.c: New file.
36254         * lib/signbitl.c: New file.
36255         * m4/signbit.m4: New file.
36256         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
36257         (signbit): New macro.
36258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
36259         REPLACE_SIGNBIT.
36260         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
36261         REPLACE_FREXPL into math.h.
36262
36263 2007-04-06  Bruno Haible  <bruno@clisp.org>
36264
36265         * modules/isnanf-nolibm-tests: New file.
36266         * tests/test-isnanf.c: New file.
36267
36268         * modules/isnanf-nolibm: New file.
36269         * lib/isnanf.h: New file.
36270         * lib/isnanf.c: New file.
36271         * lib/isnan.c: Consider the USE_FLOAT macro.
36272         * m4/isnanf.m4: New file.
36273
36274 2007-04-06  Bruno Haible  <bruno@clisp.org>
36275
36276         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
36277         (Link): New section.
36278
36279         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
36280
36281 2007-04-06  Bruno Haible  <bruno@clisp.org>
36282
36283         Assume the 'long double' type.
36284         * m4/longdouble.m4: Remove file.
36285         * config/srclist.txt: Don't mention longdouble.m4.
36286         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
36287         * lib/float+.h: Likewise.
36288         * lib/frexp.c: Likewise.
36289         * lib/printf-args.h: Likewise.
36290         * lib/printf-args.c: Likewise.
36291         * lib/printf-frexp.c: Likewise.
36292         * lib/printf-parse.c: Likewise.
36293         * lib/vasnprintf.c: Likewise.
36294         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
36295         * m4/intl.m4: Likewise.
36296         * m4/isnanl.m4: Likewise.
36297         * m4/printf.m4: Likewise.
36298         * m4/printf-frexpl.m4: Likewise.
36299         * m4/vasnprintf.m4: Likewise.
36300         * modules/allocsa (Files): Remove m4/longdouble.m4.
36301         * modules/gettext (Files): Likewise.
36302         * modules/relocatable-prog-wrapper (Files): Likewise.
36303         * modules/vasnprintf (Files): Likewise.
36304         * modules/isnanl (Files): Likewise.
36305         (Include): Simplify.
36306         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
36307         (Include): Simplify.
36308         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
36309         (Include): Simplify.
36310         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
36311         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36312         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
36313         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36314         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36315         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36316         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
36317         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36318         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
36319         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36320         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
36321         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
36322         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
36323         * tests/test-isnanl.c: Likewise.
36324         * tests/test-snprintf-posix.h: Likewise.
36325         * tests/test-sprintf-posix.h: Likewise.
36326         * tests/test-vasnprintf-posix.c: Likewise.
36327         * tests/test-vasnprintf-posix2.c: Likewise.
36328         * tests/test-vasprintf-posix.c: Likewise.
36329
36330 2007-04-06  Bruno Haible  <bruno@clisp.org>
36331
36332         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
36333         * lib/math_.h [__DECC]: Include the overridden include file through
36334         #include_next, outside the double-inclusion guard.
36335         * lib/stdio_.h [__DECC]: Likewise.
36336         * lib/stdlib_.h [__DECC]: Likewise.
36337         * lib/string_.h [__DECC]: Likewise.
36338         * lib/time_.h [__DECC]: Likewise.
36339         * lib/wchar_.h [__DECC]: Likewise.
36340         * lib/wctype_.h [__DECC]: Likewise.
36341         * lib/inttypes_.h [__DECC]: Likewise.
36342         Reported by Albert Chin <china@thewrittenword.com> in
36343         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
36344
36345 2007-04-04  Eric Blake  <ebb9@byu.net>
36346
36347         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
36348         1.5.x.
36349
36350 2007-04-04  Bruno Haible  <bruno@clisp.org>
36351
36352         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
36353         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
36354
36355 2007-04-04  Bruno Haible  <bruno@clisp.org>
36356
36357         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
36358         results for "%010a" of Infinity and NaN.
36359         * tests/test-vasprintf-posix.c (test_function): Likewise.
36360         * tests/test-snprintf-posix.h (test_function): Likewise.
36361         * tests/test-sprintf-posix.h (test_function): Likewise.
36362         * tests/test-fprintf-posix.h (test_function): Remove these tests.
36363         * tests/test-printf-posix.h (test_function): Likewise.
36364         * tests/test-fprintf-posix.out: Update.
36365         Needed for FreeBSD 6.1.
36366
36367 2007-04-04  Bruno Haible  <bruno@clisp.org>
36368
36369         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
36370         directly used by the gnulib modules nor by gnulib-tool.
36371
36372 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36373
36374         * DEPENDENCIES: Give overall description of version dependency
36375         desirability.  Use more-typical names for apps.
36376         Add shell, coreutils, diffutils, grep, tar, gzip.
36377
36378 2007-04-04  Simon Josefsson  <simon@josefsson.org>
36379
36380         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
36381
36382 2007-04-04  Karl Berry  <karl@gnu.org>
36383
36384         * MODULES.html.sh (func_module): missing '.
36385
36386 2007-04-03  Bruno Haible  <bruno@clisp.org>
36387
36388         * modules/argmatch-tests (Makefile.am): New variable
36389         test_argmatch_LDADD.
36390         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
36391         * modules/array-list-tests (Makefile.am): New variable
36392         test_array_list_LDADD.
36393         * modules/array-oset-tests (Makefile.am): New variable
36394         test_array_oset_LDADD.
36395         * modules/avltree-list-tests (Makefile.am): New variable
36396         test_avltree_list_LDADD.
36397         * modules/avltree-oset-tests (Makefile.am): New variable
36398         test_avltree_oset_LDADD.
36399         * modules/avltreehash-list-tests (Makefile.am): New variable
36400         test_avltreehash_list_LDADD.
36401         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
36402         test_canonicalize_lgpl_LDADD.
36403         * modules/carray-list-tests (Makefile.am): New variable
36404         test_carray_list_LDADD.
36405         * modules/dirname-tests (Makefile.am): New variable
36406         test_dirname_LDADD.
36407         * modules/linked-list-tests (Makefile.am): New variable
36408         test_linked_list_LDADD.
36409         * modules/linkedhash-list-tests (Makefile.am): New variable
36410         test_linkedhash_list_LDADD.
36411         * modules/rbtree-list-tests (Makefile.am): New variable
36412         test_rbtree_list_LDADD.
36413         * modules/rbtree-oset-tests (Makefile.am): New variable
36414         test_rbtree_oset_LDADD.
36415         * modules/rbtreehash-list-tests (Makefile.am): New variable
36416         test_rbtreehash_list_LDADD.
36417         * modules/xvasprintf-tests (Makefile.am): New variable
36418         test_xvasprintf_LDADD.
36419         Reported by Eric Blake.
36420
36421 2007-04-03  Eric Blake  <ebb9@byu.net>
36422
36423         * DEPENDENCIES: Weaken m4 requirements.
36424
36425 2007-04-03  Bruno Haible  <bruno@clisp.org>
36426
36427         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
36428         * modules/isnanl-tests (configure.ac): Likewise.
36429
36430 2007-04-03  Ben Pfaff  <blp@gnu.org>
36431
36432         * modules/iconv_open: Add $(srcdir)/ to source directory
36433         references in Makefile fragments that call gperf, to fix VPATH
36434         builds.
36435
36436 2007-04-03  Bruno Haible  <bruno@clisp.org>
36437
36438         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
36439         * lib/ldexpl.c: Undo last change.
36440
36441 2007-04-03  Bruno Haible  <bruno@clisp.org>
36442
36443         * modules/printf-frexpl (Depends-on): Undo last change.
36444         (Files): Add m4/ldexpl.m4.
36445
36446 2007-04-03  Bruno Haible  <bruno@clisp.org>
36447
36448         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
36449         * modules/isnanl (Link): New section.
36450
36451         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
36452         * modules/frexp (Link): New section.
36453
36454         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
36455         * modules/frexpl (Link): New section.
36456
36457         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
36458         * modules/ldexpl (Link): New section.
36459
36460 2007-04-03  Bruno Haible  <bruno@clisp.org>
36461
36462         * modules/TEMPLATE-EXTENDED: New file.
36463         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
36464
36465 2007-04-03  Bruno Haible  <bruno@clisp.org>
36466
36467         * DEPENDENCIES: New file.
36468         Suggested by Simon Josefsson.
36469
36470 2007-04-03  Bruno Haible  <bruno@clisp.org>
36471
36472         * doc/gnulib.texi: Escape @.
36473
36474 2007-04-03  James Youngman  <jay@gnu.org>
36475         and Paul Eggert  <eggert@cs.ucla.edu>
36476
36477         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
36478         birthtime on all systems that have birthtime, not just those which
36479         use st_birthtimensec rather than st_birthtim.  Putting zero in
36480         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
36481         that the birth time is not available for files on an NFS mount.
36482
36483 2007-04-03  Simon Josefsson  <simon@josefsson.org>
36484
36485         * modules/memxor: Move back from crypto/, suggested by Bruno.
36486         * modules/crypto/hmac-sha1: Fix memxor dependency.
36487
36488         * modules/crypto/gc: Moved from ../.
36489
36490 2007-04-02  Eric Blake  <ebb9@byu.net>
36491
36492         * lib/ldexpl.c (includes): Avoid libm.
36493
36494         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
36495
36496 2007-04-02  Bruno Haible  <bruno@clisp.org>
36497
36498         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
36499         on IRIX.
36500
36501 2007-04-02  Bruno Haible  <bruno@clisp.org>
36502
36503         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
36504         x86 or x86_64 platforms running MacOS X.
36505         Reported by Ryan Schmidt <@ryandesign.com>.
36506
36507 2007-04-02  Bruno Haible  <bruno@clisp.org>
36508
36509         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
36510         i386.
36511
36512 2007-04-01  Simon Josefsson  <simon@josefsson.org>
36513
36514         * modules/crypto/arcfour: Moved from ../.
36515         * modules/crypto/arcfour-tests: Moved from ../.
36516         * modules/crypto/arctwo: Moved from ../.
36517         * modules/crypto/arctwo-tests: Moved from ../.
36518         * modules/crypto/des: Moved from ../.
36519         * modules/crypto/des-tests: Moved from ../.
36520         * modules/crypto/gc-arcfour: Moved from ../.
36521         * modules/crypto/gc-arcfour-tests: Moved from ../.
36522         * modules/crypto/gc-arctwo: Moved from ../.
36523         * modules/crypto/gc-arctwo-tests: Moved from ../.
36524         * modules/crypto/gc-des: Moved from ../.
36525         * modules/crypto/gc-des-tests: Moved from ../.
36526         * modules/crypto/gc-hmac-md5: Moved from ../.
36527         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
36528         * modules/crypto/gc-hmac-sha1: Moved from ../.
36529         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
36530         * modules/crypto/gc-md2: Moved from ../.
36531         * modules/crypto/gc-md2-tests: Moved from ../.
36532         * modules/crypto/gc-md4: Moved from ../.
36533         * modules/crypto/gc-md4-tests: Moved from ../.
36534         * modules/crypto/gc-md5: Moved from ../.
36535         * modules/crypto/gc-md5-tests: Moved from ../.
36536         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
36537         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
36538         * modules/crypto/gc-random: Moved from ../.
36539         * modules/crypto/gc-rijndael: Moved from ../.
36540         * modules/crypto/gc-rijndael-tests: Moved from ../.
36541         * modules/crypto/gc-sha1: Moved from ../.
36542         * modules/crypto/gc-sha1-tests: Moved from ../.
36543         * modules/crypto/gc-tests: Moved from ../.
36544         * modules/crypto/hmac-md5: Moved from ../.
36545         * modules/crypto/hmac-md5-tests: Moved from ../.
36546         * modules/crypto/hmac-sha1: Moved from ../.
36547         * modules/crypto/hmac-sha1-tests: Moved from ../.
36548         * modules/crypto/md2: Moved from ../.
36549         * modules/crypto/md2-tests: Moved from ../.
36550         * modules/crypto/md4: Moved from ../.
36551         * modules/crypto/md4-tests: Moved from ../.
36552         * modules/crypto/md5: Moved from ../.
36553         * modules/crypto/md5-tests: Moved from ../.
36554         * modules/crypto/memxor: Moved from ../.
36555         * modules/crypto/rijndael: Moved from ../.
36556         * modules/crypto/rijndael-tests: Moved from ../.
36557         * modules/crypto/sha1: Moved from ../.
36558
36559 2007-03-30  James Youngman  <jay@gnu.org>
36560
36561         * tests/test-stat-time.c (prepare_test): use chmod() rather than
36562         rename() to change the ctime of a file (because ctime is unaffected
36563         by rename on jfs2 on AIX 5.1).
36564         (main): Start by doing cleanup, in case a previous run failed leaving
36565         test files behind.
36566
36567 2007-03-31  Bruno Haible  <bruno@clisp.org>
36568
36569         Support old proprietary implementations of iconv.
36570         * modules/iconv_open: New file.
36571         * lib/iconv_.h: New file.
36572         * m4/iconv_h.m4: New file.
36573         * lib/iconv_open.c: New file.
36574         * lib/iconv_open-aix.gperf: New file.
36575         * lib/iconv_open-hpux.gperf: New file.
36576         * lib/iconv_open-irix.gperf: New file.
36577         * lib/iconv_open-osf.gperf: New file.
36578         * m4/iconv_open.m4: New file.
36579         * modules/linebreak (Depends-on): Add iconv_open.
36580         * modules/striconv (Depends-on): Likewise.
36581         * modules/striconveh (Depends-on): Likewise.
36582         * modules/unicodeio (Depends-on): Likewise.
36583         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
36584         (iconv_t)(-1).
36585         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
36586         conversion if cd is (iconv_t)(-1).
36587         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
36588         is not possible.
36589
36590 2007-03-31  Bruno Haible  <bruno@clisp.org>
36591
36592         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36593         work on Solaris either. Protect also second use of "autodetect_jp".
36594
36595 2007-03-31  Bruno Haible  <bruno@clisp.org>
36596
36597         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
36598         the function is not present.
36599
36600 2007-03-31  Bruno Haible  <bruno@clisp.org>
36601
36602         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
36603         the function is not present.
36604
36605 2007-03-31  Bruno Haible  <bruno@clisp.org>
36606
36607         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
36608         a bug in HP-UX iconv_open().
36609
36610 2007-03-31  Bruno Haible  <bruno@clisp.org>
36611
36612         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
36613         (Mathematics <math.h>): New section, add fpieee.
36614         (Input/output <stdio.h>): Add fseterr.
36615         (Mathematics <math.h>): New section, add printf-frexp.
36616         (Container data structures): Add sublist.
36617         (Core language properties): Add fpucw, inline.
36618         (Functions for greatest-width integer types <inttypes.h>): Add
36619         imaxabs, imaxdiv, inttypes.
36620         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
36621         isnanl-nolibm, ldexp.
36622         (Mathematics <math.h>): New section, add printf-frexpl.
36623         (Support for systems lacking POSIX:2001): Add fprintf-posix,
36624         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
36625         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
36626         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
36627         (Unicode string functions): Add unistr/u*-mbtoucr.
36628         (Java): Add javacomp-script, javaexec-script.
36629         (C#): Add csharpcomp-script, csharpexec-script.
36630         (Support for building libraries and executables): Add havelib,
36631         relocatable-*.
36632         (Support for maintaining and releasing projects): Renamed from
36633         'Support for maintaining and release projects'. Add announce-gen.
36634
36635 2007-03-31  Bruno Haible  <bruno@clisp.org>
36636
36637         * README: Talk primarily about git.
36638         (git and CVS): Renamed from CVS.
36639         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
36640         gnulib is available through git.
36641         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
36642
36643 2007-03-30  Bruno Haible  <bruno@clisp.org>
36644
36645         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
36646         * lib/poll_.h: Likewise.
36647         * lib/stat_.h: Likewise.
36648         * lib/sys_time_.h: Likewise.
36649         * lib/sysexit_.h: Likewise.
36650         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
36651         * lib/stdbool_.h: Likewise.
36652         * lib/byteswap_.h: Add double-inclusion guard.
36653
36654 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
36655
36656         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
36657
36658 2007-03-30  Karl Berry  <karl@gnu.org>
36659
36660         * config/srclist-update: double space after USA in the license
36661         substitution, since that's how it's usually (?) written.
36662
36663 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
36664
36665         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
36666         reported by Bruno Haible.
36667
36668 2007-03-29  Bruno Haible  <bruno@clisp.org>
36669
36670         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
36671         a bug in AIX iconv().
36672
36673 2007-03-29  Bruno Haible  <bruno@clisp.org>
36674
36675         * modules/ldexpl-tests: New file.
36676         * tests/test-ldexpl.c: New file.
36677
36678 2007-03-29  Bruno Haible  <bruno@clisp.org>
36679
36680         * lib/ldexpl.c: Include fpucw.h.
36681         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
36682         multiplication.
36683         * modules/ldexpl (Depends-on): Add fpucw.
36684
36685 2007-03-29  Bruno Haible  <bruno@clisp.org>
36686
36687         * modules/ldexpl: New file.
36688         * m4/ldexpl.m4: New file.
36689         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
36690         set.
36691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
36692         REPLACE_LDEXPL.
36693         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
36694         REPLACE_LDEXPL.
36695         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
36696         gl_FUNC_LDEXPL_WORKS.
36697         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
36698         * modules/mathl (Files): Remove lib/ldexpl.c.
36699         (Depends-on): Add ldexpl.
36700
36701 2007-03-29  Bruno Haible  <bruno@clisp.org>
36702
36703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
36704
36705 2007-03-29  Bruno Haible  <bruno@clisp.org>
36706
36707         * tests/test-striconveh.c (main): Don't assume that a direct conversion
36708         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
36709         and possibly also HP-UX.
36710         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
36711         work on AIX, IRIX, HP-UX, OSF/1.
36712         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
36713         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
36714         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
36715         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
36716         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
36717         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
36718
36719 2007-03-29  Bruno Haible  <bruno@clisp.org>
36720
36721         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
36722
36723 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36724
36725         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
36726         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
36727
36728 2007-03-29  Eric Blake  <ebb9@byu.net>
36729
36730         * lib/acl-internal.h: Remove redundant include.
36731         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
36732         Cygwin when a file is locked.
36733
36734 2007-03-29  Bruno Haible  <bruno@clisp.org>
36735
36736         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
36737         file.
36738         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
36739
36740 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
36741
36742         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
36743         try to remove a parent directory if the child couldn't be removed
36744         (except for the first rmdir, which could fail because the child
36745         doesn't exist).  Problem reported by Jeff Blaine in
36746         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
36747
36748 2007-03-28  Bruno Haible  <bruno@clisp.org>
36749
36750         * lib/striconveh.c (utf8conv_carefully): New function.
36751         (mem_cd_iconveh_internal): Invoke it.
36752
36753 2007-03-28  Bruno Haible  <bruno@clisp.org>
36754
36755         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
36756         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
36757         input.
36758         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
36759         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
36760         unistr/u8-uctomb.
36761
36762 2007-03-28  Bruno Haible  <bruno@clisp.org>
36763
36764         * modules/unistr/u8-mbtoucr: New file.
36765         * lib/unistr/u8-mbtoucr.c: New file.
36766         * modules/unistr/u16-mbtoucr: New file.
36767         * lib/unistr/u16-mbtoucr.c: New file.
36768         * modules/unistr/u16-mbtoucr: New file.
36769         * lib/unistr/u16-mbtoucr.c: New file.
36770         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
36771
36772 2007-03-27  Simon Josefsson  <simon@josefsson.org>
36773             Bruno Haible  <bruno@clisp.org>
36774
36775         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
36776         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
36777         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
36778
36779         * m4/stdio_h.m4: Add stubs for vasprintf too.
36780
36781         * modules/stdio: Support vasprintf in sed command.
36782
36783         * modules/vasprintf: Depend on stdio for prototypes.  Remove
36784         vasprintf.h.  Add stdio module indicator.
36785
36786         * lib/stdio_.h: Declare asprintf and vasprintf, based on
36787         vasprintf.h.
36788
36789         * lib/vasprintf.h: File removed.
36790
36791         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
36792         * lib/vasprintf.c: Ditto.
36793         * lib/xvasprintf.c: Ditto.
36794         * tests/test-vasprintf-posix.c: Ditto.
36795         * tests/test-vasprintf.c: Ditto.
36796
36797 2007-03-27  Bruno Haible  <bruno@clisp.org>
36798
36799         Make vasnprintf multithread-safe.
36800         * lib/vasnprintf.c (decimal_point_char): New function.
36801         (VASNPRINTF): Use it.
36802         Suggested by Simon Josefsson.
36803
36804 2007-03-27  Eric Blake  <ebb9@byu.net>
36805
36806         Support sub-second birthtime on cygwin.
36807         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
36808         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
36809         (get_stat_birthtime): Also work with st_birthtim.
36810
36811 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
36812
36813         * lib/stat-time.h (USE_BIRTHTIME): Remove.
36814         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
36815         (get_stat_birthtime_ns): Do not try to use "spare" fields.
36816         (get_stat_birthtime_ns): Simplify compile-time tests.
36817         (get_stat_birthtime): Change the API to look like
36818         get_stat_mtime etc., except return a negative tv_nsec on error.
36819         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36820         Don't check for "spare" fields.
36821         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
36822         or for struct stat.st_birthtime, as these tests aren't used.
36823         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
36824
36825 2007-03-27  Bruno Haible  <bruno@clisp.org>
36826
36827         * lib/stat-time.h: Include <sys/stat.h>.
36828
36829 2007-03-27  James Youngman  <jay@gnu.org>
36830
36831         * lib/stat-time.h (get_stat_birthtime): New function for
36832           retrieving st_birthtime as provided by UFS2 (hence *BSD).
36833         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
36834           and its variants.
36835         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
36836         * modules/stat-time-test: New file.
36837         * tests/test-stat-time.c: New test, devised by Bruno Haible.
36838
36839 2007-03-26  Bruno Haible  <bruno@clisp.org>
36840
36841         Better support of signalling NaNs.
36842         * lib/atanl.c: Include isnanl.h.
36843         (atanl): Perform test for NaN at the beginning of the function and
36844         through a call to isnanl.
36845         * lib/cosl.c: Include isnanl.h.
36846         (cosl): Perform test for NaN at the beginning of the function and
36847         through a call to isnanl.
36848         * lib/ldexpl.c: Include isnanl.h.
36849         (ldexpl): Perform test for NaN through a call to isnanl.
36850         * lib/logl.c: Include isnanl.h.
36851         (logl): Perform test for NaN at the beginning of the function and
36852         through a call to isnanl.
36853         * lib/sinl.c: Include isnanl.h.
36854         (sinl): Perform test for NaN at the beginning of the function and
36855         through a call to isnanl.
36856         * lib/sqrtl.c: Include isnanl.h.
36857         (sqrtl): Perform test for NaN at the beginning of the function and
36858         through a call to isnanl.
36859         * lib/tanl.c: Include isnanl.h.
36860         (tanl): Perform test for NaN at the beginning of the function and
36861         through a call to isnanl.
36862         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
36863         * modules/mathl (Depends-on): Add isnanl.
36864
36865 2007-03-26  Eric Blake  <ebb9@byu.net>
36866
36867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
36868         regression in logic sense of previous patch.
36869
36870 2007-03-26  Bruno Haible  <bruno@clisp.org>
36871
36872         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
36873         unportable shell command "if ! ...".
36874         Reported by Ralf Wildenhues.
36875
36876 2007-03-25  Bruno Haible  <bruno@clisp.org>
36877
36878         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
36879         <sysexits.h> file, and only add EX_CONFIG.
36880         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
36881         absolute file name and whether it is sufficient. Substitute also
36882         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
36883         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
36884         ABSOLUTE_SYSEXITS_H into sysexits.h.
36885
36886 2007-03-25  Bruno Haible  <bruno@clisp.org>
36887
36888         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
36889         hints is NULL.
36890
36891 2007-03-25  Bruno Haible  <bruno@clisp.org>
36892
36893         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
36894         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
36895
36896 2007-03-25  Bruno Haible  <bruno@clisp.org>
36897
36898         * lib/vasnprintf.c: Include langinfo.h.
36899         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
36900         multithread-safe.
36901         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
36902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
36903         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36904         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36905         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36906         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36907         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36908         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
36909         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36910         Reported by Simon Josefsson.
36911
36912 2007-03-25  Bruno Haible  <bruno@clisp.org>
36913
36914         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
36915         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
36916         * modules/vasnprintf (Depends-on): Add stdint.
36917
36918 2007-03-25  Bruno Haible  <bruno@clisp.org>
36919
36920         * modules/fpieee: New file.
36921         * m4/fpieee.m4: New file.
36922         * modules/isnan-nolibm (Depends-on): Add fpieee.
36923         * modules/isnanl-nolibm (Depends-on): Add fpieee.
36924         * modules/isnanl (Depends-on): Add fpieee.
36925
36926 2007-03-25  Bruno Haible  <bruno@clisp.org>
36927
36928         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
36929
36930 2007-03-25  Bruno Haible  <bruno@clisp.org>
36931
36932         Avoid test failures on IRIX 6.5.
36933         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
36934         (main): Use it.
36935         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
36936         macros.
36937         (main): Use them.
36938
36939 2007-03-25  Bruno Haible  <bruno@clisp.org>
36940
36941         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
36942         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
36943         exists but doesn't work.
36944         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
36945         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
36946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
36947         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
36948
36949 2007-03-25  Bruno Haible  <bruno@clisp.org>
36950
36951         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
36952         returns inf. Needed on IRIX 6.5.
36953
36954 2007-03-25  Bruno Haible  <bruno@clisp.org>
36955
36956         * tests/test-frexpl.c: Include isnanl-nolibm.h.
36957         (main): Use isnanl instead of x != x idiom.
36958         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
36959
36960         * tests/test-frexp.c: Include isnan.h.
36961         (main): Use isnan instead of x != x idiom.
36962         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
36963
36964 2007-03-25  Bruno Haible  <bruno@clisp.org>
36965
36966         * tests/test-frexp.c (NaN): New function/macro.
36967         (main): Use it instead of 0.0 / 0.0.
36968         * tests/test-isnan.c (NaN): New function/macro.
36969         (main): Use it instead of 0.0 / 0.0.
36970         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
36971         (test_function): Use it instead of 0.0 / 0.0.
36972         * tests/test-vasprintf-posix.c (NaN): New function/macro.
36973         (test_function): Use it instead of 0.0 / 0.0.
36974         * tests/test-snprintf-posix.h (NaN): New function/macro.
36975         (test_function): Use it instead of 0.0 / 0.0.
36976         * tests/test-sprintf-posix.h (NaN): New function/macro.
36977         (test_function): Use it instead of 0.0 / 0.0.
36978         * tests/test-fprintf-posix.h (NaN): New function/macro.
36979         (test_function): Use it instead of 0.0 / 0.0.
36980         * tests/test-printf-posix.h (NaN): New function/macro.
36981         (test_function): Use it instead of 0.0 / 0.0.
36982
36983         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
36984
36985 2007-03-25  Bruno Haible  <bruno@clisp.org>
36986
36987         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
36988
36989 2007-03-25  Bruno Haible  <bruno@clisp.org>
36990
36991         * lib/regexec.c (merge_state_with_log): Make static.
36992
36993 2007-03-25  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/trigl.c (kernel_rem_pio2): Make static.
36996
36997 2007-03-25  Bruno Haible  <bruno@clisp.org>
36998
36999         * lib/sincosl.c (sincosl_table): Make static.
37000
37001 2007-03-25  Bruno Haible  <bruno@clisp.org>
37002
37003         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
37004         if the compiler does not support C99.
37005
37006 2007-03-25  Bruno Haible  <bruno@clisp.org>
37007
37008         * modules/time (Makefile.am): Ensure all rule action lines start with a
37009         tab.
37010
37011 2007-03-24  Bruno Haible  <bruno@clisp.org>
37012
37013         * modules/tsearch-tests: New file.
37014         * tests/test-tsearch.sh: New file.
37015         * tests/test-tsearch.c: New file, mostly copied from glibc.
37016
37017         * modules/search-tests: New file.
37018         * tests/test-search.c: New file.
37019
37020         * modules/search: New file.
37021         * lib/search_.h: New file, incorporating lib/tsearch.h.
37022         * m4/search_h.m4: New file.
37023         * lib/tsearch.h: Remove file.
37024         * lib/tsearch.c: Include search.h instead of tsearch.h.
37025         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
37026         HAVE_TSEARCH.
37027         * modules/tsearch (Files): Remove lib/tsearch.h.
37028         (Depends-on): Add search.
37029         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
37030         (Include): Change tsearch.h into search.h.
37031
37032 2007-03-24  Bruno Haible  <bruno@clisp.org>
37033
37034         * modules/fpucw: New file.
37035         * lib/fpucw.h: New file.
37036         * lib/frexp.c: Include fpucw.h.
37037         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37038         (FUNC): Use them.
37039         * lib/printf-frexp.c: Include fpucw.h.
37040         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
37041         (FUNC): Use them.
37042         * lib/vasnprintf.c: Include fpucw.h.
37043         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
37044         'long double' calculations.
37045         * tests/test-frexpl.c: Include fpucw.h.
37046         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37047         * tests/test-printf-frexpl.c: Include fpucw.h.
37048         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
37049         * modules/frexpl (Depends-on): Add fpucw.
37050         * modules/printf-frexpl (Depends-on): Likewise.
37051         * modules/fprintf-posix (Depends-on): Likewise.
37052         * modules/snprintf-posix (Depends-on): Likewise.
37053         * modules/sprintf-posix (Depends-on): Likewise.
37054         * modules/vasnprintf-posix (Depends-on): Likewise.
37055         * modules/vasprintf-posix (Depends-on): Likewise.
37056         * modules/vfprintf-posix (Depends-on): Likewise.
37057         * modules/vsnprintf-posix (Depends-on): Likewise.
37058         * modules/vsprintf-posix (Depends-on): Likewise.
37059         * modules/frexpl-tests (Depends-on): Likewise.
37060         * modules/printf-frexpl-tests (Depends-on): Likewise.
37061
37062 2007-03-24  Bruno Haible  <bruno@clisp.org>
37063
37064         * lib/float+.h: New file.
37065         * lib/isnan.c: Include float+.h.
37066         (SIZE): New macro.
37067         (FUNC): Compare only SIZE bytes of the value.
37068         * lib/vasnprintf.c: Include float+.h.
37069         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
37070         SIZEOF_LDBL or SIZEOF_DBL bytes.
37071         * modules/isnan-nolibm (Files): Add lib/float+.h.
37072         * modules/isnanl-nolibm (Files): Add lib/float+.h.
37073         * modules/isnanl (Files): Add lib/float+.h.
37074         * modules/vasnprintf (Files): Add lib/float+.h.
37075
37076 2007-03-24  Bruno Haible  <bruno@clisp.org>
37077
37078         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
37079         include isnanl-nolibm.h.
37080
37081 2007-03-24  Bruno Haible  <bruno@clisp.org>
37082
37083         * tests/test-read-file.c (main): Don't produce spurious output for
37084         expected situations. Make the test fail if it encountered unexpected
37085         results.
37086
37087 2007-03-24  Bruno Haible  <bruno@clisp.org>
37088
37089         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
37090         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
37091
37092 2007-03-24  Bruno Haible  <bruno@clisp.org>
37093
37094         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
37095
37096 2007-03-24  Bruno Haible  <bruno@clisp.org>
37097
37098         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
37099         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
37100
37101         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
37102         * modules/utf8-ucs4: Turn into a symbolic link to module
37103         unistr/u8-mbtouc.
37104
37105         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
37106         utf8-ucs4-unsafe.
37107         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
37108         unistr/u8-mbtouc-unsafe.
37109
37110         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
37111         * modules/utf16-ucs4: Turn into a symbolic link to module
37112         unistr/u16-mbtouc.
37113
37114         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
37115         utf16-ucs4-unsafe.
37116         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
37117         unistr/u16-mbtouc-unsafe.
37118
37119         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
37120         * modules/ucs4-utf8: Turn into a symbolic link to module
37121         unistr/u8-ubtomb.
37122
37123         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
37124         * modules/ucs4-utf16: Turn into a symbolic link to module
37125         unistr/u16-ubtomb.
37126
37127 2007-03-24  Bruno Haible  <bruno@clisp.org>
37128
37129         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
37130         Enable the function only if HAVE_INLINE.
37131         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
37132         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37133         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
37134         Enable the function only if HAVE_INLINE.
37135         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
37136         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
37137         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
37138         Enable the function only if HAVE_INLINE.
37139         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
37140         Enable the function only if HAVE_INLINE.
37141         * modules/utf8-ucs4: Update.
37142         * modules/utf8-ucs4-unsafe: Update.
37143         * modules/utf16-ucs4: Update.
37144         * modules/utf16-ucs4-unsafe: Update.
37145         * modules/ucs4-utf8: Update.
37146         * modules/ucs4-utf16: Update.
37147
37148 2007-03-24  Bruno Haible  <bruno@clisp.org>
37149
37150         * lib/utf8-ucs4.h: Remove file.
37151         * lib/utf8-ucs4-unsafe.h: Remove file.
37152         * lib/utf16-ucs4.h: Remove file.
37153         * lib/utf16-ucs4-unsafe.h: Remove file.
37154         * lib/ucs4-utf8.h: Remove file.
37155         * lib/ucs4-utf16.h: Remove file.
37156         * lib/unistr.h: Include their previous contents.
37157         * m4/utf-ucs4.m4: Remove file.
37158         * m4/ucs4-utf.m4: Remove file.
37159         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
37160         (Depends-on): Add unistr/base.
37161         (configure.ac): Remove gl_UTF_UCS4.
37162         (Makefile.am): Update.
37163         (Include): Change to unistr.h.
37164         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
37165         (Depends-on): Add unistr/base.
37166         (configure.ac): Remove gl_UTF_UCS4.
37167         (Makefile.am): Update.
37168         (Include): Change to unistr.h.
37169         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
37170         (Depends-on): Add unistr/base.
37171         (configure.ac): Remove gl_UTF_UCS4.
37172         (Makefile.am): Update.
37173         (Include): Change to unistr.h.
37174         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
37175         (Depends-on): Add unistr/base.
37176         (configure.ac): Remove gl_UTF_UCS4.
37177         (Makefile.am): Update.
37178         (Include): Change to unistr.h.
37179         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
37180         (Depends-on): Add unistr/base.
37181         (configure.ac): Remove gl_UCS4_UTF.
37182         (Makefile.am): Update.
37183         (Include): Change to unistr.h.
37184         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
37185         (Depends-on): Add unistr/base.
37186         (configure.ac): Remove gl_UCS4_UTF.
37187         (Makefile.am): Update.
37188         (Include): Change to unistr.h.
37189         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
37190         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
37191         utf8-ucs4-unsafe.h.
37192         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
37193         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
37194         utf16-ucs4-unsafe.h.
37195         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
37196         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
37197         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
37198         * lib/unistr/u8-strchr.c: Likewise.
37199         * lib/unistr/u8-strrchr.c: Likewise.
37200         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
37201         * lib/unistr/u16-strchr.c: Likewise.
37202         * lib/unistr/u16-strrchr.c: Likewise.
37203         * lib/striconveh.c: Update.
37204         * lib/linebreak.c: Update.
37205
37206 2007-03-24  Bruno Haible  <bruno@clisp.org>
37207
37208         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
37209         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
37210
37211 2007-03-22  Bruno Haible  <bruno@clisp.org>
37212
37213         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
37214
37215 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
37216
37217         * MODULES.html.sh (File system functions): New module write-any-file.
37218         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
37219         * m4/write-any-file.m4: New files.
37220
37221 2007-03-23  Eric Blake  <ebb9@byu.net>
37222
37223         * gnulib-tool: Rearrange space-tab sequences, since some editors
37224         like to eat them.
37225
37226 2007-03-23  Eric Blake  <ebb9@byu.net>
37227
37228         * lib/version-etc.c (version_etc_va): Update license wording to
37229         be more concise.  Recommended by Richard Stallman.
37230
37231 2007-03-22  Bruno Haible  <bruno@clisp.org>
37232
37233         * lib/poll.c (MSG_PEEK): New fallback definition.
37234
37235 2007-03-22  Bruno Haible  <bruno@clisp.org>
37236
37237         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
37238         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
37239         (main): Update.
37240         Fixes a compilation error on BeOS.
37241
37242 2007-03-22  Bruno Haible  <bruno@clisp.org>
37243
37244         * modules/frexpl-tests: New file.
37245         * tests/test-frexpl.c: New file.
37246
37247         * modules/frexpl: New file.
37248         * m4/frexpl.m4: New file.
37249         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
37250         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
37251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
37252         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
37253         (Depends-on): Add frexpl. Remove isnanl-nolibm.
37254         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
37255
37256 2007-03-22  Bruno Haible  <bruno@clisp.org>
37257
37258         * lib/frexpl.c: Share code with lib/frexp.c.
37259         * modules/mathl (Files): Add lib/frexp.c.
37260         (Depends-on): Add isnanl-nolibm.
37261
37262 2007-03-22  Bruno Haible  <bruno@clisp.org>
37263
37264         * modules/printf-frexp (Files): Add m4/frexp.m4.
37265         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
37266         only if the found frexp function actually works.
37267
37268 2007-03-22  Bruno Haible  <bruno@clisp.org>
37269
37270         * lib/frexp.c: Remove older implementation that uses divisions.
37271
37272 2007-03-21  Bruno Haible  <bruno@clisp.org>
37273
37274         * modules/frexp-tests: New file.
37275         * tests/test-frexp.c: New file.
37276
37277         * modules/frexp: New file.
37278         * lib/frexp.c: New file.
37279         * m4/frexp.m4: New file.
37280         * lib/math_.h (frexp): New declaration.
37281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
37282         REPLACE_FREXP.
37283         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
37284
37285 2007-03-21  Bruno Haible  <bruno@clisp.org>
37286
37287         * modules/isnanl-tests: New file.
37288         * tests/test-isnanl.c: New file.
37289
37290         * modules/isnanl: New file.
37291         * lib/isnanl.h: New file.
37292         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
37293         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
37294         gl_FUNC_ISNANL_WORKS.
37295         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
37296         New macros.
37297
37298 2007-03-21  Bruno Haible  <bruno@clisp.org>
37299
37300         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
37301         lib/isnanl.h.
37302         (Include): Update.
37303         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
37304         * lib/vasnprintf.c: Update.
37305         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
37306         tests/test-isnanl.h, remove tests/test-isnanl.c.
37307         (Makefile.am): Update.
37308         * tests/test-isnanl-nolibm.c: New file.
37309         * tests/test-isnanl.h: New file.
37310         * tests/test-isnanl.c: Remove file.
37311
37312 2007-03-21  Jim Meyering  <jim@meyering.net>
37313
37314         When trying to open ".", treat ESTALE like EACCES.
37315         * lib/savewd.c (savewd_save): Resort to forking not just upon
37316         failure with EACCES, but also when errno is ESTALE.
37317
37318 2007-03-20  Bruno Haible  <bruno@clisp.org>
37319
37320         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
37321         Needed on AIX 5.1. Reported by Matthew Woehlke.
37322
37323 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37324
37325         Suggestions by Bruno Haible:
37326         * lib/acl-internal.h: Include "gettext.h" rather than rolling
37327         our own.
37328         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
37329         * modules/acl (Depends-on): Add gettext.
37330
37331 2007-03-19  Bruno Haible  <bruno@clisp.org>
37332
37333         * modules/iconvme: Remove file.
37334         * lib/iconvme.h: Remove file.
37335         * lib/iconvme.c: Remove file.
37336         * m4/iconvme.m4: Remove file.
37337
37338 2007-03-19  Bruno Haible  <bruno@clisp.org>
37339
37340         * doc/relocatable-maint.texi: Break long shell script line.
37341         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37342
37343 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37344
37345         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
37346         handle file_has_acl.
37347         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
37348         * lib/acl.c: Move header inclusions and related macro defns into
37349         lib/acl-internal.h.
37350         (S_ISLNK): Remove defn, since that's now done for us.
37351         (file_has_acl): Move to lib/file-has-acl.c.
37352         Call acl_trivial if available.  This is the crucial part of the fix.
37353         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
37354         shared within the library.  Rewrite a bit, partly to make it compatible
37355         with the GNU coding style.
37356         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
37357         Remove unnecessary double-quotes.
37358         Don't test for acl_to_text; the build will catch that.
37359         Replace acl_entries if it doesn't exist and it is needed.
37360         Check for -lsec and acl_trivial (as used on Solaris 10).
37361         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
37362         lib/file-has-acl.c.
37363         (Depends-on): Add sys_stat, for S_ISLNK.
37364
37365 2007-03-19  Ben Pfaff  <blp@gnu.org>
37366
37367         * doc/gnulib.texi: Fix typos.
37368         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
37369
37370 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37371
37372         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
37373         If size is zero here, buf must be zero.
37374
37375 2007-03-19  Simon Josefsson  <simon@josefsson.org>
37376
37377         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
37378         <bruno@clisp.org>.
37379
37380 2007-03-18  Bruno Haible  <bruno@clisp.org>
37381
37382         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
37383         Suggested by Eric Blake.
37384
37385 2007-03-18  Ben Pfaff  <blp@gnu.org>
37386
37387         * doc/relocatable.texi: Recommend using as prefix a directory
37388         that does not exist and will never be created.  Based on
37389         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
37390         and others.
37391
37392 2007-03-17  Bruno Haible  <bruno@clisp.org>
37393
37394         * lib/fchownat.c: Include lchown.h.
37395
37396 2007-03-17  Bruno Haible  <bruno@clisp.org>
37397
37398         Fix endless loop when the given allocated size was > INT_MAX.
37399         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
37400         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
37401         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
37402         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
37403         * lib/sprintf.c (sprintf): Likewise.
37404
37405 2007-03-17  Bruno Haible  <bruno@clisp.org>
37406
37407         * tests/test-argp-2.sh (func_compare): Output a context diff.
37408
37409 2007-03-17  Bruno Haible  <bruno@clisp.org>
37410
37411         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
37412         locale's decimal-point character.
37413
37414 2007-03-17  Bruno Haible  <bruno@clisp.org>
37415
37416         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
37417         before comparing it. Needed because on some platforms (e.g. x86) a
37418         'long double' occupies less bytes than sizeof (long double).
37419
37420 2007-03-17  Bruno Haible  <bruno@clisp.org>
37421
37422         * tests/test-crc.c (main): Make printf statements 64-bit clean.
37423         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
37424         * tests/test-getaddrinfo.c (simple): Likewise.
37425         * tests/test-read-file.c (main): Likewise.
37426
37427 2007-03-17  Bruno Haible  <bruno@clisp.org>
37428
37429         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
37430
37431 2007-03-17  Bruno Haible  <bruno@clisp.org>
37432
37433         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
37434         unused variable.
37435
37436 2007-03-17  Bruno Haible  <bruno@clisp.org>
37437
37438         * tests/test-c-strcasecmp.c: Include c-strcase.h.
37439         * tests/test-c-strncasecmp.c: Likewise.
37440
37441 2007-03-17  Bruno Haible  <bruno@clisp.org>
37442
37443         * modules/stdlib (Depends-on): Add unistd.
37444         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
37445         Needed for MacOS X 10.3.
37446
37447 2007-03-17  Bruno Haible  <bruno@clisp.org>
37448
37449         * lib/unistr/u-strdup.h: Include <stdlib.h>.
37450
37451 2007-03-17  Bruno Haible  <bruno@clisp.org>
37452
37453         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
37454
37455 2007-03-17  Bruno Haible  <bruno@clisp.org>
37456
37457         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
37458         to reflect files copied from gnulib (with or without modifications).
37459         Suggested by Jim Meyering.
37460
37461 2007-03-17  Eric Blake  <ebb9@byu.net>
37462
37463         * NEWS: Document stdlib change from 2007-02-18.
37464
37465 2007-03-17  Jim Meyering  <jim@meyering.net>
37466
37467         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
37468         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
37469         someone uses a name containing shell meta-characters.
37470         Reported by Alfred M. Szmidt.
37471
37472         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
37473
37474 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37475
37476         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
37477         and copy gettext configuration files only if configure.ac contains
37478         a use of AM_GNU_GETTEXT_VERSION.
37479
37480 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
37481
37482         * build-aux/bootstrap (gnulib_name): New variable.
37483         (gnulib_tool_options): Use it.
37484
37485 2007-03-13  Simon Josefsson  <simon@josefsson.org>
37486
37487         * tests/test-des.c: Use new namespace.
37488
37489 2007-03-15  Bruno Haible  <bruno@clisp.org>
37490
37491         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
37492         Reported by James Youngman <jay@gnu.org>.
37493
37494 2007-03-15  Bruno Haible  <bruno@clisp.org>
37495
37496         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
37497         declared prototype. Needed with cc on OSF/1 5.1.
37498
37499 2007-03-15  Bruno Haible  <bruno@clisp.org>
37500
37501         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
37502         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
37503         (struct gl_list_implementation): Add dispose_fn argument to the
37504         'create_empty', 'create' methods.
37505         (struct gl_list_impl_base): Add field 'dispose_fn'.
37506         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
37507         argument.
37508         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
37509         dispose_fn argument.
37510         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
37511         dispose_fn on the dropped values.
37512         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
37513         dispose_fn argument.
37514         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
37515         dropped values.
37516         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
37517         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37518         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
37519         (gl_tree_remove_node): Call dispose_fn on the dropped value.
37520         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
37521         argument.
37522         (gl_tree_list_free): Call dispose_fn on the dropped values.
37523         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
37524         the dropped values.
37525         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37526         Add dispose_fn argument.
37527         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
37528         Call dispose_fn on the dropped values.
37529         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
37530         Add dispose_fn argument.
37531         (gl_sublist_create): Initialize the 'dispose_fn' field.
37532         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
37533         * tests/test-array_list.c (main): Update.
37534         * tests/test-carray_list.c (main): Update.
37535         * tests/test-avltree_list.c (main): Update.
37536         * tests/test-rbtree_list.c (main): Update.
37537         * tests/test-avltreehash_list.c (main): Update.
37538         * tests/test-rbtreehash_list.c (main): Update.
37539         * tests/test-linked_list.c (main): Update.
37540         * tests/test-linkedhash_list.c (main): Update.
37541         * tests/test-array_oset.c (main): Update.
37542
37543 2007-03-15  Bruno Haible  <bruno@clisp.org>
37544
37545         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
37546         (gl_oset_create_empty): Add dispose_fn argument.
37547         (struct gl_oset_implementation): Add dispose_fn argument to
37548         'create_empty' method.
37549         (struct gl_oset_impl_base): Add dispose_fn field.
37550         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
37551         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
37552         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
37553         values.
37554         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
37555         (gl_tree_oset_free): Call dispose_fn on the dropped values.
37556         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37557         dropped value.
37558         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
37559         dropped value.
37560         * tests/test-array_oset.c (main): Update.
37561         * tests/test-avltree_oset.c (main): Update.
37562         * tests/test-rbtree_oset.c (main): Update.
37563         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
37564
37565 2007-03-13  Bruno Haible  <bruno@clisp.org>
37566
37567         * tests/test-stdbool.c (i): Update after last patch.
37568
37569 2007-03-12  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/quotearg.c: Include <wctype.h> early, before the definition of
37572         the iswprint macro. Needed on Solaris 2.5.1.
37573
37574 2007-03-12  Bruno Haible  <bruno@clisp.org>
37575
37576         * tests/test-printf-frexp.c (main): Declare x as volatile.
37577
37578 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37579
37580         * doc/gnulib.texi (Build robot for gnulib): New section.
37581
37582 2007-03-12  Jim Meyering  <jim@meyering.net>
37583
37584         * build-aux/bootstrap: New file.
37585         * build-aux/bootstrap.conf: New file, from coreutils.
37586
37587 2007-03-11  Bruno Haible  <bruno@clisp.org>
37588
37589         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
37590
37591 2007-03-12  Simon Josefsson  <simon@josefsson.org>
37592
37593         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
37594         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
37595         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
37596
37597 2007-03-11  Bruno Haible  <bruno@clisp.org>
37598
37599         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
37600         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
37601
37602 2007-03-11  Bruno Haible  <bruno@clisp.org>
37603
37604         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
37605         formula. Needed for SunPRO C 5.0.
37606
37607 2007-03-11  Bruno Haible  <bruno@clisp.org>
37608
37609         * modules/long-options (Depends-on): Add getopt.
37610
37611 2007-03-11  Bruno Haible  <bruno@clisp.org>
37612
37613         * modules/modechange (Depends-on): Add stdbool.
37614
37615 2007-03-11  Bruno Haible  <bruno@clisp.org>
37616
37617         * modules/i-ring (Depends-on): Add stdbool.
37618
37619 2007-03-11  Bruno Haible  <bruno@clisp.org>
37620
37621         * modules/gc-des (Depends-on): Add stdbool.
37622
37623 2007-03-11  Bruno Haible  <bruno@clisp.org>
37624
37625         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
37626
37627 2007-03-11  Bruno Haible  <bruno@clisp.org>
37628
37629         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
37630
37631 2007-03-11  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
37634
37635 2007-03-11  Bruno Haible  <bruno@clisp.org>
37636
37637         * lib/vasnprintf.c (sprintf): Undefine.
37638
37639 2007-03-11  Bruno Haible  <bruno@clisp.org>
37640
37641         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
37642         initializers in SunPRO C and Compaq C compilers.
37643
37644 2007-03-11  Bruno Haible  <bruno@clisp.org>
37645
37646         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
37647         decrementing code ANSI C compliant.
37648
37649 2007-03-11  Bruno Haible  <bruno@clisp.org>
37650
37651         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
37652         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
37653
37654 2007-03-11  Bruno Haible  <bruno@clisp.org>
37655
37656         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
37657         <stdbool.h> substitute doesn't pass.
37658
37659 2007-03-11  Bruno Haible  <bruno@clisp.org>
37660
37661         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
37662
37663 2007-03-11  Bruno Haible  <bruno@clisp.org>
37664
37665         * gnulib-tool (func_create_megatestdir): Create also an autobuild
37666         script, for submission to autobuild.josefsson.org.
37667
37668 2007-03-10  Bruno Haible  <bruno@clisp.org>
37669
37670         * modules/canonicalize-lgpl-tests: New file.
37671         * tests/test-canonicalize-lgpl.sh: New file.
37672         * tests/test-canonicalize-lgpl.c: New file.
37673
37674         * modules/c-strcase-tests: New file.
37675         * tests/test-c-strcase.sh: New file.
37676         * tests/test-c-strcasecmp.c: New file.
37677         * tests/test-c-strncasecmp.c: New file.
37678
37679         * modules/atexit-tests: New file.
37680         * tests/test-atexit.sh: New file.
37681         * tests/test-atexit.c: New file.
37682
37683 2007-03-10  Bruno Haible  <bruno@clisp.org>
37684
37685         * tests/test-binary-io.sh: Use temporary filenames that are not so
37686         likely to clash with those of other tests (in a parallel make).
37687         * tests/test-binary-io.c: Likewise.
37688
37689 2007-03-10  Bruno Haible  <bruno@clisp.org>
37690
37691         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
37692         fallback; use #error instead.
37693         Suggested by Simon Josefsson.
37694
37695 2007-03-10  Bruno Haible  <bruno@clisp.org>
37696
37697         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
37698         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
37699         first and the last.
37700
37701 2007-03-10  Bruno Haible  <bruno@clisp.org>
37702
37703         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
37704
37705 2007-03-10  Bruno Haible  <bruno@clisp.org>
37706
37707         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
37708         "make distcheck".
37709         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
37710         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
37711         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
37712
37713 2007-03-10  Bruno Haible  <bruno@clisp.org>
37714
37715         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
37716         variable.
37717         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
37718         variable.
37719
37720 2007-03-09  Eric Blake  <ebb9@byu.net>
37721         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
37722
37723         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
37724         types are not being provided by gnulib.
37725         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
37726         types are supported.
37727
37728 2007-03-10  Bruno Haible  <bruno@clisp.org>
37729
37730         * lib/stdio_.h (__attribute__): New macro.
37731         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
37732         vsprintf): Specify __attribute__ __format__ for GCC.
37733         Suggested by Eric Blake.
37734
37735 2007-03-09  Bruno Haible  <bruno@clisp.org>
37736
37737         * modules/printf-posix-tests: New file.
37738         * tests/test-printf-posix.sh: New file.
37739         * tests/test-printf-posix.c: New file.
37740
37741         * modules/printf-posix: New file.
37742         * lib/printf.c: New file.
37743         * m4/printf-posix-rpl.m4: New file.
37744         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
37745         REPLACE_PRINTF.
37746         * lib/stdio_.h (printf): New declaration.
37747         (format, __format__, ____printf____, ____scanf____, ____strftime____,
37748         ____strfmon____): New macros.
37749         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
37750         REPLACE_PRINTF.
37751
37752 2007-03-09  Bruno Haible  <bruno@clisp.org>
37753
37754         * tests/test-vasnprintf-posix2.sh: New file.
37755         * tests/test-vasnprintf-posix2.c: New file.
37756         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
37757         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37758         (Makefile.am): Activate test-vasnprintf-posix2.sh.
37759
37760         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
37761         a locale dependent decimal point, rather than always '.'.
37762
37763 2007-03-09  Eric Blake  <ebb9@byu.net>
37764
37765         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
37766         spite of platforms like Tandem/NSK that define it to -1.
37767
37768 2007-03-08  Bruno Haible  <bruno@clisp.org>
37769
37770         * modules/vprintf-posix-tests: New file.
37771         * tests/test-vprintf-posix.sh: New file.
37772         * tests/test-vprintf-posix.c: New file.
37773         * tests/test-printf-posix.h: New file.
37774
37775         * modules/vprintf-posix: New file.
37776         * lib/vprintf.c: New file.
37777         * m4/vprintf-posix.m4: New file.
37778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
37779         REPLACE_VPRINTF.
37780         * lib/stdio_.h (vprintf): New declaration.
37781         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
37782         REPLACE_VPRINTF.
37783
37784 2007-03-08  Bruno Haible  <bruno@clisp.org>
37785
37786         * modules/fprintf-posix-tests: New file.
37787         * tests/test-fprintf-posix.sh: New file.
37788         * tests/test-fprintf-posix.c: New file.
37789
37790         * modules/fprintf-posix: New file.
37791         * lib/fprintf.c: New file.
37792         * m4/fprintf-posix.m4: New file.
37793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
37794         REPLACE_FPRINTF.
37795         * lib/stdio_.h (fprintf): New declaration.
37796         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
37797         REPLACE_FPRINTF.
37798
37799 2007-03-08  Bruno Haible  <bruno@clisp.org>
37800
37801         * modules/vfprintf-posix-tests: New file.
37802         * tests/test-vfprintf-posix.sh: New file.
37803         * tests/test-vfprintf-posix.c: New file.
37804         * tests/test-fprintf-posix.h: New file.
37805         * tests/test-fprintf-posix.out: New file.
37806
37807         * modules/vfprintf-posix: New file.
37808         * lib/vfprintf.c: New file.
37809         * m4/vfprintf-posix.m4: New file.
37810         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
37811         REPLACE_VFPRINTF.
37812         * lib/stdio_.h (vfprintf): New declaration.
37813         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
37814         REPLACE_VFPRINTF.
37815
37816 2007-03-08  Bruno Haible  <bruno@clisp.org>
37817
37818         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
37819
37820 2007-03-08  Bruno Haible  <bruno@clisp.org>
37821
37822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
37823         instead of 'expr' invocations.
37824         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37825         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37826         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37827         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37828         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37829         Suggested by Paul Eggert.
37830
37831 2007-03-08  Bruno Haible  <bruno@clisp.org>
37832
37833         * modules/fseterr-tests: New file.
37834         * tests/test-fseterr.c: New file.
37835
37836         * modules/fseterr: New file.
37837         * lib/fseterr.h: New file.
37838         * lib/fseterr.c: New file.
37839
37840 2007-03-08  Bruno Haible  <bruno@clisp.org>
37841
37842         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
37843         * lib/getopt_.h: Likewise.
37844         * lib/mbswidth.h: Likewise.
37845         * lib/setenv.h: Likewise.
37846         * lib/vasnprintf.h: Likewise.
37847         * lib/vasprintf.h: Likewise.
37848         * lib/verror.h: Likewise.
37849         * lib/xsetenv.h: Likewise.
37850         * lib/xvasprintf.h: Likewise.
37851
37852 2007-03-08  Jim Meyering  <jim@meyering.net>
37853
37854         * users.txt: Add parted.
37855
37856         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
37857
37858 2007-03-07  Bruno Haible  <bruno@clisp.org>
37859
37860         * m4/printf.m4: Make the shell script snippets copy&pastable.
37861
37862 2007-03-02  Bruno Haible  <bruno@clisp.org>
37863
37864         * lib/netinet_in_.h: New file.
37865         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
37866         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
37867         * modules/netinet_in (Files): Add lib/netinet_in_.h.
37868         (Depends-on): Add absolute-header.
37869         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
37870         into netinet/in.h.
37871
37872 2007-03-03  Bruno Haible  <bruno@clisp.org>
37873
37874         * lib/sys_select_.h: New file.
37875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
37876         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
37877         * modules/sys_select (Files): Add lib/sys_select_.h.
37878         (Depends-on): Add absolute-header.
37879         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
37880         into sys/select.h.
37881
37882 2007-03-02  Bruno Haible  <bruno@clisp.org>
37883
37884         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
37885         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
37886         values.
37887         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
37888         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
37889         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
37890         * modules/sys_socket (Depends-on): Add absolute-header.
37891         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
37892         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
37893         (Include): Remove requirement of inclusion of <sys/types.h>.
37894
37895 2007-03-02  Bruno Haible  <bruno@clisp.org>
37896
37897         * lib/byteswap_.h (bswap_32): Fix formula.
37898
37899 2007-03-06  Bruno Haible  <bruno@clisp.org>
37900
37901         * modules/sprintf-posix-tests: New file.
37902         * tests/test-sprintf-posix.c: New file.
37903
37904         * modules/sprintf-posix: New file.
37905         * lib/sprintf.c: New file.
37906         * m4/sprintf-posix.m4: New file.
37907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
37908         REPLACE_SPRINTF.
37909         * lib/stdio_.h (sprintf): New declaration.
37910         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
37911         REPLACE_SPRINTF.
37912
37913 2007-03-06  Bruno Haible  <bruno@clisp.org>
37914
37915         * modules/vsprintf-posix-tests: New file.
37916         * tests/test-vsprintf-posix.c: New file.
37917         * tests/test-sprintf-posix.h: New file.
37918
37919         * modules/vsprintf-posix: New file.
37920         * lib/vsprintf.c: New file.
37921         * m4/vsprintf-posix.m4: New file.
37922         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
37923         REPLACE_VSPRINTF.
37924         * lib/stdio_.h (vsprintf): New declaration.
37925         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
37926         REPLACE_VSPRINTF.
37927
37928 2007-03-06  Bruno Haible  <bruno@clisp.org>
37929
37930         * modules/vsnprintf (Depend-on): Remove minmax.
37931
37932 2007-03-06  Bruno Haible  <bruno@clisp.org>
37933
37934         * modules/snprintf-posix-tests: New file.
37935         * tests/test-snprintf-posix.c: New file.
37936
37937         * modules/snprintf-posix: New file.
37938         * m4/snprintf-posix.m4: New file.
37939         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
37940         gl_FUNC_SNPRINTF.
37941         (gl_FUNC_SNPRINTF): Invoke it.
37942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
37943         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
37944         is set.
37945         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
37946
37947 2007-03-06  Bruno Haible  <bruno@clisp.org>
37948
37949         * modules/vsnprintf-posix-tests: New file.
37950         * tests/test-vsnprintf-posix.c: New file.
37951         * tests/test-snprintf-posix.h: New file.
37952
37953         * modules/vsnprintf-posix: New file.
37954         * m4/vsnprintf-posix.m4: New file.
37955         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
37956         gl_FUNC_VSNPRINTF.
37957         (gl_FUNC_VSNPRINTF): Invoke it.
37958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
37959         * lib/stdio_.h (vsnprintf): Define as a replacement if
37960         REPLACE_VSNPRINTF is set.
37961         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
37962
37963 2007-03-06  Bruno Haible  <bruno@clisp.org>
37964
37965         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
37966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
37967
37968 2007-03-06  Bruno Haible  <bruno@clisp.org>
37969
37970         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
37971         (asinl): Declare also if HAVE_DECL_ASINL is set.
37972         (atanl): Declare also if HAVE_DECL_ATANL is set.
37973         (ceill): Declare also if HAVE_DECL_CEILL is set.
37974         (cosl): Declare also if HAVE_DECL_COSL is set.
37975         (expl): Declare also if HAVE_DECL_EXPL is set.
37976         (floorl): Declare also if HAVE_DECL_FLOORL is set.
37977         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
37978         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
37979         (logl): Declare also if HAVE_DECL_LOGL is set.
37980         (sinl): Declare also if HAVE_DECL_SINL is set.
37981         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
37982         (tanl): Declare also if HAVE_DECL_TANL is set.
37983         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
37984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
37985         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
37986         declaration of frexpl, ldexpl.
37987         * modules/printf-frexpl (Depends-on): Add math.
37988         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
37989
37990 2007-03-05  Bruno Haible  <bruno@clisp.org>
37991
37992         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
37993         frexpl and ldexpl are declared.
37994         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
37995
37996 2007-03-05  Bruno Haible  <bruno@clisp.org>
37997
37998         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
37999         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
38000
38001 2007-03-05  Bruno Haible  <bruno@clisp.org>
38002
38003         * lib/stdio_.h: Include <stddef.h>.
38004
38005 2007-03-05  Bruno Haible  <bruno@clisp.org>
38006
38007         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
38008
38009 2007-03-05  Bruno Haible  <bruno@clisp.org>
38010
38011         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
38012         NetBSD 4, from Ralf Wildenhues.
38013
38014 2007-03-04  Bruno Haible  <bruno@clisp.org>
38015
38016         * lib/vasprintf.h: Update #if logic for the case when the functions
38017         exist but are overridden.
38018
38019 2007-03-04  Bruno Haible  <bruno@clisp.org>
38020
38021         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
38022         implementations: glibc-2.4 and MacOS X 10.3.
38023         * tests/test-vasnprintf-posix.c (test_function): Test also the case
38024         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
38025         * tests/test-vasprintf-posix.c (test_function): Likewise.
38026
38027 2007-03-04  Bruno Haible  <bruno@clisp.org>
38028
38029         * modules/vasprintf-posix-tests: New file.
38030         * tests/test-vasprintf-posix.c: New file.
38031
38032         * modules/vasprintf-posix: New file.
38033         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
38034         defined.
38035         * m4/vasprintf-posix.m4: New file.
38036         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
38037         gl_FUNC_VASPRINTF.
38038         (gl_FUNC_VASPRINTF): Invoke it.
38039         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
38040         here.
38041         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
38042
38043 2007-03-04  Bruno Haible  <bruno@clisp.org>
38044
38045         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
38046         REPLACE_GETTIMEOFDAY.
38047         * modules/sys_time (Makefile.am): Likewise.
38048         * m4/sys_time_h.m4: Likewise.
38049         * m4/gettimeofday.m4: Likewise.
38050
38051 2007-03-04  Bruno Haible  <bruno@clisp.org>
38052
38053         * modules/vasnprintf-posix-tests: New file.
38054         * tests/test-vasnprintf-posix.c: New file.
38055
38056         * modules/vasnprintf-posix: New file.
38057         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
38058         printf-frexpl.h.
38059         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
38060         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
38061         REPLACE_VASNPRINTF is defined.
38062         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
38063         gl_FUNC_VASNPRINTF.
38064         (gl_FUNC_VASNPRINTF): Invoke it.
38065         * m4/vasnprintf-posix.m4: New file.
38066         * m4/printf.m4: New file.
38067
38068 2007-03-04  Bruno Haible  <bruno@clisp.org>
38069
38070         Compile progreloc.c only if --enable-relocatable is specified.
38071         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
38072         if --enable-relocatable was specified.
38073         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
38074         lib_SOURCES.
38075
38076 2007-03-04  Jim Meyering  <jim@meyering.net>
38077
38078         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
38079         Use it consistently, rather than enumerating errno constants.
38080
38081 2007-03-04  Bruno Haible  <bruno@clisp.org>
38082
38083         * modules/xvasprintf-tests: New file.
38084         * tests/test-xvasprintf.c: New file.
38085
38086         * modules/vasprintf-tests: New file.
38087         * tests/test-vasprintf.c: New file.
38088
38089         * modules/vasnprintf-tests: New file.
38090         * tests/test-vasnprintf.c: New file.
38091
38092         * modules/vsnprintf-tests: New file.
38093         * tests/test-vsnprintf.c: New file.
38094
38095         * modules/snprintf-tests: New file.
38096         * tests/test-snprintf.c: New file.
38097
38098 2007-03-04  Bruno Haible  <bruno@clisp.org>
38099
38100         Compile relocatable.c only if --enable-relocatable is specified.
38101         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
38102         gl_RELOCATABLE_LIBRARY.
38103         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
38104         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
38105         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
38106         gl_RELOCATABLE_LIBRARY.
38107         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
38108         (Makefile.am): Remove lib_SOURCES.
38109         * modules/relocatable-lib-lgpl (configure.ac): Invoke
38110         gl_RELOCATABLE_LIBRARY.
38111         (Makefile.am): Remove lib_SOURCES.
38112         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
38113         always.
38114         * modules/relocatable-prog-wrapper (configure.ac): Invoke
38115         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
38116
38117 2007-03-04  Bruno Haible  <bruno@clisp.org>
38118
38119         * modules/argmatch-tests: New file.
38120         * tests/test-argmatch.c: New file.
38121
38122         * tests/test-allocsa.c (main): Halve the number of loop runs.
38123
38124         * modules/alloca-opt-tests: New file.
38125         * tests/test-alloca-opt.c: New file.
38126
38127 2007-03-04  Jim Meyering  <jim@meyering.net>
38128
38129         Work around difference between Linux ACLs and Solaris 10 ZFS.
38130         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
38131         for EINVAL.
38132
38133 2007-03-03  Bruno Haible  <bruno@clisp.org>
38134
38135         * modules/relocatable-prog (Depends-on): Add back progreloc's
38136         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
38137
38138 2007-03-03  Bruno Haible  <bruno@clisp.org>
38139
38140         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
38141         * modules/relocatable-lib: New file.
38142
38143 2007-03-03  Bruno Haible  <bruno@clisp.org>
38144
38145         * modules/relocatable-prog: Renamed from modules/relocatable.
38146         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
38147
38148 2007-03-03  Bruno Haible  <bruno@clisp.org>
38149
38150         * modules/relocatable-script (Files): Add doc/relocatable.texi,
38151         m4/relocatable-lib.m4.
38152         (Depends-on): Remove 'relocatable'.
38153         (configure.ac): Add gl_RELOCATABLE_NOP.
38154
38155 2007-03-03  Bruno Haible  <bruno@clisp.org>
38156
38157         * modules/relocatable-prog-wrapper: New file.
38158         * modules/relocatable (Depends-on): Add it. Remove all other
38159         dependencies except progname.
38160         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
38161
38162         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
38163         (gl_FUNC_STRERROR): Nop.
38164         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
38165
38166         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
38167         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
38168
38169         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
38170         (gl_FUNC_READLINK): Update.
38171
38172         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
38173
38174 2007-03-03  Bruno Haible  <bruno@clisp.org>
38175
38176         * lib/xreadlink.c: Include <unistd.h> unconditionally.
38177         * modules/xreadlink (Depends-on): Add unistd.
38178         * modules/xreadlink-with-size (Depends-on): Likewise.
38179
38180 2007-03-03  Bruno Haible  <bruno@clisp.org>
38181
38182         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
38183         extracted from gt_FUNC_SETENV.
38184         (gt_FUNC_SETENV): Remove macro.
38185         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
38186         remove gt_FUNC_SETENV.
38187
38188 2007-03-03  Bruno Haible  <bruno@clisp.org>
38189
38190         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
38191         ENABLE_RELOCATABLE here.
38192         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
38193
38194 2007-03-03  Bruno Haible  <bruno@clisp.org>
38195
38196         * modules/rbtreehash-list-tests (Depends-on): Add progname.
38197         * tests/test-rbtreehash_list.c: Include progname.h.
38198         (main): Call set_program_name.
38199
38200         * modules/rbtree-oset-tests (Depends-on): Add progname.
38201         * tests/test-rbtree_oset.c: Include progname.h.
38202         (main): Call set_program_name.
38203
38204         * modules/rbtree-list-tests (Depends-on): Add progname.
38205         * tests/test-rbtree_list.c: Include progname.h.
38206         (main): Call set_program_name.
38207
38208         * modules/linked-list-tests (Depends-on): Add progname.
38209         * tests/test-linked_list.c: Include progname.h.
38210         (main): Call set_program_name.
38211
38212 2007-03-03  Bruno Haible  <bruno@clisp.org>
38213
38214         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
38215         All uses of __restrict changed to _Restrict_.
38216         * lib/glob_.h (__restrict): Remove macro.
38217
38218 2007-03-02  Bruno Haible  <bruno@clisp.org>
38219
38220         * modules/gettext (configure.ac): Require gettext infrastructure
38221         from version 0.16.1.
38222
38223 2007-03-02  Bruno Haible  <bruno@clisp.org>
38224
38225         * modules/linkedhash-list-tests (Depends-on): Add progname.
38226         * tests/test-linkedhash_list.c: Include progname.h.
38227         (main): Call set_program_name.
38228
38229         * modules/carray-list-tests (Depends-on): Add progname.
38230         * tests/test-carray_list.c: Include progname.h.
38231         (main): Call set_program_name.
38232
38233         * modules/avltreehash-list-tests (Depends-on): Add progname.
38234         * tests/test-avltreehash_list.c: Include progname.h.
38235         (main): Call set_program_name.
38236
38237         * modules/avltree-oset-tests (Depends-on): Add progname.
38238         * tests/test-avltree_oset.c: Include progname.h.
38239         (main): Call set_program_name.
38240
38241         * modules/avltree-list-tests (Depends-on): Add progname.
38242         * tests/test-avltree_list.c: Include progname.h.
38243         (main): Call set_program_name.
38244
38245         * modules/array-oset-tests (Depends-on): Add progname.
38246         * tests/test-array_oset.c: Include progname.h.
38247         (main): Call set_program_name.
38248
38249         * modules/array-list-tests (Depends-on): Add progname.
38250         * tests/test-array_list.c: Include progname.h.
38251         (main): Call set_program_name.
38252
38253         * modules/argp-tests (Depends-on): Add progname.
38254         * tests/test-argp.c: Include argp.h first. Include progname.h.
38255         (main): Call set_program_name.
38256
38257 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
38258
38259         * doc/gnulib-tool.texi (Initial import): Reword description of
38260         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
38261         limited effect even if defined after the first system include.
38262
38263 2007-03-01  Bruno Haible  <bruno@clisp.org>
38264
38265         * build-aux/config.libpath: Update to libtool-1.5.22.
38266         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38267
38268 2007-03-01  Bruno Haible  <bruno@clisp.org>
38269
38270         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
38271         foo_CFLAGS.
38272         Reported by Ralf Wildenhues.
38273
38274 2007-03-01  Bruno Haible  <bruno@clisp.org>
38275
38276         * build-aux/install-reloc: Remove object files left over by some
38277         compilers.
38278         Reported by Ralf Wildenhues.
38279
38280 2007-03-01  Bruno Haible  <bruno@clisp.org>
38281
38282         * build-aux/install-reloc: Break long lines.
38283
38284 2007-03-01  Bruno Haible  <bruno@clisp.org>
38285
38286         * doc/relocatable.texi: Document that it may not work on OpenBSD.
38287         Reported by Ralf Wildenhues.
38288
38289 2007-03-01  Bruno Haible  <bruno@clisp.org>
38290
38291         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
38292         include ordering constraints.
38293
38294 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38295
38296         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
38297         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
38298         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
38299         as another example.
38300         * lib/time_.h: Fix misspelling.
38301         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38302         Require gl_HEADER_TIME_H_DEFAULTS.
38303         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
38304         * m4/time_r.m4 (gl_TIME_R): Likewise.
38305         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
38306
38307 2007-03-01  Bruno Haible  <bruno@clisp.org>
38308
38309         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
38310         * m4/utimens.m4 (gl_UTIMENS): Likewise.
38311
38312 2007-03-01  Jim Meyering  <jim@meyering.net>
38313
38314         * modules/xreadlink (Maintainer): Add my name.
38315         * modules/xreadlink-with-size (Depends-on): Alphabetize.
38316
38317 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
38318             Bruno Haible  <bruno@clisp.org>
38319
38320         * build-aux/install-reloc: Compile also c-ctype.c.
38321         * build-aux/relocatable.sh.in: New file.
38322         * doc/relocatable.texi: New file.
38323         * doc/relocatable-maint.texi: New file.
38324         * doc/gnulib.texi: Include relocatable-maint.texi.
38325         * lib/progreloc.c: Include unistd.h unconditionally.
38326         * lib/relocwrapper.c: Include unistd.h unconditionally.
38327         Include c-ctype.h.
38328         (add_dotbin): Use c_tolower.
38329         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
38330         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
38331         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
38332         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
38333         to m4/relocatable-lib.m4.
38334         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
38335         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
38336         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
38337         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
38338         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
38339         * modules/relocatable: New file.
38340         * modules/relocatable-lib: New file.
38341         * modules/relocatable-script: New file.
38342
38343 2007-02-28  Bruno Haible  <bruno@clisp.org>
38344
38345         Import --enable-relocatable infrastructure.
38346         * build-aux/config.libpath: New file, from GNU gettext.
38347         * build-aux/install-reloc: New file, from GNU gettext.
38348         * build-aux/reloc-ldflags: New file, from GNU gettext.
38349         * lib/relocatable.h: New file, from GNU gettext.
38350         * lib/relocatable.c: New file, from GNU gettext.
38351         * lib/relocwrapper.c: New file, from GNU gettext.
38352         * m4/relocatable.m4: New file, from GNU gettext.
38353
38354 2007-02-28  Bruno Haible  <bruno@clisp.org>
38355
38356         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
38357
38358         * modules/xreadlink: New file, from GNU gettext with modifications.
38359         * lib/xreadlink.c: New file, from GNU gettext.
38360         * lib/xreadlink.h: Add comments.
38361         (xreadlink): New declaration.
38362
38363         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
38364         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
38365         lib/xreadlink-with-size.c.
38366         (configure.ac): Remove gl_XREADLINK invocation.
38367         (Makefile.am): Augment lib_SOURCES.
38368         * m4/xreadlink.m4: Remove file.
38369         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
38370         (xreadlink_with_size): Renamed from xreadink.
38371         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
38372         * modules/canonicalize (Depends-on): Replace xreadlink with
38373         xreadlink-with-size.
38374         * lib/canonicalize.c (canonicalize_filename_mode): Update.
38375
38376 2007-02-25  Jim Meyering  <jim@meyering.net>
38377
38378         * build-aux/announce-gen: When complaining about excess arguments,
38379         list them.
38380
38381 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
38382
38383         * README: Document signed integer overflow situation more
38384         accurately.
38385
38386 2007-02-25  Bruno Haible  <bruno@clisp.org>
38387
38388         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
38389         'a' or 'A' conversion.
38390
38391 2007-02-25  Bruno Haible  <bruno@clisp.org>
38392
38393         * modules/filename: Renamed from modules/pathname.
38394         (Files): Replace lib/pathname.h with lib/filename.h. Replace
38395         lib/concatpath.c with lib/concat-filename.c.
38396         (Makefile.am): Update.
38397         (Include): Replace pathname.h with filename.h.
38398         * lib/filename.h: Renamed from lib/pathname.h.
38399         (concatenated_filename): Renamed from concatenated_pathname.
38400         * lib/concat-filename.c: Renamed from lib/concatpath.c.
38401         (concatenated_filename): Renamed from concatenated_pathname.
38402         * lib/findprog.c: Include filename.h instead of pathname.h.
38403         (find_in_path): Update.
38404         * lib/javacomp.c: Include filename.h instead of pathname.h.
38405         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38406         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38407         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38408         is_oldgcj_14_13_usable, is_javac_usable): Update.
38409         * lib/javaexec.c: Include filename.h instead of pathname.h.
38410         (execute_java_class): Update.
38411         * modules/findprog: Update.
38412         * modules/javacomp: Update.
38413         * modules/javaexec: Update.
38414         * MODULES.html.sh (File system functions): Add 'filename', remove
38415         'pathname'.
38416
38417 2007-02-25  Bruno Haible  <bruno@clisp.org>
38418
38419         * modules/printf-frexpl-tests: New file.
38420         * tests/test-printf-frexpl.c: New file.
38421
38422         * modules/printf-frexpl: New file.
38423         * lib/printf-frexpl.h: New file.
38424         * lib/printf-frexpl.c: New file.
38425         * m4/printf-frexpl.m4: New file.
38426
38427 2007-02-25  Bruno Haible  <bruno@clisp.org>
38428
38429         * modules/printf-frexp-tests: New file.
38430         * tests/test-printf-frexp.c: New file.
38431
38432         * modules/printf-frexp: New file.
38433         * lib/printf-frexp.h: New file.
38434         * lib/printf-frexp.c: New file.
38435         * m4/printf-frexp.m4: New file.
38436
38437 2007-02-25  Bruno Haible  <bruno@clisp.org>
38438
38439         Assume automake >= 1.10 for the tests.
38440         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
38441         * modules/arctwo-tests: Likewise.
38442         * modules/argp-tests: Likewise.
38443         * modules/avltree-list-tests: Likewise.
38444         * modules/avltree-oset-tests: Likewise.
38445         * modules/avltreehash-list-tests: Likewise.
38446         * modules/carray-list-tests: Likewise.
38447         * modules/crc-tests: Likewise.
38448         * modules/des-tests: Likewise.
38449         * modules/gc-arcfour-tests: Likewise.
38450         * modules/gc-arctwo-tests: Likewise.
38451         * modules/gc-des-tests: Likewise.
38452         * modules/gc-hmac-md5-tests: Likewise.
38453         * modules/gc-hmac-sha1-tests: Likewise.
38454         * modules/gc-md2-tests: Likewise.
38455         * modules/gc-md4-tests: Likewise.
38456         * modules/gc-md5-tests: Likewise.
38457         * modules/gc-pbkdf2-sha1-tests: Likewise.
38458         * modules/gc-rijndael-tests: Likewise.
38459         * modules/gc-sha1-tests: Likewise.
38460         * modules/gc-tests: Likewise.
38461         * modules/getaddrinfo-tests: Likewise.
38462         * modules/hmac-md5-tests: Likewise.
38463         * modules/hmac-sha1-tests: Likewise.
38464         * modules/linked-list-tests: Likewise.
38465         * modules/linkedhash-list-tests: Likewise.
38466         * modules/lock-tests: Likewise.
38467         * modules/md2-tests: Likewise.
38468         * modules/md4-tests: Likewise.
38469         * modules/md5-tests: Likewise.
38470         * modules/rbtree-list-tests: Likewise.
38471         * modules/rbtree-oset-tests: Likewise.
38472         * modules/rbtreehash-list-tests: Likewise.
38473         * modules/read-file-tests: Likewise.
38474         * modules/rijndael-tests: Likewise.
38475         * modules/stdint-tests: Likewise.
38476         * modules/tls-tests: Likewise.
38477
38478 2007-02-24  Bruno Haible  <bruno@clisp.org>
38479
38480         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
38481         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
38482         function; instead check whether isnan with a double argument links.
38483         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
38484         function; instead check whether isnan with a 'long double' argument
38485         links.
38486         Reported by Eric Blake <ebb9@byu.net>.
38487
38488 2007-02-24  Bruno Haible  <bruno@clisp.org>
38489
38490         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
38491         defined.
38492         * lib/isnanl.c: Remove all code. Just include isnan.c.
38493         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
38494
38495 2007-02-25  Jim Meyering  <jim@meyering.net>
38496
38497         Avoid conflicting types for 'unsetenv' on FreeBSD.
38498         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
38499         conflicting with FreeBSD's (5.0 and 6.1) function declaration
38500         in stdlib.h.
38501
38502 2007-02-24  Bruno Haible  <bruno@clisp.org>
38503
38504         * modules/isnanl-nolibm-tests: New file.
38505         * tests/test-isnanl.c: New file.
38506
38507         * modules/isnanl-nolibm: New file.
38508         * lib/isnanl.h: New file.
38509         * lib/isnanl.c: New file.
38510         * m4/isnanl.m4: New file.
38511
38512 2007-02-24  Bruno Haible  <bruno@clisp.org>
38513
38514         * modules/isnan-nolibm-tests: New file.
38515         * tests/test-isnan.c: New file.
38516
38517         * modules/isnan-nolibm: New file.
38518         * lib/isnan.h: New file.
38519         * lib/isnan.c: New file.
38520         * m4/isnan.m4: New file.
38521
38522 2007-02-24  Bruno Haible  <bruno@clisp.org>
38523
38524         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
38525         assume that an exponent fits in 20 bits.
38526
38527 2007-02-24  Jim Meyering  <jim@meyering.net>
38528
38529         * m4/regex.m4: Update the description of the configure-time option,
38530         --without-included-regex, to state accurately what the defaults are,
38531         and perhaps to give people an idea why using this option is risky.
38532
38533 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38534
38535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
38536         loops on small arguments.  This attempts to avoid the problem
38537         Bruno Haible reported for AIX 4.3.2 in
38538         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
38539
38540 2007-02-23  Bruno Haible  <bruno@clisp.org>
38541
38542         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
38543         Needed for help2man.
38544
38545 2007-02-23  Karl Berry  <karl@gnu.org>
38546
38547         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
38548         exists, foo.h should be cvs-ignored, not committed.
38549
38550 2007-02-23  Eric Blake  <ebb9@byu.net>
38551
38552         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
38553         * lib/stat-time.h (includes): Likewise.
38554         * lib/utimecmp.c (includes): Likewise.
38555         * lib/utimens.h (includes): Likewise.
38556         * lib/getdate.y (includes): Also include "timespec.h" for use
38557         internal to the module.
38558         * modules/utimens (Depends-on): Revert yesterday's patch.
38559         * modules/nanosleep (Depends-on): Add missing dependency.
38560
38561 2007-02-22  Bruno Haible  <bruno@clisp.org>
38562
38563         * lib/glob.c: Don't include getlogin_r.h.
38564
38565 2007-02-22  Jim Meyering  <jim@meyering.net>
38566
38567         * modules/utimens (Depends-on): Add timespec, required for
38568         utimens.h's inclusion of timespec.h.
38569
38570 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
38571
38572         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
38573         long unreadable paths in GNU/Linux.  Problem reported by Andreas
38574         Schwab in
38575         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
38576         I'll try to think of a better way to fix the Solaris problem.
38577
38578         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
38579         like glibc; on Solaris 10, it fails with errno == EINVAL.
38580         POSIX says the behavior is unspecified if the first argument is NULL,
38581         so play it safe and never pass NULL to the system getcwd.
38582
38583 2007-02-21  Jim Meyering  <jim@meyering.net>
38584
38585         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
38586         of gettimeofday.  It would conflict with the one now always
38587         provided via sys_time_.h.  Reported by Matthew Woehlke, as
38588         an IRIX 6.5 build failure.
38589
38590 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38591
38592         Minor fixups to port to Solaris 10 with Sun C 5.8.
38593         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
38594         * modules/getcwd (Depends-on): Add dirfd.
38595         * lib/putenv.c (putenv): #undef it.
38596         (rpl_putenv): New decl.
38597         (malloc, free): Include <stdlib.h> rather than prototyping separately.
38598
38599 2007-02-20  Bruno Haible  <bruno@clisp.org>
38600
38601         * modules/stdio-tests: New file.
38602         * tests/test-stdio.c: New file.
38603
38604         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
38605         (Depends-on): Add stdio.
38606         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38607         (Include): Use <stdio.h> instead of vsnprintf.h.
38608         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38609         HAVE_DECL_VSNPRINTF.
38610         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
38611
38612         * modules/snprintf (Files): Remove lib/snprintf.h.
38613         (Depends-on): Add stdio.
38614         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
38615         (Include): Use <stdio.h> instead of snprintf.h.
38616         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
38617         HAVE_DECL_SNPRINTF.
38618         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
38619         * lib/getaddrinfo.c: Likewise.
38620
38621         * modules/stdio: New file.
38622         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
38623         * lib/snprintf.h: Remove file.
38624         * lib/vsnprintf.h: Remove file.
38625         * lib/.cppi-disable: Remove snprintf.h.
38626         * m4/stdio_h.m4: New file.
38627         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
38628
38629 2007-02-20  Jim Meyering  <jim@meyering.net>
38630
38631         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
38632         used by e.g., mingw.  From Bruno Haible.
38633
38634 2007-02-19  Bruno Haible  <bruno@clisp.org>
38635
38636         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
38637         warnings.
38638         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38639
38640 2007-02-19  Bruno Haible  <bruno@clisp.org>
38641
38642         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
38643         from mingw users.
38644
38645 2007-02-19  Bruno Haible  <bruno@clisp.org>
38646
38647         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
38648         warnings.
38649         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
38650
38651 2007-02-19  Jim Meyering  <jim@meyering.net>
38652
38653         Don't use FD after a successful "fdopendir (fd)".
38654         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
38655         Reset it by calling dirfd on the just-obtained DIR*.
38656
38657         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
38658         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
38659
38660 2007-02-18  Bruno Haible  <bruno@clisp.org>
38661
38662         * lib/readlink.c: Include <unistd.h>.
38663         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
38664         HAVE_READLINK.
38665         * modules/readlink (Depends-on): Add unistd.
38666         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38667         (Include): Add <unistd.h>.
38668
38669         * lib/getlogin_r.h: Remove file.
38670         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
38671         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
38672         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
38673         HAVE_DECL_GETLOGIN_R.
38674         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
38675         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38676         (Include): Use <unistd.h> instead of getlogin_r.h.
38677
38678         * lib/getcwd.h: Remove file.
38679         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
38680         * lib/xgetcwd.c: Likewise.
38681         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
38682         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
38683         * modules/getcwd (Files): Remove lib/getcwd.h.
38684         (Depends-on): Add unistd.
38685         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38686         (Include): Use <unistd.h> instad of getcwd.h.
38687
38688         * lib/ftruncate.c: Include <unistd.h> first.
38689         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
38690         Set HAVE_FTRUNCATE.
38691         * modules/ftruncate (Depends-on): Add unistd.
38692         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38693
38694         * lib/fchdir.c: Include <unistd.h> first.
38695         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
38696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
38697         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
38698         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38699         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
38700
38701         * lib/dup2.c: Include <unistd.h> first.
38702         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
38703         HAVE_DUP2.
38704         * modules/dup2 (Depends-on): Add unistd.
38705         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38706
38707         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
38708         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
38709         REPLACE_CHOWN. Don't define chown as a macro here.
38710         * modules/chown (Depends-on): Add unistd.
38711         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
38712
38713         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
38714         Add definition for GL_LINK_WARNING.
38715         (chown, dup2): New declarations.
38716         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
38717         link warning.
38718         (ftruncate): New declaration.
38719         (getcwd): New declaration, taken from old getcwd.h.
38720         (getlogin_r): New declaration, taken from old getlogin_r.h.
38721         (readlink): New declaration.
38722         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
38723         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
38724         (gl_PREREQ_UNISTD): Remove macro.
38725         (gl_UNISTD_MODULE_INDICATOR): New macro.
38726         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
38727         many new variables. Don't set UNISTD_H.
38728         * modules/unistd (Description): Change.
38729         (Depends-on): Add link-warning.
38730         (configure.ac): Update.
38731         (Makefile.am): Create unistd.h always. Substitute many new variables
38732         into it.
38733
38734 2007-02-18  Bruno Haible  <bruno@clisp.org>
38735
38736         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
38737         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
38738         HAVE_GETSUBOPT.
38739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
38740         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
38741         * lib/getsubopt.h: Remove file.
38742         * modules/getsubopt (Files): Remove lib/getsubopt.h.
38743         (Depends-on): Add stdlib.
38744         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38745         (Includes): Use <stdlib.h> instead of getsubopt.h.
38746         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
38747         Set HAVE_GETSUBOPT.
38748         * lib/getsubopt.c: Don't include getsubopt.h.
38749
38750 2007-02-18  Bruno Haible  <bruno@clisp.org>
38751
38752         * modules/fchdir (Depends-on): Add dup2.
38753
38754 2007-02-18  Bruno Haible  <bruno@clisp.org>
38755
38756         * lib/stdlib_.h: Handle glibc's special invocation convention
38757         specially.
38758
38759 2007-02-18  Bruno Haible  <bruno@clisp.org>
38760
38761         * modules/stdlib-tests: New file.
38762         * tests/test-stdlib.c: New file.
38763
38764         * modules/mkstemp (Files): Remove lib/mkstemp.h.
38765         (Depends-on): Add stdlib.
38766         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38767         (Includes): Use <stdlib.h> instead of mkstemp.h.
38768         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38769         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
38770         * lib/mkstemp.c: Don't include mkstemp.h.
38771         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
38772         * lib/stdlib--.h: Don't include mkstemp.h.
38773
38774         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
38775         (Depends-on): Add stdlib.
38776         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
38777         (Includes): Use <stdlib.h> instead of mkdtemp.h.
38778         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
38779         HAVE_MKDTEMP.
38780         * lib/mkdtemp.c: Don't include mkdtemp.h.
38781         * lib/clean-temp.c: Don't include mkdtemp.h.
38782
38783         * modules/exit (Files): Remove lib/exit.h.
38784         (Depends-on): Add stdlib.
38785         (Makefile.am): Remove lib_SOURCES.
38786         (Include): Use <stdlib.h> instead of exit.h.
38787         * lib/argmatch.c: Don't include exit.h.
38788         * lib/execute.c: Likewise.
38789         * lib/pagealign_alloc.c: Likewise.
38790         * lib/pipe.c: Likewise.
38791         * lib/wait-process.c: Likewise.
38792         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
38793         * lib/exitfail.c: Likewise.
38794         * lib/savewd.c: Likewise.
38795         * lib/xsetenv.c: Likewise.
38796
38797         * modules/stdlib: New file.
38798         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
38799         and extra comments about mkstemp().
38800         * lib/exit.h: Remove file.
38801         * lib/mkdtemp.h: Remove file.
38802         * lib/mkstemp.h: Remove file.
38803         * m4/stdlib_h.m4: New file.
38804         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
38805
38806 2007-02-18  Bruno Haible  <bruno@clisp.org>
38807
38808         * modules/math-tests: New file.
38809         * tests/test-math.c: New file.
38810
38811         * modules/math: New file.
38812         * modules/mathl (Files): Remove lib/mathl.h.
38813         (Depends-on): Add math.
38814         (Makefile.am): Don't mention mathl.h.
38815         (Include): Use <math.h> instead of mathl.h.
38816         * lib/math_.h: New file.
38817         * lib/mathl.h: Remove file.
38818         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
38819         mathl.h.
38820         * lib/asinl.c: Likewise.
38821         * lib/atanl.c: Likewise.
38822         * lib/ceill.c: Likewise.
38823         * lib/cosl.c: Likewise.
38824         * lib/expl.c: Likewise.
38825         * lib/floorl.c: Likewise.
38826         * lib/frexpl.c: Likewise.
38827         * lib/ldexpl.c: Likewise.
38828         * lib/logl.c: Likewise.
38829         * lib/sincosl.c: Likewise.
38830         * lib/sinl.c: Likewise.
38831         * lib/sqrtl.c: Likewise.
38832         * lib/tanl.c: Likewise.
38833         * lib/trigl.c: Likewise.
38834         * m4/math_h.m4: New file.
38835         * MODULES.html.sh (Mathematics): Add math.
38836
38837 2007-02-17  Bruno Haible  <bruno@clisp.org>
38838
38839         * modules/wctype-tests: New file.
38840         * tests/test-wctype.c: New file.
38841
38842         * modules/wchar-tests: New file.
38843         * tests/test-wchar.c: New file.
38844
38845         * modules/unistd-tests: New file.
38846         * tests/test-unistd.c: New file.
38847
38848         * modules/time-tests: New file.
38849         * tests/test-time.c: New file.
38850
38851         * modules/sysexits-tests: New file.
38852         * tests/test-sysexits.c: New file.
38853
38854         * modules/sys_time-tests: New file.
38855         * tests/test-sys_time.c: New file.
38856
38857         * modules/sys_stat-tests: New file.
38858         * tests/test-sys_stat.c: New file.
38859
38860         * modules/sys_socket-tests: New file.
38861         * tests/test-sys_socket.c: New file.
38862
38863         * modules/sys_select-tests: New file.
38864         * tests/test-sys_select.c: New file.
38865
38866         * modules/string-tests: New file.
38867         * tests/test-string.c: New file.
38868
38869         * modules/stdbool-tests: New file.
38870         * tests/test-stdbool.c: New file.
38871
38872         * modules/netinet_in-tests: New file.
38873         * tests/test-netinet_in.c: New file.
38874
38875         * modules/inttypes-tests: New file.
38876         * tests/test-inttypes.c: New file.
38877
38878         * modules/fcntl-tests: New file.
38879         * tests/test-fcntl.c: New file.
38880
38881         * modules/byteswap-tests: New file.
38882         * tests/test-byteswap.c: New file.
38883
38884         * modules/arpa_inet-tests: New file.
38885         * tests/test-arpa_inet.c: New file.
38886
38887 2007-02-17  Bruno Haible  <bruno@clisp.org>
38888
38889         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
38890         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
38891         if the corresponding module is not enabled. Emit link warnings if
38892         the function is used nevertheless.
38893         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
38894         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
38895         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
38896         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
38897         * modules/inttypes (Depends-on): Add link-warning.
38898         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38899         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
38900         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
38901         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
38902         * modules/imaxdiv (configure.ac): Likewise.
38903         * modules/strtoimax (configure.ac): Likewise.
38904         * modules/strtoumax (configure.ac): Likewise.
38905
38906 2007-02-17  Bruno Haible  <bruno@clisp.org>
38907
38908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
38909         gl_STRING_MODULE_INDICATOR_DEFAULTS.
38910         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
38911         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
38912
38913 2007-02-17  Bruno Haible  <bruno@clisp.org>
38914
38915         * modules/link-warning: New file.
38916         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
38917         * lib/string_.h (GL_LINK_WARNING): Remove definition.
38918         * modules/string (Depends-on): Add link-warning.
38919         (Makefile.am): Copy the contents of build-aux/link-warning.h into
38920         string.h.
38921         * MODULES.html.sh (Support for building libraries and executables): Add
38922         link-warning.
38923
38924 2007-02-17  Bruno Haible  <bruno@clisp.org>
38925
38926         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
38927         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
38928         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
38929         long lines.
38930
38931 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
38932             Bruno Haible  <bruno@clisp.org>
38933
38934         * modules/tmpfile: New file.
38935         * lib/tmpfile.c: New file.
38936         * m4/tmpfile.m4: New file.
38937         * MODULES.html.sh (func_all_modules): New section "Input/output".
38938
38939 2007-02-15  Bruno Haible  <bruno@clisp.org>
38940
38941         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
38942         (supports_delete_on_close): New function.
38943         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
38944
38945 2007-02-14  Bruno Haible  <bruno@clisp.org>
38946
38947         * modules/mbspcasecmp-tests: New file.
38948         * tests/test-mbspcasecmp.sh: New file.
38949         * tests/test-mbspcasecmp.c: New file.
38950
38951         New module mbspcasecmp.
38952         * modules/mbspcasecmp: New file.
38953         * lib/mbspcasecmp.c: New file.
38954         * lib/string_.h (strncasecmp): Change warning message.
38955         (mbspcasecmp): New declaration.
38956         * m4/mbspcasecmp.m4: New file.
38957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38958         GNULIB_MBSPCASECMP.
38959         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
38960         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
38961
38962 2007-02-14  Bruno Haible  <bruno@clisp.org>
38963
38964         * modules/mbsncasecmp-tests: New file.
38965         * tests/test-mbsncasecmp.sh: New file.
38966         * tests/test-mbsncasecmp.c: New file.
38967
38968         New module mbsncasecmp.
38969         * modules/mbsncasecmp: New file.
38970         * lib/mbsncasecmp.c: New file.
38971         * lib/string_.h (mbsncasecmp): New declaration.
38972         * m4/mbsncasecmp.m4: New file.
38973         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
38974         GNULIB_MBSNCASECMP.
38975         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
38976         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
38977
38978 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38979
38980         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
38981         Verify that it doesn't overlap with our flags.
38982         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
38983         do not have the desired effect in multibyte locales; instead, use
38984         mbscasecmp.
38985         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
38986         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
38987         we don't require GNU fnmatch ourselves (if our users require it, they
38988         should do so explicitly).
38989
38990         Fix regex code so it doesn't rely on strcasecmp.
38991         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
38992         Otherwise, include gnulib's langinfo.h.
38993         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
38994         undesirable behavior in non-C locales.  Instead, rely on localecharset.
38995         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
38996         * modules/regex (FILES): Remove m4/codeset.m4.
38997         (Depends-on): Add localcharset.  Remove strcase.
38998
38999 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39000
39001         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
39002         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
39003
39004 2007-02-13  Bruno Haible  <bruno@clisp.org>
39005
39006         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
39007         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39008
39009 2007-02-12  Bruno Haible  <bruno@clisp.org>
39010
39011         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39012         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
39013         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
39014         time warning rather than a link error.
39015
39016 2007-02-12  Bruno Haible  <bruno@clisp.org>
39017
39018         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
39019         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
39020         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39021
39022 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39023
39024         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
39025         args, not 2.
39026
39027 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
39028
39029         New module 'time', so that apps can include <time.h> as per
39030         POSIX and GNU instead of separate include files like time_r.h
39031         and timegm.h.  This implementation tries out a simpler approach
39032         for replacing decls in standard include files (as compared to
39033         the string module), somewhat as an experiment.
39034
39035         * config/srclist.txt: Comment out mktime.c for now.
39036         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
39037         since it doesn't apply any more.  Use generic wording instead.
39038         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
39039         'time'.
39040         * lib/time_.h, m4/time_h.m4, modules/time: New files.
39041         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
39042         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
39043         Don't include <sys/types.h>; no longer needed since we assume C89.
39044         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
39045         * lib/strftime.c: Likewise.
39046         * lib/time_r.c: Likewise.
39047         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
39048         * lib/nanosleep.c: Include <time.h> first, to check interface.
39049         * lib/strptime.c: Likewise.
39050         * lib/time_r.c: Likewise.
39051         * lib/timegm.c: Likewise.
39052         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
39053         needed.
39054         * lib/timegm.c: Don't include timegm.h; no longer needed.
39055         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
39056         time.h now handles any problems in that area.
39057         (struct timespec, nanosleep): Remove; time.h now arranges for these.
39058         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
39059         that time.h defines struct timespec.
39060         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
39061         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
39062         handles that.
39063         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
39064         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
39065         needed.  Set REPLACE_LOCALTIME.
39066         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
39067         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
39068         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
39069         nanosleep; time_h.m4 now does that.  Don't require
39070         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
39071         module handles this now.
39072         * modules/getdate (Depends-on): Remove timespec.  Add time.
39073         * modules/nanosleep (Depends-on): Likewise.
39074         * modules/stat-time (Depends-on): Likewise.
39075         * modules/nanosleep (Include): Include time.h, not timespec.h.
39076         * modules/strptime (Files): Remove lib/strptime.h.
39077         (Depends-on): Add extensions, time.
39078         (Include): Include time.h, not strptime.h.
39079         * modules/time_r (Files): Remove lib/time_r.h.
39080         (Depends-on): Add time.
39081         (Include): Include time.h, not time_r.h.
39082         * modules/timegm: Likewise.
39083         * modules/timespec (Description): Now does timespec-related decls
39084         of our own, instead of struct timespec itself.
39085         (Depends-on): Add time; remove extensions.
39086         (Maintainer): Add self.
39087         * modules/utimecmp (Depends-on): Add time; remove timespec.
39088         * modules/utimens (Depends-on): Likewise.
39089         * modules/xnanosleep (Depends-on): Likewise.
39090
39091 2007-02-11  Bruno Haible  <bruno@clisp.org>
39092
39093         * lib/c-strstr.c: Include allocsa.h.
39094         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39095         * lib/c-strcasestr.c: Include allocsa.h.
39096         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39097         * lib/strcasestr.c: Include allocsa.h.
39098         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
39099         * lib/mbsstr.c: Include allocsa.h.
39100         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39101         allocsa/freesa instead of malloc/free.
39102         * lib/mbscasestr.c: Include allocsa.h.
39103         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
39104         allocsa/freesa instead of malloc/free.
39105         * modules/c-strstr (Depends-on): Add allocsa.
39106         * modules/c-strcasestr (Depends-on): Likewise.
39107         * modules/strcasestr (Depends-on): Likewise.
39108         * modules/mbsstr (Depends-on): Likewise.
39109         * modules/mbscasestr (Depends-on): Likewise.
39110
39111 2007-02-11  Bruno Haible  <bruno@clisp.org>
39112
39113         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
39114
39115         * modules/mbsspn-tests: New file.
39116         * tests/test-mbsspn.sh: New file.
39117         * tests/test-mbsspn.c: New file.
39118
39119 2007-02-11  Bruno Haible  <bruno@clisp.org>
39120
39121         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
39122
39123         * modules/mbspbrk-tests: New file.
39124         * tests/test-mbspbrk.sh: New file.
39125         * tests/test-mbspbrk.c: New file.
39126
39127 2007-02-11  Bruno Haible  <bruno@clisp.org>
39128
39129         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
39130         unneeded cast.
39131
39132         * modules/mbscspn-tests: New file.
39133         * tests/test-mbscspn.sh: New file.
39134         * tests/test-mbscspn.c: New file.
39135
39136 2007-02-11  Bruno Haible  <bruno@clisp.org>
39137
39138         * modules/mbscasecmp-tests: New file.
39139         * tests/test-mbscasecmp.sh: New file.
39140         * tests/test-mbscasecmp.c: New file.
39141
39142 2007-02-11  Bruno Haible  <bruno@clisp.org>
39143
39144         Ensure O(n) worst-case complexity of mbscasestr.
39145         * lib/mbscasestr.c: Include stdbool.h.
39146         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39147         functions.
39148         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
39149         the bookkeeping indicates that it's worth it.
39150         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
39151
39152         * modules/mbscasestr-tests: New file.
39153         * tests/test-mbscasestr1.c: New file.
39154         * tests/test-mbscasestr2.sh: New file.
39155         * tests/test-mbscasestr2.c: New file.
39156         * tests/test-mbscasestr3.sh: New file.
39157         * tests/test-mbscasestr3.c: New file.
39158         * tests/test-mbscasestr4.sh: New file.
39159         * tests/test-mbscasestr4.c: New file.
39160         * m4/locale-tr.m4: New file.
39161
39162 2007-02-11  Bruno Haible  <bruno@clisp.org>
39163
39164         Ensure O(n) worst-case complexity of mbsstr.
39165         * lib/mbsstr.c: Include stdbool.h.
39166         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
39167         functions.
39168         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
39169         bookkeeping indicates that it's worth it.
39170         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
39171
39172         * modules/mbsstr-tests: New file.
39173         * tests/test-mbsstr1.c: New file.
39174         * tests/test-mbsstr2.sh: New file.
39175         * tests/test-mbsstr2.c: New file.
39176         * tests/test-mbsstr3.sh: New file.
39177         * tests/test-mbsstr3.c: New file.
39178         * m4/locale-fr.m4: New file.
39179
39180 2007-02-11  Bruno Haible  <bruno@clisp.org>
39181
39182         * lib/mbsrchr.c (mbsrchr): Fix bug.
39183
39184         * modules/mbsrchr-tests: New file.
39185         * tests/test-mbsrchr.sh: New file.
39186         * tests/test-mbsrchr.c: New file.
39187
39188 2007-02-11  Bruno Haible  <bruno@clisp.org>
39189
39190         * lib/mbschr.c (mbschr): Fix bug.
39191
39192         * modules/mbschr-tests: New file.
39193         * tests/test-mbschr.sh: New file.
39194         * tests/test-mbschr.c: New file.
39195         * m4/locale-zh.m4: New file.
39196
39197 2007-02-11  Bruno Haible  <bruno@clisp.org>
39198
39199         Support for copying multibyte string iterators.
39200         * lib/mbiter.h: Include <string.h>.
39201         (mbiter_multi_copy): New function.
39202         (mbi_copy): New macro.
39203         * lib/mbuiter.h: Include <string.h>.
39204         (mbuiter_multi_copy): New function.
39205         (mbui_copy): New macro.
39206
39207 2007-02-11  Bruno Haible  <bruno@clisp.org>
39208
39209         New module mbslen.
39210         * modules/mbslen: New file.
39211         * lib/mbslen.c: New file.
39212         * lib/string_.h (mbslen): New declaration.
39213         * m4/mbslen.m4: New file.
39214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39215         GNULIB_MBSLEN.
39216         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
39217         * MODULES.html.sh (Internationalization functions): Add mbslen.
39218
39219 2007-02-11  Bruno Haible  <bruno@clisp.org>
39220
39221         Ensure O(n) worst-case complexity of strcasestr substitute.
39222         * lib/strcasestr.c: Include stdbool.h.
39223         (knuth_morris_pratt): New function.
39224         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39225         bookkeeping indicates that it's worth it.
39226         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
39227
39228         * modules/strcasestr-tests: New file.
39229         * tests/test-strcasestr.c: New file.
39230
39231 2007-02-11  Bruno Haible  <bruno@clisp.org>
39232
39233         Ensure O(n) worst-case complexity of c_strcasestr.
39234         * lib/c-strcasestr.c: Include stdbool.h, string.h.
39235         (knuth_morris_pratt): New function.
39236         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
39237         the bookkeeping indicates that it's worth it.
39238         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
39239
39240         * modules/c-strcasestr-tests: New file.
39241         * tests/test-c-strcasestr.c: New file.
39242
39243 2007-02-11  Bruno Haible  <bruno@clisp.org>
39244
39245         Ensure O(n) worst-case complexity of c_strstr.
39246         * lib/c-strstr.c: Include stdbool.h, string.h.
39247         (knuth_morris_pratt): New function.
39248         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
39249         bookkeeping indicates that it's worth it.
39250         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
39251
39252         * lib/c-strstr.c: Complete rewrite for maintainability.
39253
39254         * modules/c-strstr-tests: New file.
39255         * tests/test-c-strstr.c: New file.
39256
39257 2007-02-11  Bruno Haible  <bruno@clisp.org>
39258
39259         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
39260         5.2.1 and earlier, whereby \055 was treated just like the range
39261         delimiter '-'.
39262         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39263
39264 2007-02-08  Bruno Haible  <bruno@clisp.org>
39265
39266         * modules/regex (Depends-on): Add stdbool.
39267         Reported by Dalibor Topic <robilad@kaffe.org>.
39268
39269 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
39270
39271         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
39272         Prefer returning from main to exiting from it.
39273         Remove unnecessary parens after sizeof.
39274
39275 2007-02-05  Bruno Haible  <bruno@clisp.org>
39276
39277         New module mbssep.
39278         * modules/mbssep: New file.
39279         * lib/mbssep.c: New file.
39280         * lib/string_.h (strsep): Add a conditional link warning.
39281         (mbssep): New declaration.
39282         * m4/mbssep.m4: New file.
39283         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39284         GNULIB_MBSSEP.
39285         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
39286         * MODULES.html.sh (Internationalization functions): Add mbssep.
39287
39288 2007-02-05  Bruno Haible  <bruno@clisp.org>
39289
39290         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
39291         Optimize search in case of 1 delimiter.
39292
39293 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39294
39295         * lib/acl.h: Include sys/types.h before sys/acl.h.
39296
39297 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
39298
39299         Merge upstream fix for glibc bugzilla #3957:
39300
39301         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39302
39303         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
39304         bit for RE_HAT_LISTS_NOT_NEWLINE.
39305         (build_charclass_op): Remove bogus comment.
39306
39307 2007-02-05  Simon Josefsson  <simon@josefsson.org>
39308
39309         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
39310
39311 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39312
39313         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
39314         * lib/memmem.c [!defined _LIBC]: Include config.h.
39315
39316 2007-02-04  Bruno Haible  <bruno@clisp.org>
39317
39318         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
39319         warning message.
39320
39321 2007-02-04  Bruno Haible  <bruno@clisp.org>
39322
39323         New module mbstok_r.
39324         * modules/mbstok_r: New file.
39325         * lib/mbstok_r.c: New file.
39326         * lib/string_.h (strtok_r): Change argument names to match the
39327         comments. Add a conditional link warning.
39328         (mbstok_r): New declaration.
39329         * m4/mbstok_r.m4: New file.
39330         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39331         GNULIB_MBSTOK_R.
39332         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
39333         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
39334
39335 2007-02-04  Bruno Haible  <bruno@clisp.org>
39336
39337         New module mbsspn.
39338         * modules/mbsspn: New file.
39339         * lib/mbsspn.c: New file.
39340         * lib/string_.h (strspn): Add a conditional link warning.
39341         (mbsspn): New declaration.
39342         * m4/mbsspn.m4: New file.
39343         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39344         GNULIB_MBSSPN.
39345         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
39346         * MODULES.html.sh (Internationalization functions): Add mbsspn.
39347
39348 2007-02-04  Bruno Haible  <bruno@clisp.org>
39349
39350         New module mbspbrk.
39351         * modules/mbspbrk: New file.
39352         * lib/mbspbrk.c: New file.
39353         * lib/string_.h (strpbrk): Add a conditional link warning.
39354         (mbspbrk): New declaration.
39355         * m4/mbspbrk.m4: New file.
39356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39357         GNULIB_MBSPBRK.
39358         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
39359         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
39360
39361 2007-02-04  Bruno Haible  <bruno@clisp.org>
39362
39363         New module mbscspn.
39364         * modules/mbscspn: New file.
39365         * lib/mbscspn.c: New file.
39366         * lib/string_.h (strcspn): Add a conditional link warning.
39367         (mbscspn): New declaration.
39368         * m4/mbscspn.m4: New file.
39369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39370         GNULIB_MBSCSPN.
39371         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
39372         * MODULES.html.sh (Internationalization functions): Add mbscspn.
39373
39374 2007-02-04  Bruno Haible  <bruno@clisp.org>
39375
39376         New module mbscasestr, reduced goal of strcasestr.
39377         * modules/mbscasestr: New file.
39378         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
39379         (mbscasestr): Renamed from strcasestr.
39380         * lib/strcasestr.c: Don't include mbuiter.h.
39381         (strcasestr): Remove support for multibyte locales.
39382         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
39383         Change the conditional link warning.
39384         (mbscasestr): New declaration.
39385         * m4/mbscasestr.m4: New file.
39386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
39387         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
39388         REPLACE_STRCASESTR.
39389         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
39390         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39391         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39392         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
39393         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
39394         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
39395         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
39396         (Depends-on): Remove mbuiter.
39397         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
39398
39399 2007-02-04  Bruno Haible  <bruno@clisp.org>
39400
39401         Simplify handling of strncasecmp.
39402         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
39403         the conditional link warning.
39404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39405         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
39406         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
39407         * modules/strcase (configure.ac): Don't invoke
39408         gl_STRING_MODULE_INDICATOR.
39409         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
39410
39411 2007-02-04  Bruno Haible  <bruno@clisp.org>
39412
39413         New module mbscasecmp, reduced goal of strcasecmp.
39414         * modules/mbscasecmp: New file.
39415         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
39416         (mbscasecmp): Renamed from strcasecmp.
39417         * lib/strcasecmp.c: Don't include mbuiter.h.
39418         (strcasecmp): Remove support for multibyte locales.
39419         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
39420         Change the conditional link warning.
39421         (mbscasecmp): New declaration.
39422         * m4/mbscasecmp.m4: New file.
39423         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
39424         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
39425         REPLACE_STRCASECMP.
39426         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
39427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39428         GNULIB_MBSCASECMP.
39429         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
39430         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
39431         * modules/strcase (Files): Remove m4/mbrtowc.m4.
39432         (Depends-on): Remove mbuiter.
39433         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
39434
39435 2007-02-04  Bruno Haible  <bruno@clisp.org>
39436
39437         New module mbsstr. Remove module strstr.
39438         * modules/mbsstr: New file.
39439         * modules/strstr: Remove file.
39440         * lib/mbsstr.c: Renamed from lib/strstr.c.
39441         (mbsstr): Renamed from strstr.
39442         * lib/string_.h (strstr): Remove declaration. Change the conditional
39443         link warning.
39444         (mbsstr): New declaration.
39445         * m4/mbsstr.m4: New file.
39446         * m4/strstr.m4: Remove file.
39447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
39448         REPLACE_STRSTR.
39449         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
39450         Don't initialize GNULIB_STRSTR.
39451         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
39452         substitute GNULIB_STRSTR and REPLACE_STRSTR.
39453         * MODULES.html.sh (Internationalization functions): Add mbsstr.
39454         (Support for systems lacking ANSI C 89): Remove strstr.
39455
39456 2007-02-04  Bruno Haible  <bruno@clisp.org>
39457
39458         New module mbsrchr.
39459         * modules/mbsrchr: New file.
39460         * lib/mbsrchr.c: New file.
39461         * lib/string_.h (strrchr): Add a conditional link warning.
39462         (mbsrchr): New declaration.
39463         * m4/mbsrchr.m4: New file.
39464         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39465         GNULIB_MBSRCHR.
39466         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
39467         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
39468
39469 2007-02-04  Bruno Haible  <bruno@clisp.org>
39470
39471         New module mbschr.
39472         * modules/mbschr: New file.
39473         * lib/mbschr.c: New file.
39474         * lib/string_.h (strchr): Add a conditional link warning.
39475         (mbschr): New declaration.
39476         * m4/mbschr.m4: New file.
39477         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
39478         GNULIB_MBSCHR.
39479         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
39480         * MODULES.html.sh (Internationalization functions): Add mbschr.
39481
39482 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39483
39484         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
39485
39486         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
39487
39488 2007-02-04  Bruno Haible  <bruno@clisp.org>
39489
39490         New module description section 'configure.ac-early'.
39491         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
39492         (func_get_autoconf_early_snippet): New function.
39493         (func_import, func_create_testdir): Use it. Remove special cases for
39494         modules 'extensions' and 'lock'.
39495         * modules/extensions (configure.ac-early): Require
39496         gl_USE_SYSTEM_EXTENSIONS.
39497         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
39498
39499 2007-02-04  Bruno Haible  <bruno@clisp.org>
39500
39501         Make use of gcj-4.3's -fsource and -ftarget option.
39502         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
39503         and if so try the options -fsource and -ftarget.
39504         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
39505         source_version, ftarget_option, target_version arguments.
39506         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
39507         (is_envjavac_oldgcj_14_14_usable): Renamed from
39508         is_envjavac_gcj_14_14_usable.
39509         (is_envjavac_oldgcj_14_13_usable): Renamed from
39510         is_envjavac_gcj_14_13_usable.
39511         (is_gcj_present): Update.
39512         (is_gcj_43, is_gcj43_usable): New functions.
39513         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
39514         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
39515         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
39516         try the options -fsource and -ftarget.
39517
39518 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
39519
39520         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
39521         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
39522         larger value.
39523
39524 2007-02-03  Jim Meyering  <jim@meyering.net>
39525
39526         Give tools a better chance to allocate space for very large buffers.
39527         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
39528
39529         Make pwd and readlink work also when run with an unreadable parent dir
39530         on systems with openat support.
39531         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
39532         provided getcwd function, even when we have openat support.
39533         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
39534
39535 2007-02-02  Bruno Haible  <bruno@clisp.org>
39536
39537         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
39538         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
39539         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
39540         portability problems if one of these functions is only used on specific
39541         platforms.
39542         Reported by Paul Eggert.
39543
39544 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
39545
39546         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
39547         is causing more trouble than it's curing.
39548         * lib/regex_internal.h (__mempcpy): Remove.
39549         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
39550         (and make the code a tad smaller to boot).
39551         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
39552
39553 2007-02-02  Jim Meyering  <jim@meyering.net>
39554
39555         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
39556         section, not in the Makefile.am: one.
39557
39558 2007-02-02  Eric Blake  <ebb9@byu.net>
39559
39560         * lib/strchrnul.c: Always include config.h first.
39561
39562         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
39563         gnulib strstr is not necessary here.
39564
39565 2007-02-02  Simon Josefsson  <simon@josefsson.org>
39566
39567         * m4/socklen.m4: Fix typo.
39568
39569 2007-02-02  Eric Blake  <ebb9@byu.net>
39570
39571         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
39572         * modules/netinet_in (Makefile.am): Likewise.
39573
39574 2007-02-01  Bruno Haible  <bruno@clisp.org>
39575
39576         * lib/string_.h (GL_LINK_WARNING): New macro.
39577         (strcasecmp, strstr, strcasestr): If provided by the system,
39578         conditionally define as a macro that leads to a warning instead of to
39579         an error.
39580         (strncasecmp): Conditionally define as a macro that leads to a warning.
39581
39582 2007-02-01  Karl Berry  <karl@gnu.org>
39583
39584         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
39585
39586 2007-02-01  Bruno Haible  <bruno@clisp.org>
39587
39588         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
39589         renamings.
39590
39591 2007-02-01  Eric Blake  <ebb9@byu.net>
39592
39593         * modules/regex (Depends-on): Revert dependence on mempcpy.
39594         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
39595         module's definition of mempcpy.
39596         Reported by Paul Eggert.
39597
39598 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
39599
39600         * lib/string_.h: If the gnulib module XYZ is not present, undefine
39601         the symbol XYZ before redefining it.  This fixes a problem with
39602         programs that don't use XYZ, when compiled on systems that define
39603         XYZ to something else.
39604
39605 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
39606
39607         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
39608         occurs when "mkdir -m foo" creates a setgid directory that is (1)
39609         writeable to group or other and (2) is intended to have a special
39610         mode bit that is set or cleared.  In such a case, the directory
39611         should be neither group- nor other-writeable until the special
39612         mode bits are right.
39613
39614 2007-01-31  Eric Blake  <ebb9@byu.net>
39615
39616         * modules/mountlist (Depends-on): Add strstr.
39617
39618         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
39619         bug.
39620         * modules/string (Makefile.am): Remove redundant replacement.
39621         * modules/regex (Depends-on): Add mempcpy.
39622
39623 2007-01-31  Bruno Haible  <bruno@clisp.org>
39624
39625         New module description field 'Link'.
39626         * gnulib-tool (func_usage): Document --extract-link-directive.
39627         (sed_extract_prog): Recognize 'Link' directive.
39628         (func_get_link_directive): New function.
39629         (func_import): Show summary of link directives.
39630         Handle --extract-link-directive option.
39631         * modules/acl (Link): New section.
39632         * modules/clock-time (Link): New section.
39633         * modules/euidaccess (Link): New section.
39634         * modules/gettext (Link): New section.
39635         * modules/iconv (Link): New section.
39636         * modules/lock (Link): New section.
39637         * modules/nanosleep (Link): New section.
39638         * modules/readline (Link): New section.
39639
39640 2007-01-27  Bruno Haible  <bruno@clisp.org>
39641
39642         Enforce the use of gnulib modules for unportable <string.h> functions.
39643         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
39644         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
39645         (gl_HEADER_STRING_H_BODY): Require it.
39646         * lib/string_.h: If the gnulib module XYZ is not present, redefine
39647         the symbol XYZ to one that gives a link error.
39648         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
39649         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
39650         * modules/mempcpy (configure.ac): Likewise.
39651         * modules/memrchr (configure.ac): Likewise.
39652         * modules/stpcpy (configure.ac): Likewise.
39653         * modules/stpncpy (configure.ac): Likewise.
39654         * modules/strcase (configure.ac): Likewise.
39655         * modules/strcasestr (configure.ac): Likewise.
39656         * modules/strchrnul (configure.ac): Likewise.
39657         * modules/strdup (configure.ac): Likewise.
39658         * modules/strndup (configure.ac): Likewise.
39659         * modules/strnlen (configure.ac): Likewise.
39660         * modules/strpbrk (configure.ac): Likewise.
39661         * modules/strsep (configure.ac): Likewise.
39662         * modules/strstr (configure.ac): Likewise.
39663         * modules/strtok_r (configure.ac): Likewise.
39664
39665 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
39666
39667         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
39668
39669 2007-01-30  Jim Meyering  <jim@meyering.net>
39670
39671         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
39672
39673 2007-01-29  Bruno Haible  <bruno@clisp.org>
39674
39675         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
39676         * lib/execute.c: Likewise.
39677         * lib/pipe.c: Likewise.
39678         * lib/printf-args.h: Likewise.
39679         * lib/printf-args.c: Likewise.
39680         * lib/printf-parse.c: Likewise.
39681         * lib/vasnprintf.c: Likewise.
39682
39683 2007-01-29  Eric Blake  <ebb9@byu.net>
39684
39685         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
39686         declaration.
39687
39688 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39689
39690         * lib/strptime.h (strptime): Use 'restrict' for args where
39691         POSIX requires this.
39692         * lib/strptime.c (strptime): Likewise.
39693         Change license notice from LGPL to GPL, since gnulib-tool will
39694         change this as needed.
39695         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
39696         defined.
39697         Include "strptime.h" first, to check interface.
39698         Do not #undef _LIBC and _NL_CURRENT.
39699         Do not include <stdlib.h>; no longer needed.
39700         Include "time_r.h" and declare ptime_locale_status
39701         only if _LIBC is not defined.
39702         (__P): Remove unused macro.
39703         (match_string): Bring back glibc version, but use it only if _LIBC
39704         is defined.
39705         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
39706         Remove unnecessary assertion and abort() call.
39707         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
39708         * m4/strptime.m4: Fix serial number comment.
39709         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
39710         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
39711         (Depends-on): Add time_r.
39712
39713 2007-01-29  Bruno Haible  <bruno@clisp.org>
39714
39715         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39716         strptime.
39717         * modules/strptime (Depends-on): Add stdbool.
39718         * lib/strptime.h: Include <time.h> always. Add comments.
39719
39720 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
39721
39722         * modules/strptime: New file.
39723         * lib/strptime.h: New file.
39724         * lib/strptime.c: New file.
39725         * m4/strptime.m4: New file.
39726
39727 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39728
39729         * MODULES.html.sh: New module mpsort.
39730         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
39731
39732         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
39733         a circularity problem with HP-UX ia64 reported by Bob Proulx in
39734         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
39735         All uses changed.
39736         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
39737         All uses changed.
39738         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
39739         to _Restrict_.
39740         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
39741         the parameter matches the prototype.
39742
39743 2007-01-28  Jim Meyering  <jim@meyering.net>
39744
39745         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
39746         sys/time.h here, reverting that part of the previous patch:
39747         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
39748
39749 2007-01-28  Bruno Haible  <bruno@clisp.org>
39750
39751         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
39752         value of $(SYS_TIME_H).
39753         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
39754         remove it conditionally, too. [added by Jim Meyering]
39755         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
39756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
39757         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
39758         GETTIMEOFDAY_REPLACEMENT to 1.
39759
39760 2007-01-28  Bruno Haible  <bruno@clisp.org>
39761
39762         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
39763         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
39764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
39765         Set UNISTD_H instead of UNISTD_H2.
39766         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
39767
39768 2007-01-28  Bruno Haible  <bruno@clisp.org>
39769
39770         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
39771         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
39772
39773 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39774
39775         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
39776         (func_create_testdir): Ensure C locale for `grep' and `tr'
39777         character ranges.
39778         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
39779         ACLOCAL_AMFLAGS parsing state machine.
39780
39781 2007-01-27  Bruno Haible  <bruno@clisp.org>
39782
39783         * modules/unistr/base: Update.
39784
39785 2007-01-27  Bruno Haible  <bruno@clisp.org>
39786
39787         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
39788         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
39789         * modules/unistr/u32-mbtouc-unsafe: Renamed from
39790         modules/unistr/u32-mbtouc.
39791         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
39792         * lib/unistr.h: Update.
39793         * lib/linebreak.c: Update.
39794         * modules/unistr/u32-mbtouc: Renamed from
39795         modules/unistr/u32-mbtouc-safe.
39796         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
39797         * lib/unistr.h: Update.
39798         * lib/unistr/u32-to-u8.c: Update.
39799         * lib/unistr/u32-to-u16.c: Update.
39800
39801 2007-01-27  Bruno Haible  <bruno@clisp.org>
39802
39803         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
39804         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
39805         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
39806         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
39807         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
39808         * modules/unistr/u16-mbtouc-unsafe: Renamed from
39809         modules/unistr/u16-mbtouc.
39810         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
39811         * lib/unistr.h: Update.
39812         * lib/linebreak.c: Update.
39813         * modules/linebreak: Update.
39814         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
39815         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
39816         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
39817         * modules/unistr/u16-mbtouc: Renamed from
39818         modules/unistr/u16-mbtouc-safe.
39819         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
39820         * lib/unistr.h: Update.
39821         * lib/unistr/u16-to-u8.c: Update.
39822         * modules/unistr/u16-to-u8: Update.
39823         * lib/unistr/u16-to-u32.c: Update.
39824         * modules/unistr/u16-to-u32: Update.
39825
39826 2007-01-27  Bruno Haible  <bruno@clisp.org>
39827
39828         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
39829         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
39830         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
39831         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
39832         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
39833         * modules/unistr/u8-mbtouc-unsafe: Renamed from
39834         modules/unistr/u8-mbtouc.
39835         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
39836         * lib/unistr.h: Update.
39837         * lib/striconveh.c: Update.
39838         * modules/striconveh: Update.
39839         * lib/linebreak.c: Update.
39840         * modules/linebreak: Update.
39841         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
39842         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
39843         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
39844         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
39845         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
39846         * lib/unistr.h: Update.
39847         * lib/striconveh.c: Update.
39848         * modules/striconveh: Update.
39849         * lib/unistr/u8-to-u16.c: Update.
39850         * modules/unistr/u8-to-u16: Update.
39851         * lib/unistr/u8-to-u32.c: Update.
39852         * modules/unistr/u8-to-u32: Update.
39853
39854 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39855
39856         Sync from Libtool.
39857         * lib/argz.c: Do not include strings.h nor memory.h, include
39858         string.h unconditionally.  Patch by Simon Josefsson.
39859
39860 2007-01-27  Bruno Haible  <bruno@clisp.org>
39861
39862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
39863         from gl_HEADER_STRING_H_BODY.
39864         (gl_HEADER_STRING_H_BODY): Require it.
39865         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
39866         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39867         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39868         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39869         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39870         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
39871         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39872         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39873         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
39874         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39875         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39876         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
39877         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39878         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39879         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39880
39881 2007-01-27  Bruno Haible  <bruno@clisp.org>
39882
39883         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
39884         check_PROGRAMS into noinst_PROGRAMS.
39885         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
39886         check_PROGRAMS in this case.
39887         (func_import): Set for_test to false.
39888         (func_create_testdir): Set for_test to true.
39889
39890 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39891             Bruno Haible  <bruno@clisp.org>
39892
39893         * modules/strcasestr (Files): Remove lib/strcasestr.h.
39894         (Depends-on): Add string.
39895         (Includes): Use <string.h> instead of strcasestr.h.
39896         * modules/string (Makefile.am): Also substitute the value of
39897         REPLACE_STRCASESTR.
39898         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
39899         assume strcasestr is declared in <string.h> not <strings.h>. Also
39900         set REPLACE_STRCASESTR.
39901         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
39902         REPLACE_STRCASESTR.
39903         * lib/strcasestr.h: Remove file.
39904         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
39905         * lib/string_.h (strcasestr): New declaration.
39906
39907 2007-01-27  Bruno Haible  <bruno@clisp.org>
39908
39909         * lib/string_.h: Use 'extern'.
39910
39911 2007-01-27  Jim Meyering  <jim@meyering.net>
39912
39913         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
39914         of set-but-not-used local, "q".
39915
39916         * lib/mempcpy.c: Include <config.h> before <string.h>.
39917         This fixes a compilation error on HP-UX, due to the system's
39918         "restrict"-using mempcpy prototype.
39919
39920 2007-01-26  Bruno Haible  <bruno@clisp.org>
39921
39922         Small optimization.
39923         * lib/javacomp.c: Include c-strstr.h.
39924          (is_envjavac_gcj): Use c_strstr instead of strstr.
39925         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
39926
39927 2007-01-26  Bruno Haible  <bruno@clisp.org>
39928
39929         * MODULES.html.sh (Unicode string functions): Add the new modules.
39930
39931         * modules/uniconv/u32-strconv-to-locale: New file.
39932         * lib/uniconv/u32-strconv-to-locale.c: New file.
39933
39934         * modules/uniconv/u16-strconv-to-locale: New file.
39935         * lib/uniconv/u16-strconv-to-locale.c: New file.
39936
39937         * modules/uniconv/u8-strconv-to-locale: New file.
39938         * lib/uniconv/u8-strconv-to-locale.c: New file.
39939
39940         * modules/uniconv/u32-strconv-from-locale: New file.
39941         * lib/uniconv/u32-strconv-from-locale.c: New file.
39942
39943         * modules/uniconv/u16-strconv-from-locale: New file.
39944         * lib/uniconv/u16-strconv-from-locale.c: New file.
39945
39946         * modules/uniconv/u8-strconv-from-locale: New file.
39947         * lib/uniconv/u8-strconv-from-locale.c: New file.
39948
39949         * modules/uniconv/u32-strconv-to-enc: New file.
39950         * lib/uniconv/u32-strconv-to-enc.c: New file.
39951         * modules/uniconv/u32-strconv-to-enc-tests: New file.
39952         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
39953
39954         * modules/uniconv/u16-strconv-to-enc: New file.
39955         * lib/uniconv/u16-strconv-to-enc.c: New file.
39956         * lib/uniconv/u-strconv-to-enc.h: New file.
39957         * modules/uniconv/u16-strconv-to-enc-tests: New file.
39958         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
39959
39960         * modules/uniconv/u8-strconv-to-enc: New file.
39961         * lib/uniconv/u8-strconv-to-enc.c: New file.
39962         * modules/uniconv/u8-strconv-to-enc-tests: New file.
39963         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
39964
39965         * modules/uniconv/u32-strconv-from-enc: New file.
39966         * lib/uniconv/u32-strconv-from-enc.c: New file.
39967         * modules/uniconv/u32-strconv-from-enc-tests: New file.
39968         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
39969
39970         * modules/uniconv/u16-strconv-from-enc: New file.
39971         * lib/uniconv/u16-strconv-from-enc.c: New file.
39972         * modules/uniconv/u16-strconv-from-enc-tests: New file.
39973         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
39974
39975         * modules/uniconv/u8-strconv-from-enc: New file.
39976         * lib/uniconv/u8-strconv-from-enc.c: New file.
39977         * lib/uniconv/u-strconv-from-enc.h: New file.
39978         * modules/uniconv/u8-strconv-from-enc-tests: New file.
39979         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
39980
39981         * modules/uniconv/u32-conv-from-enc: New file.
39982         * lib/uniconv/u32-conv-from-enc.c: New file.
39983         * modules/uniconv/u32-conv-from-enc-tests: New file.
39984         * tests/uniconv/test-u32-conv-from-enc.c: New file.
39985
39986         * modules/uniconv/u16-conv-from-enc: New file.
39987         * lib/uniconv/u16-conv-from-enc.c: New file.
39988         * lib/uniconv/u-conv-from-enc.h: New file.
39989         * modules/uniconv/u16-conv-from-enc-tests: New file.
39990         * tests/uniconv/test-u16-conv-from-enc.c: New file.
39991
39992         * modules/uniconv/u8-conv-from-enc: New file.
39993         * lib/uniconv/u8-conv-from-enc.c: New file.
39994         * modules/uniconv/u8-conv-from-enc-tests: New file.
39995         * tests/uniconv/test-u8-conv-from-enc.c: New file.
39996
39997         * modules/uniconv/base: New file.
39998         * lib/uniconv.h: New file.
39999
40000 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
40001
40002         * doc/gnulib-tool.texi (Initial import): Update to match current
40003         behavior with strdup module.
40004         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
40005         * lib/memmem.h: Remove; all uses removed.  This is now done
40006         by <string.h>.
40007         * lib/mempcpy.h: Likewise.
40008         * lib/memrchr.h: Likewise.
40009         * lib/stpcpy.h: Likewise.
40010         * lib/stpncpy.h: Likewise.
40011         * lib/strcase.h: Likewise.
40012         * lib/strchrnul.h: Likewise.
40013         * lib/strdup.h: Likewise.
40014         * lib/strndup.h: Likewise.
40015         * lib/strnlen.h: Likewise.
40016         * lib/strpbrk.h: Likewise.
40017         * lib/strsep.h: Likewise.
40018         * lib/strstr.h: Likewise.
40019         * lib/strtok_r.h: Likewise.
40020         * lib/string_.h: New file.
40021         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
40022         Rely on <string.h> instead.
40023         * lib/canon-host.c: Likewise.
40024         * lib/chdir-long.c: Likewise.
40025         * lib/concatpath.c: Likewise.
40026         * lib/exclude.c: Likewise.
40027         * lib/fchdir.c: Likewise.
40028         * lib/getaddrinfo.c: Likewise.
40029         * lib/getcwd.c: Likewise.
40030         * lib/getsubopt.c: Likewise.
40031         * lib/glob.c: Likewise.
40032         * lib/hard-locale.c: Likewise.
40033         * lib/iconvme.c: Likewise.
40034         * lib/javacomp.c: Likewise.
40035         * lib/mempcpy.c: Likewise.
40036         * lib/memrchr.c: Likewise.
40037         * lib/regex_internal.h: Likewise.
40038         * lib/stpncpy.c: Likewise.
40039         * lib/strcasecmp.c: Likewise.
40040         * lib/strchrnul.c: Likewise.
40041         * lib/strdup.c: Likewise.
40042         * lib/striconv.c: Likewise.
40043         * lib/striconveh.c: Likewise.
40044         * lib/striconveha.c: Likewise.
40045         * lib/strncasecmp.c: Likewise.
40046         * lib/strndup.c: Likewise.
40047         * lib/strnlen.c: Likewise.
40048         * lib/strsep.c: Likewise.
40049         * lib/strstr.c: Likewise.
40050         * lib/strtok_r.c: Likewise.
40051         * lib/userspec.c: Likewise.
40052         * lib/w32spawn.h: Likewise.
40053         * lib/xstrndup.c: Likewise.
40054         * lib/mountlist.c (strstr): Remove decl.
40055         * m4/string_h.m4: New file.
40056         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
40057         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
40058         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
40059         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
40060         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
40061         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
40062         Set REPLACE_STRCASECMP if necessary.
40063         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
40064         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
40065         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
40066         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
40067         HAVE_DECL_STRDUP if necessary.
40068         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
40069         since gl_FUNC_STRNDUP does that now.
40070         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
40071         Check for decl here...
40072         (gl_PREREQ_STRNLEN): ... not here.
40073         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
40074         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
40075         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
40076         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
40077         necessary.
40078         * modules/string: New file.
40079         * modules/memmem (Files): Remove special-purpose include file.
40080         (Depends-on): Add string.
40081         (Include): Include <string.h>, not the removed file.
40082         * modules/mempcpy: Likewise.
40083         * modules/memrchr: Likewise.
40084         * modules/stpcpy: Likewise.
40085         * modules/stpncpy: Likewise.
40086         * modules/strcase: Likewise.
40087         * modules/strchrnul: Likewise.
40088         * modules/strdup: Likewise.
40089         * modules/strndup: Likewise.
40090         * modules/strnlen: Likewise.
40091         * modules/strpbrk: Likewise.
40092         * modules/strsep: Likewise.
40093         * modules/strstr: Likewise.
40094         * modules/strtok_r: Likewise.
40095         * tests/test-dirname.c: Don't include "strdup.h", since
40096         <string.h> now suffices.
40097         * tests/test-memmem.c: Don't include "memmem.h", since
40098         <string.h> now suffices.
40099
40100 2007-01-25  Bruno Haible  <bruno@clisp.org>
40101
40102         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
40103         *resultp is 0.
40104
40105         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
40106         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
40107         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
40108         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
40109
40110         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
40111         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
40112         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
40113         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
40114         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
40115         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
40116
40117 2007-01-24  Bruno Haible  <bruno@clisp.org>
40118
40119         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
40120         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
40121         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
40122         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
40123         gl_FUNC_FTS_CORE.
40124         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
40125         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
40126         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40127         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
40128         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
40129         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
40130         gl_FUNC_FCHOWNAT.
40131         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
40132         gl_FUNC_STRFTIME.
40133         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
40134         Reported by Ralf Wildenhues.
40135
40136 2007-01-24  Bruno Haible  <bruno@clisp.org>
40137
40138         Drop AC_REQUIRE calls that are redundant with the module dependencies.
40139         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
40140         gl_GETADDRINFO.
40141         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
40142         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
40143         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
40144
40145 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
40146
40147         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
40148         Don't use 'exit'; just return from 'main'.
40149         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
40150
40151         * lib/fnmatch_.h: Readjust white space and comments to match
40152         glibc, to avoid spurious diffs.
40153
40154 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40155
40156         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
40157         2004-12-01 change by Jakub Jelinek, since this code won't compile
40158         if !LIBC.  Problem reported by Bob Proulx.
40159
40160 2007-01-23  Bruno Haible  <bruno@clisp.org>
40161
40162         * lib/striconveh.c: Include c-strcaseeq.h.
40163         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
40164         * modules/striconveh (Depends-on): Add c-strcaseeq.
40165
40166 2007-01-23  Bruno Haible  <bruno@clisp.org>
40167
40168         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
40169
40170         * modules/c-strcaseeq: New file.
40171         * lib/c-strcaseeq.h: New file.
40172
40173         * modules/streq: New file.
40174         * lib/streq.h: New file.
40175
40176 2007-01-23  Bruno Haible  <bruno@clisp.org>
40177
40178         * modules/striconveha-tests: New file.
40179         * tests/test-striconveha.c: New file.
40180
40181         * lib/striconveha.h: Include <stdbool.h>.
40182         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
40183         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
40184         (mem_iconveha_notranslit): Renamed from mem_iconveha.
40185         (mem_iconveha): New function.
40186         (str_iconveha_notranslit): Renamed from str_iconveha.
40187         (str_iconveha): New function.
40188         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
40189         c-strcase.
40190
40191 2007-01-23  Bruno Haible  <bruno@clisp.org>
40192
40193         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
40194         encodings without forgiving before trying any encoding with handler.
40195         (str_iconveha): Try all encodings without forgiving before trying any
40196         encoding with handler.
40197
40198 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40199
40200         Import the following changes from libc.
40201
40202         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
40203
40204         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
40205
40206         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
40207
40208         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
40209         normal_bracket label.
40210
40211         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
40212
40213         [BZ #361]
40214         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
40215         to normal_bracket after fetching the next character.
40216
40217 2007-01-22  Bruno Haible  <bruno@clisp.org>
40218
40219         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
40220         argument.
40221         * lib/striconveh.c (iconv_carefully_1): New function.
40222         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
40223         argument.
40224         (str_cd_iconveh): Update.
40225         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
40226         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
40227         * tests/test-striconveh.c (MAGIC): New macro.
40228         (new_offsets): New function.
40229         (main): Test call with and without offsets.
40230
40231 2007-01-22  Bruno Haible  <bruno@clisp.org>
40232
40233         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
40234         * modules/sys_select (Makefile.am): Likewise.
40235         * modules/sys_socket (Makefile.am): Likewise.
40236         * modules/sys_time (Makefile.am): Likewise.
40237
40238 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
40239
40240         * modules/gettimeofday (License): Change from GPL to LGPL, since
40241         gettimeofday is a library function.
40242
40243 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40244
40245         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
40246
40247 2007-01-21  Bruno Haible  <bruno@clisp.org>
40248
40249         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
40250
40251 2007-01-21  Bruno Haible  <bruno@clisp.org>
40252
40253         * modules/striconveha: New file.
40254         * lib/striconveha.h: New file.
40255         * lib/striconveha.c: New file.
40256         * MODULES.html.sh (Internationalization functions): Add striconveha.
40257         * lib/striconv.c (str_iconv): Optimize the case of an empty input
40258         string.
40259         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
40260
40261 2007-01-21  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
40264         * lib/striconveh.c (str_iconveh): Likewise.
40265
40266 2007-01-21  Bruno Haible  <bruno@clisp.org>
40267
40268         * lib/striconveh.h (mem_iconveh): New declaration.
40269         * lib/striconveh.c (mem_iconveh): New function.
40270         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
40271
40272 2007-01-21  Bruno Haible  <bruno@clisp.org>
40273
40274         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
40275
40276         * lib/striconveh.h (mem_cd_iconveh): Change specification.
40277         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
40278         original result buffer.
40279         (str_cd_iconveh): Update.
40280         * tests/test-striconveh.c (main): Update.
40281
40282         * lib/striconv.h (mem_cd_iconv): Change specification.
40283         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
40284         result buffer.
40285         (str_cd_iconv): Update.
40286         * tests/test-striconv.c (main): Update.
40287
40288 2007-01-21  Bruno Haible  <bruno@clisp.org>
40289
40290         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
40291
40292 2007-01-20  Jim Meyering  <jim@meyering.net>
40293
40294         * lib/userspec.c (parse_with_separator): If a user or group string
40295         starts with "+", skip the corresponding name-to-ID look-up, since
40296         such a look-up must fail: user and group names may not include "+".
40297
40298 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
40299
40300         * lib/poll.c: Include sys/time.h and time.h unconditionally,
40301         since we now assume the sys_time module.
40302         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
40303         check for sys/time.h; no longer needed.
40304         * modules/poll (Depends-on): Depend on sys_time.
40305
40306 2007-01-18  Bruno Haible  <bruno@clisp.org>
40307
40308         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
40309         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40310
40311         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
40312         gettimeofday.
40313
40314         * tests/test-gettimeofday.c: Include <time.h>.
40315         (dummy): Remove variable.
40316
40317         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
40318         gl_HEADER_SYS_TIME_H.
40319         (gl_HEADER_SYS_TIME_H): New macro.
40320
40321         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
40322         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40323         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
40324         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
40325         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40326         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
40327         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
40328         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40329         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
40330         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
40331         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40332
40333         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
40334         last change; it caused a compilation error when cross-compiling to
40335         Cygwin.
40336
40337 2007-01-18  Jim Meyering  <jim@meyering.net>
40338
40339         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
40340         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
40341         than the race-prone "test -d sys || mkdir sys".
40342         (configure.ac): Use AC_PROG_MKDIR_P.
40343         * modules/sys_select: Likewise.
40344         * modules/sys_socket: Likewise.
40345         * modules/sys_time: Likewise.
40346
40347 2007-01-18  Eric Blake  <ebb9@byu.net>
40348
40349         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
40350         replace gettimeofday.
40351         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
40352         name, to avoid infinite recursion.
40353
40354 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
40355
40356         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
40357         module sys_time.
40358         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
40359         assume timespec.h defines struct timeval.
40360         * lib/settime.c: Likewise.
40361         * lib/utimens.c: Likewise.
40362         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
40363         since we now assume the gettimeofday module.
40364         * lib/tempname.c (__gen_tempname): Likewise.
40365         * lib/gettimeofday.h: Remove.
40366         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
40367         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
40368         Include <time.h>, for 'time()'.
40369         (localtime_buffer_addr): Also use this workaround if
40370         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
40371         to simplify the uses.  All uses changed.
40372         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
40373         that #undef is inside {}, and 'const' follows type name consistently.
40374         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
40375         (gettimeofday): Do not use the maximum possible value for
40376         tv->tv_usec, since that might break usages other than ls.c.
40377         Instead, we'll leave ls.c alone.  This undoes today's patch
40378         by Bruno.  Add a compile-time warning for 1s-clock resolution;
40379         we've never observed the problem but might as well keep the
40380         canary.
40381         * lib/nanosleep.c: Include timespec.h first, for interface check.
40382         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
40383         now assume the sys_time module.
40384         * lib/tempname.c: Likewise.
40385         * lib/timespec.h: Likewise.
40386         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
40387         needed.
40388         * lib/strftime.c: Likewise.
40389         * lib/timespec.h: Likewise.
40390         * lib/posixtm.c: Include posixtm.h first, for interface check.
40391         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
40392         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
40393         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
40394         * lib/sys_time_.h: New file.
40395         * lib/timespec.h (struct timespec): Use long int, not long.
40396         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
40397         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
40398         Remove obsolescent call to AC_HEADER_TIME.
40399         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
40400         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40401         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
40402         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
40403         Likewise.
40404         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
40405         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
40406         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
40407         into the sys_time module.  Check for gettimeofday just once.
40408         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
40409         for gettimeofday signature to just check the signature.  Merely
40410         compile it, since linking doesn't test signature.  Improve test for
40411         whether gettimeofday.o is actually needed.
40412         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
40413         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
40414         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
40415         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40416         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
40417         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
40418         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
40419         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
40420         than worrying about sys/time.h.
40421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40422         Don't bother worrying about TIME_WITH_SYS_TIME.
40423         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40424         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
40425         * m4/sys_time_h.m4: New file.
40426         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
40427         Don't include sys/time.h.  Return from main rather than exiting.
40428         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
40429         all uses changed.
40430         * modules/gethrxtime (Depends-on): Add sys_time.
40431         * modules/gettime (Depends-on): Likewise.
40432         * modules/gettimeofday (Depends-on): Likewise.
40433         * modules/nanosleep (Depends-on): Likewise.
40434         * modules/settime (Depends-on): Likewise.
40435         * modules/tempname (Depends-on): Likewise.
40436         * modules/utimens (Depends-on): Likewise.
40437         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
40438         (Include:) Change back to <sys/time.h>.
40439         (Maintainer:) Add self.
40440         * modules/sys_time: New file.
40441         * modules/tempname (Depends-on): Add gettimeofday.
40442         * tests/test-gettimeofday.c: Include <sys/time.h>
40443         rather than gettimeofday.h.
40444
40445 2007-01-17  Bruno Haible  <bruno@clisp.org>
40446
40447         * gnulib-tool (func_get_license): Revert last patch. Instead, let
40448         the license default to GPL.
40449         (func_create_testdir): Don't complain if a module is LGPL and its
40450         tests module depends on GPLed modules.
40451
40452 2007-01-17  Bruno Haible  <bruno@clisp.org>
40453
40454         * lib/gettimeofday.c (gettimeofday): Add code for the case
40455         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
40456         maximum possible value for tv->tv_usec, rather than the minimum one.
40457
40458 2005-10-08  Martin Lambers  <marlam@marlam.de>
40459 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
40460 2007-01-16  Bruno Haible  <bruno@clisp.org>
40461
40462         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
40463         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
40464         gl_FUNC_GETTIMEOFDAY.
40465         (Include): Add gettimeofday.h.
40466         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
40467         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
40468         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
40469         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
40470         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
40471         * lib/gettimeofday.h: New file.
40472         * lib/gettimeofday.c: Include <sys/timeb.h>.
40473         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
40474         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
40475         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
40476         fall back on time().
40477
40478         * tests/test-gettimeofday.c: New file.
40479         * modules/gettimeofday-tests: New file.
40480
40481 2007-01-16  Eric Blake  <ebb9@byu.net>
40482
40483         * modules/fnmatch (Depends-on): Depend on wchar.
40484         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
40485         * m4/fnmatch.m4: Likewise.
40486         * modules/mbchar (Makefile.am): Assume <wchar.h>.
40487         * m4/mbchar.m4: Likewise.
40488         * modules/mbswidth (Depends-on): Depend on wchar.
40489         * lib/mbswidth.c: Assume <wchar.h>.
40490         * m4/mbswidth.m4: Likewise.
40491         * modules/quotearg (Depends-on): Depend on wchar.
40492         * lib/quotearg.c: Assume <wchar.h>.
40493         * m4/quotearg.m4: Likewise.
40494         * modules/regex (Depends-on): Depend on wchar.
40495         * lib/regex_internal.h: Assume <wchar.h>.
40496         * m4/regex.m4: Likewise.
40497         * modules/stdint (Depends-on): Depend on wchar.
40498         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
40499         * m4/stdint.m4: Likewise.
40500         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
40501         * modules/strftime (Depends-on): Depend on wchar.
40502         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
40503         * modules/strtol (Depends-on): Depend on wchar.
40504         * lib/strtol.c: Assume <wchar.h>.
40505         * modules/wcwidth (Depends-on): Depend on wchar.
40506         * lib/wcwidth.h: Assume <wchar.h>.
40507         * m4/wcwidth.m4: Likewise.
40508
40509 2007-01-16  Bruno Haible  <bruno@clisp.org>
40510
40511         * modules/csharpexec-script: New, created from...
40512         * modules/csharpexec: ... this.
40513
40514 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
40515
40516         * modules/javaexec-script: New, created from...
40517         * modules/javaexec: ... this.
40518
40519 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40520
40521         * modules/poll (Dependencies): Add sys_select.
40522
40523 2007-01-15  Jim Meyering  <jim@meyering.net>
40524
40525         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
40526         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
40527         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
40528         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
40529
40530 2007-01-15  Bruno Haible  <bruno@clisp.org>
40531
40532         * modules/striconveh: New file.
40533         * lib/striconveh.h: New file.
40534         * lib/striconveh.c: New file.
40535         * MODULES.html.sh (Internationalization functions): Add striconveh.
40536
40537         * modules/striconveh-tests: New file.
40538         * tests/test-striconveh.c: New file.
40539
40540 2007-01-15  Bruno Haible  <bruno@clisp.org>
40541
40542         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
40543         not from GNU libiconv or GNU libc.
40544
40545 2007-01-15  Bruno Haible  <bruno@clisp.org>
40546
40547         * doc/gnulib-intro.texi (Copyright): Explain the different license
40548         terms for module descriptions, autoconf macros, tests, documentation.
40549
40550 2007-01-14  Bruno Haible  <bruno@clisp.org>
40551
40552         * modules/striconv-tests: New file.
40553         * tests/test-striconv.c: New file.
40554
40555 2007-01-14  Bruno Haible  <bruno@clisp.org>
40556
40557         * modules/iconv-tests: New file.
40558         * tests/test-iconv.c: New file.
40559
40560 2007-01-14  Bruno Haible  <bruno@clisp.org>
40561
40562         * gnulib-tool (func_get_license): For test modules, use the license of
40563         the main module.
40564
40565 2007-01-14  Bruno Haible  <bruno@clisp.org>
40566
40567         * modules/iconv (Include): Clarify that <iconv.h> can only be included
40568         if iconv is found to exist.
40569
40570 2007-01-14  Bruno Haible  <bruno@clisp.org>
40571
40572         * modules/c-ctype-tests: New file.
40573         * tests/test-c-ctype.c: New file.
40574
40575 2007-01-14  Bruno Haible  <bruno@clisp.org>
40576
40577         * modules/binary-io-tests: New file.
40578         * tests/test-binary-io.sh: New file.
40579         * tests/test-binary-io.c: New file.
40580
40581 2007-01-14  Bruno Haible  <bruno@clisp.org>
40582
40583         * modules/array-oset-tests: New file.
40584         * tests/test-array_oset.c: New file.
40585
40586 2007-01-14  Bruno Haible  <bruno@clisp.org>
40587
40588         * modules/array-list-tests: New file.
40589         * tests/test-array_list.c: New file.
40590
40591 2007-01-14  Bruno Haible  <bruno@clisp.org>
40592
40593         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
40594         and make.
40595         Reported by Simon Josefsson in
40596         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
40597
40598 2007-01-14  Bruno Haible  <bruno@clisp.org>
40599
40600         * modules/allocsa-tests: New file.
40601         * tests/test-allocsa.c: New file.
40602
40603 2007-01-14  Bruno Haible  <bruno@clisp.org>
40604
40605         * modules/fchdir (Depends-on): Add absolute-header.
40606         * modules/unistd (Depends-on): Likewise.
40607
40608 2006-12-30  Bruno Haible  <bruno@clisp.org>
40609
40610         * modules/fchdir: New file.
40611         * modules/unistd (Files): Add lib/unistd_.h.
40612         (Makefile.am): Generate unistd.h from unistd_.h.
40613         * lib/fchdir.c: New file.
40614         * lib/dirent_.h: New file.
40615         * lib/unistd_.h: New file.
40616         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
40617         * m4/fchdir.m4: New file.
40618         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
40619         (gl_HEADER_UNISTD): Invoke it.
40620         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
40621         function.
40622         * lib/backupfile.c (opendir, closedir): Undefine.
40623         * lib/chown.c (open, close): Undefine.
40624         * lib/clean-temp.c (open, close): Undefine.
40625         * lib/copy-file.c (open, close): Undefine.
40626         * lib/execute.c (open, close): Undefine.
40627         * lib/fsusage.c (open, close): Undefine.
40628         * lib/gc-gnulib.c (open, close): Undefine.
40629         * lib/getcwd.c (opendir, closedir): Undefine.
40630         * lib/glob.c (opendir, closedir): Undefine.
40631         * lib/javacomp.c (open, close): Undefine.
40632         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
40633         * lib/openat-proc.c (open, close): Undefine.
40634         * lib/pagealign_alloc.c (open, close): Undefine.
40635         * lib/pipe.c (open, close): Undefine.
40636         * lib/progreloc.c (open, close): Undefine.
40637         * lib/savedir.c (opendir, closedir): Undefine.
40638         * lib/utime.c (open, close): Undefine.
40639         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
40640
40641 2007-01-10  Bruno Haible  <bruno@clisp.org>
40642
40643         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
40644
40645 2007-01-12  Eric Blake  <ebb9@byu.net>
40646
40647         Provide a robust <wchar.h>.  Further simplifications are now
40648         possible in other modules, but not included here.
40649         * modules/wchar: New module.
40650         * m4/wchar.m4: New file.
40651         * lib/wchar_.h: Likewise.
40652         * modules/mbchar (Depends-on): Depend on wchar, as the first use
40653         of the new module.
40654         * MODULES.html.sh (Extended multibyte and wide character utilities):
40655         New section.
40656
40657 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
40658
40659         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
40660         to a reasonable default for memory allocation.
40661         (xreadlink): Don't allocate a huge buffer, to work around a buggy
40662         file system that reports garbage st_size values for symlinks.
40663         Problem reported by Liyang Hu.
40664
40665 2007-01-11  Simon Josefsson  <simon@josefsson.org>
40666
40667         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
40668         Emacs .#* auto-save files).
40669
40670 2007-01-11  Bruno Haible  <bruno@clisp.org>
40671
40672         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
40673         directory.
40674
40675 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
40676
40677         Use @...@ consistently in lib/wctype_.h.
40678         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
40679         on it being set to 1 or 0.
40680         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
40681         go back to AC_SUBSTing it.
40682         * modules/wctype (Makefile.am): Undo previous change.
40683
40684 2007-01-10  Eric Blake  <ebb9@byu.net>
40685
40686         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
40687         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
40688         * modules/wctype (Makefile.am): Likewise.
40689         Reported by Chris McGuire.
40690
40691 2007-01-10  Jim Meyering  <jim@meyering.net>
40692
40693         fts.c: a small readability/maintainability improvement
40694         * lib/fts.c (fts_read): Make this code slightly more readable and
40695         maintainable by hoisting the "sp->fts_cur = p" assignments to
40696         immediately follow the statements that set P.  Derived from
40697         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
40698
40699 2007-01-10  Eric Blake  <ebb9@byu.net>
40700
40701         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
40702         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
40703         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
40704         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40705         Reported by Chris McGuire.
40706
40707 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40708
40709         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
40710         in sed script.
40711
40712 2007-01-09  Bruno Haible  <bruno@clisp.org>
40713
40714         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
40715         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
40716         variables.
40717         (func_module): Use them.
40718
40719 2007-01-09  Bruno Haible  <bruno@clisp.org>
40720
40721         * modules/unistr/base: New file.
40722         * lib/unistr.h: New file.
40723
40724         * modules/unistr/u8-to-u16: New file.
40725         * lib/unistr/u8-to-u16.c: New file.
40726
40727         * modules/unistr/u8-to-u32: New file.
40728         * lib/unistr/u8-to-u32.c: New file.
40729
40730         * modules/unistr/u16-to-u8: New file.
40731         * lib/unistr/u16-to-u8.c: New file.
40732
40733         * modules/unistr/u16-to-u32: New file.
40734         * lib/unistr/u16-to-u32.c: New file.
40735
40736         * modules/unistr/u32-to-u8: New file.
40737         * lib/unistr/u32-to-u8.c: New file.
40738
40739         * modules/unistr/u32-to-u16: New file.
40740         * lib/unistr/u32-to-u16.c: New file.
40741
40742         * modules/unistr/u8-check: New file.
40743         * modules/unistr/u16-check: New file.
40744         * modules/unistr/u32-check: New file.
40745         * lib/unistr/u8-check.c: New file.
40746         * lib/unistr/u16-check.c: New file.
40747         * lib/unistr/u32-check.c: New file.
40748
40749         * modules/unistr/u8-chr: New file.
40750         * modules/unistr/u16-chr: New file.
40751         * modules/unistr/u32-chr: New file.
40752         * lib/unistr/u8-chr.c: New file.
40753         * lib/unistr/u16-chr.c: New file.
40754         * lib/unistr/u32-chr.c: New file.
40755
40756         * modules/unistr/u8-cmp: New file.
40757         * modules/unistr/u16-cmp: New file.
40758         * modules/unistr/u32-cmp: New file.
40759         * lib/unistr/u8-cmp.c: New file.
40760         * lib/unistr/u16-cmp.c: New file.
40761         * lib/unistr/u32-cmp.c: New file.
40762
40763         * modules/unistr/u8-cpy: New file.
40764         * modules/unistr/u16-cpy: New file.
40765         * modules/unistr/u32-cpy: New file.
40766         * lib/unistr/u8-cpy.c: New file.
40767         * lib/unistr/u16-cpy.c: New file.
40768         * lib/unistr/u32-cpy.c: New file.
40769         * lib/unistr/u-cpy.h: New file.
40770
40771         * modules/unistr/u8-cpy-alloc: New file.
40772         * modules/unistr/u16-cpy-alloc: New file.
40773         * modules/unistr/u32-cpy-alloc: New file.
40774         * lib/unistr/u8-cpy-alloc.c: New file.
40775         * lib/unistr/u16-cpy-alloc.c: New file.
40776         * lib/unistr/u32-cpy-alloc.c: New file.
40777         * lib/unistr/u-cpy-alloc.h: New file.
40778
40779         * modules/unistr/u8-endswith: New file.
40780         * modules/unistr/u16-endswith: New file.
40781         * modules/unistr/u32-endswith: New file.
40782         * lib/unistr/u8-endswith.c: New file.
40783         * lib/unistr/u16-endswith.c: New file.
40784         * lib/unistr/u32-endswith.c: New file.
40785         * lib/unistr/u-endswith.h: New file.
40786
40787         * modules/unistr/u8-mblen: New file.
40788         * modules/unistr/u16-mblen: New file.
40789         * modules/unistr/u32-mblen: New file.
40790         * lib/unistr/u8-mblen.c: New file.
40791         * lib/unistr/u16-mblen.c: New file.
40792         * lib/unistr/u32-mblen.c: New file.
40793
40794         * modules/unistr/u8-mbtouc: New file.
40795         * modules/unistr/u16-mbtouc: New file.
40796         * modules/unistr/u32-mbtouc: New file.
40797         * lib/unistr/u8-mbtouc.c: New file.
40798         * lib/unistr/u16-mbtouc.c: New file.
40799         * lib/unistr/u32-mbtouc.c: New file.
40800
40801         * modules/unistr/u8-mbtouc-safe: New file.
40802         * modules/unistr/u16-mbtouc-safe: New file.
40803         * modules/unistr/u32-mbtouc-safe: New file.
40804         * lib/unistr/u8-mbtouc-safe.c: New file.
40805         * lib/unistr/u16-mbtouc-safe.c: New file.
40806         * lib/unistr/u32-mbtouc-safe.c: New file.
40807
40808         * modules/unistr/u8-move: New file.
40809         * modules/unistr/u16-move: New file.
40810         * modules/unistr/u32-move: New file.
40811         * lib/unistr/u8-move.c: New file.
40812         * lib/unistr/u16-move.c: New file.
40813         * lib/unistr/u32-move.c: New file.
40814         * lib/unistr/u-move.h: New file.
40815
40816         * modules/unistr/u8-next: New file.
40817         * modules/unistr/u16-next: New file.
40818         * modules/unistr/u32-next: New file.
40819         * lib/unistr/u8-next.c: New file.
40820         * lib/unistr/u16-next.c: New file.
40821         * lib/unistr/u32-next.c: New file.
40822
40823         * modules/unistr/u8-prev: New file.
40824         * modules/unistr/u16-prev: New file.
40825         * modules/unistr/u32-prev: New file.
40826         * lib/unistr/u8-prev.c: New file.
40827         * lib/unistr/u16-prev.c: New file.
40828         * lib/unistr/u32-prev.c: New file.
40829
40830         * modules/unistr/u8-set: New file.
40831         * modules/unistr/u16-set: New file.
40832         * modules/unistr/u32-set: New file.
40833         * lib/unistr/u8-set.c: New file.
40834         * lib/unistr/u16-set.c: New file.
40835         * lib/unistr/u32-set.c: New file.
40836         * lib/unistr/u-set.h: New file.
40837
40838         * modules/unistr/u8-startswith: New file.
40839         * modules/unistr/u16-startswith: New file.
40840         * modules/unistr/u32-startswith: New file.
40841         * lib/unistr/u8-startswith.c: New file.
40842         * lib/unistr/u16-startswith.c: New file.
40843         * lib/unistr/u32-startswith.c: New file.
40844         * lib/unistr/u-startswith.h: New file.
40845
40846         * modules/unistr/u8-stpcpy: New file.
40847         * modules/unistr/u16-stpcpy: New file.
40848         * modules/unistr/u32-stpcpy: New file.
40849         * lib/unistr/u8-stpcpy.c: New file.
40850         * lib/unistr/u16-stpcpy.c: New file.
40851         * lib/unistr/u32-stpcpy.c: New file.
40852         * lib/unistr/u-stpcpy.h: New file.
40853
40854         * modules/unistr/u8-stpncpy: New file.
40855         * modules/unistr/u16-stpncpy: New file.
40856         * modules/unistr/u32-stpncpy: New file.
40857         * lib/unistr/u8-stpncpy.c: New file.
40858         * lib/unistr/u16-stpncpy.c: New file.
40859         * lib/unistr/u32-stpncpy.c: New file.
40860         * lib/unistr/u-stpncpy.h: New file.
40861
40862         * modules/unistr/u8-strcat: New file.
40863         * modules/unistr/u16-strcat: New file.
40864         * modules/unistr/u32-strcat: New file.
40865         * lib/unistr/u8-strcat.c: New file.
40866         * lib/unistr/u16-strcat.c: New file.
40867         * lib/unistr/u32-strcat.c: New file.
40868         * lib/unistr/u-strcat.h: New file.
40869
40870         * modules/unistr/u8-strchr: New file.
40871         * modules/unistr/u16-strchr: New file.
40872         * modules/unistr/u32-strchr: New file.
40873         * lib/unistr/u8-strchr.c: New file.
40874         * lib/unistr/u16-strchr.c: New file.
40875         * lib/unistr/u32-strchr.c: New file.
40876
40877         * modules/unistr/u8-strcmp: New file.
40878         * modules/unistr/u16-strcmp: New file.
40879         * modules/unistr/u32-strcmp: New file.
40880         * lib/unistr/u8-strcmp.c: New file.
40881         * lib/unistr/u16-strcmp.c: New file.
40882         * lib/unistr/u32-strcmp.c: New file.
40883
40884         * modules/unistr/u8-strcpy: New file.
40885         * modules/unistr/u16-strcpy: New file.
40886         * modules/unistr/u32-strcpy: New file.
40887         * lib/unistr/u8-strcpy.c: New file.
40888         * lib/unistr/u16-strcpy.c: New file.
40889         * lib/unistr/u32-strcpy.c: New file.
40890         * lib/unistr/u-strcpy.h: New file.
40891
40892         * modules/unistr/u8-strcspn: New file.
40893         * modules/unistr/u16-strcspn: New file.
40894         * modules/unistr/u32-strcspn: New file.
40895         * lib/unistr/u8-strcspn.c: New file.
40896         * lib/unistr/u16-strcspn.c: New file.
40897         * lib/unistr/u32-strcspn.c: New file.
40898         * lib/unistr/u-strcspn.h: New file.
40899
40900         * modules/unistr/u8-strdup: New file.
40901         * modules/unistr/u16-strdup: New file.
40902         * modules/unistr/u32-strdup: New file.
40903         * lib/unistr/u8-strdup.c: New file.
40904         * lib/unistr/u16-strdup.c: New file.
40905         * lib/unistr/u32-strdup.c: New file.
40906         * lib/unistr/u-strdup.h: New file.
40907
40908         * modules/unistr/u8-strlen: New file.
40909         * modules/unistr/u16-strlen: New file.
40910         * modules/unistr/u32-strlen: New file.
40911         * lib/unistr/u8-strlen.c: New file.
40912         * lib/unistr/u16-strlen.c: New file.
40913         * lib/unistr/u32-strlen.c: New file.
40914         * lib/unistr/u-strlen.h: New file.
40915
40916         * modules/unistr/u8-strmblen: New file.
40917         * modules/unistr/u16-strmblen: New file.
40918         * modules/unistr/u32-strmblen: New file.
40919         * lib/unistr/u8-strmblen.c: New file.
40920         * lib/unistr/u16-strmblen.c: New file.
40921         * lib/unistr/u32-strmblen.c: New file.
40922
40923         * modules/unistr/u8-strmbtouc: New file.
40924         * modules/unistr/u16-strmbtouc: New file.
40925         * modules/unistr/u32-strmbtouc: New file.
40926         * lib/unistr/u8-strmbtouc.c: New file.
40927         * lib/unistr/u16-strmbtouc.c: New file.
40928         * lib/unistr/u32-strmbtouc.c: New file.
40929
40930         * modules/unistr/u8-strncat: New file.
40931         * modules/unistr/u16-strncat: New file.
40932         * modules/unistr/u32-strncat: New file.
40933         * lib/unistr/u8-strncat.c: New file.
40934         * lib/unistr/u16-strncat.c: New file.
40935         * lib/unistr/u32-strncat.c: New file.
40936         * lib/unistr/u-strncat.h: New file.
40937
40938         * modules/unistr/u8-strncmp: New file.
40939         * modules/unistr/u16-strncmp: New file.
40940         * modules/unistr/u32-strncmp: New file.
40941         * lib/unistr/u8-strncmp.c: New file.
40942         * lib/unistr/u16-strncmp.c: New file.
40943         * lib/unistr/u32-strncmp.c: New file.
40944
40945         * modules/unistr/u8-strncpy: New file.
40946         * modules/unistr/u16-strncpy: New file.
40947         * modules/unistr/u32-strncpy: New file.
40948         * lib/unistr/u8-strncpy.c: New file.
40949         * lib/unistr/u16-strncpy.c: New file.
40950         * lib/unistr/u32-strncpy.c: New file.
40951         * lib/unistr/u-strncpy.h: New file.
40952
40953         * modules/unistr/u8-strnlen: New file.
40954         * modules/unistr/u16-strnlen: New file.
40955         * modules/unistr/u32-strnlen: New file.
40956         * lib/unistr/u8-strnlen.c: New file.
40957         * lib/unistr/u16-strnlen.c: New file.
40958         * lib/unistr/u32-strnlen.c: New file.
40959         * lib/unistr/u-strnlen.h: New file.
40960
40961         * modules/unistr/u8-strpbrk: New file.
40962         * modules/unistr/u16-strpbrk: New file.
40963         * modules/unistr/u32-strpbrk: New file.
40964         * lib/unistr/u8-strpbrk.c: New file.
40965         * lib/unistr/u16-strpbrk.c: New file.
40966         * lib/unistr/u32-strpbrk.c: New file.
40967         * lib/unistr/u-strpbrk.h: New file.
40968
40969         * modules/unistr/u8-strrchr: New file.
40970         * modules/unistr/u16-strrchr: New file.
40971         * modules/unistr/u32-strrchr: New file.
40972         * lib/unistr/u8-strrchr.c: New file.
40973         * lib/unistr/u16-strrchr.c: New file.
40974         * lib/unistr/u32-strrchr.c: New file.
40975
40976         * modules/unistr/u8-strspn: New file.
40977         * modules/unistr/u16-strspn: New file.
40978         * modules/unistr/u32-strspn: New file.
40979         * lib/unistr/u8-strspn.c: New file.
40980         * lib/unistr/u16-strspn.c: New file.
40981         * lib/unistr/u32-strspn.c: New file.
40982         * lib/unistr/u-strspn.h: New file.
40983
40984         * modules/unistr/u8-strstr: New file.
40985         * modules/unistr/u16-strstr: New file.
40986         * modules/unistr/u32-strstr: New file.
40987         * lib/unistr/u8-strstr.c: New file.
40988         * lib/unistr/u16-strstr.c: New file.
40989         * lib/unistr/u32-strstr.c: New file.
40990         * lib/unistr/u-strstr.h: New file.
40991
40992         * modules/unistr/u8-strtok: New file.
40993         * modules/unistr/u16-strtok: New file.
40994         * modules/unistr/u32-strtok: New file.
40995         * lib/unistr/u8-strtok.c: New file.
40996         * lib/unistr/u16-strtok.c: New file.
40997         * lib/unistr/u32-strtok.c: New file.
40998         * lib/unistr/u-strtok.h: New file.
40999
41000         * modules/unistr/u8-uctomb: New file.
41001         * modules/unistr/u16-uctomb: New file.
41002         * modules/unistr/u32-uctomb: New file.
41003         * lib/unistr/u8-uctomb.c: New file.
41004         * lib/unistr/u16-uctomb.c: New file.
41005         * lib/unistr/u32-uctomb.c: New file.
41006
41007         * MODULES.html.sh (Unicode string functions): Add the new modules.
41008
41009 2007-01-08  Bruno Haible  <bruno@clisp.org>
41010
41011         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
41012         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
41013         subdirectories.
41014
41015 2007-01-08  Karl Berry  <karl@gnu.org>
41016
41017         * doc/error.texi: mention that main() fns must set program_name
41018         when progname is used.
41019
41020 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
41021
41022         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
41023         WCTYPE_H is empty, for the benefit of builds from non-distclean
41024         directories.  Problem reported by Eric Blake in
41025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
41026
41027 2007-01-08  Bruno Haible  <bruno@clisp.org>
41028
41029         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
41030         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
41031         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
41032         PROVIDE_CANONICALIZE_FILENAME_MODE.
41033         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
41034
41035 2007-01-08  Bruno Haible  <bruno@clisp.org>
41036
41037         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
41038         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
41039         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
41040         * lib/fts.c: Likewise.
41041         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
41042
41043 2006-12-25  Bruno Haible  <bruno@clisp.org>
41044
41045         * modules/utf8-ucs4-safe: New file.
41046         * lib/utf8-ucs4-safe.h: New file.
41047         * lib/unistr/utf8-ucs4-safe.c: New file.
41048
41049         * modules/utf16-ucs4-safe: New file.
41050         * lib/utf16-ucs4-safe.h: New file.
41051         * lib/unistr/utf16-ucs4-safe.c: New file.
41052
41053         * MODULES.html.sh (Unicode string functions): Add the new modules.
41054
41055 2007-01-08  Bruno Haible  <bruno@clisp.org>
41056
41057         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
41058         (Depends-on): Add unitypes.
41059         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41060         (u8_mbtouc_aux): Move out to separate file.
41061         (u8_mbtouc): Use ucs4_t, uint8_t types.
41062         * lib/unistr/utf8-ucs4.c: New file.
41063
41064         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
41065         (Depends-on): Add unitypes.
41066         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
41067         (u16_mbtouc_aux): Move out to separate file.
41068         (u16_mbtouc): Use ucs4_t, uint16_t types.
41069         * lib/unistr/utf16-ucs4.c: New file.
41070
41071         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
41072         (Depends-on): Add unitypes.
41073         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
41074         (u8_uctomb_aux): Move out to separate file.
41075         (u8_uctomb): Use ucs4_t, uint8_t types.
41076         * lib/unistr/ucs4-utf8.c: New file.
41077
41078         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
41079         (Depends-on): Add unitypes.
41080         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
41081         (u16_uctomb_aux): Move out to separate file.
41082         (u16_uctomb): Use ucs4_t, uint16_t types.
41083         * lib/unistr/ucs4-utf16.c: New file.
41084
41085 2006-12-25  Bruno Haible  <bruno@clisp.org>
41086
41087         * modules/unitypes: New file.
41088         * lib/unitypes.h: New file.
41089         * MODULES.html.sh (func_all_modules): New section "Unicode string
41090         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
41091         this section. Add unitypes.
41092
41093 2007-01-08  Bruno Haible  <bruno@clisp.org>
41094
41095         Avoid variable names that conflict with those from libtool.
41096         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
41097         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
41098         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
41099         library_names_spec to acl_library_names_spec, hardcode_* to
41100         acl_hardcode_*.
41101         Reported by Ralf Wildenhues.
41102
41103 2007-01-08  Bruno Haible  <bruno@clisp.org>
41104
41105         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
41106         definition.
41107         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
41108         definition.
41109         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
41110         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
41111         definition.
41112         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
41113         definition.
41114         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
41115         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
41116         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
41117         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
41118         definition.
41119         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
41120         definition.
41121         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
41122         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
41123         GC_USE_<algorithm>.
41124         * lib/gc-libgcrypt.c: Likewise.
41125         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
41126         * modules/gc-arctwo (configure.ac): Likewise.
41127         * modules/gc-des (configure.ac): Likewise.
41128         * modules/gc-hmac-md5 (configure.ac): Likewise.
41129         * modules/gc-hmac-sha1 (configure.ac): Likewise.
41130         * modules/gc-md2 (configure.ac): Likewise.
41131         * modules/gc-md4 (configure.ac): Likewise.
41132         * modules/gc-md5 (configure.ac): Likewise.
41133         * modules/gc-random (configure.ac): Likewise.
41134         * modules/gc-rijndael (configure.ac): Likewise.
41135         * modules/gc-sha1 (configure.ac): Likewise.
41136
41137 2007-01-08  Bruno Haible  <bruno@clisp.org>
41138
41139         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
41140         macro definition.
41141         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
41142         definition.
41143         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
41144         definition.
41145         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
41146         * modules/fcntl-safer (configure.ac): Likewise.
41147         * modules/fopen-safer (configure.ac): Likewise.
41148         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
41149         GNULIB_FWRITEERROR macro definition.
41150
41151 2007-01-08  Bruno Haible  <bruno@clisp.org>
41152
41153         * m4/gnulib-common.m4: New file.
41154         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
41155         (func_get_filelist): Add m4/gnulib-common.m4.
41156
41157 2007-01-08  Bruno Haible  <bruno@clisp.org>
41158
41159         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
41160         command.
41161
41162 2007-01-08  Jim Meyering  <jim@meyering.net>
41163
41164         Use a more robust test for a "can't happen" condition.
41165         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
41166         narrowed the st_size value.  Presuming the "can't happen" condition
41167         is true, that narrowing could conceivably convert an invalid st_size
41168         value into a valid one.  Instead, use a change based on Matthew
41169         Woehlke's original patch.
41170
41171         Slight readability improvement: use an assert-like macro
41172         in place of literal "abort ()" uses.
41173         * lib/fts.c (fts_assert): Define.
41174         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
41175         Use this macro instead of a bare 'abort'.
41176
41177 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41178
41179         Don't worry about using IRIX 5.3's wctype.h broken definitions;
41180         simply work around them.
41181         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
41182         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
41183         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
41184         declaring.
41185         Don't bother to define as macros, since the standard doesn't require it.
41186         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
41187         longer worry about IRIX 5.3.
41188         (HAVE_WCTYPE_CTMP_BUG): Remove.
41189
41190 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41191
41192         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
41193         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
41194         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41195         Problems reported by Georg Schwarz for IRIX 5.3.
41196
41197         * gnulib-tool (autoconf_minversion): Take the maximum version number
41198         found, not the minimum.  Problem reported by James Youngman.
41199
41200 2007-01-03  Karl Berry  <karl@gnu.org>
41201
41202         * doc/error.texi: new file, explaining interaction with progname.
41203         * doc/gnulib.texi: include it.  Update copyright.
41204
41205 2007-01-03  Simon Josefsson  <simon@josefsson.org>
41206
41207         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
41208         AC_CANONICAL_HOST, to improve autobuild outputs.
41209
41210 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
41211             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41212
41213         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
41214         sockets, server sockets, and other file descriptors.  Count errors
41215         to compute the return value.  Reorder the code a bit to be easier
41216         to follow.  Don't set event bits that were not requested (except
41217         POLLERR and POLLHUP).
41218
41219 2007-01-01  Bruno Haible  <bruno@clisp.org>
41220
41221         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
41222
41223 2007-01-03  Jim Meyering  <jim@meyering.net>
41224
41225         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
41226
41227 2007-01-02  Bruno Haible  <bruno@clisp.org>
41228
41229         * modules/settime (Include): Require timespec.h.
41230         * modules/nanosleep (Include): Likewise.
41231
41232 2007-01-01  Bruno Haible  <bruno@clisp.org>
41233
41234         * gnulib-tool (func_emit_copyright_notice): Bump year.
41235         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
41236
41237 2007-01-01  Bruno Haible  <bruno@clisp.org>
41238
41239         Improve support for OpenBSD.
41240         * build-aux/config.rpath (libname_spec): Export.
41241         (library_names_spec): New variable. Export.
41242         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
41243         library_names_spec from the config.rpath output. Locate shared library
41244         through the name pattern in library_names_spec.
41245
41246 2007-01-01  Eric Blake  <ebb9@byu.net>
41247
41248         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
41249
41250 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
41251
41252         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
41253         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
41254         assume the C locale, and avoid an "eval" that could cause trouble.
41255         Problem with SORT reported by Bob Proulx.
41256
41257         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
41258         Define.  Trivial patch from Henning Nielsen Lund, originally
41259         sent to bug-grep@gnu.org today.
41260
41261 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41262
41263         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
41264         struct stat.  Problem reported by Henning Nielsen Lund.
41265         * lib/acl.c: Include acl.h first, to check interface.  Don't
41266         bother to include sys/types.h and sys/stat.h again.
41267
41268 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41269
41270         Import the following change from libc; problem reported by
41271         Sven Verdoolaege.
41272
41273         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
41274
41275         [BZ #1373]
41276         * lib/argp.h: Remove __NTH for __argp_usage inline function.
41277
41278 2006-12-28  Jim Meyering  <jim@meyering.net>
41279
41280         * build-aux/announce-gen: Do not assume that the package
41281         builds any of tar.gz, tar.bz2, and .xdelta files.
41282         Suggestion from Simon Josefsson.
41283
41284 2006-12-28  Simon Josefsson  <simon@josefsson.org>
41285
41286         * modules/announce-gen: New file.
41287
41288 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41289
41290         * lib/mbchar.h: Just include <wctype.h>; the wctype module
41291         handles its gotchas now.
41292         * lib/mbswidth.c: Likewise.
41293         * lib/wcwidth.h: Likewise.
41294         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
41295         and iswcntrl; the wctype module does this stuff now.
41296         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
41298         * modules/mbchar (Depends-on): Add wctype.
41299         * modules/mbswidth (Depends-on): Likewise.
41300         * modules/wcwidth (Depends-on): Likewise.
41301
41302 2006-12-27  Eric Blake  <ebb9@byu.net>
41303
41304         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
41305         module uses more than what <wctype.h> is required to provide.
41306
41307 2006-12-26  Eric Blake  <ebb9@byu.net>
41308
41309         * gnulib-tool (sed_extract_prog): Avoid space-tab.
41310
41311 2006-12-26  Eric Blake  <ebb9@byu.net>
41312
41313         * modules/absolute-header: New module.
41314         * modules/fcntl (Depends-on): Depend on it.
41315         * modules/inttypes (Depends-on): Likewise.
41316         * modules/stdint (Depends-on): Likewise.
41317         * modules/sys_stat (Depends-on): Likewise.
41318         * modules/wctype (Depends-on): Likewise.
41319         * MODULES.html.sh (Support for building libraries and
41320         executables): Document it.
41321
41322 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41323
41324         * gnulib-tool (SED): Remove, undoing previous change.
41325         The problem was that it broke coreutils on Solaris, because
41326         "sed --posix" leaked into a makefile.
41327         (sed): New alias, if 'alias' and GNU sed.
41328
41329 2006-12-24  Jim Meyering  <jim@meyering.net>
41330
41331         Work around an fchownat bug in glibc-2.4:
41332         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
41333         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
41334         in spite of the -P option.
41335         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
41336         New macros.
41337         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
41338         * modules/openat (Files): Add lib/fchownat.c.
41339         * lib/openat.c (fchownat): Don't define here.  Move to...
41340         * lib/fchownat.c: ...this new file.
41341
41342 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41343
41344         Fix bug reported by Bruno Haible in
41345         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
41346         where quotearg.c didn't compile on Mac OS X 10.2 because it
41347         lacks <wchar.h> and wint_t.
41348         * lib/wctype_.h (__wctype_wint_t): New type.
41349         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
41350         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
41351         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
41352         Arg is now of type __wctype_wint_t, not wint_t.
41353         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
41354         substitute HAVE_WINT_T.
41355         * modules/wctype (Files): Add m4/wint_t.m4.
41356         (wctype.h): Substitute HAVE_WINT_T.
41357
41358 2006-12-23  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
41361
41362 2006-12-23  Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
41365         S_ISLNK.
41366         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
41367         mingw.
41368
41369 2006-12-22  Bruno Haible  <bruno@clisp.org>
41370
41371         * lib/copy-file.c: Include acl.h.
41372         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
41373         Close the file descriptors only after being done with copy_acl.
41374         * modules/copy-file (Depends-on): Add acl.
41375
41376 2006-12-22  Bruno Haible  <bruno@clisp.org>
41377
41378         * gnulib-tool (SED): New variable.
41379         Use $SED instead of sed everywhere.
41380
41381 2006-12-22  Bruno Haible  <bruno@clisp.org>
41382
41383         * modules/no-c++: New file.
41384         * m4/no-c++.m4: New file.
41385         * MODULES.html.sh (Support for building libraries and executables):
41386         Add no-c++.
41387
41388 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41389
41390         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41391         Include <limits.h>, and use its INT_MAX to rewrite the
41392         j loop so that it does not overflow 'int'.  Problem reported by
41393         Ralf Wildenhues in
41394         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
41395         Play it safe by shifting left by 1 rather than multiplying by 2,
41396         as GCC is less likely to optimize this away when the value
41397         is signed (when it assumes overflow leads to undefined behavior).
41398         Also, don't assume time_t uses two's complement.
41399
41400 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41401
41402         * MODULES.html.sh: New module wctype.
41403         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
41404         * lib/fnmatch.c: Don't bother to include <wchar.h> before
41405         <wctype.h>, since the new wctype module should fix this.
41406         * lib/quotearg.c: Include <wctype.h> unconditionally, since
41407         the wctype module should arrange for it.
41408         * lib/regex_internal.h: Likewise.
41409         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
41410         since the wctype module should handle this now.
41411         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
41412         * modules/fnmatch (Depends-on): Add wctype.
41413         * modules/quotearg (Depends-on): Likewise.
41414         * modules/regex (Depends-on): Likewise.
41415
41416 2006-12-19  Bruno Haible  <bruno@clisp.org>
41417
41418         * lib/strdup.h [C++]: Wrap definitions in extern "C".
41419         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
41420
41421 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41422
41423         * modules/savewd (Depends-on): Fix dependency on fcntl.
41424
41425 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41426
41427         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
41428         conforms to C99, rather than relying on the user's environment
41429         setting of STDINT_H.
41430
41431 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41432         and Eric Blake  <ebb9@byu.net>
41433
41434         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
41435         This is more consistent with the other defines here.
41436         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
41437         Port to z/OS.  Problem reported by Paul Gilmartin.
41438         Change local vars to use gl_ prefix rather than ac_.
41439         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
41440         with other defines.
41441         * modules/double-slash-root: New module.
41442         * modules/dirname (Files): Remove m4/double-slash-root.m4.
41443         (Depends-on): Add double-slash-root.
41444         * MODULES.html.sh (File system functions): Mention new module.
41445
41446 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
41447
41448         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
41449         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
41450         This is for the benefit of gzip, which doesn't do i18n.
41451
41452 2006-12-12  Jim Meyering  <jim@meyering.net>
41453
41454         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
41455         Reported by Andreas Schwab <schwab@suse.de>.
41456
41457 2006-12-12  Bruno Haible  <bruno@clisp.org>
41458
41459         Merge these changes.
41460         2006-09-05  Bruno Haible  <bruno@clisp.org>
41461         * lib/iconvme.c (iconv_string): No need to save and restore errno when
41462         iconv_alloc succeeded.
41463         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
41464         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
41465         test for " && dest " at the end - dest is always != NULL there. Call
41466         iconv with 4xNULL arguments initially, to reset the state. Call iconv
41467         with 2xNULL arguments, also to flush the state storage. Handle the
41468         IRIX iconv behaviour. Realloc the final result, to throw away unused
41469         memory.
41470
41471 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
41472
41473         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
41474         and fchmodat unconditionally, since glibc 2.4 has them.
41475         Problem reported by Arkadiusz Miskiewicz.
41476
41477 2006-12-10  Bruno Haible  <bruno@clisp.org>
41478
41479         * gnulib-tool (func_import): Show the include files only for those
41480         modules that are copied and specified.
41481         Reported by Karl Berry.
41482
41483 2006-12-08  Jim Meyering  <jim@meyering.net>
41484
41485         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
41486         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
41487
41488         * build-aux/announce-gen: Add two new options, both optional:
41489         --bootstrap-tools=TOOL_LIST
41490               a comma-separated list of tools, e.g.,
41491               autoconf,automake,bison,gnulib
41492         --gnulib-snapshot-date=DATE
41493               if gnulib is in the bootstrap tool list,
41494               then report this as the snapshot date.
41495               If not specified, use the current date/time.
41496               If you specify a date here, be sure it's UTC.
41497
41498 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41499
41500         * tests/test-argp-2.sh: Fix test to match actual output.
41501         (func_compare): Fix sed script to be portable.
41502
41503 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
41504
41505         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
41506         workaround for this case.  It is not autoconfigured now; offhand
41507         it's hard to see how to autoconfigure it.
41508
41509 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
41510
41511         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
41512         a directory that is about to be chowned.  Such a directory's
41513         initial file permissions should permit the owner only and this
41514         should not be changed until after the chown, since the group and
41515         other bits would be incorrect if they granted permission before
41516         the chown.
41517
41518         Fix porting problem for iswctype reported by Georg Schwarz in:
41519         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
41520         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
41521         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
41522         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
41523         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41524
41525 2006-12-03  Jim Meyering  <jim@meyering.net>
41526
41527         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
41528         p->fts_statp may not yet be defined.
41529         (fts_read): Instead, set it in the caller, once p->fts_statp is
41530         sure to be defined, and corresponds to a top-level directory.
41531         This bug made du -x fail.  Here's the coreutils test case:
41532         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
41533         Reported by Mike Frysinger.
41534
41535 2006-12-01  Jim Meyering  <jim@meyering.net>
41536
41537         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
41538         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
41539         Reported by Simon Josefsson.
41540
41541 2006-11-30  Jim Meyering  <jim@meyering.net>
41542
41543         * m4/warning.m4: Use the all-permissive copyright notice
41544         recommended by RMS (rather than LGPL).
41545         * m4/vararrays.m4: Likewise.
41546         * m4/flexmember.m4: Likewise.
41547
41548 2006-11-29  Bruno Haible  <bruno@clisp.org>
41549
41550         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41551         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
41552         using +=.
41553         Reported by Simon Josefsson <simon@josefsson.org>.
41554
41555 2006-11-28  James Youngman <jay@gnu.org>
41556
41557         * README: Advise users that they might find the bug-gnulib@gnu.org
41558         and autotools-announce@gnu.org mailing lists useful.
41559
41560 2006-11-28  Bruno Haible  <bruno@clisp.org>
41561
41562         * m4/ptrdiff_max.m4: Remove file.
41563
41564 2006-11-21  Bruno Haible  <bruno@clisp.org>
41565
41566         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
41567         _AC_COMPUTE_INT.
41568         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41569         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
41570         _AC_COMPUTE_INT.
41571         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41572         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
41573         _AC_COMPUTE_INT.
41574         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41575
41576 2006-11-28  Jim Meyering  <jim@meyering.net>
41577
41578         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
41579         warning from "gcc -Wshadow" about shadowing the builtin.
41580
41581 2006-11-27  Bruno Haible  <bruno@clisp.org>
41582
41583         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
41584         _AC_COMPUTE_INT.
41585         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
41586
41587 2006-11-27  Bruno Haible  <bruno@clisp.org>
41588             Paul Eggert  <eggert@cs.ucla.edu>
41589
41590         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
41591
41592 2006-11-26  Bruno Haible  <bruno@clisp.org>
41593
41594         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41595         noinst_LTLIBRARIES.
41596
41597 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
41598             Bruno Haible  <bruno@clisp.org>
41599
41600         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
41601         if compiling with "gcc -ansi".
41602
41603 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
41604
41605         Fix some incompatibilities with gcc -ansi -pedantic.
41606         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
41607         if compiling pedantically with GCC, unless it's C99 or later.
41608         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
41609         it mishandles gcc -ansi -pedantic as well.
41610         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
41611         if gcc -pedantic.
41612         * lib/regexec.c (check_node_accept_bytes): Don't use auto
41613         initializers for struct if -pedantic, unless it's C99 or later.
41614
41615 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
41616
41617         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
41618         Don't close an fd more than once. Identical atimes indicate
41619         success, not failure.
41620
41621 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
41622
41623         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
41624
41625 2006-11-23  Jim Meyering  <jim@meyering.net>
41626
41627         * build-aux/announce-gen: New file.  From coreutils.
41628
41629 2006-11-22  Jim Meyering  <jim@meyering.net>
41630
41631         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
41632         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
41633         (fts_read): Use a temporary to narrow the overused st_size member
41634         before using it in a switch statement.  Reported by Matthew Woehlke.
41635
41636         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
41637         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41638
41639 2006-11-20  Bruno Haible  <bruno@clisp.org>
41640
41641         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
41642         changequote instead of pairs of brackets.
41643         Reported by Andreas Schwab <schwab@suse.de>.
41644
41645 2006-11-21  Jim Meyering  <jim@meyering.net>
41646
41647         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
41648         so as to remain compatible with older compilers.
41649         Patch from Michael Deutschmann.
41650
41651 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41652
41653         * MODULES.html.sh (File system functions): Add openat.
41654
41655         * lib/openat.h (rpl_fstatat): New macro, if
41656         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
41657         (fstatat): Define to rpl_fstatat under the same conditions,
41658         unless COMPILING_FSTATAT.
41659         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
41660         seems to have the bug.
41661         * lib/fstatat.c: New file.
41662         * modules/openat (Files): Add it.
41663
41664 2006-11-20  Bruno Haible  <bruno@clisp.org>
41665
41666         * Makefile: New file.
41667
41668 2006-11-20  Jim Meyering  <jim@meyering.net>
41669
41670         The beginnings of syntax-related checks for gnulib.
41671         * lib/Makefile: New file.
41672         * lib/t-idcache: New script.  Ensure that the two halves of
41673         idcache.c stay in sync.
41674
41675         * lib/idcache.c: Adjust comments in user- and group- portions to
41676         be more accurate, and to be consistent with one another.
41677
41678 2006-11-20  Jim Meyering  <jim@meyering.net>
41679
41680         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
41681         continue using the flexible array member (thus, this module performs
41682         half as many malloc calls), with the addition that...
41683         (getgroup, getuser): Consistently record a non-match via an empty
41684         "name" string, and map an empty string match to a NULL return value.
41685         * modules/idcache (Depends-on): Re-add flexmember.
41686
41687         * lib/idcache.c (getuser): Remove all uses of the register keyword.
41688         (getuidbyname, getgroup, getgidbyname): Likewise.
41689
41690         Use cleaner syntax: NULL rather than 0.
41691         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
41692
41693 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
41694
41695         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
41696         It mishandled the case where the group was missing.
41697         Problem reported by Greg Schafer.
41698         * modules/idcache: Likewise.
41699
41700 2006-11-18  Jim Meyering  <jim@meyering.net>
41701
41702         * check-module (%exempt_header): Add exception for some
41703         conditionally-included headers.
41704
41705         * modules/i-ring (Depends-on): Add verify.
41706         (License): Change to LGPL.
41707
41708 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
41709
41710         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
41711         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
41712         and inttostr.h.  Use snprintf rather than uinttostr, so that
41713         LGPLed code doesn't depend on GPLed.
41714
41715 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
41716
41717         * modules/inline (License): Change from GPL to LGPL.
41718
41719 2006-11-17  Jim Meyering  <jim@meyering.net>
41720
41721         * modules/d-type (License): Switch to LGPL.
41722
41723 2006-11-15  Bruno Haible  <bruno@clisp.org>
41724
41725         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
41726
41727 2006-11-15  Eric Blake  <ebb9@byu.net>
41728
41729         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
41730         the module dependency.
41731
41732 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41733             Bruno Haible  <bruno@clisp.org>
41734
41735         * gnulib-tool (func_create_testdir): Add license consistency check.
41736
41737 2006-11-15  Eric Blake  <ebb9@byu.net>
41738
41739         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
41740         random "(cached)" in configure output.
41741
41742 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41743
41744         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
41745         test for conforming inttypes.h is both announced and cached.
41746
41747         * MODULES.html.sh (seen_modules, seen_files): New variables.
41748         (func_module): Rewrite to use a few less gnulib-tool and sed
41749         invocations.  Avoid a couple of quadratic algorithms for ...
41750         (missed_modules, missed_files): ... these, with ...
41751         (func_append, func_tmpdir): ... these new functions, from
41752         gnulib-tool.  Analogously, install traps for cleanup.
41753
41754         * tests/test-gc.c (main): Remove unused variables.
41755         * tests/test-read-file.c: Include stdlib.h, for 'free'.
41756
41757 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
41758
41759         * modules/inttostr (License): Change to LGPL.
41760
41761 2006-11-14  Eric Blake  <ebb9@byu.net>
41762
41763         * modules/tempname (License): Change to LGPL.
41764
41765 2006-11-14  Eric Blake  <ebb9@byu.net>
41766
41767         * doc/functions.texi (Function Portability): *printf functions on
41768         Cygwin now understand all POSIX size specifiers.
41769
41770 2006-11-14  Bruno Haible  <bruno@clisp.org>
41771
41772         * modules/c-ctype (License): Change to LGPL.
41773
41774 2006-11-12  Bruno Haible  <bruno@clisp.org>
41775
41776         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41777         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
41778         for GNOME libraries, for which the include files are installed in
41779         subdirectories of $prefix/include.
41780
41781 2006-11-12  Bruno Haible  <bruno@clisp.org>
41782
41783         * m4/lib-link.m4: Require at least autoconf-2.54.
41784         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
41785         name to underscores for the --with option.
41786
41787 2006-11-13  Bruno Haible  <bruno@clisp.org>
41788
41789         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
41790         the tests directory.
41791         Reported by Ralf Wildenhues.
41792
41793 2006-11-13  Bruno Haible  <bruno@clisp.org>
41794
41795         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
41796         (func_emit_initmacro_end): Undo the override here.
41797         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
41798         Works around the famous automake error in coreutils.
41799
41800 2006-11-13  Eric Blake  <ebb9@byu.net>
41801
41802         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
41803         element, not its node.
41804
41805 2006-11-12  Bruno Haible  <bruno@clisp.org>
41806
41807         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
41808         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
41809
41810 2006-11-12  Bruno Haible  <bruno@clisp.org>
41811
41812         * gnulib-tool: New option --local-symlink.
41813         (func_usage): Document it.
41814         (lsymbolic): New variable.
41815         (func_import, func_create_testdir): If --symlink was not specified,
41816         test whether --local-symlink was specified and the file comes from
41817         the local_gnulib_dir.
41818
41819 2006-11-12  Bruno Haible  <bruno@clisp.org>
41820
41821         * gnulib-tool (func_ln): New function.
41822         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
41823
41824 2006-11-12  Bruno Haible  <bruno@clisp.org>
41825
41826         Finish support for source files in subdirectories.
41827         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
41828         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
41829         AUTOMAKE_OPTIONS.
41830         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
41831
41832 2006-11-12  Bruno Haible  <bruno@clisp.org>
41833
41834         * gnulib-tool (func_get_automake_snippet): Synthesize also an
41835         EXTRA_lib_SOURCES augmentation.
41836         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
41837
41838 2006-11-12  Jim Meyering  <jim@meyering.net>
41839
41840         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
41841         file descriptors.  This also averts a failure on systems with
41842         native openat support when a traversed directory lacks "x" access.
41843         * lib/fts_.h: Include "i-ring.h"
41844         (struct FTS) [fts_fd_ring]: New member.
41845         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
41846         (FCHDIR): Add parentheses.
41847         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
41848         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
41849         When descending, rather than simply closing the previous
41850         fts_cwd_fd value, push that file descriptor onto the ring.
41851         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
41852         (fts_open): Initialize the new fd_ring member.
41853         (fts_close): Clear the ring.
41854         (fts_safe_changedir): When possible, use our new fd_ring to skip
41855         the diropen and fstat and dev/ino comparison that would normally
41856         accompany a virtual `chdir ("..")'.
41857
41858         * modules/fts (Depends-on): Add i-ring.
41859         * modules/i-ring: New module.
41860         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
41861         * m4/i-ring.m4: New file.
41862
41863 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41864
41865         * gnulib-tool (func_create_testdir): Fix replacement of
41866         `build-aux' in configure.ac.  Run autotools in gltests
41867         subdirectory.
41868         (func_create_testdir, func_create_megatestdir, test): There is
41869         no need for '--force' in most autotool invocations in a new
41870         tree.  Actually fail the whole test if any of the tools, or the
41871         configure or make stages fail.
41872
41873         Sync from Automake.
41874         * build-aux/gnupload: Revert last change.  Add pointer to upload
41875         instructions of the GNU Maintenance Instructions.
41876         Suggestion by Karl Berry.
41877
41878 2006-11-10  Jim Meyering  <jim@meyering.net>
41879
41880         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
41881
41882 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41883
41884         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
41885         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
41886         (bind_textdomain_codeset) [! ENABLE_NLS]:
41887         Evaluate all the arguments.  That way, callers get compatible behavior
41888         if the arguments have side effects.  Also, it avoids some GCC
41889         diagnostics in some cases; Joel E. Denny reported problems when Bison
41890         was configured with --enable-gcc-warnigs.
41891
41892 2006-11-10  Jim Meyering  <jim@meyering.net>
41893
41894         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
41895         relevant options in CFLAGS (like -O, -fno-inline) are taken into
41896         account.
41897
41898 2006-11-10  Jim Meyering  <jim@meyering.net>
41899
41900         * modules/inline: New file/module.
41901         * modules/xalloc (Files): Remove m4/inline.m4.
41902         (Depends-on): Add inline, instead.
41903         * modules/oset: Likewise.
41904         * modules/list: Likewise.
41905
41906 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
41907
41908         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
41909         Problem reported by Matthew Woehlke.
41910
41911 2006-11-09  Bruno Haible  <bruno@clisp.org>
41912
41913         * lib/tempname.c (gen_tempname): Remove variant that invokes
41914         __gen_tempname.
41915         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
41916         __gen_tempname.
41917
41918 2006-11-08  Bruno Haible  <bruno@clisp.org>
41919
41920         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
41921         to 'yes' instead of 'cross-compiling'.
41922
41923 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
41924
41925         * lib/quotearg.h (quotearg_free): New decl.
41926         * lib/quotearg.c (quotearg_free): New function.
41927         (slot0, nslots, slotvec0, slotvec):
41928         Now file-scope so that quotearg_free can get at them.
41929
41930 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41931
41932         Sync from Automake.
41933         * build-aux/gnupload: Add missing 'gnu' to example URL.
41934         Report by Karl Berry.
41935
41936 2006-11-08  Bruno Haible  <bruno@clisp.org>
41937
41938         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
41939         Suggested by Paul Eggert.
41940
41941 2006-11-08  Jim Meyering  <jim@meyering.net>
41942
41943         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
41944         It's already included if !_LIBC.
41945         (fts_safe_changedir): Add a comment.
41946
41947 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41948
41949         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
41950         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
41951         Matthew Woehlke.
41952
41953         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
41954         definitions up, to avoid colliding with change below.
41955         (static_inline) [HAVE_INLINE]: New macro.
41956         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
41957         Provide extern decls when !HAVE_INLINE.  Do not define unless
41958         static_inline is defined, either by us or by xmalloc.c.  Use
41959         static_inline rather than static inline.
41960         (XCALLOC): Optimize sizeof(T) = 1 case.
41961         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
41962
41963 2006-11-07  Bruno Haible  <bruno@clisp.org>
41964
41965         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
41966         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
41967         AC_C_INLINE.
41968         * modules/xalloc (Files): Add m4/inline.m4.
41969
41970 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41971
41972         * README: Fix typo.
41973         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
41974         (Miscellanous Notes): ...from this.
41975
41976 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
41977
41978         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41979         Mention that offsetof should be used instead of sizeof.
41980         From Bruno Haible.
41981
41982 2006-11-07  Bruno Haible  <bruno@clisp.org>
41983
41984         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
41985
41986 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
41987
41988         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
41989         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
41990         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41991         (gl_tree_add_before, gl_tree_add_after):
41992         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
41993         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
41994         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
41995         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
41996         (gl_linked_add_after, gl_linked_add_at): Likewise.
41997         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
41998         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
41999         (gl_tree_add_before, gl_tree_add_after): Likewise.
42000         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
42001         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
42002         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
42003
42004 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42005
42006         * lib/gl_oset.h: Use C comment style, not C++ comment style.
42007
42008 2006-11-06  Bruno Haible  <bruno@clisp.org>
42009
42010         * m4/inline.m4: New file.
42011         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
42012         * modules/list (Files): Add m4/inline.m4.
42013         * modules/oset (Files): Likewise.
42014
42015 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42016
42017         * lib/idcache.c: Include <stddef.h>, for offsetof.
42018         (struct userid.name): Change from char * to a flexible array member.
42019         All uses changed.
42020         * modules/idcache (Depends-on): Add flexmember.
42021
42022         * MODULES.html.sh (Core language properties): New module flexmember.
42023         * modules/flexmember, m4/flexmember.m4: New files.
42024
42025         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
42026         inline functions that are identical with the old xnmalloc_inline,
42027         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
42028         that we can avoid some unnecessary integer multiplications and
42029         divisions in the common case where the element size is known at
42030         compile time.
42031         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
42032         needed.
42033         (xnboundedmalloc): Remove.
42034         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
42035         arguments, for consistency with rest of this header.
42036         (xcharalloc): Rewrite using XNMALLOC.
42037         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
42038         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
42039         versions have been moved to lib/xalloc.h and renamed to be the
42040         non-*_inline versions.
42041         (xmalloc, xrealloc): Implement without reference to the xnmalloc
42042         and xnrealloc functions, since those functions are now inline and
42043         now call us.
42044         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
42045         renaming described above.
42046         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
42047         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
42048         captures the dependency in AC_C_INLINE.
42049
42050         New module canonicalize-lgpl, proposed by Charles Wilson in
42051         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
42052         with a few small changes afterwards.
42053         * MODULES.html.sh (File system functions): New module
42054         canonicalize-lgpl.
42055         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
42056         and canonicalize_file_name.
42057         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
42058         * modules/canonicalize-lgpl: New files.
42059
42060 2006-11-05  Bruno Haible  <bruno@clisp.org>
42061
42062         * gnulib-tool (func_import, func_create_testdir): Create directories
42063         also for files in subdirectories of lib/.
42064
42065 2006-11-05  Bruno Haible  <bruno@clisp.org>
42066
42067         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
42068         ANSI C compliant.
42069
42070 2006-11-03  Bruno Haible  <bruno@clisp.org>
42071
42072         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
42073         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
42074         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
42075         (xnboundedmalloc): New inline function.
42076         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
42077         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
42078         xmalloc.
42079         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
42080         xmalloc.
42081         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
42082         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
42083         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
42084         xmalloc.
42085         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42086         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
42087         xmalloc.
42088         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
42089         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42090         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
42091         xmalloc.
42092         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
42093         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
42094         gl_tree_add_after): Use XMALLOC instead of xmalloc.
42095         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
42096         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
42097         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
42098         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
42099
42100 2006-11-03  Bruno Haible  <bruno@clisp.org>
42101
42102         * lib/c-ctype.h [C++]: Define functions without name mangling.
42103         * lib/fwriteerror.h [C++]: Likewise.
42104         * lib/gcd.h [C++]: Likewise.
42105         * lib/linebreak.h [C++]: Likewise.
42106
42107 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
42108
42109         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
42110         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
42111         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
42112         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42113         Check for functions and headers just once.
42114         Check for declaration of canonicalize_file_name.
42115         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
42116
42117 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42118
42119         * gnulib-tool (func_import): Fix typo in actioncmd.
42120
42121 2006-11-02  Bruno Haible  <bruno@clisp.org>
42122
42123         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
42124         newline sequence in the Makefile.am snippet as a space, like "make"
42125         does.
42126         Reported by Roger Persson <perrog@gmail.com>.
42127
42128 2006-11-01  Bruno Haible  <bruno@clisp.org>
42129
42130         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
42131         already declared in <string.h>.
42132         * lib/strcase.h (strncasecmp): Don't declare it if yes.
42133
42134 2006-11-01  Bruno Haible  <bruno@clisp.org>
42135
42136         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
42137         * lib/strcase.h: Include <string.h>.
42138         (strcasecmp): Define to rpl_strcasecmp here.
42139
42140 2006-11-01  Bruno Haible  <bruno@clisp.org>
42141
42142         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
42143
42144 2006-11-01  Eric Blake  <ebb9@byu.net>
42145
42146         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
42147
42148         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
42149
42150 2006-10-29  Bruno Haible  <bruno@clisp.org>
42151
42152         Make it compile in C++ mode.
42153         * lib/full-write.c (full_rw): Add a cast.
42154
42155 2006-11-01  Bruno Haible  <bruno@clisp.org>
42156
42157         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
42158         be POSIX compliant.
42159         Reported by Roger Persson <perrog@gmail.com>.
42160
42161 2006-11-01  Eric Blake  <ebb9@byu.net>
42162
42163         * lib/getopt_.h: Fix comments.
42164
42165 2006-10-31  Eric Blake  <ebb9@byu.net>
42166
42167         * modules/tmpdir (Depends-on): Add sys_stat.
42168         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
42169         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
42170         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
42171         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
42172         tempname.
42173
42174 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42175
42176         Avoid some C++ diagnostics reported by Bruno Haible.
42177         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
42178         xmalloc.
42179         (quotearg_alloc): Use xcharalloc rather than xmalloc.
42180         (struct slotvec): Move to top level.
42181         (quotearg_n_options): Rewrite to avoid xmalloc.
42182         * lib/xalloc.h (xcharalloc): New function.
42183         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
42184         [defined __cplusplus]: Add function template that provides result
42185         type propagation.  This part of the change is from Bruno Haible.
42186
42187 2006-10-29  Bruno Haible  <bruno@clisp.org>
42188
42189         Make it compile in C++ mode.
42190         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
42191         * lib/strnlen1.c (strnlen1): Cast memchr result.
42192         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
42193         * lib/clean-temp.c (string_equals, string_hash): Add casts.
42194         (create_temp_dir): Rename local variable 'template'.
42195         (compile_csharp_using_sscli): Add cast.
42196         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
42197         * lib/findprog.c (find_in_path): Likewise.
42198         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
42199         * lib/wait-process.c (register_slave_subprocess): Likewise.
42200
42201 2006-10-22  Bruno Haible  <bruno@clisp.org>
42202
42203         * modules/tsearch: New file.
42204         * lib/tsearch.h: New file.
42205         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
42206         * m4/tsearch.m4: New file.
42207         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
42208
42209 2006-10-29  Eric Blake  <ebb9@byu.net>
42210
42211         * lib/arcfour.c: Assume config.h.
42212         * lib/arctwo.c: Likewise.
42213         * lib/base64.c: Likewise.
42214         * lib/check-version.c: Likewise.
42215         * lib/crc.c: Likewise.
42216         * lib/des.c: Likewise.
42217         * lib/gc-gnulib.c: Likewise.
42218         * lib/gc-libgcrypt.c: Likewise.
42219         * lib/gc-pbkdf2-sha1.c: Likewise.
42220         * lib/getaddrinfo.c: Likewise.
42221         * lib/getdelim.c: Likewise.
42222         * lib/getline.c: Likewise.
42223         * lib/hmac-md5.c: Likewise.
42224         * lib/hmac-sha1.c: Likewise.
42225         * lib/iconvme.c: Likewise.
42226         * lib/md2.c: Likewise.
42227         * lib/md4.c: Likewise.
42228         * lib/memxor.c: Likewise.
42229         * lib/read-file.c: Likewise.
42230         * lib/readline.c: Likewise.
42231         * lib/rijndael-alg-fst.c: Likewise.
42232         * lib/rijndael-api-fst.c: Likewise.
42233         * lib/xgetdomainname.c: Likewise.
42234
42235 2006-10-28  Eric Blake  <ebb9@byu.net>
42236
42237         * lib/xstrndup.c: Assume config.h.
42238
42239 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42240
42241         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
42242         stat-macros.h is now for our own macros, whereas stat_h is for
42243         macros in the <sys/stat.h> name space.
42244         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
42245         (STAT_MACROS_H): Remove.
42246         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
42247         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
42248         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
42249         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
42250         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
42251         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
42252         Move these macros to ...
42253         * lib/stat_.h: here.  Don't include stat-macros.h.
42254         * lib/canonicalize.c: Don't include stat-macros.h.
42255         * lib/chown.c: Likewise.
42256         * lib/euidaccess.c: Likewise.
42257         * lib/file-type.c: Likewise.
42258         * lib/filemode.c: Likewise.
42259         * lib/glob.c: Likewise.
42260         * lib/isapipe.c: Likewise.
42261         * lib/lchown.c: Likewise.
42262         * lib/lstat.c: Likewise.
42263         * lib/mkdir-p.c: Likewise.
42264         * lib/rmdir.c: Likewise.
42265         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
42266         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
42267         unless mkdir isn't declared, to speed up 'configure'.
42268         Always create sys/stat.h, since it's unlikely any real sys/stat.h
42269         would define all the S_* symbols.
42270         * modules/canonicalize (Depends-on):
42271         Depend on sys_stat, not stat-macros.
42272         * modules/chown: Likewise.
42273         * modules/euidaccess: Likewise.
42274         * modules/filemode: Likewise.
42275         * modules/file-type: Likewise.
42276         * modules/glob: Likewise.
42277         * modules/isapipe: Likewise.
42278         * modules/lchown: Likewise.
42279         * modules/lstat: Likewise.
42280         * modules/mkancesdirs: Likewise.
42281         * modules/rmdir: Likewise.
42282         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
42283         * modules/modechange: Likewise.
42284         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
42285         (configure.ac): Remove gl_STAT_MACROS.
42286         * modules/sys_stat (Depends-on): Remove stat-macros.
42287
42288 2006-10-27  Bruno Haible  <bruno@clisp.org>
42289
42290         * m4/signed.m4: Remove file.
42291         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
42292         invocation.
42293         * modules/vasnprintf (Files): Remove m4/signed.m4.
42294
42295 2006-10-27  Bruno Haible  <bruno@clisp.org>
42296
42297         Update to GNU gettext 0.16.
42298         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
42299         m4/inttypes-h.m4, m4/signed.m4.
42300         * m4/gettext.m4: Update to GNU gettext 0.16.
42301         * m4/intl.m4: New file, from GNU gettext.
42302         * m4/intldir.m4: New file, from GNU gettext.
42303         * config/srclist.txt: Update
42304
42305 2006-10-27  Eric Blake  <ebb9@byu.net>
42306
42307         * MODULES.html.sh: Document tempname.
42308         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
42309         dependencies.
42310         (Files): Move lib/tempname.c...
42311         * modules/tempname: ...to this new module.
42312         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
42313         (gl_PREREQ_TEMPNAME): Move...
42314         * m4/tempname.m4: ...to this new file.
42315         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
42316         * modules/sys_stat (Depends-on): Add stat-macros.
42317         * lib/stat_.h (includes): Pick up stat macros.
42318         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
42319         if stat macros are broken.
42320         * lib/tempname.c (includes): No need to include "stat-macros.h".
42321         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
42322         (direxists, __path_search) [!_LIBC]: Don't compile these in
42323         gnulib; the tmpdir module covers that.
42324         * lib/tempname.h: New file.
42325
42326 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
42327
42328         * COPYING: Explain how gnulib-tool converts licence headers.
42329         Almost all wording by Eric Blake.
42330
42331 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
42332
42333         * lib/mbchar.h (is_basic_table): Make read-only.
42334         * lib/mbchar.c (is_basic_table): Likewise.
42335         Reported by John Darrington.
42336
42337 2006-10-25  Bruno Haible  <bruno@clisp.org>
42338
42339         * lib/progname.h (set_program_name): Undefine before defining.
42340
42341 2006-10-25  Bruno Haible  <bruno@clisp.org>
42342
42343         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
42344         false for non-gcc C++ compilers.
42345         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
42346
42347 2006-10-24  Bruno Haible  <bruno@clisp.org>
42348
42349         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
42350         iconv implementations like Irix iconv.
42351
42352 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42353
42354         * modules/vararrays: New file.
42355         * m4/vararrays.m4: New file, taken from diffutils.
42356         * MODULES.html.sh: New module vararrays.
42357
42358 2006-10-24  Karl Berry  <karl@gnu.org>
42359
42360         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
42361         Don't call GNU Unix.
42362
42363 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42364
42365         * users.txt: Add Libtool.
42366
42367         Sync from Libtool:
42368
42369         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42370
42371         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
42372         to gnulib's policy of including config.h unconditionally.
42373
42374 2006-10-24  Bruno Haible  <bruno@clisp.org>
42375
42376         * modules/wcwidth (Files): Add m4/wint_t.m4.
42377         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
42378         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
42379
42380 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
42381
42382         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
42383         to pacify GCC with some -W flags enabled.  Problem reported by
42384         Bruno Haible.
42385
42386 2006-10-24  Jim Meyering  <jim@meyering.net>
42387
42388         * MODULES.html.sh: Remove uinttostr.  It's not a module.
42389         Reported by Karl Berry.
42390
42391 2006-10-23  Bruno Haible  <bruno@clisp.org>
42392
42393         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
42394
42395 2006-10-24  Bruno Haible  <bruno@clisp.org>
42396
42397         * lib/gl_list.h: Use C comment style, not C++ comment style.
42398
42399 2006-10-23  Eric Blake  <ebb9@byu.net>
42400
42401         * lib/getaddrinfo.c (includes): Add missing include.
42402
42403 2006-10-23  Bruno Haible  <bruno@clisp.org>
42404             Paul Eggert  <eggert@cs.ucla.edu>
42405
42406         Ability to rename obstack_free.
42407         * lib/obstack.h (__obstack_free): New macro. Declare instead of
42408         obstack_free.
42409         (obstack_free): Invoke the __obstack_free macro.
42410         * lib/obstack.c (obstack_free): Use __obstack_free macro.
42411
42412 2006-10-23  Bruno Haible  <bruno@clisp.org>
42413             Paul Eggert  <eggert@cs.ucla.edu>
42414
42415         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
42416         __argc, __argv from the declaration. (They are defined as macros on
42417         mingw.)
42418
42419 2006-10-22  Bruno Haible  <bruno@clisp.org>
42420
42421         * doc/gnulib-intro.texi: New file.
42422         * doc/gnulib.texi: Include it.
42423
42424 2006-10-21  Bruno Haible  <bruno@clisp.org>
42425
42426         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
42427         "Introduction", "Miscellanous Notes", "Particular Modules".
42428
42429 2006-10-21  Bruno Haible  <bruno@clisp.org>
42430
42431         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42432         Change mostlyclean-local rule to avoid sh syntax error from bash
42433         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
42434
42435 2006-10-23  Jim Meyering  <jim@meyering.net>
42436
42437         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
42438         in place of snprintf.
42439
42440         * modules/inttostr (Files): Add lib/uinttostr.c.
42441         * lib/uinttostr.c (inttostr): New file/function.
42442         * lib/inttostr.h (uinttostr): Declare.
42443         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
42444         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42445         Add uinttostr.
42446         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
42447
42448 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42449
42450         * lib/canonicalize.c (ELOOP): Define if not already defined.
42451         Problem reported by Bruno Haible in
42452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
42453
42454 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
42455
42456         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
42457         Problem reported by Perry Smith and Ville Laurikari.
42458
42459         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
42460         uses.
42461
42462 2006-10-19  Bruno Haible  <bruno@clisp.org>
42463
42464         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
42465         for mingw.
42466
42467 2006-10-19  Bruno Haible  <bruno@clisp.org>
42468
42469         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
42470         Needed for mingw.
42471
42472 2006-10-19  Bruno Haible  <bruno@clisp.org>
42473
42474         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
42475
42476 2006-10-19  Bruno Haible  <bruno@clisp.org>
42477
42478         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
42479         it.
42480
42481 2006-10-19  Bruno Haible  <bruno@clisp.org>
42482
42483         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
42484         invocation.
42485
42486 2006-10-19  Bruno Haible  <bruno@clisp.org>
42487
42488         * gnulib-tool (func_create_testdir): Don't include ftruncate and
42489         mountlist by default.
42490
42491 2006-10-16  Bruno Haible  <bruno@clisp.org>
42492
42493         * lib/c-strstr.c: Include c-strstr.h.
42494
42495 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
42496
42497         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
42498         in a slash.
42499
42500 2006-10-18  Bruno Haible  <bruno@clisp.org>
42501
42502         * lib/lock.h [C++]: Wrap definitions in extern "C".
42503
42504 2006-10-18  Bruno Haible  <bruno@clisp.org>
42505
42506         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
42507         gl_LIBOBJS list.
42508
42509 2006-10-18  Bruno Haible  <bruno@clisp.org>
42510
42511         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
42512
42513 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
42514
42515         * lib/xstrtol.h: Include gettext.h.
42516         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
42517         Problem reported by Eric Blake.
42518         * modules/xstrtol (Depends-on): Add gettext-h.
42519
42520 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
42521
42522         * lib/strftime.c (advance): New macro.
42523         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
42524         incomplete type, so you can't add 0 to it.  Problem and patch
42525         reported by Eelco Dolstra for dietlibc.
42526
42527 2006-10-18  Jim Meyering  <jim@meyering.net>
42528
42529         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
42530         type for a local, and rename it: s/up/user_proc/.
42531
42532 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
42533
42534         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
42535         READ_UTMP_USER_PROCESS.
42536         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
42537
42538 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
42539
42540         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
42541         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
42542
42543 2006-10-17  Eric Blake  <ebb9@byu.net>
42544
42545         * lib/sigprocmask.c (sigprocmask): Fix typo.
42546
42547         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
42548
42549         * modules/clean-temp (Makefile.am): Don't add to make output...
42550         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
42551         config.h.
42552
42553 2006-10-17  Bruno Haible  <bruno@clisp.org>
42554
42555         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
42556         differently if DEFAULT_TEXT_DOMAIN is set.
42557
42558 2006-10-16  Bruno Haible  <bruno@clisp.org>
42559
42560         * lib/clean-temp.c: Include fwriteerror.h.
42561
42562 2006-10-16  Bruno Haible  <bruno@clisp.org>
42563
42564         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
42565
42566 2006-10-16  Bruno Haible  <bruno@clisp.org>
42567
42568         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
42569         * lib/sigprocmask.h: Include <sys/types.h>.
42570         (sigset_t): Use the system's definition if present.
42571
42572 2006-10-17  Eric Blake  <ebb9@byu.net>
42573
42574         * lib/xvasprintf.c (includes): Assume config.h.
42575         * lib/xasprintf.c (includes): Likewise.
42576
42577 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42578
42579         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
42580         at least as wide as intmax_t.
42581
42582 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
42583
42584         (Imported from Automake.)
42585         * build-aux/gnupload: Update to version 1.1 of directive file.
42586
42587 2006-10-16  Eric Blake  <ebb9@byu.net>
42588
42589         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
42590         match Automake 1.10a.
42591
42592 2006-10-14  Bruno Haible  <bruno@clisp.org>
42593
42594         * modules/sigprocmask: New file.
42595         * lib/sigprocmask.h: New file.
42596         * lib/sigprocmask.c: New file.
42597         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
42598         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
42599         request sigprocmask.o.
42600         (gl_PREREQ_SIGPROCMASK): New macro.
42601         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
42602         (Depends-on): Add sigprocmask.
42603         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
42604         gt_SIGNALBLOCKING. Test for 'raise' only once.
42605         * lib/fatal-signal.c: Include sigprocmask.h.
42606         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
42607         unblock_fatal_signals): Define always.
42608         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42609         sigprocmask.
42610
42611 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
42612
42613         Sync from Automake.
42614         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
42615         which incorrectly sets the mode of an existing destination
42616         directory.  In some cases the unpatched install-sh could do the
42617         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
42618         system.  We hope this is rare in practice, but it's clearly worth
42619         fixing.  Problem reported by Alex Unleashed in
42620         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
42621         Also, don't bother to check for -m bugs unless we're using -m;
42622         suggested by Stepan Kasal.
42623
42624 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42625
42626         Sync from Automake.
42627         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
42628         `-c' flag, so they appear at the same position as in %FASTDEP%
42629         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
42630         which ignores unknown options only after the first non-option.
42631         Bug report against M4 by Nelson H. F. Beebe.
42632
42633 2006-10-13  Jim Meyering  <jim@meyering.net>
42634
42635         Fix a bug in yesterday's change.
42636         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
42637         p->fts_statp->st_dev would be used uninitialized.
42638         Ensures that we always call fts_stat on the very first entry.
42639         Miklos Szeredi reported that find -xdev stopped working.
42640
42641 2006-10-12  Bruno Haible  <bruno@clisp.org>
42642
42643         * gnulib-tool (func_get_automake_snippet): Append an automatically
42644         computed EXTRA_DIST augmentation.
42645         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
42646         * modules/alloca-opt (Makefile.am): Likewise.
42647         * modules/allocsa (Makefile.am): Likewise.
42648         * modules/arcfour (Makefile.am): Likewise.
42649         * modules/arctwo (Makefile.am): Likewise.
42650         * modules/argmatch (Makefile.am): Likewise.
42651         * modules/argz (Makefile.am): Likewise.
42652         * modules/atexit (Makefile.am): Likewise.
42653         * modules/backupfile (Makefile.am): Likewise.
42654         * modules/byteswap (Makefile.am): Likewise.
42655         * modules/c-strtod (Makefile.am): Likewise.
42656         * modules/c-strtold (Makefile.am): Likewise.
42657         * modules/calloc (Makefile.am): Likewise.
42658         * modules/canon-host (Makefile.am): Likewise.
42659         * modules/canonicalize (Makefile.am): Likewise.
42660         * modules/chdir-long (Makefile.am): Likewise.
42661         * modules/chdir-safer (Makefile.am): Likewise.
42662         * modules/check-version (Makefile.am): Likewise.
42663         * modules/chown (Makefile.am): Likewise.
42664         * modules/cloexec (Makefile.am): Likewise.
42665         * modules/close-stream (Makefile.am): Likewise.
42666         * modules/closeout (Makefile.am): Likewise.
42667         * modules/crc (Makefile.am): Likewise.
42668         * modules/csharpexec (Makefile.am): Likewise.
42669         * modules/cycle-check (Makefile.am): Likewise.
42670         * modules/des (Makefile.am): Likewise.
42671         * modules/dev-ino (Makefile.am): Likewise.
42672         * modules/dirfd (Makefile.am): Likewise.
42673         * modules/dirname (Makefile.am): Likewise.
42674         * modules/dup2 (Makefile.am): Likewise.
42675         * modules/eealloc (Makefile.am): Likewise.
42676         * modules/error (Makefile.am): Likewise.
42677         * modules/euidaccess (Makefile.am): Likewise.
42678         * modules/exclude (Makefile.am): Likewise.
42679         * modules/exitfail (Makefile.am): Likewise.
42680         * modules/fcntl-safer (Makefile.am): Likewise.
42681         * modules/fcntl (Makefile.am): Likewise.
42682         * modules/file-type (Makefile.am): Likewise.
42683         * modules/fileblocks (Makefile.am): Likewise.
42684         * modules/filemode (Makefile.am): Likewise.
42685         * modules/filenamecat (Makefile.am): Likewise.
42686         * modules/fnmatch (Makefile.am): Likewise.
42687         * modules/fopen-safer (Makefile.am): Likewise.
42688         * modules/fpending (Makefile.am): Likewise.
42689         * modules/fprintftime (Makefile.am): Likewise.
42690         * modules/free (Makefile.am): Likewise.
42691         * modules/fsusage (Makefile.am): Likewise.
42692         * modules/ftruncate (Makefile.am): Likewise.
42693         * modules/fts (Makefile.am): Likewise.
42694         * modules/gc-arcfour (Makefile.am): Likewise.
42695         * modules/gc-des (Makefile.am): Likewise.
42696         * modules/gc-hmac-md5 (Makefile.am): Likewise.
42697         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
42698         * modules/gc-md4 (Makefile.am): Likewise.
42699         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42700         * modules/gc-sha1 (Makefile.am): Likewise.
42701         * modules/gc (Makefile.am): Likewise.
42702         * modules/getaddrinfo (Makefile.am): Likewise.
42703         * modules/getcwd (Makefile.am): Likewise.
42704         * modules/getdelim (Makefile.am): Likewise.
42705         * modules/getdomainname (Makefile.am): Likewise.
42706         * modules/getgroups (Makefile.am): Likewise.
42707         * modules/gethostname (Makefile.am): Likewise.
42708         * modules/gethrxtime (Makefile.am): Likewise.
42709         * modules/getline (Makefile.am): Likewise.
42710         * modules/getloadavg (Makefile.am): Likewise.
42711         * modules/getlogin_r (Makefile.am): Likewise.
42712         * modules/getndelim2 (Makefile.am): Likewise.
42713         * modules/getopt (Makefile.am): Likewise.
42714         * modules/getpagesize (Makefile.am): Likewise.
42715         * modules/getpass-gnu (Makefile.am): Likewise.
42716         * modules/getpass (Makefile.am): Likewise.
42717         * modules/getsubopt (Makefile.am): Likewise.
42718         * modules/gettime (Makefile.am): Likewise.
42719         * modules/gettimeofday (Makefile.am): Likewise.
42720         * modules/getugroups (Makefile.am): Likewise.
42721         * modules/getusershell (Makefile.am): Likewise.
42722         * modules/glob (Makefile.am): Likewise.
42723         * modules/group-member (Makefile.am): Likewise.
42724         * modules/hard-locale (Makefile.am): Likewise.
42725         * modules/hash (Makefile.am): Likewise.
42726         * modules/hmac-md5 (Makefile.am): Likewise.
42727         * modules/hmac-sha1 (Makefile.am): Likewise.
42728         * modules/human (Makefile.am): Likewise.
42729         * modules/idcache (Makefile.am): Likewise.
42730         * modules/imaxabs (Makefile.am): Likewise.
42731         * modules/imaxdiv (Makefile.am): Likewise.
42732         * modules/inet_ntop (Makefile.am): Likewise.
42733         * modules/inet_pton (Makefile.am): Likewise.
42734         * modules/intprops (Makefile.am): Likewise.
42735         * modules/inttostr (Makefile.am): Likewise.
42736         * modules/inttypes (Makefile.am): Likewise.
42737         * modules/isapipe (Makefile.am): Likewise.
42738         * modules/javaversion (Makefile.am): Likewise.
42739         * modules/lchmod (Makefile.am): Likewise.
42740         * modules/lchown (Makefile.am): Likewise.
42741         * modules/localcharset (Makefile.am): Likewise.
42742         * modules/long-options (Makefile.am): Likewise.
42743         * modules/lstat (Makefile.am): Likewise.
42744         * modules/malloc (Makefile.am): Likewise.
42745         * modules/mathl (Makefile.am): Likewise.
42746         * modules/mbchar (Makefile.am): Likewise.
42747         * modules/md2 (Makefile.am): Likewise.
42748         * modules/md4 (Makefile.am): Likewise.
42749         * modules/md5 (Makefile.am): Likewise.
42750         * modules/memcasecmp (Makefile.am): Likewise.
42751         * modules/memchr (Makefile.am): Likewise.
42752         * modules/memcmp (Makefile.am): Likewise.
42753         * modules/memcoll (Makefile.am): Likewise.
42754         * modules/memcpy (Makefile.am): Likewise.
42755         * modules/memmem (Makefile.am): Likewise.
42756         * modules/memmove (Makefile.am): Likewise.
42757         * modules/mempcpy (Makefile.am): Likewise.
42758         * modules/memrchr (Makefile.am): Likewise.
42759         * modules/memset (Makefile.am): Likewise.
42760         * modules/memxor (Makefile.am): Likewise.
42761         * modules/mkancesdirs (Makefile.am): Likewise.
42762         * modules/mkdir-p (Makefile.am): Likewise.
42763         * modules/mkdir (Makefile.am): Likewise.
42764         * modules/mkdtemp (Makefile.am): Likewise.
42765         * modules/mkstemp (Makefile.am): Likewise.
42766         * modules/mktime (Makefile.am): Likewise.
42767         * modules/modechange (Makefile.am): Likewise.
42768         * modules/mountlist (Makefile.am): Likewise.
42769         * modules/nanosleep (Makefile.am): Likewise.
42770         * modules/obstack (Makefile.am): Likewise.
42771         * modules/openat (Makefile.am): Likewise.
42772         * modules/pagealign_alloc (Makefile.am): Likewise.
42773         * modules/pathmax (Makefile.am): Likewise.
42774         * modules/physmem (Makefile.am): Likewise.
42775         * modules/poll (Makefile.am): Likewise.
42776         * modules/posixtm (Makefile.am): Likewise.
42777         * modules/posixver (Makefile.am): Likewise.
42778         * modules/putenv (Makefile.am): Likewise.
42779         * modules/quote (Makefile.am): Likewise.
42780         * modules/quotearg (Makefile.am): Likewise.
42781         * modules/raise (Makefile.am): Likewise.
42782         * modules/read-file (Makefile.am): Likewise.
42783         * modules/readline (Makefile.am): Likewise.
42784         * modules/readlink (Makefile.am): Likewise.
42785         * modules/readtokens (Makefile.am): Likewise.
42786         * modules/readutmp (Makefile.am): Likewise.
42787         * modules/realloc (Makefile.am): Likewise.
42788         * modules/regex (Makefile.am): Likewise.
42789         * modules/rename-dest-slash (Makefile.am): Likewise.
42790         * modules/rename (Makefile.am): Likewise.
42791         * modules/rijndael (Makefile.am): Likewise.
42792         * modules/rmdir (Makefile.am): Likewise.
42793         * modules/rpmatch (Makefile.am): Likewise.
42794         * modules/safe-read (Makefile.am): Likewise.
42795         * modules/safe-write (Makefile.am): Likewise.
42796         * modules/same-inode (Makefile.am): Likewise.
42797         * modules/same (Makefile.am): Likewise.
42798         * modules/save-cwd (Makefile.am): Likewise.
42799         * modules/savedir (Makefile.am): Likewise.
42800         * modules/setenv (Makefile.am): Likewise.
42801         * modules/settime (Makefile.am): Likewise.
42802         * modules/sha1 (Makefile.am): Likewise.
42803         * modules/sig2str (Makefile.am): Likewise.
42804         * modules/snprintf (Makefile.am): Likewise.
42805         * modules/stat-macros (Makefile.am): Likewise.
42806         * modules/stat-time (Makefile.am): Likewise.
42807         * modules/stdbool (Makefile.am): Likewise.
42808         * modules/stdint (Makefile.am): Likewise.
42809         * modules/stdlib-safer (Makefile.am): Likewise.
42810         * modules/stpcpy (Makefile.am): Likewise.
42811         * modules/stpncpy (Makefile.am): Likewise.
42812         * modules/strcase (Makefile.am): Likewise.
42813         * modules/strcasestr (Makefile.am): Likewise.
42814         * modules/strchrnul (Makefile.am): Likewise.
42815         * modules/strcspn (Makefile.am): Likewise.
42816         * modules/strdup (Makefile.am): Likewise.
42817         * modules/strerror (Makefile.am): Likewise.
42818         * modules/strftime (Makefile.am): Likewise.
42819         * modules/strndup (Makefile.am): Likewise.
42820         * modules/strnlen (Makefile.am): Likewise.
42821         * modules/strpbrk (Makefile.am): Likewise.
42822         * modules/strsep (Makefile.am): Likewise.
42823         * modules/strstr (Makefile.am): Likewise.
42824         * modules/strtod (Makefile.am): Likewise.
42825         * modules/strtoimax (Makefile.am): Likewise.
42826         * modules/strtok_r (Makefile.am): Likewise.
42827         * modules/strtol (Makefile.am): Likewise.
42828         * modules/strtoll (Makefile.am): Likewise.
42829         * modules/strtoul (Makefile.am): Likewise.
42830         * modules/strtoull (Makefile.am): Likewise.
42831         * modules/strtoumax (Makefile.am): Likewise.
42832         * modules/strverscmp (Makefile.am): Likewise.
42833         * modules/sys_socket (Makefile.am): Likewise.
42834         * modules/sys_stat (Makefile.am): Likewise.
42835         * modules/sysexits (Makefile.am): Likewise.
42836         * modules/time_r (Makefile.am): Likewise.
42837         * modules/timegm (Makefile.am): Likewise.
42838         * modules/timespec (Makefile.am): Likewise.
42839         * modules/tmpfile-safer (Makefile.am): Likewise.
42840         * modules/trim (Makefile.am): Likewise.
42841         * modules/unistd-safer (Makefile.am): Likewise.
42842         * modules/unlinkdir (Makefile.am): Likewise.
42843         * modules/unlocked-io (Makefile.am): Likewise.
42844         * modules/userspec (Makefile.am): Likewise.
42845         * modules/utime (Makefile.am): Likewise.
42846         * modules/utimecmp (Makefile.am): Likewise.
42847         * modules/utimens (Makefile.am): Likewise.
42848         * modules/vasnprintf (Makefile.am): Likewise.
42849         * modules/vasprintf (Makefile.am): Likewise.
42850         * modules/vsnprintf (Makefile.am): Likewise.
42851         * modules/xalloc (Makefile.am): Likewise.
42852         * modules/xgetcwd (Makefile.am): Likewise.
42853         * modules/xnanosleep (Makefile.am): Likewise.
42854         * modules/xreadlink (Makefile.am): Likewise.
42855         * modules/xstrtod (Makefile.am): Likewise.
42856         * modules/xstrtol (Makefile.am): Likewise.
42857         * modules/xstrtold (Makefile.am): Likewise.
42858         * modules/yesno (Makefile.am): Likewise.
42859         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
42860
42861 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
42862
42863         * modules/error (Makefile.am): Distribute files through
42864         EXTRA_DIST, not lib_SOURCES.
42865
42866 2006-10-12  Eric Blake  <ebb9@byu.net>
42867
42868         * modules/error (Makefile.am): Distribute files in /lib.
42869         * modules/obstack (Makefile.am): Likewise.
42870
42871 2006-10-12  Bruno Haible  <bruno@clisp.org>
42872
42873         * modules/acl (Makefile.am): Distribute all files in lib/ through
42874         EXTRA_DIST.
42875         * modules/arcfour (Makefile.am): Likewise.
42876         * modules/arctwo (Makefile.am): Likewise.
42877         * modules/argmatch (Makefile.am): Likewise.
42878         * modules/argz (Makefile.am): Likewise.
42879         * modules/atexit (Makefile.am): Likewise.
42880         * modules/backupfile (Makefile.am): Likewise.
42881         * modules/c-strtod (Makefile.am): Likewise.
42882         * modules/c-strtold (Makefile.am): Likewise.
42883         * modules/calloc (Makefile.am): Likewise.
42884         * modules/canon-host (Makefile.am): Likewise.
42885         * modules/canonicalize (Makefile.am): Likewise.
42886         * modules/chdir-long (Makefile.am): Likewise.
42887         * modules/chdir-safer (Makefile.am): Likewise.
42888         * modules/check-version (Makefile.am): Likewise.
42889         * modules/chown (Makefile.am): Likewise.
42890         * modules/cloexec (Makefile.am): Likewise.
42891         * modules/close-stream (Makefile.am): Likewise.
42892         * modules/closeout (Makefile.am): Likewise.
42893         * modules/crc (Makefile.am): Likewise.
42894         * modules/cycle-check (Makefile.am): Likewise.
42895         * modules/des (Makefile.am): Likewise.
42896         * modules/dirfd (Makefile.am): Likewise.
42897         * modules/dirname (Makefile.am): Likewise.
42898         * modules/dup2 (Makefile.am): Likewise.
42899         * modules/euidaccess (Makefile.am): Likewise.
42900         * modules/exclude (Makefile.am): Likewise.
42901         * modules/exitfail (Makefile.am): Likewise.
42902         * modules/fcntl-safer (Makefile.am): Likewise.
42903         * modules/file-type (Makefile.am): Likewise.
42904         * modules/fileblocks (Makefile.am): Likewise.
42905         * modules/filemode (Makefile.am): Likewise.
42906         * modules/filenamecat (Makefile.am): Likewise.
42907         * modules/fnmatch (Makefile.am): Likewise.
42908         * modules/fopen-safer (Makefile.am): Likewise.
42909         * modules/fpending (Makefile.am): Likewise.
42910         * modules/fprintftime (Makefile.am): Likewise.
42911         * modules/free (Makefile.am): Likewise.
42912         * modules/fsusage (Makefile.am): Likewise.
42913         * modules/ftruncate (Makefile.am): Likewise.
42914         * modules/fts (Makefile.am): Likewise.
42915         * modules/gc (Makefile.am): Likewise.
42916         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
42917         * modules/getaddrinfo (Makefile.am): Likewise.
42918         * modules/getcwd (Makefile.am): Likewise.
42919         * modules/getdelim (Makefile.am): Likewise.
42920         * modules/getdomainname (Makefile.am): Likewise.
42921         * modules/getgroups (Makefile.am): Likewise.
42922         * modules/gethostname (Makefile.am): Likewise.
42923         * modules/gethrxtime (Makefile.am): Likewise.
42924         * modules/getline (Makefile.am): Likewise.
42925         * modules/getloadavg (Makefile.am): Likewise.
42926         * modules/getlogin_r (Makefile.am): Likewise.
42927         * modules/getopt (Makefile.am): Likewise.
42928         * modules/getpass (Makefile.am): Likewise.
42929         * modules/getpass-gnu (Makefile.am): Likewise.
42930         * modules/getsubopt (Makefile.am): Likewise.
42931         * modules/gettime (Makefile.am): Likewise.
42932         * modules/gettimeofday (Makefile.am): Likewise.
42933         * modules/getugroups (Makefile.am): Likewise.
42934         * modules/getusershell (Makefile.am): Likewise.
42935         * modules/glob (Makefile.am): Likewise.
42936         * modules/group-member (Makefile.am): Likewise.
42937         * modules/hard-locale (Makefile.am): Likewise.
42938         * modules/hash (Makefile.am): Likewise.
42939         * modules/hmac-md5 (Makefile.am): Likewise.
42940         * modules/hmac-sha1 (Makefile.am): Likewise.
42941         * modules/human (Makefile.am): Likewise.
42942         * modules/idcache (Makefile.am): Likewise.
42943         * modules/imaxabs (Makefile.am): Likewise.
42944         * modules/imaxdiv (Makefile.am): Likewise.
42945         * modules/inet_ntop (Makefile.am): Likewise.
42946         * modules/inet_pton (Makefile.am): Likewise.
42947         * modules/inttostr (Makefile.am): Likewise.
42948         * modules/isapipe (Makefile.am): Likewise.
42949         * modules/lchown (Makefile.am): Likewise.
42950         * modules/long-options (Makefile.am): Likewise.
42951         * modules/lstat (Makefile.am): Likewise.
42952         * modules/malloc (Makefile.am): Likewise.
42953         * modules/mathl (Makefile.am): Likewise.
42954         * modules/mbchar (Makefile.am): Likewise.
42955         * modules/md2 (Makefile.am): Likewise.
42956         * modules/md4 (Makefile.am): Likewise.
42957         * modules/md5 (Makefile.am): Likewise.
42958         * modules/memcasecmp (Makefile.am): Likewise.
42959         * modules/memchr (Makefile.am): Likewise.
42960         * modules/memcmp (Makefile.am): Likewise.
42961         * modules/memcoll (Makefile.am): Likewise.
42962         * modules/memcpy (Makefile.am): Likewise.
42963         * modules/memmem (Makefile.am): Likewise.
42964         * modules/memmove (Makefile.am): Likewise.
42965         * modules/mempcpy (Makefile.am): Likewise.
42966         * modules/memrchr (Makefile.am): Likewise.
42967         * modules/memset (Makefile.am): Likewise.
42968         * modules/memxor (Makefile.am): Likewise.
42969         * modules/mkancesdirs (Makefile.am): Likewise.
42970         * modules/mkdir (Makefile.am): Likewise.
42971         * modules/mkdir-p (Makefile.am): Likewise.
42972         * modules/mkdtemp (Makefile.am): Likewise.
42973         * modules/mkstemp (Makefile.am): Likewise.
42974         * modules/mktime (Makefile.am): Likewise.
42975         * modules/modechange (Makefile.am): Likewise.
42976         * modules/mountlist (Makefile.am): Likewise.
42977         * modules/nanosleep (Makefile.am): Likewise.
42978         * modules/openat (Makefile.am): Likewise.
42979         * modules/pagealign_alloc (Makefile.am): Likewise.
42980         * modules/physmem (Makefile.am): Likewise.
42981         * modules/poll (Makefile.am): Likewise.
42982         * modules/posixtm (Makefile.am): Likewise.
42983         * modules/posixver (Makefile.am): Likewise.
42984         * modules/putenv (Makefile.am): Likewise.
42985         * modules/quote (Makefile.am): Likewise.
42986         * modules/quotearg (Makefile.am): Likewise.
42987         * modules/raise (Makefile.am): Likewise.
42988         * modules/read-file (Makefile.am): Likewise.
42989         * modules/readline (Makefile.am): Likewise.
42990         * modules/readlink (Makefile.am): Likewise.
42991         * modules/readtokens (Makefile.am): Likewise.
42992         * modules/readutmp (Makefile.am): Likewise.
42993         * modules/realloc (Makefile.am): Likewise.
42994         * modules/regex (Makefile.am): Likewise.
42995         * modules/rename (Makefile.am): Likewise.
42996         * modules/rename-dest-slash (Makefile.am): Likewise.
42997         * modules/rijndael (Makefile.am): Likewise.
42998         * modules/rmdir (Makefile.am): Likewise.
42999         * modules/rpmatch (Makefile.am): Likewise.
43000         * modules/safe-read (Makefile.am): Likewise.
43001         * modules/safe-write (Makefile.am): Likewise.
43002         * modules/same (Makefile.am): Likewise.
43003         * modules/save-cwd (Makefile.am): Likewise.
43004         * modules/savedir (Makefile.am): Likewise.
43005         * modules/setenv (Makefile.am): Likewise.
43006         * modules/settime (Makefile.am): Likewise.
43007         * modules/sha1 (Makefile.am): Likewise.
43008         * modules/sig2str (Makefile.am): Likewise.
43009         * modules/snprintf (Makefile.am): Likewise.
43010         * modules/stdlib-safer (Makefile.am): Likewise.
43011         * modules/stpcpy (Makefile.am): Likewise.
43012         * modules/stpncpy (Makefile.am): Likewise.
43013         * modules/strcase (Makefile.am): Likewise.
43014         * modules/strcasestr (Makefile.am): Likewise.
43015         * modules/strchrnul (Makefile.am): Likewise.
43016         * modules/strcspn (Makefile.am): Likewise.
43017         * modules/strdup (Makefile.am): Likewise.
43018         * modules/strerror (Makefile.am): Likewise.
43019         * modules/strftime (Makefile.am): Likewise.
43020         * modules/strndup (Makefile.am): Likewise.
43021         * modules/strnlen (Makefile.am): Likewise.
43022         * modules/strpbrk (Makefile.am): Likewise.
43023         * modules/strsep (Makefile.am): Likewise.
43024         * modules/strstr (Makefile.am): Likewise.
43025         * modules/strtod (Makefile.am): Likewise.
43026         * modules/strtoimax (Makefile.am): Likewise.
43027         * modules/strtok_r (Makefile.am): Likewise.
43028         * modules/strtol (Makefile.am): Likewise.
43029         * modules/strtoll (Makefile.am): Likewise.
43030         * modules/strtoul (Makefile.am): Likewise.
43031         * modules/strtoull (Makefile.am): Likewise.
43032         * modules/strtoumax (Makefile.am): Likewise.
43033         * modules/strverscmp (Makefile.am): Likewise.
43034         * modules/time_r (Makefile.am): Likewise.
43035         * modules/timegm (Makefile.am): Likewise.
43036         * modules/tmpfile-safer (Makefile.am): Likewise.
43037         * modules/unistd-safer (Makefile.am): Likewise.
43038         * modules/unlinkdir (Makefile.am): Likewise.
43039         * modules/userspec (Makefile.am): Likewise.
43040         * modules/utime (Makefile.am): Likewise.
43041         * modules/utimecmp (Makefile.am): Likewise.
43042         * modules/utimens (Makefile.am): Likewise.
43043         * modules/vasnprintf (Makefile.am): Likewise.
43044         * modules/vasprintf (Makefile.am): Likewise.
43045         * modules/vsnprintf (Makefile.am): Likewise.
43046         * modules/xalloc (Makefile.am): Likewise.
43047         * modules/xgetcwd (Makefile.am): Likewise.
43048         * modules/xnanosleep (Makefile.am): Likewise.
43049         * modules/xreadlink (Makefile.am): Likewise.
43050         * modules/xstrtod (Makefile.am): Likewise.
43051         * modules/xstrtol (Makefile.am): Likewise.
43052         * modules/xstrtold (Makefile.am): Likewise.
43053         * modules/yesno (Makefile.am): Likewise.
43054
43055 2006-10-12  Jim Meyering  <jim@meyering.net>
43056
43057         * m4/getloadavg.m4: Revert the change below.
43058
43059         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
43060         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
43061         fail with a symlink, which is what coreutils' ./bootstrap now
43062         creates by default.
43063
43064 2006-10-12  Bruno Haible  <bruno@clisp.org>
43065
43066         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
43067         mingw.
43068         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
43069         MSVC and mingw explicitly.
43070
43071 2006-10-11  Simon Josefsson  <jas@extundo.com>
43072             Bruno Haible  <bruno@clisp.org>
43073
43074         Add support for multiple gnulib-tool invocations in the scope of a
43075         single configure.ac file.
43076         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
43077         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
43078         with the same contents as the _LIBADD variable.
43079         (func_emit_initmacro_start, func_emit_initmacro_end,
43080         func_emit_initmacro_done): New functions.
43081         (func_import, func_create_testdir): Invoke them. Allow the identifiers
43082         gl_LIBOBJS and gl_LTLIBOBJS.
43083
43084 2006-10-11  Bruno Haible  <bruno@clisp.org>
43085
43086         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
43087         (func_create_testdir): Don't create po/Makefile.am, don't invoke
43088         autoreconf. Instead, invoke autopoint explicitly but move back the
43089         *.m4 files from gnulib.
43090
43091 2006-10-11  Bruno Haible  <bruno@clisp.org>
43092
43093         * gnulib-tool (func_usage): Make module names after --create-testdir
43094         optional.
43095         (func_create_testdir): If no module was specified, use nearly all
43096         modules.
43097
43098 2006-10-12  Jim Meyering  <jim@meyering.net>
43099
43100         Big performance improvement for fts-based tools that use FTS_NOSTAT.
43101         Avoid spurious inode-mismatch problems on non-POSIX file systems.
43102         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
43103         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
43104         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
43105         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
43106         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
43107         (fts_set_stat_required): New function.
43108         (fts_open): Defer the calls to fts_stat, if possible or requested.
43109         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
43110         into fts_stat itself.
43111         (fts_read): Perform any required (deferred) fts_stat call.
43112         (fts_build): Likewise, for the directory we're about to open and read.
43113         In the readdir loop, carefully decide whether each entry will require
43114         an eventual call to fts_stat, using dirent.d_type info if available.
43115         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
43116         a command line argument into this function.  Update all callers.
43117         Map a return value of FTS_DOT to FTS_D for a command line argument.
43118         * modules/fts (Depends-on): Add d-type.  Alphabetize.
43119         Thanks to Miklos Szeredi for his tenacity and for the initial
43120         bug report about "find" failing on a FUSE-based file system.
43121
43122         * lib/fts.c (fts_open): Use consistent indentation.
43123
43124 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
43125
43126         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
43127         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
43128         reported by Jim Meyering.  All uses of cache variables renamed
43129         to match Autoconf's.
43130         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
43131         the other one.
43132
43133         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43134         Fix misspelling in diagnostic.
43135
43136 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43137
43138         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
43139         defined.  Problem reported by Matthew Woehlke.
43140
43141         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
43142         Add support for Tandem NonStop R series.
43143         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
43144         Use new macro.
43145
43146         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
43147         (has_trailing_slash): Omit size arg; all callers changed.
43148         Omit 'inline', since it doesn't help performance and we'd
43149         need to configure it.
43150         Don't count //, ///, etc. as having a trailing slash.
43151         As a side effect, this removes a C99ism reported by Matthew Woehlke.
43152         (rpl_rename_dest_slash): On failure, use rename's errno rather
43153         than (in some cases) an incorrect or junk errno.
43154         Simplify code by removing need to compute length; this does
43155         cause it to make two passes instead of one over the file name,
43156         but it's worth it.
43157
43158         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
43159         change, since Autoconf's version may no longer be appropriate now
43160         that we are using CVS Autoconf's version.  Add support for Tandem.
43161
43162 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43163             Bruno Haible  <bruno@clisp.org>
43164
43165         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
43166         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
43167         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
43168         gl_AC_TYPE_LONG_LONG.
43169
43170         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
43171         instead of HAVE_LONG_LONG.
43172         * lib/printf-args.c (printf_fetchargs): Likewise.
43173         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
43174         * lib/vasnprintf.c (VASNPRINTF): Likewise.
43175         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
43176         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
43177         gl_AC_TYPE_LONG_LONG.
43178
43179 2006-10-11  Bruno Haible  <bruno@clisp.org>
43180
43181         * m4/longlong.m4: Add comments.
43182         * m4/ulonglong.m4: Likewise.
43183
43184 2006-10-10  Bruno Haible  <bruno@clisp.org>
43185
43186         Make it possible to #define stpcpy, strdup to aliases.
43187         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
43188         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
43189
43190 2006-10-10  Bruno Haible  <bruno@clisp.org>
43191
43192         Make it possible to #define gcd to an alias.
43193         * lib/gcd.c: Include config.h.
43194
43195 2006-10-10  Bruno Haible  <bruno@clisp.org>
43196
43197         Make it possible to #define c_isascii to an alias.
43198         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
43199         defined. Undefine the macros before defining them, to avoid gcc
43200         warnings.
43201         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
43202         define NO_C_CTYPE_MACROS early.
43203
43204 2006-10-10  Bruno Haible  <bruno@clisp.org>
43205
43206         Make it possible to #define set_program_name to an alias.
43207         * lib/progname.c: Don't undefine set_program_name; instead, undefine
43208         ENABLE_RELOCATABLE early.
43209
43210 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43211
43212         Port to Tandem NSK OSS, which has 64-bit signed int but at most
43213         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
43214         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
43215         More generally, don't assume that 64-bit signed int is available
43216         if unsigned int is, and vice versa.
43217         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
43218         unsigned symbols, not on their signed counterparts.
43219         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
43220         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
43221         (UINT64_C, UINTMAX_C):
43222         Likewise.
43223         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
43224         unsigned counterparts.
43225         (Have_long_long, Unsigned): New macros.
43226         (Int): Renamed from INT.
43227         (strtoimax): Use the new macros.
43228         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
43229         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
43230         * modules/inttypes (inttypes.h): Substitute
43231         HAVE_UNSIGNED_LONG_LONG_INT.
43232         * modules/stdint (stdint.h): Likewise.
43233         (Files): Add m4/ulonglong.m4.
43234
43235 2006-10-10  Bruno Haible  <bruno@clisp.org>
43236
43237         Fix a gcc -Wshadow warning.
43238         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
43239         to 'bucket'.
43240         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
43241         gl_linked_indexof_from_to): Likewise.
43242         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
43243         Likewise.
43244         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
43245         Likewise.
43246         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
43247         Reported by Eric Blake.
43248
43249 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
43250
43251         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
43252         for NetBSD.  Problem reported by Bruno Haible.
43253
43254 2006-10-09  Jim Meyering  <jim@meyering.net>
43255
43256         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
43257         Patch from Bruno Haible.
43258
43259 2006-10-09  Jim Meyering  <jim@meyering.net>
43260
43261         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
43262         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
43263         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
43264
43265 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43266
43267         Don't include <config.h> twice; this doesn't work in some cases,
43268         e.g., when config.h has "#define intmax_t long long int" and
43269         we include <config.h>, <inttypes.h>, <config.h> in that order.
43270         Problem reported by Matthew Woehlke in:
43271         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
43272         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
43273         * lib/fts-cycle.c: Don't include config.h.
43274         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
43275         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
43276         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
43277         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
43278         inttypes.h.
43279         * lib/xstrtoumax.c: Likewise.
43280         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
43281         __strtol and the like, so that this module is more like its siblings.
43282         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
43283         Remove; no longer needed now that we assume gnulib inttypes.h.
43284
43285 2006-10-08  Bruno Haible  <bruno@clisp.org>
43286
43287         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
43288         option.
43289
43290 2006-10-07  Jim Meyering  <jim@meyering.net>
43291
43292         * modules/inttypes (inttypes.h): Revert what seems to have been
43293         an inadvertent part of today's change: use "|", not "/" in the
43294         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
43295
43296 2006-10-07  Bruno Haible  <bruno@clisp.org>
43297
43298         * modules/sublist: New file.
43299
43300 2006-10-07  Bruno Haible  <bruno@clisp.org>
43301
43302         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
43303         * modules/argz (argz.h): Likewise.
43304         * modules/arpa_inet (arpa/inet.h): Likewise.
43305         * modules/byteswap (byteswap.h): Likewise.
43306         * modules/configmake (configmake.h): Likewise.
43307         * modules/fcntl (fcntl.h): Likewise.
43308         * modules/fnmatch (fnmatch.h): Likewise.
43309         * modules/getopt (getopt.h): Likewise.
43310         * modules/glob (glob.h): Likewise.
43311         * modules/inttypes (inttypes.h): Likewise.
43312         * modules/netinet_in (netinet/in.h): Likewise.
43313         * modules/poll (poll.h): Likewise.
43314         * modules/stdbool (stdbool.h): Likewise.
43315         * modules/stdint (stdint.h): Likewise.
43316         * modules/sys_select (sys/select.h): Likewise.
43317         * modules/sys_socket (sys/socket.h): Likewise.
43318         * modules/sys_stat (sys/stat.h): Likewise.
43319         * modules/sysexits (sysexits.h): Likewise.
43320         * modules/unistd (unistd.h): Likewise.
43321         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43322         Add a "DO NOT EDIT" comment to the generated file.
43323         (func_import): Likewise for gnulib-comp.m4.
43324
43325 2006-10-07  Bruno Haible  <bruno@clisp.org>
43326
43327         * lib/gl_sublist.h: New file.
43328         * lib/gl_sublist.c: New file.
43329
43330 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43331
43332         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
43333         name (relative to the original working directory) and the file
43334         name component (relative to the temporary working directory).  All
43335         callers changed.
43336         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
43337         * lib/mkdir-p.c (make_dir_parents): Likewise.
43338         * lib/mkdir-p.h (make_dir_parents): Likewise.
43339
43340 2006-10-06  Eric Blake  <ebb9@byu.net>
43341
43342         Define several macros for use by the clean-temp module.
43343         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
43344         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
43345         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
43346
43347         * lib/clean-temp.h (close_stream_temp): New declaration.
43348         * lib/clean-temp.c (includes): Pull in headers according to what
43349         other modules are in use.
43350         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
43351
43352 2006-10-06  Bruno Haible  <bruno@clisp.org>
43353
43354         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
43355         instead of fopen, fwriteerror.
43356
43357 2006-10-06  Bruno Haible  <bruno@clisp.org>
43358
43359         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
43360         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
43361         int.
43362         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
43363         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
43364         Return an error indicator.
43365         Suggested by Eric Blake.
43366
43367 2006-10-06  Bruno Haible  <bruno@clisp.org>
43368
43369         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
43370         Reported by Eric Blake.
43371
43372 2006-10-06  Bruno Haible  <bruno@clisp.org>
43373
43374         * modules/closeout (Description): Mention stderr too.
43375
43376 2006-10-06  Bruno Haible  <bruno@clisp.org>
43377         and Paul Eggert  <eggert@cs.ucla.edu>
43378
43379         * lib/closeout.c (close_stdout): Also close stderr.
43380         * lib/closeout.h: Update comment.
43381
43382 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43383
43384         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
43385         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
43386         * lib/dirchownmod.c: Include lchown.h.
43387         * lib/lchown.c: Don't include files that lchown.h now includes.
43388         Don't declare chown, since lchown.h now does that.
43389         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
43390         (lchown): Define to rpl_chown if lchown is declared but
43391         does not exist.  Declare using a prototype if lchown is not
43392         declared.  Add a copyright notice.
43393         * lib/mkstemp.h: Include <unistd.h>.
43394         * lib/openat.c: Include lchown.h.
43395
43396         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
43397         we now test for that separately.
43398         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
43399         rather than O_NOFOLLOW, when testing whether it's possible to
43400         avoid a race condition reliably.
43401         * lib/savewd.c (savewd_chdir): Likewise.
43402
43403         Remove macros that are no longer needed now that stdint.h is
43404         reliable.
43405         * lib/fsusage.c (UINTMAX_MAX): Remove.
43406         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
43407         * lib/utimecmp.c (SIZE_MAX): Remove.
43408
43409         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
43410
43411         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
43412         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
43413         O_NOATIME works.
43414
43415 2006-10-05  Bruno Haible  <bruno@clisp.org>
43416
43417         * lib/gl_list.h (gl_sortedlist_search_from_to,
43418         gl_sortedlist_indexof_from_to): New declarations.
43419         (gl_list_implementation): New fields sortedlist_search_from_to,
43420         sortedlist_indexof_from_to.
43421         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
43422         inline functions.
43423         * lib/gl_list.c (gl_sortedlist_search_from_to,
43424         gl_sortedlist_indexof_from_to): New functions.
43425         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
43426         function.
43427         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
43428         (gl_array_sortedlist_search_from_to): New function.
43429         (gl_array_list_implementation): Update.
43430         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
43431         function.
43432         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
43433         (gl_carray_sortedlist_search_from_to): New function.
43434         (gl_carray_list_implementation): Update.
43435         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
43436         gl_linked_sortedlist_indexof_from_to): New functions.
43437         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43438         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43439         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
43440         gl_tree_sortedlist_indexof_from_to): New functions.
43441         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43442         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43443         Update.
43444         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43445         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
43446         Update.
43447
43448 2006-10-05  Bruno Haible  <bruno@clisp.org>
43449
43450         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
43451         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
43452         (struct gl_list_implementation): Add fields search_from_to,
43453         indexof_from_to. Remove fields search, indexof.
43454         (gl_list_search): Use the search_from_to method.
43455         (gl_list_search_from, gl_list_search_from_to): New functions.
43456         (gl_list_indexof): Use the indexof_from_to method.
43457         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43458         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
43459         (gl_list_search_from, gl_list_search_from_to): New functions.
43460         (gl_list_indexof): Use the indexof_from_to method.
43461         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
43462         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
43463         gl_array_indexof. Add start_index, end_index arguments.
43464         (gl_array_search_from_to): Renamed from gl_array_search. Add
43465         start_index, end_index arguments.
43466         (gl_array_remove, gl_array_list_implementation): Update.
43467         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
43468         gl_carray_indexof. Add start_index, end_index arguments.
43469         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
43470         start_index, end_index arguments.
43471         (gl_carray_remove, gl_carray_list_implementation): Update.
43472         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
43473         gl_linked_search. Add start_index, end_index arguments.
43474         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
43475         start_index, end_index arguments.
43476         (gl_linked_remove): Update.
43477         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43478         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43479         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
43480         field to 'size_t'.
43481         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
43482         gl_tree_search. Add start_index, end_index arguments.
43483         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43484         start_index, end_index arguments.
43485         (gl_tree_remove): Update.
43486         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43487         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43488         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
43489         function.
43490         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
43491         gl_tree_search. Add start_index, end_index arguments.
43492         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
43493         start_index, end_index arguments.
43494         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43495         Update.
43496         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43497
43498 2006-10-05  Bruno Haible  <bruno@clisp.org>
43499
43500         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
43501
43502         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
43503         fwriteerror_temp): New declarations.
43504         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
43505         (descriptors): New variable.
43506         (cleanup): First, close the descriptors.
43507         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
43508         fclose_temp, fwriteerror_temp): New functions.
43509
43510 2006-10-04  Jim Meyering  <jim@meyering.net>
43511
43512         * lib/fts.c (fts_open): Tiny comment change.
43513
43514 2006-10-04  Bruno Haible  <bruno@clisp.org>
43515
43516         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
43517         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
43518         gl_LOCK_BODY.
43519         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
43520         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
43521         gl_LOCK_EARLY_BODY.
43522         (gl_LOCK): Require gl_LOCK_BODY.
43523
43524 2006-10-04  Bruno Haible  <bruno@clisp.org>
43525
43526         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
43527         (gl_oset_search_atleast): New declaration.
43528         (struct gl_oset_implementation): Add field 'search_atleast'.
43529         (gl_oset_search_atleast): New inline function.
43530         * lib/gl_oset.c (gl_oset_search_atleast): New function.
43531         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
43532         (gl_array_oset_implementation): Update.
43533         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
43534         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
43535         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
43536
43537 2006-10-04  Bruno Haible  <bruno@clisp.org>
43538
43539         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
43540
43541 2006-10-03  Bruno Haible  <bruno@clisp.org>
43542
43543         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
43544         from gl_avltreehash_list_implementation.
43545
43546 2006-10-03  Bruno Haible  <bruno@clisp.org>
43547
43548         * lib/gl_oset.c (gl_oset_add): Fix return type.
43549
43550 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
43551
43552         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
43553
43554 2006-10-02  Eric Blake  <ebb9@byu.net>
43555
43556         * modules/strnlen (Depends-on): Add extensions.
43557
43558 2006-10-02  Eric Blake  <ebb9@byu.net>
43559
43560         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
43561         definition in 2.60+.
43562
43563 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
43564
43565         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
43566         checks.
43567
43568 2006-10-02  Bruno Haible  <bruno@clisp.org>
43569
43570         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
43571         to the AUTOMAKE_OPTIONS.
43572         Reported by Jim Meyering.
43573
43574 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
43575
43576         Work around bug in Solaris 10 /proc file system:
43577         /proc/self/fd/NNN/.. isn't the parent directory of
43578         the directory whose file descriptor is NNN.  This needs to
43579         be worked around at run time, not compile time, since a
43580         program might be built on Solaris 8, where things work, and
43581         run on Solaris 10.
43582         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
43583         to use the following interface instead:
43584         (OPENAT_BUFFER_SIZE): New macro.
43585         (openat_proc_name): New function.
43586         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
43587         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
43588         Likewise.
43589         * lib/openat-proc.c: New file.
43590         * modules/openat (Files): Add lib/openat-proc.c.
43591         (Depends-on): Add same-inode, stdbool.
43592         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
43593
43594 2006-09-29  Bruno Haible  <bruno@clisp.org>
43595
43596         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
43597         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
43598         argument. Set stdout_closed before testing for ferror, not after.
43599         (fwriteerror, fwriteerror_no_ebadf): New functions.
43600
43601 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43602
43603         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
43604
43605 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
43606
43607         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
43608         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
43609
43610 2006-09-28  Jim Meyering  <jim@meyering.net>
43611
43612         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
43613         Include <unistd.h>.
43614
43615 2006-09-28  Bruno Haible  <bruno@clisp.org>
43616
43617         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
43618         * modules/linkedhash-list (Depends-on): Likewise.
43619         * modules/rbtreehash-list (Depends-on): Likewise.
43620
43621 2006-09-28  Bruno Haible  <bruno@clisp.org>
43622
43623         * lib/strndup.h: Simplify the redefinition of strndup.
43624         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
43625         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
43626
43627 2006-09-28  Bruno Haible  <bruno@clisp.org>
43628
43629         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
43630         * lib/gl_linkedhash_list.c: Likewise.
43631         * lib/gl_rbtreehash_list.c: Likewise.
43632
43633 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
43634
43635         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
43636         getaddrinfo.
43637
43638         * lib/__fpending.h: Don't include <stdio_ext.h> unless
43639         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
43640         it causes <stdio_ext.h> to cause a compile-time error.
43641         Problem reported by Nelson H. F. Beebe.
43642         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
43643         of HAVE_DECL___PENDING.
43644
43645         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
43646         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
43647         declaration.
43648
43649 2006-09-27  Jim Meyering  <jim@meyering.net>
43650
43651         This file could end up with a definition for a function
43652         named __strndup, rather than rpl_strndup on a system with
43653         incomplete weak_alias support.
43654         * lib/strndup.c (strndup): Rename from __strndup.
43655         Remove #defines that used to map __strndup to strndup.
43656         Don't use K&R prototypes.
43657         Remove LIBC-related code, since this file is not sync'd with glibc.
43658         * lib/strndup.h: Revamp, accordingly.
43659         * m4/strndup.m4: Modernize.
43660
43661 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
43662
43663         * modules/savewd (Depends-on): Add 'raise'.
43664         * lib/savewd.c: Include <signal.h>, for 'raise'.
43665
43666 2006-09-26  Jim Meyering  <jim@meyering.net>
43667
43668         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
43669         when we detect Darwin 8.7.0's acl_get_file bug.
43670         Rearrange to perform the new (below) run-test while $LIBS
43671         contains any acl-related library.  Set USE_ACL at the end.
43672         (gl_ACL_GET_FILE): New function.
43673
43674 2006-09-26  Eric Blake  <ebb9@byu.net>
43675
43676         * lib/verror.c: Include <config.h> unconditionally.
43677
43678 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
43679
43680         * modules/clock-time (Maintainer): Add self.
43681         * modules/getlogin_r (Depends-on): Add extensions.
43682
43683 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43684
43685         * modules/clock-time: New module.
43686         * modules/nanosleep (Depends-on): Add clock-time.
43687         * modules/gethrxtime (Depends-on): Likewise.
43688         * modules/gettime (Depends-on): Likewise.
43689         * modules/settime (Depends-on): Likewise.
43690
43691         * modules/fts-lgpl: Depend on openat.
43692         * modules/mkancesdirs: Depend on savewd.
43693         * modules/mkdir-p: Likewise.
43694
43695 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43696
43697         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
43698
43699         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
43700         `gl_have_arbitrary_file_name_length_limit' to
43701         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
43702         actually works between configure runs.
43703
43704 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43705             Bruno Haible  <bruno@clisp.org>
43706
43707         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
43708
43709 2006-09-25  Jim Meyering  <jim@meyering.net>
43710
43711         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
43712         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
43713
43714 2006-09-25  Eric Blake  <ebb9@byu.net>
43715
43716         * gnulib-tool (func_import, func_create_testdir): Fix typos in
43717         exec's in 2006-09-18 patch when shuffling fds.
43718
43719 2006-09-25  Bruno Haible  <bruno@clisp.org>
43720
43721         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
43722         Reported by Jim Meyering.
43723
43724 2006-09-24  Jim Meyering  <jim@meyering.net>
43725
43726         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
43727         compare a pointer against a literal "0".  That caused failures with
43728         at least HP-UX's hpcc.
43729
43730 2006-09-22  Simon Josefsson  <jas@extundo.com>
43731
43732         * modules/gc-sha1:
43733         * modules/gc-md4:
43734         * modules/gc-hmac-sha1:
43735         * modules/gc-hmac-md5:
43736         * modules/gc-des:
43737         * modules/gc-arcfour: Distribute more files.
43738
43739 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43740
43741         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
43742         (gl_linked_iterator_from_to): Initialize struct completely.
43743         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
43744         (gl_tree_iterator_from_to): Likewise
43745         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
43746         * lib/gl_array_list.c [lint] (gl_array_iterator)
43747         (gl_array_iterator_from_to): Likewise.
43748         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
43749         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
43750         (gl_carray_iterator_from_to): Likewise.
43751
43752         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
43753         * lib/md4.c (md4_process_block): Remove unused variable.
43754         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
43755         parentheses for clarity.
43756
43757 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43758
43759         * modules/bison-i18n (Depends-on): Add gettext.
43760
43761 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43762
43763         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
43764         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43765         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
43766         also add missing comma that caused broken test.
43767         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
43768         stdlib.h, for `abort'.
43769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
43770         variables.
43771         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
43772         include unistd.h if present, for `rmdir'.
43773         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
43774         variables.
43775         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
43776         in the process include standard headers for prototypes.
43777         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
43778         gets declared on GNU/Linux.
43779         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
43780         unistd.h, for `rmdir'.
43781         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
43782
43783         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
43784         always true.
43785         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
43786
43787         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
43788
43789 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43790
43791         * gnulib-tool (func_version): Create output all at once.  This
43792         may help avoid triggering unnecessary SIGPIPEs, and at any
43793         rate it doesn't hurt.
43794
43795 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43796             Bruno Haible  <bruno@clisp.org>
43797
43798         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
43799         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43800         * m4/signed.m4 (bh_C_SIGNED): Likewise.
43801
43802         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
43803         (gl_FUNC_VASPRINTF): Invoke it.
43804
43805 2006-09-22  Bruno Haible  <bruno@clisp.org>
43806
43807         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
43808         getloadavg.c as first argument.
43809
43810 2006-09-22  Bruno Haible  <bruno@clisp.org>
43811
43812         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
43813         at the beginning of the gl_INIT macro.
43814         * modules/getloadavg (configure.ac): Pass $gl_source_base to
43815         gl_GETLOADAVG.
43816
43817 2006-09-22  Bruno Haible  <bruno@clisp.org>
43818
43819         * gnulib-tool (func_create_megatestdir): Don't include the config-h
43820         module.
43821         Suggested by Ralf Wildenhues.
43822
43823 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43824
43825         Import this patch from libc:
43826
43827         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
43828
43829         * lib/regex_internal.c (re_string_reconstruct): Handle
43830         offset < pstr->valid_raw_len && pstr->offsets_needed case.
43831         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
43832         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
43833         re_string_context_at.
43834
43835         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
43836         now requires it.
43837         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
43838         gl_REGEX now does it for us.
43839         (gl_REGEX): Add test taken from
43840         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
43841
43842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
43843         Check that large offsets work.  Modernize Autoconf usages.
43844         Prefer "yes" to mean a good thing rather than a bad.
43845         Don't put "#define mkstemp" in config.h, as this might interfere
43846         with standard system headers that "#define mkstemp mkstemp64".
43847
43848         * modules/mkstemp (Depends-on): Add extensions, so that
43849         mkstemp is visible on some platforms.
43850         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
43851         (Include): Change to "mkstemp.h" from <stdlib.h>.
43852         (Files): Add mkstemp.h.
43853
43854         * lib/mkstemp.h: New file, since some standard headers
43855         #define mkstemp.
43856         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
43857         Include "mkstemp.h".
43858         Make the _LIBC code resemble glibc original more,
43859         e.g., use K&R style.
43860         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
43861         (mkstemp): Remove, since mkstemp.h does this for us.
43862         * lib/stdlib--.h: Include mkstemp.h.
43863
43864         Import this patch from libc:
43865
43866         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43867
43868         * lib/tempname.c (__gen_tempname): Change attempts_min
43869         into a macro.  Use preprocessor to decide how to initialize
43870         attempts [Coverity CID 67].
43871
43872 2006-09-20  Bruno Haible  <bruno@clisp.org>
43873
43874         * lib/mkdtemp.c: Import from libc.
43875         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
43876                 * sysdeps/posix/tempname.c (__gen_tempname): Change
43877                 attempts_min into a macro.  Use preprocessor to decide how to
43878                 initialize attempts [Coverity CID 67].
43879         2001-11-27  Paul Eggert  <eggert@twinsun.com>
43880                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
43881                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
43882
43883 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43884
43885         * gnulib-tool (func_exit): New function, to allow to pass the
43886         exit status portably through the trap.  Use everywhere.
43887         (--help, --version): Signal a write error.
43888         (trap): catch SIGPIPE, for write errors.
43889         Exit at the end of the trap, with the correct exit status.
43890
43891 2006-09-19  Karl Berry  <karl@gnu.org>
43892
43893         * doc/gnulib.texi: note about the license texinfo files.
43894
43895 2006-09-19  Eric Blake  <ebb9@byu.net>
43896
43897         * gnulib-tool: Avoid space-tab.
43898
43899 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43900
43901         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
43902         that prevented coreutils 6.1 from building.  Problem reported
43903         by Petter Reinholdtsen.
43904
43905 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
43906
43907         * gnulib-tool (avoidlist): Fix typo that broke options like
43908         --avoid=lock that are used by coreutils bootstrap.
43909
43910 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
43911
43912         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
43913         more systematically.
43914
43915 2006-09-18  Jim Meyering  <jim@meyering.net>
43916
43917         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
43918
43919 2006-09-18  Bruno Haible  <bruno@clisp.org>
43920
43921         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
43922
43923 2006-09-18  Bruno Haible  <bruno@clisp.org>
43924
43925         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
43926         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
43927         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
43928         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
43929         * m4/gettext.m4: Require autoconf >= 2.52.
43930         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
43931         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
43932         of gl_cv_header_inttypes_h.
43933
43934 2006-09-18  Bruno Haible  <bruno@clisp.org>
43935
43936         * lib/javaversion.c: Include configmake.h.
43937
43938 2006-09-18  Bruno Haible  <bruno@clisp.org>
43939
43940         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
43941         avoid that the while loops be executed in a subshell.
43942
43943 2006-09-18  Bruno Haible  <bruno@clisp.org>
43944
43945         * MODULES.html.sh (func_module): Break long lines.
43946         Suggested by Bruce Korb <bkorb@gnu.org>.
43947
43948 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43949
43950         Speed up by a factor of 1.12.
43951         * gnulib-tool (nl): New variable.
43952         (func_import): Rewrite include directive extraction to only read each
43953         directive once.
43954
43955 2006-09-17  Bruno Haible  <bruno@clisp.org>
43956
43957         * modules/javaversion (Makefile.am): Remove DEFS setting.
43958         (Depends-on): Add configmake, for PKGDATADIR definition.
43959
43960 2006-09-17  Bruno Haible  <bruno@clisp.org>
43961
43962         * gnulib-tool (func_create_testdir): Rewrite all files at once.
43963
43964 2006-09-17  Bruno Haible  <bruno@clisp.org>
43965
43966         * gnulib-tool (func_append): New function, stolen from libtool.m4.
43967         (func_modules_transitive_closure, func_modules_add_dummy,
43968         func_modules_to_filelist, func_import, func_create_testdir,
43969         func_create_megatestdir, ...): Use it wherever possible.
43970         Suggested by Ralf Wildenhues.
43971
43972 2006-09-16  Karl Berry  <karl@gnu.org>
43973
43974         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
43975         to avoid sectioning errors.
43976         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
43977         [ifinfo]: blank line after @center-ed titles.
43978         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
43979         Spell FSF address consistently with others.
43980         (These changes approved by rms.)
43981
43982 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43983
43984         Speed up by a factor of 1.61.
43985         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
43986         already checked module names again.
43987
43988 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43989
43990         Speed up by a factor of 1.13.
43991         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
43992         for new_files, and the input to func_add_or_update.
43993
43994 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43995
43996         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
43997         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
43998
43999 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44000
44001         * modules/mkancesdirs (Depends-on): Add fcntl.
44002         * modules/savewd: New file.
44003         * MODULES.html.sh (File system functions): Add savewd.
44004
44005         * modules/configmake (Makefile.am): Add support for the
44006         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
44007
44008 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44009
44010         * m4/savewd.m4: New file.
44011
44012 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
44013
44014         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
44015         (dirchownmod): New arg FD.  All callers changed.
44016         Use FD rather than opening the directory ourself, as opening is
44017         now the caller's responsibility.
44018         * lib/dirchownmod.h: Likewise.
44019         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
44020         hosts that require <sys/types.h> before <sys/stat.h>.  Include
44021         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
44022         (test_dir): Remove.
44023         (mkancesdirs): Return length of prefix of FILE that has already
44024         been made, or -2 if there is a child doing the work.  Redo
44025         algorithm so that it is O(N) rather than O(N**2).  Optimize away
44026         ".", and treat ".." specially since it might stray back into
44027         already-created areas.  Use a subprocess if necessary.  New arg
44028         WD; all users changed.  MAKE_DIR function should now return 1
44029         if it creates a directory that is not readable.  Return -2 if
44030         a child process is spun off.
44031         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
44032         Adjust signature to match code.
44033         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
44034         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
44035         all users changed.
44036         * lib/savewd.c, lib/savewd.h: New files.
44037
44038 2006-09-15  Jim Meyering  <jim@meyering.net>
44039
44040         * modules/rename-dest-slash: New module.
44041         * MODULES.html.sh (posix_compat): Add it here.
44042
44043         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
44044
44045 2006-09-15  Jim Meyering  <jim@meyering.net>
44046
44047         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
44048         file.
44049
44050         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
44051
44052 2006-09-15  Jim Meyering  <jim@meyering.net>
44053
44054         * lib/rename-dest-slash.c (has_trailing_slash): Use
44055         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
44056         (rpl_rename_dest_slash): Perform the cheaper trailing slash
44057         test before testing whether SRC is a directory.
44058         Suggestions from Bruno Haible.
44059
44060         Avoid a warning about an unused variable.
44061         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
44062         into the #ifdef block where it's used.
44063
44064         * lib/rename-dest-slash.c: New file.
44065
44066 2006-09-14  Bruno Haible  <bruno@clisp.org>
44067
44068         * lib/allocsa.c: Include <config.h> unconditionally.
44069         * lib/asnprintf.c: Likewise.
44070         * lib/asprintf.c: Likewise.
44071         * lib/c-strcasecmp.c: Likewise.
44072         * lib/c-strcasestr.c: Likewise.
44073         * lib/c-strncasecmp.c: Likewise.
44074         * lib/c-strstr.c: Likewise.
44075         * lib/classpath.c: Likewise.
44076         * lib/clean-temp.c: Likewise.
44077         * lib/concatpath.c: Likewise.
44078         * lib/copy-file.c: Likewise.
44079         * lib/csharpcomp.c: Likewise.
44080         * lib/csharpexec.c: Likewise.
44081         * lib/execute.c: Likewise.
44082         * lib/fatal-signal.c: Likewise.
44083         * lib/findprog.c: Likewise.
44084         * lib/fwriteerror.c: Likewise.
44085         * lib/gl_array_list.c: Likewise.
44086         * lib/gl_array_oset.c: Likewise.
44087         * lib/gl_avltree_list.c: Likewise.
44088         * lib/gl_avltree_oset.c: Likewise.
44089         * lib/gl_avltreehash_list.c: Likewise.
44090         * lib/gl_carray_list.c: Likewise.
44091         * lib/gl_linked_list.c: Likewise.
44092         * lib/gl_linkedhash_list.c: Likewise.
44093         * lib/gl_list.c: Likewise.
44094         * lib/gl_oset.c: Likewise.
44095         * lib/gl_rbtree_list.c: Likewise.
44096         * lib/gl_rbtree_oset.c: Likewise.
44097         * lib/gl_rbtreehash_list.c: Likewise.
44098         * lib/imaxabs.c: Likewise.
44099         * lib/imaxdiv.c: Likewise.
44100         * lib/javacomp.c: Likewise.
44101         * lib/javaexec.c: Likewise.
44102         * lib/javaversion.c: Likewise.
44103         * lib/linebreak.c: Likewise.
44104         * lib/localcharset.c: Likewise.
44105         * lib/lock.c: Likewise.
44106         * lib/mbchar.c: Likewise.
44107         * lib/mbswidth.c: Likewise.
44108         * lib/mkdtemp.c: Likewise.
44109         * lib/pipe.c: Likewise.
44110         * lib/printf-args.c: Likewise.
44111         * lib/printf-parse.c: Likewise.
44112         * lib/progname.c: Likewise.
44113         * lib/progreloc.c: Likewise.
44114         * lib/readlink.c: Likewise.
44115         * lib/sh-quote.c: Likewise.
44116         * lib/stpcpy.c: Likewise.
44117         * lib/stpncpy.c: Likewise.
44118         * lib/strcasecmp.c: Likewise.
44119         * lib/strcasestr.c: Likewise.
44120         * lib/strcspn.c: Likewise.
44121         * lib/striconv.c: Likewise.
44122         * lib/strncasecmp.c: Likewise.
44123         * lib/strnlen1.c: Likewise.
44124         * lib/strstr.c: Likewise.
44125         * lib/strtok_r.c: Likewise.
44126         * lib/tls.c: Likewise.
44127         * lib/tmpdir.c: Likewise.
44128         * lib/unicodeio.c: Likewise.
44129         * lib/unsetenv.c: Likewise.
44130         * lib/vasnprintf.c: Likewise.
44131         * lib/vasprintf.c: Likewise.
44132         * lib/wait-process.c: Likewise.
44133         * lib/xallocsa.c: Likewise.
44134         * lib/xsetenv.c: Likewise.
44135         * lib/xstriconv.c: Likewise.
44136
44137 2006-09-13  Simon Josefsson  <jas@extundo.com>
44138
44139         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
44140         that internally, suggested by Ralf Wildenhues
44141         <Ralf.Wildenhues@gmx.de>.
44142
44143 2006-09-13  Simon Josefsson  <jas@extundo.com>
44144
44145         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
44146         @LIBOBJS@.
44147         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44148
44149 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44150
44151         * lib/_fpending.c: Include <config.h> unconditionally, since we no
44152         longer worry about uses that don't define HAVE_CONFIG_H.
44153         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
44154         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
44155         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
44156         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
44157         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
44158         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
44159         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
44160         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
44161         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
44162         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
44163         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
44164         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
44165         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
44166         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
44167         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
44168         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
44169         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
44170         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
44171         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
44172         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
44173         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
44174         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
44175         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
44176         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
44177         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
44178         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
44179         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
44180         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
44181         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
44182         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
44183         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
44184         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
44185         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
44186         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
44187         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
44188         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
44189         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
44190         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
44191         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
44192         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
44193         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
44194         Likewise.
44195
44196 2006-09-13  Eric Blake  <ebb9@byu.net>
44197
44198         * lib/getopt.c: Fix typo in last commit.
44199
44200 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44201
44202         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
44203         dgettext.
44204
44205 2006-09-12  Jim Meyering  <jim@meyering.net>
44206
44207         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
44208         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
44209         Reported by Nelson H. F. Beebe.
44210
44211 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44212
44213         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
44214         program_invocation_name and program_invocation_short_name are
44215         initialized.
44216         * lib/argp-namefrob.h: Move declarations of program_invocation_name
44217         and program_invocation_short_name to argp.h, so they are visible
44218         to user programs.
44219         * lib/argp.h: Likewise
44220
44221 2006-09-10  Bruno Haible  <bruno@clisp.org>
44222
44223         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
44224         m4/inttypes_h.m4, m4/uintmax_t.m4.
44225
44226 2006-09-10  Bruno Haible  <bruno@clisp.org>
44227
44228         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
44229         gl_AC_TYPE_UINTMAX_T.
44230
44231 2006-09-10  Bruno Haible  <bruno@clisp.org>
44232
44233         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
44234
44235 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44236
44237         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
44238         convention.  Text proposed by Bruno Haible.
44239         (struct argp_option): Document the use of N_() wrappers.
44240
44241         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
44242         '\v', and translate the two parts separately, instead of feeding
44243         the whole string to gettext.  This allows to exclude
44244         '\v' from the strings visible to the translator by writing doc
44245         strings as N_("..") "\v" N_("..").
44246
44247 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
44248
44249         * config/srclist.txt: Undo latest change; the bug was fixed.
44250
44251 2006-09-09  Bruno Haible  <bruno@clisp.org>
44252
44253         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
44254         assignments if building a library without libtool.
44255         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
44256         in func_emit_lib_Makefile_am.
44257         (func_import): When building a static library libfoo.a, arrange to
44258         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
44259         (func_create_testdir): Likewise.
44260         * modules/gc (configure.ac, Makefile.am): If building statically,
44261         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
44262         * modules/iconvme (configure.ac, Makefile.am): Likewise.
44263         * modules/striconv (configure.ac, Makefile.am): Likewise.
44264         Based on a suggestion by Ralf Wildenhues.
44265
44266 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44267
44268         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
44269         Check for unistd.h too, since Autoconf doesn't assume POSIX.
44270         Also:
44271
44272         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44273         Add year_2050_test to catch glibc bug 2821
44274         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44275
44276         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
44277         Prefer #ifdef to #if.
44278
44279         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
44280         Return from 'main' instead of calling 'exit'.
44281
44282 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44283
44284         * lib/mktime.c (guess_time_tm): Fix bug where mktime
44285         returned the maximum time_t value rather than (time_t) -1.
44286         Problem originally reported by William Bardwell
44287         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
44288
44289         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44290         Moved to here ...
44291         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
44292         ... from here.
44293
44294 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
44295
44296         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
44297         2821 is fixed.
44298
44299 2006-09-08  Jim Meyering  <jim@meyering.net>
44300
44301         Don't make generated files read-only.  That would bother too many
44302         people.  However, do retain the ability to work when targets are
44303         read-only: remove the destination and temporary files before writing
44304         them (when generated via sed or echo), or by using the -f option for
44305         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
44306         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44307         * modules/byteswap, modules/configmake, modules/fcntl:
44308         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44309         * modules/localcharset, modules/netinet_in, modules/poll:
44310         * modules/stdbool, modules/stdint, modules/sys_select:
44311         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44312
44313 2006-09-08  Jim Meyering  <jim@meyering.net>
44314
44315         Avoid new build failure on FreeBSD 6.0.
44316         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
44317         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
44318         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
44319
44320 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44321
44322         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
44323
44324 2006-09-07  Jim Meyering  <jim@meyering.net>
44325
44326         Fix global typo in last change: use chmod u-w, not chmod u-x.
44327         Spotted by Paul Eggert and Bruce Korb.
44328         * modules/alloca-opt, modules/argz, modules/arpa_inet:
44329         * modules/byteswap, modules/configmake, modules/fcntl:
44330         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
44331         * modules/localcharset, modules/netinet_in, modules/poll:
44332         * modules/stdbool, modules/stdint, modules/sys_select:
44333         * modules/sys_socket, modules/sys_stat, modules/sysexits:
44334
44335 2006-09-06  Jim Meyering  <jim@meyering.net>
44336
44337         Make generated files be read-only.
44338         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
44339         Ensure that each generated file is now read-only.
44340         * modules/argz: Likewise.
44341         * modules/arpa_inet: Likewise.
44342         * modules/byteswap: Likewise.
44343         * modules/configmake: Likewise.
44344         * modules/fcntl: Likewise.
44345         * modules/fnmatch: Likewise.
44346         * modules/getopt: Likewise.
44347         * modules/glob: Likewise.
44348         * modules/inttypes: Likewise.
44349         * modules/netinet_in: Likewise.
44350         * modules/poll: Likewise.
44351         * modules/stdbool: Likewise.
44352         * modules/stdint: Likewise.
44353         * modules/sys_select: Likewise.
44354         * modules/sys_socket: Likewise.
44355         * modules/sys_stat: Likewise.
44356         * modules/sysexits: Likewise.
44357         * modules/localcharset: Same as above, but continue using temporary
44358         file named "t-$@" (why different?) rather than the "$@-t" used
44359         everywhere else.
44360
44361         * modules/sysexits (Makefile.am): Replace literal occurrences
44362         of "sysexit.h" more readable, and more consistent, "$@".
44363
44364 2006-09-06  Bruno Haible  <bruno@clisp.org>
44365
44366         * modules/striconv: New file.
44367         * modules/xstriconv: New file.
44368         * MODULES.html.sh (Internationalization functions): Add striconv,
44369         xstriconv.
44370
44371 2006-09-06  Bruno Haible  <bruno@clisp.org>
44372
44373         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
44374         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
44375         not using libtool correctly.
44376
44377 2006-09-06  Bruno Haible  <bruno@clisp.org>
44378
44379         * lib/striconv.h: New file.
44380         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
44381         iconvstring.c.
44382         * lib/xstriconv.h: New file.
44383         * lib/xstriconv.c: New file.
44384
44385 2006-09-06  Bruno Haible  <bruno@clisp.org>
44386
44387         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
44388         lib_..._LDFLAGS.
44389
44390 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44391
44392         * lib/argz_.h: Sync from Libtool.
44393
44394         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
44395                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44396
44397         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
44398
44399 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44400
44401         * modules/trim: New file.
44402
44403 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
44404
44405         * lib/trim.h: New file.
44406         * lib/trim.c: New file.
44407
44408 2006-09-05  Bruno Haible  <bruno@clisp.org>
44409
44410         * MODULES.html.sh (String handling): Add trim.
44411
44412 2006-09-04  Karl Berry  <karl@gnu.org>
44413
44414         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
44415         until next release.
44416
44417 2006-09-03  Bruno Haible  <bruno@clisp.org>
44418
44419         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
44420         correctly.
44421
44422 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44423
44424         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
44425         not gl_GETLOADAVG.  Omit unneeded semicolons.
44426         Problems reported by Ralf Wildenhues in
44427         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44428         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
44429         at the end, which is the usual gnulib style.
44430
44431         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
44432         of doing all the work ourselves.
44433         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
44434         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
44435
44436 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44437
44438         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
44439         Problem reported by Ralf Wildenhues in
44440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
44441
44442         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
44443         HAVE_STRUCT_STATFS_F_FSTYPENAME.
44444
44445 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44446
44447         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
44448         yesterday's patch by changing test -n to test -z.
44449
44450 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44451
44452         * modules/getloadavg (Files): Add m4/getloadavg.m4.
44453         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
44454         the former is now obsolescent.
44455
44456         * modules/chdir-long (Depends-on): Add fcntl.
44457
44458 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44459
44460         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
44461         obsolescent, and programs should use gnulib instead.
44462         * m4/getloadavg.m4: New file, with contents taken from Autoconf
44463         but with prefixes changed.
44464
44465 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
44466
44467         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
44468         or stdbool.h, because they might not exist while configuring.
44469
44470         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
44471         Don't include unistd.h or limits.h; not needed, since chdir-long.h
44472         does that for us.
44473         (O_DIRECTORY): Remove.
44474
44475 2006-08-31  Eric Blake  <ebb9@byu.net>
44476
44477         * gnulib-tool: Don't let emacs change spaces to TAB.
44478
44479 2006-08-31  Bruno Haible  <bruno@clisp.org>
44480
44481         * gnulib-tool: When calling func_import more than once, do it in a
44482         subshell.
44483         Reported by Eric Blake <ebb9@byu.net>.
44484
44485 2006-08-31  Bruno Haible  <bruno@clisp.org>
44486
44487         * gnulib-tool (nl): Remove variable.
44488         (sed_transform_lib_file): Use more robust test for config-h module.
44489         (func_import): Fix typo in 2006-08-25 patch.
44490
44491 2006-08-31  Bruno Haible  <bruno@clisp.org>
44492
44493         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
44494         specified, augment Makefile.am variables instead of assigning them.
44495
44496 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44497
44498         Work around a bug in both the Linux and SunOS 64-bit kernels:
44499         nanosleep mishandles sleeps for longer than 2**31 seconds.
44500         Problem reported by Frank v Waveren in
44501         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
44503         Check for nanosleep bug.
44504         (LIB_NANOSLEEP): Append clock_gettime library if needed.
44505
44506 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44507
44508         Work around a bug in both the Linux and SunOS 64-bit kernels:
44509         nanosleep mishandles sleeps for longer than 2**31 seconds.
44510         Problem reported by Frank v Waveren in
44511         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
44512         * lib/nanosleep.c (BILLION): New constant.
44513         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
44514         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
44515         implementation.
44516
44517 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44518
44519         * modules/nanosleep (Depends-on): Add gettime.
44520
44521 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
44522         and Simon Josefsson  <jas@extundo.com>
44523         and Oskar Liljeblad  <oskar@osk.mine.nu>
44524
44525         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
44526         * gnulib-tool (func_import): New license type 'unmodifiable license
44527         text'.
44528         * modules/fdl: Use it.  Longer description.
44529         * module/gpl, module/lgpl: New files.
44530
44531 2006-08-30  Jim Meyering  <jim@meyering.net>
44532
44533         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
44534         shadowing the parameter.
44535
44536 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44537
44538         Sync from Libtool:
44539
44540         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44541
44542         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
44543         sharing with gnulib.  Report by Eric Blake.
44544
44545 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44546
44547         * modules/isapipe: New file.
44548         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
44549
44550 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44551
44552         * modules/configmake (Makefile.am): Add a comment, and omit
44553         the CONFIGMAKE_ prefix from generated macro names.  Suggested
44554         by Bruno Haible.
44555
44556 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44557
44558         * m4/isapipe.m4: New file.
44559
44560 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
44561
44562         * lib/isapipe.c, lib/isapipe.h: New files.
44563
44564 2006-08-29  Jim Meyering  <jim@meyering.net>
44565
44566         * modules/configmake (Makefile.am): Make configmake.h depend on
44567         Makefile.  Otherwise, a stale configmake.h could hang around.
44568
44569 2006-08-29  Eric Blake  <ebb9@byu.net>
44570
44571         * lib/error.c (error_at_line, print_errno_message): Match libc, after
44572         resolution of upstream bug 3044.
44573
44574 2006-08-29  Bruno Haible  <bruno@clisp.org>
44575
44576         * modules/localcharset (Depends-on): Add configmake.
44577         (Makefile.am): Remove setting of LIBDIR through DEFS.
44578
44579 2006-08-29  Bruno Haible  <bruno@clisp.org>
44580
44581         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
44582         defined.
44583
44584 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44585
44586         * modules/fcntl: New file.
44587         * modules/chdir-safer (Depends-on): Add fcntl.
44588         * modules/fts: Likewise.
44589         * modules/mkdir-p: Likewise.
44590
44591         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
44592         This undoes the most recent change, since we're now addressing the
44593         problem in a different way.
44594
44595         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
44596         into output, since the output might be called Makefile.am even
44597         if $makefile_name is something different.
44598         (func_import): Use $makefile_am rather than
44599         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
44600         empty.
44601
44602         * modules/inttypes (Files): Add m4/inttypes-h.m4.
44603
44604 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44605
44606         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
44607         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
44608         recent change to stdint.m4, since we're now addressing the problem in a
44609         different way.
44610
44611 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44612
44613         * m4/fcntl_h.m4: New file.
44614
44615 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
44616
44617         * lib/fcntl_.h: New file.
44618         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
44619         the fcntl module.
44620         * lib/dirchownmod.c: Likewise.
44621         * lib/fts.c: Likewise.
44622
44623         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
44624         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
44625         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
44626         just before including <inttypes.h>, to avoid circular inclusion.
44627
44628 2006-08-28  Jim Meyering  <jim@meyering.net>
44629
44630         * doc/visibility.texi: Actually read and correct the grammar of the
44631         sentence affected by yesterday's change.
44632
44633 2006-08-28  Eric Blake  <ebb9@byu.net>
44634
44635         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
44636         needs wrapper.
44637
44638 2006-08-28  Eric Blake  <ebb9@byu.net>
44639
44640         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
44641
44642 2006-08-28  Eric Blake  <ebb9@byu.net>
44643
44644         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
44645
44646 2006-08-28  Bruno Haible  <bruno@clisp.org>
44647
44648         * modules/c-strstr: New file, from GNU gettext.
44649         * MODULES.html.sh (String handling): Add c-strstr.
44650
44651 2006-08-28  Bruno Haible  <bruno@clisp.org>
44652
44653         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
44654         macros.
44655         Reported by Eric Blake.
44656
44657 2006-08-28  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
44660         (VASNPRINTF): Return a string of length > INT_MAX without failing.
44661         * lib/vasprintf.c: Include errno.h, limits.h.
44662         (EOVERFLOW): New fallback definition.
44663         (vasprintf): Test here whether the string length is > INT_MAX.
44664         * lib/vsnprintf.c: Include errno.h, limits.h.
44665         (EOVERFLOW): New fallback definition.
44666         (vsnprintf): Fix bug when generated string was too long for the buffer.
44667         Test here whether the string length is > INT_MAX.
44668
44669 2006-08-28  Bruno Haible  <bruno@clisp.org>
44670
44671         * lib/inttypes_.h (SCNX*): Remove definitions.
44672         Reported by Eric Blake.
44673
44674 2006-08-28  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/c-strstr.h: New file, from GNU gettext.
44677         * lib/c-strstr.c: New file, from GNU gettext.
44678
44679 2006-08-28  Bruno Haible  <bruno@clisp.org>
44680
44681         * gnulib-tool: Reorder some statements.
44682
44683 2006-08-28  Bruno Haible  <bruno@clisp.org>
44684
44685         * gnulib-tool: New option --makefile-name.
44686         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
44687         $makefile_name.
44688         (func_import): Write $makefile_name to the cache file, and read it from
44689         there unless explicitly specified. Use $makefile_name as file name
44690         instead of Makefile.am. Adjust the recommendations accordingly.
44691
44692 2006-08-28  Bruno Haible  <bruno@clisp.org>
44693
44694         * gnulib-tool (func_verify_module): Check against misapplying patch.
44695
44696 2006-08-28  Bruno Haible  <bruno@clisp.org>
44697
44698         * gnulib-tool (func_relativize, func_relconcat): New functions.
44699         Give an error if --local-dir is given with --update.
44700         Remove trailing slashes from $local_gnulib_dir.
44701         (func_import): Store the relativized $local_gnulib_dir in
44702         gnulib-cache.m4, and read it from there if not specified explicitly.
44703
44704 2006-08-28  Bruno Haible  <bruno@clisp.org>
44705
44706         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
44707         is the current directory. Respect also $local_gnulib_dir.
44708
44709 2006-08-28  Bruno Haible  <bruno@clisp.org>
44710             Simon Josefsson  <jas@extundo.com>
44711
44712         BeOS portability.
44713         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
44714
44715 2006-08-27  Jim Meyering  <jim@meyering.net>
44716
44717         * doc/visibility.texi: Remove duplicate word: "pointer".
44718
44719 2006-08-26  Bruno Haible  <bruno@clisp.org>
44720
44721         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
44722         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
44723         (Makefile.am): Create inttypes.h from inttypes_.h.
44724         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
44725
44726         * modules/imaxabs: New file.
44727
44728         * modules/imaxdiv: New file.
44729
44730 2006-08-26  Bruno Haible  <bruno@clisp.org>
44731
44732         * m4/inttypes.m4: New file.
44733         * m4/_inttypes_h.m4: Remove file.
44734         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
44735         PRI_MACROS_BROKEN.
44736         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
44737
44738         * m4/imaxabs.m4: New file.
44739
44740         * m4/imaxdiv.m4: New file.
44741
44742 2006-08-26  Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/inttypes_.h: New file.
44745         * lib/inttypes.h: Remove file.
44746         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
44747
44748         * lib/imaxabs.c: New file.
44749
44750         * lib/imaxdiv.c: New file.
44751
44752 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44753
44754         New config-h module, so that "make" output needn't be cluttered
44755         by -DHAVE_CONFIG_H.
44756         * MODULES.html.sh (Support for building libraries and executables):
44757         Add config-h.
44758         * modules/config-h: New file.
44759         * gnulib-tool (nl, sed_transform_lib_file): New vars.
44760         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
44761         the config-h module is used.
44762
44763         New configmake module, so that "make" output needn't be cluttered
44764         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
44765         * MODULES.html.sh (Support for building libraries and executables):
44766         Add configmake.
44767         * modules/configmake: New file.
44768
44769 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
44770
44771         * m4/config-h.m4: New file.
44772
44773 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44774
44775         * config/srclist.txt: Add elisp-comp.
44776
44777 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
44778
44779         * MODULES.html.sh (Support for building libraries and executables):
44780         Add elisp-comp.
44781         * build-aux/elisp-comp: New file.
44782         * modules/elisp-comp: New file.
44783
44784 2006-08-24  Bruno Haible  <bruno@clisp.org>
44785
44786         * gnulib-tool (func_create_testdir): Use non-default values of
44787         sourcebase and m4base.
44788
44789 2006-08-24  Bruno Haible  <bruno@clisp.org>
44790
44791         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
44792         HTML structure.
44793
44794 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
44795
44796         * modules/openat (Depends-on): Add lchown.
44797
44798 2006-08-23  Bruno Haible  <bruno@clisp.org>
44799
44800         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
44801         of gl_LOCK_EARLY instead of gl_LOCK.
44802
44803 2006-08-23  Bruno Haible  <bruno@clisp.org>
44804
44805         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
44806         on OSF/1 to no.
44807         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
44808
44809 2006-08-23  Bruno Haible  <bruno@clisp.org>
44810
44811         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
44812         as unusable.
44813
44814         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
44815         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
44816         (gl_LOCK): New macro.
44817
44818 2006-08-22  Simon Josefsson  <jas@extundo.com>
44819
44820         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
44821         to md5 module.
44822
44823 2006-08-22  Simon Josefsson  <jas@extundo.com>
44824
44825         * MODULES.html.sh: Add "Support for maintaining and release
44826         projects".
44827
44828         * build-aux/gnupload: New file, from coreutils.
44829
44830 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44831
44832         Avoid the need for AC_LIBSOURCES in m4 macros.
44833         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
44834         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
44835         * modules/check-version (EXTRA_DIST): Add check-version.h.
44836         * modules/crc (EXTRA_DIST): Add crc.h.
44837         * modules/des (EXTRA_DIST): Add des.h.
44838         * modules/gc (EXTRA_DIST): Add gc.h.
44839         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
44840         * modules/getline (EXTRA_DIST): Add getline.h.
44841         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
44842         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
44843         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
44844         * modules/md2 (EXTRA_DIST): Add md2.h.
44845         * modules/md4 (EXTRA_DIST): Add md4.h.
44846         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
44847         * modules/read-file (EXTRA_DIST): Add read-file.h.
44848         * modules/readline (EXTRA_DIST): Add readline.h.
44849         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
44850         rijndael-api-fst.h.
44851
44852 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44853
44854         * m4/rijndael.m4 (gl_ARCFOUR):
44855         * m4/arctwo.m4 (gl_ARCTWO):
44856         * m4/check-version.m4 (gl_CHECK_VERSION):
44857         * m4/crc.m4 (gl_CRC):
44858         * m4/des.m4 (gl_DES):
44859         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
44860         * m4/gc.m4 (gl_GC):
44861         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
44862         * m4/getline.m4 (gl_FUNC_GETLINE):
44863         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
44864         * m4/hmac-md5.m4 (gl_HMAC_MD5):
44865         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
44866         * m4/md2.m4 (gl_MD2):
44867         * m4/md4.m4 (gl_MD4):
44868         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
44869         * m4/read-file.m4 (gl_FUNC_READ_FILE):
44870         * m4/readline.m4 (gl_FUNC_READLINE):
44871         * m4/rijndael.m4 (gl_RIJNDAEL):
44872         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
44873         to get the necessary .h files and whatnot.
44874
44875 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
44876
44877         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
44878         gnulib rather than the other way around.
44879         * config/srclistvars.sh (COREUTILS): Remove.
44880
44881 2006-08-22  Jim Meyering  <jim@meyering.net>
44882
44883         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
44884
44885         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
44886
44887 2006-08-22  Eric Blake  <ebb9@byu.net>
44888
44889         * modules/regexprops-generic: New file.
44890         * MODULES.html.sh (Support for building documentation): List it.
44891
44892 2006-08-22  Eric Blake  <ebb9@byu.net>
44893
44894         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
44895         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44896         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
44897         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
44898
44899 2006-08-22  Bruno Haible  <bruno@clisp.org>
44900
44901         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
44902         and lib_LTLIBRARIES like the other lib_* variables.
44903
44904 2006-08-22  Bruno Haible  <bruno@clisp.org>
44905
44906         * build-aux/x-to-1.in: New file, from GNU gettext.
44907
44908 2006-08-22  Bruno Haible  <bruno@clisp.org>
44909
44910         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
44911         <utmpx.h> exists.
44912
44913 2006-08-22  Bruno Haible  <bruno@clisp.org>
44914
44915         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
44916         <utmpx.h> exists.
44917
44918 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44919
44920         BeOS portability.
44921         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
44922         exist.
44923         Problem reported by Bruno Haible.
44924
44925 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
44926
44927         Avoid the need for AC_LIBSOURCES in m4 macros.
44928         * modules/acl (EXTRA_DIST): Add acl.h.
44929         * modules/argmatch (Files): Add m4/argmatch.m4.
44930         (configure.ac): Add gl_ARGMATCH.
44931         (EXTRA_DIST): Renamed from lib_SOURCES, for
44932         consistency with the other modules.  Remove argmatch.c.
44933         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
44934         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
44935         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
44936         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
44937         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
44938         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
44939         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
44940         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
44941         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
44942         * modules/closeout (EXTRA_DIST): Add closeout.h.
44943         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
44944         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
44945         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
44946         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
44947         dirname.h; remove basename.c and stripslash.c.
44948         * modules/exclude (EXTRA_DIST): Add exclude.h.
44949         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
44950         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
44951         * modules/file-type (EXTRA_DIST): Add file-type.h.
44952         * modules/filemode (EXTRA_DIST): Add filemode.h.
44953         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
44954         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
44955         * modules/fpending (EXTRA_DIST): Add __fpending.h.
44956         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
44957         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
44958         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
44959         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
44960         * modules/getdate (EXTRA_DIST): Add getdate.c.
44961         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
44962         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
44963         * modules/getpass (EXTRA_DIST): Add getpass.h.
44964         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
44965         * modules/group-member (EXTRA_DIST): Add group-member.h.
44966         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
44967         * modules/hash (EXTRA_DIST): Add hash.h.
44968         * modules/human (EXTRA_DIST): Add human.h.
44969         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
44970         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
44971         * modules/lchown (EXTRA_DIST): Add lchown.h.
44972         * modules/long-options (EXTRA_DIST): Add long-options.h.
44973         * modules/lstat (EXTRA_DIST): Add lstat.h.
44974         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
44975         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
44976         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
44977         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
44978         * modules/memxor (EXTRA_DIST): Add memxor.h.
44979         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
44980         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
44981         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
44982         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
44983         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
44984         * modules/physmem (EXTRA_DIST): Add physmem.h.
44985         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
44986         * modules/posixver (EXTRA_DIST): Add posixver.h.
44987         * modules/quote (EXTRA_DIST): Add quote.h.
44988         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
44989         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
44990         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
44991         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
44992         regex_internal.h regexec.c.
44993         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
44994         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
44995         * modules/same (EXTRA_DIST): Add same.h.
44996         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
44997         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
44998         * modules/savedir (EXTRA_DIST): Add savedir.h.
44999         * modules/sha1 (EXTRA_DIST): Add sha1.h.
45000         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
45001         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
45002         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
45003         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
45004         * modules/strdup (EXTRA_DIST): Add strdup.h.
45005         * modules/strftime (EXTRA_DIST): Add strftime.h.
45006         * modules/strndup (EXTRA_DIST): Add strndup.h.
45007         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
45008         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
45009         * modules/time_r (EXTRA_DIST): Add time_r.h.
45010         * modules/timespec (EXTRA_DIST): Add timespec.h.
45011         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
45012         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
45013         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
45014         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
45015         * modules/userspec (EXTRA_DIST): Add userspec.h.
45016         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
45017         * modules/utimens (EXTRA_DIST): Add utimens.h.
45018         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
45019         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
45020         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
45021         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
45022         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
45023         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
45024         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
45025         * modules/yesno (EXTRA_DIST): Add yesno.h.
45026
45027 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
45028
45029         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
45030
45031         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
45032         * m4/dev-ino.m4, same-inode.m4: Remove.
45033
45034         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
45035         * m4/acl.m4 (AC_FUNC_ACL):
45036         * m4/backupfile.m4 (gl_BACKUPFILE):
45037         * m4/c-strtod.m4 (gl_C99_STRTOLD):
45038         * m4/canon-host.m4 (gl_CANON_HOST):
45039         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
45040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
45041         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
45042         * m4/cloexec.m4 (gl_CLOEXEC):
45043         * m4/close-stream.m4 (gl_CLOSE_STREAM):
45044         * m4/closeout.m4 (gl_CLOSEOUT):
45045         * m4/dirfd.m4 (gl_FUNC_DIRFD):
45046         * m4/dirname.m4 (gl_DIRNAME):
45047         * m4/exclude.m4 (gl_EXCLUDE):
45048         * m4/exitfail.m4 (gl_EXITFAIL):
45049         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
45050         * m4/file-type.m4 (gl_FILE_TYPE):
45051         * m4/filemode.m4 (gl_FILEMODE):
45052         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
45053         * m4/fpending.m4 (gl_FUNC_FPENDING):
45054         * m4/fprintftime.m4 (gl_FPRINTFTIME):
45055         * m4/fts.m4 (gl_FUNC_FTS):
45056         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
45057         * m4/getdate.m4 (gl_GETDATE):
45058         * m4/gethrxtime.m4 (gl_GETHRXTIME):
45059         * m4/getpagesize.m4 (gl_GETPAGESIZE):
45060         * m4/getpass.m4 (gl_FUNC_GETPASS):
45061         * m4/gettime.m4 (gl_GETTIME):
45062         * m4/getugroups.m4 (gl_GETUGROUPS):
45063         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
45064         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
45065         * m4/hard-locale.m4 (gl_HARD_LOCALE):
45066         * m4/hash.m4 (gl_HASH):
45067         * m4/idcache.m4 (gl_IDCACHE):
45068         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
45069         * m4/lchown.m4 (gl_FUNC_LCHOWN):
45070         * m4/long-options.m4 (gl_LONG_OPTIONS):
45071         * m4/lstat.m4 (gl_FUNC_LSTAT):
45072         * m4/md5.m4 (gl_MD5):
45073         * m4/memcasecmp.m4 (gl_MEMCASECMP):
45074         * m4/memcoll.m4 (gl_MEMCOLL):
45075         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
45076         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
45077         * m4/memxor.m4 (gl_MEMXOR):
45078         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
45079         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
45080         * m4/modechange.m4 (gl_MODECHANGE):
45081         * m4/mountlist.m4 (gl_MOUNTLIST):
45082         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45083         * m4/openat.m4 (gl_FUNC_OPENAT):
45084         * m4/pathmax.m4 (gl_PATHMAX):
45085         * m4/physmem.m4 (gl_PHYSMEM):
45086         * m4/posixtm.m4 (gl_POSIXTM):
45087         * m4/posixver.m4 (gl_POSIXVER):
45088         * m4/quote.m4 (gl_QUOTE):
45089         * m4/quotearg.m4 (gl_QUOTEARG):
45090         * m4/readtokens.m4 (gl_READTOKENS):
45091         * m4/readutmp.m4 (gl_READUTMP):
45092         * m4/regex.m4 (gl_REGEX):
45093         * m4/safe-read.m4 (gl_SAFE_READ):
45094         * m4/safe-write.m4 (gl_SAFE_WRITE):
45095         * m4/same.m4 (gl_SAME):
45096         * m4/save-cwd.m4 (gl_SAVE_CWD):
45097         * m4/savedir.m4 (gl_SAVEDIR):
45098         * m4/settime.m4 (gl_SETTIME):
45099         * m4/sha1.m4 (gl_SHA1):
45100         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
45101         * m4/stat-macros.m4 (gl_STAT_MACROS):
45102         * m4/stat-time.m4 (gl_STAT_TIME):
45103         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
45104         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
45105         * m4/strdup.m4 (gl_FUNC_STRDUP):
45106         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
45107         * m4/strndup.m4 (gl_FUNC_STRNDUP):
45108         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
45109         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
45110         * m4/time_r.m4 (gl_TIME_R):
45111         * m4/timespec.m4 (gl_TIMESPEC):
45112         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
45113         * m4/unlinkdir.m4 (gl_UNLINKDIR):
45114         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
45115         * m4/userspec.m4 (gl_USERSPEC):
45116         * m4/utimecmp.m4 (gl_UTIMECMP):
45117         * m4/utimens.m4 (gl_UTIMENS):
45118         * m4/xalloc.m4 (gl_XALLOC):
45119         * m4/xgetcwd.m4 (gl_XGETCWD):
45120         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
45121         * m4/xreadlink.m4 (gl_XREADLINK):
45122         * m4/xstrtod.m4 (gl_XSTRTOD):
45123         * m4/yesno.m4 (gl_YESNO):
45124         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
45125         to get the necessary .h files and whatnot.
45126
45127 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
45128             Bruno Haible  <bruno@clisp.org>
45129
45130         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
45131         /bin/sh understanding of '!' conditional negation.
45132
45133 2006-08-21  Jim Meyering  <jim@meyering.net>
45134
45135         * modules/openat (Depends-on): Really alphabetize.
45136
45137         * modules/acl (Depends-on): Add error and quote.
45138
45139         * check-module (find_included_lib_files): Add at-func.c to the
45140         ok-to-include-more-than-once white list.
45141
45142         * modules/openat (Depends-on): Add lstat.  Alphabetize.
45143
45144 2006-08-21  Bruno Haible  <bruno@clisp.org>
45145
45146         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45147         Emit a pkgdata_DATA variable only if some snippets add contents to it.
45148         Reported by Martin Lambers <marlam@marlam.de>.
45149
45150 2006-08-21  Bruno Haible  <bruno@clisp.org>
45151
45152         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
45153         specify an installation location, don't emit a noinst_LIBRARIES or
45154         noinst_LTLIBRARIES assignment.
45155
45156 2006-08-21  Bruno Haible  <bruno@clisp.org>
45157
45158         BeOS portability.
45159         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
45160         BeOS has mbrtowc() but no <wctype.h>.
45161
45162 2006-08-21  Bruno Haible  <bruno@clisp.org>
45163
45164         BeOS portability.
45165         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
45166         exist.
45167
45168 2006-08-21  Bruno Haible  <bruno@clisp.org>
45169
45170         BeOS portability.
45171         * lib/mbchar.h: Include <wctype.h> only if it exists.
45172
45173 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45174
45175         Remove files that are no longer needed by their respective modules.
45176         * m4/obstack.m4: Remove.
45177         * m4/strerror_r.m4: Remove.
45178         * m4/uint32_t.m4: Remove.
45179         * m4/uintptr_t.m4: Remove.
45180         * m4/ullong_max.m4: Remove.
45181         * m4/xstrtoimax.m4: Remove.
45182         * m4/xstrtoumax.m4: Remove.
45183
45184         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
45185         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
45186         dependencies now capture this.
45187
45188         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
45189         Do not use AC_LIBSOURCES, since gnulib modules now do this.
45190         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
45191         * m4/human.m4 (gl_HUMAN): Likewise.
45192         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
45193         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
45194
45195         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
45196
45197         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
45198         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
45199         stdint.
45200         * m4/human.m4 (gl_HUMAN): Likewise.
45201         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
45202         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
45203         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45204         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45205         * m4/xstrtol (gl_XSTRTOL): Likewise.
45206
45207         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
45208         AC_TYPE_LONG_LONG_INT.
45209         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
45210         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
45211         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
45212         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
45213
45214         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
45215         on stdbool.
45216
45217         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
45218         (gl_PREREQ_XSTRTOUL): Remove.
45219
45220         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
45221
45222         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
45223         mode.
45224
45225 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45226
45227         Add and change modules to make it easier for coreutils to use
45228         gnulib-tool.
45229         * modules/backupfile (Files): Remove m4/d-ino.m4.
45230         (Depends-on): Add d-ino.
45231         * modules/cycle-check (Depends-on): Add stdint.
45232         (lib_SOURCES): Add cycle-check.h.
45233         * modules/d-ino: New module.
45234         * modules/d-type: New module.
45235         * modules/error (Files): Remove m4/strerror_r.m4.
45236         * modules/filemode (Files): Add m4/st_dm_mode.m4.
45237         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
45238         m4/inttypes_h.m4, m4/uintmax_t.m4.
45239         (Depends-on): Add stdint.
45240         (lib_SOURCES): Add fsusage.h.
45241         * modules/getcwd (Files): Remove d-ino.m4.
45242         (Depends-on): Add d-ino.
45243         * modules/getndelim2 (Depends-on): Add stdint.
45244         * modules/glob (Files): Remove m4/d-type.m4.
45245         (Depends-on): Add d-type.
45246         * modules/host-os: New module.
45247         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
45248         m4/inttypes_h.m4, m4/uintmax_t.m4.
45249         * Depends-on: Add stdint.
45250         (lib_SOURCES): Add human.h.
45251         * modules/inttostr (Files): Remove m4/intmax_t.m4,
45252         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
45253         m4/uintmax_t.m4, m4/ulonglong.m4.
45254         (Depends-on): Add stdint.
45255         (EXTRA_DIST): Add inttostr.h.
45256         * modules/lchmod: New module.
45257         * modules/link-follow: New module.
45258         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
45259         (Depends-on): Add lchmod.
45260         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
45261         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
45262         (Depends-on): Add stdint.
45263         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
45264         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
45265         (Depends-on): Add stdint.
45266         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
45267         * modules/perl: New module.
45268         * modules/regex (Depends-on): Add stdint.
45269         * modules/rmdir-errno: New module.
45270         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45271         m4/intmax_t.m4.
45272         (Depends-on): Add stdint.
45273         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
45274         m4/uintmax_t.m4.
45275         (Depends-on): Add stdint.
45276         * modules/unlink-busy: New module.
45277         * modules/utimecmp (Depends-on): Add stdint.
45278         * modules/uptime: New module.
45279         * modules/winsz-ioctl: New module.
45280         * modules/winsz-termios: New module.
45281         * modules/xnanosleep (Depends-on): Add nanosleep.
45282         * modules/ullong_max: Remove.
45283         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
45284         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
45285         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
45286         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
45287         (Depends-on): Add inttypes.
45288         (lib_SOURCES): Add xstrtol.h.
45289         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
45290         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
45291         * MODULES.html.sh: Move 'assert' into the assert section.
45292         Move 'dummy' into the linking section.
45293         Remove ullong_max.
45294         Add section for compatibility checks for POSIX:2001 functions,
45295         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
45296         winsz-ioctl, and winsz-termios into it.
45297         Add lchmod.
45298         Add top-level Misc section and put host-os, perl, and uptime
45299         into it.
45300
45301 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
45302
45303         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
45304         now assume the stdint module.  Do not include inttypes.h.
45305         * lib/fsusage.h: Likewise.
45306         * lib/getndelim2.c: Likewise.
45307         * lib/human.h: Likewise.
45308         * lib/inttostr.h: Likewise.
45309         * lib/obstack.c: Likewise.
45310         * lib/regex_internal.h: Likewise.
45311         * lib/tempname.c: Likewise.
45312         * lib/utimecmp.c: Likewise.
45313         * lib/xstrtol.h: Likewise.
45314
45315         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
45316
45317         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
45318         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
45319         * lib/xtime.h: Likewise.
45320
45321 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45322
45323         * modules/openat (Files): Add lib/fchmodat.c.
45324         Fixes problem reported by Jay Youngman.
45325
45326 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45327
45328         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
45329         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
45330
45331 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
45332             Bruno Haible  <bruno@clisp.org>
45333
45334         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
45335         and is a script that invokes bison. Tighten the code. Add comments.
45336
45337 2006-08-18  Jim Meyering  <jim@meyering.net>
45338
45339         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
45340         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
45341         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
45342         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
45343
45344 2006-08-18  Bruno Haible  <bruno@clisp.org>
45345
45346         * modules/bison-i18n: New file.
45347         * MODULES.html.sh (Internationalization functions): Add it.
45348
45349 2006-08-18  Bruno Haible  <bruno@clisp.org>
45350
45351         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
45352         sys/statvfs.h. When getmntinfo was found, check its declaration and
45353         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
45354
45355 2006-08-18  Bruno Haible  <bruno@clisp.org>
45356
45357         * m4/bison-i18n.m4: New file, from bison.
45358
45359 2006-08-18  Bruno Haible  <bruno@clisp.org>
45360
45361         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
45362         (ME_DUMMY): Treat "kernfs" as a dummy.
45363         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
45364
45365 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45366
45367         Update from coreutils.
45368
45369         2006-08-15  Jim Meyering  <jim@meyering.net>
45370
45371         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
45372
45373         2006-01-17  Jim Meyering  <jim@meyering.net>
45374
45375         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
45376
45377         2006-01-11  Jim Meyering  <jim@meyering.net>
45378
45379         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
45380         Check for the lchmod function.
45381
45382 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45383
45384         Update from coreutils.
45385
45386         * lib/__fpending.h: Add copyright notice.
45387         * lib/fprintftime.h: Likewise.
45388         * lib/savedir.c: Use (C) in copyright notice.
45389         * lib/savedir.h: Likewise.
45390
45391         2006-08-15  Jim Meyering  <jim@meyering.net>
45392
45393         * lib/at-func.c: New file, with the logic of all emulated at-functions.
45394         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
45395         in support of the EXPECTED_ERRNO macro.
45396         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
45397         definitions.  Instead, define the appropriate symbols and include
45398         "at-func.c".
45399         * lib/mkdirat.c (mkdirat): Likewise.
45400         * lib/fchmodat.c (fchmodat): Likewise.
45401         (ENOSYS): Remove definition.
45402         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
45403         it.  Don't include "unistd--.h" -- it wasn't ever used.
45404
45405         2006-01-17  Jim Meyering  <jim@meyering.net>
45406
45407         Rewrite fts.c not to change the current working directory,
45408         by using openat, fstatat, fdopendir, etc..
45409
45410         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
45411         (HAVE_OPENAT_SUPPORT): Define.
45412         [_LIBC] (fchdir): Don't undef or define; no longer used.
45413         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
45414         Now, this `function' always succeeds, and consumes its file descriptor
45415         parameter -- so callers must not close such FDs.  Update callers.
45416         (diropen_fd, opendirat, cwd_advance_fd): New functions.
45417         (diropen): Add parameter, SP.  Adjust all callers.
45418         Implement using diropen_fd, rather than open.
45419         (fts_open): Initialize new member, fts_cwd_fd.
45420         Remove fts_rft-setting code.
45421         (fts_close): Close fts_cwd_fd, if necessary.
45422         (__opendir2): Define in terms of opendir or opendirat,
45423         depending on whether the FST_NOCHDIR flag is set.
45424         (fts_build): Since fts_safe_changedir consumes its FD, and since
45425         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
45426         and close the dup'd file descriptor upon failure.
45427         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
45428         (fts_safe_changedir): Tweak semantics to reflect that this function
45429         now calls cwd_advance_fd and hence consumes its FD argument.
45430         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
45431         [struct FTS] (fts_rft): Remove now-unused member.
45432         [struct FTS] (fts_cycle.state): Improve comment.
45433
45434         * lib/openat.c (openat_needs_fchdir): New function.
45435         * lib/openat.h (openat_needs_fchdir): Declare it.
45436
45437 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
45438
45439         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
45440         Problem and fix reported by Pádraig Brady in
45441         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
45442
45443 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45444
45445         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
45446
45447 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45448
45449         * lib/memcoll.c (memcoll): Optimize for the common case where the
45450         arguments are bytewise equal.
45451
45452 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
45453
45454         * doc/regexprops-generic.texi: Add a copyright notice.
45455
45456 2006-08-15  Bruno Haible  <bruno@clisp.org>
45457
45458         * modules/tmpdir (License): Change to LGPL.
45459
45460 2006-08-15  Bruno Haible  <bruno@clisp.org>
45461
45462         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
45463         module.
45464
45465 2006-08-14  Simon Josefsson  <jas@extundo.com>
45466
45467         * config/srclist.txt: Add gnupload.
45468
45469 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45470
45471         Change copyright notice from LGPL 2 to GPL 2, since that's the
45472         standard form used in the gnulib repository.
45473         * tests/test-lock.c: Likewise.
45474         * tests/test-stdint.c: Likewise.
45475         * tests/test-tls.c: Likewise.
45476
45477         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
45478         prelude-manager.  User shorter URLs for GNU projects, without '?'.
45479         Add copyright notice.
45480
45481         * check-module: Add copyright notice.  Output a copyright
45482         notice if "--version" is specified.
45483         * modules/COPYING: New file.
45484         * tests/test-getaddrinfo.c: Add copyright notice.
45485         * tests/test-verify.c: Likewise.
45486
45487 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45488
45489         Change copyright notice from LGPL 2 to GPL 2, since that's the
45490         standard form used in the gnulib repository.
45491         * lib/lock.c: LGPL -> GPL.
45492         * lib/lock.h: Likewise.
45493         * lib/strnlen1.c: Likewise.
45494         * lib/strnlen1.h: Likewise.
45495         * lib/tls.c: Likewise.
45496         * lib/tls.h: Likewise.
45497         * lib/tmpdir.c: Likewise.
45498
45499         * lib/TODO: Remove; this belongs only in coreutils.
45500
45501 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45502
45503         Add copyright notices to long-enough files that lack them, since
45504         otherwise the files aren't clearly free.  Use the same notice that
45505         getdate.texi already uses.
45506         * doc/alloca-opt.texi: Add copyright notice.
45507         * doc/alloca.texi: Likewise.
45508         * doc/ctime.texi: Likewise.
45509         * doc/functions.texi: Likewise.
45510         * doc/gcd.texi: Likewise.
45511         * doc/gnulib-tool.texi: Likewise.
45512         * doc/inet_ntoa.texi: Likewise.
45513         * doc/visibility.texi: Likewise.
45514
45515         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
45516         * doc/quote.texi: Add copyright notice.
45517
45518         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
45519         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
45520         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
45521         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
45522         is now obsolete, and give a pointer to the Sun list.
45523         Add copyright notice.
45524
45525 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
45526
45527         * config/srclistvars.sh: Add copyright notice.
45528
45529 2006-08-14  Eric Blake  <ebb9@byu.net>
45530
45531         Import the following change from libc:
45532
45533         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
45534
45535         Upstream bug 2997.
45536         * lib/misc/error.c: Add space between program name and message if file
45537         name is missing.
45538
45539 2006-08-12  Karl Berry  <karl@gnu.org>
45540
45541         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
45542         remove, these originate in gnulib now.
45543
45544 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45545
45546         * doc/Makefile (standards.info standards.html standards.dvi):
45547         Also depend on make-stds.texi.
45548
45549 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
45550
45551         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
45552         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
45553
45554         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
45555         in wchar_t.  Problem reported by Eric Blake.
45556
45557         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
45558         LEN is smaller than SIZE.  Suggested by Bruno Haible.
45559         Also, help the compiler to keep LEN in a register.
45560
45561 2006-08-11  Eric Blake  <ebb9@byu.net>
45562
45563         * users.txt: Sort.  Add tar.
45564
45565 2006-08-11  Bruno Haible  <bruno@clisp.org>
45566
45567         * users.txt: New file.
45568
45569 2006-08-11  Bruno Haible  <bruno@clisp.org>
45570
45571         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
45572         before <wchar.h>. Needed for OSF/1 and BSD/OS.
45573
45574 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45575
45576         * modules/snprintf (Depends-on): Remove minmax.
45577         (Maintainer): Add self and Bruno.
45578
45579 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45580
45581         * lib/.cppi-disable: Add snprintf.h, socket_.h.
45582         * lib/snprintf.c: Include <errno.h> and <limits.h>.
45583         (EOVERFLOW): Define if the system does not.
45584         Do not include "minmax.h"; it wasn't used.
45585         (snprintf): Don't assume size_t promotes to an unsigned type.
45586         Fix bug when generated string was too long for the buffer: the
45587         buffer's contents are supposed to be the initial prefix of the
45588         output.  Don't assume vasnprintf returns EOVERFLOW if the size
45589         exceeds INT_MAX; do the check ourselves.
45590
45591         Import the following changes from libc:
45592
45593         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
45594
45595         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
45596         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
45597         set wc to the byte which couldn't be converted.
45598         (re_string_reconstruct): Don't clear valid_raw_len before calling
45599         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
45600         tip_context using re_string_context_at.
45601
45602         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
45603
45604         * lib/posix/regex.h: g++ still cannot handled [restrict].
45605
45606         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
45607
45608         * lib/posix/regex.h: Remove special handling for VMS.
45609
45610 2006-08-10  Jim Meyering  <jim@meyering.net>
45611
45612         * modules/same-inode: New module.
45613         * modules/dev-ino: New module.
45614         * modules/cycle-check: Depend on these modules, rather than simply
45615         including their .h files.
45616         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
45617         required via m4/cycle-check.m4.
45618         * modules/same: Depend on new same-inode module, rather than
45619         including same-inode.h.
45620         * modules/chdir-safer: New file.
45621
45622         * modules/chown (Depends-on): Add stat-macros.
45623
45624 2006-08-10  Jim Meyering  <jim@meyering.net>
45625
45626         * m4/cycle-check.m4: New file.
45627         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
45628         * m4/dev-ino.m4, m4/same-inode.m4: New files.
45629
45630 2006-08-10  Eric Blake  <ebb9@byu.net>
45631
45632         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
45633         in from original proposal.
45634
45635 2006-08-10  Eric Blake  <ebb9@byu.net>
45636         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45637
45638         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
45639         namespace.
45640
45641 2006-08-10  Bruno Haible  <bruno@clisp.org>
45642
45643         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
45644         as well.
45645
45646 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45647
45648         Sync from coreutils.
45649
45650         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
45651
45652         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
45653         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
45654
45655 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45656
45657         * modules/restrict: Remove; no longer needed now that we assume
45658         Autoconf 2.59 or later.
45659         * MODULES.html.sh: Remove 'restrict'.
45660         * modules/argp (Depends-on): Remove 'restrict'.
45661         * modules/base64 (Depends-on): Likewise.
45662         * modules/gc (Depends-on): Likewise.
45663         * modules/getaddrinfo (Depends-on): Likewise.
45664         * modules/glob (Depends-on): Likewise.
45665         * modules/inet_ntop (Depends-on): Likewise.
45666         * modules/inet_pton (Depends-on): Likewise.
45667         * modules/memxor (Depends-on): Likewise.
45668         * modules/regex (Depends-on): Likewise.
45669         * modules/strtok_r (Depends-on): Likewise.
45670         * modules/time_r (Depends-on): Likewise.
45671
45672 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
45673
45674         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
45675         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
45676         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
45677         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
45678         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
45679         * m4/memxor.m4 (gl_MEMXOR): Likewise.
45680         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
45681         gl_C_RESTRICT replaced by AC_C_RESTRICT.
45682
45683         Merge from coreutils.
45684         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
45685         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
45686         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45687         * m4/time_r.m4 (gl_TIME_R): Likewise.
45688
45689 2006-08-09  Karl Berry  <karl@gnu.org>
45690
45691         * config/srclist.txt: no more gettext-tools, per Bruno.
45692
45693 2006-08-08  Eric Blake  <ebb9@byu.net>
45694
45695         * modules/verror: New module.
45696         * MODULES.html.sh: Document it.
45697
45698 2006-08-08  Eric Blake  <ebb9@byu.net>
45699
45700         * lib/verror.h, lib/verror.c: New files.
45701
45702 2006-08-08  Eric Blake  <ebb9@byu.net>
45703
45704         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
45705         verror_at_line output complies with GNU Coding Standards even when
45706         file is NULL.
45707
45708 2006-08-07  Bruno Haible  <bruno@clisp.org>
45709
45710         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
45711         versions of AIX.
45712         Reported by Ralf Wildenhues.
45713
45714 2006-08-07  Bruno Haible  <bruno@clisp.org>
45715
45716         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
45717         in an AC_DEFUN. Needed so that the autoconf snippets can use
45718         AC_REQUIRE.
45719
45720 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45721
45722         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45723         Initialize pkgdata_DATA.
45724         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
45725         overriding it.
45726
45727 2006-08-06  Eric Blake  <ebb9@byu.net>
45728
45729         * lib/error.h: Fold in some upstream changes from glibc.
45730         * lib/error.c: Likewise.
45731
45732 2006-08-04  Bruno Haible  <bruno@clisp.org>
45733
45734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45735         Make the mostlyclean-local rule depend on mostlyclean-generic.
45736         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
45737
45738 2006-07-31  Bruno Haible  <bruno@clisp.org>
45739
45740         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
45741         <stdlib.h>, <string.h>.
45742
45743 2006-07-30  Bruno Haible  <bruno@clisp.org>
45744
45745         * modules/readlink (License): Change to LGPL.
45746
45747 2006-07-30  Bruno Haible  <bruno@clisp.org>
45748
45749         * modules/javaversion (Makefile.am): Distribute javaversion.java and
45750         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
45751         set PKGDATADIR to point to it.
45752
45753 2006-07-30  Bruno Haible  <bruno@clisp.org>
45754
45755         * modules/csharpexec (configure.ac): Comment out macro invocation.
45756         * modules/javaexec (configure.ac): Likewise.
45757         * modules/javacomp-script (configure.ac): Likewise.
45758
45759         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
45760
45761 2006-07-30  Bruno Haible  <bruno@clisp.org>
45762
45763         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
45764         linked-list.
45765
45766 2006-07-30  Bruno Haible  <bruno@clisp.org>
45767
45768         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
45769
45770 2006-07-30  Bruno Haible  <bruno@clisp.org>
45771
45772         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
45773         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
45774         get removed.
45775
45776 2006-07-29  Bruno Haible  <bruno@clisp.org>
45777
45778         Make it possible for gnulib-tool to work with locally modified or
45779         augmented gnulib repositories.
45780         * gnulib-tool (func_usage): Document --local-dir option.
45781         (local_gnulib_dir): New variable.
45782         Handle --local-dir option.
45783         (func_lookup_file): New function.
45784         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
45785         (func_get_description, func_get_filelist, func_get_description,
45786         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
45787         func_get_automake_snippet, func_get_include_directive,
45788         func_get_license, func_get_maintainer): Use func_lookup_file.
45789         (func_import, func_create_testdir): Use func_lookup_file.
45790
45791 2006-07-29  Bruno Haible  <bruno@clisp.org>
45792
45793         * modules/setenv (Depends-on): Add unistd.
45794
45795 2006-07-29  Bruno Haible  <bruno@clisp.org>
45796
45797         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
45798
45799 2006-07-29  Bruno Haible  <bruno@clisp.org>
45800
45801         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
45802
45803 2006-07-29  Bruno Haible  <bruno@clisp.org>
45804
45805         * gnulib-tool (import, update): If there is no Makefile.am, look at
45806         aclocal.m4, instead of bailing out.
45807
45808 2006-07-29  Bruno Haible  <bruno@clisp.org>
45809
45810         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
45811         Categorize the options by when they are useful.
45812
45813 2006-07-29  Bruno Haible  <bruno@clisp.org>
45814
45815         * gnulib-tool (func_usage): Document option --no-libtool.
45816         Handle option --no-libtool.
45817         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
45818         for changed semantics of $libtool variable.
45819         (func_import): Likewise. If libtool is not used, show this through
45820         an option --no-libtool.
45821         (func_create_testdir): Update.
45822
45823 2006-07-29  Bruno Haible  <bruno@clisp.org>
45824
45825         * gnulib-tool (func_import): Extend error message about missing
45826         --doc-base.
45827
45828 2006-07-29  Bruno Haible  <bruno@clisp.org>
45829
45830         * gnulib-tool (func_import): Don't create the $docbase directory if
45831         there is no file to store there.
45832
45833 2006-07-29  Bruno Haible  <bruno@clisp.org>
45834
45835         * gnulib-tool (autoconf_minversion): If a --dir option is given and
45836         relevant, look for configure.ac there, not in the current directory.
45837         Also use a simple search for AC_PREREQ, not "autoconf --trace".
45838
45839 2006-07-29  Bruno Haible  <bruno@clisp.org>
45840
45841         * gnulib-tool (SORT): New variable.
45842         (func_usage): Undocument --assume-autoconf option.
45843         Remove --assume-autoconf option handling.
45844         (autoconf_minversion): Determine from the contents of configure.ac.
45845         (func_import): Remove autoconf_minversion handling.
45846         Suggested by Eric Blake.
45847
45848 2006-07-29  Bruno Haible  <bruno@clisp.org>
45849
45850         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
45851
45852 2006-07-29  Bruno Haible  <bruno@clisp.org>
45853
45854         * config/srclist.txt (*setenv.[ch]): Remove rules.
45855
45856 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45857
45858         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
45859
45860 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45861
45862         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
45863         arpa/inet.h.
45864
45865 2006-07-28  Simon Josefsson  <jas@extundo.com>
45866
45867         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
45868         * modules/inet_pton (Depends-on): Likewise.
45869
45870 2006-07-28  Simon Josefsson  <jas@extundo.com>
45871
45872         * m4/netinet_in_h.m4: New file.
45873
45874 2006-07-28  Simon Josefsson  <jas@extundo.com>
45875
45876         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
45877         #include's.
45878
45879 2006-07-28  Simon Josefsson  <jas@extundo.com>
45880
45881         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
45882         #include's.
45883
45884 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
45885
45886         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
45887         setgid on directories only if they set these bits.
45888         * lib/modechange.h: Remove obsolete comment about masks.
45889
45890 2006-07-28  Eric Blake  <ebb9@byu.net>
45891
45892         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
45893         macro expansion.
45894
45895 2006-07-28  Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
45898
45899 2006-07-28  Bruno Haible  <bruno@clisp.org>
45900
45901         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
45902
45903 2006-07-28  Bruno Haible  <bruno@clisp.org>
45904
45905         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
45906         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
45907         Define fallbacks.
45908         Avoids link error on FreeBSD 4.x.
45909         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45910
45911         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
45912         encoding.
45913         * lib/mbswidth.c (iswcntrl): Likewise.
45914
45915 2006-07-27  Bruno Haible  <bruno@clisp.org>
45916
45917         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
45918         test.
45919
45920 2006-07-27  Bruno Haible  <bruno@clisp.org>
45921
45922         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
45923         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
45924         defined.
45925
45926 2006-07-26  Eric Blake  <ebb9@byu.net>
45927
45928         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
45929
45930 2006-07-26  Eric Blake  <ebb9@byu.net>
45931
45932         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
45933         like mingw that lack mkstemp.
45934         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
45935         avoid compilation warning on mingw.
45936
45937 2006-07-26  Bruno Haible  <bruno@clisp.org>
45938
45939         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
45940         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
45941         INT_FAST*_MIN, INTPTR_MIN.
45942
45943 2006-07-25  Bruno Haible  <bruno@clisp.org>
45944
45945         * modules/version-etc (Depends-on): Add stdarg.
45946
45947 2006-07-25  Bruno Haible  <bruno@clisp.org>
45948
45949         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
45950         complex commands.
45951
45952 2006-07-25  Bruno Haible  <bruno@clisp.org>
45953
45954         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
45955         defined in <stdarg.h> or config.h.
45956
45957 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45958
45959         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
45960         (gl_STDIO_SAFER): Remove.
45961
45962 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
45963
45964         * MODULES.html.sh (File stream based Input/Output):
45965         Add fopen-safer, tmpfile-safer; remove stdio-safer.
45966         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
45967         * modules/fopen-safer, modules/tmpfile-safer: New files.
45968         * modules/stdio-safer: Remove.
45969
45970 2006-07-24  Bruno Haible  <bruno@clisp.org>
45971
45972         * modules/tmpdir: New file.
45973         * MODULES.html.sh (File system functions): Add it.
45974
45975 2006-07-24  Bruno Haible  <bruno@clisp.org>
45976
45977         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
45978         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
45979
45980 2006-07-24  Bruno Haible  <bruno@clisp.org>
45981
45982         * modules/clean-temp: New file.
45983
45984 2006-07-24  Bruno Haible  <bruno@clisp.org>
45985
45986         * m4/tmpdir.m4: New file, from GNU gettext.
45987
45988 2006-07-24  Bruno Haible  <bruno@clisp.org>
45989
45990         * lib/tmpdir.h: New file, from GNU gettext.
45991         * lib/tmpdir.c: New file, from GNU gettext.
45992
45993 2006-07-24  Bruno Haible  <bruno@clisp.org>
45994
45995         * lib/clean-temp.h: New file, from GNU gettext.
45996         * lib/clean-temp.c: New file, from GNU gettext.
45997
45998 2006-07-23  Eric Blake  <ebb9@byu.net>
45999
46000         * modules/stdio-safer (Files): Add tmpfile-safer.c.
46001         (Depends-on): Add binary-io.
46002
46003 2006-07-23  Eric Blake  <ebb9@byu.net>
46004
46005         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
46006
46007 2006-07-23  Eric Blake  <ebb9@byu.net>
46008
46009         * lib/tmpfile-safer.c: New file.
46010         * lib/stdio-safer.h (fopen_safer): Add prototype.
46011         * lib/stdio--.h (tmpfile): Make safer.
46012
46013 2006-07-23  Bruno Haible  <bruno@clisp.org>
46014
46015         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
46016         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
46017         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
46018         gl_linked_remove_at): Use it.
46019
46020 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46021         and Simon Josefsson <jas@extundo.com>
46022
46023         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
46024
46025         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
46026
46027 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46028
46029         * modules/close-stream: New file.
46030         * modules/closeout (Description): Make it clear that it exits
46031         with a diagnostic on error.
46032         (Depends-on): Add close-stream.  Remove fpending, stdbool.
46033         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
46034
46035 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46036
46037         * m4/close-stream.m4: New file.
46038
46039 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
46040
46041         * lib/close-stream.c, lib/close-stream.h: New files.
46042
46043 2006-07-22  Bruno Haible  <bruno@clisp.org>
46044
46045         Merge from GNU gettext 0.15.
46046
46047         2006-05-01  Bruno Haible  <bruno@clisp.org>
46048
46049                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
46050
46051         2006-07-22  Bruno Haible  <bruno@clisp.org>
46052
46053                 * modules/javaversion: New file.
46054                 * MODULES.html.sh (Java): Add javaversion.
46055
46056         2006-03-12  Bruno Haible  <bruno@clisp.org>
46057
46058                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
46059
46060         2005-12-04  Bruno Haible  <bruno@clisp.org>
46061
46062                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
46063                 (untested).
46064
46065         2006-06-21  Bruno Haible  <bruno@clisp.org>
46066
46067                 Avoid warnings from recent versions of mcs.
46068                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
46069                 -o, -L, -r any more. Use options documented since mcs-1.0
46070                 instead. Similarly for -g.
46071
46072         2005-12-04  Bruno Haible  <bruno@clisp.org>
46073
46074                 * build-aux/csharpcomp.sh.in: Suffix for resources is
46075                 .resources, not .resource.
46076
46077         2005-07-09  Bruno Haible  <bruno@clisp.org>
46078
46079                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
46080                 add a .dll suffix.
46081                 Reported by Mark Junker <mjscod@gmx.de>.
46082
46083         2006-07-22  Bruno Haible  <bruno@clisp.org>
46084
46085                 * modules/gettext: Upgrade to gettext-0.15.
46086                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
46087                 m4/visibility.m4.
46088                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
46089
46090 2006-07-22  Bruno Haible  <bruno@clisp.org>
46091
46092         Merge from GNU gettext 0.15.
46093
46094         2006-03-25  Bruno Haible  <bruno@clisp.org>
46095
46096                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
46097
46098         2006-07-21  Bruno Haible  <bruno@clisp.org>
46099
46100                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
46101                 "1.1".
46102
46103         2006-05-09  Bruno Haible  <bruno@clisp.org>
46104
46105                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
46106                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
46107                 for the conftestver execution.
46108
46109         2006-05-01  Bruno Haible  <bruno@clisp.org>
46110
46111                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
46112                 optional target-version argument. Verify that the compiler
46113                 groks source of the specified source-version, or add -source
46114                 option as necessary. Verify that the compiler produces
46115                 bytecode in the specified target-version, or add -target and
46116                 -source options as necessary. Make the result of the test
46117                 available as variable CONF_JAVAC. Also log error output in
46118                 config.log.
46119
46120         2006-03-11  Bruno Haible  <bruno@clisp.org>
46121
46122                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
46123
46124         2006-05-09  Bruno Haible  <bruno@clisp.org>
46125
46126                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
46127                 CLASSPATH_SEPARATOR to a semicolon.
46128
46129         2006-03-12  Bruno Haible  <bruno@clisp.org>
46130
46131                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
46132                 available as variable CONF_JAVA, for subsequent autoconf
46133                 tests. Also log error output in config.log.
46134
46135         2006-07-19  Bruno Haible  <bruno@clisp.org>
46136
46137                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
46138                 that getline works on glibc2 systems. Needed to avoid trouble
46139                 in relocatable.c.
46140                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
46141
46142         2005-12-04  Bruno Haible  <bruno@clisp.org>
46143
46144                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
46145                 launcher (untested).
46146
46147         2005-12-04  Bruno Haible  <bruno@clisp.org>
46148
46149                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
46150
46151         2006-07-22  Bruno Haible  <bruno@clisp.org>
46152
46153                 * gettext.m4: Update from GNU gettext-0.15.
46154                 * nls.m4: Likewise.
46155                 * po.m4: Likewise.
46156                 * inttypes-pri.m4: Likewise.
46157                 * inttypes-h.m4: Renamed from inttypes.m4.
46158                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
46159
46160 2006-07-22  Bruno Haible  <bruno@clisp.org>
46161
46162         Merge from GNU gettext 0.15.
46163
46164         2005-07-05  Bruno Haible  <bruno@clisp.org>
46165
46166                 * printf-args.c (printf_fetchargs): Work around broken
46167                 definition of wint_t on mingw.
46168
46169         2005-02-12  Bruno Haible  <bruno@clisp.org>
46170
46171                 * xallocsa.h: Add extern "C" for C++.
46172
46173         2006-05-17  Bruno Haible  <bruno@clisp.org>
46174
46175                 Cygwin portability.
46176                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
46177
46178         2006-04-30  Bruno Haible  <bruno@clisp.org>
46179
46180                 * progreloc.c: Include <mach-o/dyld.h> if available.
46181                 (find_executable): Use _NSGetExecutablePath when possible.
46182
46183         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46184
46185                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
46186                 function.
46187
46188         2005-12-29  Bruno Haible  <bruno@clisp.org>
46189
46190                 * progreloc.c (set_program_name_and_installdir): Fix
46191                 compilation error.
46192
46193         2005-12-04  Bruno Haible  <bruno@clisp.org>
46194
46195                 Cygwin portability.
46196                 * progreloc.c: Include <windows.h> also on Cygwin.
46197                 (find_executable): Add support for Cygwin.
46198                 (set_program_name_and_installdir): Handle also platforms with
46199                 nonempty EXEEXT.
46200
46201         2006-07-11  Bruno Haible  <bruno@clisp.org>
46202
46203                 * javacomp.c: Fix a comment.
46204                 Reported by Jim Meyering.
46205
46206         2006-04-30  Bruno Haible  <bruno@clisp.org>
46207
46208                 * javacomp.h (compile_java_class): Add source_version,
46209                 target_version arguments.
46210                 * javacomp.c: Rewritten to choose only a compiler that
46211                 respects the specified source_version and target_version.
46212
46213         2006-06-27  Bruno Haible  <bruno@clisp.org>
46214
46215                 Assume correct S_ISDIR macro.
46216                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
46217
46218         2006-07-22  Bruno Haible  <bruno@clisp.org>
46219
46220                 * javaversion.h: New file, from GNU gettext.
46221                 * javaversion.c: New file, from GNU gettext.
46222                 * javaversion.java: New file, from GNU gettext.
46223                 * javaversion.class: New file, from GNU gettext.
46224
46225         2006-05-17  Bruno Haible  <bruno@clisp.org>
46226
46227                 Cygwin portability.
46228                 * javaexec.c (execute_java_class): Test for jview program
46229                 also on Cygwin.
46230
46231         2006-04-09  Bruno Haible  <bruno@clisp.org>
46232
46233                 * fatal-signal.c: Don't include string.h.
46234                 (at_fatal_signal): Use a copying loop instead of memcpy.
46235
46236         2005-12-04  Bruno Haible  <bruno@clisp.org>
46237
46238                 * csharpexec.c: Add support for 'clix' launcher (untested).
46239                 (execute_csharp_using_sscli): New function.
46240                 (execute_csharp_program): Call it.
46241
46242         2006-06-21  Bruno Haible  <bruno@clisp.org>
46243
46244                 Avoid warnings from recent versions of mcs.
46245                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
46246                 -o, -L, -r any more. Use options documented since mcs-1.0
46247                 instead. Similarly for -g.
46248
46249         2005-07-09  Bruno Haible  <bruno@clisp.org>
46250
46251                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
46252                 add a .dll suffix.
46253                 Reported by Mark Junker <mjscod@gmx.de>.
46254
46255         2006-06-17  Bruno Haible  <bruno@clisp.org>
46256
46257                 * config.charset: Update for NetBSD 3.0.
46258
46259         2006-05-17  Bruno Haible  <bruno@clisp.org>
46260
46261                 Cygwin portability.
46262                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
46263
46264         2006-05-16  Bruno Haible  <bruno@clisp.org>
46265
46266                 * localcharset.c [CYGWIN]: Include <windows.h>.
46267                 (get_charset_aliases): For Cygwin, return the same CPxxx
46268                 aliases list as under WIN32.
46269                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
46270                 the environment variables. Fall back to GetACP().
46271
46272         2006-04-05  Bruno Haible  <bruno@clisp.org>
46273
46274                 * config.charset: Update Juan Manuel Guerrero's address.
46275
46276         2005-02-12  Bruno Haible  <bruno@clisp.org>
46277
46278                 * allocsa.h: Add extern "C" for C++.
46279
46280         2005-02-10  Bruno Haible  <bruno@clisp.org>
46281
46282                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
46283                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
46284
46285         2006-07-22  Bruno Haible  <bruno@clisp.org>
46286
46287                 * gettext.h: Update to GNU gettext-0.15.
46288
46289 2006-07-22  Bruno Haible  <bruno@clisp.org>
46290
46291         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
46292         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
46293         lib-prefix.m4, longdouble.m4, ssize_t.m4.
46294
46295 2006-07-21  Eric Blake  <ebb9@byu.net>
46296
46297         * modules/stdlib-safer: New file.
46298         * MODULES.html.sh (File stream based Input/Output): Add
46299         stdlib-safer.
46300
46301 2006-07-21  Eric Blake  <ebb9@byu.net>
46302
46303         * lib/stdlib-safer.h: New file from coreutils, required by
46304         stdlib--.h.
46305
46306 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
46307
46308         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
46309
46310 2006-07-20  Bruno Haible  <bruno@clisp.org>
46311
46312         * gnulib-tool: Recognize new option --assume-autoconf.
46313         (autoconf_minversion): New variable.
46314         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
46315
46316 2006-07-20  Bruno Haible  <bruno@clisp.org>
46317
46318         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
46319
46320 2006-07-19  Derek R. Price  <derek@ximbiot.com>
46321
46322         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
46323         Reindent and repaginate.
46324
46325 2006-07-19  Derek Price  <derek@ximbiot.com>
46326
46327         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
46328         Correct grammar.
46329
46330 2006-07-17  Bruno Haible  <bruno@clisp.org>
46331
46332         * modules/list: New file.
46333         * modules/array-list: New file.
46334         * modules/carray-list, modules/carray-list-tests: New files.
46335         * modules/linked-list, modules/linked-list-tests: New files.
46336         * modules/avltree-list, modules/avltree-list-tests: New files.
46337         * modules/rbtree-list, modules/rbtree-list-tests: New files.
46338         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
46339         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
46340         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
46341         * modules/oset: New file.
46342         * modules/array-oset: New file.
46343         * modules/avltree-oset, modules/avltree-oset-tests: New files.
46344         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
46345         * tests/test-carray_list.c: New file.
46346         * tests/test-linked_list.c: New file.
46347         * tests/test-avltree_list.c: New file.
46348         * tests/test-rbtree_list.c: New file.
46349         * tests/test-linkedhash_list.c: New file.
46350         * tests/test-avltreehash_list.c: New file.
46351         * tests/test-rbtreehash_list.c: New file.
46352         * tests/test-avltree_oset.c: New file.
46353         * tests/test-rbtree_oset.c: New file.
46354         * MODULES.html.sh (Container data structures): New section.
46355
46356 2006-07-17  Bruno Haible  <bruno@clisp.org>
46357
46358         * m4/gl_list.m4: New file.
46359
46360 2006-07-17  Bruno Haible  <bruno@clisp.org>
46361
46362         * lib/gl_list.h: New file.
46363         * lib/gl_list.c: New file.
46364         * lib/gl_array_list.h: New file.
46365         * lib/gl_array_list.c: New file.
46366         * lib/gl_carray_list.h: New file.
46367         * lib/gl_carray_list.c: New file.
46368         * lib/gl_linked_list.h: New file.
46369         * lib/gl_linked_list.c: New file.
46370         * lib/gl_anylinked_list1.h: New file.
46371         * lib/gl_anylinked_list2.h: New file.
46372         * lib/gl_avltree_list.h: New file.
46373         * lib/gl_avltree_list.c: New file.
46374         * lib/gl_anyavltree_list1.h: New file.
46375         * lib/gl_anyavltree_list2.h: New file.
46376         * lib/gl_rbtree_list.h: New file.
46377         * lib/gl_rbtree_list.c: New file.
46378         * lib/gl_anyrbtree_list1.h: New file.
46379         * lib/gl_anyrbtree_list2.h: New file.
46380         * lib/gl_anytree_list1.h: New file.
46381         * lib/gl_anytree_list2.h: New file.
46382         * lib/gl_linkedhash_list.h: New file.
46383         * lib/gl_linkedhash_list.c: New file.
46384         * lib/gl_anyhash_list1.h: New file.
46385         * lib/gl_anyhash_list2.h: New file.
46386         * lib/gl_avltreehash_list.h: New file.
46387         * lib/gl_avltreehash_list.c: New file.
46388         * lib/gl_rbtreehash_list.h: New file.
46389         * lib/gl_rbtreehash_list.c: New file.
46390         * lib/gl_anytreehash_list1.h: New file.
46391         * lib/gl_anytreehash_list2.h: New file.
46392
46393         * lib/gl_oset.h: New file.
46394         * lib/gl_oset.c: New file.
46395         * lib/gl_array_oset.h: New file.
46396         * lib/gl_array_oset.c: New file.
46397         * lib/gl_avltree_oset.h: New file.
46398         * lib/gl_avltree_oset.c: New file.
46399         * lib/gl_rbtree_oset.h: New file.
46400         * lib/gl_rbtree_oset.c: New file.
46401         * lib/gl_anytree_oset.h: New file.
46402
46403 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46404
46405         * m4/mkancesdirs.m4: New file.
46406         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
46407         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
46408         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
46409         it.
46410
46411 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46412
46413         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
46414         * lib/mkancesdirs.h: New files.
46415         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
46416         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
46417         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
46418         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
46419         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
46420         callers changed.  Revamp internals significantly, by not
46421         attempting to create directories that are temporarily more
46422         permissive than the final results.  Do not attempt to use
46423         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
46424         This removes some race conditions, fixes some bugs, and simplifies
46425         things.  Use new dirchownmod function to do owner and mode changes.
46426         * lib/mkdir-p.h: Likewise.
46427         * lib/modechange.c (octal_to_mode): New function.
46428         (struct mode_change): New member mentioned.
46429         (make_node_op_equals): New arg mentioned.  All callers changed.
46430         (mode_compile): Keep track of which mode bits the user has explicitly
46431         mentioned.
46432         (mode_adjust): New arg DIR, so that we implement the X op correctly.
46433         New arg PMODE_BITS, to keep track of which mode bits the user
46434         mentioned; it treats S_ISUID and S_ISGID speciall.
46435         All callers changed.
46436         * lib/modechange.h: Likewise.
46437
46438 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
46439
46440         * MODULES.html.sh: Add mkancestors.
46441         * modules/mkancesdirs: New module.
46442         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
46443         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
46444         The chdir-safer and afs files are now orphans; I'll remove them
46445         unless someone speaks up.
46446         Add lib/dirchownmod.c, lib/dirchownmod.h.
46447         (Depends-on): Remove alloca, chown, save-cwd, dirname.
46448         Add lchown, mkancesdirs.
46449         (Maintainer): Add self.
46450
46451 2006-07-15  Karl Berry  <karl@gnu.org>
46452
46453         * gnulib-tool: help message wording/arrangement.
46454
46455 2006-07-14  Simon Josefsson  <jas@extundo.com>
46456
46457         * doc/gnulib.texi (Libtool and Windows): New section.
46458
46459 2006-07-12  Simon Josefsson  <jas@extundo.com>
46460
46461         * modules/gendocs (License): Fix license, approved by Karl.
46462
46463 2006-07-12  Eric Blake  <ebb9@byu.net>
46464
46465         * MODULES.html.sh: Add gendocs.
46466
46467 2006-07-11  Eric Blake  <ebb9@byu.net>
46468
46469         * modules/fdl: New module, to install doc/fdl.texi.
46470         * MODULES.html.sh: Add new section for documentation modules.
46471         * gnulib-tool: Avoid space-tab.
46472         (--doc-base): New option, to manage files from doc.
46473
46474 2006-07-11  Eric Blake  <ebb9@byu.net>
46475
46476         * m4/absolute-header.m4: Fix comments to match recent change.
46477
46478 2006-07-11  Eric Blake  <ebb9@byu.net>
46479
46480         * gnulib-tool: List --doc-base before --tests-base.
46481
46482 2006-07-11  Derek R. Price  <derek@ximbiot.com>
46483
46484         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
46485
46486 2006-07-11  Bruno Haible  <bruno@clisp.org>
46487
46488         * README: Mention where to put documentation.
46489
46490 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46491
46492         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
46493
46494 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46495
46496         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
46497         to stdint.m4.
46498
46499 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
46500
46501         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
46502         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
46503         "no/such/file/stdint.h" when there is no such file, so that
46504         the resulting C code can be parsed by dodgy compilers.
46505         Problems reported by Bob Proulx.
46506
46507 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46508
46509         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
46510         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46511         macros into the GNU _D_EXACT_NAMLEN.
46512         * lib/savedir.c:  Likewise.
46513         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
46514
46515 2006-07-10  Derek R. Price  <derek@ximbiot.com>
46516         and Paul Eggert  <eggert@cs.ucla.edu>
46517
46518         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
46519         * m4/savedir.m4:
46520         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
46521         macros into the GNU _D_EXACT_NAMLEN.
46522
46523 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46524
46525         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
46526         around the absolute name, to work around a problem with the HP-UX
46527         11.23 native C compiler, reported by Bob Proulx.
46528
46529 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46530
46531         * doc/maintain.texi, make-stds.texi: Sync from
46532         <http://savannah.gnu.org/projects/gnustandards>.
46533
46534 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46535
46536         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
46537
46538 2006-07-09  Jim Meyering  <jim@meyering.net>
46539
46540         * m4/glob.m4: Remove a doubled word in a comment.
46541
46542 2006-07-09  Jim Meyering  <jim@meyering.net>
46543
46544         * lib/argp-pv.c: Remove a doubled word in a comment.
46545         * lib/check-version.c (check_version): Likewise.
46546         * lib/javacomp.c (compile_java_class): Likewise.
46547
46548 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46549
46550         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
46551         for the benefit of people using Autoconf 2.60.  If you want to
46552         support older Autoconf versions you can copy m4/onceonly_2_57.m4
46553         (or m4/onceonly.m4, if pre-2.57) manually.
46554
46555 2006-07-08  Jim Meyering  <jim@meyering.net>
46556
46557         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
46558         comment.
46559         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
46560         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
46561         comment.
46562
46563 2006-07-08  Jim Meyering  <jim@meyering.net>
46564
46565         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
46566
46567 2006-07-07  Simon Josefsson  <jas@extundo.com>
46568
46569         * tests/test-crc.c: Change expected crc value, the test vector
46570         were probably computed using the old broken crc.c?
46571
46572 2006-07-06  Simon Josefsson  <jas@extundo.com>
46573
46574         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
46575         now the canonical place for the M4 file).
46576
46577         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
46578         from the sys_socket dependency now.
46579
46580         * modules/inet_pton (Files): Ditto.
46581
46582         * modules/inet_ntop (Files): Ditto.
46583
46584 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46585
46586         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
46587         not gl_PREREQ_GETUSERSHELL.
46588
46589 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46590
46591         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
46592         with only one argument, for Autoconf 2.60.
46593         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
46594         expand to nothing, so add a shell command to avoid syntax error.
46595         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
46596
46597 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46598
46599         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
46600
46601 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46602
46603         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
46604         no longer needed.  Check for isblank decl.
46605         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
46606         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
46607         of existence.
46608
46609 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46610
46611         * lib/getloadavg.c: Use __VMS, not VMS.
46612         * lib/getopt.c: Likewise.
46613         * lib/getpagesize.h: Likewise.
46614         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
46615         and probably does not work.
46616
46617 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
46618
46619         * lib/.cppi-disable: Add wcwidth.
46620         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
46621         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
46622         (ISGRAPH): Remove.  All uses changed to isgraph.
46623         (FOLD) [!defined _LIBC]: Remove special case.
46624         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
46625         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
46626         HAVE_ISBLANK.
46627         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
46628         case.
46629
46630 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
46631
46632         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
46633         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
46634         brackets.  Other minor changes to suppress some compiler
46635         warnings.
46636
46637 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46638         and Paul Eggert  <eggert@cs.ucla.edu>
46639
46640         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
46641         of invoking obsolescent AC_HEADER_DIRENT macro.
46642         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
46643         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
46644         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
46645         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
46646         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
46647         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46648         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
46649         * m4/readdir.m4: Remove; no longer needed.
46650
46651 2006-07-06  Derek R. Price  <derek@ximbiot.com>
46652         and Paul Eggert  <eggert@cs.ucla.edu>
46653
46654         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
46655         Don't worry about this obsolete case any more.
46656         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
46657         directories.
46658         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
46659         worry about this obsolete case any more.
46660         * lib/fts.c: Likewise.
46661         * lib/getcwd.c: Likewise.
46662         * lib/glob.h: Likewise.
46663         * lib/savedir.c: Likewise.
46664
46665 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46666
46667         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
46668         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
46669         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
46670         needed.
46671         All uses removed.
46672         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46673         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46674         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
46675         needed.
46676         * m4/getdate.m4 (gl_GETDATE): Likewise.
46677         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46678         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46679         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46680         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46681         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
46682         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46683         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
46684         needed.
46685
46686 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
46687
46688         * lib/memcasecmp.c: Include <limits.h>.
46689         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
46690         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
46691         Don't assume isdigit succeeds only on '0' through '9'.
46692
46693 2006-07-05  Eric Blake  <ebb9@byu.net>
46694
46695         * modules/getaddrinfo (Depends-on): Add snprintf.
46696
46697 2006-07-05  Eric Blake  <ebb9@byu.net>
46698
46699         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
46700         to avoid 'header present but could not be compiled' on cygwin.
46701
46702 2006-07-05  Eric Blake  <ebb9@byu.net>
46703
46704         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
46705         missing from netdb.h.
46706         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
46707
46708 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46709
46710         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
46711         no longer needed.
46712         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
46713         * m4/getdate.m4 (gl_GETDATE): Likewise.
46714         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
46715         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
46716         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
46717         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
46718         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
46719
46720 2006-07-05  Derek R. Price  <derek@ximbiot.com>
46721
46722         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
46723         All uses of is_space replaced by isspace.
46724         * lib/exit.h: Don't talk about STDC_HEADERS.
46725         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
46726         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
46727         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
46728         replaced by isprint etc.
46729         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
46730         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46731         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
46732         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
46733         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
46734         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
46735
46736 2006-07-05  Bruno Haible  <bruno@clisp.org>
46737
46738         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
46739         the function exists, before testing against AIX.
46740         Reported by Martin Lambers <marlam@marlam.de>.
46741
46742 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46743
46744         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
46745         From Mark D. Baushke.
46746
46747 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
46748
46749         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
46750         to the absolute name, not just one, to bypass Sun C 5.8's
46751         "warning: #include of /usr/include/... may be non-portable".
46752
46753 2006-07-04  Eric Blake  <ebb9@byu.net>
46754
46755         * modules/dirname-tests: New test module.
46756         * tests/test-dirname.c: New file, replacing dirname.c
46757         TEST_DIRNAME section that was recently deleted.
46758
46759 2006-07-04  Bruno Haible  <bruno@clisp.org>
46760
46761         Assume ANSI C header files and <ctype.h> functions.
46762         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
46763         (mbsnwidth): Use isprint, iscntrl instead.
46764
46765 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46766
46767         Merge from coreutils.
46768         * MODULES.html.sh: Add xstrtold.
46769         * modules/xstrtold: New file.
46770         * modules/cycle-check (Files): Add lib/same-inode.h.
46771         * modules/dirname (Files): Add m4/double-slash-root.m4.
46772         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
46773         * modules/mkdir-p (Files): Add lib/same-inode.h.
46774         * modules/same (Files): Add lib/same-inode.h.
46775
46776 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46777
46778         * m4/absolute-header.m4: Renamed from full-header-path.m4.
46779         This is to keep the terminology clean; POSIX talks about
46780         "absolute pathnames", not "full pathnames", but the GNU
46781         Coding Standards say to use "path" for something else;
46782         so use "absolute" to keep both sides happy.
46783         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
46784         Set gl_absolute_header, not gl_full_header_path.
46785         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
46786         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
46787         All uses changed.
46788
46789         Merge from coreutils.
46790
46791         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46792
46793         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
46794         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
46795         want to require the building of c-strtod.o.
46796         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
46797         needs -lm directly.
46798         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
46799
46800         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
46801
46802         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
46803         --as-needed option if available.  Problem reported by Albert Chin in
46804         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
46805         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
46806         cc merely issues a bunch of annoying warnings for --as-needed
46807         (this problem was reported by Bob Proulx).  Also, try linking with
46808         -lm to detect a bug in binutils 2.16 (this problem was reported
46809         by Ralf Wildenhues).
46810
46811         2006-06-18  Jim Meyering  <jim@meyering.net>
46812
46813         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
46814         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
46815         macro.
46816         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
46817         also check for glibc-2.4's abort-inducing bug.
46818
46819         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
46820         Low-probability clean-up should be to use rmdir to get rid of
46821         the just-created directory, not unlink.
46822
46823         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
46824         configure fail, and request a bug report to inform us about it.
46825         Add a comment that, barring reports to the contrary, in 2007 we'll
46826         assume ftruncate is universally available.
46827
46828         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46829
46830         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
46831
46832         2006-03-12  Jim Meyering  <jim@meyering.net>
46833
46834         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
46835         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
46836         * m4/same.m4 (gl_SAME): Likewise.
46837         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
46838
46839         2006-03-11  Eric Blake  <ebb9@byu.net>
46840
46841         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
46842         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
46843         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
46844         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
46845
46846 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
46847
46848         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
46849         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
46850         reported by Mark D. Baushke, one in
46851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
46852
46853         Merge from coreutils.
46854
46855         * lib/.cppi-disable: Add stdint_.h.
46856         * lib/.cvsignore: Add stdint.h.
46857
46858         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
46859
46860         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
46861         both double and long double versions.
46862         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
46863         * lib/xstrtold.c: New file.
46864         * lib/xstrtod.h (xstrtold): New decl.
46865
46866         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
46867
46868         * lib/filemode.c (setst): Remove.
46869         (strmode): Rewrite to avoid setst.  This makes the code shorter,
46870         (arguably) clearer, and the generated code is a bit smaller on my
46871         Debian GNU/Linux stable x86 host.
46872
46873         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
46874
46875         * lib/filemode.c: Include "filemode.h" first, to test the interface.
46876         Assume that filemode.h includes sys/types.h and sys/stat.h.
46877         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
46878         (ftypelet): Reorder to put common cases first, for efficiency.
46879         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
46880         to do 'M'.
46881         (strmode): Renamed from mode_string, and now stores 12 bytes instead
46882         of 10, for compatibility with FreeBSD.  All callers changed.
46883         (filemodestring): Now stores 12 bytes instead of 10, and sets file
46884         types that can't be deduced solely from st_mode.  First arg is now a
46885         const pointer.
46886         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
46887         (strmode): Renamed from mode_string.
46888         (filemodestring): New decl.
46889         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
46890         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
46891         needed.
46892         (S_ISPORT, S_ISWHT): New macros, if not already defined.
46893
46894         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
46895
46896         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
46897         fsusage.h now does that.  Include fsusage.h first, to test interface.
46898         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
46899         at most one method (the old code could have generated decls that
46900         didn't conform to C89, not that this was ever exercised).
46901         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
46902
46903         2006-03-19  Jim Meyering  <jim@meyering.net>
46904
46905         Work even in a chroot where d_ino values for entries in "/"
46906         don't match the stat.st_ino values for the same names.
46907         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
46908         number, iterate through all entries again, using lstat instead.
46909         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
46910         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
46911
46912         * lib/getcwd.c (__getcwd): Clarify a comment.
46913         Use memcpy in place of a call to strcpy.
46914
46915         2006-03-12  Jim Meyering  <jim@meyering.net>
46916
46917         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
46918         matches that of the current directory (which we're about to chdir ".."
46919         out of), then save the dev-ino of the parent, instead.
46920
46921         * lib/same-inode.h (SAME_INODE): New file/macro.
46922         * lib/chdir-safer.c (SAME_INODE): Remove definition.
46923         Include "same-inode.h", instead.
46924         * lib/same.c: Likewise.
46925         * lib/cycle-check.h: Include "same-inode.h".
46926         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
46927         * lib/cycle-check.c (SAME_INODE): Remove definition.
46928         * lib/root-dev-ino.h: Include "same-inode.h".
46929
46930         2006-03-11  Eric Blake  <ebb9@byu.net>
46931
46932         * lib/same.c (same_name): s/base_name/last_component/
46933         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
46934         * lib/filenamecat.c (file_name_concat): Likewise.
46935
46936         2006-03-11  Eric Blake  <ebb9@byu.net>,
46937                     Paul Eggert  <eggert@cs.ucla.edu>
46938
46939         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
46940         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
46941         drive prefix.
46942         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
46943         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
46944         (last_component): New method.
46945         * lib/dirname.c (dir_len): Determine when drive letters need a
46946         subsequent slash.  Preserve // when it is special.
46947         (dir_name): Don't append dot when drive letter is absolute.
46948         [TEST_DIRNAME]: Move into a full-blown gnulib test.
46949         * lib/basename.c (base_name): New semantics - malloc the result.
46950         Preserve // when it is special.  Preserve relative files that look
46951         like drive letters.
46952         (base_len): Preserve // when it is special.
46953         (last_component): New method, similar to old base_name semantics.
46954         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
46955         base_name.  Strip redundant slashes from ///.
46956
46957 2006-07-03  Jim Meyering  <jim@meyering.net>
46958
46959         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
46960         macro is used before the first cycle_check call.
46961
46962 2006-07-03  Eric Blake  <ebb9@byu.net>
46963
46964         * modules/dirname (Depends-on): Add xstrndup.
46965
46966 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46967
46968         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
46969         test cases, so that config.log is a bit easier to follow.
46970
46971 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
46972
46973         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
46974         both are 64 bits, since this seems to be the tradition, and this
46975         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
46976         we ever run into a host that prefers long long to long in this
46977         case, we'll need another configure-time test.  Problem reported by
46978         Jim Meyering.
46979
46980 2006-07-02  Eric Blake  <ebb9@byu.net>
46981
46982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
46983
46984 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
46985
46986         * modules/inttypes (Depends-on): No longer depends on stdint.
46987         * modules/stdint (Description): Say more about assumptions.
46988         Say that the fast types might differ.  Say macros are used.
46989         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
46990         (Makefile.am): Revise list of substituted symbols to match
46991         new stdint.m4.
46992         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
46993         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
46994         * tests/test-stdint.c (verify_same_types)
46995         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
46996         the code conforms to C99/C89.
46997         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
46998         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
46999
47000 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47001
47002         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
47003         but fix a bug, by requiring at least 64 bits.
47004         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
47005         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
47006         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
47007         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
47008
47009         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
47010         changes.  Make 2.59 a prerequisite.  Check and substitute for
47011         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
47012         inttypes.h.  Do not use special include files; just use the
47013         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
47014         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
47015         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
47016         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
47017         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
47018         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
47019         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
47020         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
47021         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
47022         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
47023         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
47024         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
47025         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
47026         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
47027         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
47028         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
47029         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
47030         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
47031         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
47032         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
47033         WINT_MAX.  Check for C99 conformance more strictly, by detecting
47034         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
47035         not check for things that C99 does not require, e.g., int8_t.  If
47036         a test isn't needed unless <stdint.h> isn't working, and is
47037         unlikely to be needed for any other reason, then don't do it
47038         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
47039         size_t, since we assume C89 freestanding at least.  Do not check
47040         for sig_atomic_t, wchar_t, or wint_t, since the code now does
47041         the right thing even if the types are not defined.  Instead use:
47042         (gl_STDINT_TYPE_PROPERTIES): New macro.
47043         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
47044         testing whether <sys/types.h> clashes, as Autoconf does this for
47045         us now.  All uses removed.
47046         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
47047         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
47048         (gl_CHECK_TYPE_SAME):
47049         Remove; no longer needed.
47050         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
47051         exists, since we'll return 0 anyway in that case.
47052         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
47053
47054 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
47055
47056         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
47057         possible collision with system files.
47058         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
47059         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
47060         WCHAR_MIN and WCHAR_MAX in this case.
47061         (<stddef.h>): Do not include; no longer needed.
47062         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
47063         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
47064         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
47065         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
47066         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
47067         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
47068         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
47069         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
47070         !defined(__c99))]: Include in this case too, since it's harmless
47071         now.
47072         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
47073         dangerous to do so.
47074         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
47075         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
47076         (_STDINT_MIN, _STDINT_MAX): New macros.
47077         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
47078         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
47079         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
47080         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
47081         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
47082         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
47083         macros, not typedefs; this simplifies things quite a bit.
47084         Use long int for all types narrower than int64_t.
47085         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
47086         Define in terms of long long int or int64_t or long int,
47087         not int64_t or int32_t.  This saves some compile-time testing.
47088         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
47089         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
47090         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
47091         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
47092         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
47093         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
47094         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
47095         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
47096         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
47097         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
47098         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47099         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47100         undef any previous version and define our own version, for
47101         simplicity and consistency with the new macros for types.
47102         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
47103         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
47104         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
47105         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
47106         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
47107         @WINT_T_SUFFIX@ to keep things simple here.
47108         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
47109         Simplify by assuming typical 8/16/32/64 host, since we're
47110         already doing that elsewhere anyway.
47111         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
47112         and assume long long int is 64 bits if available.  This
47113         speeds up 'configure'.
47114
47115 2006-07-01  Eric Blake  <ebb9@byu.net>
47116
47117         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
47118         Reported by Andreas Buening.
47119
47120 2006-07-01  Eric Blake  <ebb9@byu.net>
47121
47122         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
47123
47124 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
47125
47126         * lib/getaddrinfo.c: fixed typo
47127
47128 2006-06-29  Jim Meyering  <jim@meyering.net>
47129
47130         * modules/strftime (Maintainer): Add my name, since with the
47131         FPRINTFTIME changes strftime.c has forked from glibc.
47132
47133 2006-06-29  Eric Blake  <ebb9@byu.net>
47134
47135         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
47136
47137 2006-06-29  Eric Blake  <ebb9@byu.net>
47138
47139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
47140
47141 2006-06-29  Eric Blake  <ebb9@byu.net>
47142
47143         * lib/stat_.h: New file.
47144
47145 2006-06-29  Eric Blake  <ebb9@byu.net>
47146
47147         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
47148         unused static function.
47149
47150 2006-06-29  Eric Blake  <ebb9@byu.net>
47151
47152         * doc/functions.texi (Function Portability): Document missing lstat
47153         on mingw.
47154
47155 2006-06-29  Eric Blake  <ebb9@byu.net>
47156
47157         * MODULES.html.sh: Add sys_stat.
47158         * modules/sys_stat: New module.
47159         * modules/mkstemp (Depends-on): Add sys_stat.
47160
47161 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47162
47163         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
47164
47165 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47166
47167         * m4/c-bs-a.m4: Removed.
47168
47169 2006-06-29  Derek R. Price  <derek@ximbiot.com>
47170
47171         * lib/strftime.c: Assume strftime() exists.
47172
47173 2006-06-29  Derek Price  <derek@ximbiot.com>
47174
47175         * modules/c-bs-a: Removed - \a is C89.
47176         * MODULES.html.sh: Remove c-bs-a.
47177
47178 2006-06-29  Bruno Haible  <bruno@clisp.org>
47179
47180         * modules/wcwidth (License): Change to LGPL.
47181
47182 2006-06-28  Simon Josefsson  <jas@extundo.com>
47183
47184         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
47185         on _WIN32.
47186
47187         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
47188         getnameinfo.
47189
47190 2006-06-28  Simon Josefsson  <jas@extundo.com>
47191
47192         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
47193
47194 2006-06-28  Simon Josefsson  <jas@extundo.com>
47195
47196         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
47197         functions there.  It will succeed on Windows XP, but on Windows
47198         2000 and (presumably) earlier, it will fail, and use the internal
47199         re-implementation.
47200         (use_win32_p): New function.
47201         (getaddrinfo): Use strtoul on servname, to support numeric ports.
47202         Support AI_NUMERICSERV to disable getservbyname.
47203         (getnameinfo): New function, only supports
47204         NI_NUMERICHOST|NI_NUMERICSERV for now.
47205
47206         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
47207         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
47208         getnameinfo.
47209
47210 2006-06-28  Eric Blake  <ebb9@byu.net>
47211
47212         * modules/wcwidth: New file.
47213         * modules/mbchar (Depends-on): Add wcwidth.
47214         * modules/mbswidth (Depends-on): Add wcwidth.
47215         * MODULES.html.sh: Add wcwidth.
47216
47217 2006-06-28  Eric Blake  <ebb9@byu.net>
47218
47219         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
47220         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
47221
47222 2006-06-28  Eric Blake  <ebb9@byu.net>
47223
47224         * lib/xvasprintf.h: Fix comments.
47225
47226 2006-06-28  Eric Blake  <ebb9@byu.net>
47227
47228         * lib/mbchar.h (wcwidth): Include wcwidth.h.
47229         * lib/mbswidth.c (wcwidth): Move from here...
47230         * lib/wcwidth.h: ...to this new file.
47231
47232 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47233
47234         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
47235
47236         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
47237         it's obsolete.
47238         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
47239
47240 2006-06-28  Derek R. Price  <derek@ximbiot.com>
47241
47242         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
47243         Autoconf 2.60 says this stuff was obsolete.
47244
47245 2006-06-28  Bruno Haible  <bruno@clisp.org>
47246
47247         * modules/wcwidth (Files): Add m4/wchar_t.m4.
47248
47249 2006-06-28  Bruno Haible  <bruno@clisp.org>
47250
47251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
47252         gt_TYPE_WCHAR_T.
47253
47254 2006-06-28  Bruno Haible  <bruno@clisp.org>
47255
47256         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
47257         declaration for wcwidth.
47258         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
47259
47260 2006-06-28  Bruno Haible  <bruno@clisp.org>
47261
47262         * lib/mkdtemp.c [MINGW]: Include <io.h>.
47263         (mkdir): Define using _mkdir.
47264
47265 2006-06-28  Bruno Haible  <bruno@clisp.org>
47266
47267         * lib/getaddrinfo.h: Fix POSIX URL.
47268         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
47269         _WIN32.
47270         (use_win32_p): Make static.
47271         (getaddrinfo): Reject service name if it is empty or does not consist
47272         solely of decimal digits, or if its value is > 65535.
47273         (getnameinfo): Remove useless casts.
47274
47275 2006-06-27  Simon Josefsson  <jas@extundo.com>
47276
47277         * modules/sys_select: New file, suggested by Bruno Haible, Paul
47278         Eggert and Martin Lambers.
47279
47280 2006-06-27  Simon Josefsson  <jas@extundo.com>
47281
47282         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
47283         Eggert and Martin Lambers.
47284
47285 2006-06-27  Bruno Haible  <bruno@clisp.org>
47286
47287         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
47288         result to 0, not to empty.
47289         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
47290
47291 2006-06-27  Bruno Haible  <bruno@clisp.org>
47292
47293         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
47294
47295 2006-06-26  Simon Josefsson  <jas@extundo.com>
47296
47297         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
47298         present.
47299
47300 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
47301
47302         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
47303         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
47304         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
47305
47306 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
47307
47308         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
47309
47310 2006-06-26  Bruno Haible  <bruno@clisp.org>
47311
47312         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
47313
47314 2006-06-26  Bruno Haible  <bruno@clisp.org>
47315
47316         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
47317
47318 2006-06-26  Bruno Haible  <bruno@clisp.org>
47319
47320         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
47321         SGI C compiler in pre-C99 mode.
47322         Suggested by Mark D. Baushke and Larry Jones.
47323
47324 2006-06-26  Bruno Haible  <bruno@clisp.org>
47325
47326         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
47327         WCHAR_MAX.
47328         Reported by Mark D. Baushke and Larry Jones.
47329
47330 2006-06-26  Bruno Haible  <bruno@clisp.org>
47331
47332         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
47333         in pre-C99 mode.
47334         Suggested by Mark D. Baushke and Larry Jones.
47335
47336 2006-06-23  Simon Josefsson  <jas@extundo.com>
47337             Bruno Haible  <bruno@clisp.org>
47338
47339         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
47340         Emit mostlyclean-local rule.
47341         (func_emit_tests_Makefile_am): Likewise.
47342         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
47343
47344 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
47345
47346         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
47347
47348 2006-06-23  Bruno Haible  <bruno@clisp.org>
47349
47350         * tests/test-stdint.c: Update to match ISO C 99 Technical
47351         Corrigendum 1.
47352
47353 2006-06-23  Bruno Haible  <bruno@clisp.org>
47354
47355         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
47356
47357 2006-06-23  Bruno Haible  <bruno@clisp.org>
47358
47359         * lib/stdint_.h: Treat IRIX like OpenBSD.
47360
47361 2006-06-23  Bruno Haible  <bruno@clisp.org>
47362
47363         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
47364         ISO C 99 Technical Corrigendum 1.
47365
47366 2006-06-22  Simon Josefsson  <jas@extundo.com>
47367
47368         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
47369         MinGW.
47370
47371 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
47372
47373         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
47374         needed.  Some compiler complained about some of them.  Problem reported
47375         by Larry Jones in
47376         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
47377
47378 2006-06-21  Simon Josefsson  <jas@extundo.com>
47379
47380         * tests/test-getaddrinfo.c: New file.
47381
47382         * modules/getaddrinfo-tests: New file.
47383
47384         * MODULES.html.sh: Add inet_pton.
47385
47386         * modules/inet_pton: New file.
47387
47388 2006-06-21  Simon Josefsson  <jas@extundo.com>
47389
47390         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
47391         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
47392         of using the (limited) gnulib implementation on Windows XP.
47393
47394         * m4/inet_pton.m4: New file.
47395
47396 2006-06-21  Simon Josefsson  <jas@extundo.com>
47397
47398         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
47399         variable.
47400
47401         * lib/socket_.h: Don't define WINVER.
47402
47403         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
47404         slightly modified to work in gnulib.
47405
47406 2006-06-21  Simon Josefsson  <jas@extundo.com>
47407
47408         * doc/gnulib.texi (Windows sockets): Add.
47409
47410 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
47411
47412         * lib/read-file.c (fread_file): Start with buffer allocation of
47413         0 bytes rather than 1 byte; this simplifies the code.
47414         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
47415         code to free buffer and save/restore errno.
47416         (internal_read_file): Remove unused local.
47417
47418 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
47419
47420         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
47421         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
47422         Problem reported by Denis Excoffier in
47423         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
47424
47425 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47426
47427         * modules/sys_socket, modules/socklen: Include sys/types since
47428         FreeBSD 4.x's sys/socket.h needs it.
47429
47430 2006-06-19  Simon Josefsson  <jas@extundo.com>
47431
47432         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
47433
47434 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
47435
47436         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
47437
47438 2006-06-19  Bruno Haible  <bruno@clisp.org>
47439
47440         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
47441         and FULL_PATH_INTTYPES_H in angle brackets.
47442         Reported by Mark D. Baushke <mdb@gnu.org>.
47443
47444 2006-06-17  Eric Blake  <ebb9@byu.net>
47445
47446         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
47447         errno.
47448
47449 2006-06-17  Bruno Haible  <bruno@clisp.org>
47450
47451         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
47452         <sys/inttypes.h>.
47453
47454 2006-06-17  Bruno Haible  <bruno@clisp.org>
47455
47456         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
47457         whether errno is declared. Assume <errno.h> declares errno.
47458
47459 2006-06-17  Bruno Haible  <bruno@clisp.org>
47460
47461         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
47462
47463 2006-06-17  Bruno Haible  <bruno@clisp.org>
47464
47465         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
47466         problem on Solaris 2.5.1.
47467
47468 2006-06-16  Eric Blake  <ebb9@byu.net>
47469
47470         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
47471         * lib/unicodeio.c [!defined errno]: Likewise.
47472         * lib/strtol.c [!defined errno]: Likewise.
47473         * lib/strtod.c [!defined errno]: Likewise.
47474
47475 2006-06-15  Eric Blake  <ebb9@byu.net>
47476
47477         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
47478
47479 2006-06-15  Eric Blake  <ebb9@byu.net>
47480
47481         * config/srclist.txt (ssize_t.m4): Lose sync.
47482
47483 2006-06-15  Bruno Haible  <bruno@clisp.org>
47484
47485         * modules/stdint (Files): Include m4/full-header-path.m4,
47486         m4/size_max.m4, m4/wchar_t.m4.
47487         (Makefile.am): Many more substitutions.
47488         * modules/stdint-tests: New file.
47489         * tests/test-stdint.c: New file.
47490
47491 2006-06-15  Bruno Haible  <bruno@clisp.org>
47492
47493         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
47494         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
47495         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
47496         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
47497         gl_CHECK_TYPE_SAME): New macros.
47498
47499 2006-06-15  Bruno Haible  <bruno@clisp.org>
47500
47501         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
47502
47503 2006-06-15  Bruno Haible  <bruno@clisp.org>
47504
47505         * lib/stdint_.h: Rewritten to be fully auto-configured.
47506         Fixes bug on HP-UX/IA64.
47507
47508 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
47509
47510         * lib/getdate.y (__attribute__): Don't define if already defined.
47511         Problem reported by Larry Jones.
47512         * lib/utimens.c (__attribute__): Likewise.
47513
47514 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
47515
47516         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
47517         reported by Andreas Schwab.
47518
47519 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47520             Bruno Haible  <bruno@clisp.org>
47521
47522         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
47523         check for the declaration of strnlen and a run test that exposes the
47524         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
47525         rpl_strndup.
47526
47527 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47528             Bruno Haible  <bruno@clisp.org>
47529
47530         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
47531
47532 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47533
47534         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
47535         compile test, for Tru64 4.0D.
47536
47537 2006-05-28  Karl Berry  <karl@gnu.org>
47538
47539         * config/srclist.txt (printf-args.c): lose sync.
47540
47541 2006-05-26  Martin Lambers  <marlam@marlam.de>
47542
47543         * lib/getpass.c: Updates the test for the native W32 API, and adds
47544         missing includes, thus fixing compilation warnings.
47545
47546 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47547
47548         * lib/exclude.c (exclude_fnmatch): New function.
47549         (excluded_file_name): Call exclude_fnmatch.
47550         * lib/exclude.h (excluded_file_name): New prototype
47551
47552 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
47553
47554         * lib/tempname.c (small_open, large_open): New macros.
47555         (__open, __open64) [!_LIBC]: Remove.
47556         (__gen_tempname): Use small_open and large_open instead of __open
47557         and __open64.  This fixes a portability bug on HP-UX 11.11i
47558         reported by Simon Wing-Tang in
47559         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
47560
47561 2006-05-24  Bruno Haible  <bruno@clisp.org>
47562
47563         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
47564         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
47565         Reported by Thorsten Maerz <torte@netztorte.de> via
47566         Aaron Stone <aaron@serendipity.cx>.
47567
47568 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47569
47570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
47571         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
47572         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
47573         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
47574         not really conditional on the cache.
47575         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
47576
47577 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
47578
47579         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
47580         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
47581         (my_usleep): Don't mishandle maximum value.
47582
47583 2006-05-19  Jim Meyering  <jim@meyering.net>
47584
47585         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
47586
47587 2006-05-17  Bruno Haible  <bruno@clisp.org>
47588
47589         Cygwin portability.
47590         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
47591
47592 2006-05-17  Bruno Haible  <bruno@clisp.org>
47593
47594         * lib/stdint_.h: Fix recognition of Cygwin.
47595
47596 2006-05-15  Bruno Haible  <bruno@clisp.org>
47597
47598         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
47599         on libtool patch by Ralf Wildenhues.
47600
47601 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
47602
47603         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
47604         test for C99 conformance; (bool) 0.5 is an integer constant
47605         expression, but (bool) -0.5 is not.  Problem reported by Fedor
47606         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
47607
47608 2006-05-11  Simon Josefsson  <jas@extundo.com>
47609
47610         * m4/xvasprintf.m4: Fix obvious typo.
47611
47612 2006-05-11  Jim Meyering  <jim@meyering.net>
47613
47614         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
47615         James Lemley.
47616
47617 2006-05-10  Simon Josefsson  <jas@extundo.com>
47618
47619         * lib/md4.c: Typo fix, update copyright years.
47620         (K1, K2): Don't use L because it turn computations into 64-bit on
47621         64-bit platforms.
47622
47623 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
47624
47625         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
47626         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
47627         unwanted sign propagation, e.g., on hosts with 64-bit int.
47628         There still are some problems with reeelly weird theoretical hosts
47629         (e.g., 33-bit int) but it's not worth worrying about now.
47630         * lib/sha1.c (rol): Likewise.
47631         (K1, K2, K3, K4): Remove unnecessary L suffix.
47632
47633 2006-05-10  Bruno Haible  <bruno@clisp.org>
47634
47635         * lib/des.c: Cast to avoid warnings.
47636
47637 2006-05-09  Bruno Haible  <bruno@clisp.org>
47638
47639         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
47640         (Depends-on): Depend also on xsize, stdarg.
47641         (configure.ac): Add gl_XVASPRINTF.
47642
47643 2006-05-09  Bruno Haible  <bruno@clisp.org>
47644
47645         * m4/xvasprintf.m4: New file.
47646
47647 2006-05-09  Bruno Haible  <bruno@clisp.org>
47648
47649         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
47650         (EOVERFLOW): Define fallback value.
47651         (xstrcat): New function.
47652         (xvasprintf): Recognize the special case of a string concatenation.
47653
47654 2006-05-08  Eric Blake  <ebb9@byu.net>
47655
47656         * gnulib-tool (func_version): Base copyright year on CVS date.
47657         (func_emit_copyright_notice): New function.
47658         (func_emit_lib_Makefile_am): Use it.
47659         (func_emit_tests_Makefile_am): Likewise.
47660         (func_import): Likewise.
47661
47662 2006-05-08  Bruno Haible  <bruno@clisp.org>
47663
47664         * modules/stdarg: New file.
47665         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
47666
47667 2006-05-08  Bruno Haible  <bruno@clisp.org>
47668
47669         * m4/stdarg.m4: New file, from GNU gettext.
47670
47671 2006-05-08  Bruno Haible  <bruno@clisp.org>
47672
47673         * config/srclist.txt (build-aux/config.rpath): different from latest
47674         release.
47675
47676 2006-05-08  Bruno Haible  <bruno@clisp.org>
47677
47678         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
47679
47680 2006-05-05  Jim Meyering  <jim@meyering.net>
47681
47682         * m4/warning.m4: New file, derived from bison's file by the same name.
47683
47684 2006-05-03  Bruno Haible  <bruno@clisp.org>
47685
47686         * lib/stdint_.h: Shorter URL.
47687         * lib/inttypes.h: Likewise.
47688
47689 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47690
47691         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
47692
47693 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47694
47695         * lib/verify.h: Document the internals better.  Most of this change
47696         was written by Bruno Haible.
47697
47698 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
47699
47700         * doc/verify.texi: New file, partly based on a proposal by
47701         Bruno Haible.
47702
47703 2006-05-02  Bruno Haible  <bruno@clisp.org>
47704
47705         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
47706         test from here...
47707         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
47708
47709 2006-04-29  Bruno Haible  <bruno@clisp.org>
47710
47711         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
47712         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
47713
47714 2006-04-29  Bruno Haible  <bruno@clisp.org>
47715
47716         * gnulib-tool: Make --update option actually work.
47717
47718 2006-04-29  Bruno Haible  <bruno@clisp.org>
47719
47720         * doc/gcd.texi: New file.
47721         * doc/gnulib.texi: Include it.
47722
47723 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
47724
47725         * lib/getdate.y (get_date): When adding relative date, start with the
47726         initial time, not with the result of the first mktime call.
47727
47728 2006-04-25  Bruno Haible  <bruno@clisp.org>
47729
47730         * gnulib-tool (func_import): Output the include directives in three
47731         blocks, sorted separately.
47732         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47733
47734 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47735
47736         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
47737         to define main with arguments, for C++.  Reported by Eric Blake.
47738         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
47739         Prefer 'int main ()' to 'int main (void)', for C++.
47740         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
47742         for 'main', for C99 and C++.
47743
47744 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
47745
47746         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
47747         Don't assume that exit status -1 is valid.
47748         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47749         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47750         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47751         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
47752         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
47753         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
47754         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
47755         functions can be used without declaring them, or that you can
47756         exit with status -1.
47757         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47758
47759 2006-04-24  Karl Berry  <karl@gnu.org>
47760
47761         * config/srclist.txt (longdouble.m4): sync lost.
47762
47763 2006-04-24  Eric Blake  <ebb9@byu.net>
47764
47765         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
47766
47767 2006-04-24  Bruno Haible  <bruno@clisp.org>
47768
47769         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
47770         poll() implementation in AIX.
47771         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47772
47773 2006-04-24  Bruno Haible  <bruno@clisp.org>
47774
47775         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
47776         assigned exactly once.
47777
47778 2006-04-23  Claudio Fontana  <claudio@gnu.org>
47779             Bruno Haible  <bruno@clisp.org>
47780
47781         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
47782         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
47783         for AM_CPPFLAGS.
47784
47785 2006-04-23  Bruno Haible  <bruno@clisp.org>
47786
47787         * modules/copy-file: Depend on unistd.
47788         * modules/execute: Likewise.
47789         * modules/fatal-signal: Likewise.
47790         * modules/findprog: Likewise.
47791         * modules/mkdtemp : Likewise.
47792         * modules/pipe: Likewise.
47793         * modules/wait-process: Likewise.
47794
47795 2006-04-23  Bruno Haible  <bruno@clisp.org>
47796
47797         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
47798         condition was already detected.
47799         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47800
47801 2006-04-23  Bruno Haible  <bruno@clisp.org>
47802
47803         * lib/copy-file.c: Include <unistd.h> unconditionally.
47804         * lib/execute.c: Likewise.
47805         * lib/fatal-signal.c: Likewise.
47806         * lib/findprog.c: Likewise.
47807         * lib/mkdtemp.c: Likewise.
47808         * lib/pipe.h: Likewise.
47809         * lib/pipe.c: Likewise.
47810         * lib/wait-process.h: Likewise.
47811
47812 2006-04-23  Bruno Haible  <bruno@clisp.org>
47813
47814         * gnulib-tool (func_usage): Fix --import description. Document
47815         --update.
47816         (func_import): Create temporary file in a temporary directory, if
47817         --dry-run is specified. Silence errors from 'grep' when there are no
47818         m4 files in $m4dir.
47819         (func_create_testdir): Silence errors from 'grep' when there are no
47820         m4 files in $m4dir.
47821         Reported by Karl Berry <karl@freefriends.org>.
47822
47823 2006-04-20  Bruno Haible  <bruno@clisp.org>
47824
47825         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
47826         one argument, so that the code will be portable to Autoconf 2.60.
47827         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
47828         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47829         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
47830
47831 2006-04-19  Derek Price  <derek@ximbiot.com>
47832             Eric Blake  <ebb9@byu.net>
47833
47834         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
47835         rather than "/full/path.h".  Update comment to match.  Shorten &
47836         generalize m4_translit call via AS_TR_CPP.
47837
47838 2006-04-19  Derek Price  <derek@ximbiot.com>
47839             Eric Blake  <ebb9@byu.net>
47840
47841         * lib/inttypes.h: Correct grammar in comment.
47842
47843 2006-04-18  Derek Price  <derek@ximbiot.com>
47844             Paul Eggert  <eggert@cs.ucla.edu>
47845
47846         * modules/inttypes: New file.
47847         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
47848
47849 2006-04-18  Derek Price  <derek@ximbiot.com>
47850             Paul Eggert  <eggert@cs.ucla.edu>
47851
47852         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
47853         New files.
47854
47855 2006-04-18  Derek Price  <derek@ximbiot.com>
47856             Paul Eggert  <eggert@cs.ucla.edu>
47857
47858         * lib/inttypes.h: New file.
47859         * lib/strtoimax.c: Assume <inttypes.h>.
47860
47861 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
47862
47863         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
47864         isn't mounted.  Problem reported by Kir Kolyshkin.
47865
47866 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
47867
47868         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
47869         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
47870         Derek R. Price.
47871         * lib/regex.h (RE_DUP_MAX): Update comment to match current
47872         implementation.
47873
47874 2006-04-12  Eric Blake  <ebb9@byu.net>
47875
47876         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
47877         is now done automatically by the corresponding Autoconf macro.
47878
47879 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
47880
47881         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
47882         time_r.h.
47883
47884 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47885
47886         Merge regex changes from libc, removing some of our
47887         POSIX-conformance changes that were rejected and redoing them in a
47888         less-intrusive way.
47889
47890         * lib/regcomp.c (re_compile_internal, init_dfa):
47891         Length arg is now size_t, not Idx.  All uses changed.
47892         (peek_token): Forward decl now says internal_function.
47893         (__re_error_msgid, __re_error_msgid_idx):
47894         Now static rather than extern with attribute_hidden.
47895         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
47896         For some reason libc prefers K&R style defns for external functions.
47897         (regerror) [!defined _LIBC]: Likewise.
47898         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
47899         (seek_collating_symbol_entry, lookup_collation_sequence_value):
47900         (build_range_exp, build_collating_symbol):
47901         Use K&R-style defn.
47902         (re_compile_fastmap): Use '\0' to memset, not 0.
47903         (utf8_sb_map): Make the calculations more obvious.
47904         (init_dfa, parse_bracket_exp, build_charclass_op):
47905         Call calloc and cast result, as glibc does.
47906         (init_word_char, fetch_token, peek_token, peek_token_bracket):
47907         (build_range_exp, build_collating_symbol):
47908         Now internal functions.
47909
47910         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
47911
47912         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
47913         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
47914         Don't depend on VMS; depend on __VMS instead, for POSIX
47915         namespace cleanness.
47916         (regoff_t): Define to ssize_t, not long int.
47917
47918         Remove the REG_ macros named below.  Instead, make the old names
47919         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
47920         __USE_GNU_REGEX.
47921         (REG_BACKSLASH_ESCAPE_IN_LISTS):
47922         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
47923         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
47924         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
47925         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
47926         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
47927         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
47928         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
47929         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
47930         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
47931         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
47932         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
47933         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
47934         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
47935         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
47936         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
47937         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
47938         (REG_NREGS):
47939         Remove.  All uses replaced by the old RE_* names.
47940         (RE_BACKSLASH_ESCAPE_IN_LISTS):
47941         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
47942         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
47943         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
47944         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
47945         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
47946         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
47947         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
47948         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
47949         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
47950         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
47951         Don't bother having these macros be independent of each others'
47952         values, since they no longer exist in the POSIX name space.
47953
47954         Rename the following member names back to their old names,
47955         unless !__USE_GNU_REGEX.  All uses changed back.
47956         (buffer): Renamed from re_buffer.
47957         (allocated): Renamed from re_allocated.
47958         (used): Renamed from re_used.
47959         (syntax): Renamed from re_syntax.
47960         (fastmap): Renamed from re_fastmap.
47961         (translate): Renamed from re_translate.
47962         (can_be_null): Renamed from re_can_be_null.
47963         (regs_allocated): Renamed from re_regs_allocated.
47964         (fastmap_accurate): Renamed from re_fastmap_accurate.
47965         (no_sub): Renamed from re_no_sub.
47966         (not_bol): Renamed from re_not_bol.
47967         (not_eol): Renamed from re_not_eol.
47968         (newline_anchor): Renamed from re_newline_anchor.
47969         (num_regs): Renamed from rm_num_regs.
47970         (start): Renamed from rm_start.
47971         (end): Renamed from rm_end.
47972
47973         (free_state): Move up a bit.
47974
47975         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
47976         #define to be empty.
47977         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
47978         when that is what is intended.
47979         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
47980         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
47981         (MAX): New macro.
47982         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
47983         All uses changed back to re_malloc, etc.  It's now the caller's
47984         responsibility to check for overflow; all callers changed.
47985         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
47986         (re_x2nrealloc): Remove.
47987         (free_state): Remove decl.
47988
47989         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
47990         (re_set_registers, re_exec):
47991         Use K&R-style defn.
47992
47993         2006-01-31  Roland McGrath  <roland@redhat.com>
47994
47995         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
47996         Reported by Mike Frysinger <vapier@gentoo.org>.
47997
47998         2006-01-15  Andreas Jaeger  <aj@suse.de>
47999
48000         [BZ #1950]
48001         * lib/regex_internal.c (re_string_reconstruct): Adjust for
48002         build_wcs_upper_buffer change.
48003         (build_wcs_upper_buffer): Change return type.
48004
48005         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
48006
48007         * lib/regex_internal.h: Include <stdint.h> if available.
48008
48009         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
48010
48011         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
48012
48013         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
48014
48015         * lib/regcomp.c: Adjust for changed secondary hash function.
48016
48017         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
48018
48019         * lib/regex.h: Pretty printing.
48020         Clean up namespace a bit.
48021
48022         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
48023
48024         * lib/regexec.c (update_cur_sifted_state, check_arrival,
48025         check_arrival_add_next_nodes): Avoid using uninitialized variable.
48026
48027         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48028                     Ulrich Drepper  <drepper@redhat.com>
48029
48030         [BZ #1302]
48031         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
48032         changed.
48033         (bitset_word_t): Renamed from bitset_word.  All uses changed.
48034
48035         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
48036
48037         [BZ #281]
48038         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
48039         * lib/regcomp.c: Remove unnecessary uses of
48040         unsigned RE_TRANSLATE_TYPE.
48041         * lib/regex_internal.h: Likewise.
48042         * lib/regex_internal.c: Likewise.
48043         * lib/regexec.c: Likewise.
48044         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
48045
48046         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
48047
48048         * lib/regexec.c (find_recover_state): Remove unnecessary
48049         initialization.
48050         (transit_state_bkref): Make DFA a const pointer.
48051         (get_subexp): Likewise.
48052         (check_arrival): Likewise.
48053         (update_cur_sifted_state): Likewise.
48054         (re_search_internal): Likewise.
48055         (prune_impossible_nodes): Likewise.
48056         (acquire_init_state_context): Likewise.
48057         (proceed_next_node): Likewise.
48058         (set_regs): Likewise.
48059         (free_fail_stack_return): Likewise.
48060         (check_arrival_expand_ecl): Mark DFA parameter as const.
48061         (check_arrival_expand_ecl_sub): Likewise.
48062         (check_subexp_limits): Likewise.
48063         (sub_epsilon_src_nodes):  Likewise.
48064         (add_epsilon_src_nodes):  Likewise.
48065         (merge_state_array): Likewise.
48066         (update_regs): Likewise.
48067         (build_trtable): Likewise.
48068         (sift_states_backward): Mark MCTX parameter as const.
48069         (build_sifted_states): Likewise.
48070         (update_cur_sifted_state): Likewise.
48071         (sift_states_mkref): Likewise.
48072         (check_arrival_expand_ecl): Mark eclosure as const.
48073         (check_dst_limits_calc_pos_1): Likewise.
48074         * lib/regex_internal.h (re_match_context_t): Make dfa a const
48075         pointer.
48076
48077         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
48078
48079         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
48080         (transit_state_sb): Likewise.
48081         (transit_state_mb): Likewise.
48082         (sift_states_iter_mb): Likewise.
48083         (check_arrival_add_next_nodes): Likewise.
48084         (check_node_accept_bytes): Change first parameter to pointer-to-const.
48085         [_LIBC] (re_search_2_stub): Use mempcpy.
48086
48087         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
48088         mbrtowc for very simple UTF-8 case.
48089
48090         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
48091         a pointer-to-const.
48092         (re_acquire_state_context): Likewise.
48093         * lib/regex_internal.h: Adjust prototypes.
48094
48095         * lib/regex.c: Prevent using C++ compilers.
48096
48097         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
48098         (re_acquire_state_context): Likewise.
48099
48100 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48101
48102         * modules/regex (Depends-on): Add ssize_t.
48103
48104 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48105
48106         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
48107         translation table.
48108
48109 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
48110
48111         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
48112
48113 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
48114             Bruno Haible  <bruno@clisp.org>
48115
48116         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
48117         <sys/types.h> and <inttypes.h>.
48118
48119 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48120
48121         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
48122         `__error_t_defined', so argp.h will not typedef the former.
48123
48124 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48125
48126         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
48127         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
48128         glibc names.  Even if glibc is changed to conform to POSIX, the
48129         traditional names will be available anyway, since regex depends on
48130         the extensions module.  Also, fix a longstanding typo in the
48131         implementation of Spencer ERE test #75 from grep 2.3.  Problems
48132         reported by Emanuele Giaquinta.  Also, change sense of cached
48133         variable, so that the message makes sense.
48134
48135 2006-03-24  Simon Josefsson  <jas@extundo.com>
48136
48137         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
48138         including some doc fixes.
48139         (base64_encode_alloc): Fix +1 bug on allocation failures.
48140
48141 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48142
48143         * lib/base64.c (base64_encode): Do not read past end of array with
48144         unsanitized input on systems with CHAR_BIT > 8.
48145
48146 2006-03-24  Eric Blake  <ebb9@byu.net>
48147
48148         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
48149
48150 2006-03-22  Karl Berry  <karl@gnu.org>
48151
48152         * config/srclist.txt (*setenv.[ch]): get from coreutils.
48153         * config/srclistvars.sh (COREUTILS): new var.
48154
48155 2006-03-17  Jim Meyering  <jim@meyering.net>
48156
48157         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
48158         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
48159
48160 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48161
48162         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
48163         no longer needs it.  Instead, check that regoff_t is as least
48164         as wide as ptrdiff_t.
48165
48166         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
48167         so that our regex.h stays compatible with the installed regex.
48168         This is helpful for installers who configure --without-included-regex.
48169         Problem reported by Emanuele Giaquinta.
48170
48171 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
48172
48173         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
48174         Typedef to long int, not to off_, as POSIX will likely change
48175         in that direction.
48176
48177 2006-03-15  Eric Blake  <ebb9@byu.net>
48178
48179         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
48180
48181 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48182
48183         * lib/argp-help.c (validate_uparams): Fix typo
48184         * lib/argp-parse.c (argp_default_options): Consistently begin help
48185         messages with a lowercase letter.
48186
48187 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
48188
48189         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
48190         overrun buffers and shouldn't be used (much as gets shouldn't be
48191         used).
48192         * lib/time_r.c (asctime_r, ctime_r): Likewise.
48193
48194 2006-03-08  Simon Josefsson  <jas@extundo.com>
48195
48196         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
48197         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48198
48199 2006-03-08  Simon Josefsson  <jas@extundo.com>
48200
48201         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
48202         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48203
48204 2006-03-08  Simon Josefsson  <jas@extundo.com>
48205
48206         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
48207         signal that configure disabled the device.
48208
48209 2006-03-08  Simon Josefsson  <jas@extundo.com>
48210
48211         * build-aux/maint.mk: Fix refresh-po, to handle no translated
48212         languages.
48213
48214 2006-03-07  Simon Josefsson  <jas@extundo.com>
48215
48216         * modules/getopt (Depends-on): Add unistd.
48217
48218         * modules/unistd: New file.
48219
48220 2006-03-07  Simon Josefsson  <jas@extundo.com>
48221
48222         * modules/gc-random: New file.
48223
48224 2006-03-07  Simon Josefsson  <jas@extundo.com>
48225
48226         * m4/unistd_h.m4: New file.
48227
48228 2006-03-07  Simon Josefsson  <jas@extundo.com>
48229
48230         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
48231         test to be side-effect free by storing the result in the cache
48232         variable gl_cv_lib_readline, and moving the assignment of
48233         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
48234         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48235
48236 2006-03-07  Simon Josefsson  <jas@extundo.com>
48237
48238         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
48239         error on missing devices (the functions will return an error).
48240
48241         * m4/gc.m4: Move random stuff to gc-random.m4
48242
48243 2006-03-07  Simon Josefsson  <jas@extundo.com>
48244
48245         * lib/unistd_.h: New file.
48246
48247 2006-03-07  Simon Josefsson  <jas@extundo.com>
48248
48249         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
48250
48251 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48252
48253         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
48254         Problem reported by Juan Manuel Guerrero.
48255
48256 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48257
48258         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
48259         the unistd module.
48260         * lib/getlogin_r.c: Likewise.
48261         * lib/getlogin_r.h: Likewise.
48262         * lib/glob.c: Likewise.
48263         * lib/pagealign_alloc.c: Likewise.
48264         * lib/unistd_.h: Remove; no longer needed.
48265
48266 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
48267
48268         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48269         Add unistd.
48270         * modules/c-stack (Depends-on): Add unistd.
48271         * modules/getlogin_r: Likewise.
48272         * modules/glob: Likewise.
48273         * modules/pagealign_alloc: Likewise.
48274         * modules/unistd (Files): Remove lib/unistd_.h.
48275         (EXTRA_DIST): Remove.
48276         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
48277         need unistd_.h.
48278         (MOSTLYCLEANFILES): Remove unistd.h-t.
48279
48280 2006-03-03  Simon Josefsson  <jas@extundo.com>
48281
48282         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
48283
48284 2006-03-03  Simon Josefsson  <jas@extundo.com>
48285
48286         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
48287         libidn and bison.
48288
48289 2006-03-03  Simon Josefsson  <jas@extundo.com>
48290
48291         * build-aux/maint.mk: Add indent target.
48292
48293 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
48294
48295         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
48296         our replacement poll.h in any case, to avoid a differing
48297         declaration from a system header.  Seen on AIX.
48298
48299 2006-03-01  Simon Josefsson  <jas@extundo.com>
48300
48301         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
48302         <kasal@ucw.cz>.
48303
48304 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48305
48306         * modules/gettime (Depends-on): Add extensions module.
48307         * modules/nanosleep (Depends-on): Likewise.
48308         * modules/settime (Depends-on): Likewise.
48309
48310 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
48311
48312         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
48313         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
48314         pedantically.
48315         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
48316         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
48317
48318         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
48319         not "==".  Reported by Ralf Wildenhues.
48320
48321 2006-03-01  Karl Berry  <karl@gnu.org>
48322
48323         * doc/Copyright/request-*: new files, synced from gnuorg.
48324
48325 2006-03-01  Karl Berry  <karl@gnu.org>
48326
48327         * config/srclist.txt (Copyright/*): new entries.
48328
48329 2006-02-28  Simon Josefsson  <jas@extundo.com>
48330
48331         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
48332
48333 2006-02-27  Simon Josefsson  <jas@extundo.com>
48334
48335         * lib/base64.h: Indent #define's.  From Jim Meyering
48336         <jim@meyering.net>.
48337
48338 2006-02-27  Jim Meyering  <jim@meyering.net>
48339
48340         Revert the change of 2006-02-24, so these files can continue
48341         to be sync'd from gettext.
48342         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
48343         of `config.h'.
48344
48345 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
48346
48347         * modules/intprops: New file.
48348         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48349         Add intprops.
48350         * modules/getloadavg (Files): Remove lib/intprops.h.
48351         (Depends-on): Add intprops.
48352         * modules/human: Likewise.
48353         * modules/inttostr: Likewise.
48354         * modules/openat: Likewise.
48355         * modules/sig2str: Likewise.
48356         * modules/userspec: Likewise.
48357         * modules/utimecmp: Likewise.
48358         * modules/xnanosleep: Likewise.
48359         * modules/xstrtol: Likewise.
48360
48361 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
48362
48363         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
48364         * modules/lock-tests (TESTS): Use $(EXEEXT).
48365         * modules/tls-tests: Likewise.
48366         * modules/argp-tests: Likewise.
48367         (check_PROGRAMS): New var, replacing...
48368         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
48369
48370 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48371
48372         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
48373         `config.h'.
48374
48375 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48376
48377         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
48378
48379 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48380
48381         Sync from coreutils.
48382         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
48383         gl_CHDIR_SAFER.
48384
48385 2006-02-22  Jim Meyering  <jim@meyering.net>
48386
48387         Sync from coreutils.
48388         * m4/chdir-safer.m4: New file.
48389
48390 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
48391
48392         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
48393         AT_FDCWD exceeds INT_MAX.
48394         * lib/openat.h (AT_FDCWD): Likewise.
48395
48396 2006-02-17  Eric Blake  <address@hidden>
48397
48398         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
48399
48400 2006-02-16  Simon Josefsson  <jas@extundo.com>
48401
48402         * modules/getaddrinfo (Depends-on): Add sys_socket.
48403
48404 2006-02-15  Simon Josefsson  <jas@extundo.com>
48405
48406         * build-aux/maint.mk: Add dsyntax-check rule.
48407
48408 2006-02-15  Eric Blake  <ebb9@byu.net>
48409
48410         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
48411         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
48412         'present but cannot compile' warnings on cygwin.
48413         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
48414         use ws2tcpip.h if sys/socket.h works.
48415         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
48416         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
48417
48418 2006-02-14  Simon Josefsson  <jas@extundo.com>
48419
48420         * modules/maintainer-makefile (Files): Rename.
48421
48422         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
48423         and (the local) Makefile.cfg to maint-cfg.mk.
48424
48425         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
48426         to the latter.
48427
48428         * modules/maintainer-makefile: New module.
48429
48430         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
48431         severaly stripped to make it possible to build it up from scratch
48432         with reliable tests.
48433
48434         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
48435         fixes to permit overriding the default actions when configure and
48436         makefile are not available.
48437
48438 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
48439
48440         Sync from coreutils.
48441         * modules/lstat (Depends-on): Don't depend on xalloc.
48442         (License): Change from GPL to LGPL, since this is now simply a
48443         replacement for a libc function.
48444
48445 2006-02-14  Jim Meyering  <jim@meyering.net>
48446
48447         Sync from coreutils.
48448
48449         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
48450         failure on deficient systems, and simplify gnulib lgpl dependencies.
48451         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
48452         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
48453
48454         * lib/xalloc-die.c: Remove unused definition of N_.
48455
48456 2006-02-14  Jim Meyering  <jim@meyering.net>
48457
48458         Sync from coreutils.
48459         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
48460         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
48461         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
48462         double-quote uses of that variable, to accommodate the rare case in
48463         which getmntent is available in none of the libraries checked.  This
48464         happens at least on FreeBSD 5.0.
48465
48466 2006-02-13  Simon Josefsson  <jas@extundo.com>
48467
48468         * gnulib-tool (Usage): Fix --import, from
48469         karl@freefriends.org (Karl Berry).
48470
48471 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
48472
48473         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
48474
48475 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
48476
48477         * lib/argp-namefrob.h: Restore changes accidentally lost during the
48478         "autoupdate" on 2005-12-12.
48479
48480 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48481
48482         * modules/closeout (Depends-on): Remove atexit.
48483
48484 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
48485
48486         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
48487         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
48488
48489 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
48490
48491         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
48492         __EXTENSIONS__ if this causes compilation to fail.  Problem
48493         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
48494         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
48495
48496 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
48497
48498         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
48499         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
48500         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
48501         All uses changed.
48502
48503 2006-01-26  Simon Josefsson  <jas@extundo.com>
48504
48505         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
48506         prototype is visible on mingw32.
48507
48508         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
48509         for mingw32.
48510
48511         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
48512         mingw32).
48513
48514 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
48515
48516         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
48517         attempt to open for write; this always fails, at least on POSIX
48518         hosts.  This reinstates the 2006-01-09 change, which was
48519         inadvertently removed.
48520
48521 2006-01-26  Bruno Haible  <bruno@clisp.org>
48522
48523         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
48524         Reported by Paul Eggert.
48525
48526 2006-01-26  Bruno Haible  <bruno@clisp.org>
48527             Paul Eggert  <eggert@cs.ucla.edu>
48528
48529         * lib/stdbool_.h (_Bool)
48530         [(! (defined __cplusplus || defined __BEOS__)
48531           && !defined __GNUC__
48532           && !(defined __HP_cc || defined __xlc__
48533                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
48534                || defined __sgi))]:
48535         #define to signed char in these cases too; this simplifies
48536         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
48537         etc., separately) and makes it more conservative.
48538
48539 2006-01-25  Simon Josefsson  <jas@extundo.com>
48540
48541         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
48542         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
48543         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
48544
48545 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
48546
48547         * lib/argp-namefrob.h: Bugfix. Remove stray #
48548
48549 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48550
48551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
48552         so that we test the test.
48553         Check for yet another HP-UX cc bug involving *bool |= bool.
48554
48555 2006-01-25  Karl Berry  <karl@gnu.org>
48556
48557         * config/srclist.txt (vasnprintf.c): sync lost.
48558
48559 2006-01-25  Jim Meyering  <jim@meyering.net>
48560
48561         Sync from the stable (b5) branch of coreutils:
48562
48563         * lib/fts.c (fts_children): Don't let close() clobber errno from
48564         failed fchdir().
48565
48566         * lib/fts.c (fts_stat): When following a symlink-to-directory,
48567         don't necessarily interpret stat-fails+lstat-succeeds as indicating
48568         a dangling symlink.  That can also happen at least for ELOOP.
48569         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
48570         FYI, this bug predates the inclusion of fts.c in coreutils.
48571
48572         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
48573         in their own block, so pre-c99 compilers don't object.
48574
48575         Avoid the double-free (first in fts_read, second in fts_close) that
48576         would occur when an `active' directory is made inaccessible (e.g.,
48577         via chmod a-x) during a traversal.
48578         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48579         before returning.  Reproduce this failure by
48580         mkdir -p a/b; cd a; chmod a-x . b
48581         Reported by Stavros Passas.
48582
48583 2006-01-25  Jim Meyering  <jim@meyering.net>
48584
48585         * lib/fileblocks.c: Remove more useless parentheses.
48586         * lib/readutmp.h: Likewise.
48587
48588 2006-01-25  Bruno Haible  <bruno@clisp.org>
48589
48590         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
48591         warnings.
48592         Reported by Paul Eggert.
48593
48594 2006-01-25  Bruno Haible  <bruno@clisp.org>
48595
48596         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
48597         rid of a trap command. For Solaris sh.
48598         Reported by Mark D. Baushke <mdb@gnu.org>.
48599
48600 2006-01-24  Simon Josefsson  <jas@extundo.com>
48601
48602         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
48603         Bruno.
48604
48605 2006-01-24  Karl Berry  <karl@gnu.org>
48606
48607         * config/srclist.txt (argp-namefrob.h): sync lost.
48608
48609 2006-01-24  Jim Meyering  <jim@meyering.net>
48610
48611         * modules/openat (Files): Add lib/intprops.h.
48612         From Mark D. Baushke.
48613
48614 2006-01-24  Jim Meyering  <jim@meyering.net>
48615
48616         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
48617         Reported by Mark D. Baushke.
48618
48619 2006-01-24  Jim Meyering  <jim@meyering.net>
48620
48621         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
48622
48623 2006-01-24  Bruno Haible  <bruno@clisp.org>
48624
48625         * modules/strnlen (Maintainer): Change from glibc to all.
48626
48627 2006-01-24  Bruno Haible  <bruno@clisp.org>
48628
48629         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
48630         Patch by Paul Eggert.
48631
48632 2006-01-24  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
48635         already has it.
48636         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
48637         2005-11-26.
48638
48639         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
48640         'signed char' to avoid problems with the built-in _Bool type.
48641         Reported by Paul Eggert on 2005-11-26.
48642
48643 2006-01-24  Bruno Haible  <bruno@clisp.org>
48644
48645         * gnulib-tool (func_import): Avoid constructing complicated sed
48646         expressions inside backquote.
48647         Report and solution by Mark D. Baushke <mdb@gnu.org>.
48648
48649 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
48650
48651         These changes imported from libc.
48652         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
48653         test and two separate function calls.
48654         * lib/strndup.c (__strndup): Add libc_hidden_def.
48655
48656 2006-01-23  Simon Josefsson  <jas@extundo.com>
48657
48658         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
48659         Remove the test_*_SOURCES variable: automake infers it by default.
48660         * modules/tls-tests: Likewise.
48661
48662 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48663
48664         Work around porting bugs reported by Dieter in
48665         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
48666         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
48667         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
48668         Include "getopt.h" first, to check interface.
48669         (getenv): Declare only if defined HAVE_DECL_GETENV &&
48670         !HAVE_DECL_GETENV.
48671         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
48672         (__strndup): Revert to K&R-style function dfns, the glibc style.
48673         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
48674         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
48675         Include strnlen.h first, to get prototype properly.
48676         (strnlen): Renamed from __strnlen.
48677         Remove weak alias.
48678
48679 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48680
48681         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
48682
48683 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
48684
48685         * config/srclist.txt: Adjust to reflect glibc reorganization.
48686         This affects only comments.
48687
48688 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48689
48690          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
48691          Reported by Bruce Korb <bkorb@gnu.org>.
48692
48693 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
48694
48695         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
48696         to pacify gcc -Wswitch-default.
48697
48698 2006-01-22  Bruno Haible  <bruno@clisp.org>
48699
48700         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
48701         temporary buffer for sprintf, take into account the precision also
48702         for 'd', 'i', 'u', 'o', 'x', 'X'.
48703
48704 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48705
48706         * modules/argp-tests: New module
48707         * tests/test-argp.c: New file
48708         * tests/test-argp-2.sh: New file
48709
48710 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
48711
48712         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
48713         (__argp_base_name): Removed
48714         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
48715         typo.
48716         (__argp_base_name): Provide macro definition or extern declaration
48717         depending on the configuration
48718
48719 2006-01-20  Simon Josefsson  <jas@extundo.com>
48720
48721         * modules/inet_ntop (Depends-on): Depend on sys_socket.
48722
48723 2006-01-20  Simon Josefsson  <jas@extundo.com>
48724
48725         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
48726
48727 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
48728
48729         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
48730         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
48731         Suggested by Bruno Haible.
48732
48733 2006-01-20  Karl Berry  <karl@gnu.org>
48734
48735         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
48736         until changes propagate, I guess.
48737
48738 2006-01-19  Simon Josefsson  <jas@extundo.com>
48739
48740         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
48741
48742 2006-01-19  Simon Josefsson  <jas@extundo.com>
48743
48744         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
48745
48746 2006-01-19  Simon Josefsson  <jas@extundo.com>
48747
48748         * gnulib-tool: Set check_PROGRAMS.
48749
48750         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48751         modules/des-tests, modules/gc-arcfour-tests,
48752         modules/gc-arctwo-tests, modules/gc-des-tests,
48753         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48754         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48755         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48756         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48757         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48758         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
48759         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
48760         test_*_SOURCES.
48761
48762 2006-01-18  Simon Josefsson  <jas@extundo.com>
48763
48764         * modules/socklen (Depends-on): Depend on sys_socket.
48765
48766 2006-01-18  Simon Josefsson  <jas@extundo.com>
48767
48768         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
48769         modules/des-tests, modules/gc-arcfour-tests,
48770         modules/gc-arctwo-tests, modules/gc-des-tests,
48771         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
48772         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
48773         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
48774         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
48775         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
48776         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
48777         $(EXEEXT) to automake TESTS variable, for mingw32.
48778
48779 2006-01-17  Simon Josefsson  <jas@extundo.com>
48780
48781         * modules/socklen (Include): Need sys/socket.h.
48782
48783 2006-01-17  Bruno Haible  <bruno@clisp.org>
48784
48785         * modules/ssize_t (Include): Add <sys/types.h>.
48786
48787 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
48788
48789         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
48790         it's not portable and it doesn't work with cross-compiles.
48791         Problem reported by Bruno Haible.  Fix missing-$ typo in
48792         'test "gl_cv_ignore_unused_libraries" ...' that prevented
48793         -zignore from being used with Sun's C compiler.
48794
48795 2006-01-12  Simon Josefsson  <jas@extundo.com>
48796
48797         * lib/base64.c: Fix warning, reported by Bruno Haible
48798         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
48799
48800 2006-01-12  Bruno Haible  <bruno@clisp.org>
48801
48802         * modules/ldd: New file.
48803         * build-aux/ldd.sh.in: New file.
48804         * MODULES.html.sh (Support for building libraries and executables): Add
48805         ldd.
48806
48807 2006-01-12  Bruno Haible  <bruno@clisp.org>
48808
48809         * m4/ldd.m4: New file.
48810
48811 2006-01-12  Bruno Haible  <bruno@clisp.org>
48812
48813         * gnulib-tool (func_import, func_create_testdir): Don't go into an
48814         endless loop while replacing $auxdir with build-aux.
48815
48816 2006-01-11  Simon Josefsson  <jas@extundo.com>
48817
48818         * lib/stdint_.h (SIZE_MAX): Add missing (.
48819
48820 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
48821
48822         Sync from coreutils.
48823         * lib/md5.c: Fix commentary typos.
48824         (alignof, UNALIGNED_P): No need for a GCC-specific version.
48825         * lib/md5.h (__attribute__): Remove; unused.
48826         * lib/sha1.c: Fix commentary to match md5 better.
48827         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
48828         so that we don't need to worry about alignment.  All uses changed.
48829         This merges the 2005-10-28 md5 change into sha1.
48830
48831 2006-01-11  Jim Meyering  <jim@meyering.net>
48832
48833         Sync from coreutils.
48834         * lib/md5.c (OP): Fix spacing.
48835
48836 2006-01-11  Bruno Haible  <bruno@clisp.org>
48837
48838         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48839         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
48840         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
48841
48842 2006-01-11  Bruno Haible  <bruno@clisp.org>
48843
48844         Ensure automatic ordering between gl_LOCK and gl_ARGP.
48845         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
48846         the "early" section as well.
48847
48848 2006-01-11  Bruno Haible  <bruno@clisp.org>
48849
48850         Avoid "ar: no archive members specified" error on MacOS X.
48851         * gnulib-tool (func_modules_add_dummy): New function.
48852         (func_import, func_create_testdir): Invoke it.
48853
48854 2006-01-11  Bruno Haible  <bruno@clisp.org>
48855
48856         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
48857         with $auxdir in AC_CONFIG_FILES statements.
48858
48859 2006-01-11  Bruno Haible  <bruno@clisp.org>
48860
48861         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48862         Initialize also noinst_HEADERS to empty.
48863
48864 2006-01-11  Bruno Haible  <bruno@clisp.org>
48865
48866         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
48867         variables.
48868         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
48869         autoreconf.
48870
48871 2006-01-11  Bruno Haible  <bruno@clisp.org>
48872
48873         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
48874         overridable by the user.
48875         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48876
48877 2006-01-10  Simon Josefsson  <jas@extundo.com>
48878
48879         * modules/sys_socket: New file.
48880
48881 2006-01-10  Simon Josefsson  <jas@extundo.com>
48882
48883         * m4/sys_socket_h.m4: New file.
48884
48885 2006-01-10  Simon Josefsson  <jas@extundo.com>
48886
48887         * lib/socket_.h: New file.
48888
48889 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48890
48891         * modules/readutmp (Maintainer): Add myself.
48892
48893 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48894
48895         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
48896         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
48897         People who are still concerned with buggy memcmp implementations
48898         can invoke gl_FUNC_MEMCMP themselves.
48899
48900 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
48901
48902         * lib/regex_internal.h (BITSET_WORD_BITS):
48903         Work around a bug in 64-bit PGC (before version 6.1-2), where the
48904         preprocessor mishandles large unsigned values as if they were signed.
48905         Problem reported by Claudio Fontana in
48906         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
48907
48908 2006-01-10  Jim Meyering  <jim@meyering.net>
48909
48910         Avoid the double-free (first in fts_read, second in fts_close) that
48911         would occur when an `active' directory is made inaccessible (e.g.,
48912         via chmod a-x) during a traversal.
48913         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
48914         before returning.  Reproduce this failure by
48915         mkdir -p a/b; cd a; chmod a-x . b
48916         Reported by Stavros Passas.
48917
48918         Sync from coreutils.
48919         * lib/sha1.c: Tweak grammar in a comment.
48920
48921 2006-01-10  Jim Meyering  <jim@meyering.net>
48922
48923         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
48924         Patch by Joerg Sonnenberger.
48925
48926 2006-01-10  Bruno Haible  <bruno@clisp.org>
48927
48928         * modules/readutmp: Depend on module free.
48929         * modules/strtok_r: Depend on module restrict.
48930
48931 2006-01-10  Bruno Haible  <bruno@clisp.org>
48932
48933         * modules/gettext (configure.ac): Add an invocation of
48934         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
48935
48936 2006-01-10  Bruno Haible  <bruno@clisp.org>
48937
48938         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
48939         Reported by Werner Lemberg <wl@gnu.org>.
48940
48941 2006-01-10  Bruno Haible  <bruno@clisp.org>
48942
48943         * lib/localcharset.c: Update from GNU gettext.
48944
48945 2006-01-10  Bruno Haible  <bruno@clisp.org>
48946
48947         * lib/argp.h (__const): Remove macro. Use const instead.
48948         * lib/argp-fmtstream.h (__const): Likewise.
48949         * lib/glob_.h (__const): Remove macro.
48950         * lib/glob-libc.h: Use const instead of __const.
48951
48952 2006-01-10  Bruno Haible  <bruno@clisp.org>
48953
48954         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
48955         variable.
48956         Needed to avoid an automake error regarding the 'gettext' module.
48957
48958 2006-01-09  Simon Josefsson  <jas@extundo.com>
48959
48960         * modules/inet_ntop (Depends-on): Add restrict.
48961
48962 2006-01-09  Simon Josefsson  <jas@extundo.com>
48963
48964         * modules/gc-rijndael-tests (License): Put under LGPL.
48965
48966         * modules/gc-des-tests (License): Likewise.
48967
48968         * modules/gc-arcfour-tests (License): Likewise.
48969
48970         * modules/gc-arctwo-tests (License): Likewise.
48971
48972         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
48973
48974         * modules/gc-hmac-sha1-tests (Files): Likewise.
48975
48976         * modules/gc-hmac-md5-tests (License): Likewise.
48977
48978         * modules/gc-sha1-tests (License): Likewise.
48979
48980         * modules/gc-md5-tests (License): Likewise.
48981
48982         * modules/gc-md4-tests (License): Likewise.
48983
48984         * modules/gc-md2-tests (License): Likewise.
48985
48986         * modules/gc-tests (License): Likewise.
48987
48988         * modules/des-tests (License): Likewise.
48989
48990         * modules/md4-tests (License): Likewise.
48991
48992         * modules/md2-tests (License): Likewise.
48993
48994 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48995
48996         Sync from coreutils:
48997
48998         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
48999         * modules/lib-ignore: New file.
49000         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
49001         chdir-safer.m4, lchmod.m4.
49002         * modules/openat: Add mkdirat.c, openat-priv.h.
49003
49004 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49005
49006         Sync from coreutils.
49007         * m4/lib-ignore.m4: New file.
49008         * m4/lchmod.m4: New file.
49009
49010 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49011
49012         Sync from coreutils.
49013         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
49014         for write access: POSIX says that must fail.
49015         * lib/fts.c (diropen): Likewise.
49016         * lib/save-cwd.c (save_cwd): Likewise.
49017         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
49018         well, for minor improvements on hosts that lack O_DIRECTORY.
49019         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
49020         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
49021         Fall back on chown if open failed with EACCES.
49022
49023         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
49024         Report an error at compile-time if only a 1-second nominal clock
49025         resolution is found.
49026
49027         * lib/lchmod.h: New file.
49028         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
49029         (make_dir_parents): Use lchown rather than chown, and
49030         lchmod rather than chmod.
49031
49032         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
49033         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
49034         "proc" reported by n0dalus.
49035
49036         * lib/mountlist.c: Include <limits.h>.
49037         (dev_from_mount_options)
49038         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
49039         New function.  It no longer assumes "dev=" has the System V meaning
49040         on Linux (since it doesn't).  It also parses "dev=" more carefully.
49041         (read_file_system_list)
49042         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
49043         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
49044         dev= in that case.
49045
49046         * lib/posixtm.h (PDS_PRE_2000): New macro.
49047         * lib/posixtm.c (year): Arg is now syntax_bits rather than
49048         allow_century.  All usages changed.  Reject dates outside the range
49049         1969-1999 if PDS_PRE_2000 is used.
49050
49051 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49052
49053         Sync from coreutils.
49054         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
49055         (Time of day items): Mention the possibility of leap seconds.
49056         Problem reported by Dr. David Alan Gilbert.
49057
49058 2006-01-09  Jim Meyering  <jim@meyering.net>
49059
49060         Sync from coreutils.
49061
49062         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
49063
49064         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
49065
49066         * lib/modechange.c (mode_compile): Reject an invalid mode string
49067         that starts with an octal digit.  From Andreas Gruenbacher.
49068
49069         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
49070         and dup to open_safer and dup_safer, respectively.
49071         (openat_permissive): Fix typo in comment.
49072
49073         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
49074         "gettext.h"; either no longer needed or are guaranteed by openat.h.
49075         (_): Remove; no longer needed.
49076         (openat): Renamed from rpl_openat; no need for rpl_openat
49077         since openat.h renames openat for us.
49078         Replace most of the body with a call to openat_permissive,
49079         to avoid duplicate code.
49080         Port to (probably hypothetical) environments were mode_t is
49081         wider than int.
49082         (openat_permissive): Require mode arg, so that we can check
49083         types better.  Put it just after flags.  Change cwd failure
49084         indicator from pointer-to-bool to pointer-to-errno-value.
49085         All callers changed.
49086         Invoke openat_save_fail and/or openat_restore_fail if
49087         cwd_errno is null, so that openat can call us.
49088         (openat_permissive, fdopendir, fstatat, unlinkat):
49089         Simplify errno handling to avoid some duplicate code,
49090         as it's OK to set errno on success.
49091         * lib/openat.h: Revamp code so that function macros depend on
49092         __OPENAT_PREFIX only, not also on AT_FDCWD.
49093         (openat_ro): Remove.  Caller changed to use openat_permissive.
49094         (openat_permissive): Now a macro, if not a function.
49095         (openat_restore_fail, openat_save_fail): Now always functions,
49096         since mkdirat needs them even if __OPENAT_PREFIX is defined.
49097
49098         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
49099         and openat.c.
49100         * lib/mkdirat.c: Include openat-priv.h.
49101         Remove definitions of macros defined therein.
49102         * lib/openat.c: Likewise.
49103
49104         * lib/mkdirat.c (mkdirat): New file and function.
49105         * lib/openat.h (mkdirat): Declare.
49106
49107         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
49108
49109         * lib/openat.h (openat_permissive): Declare.
49110         (openat_ro): Define.
49111
49112         * lib/openat.c (EXPECTED_ERRNO): New macro.
49113         (openat_permissive): New function -- used in remove.c rewrite.
49114         (all functions): Set errno just before returning, only if there
49115         was an actual failure.
49116         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
49117
49118         Emulate openat-family functions using Linux's procfs, if possible.
49119         Idea and some code based on Ulrich Drepper's glibc changes.
49120
49121         * lib/openat.c: (BUILD_PROC_NAME): New macro.
49122         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
49123         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
49124         before falling back on save_cwd and restore_cwd.
49125         (fdopendir, fstatat, unlinkat): Likewise.
49126
49127         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
49128         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
49129
49130         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
49131         as second argument to va_arg.  Otherwise, some versions of gcc
49132         warn that `if this code is reached, the program will abort'.
49133
49134 2006-01-09  Jim Meyering  <jim@meyering.net>
49135
49136         Sync from coreutils.
49137         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
49138         Require openat-priv.h.
49139
49140 2006-01-09  Bruno Haible  <bruno@clisp.org>
49141
49142         * modules/strnlen (Include): Use strnlen.h.
49143
49144 2006-01-09  Bruno Haible  <bruno@clisp.org>
49145
49146         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
49147
49148 2006-01-09  Bruno Haible  <bruno@clisp.org>
49149
49150         * lib/sysexit_.h (EX_OK): New macro.
49151         Suggested by Martin Lambers <marlam@marlam.de>.
49152
49153 2006-01-09  Bruno Haible  <bruno@clisp.org>
49154
49155         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
49156         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
49157
49158 2006-01-09  Bruno Haible  <bruno@clisp.org>
49159
49160         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
49161         numbers.
49162
49163 2006-01-09  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
49166         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
49167         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
49168         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
49169
49170 2006-01-09  Bruno Haible  <bruno@clisp.org>
49171
49172         * build-aux/javacomp.sh.in: New file, moved from lib/.
49173         * modules/javacomp-script (Files): Update.
49174         (configure.ac): Add AC_CONFIG_FILES invocation.
49175         (EXTRA_DIST): Remove variable.
49176
49177         * build-aux/javaexec.sh.in: New file, moved from lib/.
49178         * modules/javaexec (Files): Update.
49179         (configure.ac): Add AC_CONFIG_FILES invocation.
49180         (EXTRA_DIST): Remove javaexec.sh.in.
49181
49182         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
49183         * modules/csharpcomp-script (Files): Update.
49184         (configure.ac): Add AC_CONFIG_FILES invocation.
49185         (EXTRA_DIST): Remove variable.
49186
49187         * build-aux/csharpexec.sh.in: New file, moved from lib/.
49188         * modules/csharpexec (Files): Update.
49189         (configure.ac): Add AC_CONFIG_FILES invocation.
49190         (EXTRA_DIST): Remove csharpexec.sh.in.
49191
49192 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49193
49194         Sync from coreutils.
49195
49196         Add POSIX ACL support
49197         * lib/acl.h (copy_acl, set_acl): Add declarations.
49198         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
49199         systems other than Linux.
49200         (chmod_or_fchmod): New function: use fchmod when possible,
49201         and chmod otherwise.
49202         (file_has_acl): Add a POSIX ACL implementation, with a
49203         Linux-specific subcase.
49204         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
49205         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
49206         acls are unsupported.
49207         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
49208         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
49209         are unsupported.
49210
49211 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
49212
49213         Sync from coreutils.
49214         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
49215
49216 2006-01-07  Bruno Haible  <bruno@clisp.org>
49217
49218         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
49219         gl_EARLY.
49220
49221 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49222
49223         * lib/strftime.c (tzname): Don't declare if it is already #defined.
49224         Problem reported for Mingw by Mark Junker.
49225
49226 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49227
49228         * README: Gnulib normally doesn't generate a tarball.
49229
49230 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
49231
49232         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
49233         long int, not int, for nanosecond counts, so that people who are
49234         used to POSIX struct timespec won't be surprised.  Reported by Jim
49235         Meyering.
49236
49237 2005-12-28  Bruno Haible  <bruno@clisp.org>
49238
49239         * build-aux/config.rpath: Update from GNU gettext.
49240
49241 2005-12-16  Jim Meyering  <jim@meyering.net>
49242
49243         * modules/fprintftime: New module.
49244         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
49245
49246 2005-12-16  Jim Meyering  <jim@meyering.net>
49247
49248         * m4/fprintftime.m4: New file.
49249
49250 2005-12-16  Jim Meyering  <jim@meyering.net>
49251
49252         * lib/fprintftime.c, lib/fprintftime.h: New files.
49253
49254 2005-12-15  Simon Josefsson  <jas@extundo.com>
49255
49256         * modules/socklen (configure.ac): Fix M4 macro name, to align with
49257         new m4/socklen.m4.
49258
49259 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49260
49261         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
49262         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
49263
49264 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49265
49266         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
49267         * lib/argp-help.c (fill_in_uparams): Check if the constructed
49268         struct uparams is valid. Fall back to the default values if it is
49269         not.
49270
49271 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49272
49273         * modules/argp (Files): Add argp-pin.c
49274         (Depends-on): dirname
49275         (lib_SOURCES): Add argp-pin.c
49276
49277 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49278
49279         * m4/argp.m4:  Check if program_invocation_name and
49280         program_invocation_short_name are declared and define appropriate
49281         macros if they are not.
49282
49283 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49284
49285         * lib/argp-help.c (__argp_base_name): New function
49286         (__argp_short_program_name): Rewrite using __argp_base_name
49287         * lib/argp-namefrob.h: Define program_invocation_name and
49288         program_invocation_short_name if requested
49289         (__argp_base_name): Add prototype
49290         * lib/argp-parse.c (argp_def): Use gettext wrappers
49291         (argp_default_parser): Use __argp_base_name
49292         * lib/argp-pin.c: New file. Defines program_invocation_name and
49293         program_invocation_short_name on systems that lack them.
49294
49295 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49296
49297         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
49298         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49299         porting problem reported by Georg Schwarz in
49300         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49301
49302 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
49303
49304         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
49305         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
49306         porting problem reported by Georg Schwarz in
49307         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
49308
49309 2005-12-05  Bruno Haible  <bruno@clisp.org>
49310
49311         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
49312         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
49313         Reported by Mark Junker <mjscod@gmx.de>.
49314
49315 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
49316
49317         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
49318         Use implementation from Albert Chin, with some
49319         comments/corrections by Stepan Kasal and myself.
49320
49321 2005-12-02  Bruno Haible  <bruno@clisp.org>
49322
49323         * gnulib-tool (func_import): Accept GPLed build tool modules when
49324         --lgpl is given.
49325         * modules/csharpcomp-script: New file.
49326         * modules/csharpcomp: Depend on it.
49327         * modules/javacomp-script: New file.
49328         * modules/javacomp: Depend on it.
49329         Suggested by Simon Josefsson.
49330
49331 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
49332
49333         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
49334         statement, to work around an HP-UX 10.20 compiler bug reported by
49335         Peter O'Gorman.
49336
49337 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49338
49339         * modules/savedir (Depends-on): Add openat.
49340
49341 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
49342
49343         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
49344         (uintmax_t) [defined uintmax_t]: Do not declare.
49345         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
49346         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
49347         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
49348         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
49349         sake of portability to weird hosts that C allows (though we don't
49350         know of any practical examples).
49351
49352         * lib/savedir.h (fdsavedir): New decl.
49353         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
49354         contains most of the former guts of savedir.
49355         (savedir): Use savedirstream.
49356         Include "openat.h".
49357
49358 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
49359
49360         * modules/obstack (Files): Add m4/ulonglong.m4.
49361         Problem reported by Davide Angelocola.
49362
49363 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49364
49365         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
49366         coreutils no longer futzes with rounding modes.
49367
49368 2005-11-14  Jim Meyering  <jim@meyering.net>
49369
49370         * lib/mkstemp-safer.c: Include <config.h>, required for possible
49371         replacement of mkstemp.
49372
49373 2005-11-10  Simon Josefsson  <jas@extundo.com>
49374
49375         * lib/readline.c: Remove EOL.
49376
49377 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49378
49379         * modules/gethrxtime (Depends-on): Add gettime.
49380
49381 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49382
49383         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
49384         or gettimeofday; no longer needed.
49385
49386 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
49387
49388         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
49389         time business.
49390         (gethrxtime) [! (HAVE_NANOUPTIME
49391         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
49392         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
49393         our own approximation.
49394
49395 2005-11-08  Eric Blake  <ebb9@byu.net>
49396
49397         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49398
49399 2005-11-08  Eric Blake  <ebb9@byu.net>
49400
49401         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
49402
49403 2005-11-04  Bruno Haible  <bruno@clisp.org>
49404
49405         * gnulib-tool: Implement --update mode.
49406
49407 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49408
49409         Fix porting problem reported by Theodoros V. Kalamatianos.
49410         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
49411         Don't assume that futimes failing means we must fail.
49412
49413 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
49414
49415         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
49416         variables to suggest the intended function of the PATH_MAX check.
49417
49418 2005-10-30  Kean Johnston  <jkj@sco.com>
49419
49420         Trivial changes to support SCO systems.
49421         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
49422         as PATH_MAX.
49423         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
49424         where __ptr is null when no I/O is pending.
49425
49426 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
49427
49428         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
49429         leave errno alone.  Problem reported by Dmitry V. Levin.
49430
49431 2005-10-28  Simon Josefsson  <jas@extundo.com>
49432
49433         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
49434         Test more.
49435
49436         * tests/test-gc-md2.c, tests/test-md2.c: New files.
49437
49438         * modules/md2, modules/md2-tests: New files.
49439
49440 2005-10-28  Simon Josefsson  <jas@extundo.com>
49441
49442         * m4/inet_ntop.m4: More tests.
49443
49444         * m4/gc-md2.m4, md2.m4: New file.
49445
49446 2005-10-28  Simon Josefsson  <jas@extundo.com>
49447
49448         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
49449         "restrict" keywords, as per POSIX.  Protect the function
49450         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
49451         Don't use K&R prototypes.  Check the sprintf return values.
49452         Re-define EAFNOSUPPORT if not present.  Indent.
49453
49454         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
49455         suggested by Bruno Haible <bruno@clisp.org>.
49456
49457         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
49458
49459         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
49460
49461         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
49462         libgcrypt).
49463
49464         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
49465
49466         * lib/md2.h, lib/md2.c: New files.
49467
49468 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
49469
49470         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
49471         errno alone.  Problem reported by Frederic Jolliton.
49472
49473 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49474
49475         * modules/verify (License): Change from GPL to LGPL.  This is a
49476         tiny module and there are apparently near-equivalents that are
49477         under the BSD license.
49478
49479 2005-10-24  Simon Josefsson  <jas@extundo.com>
49480
49481         * modules/sha1: Relicense to LGPL.
49482
49483 2005-10-24  Simon Josefsson  <jas@extundo.com>
49484
49485         * lib/md4.h: Shrink buffer size, now that we changed the type.
49486
49487 2005-10-23  Simon Josefsson  <jas@extundo.com>
49488
49489         * gnulib-tool (func_import): Fix --tests-base.
49490
49491 2005-10-22  Simon Josefsson  <jas@extundo.com>
49492
49493         * modules/arcfour (Depends-on): Need stdint.
49494
49495 2005-10-22  Simon Josefsson  <jas@extundo.com>
49496
49497         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
49498         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
49499
49500 2005-10-22  Simon Josefsson  <jas@extundo.com>
49501
49502         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
49503         suggested by Bruno Haible <bruno@clisp.org>.
49504
49505 2005-10-22  Simon Josefsson  <jas@extundo.com>
49506
49507         * lib/crc.h: Include stddef.h, for size_t.
49508
49509 2005-10-22  Simon Josefsson  <jas@extundo.com>
49510
49511         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
49512         arcfour_context struct (simplify test vector testing in GNU
49513         Shishi).
49514
49515 2005-10-21  Simon Josefsson  <jas@extundo.com>
49516
49517         * modules/des, modules/des-tests: New files.
49518
49519         * modules/gc-des, modules/gc-des-tests: New files.
49520
49521         * tests/test-des.c, tests/test-gc-des.c: New file.
49522
49523 2005-10-21  Simon Josefsson  <jas@extundo.com>
49524
49525         * modules/arctwo, modules/arctwo-tests: New files.
49526
49527         * tests/test-arctwo.c: New file.
49528
49529         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
49530
49531         * tests/test-gc-arctwo.c: New file.
49532
49533 2005-10-21  Simon Josefsson  <jas@extundo.com>
49534
49535         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
49536         Bruno Haible <bruno@clisp.org>.
49537
49538         * m4/gc-des.m4: New file.
49539
49540 2005-10-21  Simon Josefsson  <jas@extundo.com>
49541
49542         * m4/arctwo.m4: New file.
49543
49544         * m4/gc-arctwo.m4: New file.
49545
49546 2005-10-21  Simon Josefsson  <jas@extundo.com>
49547
49548         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
49549         block.
49550
49551 2005-10-21  Simon Josefsson  <jas@extundo.com>
49552
49553         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
49554         <bruno@clisp.org>.
49555
49556         * lib/hmac-sha1.c (hmac_sha1): Likewise.
49557
49558         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
49559         Bruno Haible <bruno@clisp.org>.
49560
49561         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
49562         <bruno@clisp.org>.
49563
49564 2005-10-21  Simon Josefsson  <jas@extundo.com>
49565
49566         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
49567
49568 2005-10-21  Simon Josefsson  <jas@extundo.com>
49569
49570         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
49571
49572 2005-10-21  Simon Josefsson  <jas@extundo.com>
49573
49574         * lib/des.h, lib/des.c: New files.
49575
49576         * lib/gc-gnulib.c: Support DES.c
49577
49578 2005-10-21  Simon Josefsson  <jas@extundo.com>
49579
49580         * lib/arctwo.h, lib/arctwo.c: New files.
49581
49582         * lib/gc-gnulib.c: Support ARCTWO.
49583
49584 2005-10-21  Simon Josefsson  <jas@extundo.com>
49585
49586         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
49587         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49588
49589 2005-10-21  Simon Josefsson  <jas@extundo.com>
49590
49591         * gnulib-tool (func_import, func_create_testdir): Define automake
49592         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
49593         Makefile.am snippet),
49594         suggested by Bruno Haible <bruno@clisp.org>.
49595
49596         * modules/gc (Makefile.am): Use it.
49597
49598 2005-10-21  Bruno Haible  <bruno@clisp.org>
49599
49600         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
49601         patch.
49602
49603 2005-10-19  Simon Josefsson  <jas@extundo.com>
49604
49605         * tests/test-gc-rijndael.c: New file.
49606
49607         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
49608
49609 2005-10-19  Simon Josefsson  <jas@extundo.com>
49610
49611         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
49612         interface too.
49613
49614 2005-10-19  Simon Josefsson  <jas@extundo.com>
49615
49616         * tests/test-gc-arcfour.c: New file.
49617
49618         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
49619
49620 2005-10-19  Simon Josefsson  <jas@extundo.com>
49621
49622         * modules/gc-md4, modules/gc-md4-tests: New file.
49623
49624         * tests/test-gc-md4.c: New file.
49625
49626 2005-10-19  Simon Josefsson  <jas@extundo.com>
49627
49628         * m4/gc-md4.m4: New file.
49629
49630 2005-10-19  Simon Josefsson  <jas@extundo.com>
49631
49632         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
49633         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
49634         <kasal@ucw.cz>.
49635
49636 2005-10-19  Simon Josefsson  <jas@extundo.com>
49637
49638         * m4/gc-arcfour.m4: New file.
49639
49640         * m4/gc-rijndael.m4: New file.
49641
49642 2005-10-19  Simon Josefsson  <jas@extundo.com>
49643
49644         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
49645
49646 2005-10-19  Simon Josefsson  <jas@extundo.com>
49647
49648         * lib/gc-gnulib.c: Support ARCFOUR.
49649
49650 2005-10-19  Simon Josefsson  <jas@extundo.com>
49651
49652         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
49653         support.
49654
49655         * lib/gc.h: Add ECB enum type.
49656
49657         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
49658
49659 2005-10-18  Simon Josefsson  <jas@extundo.com>
49660
49661         * tests/test-md5.c: New file.
49662
49663         * modules/md5-tests: New file.
49664
49665 2005-10-18  Simon Josefsson  <jas@extundo.com>
49666
49667         * tests/test-md4.c: New file.
49668
49669         * modules/md4, modules/md4-tests: New files.
49670
49671 2005-10-18  Simon Josefsson  <jas@extundo.com>
49672
49673         * m4/md4.m4: New file.
49674
49675 2005-10-18  Simon Josefsson  <jas@extundo.com>
49676
49677         * lib/md4.h, lib/md4.c: New files, based on md5.?.
49678
49679 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
49680
49681         * gnulib-tool (func_create_testdir): Omit the second check whether
49682         BUILT_SOURCES in nonempty.
49683
49684 2005-10-17  Simon Josefsson  <jas@extundo.com>
49685
49686         * tests/test-rijndael.c: New file.
49687
49688 2005-10-17  Simon Josefsson  <jas@extundo.com>
49689
49690         * modules/sha1: Depend on stdint instead of md5.
49691
49692         * modules/md5: Depend on stdint, remove uint32_t.
49693
49694 2005-10-17  Simon Josefsson  <jas@extundo.com>
49695
49696         * modules/gc-sha1-tests: New file.
49697
49698         * tests/test-gc-sha1.c: New file.
49699
49700 2005-10-17  Simon Josefsson  <jas@extundo.com>
49701
49702         * m4/md5.m4: Remove call to uint32_t.m4.
49703
49704 2005-10-17  Simon Josefsson  <jas@extundo.com>
49705
49706         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
49707
49708         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
49709         md5.h.
49710
49711         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
49712
49713         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
49714
49715 2005-10-17  Simon Josefsson  <jas@extundo.com>
49716
49717         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
49718
49719 2005-10-17  Simon Josefsson  <jas@extundo.com>
49720
49721         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
49722
49723 2005-10-17  Simon Josefsson  <jas@extundo.com>
49724
49725         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
49726
49727         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
49728
49729 2005-10-17  Bruno Haible  <bruno@clisp.org>
49730
49731         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
49732         that it can also be used in a test.
49733
49734 2005-10-16  Bruno Haible  <bruno@clisp.org>
49735
49736         * gnulib-tool (func_emit_tests_Makefile_am): Also define
49737         TESTS_ENVIRONMENT, so that individual tests can augment it.
49738
49739         * gnulib-tool (func_create_testdir): Use an intermediate target for
49740         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
49741         macros, like $(ALLOCA_H), which cannot be passed through the command
49742         line.
49743
49744 2005-10-15  Simon Josefsson  <jas@extundo.com>
49745
49746         * modules/rijndael-tests: New file.
49747
49748         * modules/rijndael: New file.
49749
49750 2005-10-15  Simon Josefsson  <jas@extundo.com>
49751
49752         * m4/rijndael.m4: New file.
49753
49754 2005-10-15  Simon Josefsson  <jas@extundo.com>
49755
49756         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
49757
49758         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
49759
49760 2005-10-14  Simon Josefsson  <jas@extundo.com>
49761
49762         * tests/test-arcfour.c: New file.
49763
49764         * modules/arcfour, modules/arcfour-tests: New files.
49765
49766 2005-10-14  Simon Josefsson  <jas@extundo.com>
49767
49768         * m4/arcfour.m4: New file.
49769
49770 2005-10-14  Simon Josefsson  <jas@extundo.com>
49771
49772         * lib/arcfour.h, lib/arcfour.c: New files.
49773
49774 2005-10-14  Roland McGrath  <roland@redhat.com>
49775
49776         Import from libc.  [BZ #1331]
49777         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
49778         macro argument.
49779         Reported by Matej Vela <vela@debian.org>.
49780
49781 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49782
49783         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
49784         include <wchar.h>; no longer needed.
49785
49786 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49787
49788         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
49789
49790 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
49791         and  Ulrich Drepper  <drepper@redhat.com>
49792
49793         Import from libc.
49794         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
49795         instead of inline stream orientation test and two separate
49796         function calls.  Pay no attention to USE_IN_LIBIO.
49797
49798 2005-10-13  Simon Josefsson  <jas@extundo.com>
49799
49800         * modules/gc-hmac-md5-tests: New file.
49801
49802         * tests/test-gc-hmac-sha1.c: New file.
49803
49804         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
49805
49806         * modules/gc-hmac-md5-tests: New file.
49807
49808         * tests/test-gc-md5.c: New file.
49809
49810         * modules/gc-md5-tests: New file.
49811
49812 2005-10-13  Simon Josefsson  <jas@extundo.com>
49813
49814         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
49815         Move memory allocation outside of loop.
49816
49817 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
49818
49819         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
49820         intermediate directory is in a read-only file system.  Problem
49821         reported by Eric Blake.
49822
49823 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
49824
49825         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
49826
49827 2005-10-12  Simon Josefsson  <jas@extundo.com>
49828
49829         * tests/test-hmac-sha1.c: New file.
49830
49831         * modules/hmac-sha1-tests: New file.
49832
49833         * modules/hmac-sha1: New file.
49834
49835 2005-10-12  Simon Josefsson  <jas@extundo.com>
49836
49837         * modules/gc-sha1: New file.
49838
49839 2005-10-12  Simon Josefsson  <jas@extundo.com>
49840
49841         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
49842
49843         * tests/test-gc-pbkdf2-sha1.c: New file.
49844
49845 2005-10-12  Simon Josefsson  <jas@extundo.com>
49846
49847         * modules/gc-md5, modules/gc-hmac-md5: New files.
49848
49849         * modules/gc (Files): Remove md5, memxor and hmac files.
49850
49851 2005-10-12  Simon Josefsson  <jas@extundo.com>
49852
49853         * m4/gc-pbkdf2-sha1.m4: New file.
49854
49855         * m4/gc-hmac-sha1.m4: New file.
49856
49857         * m4/gc-sha1: New file.
49858
49859         * m4/hmac-sha1.m4: New file.
49860
49861 2005-10-12  Simon Josefsson  <jas@extundo.com>
49862
49863         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
49864
49865         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
49866
49867 2005-10-12  Simon Josefsson  <jas@extundo.com>
49868
49869         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
49870         suggested by Bruno Haible <bruno@clisp.org>.
49871
49872 2005-10-12  Simon Josefsson  <jas@extundo.com>
49873
49874         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
49875
49876 2005-10-12  Simon Josefsson  <jas@extundo.com>
49877
49878         * lib/gc-pbkdf2-sha1.c: New file.
49879
49880         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
49881
49882 2005-10-12  Simon Josefsson  <jas@extundo.com>
49883
49884         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
49885
49886         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
49887
49888 2005-10-12  Simon Josefsson  <jas@extundo.com>
49889
49890         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
49891         GC_USE_HMAC_MD5, respectively.
49892
49893         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
49894         (gc_md5): Fix typo.
49895
49896         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
49897
49898         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
49899
49900         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
49901
49902 2005-10-12  Bruno Haible  <bruno@clisp.org>
49903
49904         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
49905         Reported by Stepan Kasal <kasal@ucw.cz>.
49906
49907 2005-10-11  Simon Josefsson  <jas@extundo.com>
49908
49909         * tests/test-crc.c: New file.
49910
49911         * modules/crc, modules/crc-tests: New files.
49912
49913 2005-10-11  Simon Josefsson  <jas@extundo.com>
49914
49915         * m4/crc.m4: New file.
49916
49917 2005-10-11  Simon Josefsson  <jas@extundo.com>
49918
49919         * lib/gc.h: Add gc_hash and gc_hash_buffer.
49920
49921         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
49922
49923         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
49924
49925 2005-10-11  Simon Josefsson  <jas@extundo.com>
49926
49927         * lib/crc.h, lib/crc.c: New files.
49928
49929         * lib/gc.h (gc_hash_buffer): Add doc.
49930
49931 2005-10-11  Bruno Haible  <bruno@clisp.org>
49932
49933         * modules/c-strcasestr: New file.
49934         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
49935
49936 2005-10-11  Bruno Haible  <bruno@clisp.org>
49937
49938         * modules/c-strcase: New file.
49939         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
49940
49941 2005-10-11  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/strcasecmp.c: Include limits.h.
49944         (strcasecmp): Avoid integer overflow on exotic platforms.
49945         * lib/strncasecmp.c: Include limits.h.
49946         (strncasecmp): Avoid integer overflow on exotic platforms.
49947         Reported by Paul Eggert.
49948
49949 2005-10-11  Bruno Haible  <bruno@clisp.org>
49950
49951         * lib/c-strcasestr.h: New file, from GNU gettext.
49952         * lib/c-strcasestr.c: New file, from GNU gettext.
49953
49954 2005-10-11  Bruno Haible  <bruno@clisp.org>
49955
49956         * lib/c-strcase.h: New file, from GNU gettext.
49957         * lib/c-strcasecmp.c: New file, from GNU gettext.
49958         * lib/c-strncasecmp.c: New file, from GNU gettext.
49959
49960 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49961
49962         * modules/mempcpy (License): GPL -> LGPL.
49963         * modules/strchrnul (License): Likewise.
49964         * modules/sysexits (License): Likewise.
49965
49966 2005-10-08  Simon Josefsson  <jas@extundo.com>
49967
49968         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
49969
49970 2005-10-07  Simon Josefsson  <jas@extundo.com>
49971
49972         * m4/memxor.m4: Remove gl_C_RESTRICT call.
49973
49974 2005-10-06  Simon Josefsson  <jas@extundo.com>
49975
49976         * tests/test-hmac-md5.c: New file.
49977
49978         * modules/hmac-md5-tests: New file.
49979
49980         * modules/hmac-md5: New file.
49981
49982 2005-10-06  Simon Josefsson  <jas@extundo.com>
49983
49984         * m4/hmac-md5.m4: New file.
49985
49986         * m4/memxor.m4: Require gl_C_RESTRICT.
49987
49988 2005-10-06  Simon Josefsson  <jas@extundo.com>
49989
49990         * lib/memxor.c (memxor): Avoid casts and warnings.
49991
49992 2005-10-06  Simon Josefsson  <jas@extundo.com>
49993
49994         * lib/hmac-md5.c: New file.
49995
49996         * lib/hmac.h: New file.
49997
49998 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49999
50000         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
50001         promotes to int, not unsigned int, to catch the AIX 5.3
50002         compiler bug.
50003
50004 2005-10-05  Simon Josefsson  <jas@extundo.com>
50005
50006         * modules/memxor: New file.
50007
50008         * modules/iconv (Files): Move config.rpath to havelib, it is used
50009         there.
50010
50011         * modules/havelib (Files): Add config.rpath.
50012
50013 2005-10-05  Simon Josefsson  <jas@extundo.com>
50014
50015         * m4/memxor.m4: New file.
50016
50017 2005-10-05  Simon Josefsson  <jas@extundo.com>
50018
50019         * lib/memxor.c (memxor): Fix compiler error.
50020
50021         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
50022         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
50023
50024         * lib/memxor.h, lib/memxor.c: New files.
50025
50026         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
50027         we assume all systems have it, suggested by Jim Meyering
50028         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
50029         any systems lack sys/socket.h; mingw32 is known to lack it, but we
50030         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
50031         same reasons.
50032
50033 2005-10-05  Simon Josefsson  <jas@extundo.com>
50034
50035         * config/srclist.txt: Add glibc bug 1423 for md5.h.
50036
50037 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50038
50039         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
50040         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
50041         needed, since the source code now assumes these .h files.
50042
50043 2005-10-05  Derek Price  <derek@ximbiot.com>
50044
50045         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
50046
50047 2005-10-05  Bruno Haible  <bruno@clisp.org>
50048
50049         * modules/stdint (License): Change to LGPL.
50050
50051 2005-10-04  Simon Josefsson  <jas@extundo.com>
50052
50053         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
50054         D. Baushke" <mdb@gnu.org>.
50055
50056 2005-10-04  Bruno Haible  <bruno@clisp.org>
50057
50058         * lib/verify.h (verify_true): Provide alternative definition for C++.
50059
50060 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
50061
50062         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
50063         (SSIZE_MAX): New macro, if not already defined.
50064         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
50065         than 2 GiB.
50066
50067 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50068
50069         Sync from coreutils.
50070         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
50071         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
50072         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
50073         ULLONG_MAX doesn't work with 2.7.2.1.
50074
50075 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50076
50077         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
50078         From Ben Pfaff.
50079
50080         * modules/exclude (Depends-on): Depend on verify.
50081         * modules/strtoimax (Depends-on): Likewise.
50082         * modules/utimecmp (Depends-on): Likewise.
50083
50084 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
50085
50086         * lib/exclude.c: Include verify.h.
50087         (verify): Remove.  All callers changed to use verify.h's version.
50088         * lib/strtoimax.c: Likewise.
50089         * lib/utimecmp.c: Likewis.e
50090
50091         Sync from coreutils.
50092         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
50093         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
50094         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
50095         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
50096         bother returning ENOSYS if settimeofday or stime fails; just let
50097         them return whatever errno they want to return.
50098         * lib/utimens.c: Include unistd.h, for dup2.
50099         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
50100         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
50101
50102 2005-10-02  Jim Meyering  <jim@meyering.net>
50103
50104         Sync from coreutils.
50105         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
50106         from glibc-2.2.5 that fails for read-only files.
50107
50108 2005-10-02  Jim Meyering  <jim@meyering.net>
50109
50110         Sync from coreutils.
50111         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
50112         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
50113         `#if HAVE_CONFIG_H'.
50114         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
50115         Remove AT_FDCWD test.
50116         Do not consume the fd unless successful.
50117         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
50118         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
50119         block, so that we don't even try to compile it if settimeofday is
50120         available.  This works around a compilation failure on OSF1 V5.1,
50121         due to stime requiring a `long int*' while tv_sec is `int'.
50122
50123 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
50124
50125         Sync from coreutils.
50126         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
50127         against `yes', rather than just testing for nonempty.
50128
50129 2005-10-01  Simon Josefsson  <jas@extundo.com>
50130
50131         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
50132         and Darwin.
50133
50134         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
50135         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
50136         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
50137         freeaddrinfo and gai_strerror are declared by the POSIX headers.
50138         Check if struct addrinfo is declared.
50139
50140 2005-10-01  Simon Josefsson  <jas@extundo.com>
50141
50142         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
50143         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
50144         AI_* and EAI_* definitions.  Protect function declarations.
50145
50146 2005-10-01  Jim Meyering  <jim@meyering.net>
50147
50148         Sync from coreutils.
50149
50150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
50151         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
50152         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
50153         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50154         in the inet and nsl libraries.  Required on Solaris 5.7.
50155
50156 2005-10-01  Jim Meyering  <jim@meyering.net>
50157
50158         Sync from coreutils.
50159         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
50160         in the inet and nsl libraries.  Required on Solaris 5.7.
50161
50162 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
50163
50164         * lib/getdelim.c (getdelim): Remove unused variables.
50165
50166 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50167
50168         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
50169         so that the code works even with ancient cpp.  Portability problem
50170         with GCC 2.7.2.1 reported by Thomas M.Ott.
50171
50172 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50173
50174         * modules/regex (Depends-on): Add strcase.
50175
50176         * modules/gethostname (Licence): Change from GPL to LGPL, since
50177         gethostname.c is a trivial implementation of a standard library
50178         function.
50179         * modules/poll (License): Change from GPL to LGPL, since it's
50180         derived from LGPL code.
50181
50182 2005-09-27  Jim Meyering  <jim@meyering.net>
50183
50184         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
50185         HAVE_CONFIG_H.
50186
50187         * lib/intprops.h (signed_type_or_expr__): Define.
50188         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
50189         for unsigned types.
50190
50191 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50192
50193         * lib/verify.h (verify_expr): Remove, replacing with:
50194         (verify_true): New macro that returns true instead of void.
50195         (verify_type__): Remove.
50196         (verify): Use verify_true rather than verify_type__.
50197
50198 2005-09-26  Bruno Haible  <bruno@clisp.org>
50199
50200         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
50201         is necessary.
50202         (lib_SOURCES): Remove mbchar.c.
50203         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
50204         (Files): Add m4/mbrtowc.m4.
50205         * modules/mbiter: Likewise.
50206         * modules/mbuiter: Likewise.
50207
50208 2005-09-26  Bruno Haible  <bruno@clisp.org>
50209
50210         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
50211         compile mbchar.c if they are not both present.
50212         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
50213         * m4/mbiter.m4 (gl_MBITER): Likewise.
50214         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
50215         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
50216         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
50217
50218 2005-09-25  Jim Meyering  <jim@meyering.net>
50219
50220         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
50221         also uses socklen_t.
50222
50223 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
50224
50225         * lib/utimens.c (ENOSYS): Define if not already defined.
50226         (futimens): Support having a null PATH if the file descriptor
50227         is nonnegative.
50228
50229         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
50230         Remove.
50231         (__attribute): Define to empty unless GCC 3.1 or later.
50232         This works around a core dump on OpenBSD 3.4, which has GCC
50233         2.95.3, which dumps core when given __attribute__(()).  It also
50234         simplifies other tests, since we really don't want to bother with
50235         worrying about which ancient version of GCC supported what.
50236         Original problem reported by Yoann Vandoorselaere, with part of
50237         the fix suggested by Derek Price.
50238
50239 2005-09-24  Jim Meyering  <jim@meyering.net>
50240
50241         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
50242         so we can once again use a positive bitfield width of 1 -- now we
50243         don't have to explain why we were using a bitfield width of 2.
50244
50245 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50246
50247         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
50248         and similarly for the other external symbols.  Problem reported
50249         by James Gallager.
50250
50251         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
50252         bug reported by Jim Meyering.
50253
50254         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
50255         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
50256         not needed, since socklen is a prerequisite module.
50257
50258 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
50259
50260         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
50261         Problem reported by Eric Blake.
50262         (getaddrinfo): Initialize se so that it's not garbage.
50263         Redo internal storage allocation so that it doesn't make unportable
50264         assumptions about alignment.
50265         Fix a memory leak.
50266
50267         * lib/utimens.c (futimens): Use futimesat if available.
50268         Prefer it to futimes since it doesn't have the futimes bug.
50269
50270         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
50271         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
50272         Instead, declare a function that returns a pointer to an array,
50273         and use verify_type__ to declare the size of the array.
50274         Problem and germ of a solution reported by Bruno Haible.
50275         (verify_type__): Use 2, not 1, for bitfield size, to avoid
50276         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
50277
50278 2005-09-23  Jim Meyering  <jim@meyering.net>
50279
50280         Sync from coreutils.
50281         Correct build failure (socklen_t not defined) on at least
50282         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
50283         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
50284
50285 2005-09-23  Jim Meyering  <jim@meyering.net>
50286
50287         * modules/getaddrinfo (Depends-on): Add socklen.
50288
50289 2005-09-23  Bruno Haible  <bruno@clisp.org>
50290
50291         * tests/test-verify.c: New file.
50292
50293 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50294
50295         Sync from coreutils.
50296
50297         * modules/argmatch (Depends-on): Add verify.
50298         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
50299         unistd-safer.
50300         * modules/save-cwd (Depends-on): Likewise.
50301
50302         * modules/openat (Files): Add lib/openat-die.c.
50303         (Depends-on): Remove error, exitfail.
50304         Add dirname.
50305
50306         * modules/verify: New file.
50307         * MODULES.html.sh (Diagnostics <assert.h>): New section,
50308         with "verify" module.
50309
50310 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50311
50312         Sync from coreutils.
50313
50314         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
50315         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
50316         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
50317         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
50318         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
50319         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
50320         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
50321         Don't bother checking for string.h, stdlib.h, unistd.h.
50322         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
50323         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
50324         module's job.
50325         * m4/jm-macros.m4 (gl_MACROS): Likewise.
50326         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
50327
50328         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
50329         (gl_GETDATE): Use it.
50330
50331         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
50332
50333 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50334
50335         Sync from coreutils.
50336
50337         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
50338         stat-time.h.
50339         * lib/argmatch.h: Include verify.h
50340         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
50341         (ARGMATCH_ASSERT): Remove; unused.
50342         * lib/canonicalize.c: Assume STDC_HEADERS.
50343         * lib/exclude.c: Include "strcase.h".
50344         * lib/regex_internal.h [!defined _LIBC]: Likewise.
50345         * lib/getusershell.c: Include stdio--.h rather than stdio.h
50346         and stdio-safer.h.
50347         (getusershell): Call fopen, not fopen_safer.
50348         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
50349         Do not include unistd-safer.h.
50350         (save_cwd): Don't call fd_safer; no longer needed
50351         now that we include fcntl--.h.
50352
50353         * lib/getdate.y (relative_time): New type.
50354         (RELATIVE_TIME_0): New constant.
50355         (parser_control): Use relative_time instead of doing it ourselves.
50356         (%union): Add new relative_time rel member.
50357         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
50358         Now typeless.
50359         (relunit, relunit_snumber): Now of type rel.
50360         (zone, rel, relunit, get_date): Adjust to above changes.
50361
50362         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
50363         Do not include unistd-safer.h.
50364         (getloadavg): Don't call fd_safer; no longer needed
50365         now that we include fcntl--.h.
50366
50367         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
50368         (make_dir_parents): Treat ENOSYS like EEXIST.
50369
50370         Improve quality of diagnostics on restore_cwd failure.
50371         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
50372         (make_dir_parents): Last arg is now int * (for errno), not bool *.
50373         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
50374         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
50375         each time through the loop.  Do not diagnose restore_cwd failure;
50376         that is the caller's job (and perhaps the caller does not care).
50377
50378         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
50379         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
50380         If the file already exists but is not a directory, don't bother
50381         to try to make its parents.
50382         Close potential file descriptor leak if we can't chdir("/") (!).
50383         Don't always return true if chdir($PWD) fails; return true only
50384         if the requested action was done successfully (except for the
50385         chdir($PWD)).
50386         Don't log final directory unless we actually made it.
50387         Refactor to avoid duplicate code to fix up permissions.
50388         Don't attempt to fix up parent permissions if chdir($PWD) fails.
50389
50390         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
50391         to make it a bit faster and (I hope) clearer.
50392         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
50393         Fix bug in formats like %2N.
50394
50395         * lib/verify.h: New file.
50396
50397 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
50398
50399         Sync from coreutils.
50400         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
50401
50402 2005-09-22  Jim Meyering  <jim@meyering.net>
50403
50404         Sync from coreutils.
50405
50406         * m4/lstat.m4 (gl_FUNC_LSTAT):
50407         Use AC_LIBSOURCES to require lstat.c and lstat.h.
50408         Remove obsolete comment.
50409         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
50410         * m4/xstrtod.m4: Likewise.
50411
50412         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
50413
50414 2005-09-22  Jim Meyering  <jim@meyering.net>
50415
50416         Sync from coreutils.
50417
50418         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
50419
50420         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
50421         the .tm_year member, since otherwise gcc-4.0 would now warn about
50422         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
50423
50424         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
50425         order to avoid an unsuppressible warning from gcc on 64-bit systems.
50426
50427         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
50428         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
50429         when run in a time zone for which daylight savings time is in effect
50430         for the starting date.
50431
50432         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
50433         stop us from restricting permissions of just-created absolute-named
50434         directories.
50435         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
50436         to restore initial working directory.
50437         * lib/mkdir-p.c (make_dir_parents): New parameter:
50438         different_working_dir, to tell caller if/when we change the working
50439         directory and are unable to return to the initial one.
50440         * lib/mkdir-p.h (make_dir_parents): Update prototype.
50441         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
50442         `return false'.  This fixes a bug introduced on 2004-07-30.
50443
50444         * lib/openat.c (fdopendir): Be sure to close the supplied
50445         file descriptor before returning.  This makes our replacement
50446         implementation a little closer to Solaris's, where fdopendir
50447         ties the file descriptor to the returned DIR* pointer.
50448         * lib/openat.c (unlinkat): New function.
50449         * lib/openat.h (unlinkat): Add prototype.
50450         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
50451         (openat_restore_fail): Rename from openat_restore_die.
50452         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
50453
50454         Provide an alternative to exiting immediately upon save_cwd or
50455         restore_cwd failure.  Now, an application can arrange e.g.,
50456         to perform a longjump in that case.
50457         * lib/openat.c: Include dirname.h.
50458         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
50459         (rpl_openat, fdopendir, fstatat): Call openat_save_die
50460         and openat_restore_die rather than calling error directly.
50461         Don't include "error.h" or "exitfail.h"; they're no longer needed.
50462
50463         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
50464         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
50465         define.
50466
50467         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
50468         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
50469                             int utc, int nanoseconds);
50470         Background:
50471         date should not have to allocate a megabyte of virtual memory to
50472         handle a format argument like +%1048575T.  When implemented with
50473         strftime, it must allocate such a buffer, use strftime to fill it
50474         in, print it, then free it.
50475         With fprintftime, it simply prints everything and exits.
50476         With no need for memory allocation, that's one fewer way to fail.
50477         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
50478         optional field width, not before, so we accept %9:z, not %:9z.
50479         (my_strftime): Be sure to use L_('x') for literals.
50480
50481         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
50482         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
50483         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
50484         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
50485         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
50486         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
50487         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
50488         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
50489         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
50490         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
50491         * lib/xgethostname.c, lib/xreadlink.c:
50492         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
50493
50494         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
50495         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
50496         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
50497         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50498         and don't include <sys/file.h>).
50499
50500 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
50501
50502         Sync from coreutils.
50503
50504         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
50505         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
50506         [!LDAV_DONE]: Avoid unused variable warning.
50507
50508 2005-09-21  Bruno Haible  <bruno@clisp.org>
50509
50510         * lib/unicodeio.h (unicode_to_mb): New declaration.
50511
50512 2005-09-20  Derek Price  <derek@ximbiot.com>
50513
50514         * lib/getaddrinfo.c: Don't include <netdb.h> included from
50515         getaddrinfo.h.
50516
50517 2005-09-20  Bruno Haible  <bruno@clisp.org>
50518
50519         * gnulib-tool: Remove trailing slashes from the values specified for
50520         --source-base, --m4-base, --tests-base, --aux-dir.
50521         Suggested by Simon Josefsson <jas@extundo.com>.
50522
50523 2005-09-20  Bruno Haible  <bruno@clisp.org>
50524
50525         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
50526         func_modules_to_filelist, func_import, func_create_testdir): Make all
50527         sorting results locale-independent, so that gnulib-cache.m4 doesn't
50528         change when gnulib-tool is invoked in a different locale.
50529
50530 2005-09-19  Simon Josefsson  <jas@extundo.com>
50531
50532         * m4/socklen.m4: Fix typo.
50533
50534 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50535
50536         Use a consistent style for including <config.h>.
50537         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
50538         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
50539         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
50540         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
50541         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
50542         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
50543         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
50544         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
50545         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
50546         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
50547         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
50548         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
50549         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
50550         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
50551         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
50552         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
50553         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
50554         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
50555         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
50556         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
50557         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
50558         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
50559         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
50560         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
50561         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
50562         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
50563         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
50564         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
50565         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
50566         lib/xstrtoumax.c, lib/yesno.c:
50567         Standardize inclusion of config.h.
50568         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
50569         lib/inttostr.h:  Removed inclusion of config.h from header files.
50570         * lib/inttostr.c:  Adjusted in-tree users.
50571         * lib/timespec.h: Remove superfluous warning to include config.h.
50572         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
50573         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
50574         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
50575         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
50576         config.h with HAVE_CONFIG_H.
50577
50578 2005-09-19  Jim Meyering  <jim@meyering.net>
50579
50580         * modules/pathmax (License): Change to LGPL.
50581
50582 2005-09-19  Derek Price  <derek@ximbiot.com>
50583
50584         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
50585
50586 2005-09-19  Bruno Haible  <bruno@clisp.org>
50587
50588         * gnulib-tool (import): Provide default for --tests-base.
50589
50590 2005-09-19  Bruno Haible  <bruno@clisp.org>
50591
50592         * doc/quote.texi: New file, extracted from gnulib.texi.
50593         * doc/ctime.texi: New file, extracted from gnulib.texi.
50594         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
50595         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
50596         * doc/gnulib.texi: Include them.
50597
50598 2005-09-18  Bruno Haible  <bruno@clisp.org>
50599
50600         Portability fix.
50601         * gnulib-tool (func_readlink): New function.
50602         (func_ln_if_changed): Use it.
50603
50604 2005-09-18  Bruno Haible  <bruno@clisp.org>
50605
50606         * gnulib-tool: Support --with-tests also with --import.
50607         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
50608         (func_import): Use variables $testsbase and $inctests. Emit a
50609         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
50610         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
50611         SUBDIRS += $testsdir.
50612         (func_create_testdir): Update.
50613
50614 2005-09-18  Bruno Haible  <bruno@clisp.org>
50615
50616         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
50617         instead of $dry_run.
50618         (func_cp_if_changed, func_mv_if_changed): Remove functions.
50619         (func_ln_if_changed): Don't handle dry-run here.
50620         (func_import): In dry-run mode, detect more precisely which actions
50621         would be performed, and don't use "...ing" verbs.
50622
50623 2005-09-18  Bruno Haible  <bruno@clisp.org>
50624
50625         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
50626         (func_import): Use join on two temporary files instead of three nested
50627         loops, in order to determine which files are new or old.
50628
50629 2005-09-18  Bruno Haible  <bruno@clisp.org>
50630
50631         * gnulib-tool (func_import): Comment out code that spits out the
50632         new files with --dry-run.
50633
50634 2005-09-18  Bruno Haible  <bruno@clisp.org>
50635
50636         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
50637
50638 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50639
50640         * lib/stat-time.h: New file.
50641         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
50642         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
50643         in a different way.
50644         (timespec_cmp): New function.
50645         * lib/utimecmp.c: Include stat-time.h.
50646         (SYSCALL_RESOLUTION): Depend on whether various struct stat
50647         members exist, not on the obsolescent ST_MTIM_NSEC.
50648         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
50649
50650 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50651
50652         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
50653
50654 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
50655
50656         * MODULES.html.sh (File system functions): Add stat-time.
50657         * modules/stat-time: New file.
50658         * modules/timespec (Files): Remove m4/st_mtim.m4; this
50659         is now done in a different way, by the stat-time module.
50660         * modules/utimecmp (Depends-on): Add stat-time.
50661
50662 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
50663
50664         * m4/st_mtim.m4: Remove.  Superseded by...
50665         * m4/stat-time.m4: New file.
50666         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
50667         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
50668
50669 2005-09-15  Derek Price  <derek@ximbiot.com>
50670
50671         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
50672
50673 2005-09-15  Derek Price  <derek@ximbiot.com>
50674
50675         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
50676         * lib/regex_internal.c: Ditto, using this...
50677         (__GNUC_PREREQ): ...new macro.
50678         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
50679         using...
50680         (__GNUC_PREREQ): ...this new macro.
50681
50682         * lib/strstr.h: Include string.h. Define strstr as a macro here.
50683
50684 2005-09-15  Derek Price  <derek@ximbiot.com>
50685             Paul Eggert  <eggert@cs.ucla.edu>
50686
50687         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
50688         changes, consolidating in...
50689         * lib/regex_internal.h: ...this file.
50690
50691 2005-09-13  Jim Meyering  <jim@meyering.net>
50692
50693         * lib/canon-host.c: Filter through gnu indent and reword comments
50694         slightly.
50695         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
50696
50697 2005-09-13  Derek Price  <derek@ximbiot.com>
50698
50699         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
50700         failure.
50701         Reported by Jim Meyering  <jim@meyering.net>.
50702
50703 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50704
50705         * lib/base64.c: Typo.
50706         (base64_encode): Put b64str in initialized data section.
50707
50708 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
50709
50710         Merge glibc and coreutils changes into gnulib, plus a few
50711         extra fixes.
50712         * lib/md5.c: Use #error rather than a string.
50713         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
50714         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
50715         (__attribute__): Define to empty for non recent-GCC.
50716         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
50717         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
50718         Renamed from their non-__ counterparts, with new macros replacing
50719         them if not _LIBC.  Add __THROW attribute.
50720         (rol): Remove.
50721         (struct md5_ctx): Align buffer if using GCC.
50722         * lib/sha1.h (struct sha1_ctx): Likewise.
50723         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
50724         The old name was backwards.
50725         (NOTSWAP): Remove; not used.
50726         (rol): New macro, moved here from md5.h.
50727         (sha1_process_block): Remove a FIXME that doesn't make sense.
50728
50729 2005-09-12  Derek Price  <derek@ximbiot.com>
50730
50731         Return usable errors from canon-host.
50732         * lib/canon-host.h: New file.
50733         * lib/canon-host.c (canon_host): Wrap...
50734         (canon_host_r): ...this new function, which now relies exclusively on
50735         getaddrinfo.
50736         (ch_strerror): New function.
50737         (last_cherror): New global.
50738         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
50739         interface.
50740         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
50741         void *.
50742         (freeaddrinfo): Free ai->ai_canonname when set.
50743
50744 2005-09-12  Derek Price  <derek@ximbiot.com>
50745
50746         Make canon-host require getaddrinfo.
50747         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
50748         AC_LIBSOURCE canon-host.h.  Call...
50749         (gl_PREREQ_CANON_HOST): ...this new function, which requires
50750         gl_GETADDRINFO.
50751         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
50752
50753 2005-09-12  Derek Price  <derek@ximbiot.com>
50754
50755         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
50756         LGPL.
50757         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
50758
50759 2005-09-12  Derek Price  <derek@ximbiot.com>
50760
50761         * lib/gai_strerror.c: Include config.h when available.  Include
50762         getaddrinfo.h before other headers to test interface.
50763         Reported by Larry Jones <lawrence.jones@ugs.com>.
50764
50765 2005-09-12  Derek Price  <derek@ximbiot.com>
50766             Paul Eggert  <eggert@cs.ucla.edu>
50767
50768         * modules/glob (Files): Add glob-libc.h.
50769
50770 2005-09-12  Derek Price  <derek@ximbiot.com>
50771             Paul Eggert  <eggert@cs.ucla.edu>
50772
50773         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
50774         glob_.h, glob-libc.h.
50775         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
50776
50777 2005-09-12  Derek Price  <derek@ximbiot.com>
50778             Paul Eggert  <eggert@cs.ucla.edu>
50779
50780         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
50781         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
50782         protecting things that should be done only in gnulib contexts.
50783         * lib/glob_.h: New file, containing only the glob things needed for
50784         gnulib.
50785         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
50786         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
50787         (glob, globfree, glob_pattern_p): Now defined simply in terms of
50788         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
50789         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
50790         and to respect the namespace rules better.
50791
50792 2005-09-08  Simon Josefsson  <jas@extundo.com>
50793
50794         * modules/socklen: New file.
50795
50796 2005-09-08  Simon Josefsson  <jas@extundo.com>
50797
50798         * m4/socklen.m4: New file.
50799
50800 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50801
50802         * modules/utimens (Files): Add m4/utimbuf.m4, since
50803         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
50804         Reported by Sergey Poznyakoff.
50805
50806 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50807
50808         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
50809         definitions, since that's the preferred style in glibc.
50810         Fix a minor spacing issue, and update copyright notice to match
50811         glibc's.
50812
50813 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50814
50815         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
50816
50817 2005-09-06  Simon Josefsson  <jas@extundo.com>
50818
50819         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
50820         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
50821
50822 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50823
50824         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
50825         warning.
50826
50827 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
50828
50829         * config/srclist.txt: Add glibc bug 1302.
50830
50831 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
50832
50833         Change bitset word type from unsigned int to unsigned long int,
50834         as this has better performance on typical 64-bit hosts.
50835         Port bitset code to hosts with unusual word sizes.
50836         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
50837         (build_collating_symbol):
50838         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
50839         argument is a bitset.  This is merely a style issue, but it makes
50840         it clearer that an entire array is expected.
50841         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
50842         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
50843         Port to the case where bitset_word is not the same as unsigned int.
50844         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
50845         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
50846         Likewise.
50847         * lib/regexec.c (check_dst_limits_calc_pos_1,
50848         check_subexp_matching_top):
50849         (build_trtable, group_nodes_into_DFAstates):
50850         Likewise.
50851         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
50852         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
50853         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
50854         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
50855         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
50856         * lib/regcomp.c (optimize_subexps, lower_subexp):
50857         Work even if bitset_word has holes in its bitwise representation.
50858         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
50859         * lib/regexec.c (check_dst_limits_calc_pos_1,
50860         check_subexp_matching_top):
50861         Likewise.
50862         * lib/regex_internal.c (re_string_reconstruct):
50863         Don't assume UCHAR_MAX == 255.
50864         * lib/regex_internal.h (bitset_set_all): Likewise.
50865         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
50866         All uses changed.
50867         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
50868         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
50869         All uses changed.
50870         (BITSET_WORD_MAX): New macro.
50871         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
50872         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
50873         (bitset_empty, bitset_copy):
50874         Prefer sizeof (bitset) to multiplying it out ourselves.
50875         (bitset_not_merge): Remove; unused.
50876         (bitset_contain): Return bool, not unsigned int with one bit on.
50877         All callers changed.
50878         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
50879         alignment than re_node_set; do this by defining a new internal
50880         type struct dests_alloc and using it to allocate memory.
50881
50882 2005-09-05  Bruno Haible  <bruno@clisp.org>
50883
50884         * gnulib-tool (func_import): Fix comparison in handling of symbolic
50885         links.
50886
50887 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
50888
50889         * modules/size_max (Makefile.am): Add size_max.h
50890
50891 2005-09-04  Derek Price  <derek@ximbiot.com>
50892
50893         * gnulib-tool (func_import): Fix reversed $symbolic logic.
50894
50895 2005-09-03  Simon Josefsson  <jas@extundo.com>
50896
50897         * gnulib-tool: Fix typo.
50898
50899 2005-09-03  Simon Josefsson  <jas@extundo.com>
50900
50901         * config/srclist.txt: Add glibc bug 1293.
50902
50903 2005-09-03  Derek Price  <derek@ximbiot.com>
50904
50905         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
50906         From Larry Jones <lawrence.jones@ugs.com>.
50907
50908 2005-09-02  Simon Josefsson  <jas@extundo.com>
50909
50910         * modules/socklen: New file.
50911
50912 2005-09-02  Simon Josefsson  <jas@extundo.com>
50913
50914         * modules/havelib: New module.
50915
50916         * modules/gettext, modules/iconv, modules/lock, modules/readline:
50917         Use havelib.
50918
50919 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50920
50921         Check for arithmetic overflow when calculating sizes, to prevent
50922         some buffer-overflow issues.  These patches are conservative, in the
50923         sense that when I couldn't determine whether an overflow was possible,
50924         I inserted a run-time check.
50925         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
50926         macros.
50927         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
50928         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
50929         (re_xnrealloc, re_x2nrealloc): New inline functions.
50930         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
50931         parse_bracket_exp):
50932         (build_equiv_class, build_charclass): Check for arithmetic overflow
50933         in size expression calculations.
50934         * lib/regex_internal.c (re_string_realloc_buffers):
50935         (build_wcs_upper_buffer, re_node_set_add_intersect):
50936         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
50937         (re_dfa_add_node, register_state): Likewise.
50938         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
50939         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
50940         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
50941         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
50942
50943 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
50944
50945         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
50946         m4/ulonglong.m4.  Problem reported by Martin Lambers.
50947
50948 2005-09-02  Bruno Haible  <bruno@clisp.org>
50949
50950         Support for lib vs. lib64 distinction on biarch platforms.
50951         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
50952         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
50953         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
50954
50955 2005-09-02  Bruno Haible  <bruno@clisp.org>
50956
50957         * gnulib-tool (import): In the other first-use case, provide defaults
50958         as well.
50959
50960 2005-09-02  Bruno Haible  <bruno@clisp.org>
50961
50962         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
50963         patches not yet found in the latest gettext release.
50964
50965 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50966
50967         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
50968         to avoid a collision with bits/local_lim.h in glibc.
50969         All uses changed.  Problem reported by Dmitry V. Levin in
50970         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
50971
50972         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
50973         bugs in int versus size_t comparisons.
50974         (re_string_context_at): Fix bug where the code assumed that
50975         Idx is signed.
50976
50977         Use bool where appropriate.
50978         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
50979         All callers changed.
50980         (calc_eclosure_iter): Likewise, for ROOT arg.
50981         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
50982         (build_charclass_op): Likewise, for NON_MATCH arg.
50983         * lib/regex_internal.c (re_string_allocate, re_string_construct):
50984         (re_string_construct_common): Likewise, for ICASE arg.
50985         * lib/regexec.c (re_search_2_stub, re_search_stub):
50986         Likewise, for RET_LEN arg.
50987         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
50988         (set_regs): Likewise, for FL_BACKTRACK arg.
50989         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
50990         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
50991         (calc_eclosure_iter, parse_bracket_exp):
50992         Use bool for internal variables that are booleans.
50993         * lib/regexec.c (re_search_internal, check_matching,
50994         proceed_next_node):
50995         (set_regs, build_sifted_states, sift_states_bkref):
50996         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
50997         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
50998         (find_collation_sequence_value):
50999         Likewise.
51000         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
51001         (re_node_set_compare):
51002         Return bool, not int. All callers changed.
51003         * lib/regexec.c (check_halt_node_context, check_dst_limits):
51004         (build_trtable, check_node_accept): Likewise.
51005         * lib/regex_internal.h: Include stdbool.h.
51006
51007         Fix bugs uncovered when converting to bool.
51008         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
51009         failure instead of charging ahead blindly.
51010         * lib/regex_internal.c (register_state): Likewise.
51011         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
51012         for freeing internal storage.
51013         (group_nodes_into_DFA_states): Use unsigned int, not int, for
51014         bitset pieces used as boolean, to avoid undefined behavior
51015         on hosts that do int overflow checking.
51016
51017 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51018
51019         * config/srclist.txt: Add glibc bugs 1285-1287.
51020
51021 2005-09-01  Jim Meyering  <jim@meyering.net>
51022
51023         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
51024         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
51025         Require gl_STAT_MACROS, too.
51026
51027 2005-09-01  Bruno Haible  <bruno@clisp.org>
51028
51029         * gnulib-tool (import): In the first-use case, provide defaults.
51030
51031 2005-09-01  Bruno Haible  <bruno@clisp.org>
51032
51033         * gnulib-tool (func_import): Remove the .tmp files.
51034
51035 2005-09-01  Bruno Haible  <bruno@clisp.org>
51036
51037         * gnulib-tool (func_import): Fix handling of symbolic links.
51038
51039 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51040
51041         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
51042         old glibc regex code mishandles strings longer than 2**31 bytes.
51043         This patch fixes this when the regex code is used in gnulib
51044         (i.e., outside glibc).
51045
51046         This patch should not affect the use of the regex code inside
51047         glibc.  No doubt this problem also needs to be handled for glibc
51048         as well, but the result will be an incompatible change to the
51049         glibc ABI, and the old ABI will have to be supported too.  That
51050         can be the the subject for another patch.
51051
51052         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
51053         governing whether the rest of this patch is active.  By default,
51054         the macro is disabled and the patch has no effect.
51055         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
51056         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
51057         (struct re_pattern_buffer, re_search, re_search_2, re_match):
51058         (re_match_2, re_set_registers): Use the new types.
51059         * lib/regex_internal.h (Idx, re_hashval_t): New types.
51060         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
51061         New macros.
51062         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
51063         (re_string_context_at, bin_tree_t, re_dfastate_t):
51064         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
51065         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
51066         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
51067         (re_string_char_size_at, re_string_wchar_at):
51068         (re_string_elem_size_at):
51069         Use the new types and macros to port to 64-bit hosts.
51070         Use unsigned types for internal values, so that the code
51071         mostly works even for arrays larger than SSIZE_MAX.
51072         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
51073         (search_duplicated_node, calc_eclosure_iter, fetch_number):
51074         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
51075         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
51076         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
51077         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
51078         (calc_inveclosure, parse_dup_op, build_range_exp):
51079         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
51080         (fetch_number, create_token_tree, mark_opt_subexp):
51081         Likewise.
51082         * lib/regex_internal.c (re_string_construct_common,
51083         create_ci_newstate):
51084         (create_cd_newstate, re_string_allocate, re_string_construct):
51085         (re_string_realloc_buffers, build_wcs_upper_buffer):
51086         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51087         (re_string_reconstruct, re_string_peek_byte_case):
51088         (re_string_fetch_byte_case, re_string_context_at):
51089         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51090         (re_node_set_init_copy, re_node_set_add_intersect):
51091         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51092         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51093         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51094         (re_acquire_state, re_acquire_state_context, register_state):
51095         Likewise.
51096         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
51097         search_cur_bkref_entry):
51098         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
51099         (re_search_internal, re_search_2_stub, re_search_stub)
51100         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
51101         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
51102         (update_cur_sifted_state, check_dst_limits):
51103         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51104         (check_subexp_limits, sift_states_bkref, merge_state_array):
51105         (check_subexp_matching_top, get_subexp, get_subexp_sub):
51106         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
51107         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51108         (expand_bkref_cache, check_node_accept_bytes):
51109         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
51110         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
51111         (acquire_init_state_context, check_halt_node_context):
51112         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
51113         (sift_states_backward, clean_state_log_if_needed):
51114         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
51115         (find_recover_state, transit_state_sb, transit_state_mb):
51116         (transit_state_bkref, build_trtable, match_ctx_clean):
51117         Likewise.
51118         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
51119         to work around an assumption that REG_MISSING is negative.
51120
51121         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
51122         (seek_collating_symbol_entry) [defined _LIBC]:
51123         (lookup_collation_sequence_value) [defined _LIBC]:
51124         (build_range_exp, build_collating_symbol) [defined _LIBC]:
51125         Use prototypes rather than old-style function definitions.
51126         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
51127         (transit_state_sb) [0]:
51128         (find_collation_sequence_value) [defined _LIBC]: Likewise.
51129
51130         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
51131         rm_eo.
51132
51133         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
51134         (optimize_subexps, lower_subexp):
51135         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
51136         since the signed shift might overflow.  Use 1u<<31 instead.
51137         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
51138         Likewise.
51139         * lib/regexec.c (check_dst_limits_calc_pos_1,
51140         check_subexp_matching_top): Likewise.
51141
51142         * lib/regcomp.c (optimize_subexps, lower_subexp):
51143         Use CHAR_BIT rather than 8, for clarity.
51144         * lib/regexec.c (check_dst_limits_calc_pos_1):
51145         (check_subexp_matching_top): Likewise.
51146         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
51147         have to worry about portability issues when shifting it left.
51148         Remove no-longer-needed test for table_size > 0.
51149         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
51150         in a word, as the resulting behavior is undefined.
51151         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
51152         in one case, a <= should have been an <, and in another case the
51153         whole test was missing.
51154         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
51155         the standard name CHAR_BIT.
51156         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
51157         this is not true on one's complement and signed-magnitude hosts.
51158
51159         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
51160         next_last_offset.
51161         (struct re_dfa_t): Remove unused member states_alloc.
51162         * lib/regcomp.c (init_dfa): Don't initialize unused members.
51163
51164 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51165
51166         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
51167         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
51168         and large-file glibc and in 32-bit large-file Solaris.
51169
51170 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51171
51172         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
51173         lengths fit in regoff_t; this isn't true if regoff_t is the same
51174         width as size_t.
51175         * lib/regex.c (re_search_internal): 5th arg is LAST_START
51176         (= START + RANGE) instead of RANGE.  This avoids overflow
51177         problems when regoff_t is the same width as size_t.
51178         All callers changed.
51179         (re_search_2_stub): Check for overflow when adding the
51180         sizes of the two strings.
51181         (re_search_stub): Check for overflow when adding START
51182         to RANGE; if it occurs, substitute the extreme value.
51183
51184 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51185
51186         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
51187
51188 2005-08-31  Jim Meyering  <jim@meyering.net>
51189
51190         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
51191         a pointer-to-const.
51192         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
51193         (register_state): Likewise.
51194         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
51195         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
51196         (group_nodes_into_DFAstates): Likewise.
51197
51198 2005-08-31  Jim Meyering  <jim@meyering.net>
51199
51200         * check-module: Add a FIXME comment.
51201
51202 2005-08-31  Eric Blake  <ebb9@byu.net>
51203
51204         * modules/unistd-safer (Files): Add unistd--.h.
51205         * modules/stdio-safer (Files): Add stdio--.h.
51206
51207 2005-08-31  Derek Price  <derek@ximbiot.com>
51208
51209         * lib/getdelim.c (getdelim): Return EOF on EOF.
51210         Reported by Larry Jones <lawrence.jones@ugs.com>.
51211
51212 2005-08-31  Bruno Haible  <bruno@clisp.org>
51213
51214         Avoid unnecessary diffs in the generated lib/Makefile.am.
51215         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
51216         the generated files.
51217         (func_import): Don't set cmd.
51218
51219 2005-08-31  Bruno Haible  <bruno@clisp.org>
51220
51221         * lib/strstr.c: Include <stddef.h>, for NULL.
51222         * lib/strcasestr.c: Likewise.
51223         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51224
51225 2005-08-31  Bruno Haible  <bruno@clisp.org>
51226
51227         * gnulib-tool: New option --macro-prefix.
51228         (func_import): Use macro_prefix.
51229         (import): Handle option --macro-prefix.
51230
51231 2005-08-31  Bruno Haible  <bruno@clisp.org>
51232
51233         * gnulib-tool (import): Rename most ac_* variables to cached_*.
51234         Also use new variables cached_lgpl, cached_libtool.
51235
51236 2005-08-31  Bruno Haible  <bruno@clisp.org>
51237
51238         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
51239         always instantiating them.
51240
51241 2005-08-31  Bruno Haible  <bruno@clisp.org>
51242
51243         * gnulib-tool (func_import): Read the previous cached settings
51244         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
51245         earlier added by gnulib but are now dropped. Warn when a gnulib file
51246         overwrites a non-gnulib file.
51247
51248 2005-08-31  Bruno Haible  <bruno@clisp.org>
51249
51250         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
51251         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
51252         projects that don't keep autogenerated files in CVS. Put into
51253         actioncmd only the specified modules, not the transitive closure.
51254
51255 2005-08-31  Bruno Haible  <bruno@clisp.org>
51256
51257         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
51258         Create directories that shall be filled.
51259         (import): Don't look for gl_* macros in configure.ac. Recurse across
51260         all directories containing a gnulib-cache.m4 files, if meaningful.
51261
51262 2005-08-31  Bruno Haible  <bruno@clisp.org>
51263
51264         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
51265         (import): Set seen_libtool when we see gl_LIBTOOL.
51266
51267 2005-08-31  Bruno Haible  <bruno@clisp.org>
51268
51269         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
51270         declaration macro definitions from generated gnulib.m4.
51271
51272 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
51273
51274         * lib/iconvme.h: Add prototype for iconv_alloc.
51275
51276 2005-08-29  Simon Josefsson  <jas@extundo.com>
51277
51278         * lib/iconvme.c: Fix errno.
51279
51280 2005-08-29  Bruno Haible  <bruno@clisp.org>
51281
51282         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
51283         that it works when the directory contains spaces.
51284
51285 2005-08-29  Bruno Haible  <bruno@clisp.org>
51286
51287         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
51288
51289 2005-08-29  Bruno Haible  <bruno@clisp.org>
51290
51291         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
51292         Emit more advice.
51293
51294 2005-08-29  Bruno Haible  <bruno@clisp.org>
51295         and Stepan Kasal  <kasal@ucw.cz>
51296
51297         * check-module: If more parameters are given, check each of them
51298         separately; add more exceptions, as noted by Jim Meyering.
51299         (check_module): New procedure.
51300         (%exempt_header): Now contains all exceptions.
51301
51302 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
51303
51304         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
51305
51306 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
51307
51308         * lib/iconvme.c: Split iconv_string into iconv_alloc.
51309
51310 2005-08-28  Bruno Haible  <bruno@clisp.org>
51311
51312         * m4/gnulib-tool.m4: New file.
51313
51314 2005-08-27  Jim Meyering  <jim@meyering.net>
51315
51316         * modules/unistd-safer (Files): Add pipe-safer.c.
51317         * modules/fcntl-safer (Files): Add creat-safer.c.
51318
51319 2005-08-27  Jim Meyering  <jim@meyering.net>
51320
51321         * m4/stdlib-safer.m4: New file.  From coreutils.
51322         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
51323         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
51324         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
51325         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
51326         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
51327
51328 2005-08-27  Jim Meyering  <jim@meyering.net>
51329
51330         * lib/fopen-safer.c: Merge minor changes from coreutils.
51331         * lib/dup-safer.c: Likewise.
51332         * lib/fd-safer.c: Likewise.
51333
51334         Merge from coreutils.
51335         * lib/stdio--.h: New file.
51336         * lib/stdlib--.h: New file.
51337         * lib/mkstemp-safer.c: New file.
51338
51339         GNU tar needs these.
51340         * lib/pipe-safer.c: New file.
51341         * lib/creat-safer.c: New file.
51342         * lib/fcntl--.h (creat): Define to creat_safer.
51343         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
51344         * lib/unistd--.h (pipe): Define to pipe_safer.
51345         * lib/unistd-safer.h: Declare pipe_safer.
51346
51347 2005-08-26  Simon Josefsson  <jas@extundo.com>
51348
51349         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
51350         Haible <bruno@clisp.org>.
51351
51352 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
51353
51354         * lib/regex_internal.h: Remove all references to
51355         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
51356         or better.
51357         (bitset_not, bitset_merge, bitset_not_merge):
51358         (bitset_mask, re_string_allocate, re_string_construct):
51359         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
51360         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
51361         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
51362         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
51363         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51364         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51365         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
51366         (re_acquire_state_context):
51367         Remove unnecessary forward decls.
51368         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
51369         Put __attribute at function definition,
51370         now that the function decl has been removed.
51371         * lib/regex_internal.c (re_string_peek_byte_case):
51372         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
51373         Likewise.
51374
51375 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
51376
51377         * m4/regex.m4: Add AC_PREREQ(2.50).
51378         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
51379
51380 2005-08-25  Simon Josefsson  <jas@extundo.com>
51381
51382         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
51383         __fsetlocking.
51384
51385 2005-08-25  Simon Josefsson  <jas@extundo.com>
51386
51387         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
51388         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
51389         GLIBC specific code.
51390
51391 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51392
51393         Make regex safe for g++.  This fixes one real bug (an "err"
51394         that should have been "*err").  g++ problem reported by
51395         Sam Steingold.
51396         * lib/regex_internal.h (re_calloc): New macro, consistent with
51397         re_malloc etc.  All callers of calloc changed to use re_calloc.
51398         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
51399         not int.  All callers changed.
51400         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
51401         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
51402         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
51403         (find_recover_state): Change "err" to "*err"; this fixes what
51404         appears to be a real bug.
51405         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
51406         versus int.
51407
51408 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51409
51410         * modules/regex (Depends-on): Add malloc, since the code
51411         assumes that !malloc(0) means failure.
51412
51413 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51414
51415         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
51416
51417         alloca modernization/simplification for regex.
51418         * lib/regex.c: Remove portability cruft for alloca.  This no longer
51419         needs to be at the start of the file, and can be moved into
51420         regex_internal.h and simplified.
51421         * lib/regex_internal.h: Include <alloca.h>.
51422         (__libc_use_alloca) [!defined _LIBC]: New macro.
51423         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
51424         now works outside glibc.
51425
51426 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51427
51428         * config/srclist.txt: Add glibc bugs 1241, 1245.
51429
51430 2005-08-25  Jim Meyering  <jim@meyering.net>
51431
51432         * lib/open-safer.c: Include <config.h>.
51433         Otherwise, we'd lose LARGEFILE support in any file using
51434         e.g. "fcntl--.h"
51435
51436 2005-08-25  Bruno Haible  <bruno@clisp.org>
51437
51438         * m4/minmax.m4: Require autoconf 2.52.
51439         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
51440         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
51441         alternatives of translit over the alphabet.
51442         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
51443
51444 2005-08-24  Simon Josefsson  <jas@extundo.com>
51445
51446         * tests/test-getpass.c: New file.
51447
51448 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51449
51450         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
51451         for GNU regex features.
51452
51453 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51454
51455         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
51456         * lib/regex.h (regerror): Likewise.
51457
51458         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
51459         requires this.  (The code never needed it.)
51460
51461         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
51462         All uses of recently-renamed identifiers changed to use the new,
51463         POSIX-compliant names.  The code will build and run just fine
51464         without these changes, but it's better to eat our own dog food
51465         and use the standard-conforming names.
51466
51467         * lib/regex.h: Fix a multitude of POSIX name space violations.
51468         These changes have an effect only for programs that define
51469         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
51470         do not change anything for programs compiled in the normal way.
51471         Also, there is no effect on the ABI.
51472
51473         (_REGEX_SOURCE): New macro.
51474         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
51475         defined and _GNU_SOURCE is not; this fixes a name space violation.
51476
51477         Rename the following macros to obey POSIX requirements.
51478         The old names are still visible as macros if _REGEX_SOURCE is defined.
51479         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
51480         RE_BACKSLASH_ESCAPE_IN_LISTS.
51481         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
51482         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
51483         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
51484         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
51485         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
51486         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
51487         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
51488         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
51489         (REG_INTERVALS): renamed from RE_INTERVALS.
51490         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
51491         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
51492         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
51493         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
51494         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
51495         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
51496         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
51497         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
51498         RE_UNMATCHED_RIGHT_PAREN_ORD.
51499         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
51500         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
51501         (REG_DEBUG): renamed from RE_DEBUG.
51502         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
51503         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
51504         unusual, since we can't clash with the POSIX REG_ICASE.
51505         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
51506         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
51507         (REG_NO_SUB): renamed from RE_NO_SUB.
51508         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
51509         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
51510         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
51511         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
51512         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
51513         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
51514         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
51515         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
51516         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
51517         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
51518         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
51519         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
51520         RE_SYNTAX_POSIX_MINIMAL_BASIC.
51521         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
51522         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
51523         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
51524         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
51525         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
51526         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
51527         (REG_FIXED): Renamed from REGS_FIXED.
51528         (REG_NREGS): Renamed from RE_NREGS.
51529
51530         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
51531         of other REG_* macros, since POSIX says the user is allowed to
51532         #undef these macros selectively.
51533
51534         (reg_errcode_t): Update comment stating what other tables need
51535         to be consistent.
51536
51537         Rename the following enum values to obey POSIX requirements.
51538         The old names are still visible as macros.
51539         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
51540         is not defined, since GNU is supposed to be a superset of POSIX as
51541         much as possible, and since we want reg_errcode_t to be a signed
51542         type for implementation consistency.
51543         (_REG_NOERROR): Renamed from REG_NOERROR.
51544         (_REG_NOMATCH): Renamed from REG_NOMATCH.
51545         (_REG_BADPAT): Renamed from REG_BADPAT.
51546         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
51547         (_REG_ECTYPE): Renamed from REG_ECTYPE.
51548         (_REG_EESCAPE): Renamed from REG_EESCAPE.
51549         (_REG_ESUBREG): Renamed from REG_ESUBREG.
51550         (_REG_EBRACK): Renamed from REG_EBRACK.
51551         (_REG_EPAREN): Renamed from REG_EPAREN.
51552         (_REG_EBRACE): Renamed from REG_EBRACE.
51553         (_REG_BADBR): Renamed from REG_BADBR.
51554         (_REG_ERANGE): Renamed from REG_ERANGE.
51555         (_REG_ESPACE): Renamed from REG_ESPACE.
51556         (_REG_BADRPT): Renamed from REG_BADRPT.
51557         (_REG_EEND): Renamed from REG_EEND.
51558         (_REG_ESIZE): Renamed from REG_ESIZE.
51559         (_REG_ERPAREN): Renamed from REG_ERPAREN.
51560         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
51561         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
51562         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
51563         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
51564
51565         (_REG_RE_NAME, _REG_RM_NAME): New macros.
51566         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
51567         changed.  But support the old name if the new one is not defined
51568         and if _REGEX_SOURCE.
51569
51570         Change the following member names in struct re_pattern_buffer.
51571         The old names are still supported if !_REGEX_SOURCE.
51572         The new names are always supported, regardless of _REGEX_SOURCE.
51573         (re_buffer): Renamed from buffer.
51574         (re_allocated): Renamed from allocated.
51575         (re_used): Renamed from used.
51576         (re_syntax): Renamed from syntax.
51577         (re_fastmap): Renamed from fastmap.
51578         (re_translate): Renamed from translate.
51579         (re_can_be_null): Renamed from can_be_null.
51580         (re_regs_allocated): Renamed from regs_allocated.
51581         (re_fastmap_accurate): Renamed from fastmap_accurate.
51582         (re_no_sub): Renamed from no_sub.
51583         (re_not_bol): Renamed from not_bol.
51584         (re_not_eol): Renamed from not_eol.
51585         (re_newline_anchor): Renamed from newline_anchor.
51586
51587         Change the following member names in struct re_registers.
51588         The old names are still supported if !_REGEX_SOURCE.
51589         The new names are always supported, regardless of _REGEX_SOURCE.
51590         (rm_num_regs): Renamed from num_regs.
51591         (rm_start): Renamed from start.
51592         (rm_end): Renamed from end.
51593
51594         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
51595         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
51596         Prepend __ to parameter names.
51597
51598         Undo yesterday's changes.
51599
51600 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
51603         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
51604         lib/regex.c.
51605
51606 2005-08-24  Jim Meyering  <jim@meyering.net>
51607
51608         Sync from coreutils.
51609         * m4/fcntl-safer.m4: New file.
51610
51611         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
51612         and object files for this module.
51613
51614 2005-08-24  Jim Meyering  <jim@meyering.net>
51615
51616         Sync from coreutils.
51617         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
51618
51619 2005-08-24  Jim Meyering  <jim@meyering.net>
51620
51621         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
51622         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
51623
51624 2005-08-24  Jim Meyering  <jim@meyering.net>
51625
51626         * modules/fcntl-safer: New module.
51627         * modules/fts (Depends-on): Add fcntl-safer.
51628         * MODULES.html.sh (File descriptor based Input/Output):
51629         Add fcntl-safer.
51630
51631 2005-08-24  Bruno Haible  <bruno@clisp.org>
51632
51633         Support for unit test modules.
51634         * modules/README: Mention tests modules.
51635         * modules/TEMPLATE-TESTS: New file.
51636         * gnulib-tool: New options --extract-tests-module, --with-tests and
51637         --tests-base (unused for the moment).
51638         (testsbase, inctests): New variables.
51639         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
51640         (func_verify_module): Exclude TEMPLATE-TESTS.
51641         (func_verify_nontests_module, func_verify_tests_module): New functions.
51642         (func_get_dependencies): Add implicit dependency for tests modules.
51643         (func_get_tests_module): New function.
51644         (func_modules_transitive_closure): When --with-tests was specified,
51645         include the unit tests as well, unless explicitly avoided.
51646         (func_emit_lib_Makefile_am): Ignore the tests modules here.
51647         (func_emit_tests_Makefile_am): New function.
51648         (func_create_testdir): When --with-tests was specified, emit a
51649         tests/ directory.
51650         * MODULES.html.sh (Future developments): Update.
51651
51652 2005-08-24  Bruno Haible  <bruno@clisp.org>
51653
51654         * modules/tls-tests: New file.
51655         * tests/test-tls.c: New file, from GNU gettext.
51656
51657 2005-08-24  Bruno Haible  <bruno@clisp.org>
51658
51659         * modules/lock-tests: New file.
51660         * tests/test-lock.c: New file, from GNU gettext.
51661
51662 2005-08-24  Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/lock.h: Add multiple inclusion guard.
51665         * lib/tls.h: Add multiple inclusion guard.
51666
51667 2005-08-24  Bruno Haible  <bruno@clisp.org>
51668
51669         * gnulib-tool: Add support for the --aux-dir option to
51670         --create-testdir, --create-megatestdir, --test, --megatest.
51671         (func_create_testdir, func_create_megatestdir): Optionally emit a
51672         AC_CONFIG_AUX_DIR directive.
51673         (create-testdir, create-megatestdir, test, megatest): Provide a
51674         default value for $auxdir.
51675
51676 2005-08-24  Bruno Haible  <bruno@clisp.org>
51677
51678         * gnulib-tool (import): Use compound statement instead of subshell
51679         where possible.
51680
51681 2005-08-24  Bruno Haible  <bruno@clisp.org>
51682
51683         * gnulib-tool (import): Change --aux-dir default to "build-aux".
51684
51685 2005-08-24  Bruno Haible  <bruno@clisp.org>
51686
51687         * gnulib-tool (func_version): Update.
51688
51689 2005-08-24  Bruno Haible  <bruno@clisp.org>
51690
51691         * gnulib-tool (func_import, func_create_testdir,
51692         func_create_megatestdir): Quote all autoconf macro arguments.
51693
51694 2005-08-24  Bruno Haible  <bruno@clisp.org>
51695
51696         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
51697         option --force, because --force causes the aclocal.m4 of each
51698         subdirectory to be newer than the corresponding config.h.in.
51699
51700 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51701
51702         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
51703         All contents moved to gl_REGEX.
51704         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
51705         assume that it does.
51706
51707 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51708
51709         * lib/regex.h (REG_NOSYS)
51710         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
51711         Define, since POSIX requires it as of 2001.
51712         (_REG_ENOSYS)
51713         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
51714         New private symbol, used to keep the enum signed in all cases.
51715         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
51716         Youngman in
51717         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
51718
51719         * lib/regex_internal.c (re_string_skip_chars, register_state):
51720         (calc_state_hash):
51721         Remove forward decls; no longer needed now that we use prototypes.
51722         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
51723         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
51724         (clean_state_log_if_needed): Likewise.
51725
51726 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51727
51728         * config/srclist.txt: Add glibc bugs 1231-1233.
51729
51730 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51731
51732         Fix problems reported by Sam Steingold in
51733         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
51734         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
51735         assumed that reg_errcode_t is a signed type, which is not
51736         necessarily true if _XOPEN_SOURCE is not defined.
51737         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
51738         since some compilers warn about it otherwise.
51739
51740 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51741
51742         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
51743         (init_word_char, create_initial_state, duplicate_node_closure):
51744         (fetch_token, peek_token_bracket, build_range_exp):
51745         (build_collating_symbol): Remove forward decls; no longer needed
51746         now that we use prototypes.
51747
51748         * lib/regcomp.c:
51749         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
51750         (re_compile_fastmap_iter, regcomp, regerror, regfree):
51751         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
51752         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
51753         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
51754         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
51755         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
51756         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
51757         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
51758         (build_range_exp, build_collating_symbol, parse_bracket_exp):
51759         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
51760         (build_charclass, build_charclass_op, fetch_number, create_tree):
51761         (create_token_tree, mark_opt_subexp, duplicate_tree):
51762         Use prototypes rather than old-style definitions.
51763
51764         * lib/regex_internal.c:
51765         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
51766         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
51767         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
51768         (re_string_reconstruct, re_string_peek_byte_case):
51769         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
51770         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
51771         (re_node_set_init_copy, re_node_set_add_intersect):
51772         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
51773         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
51774         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
51775         (re_acquire_state, re_acquire_state_context, register_state):
51776         (create_ci_newstate, create_cd_newstate, free_state):
51777         Likewise.
51778         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
51779         re_search_2):
51780         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
51781         (re_search_internal, prune_impossible_nodes):
51782         (acquire_init_state_context, check_matching, static):
51783         (check_halt_node_context, check_halt_state_context, proceed_next_node):
51784         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
51785         (update_regs, sift_states_backward, build_sifted_states):
51786         (clean_state_log_if_needed, merge_state_array):
51787         (update_cur_sifted_state, add_epsilon_src_nodes):
51788         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
51789         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
51790         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
51791         (find_recover_state, check_subexp_matching_top, transit_state_mb):
51792         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
51793         (check_arrival, check_arrival_add_next_nodes):
51794         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
51795         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
51796         (check_node_accept_bytes, check_node_accept, extend_buffers):
51797         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
51798         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
51799         (sift_ctx_init):
51800         Likewise.
51801
51802         * lib/regex_internal.h:
51803         (re_string_allocate, re_string_construct, re_string_reconstruct):
51804         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
51805         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
51806         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
51807         (re_string_context_at, re_string_peek_byte_case):
51808         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
51809         is defined, since we now use prototypes always.
51810
51811         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
51812         C89 or better.  All uses removed.
51813
51814 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51815
51816         * config/srclist.txt: Add glibc bugs 1220-1227.
51817
51818 2005-08-20  Jim Meyering  <jim@meyering.net>
51819
51820         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
51821         of unused local, dfa.
51822
51823 2005-08-20  Bruno Haible  <bruno@clisp.org>
51824
51825         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
51826
51827 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51828
51829         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
51830         (re_node_set_insert_last, re_dfa_add_node):
51831         Rename local variables to avoid GCC shadowing warnings.
51832
51833 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51834
51835         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
51836         [defined lint]: Suppress bogus uninitialized-variable warnings.
51837
51838         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
51839         and let the caller return REG_ESPACE if out of space.  This
51840         removes an uninitialied-variable warning with GCC 4.0.1, and also
51841         avoids taking the address of a local variable.  All callers
51842         changed.
51843
51844 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51845
51846         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
51847         $LIBCSRC/posix/regexec.c.
51848         Add glibc bug 1217 for regcomp.c.
51849
51850 2005-08-19  Jim Meyering  <jim@meyering.net>
51851
51852         * lib/regexec.c (proceed_next_node): Redo local variables to
51853         avoid GCC shadowing warnings.
51854
51855 2005-08-18  Bruno Haible  <bruno@clisp.org>
51856
51857         * lib/strstr.c (strstr): Fix return value in multibyte case.
51858         * lib/strcasestr.c (strcasestr): Likewise.
51859
51860 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51861
51862         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
51863
51864 2005-08-17  Jim Meyering  <jim@meyering.net>
51865
51866         Make the %s format (seconds since the epoch) work for a negative
51867         number and when used with a zero-padded field width, e.g. %015s.
51868
51869         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
51870         label so that it precedes the code to set `digits'.  Otherwise,
51871         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
51872         print `00-22'.  Now, it prints `-0022', as it should.
51873
51874 2005-08-17  Bruno Haible  <bruno@clisp.org>
51875
51876         * modules/strstr (Files): Add m4/mbrtowc.m4.
51877         (Depends-on): Add mbuiter.
51878
51879 2005-08-17  Bruno Haible  <bruno@clisp.org>
51880
51881         * modules/strcasestr: New file.
51882         * MODULES.html.sh (String handling, based on ANSI C 89): Add
51883         strcasestr.
51884
51885 2005-08-17  Bruno Haible  <bruno@clisp.org>
51886
51887         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
51888
51889 2005-08-17  Bruno Haible  <bruno@clisp.org>
51890
51891         * modules/mbuiter: New file.
51892         * MODULES.html.sh (Extended multibyte and wide character utilities):
51893         Add mbuiter.
51894
51895 2005-08-17  Bruno Haible  <bruno@clisp.org>
51896
51897         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
51898         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
51899
51900 2005-08-17  Bruno Haible  <bruno@clisp.org>
51901
51902         * m4/strcasestr.m4: New file.
51903
51904 2005-08-17  Bruno Haible  <bruno@clisp.org>
51905
51906         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
51907         * lib/strstr.c: Completely rewritten, with multibyte locale support.
51908
51909 2005-08-17  Bruno Haible  <bruno@clisp.org>
51910
51911         * lib/strcasestr.h: New file.
51912         * lib/strcasestr.c: New file.
51913
51914 2005-08-17  Bruno Haible  <bruno@clisp.org>
51915
51916         * lib/strcasecmp.c: Use mbuiter.h.
51917
51918 2005-08-17  Bruno Haible  <bruno@clisp.org>
51919
51920         * lib/mbuiter.h: New file.
51921
51922 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51923
51924         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
51925         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
51926         and gl_GETOPT are both invoked via different paths (as happens
51927         with GNU tar CVS because it uses both argp and getopt), the former
51928         wins.
51929
51930 2005-08-16  Bruno Haible  <bruno@clisp.org>
51931
51932         * modules/tls: New file.
51933         * MODULES.html.sh (Multithreading): Add tls.
51934
51935 2005-08-16  Bruno Haible  <bruno@clisp.org>
51936
51937         * modules/strnlen1: New file.
51938         * MODULES.html.sh (String handling): Add strnlen1.
51939
51940 2005-08-16  Bruno Haible  <bruno@clisp.org>
51941
51942         * modules/strcase (Files): Add m4/mbrtowc.m4.
51943         (Depends-on): Add strnlen1, mbchar.
51944
51945 2005-08-16  Bruno Haible  <bruno@clisp.org>
51946
51947         * modules/mbiter: New file.
51948         * MODULES.html.sh (Extended multibyte and wide character utilities):
51949         Add mbiter.
51950
51951 2005-08-16  Bruno Haible  <bruno@clisp.org>
51952
51953         * modules/mbfile: New file.
51954         * MODULES.html.sh (Extended multibyte and wide character utilities):
51955         Add mbfile.
51956
51957 2005-08-16  Bruno Haible  <bruno@clisp.org>
51958
51959         * modules/mbchar: New file.
51960         * MODULES.html.sh (Extended multibyte and wide character utilities):
51961         New section.
51962
51963 2005-08-16  Bruno Haible  <bruno@clisp.org>
51964
51965         * m4/tls.m4: New file, from GNU gettext.
51966
51967 2005-08-16  Bruno Haible  <bruno@clisp.org>
51968
51969         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
51970         always.
51971         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
51972
51973 2005-08-16  Bruno Haible  <bruno@clisp.org>
51974
51975         * m4/mbiter.m4: New file.
51976
51977 2005-08-16  Bruno Haible  <bruno@clisp.org>
51978
51979         * m4/mbfile.m4: New file.
51980
51981 2005-08-16  Bruno Haible  <bruno@clisp.org>
51982
51983         * m4/mbchar.m4: New file.
51984
51985 2005-08-16  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/tls.h: New file, from GNU gettext.
51988         * lib/tls.c: New file, from GNU gettext.
51989
51990 2005-08-16  Bruno Haible  <bruno@clisp.org>
51991
51992         * lib/strnlen1.h: New file.
51993         * lib/strnlen1.c: New file.
51994
51995 2005-08-16  Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
51998         (mbi_init): Update.
51999         (mbi_avail, mbi_advance): Let the iteration end before the terminating
52000         NUL byte, not after it.
52001
52002 2005-08-16  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/strcase.h (strcasecmp): Add note in comments.
52005         * lib/strncasecmp.c: Use code from strcasecmp.c.
52006         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
52007         (strcasecmp): Work correctly in multibyte locales.
52008
52009 2005-08-16  Bruno Haible  <bruno@clisp.org>
52010
52011         * lib/mbiter.h: New file.
52012
52013 2005-08-16  Bruno Haible  <bruno@clisp.org>
52014
52015         * lib/mbfile.h: New file.
52016
52017 2005-08-16  Bruno Haible  <bruno@clisp.org>
52018
52019         * lib/mbchar.h: New file.
52020         * lib/mbchar.c: New file.
52021
52022 2005-08-16  Bruno Haible  <bruno@clisp.org>
52023
52024         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
52025         the valid ones. Makes the comparison operations transitive:
52026         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
52027         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
52028
52029 2005-08-15  Simon Josefsson  <jas@extundo.com>
52030
52031         * modules/ssize_t (License): Change to 'unlimited'.
52032
52033         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
52034
52035 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52036
52037         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
52038         Add comments for each pending glibc patch.
52039
52040 2005-08-15  Bruno Haible  <bruno@clisp.org>
52041
52042         * lib/regex.h (__restrict_arr): Don't define to __restrict if
52043         __cplusplus is defined.
52044
52045 2005-08-14  Jim Meyering  <jim@meyering.net>
52046
52047         Sync from coreutils.
52048
52049         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
52050         Use the hash-table-based cycle-detection code not just when
52051         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
52052         Reported by James Youngman in
52053         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
52054         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
52055         FTS_TIGHT_CYCLE_CHECK.
52056         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
52057         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
52058         once again.
52059         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
52060         * lib/fts.c (fd_safer): Remove decl.
52061         Include fcntl--.h rather than unistd-safer.h
52062         (fts_safe_changedir): Don't call fd_safer; no longer needed
52063         now that we include fcntl--.h.
52064
52065 2005-08-12  Simon Josefsson  <jas@extundo.com>
52066
52067         * modules/getndelim2: Use ssize_t module.
52068         * modules/getnline: Likewise.
52069         * modules/safe-read: Likewise.
52070         * modules/xreadlink: Likewise.
52071
52072         * modules/ssize_t: New file.
52073
52074 2005-08-12  Simon Josefsson  <jas@extundo.com>
52075
52076         * m4/readline.m4: Look for termcap, curses or ncurses if required.
52077
52078 2005-08-12  Simon Josefsson  <jas@extundo.com>
52079
52080         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52081         ssize_t.
52082
52083 2005-08-12  Simon Josefsson  <jas@extundo.com>
52084
52085         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
52086         readline, getdelim and check_version.
52087         (Support for systems lacking ISO C 99: Sizes of integer types):
52088         Add size_max.
52089
52090 2005-08-12  Bruno Haible  <bruno@clisp.org>
52091
52092         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
52093
52094 2005-08-11  Simon Josefsson  <jas@extundo.com>
52095
52096         * modules/readline: New file.
52097
52098         * modules/strnlen (Files): Add strnlen.h.
52099
52100 2005-08-11  Simon Josefsson  <jas@extundo.com>
52101
52102         * m4/readline.m4: New file.
52103
52104 2005-08-11  Simon Josefsson  <jas@extundo.com>
52105
52106         * lib/readline.h, readline.c: New file.
52107
52108 2005-08-11  Simon Josefsson  <jas@extundo.com>
52109
52110         * doc/gnulib.texi (Initial import, Finishing touches): Mention
52111         gl_AVOID.
52112
52113 2005-08-11  Bruno Haible  <bruno@clisp.org>
52114
52115         * lib/strnlen.h (strnlen): Change parameter name to match comment.
52116
52117 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
52118
52119         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
52120
52121 2005-08-10  Simon Josefsson  <jas@extundo.com>
52122
52123         * tests/test-iconvme.c: New file.
52124
52125 2005-08-10  Simon Josefsson  <jas@extundo.com>
52126
52127         * m4/strnlen.m4: New file.
52128
52129         * m4/strndup.m4: Don't check for strnlen declaration, done in
52130         strnlen.m4.
52131
52132 2005-08-10  Simon Josefsson  <jas@extundo.com>
52133
52134         * lib/strndup.c: Use strnlen.h.
52135
52136         * lib/strnlen.h: New file.
52137
52138 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52139
52140         * README: Typos.
52141
52142 2005-08-02  Simon Josefsson  <jas@extundo.com>
52143
52144         * modules/readline: New file.
52145
52146 2005-08-02  Simon Josefsson  <jas@extundo.com>
52147
52148         * modules/getdelim: New file.
52149
52150         * modules/getline: Rewrite, don't use getndelim2.
52151
52152 2005-08-02  Simon Josefsson  <jas@extundo.com>
52153
52154         * m4/getline.m4: Separate out getdelim stuff into separate module.
52155
52156         * m4/getdelim.m4: New file.
52157
52158 2005-08-02  Simon Josefsson  <jas@extundo.com>
52159
52160         * lib/getline.h, getline.c: Rewrite.
52161
52162         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
52163
52164 2005-07-31  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/lock.h (gl_lock_initializer): New macro.
52167         (gl_lock_define_initialized): Use it.
52168         (gl_rwlock_initializer): New macro.
52169         (gl_rwlock_define_initialized): Use it.
52170         (gl_recursive_lock_initializer): New macro.
52171         (gl_recursive_lock_define_initialized): Use it.
52172
52173 2005-07-30  Karl Berry  <karl@gnu.org>
52174
52175         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
52176         Report from Ben Pfaff, regarding getopt.
52177
52178 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
52179
52180         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
52181         normal way.
52182         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
52183         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
52184         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
52185         (gl_GETOPT): Use the new macros.  Most of the implementation
52186         is moved to the new macros.  This is for programs like Emacs
52187         that don't want all the functionality of gl_GETOPT.
52188
52189 2005-07-26  Bruno Haible  <bruno@clisp.org>
52190
52191         * m4/lock.m4: Update from GNU gettext.
52192
52193 2005-07-26  Bruno Haible  <bruno@clisp.org>
52194
52195         * lib/lock.h: Update from GNU gettext.
52196         * lib/lock.c: Update from GNU gettext.
52197
52198 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
52199
52200         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
52201         obsolescent AC_TRY_RUN.  Include the default includes files, for
52202         'exit'.
52203
52204 2005-07-24  Bruno Haible  <bruno@clisp.org>
52205
52206         * modules/visibility: New file.
52207         * MODULES.html.sh (Misc): Add visibility.
52208
52209 2005-07-24  Bruno Haible  <bruno@clisp.org>
52210
52211         * m4/visibility.m4: New file.
52212
52213 2005-07-24  Bruno Haible  <bruno@clisp.org>
52214
52215         * doc/visibility.texi: New file.
52216
52217 2005-07-22  Bruno Haible  <bruno@clisp.org>
52218
52219         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
52220         $(ALLOCA_H), redundant through BUILT_SOURCES.
52221         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
52222         redundant through BUILT_SOURCES.
52223         * modules/byteswap (Makefile.am): Remove explicit dependency on
52224         $(BYTESWAP_H), redundant through BUILT_SOURCES.
52225         * modules/fnmatch (Makefile.am): Remove explicit dependency on
52226         $(FNMATCH_H), redundant through BUILT_SOURCES.
52227         * modules/getopt (Makefile.am): Remove explicit dependency on
52228         $(GETOPT_H), redundant through BUILT_SOURCES.
52229         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
52230         redundant through BUILT_SOURCES.
52231         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
52232         redundant through BUILT_SOURCES.
52233         * modules/stdbool (Makefile.am): Remove explicit dependency on
52234         $(STDBOOL_H), redundant through BUILT_SOURCES.
52235         * modules/stdint (Makefile.am): Remove explicit dependency on
52236         $(STDINT_H), redundant through BUILT_SOURCES.
52237         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
52238         Remove explicit dependency on $(SYSEXITS_H).
52239         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
52240
52241 2005-07-18  Simon Josefsson  <jas@extundo.com>
52242
52243         * lib/check-version.c (check_version): Accept identical versions too.
52244
52245 2005-07-18  Bruno Haible  <bruno@clisp.org>
52246
52247         * modules/lock: New file.
52248         * MODULES.html.sh (Multithreading): New section.
52249
52250 2005-07-18  Bruno Haible  <bruno@clisp.org>
52251
52252         * m4/lock.m4: New file, from GNU gettext.
52253
52254 2005-07-18  Bruno Haible  <bruno@clisp.org>
52255
52256         * lib/lock.h: New file, from GNU gettext.
52257         * lib/lock.c: New file, from GNU gettext.
52258
52259 2005-07-18  Bruno Haible  <bruno@clisp.org>
52260
52261         * lib/lock.h (gl_once_t): New type.
52262         (gl_once_define, gl_once): New macros.
52263         * lib/lock.c (fresh_once): New variable.
52264         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
52265         functions.
52266
52267 2005-07-16  Simon Josefsson  <jas@extundo.com>
52268
52269         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
52270         workaround, suggested by Bruno.
52271
52272 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52273
52274         * modules/xalloc (Depends-on): Add xalloc-die.
52275         * modules/xvasprintf (Depends-on): Add xalloc-die.
52276
52277 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
52278
52279         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
52280         with a minor change.
52281
52282 2005-07-15  Bruno Haible  <bruno@clisp.org>
52283
52284         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
52285         When using lib/poll.c, define poll as rpl_poll.
52286
52287 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
52288
52289         * modules/argp (Depends-on): Remove unlocked-io.
52290
52291 2005-07-14  Derek Price  <derek@ximbiot.com>
52292
52293         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
52294         for glob symlink bug.
52295
52296 2005-07-14  Bruno Haible  <bruno@clisp.org>
52297
52298         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
52299         Instead, test for *_unlocked function declarations directly.
52300
52301 2005-07-11  Simon Josefsson  <jas@extundo.com>
52302
52303         * modules/size_max: New file.
52304
52305         * modules/xsize: Depend on size_max module for size_max.m4.
52306
52307 2005-07-11  Simon Josefsson  <jas@extundo.com>
52308
52309         * lib/size_max.h: New file.
52310
52311 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
52312
52313         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
52314         copyright symbol and the year.
52315         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
52316         (version_etc_va): Use parameterized copyright notice.
52317         Reword to conform to the current GNU coding standards.
52318
52319 2005-07-11  Karl Berry  <karl@gnu.org>
52320
52321         * doc/gnulib.texi (Quoting): new node.
52322         (Initial import): more info, from Patrice.
52323
52324 2005-07-11  Bruno Haible  <bruno@clisp.org>
52325
52326         * gnulib-tool (func_usage): Document option --avoid.
52327         (Command line options): Handle --avoid.
52328         (func_acceptable): New function.
52329         (func_modules_transitive_closure): Use it.
52330
52331 2005-07-11  Bruno Haible  <bruno@clisp.org>
52332
52333         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
52334         Reported by Jim Meyering.
52335
52336 2005-07-10  Bruno Haible  <bruno@clisp.org>
52337
52338         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
52339         Needed when size_t is smaller than 'unsigned int'.
52340         Reported by Paul Eggert.
52341
52342 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52343
52344         * modules/argp (Depends-on): Add unlocked-io
52345
52346 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
52347
52348         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
52349         block of defines.
52350
52351 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52352
52353         * config/srclist.txt: Comment out regcomp.c, since we have a porting
52354         fix now.
52355
52356 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
52357         and Paul Eggert  <eggert@cs.ucla.edu>
52358
52359         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
52360         in wint_t, not wchar_t.  Remove now-unnecessary cast.
52361
52362 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52363
52364         * modules/regex (Files): Add lib/regex_internal.c,
52365         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
52366         (Depends-on): Add extensions.
52367         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
52368
52369 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52370
52371         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
52372         pathconf.
52373         * m4/same.m4 (gl_SAME): Likewise.
52374         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
52375
52376         * m4/regex.m4: Adjust to new libc regex implementation.
52377         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
52378         all the .c and .h parts of (the new) regex.
52379         Quote the m4 stuff better.
52380         Check for RE_ICASE bug of old gnulib.
52381         Check for REG_STARTEND of recent libc.
52382         Rename local variables from jm_* to gl_*.
52383         Quote operand of "test -f".
52384         Say "recent enough" version of libc, not "version 2".
52385         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
52386         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
52387         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
52388         Remove check for btowc, isascii.
52389         Require AM_LANGINFO_CODESET.
52390
52391 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52392
52393         * lib/regex.c, regex.h: Sync from libc.
52394         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
52395         * lib/regexec.c:
52396         New files, synced from libc, except that regex_internal.h
52397         currently has a small porting fix.
52398
52399 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
52400
52401         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
52402         regex_internal.c, regexec.c.
52403         Add regex_internal.h too, but as a comment, since the libc version
52404         is currently broken in gnulib mode.
52405
52406 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52407
52408         Support programs like Emacs that use gnulib but not gettext.
52409         * MODULES.html.sh (Internationalization functions): Add gettext-h.
52410         * modules/gettext-h: New file.
52411         * modules/gettext (Files): Remove lib/gettext.h.
52412         (Depends-on): Add gettext-h.
52413         (Makefile.am): Remove lib_SOURCES.
52414         * modules/argmatch, modules/c-stack, modules/closeout:
52415         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
52416         * modules/execute, modules/file-type, modules/getaddrinfo:
52417         * modules/getopt, modules/human, modules/javacomp:
52418         * modules/javaexec, modules/mkdir-p, modules/obstack:
52419         * modules/openat, modules/pagealign_alloc, modules/pipe:
52420         * modules/quotearg, modules/regex, modules/rpmatch:
52421         * modules/unicodeio, modules/userspec, modules/version-etc:
52422         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
52423         * modules/xsetenv:
52424         Depend on gettext-h, not gettext.
52425
52426 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52427
52428         * gnulib-tool (func_import): Add support for 'public domain' license.
52429         * modules/alloca, modules/atexit, modules/memmove:
52430         Now public domain, not GPL.
52431         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
52432         * modules/realloc, modules/strerror, modules/strtod:
52433         Now LGPL, not GPL.
52434
52435 2005-07-05  Bruno Haible  <bruno@clisp.org>
52436
52437         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
52438         autoconf CVS. Needed for mingw.
52439
52440 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52441
52442         Remove the dependency of the strftime module on the tzset module.
52443         * modules/strftime (Depends-on): Remove dependency on tzset.
52444
52445 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52446
52447         Remove the dependency of the strftime module on the tzset module.
52448         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
52449         gl_FUNC_TZSET_CLOBBER.
52450
52451 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52452
52453         Remove the dependency of the strftime module on the tzset module.
52454         * lib/strftime.c (my_strftime)
52455         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
52456         Copy the input structure, to work around some of the bug with
52457         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
52458         Solaris releases, you should also use the tzset module, but we won't
52459         require it as a dependency any more since we don't want LGPLed code
52460         to depend on GPLed code.
52461
52462 2005-07-02  Jim Meyering  <jim@meyering.net>
52463
52464         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
52465         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
52466         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
52467         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
52468
52469 2005-07-02  Jim Meyering  <jim@meyering.net>
52470
52471         * lib/backupfile.c (backup_args): Change a `0' to NULL.
52472
52473 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52474
52475         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
52476         declares only 'struct timespec;' (!).
52477
52478 2005-07-01  Jim Meyering  <jim@meyering.net>
52479
52480         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
52481         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
52482         * lib/save-cwd.c, tempname.c:
52483         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
52484         and don't include <sys/file.h>).
52485
52486 2005-06-29  Jim Meyering  <jim@meyering.net>
52487
52488         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
52489         type name.  Use the variable name instead.
52490         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
52491         Likewise.
52492
52493 2005-06-28  Simon Josefsson  <jas@extundo.com>
52494
52495         * modules/check-version (Files): Add check-version.m4.
52496
52497 2005-06-28  Simon Josefsson  <jas@extundo.com>
52498
52499         * m4/check-version.m4: New file, suggested by Jim Meyering
52500         <jim@meyering.net>.
52501
52502 2005-06-28  Simon Josefsson  <jas@extundo.com>
52503
52504         * lib/check-version.h, lib/check-version.c: New files.
52505
52506 2005-06-28  Simon Josefsson  <jas@extundo.com>
52507
52508         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
52509         collision with global variable.  Better indentation.  Don't
52510         increment buffer pointer beyond buffer end.  Based on comments
52511         from Paul Eggert <eggert@cs.ucla.edu>.
52512
52513         * lib/base64.h: Indent.
52514
52515 2005-06-28  Simon Josefsson  <jas@extundo.com>
52516
52517         * doc/gnulib.texi (Library version handling): New section.
52518
52519 2005-06-28  Jim Meyering  <jim@meyering.net>
52520
52521         * check-module (find_included_lib_files): Hard-code another
52522         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
52523         but modules/fts-lgpl (correctly) does not list those files.
52524
52525         * modules/canonicalize (Files): Add lib/pathmax.h.
52526
52527 2005-06-25  Simon Josefsson  <jas@extundo.com>
52528
52529         * modules/check-version: New file.
52530
52531 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
52534         initializer of struct addrinfo, as an indication that we don't
52535         care how many members the structure has.
52536
52537 2005-06-24  Derek Price  <derek@ximbiot.com>
52538         and Bruno Haible  <bruno@clisp.org>
52539
52540         Remove stat module & update lstat.
52541         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
52542         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52543         * m4/stat.m4: Remove this file.
52544
52545 2005-06-24  Derek Price  <derek@ximbiot.com>
52546         and Bruno Haible  <bruno@clisp.org>
52547
52548         Remove stat module & update lstat.
52549         * lib/stat.c: Remove this file...
52550         (slash_aware_lstat): ...moving this content and its support...
52551         * lib/lstat.c (rpl_lstat): ...into here.
52552         * lib/lstat.h: New file.
52553
52554 2005-06-24  Derek Price  <derek@ximbiot.com>
52555         and Bruno Haible  <bruno@clisp.org>
52556
52557         Remove stat module & update lstat.
52558         * config/srclist.txt (libc sources): Remove stat.
52559
52560 2005-06-24  Derek Price  <derek@ximbiot.com>
52561         and Bruno Haible  <bruno@clisp.org>
52562
52563         Remove stat module & update lstat.
52564         * MODULES.html.sh (stat): Remove.
52565         * MODULES.html: Regenerated.
52566         * modules/lstat (Description): Correct function name.
52567         (Files): Add "lstat.h".
52568         (Depends-on): Remove stat, add xalloc, stat-macros.
52569         * modules/stat: Remove this file.
52570         (Include): Add "lstat.h", remove <sys/stat.h>.
52571
52572 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
52573
52574         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
52575         (ranged_convert): Don't save conversion in a temporary struct.
52576         This causes a warning with GCC 4.0.0, and anyway in the typical
52577         case it's not worth the extra 100 bytes or so of code.
52578         (ranged_convert, __mktime_internal): When calling a function via a
52579         pointer P, use P () rather than (*P) (), as we now assume C89 or
52580         better.
52581
52582 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52583
52584         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
52585         "who -r" failed to give output.  Problem reported by Tim Waugh.
52586
52587         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
52588         (xcalloc): Use it to avoid needless tests.
52589         Problem reported by Jim Meyering.
52590
52591 2005-06-20  Derek Price  <derek@ximbiot.com>
52592
52593         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
52594         unnecessary for Autoconfs > 2.59c.
52595
52596 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52597
52598         * lib/argp.h (__option_is_short): Check upper limit of
52599         __key. Isprint() requires its argument to have the value
52600         of an unsigned char or EOF.
52601
52602 2005-06-16  Jim Meyering  <jim@meyering.net>
52603
52604         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
52605         when either N or S is zero.
52606
52607 2005-06-16  Derek Price  <derek@ximbiot.com>
52608
52609         * m4/bison.m4: Declare YACC & YFLAGS precious.
52610
52611 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
52612
52613         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
52614         multibyte string or pattern, fall back on unibyte matching.
52615         Problem reported by James Youngman.
52616
52617 2005-06-08  Bruno Haible  <bruno@clisp.org>
52618
52619         * modules/csharpcomp: New file.
52620         * MODULES.html.sh (C#): Add csharpcomp.
52621
52622 2005-06-08  Bruno Haible  <bruno@clisp.org>
52623
52624         * m4/csharpcomp.m4: New file, from GNU gettext.
52625
52626 2005-06-08  Bruno Haible  <bruno@clisp.org>
52627
52628         * lib/csharpcomp.h: New file, from GNU gettext.
52629         * lib/csharpcomp.c: New file, from GNU gettext.
52630         * lib/csharpcomp.sh.in: New file, from GNU gettext.
52631
52632 2005-06-08  Bruno Haible  <bruno@clisp.org>
52633
52634         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
52635         warning on mingw.
52636
52637 2005-06-07  Derek Price  <derek@ximbiot.com>
52638
52639         Sync from CVS.
52640         * lib/glob_.h: Indent nested #ifdef.
52641
52642 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52643
52644         Sync from coreutils.
52645         Use "file name" when talking about file names, instead of "filename"
52646         or "path", as per the GNU coding standards.
52647         * lib/mkdir-p.c: Renamed from makepath.c.
52648         (make_dir_parents): Renamed from make_path.  All callers changed.
52649         * lib/mkdir-p.h: Likewise.  All includers changed.
52650         * lib/filenamecat.c: Renamed from path-concat.c.
52651         (file_name_concat): Renamed from path_concat.  All callers changed.
52652         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
52653         * lib/filenamecat.h: Likewise.  All includers changed.
52654         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
52655         in comments or local variable names.
52656         * lib/basename.c: Likewise.
52657         * lib/canonicalize.c, canonicalize.h: Likewise.
52658         * lib/dirname.c, dirname.h: Likewise.
52659         * lib/euidaccess.c: Likewise.
52660         * lib/exclude.c: Likewise
52661         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
52662         * lib/fsusage.c, fsuage.h: Likewise.
52663         * lib/fts.c, fts_.h: Likewise.
52664         * lib/getcwd.c: Likewise.
52665         * lib/getloadavg.c: Likewise.
52666         * lib/mkstemp.c: Likewise.
52667         * lib/mountlist.c, mountlist.h: Likewise.
52668         * lib/openat.c, openat.h: Likewise.
52669         * lib/readlink-stub.c: Likewise.
52670         * lib/readutmp.c, readutmp.h: Likewise.
52671         * lib/rename.c: Likewise.
52672         * lib/rmdir.c: Likewise.
52673         * lib/same.c: Likewise.
52674         * lib/savedir.c: Likewise.
52675         * lib/stripslash.c: Likewise.
52676         * lib/tempname.c: Likewise.
52677         * lib/xreadlink.c: Likewise.
52678         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
52679         All uses changed.
52680         * lib/exclude.h: Likewise.
52681
52682         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
52683         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52684         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
52685         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52686         * lib/pathmax.h: Include <limits.h> unconditionally, since other
52687         files have been getting away with it for years (MORE/BSD 4.3
52688         is extinct now).
52689         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
52690         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
52691
52692         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
52693         Define to 256, not 255, as per modern POSIX.
52694
52695 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52696
52697         Sync from coreutils.
52698         Use "file name" when talking about file names, instead of "filename"
52699         or "path", as per the GNU coding standards.
52700         * MODULES.html.sh: mkdir-p renamed from makepath.
52701         filenamecat renamed from path-concat.
52702         * modules/filenamecat: Renamed from modules/path-concat.
52703         (Files): filenamecat.h and filenamecat.c renamed from
52704         path-concat.h and path-concat.c.
52705         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
52706         (Include): filenamecat.h, not path-concat.h.
52707         * modules/mkdir-p: Renamed from modules/makepath.
52708         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
52709         makepath.c.
52710         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
52711         (Include): mkdir-p.h, not makepath.h.
52712
52713 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
52714
52715         Sync from coreutils.
52716         * m4/mkdir-p.m4: Renamed from makepath.m4.
52717         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
52718         Rename files from makepath.c to mkdir-p.c, and from
52719         makepath.h to mkdir-p.h.
52720         * m4/filenamecat.m4: Renamed from path-concat.m4.
52721         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
52722         Rename files from path-concat.c to filenamecat.c,
52723         and from path-concat.h to filenamecat.h.
52724         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
52725         "file name" in local variables or comments.
52726         * m4/rename.m4: Likewise.
52727
52728 2005-06-01  Bruno Haible  <bruno@clisp.org>
52729
52730         * modules/csharpexec: New file.
52731         * MODULES.html.sh (C#): New section.
52732
52733 2005-06-01  Bruno Haible  <bruno@clisp.org>
52734
52735         * m4/csharp.m4: New file, from GNU gettext.
52736         * m4/csharpexec.m4: New file, from GNU gettext.
52737
52738 2005-06-01  Bruno Haible  <bruno@clisp.org>
52739
52740         * lib/csharpexec.h: New file, from GNU gettext.
52741         * lib/csharpexec.c: New file, from GNU gettext.
52742         * lib/csharpexec.sh.in: New file, from GNU gettext.
52743
52744 2005-05-31  Derek Price  <derek@ximbiot.com>
52745             Paul Eggert  <eggert@cs.ucla.edu>
52746
52747         Sync from cvs.
52748         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52749
52750 2005-05-31  Derek Price  <derek@ximbiot.com>
52751             Paul Eggert  <eggert@cs.ucla.edu>
52752
52753         Sync from cvs.
52754         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
52755
52756 2005-05-29  Derek Price  <derek@ximbiot.com>
52757
52758         * config/srclist.txt (glob_.h, glob.c): Add these files.
52759
52760 2005-05-29  Derek Price  <derek@ximbiot.com>
52761
52762         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
52763         * modules/glob: New file.
52764         * modules/getlogin_r: Add link to POSIX spec in description.
52765
52766 2005-05-29  Derek Price  <derek@ximbiot.com>
52767             Paul Eggert  <eggert@cs.ucla.edu>
52768
52769         * m4/glob.m4: New file.
52770
52771 2005-05-29  Derek Price  <derek@ximbiot.com>
52772             Paul Eggert  <eggert@cs.ucla.edu>
52773
52774         * lib/glob_.h, lib/glob.c: New files.
52775
52776 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52777
52778         * modules/fts (Files): Remove m4/inttypes-pri.m4.
52779         * modules/fts-lgpl (Depends-on): Remove gettext.
52780
52781 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52782
52783         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
52784         and don't require gt_INTTYPES_PRI.
52785
52786 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
52787
52788         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
52789
52790         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
52791         the configuration hassle isn't worth it.
52792         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
52793         (LONGEST_MODIFIER, PRIuMAX): Remove.
52794
52795 2005-05-27  Bruno Haible  <bruno@clisp.org>
52796
52797         * lib/getlogin_r.h: Remove second include of <stddef.h>.
52798
52799 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
52802         _POSIX_PTHREAD_SEMANTICS for Solaris.
52803
52804 2005-05-25  Derek Price  <derek@ximbiot.com>
52805
52806         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
52807
52808 2005-05-25  Derek Price  <derek@ximbiot.com>
52809             Paul Eggert  <eggert@cs.ucla.edu>
52810
52811         * modules/getlogin_r, m4/getlogin_r.m4: New files.
52812         * lib/getlogin_r.c, getlogin_r.h: New files.
52813
52814 2005-05-25  Bruno Haible  <bruno@clisp.org>
52815             Derek Price  <derek@ximbiot.com>
52816
52817         * lib/getlogin_r.h: Simplify API documentation.
52818
52819 2005-05-23  Derek Price  <derek@ximbiot.com>
52820
52821         * modules/minmax (Files): Add m4/minmax.m4.
52822         (configure.ac): Add gl_MINMAX.
52823
52824 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52825
52826         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
52827         so that unistd-safer.h (GPL'ed code) need not be included.
52828
52829 2005-05-22  Bruno Haible  <bruno@clisp.org>
52830
52831         * m4/minmax.m4: New file.
52832         Based on a patch by Derek Price <derek@ximbiot.com>.
52833
52834 2005-05-22  Bruno Haible  <bruno@clisp.org>
52835
52836         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
52837         (INT64_MIN): Fix definition.
52838         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
52839
52840         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
52841         NEED_SIGNED_INT_TYPES.
52842
52843         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
52844         HAVE_SYSTEM_INTTYPES.
52845
52846 2005-05-22  Bruno Haible  <bruno@clisp.org>
52847
52848         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
52849         Also include <sys/param.h> if it defines MIN, MAX.
52850         Based on a patch by Derek Price <derek@ximbiot.com>.
52851
52852 2005-05-21  Jim Meyering  <jim@meyering.net>
52853
52854         * modules/fts (Files): Add m4/inttypes-pri.m4.
52855         (Depends-on): Add lstat and remove gettext.  Alphabetize.
52856
52857 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52858
52859         New fts module.
52860         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
52861         (setup_dir, free_dir): New functions.
52862         (enter_dir, leave_dir): Define trivial
52863         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
52864         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
52865         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
52866         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
52867         Move to fts-cycle.c.
52868         (fts_open): Use setup_dir.
52869         (fts_close): Use free_dir.
52870         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
52871         This adds a label and some gotos, but the alternatives were messier.
52872         Check for memory allocation failure when entering a dir.
52873         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
52874         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
52875         (FTS): New member fts_cycle, that is a union that contains the
52876         old active_dir_ht and cycle_state.  All uses changed to mention
52877         fts_cycle.ht and fts_cycle.state.
52878         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
52879         fts.c, with the following changes:
52880         (setup_dir, free_dir): New functions.
52881         (enter_dir): Now returns bool.  Return true if successful, false
52882         if memory exhausted.  All callers changed.
52883         Do not bother partly cleaning up on
52884         memory allocation failure; that is free_dir's job.
52885         However, free ad if hash_insert fails, to avoid memory leak.
52886         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
52887         fts->fts_options to see which union member to use.
52888
52889 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
52892         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
52893
52894 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52895
52896         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
52897
52898 2005-05-20  Jim Meyering  <jim@meyering.net>
52899
52900         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
52901         Now a macro, to pacify GCC.
52902
52903 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52904
52905         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
52906         of -1.
52907
52908 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
52909
52910         * lib/chown.c (rpl_chown): Return -1 on failure.
52911
52912 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52913
52914         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
52915         Don't check for stddef.h.
52916         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
52917         don't use its results.
52918         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
52919         since we include them unconditionally.  Don't require
52920         AM_STDBOOL_H, since stdbool is a prerequisite.
52921         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
52922         since we assume C89 or better.
52923         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
52924         as we don't use their results.
52925         Don't check for fchdir, memmove, memset, strrchr, as we use
52926         them unconditionally.
52927         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
52928         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
52929
52930 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
52931
52932         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
52933         Include <stddef.h> unconditionally, since we assume C89 now.
52934         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
52935         * lib/fts.c: Include fts_.h first, to check interface.
52936         Do not include intprops.h; no longer needed.
52937         Include cycle-check.h and hash.h, since fts_.h no longer does.
52938         Remove unnecessary casts of closedir to void.
52939         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
52940         decide whether to decrement nlinks.
52941         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
52942         (FTS): Use struct hash_table * instead of Hash_table, so that
52943         we no longer need to include hash.h here.
52944
52945 2005-05-18  Jim Meyering  <jim@meyering.net>
52946
52947         * modules/dirfd (License): Change to LGPL.  Most of the code
52948         is already in the public domain.
52949
52950 2005-05-18  Jim Meyering  <jim@meyering.net>
52951
52952         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
52953         Reported by Yoann Vandoorselaere.
52954
52955 2005-05-17  Jim Meyering  <jim@meyering.net>
52956
52957         * m4/fts.m4: New file, from coreutils.
52958
52959 2005-05-17  Jim Meyering  <jim@meyering.net>
52960
52961         * lib/fts.c, lib/fts_.h: New files, from coreutils.
52962
52963 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52964
52965         Sync from coreutils.
52966         * m4/unlinkdir.m4: New file.
52967
52968 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52969
52970         Sync from coreutils.
52971         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
52972         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
52973         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
52974         White space changes only.
52975         * lib/makepath.c (make_path): Port to hosts where leading "//" is
52976         special.
52977         * lib/yesno.c: Include getline.h, not ctype.h.
52978         (yesno): Don't remove leading white space; POSIX doesn't allow it.
52979         Use getline to remove arbitrary restriction on response length.
52980
52981 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52982
52983         * config/srclist-update: Spell out "Street" in FSF postal
52984         mail address; this is the style the FSF seems to prefer.
52985
52986         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
52987         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
52988         this updates FSF postal mail address.
52989
52990         Sync from coreutils.
52991         * modules/unlinkdir: New file.
52992         * modules/yesno (Depends-on): Add getline.
52993         * MODULES.html.sh (File system functions): Add unlinkdir.
52994
52995 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52996
52997         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
52998         lib/strsep.h:
52999         Change the initial comment to refer to GPL, not LGPL.
53000         gnulib-tool will change it to LGPL as needed.
53001
53002         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
53003         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
53004         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
53005         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
53006         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
53007         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
53008         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
53009         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
53010         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
53011         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
53012         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
53013         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
53014         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
53015         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
53016         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
53017         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
53018         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
53019         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
53020         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
53021         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
53022         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
53023         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
53024         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
53025         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
53026         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
53027         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
53028         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
53029         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
53030         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
53031         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
53032         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
53033         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
53034         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
53035         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
53036         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
53037         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
53038         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
53039         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
53040         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
53041         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
53042         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
53043         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
53044         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
53045         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
53046         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
53047         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
53048         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
53049         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
53050         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
53051         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
53052         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53053         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
53054         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
53055         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
53056         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
53057         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
53058         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
53059         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
53060         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
53061         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
53062         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
53063         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
53064         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
53065         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
53066         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
53067         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
53068         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
53069         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
53070         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
53071         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
53072         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
53073         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
53074         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
53075         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
53076         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
53077         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
53078         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
53079         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
53080         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
53081         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
53082         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
53083         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
53084         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
53085         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
53086         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
53087         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
53088         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
53089         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
53090         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
53091         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
53092         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
53093         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
53094         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
53095         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
53096         lib/yesno.c, lib/yesno.h:
53097         Update FSF postal mail address.
53098
53099 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
53100
53101         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
53102         tests/test-memmem.c, tests/test-stpncpy.c:
53103         Update FSF postal mail address.
53104
53105 2005-05-13  Bruno Haible  <bruno@clisp.org>
53106
53107         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
53108         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
53109         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
53110         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
53111         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
53112         Add support for 64-bit integers in the MSVC compiler.
53113
53114 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53115
53116         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
53117
53118 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
53119
53120         * gnulib-tool (func_import): Sort and uniquify recommended includes.
53121
53122 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
53123
53124         * doc/getdate.texi (General date syntax): Don't say that date
53125         date --iso-8601=ns generates acceptable dates; it doesn't yet.
53126         Problem reported by Nic Ferrier.
53127
53128 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53129
53130         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
53131         specified in ai_socktype. Fix invalid ai_protocol
53132         check. ai_protocol is usually set to 0 or depending on
53133         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
53134         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
53135         ai_socktype / ai_protocol in the returned addrinfo structure.
53136
53137 2005-05-10  Simon Josefsson  <jas@extundo.com>
53138
53139         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
53140         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53141
53142 2005-05-10  Karl Berry  <karl@gnu.org>
53143
53144         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
53145         (from http://www.gnu.org/licenses).
53146         * doc/COPYING.LIB: also rename to COPYING.LESSER.
53147         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
53148         fdl.texi suffices.
53149
53150 2005-05-10  Karl Berry  <karl@gnu.org>
53151
53152         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
53153         (COPYING.DOC): remove.
53154
53155         * config/srclist-update: new FSF address.
53156
53157 2005-05-10  Derek Price  <derek@ximbiot.com>
53158
53159         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
53160         possible.
53161
53162 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53163             Bruno Haible  <bruno@clisp.org>
53164
53165         * modules/inet_ntop: New file.
53166         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53167         inet_ntop.
53168
53169 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53170             Bruno Haible  <bruno@clisp.org>
53171
53172         * m4/inet_ntop.m4: New file.
53173
53174 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53175             Bruno Haible  <bruno@clisp.org>
53176
53177         * lib/inet_ntop.h: New file.
53178         * lib/inet_ntop.c: New file, from glibc with modifications.
53179
53180 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
53181
53182         * modules/time_r (License): Change to LGPL.
53183         * modules/extensions (License): Change to LGPL.  Actually,
53184         the license is more permissive than that, but currently gnulib-tool
53185         doesn't know how to handle more-permissive licenses.
53186
53187         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
53188         Problem reported by Dave Love.
53189
53190 2005-05-08  Jim Meyering  <jim@meyering.net>
53191
53192         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
53193         blank.
53194
53195 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
53196
53197         * modules/argmatch (Depends-on): Add stdbool.
53198         * modules/backupfile (Depends-on): Likewise.
53199         * modules/chdir-long (Depends-on): Likewise.
53200         * modules/closeout (Depends-on): Likewise.
53201         * modules/cycle-check (Depends-on): Likewise.
53202         * modules/dirname (Depends-on): Likewise.
53203         * modules/fnmatch (Depends-on): Likewise.
53204         * modules/fsusage (Depends-on): Likewise.
53205         * modules/fwriteerror (Depends-on): Likewise.
53206         * modules/getcwd (Depends-on): Likewise.
53207         * modules/getloadavg (Depends-on): Likewise.
53208         * modules/hard-locale (Depends-on): Likewise.
53209         * modules/makepath (Depends-on): Likewise.
53210         * modules/mountlist (Depends-on): Likewise.
53211         * modules/nanosleep (Depends-on): Likewise.
53212         * modules/posixtm (Depends-on): Likewise.
53213         * modules/quotearg (Depends-on): Likewise.
53214         * modules/readtokens (Depends-on): Likewise.
53215         * modules/readtokens0 (Depends-on): Likewise.
53216         * modules/readutmp (Depends-on): Likewise.
53217         * modules/save-cwd (Depends-on): Likewise.
53218         * modules/strftime (Depends-on): Likewise.
53219         * modules/userspec (Depends-on): Likewise.
53220         * modules/utimecmp (Depends-on): Likewise.
53221         * modules/xgetcwd (Depends-on): Likewise.
53222         * modules/xnanosleep (Depends-on): Likewise.
53223         * modules/xstrtod (Depends-on): Likewise.
53224         * modules/yesno (Depends-on): Likewise.
53225
53226 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
53227
53228         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
53229         needless checks.
53230
53231 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53232
53233         Merge from coreutils.  Among other things,
53234         add bulletproofing for cases where stdin, stdout, or stderr are closed.
53235         * lib/fd-safer.c: New file.
53236         * lib/fcntl-safer.h, open-safer.c: Remove.
53237         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
53238         * lib/dup-safer.c: Include unistd-safer.h first.
53239         Don't include errno.h.
53240         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
53241         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
53242         * lib/file-type.c: Rely on file-type.h change.
53243         * lib/getloadavg.c: Include unistd-safer.h.
53244         (getloadavg): Use safer open.
53245         * lib/getusershell.c: Include "stdio-safer.h".
53246         (getusershell): Use safer fopen.
53247         * lib/long-options.c (long_options): Use NULL rather than 0.
53248         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
53249         'free'.
53250         * lib/modechange.c: Likewise.
53251         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
53252         (MODE_DONE): New constant.
53253         (struct mode_change): Remove 'next' member.
53254         (make_node_op_equals): New function; like the old one of the
53255         same name, except it allocates an array.
53256         (mode_compile, mode_create_from_ref): Use it.
53257         (mode_compile): Allocate result as an array, not a linked list.
53258         Parse octal string ourself, so that we catch mistakes like "+0".
53259         (mode_adjust): Arg is an array, not a linked list.
53260         * lib/modechange.c: Include stat-macros.h, xalloc.h.
53261         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
53262         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
53263         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
53264         Remove.  This is now stat-macros.h's job.
53265         (talloc): Remove.  All callers replaced by xalloc, so that
53266         our invokers don't have to worry about reporting memory failures.
53267         (make_node_op_equals): Remove.
53268         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53269         New constants.
53270         (struct mode_change): Moved here from modechange.h.
53271         (mode_append_entry): Remove.
53272         (mode_compile): Remove MASKED_OPS arg, since it encouraged
53273         apps to have incorrect behavior.  Use simpler algorithm for head
53274         and tail.  Don't futz with umask; that's now the job of mode_adjust.
53275         Detect more invalid usages rather than having somewhat-random behavior.
53276         Don't insert an "a=" action, as that leads to incorrect behavior.
53277         (mode_compile, mode_create_from_ref): Return NULL on error instead
53278         of an enum, since now there's only one way to have an error.  All
53279         callers changed.
53280         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
53281         at the correct time.  Simplify calculation of "+u" and its ilk.
53282         Don't mishandle "+X".
53283         (mode_free): Remove "register" and localize decls.
53284         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
53285         (struct mode_change): Move to modechange.c; callers don't
53286         need to see this stuff.
53287         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
53288         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
53289         (mode_change, mode_adjust): Reflect the new signatures noted above.
53290         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
53291         that might redefine system include files.
53292         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
53293         (my_usleep): Use NULL rather than (void *) 0.
53294         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
53295         Use siginterrupt to specify that system calls should be interrupted.
53296         (rpl_nanosleep): Move initialization of suspended closer to call of
53297         my_usleep.
53298         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
53299         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
53300         (desirable_utmp_entry): New function.
53301         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
53302         using x2nrealloc, to simplify logic.
53303         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
53304         size calculation.  Do not assume utmp file is a regular file.
53305         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
53306         (READ_UTMP_CHECK_PIDS): New constant.
53307         * lib/save-cwd.c: Include unistd-safer.h.
53308         (save_cwd): Use fd_safer.
53309         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
53310         [!_LIBC] Include "stat-macros.h" instead.
53311         * lib/unistd-safer.h (fd_safer): New decl.
53312
53313 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53314
53315         * modules/getloadavg (Depends-on): Add unistd-safer.
53316         * modules/getusershell (Depends-on): Add stdio-safer.
53317         * modules/lstat (Depends-on): Remove xalloc.
53318         * modules/mkstemp (Depends-on): Add stat-macros.
53319         * modules/modechange (Depends-on): Remove xstrtol.
53320         Add stat-macros, xalloc.
53321         * modules/save-cwd (Depends-on): Add unistd-safer.
53322         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
53323         * modules/unistd-safer (Files): Add lib/fd-safer.c
53324         (Makefile.am): Remove lib_SOURCES.
53325
53326         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
53327         Remove fcntl-safer; unistd-safer supersedes it.
53328
53329 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53330
53331         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
53332         AC_HEADER_STAT.
53333         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
53334         (gl_PREREQ_CHOWN): Remove.
53335         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
53336         it.  Don't require AC_HEADER_STAT.
53337         (gl_PREREQ_LSTAT): Remove.
53338         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
53339         Don't require AC_HEADER_STAT.
53340         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
53341         (gl_PREREQ_RMDIR): Remove.
53342         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
53343         mention stat-macros.h or AC_HEADER_STAT, since we'll make
53344         the stat-macros module a prerequisite.
53345         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
53346         * m4/filemode.m4 (gl_FILEMODE): Likewise.
53347         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
53348         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
53349         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
53350         variable names.
53351         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
53352         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
53353         variable prefixes.
53354         * m4/fcntl-safer.m4: Remove.
53355         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
53356         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
53357         Invoke gl_PREREQ_FD_SAFER.
53358         (gl_PREREQ_FD_SAFER): New macro.
53359         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
53360         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
53361         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
53362         Remove duplicate call to AC_LIBOBJ(readutmp).
53363         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
53364
53365         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
53366         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
53367
53368 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
53369
53370         * MODULES.html.sh (Misc): Add byteswap.
53371
53372 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53373
53374         * modules/getcwd (Depends-on): Add extensions.
53375         * modules/openat (Depends-on): Likewise.
53376
53377 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53378
53379         * modules/byteswap: New file.
53380
53381 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53382
53383         * m4/byteswap.m4: New file.
53384
53385 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
53386
53387         * lib/byteswap_.h: New file.
53388
53389 2005-04-25  Karl Berry  <karl@gnu.org>
53390
53391         * m4/gettext.m4: Update from GNU gettext 0.14.4.
53392
53393 2005-04-25  Albert Chin  <china@thewrittenword.com>
53394
53395         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
53396         Toolkit C bug.
53397
53398 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
53399
53400         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
53401         (func_ln_if_changed) Remove forcibly for no error message
53402         in case file does not exist.
53403
53404 2005-04-19  Simon Josefsson  <jas@extundo.com>
53405
53406         * gnulib-tool (Options): Make --symlink mean --symbolic.
53407
53408 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
53409
53410         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
53411
53412 2005-04-16  Simon Josefsson  <jas@extundo.com>
53413
53414         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
53415
53416 2005-04-15  Simon Josefsson  <jas@extundo.com>
53417
53418         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
53419
53420 2005-04-15  Simon Josefsson  <jas@extundo.com>
53421
53422         * gnulib-tool: Rename --symlink to --symbolic.
53423
53424 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
53425
53426         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
53427         symbolic links to files instead of copying/moving.  Add --aux-dir,
53428         specifying directory relative --dir where auxiliary build tools
53429         are placed.
53430
53431 2005-04-14  Bruno Haible  <bruno@clisp.org>
53432
53433         * modules/allocsa (License): Change to LGPL.
53434         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53435
53436 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53437
53438         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
53439         that "UTC +1 second" continues to work.  Problem reported
53440         by Dmitry V. Levin.
53441         (relunit_snumber): New rule.
53442         (relunit): Use it.
53443
53444 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53445
53446         * lib/getdate.y (universal_time_zone_table): New constant.
53447         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
53448         universal_time_zone_table.
53449         (lookup_zone): Prefer universal_time_zone_table to
53450         local_time_zone_table, so that "GMT" time stamps are allowed in
53451         London during the summer.  Problem reported by Ian Abbott.
53452
53453 2005-04-12  Jim Meyering  <jim@meyering.net>
53454
53455         * lib/human.c (humblock): Set *options even when returning due to
53456         xstrtoumax conversion failure.  Thanks to a used-uninitialized
53457         warning from gcc-4.
53458
53459 2005-04-09  Jim Meyering  <jim@meyering.net>
53460
53461         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
53462         -Wuninitialized: initialize tm0.tm_year.
53463
53464 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
53465
53466         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
53467         count, since there's no maximum.  All uses changed.
53468         Add member dsts_seen.
53469         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
53470         not being INT_MAX.
53471         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
53472         Use pc_rels_seen to decide whther a date is absolute.
53473
53474         * lib/getdate.y (number): Don't overwrite year.
53475         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
53476         check.
53477
53478 2005-04-02  Simon Josefsson  <jas@extundo.com>
53479
53480         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
53481         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
53482
53483 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
53484
53485         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
53486         where no absolute path name can be longer than PATH_MAX.
53487
53488 2005-03-27  Jim Meyering  <jim@meyering.net>
53489
53490         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
53491
53492 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
53493
53494         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
53495         "one's complement" -> "ones' complement" in comment, as per Knuth.
53496         "value of type" -> "type or expression" in comment.
53497         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
53498
53499 2005-03-26  Jim Meyering  <jim@meyering.net>
53500
53501         Comment nits.
53502         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
53503         Correct typos: s/or/of/.
53504
53505 2005-03-26  Jim Meyering  <jim@meyering.net>
53506
53507         * modules/check-include-files: Move to ../ and rename to...
53508         * check-module: ...this.
53509
53510 2005-03-25  Jim Meyering  <jim@meyering.net>
53511
53512         * modules/xvasprintf (Files): Add xalloc.h.
53513
53514 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
53515
53516         * modules/gettext (Files): config/config.rpath ->
53517         build-aux/config.rpath
53518         * modules/iconv (Files): Likewise.
53519         Problem reported by Oskar Liljeblad.
53520
53521 2005-03-23  Jim Meyering  <jim@meyering.net>
53522
53523         * modules/check-include-files: New script to check for
53524         missing dependencies, multiple includes, etc.
53525
53526         * modules/c-strtold (Depends-on): Add xalloc.
53527         * modules/c-strtod (Depends-on): Add xalloc.
53528         * modules/hash (Depends-on): Add xalloc.
53529         (Files): Remove lib/xalloc.h.
53530
53531         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
53532         * modules/userspec (Files): Add lib/inttostr.h.
53533
53534 2005-03-23  Jim Meyering  <jim@meyering.net>
53535
53536         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
53537
53538 2005-03-22  Jim Meyering  <jim@meyering.net>
53539
53540         * modules/stat-macros: New module.
53541         * modules/canonicalize, modules/euidaccess, modules/file-type,
53542         * modules/filemode, modules/lchown, modules/makepath,
53543         * modules/rmdir, modules/stat: Depend on new stat-macros module
53544         rather than listing lib/stat-macros.h manually.
53545         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
53546
53547 2005-03-22  Jim Meyering  <jim@meyering.net>
53548
53549         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
53550
53551 2005-03-22  Bruno Haible  <bruno@clisp.org>
53552
53553         * config/srclist.txt: Replace target directory 'config' with
53554         'build-aux'.
53555         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
53556         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
53557         ../build-aux/.
53558
53559 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         * modules/chdir-long (Depends-on): Add mempcpy.
53562
53563         * modules/acl, modules/backupfile, modules/c-strtod,
53564         modules/c-strtold, modules/canon-host, modules/canonicalize,
53565         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
53566         modules/exclude, modules/exitfail, modules/file-type,
53567         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
53568         modules/getdate, modules/getline, modules/getpagesize,
53569         modules/getpass, modules/getugroups, modules/group-member,
53570         modules/hard-locale, modules/hash, modules/human, modules/idcache,
53571         modules/inttostr, modules/long-options, modules/makepath,
53572         modules/md5, modules/memcasecmp, modules/memcoll,
53573         modules/modechange, modules/mountlist, modules/path-concat,
53574         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
53575         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
53576         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
53577         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
53578         modules/strftime, modules/strndup, modules/strverscmp,
53579         modules/timespec, modules/unlocked-io, modules/userspec,
53580         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
53581         modules/yesno:
53582         Remove lib_SOURCES line from Makefile.am section, as this is now
53583         done automatically by the corresponding Autoconf macro.
53584
53585 2005-03-21  Jim Meyering  <jim@meyering.net>
53586
53587         Changes imported from coreutils.
53588
53589         * lib/cycle-check.c: Don't include xalloc.h.
53590
53591         * lib/path-concat.c: Don't include assert.h.
53592         (path_concat): Remove assertion that would have triggered
53593         for ABASE starting with more than one slash.
53594         Reported by Andreas Schwab.
53595
53596         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
53597         properly when ABASE is an absolute file name.
53598         Correct the description of this function.
53599         Include <assert.h>.
53600         Add an assertion and a test driver.
53601         This fixes a bug introduced on 2004-07-02.
53602         Andreas Schwab reported the resulting failure of cp --parents:
53603         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
53604
53605 2005-03-21  Jim Meyering  <jim@meyering.net>
53606
53607         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
53608         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
53609
53610 2005-03-21  Jim Meyering  <jim@meyering.net>
53611         and  Paul Eggert  <eggert@cs.ucla.edu>
53612
53613         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
53614         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
53615         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
53616         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
53617         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
53618         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
53619         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
53620         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
53621         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
53622         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
53623         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
53624         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
53625         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
53626         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
53627         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
53628         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
53629         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
53630         for these modules.
53631
53632 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
53633
53634         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
53635         (which shouldn't happen), generate nothing instead of returning 0
53636         immediately, so that nstrftime (NULL, ...) doesn't return 0.
53637
53638 2005-03-16  Bruno Haible  <bruno@clisp.org>
53639
53640         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
53641         HAVE_LONGLONG_64BIT.
53642
53643 2005-03-16  Bruno Haible  <bruno@clisp.org>
53644
53645         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
53646         HAVE_LONGLONG_64BIT.
53647
53648 2005-03-16  Bruno Haible  <bruno@clisp.org>
53649
53650         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
53651         HAVE_LONGLONG_64BIT.
53652
53653 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53654
53655         * lib/strftime.c (my_strftime): Prepend space to format so that we can
53656         reliably distinguish strftime failure from empty output on POSIX
53657         hosts.
53658
53659 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
53660
53661         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
53662         (iconv_string): Don't guess a size-zero buffer, as that might cause
53663         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
53664         result would be 'too large', where 'too large' is (heuristically)
53665         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
53666         overflow concerns.  This will prevent some unwanted malloc failures
53667         when the inputs are very large.
53668
53669 2005-03-15  Karl Berry  <karl@gnu.org>
53670
53671         * config/srclist.txt (config.rpath): from gettext.
53672         * config/config.rpath: update.
53673
53674 2005-03-15  Bruno Haible  <bruno@clisp.org>
53675
53676         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
53677         to 'negate'.
53678
53679         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
53680         variable.
53681
53682         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
53683         results.
53684
53685 2005-03-14  Simon Josefsson  <jas@extundo.com>
53686
53687         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
53688         <fx@gnu.org>.
53689
53690 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
53691
53692         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
53693         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
53694         intprops.h.
53695         * lib/strtol.c: Likewise.
53696
53697 2005-03-14  Jim Meyering  <jim@meyering.net>
53698
53699         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
53700         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
53701         to be nonzero so that we (and caller) can detect the difference
53702         between a valid zero-length expansion and an error return, even
53703         when the underlying strftime fails before writing anything into
53704         that location.
53705
53706 2005-03-14  Bruno Haible  <bruno@clisp.org>
53707
53708         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
53709         Update from GNU gettext 0.14.3.
53710
53711 2005-03-10  Jim Meyering  <jim@meyering.net>
53712
53713         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
53714
53715 2005-03-10  Jim Meyering  <jim@meyering.net>
53716
53717         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
53718         so that this module works on systems without fchdir.
53719
53720 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
53721
53722         Factor int-properties macros into a single file, except for
53723         glibc-related files.
53724         * lib/intprops.h: New file.
53725         * lib/getloadavg.c: Include it instead of limits.h.
53726         (INT_STRLEN_BOUND): Remove.
53727         * lib/human.c: Include intprops.h.
53728         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
53729         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
53730         302/1000.
53731         * lib/inttostr.h: Include intprops.h instead of limits.h.
53732         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
53733         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
53734         for consistency with intprops.h.
53735         (time_t_is_integer, twos_complement_arithmetic): Use them.
53736         * lib/sig2str.h: Include <signal.h>, intprops.h.
53737         (INT_STRLEN_BOUND): Remove.
53738         * lib/strftime.c (TYPE_SIGNED): Remove.
53739         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
53740         * lib/strtol.c: Adjust comments to match intprops.h.
53741         * lib/userspec.c: Include intprops.h.
53742         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
53743         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
53744         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
53745         instead of rolling our own expressions.
53746         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
53747
53748         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
53749         instead of int.
53750         (my_strftime): Do not mishandle years close to INT_MAX, by doing
53751         the right thing even if adding 1900 would overflow.  Similarly
53752         for tm_mon + 1 and tm_yday + 1.
53753         Make %Y always equivalent to %C%y, and similarly for %G and %g.
53754         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
53755         (DO_SIGNED_NUMBER): New macro.
53756         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
53757
53758 2005-03-07  Bruno Haible  <bruno@clisp.org>
53759
53760         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
53761
53762 2005-03-07  Bruno Haible  <bruno@clisp.org>
53763
53764         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
53765
53766 2005-03-04  Derek R. Price  <derek@ximbiot.com>
53767
53768         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
53769         (func_import): Only replace files via --import when they have actually
53770         changed.
53771
53772 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53773
53774         * m4/mmap-anon.m4: New file.
53775         * m4/pagealign_alloc.m4: New file.
53776
53777 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53778             Bruno Haible  <bruno@clisp.org>
53779
53780         * modules/pagealign_alloc: New file.
53781         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
53782
53783 2005-03-03  Derek R. Price  <derek@ximbiot.com>
53784             Bruno Haible  <bruno@clisp.org>
53785
53786         * lib/pagealign_alloc.h: New file.
53787         * lib/pagealign_alloc.c: New file.
53788
53789 2005-03-03  Bruno Haible  <bruno@clisp.org>
53790
53791         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
53792         Use an all-permissive copyright notice, recommended by RMS.
53793
53794 2005-03-02  Bruno Haible  <bruno@clisp.org>
53795
53796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
53797         of AIX, the replacement has to be done only after <string.h> is
53798         included, therefore not in config.h. stpncpy.h does the replacement,
53799         and stpncpy.c uses it.
53800
53801 2005-03-02  Bruno Haible  <bruno@clisp.org>
53802
53803         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
53804         stpncpy.c uses it.
53805
53806 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53807
53808         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
53809         The workaround isn't strictly needed for POSIX conformance, and
53810         it's too much of a pain to configure and maintain.  We'll ask
53811         people to fix their kernels instead.
53812         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
53813         (NANOSLEEP_BUG_WORKAROUND): Remove.
53814         (xnanosleep): Remove the workaround.
53815
53816 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53817
53818         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
53819         Reported by Derek Price.
53820         (Include): Add "timespec.h".
53821
53822         * modules/xnanosleep (Depends-on): Remove gethrxtime.
53823
53824 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53825
53826         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
53827         to detect nanosleep bug.
53828
53829 2005-03-01  Bruno Haible  <bruno@clisp.org>
53830
53831         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
53832
53833 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53834
53835         * modules/gethrxtime: New file.
53836         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
53837         (Depends-on): Add gethrxtime.
53838         (configure.ac): Add gl_XNANOSLEEP.
53839         (Makefile.am): Remove lib_SOURCES line.
53840
53841 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53842
53843         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
53844         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
53845
53846 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53847
53848         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
53849         * lib/timespec.h (gettime): Return void, since it always
53850         succeeds now.  All uses changed.
53851         * lib/gettime.c (gettime) Likewise.
53852         [HAVE_NANOTIME]: Prefer nanotime.
53853         Assume gettimeofday succeeds, as POSIX requires.
53854         Assime time () succeeds, since other code already does.
53855         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
53856         (timespec_subtract): Remove.
53857         (NANOSLEEP_BUG_WORKAROUND): New constant.
53858         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
53859         things considerably.  Use it only on GNU/Linux hosts, since the
53860         workaround shouldn't be needed elsewhere.
53861
53862 2005-02-24  Bruno Haible  <bruno@clisp.org>
53863
53864         * modules/gettext (Files): Add m4/glibc2.m4.
53865
53866 2005-02-24  Bruno Haible  <bruno@clisp.org>
53867
53868         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
53869         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
53870         * m4/progtest.m4:
53871         Update from GNU gettext 0.14.2.
53872         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
53873
53874 2005-02-24  Bruno Haible  <bruno@clisp.org>
53875
53876         * lib/localcharset.c: Update from GNU gettext 0.14.2.
53877         * lib/config.charset: Update from GNU gettext 0.14.2.
53878
53879 2005-02-24  Bruno Haible  <bruno@clisp.org>
53880
53881         * lib/gettext.h: Update from GNU gettext 0.14.2.
53882
53883 2005-02-23  Simon Josefsson  <jas@extundo.com>
53884
53885         * m4/iconvme.m4: New file.
53886
53887 2005-02-23  Jim Meyering  <jim@meyering.net>
53888
53889         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
53890         change.
53891         Thanks to Bruno Haible for catching it.
53892
53893 2005-02-22  Simon Josefsson  <jas@extundo.com>
53894
53895         * modules/iconvme: New file.
53896
53897         * MODULES.html.sh: Add iconvme.
53898
53899 2005-02-22  Simon Josefsson  <jas@extundo.com>
53900
53901         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
53902
53903 2005-02-22  Simon Josefsson  <jas@extundo.com>
53904
53905         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
53906
53907 2005-02-22  Jim Meyering  <jim@meyering.net>
53908
53909         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
53910         s/ifndef/ifdef/.
53911
53912 2005-02-20  Neil Conway  <neilc@samurai.com>
53913
53914         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
53915         returned by OSX/Darwin if the specified buffer is not large
53916         enough for the hostname.
53917
53918 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53919
53920         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
53921         pass it to _help, otherwise the latter coredumps trying to
53922         dereference state.root_argp.
53923
53924 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53925
53926         * modules/chdir-long (Depends-on): Add memrchr.
53927         * modules/memrchr (Files): Add lib/memrchr.h.
53928         (Include): "memrchr.h".
53929
53930 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53931
53932         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
53933
53934 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53935
53936         * lib/memrchr.h: New file.
53937         * lib/chdir-long.c: Include it.
53938         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
53939         Don't bother including stddef.h.
53940
53941 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53942
53943         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
53944         inclusion.
53945         Include <sys/types.h>, for dev_t.
53946         (ME_DUMMY, ME_REMOTE): Move from here....
53947         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
53948         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
53949         Dmitry V. Levin.
53950         Include mountlist.h first, to test the interface.
53951
53952 2005-01-29  Bruno Haible  <bruno@clisp.org>
53953
53954         * lib/progname.c (program_name): Initialize.
53955         Needed when linking statically on MacOS X.
53956
53957 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53958
53959         Sync from coreutils.
53960         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
53961         (Depends-on): Add c-strtod.
53962         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
53963
53964 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53965
53966         Sync from coreutils.
53967         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
53968
53969         Remove files that are specific to coreutils.
53970         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
53971
53972 2005-01-28  Bruno Haible  <bruno@clisp.org>
53973
53974         * modules/javacomp: New file.
53975         * MODULES.html.sh (Java): Add javacomp.
53976
53977 2005-01-28  Bruno Haible  <bruno@clisp.org>
53978
53979         * m4/javacomp.m4: New file, from GNU gettext.
53980
53981 2005-01-28  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/javacomp.sh.in: New file, from GNU gettext.
53984         * lib/javacomp.h: New file, from GNU gettext.
53985         * lib/javacomp.c: New file, from GNU gettext.
53986
53987 2005-01-26  Simon Josefsson  <jas@extundo.com>
53988
53989         * lib/gai_strerror.c: Use GPL in header.
53990
53991 2005-01-26  Bruno Haible  <bruno@clisp.org>
53992
53993         * modules/javaexec: New file.
53994         * MODULES.html.sh (Java): Add javaexec.
53995
53996 2005-01-26  Bruno Haible  <bruno@clisp.org>
53997
53998         * m4/javaexec.m4: New file, from GNU gettext.
53999
54000 2005-01-26  Bruno Haible  <bruno@clisp.org>
54001
54002         * lib/javaexec.sh.in: New file, from GNU gettext.
54003         * lib/javaexec.h: New file, from GNU gettext.
54004         * lib/javaexec.c: New file, from GNU gettext.
54005
54006 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54007
54008         * modules/lchown (Depends-on): Remove lchown.h
54009
54010 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54011
54012         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
54013         must be defined if the header file was not found, in order
54014         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
54015
54016 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54017
54018         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
54019         initializers for struct pentry_state.
54020         (__argp_error): Check return value of __asprintf
54021         (__argp_failure): Translate error message
54022
54023         * lib/argp-parse.c: Removed braces around the expansion of N_()
54024
54025 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54026
54027         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
54028         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
54029         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
54030         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
54031         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
54032         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
54033         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
54034         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
54035         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
54036         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
54037         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
54038         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
54039         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
54040         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
54041         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
54042         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
54043         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
54044         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
54045         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
54046         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
54047         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
54048         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
54049         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
54050         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
54051         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
54052         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
54053         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
54054         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
54055         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
54056         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
54057         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
54058         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
54059         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
54060         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
54061         xstrtol.m4, xstrtoumax.m4, yesno.m4:
54062         Use an all-permissive copyright notice, recommended by RMS.
54063
54064 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
54065
54066         * modules/chdir-long (Depends-on): Remove mempcpy.
54067
54068 2005-01-21  Jim Meyering  <jim@meyering.net>
54069
54070         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
54071         same value as for Solaris 9.
54072
54073         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
54074         component length.  This included changing the parameter to be
54075         of type `char *' rather than `char const *'.
54076         * lib/chdir-long.h (chdir_long): Update prototype.
54077
54078         * lib/openat.c (fdopendir, fstatat): New functions.
54079         * lib/openat.h: Include headers required for use of DIR and struct
54080         stat.
54081         [AT_SYMLINK_NOFOLLOW]: Define.
54082         (fdopendir, fstatat): Add prototypes.
54083
54084 2005-01-21  Bruno Haible  <bruno@clisp.org>
54085
54086         * modules/classpath: New file.
54087         * MODULES.html.sh (Java): Add classpath.
54088
54089 2005-01-21  Bruno Haible  <bruno@clisp.org>
54090
54091         * lib/classpath.h: New file, from GNU gettext.
54092         * lib/classpath.c: New file, from GNU gettext.
54093
54094 2005-01-20  Simon Josefsson  <jas@extundo.com>
54095
54096         * modules/version-etc-fsf: New file.
54097
54098 2005-01-20  Simon Josefsson  <jas@extundo.com>
54099
54100         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
54101         * lib/version-etc.c: Remove version_etc_copyright.
54102         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
54103         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
54104
54105 2005-01-20  Simon Josefsson  <jas@extundo.com>
54106
54107         * lib/base64.h (isbase64): Add.
54108
54109         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
54110         using a unsigned prototype, don't inline.
54111         (base64_decode): Use it.
54112
54113 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54114
54115         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
54116         it.
54117
54118 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54119
54120         * lib/save-cwd.c (save_cwd): Remove code to support the case
54121         where fchdir is missing or flaky.
54122
54123 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54124
54125         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
54126
54127 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54128
54129         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
54130         AC_LIBSOURCES now does this.
54131         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
54132         with new ullong_max module.
54133
54134 2005-01-19  Bruno Haible  <bruno@clisp.org>
54135
54136         * modules/sh-quote: New file.
54137         * MODULES.html.sh (Executing programs): Add sh-quote.
54138
54139 2005-01-19  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/sh-quote.h: New file, from GNU gettext.
54142         * lib/sh-quote.c: New file, from GNU gettext.
54143
54144 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54145
54146         Merge from coreutils.
54147         * m4/ullong_max.m4: New file.
54148         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
54149         (gl_MACROS): Assume localeconv exists.
54150
54151 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54152
54153         Merge changes from coreutils, as described below in several
54154         changelogs dated today.
54155
54156         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
54157         (O_DIRECTORY): Remove; not needed here, since "." must be
54158         a directory.  All uses removed.
54159         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
54160         universal on Suns, and we also need to test for IRIX.
54161         Revamp code to use 'if' rather than '#if'.
54162         Avoid unnecessary comparison of cwd->desc to 0.
54163
54164         * lib/utimens.c (futimens): Robustify the previous patch, by checking
54165         for known valid error numbers rather than observed invalid ones.
54166
54167 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
54168
54169         * modules/ullong_max: New file.
54170
54171         * modules/chdir-long, modules/openat: New files.
54172         * modules/save-cwd (Depends-on): Depend on chdir-long.
54173         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
54174
54175 2005-01-18  Jim Meyering  <jim@meyering.net>
54176
54177         Merge from coreutils.
54178         * m4/chdir-long.m4, m4/openat.m4: New files.
54179         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
54180         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
54181         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
54182         is sane and DOES follow symlinks.  Besides, testing 20 different
54183         systems found no broken chown implementations.
54184         Prompted by a change in rsync's copy of this macro.
54185         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
54186
54187         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
54188
54189         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
54190         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
54191         NULL-means-set-to-current-time semantics.
54192         Remove temporary file immediately, rather than waiting
54193         for configure's at-exit trap code to do it.
54194
54195 2005-01-18  Jim Meyering  <jim@meyering.net>
54196
54197         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54198
54199         * lib/utimens.c (futimens): Account for the fact that futimes
54200         can also fail with errno == ENOSYS or errno == ENOENT.
54201         Patch from Dmitry V. Levin.
54202
54203         Change the name of the robust chdir function from chdir to chdir_long.
54204         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
54205         (restore_cwd): Use chdir_long, not chdir.
54206         * lib/chdir-long.c: Renamed from chdir.c.
54207         * lib/chdir-long.h: Renamed from chdir.h.
54208         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
54209         Hurd.
54210
54211 2005-01-18  Bruno Haible  <bruno@clisp.org>
54212
54213         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
54214         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
54215         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
54216         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
54217         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
54218         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
54219         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
54220         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
54221         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
54222         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
54223         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
54224         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
54225         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
54226         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
54227         Use an all-permissive copyright notice, recommended by RMS.
54228
54229 2005-01-18  Bob Proulx  <bob@proulx.com>
54230
54231         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
54232         simplify offsetof() macro construct to avoid compile failure with
54233         native HP-UX 11.0 ANSI C compiler.
54234
54235 2005-01-17  Bruno Haible  <bruno@clisp.org>
54236
54237         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
54238         redundant because stpncpy.m4 takes care of it.
54239
54240 2005-01-17  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
54243
54244 2005-01-17  Bruno Haible  <bruno@clisp.org>
54245
54246         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
54247         used.
54248
54249 2005-01-17  Bruno Haible  <bruno@clisp.org>
54250
54251         * lib/fwriteerror.h (fwriteerror): Change specification to include
54252         fclose.
54253         * lib/fwriteerror.c: Include <stdbool.h>.
54254         (fwriteerror): At the end, close the file stream. Record whether
54255         stdout was already closed.
54256
54257 2005-01-17  Bruno Haible  <bruno@clisp.org>
54258
54259         * lib/execute.c (environ): Declare if needed.
54260         * lib/pipe.c (environ): Likewise.
54261         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
54262
54263 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54264
54265         * modules/argp: Depend on vsnprintf
54266
54267 2005-01-10  Jim Meyering  <jim@meyering.net>
54268
54269         * modules/closeout (Depends-on): Add atexit.
54270
54271 2005-01-06  Bruno Haible  <bruno@clisp.org>
54272
54273         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
54274
54275 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54276
54277         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
54278         definitions to be after all include files, to avoid collisions.
54279         Problem reported by Bob Proulx.
54280
54281 2005-01-04  Jim Meyering  <jim@meyering.net>
54282
54283         Changes imported from coreutils.
54284         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
54285         as the mkstemp template, use a temporary directory and an
54286         8.3-friendly template to avoid trouble on systems like DJGPP.
54287         Reported by Juan M. Guerrero via Stepan Kasal.
54288         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
54289         close. Remove the temporary directory right away, rather than waiting
54290         for configure's at-exit trap code to do it.
54291         Suggestion from Stepan Kasal.
54292
54293 2005-01-01  Simon Josefsson  <jas@extundo.com>
54294
54295         * gnulib-tool: Print #include directives when --import'ing.
54296
54297 2004-12-28  Simon Josefsson  <jas@extundo.com>
54298
54299         * tests/test-base64.c: Include required header files.  Remove
54300         unused variables.
54301
54302 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54303
54304         * modules/error (Depends-on): Remove gettext.
54305
54306 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
54307
54308         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
54309         not needed.  This removes a dependency on the gettext module.
54310         [defined _LIBC]: Do not include <libintl.h>; not needed.
54311
54312 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54313
54314         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
54315         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
54316
54317 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
54318
54319         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
54320         HAVE_DECL_STRTOLD.
54321
54322 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54323
54324         * modules/getdate (Depends-on): Remove alloca-opt.
54325
54326 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54327
54328         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
54329
54330 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
54331
54332         * lib/argp-parse.c: Include <stddef.h>.
54333         (alignof, alignto): New macros.
54334         (parser_init): Don't assume that void * is aligned sufficiently
54335         for struct option.
54336
54337         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
54338         need to extend the stack.
54339         (YYINITDEPTH): New macro, so that the initial stack isn't overly
54340         large.
54341
54342 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54343
54344         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
54345
54346 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54347
54348         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
54349         (2004-10-24) change.  Apparently this was a false alarm.
54350
54351         * modules/getdate: Depend on alloca-opt, not alloca.
54352
54353 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
54354
54355         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
54356         Remove now-obsolete comment about AIX.
54357         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
54358         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
54359         (YYMAXDEPTH): New macro.
54360
54361 2004-12-18  Simon Josefsson  <jas@extundo.com>
54362
54363         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
54364
54365 2004-12-18  Bruno Haible  <bruno@clisp.org>
54366
54367         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
54368
54369 2004-12-18  Bruno Haible  <bruno@clisp.org>
54370
54371         * lib/fatal-signal.c (fatal_signals): Make non-const.
54372         (init_fatal_signals): New function.
54373         (uninstall_handlers, install_handlers): Ignore signals that were set to
54374         SIG_IGN.
54375         (at_fatal_signal): Call init_fatal_signals.
54376         (init_fatal_signal_set): Likewise. Ignore signals that were set to
54377         SIG_IGN.
54378         Reported by Paul Eggert.
54379
54380 2004-12-18  Bruno Haible  <bruno@clisp.org>
54381
54382         * doc/alloca.texi: New file.
54383         * doc/alloca-opt.texi: New file.
54384
54385 2004-12-17  Jim Meyering  <jim@meyering.net>
54386
54387         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
54388         Otherwise, install-sh could exit with improper exit status when
54389         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
54390
54391 2004-12-16  Simon Josefsson  <jas@extundo.com>
54392
54393         * tests/test-base64.c: Add license.
54394
54395 2004-12-15  Stepan Kasal  <address@hidden>
54396
54397         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
54398
54399 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         * modules/getcwd (Files): Add m4/d-ino.m4.
54402         Suggested by Mark D. Baushke.
54403
54404 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54405
54406         * lib/getdate.y (textint): New member "negative".
54407         (time_zone_hhmm): New function.
54408         Expect 14 shift-reduce conflicts, not 13.
54409         (o_colon_minutes): New rule.
54410         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
54411         (yylex): Set the "negative" member of signed numbers.
54412
54413 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
54414
54415         * doc/getdate.texi (Time of day items, Time zone items):
54416         Describe new formats +00:00, UTC+00:00.
54417
54418 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54419
54420         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
54421         spurious "-l"s.  Problem reported by Stepan Kasal.
54422
54423 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
54424
54425         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
54426         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
54427
54428 2004-12-04  Simon Josefsson  <jas@extundo.com>
54429
54430         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
54431         Vandoorselaere <yoann@prelude-ids.org>.
54432
54433 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54434
54435         Changes imported from coreutils.
54436         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
54437         exist.
54438         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
54439
54440 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54441
54442         Changes imported from coreutils.
54443         * lib/hard-locale.c: Assume <locale.h> exists.
54444         Include "strdup.h".
54445         (GLIBC_VERSION): New macro.
54446         (hard_locale): Assume setlocale exists.
54447         Rewrite to avoid #ifdef.
54448         Use strdup rather than malloc + strcpy.
54449         * lib/human.c: Assume <locale.h> exists.
54450         (human_readable): Assume localeconv exists.
54451
54452 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
54453
54454         * modules/hard-locale (Depends-on): Add strdup.
54455
54456 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54457
54458         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
54459         convert T2, not T.  (Imported from libc.)
54460
54461 2004-11-30  Simon Josefsson  <jas@extundo.com>
54462
54463         * modules/restrict (License): Change to LGPL.
54464
54465 2004-11-30  Simon Josefsson  <jas@extundo.com>
54466
54467         * m4/restrict.m4: Add copyright and copying conditions.
54468
54469 2004-11-30  Simon Josefsson  <jas@extundo.com>
54470
54471         * m4/base64.m4: New file.
54472
54473 2004-11-30  Simon Josefsson  <jas@extundo.com>
54474
54475         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
54476         base64.
54477
54478         * tests/test-base64.c: New file.
54479
54480         * modules/base64: New file.
54481
54482 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54483
54484         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
54485         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
54486
54487         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
54488
54489 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
54490
54491         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
54492         (__getcwd.c): Don't restore errno; glibc doesn't.
54493         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
54494         first, falling back to our code only if its results look suspicious.
54495         Ensure that the resulting buffer is only as large as necessary.
54496
54497         * lib/readutmp.c: Include readutmp.h first.
54498         Include <errno.h>, since readutmp.h no longer does that.
54499         * lib/readutmp.h: Don't include <errno.h>,
54500         <sys/param.h>, <time.h>; not needed to establish interface.
54501         (errno): Remove decl.
54502         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
54503         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
54504         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
54505
54506 2004-11-28  Simon Josefsson  <jas@extundo.com>
54507
54508         * lib/base64.h, base64.c: New file.
54509
54510 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
54511
54512         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
54513
54514 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
54515
54516         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
54517         (Depends-on): Remove pathmax, same.  Add mempcpy.
54518         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
54519         (Makefile.am): Append getcwd.h to lib_SOURCES.
54520         (Include): Add getcwd.h.
54521         (Maintainer): Change from Jim Meyering to "all, glibc",
54522         since getdate now uses intended-for-glibc code.
54523         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
54524         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
54525
54526 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54527
54528         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
54529         HP's ANSI C compiler.
54530         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
54531         Declaring int functions causes warnings on some modern systems and
54532         shouldn't be needed to compile on ancient ones.
54533         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
54534         defined.
54535
54536         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
54537         with the following changes.
54538         (__set_errno): Parenthesize properly.
54539         Include <stdbool.h>.
54540         (MIN, MAX, MATCHING_INO): New macros.
54541         (__getcwd): Define with prototype, not K&R form.
54542         Use heuristics to allocate default buffer on stack if possible.
54543         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
54544         behavior, and to avoid the PATH_MAX limit when computing
54545         ../../../../...
54546         Use MATCHING_INO to compare inode number to file.
54547         Check for arithmetic overflow in size calculations.
54548         Fix bug in reallocation of dot array that caused getcwd to fail
54549         on directories nested deeper than 75.
54550         Be more careful about saving errno on error.
54551         Do not use realloc; use only free+malloc, as this is a bit
54552         more flexible and avoids a needless copy operation.
54553         Do not inspect st_dev and st_ino for symbolic links; POSIX
54554         doesn't specify the latter.
54555         Check for closedir errors.
54556         Avoid needless casts.
54557         Use "#ifdef weak_alias" around weak_alias, to be like other
54558         glibc code.
54559         The following changes to getcwd.c have effect only when used in
54560         gnulib; they have no effect inside glibc proper.
54561         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
54562         as alloca isn't used.
54563         (alloca, __alloca): Likewise.
54564         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
54565         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
54566         unconditionally, as gnulib assumes C89 or better.
54567         Do not include <sys/param.h>.
54568         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
54569         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
54570         better.
54571         (NULL) [!defined NULL]: Remove; we assume C89 or better.
54572         Include <dirent.h> in a way that is compatible with modern Autoconf.
54573         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
54574         New macros, if not already defined.
54575         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
54576         Use "_LIBC", not "defined _LIBC", for consistency.
54577         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
54578         a mempcpy module.
54579         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
54580         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
54581         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
54582         credit only to Jim Meyering and adjust the copyright dates.
54583         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
54584         <stdlib.h>, <unistd.h>, "pathmax.h".
54585         Instead, include "xgetcwd.h" (first) and "getcwd.h".
54586         (INITIAL_BUFFER_SIZE): Remove.
54587         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
54588
54589 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54590
54591         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
54592         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
54593         Use the _ONCE methods, for efficiency.
54594         Check for fcntl.h.  In test program, include <errno.h>
54595         and <fcntl.h> if available.  Remove old K&R cruft from
54596         test program.  Check for common errors in GNU/Linux,
54597         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
54598         don't do AC_LIBOBJ, as that's getcwd.m4's job.
54599         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
54600         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
54601         name accordingly.
54602         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
54603         accommodate new getcwd.c.
54604         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
54605         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
54606         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
54607         that's all we need now.
54608
54609 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54610
54611         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
54612         argp-parse.c depends on getopt internals, that means we should
54613         always use our getopt, to be on the safe side.
54614         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
54615         order not to spoil the result of an eventual previous invocation
54616         of gl_GETOPT_SUBSTITUTE.
54617
54618 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
54619
54620         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
54621         redefinition warnings. To avoid them, include the defines
54622         in `#if !defined __need_getopt ... #endif'. The only place
54623         where __getopt_argv_const is used is in definitions
54624         of getopt_long and getopt_long_only below, which are as well
54625         protected by `#ifndef __need_getopt'.
54626         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
54627         __need_getopt after including <stdio.h> and <unistd.h> These
54628         headers might have defined it.
54629
54630 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54631
54632         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
54633
54634 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
54635
54636         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
54637         (futimens): New function, which uses futimes if available.
54638         (futimens, utimens): Support timespec==NULL, with same semantics
54639         as utime and utimens.
54640         * lib/utimens.h (futimens): New decl.
54641
54642 2004-11-23  Jim Meyering  <jim@meyering.net>
54643
54644         * lib/getopt_.h: Remove trailing blanks.
54645
54646 2004-11-23  Jim Meyering  <jim@meyering.net>
54647
54648         * lib/__fpending.c: Add comment.
54649
54650 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
54651
54652         * modules/canonicalize (Depends-on): Add xreadlink.
54653         Problem reported by James Youngman.
54654
54655 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
54656
54657         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
54658         New macros.
54659         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
54660         optopt): Use them instead of invoking ## directly; otherwise, the
54661         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
54662
54663 2004-11-19  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/strtok_r.c: Move comments from here...
54666         * lib/strtok_r.h: ... to here.
54667
54668 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54669
54670         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
54671         implementations that mishandle size_t overflow.
54672
54673 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
54674
54675         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
54676         might fail.  Problem reported by Yoann Vandoorselaere.
54677         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
54678         implementations that mishandle size_t overflow.
54679
54680 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54681
54682         * modules/canon-host (Depends-on): Add strdup.
54683
54684 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54685
54686         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
54687
54688 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54689
54690         * lib/canon-host.c: Include "strdup.h".
54691         (canon_host): Use getaddrinfo if available, so that IPv6 works.
54692         Use strdup instead of malloc/strcpy to duplicate strings.
54693
54694         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
54695         (human_space_before_unit): New constant.
54696         * lib/human.c (human_readable): Support it.
54697
54698         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
54699         (xgetcwd): Set errno correctly when failing.
54700         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
54701         the failure is actually due to a PATH_MAX problem.
54702
54703         Further getopt changes to make it more likely that glibc will
54704         buy the changes back.
54705         * lib/getopt.c (POSIXLY_CORRECT): New constant.
54706         (getopt): Use it, so to preserve glibc semantic
54707         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
54708         when compiling for libc.
54709         * lib/getopt_.h (__getopt_argv_const): Bring it back.
54710         (getopt_long, getopt_long_only): Use it.
54711
54712         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54713         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
54714         (getopt): Argv is now char * const *, as per standard.
54715         (_getopt_internal_r, _getopt_internal): Argv is now char **,
54716         not char *__getopt_argv_const *.
54717         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54718         _getopt_long_only_r): Likewise.
54719         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
54720         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54721         _getopt_long_r, _getopt_long_only_r): Likewise.
54722         * lib/getopt_.h (__getopt_argv_const): Remove.
54723         (getopt): Argv is now char * const *, as per standard.
54724
54725         * lib/getdate.y (tORDINAL): New token.
54726         (day, relunit): Allow it for relative times.
54727         (relative_time_table): Use tORDINAL for ordinals.
54728
54729 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
54732         Document that "second" isn't allowed as an ordinal number.
54733
54734 2004-11-16  Jim Meyering  <jim@meyering.net>
54735
54736         * modules/closeout (Depends-on): Add fpending.
54737
54738 2004-11-15  Jim Meyering  <jim@meyering.net>
54739
54740         * lib/closeout.c: Include "__fpending.h" once again.
54741         Include <stdbool.h>.
54742         (close_stdout): Don't fail just because stdout was closed initially,
54743         since some programs don't write to stdout in the normal course of
54744         operation (other than --version and --help), and we don't want this
54745         function to make e.g. `touch file >&-' fail.
54746         But do fail if it was closed and someone has tried to write to it.
54747         E.g., `printf foo >&-' must fail.
54748
54749 2004-11-13  Jim Meyering  <jim@meyering.net>
54750
54751         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
54752
54753 2004-11-12  Simon Josefsson  <jas@extundo.com>
54754
54755         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
54756         small doc fix is still pending.
54757
54758 2004-11-11  Simon Josefsson  <jas@extundo.com>
54759
54760         * modules/strtok_r: New file.
54761
54762         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54763         strtok_r.
54764
54765 2004-11-11  Simon Josefsson  <jas@extundo.com>
54766
54767         * m4/strtok_r.m4: New file.
54768
54769         * m4/getopt.m4: Replace opterr.
54770
54771 2004-11-11  Simon Josefsson  <jas@extundo.com>
54772
54773         * lib/strtok_r.h, strtok_r.c: New file.
54774
54775 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54776
54777         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
54778         of replacing opterr, getopt, etc.  This should handle the
54779         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
54780
54781 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
54782
54783         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
54784         we can stop lying to compilers about the constness of argv when we
54785         are compiled outside glibc.
54786         (getopt, getopt_long, getopt_long_only): Use it.
54787         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
54788         _getopt_internal, getopt): Likewise.
54789         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
54790         _getopt_long_only_r): Likewise.
54791         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
54792         _getopt_long_r, _getopt_long_only_r): Likewise.
54793
54794         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
54795         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
54796         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
54797         the other external symbols.
54798         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
54799         declaration, since the above renaming now works around collisions.
54800
54801 2004-11-11  Jim Meyering  <jim@meyering.net>
54802
54803         * lib/linebreak.c: Remove trailing blanks.
54804         * lib/alloca_.h: Likewise.
54805         * lib/acosl.c: Likewise.
54806         * lib/euidaccess.c: Likewise.
54807         * lib/allocsa.h: Likewise.
54808
54809 2004-11-10  Simon Josefsson  <jas@extundo.com>
54810
54811         * m4/getaddrinfo.m4: New file.
54812
54813 2004-11-10  Simon Josefsson  <jas@extundo.com>
54814
54815         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
54816
54817 2004-11-10  Simon Josefsson  <jas@extundo.com>
54818
54819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54820         getaddrinfo.
54821
54822         * modules/getaddrinfo: New file.
54823
54824 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54825
54826         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
54827
54828 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54829
54830         * lib/mktime.c (SHR): New macro, which is a portable
54831         substitute for >> that should work even on Crays.
54832         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
54833         Problem reported by Mark D. Baushke in
54834         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
54835         * lib/getdate.y (SHR): Likewise.
54836         (tm_diff): Use it.
54837         * lib/strftime.c (SHR): Likewise.
54838         (tm_diff): Use it.
54839         * lib/quotearg.c (struct quoting_options): Use unsigned int for
54840         quote_these_too, so that right shifts are well defined.  All uses
54841         changed.
54842
54843 2004-11-10  Jim Meyering  <jim@meyering.net>
54844
54845         Ensure that no close failure goes unreported.
54846         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
54847         return early when it seems there's nothing to flush.
54848         Don't include __fpending.h.
54849
54850 2004-11-10  Jim Meyering  <jim@meyering.net>
54851
54852         * modules/closeout (Depends-on): Remove fpending.
54853
54854 2004-11-10  Jim Meyering  <jim@meyering.net>
54855
54856         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
54857
54858 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54859
54860         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
54861         gl_FUNC_STRFTIME.
54862         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
54863         and AC_REQUIRE when possible, to avoid duplicate checks.
54864         Check for <wchar.h>.
54865
54866 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
54867
54868         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
54869
54870 2004-11-09  Bruno Haible  <bruno@clisp.org>
54871
54872         * m4/sockpfaf.m4: New file.
54873
54874 2004-11-05  Bruno Haible  <bruno@clisp.org>
54875
54876         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
54877         Reported by Mark D. Baushke <mdb@cvshome.org>.
54878
54879 2004-11-04  Bruno Haible  <bruno@clisp.org>
54880
54881         2004-09-11  Bruno Haible  <bruno@clisp.org>
54882                 * allocsa.valgrind: New file.
54883         2004-02-06  Bruno Haible  <bruno@clisp.org>
54884                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
54885                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
54886                 Reported by Christopher Seip <chris.seip@hp.com>.
54887
54888 2004-11-04  Bruno Haible  <bruno@clisp.org>
54889
54890         * modules/allocsa (Files): Add lib/allocsa.valgrind.
54891         (Makefile.am): Distribute it.
54892
54893 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
54894
54895         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
54896         with errno == ERANGE if the buffer is too small.
54897         Problem reported by Mark D. Baushke.
54898
54899 2004-11-03  Albert Chin  <china@thewrittenword.com>
54900             Paul Eggert  <eggert@cs.ucla.edu>
54901
54902         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
54903         equivalent, substitute $ac_type for equivalent type rather than
54904         blindly using uint32_t *always* which won't work if uint32_t is not
54905         available.  Define _UINT32_T to work around typedef of uint32_t if
54906         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
54907         2.5.1.
54908
54909 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54910
54911         * m4/jm-macros.m4: Sync from coreutils.
54912         (gl_MACROS): Check for mbrlen, for pathchk.
54913         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
54914
54915 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54916
54917         * lib/xreadlink.c (MAXSIZE): New macro.
54918         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
54919         size does not exceed MAXSIZE.  Avoid cast.
54920         As suggested by Mark D. Baushke in
54921         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
54922         if readlink fails with buffer size just under MAXSIZE, try again
54923         with MAXSIZE.
54924
54925 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
54926
54927         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
54928
54929 2004-11-02  Derek R. Price  <derek@ximbiot.com>
54930         and  Paul Eggert  <eggert@cs.ucla.edu>
54931
54932         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
54933         (get_date): Overparenthesize to avoid GCC warning.
54934
54935 2004-11-02  Bruno Haible  <bruno@clisp.org>
54936
54937         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
54938         returns void.
54939
54940 2004-11-02  Bruno Haible  <bruno@clisp.org>
54941
54942         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
54943         function returns void.
54944
54945 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54946
54947         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
54948         fflush_unlocked, flockfile, funlockfile, funlockfile,
54949         fputs_unlocked, putc_unlocked.
54950
54951 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54952
54953         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
54954         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
54955         already declared.
54956
54957 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54958
54959         * modules/getdate (Files): Add doc/getdate.texi.
54960         (Depends-on): Add setenv, xalloc.
54961
54962 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54963
54964         * lib/getdate.y: Add support for TZ="foo" within a date string.
54965         Fix some bugs near time_t boundaries.  Reject dates with
54966         out-of-range components, e.g., "Sept 31".
54967         Include <stdlib.h>, "setenv.h", "xalloc.h".
54968         (ISDIGIT_LOCALE): Remove; unused.
54969         Note that the TZ and time functions used here are not reentrant.
54970         (mktime_ok, get_tz): New functions.
54971         (TZBUFSIZE): New constant.
54972         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
54973         This requires that we sometimes generate our own TZ="XXX..." setting.
54974
54975 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54976
54977         * doc/getdate.texi: New file, from coreutils with modifications for
54978         the new TZ parsing.
54979
54980 2004-10-27  Derek R. Price  <derek@ximbiot.com>
54981
54982         * lib/mktime.c (not_equal_tm): Remove redundant check.
54983
54984 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54985
54986         * modules/regex (lib_SOURCES): Add regex.c.
54987         Reported by James Youngman in
54988         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
54989
54990 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
54991
54992         * lib/getdate.y: Use Bison 1.875 features, and some minor
54993         code cleanups.  This change does not affect semantics.
54994         Don't include <stdlib.h>; no longer needed.
54995         Don't include unlocked-io.h; only the "#if TEST" code uses
54996         stdio, and performance isn't crucial there.
54997         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
54998         Bison 1.875 features as described below.
54999         All uses of "PC." replaced by "pc->".
55000         (YYSTYPE): Add a forward declaration.
55001         (yylex, yyerror): Use full prototypes in forward decls.
55002         Use "%pure-parser" rather than obsolescent "%pure_parser".
55003         Use %parse-param and %lex-param instead of obsolescent
55004         YYPARSE_PARAM and YYLEX_PARAM.
55005         (meridian_table, month_and_day_table, time_units_table,
55006         relative_time_table, time_zone_table, military_table,
55007         lookup_zone, lookup_word, get_date):
55008         Use NULL instead of 0 where appropriate.
55009         (to_hour): Avoid abort (), to avoid a dependency on
55010         stdlib.h.
55011         (yyerror, yylex): Now accepts parser_control * arg.
55012         (main) [TEST]: Use '\0' rather than 0 for char.
55013
55014 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55015
55016         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
55017
55018 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55019
55020         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
55021         It's now the caller's responsibility to handle the case where
55022         !HAVE_GETPAGESIZE && !defined getpagesize.
55023
55024         * lib/mktime.c (leapyear): Arg is long int, not int.
55025
55026 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
55027
55028         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
55029
55030 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55031
55032         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
55033         missing.  Problem reported by James Youngman.
55034
55035 2004-10-16  Simon Josefsson  <jas@extundo.com>
55036
55037         * gnulib-tool: Fix comments.  Fix parse problem.
55038         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
55039
55040 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
55041
55042         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
55043         implementation of getopt_long.  Problem reported by Alexander Taler in:
55044         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
55045
55046 2004-10-15  Bruno Haible  <bruno@clisp.org>
55047
55048         * gnulib-tool: Untabify. Initialize supplied_libname.
55049         (func_usage): More homogenous output.
55050         (func_modules_transitive_closure, func_modules_to_filelist,
55051         func_emit_lib_Makefile_am): New functions.
55052         (func_import): New function, extracted from big case statement. Use
55053         func_get_license, func_modules_transitive_closure,
55054         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
55055         opt_lgpl. Don't use test -a, as it's not portable.
55056         (func_create_testdir): Use func_modules_transitive_closure,
55057         func_modules_to_filelist, func_emit_lib_Makefile_am.
55058
55059 2004-10-15  Bruno Haible  <bruno@clisp.org>
55060
55061         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
55062
55063 2004-10-15  Bruno Haible  <bruno@clisp.org>
55064
55065         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
55066         the portions belonging to each module.
55067         Suggested by Derek Robert Price <derek@ximbiot.com>.
55068
55069 2004-10-12  Simon Josefsson  <jas@extundo.com>
55070
55071         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
55072         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
55073         to real functions.
55074
55075 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55076
55077         * modules/vsnprintf: New file.
55078
55079 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55080
55081         * m4/vsnprintf.m4: New file.
55082
55083 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55084
55085         * lib/vsnprintf.h: New file.
55086         * lib/vsnprintf.c: New file.
55087
55088 2004-10-11  Bruno Haible  <bruno@clisp.org>
55089
55090         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
55091         vsnprintf.
55092
55093 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55094
55095         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
55096
55097 2004-10-07  Bruno Haible  <bruno@clisp.org>
55098
55099         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
55100         fits into the provided buffer.
55101
55102 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55103
55104         * lib/diacrit.c, diacrit.h: Add GPL notice.
55105
55106         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
55107         notice.
55108         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
55109         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
55110         This avoids a potential constant-folding bug.
55111
55112 2004-10-05  Bruno Haible  <bruno@clisp.org>
55113
55114         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
55115         for the declaration of strsep.
55116
55117 2004-10-05  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
55120
55121 2004-10-04  Simon Josefsson  <jas@extundo.com>
55122
55123         * modules/memmem: New file.
55124         * tests/test-memmem.c: New file.
55125         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
55126
55127 2004-10-04  Simon Josefsson  <jas@extundo.com>
55128
55129         * m4/memmem.m4: New file.
55130
55131 2004-10-04  Simon Josefsson  <jas@extundo.com>
55132
55133         * lib/memmem.h: New file.
55134         * lib/memmem.c: New file, taken from glibc.
55135
55136 2004-10-04  Simon Josefsson  <jas@extundo.com>
55137
55138         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
55139         '#ifdef USE_UNLOCKED_IO'.
55140
55141 2004-10-04  Simon Josefsson  <jas@extundo.com>
55142
55143         * config/srclist.txt: Add memmem from glibc.
55144
55145 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55146
55147         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
55148
55149         * modules/argmatch, modules/argp, modules/closeout, modules/error,
55150         modules/exclude, modules/getdate, modules/getline,
55151         modules/getndelim2, modules/getpass, modules/getpass-gnu,
55152         modules/getusershell, modules/linebuffer, modules/md5,
55153         modules/mountlist, modules/posixtm, modules/readtokens,
55154         modules/readutmp, modules/regex, modules/sha1,
55155         modules/version-etc, modules/yesno:
55156         Remove dependency on unlocked-io.
55157
55158 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55159
55160         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
55161
55162         * m4/unlocked-io.m4: Add copyright notice.
55163         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
55164
55165 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55166
55167         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
55168         * lib/xmalloc.c (xmemdup): Likewise.
55169         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
55170         XFREE): Remove these long-obsolescent macros.
55171         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
55172         * lib/xstrdup.c: Remove.
55173
55174         * lib/regex.c (re_comp): Cast gettext return value to char *,
55175         Problem reported by Martin Neitzel via Mark D. Baushke.
55176
55177 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
55180         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
55181         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
55182         regex.c, sha1.c, version-etc.c, yesno.c:
55183         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
55184         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
55185         the includer's responsibility.
55186
55187         Sync from coreutils.
55188
55189         * lib/modechange.c (mode_compile): Don't decrement a pointer that
55190         points to the start of a string, as the C Standard says the
55191         resulting behavior is undefined.
55192
55193         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
55194         simple -> simple_backups, numbered_existing ->
55195         numbered_existing_backups, numbered -> numbered_backups
55196         to avoid shadowing problems.  All uses changed.
55197         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
55198         * lib/backupfile.c (check_extension, numbered_backup):
55199         Rename locals to avoid shadowing 'basename'.
55200         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
55201         once.
55202
55203         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
55204         * lib/.cvsignore: Add getopt.h.
55205
55206 2004-10-04  Bruno Haible  <bruno@clisp.org>
55207
55208         * modules/README: New file.
55209         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
55210         not a module.
55211
55212 2004-10-02  Jim Meyering  <jim@meyering.net>
55213
55214         * lib/dirfd.h, getpagesize.h: Add copyright notice.
55215
55216 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55217
55218         * modules/strsep: New file.
55219
55220 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55221
55222         * m4/strsep.m4: New file.
55223
55224 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55225
55226         * lib/strsep.h: New file.
55227         * lib/strsep.c: New file.
55228
55229 2004-10-01  Simon Josefsson  <jas@extundo.com>
55230
55231         * lib/snprintf.c (snprintf): Handle size==0.
55232
55233 2004-10-01  Simon Josefsson  <jas@extundo.com>
55234             Bruno Haible  <bruno@clisp.org>
55235
55236         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
55237         (snprintf): Declare 'args'.
55238
55239 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
55240
55241         * lib/snprintf.c: Remove comments as to why each header is needed.
55242
55243 2004-10-01  Bruno Haible  <bruno@clisp.org>
55244
55245         * MODULES.html.sh: Add strsep.
55246
55247 2004-09-30  Simon Josefsson  <jas@extundo.com>
55248
55249         * modules/snprintf: New file.
55250
55251 2004-09-30  Simon Josefsson  <jas@extundo.com>
55252
55253         * m4/snprintf.m4: New file.
55254
55255 2004-09-30  Simon Josefsson  <jas@extundo.com>
55256
55257         * lib/snprintf.h, lib/snprintf.c: New files.
55258
55259 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
55260
55261         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
55262         (hol_entry_help): Never translate an empty string.
55263         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
55264         * lib/argp.h (OPTION_NO_TRANS): New option.
55265
55266 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55267
55268         * modules/argp (Maintainer): Replace Simon Josefsson
55269         by Sergey Poznyakoff.
55270
55271 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
55274         changes merged back into glibc.
55275
55276 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
55277
55278         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
55279
55280 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55281
55282         * lib/xvasprintf.c: Include xalloc.h.
55283         (xvasprintf): Use xalloc_die, not xmalloc_die.
55284
55285 2004-09-29  Bruno Haible  <bruno@clisp.org>
55286
55287         * modules/alloca-opt: New file, derived from modules/alloca.
55288         * modules/allocsa: Depend on alloca-opt instead of alloca.
55289         * modules/setenv: Likewise.
55290         * modules/vasnprintf: Likewise.
55291         * MODULES.html.sh: Add alloca-opt.
55292
55293 2004-09-28  Simon Josefsson  <jas@extundo.com>
55294
55295         * gnulib-tool: New parameter --lgpl, to asseert that modules are
55296         LGPL, and to replace license template from GPL to LGPL.
55297
55298 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55299
55300         * modules/dummy: Change license to LGPL.
55301
55302 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
55303
55304         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
55305
55306 2004-09-24  Simon Josefsson  <jas@extundo.com>
55307
55308         * modules/minmax (License): Change from GPL to LGPL.
55309
55310 2004-09-23  Simon Josefsson  <jas@extundo.com>
55311
55312         * gnulib-tool (--import): Typo.
55313
55314 2004-09-23  Simon Josefsson  <jas@extundo.com>
55315
55316         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
55317
55318 2004-09-22  Bruno Haible  <bruno@clisp.org>
55319
55320         * modules/*: Add 'License' field.
55321         * gnulib-tool: Accept --extract-license option.
55322         (func_get_license): New function.
55323
55324 2004-09-21  Bruno Haible  <bruno@clisp.org>
55325
55326         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
55327         Reported by Simon Josefsson.
55328
55329 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55330
55331         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
55332         gl_AC_TYPE_LONG_LONG.
55333
55334 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
55335
55336         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
55337
55338 2004-09-18  Simon Josefsson  <jas@extundo.com>
55339         and  Paul Eggert  <eggert@cs.ucla.edu>
55340
55341         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
55342         calls with autoreconf.  Define GL_LIB.
55343
55344 2004-09-14  Karl Berry  <karl@gnu.org>
55345
55346         * config/srclist.txt: unsync setenv.c, sigh.
55347
55348 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55349
55350         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
55351         Problem reported by Bruno Haible in:
55352         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
55353
55354 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55355
55356         * config/srclist.txt: Comment out argp-pvh.c.
55357
55358 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
55359
55360         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
55361         in case some system header has #define'd it.  Problem reported by
55362         Soeren D. Schulze in
55363         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
55364
55365 2004-09-09  Karl Berry  <karl@gnu.org>
55366
55367         * regex.[ch]: delete from the root.  These were supposed to be
55368                 synced with emacs cvs, but this has not happened for about
55369                 a year, and anyway nothing else uses emacs regex.[ch].
55370                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
55371                 lib/regex[.ch] is untouched.
55372
55373 2004-09-09  Bruno Haible  <bruno@clisp.org>
55374
55375         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
55376
55377 2004-09-09  Bruno Haible  <bruno@clisp.org>
55378
55379         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
55380         modifications.
55381         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
55382
55383 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55384
55385         * modules/xvasprintf: New file.
55386         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
55387
55388 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
55389
55390         * lib/xvasprintf.h: New file.
55391         * lib/xvasprintf.c: New file.
55392         * lib/xasprintf.c: New file.
55393
55394 2004-09-08  Bruno Haible  <bruno@clisp.org>
55395
55396         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
55397
55398 2004-09-08  Bruno Haible  <bruno@clisp.org>
55399
55400         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
55401         length is > INT_MAX.
55402         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
55403         more.
55404
55405 2004-09-08  Bruno Haible  <bruno@clisp.org>
55406
55407         * lib/stdint_.h: New file, taken from GNU clisp.
55408
55409 2004-09-08  Bruno Haible  <bruno@clisp.org>
55410             Oskar Liljeblad  <oskar@osk.mine.nu>
55411
55412         * modules/stdint: New file.
55413         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
55414
55415 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55416
55417         Import from coreutils.
55418         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
55419         strings on unbounded length.  alloca's performance benefits aren't
55420         that important here.
55421         (V_STRDUP): Remove.
55422         (parse_with_separator): New function, with most of the internals
55423         of the old parse_user_spec.  Allow user to omit both user and group,
55424         for compatibility with FreeBSD.
55425         Clone only the user name, not the entire spec.
55426         Do not set *uid, *gid unless entirely successful.
55427         Avoid memory leak in some failing cases.
55428         Fix regression for USER.GROUP reported by Dmitry V. Levin in
55429         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
55430         (parse_user_spec): Rewrite to use parse_with_separator.
55431
55432 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55433
55434         * modules/userspec: Don't depend on alloca.
55435
55436 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
55437
55438         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
55439
55440 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
55443         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
55444         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
55445
55446 2004-08-16  Simon Josefsson  <jas@extundo.com>
55447
55448         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
55449         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
55450         Add --dry-run for --import.
55451         Let user provided command line parameters override configure.ac
55452         settings.
55453
55454 2004-08-12  Simon Josefsson  <jas@extundo.com>
55455
55456         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
55457         as discussed with Paul Eggert in threads rooted at
55458         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
55459         and
55460         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
55461         Before, the test was empty, and relied on ELIDE_CODE in source
55462         code.)
55463         (gl_PREREQ_GETOPT): New macro.
55464         (gl_GETOPT): Use them.
55465
55466 2004-08-12  Simon Josefsson  <jas@extundo.com>
55467
55468         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
55469         * lib/getopt_.h: Renamed from getopt.h.
55470
55471 2004-08-12  Simon Josefsson  <jas@extundo.com>
55472
55473         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
55474         Change default library name from libfoo to libgnu.
55475         Now, if you have a configure.ac that says:
55476                 gl_SOURCE_BASE(gl)
55477                 gl_M4_BASE(gl/m4)
55478                 gl_MODULES(error getopt etcetera)
55479                 gl_INIT
55480         you can import all you need by running:
55481                 ../gnulib/gnulib-tool --import
55482
55483         * modules/getopt (Files): Rename getopt.h to getopt_.h.
55484         (Makefile.am): Rewrite, use logic from argz.
55485         (Include): Use <getopt.h> instead of "getopt.h".
55486
55487 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55488
55489         * modules/argp (Files): Add m4/unlocked-io.m4.
55490         (Depends-on): Add extensions.
55491
55492 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55493
55494         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
55495         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
55496         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
55497         Check for program_invocation_name, program_invocation_short_name,
55498         flockfile, funlockfile, features.h, _getopt_long_only_r.
55499
55500 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55501
55502         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
55503         its complicated substitute.
55504         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
55505         and program_invocation_name.
55506         (__argp_basename) [!_LIBC]: Remove; the only use was
55507         replaced by its body.
55508         (__argp_short_program_name): Change condition from
55509         !defined __argp_short_program_name to
55510         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
55511         to match argp-namefrob.h.
55512         (__argp_failure): Don't assume strerror_r returns char *.
55513         * lib/argp-parse.c (N_): Define unconditionally.
55514         (argp_default_options): Fill out initializers with 0 to avoid
55515         gcc warnings.
55516
55517 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
55518
55519         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
55520         getopt1.c.
55521
55522 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55523
55524         Merge from coreutils.
55525
55526         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
55527
55528         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
55529         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
55530
55531 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55532
55533         Merge from coreutils.
55534
55535         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
55536         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
55537         for Reliant Unix 5.43.
55538
55539         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
55540         (union fooround): Use uintmax_t, not long int.
55541         The rest is a merge from libc:
55542         [defined _LIBC]: Include <shlib-compat.h>.
55543         (_obstack) [defined _LIBC]: Remove after 2.3.4.
55544
55545         * lib/settime.c (settime): Recode to avoid warning with
55546         Sun Forte C 6U2.
55547
55548         * lib/strverscmp.c: Convert to UTF-8.
55549
55550 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
55551
55552         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55553         m4/uintmax_t.m4.
55554
55555 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55556
55557         * modules/xalloc-die: New file.
55558         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
55559
55560         * modules/md5 (Files): Add m4/uint32_t.m4.
55561         * modules/sha1: Renamed from modules/sha.
55562         (Files):
55563         Rename lib/sha.h to lib/sha1.h.
55564         Rename lib/sha.c to lib/sha1.c.
55565         Rename m4/sha.m4 to m4/sha1.m4.
55566         (lib_SOURCES): Likewise.
55567         (configure.ac): Rename gl_SHA to gl_SHA1.
55568         (Include): sha.h -> sha1.h.
55569
55570 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55571
55572         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
55573         * m4/sha1.m4: Renamed from sha.m4.
55574         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
55575
55576 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
55577
55578         * lib/obstack.h (obstack_empty_p):
55579         Don't assume that chunk->contents is suitably aligned.
55580         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
55581         Likewise. Problem reported by Benno in
55582         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
55583
55584         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
55585         readable.  This could be improved further but it'd take some work.
55586
55587 2004-08-08  Simon Josefsson  <jas@extundo.com>
55588
55589         * modules/xgethostname (Depends-on): Remove exit and error (not
55590         used).
55591
55592         * modules/getpass-gnu: Add getpass.h.
55593         (Depends-on): Add stdbool.
55594         * modules/getpass: Add getpass.h.
55595
55596 2004-08-08  Simon Josefsson  <jas@extundo.com>
55597
55598         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
55599         Check getpass declaration.
55600
55601 2004-08-08  Simon Josefsson  <jas@extundo.com>
55602
55603         * lib/xgethostname.c: Don't include error.h (not used).
55604
55605         * lib/getpass.h: Add.
55606         * lib/getpass.c: Include getpass.h first.
55607
55608 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
55609
55610         * lib/xalloc-die.c: New file.
55611         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
55612         All uses removed.
55613         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
55614         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
55615         xalloc-die.c.
55616         (_, N_, xalloc_die): Move to xalloc-die.c.
55617         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
55618         so that we needn't mess with xalloc_msg_memory_exhausted.
55619
55620         * lib/sha1.h: Renamed from sha.h.
55621         (SHA1_H): Renamed from _SHA_H.
55622         (sha1_ctx): Renamed from sha_ctx.
55623         (sha1_init_ctx): Renamed from sha_init_ctx.
55624         (sha1_process_block): Renamed from sha_process_block.
55625         (sha1_process_bytes): Renamed from sha_process_bytes.
55626         (sha1_finish_ctx): Renamed from sha_finish_ctx.
55627         (sha1_read_ctx): Renamed from sha_read_ctx.
55628         (sha1_stream): Renamed from sha_stream.
55629         (sha1_buffer): Renamed from sha_buffer.
55630         * lib/sha1.c: Likewise; renamed from sha.c.
55631         Do not include <sys/types.h>.
55632         Include <stddef.h> rather than <stdlib.h>.
55633
55634 2004-08-08  Bruno Haible  <bruno@clisp.org>
55635
55636         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
55637         FILESYSTEM_PREFIX_LEN.
55638         * lib/progreloc.c: Likewise.
55639         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
55640
55641 2004-08-06  Simon Josefsson  <jas@extundo.com>
55642
55643         * modules/progname (Depends-on): Don't depend on stdbool.
55644
55645 2004-08-06  Simon Josefsson  <jas@extundo.com>
55646
55647         * modules/getsubopt: New file.
55648         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55649         getsubopt.
55650
55651 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55652
55653         More merge from coreutils.
55654
55655         * m4/utimens.m4, m4/utimecmp.m4: New files.
55656         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
55657         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
55658         prereq.m4, sha.m4: Import changes from coreutils.
55659
55660 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55661
55662         More merge from coreutils.
55663         * modules/raise, modules/readtokens0, modules/utimens:
55664         * modules/utimecmp, module/xnanosleep: New files.
55665         * modules/strftime: Add lib/strftime.h.
55666         Change include from <time.h> to "strftime.h".
55667         * modules/yesno: Add lib/yesno.h.
55668         * modules/backupfile: Remove lib/addext.c.
55669         * modules/euidaccess: Add stat-macros.h.
55670         * modules/canonicalize, modules/euidaccess,
55671         modules/filemode, modules/lchown, modules/makepath,
55672         modules/rmdir, modules/stat: Likewise.
55673
55674 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55675
55676         Merge from tar.
55677         * lib/argp-help.c (make_hol, hol_append): Don't assume that
55678         SIZE_MAX is a valid preprocessor constant.
55679         (__argp_basename): Change from "#ifndef _LIBC"
55680         to "#ifndef __argp_short_program_name", so that
55681         we don't compile these functions for tar.
55682
55683         More merges from coreutils.
55684         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
55685         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
55686         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
55687         * lib/addext.c: Remove; no longer needed.
55688         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
55689         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
55690         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
55691         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
55692         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
55693         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
55694         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
55695         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
55696         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
55697         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
55698         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
55699         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
55700         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
55701         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
55702         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
55703         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
55704         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
55705         Import changes from coreutils.
55706
55707 2004-08-05  Simon Josefsson  <jas@extundo.com>
55708
55709         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
55710
55711 2004-08-05  Simon Josefsson  <jas@extundo.com>
55712
55713         * m4/getsubopt.m4: New file.
55714
55715 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55716
55717         Merge from coreutils.
55718
55719         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
55720         * m4/getcwd-path-max.m4: New files.
55721
55722         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
55723         FILESYSTEM_PREFIX_LEN ->
55724         FILE_SYSTEM_PREFIX_LEN.
55725         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
55726         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
55727         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
55728         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
55729
55730         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
55731         prerequisite modules now handle the DOS stuff.
55732         Don't check for unistd.h.
55733
55734 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55735
55736         Merge from coreutils.
55737
55738         * lib/.gdb-history: Remove; this doesn't belong here.
55739
55740         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
55741         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
55742         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
55743         * lib/getcwd.c: New files.
55744
55745         * lib/dirname.h: Include <stdbool.h>.
55746         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
55747         for consistency with POSIX terminology.  All uses changed.
55748         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
55749         (strip_trailing_slashes): Use bool for booleans.
55750         * lib/stripslash.c (strip_trailing_slashes): Likewise.
55751
55752         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
55753         sometimes returns a positive errno value even when it succeeds.
55754         (print_errno_message) [!LIBC]: Fall back on strerror if
55755         __strerror_r fails.
55756
55757         * lib/path-concat.c (mempcpy): Don't define if a system header defines
55758         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
55759         (longest_relative_suffix): New function.
55760         (path_concat): Use it.  Assume first argument is not NULL.
55761         Port to DOS.  Omit redundant separators.
55762         Report an error instead of returning NULL.
55763         Use mempcpy instead of memcpy.
55764         (xpath_concat): Remove: not declared or used.
55765
55766         * lib/same.h: Include <stdbool.h>
55767         (same_name): Return bool, not int.
55768         * lib/same.c (same_name): Likewise.
55769         (errno): Don't declare; we assume C89 or better now.
55770
55771         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
55772         if not already defined.
55773
55774         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
55775         * lib/dup-safer.c (errno): Likewise.
55776
55777 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
55778
55779         Merge from coreutils.
55780         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
55781         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
55782         * modules/path-concat: Don't depend on strdup.
55783
55784 2004-08-03  Simon Josefsson  <jas@extundo.com>
55785
55786         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
55787         * lib/progname.h: Don't include stdbool.h.
55788
55789 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55790
55791         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
55792         * MODULES.html.sh (func_all_modules): Remove fatal.
55793
55794 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55795
55796         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
55797
55798 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
55799
55800         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
55801         working.
55802
55803 2004-08-02  Simon Josefsson  <jas@extundo.com>
55804
55805         * lib/getsubopt.h: New file, with comments from Bruno Haible.
55806         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
55807         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
55808
55809 2004-08-01  Simon Josefsson  <jas@extundo.com>
55810
55811         * lib/xgetdomainname.c: Include stdlib.h, for free().
55812
55813 2004-07-19  Bruno Haible  <bruno@clisp.org>
55814
55815         * MODULES.html.sh (func_all_modules): Add dummy.
55816
55817 2004-07-16  Simon Josefsson  <jas@extundo.com>
55818
55819         * modules/dummy: New file.
55820
55821 2004-07-16  Simon Josefsson  <jas@extundo.com>
55822
55823         * lib/dummy.c: New file.
55824
55825 2004-07-16  Bruno Haible  <bruno@clisp.org>
55826
55827         * lib/backupfile.h: Add extern "C" for C++.
55828         * lib/closeout.h: Likewise.
55829         * lib/copy-file.h: Likewise.
55830         * lib/findprog.h: Likewise.
55831         * lib/full-write.h: Likewise.
55832         * lib/pathname.h: Likewise.
55833         * lib/progname.h: Likewise.
55834         * lib/stpcpy.h: Likewise.
55835         * lib/stpncpy.h: Likewise.
55836         * lib/strcase.h: Likewise.
55837         * lib/strstr.h: Likewise.
55838         * lib/xalloc.h: Likewise.
55839
55840         * lib/mbswidth.h: Add extern "C" for C++.
55841         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
55842
55843 2004-07-13  Robert Millan  <robertmh@gnu.org>
55844
55845         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
55846
55847 2004-07-09  Simon Josefsson  <jas@extundo.com>
55848
55849         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
55850         failed without this.)
55851
55852 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55853
55854         * modules/chown (Files): Add lib/fchown-stub.c, since
55855         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
55856
55857 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
55858
55859         * lib/fchown-stub.c: New file.
55860
55861 2004-06-24  Jim Meyering  <jim@meyering.net>
55862
55863         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
55864
55865 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55866
55867         * modules/argz: Omit "#include".
55868
55869         * MODULES.html.sh (func_all_modules): Add calloc, to match
55870         2004-06-01 addition of calloc module.
55871
55872 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55873
55874         * m4/argz.m4: New file, which is autoupdated from libtool.
55875
55876 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55877
55878         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
55879         libtool.
55880
55881 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
55882
55883         * config/srclist-update: Don't insist on "USA." before the
55884         close-comment, as libtool omits the period and puts the */ on a
55885         separate line.
55886         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
55887         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
55888
55889 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
55890
55891         * modules/argz: New file.
55892         * MODULES.html.sh (func_all_modules): Add argz.
55893
55894 2004-06-12  Jim Meyering  <jim@meyering.net>
55895         and  Paul Eggert  <eggert@cs.ucla.edu>
55896
55897         * modules/hash (Files): Add lib/xalloc.h.
55898         * modules/pipe (Depends-on): Add wait-process.
55899         * modules/stat (Depends-on): Add xalloc.
55900         * modules/userspec (Files): Add lib/userspec.h.
55901         * modules/xstrto
55902
55903         Upgrade from gettext-0.13.
55904         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
55905         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
55906         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
55907
55908 2004-06-10  Jim Meyering  <jim@meyering.net>
55909
55910         * lib/calloc.c: New file.
55911
55912 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55913
55914         * lib/getdate.y (yylex): Allow space between sign and number.
55915         Problem reported by Dan Jacobson.
55916
55917 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55918
55919         Merge from coreutils CVS.
55920
55921         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
55922         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
55923         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
55924         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
55925         xstrtol.m4: Fix copyright date and/or serial number.
55926
55927         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
55928         See if we need an fchown replacement.
55929         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
55930         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
55931         and use the replacement function if we detect either defect.
55932
55933         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
55934         gl_UTIMECMP.
55935
55936 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
55937         and  Jim Meyering  <jim@meyering.net>
55938
55939         Merge from coreutils CVS.
55940
55941         * lib/stat-macros.h: New file, with contents from file-type.h
55942         and coreutils' system.h.
55943         * lib/file-type.c: Include "stat-macros.h".
55944         * lib/file-type.h (file_type): Move all macro definitions to new file,
55945         stat-macros.h.
55946
55947         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
55948         Wrap old code with this conditional.
55949         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
55950         function that does not dereference symlinks.
55951         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
55952
55953         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
55954         dependency problems.
55955         (xreadlink): Accept new arg SIZE, for efficiency.
55956         All decls and uses changed.
55957         * lib/xreadlink.h: Include <stddef.h>, for size_t.
55958
55959         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
55960         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
55961
55962         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
55963         sysexits.h.
55964
55965 2004-06-01  Jim Meyering  <jim@meyering.net>
55966
55967         * m4/calloc.m4: New file.
55968
55969 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
55970
55971         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
55972         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
55973         Also, fix a typo in a diagnostic.
55974
55975 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55976
55977         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
55978         or AC_FUNC_REALLOC.
55979
55980 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
55981
55982         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
55983         macros to be defined.
55984         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
55985         the allocator returns NULL because the requested size is zero.
55986
55987 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55988
55989         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
55990         var.  Add comment explaining why libc still defines it.  This
55991         merges the following patch from glibc:
55992         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
55993
55994 2004-05-20  Andreas Schwab  <schwab@suse.de>
55995
55996         * m4/free.m4: Replace free if it not known to work, not the other
55997         way round.
55998
55999 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
56000
56001         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
56002         present in glibc since revision 1.1 of this file.
56003         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
56004         obstack_alignment_mask, obstack_alloc, obstack_base,
56005         obstack_blank, obstack_blank_fast, obstack_chunk_size,
56006         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
56007         obstack_grow0, obstack_init, obstack_int_grow,
56008         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
56009         obstack_next_free, obstack_object_size, obstack_ptr_grow,
56010         obstack_ptr_grow_fast, obstack_room): Remove declarations of
56011         nonexistent functions.
56012
56013 2004-05-18  Karl Berry  <karl@gnu.org>
56014
56015         * config/srclist.txt: break link for vasnprintf.c.
56016
56017 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56018
56019         Port obstack to the AS/400, where pointers are 16 bytes wide and
56020         you cannot cast an integer to a valid pointer.  This patch is
56021         currently waiting to be integrated into glibc; see
56022         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
56023
56024         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
56025         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
56026         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
56027         (struct obstack): temp member is now a union of a pointer and
56028         an integer, instead of an integer.  All integer uses changed.
56029         This does not affect the physical layout of struct obstack,
56030         except on hosts (like the AS/400) where the size or alignment of
56031         void * is greater than that of ptrdiff_t.
56032         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
56033         __STDC__)]: Store temporary in pointer member of union, not
56034         integer member.
56035         * lib/obstack.c: Include <stddef.h>, for offsetof.
56036         (struct fooalign): Remove; it doesn't need a name.
56037         (union fooround): Change double to long double, and add void *.
56038         (DEFAULT_ALIGNMENT): Use offsetof to compute.
56039         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
56040         not a macro.  Hence the values are always int; so remove all
56041         casts-to-int in uses.
56042
56043 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56044
56045         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
56046         we can get this patch merged into glibc.
56047
56048 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56049             Paul Eggert  <eggert@cs.ucla.edu>
56050
56051         * m4/argp: Depend on alloca.
56052
56053 2004-05-17  Derek R. Price  <derek@ximbiot.com>
56054             Paul Eggert  <eggert@cs.ucla.edu>
56055
56056         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
56057         freecoding.
56058
56059 2004-05-17  Bruno Haible  <bruno@clisp.org>
56060
56061         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
56062         precision that consists of a '.' followed by an empty digit string.
56063         Patch by Tor Lillqvist <tml@iki.fi>.
56064
56065 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56066
56067         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
56068         for backward compatibility with older code.  We need our own
56069         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
56070         it under some other name, and our alloca.h will define it.
56071
56072 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56073             Derek Price  <derek@ximbiot.com>
56074
56075         * lib/alloca.c: Include <alloca.h>, to get our interface.
56076         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
56077         include <alloca.h> first.  Use C89 prototype for alloca; this
56078         requires including <stddef.h> for size_t.  Use extern "C" if C++.
56079         Use #elif for simplicity, since we can assume C89 now.
56080         Don't try to source the system alloca.h since it will not be found
56081         and to prevent recursively including its replacement.
56082         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
56083         * lib/regex.c: Likewise.
56084
56085 2004-05-16  Derek Price  <derek@ximbiot.com>
56086             Paul Eggert  <eggert@cs.ucla.edu>
56087
56088         getline cleanup.  This changes the getndelim2 API: both order of
56089         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
56090         no delimiter).
56091
56092         * lib/getline.c: Don't include stddef.h or stdio.h, since our
56093         interface does that.
56094         (getline): Always use getdelim, so that we don't have two
56095         copies of this code.
56096         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
56097         if available.
56098         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
56099         (GETNDELIM2_MAXIMUM): New macro.
56100         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
56101         instead of the old practice of delim2==0.  All callers changed.
56102         Return -1 on overflow, instead of returning junk.
56103         Do not set *linesize unless allocation succeeds.
56104         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
56105         that we include sys/types.h.
56106         * lib/getnline.h: Likewise.
56107         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
56108         (getndelim2): Reorder arguments.
56109         * lib/getnline.c (getnline, getndelim):
56110         Don't discard the NMAX argument.
56111         (getnline): Invoke getndelim, to avoid code duplication.
56112         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
56113         of (size_t) -1 by callers of the getnline family.
56114
56115 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56116
56117         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
56118         Check for gettimeofday.
56119         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
56120         Check for settimeofday, stime.
56121
56122 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
56123
56124         * lib/nanosleep.c (suspended): Change its type from int to
56125         sig_atomic_t volatile.
56126         (first_call): Make it private to rpl_nanosleep, and have it
56127         be zero initially as that's a bit faster.
56128         (my_usleep): Round up fractional times instead of truncating them,
56129         as this is the usual meaning for 'sleep'.
56130
56131         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
56132         doesn't work.
56133         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
56134         (ENOSYS): Define if not defined.
56135         (settime): Fall back on stime if it exists and settimeofday fails.
56136         But don't bother with fallbacks if a method fails with errno == EPERM.
56137
56138 2004-05-11  Jim Meyering  <jim@meyering.net>
56139
56140         Prior to this change, the save_cwd caller required read access to the
56141         current directory on most systems (ones with the fchdir function).
56142
56143         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
56144         fails, try write-only, and finally, resort to using xgetcwd.
56145
56146 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
56147
56148         * lib/obstack.c, obstack.h: Import changes from libc.
56149
56150 2004-04-28  Bruno Haible  <bruno@clisp.org>
56151
56152         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
56153         also implicitly appends .exe to executables.
56154         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
56155         accepts Windows pathnames.
56156         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56157         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56158         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
56159         Treat Cygwin like Windows, since it now accepts Windows pathnames.
56160         Reported by Derek Robert Price <derek@ximbiot.com>.
56161
56162 2004-04-21  Karl Berry  <karl@gnu.org>
56163
56164         * config/srclist.txt (localcharset.c): break sync.
56165
56166 2004-04-20  Paul Eggert  <eggert@twinsun.com>
56167
56168         * m4/host-os.m4: Add a copyright notice.
56169
56170 2004-04-20  Jim Meyering  <jim@meyering.net>
56171
56172         Change UTILS_ to gl_ in AC_DEFINE'd names.
56173         Change utils_- and jm_-prefixed variables, too.
56174         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
56175         UTILS_FUNC_MKDIR_TRAILING_SLASH.
56176         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
56177
56178         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
56179         Don't emit trailing blanks.
56180         Also rename jm_-prefixed variables to have gl_ prefix.
56181
56182         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
56183         Also rename jm_-prefixed variables to have gl_ prefix.
56184
56185         * m4/jm-macros.m4: Reflect the renamings.
56186         * m4/prereq.m4: Likewise.
56187
56188 2004-04-20  Jim Meyering  <jim@meyering.net>
56189
56190         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
56191         memory.
56192
56193 2004-04-20  Jim Meyering  <jim@meyering.net>
56194             Bruno Haible  <bruno@clisp.org>
56195
56196         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
56197         memory when realloc fails.
56198
56199 2004-04-19  Jim Meyering  <jim@meyering.net>
56200
56201         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
56202         now that readutmp.c may call `free (0)'.
56203
56204 2004-04-19  Bruno Haible  <bruno@clisp.org>
56205
56206         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
56207         * m4/inttypes_h.m4: Likewise.
56208         * m4/stdint_h.m4: Likewise.
56209         * m4/intmax_t.m4: Likewise.
56210         * m4/uintmax_t.m4: Likewise.
56211
56212 2004-04-18  Jim Meyering  <jim@meyering.net>
56213
56214         * m4/prereq.m4: Don't forbid jm_ prefix.
56215
56216         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
56217         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
56218         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
56219         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
56220         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
56221         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
56222         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
56223         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
56224         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
56225         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
56226         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
56227         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
56228         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
56229         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
56230         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
56231         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
56232         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
56233         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
56234         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
56235
56236 2004-04-18  Jim Meyering  <jim@meyering.net>
56237
56238         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
56239         failure, don't leak memory and do call END_UTMP_ENT.
56240
56241 2004-04-16  Jim Meyering  <jim@meyering.net>
56242
56243         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
56244         coreutils' stat program.
56245         (gl_PREREQ): Don't require jm_PREREQ_STAT.
56246
56247 2004-04-11  Paul Eggert  <eggert@twinsun.com>
56248
56249         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
56250         C89.
56251         (CHAR_BIT): Remove, since we assume C89.
56252         Include <stdint.h> if available, as per current Autoconf CVS advice.
56253
56254 2004-03-31  Jim Meyering  <jim@meyering.net>
56255
56256         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
56257         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
56258         * m4/xalloc.m4: Likewise.
56259
56260 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56261
56262         Merge from coreutils.
56263
56264         * m4/inttostr.m4: New file.
56265         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
56266         Require AM_STDBOOL_H and gl_TIMESPEC instead.
56267         Require gl_CLOCK_TIME.
56268         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
56269
56270 2004-03-30  Paul Eggert  <eggert@twinsun.com>
56271
56272         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
56273         not bool, to be more consistent with Unix conventions.
56274         Suggested by Bruno Haible.
56275
56276         Merge from coreutils.
56277
56278         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
56279         * lib/umaxtostr.c: New files.
56280
56281         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
56282         the usual <time.h> dance.
56283         (get_date): Change signature to support fractional time stamps.
56284         All callers changed.
56285         * lib/getdate.y: Include "getdate.h" first, as we can now
56286         assume C89 and don't need to worry about 'const'.
56287         Similarly, include "unlocked-io.h" near start, not in middle.
56288         Include <limits.h>.
56289         (textint.value): Use long int rather than int.
56290         (textint.digits): Use size_t rather than int.
56291         (BILLION, LOG10_BILLION): New constants.
56292         (parser_control): New member rel_ns.  Members day_ordinal,
56293         time_zone, month, day, hour, minutes, rel_year, rel_month,
56294         rel_day, rel_hour, rel_minutes, rel_seconds
56295         are now long int, not int.  Member seconds is now struct timespec,
56296         not int.  New member timespec_seen.  Members dates_seen, days_seen,
56297         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
56298         not int.
56299         (%union.intval): Now long int, not int.
56300         New member timespec.
56301         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
56302         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
56303         (spec): Now is a timespec or an item list.
56304         (timespec, items): New nonterminals.
56305         (time, rel, relunit, number, get_date):
56306         Add support for fractional seconds.
56307         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
56308         (gmtime, localtime, mktime): Remove decls; not needed with C89.
56309         (to_hour): First arg is now long int, not int.
56310         (to_year): Returns long int, not int.
56311         Don't treat year -70 like 70.
56312         (tm_diff): Returns long int, not int.
56313         (lookup_word): Use bool instead of int when appropriate.
56314         (yylex): Use size_t for count, not int.
56315         Detect overflow when parsing large integer constants.
56316         Add support for fractions.
56317         (get_date): Make pointers 'const' if possible.
56318         Use more-portable code to detect integer overflow.
56319         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
56320         Don't use ctime; it's not reliable if the year has >4 digits.
56321
56322         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
56323         This is for compatibility with BSD.
56324
56325         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
56326         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
56327         From coreutils' system.h.
56328
56329         * lib/userspec.c: Don't include "posixver.h".
56330         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
56331         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
56332         compatible extension.  Simplify code by removing a boolean int
56333         that was always nonzero if a string was nonnull.
56334
56335 2004-03-30  Jim Meyering  <jim@meyering.net>
56336
56337         Merge from coreutils.
56338
56339         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
56340         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
56341         on some systems one must include <grp.h> before it.
56342         Reported by Christian Krackowizer.
56343
56344 2004-03-30  Jim Meyering  <jim@meyering.net>
56345
56346         Merge from coreutils.
56347
56348         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
56349
56350         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
56351         an empty input stream.
56352
56353         * lib/readtokens.c: Include <stdbool.h>.
56354         (readtoken): Use `size_t' rather than int/long.
56355         All callers adjusted.
56356         Use `bool' rather than `int' where appropriate.
56357         Use memset rather than an explicit loop.
56358         Use x2nrealloc rather than xrealloc.
56359         Allow the use of `\0' as a delimiter.
56360         (readtokens): Likewise.
56361         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
56362
56363 2004-03-30  Jim Meyering  <jim@meyering.net>
56364
56365         * m4/realloc.m4: Remove file, since now it does no more than
56366         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
56367         the `configure.ac' section of module/realloc.
56368         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
56369
56370 2004-03-30  Bruno Haible  <bruno@clisp.org>
56371
56372         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
56373         nonnull.
56374
56375 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56376
56377         Merge changes to getloadavg.c from coreutils and Emacs.
56378
56379         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
56380         Define to an expression, not to the empty string.
56381         Include cloexec.h and xalloc.h.
56382         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
56383         Use set_cloexec_flag rather than rolling our own.
56384         * lib/cloexec.c, lib/cloexec.h: New files.
56385
56386 2004-03-29  Paul Eggert  <eggert@twinsun.com>
56387
56388         * m4/cloexec.m4: New file.
56389
56390 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56391
56392         * lib/getopt.h: Sync with libc CVS.
56393
56394 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56395             Bruno Haible  <bruno@clisp.org>
56396
56397         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
56398         mbswidth.
56399
56400 2004-03-18  Paul Eggert  <eggert@twinsun.com>
56401             Bruno Haible  <bruno@clisp.org>
56402
56403         * lib/mbswidth.h: Include <wchar.h> only if
56404         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
56405         <wchar.h>.
56406         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
56407
56408 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56409
56410         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
56411         Sync with libc CVS.
56412         * lib/getopt_int.h: New file, also synced from libc.
56413
56414 2004-03-09  Paul Eggert  <eggert@twinsun.com>
56415
56416         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
56417         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
56418         Bring back getopt.c, getopt.h, getopt1.c.
56419
56420 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56421
56422         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
56423         All uses changed.  Check for sa_sigaction member; this fixes
56424         a bug first reported by Jason Andrade in
56425         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56426
56427 2004-03-07  Paul Eggert  <eggert@twinsun.com>
56428
56429         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
56430         '#if' expressions.  Unlike the code it replaces, it does not
56431         depend on (defined _SC_PAGESIZE).  However, it does depend on
56432         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
56433         first reported by Jason Andrade in
56434         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
56435
56436 2004-02-25  Simon Josefsson  <jas@extundo.com>
56437
56438         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
56439
56440 2004-02-25  Simon Josefsson  <jas@extundo.com>
56441
56442         * lib/strdup.h: New file.
56443         * lib/strdup.c: Include it.
56444         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
56445         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
56446
56447 2004-02-23  Karl Berry  <karl@gnu.org>
56448
56449         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
56450         (from fencepost.gnu.org:/gd/gnuorg).
56451
56452 2004-02-23  Karl Berry  <karl@gnu.org>
56453
56454         * config/srclistvars.sh (GNUORG) [karl]: redefine.
56455         * config/srclist.txt: add maintain/standards documents.
56456
56457 2004-02-18  Bruno Haible  <bruno@clisp.org>
56458
56459         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
56460         Reported by Derek Robert Price <derek@ximbiot.com>.
56461
56462 2004-02-16  Karl Berry  <karl@gnu.org>
56463
56464         * config/mkinstalldirs, install-sh: update from automake.
56465
56466 2004-02-06  Karl Berry  <karl@gnu.org>
56467
56468         * m4/po.m4: update from gettext 0.14.1.
56469
56470 2004-02-06  Karl Berry  <karl@gnu.org>
56471
56472         * lib/config.charset: update from gettext 0.14.1.
56473
56474 2004-02-05  Paul Eggert  <eggert@twinsun.com>
56475
56476         Add comments and code, prompted by suggestions from Bruno Haible
56477         for sh-quote.
56478         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
56479         describing the enum quoting_style values.
56480         * lib/quotearg.c (quotearg_alloc): New function.
56481         (quotearg_buffer_restyled): Treat lone { and } as special.
56482         Treat = as special.  Work around bug with older shells
56483         that "see" a '\' that is really the 2nd byte of a multibyte char.
56484         Quote empty string with shell_quoting_style.
56485
56486 2004-02-03  Bruno Haible  <bruno@clisp.org>
56487
56488         * m4/pipe.m4: New file, from GNU gettext.
56489
56490 2004-02-03  Bruno Haible  <bruno@clisp.org>
56491
56492         * lib/pipe.h: New file, from GNU gettext.
56493         * lib/pipe.c: New file, from GNU gettext.
56494
56495 2004-01-27  Bruno Haible  <bruno@clisp.org>
56496
56497         * m4/execute.m4: New file, from GNU gettext.
56498
56499 2004-01-27  Bruno Haible  <bruno@clisp.org>
56500
56501         * lib/execute.h: New file, from GNU gettext.
56502         * lib/execute.c: New file, from GNU gettext.
56503         * lib/w32spawn.h: New file, from GNU gettext.
56504
56505 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56506
56507         Merge from diffutils.
56508
56509         * lib/file-type.c (file_type): Add typed memory objects.
56510         * lib/file-type.h (S_TYPEISTMO): New macro.
56511
56512         * lib/c-stack.h (c_stack_action): Remove argv argument.
56513         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
56514         (die): Don't calculate message unless segv_action returns.
56515         (get_stack_location, min_address_from_argv, max_address_from_argv,
56516         volatile stack_base, volatile_stack_size): Remove.
56517         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
56518         that every segmentation violation is a stack overflow.  (Ouch!)
56519         See Debian bug 136249 (still outstanding) for more info about why
56520         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
56521
56522 2004-01-24  Paul Eggert  <eggert@twinsun.com>
56523
56524         Exit-status fix from coreutils.
56525
56526         Use exit_failure consistently in place of EXIT_FAILURE,
56527         so that program exit statuses are consistent on failure.
56528
56529         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
56530         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
56531         * lib/argmatch.h: Comment fix to match the above.
56532         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
56533         Now a macro referring to exit_failure, instead of a separate
56534         variable.  Include "exitfail.h" to get it.
56535         * lib/xstrtol.h: Include "exitfail.h".
56536         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
56537
56538         * lib/long-options.c (parse_long_options): Use prototype
56539         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
56540         for clarity.
56541
56542 2004-01-21  Jim Meyering  <jim@meyering.net>
56543
56544         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
56545         so as not to conflict with a different-sized __mktime_internal
56546         function in GNU libc.
56547         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
56548         Problem building statically-linked `ls' reported by Michael Brunnbauer.
56549
56550 2004-01-20  Karl Berry  <karl@gnu.org>
56551
56552         * config/config.guess: update from config.
56553
56554         * config/srclistvars.sh: GNUWWWLICENSES for karl.
56555
56556 2004-01-20  Bruno Haible  <bruno@clisp.org>
56557
56558         Safer stack allocation.
56559         * lib/setenv.c: Include allocsa.h.
56560         (alloca): Remove fallback definition.
56561         (freea): Remove macro.
56562         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
56563         instead of freea.
56564
56565 2004-01-20  Bruno Haible  <bruno@clisp.org>
56566
56567         * m4/eealloc.m4: New file, from GNU gettext.
56568
56569 2004-01-20  Bruno Haible  <bruno@clisp.org>
56570
56571         * m4/allocsa.m4: New file, from GNU gettext.
56572
56573 2004-01-20  Bruno Haible  <bruno@clisp.org>
56574
56575         * lib/xallocsa.h: New file, from GNU gettext.
56576         * lib/xallocsa.c: New file, from GNU gettext.
56577
56578 2004-01-20  Bruno Haible  <bruno@clisp.org>
56579
56580         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
56581
56582 2004-01-20  Bruno Haible  <bruno@clisp.org>
56583
56584         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
56585         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
56586         specially.
56587
56588 2004-01-20  Bruno Haible  <bruno@clisp.org>
56589
56590         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
56591         patch.
56592
56593 2004-01-20  Bruno Haible  <bruno@clisp.org>
56594
56595         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
56596
56597 2004-01-20  Bruno Haible  <bruno@clisp.org>
56598
56599         * lib/eealloc.h: New file.
56600
56601 2004-01-20  Bruno Haible  <bruno@clisp.org>
56602
56603         * lib/binary-io.h: Avoid warnings on Cygwin.
56604
56605 2004-01-20  Bruno Haible  <bruno@clisp.org>
56606
56607         * lib/allocsa.h: New file, from GNU gettext.
56608         * lib/allocsa.c: New file, from GNU gettext.
56609
56610 2004-01-18  Karl Berry  <karl@gnu.org>
56611
56612         * doc/gpl.texi, doc/lgpl.texi: new files.
56613
56614 2004-01-18  Karl Berry  <karl@gnu.org>
56615
56616         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
56617         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
56618
56619 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56620
56621         Merge from coreutils.
56622
56623         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
56624         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
56625         (gl_DEFAULT_POSIX2_VERSION): Move
56626         the documentation from 'configure' into 'config.hin',
56627         so that 'configure --help' isn't burdened by it and
56628         we don't have to worry about its formatting there.
56629         Reword the documentation so that it's more succinct
56630         and can be run together into a single paragraph.
56631         * m4/same.m4 (gl_SAME): Check for pathconf.
56632
56633 2004-01-15  Paul Eggert  <eggert@twinsun.com>
56634
56635         Merge from coreutils.
56636
56637         * lib/posixver.c: Include posixver.h.
56638
56639         * lib/same.c: Include <stdbool.h>, <limits.h>.
56640         (_POSIX_NAME_MAX): Define if not defined.
56641         (MIN): New macro.
56642         (same_name): If file names are silently truncated, report
56643         that the file names are the same if they are the same after
56644         the silent truncation.
56645
56646         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
56647         conversion function.
56648         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
56649         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
56650         longer needed.
56651
56652 2004-01-15  Jim Meyering  <jim@meyering.net>
56653
56654         Merge from coreutils.
56655
56656         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
56657         if no library is required.
56658         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
56659         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
56660         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
56661         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
56662         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
56663         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
56664         value, $ac_cv_search_crypt, if it's "none required".
56665         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
56666         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
56667         not gl_FUNC_GETLOADAVG.
56668         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
56669         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
56670
56671 2004-01-15  Jim Meyering  <jim@meyering.net>
56672
56673         Merge from coreutils.
56674
56675         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
56676         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
56677         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
56678
56679         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
56680         optional configure-time default.
56681
56682         * lib/version-etc.c (version_etc_copyright): Update copyright date.
56683
56684         * lib/xreadlink.c (xreadlink): Correct outdated comment.
56685
56686 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
56687
56688         Merge from coreutils.
56689
56690         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
56691         value, $ac_cv_search_nanosleep, if it's "none required".
56692
56693 2004-01-14  Paul Eggert  <eggert@twinsun.com>
56694
56695         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
56696         with like-named macro in fnmatch.c.
56697         (EXT): Use an internal constant instead.
56698
56699         Merge fnmatch patches from glibc.
56700         * lib/fnmatch.c (mbsinit): Remove define.
56701         Add libc_hidden_ver (__fnmatch, fnmatch).
56702         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
56703         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
56704
56705 2004-01-14  Karl Berry  <karl@gnu.org>
56706
56707         * config/install-sh: update from automake.
56708
56709 2004-01-13  Karl Berry  <karl@gnu.org>
56710
56711         * config/install-sh: update from automake.
56712
56713 2004-01-09  Karl Berry  <karl@gnu.org>
56714
56715         * config/install-sh: update from automake.
56716
56717 2004-01-05  Karl Berry  <karl@gnu.org>
56718
56719         * config/config.{sub,guess}: update from config.
56720
56721 2003-12-31  Karl Berry  <karl@gnu.org>
56722
56723         * config/depcomp: update from automake.
56724
56725 2003-12-14  Karl Berry  <karl@gnu.org>
56726
56727         * lib/config.charset: update from gettext-runtime.
56728
56729 2003-12-03  Paul Eggert  <eggert@twinsun.com>
56730
56731         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
56732         Bug reported by Alfred M. Szmidt.
56733
56734 2003-12-03  Bruno Haible  <bruno@clisp.org>
56735
56736         * m4/gettext.m4: Upgrade from gettext-0.13.
56737         * m4/po.m4: Upgrade from gettext-0.13.
56738         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
56739         * m4/intmax.m4: New file, from gettext-0.13.
56740         * m4/printf-posix.m4: New file, from gettext-0.13.
56741
56742 2003-11-29  Karl Berry  <karl@gnu.org>
56743
56744         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
56745
56746 2003-11-25  Paul Eggert  <eggert@twinsun.com>
56747             Bruno Haible  <bruno@clisp.org>
56748
56749         * lib/printf-parse.h: Don't include sys/types.h.
56750         (ARG_NONE): New macro.
56751         (char_directive): Change type of *arg_index fields to size_t.
56752         * lib/printf-parse.c: Don't include sys/types.h.
56753         (SSIZE_MAX): Remove macro.
56754         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
56755         Remove unnecessary overflow check.
56756         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
56757         fields.
56758
56759 2003-11-25  Bruno Haible  <bruno@clisp.org>
56760
56761         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
56762
56763 2003-11-25  Bruno Haible  <bruno@clisp.org>
56764
56765         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
56766         gt_TYPE_SSIZE_T.
56767
56768 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56769
56770         * modules/alloca: Remove dependency on xalloc.
56771
56772 2003-11-24  Paul Eggert  <eggert@twinsun.com>
56773
56774         * lib/alloca.c: Remove dependency on xalloc module.
56775         (xalloc_die): Remove.
56776         (memory_full) [!defined emacs]: New macro.
56777         [!defined emacs]: Don't include xalloc.h.
56778         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
56779         address arithmetic overflows.  Change datatypes a bit to avoid
56780         unnecessary casts.
56781
56782 2003-11-22  Jim Meyering  <jim@meyering.net>
56783
56784         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
56785         s/size/size_t/.
56786
56787 2003-11-21  Karl Berry  <karl@gnu.org>
56788
56789         * config/config.{sub,guess}: update from config.
56790
56791 2003-11-18  Karl Berry  <karl@gnu.org>
56792
56793         * config/config.{sub,guess}: update from config.
56794
56795         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
56796
56797 2003-11-17  Paul Eggert  <eggert@twinsun.com>
56798
56799         * README: Mention that S+T cannot overflow if S is the size of
56800         an existing object and T is sufficiently small.
56801
56802 2003-11-17  Jim Meyering  <jim@meyering.net>
56803
56804         On systems without utime and without a utimes function capable of
56805         dealing with a NULL struct utimbuf* argument, this utime replacement
56806         could -- in unusual circumstances -- leak a file descriptor.
56807         * lib/utime.c: Include <unistd.h> and <errno.h>.
56808         (utime_null): Be sure to close `fd' and to preserve errno.
56809         Reported by Geoff Collyer via Arnold Robbins.
56810
56811 2003-11-17  Bruno Haible  <bruno@clisp.org>
56812
56813         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
56814         (Depends-on): Add xsize.
56815
56816 2003-11-17  Bruno Haible  <bruno@clisp.org>
56817
56818         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
56819
56820 2003-11-17  Bruno Haible  <bruno@clisp.org>
56821
56822         * lib/vasnprintf.c (alloca): Remove fallback definition.
56823         (freea): Remove definition.
56824         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
56825         Reported by Paul Eggert.
56826
56827 2003-11-16  Paul Eggert  <eggert@twinsun.com>
56828             Bruno Haible  <bruno@clisp.org>
56829
56830         Protect against address arithmetic overflow.
56831         * lib/printf-args.h: Include stddef.h.
56832         (arguments): Change type of field 'count' to size_t.
56833         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
56834         'unsigned int' where appropriate.
56835         * lib/printf-parse.h: Include sys/types.h.
56836         (char_directive): Change type of *arg_index fields to ssize_t.
56837         (char_directives): Change type of fields 'count', max_*_length to
56838         size_t.
56839         * lib/printf-parse.c: Include sys/types.h and xsize.h.
56840         (SSIZE_MAX): Define fallback value.
56841         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
56842         instead of 'int' where appropriate. Check a_allocated, d_allocated
56843         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
56844         * lib/vasnprintf.c: Include xsize.h.
56845         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
56846         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
56847         overflow. Avoid wraparound when converting a width or precision from
56848         decimal to binary.
56849
56850 2003-11-16  Bruno Haible  <bruno@clisp.org>
56851
56852         Update from GNU gettext.
56853         * lib/printf-parse.c: Generalize to it can be compiled for wide
56854         strings.
56855         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
56856         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
56857         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
56858         SNPRINTF): New macros.
56859         Don't include <alloca.h> if the file is used inside libintl.
56860         (local_wcslen): New function, for Solaris 2.5.1.
56861         (VASNPRINTF): Use it instead of wcslen.
56862
56863 2003-11-16  Bruno Haible  <bruno@clisp.org>
56864
56865         * lib/xsize.h (xmax): New function.
56866         (xsum, xsum3, xsum4): Declare as "pure" functions.
56867
56868 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56869
56870         * modules/xalloc (Files): Undo latest change, since xalloc.h
56871         no longer needs SIZE_MAX or PTRDIFF_MAX.
56872
56873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56874
56875         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
56876         gl_PTRDIFF_MAX.
56877
56878 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56879
56880         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
56881         "return", to pacify some unknown compiler.  Problem reported
56882         by Joerg Schilling.
56883
56884 2003-11-12  Paul Eggert  <eggert@twinsun.com>
56885
56886         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
56887         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
56888         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
56889         heuristic is just as accurate as far as we know, and it removes a
56890         dependency on size_max.m4 and ptrdiff_max.m4.
56891
56892 2003-11-11  Bruno Haible  <bruno@clisp.org>
56893
56894         * modules/xsize (Files): Add m4/size_max.m4.
56895         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
56896
56897 2003-11-11  Bruno Haible  <bruno@clisp.org>
56898
56899         * m4/size_max.m4: New file.
56900         * m4/ptrdiff_max.m4: New file.
56901         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
56902         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
56903         (gl_XALLOC): Invoke it.
56904
56905 2003-11-11  Bruno Haible  <bruno@clisp.org>
56906
56907         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
56908         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
56909         defined.
56910
56911 2003-11-10  Paul Eggert  <eggert@twinsun.com>
56912
56913         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
56914         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
56915         rejected some allocations of exactly SIZE_MAX - 2 bytes.
56916         From Bruno Haible.
56917         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
56918         not (size_t) -1, since it's defined here.
56919
56920 2003-11-09  Karl Berry  <karl@gnu.org>
56921
56922         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
56923
56924 2003-11-06  Paul Eggert  <eggert@twinsun.com>
56925
56926         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
56927         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
56928         Reject sizes of exactly SIZE_MAX bytes.
56929         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
56930         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
56931
56932 2003-11-05  Bruno Haible  <bruno@clisp.org>
56933
56934         * lib/xsize.h: Include limits.h, to avoid a possible collision with
56935         SIZE_MAX defined in <limits.h> on Solaris.
56936
56937 2003-11-04  Jim Meyering  <jim@meyering.net>
56938
56939         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
56940         variable names, rather than @VAR@.
56941         * modules/poll: Likewise.
56942
56943 2003-11-04  Bruno Haible  <bruno@clisp.org>
56944
56945         * modules/xsize: New file.
56946         * modules/linebreak: Depend on xsize.
56947         * MODULES.html.sh (func_all_modules): Add xsize.
56948
56949 2003-11-04  Bruno Haible  <bruno@clisp.org>
56950
56951         * m4/xsize.m4: New file.
56952
56953 2003-11-04  Bruno Haible  <bruno@clisp.org>
56954
56955         * lib/xsize.h: New file.
56956         * lib/linebreak.c: Include xsize.h.
56957         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
56958         argument for overflow.
56959         Suggested by Paul Eggert.
56960
56961 2003-11-03  Karl Berry  <karl@gnu.org>
56962
56963         * config/config.{guess,sub}: update from config.
56964
56965 2003-11-03  Jim Meyering  <jim@meyering.net>
56966
56967         * modules/userspec (lib_SOURCES): Add userspec.h.
56968         (Include): Add "userspec.h".
56969         Improve description.
56970
56971 2003-11-03  Jim Meyering  <jim@meyering.net>
56972
56973         * lib/userspec.c: Include "userspec.h".
56974         * lib/userspec.h: New file.
56975
56976 2003-11-03  Bruno Haible  <bruno@clisp.org>
56977
56978         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
56979
56980 2003-11-03  Bruno Haible  <bruno@clisp.org>
56981
56982         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
56983         available, to avoid (extremely rare) race condition.
56984         Suggested by Paul Eggert.
56985
56986 2003-11-02  Karl Berry  <karl@gnu.org>
56987
56988         * config/srclist.txt (vasprintf.c): sync broken, sigh.
56989
56990 2003-10-31  Paul Eggert  <eggert@twinsun.com>
56991
56992         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
56993         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
56994         (read_filesystem_list): Set and use me_type_malloced.
56995         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
56996         whatever the type happens to be), for brevity and consistency.
56997         Check for size calculation overflow on Alphas running OSF/1.
56998
56999 2003-10-31  Jim Meyering  <jim@meyering.net>
57000
57001         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
57002
57003         * lib/linebuffer.c: Include <string.h> for declaration of memset.
57004
57005 2003-10-30  Paul Eggert  <eggert@twinsun.com>
57006             Bruno Haible  <bruno@clisp.org>
57007
57008         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
57009         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
57010
57011 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
57012
57013         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
57014         netbsd*-gnu*.  Suggested by Robert Millan.
57015
57016 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57017
57018         * modules/group-member: Depend on stdbool.
57019
57020 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57021
57022         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
57023
57024 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57025
57026         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
57027         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
57028         after the 'gnu' in these cases.  This fixes some bugs in the
57029         previous change, and is based on suggestions by Robert Millan.
57030
57031 2003-10-29  Paul Eggert  <eggert@twinsun.com>
57032
57033         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
57034         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
57035         no longer needed.
57036         * lib/quotearg.c (quotearg_n_options): Use it.
57037         * lib/group-member.c: Include <stdbool.h>.
57038         (free_group_info): Arg is now const *; don't free arg.
57039         (get_group_info): Now returns bool and accepts struct group_info *,
57040         rather than returning a malloc'ed struct group_info *.
57041         All uses changed.  Check for overflow in internal size calculation.
57042
57043         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
57044         rather than xmalloc/xrealloc.
57045         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
57046         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
57047         conformance bug: the old code used a pointer after freeing the
57048         storage that it addressed.
57049         * lib/hash.c (hash_initialize): Simplify the code by using
57050         xalloc_oversized rather than doing it by hand.
57051         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
57052         the buffer preserved.  Use free and xmalloc instead.
57053         * lib/quotearg.c (quotearg_n_options): Likewise.
57054         Use a simpler test for size overflow.  Don't use xalloc_oversized
57055         because unsigned int might be wider than size_t (!); this suggests
57056         that we should switch from unsigned int to size_t for slot numbers.
57057
57058 2003-10-28  Paul Eggert  <eggert@twinsun.com>
57059
57060         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
57061         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
57062         NetBSD kernels.  Requested by Richard Stallman.
57063
57064 2003-10-27  Paul Eggert  <eggert@twinsun.com>
57065
57066         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
57067         to allocate the returned structure.  Do not allocate a subarray,
57068         as x2nrealloc will do that.
57069         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
57070         instead of xnrealloc.
57071         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
57072
57073 2003-10-27  Bruno Haible  <bruno@clisp.org>
57074
57075         * lib/stdbool_.h: Better support for BeOS.
57076
57077 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57078
57079         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
57080         now uses inline.
57081
57082 2003-10-26  Paul Eggert  <eggert@twinsun.com>
57083
57084         * lib/xalloc.h (xalloc_oversized): New static inline function, for
57085         callers that want to do their own size-overflow checking.  Include
57086         <stdbool.h>, since xalloc_oversized returns bool.
57087         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
57088         to use xalloc_oversized.
57089
57090         Add two functions x2realloc, x2nrealloc, for programs that grow
57091         arrays dynamically by doubling their sizes.
57092         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
57093         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
57094         New functions.
57095
57096         Port to C99 semantics for 'inline' of external functions.
57097         Bug reported by Bruno Haible.
57098         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
57099         with the old contents of xnmalloc.
57100         (xnmalloc, xmalloc): Use it.
57101         (xnrealloc_inline): New static inline function,
57102         with the old contents of xnrealloc.
57103         (xnrealloc, xrealloc): Use it.
57104
57105         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
57106         that.
57107
57108 2003-10-26  Karl Berry  <karl@gnu.org>
57109
57110         * config/srclist.txt (COPYING.DOC): no longer available from
57111         /gd/gnuorg; don't know where the ultimate source is.
57112
57113 2003-10-25  Paul Eggert  <eggert@twinsun.com>
57114
57115         Fix several address-calculation bugs in the hash modules,
57116         plus some minor code cleanup.
57117
57118         * lib/hash.h: Include <stdbool.h>, for bool.
57119         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
57120         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
57121         hash_get_n_entries, hash_get_max_bucket_length,
57122         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
57123         hash_rehash): Use size_t rather than unsigned.
57124         * lib/hash.c (struct hash_table, hash_get_n_buckets,
57125         hash_get_n_buckets_used, hash_get_n_entries,
57126         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
57127         hash_get_entries, hash_do_for_each, hash_string, is_prime,
57128         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
57129         Likewise.
57130         (SIZE_MAX): Define if not defined.
57131         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
57132         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
57133         hash_print):
57134         Use const * when possible.
57135         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
57136         (check_tuning): Fix bug: if tuning parameters were very close to
57137         0 or 1, rounding errors could have caused subscript violations.
57138         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
57139         (hash_initialize): Add 'fail:' label
57140         to free table and return NULL, and use it to simplify code.
57141         Use calloc rather than clearing the storage ourself.
57142         (hash_initialize, hash_rehash): Check for arithmetic overflow in
57143         buffer size calculations.
57144         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
57145         Include <stddef.h>, for size_t.
57146         * lib/hash-pjw.c (hash_pjw): Likewise.
57147         Switch to method described by Bruno Haible.
57148         Include <limits.h>, for CHAR_BIT.
57149         (SIZE_BITS): New macro.
57150
57151 2003-10-23  Paul Eggert  <eggert@twinsun.com>
57152
57153         * m4/getline.m4 (AM_FUNC_GETLINE):
57154         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
57155         hosts.  Problem reported by Derek Robert Price in
57156         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
57157         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
57158         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
57159
57160 2003-10-21  Paul Eggert  <eggert@twinsun.com>
57161
57162         * lib/getndelim2.c (getndelim2): When size calculation overflows,
57163         ceiling the allocation at NMAX bytes rather than silently
57164         discarding input bytes before NMAX is reached.  This makes
57165         a difference only if NMAX exceeds SIZE_MAX / 2.
57166
57167         * lib/obstack.c: Merge from glibc.
57168         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
57169         Add libc_hidden_def (_obstack_newchunk).
57170         (_obstack_free) [! defined _LIBC]: Remove.
57171         [defined _LIBC]: Make a strong alias from obstack_free, rather than
57172         a clone of the function body.
57173         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
57174         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
57175
57176         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
57177         glibc.
57178         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
57179         arg to memcpy.
57180
57181         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
57182         (obstack_ptr_grow_fast, obstack_int_grow_fast):
57183         Don't use lvalue casts, as GCC plans to remove support for them
57184         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
57185         was also present in the non-GCC version, indicating that this
57186         code had always been buggy and had never been widely used.
57187         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
57188         Use the fast variant of each macro, rather than copying the
57189         definiens of the fast variant; that way, we'll be more likely to
57190         catch future bugs in the fast variants.
57191
57192 2003-10-20  Bruno Haible  <bruno@clisp.org>
57193
57194         * modules/wait-process: New file.
57195         * MODULES.html.sh (func_all_modules): Add wait-process.
57196
57197 2003-10-20  Bruno Haible  <bruno@clisp.org>
57198
57199         * m4/wait-process.m4: New file.
57200
57201 2003-10-20  Bruno Haible  <bruno@clisp.org>
57202
57203         * lib/wait-process.h: New file, from GNU gettext.
57204         * lib/wait-process.c: New file, from GNU gettext.
57205
57206 2003-10-19  Jim Meyering  <jim@meyering.net>
57207
57208         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
57209         HPUX 10.20.
57210
57211 2003-10-18  Karl Berry  <karl@gnu.org>
57212
57213         * config/config.guess: update from config.
57214
57215 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57216
57217         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
57218         (getgroups): First arg is int, not size_t.
57219         Don't let 'free' mangle errno.
57220
57221 2003-10-16  Paul Eggert  <eggert@twinsun.com>
57222
57223         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
57224
57225 2003-10-16  Karl Berry  <karl@gnu.org>
57226
57227         * config/config.{guess,sub}: update from config.
57228
57229 2003-10-16  Jim Meyering  <jim@meyering.net>
57230
57231         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
57232         memcpy.
57233
57234 2003-10-15  Paul Eggert  <eggert@twinsun.com>
57235
57236         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
57237         (SIZE_MAX): Remove.
57238         (new_exclude, add_exclude_file): Initial size no longer needs to
57239         be a power of 2.
57240         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
57241         our own address arithmetic overflow checking.
57242
57243         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
57244         (fnmatch): Do not alloca more than 2000 wide characters;
57245         instead, use malloc for large buffers.
57246         Check for address arithmetic overflow, and return -1
57247         with errno set to ENOMEM in that case.
57248         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
57249         (NEW_PATTERN): Do not alloca more than 8000 bytes;
57250         instead, return -1.  Check for address arithmetic overflow.
57251
57252 2003-10-14  Paul Eggert  <eggert@twinsun.com>
57253
57254         Handle invalid suffixes and overflow independently, so that
57255         callers can treat them independently as needed.  Fix some bugs in
57256         suffix handling, e.g., "100k@" was not diagnosed as an invalid
57257         suffix for a human-readable blocksize.  The major caller-visible
57258         change is the addition of a new
57259         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
57260         that both overflow and suffix chars were found.
57261
57262         * lib/human.c (humblock): Don't check separately for invalid suffix
57263         char; that is xstrtoumax's job (now that its bug is fixed).
57264         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
57265         INTMAX_MAX]: New macros.
57266         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
57267         TYPE_MAXIMUM): New macros.
57268         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
57269         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
57270         if overflow occurs, as it's what __strtol does and it's more useful
57271         in practice.
57272         (__xstrtol): If __strtol reports some error other than ERANGE,
57273         reflect it to the caller as LONGINT_INVALID.  If it reports
57274         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
57275         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
57276         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
57277         value.
57278         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
57279         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
57280         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
57281         [defined UINTMAX_MAX]: New macros.
57282
57283 2003-10-14  Bruno Haible  <bruno@clisp.org>
57284
57285         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
57286
57287 2003-10-14  Bruno Haible  <bruno@clisp.org>
57288
57289         * m4/sig_atomic_t: New file, from GNU gettext.
57290         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
57291
57292 2003-10-14  Bruno Haible  <bruno@clisp.org>
57293
57294         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
57295         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
57296         Also use volatile where needed.
57297
57298 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57299
57300         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
57301         Change maintainer from Bruno Haible to 'all'.
57302
57303 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57304
57305         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
57306
57307 2003-10-12  Paul Eggert  <eggert@twinsun.com>
57308
57309         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
57310         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
57311         and define in terms of the other primitives.
57312         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
57313         (SIZE_MAX): Define if not already defined.
57314         (array_size_overflow): New function.
57315         (xalloc_die): Abort instead of exiting if 'error' returns.
57316         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
57317         (xmalloc, xrealloc): Use them.
57318         (xcalloc): Check for address arithmetic overflow.
57319         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
57320         a bit faster than strcpy.
57321
57322 2003-10-10  Simon Josefsson  <jas@extundo.com>
57323
57324         * modules/argp (Depends-on): Add restrict and strcase.
57325
57326 2003-10-10  Simon Josefsson  <jas@extundo.com>
57327
57328         * m4/argp.m4: Add AC_C_INLINE.
57329
57330 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57331
57332         Merge getpass from libc, plus a few fixes.
57333
57334         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
57335         Include <stdbool.h>.
57336         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
57337         __fsetlocking to empty.
57338         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
57339         do include <bits/libc-lock.h>.
57340         Do not include <fcntl.h>; not needed.
57341         [_LIBC]: Include <wchar.h>.
57342         (NOTCANCEL_MODE): New macro.
57343         (flockfile, funlockfile) [_LIBC]: New macros.
57344         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
57345         [!_LIBC]: New macros.
57346         (call_fclose): New function.
57347         (getpass): Use it.  Save tty stream separately; this simplifies the
57348         code and makes it more reliable if stdin happens to equal stdout.
57349         Invoke __fsetlocking on tty.
57350         Handle thread cancellation if needed.
57351         Namespace cleanup (use __tcgetattr, __getline).
57352         Use bool for Booleans.
57353         [USE_IN_LIBIO]: Handle wide streams.
57354         [!_LIBC]: Unconditionally do the fseek, since we don't know what
57355         stream might go where.
57356
57357         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
57358         doesn't have to include <stdio.h> before us.
57359         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
57360         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
57361         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
57362         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
57363         if not declared, so that we can use getpass.c code from libc without
57364         rewriting it.
57365         (flockfile, ftrylockfile, funlockfile): New macros.
57366
57367 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57368
57369         * modules/getpass: Depend on stdbool.
57370
57371 2003-10-08  Paul Eggert  <eggert@twinsun.com>
57372
57373         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
57374
57375 2003-10-07  Karl Berry  <karl@gnu.org>
57376
57377         * config/config.{guess,sub}: update from config.
57378
57379 2003-10-06  Jim Meyering  <jim@meyering.net>
57380             Bruno Haible  <bruno@clisp.org>
57381
57382         This lets translators provide better translations for the
57383         "Written by ..." part of --version output.
57384         * lib/version-etc.h: Include stdarg.h.
57385         (version_etc_copyright): Declare as readonly.
57386         (version_etc): Make this function variadic with a NULL-terminated list
57387         of author name strings.
57388         (version_etc_va): New declaration.
57389         * lib/version-etc.c: Include stdarg.h, stdlib.h.
57390         (version_etc_copyright): Declare as readonly.
57391         (version_etc_va): New function. Provide a different translatable string
57392         for each possible number of authors < 10. Abbreviate when there are 10
57393         authors or more.
57394         (version_etc): Make this function variadic. Call version_etc_va.
57395         Suggestion from Gary V. Vaughan.
57396
57397         * lib/long-options.h (parse_long_options): Change prototype: the
57398         authors string is moved to the end and becomes variadic.
57399         * lib/long-options.c: Include stdarg.h.
57400         (parse_long_options): Make this function variadic, too.
57401         Call version_etc_va, not version_etc.
57402
57403 2003-10-06  Bruno Haible  <bruno@clisp.org>
57404
57405         * modules/version-etc-2: Remove file.
57406         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
57407
57408 2003-10-06  Bruno Haible  <bruno@clisp.org>
57409
57410         * modules/fatal-signal: New file.
57411         * MODULES.html.sh (func_all_modules): Add fatal-signal.
57412
57413 2003-10-06  Bruno Haible  <bruno@clisp.org>
57414
57415         * m4/fatal-signal.m4: New file.
57416         * m4/signalblocking.m4: New file, from GNU gettext.
57417
57418 2003-10-06  Bruno Haible  <bruno@clisp.org>
57419
57420         * lib/version-etc-2.h: Remove file.
57421         * lib/version-etc-2.c: Remove file.
57422
57423 2003-10-06  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/fatal-signal.h: New file, from GNU gettext.
57426         * lib/fatal-signal.c: New file, from GNU gettext.
57427
57428 2003-10-05  Paul Eggert  <eggert@twinsun.com>
57429
57430         * README: Rework advice for preventing empty .o files.
57431         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
57432         not <sys/types.h>.
57433
57434 2003-10-04  Karl Berry  <karl@gnu.org>
57435
57436         * lib/argp*: update from libc.
57437
57438 2003-10-04  Karl Berry  <karl@gnu.org>
57439
57440         * config/config.{guess,sub}: update from config.
57441
57442 2003-10-02  Bruno Haible  <bruno@clisp.org>
57443
57444         * modules/lchown (Include): Add lchown.h.
57445         * modules/time_r (Include): Use "..." syntax.
57446         * modules/xgetdomainname (Include): Add xgetdomainname.h.
57447
57448 2003-10-01  Simon Josefsson  <jas@extundo.com>
57449
57450         * MODULES.html.sh (func_all_modules): Move gethostname from section
57451         'based on' to section 'lacking' POSIX:2001.
57452
57453 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
57454
57455         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
57456         to output mode on the same stream.
57457
57458 2003-09-29  Paul Eggert  <eggert@twinsun.com>
57459
57460         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
57461         Fix arg typo in previous patch.
57462
57463 2003-09-28  Jim Meyering  <jim@meyering.net>
57464
57465         * lib/error.c: Correct cpp indentation.
57466
57467 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57468
57469         * modules/free: New file.
57470
57471 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57472
57473         * m4/free.m4: New file.
57474
57475 2003-09-27  Paul Eggert  <eggert@twinsun.com>
57476
57477         * lib/minmax.h (MIN, MAX)
57478         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
57479         Omit the special code that used __typeof__, since we worry that
57480         it could be more trouble than it's worth.  See:
57481         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
57482         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
57483
57484         * lib/free.c: New file.
57485
57486 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
57487
57488         Trivial fixes to Makefile.am parts of module listings.
57489         * modules/strstr: Append strstr.h to lib_SOURCES.
57490         * modules/strcase: Likewise, for strcase.h.
57491
57492 2003-09-27  Karl Berry  <karl@gnu.org>
57493
57494         * config/mkinstalldirs: update from automake.
57495
57496 2003-09-26  Paul Eggert  <eggert@twinsun.com>
57497
57498         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
57499         (error_tail): Do not loop, reallocating temporary buffer, since
57500         the output cannot contain more wide characters than the input
57501         contains bytes, the size must be big enough already.  This avoids
57502         one potential size overflow calculation.  Check for size overflow
57503         when calculating temporary buffer size.  Free temporary buffer
57504         when done, if it was allocated with malloc; this plugs a memory
57505         leak.  Remove casts from void * to pointers, that are no longer
57506         needed now that we're assuming C89 or better.
57507
57508         Merge error changes from glibc.
57509
57510         * lib/error.c, error.h: Update copyright notice header to match glibc.
57511         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
57512         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
57513         Disable cancellation while printing error.
57514         * lib/error.h: Prepend __ to parameter names.
57515
57516 2003-09-26  Jim Meyering  <jim@meyering.net>
57517
57518         * lib/error.c (error_tail): Move some declarations
57519         into inner scope where the local variables are used.
57520
57521 2003-09-26  Bruno Haible  <bruno@clisp.org>
57522
57523         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
57524         stpncpy().
57525         Don't define stpncpy through config.h; it's now done through stpncpy.h.
57526
57527 2003-09-26  Bruno Haible  <bruno@clisp.org>
57528
57529         * lib/stpncpy.h (gnu_stpncpy): New declaration.
57530         (stpncpy): Define as alias for gnu_stpncpy.
57531         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
57532
57533 2003-09-25  Simon Josefsson  <jas@extundo.com>
57534
57535         * lib/xgetdomainname.h: New file.
57536         * lib/xgetdomainname.c: New file.
57537
57538 2003-09-25  Simon Josefsson  <jas@extundo.com>
57539             Bruno Haible  <bruno@clisp.org>
57540
57541         * modules/getdomainname: New file.
57542         * modules/xgetdomainname: New file.
57543         * MODULES.html.sh (func_all_modules): Add getdomainname,
57544         xgetdomainname.
57545
57546 2003-09-25  Simon Josefsson  <jas@extundo.com>
57547             Bruno Haible  <bruno@clisp.org>
57548
57549         * m4/getdomainname.m4: New file.
57550
57551 2003-09-25  Simon Josefsson  <jas@extundo.com>
57552             Bruno Haible  <bruno@clisp.org>
57553
57554         * lib/getdomainname.h: New file.
57555         * lib/getdomainname.c: New file.
57556
57557 2003-09-25  Karl Berry  <karl@gnu.org>
57558
57559         * lib/argp-fmtstream.c, argp-help.c: update from libc.
57560
57561 2003-09-25  Karl Berry  <karl@gnu.org>
57562
57563         * config/install-sh: update from automake.
57564
57565 2003-09-25  Bruno Haible  <bruno@clisp.org>
57566
57567         * modules/version-etc-2: New file, from modules/version-etc with
57568         modifications.
57569         * MODULES.html.sh (func_all_modules): Add version-etc-2.
57570
57571 2003-09-25  Bruno Haible  <bruno@clisp.org>
57572
57573         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
57574         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
57575
57576 2003-09-24  Simon Josefsson  <jas@extundo.com>
57577
57578         * modules/xgethostname: Add xgethostname.h.
57579
57580 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57581
57582         * lib/linebuffer.c (freebuffer): Don't free the argument, just
57583         the buffer associated with the argument.  Bug reported by
57584         Simon Josefsson.
57585
57586 2003-09-24  Paul Eggert  <eggert@twinsun.com>
57587
57588         * README: Document assumptions that 'int' is at least 32 bits
57589         wide, that integer arithmetic is 2's complement without overflow,
57590         that there are no holes in integer values, that adding sizes of
57591         two nonoverlapping objects can't overflow, and that all-bits-zero
57592         yields scalar zero.  Fix spelling and capitalization typos.
57593
57594 2003-09-19  Karl Berry  <karl@gnu.org>
57595
57596         * lib/argp.h: update from libc.
57597
57598 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57599
57600         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
57601         to avoid spurious warnings like "AC_RUN_IFELSE was called before
57602         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
57603
57604 2003-09-17  Paul Eggert  <eggert@twinsun.com>
57605
57606         * gnulib-tool: Use "test -h", not "test -L", for portability
57607         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
57608         (tags_regexp): Remove, since \| doesn't conform to POSIX.
57609         (sed_extract_prog): Issue s commands one-by-one, rather than
57610         using \| in one s command.
57611
57612 2003-09-16  Paul Eggert  <eggert@twinsun.com>
57613
57614         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
57615         input error, instead of returning NULL the next time we are called
57616         (and therefore losing track of errno).
57617
57618 2003-09-16  Bruno Haible  <bruno@clisp.org>
57619
57620         * gnulib-tool (func_create_testdir): Warn about duplicated
57621         dependencies.
57622
57623 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57624
57625         * modules/argmatch, modules/fatal, modules/obstack,
57626         modules/xalloc, modules/xgethostname: Sort dependencies by
57627         importance, not alphabetically.
57628
57629 2003-09-15  Paul Eggert  <eggert@twinsun.com>
57630
57631         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
57632         fails, so that the caller gets the proper errno.
57633
57634         * lib/readutmp.c (read_utmp): Likewise.
57635         Check for fstat error.  Close stream and free storage
57636         when failing.
57637
57638 2003-09-14  Karl Berry  <karl@gnu.org>
57639
57640         * config/srclist.txt (strdup.c): disable for c89 changes.
57641
57642 2003-09-14  Jim Meyering  <jim@meyering.net>
57643
57644         * lib/getloadavg.c: Correct cpp indentation.
57645         * lib/strdup.c: Likewise.
57646         * lib/vasnprintf.c: Likewise.
57647
57648 2003-09-14  Bruno Haible  <bruno@clisp.org>
57649
57650         * modules/fwriteerror: New file.
57651         * MODULES.html.sh (func_all_modules): Add fwriteerror.
57652
57653 2003-09-14  Bruno Haible  <bruno@clisp.org>
57654
57655         * lib/fwriteerror.h: New file.
57656         * lib/fwriteerror.c: New file.
57657
57658 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57659
57660         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
57661         modules/xgethostname, modules/xalloc: Depend on exit.
57662
57663 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57664
57665         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
57666
57667         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
57668         and AC_MINIX, too, so that their extensions are available.
57669
57670         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
57671         This macro has been superseded by gl_BACKUPFILE.
57672
57673         More patches to assume C89 or better.
57674
57675         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
57676
57677         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
57678         unconditionally.
57679         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
57680         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
57681         Include <string.h>, <stdlib.h> unconditionally.
57682         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
57683         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
57684         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
57685         headers or for string.h.
57686         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
57687         or strtoul.
57688
57689         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
57690         headers.
57691         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
57692         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57693         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
57694         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
57695         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57696         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
57697         memcpy, memset.
57698         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
57699         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
57700         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
57701         strtol.
57702         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
57703         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
57704         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
57705         strtoul.
57706
57707 2003-09-12  Paul Eggert  <eggert@twinsun.com>
57708
57709         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
57710         * lib/obstack.c [!defined _LIBC]: Likewise.
57711         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
57712         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
57713         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
57714
57715         More changes to assume C89 or better.
57716
57717         * lib/error.c (error_tail): Assume vprintf.
57718
57719         * lib/argmatch.c (getenv): Remove decl.
57720         * lib/progreloc.c (get_full_program_name): Define via prototype.
57721         * lib/setenv.c (clearenv): Likewise.
57722         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
57723         needed.
57724         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
57725         (malloc, memcpy): Remove decls.
57726         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
57727         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
57728         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57729         (memcpy): Remove macro.
57730         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
57731         (__P): Remove.  All uses removed.
57732         (PTR): Remove.  All uses changed to void *.
57733         (CHAR_BIT, NULL): Remove.
57734         (spaces, zeros, memset_space, memset_zero)
57735         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
57736         Remove.
57737         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
57738         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
57739         Define with prototype.
57740         Remove now-unnecessary prototype decl.
57741         (extra_args_spec): Assume ANSI C.  All uses changed.
57742         (extra_args_spec_iso): Remove.
57743         (my_strftime, emacs_strftimeu): Define via prototype.
57744         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
57745         unconditionally.
57746         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
57747         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
57748         (strtoul, strtol): Remove decls.
57749         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
57750         LONG_MAX): Remove.
57751         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
57752         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
57753         (LOCALE_PARAM_PROTO): New macro.
57754         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
57755         (INTERNAL (strtol), strtol): Define with a prototype.
57756         (PARAMS): Remove.  All uses removed.
57757         * lib/tempname.c: Include <string.h> unconditionally.
57758         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
57759         * lib/xgethostname.c (main): Define with a prototype.
57760         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
57761         Include <stdlib.h> unconditionally.
57762         (calloc, malloc, realloc, free): Remove decls.
57763         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
57764         Include <stdlib.h> unconditionally.  Sort include file names.
57765         (strtod): Remove.
57766         (xstrtod): Define with a prototype.
57767         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
57768         (strtol, strtoul): Remove decls.
57769
57770 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57771
57772         More patches to assume C89 or better.
57773         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
57774         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
57775         string.h, memchr, STDC_HEADERS.
57776
57777 2003-09-11  Paul Eggert  <eggert@twinsun.com>
57778
57779         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
57780         Include <stdlib.h>, <string.h> unconditionally.
57781         Remove now-unnecessary cast to char *.
57782         * lib/strnlen.c: Include <string.h> unconditionally.
57783         * lib/yesno.c (yesno): Define with a prototype.
57784
57785 2003-09-11  Bruno Haible  <bruno@clisp.org>
57786
57787         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
57788
57789 2003-09-10  Jim Meyering  <jim@meyering.net>
57790
57791         * lib/error.c: Correct indentation of cpp directives.
57792
57793 2003-09-10  Bruno Haible  <bruno@clisp.org>
57794
57795         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
57796         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
57797         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
57798         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
57799         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
57800         <stdlib.h> and <string.h> checks.
57801         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
57802         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
57803
57804 2003-09-10  Bruno Haible  <bruno@clisp.org>
57805
57806         * lib/strcspn.c: Include <string.h> unconditionally.
57807         * lib/strpbrk.c: Include <string.h> unconditionally.
57808         * lib/strstr.c: Include <string.h> unconditionally.
57809         * lib/unicodeio.c: Include <string.h> unconditionally.
57810         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
57811         * lib/unsetenv.c: Likewise.
57812         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
57813         * lib/yesno.c: Include <stdlib.h> unconditionally.
57814         (rpmatch): Add prototype.
57815
57816 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57817
57818         More patches to assume C89 or better.
57819         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
57820         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
57821         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
57822         or for string.h.
57823         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
57824         stdlib.h.
57825         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
57826         C headers.
57827         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
57828         string.h.
57829         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
57830         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
57831         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
57832         or for string.h.
57833         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
57834         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
57835         C headers.
57836         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
57837         memcpy.
57838         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
57839         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
57840         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
57841         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
57842         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
57843         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
57844         string.h, free.
57845         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
57846         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
57847         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
57848         C headers, or for string.h.
57849         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
57850         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
57851         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
57852         headers, memory.h, stdlib.h, string.h, strings.h.
57853         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
57854         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
57855         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
57856         strchr.
57857         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
57858         headers, memory.h, string.h.
57859         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
57860         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
57861         free.
57862         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
57863         headers.
57864         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
57865         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
57866         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
57867         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
57868         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
57869
57870 2003-09-09  Paul Eggert  <eggert@twinsun.com>
57871
57872         More K&R removal.
57873
57874         * lib/acosl.c (main): Use a prototype.
57875         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
57876         tanl.c: Likewise.
57877
57878         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
57879
57880         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
57881         (getopt, etopt_long, getopt_long_only, _getopt_internal)
57882         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
57883         with a prototype.
57884         * lib/getopt.c (const): Remove macro.
57885         Include <string.h> unconditionally.
57886         (my_index): Remove; all uses changed to strchr.
57887         (strlen): Remove decl.
57888         (exchange): Remove forward decl; no longer needed.
57889         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
57890         Define with prototype.
57891         * lib/getopt1.c (const): Remove macro.
57892         (getopt_long, getopt_long_only, main): Define with prototype.
57893
57894         * lib/getugroups.c: Include <string.h> unconditionally.
57895
57896         * lib/getusershell.c: Include <stdlib.h> unconditionally.
57897         (getusershell, setusershell, endusershell, readname, main):
57898         Define with prototypes.
57899
57900         * lib/group-member.c: Include group-member.h first.
57901         Include <stdlib.h> unconditionally.
57902
57903         * lib/hard-locale.c: Include hard-locale.h first.
57904         Include <stdlib.h>, <string.h> unconditionally.
57905
57906         * lib/hash.c (free, malloc): Remove decls.
57907         Include <stdlib.h> unconditionally.
57908
57909         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
57910         (getenv): Do not declare.
57911
57912         * lib/idcache.c: Include <string.h> unconditionally.
57913
57914         * lib/long-options.c: Include long-options.h first, to test interface.
57915         Include <stdlib.h> unconditionally.
57916
57917         * lib/makepath.c: Include makepath.h first, to test interface.
57918         Include <stdlib.h> and <string.h> unconditionally.
57919
57920         * lib/linebuffer.c: Include <stdlib.h>.
57921         (free): Remove decl.
57922
57923         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
57924         stddef.h. rpl_malloc returns void *, not char *.
57925         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
57926         prototype.
57927
57928         * lib/md5.h: Include <limits.h> unconditionally.
57929         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
57930         (__P): Remove; all uses removed.
57931         * lib/md5.c: Include "md5.h" first.
57932         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
57933         md5_buffer, md5_process_bytes, md5_process_block):
57934         Define with prototypes.
57935         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
57936         * lib/sha.c: Include "sha.h" first.
57937         Include <stdlib.h>, <string.h> unconditionally.
57938
57939         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
57940         * lib/memcmp.c (__ptr_t): Likewise.
57941         * lib/memrchr.c (__ptr_t): Likewise.
57942         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
57943         Include <string.h> unconditionally.
57944         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
57945         * lib/memchr.c: Include <stdlib.h> unconditionally.
57946         * lib/memchr.c (LONG_MAX): Remove.
57947         * lib/memrchr.c (LONG_MAX): Likewise.
57948         * lib/memchr.c (__memchr): Define via a prototype.
57949         * lib/memrchr.c (__memrchr): Likewise.
57950         * lib/memcmp.c (__P): Remove, and remove all uses.
57951         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
57952         Remove forward decls; no longer needed.
57953         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
57954         Use types required by C89 in prototype.
57955
57956         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
57957         * lib/savedir.c: Likewise.
57958         * lib/mkdir.c (free): Remove decl.
57959         * lib/rmdir.c (rmdir): Define with a prototype.
57960         * lib/savedir.c: Include savedir.h first, to test interface.
57961
57962         * lib/mktime.c (STDC_HEADERS): Remove.
57963         Include <stdlib.h>, <string.h> unconditionally.
57964
57965         * lib/modechange.c: Include <stdlib.h> unconditionally.
57966         (malloc): Remove decl.
57967
57968         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
57969         (free): Remove decl.
57970
57971         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
57972         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
57973         (This type really should be intptr_t, but that's a C99ism.)
57974         (_obstack_memcpy): Remove: all uses changed to memcpy.
57975         Include <string.h> unconditionally.
57976         (struct obstack): Assume __STDC__ for types of members
57977         chunkfun, freefun, extra_arg.
57978         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
57979         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
57980         obstack_begin, obstack_specify_allocation,
57981         obstack_specify_allocation_with_arg, obstack_chunkfun,
57982         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
57983         Remove unprototyped decls and the macros that use them.
57984         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
57985         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
57986         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
57987         (defined __STDC__ && __STDC__)]:
57988         Remove nonprototyped code.
57989         Include <stdlib.h> unconditionally.
57990         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
57991         _obstack_allocated_p, _obstack_free, obstack_free,
57992         _obstack_memory_used, print_and_abort):
57993         Define using prototypes.
57994         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
57995         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
57996         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
57997         obstack_next_free, obstack_object_size, obstack_room) [0]:
57998         Remove unused, unprototyped code.
57999
58000         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
58001
58002         * lib/physmem.c (physmem_total, physmem_available, main): Define
58003         with prototypes.
58004
58005         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
58006         (main): Define with a prototype.
58007
58008         * lib/posixver.c (getenv): Remove decl.
58009
58010         * lib/putenv.c (malloc): Returns void *, not char *.
58011         Include <string.h> unconditionally.
58012         (strchr, memcpy, NULL): Do not define.
58013
58014         * lib/readtokens.c: Include readtokens.h first, to test interface.
58015         Include <stdlib.h>, <string.h> unconditionally.
58016         (init_tokenbuffer): Define with a prototype.
58017
58018         * lib/regex.c (PARAMS): Remove.  All uses removed.
58019         All uses of _RE_ARGS removed, too.
58020         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
58021         unconditionally.
58022         (bzero): Assume memset exists.
58023         (memcmp, memcpy, NULL): Remove.
58024         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
58025         char, or assignments to local vars of type signed char.
58026         (init_syntax_once, PREFIX(extract_number_and_incr),
58027         PREFIX(print_partial_compiled_pattern),
58028         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
58029         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
58030         PREFIX(regex_grow_registers), PREFIX(regex_compile),
58031         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
58032         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
58033         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
58034         wcs_compile_range, byte_compile_range, truncate_wchar,
58035         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
58036         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
58037         count_mbs_length, wcs_re_match_2_internal,
58038         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
58039         PREFIX(alt_match_null_string_p),
58040         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
58041         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
58042         regfree, PREFIX(extract_number)): Define with prototype.  Remove
58043         now-unnecessary declaration, if any.
58044         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
58045         regcomp, regexec):
58046         Remove now-unnecessary casts among pointer types.
58047         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
58048
58049         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
58050         (free): Remove decl.
58051
58052         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
58053
58054         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
58055         (free): Remove decl.
58056
58057         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
58058         * lib/xgetcwd.c: Likewise.
58059
58060         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
58061         (free): Remove decl.
58062
58063         * lib/strchrnul.c (strchrnul): Define with a prototype.
58064         Fix bug: c_in was not converted to char before searching.
58065
58066         The following changes are not K&R related:
58067
58068         * lib/group-member.h: Include <sys/types.h>, so that this file is
58069         self-contained.
58070         * lib/makepath.h: Likewise.
58071
58072         * lib/getusershell.c (readname, default_index, line_size, readname):
58073         Use size_t, not int, for sizes.
58074         (readname): If the size overflows, report an error instead of
58075         looping forever.
58076
58077 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58078
58079         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
58080         libc.
58081
58082 2003-09-09  Paul Eggert  <eggert@twinsun.com>
58083
58084         * README: New section: portability guidelines.
58085
58086 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58087
58088         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
58089         C89 spec.
58090
58091 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
58092
58093         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
58094
58095 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58096
58097         Assume C89 or better; remove K&R cruft.
58098         A few of these changes were first proposed by Derek Robert Price
58099         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
58100
58101         * lib/addext.c: Include <string.h> unconditionally.
58102         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
58103         Don't declare getenv or malloc.
58104
58105         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
58106         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
58107         (NULL): Remove.
58108         (find_stack_direction, alloca): Use prototypes.
58109
58110         * lib/atexit.c (atexit): Define using a prototype.
58111
58112         * lib/basename.c, dirname.c, stripslash.c:
58113         Include <string.h> unconditionally.
58114
58115         * lib/bcopy.c: Include <stddef.h>.
58116         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
58117
58118         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
58119
58120         * lib/error.h (error, error_at_line, error_print_progname)
58121         [! (defined (__STDC__) && __STDC__)]: Remove decls.
58122         * lib/error.c: Include error.h first, to check interface.
58123         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58124         (VA_START): Remove; all uses changeed to va_start.
58125         (exit, strerror): Remove decls.
58126         (error_print_progname): Prototype uncondionally.
58127         Don't include <errno.h>; no longer needed.
58128         (private_strerror): Remove.
58129         (error_tail): Always define.
58130         (error, error_at_line): Assume C89 or better; always use prototypes.
58131         * lib/fatal.c: Include "fatal.h" first, to test interface.
58132         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
58133         (VA_START): Remove; all uses changed to va_start.
58134         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
58135         this case.
58136         (exit): Remove decl.
58137         (fatal): Prototype unconditionally.  Assume va_start works.
58138         Abort at end, to pacify gcc.
58139
58140         * lib/euidaccess.c (main): Define with a prototype.
58141
58142         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
58143
58144         * lib/exitfail.c: Include <stdlib.h> unconditionally.
58145
58146         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
58147         prototypes.
58148         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
58149         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
58150         (getenv): Remove decl.
58151         (fnmatch): Define using a prototype.
58152         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
58153         (FCT): Define using a prototype.
58154
58155         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
58156
58157         * lib/gethostname.c: Include <stddef.h>.
58158         (gethostname): Define with prototype.  Length is size_t, not int.
58159
58160 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58161
58162         Assume C89 or better; remove K&R cruft.
58163         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
58164         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
58165         string.h, getenv, malloc.
58166         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
58167         headers.
58168         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
58169         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
58170         do not check for strerror.
58171         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
58172         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
58173         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
58174         do not check for doprnt or vprintf.
58175         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
58176         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
58177
58178 2003-09-08  Paul Eggert  <eggert@twinsun.com>
58179
58180         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
58181         getversion.c should have been removed then, but was accidentally
58182         preserved.
58183
58184         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
58185         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
58186
58187 2003-09-08  Karl Berry  <karl@gnu.org>
58188
58189         * config/config.sub, config.guess, srclistvars.sh: update from savannah
58190                 config, forget about prep.
58191
58192         * config/depcomp, missing: update from automake.
58193
58194 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58195
58196         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
58197         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58198
58199 2003-09-07  Paul Eggert  <eggert@twinsun.com>
58200
58201         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
58202         copy_tm_result.  Bug reported by Simon Josefsson in
58203         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
58204
58205 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58206
58207         * m4/time_r.m4: New file.
58208         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
58209         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
58210         is. Check for timegm declaration.
58211         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
58212         Do not check for gmtime_r.
58213         Replace mktime if __mktime_internal does not exist and if mktime
58214         hasn't been replaced already.
58215
58216 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58217
58218         * lib/time_r.c, lib/time_r.h: New files.
58219
58220         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
58221         __localtime_r.
58222         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
58223         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
58224
58225         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
58226         __gmtime_r.
58227         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
58228         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
58229         Include <time_r.h>.
58230
58231         * lib/timegm.c: Switch to glibc implementation, with the following
58232         changes:
58233         [defined HAVE_CONFIG_H]: Include <config.h>.
58234         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
58235         (__mktime_internal) [!defined _LIBC]: New decl.
58236         (__gmtime_r) [!defined _LIBC]: New macro and function.
58237         (timegm): Use a prototype, since gnulib assumes C89.
58238         Do not bother declaring tmp to be const, as it's not really usefu.
58239         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
58240         (timegm): Declare only if HAVE_DECL_TIMEGM.
58241
58242 2003-09-06  Paul Eggert  <eggert@twinsun.com>
58243
58244         * MODULES.html.sh (func_all_modules): Add time_r.
58245         * modules/time_r: New file.
58246         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
58247         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
58248
58249 2003-09-03  Paul Eggert  <eggert@twinsun.com>
58250
58251         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
58252         Bug reported by Lute Kamstra in
58253         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
58254
58255         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
58256         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
58257         course with correspondingly smaller numbers for tomorrow and
58258         yesterday.  From Tadayoshi Funaba.  Originally installed into
58259         sh-utils on 1999-08-07, but the patch got lost (I guess during the
58260         coreutils merge?).
58261
58262 2003-08-31  Simon Josefsson  <jas@extundo.com>
58263
58264         * modules/timegm: New file.
58265         * MODULES.html.sh (func_all_modules): Add timegm.
58266
58267 2003-08-31  Simon Josefsson  <jas@extundo.com>
58268
58269         * m4/timegm.m4: New file.
58270
58271 2003-08-31  Simon Josefsson  <jas@extundo.com>
58272
58273         * lib/timegm.h: New file.
58274         * lib/timegm.c: New file.  Based on
58275         wget-1.8.2/src/http.c:mktime_from_utc.
58276
58277 2003-08-31  Karl Berry  <karl@gnu.org>
58278
58279         * lib/argp.h: update from libc.
58280
58281 2003-08-28  Bruno Haible  <bruno@clisp.org>
58282
58283         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
58284         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
58285         followed by '#define fnmatch fnmatch_posix' gives an error.
58286
58287 2003-08-28  Bruno Haible  <bruno@clisp.org>
58288
58289         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
58290         warning on QNX, which defines O_BINARY to 000000.
58291
58292 2003-08-27  Jim Meyering  <jim@meyering.net>
58293
58294         * m4/mkstemp.m4: Require that the system mkstemp be able to create
58295         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
58296         would fail after 32.  Reported by Danny Levinson.  Details here:
58297         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
58298
58299 2003-08-24  Bruno Haible  <bruno@clisp.org>
58300
58301         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
58302         MSVC7 <stdio.h> is included later.
58303
58304 2003-08-22  Simon Josefsson  <jas@extundo.com>
58305
58306         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
58307
58308 2003-08-20  Karl Berry  <karl@gnu.org>
58309
58310         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
58311
58312 2003-08-20  Bruno Haible  <bruno@clisp.org>
58313
58314         * modules/progname: New file.
58315         * MODULES.html.sh (func_all_modules): Add progname.
58316
58317 2003-08-20  Bruno Haible  <bruno@clisp.org>
58318
58319         * lib/progname.h: New file, from GNU gettext.
58320         * lib/progname.c: New file, from GNU gettext.
58321         * lib/progreloc.c: New file, from GNU gettext.
58322
58323 2003-08-19  Jim Meyering  <jim@meyering.net>
58324
58325         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
58326         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
58327
58328 2003-08-19  Bruno Haible  <bruno@clisp.org>
58329
58330         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
58331         more.
58332
58333 2003-08-19  Bruno Haible  <bruno@clisp.org>
58334
58335         * lib/xstrdup.c: Assume <string.h> exists.
58336
58337 2003-08-18  Paul Eggert  <eggert@twinsun.com>
58338
58339         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
58340         in makefile rules.
58341
58342 2003-08-18  Jim Meyering  <jim@meyering.net>
58343
58344         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
58345         * m4/lib-ld.m4: Likewise.
58346
58347 2003-08-18  Jim Meyering  <jim@meyering.net>
58348
58349         * lib/setenv.h: Indent nested cpp directive.
58350         * lib/vasnprintf.c: Remove trailing blanks.
58351
58352 2003-08-17  Simon Josefsson  <jas@extundo.com>
58353
58354         * modules/xstrndup: New file.
58355         * MODULES.html.sh (func_all_modules): Add xstrndup.
58356
58357 2003-08-17  Simon Josefsson  <jas@extundo.com>
58358
58359         * modules/argp: Fix autoconf macro name. Add more dependencies.
58360
58361 2003-08-17  Simon Josefsson  <jas@extundo.com>
58362
58363         * m4/xstrndup.m4: New file.
58364
58365 2003-08-17  Simon Josefsson  <jas@extundo.com>
58366
58367         * m4/argp.m4: New file.
58368
58369 2003-08-17  Simon Josefsson  <jas@extundo.com>
58370             Bruno Haible  <bruno@clisp.org>
58371
58372         * lib/xstrndup.h: New file.
58373         * lib/xstrndup.c: New file.
58374
58375 2003-08-17  Bruno Haible  <bruno@clisp.org>
58376
58377         * modules/strndup (Files, Include): Add lib/strndup.h.
58378
58379 2003-08-17  Bruno Haible  <bruno@clisp.org>
58380
58381         * modules/euidaccess (Files): Add lib/euidaccess.h.
58382
58383 2003-08-17  Bruno Haible  <bruno@clisp.org>
58384
58385         * lib/strndup.h: New file.
58386
58387 2003-08-17  Bruno Haible  <bruno@clisp.org>
58388
58389         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
58390         like AC_GNU_SOURCE.
58391         * modules/extensions (configure.ac): Comment out the invocation of
58392         gl_USE_SYSTEM_EXTENSIONS.
58393
58394 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58395
58396         Merges from coreutils, etc.
58397         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
58398         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
58399         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
58400         fixing a typo.
58401         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
58402         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
58403
58404 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58405
58406         Document merge from coreutils.
58407         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
58408         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
58409         * modules/utime: Add m4/utimes-null.m4.
58410
58411 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58412
58413         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
58414         space, undoing this 2003-08-12 change:
58415         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58416
58417 2003-08-16  Paul Eggert  <eggert@twinsun.com>
58418
58419         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
58420         strtoul.c from libc, undoing this 2003-08-12 change:
58421         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
58422
58423 2003-08-16  Jim Meyering  <jim@meyering.net>
58424
58425         Merges from coreutils.
58426         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
58427         prefix.  Adjust cache variables similarly.  Create 500 rather than
58428         just 300 files, to exercise bug on Darwin6.5, too.
58429         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
58430         $missing_dir.
58431         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
58432         AM_SYS_POSIX_TERMIOS.
58433         Reported by mkc@mathdogs.com.
58434         Also change use of $am_cv_sys_posix_termios
58435         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
58436         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
58437         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
58438         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
58439         in /proc/mounts until it finds one with matching device number.  This
58440         is unnecessary when the FILE argument *is* a mount point.  No stat call
58441         is necessary in that case.  So, disable the statvfs-testing code on
58442         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
58443         as RedHat bug# 84846.
58444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58445         to 1MB, so as not to render systems with no stack size limit (e.g.,
58446         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58447         Include <unistd.h>.  On some systems,
58448         it is required for the definition of _SC_PAGESIZE.
58449
58450 2003-08-16  Jim Meyering  <jim@meyering.net>
58451
58452         Merge from coreutils.
58453         * lib/xstrtoimax.c: #else #if -> #elif.
58454         * lib/xstrtoumax.c: Likewise.
58455
58456 2003-08-16  Jim Meyering  <jim@meyering.net>
58457
58458         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
58459         * m4/utimes.m4: Removed.
58460         * m4/utimes-null.m4: Renamed from utimes.m4.
58461
58462         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
58463         to 1MB, so as not to render systems with no stack size limit (e.g.,
58464         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
58465         Include <unistd.h>.  On some systems,
58466         it is required for the definition of _SC_PAGESIZE.
58467
58468 2003-08-16  Jim Meyering  <jim@meyering.net>
58469         and Paul Eggert  <eggert@cs.ucla.edu>
58470
58471         Merges from coreutils, etc.
58472
58473         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
58474         using the latest version from cvs.  This avoids problems with #line
58475         directives using a vendor (Sun) compiler.
58476         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
58477         Don't set GETGROUPS_LIB here; now it's
58478         done via getgroups.m4's wrapper function.
58479         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
58480         rather than just in sh-util/configure.in, so that the
58481         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
58482         same.
58483         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
58484         AC_FUNC_GETLOADAVG where to find getloadavg.c.
58485         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
58486         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
58487         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
58488         Remove code that is now done by the newly-required macros.
58489         Append $(EXEEXT) to DF_PROG.
58490         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
58491         Do not invoke or require the following here,
58492         since prereq.m4 or some gnulib .m4 now does this for us:
58493         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
58494         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
58495         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
58496         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
58497         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
58498         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
58499         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
58500         AC_FUNC_OBSTACK.
58501         Do not replace the following functions, as this is now the job
58502         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
58503         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
58504         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
58505         atexit getpass, strdup, getpagesize.
58506         Replace 'raise'.
58507         Do not check for the following functions, as this is now the job
58508         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
58509         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
58510         setregid.
58511         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
58512         Check for sys/sysctl.h.
58513         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
58514         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
58515         of checking for ssize_t ourselves.
58516
58517         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
58518         Require every macro that gnulib/modules/* suggests for us.
58519         (jm_PREREQ_ADDEXT): New macro.
58520         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
58521         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
58522
58523         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
58524         (gl_PHYSMEM): Use it.
58525         Also check for `table' function.
58526         Check for new headers and functions.
58527         Add check for sys/sysmp.h.
58528         With suggestions from Kaveh Ghazi.
58529         Ignore headers that are present but cannot be compiled.  This
58530         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
58531         C 5.4.
58532
58533 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58534
58535         Document merge from coreutils.
58536         * modules/userspec: Depend on posixver.
58537         * modules/strftime: Depend on tzset.
58538
58539 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58540
58541         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
58542         rather than tab, after '#' in shell-script copyright notices.
58543         Suggested by Bruno Haible.
58544
58545 2003-08-15  Paul Eggert  <eggert@twinsun.com>
58546
58547         * config/srclist-update: Use three spaces, rather than tab, after '#'
58548         in shell-script copyright notices.  Suggested by Bruno Haible.
58549         Remove unnecessary parenthesization in regular expression.
58550
58551 2003-08-15  Jim Meyering  <jim@meyering.net>
58552
58553         Merge from coreutils.
58554         * lib/xgethostname.c: Include <stdlib.h>.
58555         (xghostname): Don't exit for anything other than memory-related
58556         failure; just return NULL.
58557         * lib/userspec.c: Include "posixver.h".
58558         (parse_user_spec): Accept `.' as a separator only
58559         in pre-POSIX-200112 mode.
58560         * lib/strtoimax.c: Use #elif rather than #else #if.
58561         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
58562         Remove function, now that we can rely on a working tzset function.
58563         [!_LIBC]: Ensure that the required autoconf test has been run.
58564         [!defined _NL_CURRENT && HAVE_STRFTIME]:
58565         Use underlying_strftime for %r.
58566         * lib/sha.c: Merge in some clean-up and optimization changes from
58567         glibc.
58568         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
58569         Ensure that it is a multiple of 64.
58570         Rearrange loop exit tests so as to avoid performing an
58571         additional fread after encountering an error or EOF.
58572         * lib/realloc.c: Update copyright date.
58573
58574 2003-08-15  Jim Meyering  <jim@meyering.net>
58575         and Paul Eggert  <eggert@twinsun.com>
58576
58577         Merge from coreutils.
58578         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
58579         member but strut utmpx does not.  Needed for AIX 4.3.3.
58580         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
58581
58582 2003-08-15  Jim Meyering  <jim@meyering.net>
58583         and Paul Eggert  <eggert@cs.ucla.edu>
58584
58585         Merges from coreutils, etc.
58586         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
58587         Require gl_FUNC_TZSET_CLOBBER.
58588         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
58589         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
58590         members.
58591
58592 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58593
58594         Help the merge from coreutils.
58595         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
58596         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
58597         * m4/tzset.m4: Use it too.
58598
58599 2003-08-14  Paul Eggert  <eggert@twinsun.com>
58600
58601         * modules/tzset: New file.
58602
58603 2003-08-14  Jim Meyering  <jim@meyering.net>
58604
58605         Merges from coreutils.
58606         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
58607         variable names, rather than @FNMATCH_H@.
58608         * modules/alloca: Likewise for $(ALLOCA_H).
58609
58610         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
58611         the three copies of the literal target, `fnmatch.h'.
58612         * modules/alloca (alloca.h): Likewise.
58613
58614 2003-08-14  Jim Meyering  <jim@meyering.net>
58615
58616         Merge from coreutils.
58617         * m4/tzset.m4: New file.
58618         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
58619         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
58620         otherwise, AIX 5.1 systems would end up using the latter.
58621         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
58622         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
58623         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
58624         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
58625
58626 2003-08-14  Jim Meyering  <jim@meyering.net>
58627
58628         Merge from coreutils.
58629         * lib/obstack.h: Whitespace changes.
58630         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
58631         and xcalloc return values.
58632         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
58633         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
58634         hang on OSF/1 5.1 for DIR on both local and remote file systems.
58635         Reported by (and fix confirmed by) Nelson H. F. Beebe.
58636         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
58637         error from mntctl.
58638         Use mntctl's return value to drive the entry-processing loop, since
58639         we can't rely on the value of the vmt_length member in the last
58640         entry.  On some systems doing so could result in exhausting
58641         virtual memory.  Based in part on a patch from Mike Jetzer.
58642
58643 2003-08-14  Jim Meyering  <jim@meyering.net>
58644         and Paul Eggert  <eggert@twinsun.com>
58645
58646         Merges from coreutils, plus other fixes.
58647         * lib/physmem.c: Merge in portability changes from gcc/libiberty
58648         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
58649         for credits and details.  Thanks to Kaveh Ghazi for helping
58650         to keep these files in sync.
58651         (ARRAY_SIZE): Define it.
58652         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
58653         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
58654         (memcasecmp): Don't assume size_t fits in unsigned int.
58655         Remove casts and duplicate code.
58656         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
58657         (memcpy): Remove definition.
58658         Merge in some clean-up and optimization changes from glibc.
58659         [BLOCKSIZE]: Move definition to top of file.
58660         Ensure that it is a multiple of 64.
58661         Rearrange loop exit tests so as to avoid performing an
58662         additional fread after encountering an error or EOF.
58663         * lib/md5.h (md5_uintptr): Define.
58664         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
58665         return to the initial working directory.  Preserve errno
58666         for caller.
58667         * lib/idcache.c: Include "xalloc.h".
58668         (xmalloc, xrealloc): Remove decls.
58669         (getuser): Remove casts no longer required in C89.
58670         * lib/human.c: Include stdio.h, for sprintf.
58671         * lib/group-member.c: Include "xalloc.h".
58672         (xmalloc, xrealloc): Remove decls.
58673         (get_group_info): Remove casts no longer required in C89.
58674         * lib/getusershell.c (readname): Remove casts no longer required in
58675         C89.
58676         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
58677         * lib/getline.c: Whitespace fix, from coreutils.
58678
58679 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58680
58681         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
58682         Check for isascii.
58683
58684         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58685         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58686         Undo previous (whitespace-only) change.
58687
58688 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58689
58690         * lib/exclude.c: Include <ctype.h>
58691         (IN_CTYPE_DOMAIN): New macro.
58692         (is_space): New fn.
58693         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
58694         and empty lines.
58695
58696         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58697         Undo previous (whitespace-only) change.
58698
58699 2003-08-13  Paul Eggert  <eggert@twinsun.com>
58700
58701         * config/srclist-update: Change update back to the old behavior,
58702         leaving whitespace alone.  Use one 'sed' command rather than a
58703         pipeline.
58704         (fixlicense): Now a variable, not a function.
58705         (remove_trailing_blanks): Remove.
58706         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
58707         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58708         Undo previous (whitespace-only) change.
58709
58710 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58711
58712         Merge from coreutils.
58713         * modules/euidaccess: Add lib_SOURCES, include for new
58714         file euidaccess.h
58715
58716 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58717
58718         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
58719         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
58720         Normalize leading white space and remove trailing white space.
58721
58722         Merge from coreutils
58723         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
58724
58725         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
58726         0.12.1.  These files are now being upgraded automatically by
58727         ../config/srclist-update.
58728
58729 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58730
58731         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
58732         Normalize leading white space and remove trailing white space.
58733         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
58734         notice, as per ../config/srclist-update.
58735
58736         Merge from coreutils.
58737         * lib/euidaccess.h: New file.
58738         * lib/euidaccess.c: Include it.
58739         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
58740         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
58741         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
58742
58743 2003-08-12  Paul Eggert  <eggert@twinsun.com>
58744
58745         * config/srclist-update: Add copyright notice.
58746         (remove_id_lines, remove_trailing_blanks): New constants.
58747         (fixfile): Use them to normalize spacing a bit in copied files.
58748         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
58749         Normalize leading white space and remove trailing white space.
58750
58751         * config/texinfo.tex: Sync with texinfo.
58752
58753         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
58754         strtoul.c from libc, to merge coreutils whitespace changes.
58755
58756         * config/srclist.txt: Get the following m4 files from gettext:
58757         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
58758         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
58759         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
58760         wint_t.m4.
58761
58762 2003-08-12  Karl Berry  <karl@gnu.org>
58763
58764         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
58765         been made.
58766
58767 2003-08-11  Paul Eggert  <eggert@twinsun.com>
58768
58769         * modules/gnu-source, m4/gnu-source.m4:
58770         Remove; we're assuming Autoconf 2.54 or later now.
58771         Suggested by Bruno Haible.
58772         * MODULES.html.sh (func_all_modules): Remove gnu-source.
58773
58774 2003-08-11  Bruno Haible  <bruno@clisp.org>
58775
58776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
58777
58778 2003-08-11  Bruno Haible  <bruno@clisp.org>
58779
58780         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
58781         (vasnprintf): Use it instead of wcslen.
58782
58783 2003-08-11  Bruno Haible  <bruno@clisp.org>
58784
58785         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
58786         value to ensure that _Bool promotes to int. Use #define for _Bool when
58787         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
58788
58789 2003-08-10  Karl Berry  <karl@gnu.org>
58790
58791         * lib/regex.h: update from libc (whitespace fix).
58792
58793 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58794
58795         Merge some files from coreutils.  These changes were
58796         originally made by Jim Meyering.
58797         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
58798         many older Unixes require this.
58799         * lib/alloca.c (alloca): Remove cast to argument of free;
58800         no longer needed in C89.
58801         * lib/alloca_.h, regex.h: Fix white space to match
58802         what GNU indent does.
58803
58804 2003-08-09  Paul Eggert  <eggert@twinsun.com>
58805
58806         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
58807         apparently Emacs's Unicode mode got confused before my 2003-08-05
58808         checkin.
58809
58810 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58811
58812         * m4/extensions.m4: New file.
58813         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
58814         Require gl_USE_SYSTEM_EXTENSIONS.
58815         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
58816         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
58817
58818 2003-08-08  Paul Eggert  <eggert@twinsun.com>
58819
58820         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
58821         * modules/extensions, modules/gnu-source: New files.
58822         * modules/timespec, modules/unlocked-io: Depend on extensions.
58823
58824 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58825
58826         * modules/restrict: New file.
58827         * MODULES.html.sh (func_all_modules): Add restrict.
58828         * modules/regex: Depend on restrict.
58829
58830 2003-08-07  Paul Eggert  <eggert@twinsun.com>
58831
58832         * m4/restrict.m4: New file.
58833         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
58834
58835 2003-08-07  Bruno Haible  <bruno@clisp.org>
58836
58837         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
58838         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
58839
58840 2003-08-07  Bruno Haible  <bruno@clisp.org>
58841
58842         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
58843         makes the module 'getndelim2' compatible with the module 'getline'.
58844
58845 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58846
58847         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
58848         byte with "\201" to avoid glitches when editing that source file
58849         with multi-gnome-terminal.
58850
58851 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58852
58853         * lib/bumpalloc.h: Remove.
58854
58855 2003-08-05  Paul Eggert  <eggert@twinsun.com>
58856
58857         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
58858         * modules/bumpalloc: Remove.
58859
58860 2003-08-04  Paul Eggert  <eggert@twinsun.com>
58861
58862         * lib/getloadavg.c: Change copyright notice and spacing to conform to
58863         GNU coding style.
58864
58865         Merge from coreutils.
58866         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
58867         1. From glibc.
58868         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
58869         from Karl Berry, implemented by Jim Meyering.
58870         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
58871         from Dmitry V. Levin.
58872         Remove anachronistic cast of xrealloc.
58873         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
58874         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
58875         type. Otherwise, it wouldn't compile with at least /bin/cc on
58876         ymp-cray-unicos9.0.2.X.
58877         Combine two mostly-identical uses of alloca into one.
58878         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
58879
58880 2003-08-04  Dave Love  <d.love@dl.ac.uk>
58881
58882         [From Emacs.]
58883
58884         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
58885         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
58886         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
58887         obsolete NLIST_NAME_UNION.
58888         [__GNU__]: Undef BSD and FSCALE.
58889         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
58890
58891 2003-08-03  Paul Eggert  <eggert@twinsun.com>
58892
58893         * lib/stdbool_.h (_Bool): Make it signed char, instead of
58894         an enum type, so that it's guaranteed to promote to int.  See:
58895         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
58896
58897 2003-08-03  Karl Berry  <karl@gnu.org>
58898
58899         * config/depcomp: update from automake.
58900
58901 2003-07-31  Paul Eggert  <eggert@twinsun.com>
58902
58903         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
58904         (strerror): Don't assume that a printable int fits in 14 bytes.
58905
58906 2003-07-31  Bruno Haible  <bruno@clisp.org>
58907
58908         * modules/getpass-gnu: New file.
58909         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
58910
58911 2003-07-31  Bruno Haible  <bruno@clisp.org>
58912
58913         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
58914
58915 2003-07-24  Karl Berry  <karl@gnu.org>
58916
58917         * config/missing: update from automake.
58918
58919 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
58920             Bruno Haible  <bruno@clisp.org>
58921
58922         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
58923         * lib/getline.c (getline, getdelim): Likewise.
58924         Remove _GNU_SOURCE define; now it's defined in config.h through
58925         m4/getline.m4.
58926
58927 2003-07-23  Karl Berry  <karl@gnu.org>
58928
58929         * config/config.sub: update from prep.
58930
58931 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58932
58933         * modules/xalloc (Depends-on): Add exitfail.
58934         * modules/xmemcoll: Likewise.
58935
58936 2003-07-22  Paul Eggert  <eggert@twinsun.com>
58937
58938         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
58939         over-parenthesization in macros.
58940
58941         Sync with coreutils.
58942
58943         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
58944         required by C99.
58945
58946         Use `exit_failure' for xalloc and xmemcoll instead of their own
58947         private exit-failure variables.
58948         * lib/xalloc.h (xalloc_exit_failure): Remove.
58949         * lib/xmalloc.c: Likewise.  Include exitfail.h.
58950         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
58951         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
58952         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
58953         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
58954
58955 2003-07-20  Jim Meyering  <jim@meyering.net>
58956
58957         * modules/closeout (Depends-on): Add exitfail.
58958         Suggestion from Bruno Haible.
58959
58960 2003-07-19  Karl Berry  <karl@gnu.org>
58961
58962         * config/config.sub: update from prep.
58963
58964 2003-07-18  Paul Eggert  <eggert@twinsun.com>
58965
58966         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
58967         Remove.
58968         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
58969         to test that it can stand by itself.  Include "exitfail.h".
58970         Clients should set exit_failure instead.
58971         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
58972
58973 2003-07-18  Bruno Haible  <bruno@clisp.org>
58974
58975         * modules/getndelim2: New file.
58976         * modules/getline: Share files with module getndelim2.
58977         * modules/getnline: Depend on getndelim2 instead of sharing files with
58978         it. Add getnline.c to lib_SOURCES.
58979         * MODULES.html.sh (func_all_modules): Add getndelim2.
58980
58981 2003-07-18  Bruno Haible  <bruno@clisp.org>
58982
58983         * m4/getndelim2.m4: New file.
58984         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
58985         invoke gl_PREREQ_GETNDELIM2.
58986         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
58987         gl_PREREQ_GETNDELIM2.
58988         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
58989         gl_GETNDELIM2.
58990
58991 2003-07-18  Bruno Haible  <bruno@clisp.org>
58992
58993         * lib/getndelim2.h: New file.
58994         * lib/getndelim2.c: Make into a module of its own. Include config.h,
58995         getndelim2.h.
58996         (getndelim2): Make non-static. Change return type to ssize_t.
58997         * lib/getline.h: Change argument names.
58998         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
58999         * lib/getnline.c: Include getndelim2.h.
59000
59001 2003-07-18  Andreas Schwab  <schwab@suse.de>
59002
59003         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
59004
59005 2003-07-17  Karl Berry  <karl@gnu.org>
59006
59007         * config/config.sub: update from prep.
59008
59009 2003-07-17  Bruno Haible  <bruno@clisp.org>
59010
59011         * modules/getnline: New file.
59012         * modules/getline: Add lib/getndelim2.c to source file list.
59013         * MODULES.html.sh (func_all_modules): Add getnline.
59014
59015 2003-07-17  Bruno Haible  <bruno@clisp.org>
59016
59017         * m4/getnline.m4: New file.
59018
59019 2003-07-17  Bruno Haible  <bruno@clisp.org>
59020
59021         * m4/Makefile.am.in: Remove file.
59022         * m4/Makefile.am: Remove file.
59023         * m4/Makefile.in: Remove file.
59024
59025 2003-07-17  Bruno Haible  <bruno@clisp.org>
59026
59027         * lib/getnline.h: New file.
59028         * lib/getnline.c: New file.
59029         * lib/getndelim2.c: New file, extracted from getline.c.
59030         (getndelim2): Renamed from getdelim2, with added nmax argument.
59031         * lib/getline.c: Include getndelim2.c.
59032         (getdelim2): Moved out to getndelim2.c.
59033         (getline, getdelim): Update.
59034
59035 2003-07-17  Bruno Haible  <bruno@clisp.org>
59036
59037         * lib/Makefile.am: Remove file.
59038         * lib/Makefile.in: Remove file.
59039
59040 2003-07-17  Bruno Haible  <bruno@clisp.org>
59041
59042         * configure.in: Remove file.
59043         * Makefile.in: Remove file.
59044
59045 2003-07-17  Bruno Haible  <bruno@clisp.org>
59046
59047         * MODULES.html.sh: Put the </BODY> right before </HTML>.
59048
59049 2003-07-16  Karl Berry  <karl@gnu.org>
59050
59051         * config/srclist-update: was running fixlicense twice, which caused
59052                 texinfo.tex to be nullified for some reason.  Simplify,
59053                 $gplsrc is no longer needed as far as I can see?
59054
59055 2003-07-16  Jim Meyering  <jim@meyering.net>
59056
59057         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
59058
59059 2003-07-15  Paul Eggert  <eggert@twinsun.com>
59060
59061         * config/srclist.txt: Get the following files from gettext-runtime/intl
59062         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
59063         ref-del.sin.  From Bruno Haible.
59064         * config/srclist-update (fixfile): Change grep pattern again, since the
59065         previous fix didn't work (there was another trailing $).  Use
59066         '[$]' to escape the $s.
59067
59068 2003-07-15  Karl Berry  <karl@gnu.org>
59069
59070         * lib/vasnprintf.c: update from gettext.
59071
59072 2003-07-15  Karl Berry  <karl@gnu.org>
59073
59074         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
59075         gets expanded when surrounded by '$'.
59076
59077 2003-07-15  Jim Meyering  <jim@meyering.net>
59078
59079         * modules/save-cwd: Don't depend on error.  From Derek Price.
59080
59081 2003-07-15  Jim Meyering  <jim@meyering.net>
59082
59083         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
59084
59085 2003-07-14  Simon Josefsson  <jas@extundo.com>
59086
59087         * modules/mempcpy: New file.
59088         * MODULES.html.sh (func_all_modules): Add mempcpy.
59089
59090 2003-07-14  Simon Josefsson  <jas@extundo.com>
59091
59092         * m4/mempcpy.m4: New file.
59093
59094 2003-07-14  Simon Josefsson  <jas@extundo.com>
59095
59096         * lib/mempcpy.h: New file.
59097         * lib/mempcpy.c: New file.
59098
59099 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59100
59101         * modules/getdate, modules/posixtm: Depend on mktime.
59102
59103 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59104
59105         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
59106         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
59107         unicodeio.c, unicodeio.h, unlocked-io.h:
59108         Switch from LGPL to GPL.
59109
59110 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59111
59112         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
59113         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
59114         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
59115         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
59116         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
59117         updated automatically by ../config/srclist-update.  This changes
59118         their license from LPGL to GPL.
59119
59120 2003-07-14  Paul Eggert  <eggert@twinsun.com>
59121
59122         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
59123         assumed to refer to the root of the most recent stable gettext version.
59124         * config/srclistvars.sh: Add defaults for eggert.
59125         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
59126         Match "This program" as well as "The program".  This is needed
59127         for gettext.
59128
59129 2003-07-14  Jim Meyering  <jim@meyering.net>
59130
59131         Don't emit diagnostics.  Let callers do that.
59132         * lib/save-cwd.c: Don't include "error.h".
59133         (save_cwd): Don't call error.  Ensure that errno is valid
59134         when returning nonzero.
59135
59136         * lib/save-cwd.h (restore_cwd): Update prototype.
59137         * lib/save-cwd.c (restore_cwd): Remove two parameters.
59138         Simplify.  Don't call error upon failure.  Let callers do that.
59139         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
59140         when auditing is enabled.  But don't bother updating the #if.
59141
59142 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
59143
59144         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
59145         it breaks C++ compilation.
59146         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
59147
59148 2003-07-10  Simon Josefsson  <jas@extundo.com>
59149
59150         * modules/strchrnul (Makefile.am): Add strchrnul.h.
59151
59152 2003-07-10  Jim Meyering  <jim@meyering.net>
59153
59154         * m4/clock_time.m4: Remove trailing blank.
59155         * m4/intmax_t.m4: Likewise.
59156
59157 2003-07-10  Jim Meyering  <jim@meyering.net>
59158
59159         * lib/vasnprintf.c: Remove trailing blanks.
59160         Make cpp indentation consistent.
59161
59162 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59163
59164         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
59165         posixver.c, strftime.c, strnlen.c, strverscmp.c:
59166         Switch from LGPL to GPL.
59167
59168 2003-07-09  Paul Eggert  <eggert@twinsun.com>
59169
59170         * config/srclist.txt: Sort sublists.  Add
59171         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
59172         that differ from gnulib for one reason or another; we'd like this list
59173         to be smaller but for now let's document what we have.
59174
59175 2003-07-08  Paul Eggert  <eggert@twinsun.com>
59176
59177         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
59178         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
59179         and sweeter "eval x=$x".
59180         * config/srclist.txt: Get lib/argp* from glibc.
59181
59182 2003-07-07  Paul Eggert  <eggert@twinsun.com>
59183
59184         * lib/mktime.c: Fix some boundary cases and remove need for floating
59185         point.
59186
59187         Issue a compile-time diagnostic if time_t is floating point, or if
59188         two's complement arithmetic is not in effect, or if arithmetic
59189         right shift does not propagate the sign.  These assumptions were
59190         all in the original code but they weren't checked.
59191
59192         (TIME_T_MIDPOINT, verify): New macros.
59193         (__isleap): Remove; it has integer overflow problems.
59194         (leapyear): New function, without those problems.
59195         (ydhms_tm_diff): Remove; splitting into two parts.
59196         (ydhms_diff): New function, containing the arithmetic part of
59197         the old ydhms_tm_diff function.  Issue a compile-time
59198         diagnostic if we are not using C99 integer division.
59199         Avoid casts when possible.
59200         (guess_time_tm): New function, containing the checking part of
59201         the old ydhms_tm_diff function.  Return the new value, rather than
59202         the difference between it and the old.  Accept a new argument T
59203         so that *T specifies the old value.  Check for overflow in the result.
59204
59205         (__mktime_internal): Use a time_t offset, not a long int offset.
59206         This undoes the 2003-06-04 change, which is no longer needed now
59207         that we have better overflow checking.
59208         (localtime_offset): Likewise.
59209
59210         (__mktime_internal): Avoid harmful overflow on hosts where time_t
59211         and long are 64-bit but int is only 32-bit.
59212         (ydhms_diff): Use long int to store year1 and yday1.
59213         Issue a compile-time diagnostic if long int is not wide enough.
59214
59215         (__mktime_internal): Use long int to store adjusted year and yday.
59216         Use plain C rather than preprocessor commands, if that doesn't
59217         affect efficiency.
59218         Check for overflow (and try to repair) after each probe
59219         rather than checking only at the very end.  This avoids some bugs
59220         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
59221         does not equal GMT offset at maximum time).
59222         Use integer to check for overflow rather than floating point; this
59223         is more portable to non-IEEE hosts, and is a tad faster.
59224         When we detect that we are oscillating between two values,
59225         don't check whether tm_isdst has the requested value, since
59226         we already know the answer.  When tm_isdst has the wrong value,
59227         use a different heuristic to find the right one, based on the
59228         extreme values actually observed in practice in tz2003a,
59229         rather than the (overly optimistic) "previous 3 calendar quarters".
59230
59231         (not_equal_tm, print_tm, check_result): Use "const T" rather than
59232         "T const" to accommodate glibc style.
59233         (check_result): Use less-confusing report format.  "long" -> "long int.
59234         (main): Likewise.
59235         Don't loop if the iteration overflows time_t.
59236         Allow a negative step in the iteration.
59237
59238 2003-07-06  Karl Berry  <karl@gnu.org>
59239
59240         * config/depcomp: update from automake.
59241         * config/config.sub: update from prep.
59242
59243 2003-07-03  Karl Berry  <karl@gnu.org>
59244
59245         * config/config.guess: update from prep.
59246
59247 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59248
59249         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
59250         xreadlink.c now includes it unconditionally.
59251
59252 2003-07-01  Paul Eggert  <eggert@twinsun.com>
59253
59254         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
59255         having it depend on HAVE_SYS_TYPES_H.
59256
59257 2003-07-01  Bruno Haible  <bruno@clisp.org>
59258
59259         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
59260         <sys/types.h> should be sufficient.
59261         Reported by Paul Eggert.
59262
59263 2003-06-26  Karl Berry  <karl@gnu.org>
59264
59265         * config/depcomp: update from automake.
59266
59267 2003-06-26  Bruno Haible  <bruno@clisp.org>
59268
59269         * modules/human: Depend on module stdbool.
59270
59271 2003-06-25  Bruno Haible  <bruno@clisp.org>
59272
59273         * modules/readlink: New file.
59274         * modules/xreadlink: Depend on it.
59275         * MODULES.html.sh (func_all_modules): Add readlink.
59276
59277 2003-06-25  Bruno Haible  <bruno@clisp.org>
59278
59279         * m4/readlink.m4: New file.
59280
59281 2003-06-25  Bruno Haible  <bruno@clisp.org>
59282
59283         * lib/readlink.c: New file.
59284
59285 2003-06-22  Karl Berry  <karl@gnu.org>
59286
59287         * config/srclist.txt: update mkinstalldirs from automake.
59288         * config/mkinstalldirs: update.
59289
59290 2003-06-22  Bruno Haible  <bruno@clisp.org>
59291
59292         Portability to mingw32.
59293         * m4/ssize_t.m4: New file, from GNU gettext.
59294         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
59295         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
59296
59297 2003-06-22  Bruno Haible  <bruno@clisp.org>
59298
59299         * modules/safe-read: Add m4/ssize_t.m4.
59300         * modules/xreadlink: Add m4/ssize_t.m4.
59301
59302 2003-06-20  Bruno Haible  <bruno@clisp.org>
59303
59304         Assume C89, so PARAMS isn't needed.
59305         * lib/unicodeio.h (PARAMS): Remove.
59306         * lib/unicodeio.c: Don't use PARAMS.
59307
59308 2003-06-18  Karl Berry  <karl@gnu.org>
59309
59310         * config/config.{guess,sub}: update from prep.
59311
59312 2003-06-18  Jim Meyering  <jim@meyering.net>
59313
59314         Merge changes from coreutils.
59315         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
59316         Remove explicit declarations of xmalloc and realloc.
59317         Include xalloc.h.
59318         (read_utmp): Remove anachronistic cast of xmalloc.
59319
59320 2003-06-17  Paul Eggert  <eggert@twinsun.com>
59321
59322         Assume C89, so PARAMS isn't needed.
59323         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
59324         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
59325         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
59326         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
59327         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
59328         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
59329         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
59330         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
59331         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
59332         lib/xstrtod.h, lib/xstrtol.h: Likewise.
59333         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
59334         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
59335         no longer needed. Anyway, config.h should always be included before any
59336         other file.
59337
59338 2003-06-11  Simon Josefsson  <jas@extundo.com>
59339
59340         * modules/sysexits: New file.
59341         * MODULES.html.sh (func_all_modules): Add sysexits.
59342
59343 2003-06-11  Simon Josefsson  <jas@extundo.com>
59344
59345         * lib/sysexit_.h: New file.
59346
59347 2003-06-11  Derek Price  <derek@ximbiot.com>
59348
59349         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
59350         necessary.
59351
59352 2003-06-11  Bruno Haible  <bruno@clisp.org>
59353
59354         * m4/sysexits.m4: New file.
59355
59356 2003-06-10  Simon Josefsson  <jas@extundo.com>
59357
59358         * lib/argp.h: New file, from glibc.
59359         * lib/argp-ba.c: New file, from glibc.
59360         * lib/argp-eexst.c: New file, from glibc.
59361         * lib/argp-fmtstream.c: New file, from glibc.
59362         * lib/argp-fmtstream.h: New file, from glibc.
59363         * lib/argp-fs-xinl.c: New file, from glibc.
59364         * lib/argp-help.c: New file, from glibc.
59365         * lib/argp-namefrob.h: New file, from glibc.
59366         * lib/argp-parse.c: New file, from glibc.
59367         * lib/argp-pv.c: New file, from glibc.
59368         * lib/argp-pvh.c: New file, from glibc.
59369         * lib/argp-xinl.c: New file, from glibc.
59370
59371 2003-06-10  Simon Josefsson  <jas@extundo.com>
59372
59373         * modules/strchrnul: New file.
59374
59375 2003-06-10  Simon Josefsson  <jas@extundo.com>
59376
59377         * modules/argp: New file.
59378
59379 2003-06-10  Simon Josefsson  <jas@extundo.com>
59380
59381         * m4/strchrnul.m4: New file.
59382
59383 2003-06-10  Simon Josefsson  <jas@extundo.com>
59384
59385         * lib/strchrnul.h: New file.
59386         * lib/strchrnul.c: New file.
59387
59388 2003-06-10  Bruno Haible  <bruno@clisp.org>
59389
59390         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
59391
59392 2003-06-07  Karl Berry  <karl@gnu.org>
59393
59394         * config/config.{guess,sub}: update from prep.
59395
59396 2003-06-07  Jim Meyering  <jim@meyering.net>
59397
59398         * modules/strtod: Use $(...) notation, not @...@ for
59399         AC_REPLACE'd variables.
59400         * modules/localcharset: Likewise.
59401
59402 2003-06-07  Jim Meyering  <jim@meyering.net>
59403
59404         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
59405         in place of my name in the copyright comment.
59406         Remove definition and uses of __P.
59407
59408         From coreutils.
59409         * lib/stat.c: Don't declare xmalloc explicitly.
59410         Instead, include "xalloc.h".
59411         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
59412         xrealloc, and xcalloc return values.
59413         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
59414         Improve comment.
59415         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
59416
59417 2003-06-07  Bruno Haible  <bruno@clisp.org>
59418
59419         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
59420         avoid AC_CONFIG_LINKS.
59421         * modules/fnmatch (Makefile.am): Use explicit creation rule for
59422         fnmatch.h, to avoid AC_CONFIG_LINKS.
59423         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
59424
59425 2003-06-07  Bruno Haible  <bruno@clisp.org>
59426
59427         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
59428         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
59429         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59430         directory.
59431         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
59432         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
59433         directory.
59434
59435 2003-06-06  Jim Meyering  <jim@meyering.net>
59436
59437         Merge from coreutils.
59438         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
59439         Consolidate declarations and initializations of *_base* locals.
59440
59441         Merge from coreutils.
59442         This avoids a core dump on systems without GNU putenv,
59443         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
59444         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
59445         (unsetenv): New static function, from GNU libc.
59446         (rpl_putenv): Use it.
59447
59448         * lib/modechange.c: Remove trailing blanks.
59449
59450         Merge from coreutils.
59451         * lib/fsusage.c: Remove declaration of statfs.
59452         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
59453
59454         * lib/posixtm.c: Include <stdbool.h> unconditionally.
59455
59456 2003-06-06  Jim Meyering  <jim@meyering.net>
59457
59458         * lib/stdbool_.h: Renamed from stdbool.h.in.
59459
59460 2003-06-06  Jim Meyering  <jim@meyering.net>
59461             Bruno Haible  <bruno@clisp.org>
59462
59463         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
59464         Adjust Makefile.am snippet not to redirect directly to target.
59465         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
59466
59467 2003-06-05  Paul Eggert  <eggert@twinsun.com>
59468
59469         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
59470         mismatch, look in future quarters as well as past.  This fixes a
59471         bug when processing fall-backwards gaps immediately after a long
59472         period of daylight-saving time.
59473
59474         * lib/mktime.c: Assume freestanding C89 or better.
59475         (HAVE_LIMITS_H): Remove.  Assume it's 1.
59476         (__P): Remove; not used.
59477         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
59478         (mktime, not_equal_tm, print_tm, check_result,
59479         main): Use prototypes.  Use const * where appropriate.
59480         (main): Fix typo in testing code that uncovered by above changes.
59481         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
59482
59483 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59484
59485         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
59486         locale.h, localeconv.  This merges changes from coreutils.
59487
59488         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
59489         It can be removed after the next Autoconf is released.
59490         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
59491         needed.
59492
59493 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59494
59495         * lib/mktime.c: Fix Debian bug 177940
59496         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
59497         (localtime_offset): Now long int, not time_t, because we want it
59498         to be guaranteed to be signed.  All uses changed.
59499         (__mktime_internal): If overflow would occur when adding offset,
59500         don't add it.
59501
59502         Merge 'human' changes from coreutils.  Rewrite to support
59503         locale-specific notations like thousands separators.
59504         * lib/human.c: Simplify authorship notice.
59505         Include human.h immediately after config.h.
59506         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
59507         <limits.h>: Do not include, since human.h does.
59508         (SIZE_MAX, UINTMAX_MAX): New macros.
59509         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
59510         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
59511         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
59512         (power_letter): Renamed from suffixes.
59513         (generate_suffix_backwards): Remove.
59514         (adjust_value): Now takes int style (because of human.h changes)
59515         and long double value (for greater precision on some platforms).
59516         (group_number): New function.
59517         (human_readable): Use it.  Use integer options, not enum.
59518         Put the options before the sizes in the arg list.
59519         Support all the new options.
59520         The old human_readable function has been removed;
59521         use inttostr.h instead.
59522         (human_readable, default_block_size, humblock):
59523         Use uintmax_t, not int, for block sizes.
59524         (human_readable_inexact, block_size_types): Remove.
59525         (block_size_opts): New constant.
59526         (human_options): Renamed from human_block_size, with new signature
59527         that allows block sizes up to UINTMAX_MAX.  All callers changed.
59528         * lib/human.h: Add copyright and authorship notice.
59529         Include <limits.h> and <stdbool.h> unconditionally.
59530         (PARAMS): Remove.  All uses removed.
59531         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
59532         (enum human_inexact_style): Remove tag; now a nameless enum.
59533         (human_floor, human_ceiling, human_round_to_even): Now have
59534         values 2, 0, 1 rather than -1, 1, 0.
59535         (human_group_digits, human_suppress_point_zero, human_autoscale,
59536         human_base_1024, human_SI, human_B): New constants.
59537         (human_readable_inexact, human_block_size): Remove.
59538         (human_readable): Size args are now uintmax_t, not int.
59539         (human_options): New decl.
59540
59541         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
59542         unnecessary now that we assume C89 or better.  This change
59543         imported from coreutils.
59544
59545         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59546         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
59547         in the 2003-05-30 sync from glibc.
59548
59549         .h files should stand alone, but we shouldn't include <sys/types.h>
59550         if we can get away with just <stddef.h>.
59551
59552         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
59553         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
59554         rather than <sys/types.h>, as we merely need size_t.
59555         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
59556         to get size_t.
59557         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
59558         Include <stdio.h>, to get FILE.
59559         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
59560         memcasecmp.h has included <stddef.h> and all we need is size_t.
59561         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
59562         our interface, instead of including <sys/types.h>
59563
59564 2003-06-04  Paul Eggert  <eggert@twinsun.com>
59565
59566         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
59567         now, as glibc mktime is buggy on non-glibc systems.
59568
59569 2003-06-03  Karl Berry  <karl@gnu.org>
59570
59571         * config/config.sub: update from prep.
59572
59573 2003-06-02  Paul Eggert  <eggert@twinsun.com>
59574
59575         [from coreutils]
59576         Fix some minor time-related bugs with POSIX time arguments.
59577         Some valid time stamps were being rejected (notably -1, and
59578         time stamps before 1900 on 64-bit hosts).  And some invalid
59579         time stamps were being accepted, e.g. September 31.
59580
59581         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
59582         that we can return (time_t) -1 successfully.
59583         * lib/posixtm.c: Likewise.
59584         [HAVE_STDBOOL_H]: Include <stdbool.h>.
59585         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
59586         (t): Remove static var.
59587         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
59588         of static var.  All uses changed.
59589         (year): Do not reject years before 1900; they can occur with
59590         64-bit time_t.
59591         (posix_time_parse): Do not check for out-of-range components;
59592         that is now the caller's responsibility, since our checks were
59593         only approximations.
59594         (posixtime): Use mktime to check for out-of-range components,
59595         since it knows them exactly.
59596         If mktime returns (time_t) -1, check whether an error actually occurred
59597         by invoking localtime on -1.
59598         (main) [TEST_POSIXTIME]: Check for input data errors, and report
59599         posixtime failures better.
59600         Improve the test data (in comments only).
59601
59602 2003-06-02  Karl Berry  <karl@gnu.org>
59603
59604         * config/mkinstalldirs (version): new variable.
59605         (--version): new option.
59606         (usage): improve message.
59607
59608 2003-05-30  Karl Berry  <karl@gnu.org>
59609
59610         * lib/mktime.c: update from libc.
59611
59612 2003-05-30  Bruno Haible  <bruno@clisp.org>
59613
59614         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
59615         * config/config.rpath: Upgrade to gettext-0.12.1.
59616
59617 2003-05-30  Bruno Haible  <bruno@clisp.org>
59618
59619         * m4/gettext.m4: Upgrade to gettext-0.12.1.
59620         * m4/nls.m4: New file, from gettext-0.12.1.
59621         * m4/po.m4: New file, from gettext-0.12.1.
59622         * m4/progtest.m4: Upgrade to gettext-0.12.1.
59623
59624 2003-05-30  Bruno Haible  <bruno@clisp.org>
59625
59626         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
59627         * lib/localcharset.h: Likewise.
59628         * lib/localcharset.c: Likewise.
59629
59630 2003-05-29  Karl Berry  <karl@gnu.org>
59631
59632         * config/config.rpath: update from gettext.
59633
59634 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59635
59636         Assume the headers required for C89 freestanding compilers.
59637         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
59638         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
59639         * m4/human.m4 (gl_HUMAN): Likewise.
59640         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
59641         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
59642         * m4/userspec.m4 (gl_USERSPEC): Likewise.
59643         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
59644         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
59645         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
59646
59647 2003-05-28  Paul Eggert  <eggert@twinsun.com>
59648
59649         Assume the headers required for C89 freestanding compilers.
59650         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
59651         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
59652         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
59653         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
59654         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
59655         define, since <limits.h> is guaranteed to do that.
59656         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
59657         * lib/exclude.c: Include <stdbool.h> unconditionally.
59658         * lib/tempname.c: Include <stddef.h> unconditionally.
59659         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
59660         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
59661         <stddef.h> does that.
59662         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
59663         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
59664         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
59665         needed.
59666         * lib/xstrtol.c: Likewise.
59667         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
59668         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
59669
59670         * lib/addext.c (addext): Use assignment rather than cast, to avoid
59671         warnings on some platforms.
59672
59673         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
59674         arbitrarily.
59675
59676 2003-05-26  Jim Meyering  <jim@meyering.net>
59677
59678         Merge in a change from coreutils:
59679         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
59680         that is guaranteed to be `no'.  Use `no_such_member' to indicate
59681         that condition, rather than `-1' which is slightly misleading.
59682         Change the name of the cache variable to have the gl_ prefix.
59683         Prompted by a patch from Richard Dawe for DJGPP.
59684
59685 2003-05-24  Karl Berry  <karl@gnu.org>
59686
59687         * config/config.guess: update from prep.
59688
59689 2003-05-22  Karl Berry  <karl@gnu.org>
59690
59691         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
59692
59693 2003-05-20  Karl Berry  <karl@gnu.org>
59694
59695         * config/config.guess: update from prep.
59696
59697 2003-05-18  Karl Berry  <karl@gnu.org>
59698
59699         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
59700         might actually be set by the user.
59701
59702         * config/depcomp, install-sh, mdate-sh: update from automake.
59703
59704 2003-05-17  Bruno Haible  <bruno@clisp.org>
59705
59706         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
59707         invalid expansion for AC_EGREP_CPP.
59708         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
59709         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
59710         Suggested by Akim Demaille <akim@epita.fr> in
59711         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
59712
59713 2003-05-12  Jim Meyering  <jim@meyering.net>
59714
59715         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
59716         the space-padded-by-default conversion specifiers, %e, %k, %l.
59717
59718 2003-05-12  Bruno Haible  <bruno@clisp.org>
59719
59720         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
59721         the string is longer than 4 KB.
59722
59723 2003-05-11  Karl Berry  <karl@gnu.org>
59724
59725         * config/config.{guess,sub}: update from prep.
59726
59727 2003-05-09  Bruno Haible  <bruno@clisp.org>
59728
59729         * modules/error: Add m4/strerror_r.m4 to file list.
59730
59731 2003-05-03  Bruno Haible  <bruno@clisp.org>
59732
59733         Upgrade to Unicode-4.0.
59734         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
59735         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
59736         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
59737         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
59738         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
59739         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
59740         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
59741         Change width of U+E0100..U+E01EF from 1 to 0.
59742
59743 2003-04-25  Jim Meyering  <jim@meyering.net>
59744
59745         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
59746         of type size_t, not int.
59747
59748 2003-04-25  Bruno Haible  <bruno@clisp.org>
59749
59750         * lib/copy-file.c: Include <stddef.h>, for size_t.
59751
59752 2003-04-21  Paul Eggert  <eggert@twinsun.com>
59753
59754         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
59755         code which expansion is under static control.  Patch imported from
59756         Akim Demaille's patch to Bison; see
59757         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
59758
59759 2003-04-14  Bruno Haible  <bruno@clisp.org>
59760
59761         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
59762
59763 2003-04-11  Jim Meyering  <jim@meyering.net>
59764
59765         Merge changes from Coreutils.
59766
59767         2003-03-22  Jim Meyering  <jim@meyering.net>
59768
59769         * lib/strftime.c (widen): Cast alloca return value to proper type.
59770
59771         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
59772
59773         From GNU libc.
59774         * lib/strftime.c (my_strftime): Handle very large width
59775         specifications for numeric values correctly.  Improve checks for
59776         overflow.
59777
59778         2003-01-19  Jim Meyering  <jim@meyering.net>
59779
59780         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
59781         definitions.
59782         (nl_get_alt_digit) [! defined my_strftime]: Define.
59783         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
59784         _nl_get_alt_digit and _nl_get_walt_digit.
59785
59786         * lib/strftime.c (my_strftime): Merge in locale-related changes from
59787         libc. These changes have no effect outside of _LIBC.
59788
59789 2003-04-10  Bruno Haible  <bruno@clisp.org>
59790
59791         * modules/findprog: New file.
59792         * MODULES.html.sh (func_all_modules): Add it.
59793
59794 2003-04-10  Bruno Haible  <bruno@clisp.org>
59795
59796         * m4/findprog.m4: New file.
59797         * m4/eaccess.m4: New file.
59798
59799 2003-04-10  Bruno Haible  <bruno@clisp.org>
59800
59801         * lib/findprog.h: New file, from GNU gettext.
59802         * lib/findprog.c: New file, from GNU gettext.
59803
59804 2003-04-05  Jim Meyering  <jim@meyering.net>
59805
59806         Merge changes from Coreutils.
59807
59808         * lib/exclude.h (PARAMS): Remove definition and uses.
59809         * lib/exclude.c: Remove uses of `PARAMS'.
59810
59811         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
59812         Add test-cases for DOS filenames. Declare program_name.
59813         (main): Set up program_name.  Patch by Rich Dawe.
59814
59815         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
59816         error from mntctl.
59817         Use mntctl's return value to drive the entry-processing loop, since
59818         we can't rely on the value of the vmt_length member in the last
59819         entry.  On some systems doing so could result in exhausting
59820         virtual memory.  Based in part on a patch from Mike Jetzer.
59821
59822 2003-04-04  Bruno Haible  <bruno@clisp.org>
59823
59824         * modules/linebreak: New file.
59825         * MODULES.html.sh (func_all_modules): Add it.
59826
59827 2003-04-04  Bruno Haible  <bruno@clisp.org>
59828
59829         * m4/linebreak.m4: New file.
59830
59831 2003-04-04  Bruno Haible  <bruno@clisp.org>
59832
59833         * lib/linebreak.h: New file, from GNU gettext.
59834         * lib/linebreak.c: New file, from GNU gettext with slight
59835         modifications.
59836         * lib/lbrkprop.h: New file, from GNU gettext.
59837
59838 2003-04-03  Bruno Haible  <bruno@clisp.org>
59839
59840         * modules/utf8-ucs4: New file.
59841         * modules/utf16-ucs4: New file.
59842         * modules/ucs4-utf8: New file.
59843         * modules/ucs4-utf16: New file.
59844         * MODULES.html.sh (func_all_modules): Add them.
59845
59846 2003-04-03  Bruno Haible  <bruno@clisp.org>
59847
59848         * m4/utf-ucs4.m4: New file.
59849         * m4/ucs4-utf.m4: New file.
59850
59851 2003-04-03  Bruno Haible  <bruno@clisp.org>
59852
59853         * lib/utf8-ucs4.h: New file, from GNU gettext.
59854         * lib/utf16-ucs4.h: New file, from GNU gettext.
59855         * lib/ucs4-utf8.h: New file, from GNU gettext.
59856         * lib/ucs4-utf16.h: New file, from GNU gettext.
59857
59858 2003-04-02  Bruno Haible  <bruno@clisp.org>
59859
59860         * modules/binary-io: New file.
59861         * MODULES.html.sh (func_all_modules): Add it.
59862
59863 2003-04-02  Bruno Haible  <bruno@clisp.org>
59864
59865         * lib/binary-io.h: New file, from GNU gettext.
59866
59867 2003-04-01  Bruno Haible  <bruno@clisp.org>
59868
59869         * modules/pathname: New file.
59870         * MODULES.html.sh (func_all_modules): Add it.
59871
59872 2003-04-01  Bruno Haible  <bruno@clisp.org>
59873
59874         * lib/pathname.h: New file, from GNU gettext.
59875         * lib/concatpath.c: New file, from GNU gettext.
59876
59877 2003-03-30  Bruno Haible  <bruno@clisp.org>
59878
59879         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
59880
59881 2003-03-30  Bruno Haible  <bruno@clisp.org>
59882
59883         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
59884         function chown() doesn't exist.
59885
59886 2003-03-28  Bruno Haible  <bruno@clisp.org>
59887
59888         * modules/copy-file: New file.
59889         * MODULES.html.sh (func_all_modules): Add it.
59890
59891 2003-03-28  Bruno Haible  <bruno@clisp.org>
59892
59893         * m4/copy-file.m4: New file.
59894
59895 2003-03-28  Bruno Haible  <bruno@clisp.org>
59896
59897         * lib/copy-file.h: New file, from GNU gettext.
59898         * lib/copy-file.c: New file, from GNU gettext.
59899
59900 2003-03-18  Jim Meyering  <jim@meyering.net>
59901
59902         * lib/quote.c (quote_n): Fix typo in comment.
59903
59904 2003-03-18  Bruno Haible  <bruno@clisp.org>
59905
59906         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
59907         checking.
59908         * m4/onceonly_2_57.m4: Likewise.
59909
59910 2003-03-17  Bruno Haible  <bruno@clisp.org>
59911
59912         * m4/onceonly.m4: Require autoconf 2.54 or newer.
59913         (m4_quote): Remove macro.
59914         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
59915
59916 2003-03-14  Jim Meyering  <jim@meyering.net>
59917
59918         Merge changes from Coreutils.
59919         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
59920         to be const, in order to avoid warnings.
59921         (obstack_room): Likewise.
59922         (obstack_empty_p): Likewise.
59923
59924 2003-03-14  Bruno Haible  <bruno@clisp.org>
59925
59926         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
59927         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
59928
59929 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59930
59931         Merge changes from Bison.
59932         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
59933         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
59934         when compiling Bison 1.875's `bitset bset = obstack_alloc
59935         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
59936         * lib/hash.c: Include <stdbool.h> unconditionally.
59937
59938 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59939
59940         * m4/onceonly.m4 (m4_quote): New macro.
59941         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
59942         Quote AC_FOREACH variable-expansions properly.
59943
59944 2003-03-13  Paul Eggert  <eggert@twinsun.com>
59945
59946         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
59947
59948 2003-03-09  Paul Eggert  <eggert@twinsun.com>
59949
59950         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
59951         Reported by Bruce Becker; see:
59952         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
59953
59954 2003-03-03  Paul Eggert  <eggert@twinsun.com>
59955             Bruno Haible  <bruno@clisp.org>
59956
59957         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
59958         Reported by John Hughes, see
59959         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
59960
59961 2003-02-20  Bruno Haible  <bruno@clisp.org>
59962
59963         * MODULES.html.sh (func_all_modules): Add poll.
59964
59965 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59966
59967         * modules/poll: New file.
59968
59969 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59970
59971         * lib/poll_.h: New file.
59972         * lib/poll.c: New file.
59973
59974 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
59975
59976         * m4/poll.m4: New file.
59977
59978 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59979
59980         * modules/mathl: New file.
59981
59982 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
59983
59984         * lib/mathl.h: New file.
59985         * lib/acosl.c: New file.
59986         * lib/asinl.c: New file.
59987         * lib/atanl.c: New file.
59988         * lib/ceill.c: New file.
59989         * lib/cosl.c: New file.
59990         * lib/expl.c: New file.
59991         * lib/floorl.c: New file.
59992         * lib/frexpl.c: New file.
59993         * lib/ldexpl.c: New file.
59994         * lib/logl.c: New file.
59995         * lib/sincosl.c: New file.
59996         * lib/sinl.c: New file.
59997         * lib/sqrtl.c: New file.
59998         * lib/tanl.c: New file.
59999         * lib/trigl.c: New file.
60000         * lib/trigl.h: New file.
60001
60002 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
60003
60004         * m4/mathl.m4: New file.
60005
60006 2003-02-18  Bruno Haible  <bruno@clisp.org>
60007
60008         * MODULES.html.sh (func_all_modules): Add mathl.
60009
60010 2003-02-17  Bruno Haible  <bruno@clisp.org>
60011
60012         * modules/mkdtemp: New module.
60013         * MODULES.html.sh (func_all_modules): Add it.
60014
60015 2003-02-17  Bruno Haible  <bruno@clisp.org>
60016
60017         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
60018
60019 2003-02-17  Bruno Haible  <bruno@clisp.org>
60020
60021         * lib/mkdtemp.h: New file, from GNU gettext.
60022         * lib/mkdtemp.c: New file, from GNU gettext.
60023
60024 2003-02-02  Jim Meyering  <jim@meyering.net>
60025
60026         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
60027         e.g. glibc-2.2.93.
60028
60029 2003-01-31  Bruno Haible  <bruno@clisp.org>
60030
60031         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
60032         'rpl_rename'.
60033         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
60034         'rpl_strnlen'.
60035         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
60036         'rpl_strtod'.
60037         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
60038         'rpl_utime'.
60039
60040 2003-01-31  Bruno Haible  <bruno@clisp.org>
60041
60042         * lib/rename.c: #undef rename before defining rpl_rename.
60043         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
60044
60045 2003-01-30  Bruno Haible  <bruno@clisp.org>
60046
60047         * modules/vasnprintf, modules/vasprintf: New modules.
60048         * MODULES.html.sh (func_all_modules): Add them.
60049
60050 2003-01-30  Bruno Haible  <bruno@clisp.org>
60051
60052         * m4/signed.m4: New file, from GNU gettext.
60053         * m4/longdouble.m4: New file, from GNU gettext.
60054         * m4/wchar_t.m4: New file, from GNU gettext.
60055         * m4/wint_t.m4: New file, from GNU gettext.
60056         * m4/vasnprintf.m4: New file.
60057         * m4/vasprintf.m4: New file.
60058
60059 2003-01-30  Bruno Haible  <bruno@clisp.org>
60060
60061         * lib/printf-args.h: New file, from GNU gettext.
60062         * lib/printf-args.c: New file, from GNU gettext.
60063         * lib/printf-parse.h: New file, from GNU gettext.
60064         * lib/printf-parse.c: New file, from GNU gettext.
60065         * lib/vasnprintf.h: New file, from GNU gettext.
60066         * lib/vasnprintf.c: New file, from GNU gettext.
60067         * lib/asnprintf.c: New file, from GNU gettext.
60068         * lib/vasprintf.h: New file, from GNU gettext with modifications.
60069         * lib/vasprintf.c: New file, from GNU gettext.
60070         * lib/asprintf.c: New file, from GNU gettext.
60071
60072 2003-01-29  Bruno Haible  <bruno@clisp.org>
60073
60074         * modules/stpncpy: New module.
60075         * MODULES.html.sh (func_all_modules): Add it.
60076
60077 2003-01-29  Bruno Haible  <bruno@clisp.org>
60078
60079         * m4/stpncpy.m4: New file.
60080
60081 2003-01-29  Bruno Haible  <bruno@clisp.org>
60082
60083         * lib/stpncpy.h: New file, from GNU gettext with modifications.
60084         * lib/stpncpy.c: New file, from GNU gettext with modifications.
60085
60086 2003-01-28  Bruno Haible  <bruno@clisp.org>
60087
60088         * modules/c-ctype: New module.
60089         * MODULES.html.sh (func_all_modules): Add it.
60090
60091 2003-01-28  Bruno Haible  <bruno@clisp.org>
60092
60093         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
60094         Paul Eggert.
60095         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
60096         Paul Eggert.
60097
60098 2003-01-27  Bruno Haible  <bruno@clisp.org>
60099
60100         * modules/xsetenv: New module.
60101         * MODULES.html.sh (func_all_modules): Add it.
60102
60103 2003-01-27  Bruno Haible  <bruno@clisp.org>
60104
60105         * lib/xsetenv.h: New file, from GNU gettext.
60106         * lib/xsetenv.c: New file, from GNU gettext.
60107
60108 2003-01-23  Jim Meyering  <jim@meyering.net>
60109
60110         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
60111         from working on systems without dirfd (at least Irix and OSF1/Tru64).
60112
60113 2003-01-23  Bruno Haible  <bruno@clisp.org>
60114
60115         * modules/minmax: New module.
60116         * MODULES.html.sh (func_all_modules): Add it.
60117
60118 2003-01-23  Bruno Haible  <bruno@clisp.org>
60119
60120         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
60121         Eggert.
60122
60123 2003-01-22  Bruno Haible  <bruno@clisp.org>
60124
60125         * modules/exit: New module.
60126         * MODULES.html.sh (func_all_modules): Add it.
60127
60128 2003-01-22  Bruno Haible  <bruno@clisp.org>
60129
60130         * lib/exit.h: New file, from GNU gettext.
60131
60132 2003-01-19  Bruno Haible  <bruno@clisp.org>
60133
60134         * gnulib-tool: Recognize option --extract-maintainer.
60135         (func_get_maintainer): New function.
60136         * modules/*: Add Maintainer entry.
60137
60138 2003-01-16  Jim Meyering  <jim@meyering.net>
60139
60140         * m4/regex.m4: The `regex' struct is both input and output.
60141         Initialize it before each use.  Patch by Tim Waugh.
60142
60143 2003-01-16  Bruno Haible  <bruno@clisp.org>
60144
60145         * MODULES.html.sh: Add a table of contents. Add the module name as
60146         leftmost column. Add hyperlinks.
60147
60148 2003-01-15  Bruno Haible  <bruno@clisp.org>
60149
60150         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
60151
60152 2003-01-15  Bruno Haible  <bruno@clisp.org>
60153
60154         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
60155         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
60156         suffix.
60157
60158 2003-01-15  Bruno Haible  <bruno@clisp.org>
60159
60160         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
60161
60162 2003-01-15  Bruno Haible  <bruno@clisp.org>
60163
60164         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
60165         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
60166
60167 2003-01-14  Jim Meyering  <jim@meyering.net>
60168
60169         * lib/same.c (same_name): Tweak a comment.
60170
60171 2003-01-14  Bruno Haible  <bruno@clisp.org>
60172
60173         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
60174         when a string comparison is sufficient.
60175
60176 2003-01-14  Bruno Haible  <bruno@clisp.org>
60177
60178         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
60179         'unsigned int'.
60180
60181 2003-01-14  Bruno Haible  <bruno@clisp.org>
60182
60183         * lib/hash-pjw.c: Add comment about low quality of this function.
60184
60185 2003-01-13  Bruno Haible  <bruno@clisp.org>
60186
60187         * modules/stpcpy: Distribute lib/stpcpy.h.
60188         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
60189
60190 2003-01-13  Bruno Haible  <bruno@clisp.org>
60191
60192         * modules/*: Add a description.
60193         * modules/strpbrk: Fix Makefile.am snippet.
60194         * modules/strtoimax: Fix dependencies.
60195         * modules/strtoumax: Likewise.
60196
60197 2003-01-13  Bruno Haible  <bruno@clisp.org>
60198
60199         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
60200         * modules/alloca (Makefile.am): All object files depend on alloca.h.
60201         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
60202
60203 2003-01-13  Bruno Haible  <bruno@clisp.org>
60204
60205         * gnulib-tool (func_create_testdir): Store config/* files in the main
60206         directory.
60207         * config.rpath: Move to ...
60208         * config/config.rpath: ... here.
60209         * modules/gettext: Contains config/config.rpath, not config.rpath.
60210         * modules/iconv: Likewise.
60211
60212 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60213
60214         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60215         to avoid collisions with libcurses and libreadline.
60216
60217         * m4/getstr.m4: Remove.
60218         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
60219
60220 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60221
60222         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60223         to avoid collisions with libcurses and libreadline.
60224
60225         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
60226         * lib/getstr.h, getstr.c: Remove.
60227         * lib/getline.c: Include "getline.h", to check interface.
60228         Move body of old getstr.c here: this defines MIN_CHUNK and
60229         declares getdelim2, which is renamed from getstr.
60230         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
60231
60232         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
60233         All uses changed.
60234         * lib/linebuffer.h: Likewise.
60235         (readline): Remove backward-compatibility macro.
60236
60237 2003-01-12  Paul Eggert  <eggert@twinsun.com>
60238
60239         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
60240         to avoid collisions with libcurses and libreadline.
60241         * getstr: Remove.
60242         * MODULES.html.sh: Remove getstr.
60243         * modules/getline: Depend on unlocked-io, not getstr.
60244
60245 2003-01-12  Jim Meyering  <jim@meyering.net>
60246
60247         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
60248
60249 2003-01-10  Bruno Haible  <bruno@clisp.org>
60250
60251         * modules/alloca: Change Makefile.am requirements. Simplify Include
60252         requirements. Add lib/alloca_.h to file list.
60253
60254 2003-01-10  Bruno Haible  <bruno@clisp.org>
60255
60256         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
60257
60258 2003-01-10  Bruno Haible  <bruno@clisp.org>
60259
60260         * lib/alloca_.h: New file.
60261         * lib/getdate.y: Unconditionally include alloca.h.
60262         * lib/makepath.c: Likewise.
60263         * lib/setenv.c: Likewise.
60264         * lib/userspec.c: Likewise.
60265
60266 2003-01-09  Karl Berry  <karl@gnu.org>
60267
60268         * MODULES.html.sh: include `dirname $0` in PATH, to find
60269         gnulib-tool.
60270
60271 2003-01-09  Bruno Haible  <bruno@clisp.org>
60272
60273         * modules/stdbool: Change configure.ac, Makefile.am requirements.
60274         Simplify Include requirements. Add lib/stdbool.h.in to file list.
60275
60276 2003-01-09  Bruno Haible  <bruno@clisp.org>
60277
60278         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
60279
60280 2003-01-09  Bruno Haible  <bruno@clisp.org>
60281
60282         * lib/stdbool.h.in: New file.
60283
60284 2003-01-09  Bruno Haible  <bruno@clisp.org>
60285
60286         * gnulib-tool (func_all_modules): Ignore files ending in ~.
60287         * MODULES.html.sh: Likewise.
60288
60289 2003-01-08  Jim Meyering  <jim@meyering.net>
60290
60291         * lib/full-write.c: Undefine and define-away `const' after inclusion
60292         of errno.h, not before.  Suggestion from Bruno Haible.
60293
60294 2003-01-08  Bruno Haible  <bruno@clisp.org>
60295
60296         * modules/full-read: Depend on full-write.
60297
60298 2003-01-08  Bruno Haible  <bruno@clisp.org>
60299
60300         * lib/safe-read.c: Include specification header first, to ensure its
60301         selfcontainedness.
60302         * lib/full-write.c: Likewise.
60303
60304 2003-01-07  Jim Meyering  <jim@meyering.net>
60305
60306         * lib/full-write.c: Rework so that it may serve to define full_read,
60307         too.
60308         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
60309
60310 2003-01-07  Bruno Haible  <bruno@clisp.org>
60311
60312         * lib/strtoimax.c: Include <stdint.h> as an alternative to
60313         <inttypes.h>.
60314         * lib/xstrtol.h: Likewise.
60315         * lib/xstrtoimax.c: Likewise.
60316         * lib/xstrtoumax.c: Likewise.
60317         * lib/human.h: Likewise.
60318
60319         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
60320         on systems that have <inttypes.h> but not <stdint.h>.
60321
60322 2003-01-07  Bruno Haible  <bruno@clisp.org>
60323
60324         * MODULES.html.sh: Add copyright notice.
60325         (missed_files): Omit CVS directory entries.
60326         (func_module): Make it work with sed-3.02.
60327         * MODULES.txt: Remove file.
60328
60329 2003-01-06  Jim Meyering  <jim@meyering.net>
60330
60331         * lib/version-etc.c: Update year in translatable copyright string.
60332
60333 2003-01-03  Karl Berry  <karl@gnu.org>
60334
60335         * config/config.{guess,sub}: update from prep.
60336
60337 2003-01-02  Karl Berry  <karl@gnu.org>
60338
60339         * doc/COPYING.DOC: belatedly updated to 1.2.
60340
60341 2003-01-01  Karl Berry  <karl@gnu.org>
60342
60343         * gnulib-tool (func_verify_module): report module name $module in
60344         error message, not $1.
60345         * gnulib-tool (create-testdir): don't complain if destdir couldn't
60346         be created, only if it doesn't exist.
60347         * gnulib-tool (last_checkin_date): don't expand the $Date here.
60348
60349 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60350
60351         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
60352
60353 2002-12-31  Paul Eggert  <eggert@twinsun.com>
60354
60355         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
60356         memcmp if strcoll doesn't work.
60357
60358 2002-12-31  Bruno Haible  <bruno@clisp.org>
60359
60360         * lib/utime.c (utime_null): No need to call ftruncate if the file was
60361         nonempty.
60362
60363 2002-12-31  Bruno Haible  <bruno@clisp.org>
60364
60365         * lib/memcoll.c (STRCOLL): New macro.
60366         (memcoll): Use it.
60367
60368 2002-12-31  Bruno Haible  <bruno@clisp.org>
60369
60370         * lib/localcharset.h: New file.
60371         * lib/localcharset.c: Include it.
60372         * lib/unicodeio.c: Likewise.
60373
60374 2002-12-31  Bruno Haible  <bruno@clisp.org>
60375
60376         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
60377         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
60378
60379 2002-12-31  Bruno Haible  <bruno@clisp.org>
60380
60381         * lib/getline.h: Include <stddef.h>, for size_t.
60382
60383         * lib/unicodeio.h: Include <stddef.h>, for size_t.
60384         * lib/unicodeio.c: Don't include <stddef.h>.
60385
60386 2002-12-31  Bruno Haible  <bruno@clisp.org>
60387
60388         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
60389         HAVE_TM_ZONE.
60390
60391 2002-12-24  Karl Berry  <karl@gnu.org>
60392
60393         * config/config.guess: update from prep.
60394
60395 2002-12-24  Bruno Haible  <bruno@clisp.org>
60396
60397         General infrasructure.
60398         * m4/README: Rewritten.
60399         * m4/onceonly.m4: New file.
60400         * m4/onceonly_2_57.m4: New file.
60401
60402         Module atexit.
60403         * m4/atexit.m4: New file.
60404
60405         Module strtod.
60406         * m4/strtod.m4: New file.
60407
60408         Module strtol.
60409         * m4/strtol.m4: New file.
60410
60411         Module strtoul.
60412         * m4/strtoul.m4: New file.
60413
60414         Module memchr.
60415         * m4/memchr.m4: New file.
60416
60417         Module memcmp.
60418         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
60419         (jm_FUNC_MEMCMP): Invoke it.
60420
60421         Module memcpy.
60422         * m4/memcpy.m4: New file.
60423
60424         Module memmove.
60425         * m4/memmove.m4: New file.
60426
60427         Module memset.
60428         * m4/memset.m4: New file.
60429
60430         Module strcspn.
60431         * m4/strcspn.m4: New file.
60432
60433         Module strpbrk.
60434         * m4/strpbrk.m4: New file.
60435
60436         Module strstr.
60437         * m4/strstr.m4: New file.
60438
60439         Module strerror.
60440         * m4/strerror.m4: New file.
60441
60442         Module mktime.
60443         * m4/mktime.m4: Renamed from jm-mktime.m4.
60444         (gl_PREREQ_MKTIME): New macro.
60445         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
60446
60447         Module malloc.
60448         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
60449         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
60450         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
60451
60452         Module realloc.
60453         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
60454         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
60455         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
60456
60457         Module strftime.
60458         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
60459         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
60460         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
60461         gl_TM_GMTOFF.
60462         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
60463
60464         Module xalloc.
60465         * m4/xalloc.m4: New file.
60466
60467         Module alloca.
60468         * m4/alloca.m4: New file.
60469
60470         Module putenv.
60471         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
60472         (jm_FUNC_PUTENV): Invoke it.
60473
60474         Module setenv.
60475         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
60476         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
60477         when invoked twice.
60478         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
60479         gt_FUNC_SETENV.
60480
60481         Module memrchr.
60482         * m4/memrchr.m4: New file.
60483
60484         Module stpcpy.
60485         * m4/stpcpy.m4: New file.
60486
60487         Module strcase.
60488         * m4/strcase.m4: New file.
60489
60490         Module strdup.
60491         * m4/strdup.m4: New file.
60492
60493         Module strnlen.
60494         * m4/strnlen.m4: New file.
60495
60496         Module strndup.
60497         * m4/strndup.m4: New file.
60498
60499         Module xstrtod.
60500         * m4/xstrtod.m4: New file.
60501
60502         Module xstrtol.
60503         * m4/xstrtol.m4: New file.
60504
60505         Module getdate.
60506         * m4/getdate.m4: New file.
60507
60508         Module unlocked-io.
60509         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
60510         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
60511         * m4/jm-glibc-io.m4n: Remove file.
60512
60513         Module long-options.
60514         * m4/long-options.m4: New file.
60515
60516         Module md5.
60517         * m4/md5.m4: New file.
60518
60519         Module sha.
60520         * m4/sha.m4: New file.
60521
60522         Module getstr.
60523         * m4/getstr.m4: New file.
60524
60525         Module getline.
60526         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
60527         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
60528         <sys/types.h>, for size_t. Use the function name gnu_getline, not
60529         simply getline. Infoke gl_PREREQ_GETLINE.
60530
60531         Module obstack.
60532         * m4/obstack.m4: New file.
60533
60534         Module hash.
60535         * m4/hash.m4: New file.
60536
60537         Module readtokens.
60538         * m4/readtokens.m4: New file.
60539
60540         Module strverscmp.
60541         * m4/strverscmp.m4: New file.
60542
60543         Module stdbool.
60544         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
60545         OSF/1.
60546
60547         Module strtoll.
60548         * m4/strtoll.m4: New file.
60549
60550         Module strtoull.
60551         * m4/strtoull.m4: New file.
60552
60553         Module strtoimax.
60554         * m4/strtoimax.m4: New file.
60555
60556         Module strtoumax.
60557         * m4/strtoumax.m4: New file.
60558
60559         Module xstrtoimax.
60560         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
60561         jm_AC_PREREQ_XSTRTOIMAX.
60562         Moved the strtol prerequisites to strtol.m4.
60563         Moved the strtoll prerequisites to strtoll.m4.
60564         Moved the strtoimax prerequisites to strtoimax.m4.
60565
60566         Module xstrtoumax.
60567         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
60568         jm_AC_PREREQ_XSTRTOUMAX.
60569         Moved the strtoul prerequisites to strtoul.m4.
60570         Moved the strtoull prerequisites to strtoull.m4.
60571         Moved the strtoumax prerequisites to strtoumax.m4.
60572
60573         Module chown.
60574         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
60575         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
60576
60577         Module dup2.
60578         * m4/dup2.m4: New file.
60579
60580         Module ftruncate.
60581         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
60582         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
60583
60584         Module getgroups.
60585         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
60586         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
60587
60588         Module gettimeofday.
60589         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
60590         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
60591         gl_PREREQ_GETTIMEOFDAY.
60592
60593         Module mkdir.
60594         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
60595         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
60596
60597         Module mkstemp.
60598         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
60599         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
60600         jm_AC_TYPE_UINTMAX_T.
60601         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
60602
60603         Module stat.
60604         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
60605         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
60606
60607         Module lstat.
60608         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
60609         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
60610
60611         Module timespec.
60612         * m4/timespec.m4 (gl_TIMESPEC): New macro.
60613         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
60614         * m4/st_mtim.m4: Indentation.
60615
60616         Module nanosleep.
60617         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
60618         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
60619         gl_PREREQ_NANOSLEEP.
60620
60621         Module regex.
60622         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
60623         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
60624         (gl_REGEX): New macro.
60625
60626         Module rename.
60627         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
60628         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
60629
60630         Module rmdir.
60631         * m4/rmdir.m4: New file.
60632
60633         Module utime.
60634         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
60635         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
60636         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
60637
60638         Module dirname.
60639         * m4/dirname.m4: New file.
60640
60641         Module getopt.
60642         * m4/getopt.m4: New file.
60643
60644         Module unistd-safer.
60645         * m4/unistd-safer.m4: New file.
60646
60647         Module fnmatch.
60648         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
60649         declaration.
60650         (gl_PREREQ_FNMATCH_EXTRA): New macro.
60651         (gl_FUNC_FNMATCH_POSIX): New macro.
60652         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
60653         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
60654         simply fnmatch.
60655
60656         Module exclude.
60657         * m4/exclude.m4: New file.
60658
60659         Module human.
60660         * m4/human.m4: New file.
60661
60662         Module acl.
60663         * m4/acl.m4: Nop.
60664
60665         Module backupfile.
60666         * m4/backupfile.m4: New file.
60667         * m4/d-ino.m4: Indentation.
60668
60669         Module fsusage.
60670         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
60671         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
60672         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
60673
60674         Module dirfd.
60675         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
60676         requirements.
60677
60678         Module euidaccess.
60679         * m4/euidaccess.m4: New file.
60680
60681         Module file-type.
60682         * m4/file-type.m4: New file.
60683
60684         Module fileblocks.
60685         * m4/fileblocks.m4: New file.
60686
60687         Module filemode.
60688         * m4/filemode.m4: New file.
60689
60690         Module isdir.
60691         * m4/isdir.m4: New file.
60692
60693         Module lchown.
60694         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
60695         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
60696
60697         Module makepath.
60698         * m4/makepath.m4: New file.
60699
60700         Module modechange.
60701         * m4/modechange.m4: New file.
60702
60703         Module mountlist.
60704         * m4/mountlist.m4: New file.
60705         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
60706         Indentation.
60707
60708         Module path-concat.
60709         * m4/path-concat.m4: New file.
60710
60711         Module pathmax.
60712         * m4/pathmax.m4: New file.
60713
60714         Module same.
60715         * m4/same.m4: New file.
60716
60717         Module save-cwd.
60718         * m4/save-cwd.m4: New file.
60719
60720         Module savedir.
60721         * m4/savedir.m4: New file.
60722
60723         Module xgetcwd.
60724         * m4/xgetcwd.m4: New file.
60725         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
60726
60727         Module xreadlink.
60728         * m4/xreadlink.m4: New file.
60729
60730         Module safe-read.
60731         * m4/safe-read.m4: New file.
60732
60733         Module safe-write.
60734         * m4/safe-write.m4: New file.
60735
60736         Module closeout.
60737         * m4/closeout.m4: New file.
60738
60739         Module stdio-safer.
60740         * m4/stdio-safer.m4: New file.
60741
60742         Module getpass.
60743         * m4/getpass.m4: New file.
60744
60745         Module getugroups.
60746         * m4/getugroups.m4: New file.
60747
60748         Module group-member.
60749         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
60750         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
60751
60752         Module idcache.
60753         * m4/idcache.m4: New file.
60754
60755         Module userspec.
60756         * m4/userspec.m4: New file.
60757
60758         Module gettime.
60759         * m4/clock_time.m4: New file.
60760         * m4/gettime.m4: New file.
60761
60762         Module settime.
60763         * m4/settime.m4: New file.
60764
60765         Module posixtm.
60766         * m4/posixtm.m4: New file.
60767
60768         Module gethostname.
60769         * m4/gethostname.m4: New file.
60770
60771         Module canon-host.
60772         * m4/canon-host.m4: New file.
60773
60774         Module gettext.
60775         * m4/codeset.m4: New file, from gettext-0.11.5.
60776         * m4/gettext.m4: New file, from gettext-0.11.5.
60777         * m4/glibc21.m4: New file, from gettext-0.11.5.
60778         * m4/iconv.m4: New file, from gettext-0.11.5.
60779         * m4/intdiv0.m4: New file, from gettext-0.11.5.
60780         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
60781         * m4/inttypes.m4: New file, from gettext-0.11.5.
60782         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
60783         * m4/isc-posix.m4: New file, from gettext-0.11.5.
60784         * m4/lcmessage.m4: New file, from gettext-0.11.5.
60785         * m4/lib-ld.m4: New file, from gettext-0.11.5.
60786         * m4/lib-link.m4: New file, from gettext-0.11.5.
60787         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
60788         * m4/progtest.m4: New file, from gettext-0.11.5.
60789         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
60790         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
60791         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
60792
60793         Module localcharset.
60794         * m4/localcharset.m4: New file.
60795
60796         Module hard-locale.
60797         * m4/hard-locale.m4: New file.
60798
60799         Module mbswidth.
60800         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
60801         onceonly macros.
60802         * m4/mbrtowc.m4: Add comment.
60803
60804         Module memcasecmp.
60805         * m4/memcasecmp.m4: New file.
60806
60807         Module memcoll.
60808         * m4/memcoll.m4: New file.
60809
60810         Module unicodeio.
60811         * m4/unicodeio.m4: New file.
60812
60813         Module rpmatch.
60814         * m4/rpmatch.m4: New file.
60815
60816         Module yesno.
60817         * m4/yesno.m4: New file.
60818
60819         Module exitfail.
60820         * m4/exitfail.m4: New file.
60821
60822         Module c-stack.
60823         * m4/c-stack.m4 (gl_C_STACK): New macro.
60824         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
60825
60826         Module error.
60827         * m4/error.m4 (gl_ERROR): New macro.
60828         (jm_PREREQ_ERROR): Use onceonly macros.
60829
60830         Module fatal.
60831         * m4/fatal.m4: New file.
60832
60833         Module getloadavg.
60834         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
60835         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
60836
60837         Module getpagesize.
60838         * m4/getpagesize.m4: New file.
60839
60840         Module getusershell.
60841         * m4/getusershell.m4: New file.
60842
60843         Module physmem.
60844         * m4/physmem.m4: New file.
60845
60846         Module posixver.
60847         * m4/posixver.m4: New file.
60848
60849         Module quotearg.
60850         * m4/quotearg.m4: New file.
60851
60852         Module quote.
60853         * m4/quote.m4: New file.
60854
60855         Module readutmp.
60856         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
60857
60858         Module sig2str.
60859         * m4/sig2str.m4: New file.
60860
60861         Other.
60862         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
60863         ulonglong.m4.
60864         * m4/intmax_t.m4: New file.
60865         * m4/d-type.m4: Indentation.
60866         * m4/jm-macros.m4: Update.
60867         * m4/prereq.m4 (jm_PREREQ): Update.
60868         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
60869         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
60870         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
60871         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
60872         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
60873         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
60874         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
60875         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
60876         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
60877         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
60878         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
60879         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
60880         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
60881         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
60882         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
60883         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
60884         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
60885         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
60886         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
60887
60888 2002-12-24  Bruno Haible  <bruno@clisp.org>
60889
60890         * MODULES.txt: Update according to m4/ changes.
60891
60892         Module gettext.
60893         * config.rpath: New file, from gettext-0.11.5.
60894
60895         * modules/*: New module descriptions.
60896         * gnulib-tool: New file.
60897         * MODULES.html.sh: New file.
60898
60899 2002-12-21  Karl Berry  <karl@gnu.org>
60900
60901         * doc/fdl.texi: update to version 1.2.
60902
60903 2002-12-19  Karl Berry  <karl@gnu.org>
60904
60905         * config/config.guess: update from prep.
60906
60907 2002-12-18  Bruno Haible  <bruno@clisp.org>
60908
60909         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
60910         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
60911
60912 2002-12-17  Bruno Haible  <bruno@clisp.org>
60913
60914         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
60915         stdlib.h, string.h.
60916
60917 2002-12-17  Bruno Haible  <bruno@clisp.org>
60918
60919         * lib/canon-host.c (strdup): Remove unused declaration.
60920
60921         * lib/fsusage.c: Include full_read.h.
60922         (get_fs_usage): Use full_read instead of safe_read.
60923
60924         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
60925
60926 2002-12-12  Karl Berry  <karl@gnu.org>
60927
60928         * config/config.guess: update from prep.
60929
60930 2002-12-11  Bruno Haible  <bruno@clisp.org>
60931
60932         * m4/setenv.m4: New file, from gettext-0.11.5.
60933
60934 2002-12-11  Bruno Haible  <bruno@clisp.org>
60935
60936         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
60937         not unsetenv().
60938         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
60939         modifications:
60940
60941         2002-12-11  Bruno Haible  <bruno@clisp.org>
60942
60943                 * setenv.c (alloca): Fall back to malloc.
60944                 (freea): New macro.
60945                 (setenv): Use freea() to free memory allocated with alloca().
60946
60947         2002-11-13  Bruno Haible  <bruno@clisp.org>
60948
60949                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
60950                 function declarations.
60951                 * unsetenv.c (unsetenv): Likewise.
60952
60953         2002-03-04  Bruno Haible  <bruno@clisp.org>
60954
60955                 Portability to AIX 4.3.3.
60956                 * unsetenv.c: New file, extracted from setenv.c.
60957                 * setenv.c: Move the unsetenv() function to unsetenv.c.
60958
60959         2001-12-20  Bruno Haible  <bruno@clisp.org>
60960
60961                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
60962                 use malloc instead. For SunOS 4.
60963
60964         2001-12-11  Bruno Haible  <bruno@clisp.org>
60965
60966                 * setenv.c: Declare alloca.
60967                 (compar_fn_t): New typedef.
60968                 (KNOWN_VALUE, STORE_VALUE): Use it.
60969
60970         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
60971         setenv.h.
60972
60973 2002-12-10  Paul Eggert  <eggert@twinsun.com>
60974
60975         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
60976         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
60977         Choose values that are less likely to collide with system fnmatch
60978         options.
60979         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
60980         defined (e.g., a pure POSIX system).
60981         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
60982         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
60983
60984 2002-12-06  Paul Eggert  <eggert@twinsun.com>
60985
60986         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
60987         a pain in practice to deal with generated m4 files.  This change
60988         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
60989
60990         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
60991         and jm-glibc-io.m4, as they are no longer a special case.
60992         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
60993         kludge and the auto-generation stuff.  Check only whether the
60994         functions are declared, not whether they exist, since older hosts
60995         that don't declare the functions can't use the optimization anyway.
60996
60997 2002-12-06  Jim Meyering  <jim@meyering.net>
60998
60999         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
61000
61001         Merge in changes from libc's misc/error.c, in preparation
61002         for the merge of gnulib's changes back into libc.
61003
61004         * lib/error.c (_): Define only if not already defined.
61005         Move definition to follow all #include directives.
61006         Include unlocked-io.h only if !_LIBC.
61007         [_LIBC]: Include <libio/libioP.h>.
61008         [USE_IN_LIBIO]: Include <libio/iolibio.h>
61009         (fflush): Tweak definition to use INTUSE.
61010         (putc): Define.
61011
61012 2002-12-05  Paul Eggert  <eggert@twinsun.com>
61013
61014         * lib/alloca.c [defined emacs]: Include "lisp.h".
61015         (xalloc_die) [defined emacs]: New macro.
61016         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
61017         [! defined emacs]: Include <xalloc.h>.
61018         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
61019         (pointer): Typedef to POINTER_TYPE *.
61020         (malloc): Remove decl; we now always use xmalloc.
61021         (alloca): Use old-style definition, since Emacs needs this.
61022         Check for arithmetic overflow when computing combined size.
61023
61024 2002-12-04  Paul Eggert  <eggert@twinsun.com>
61025
61026         Do not generate unlocked-io.h automatically, since it's easier to
61027         maintain it by hand.
61028
61029         * lib/unlocked-io.h: New file, from GNU diffutils,
61030         but with proper copyright notice and attribution.
61031         * lib/gen-uio: Remove.
61032         * lib/Makefile.am: Add copyright notice.
61033         (libfetish_a_SOURCES): Add unlocked-io.h.
61034         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
61035         (DISTCLEANFILES, io_functions): Remove macros.
61036         (EXTRA_DIST): Remove gen_uio.
61037         (unlocked-io.h): Remove rule.
61038
61039 2002-12-04  Jim Meyering  <jim@meyering.net>
61040
61041         Reflect the fact that stat.c and lstat.c are no longer generated.
61042         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
61043         (DISTCLEANFILES): Likewise.
61044         (EXTRA_DIST): Likewise.
61045         (all_local): Don't depend on stat.c or lstat.c.
61046         (stat.c, lstat.c): Remove rules.
61047         (EXTRA_DIST): Remove xstat.in.
61048
61049         * lib/xstat.in: Remove file.  Contents moved into stat.c.
61050         * lib/stat.c: New file.  Contents mostly from xstat.in.
61051         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
61052         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
61053
61054         * lib/safe-read.c: Rework so that it may serve to define safe_write,
61055         too.
61056         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
61057
61058 2002-12-03  Jim Meyering  <jim@meyering.net>
61059
61060         * lib/safe-read.c, safe-write.c: Change variable names and comments,
61061         but not semantics, to minimize the differences between these two files.
61062         (safe_read): Change comment to mention SAFE_READ_ERROR.
61063
61064         * lib/safe-read.c (IS_EINTR): Define.
61065         (safe_read): Use IS_EINTR in place of in-function cpp directives.
61066
61067 2002-12-02  Jim Meyering  <jim@meyering.net>
61068
61069         * lib/safe-read.c (EINTR): Define.
61070         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61071         (INT_MAX): Provide fallback.
61072         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
61073
61074         * lib/safe-read.h (SAFE_READ_ERROR): Define.
61075
61076 2002-12-02  Bruno Haible  <bruno@clisp.org>
61077
61078         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
61079         Define, taken from safe-read.c.
61080         (INT_MAX): Provide fallback.
61081         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
61082         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
61083
61084         * lib/safe-read.c (EINTR): Remove definition.
61085         (safe_read): Don't use EINTR if it is absent.
61086
61087 2002-12-01  Jim Meyering  <jim@meyering.net>
61088
61089         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
61090         zero.
61091         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
61092
61093 2002-11-27  Paul Eggert  <eggert@twinsun.com>
61094
61095         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
61096         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
61097         with `if (! (value < limit)) abort ();', for readability.
61098
61099 2002-11-26  Karl Berry  <karl@gnu.org>
61100
61101         * lib/strdup.c: copy from libc again, with jim's ok.
61102         * lib/.cppi-disable: re-add strdup.c
61103
61104 2002-11-25  Karl Berry  <karl@gnu.org>
61105
61106         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
61107         instead of "strtol.c".
61108
61109 2002-11-25  Karl Berry  <karl@gnu.org>
61110
61111         * config/install-sh: update from automake for variable quoting, $0 in
61112         error msgs, etc.
61113
61114         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
61115         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
61116         entry.
61117
61118 2002-11-25  Jim Meyering  <jim@meyering.net>
61119
61120         * lib/mktime.c: Sync from libc, now that it has the latest fix.
61121
61122 2002-11-24  Karl Berry  <karl@gnu.org>
61123
61124         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
61125         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
61126
61127 2002-11-24  Jim Meyering  <jim@meyering.net>
61128
61129         Update from coreutils:
61130
61131         * lib/mktime.c: Merge in changes from libc.
61132
61133         Avoid a link-time failure on some Linux systems.
61134         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
61135         (otherwise).
61136         (__mon_yday): Declare with the STATIC attribute.
61137         (__mktime_internal): Likewise.
61138         Based on a report from Greg Schafer.
61139
61140 2002-11-23  Jim Meyering  <jim@meyering.net>
61141
61142         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
61143         Use `unsigned', not `int', as type of index.
61144
61145         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
61146
61147         * lib/fsusage.c: Remove unneeded parentheses around operands of
61148         `defined'.
61149
61150 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61151
61152         * lib/quotearg.h: Allow multiple inclusion by surrounding with
61153         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
61154         so that we can be included first.
61155         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
61156         * lib/quotearg.c: Include quotearg.h immediately after config.h.
61157         No need to include stddef.h or sys/types.h any more.
61158         Surround local include files with "", not "<>".
61159         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
61160         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
61161         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
61162         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
61163         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
61164         (ISPRINT): Remove; no longer needed now that we assume C89.
61165
61166         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
61167         Preserve errno.
61168
61169         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
61170         quotearg_char): Use SIZE_MAX rather than
61171         (size_t) -1 when we are talking about "infinity".
61172
61173         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
61174
61175 2002-11-22  Paul Eggert  <eggert@twinsun.com>
61176
61177         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
61178         hint that one should use `if (! x) abort ();' rather than `assert
61179         (x);', and anyway it's one less thing to worry about configuring.
61180         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
61181         hash_rehash, hash_insert): Use abort rather than assert.
61182
61183 2002-11-22  Bruno Haible  <bruno@clisp.org>
61184
61185         * lib/safe-read.h: Assume C89. Add comments.
61186         (safe_read): Change return type to size_t.
61187         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
61188         byte counts > SSIZE_MAX correctly.
61189         * lib/safe-write.h: New file.
61190         * lib/safe-write.c: New file.
61191         * lib/full-read.h: New file.
61192         * lib/full-read.c: New file.
61193         * lib/full-write.h: Assume C89. Add comments.
61194         * lib/full-write.c: Include safe-write.h.
61195         (full_write): Rewritten to use safe_write.
61196         Suggested by Jim Meyering and Paul Eggert.
61197
61198 2002-11-21  Jim Meyering  <jim@meyering.net>
61199
61200         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
61201
61202         Merge in changes from the coreutils.
61203
61204         2002-09-25  Paul Eggert  <eggert@twinsun.com>
61205         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
61206         <stdint.h>.
61207         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
61208         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
61209         int.  Work more efficiently if X is the same width as uintmax_t.
61210         Do not compare X to -1, to avoid bogus compiler warning.
61211         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
61212         Don't assume that f_frsize and f_bsize are the same type.
61213
61214         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
61215         warning on FreeBSD.
61216
61217         * lib/makepath.c (make_path): Restore umask *before* creating the final
61218         component.
61219         (make_path): Minor reformatting.
61220
61221         * lib/xmalloc.c: Adjust to work with new autoconf macros,
61222         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
61223         HAVE_MALLOC/HAVE_REALLOC.
61224
61225         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
61226         dummy ones.  At least on GNU/Linux systems, `auto' means something
61227         else.
61228         From Michael Stone.
61229
61230 2002-11-21  Bruno Haible  <bruno@clisp.org>
61231
61232         Remove case insensitive option matching.
61233         * lib/argmatch.h (argcasematch): Remove declaration.
61234         (ARGCASEMATCH): Remove macro.
61235         (__xargmatch_internal): Remove case_sensitive argument.
61236         (XARGMATCH): Update.
61237         (XARGCASEMATCH): Remove macro.
61238         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
61239         case_sensitive argument.
61240         (argcasematch): Remove function.
61241         (__xargmatch_internal): Remove case_sensitive argument.
61242         (main): Use XARGMATCH instead of XARGCASEMATCH.
61243
61244         * lib/xmalloc.c: Change compile-time error message. Add comment about
61245         required autoconf version.
61246
61247 2002-11-20  Paul Eggert  <eggert@twinsun.com>
61248
61249         Merge argmatch cleanups from Bison.  Assume C89.
61250
61251         * lib/argmatch.c: Include config.h here, not in argmatch.h.
61252         Include stdlib.h, for EXIT_FAILURE.
61253         Always include <string.h>, since we assume C89.
61254         (EXIT_FAILURE): Remove pre-C89 bug workaround.
61255         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
61256         Include <stddef.h> instead, since it's all we need for size_t.
61257         (PARAMS): Remove.  All uses removed.
61258         (ARRAY_CARDINALITY): Do not bother to #undef.
61259         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
61260         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61261         Remove unnecessary parentheses.
61262         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
61263         Insert necessary parentheses.
61264         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
61265         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
61266
61267 2002-11-19  Bruno Haible  <bruno@clisp.org>
61268
61269         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
61270         * lib/mbswidth.h: Include <stddef.h>, for size_t.
61271
61272         * lib/mbswidth.h (PARAMS): Remove macro.
61273         (mbswidth, mbsnwidth): Use ANSI C function declarations.
61274         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
61275
61276         * lib/gcd.h (PARAMS): Remove macro.
61277         (gcd): Use ANSI C function declarations.
61278         * lib/gcd.c (gcd): Likewise.
61279
61280 2002-11-15  Bruno Haible  <bruno@clisp.org>
61281
61282         * lib/strcspn.c: Include <stddef.h>.
61283         (strcspn): Use ANSI C function declaration. Change return type to
61284         size_t. Use NULL.
61285         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
61286         (strpbrk): Use NULL.
61287         * lib/strpbrk.h (PARAMS): Remove macro.
61288         (strpbrk): Use ANSI C function declaration.
61289         * lib/strstr.c: Don't include <sys/types.h>.
61290         * lib/strstr.h (PARAMS): Remove macro.
61291         (strstr): Use ANSI C function declarations.
61292
61293 2002-11-14  Karl Berry  <karl@gnu.org>
61294
61295         * config/mkinstalldirs: `do' on separate line, instead of
61296         `for var; do'.
61297
61298 2002-11-06  Bruno Haible  <bruno@clisp.org>
61299
61300         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
61301         * lib/gcd.c (gcd): Likewise.
61302
61303 2002-11-05  Bruno Haible  <bruno@clisp.org>
61304
61305         * lib/gcd.h: New file, from gettext-0.11.5.
61306         * lib/gcd.c: New file, from gettext-0.11.5.
61307
61308 2002-11-05  Bruno Haible  <bruno@clisp.org>
61309
61310         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61311         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61312         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61313         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
61314
61315         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
61316         <libintl.h>.
61317         * lib/makepath.c: Include gettext.h instead of <locale.h> and
61318         <libintl.h>.
61319
61320         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
61321         * lib/human.c: Include gettext.h instead of <libintl.h>.
61322         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
61323         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
61324         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
61325         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
61326         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
61327         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
61328         (textdomain): Remove definition.
61329         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
61330
61331         * lib/long-options.c: Remove include of <libintl.h> and definition of
61332         _.
61333         * lib/same.c: Remove include of <libintl.h> and definition of _.
61334
61335 2002-11-04  Owen Taylor  <otaylor@redhat.com>
61336
61337         * lib/config.charset: A few additions for Solaris.
61338
61339 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61340
61341         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
61342         * lib/localcharset.c (locale_charset): Declare as extern "C".
61343
61344 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
61345
61346         * lib/config.charset: msdos in uk_UA uses CP1125.
61347
61348 2002-11-04  Bruno Haible  <bruno@clisp.org>
61349
61350         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
61351         * lib/strcase.h: New file, from GNU gettext-0.11.5.
61352         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
61353         * lib/strstr.h: New file, from GNU gettext-0.11.5.
61354         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
61355
61356 2002-11-04  Bruno Haible  <bruno@clisp.org>
61357
61358         * lib/localcharset.c (locale_charset): Don't return an empty string.
61359
61360 2002-11-04  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
61363         aliases.
61364
61365 2002-11-04  Bruno Haible  <bruno@clisp.org>
61366
61367         * lib/config.charset: Update for newest glibc. Add canonical names
61368         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
61369
61370 2002-11-04  Bruno Haible  <bruno@clisp.org>
61371
61372         * lib/config.charset: Add support for NetBSD.
61373
61374 2002-11-04  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
61377
61378 2002-11-01  Bruno Haible  <bruno@clisp.org>
61379
61380         * configure.in: Add AC_CONFIG_AUX_DIR call.
61381         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
61382         test/Makefile.
61383         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
61384
61385 2002-09-28  Karl Berry  <karl@gnu.org>
61386
61387         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
61388         installed automake until the next release, since changes have been
61389         made.
61390
61391 2002-09-25  Karl Berry  <karl@gnu.org>
61392
61393         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
61394         * lib/getopt*: copy from libc/posix.
61395         * lib/gettext.h: copy from gettext.
61396         * lib/.cppi-disable: add strdup.c, gettext.h.
61397
61398 2002-09-25  Karl Berry  <karl@gnu.org>
61399
61400         * config/srclist.txt: enable gettext.h check.
61401         * config/config.{guess,sub}: update from prep.
61402         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
61403                 from automake 1.6.3.
61404         See srclist*.
61405
61406 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
61407
61408         * regex.c (PATFETCH): Remove the translating fetch.
61409         (PATFETCH_RAW): Rename to PATFETCH.
61410         (set_image_of_range): New fun.
61411         (SET_RANGE_TABLE_WORK_AREA): Use it.
61412         (regex_compile): Don't translate the pattern chars so eagerly.
61413         Only do it when inserting an `exactn' bytecode or when handling
61414         a char-range.
61415         (mutually_exclusive_p): Avoid empty statement.
61416
61417 2002-07-06  Jim Meyering  <meyering@lucent.com>
61418
61419         * m4/README: Don't mention Makefile.am.in.
61420         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
61421
61422 2002-07-01  Jim Meyering  <meyering@lucent.com>
61423
61424         * lib/c-stack.c: Include sys/time.h.
61425         From Volker Borchert.
61426
61427 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61428
61429         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
61430
61431 2002-06-26  Paul Eggert  <eggert@twinsun.com>
61432
61433         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
61434         New macro.  Use it uniformly instead of
61435         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
61436         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
61437         reported by Vin Shelton.
61438
61439 2002-06-22  Paul Eggert  <eggert@twinsun.com>
61440
61441         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
61442         Do not assume SA_SIGINFO behavior.
61443         Bug reported by Jim Meyering on NetBSD 1.5.2.
61444
61445 2002-06-22  Jim Meyering  <meyering@lucent.com>
61446
61447         * m4/c-stack.m4: New file, from diffutils-2.8.2.
61448         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
61449
61450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
61451         now that configure.ac uses AC_GNU_SOURCE.
61452         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
61453         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
61454
61455         Update to latest tools.  Suggestions from Paul Eggert.
61456         * m4/stdbool.m4: New file, from diffutils-2.8.2.
61457         * m4/gnu-source.m4: Update from diffutils-2.8.2.
61458         * m4/fnmatch.m4: Likewise.
61459         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
61460         to AC_HEADER_STDBOOL
61461
61462 2002-06-22  Jim Meyering  <meyering@lucent.com>
61463
61464         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
61465         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
61466
61467 2002-06-22  Jim Meyering  <meyering@lucent.com>
61468
61469         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
61470
61471         * lib/exitfail.c, exitfail.h: Likewise.
61472         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
61473
61474         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
61475         of fnmatch.h.
61476         (EXTRA_DIST): Add fnmatch_loop.c.
61477         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
61478
61479         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
61480         * lib/fnmatch.c: Update from diffutils-2.8.2.
61481         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
61482         * lib/fnmatch.h: Remove file.
61483
61484 2002-06-21  Jim Meyering  <meyering@lucent.com>
61485
61486         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
61487         * m4/mbrtowc.m4: Likewise.
61488
61489         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
61490         * m4/mbswidth.m4: Reflect name change:
61491         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
61492         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61493
61494         * m4/lib-link.m4: Update from gettext-0.11.2.
61495         * m4/gettext.m4: Likewise.
61496
61497         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
61498         From Alfred M. Szmidt.
61499
61500 2002-06-18  Paul Eggert  <eggert@twinsun.com>
61501
61502         * lib/file-type.h: Report an error if neither S_ISREG nor
61503         S_IFREG is defined, instead of using a test specific to glibc
61504         2.2.  This should be safe, since POSIX requires S_ISREG and
61505         Unix Version 7 had S_IFREG.  We don't need to check for
61506         <sys/types.h> since we don't use any symbols that it defines.
61507
61508 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
61509
61510         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
61511         $@-t, so that each temporary file name is unique and valid in the first
61512         8 characters, for operation under DOS.
61513
61514 2002-06-15  Paul Eggert  <eggert@twinsun.com>
61515
61516         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
61517
61518 2002-06-15  Jim Meyering  <meyering@lucent.com>
61519
61520         Work even with DJGPP 2.03, which lacks support for symlinks.
61521         From Richard Dawe.
61522         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
61523         is defined.
61524         * lib/lchown.c (S_ISLNK): Likewise.
61525
61526 2002-06-15  Jim Meyering  <meyering@lucent.com>
61527
61528         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
61529         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
61530         have been included before this file.
61531
61532 2002-06-14  Jim Meyering  <meyering@lucent.com>
61533
61534         * lib/file-type.h: Use the version from diffutils-2.8.2.
61535         * lib/file-type.c: Likewise.
61536
61537 2002-06-07  Jim Meyering  <meyering@lucent.com>
61538
61539         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
61540         They're needed at least for NetBSD 1.5.2.
61541         ($statxfs_includes): Include those same headers.
61542         ($statxfs_includes): Include sys/vfs.h if available.
61543         ($statxfs_includes): Likewise for sys/statvfs.h.
61544         Check for the following members in both structs statfs and statvfs:
61545         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
61546
61547 2002-06-01  Jim Meyering  <meyering@lucent.com>
61548
61549         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
61550         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
61551
61552 2002-05-28  Jim Meyering  <meyering@lucent.com>
61553
61554         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
61555         Reported by Volker Borchert.
61556
61557 2002-05-27  Jim Meyering  <meyering@lucent.com>
61558
61559         Fix a problem seen only on nonconforming systems whereby ls.c's
61560         use of localtime, and then of gettimeofday would cause trouble:
61561         the localtime call used to initialize rpl_gettimeofday's save
61562         mechanism would clobber ls's current local time information so
61563         that in any long listing the first file would always be listed
61564         with date 1970-01-01.  Analysis by Volker Borchert.
61565
61566         * lib/gettimeofday.c (localtime): Undefine.
61567         (rpl_localtime): New function.
61568
61569 2002-05-27  Jim Meyering  <meyering@lucent.com>
61570
61571         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
61572         localtime.
61573
61574         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
61575         use the replacement function; it wouldn't resolve at link time.
61576         Reported by Volker Borchert.
61577
61578 2002-05-22  Jim Meyering  <meyering@lucent.com>
61579
61580         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
61581         file-type.h.
61582         * lib/file-type.h: New file.
61583         * lib/file-type.c (file_type): New file/function.  Extracted from
61584         diffutils.
61585
61586 2002-04-30  Jim Meyering  <meyering@lucent.com>
61587
61588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
61589
61590 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61591
61592         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
61593
61594 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61595
61596         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
61597         Do not check for alloca.h (no longer used) or stdbool.h (was never
61598         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
61599
61600 2002-04-29  Paul Eggert  <eggert@twinsun.com>
61601
61602         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
61603
61604 2002-04-29  Jim Meyering  <meyering@lucent.com>
61605
61606         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
61607         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
61608         Use AC_FUNC_STRNLEN here instead.
61609
61610         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
61611         With autoconf-2.53a, it's part of AC_PROG_CC.
61612
61613 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61614
61615         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
61616         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
61617
61618 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61619
61620         * lib/sig2str.h, lib/sig2str.c: New files.
61621         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
61622
61623 2002-04-28  Paul Eggert  <eggert@twinsun.com>
61624
61625         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
61626         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
61627         of 127, since 64 is the largest conceivable number for ancient
61628         nonstandard hosts.
61629         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
61630
61631 2002-04-28  Jim Meyering  <meyering@lucent.com>
61632
61633         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
61634
61635 2002-04-24  Jim Meyering  <meyering@lucent.com>
61636
61637         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
61638         (jm_PREREQ): Use it.
61639
61640         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
61641         mach/mach.h fcntl.h.
61642         Check for this function: setlocale.
61643
61644 2002-04-24  Jim Meyering  <meyering@lucent.com>
61645
61646         * lib/gettext.h: New file, from Gettext.
61647         * lib/Makefile.am (INCLUDES): Remove -I../intl.
61648         (libfetish_a_SOURCES): Add gettext.h.
61649
61650 2002-04-16  Jim Meyering  <meyering@lucent.com>
61651
61652         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
61653         ut_pid, ut_id, ut_exit.
61654
61655 2002-04-16  Jim Meyering  <meyering@lucent.com>
61656
61657         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
61658         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
61659         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
61660
61661 2002-04-12  Jim Meyering  <meyering@lucent.com>
61662
61663         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
61664         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
61665         existence of the getmntinfo function.  Needed for Darwin 5.3.
61666
61667         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
61668         This is necessary at least on Darwin 5.3.
61669
61670         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
61671         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
61672         strnlen.o in the library, and that makes some versions of ranlib
61673         object.
61674
61675 2002-04-12  Jim Meyering  <meyering@lucent.com>
61676
61677         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
61678
61679 2002-04-09  Jim Meyering  <meyering@lucent.com>
61680
61681         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
61682         to be more precise.  Rather than saying we're checking whether the
61683         function `works', say what we're testing.
61684         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
61685         Reported by Bruno Haible.
61686
61687 2002-03-10  Jim Meyering  <meyering@lucent.com>
61688
61689         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
61690         Suggestion from Santiago Vila.
61691
61692 2002-03-08  Jim Meyering  <meyering@lucent.com>
61693
61694         * lib/rename.c: Mention that this wrapper is needed also on
61695         mips-dec-ultrix4.4 systems.
61696
61697 2002-03-02  Jim Meyering  <meyering@lucent.com>
61698
61699         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
61700         not HAVE_CLOCK_SETTIME.
61701
61702 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61703
61704         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
61705         Check for clock_settime.
61706
61707 2002-02-27  Paul Eggert  <eggert@twinsun.com>
61708
61709         * lib/nanosleep.h: Rename to....
61710         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
61711
61712         * lib/gettime.c: New file.
61713         * lib/settime.c: New file.
61714         * lib/stime.c: Remove.
61715
61716         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
61717         timespec.h.  Remove nanosleep.h.
61718
61719 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61720
61721         * m4/acl.m4: New file.
61722         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
61723         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
61724
61725 2002-02-25  Paul Eggert  <eggert@twinsun.com>
61726
61727         * lib/acl.c, lib/acl.h: New files.
61728         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
61729
61730 2002-02-24  Jim Meyering  <meyering@lucent.com>
61731
61732         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
61733         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
61734         cause trouble.  Reported by Nelson Beebe.
61735
61736 2002-02-23  Paul Eggert  <eggert@twinsun.com>
61737
61738         * lib/path-concat.c (xpath_concat): Reorder code to pacify
61739         compilers that don't know that xalloc_die never returns.
61740
61741 2002-02-20  Jim Meyering  <meyering@lucent.com>
61742
61743         * lib/getdate.c: Regenerate using bison-1.33.
61744
61745 2002-02-17  Jim Meyering  <meyering@lucent.com>
61746
61747         * config/config.guess (main): Don't use `head -1'; it's no longer
61748         portable. Use `sed 1q' instead.
61749
61750 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
61751
61752         * m4/codeset.m4: Upgrade to gettext-0.11.
61753         * m4/gettext.m4: Upgrade to gettext-0.11.
61754         * m4/glibc21.m4: Upgrade to gettext-0.11.
61755         * m4/iconv.m4: Upgrade to gettext-0.11.
61756         * m4/isc-posix.m4: Upgrade to gettext-0.11.
61757         * m4/lcmessage.m4: Upgrade to gettext-0.11.
61758         * m4/lib-ld.m4: New file, from gettext-0.11.
61759         * m4/lib-link.m4: New file, from gettext-0.11.
61760         * m4/lib-prefix.m4: New file, from gettext-0.11.
61761         * m4/progtest.m4: Upgrade to gettext-0.11.
61762
61763 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61764
61765         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
61766         (jm_PREREQ): Use it.
61767
61768 2002-02-15  Paul Eggert  <eggert@twinsun.com>
61769
61770         * lib/posixver.c, lib/posixver.h: New files.
61771         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61772
61773 2002-02-02  Paul Eggert  <eggert@twinsun.com>
61774             Bruno Haible  <bruno@clisp.org>
61775
61776         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
61777         (fwrite_success_callback): New declaration.
61778         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
61779         print_unicode_char. Call failure callback instead of error.
61780         (fwrite_success_callback): New function.
61781         (exit_failure_callback): New function.
61782         (fallback_failure_callback): New function.
61783         (print_unicode_char): Call unicode_to_mb.
61784
61785 2002-01-26  Jim Meyering  <meyering@lucent.com>
61786
61787         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
61788         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
61789
61790 2002-01-26  Jim Meyering  <meyering@lucent.com>
61791
61792         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
61793
61794 2002-01-22  Paul Eggert  <eggert@twinsun.com>
61795
61796         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
61797
61798 2002-01-22  Jim Meyering  <meyering@lucent.com>
61799
61800         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
61801         Otherwise, some versions of automake would omit the rule that makes
61802         Makefile from Makefile.in.
61803
61804 2002-01-21  Paul Eggert  <eggert@twinsun.com>
61805
61806         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
61807         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
61808         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
61809         (memcoll): Set errno to zero if there is no error.
61810
61811         * lib/quotearg.c (quotearg_buffer_restyled):
61812         Fix bug with quoting buffers containing NUL when backslashing escapes.
61813         This bug was exposed by the other changes in this patch.
61814         (quotearg_n_options): New arg ARGSIZE.
61815         All callers changed.
61816         (quoting_options_from_style): New function.
61817         (quotearg_n_style): Use it.
61818         (quotearg_n_style_mem): New function.
61819
61820         * lib/quotearg.h (quotearg_n_style_mem): New function.
61821
61822 2002-01-19  Jim Meyering  <meyering@lucent.com>
61823
61824         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
61825         Remove useless quotes: DF_PROG="df".
61826         * m4/strnlen.m4: New file.
61827
61828 2002-01-16  Paul Eggert  <eggert@twinsun.com>
61829
61830         * lib/backupfile.c (ISDIGIT): Comment fix.
61831         * lib/getdate.y (ISDIGIT): Likewise.
61832         * lib/posixtm.c (ISDIGIT, year): Likewise.
61833         * lib/strverscmp.c (ISDIGIT): Likewise.
61834         * lib/userspec.c (ISDIGIT): Likewise.
61835
61836 2002-01-16  Jim Meyering  <meyering@lucent.com>
61837
61838         * lib/getdate.y: Add three semicolons, each just before a closing
61839         brace. Bison (as of version 1.31) no longer papers over that mistake.
61840
61841 2002-01-05  Jim Meyering  <meyering@lucent.com>
61842
61843         * lib/version-etc.c (version_etc_copyright): Update copyright year.
61844
61845 2001-12-19  Paul Eggert  <eggert@twinsun.com>
61846
61847         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
61848         not silently exit merely because the output buffer happens to
61849         have nothing pending.
61850
61851 2001-12-18  Paul Eggert  <eggert@twinsun.com>
61852
61853         See the big note in ../ChangeLog.
61854         * lib/human.c (suffixes): Prefer K to k for 1024.
61855         (generate_suffix_backwards): New function.
61856         (human_readable_inexact): Use it.
61857         * lib/xstrtol.c (__xstrtol): If there is no number but there
61858         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
61859         Accept 'K' as well as 'k'.
61860
61861 2001-12-15  Jim Meyering  <meyering@lucent.com>
61862
61863         * lib/regex.h (__restrict_arr): Update from libc.
61864
61865         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
61866         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
61867         (STREQ): Define.
61868
61869 2001-12-14  Jim Meyering  <meyering@lucent.com>
61870
61871         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
61872         Suggestion from Bruno Haible.
61873
61874 2001-12-10  Jim Meyering  <meyering@lucent.com>
61875
61876         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
61877         xrealloc, Instead, include "xalloc.h".
61878         (initbuffer): Don't cast xmalloc return value to char*.
61879         (readline): Reword comment.
61880         Don't cast xrealloc return value to char*
61881         Return NULL, not 0.
61882
61883 2001-12-09  Jim Meyering  <meyering@lucent.com>
61884
61885         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
61886         about `signed and unsigned type in conditional expression'.
61887         * lib/posixtm.c (posix_time_parse): Likewise.
61888
61889         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
61890
61891         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
61892         to avoid a pedantic warning.
61893
61894         * lib/getstr.c: Don't include assert.h.
61895         (getstr): Remove warning-evoking assertions.
61896         Return -1 if offset parameter is out of bounds.
61897         Change the type of a local from int to size_t.
61898
61899         * lib/strftime.c (my_strftime_localtime_r): Include this function
61900         definition in the `#if ! HAVE_TM_GMTOFF' block.
61901
61902         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
61903         Include xalloc.h instead.
61904
61905 2001-12-02  Jim Meyering  <meyering@lucent.com>
61906
61907         * lib/tempname.c: Don't declare getenv, thus reverting the change of
61908         2001-11-18.  It's no longer necessary, now that stdlib.h is always
61909         included.
61910
61911         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
61912         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
61913
61914 2001-11-30  Akim Demaille  <akim@epita.fr>
61915
61916         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
61917         before being defined.
61918
61919 2001-11-27  Paul Eggert  <eggert@twinsun.com>
61920
61921         * lib/quotearg.h (quotearg_n, quotearg_n_style):
61922         First arg is int, not unsigned.
61923         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
61924         (SIZE_MAX, UINT_MAX): New macros.
61925         (quotearg_n_options): Abort if N is negative.
61926         Avoid overflow check on hosts where size_t is 64 bits and int
61927         is 32 bits, as overflow is impossible there.
61928         Fix off-by-one typo that caused unnecessary reallocation.
61929
61930 2001-11-27  Jim Meyering  <meyering@lucent.com>
61931
61932         * lib/tempname.c: Merge with version from libc.
61933         * lib/regex.c: Likewise.
61934
61935         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
61936         systems for which STDC_HEADERS is 0, it was not included, resulting in
61937         a warning about an integer-to-pointer conversion problem with getenv.
61938         Reported by Volker Borchert.
61939
61940 2001-11-26  Jim Meyering  <meyering@lucent.com>
61941
61942         * lib/gtod.h: Remove file.
61943         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
61944         * lib/gettimeofday.c: Don't include gtod.h.
61945         (GTOD_init): Remove function.
61946         (rpl_gettimeofday): Do its job here instead, rather than aborting.
61947         Suggestion from Volker Borchert.
61948
61949 2001-11-23  Jim Meyering  <meyering@lucent.com>
61950
61951         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
61952         it.
61953         * lib/hash.c (struct hash_table): Define it here instead.
61954
61955 2001-11-22  Jim Meyering  <meyering@lucent.com>
61956
61957         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
61958
61959 2001-11-20  Jim Meyering  <meyering@lucent.com>
61960
61961         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
61962         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
61963
61964 2001-11-19  Jim Meyering  <meyering@lucent.com>
61965
61966         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
61967         directory.  Use "conftestXXXXXX" as the template.
61968         Suggestion from Paul Eggert.
61969
61970         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
61971         immediately, so the test doesn't mistakenly hit the max-open-files
61972         limit.
61973
61974 2001-11-18  Paul Eggert  <eggert@twinsun.com>
61975
61976         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
61977         (TEMPORARIES): New macro.
61978         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
61979         removes an artificial limitation (e.g. HP-UX 10.20, where
61980         TMP_MAX is 17576).
61981
61982 2001-11-18  Jim Meyering  <meyering@lucent.com>
61983
61984         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
61985
61986 2001-11-18  Jim Meyering  <meyering@lucent.com>
61987
61988         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
61989         on SunOS 4.
61990
61991         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
61992         files will be created before anything else.
61993
61994 2001-11-17  Paul Eggert  <eggert@twinsun.com>
61995
61996         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
61997         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
61998
61999 2001-11-17  Jim Meyering  <meyering@lucent.com>
62000
62001         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
62002         Prompted by a report from Bob Proulx.
62003
62004         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
62005         Instead, require UTILS_FUNC_MKSTEMP.
62006
62007 2001-11-17  Jim Meyering  <meyering@lucent.com>
62008
62009         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
62010         Now, that's done as part of AC_FUNC_STRTOD.
62011
62012 2001-11-17  Jim Meyering  <meyering@lucent.com>
62013
62014         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
62015         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
62016         rather than group writable.  Patch by Juan F. Codagnone.
62017
62018         * lib/readtokens.c: Remove explicit declarations of xmalloc and
62019         xrealloc, Instead, include "xalloc.h".
62020
62021         * lib/mountlist.c: Include unlocked-io.h after all system headers.
62022         Remove explicit declarations of xmalloc, xrealloc,
62023         and xstrdup.  Instead, include "xalloc.h".
62024
62025         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
62026         unlocked-io.h.
62027         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
62028         Likewise.
62029         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
62030
62031         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
62032         Reported by Padraig Brady.
62033
62034         * lib/mkstemp.c: #undef mkstemp.
62035         Include config.h.
62036         (rpl_mkstemp): Rename from mkstemp.
62037         Protoize.
62038
62039 2001-11-16  Jim Meyering  <meyering@lucent.com>
62040
62041         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
62042         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
62043         determine the amount of total physical memory, use pstat_getstatic.
62044         HPUX-11 doesn't define _SC_PHYS_PAGES.
62045         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
62046         If sysconf couldn't be used to determine the amount of available
62047         physical memory, use both pstat_getstatic and pstat_getdynamic.
62048         Based on a patch from Bob Proulx.
62049
62050 2001-11-10  Jim Meyering  <meyering@lucent.com>
62051
62052         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
62053         (jm_PREREQ): Use it.
62054
62055 2001-11-09  Jim Meyering  <meyering@lucent.com>
62056
62057         * m4/jm-macros.m4: Require autoconf-2.52f.
62058         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
62059         Use these AC_-prefixed names, not the AM_-prefixed ones.
62060
62061         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
62062
62063 2001-11-05  Jim Meyering  <meyering@lucent.com>
62064
62065         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
62066
62067 2001-11-04  Jim Meyering  <meyering@lucent.com>
62068
62069         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
62070         $DEFS.
62071
62072 2001-11-03  Jim Meyering  <meyering@lucent.com>
62073
62074         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
62075         of AC_DEFUN.
62076
62077         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
62078         know the name of the variable in the macro definition.
62079
62080 2001-11-03  Jim Meyering  <meyering@lucent.com>
62081
62082         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
62083         in argmatch_to_argument call.
62084
62085         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
62086         argument.
62087
62088         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
62089         e.g., a fault due to an attempt to free a NULL pointer.
62090
62091 2001-11-01  Jim Meyering  <meyering@lucent.com>
62092
62093         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
62094         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
62095
62096 2001-11-01  Jim Meyering  <meyering@lucent.com>
62097
62098         * lib/dirfd.c, lib/dirfd.h: New files.
62099         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
62100
62101         * lib/hash.c (hash_print) [TESTING]: Clean up.
62102
62103 2001-10-22  Paul Eggert  <eggert@twinsun.com>
62104
62105         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
62106         to avoid a warning if -Wall.
62107
62108 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
62109
62110         * README: New file
62111         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
62112         (per RMS's instructions, this is now the canonical source)
62113         * lgpl/, gpl/: New directories.
62114
62115 2001-10-21  Paul Eggert  <eggert@twinsun.com>
62116
62117         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
62118
62119 2001-10-21  Jim Meyering  <meyering@lucent.com>
62120
62121         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
62122         this code would end up calling gettext even in packages built
62123         with --disable-nls.
62124         * lib/getopt.c (_): Likewise.
62125         * lib/regex.c (_): Likewise.
62126
62127 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62128
62129         * m4/error.m4 (jm_PREREQ_ERROR):
62130         Do not invoke AC_CHECK_FUNCS with strerror_r, as
62131         AC_FUNC_STRERROR_R does that.
62132         Check for strerror declaration.
62133
62134         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
62135         are supposed to have them these days.
62136         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
62137         Merge changes from latest Autoconf CVS.
62138         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
62139         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
62140         POSIX decided to standardize on the int flavor of strerror_r.
62141
62142 2001-10-20  Paul Eggert  <eggert@twinsun.com>
62143
62144         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
62145         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
62146         Use strerror_r that is only a macro, even if it is not a function.
62147         (strerror): Check for HAVE_DECL_STRERROR before declaring.
62148         (private_strerror): Use prototypes, not old-style function definition.
62149         (print_errno_message): New function.
62150         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
62151         char*-flavored one.
62152         (error_tail, error, error_at_line): Use it.
62153
62154 2001-10-11  Jim Meyering  <meyering@lucent.com>
62155
62156         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
62157         and quote_n (1, ... to avoid clobbering a buffer.
62158
62159 2001-10-05  Jim Meyering  <meyering@lucent.com>
62160
62161         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
62162         hash-pjw.h.
62163         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
62164         * lib/hash-pjw.h: New file.
62165
62166 2001-09-30  Jim Meyering  <meyering@lucent.com>
62167
62168         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
62169         `struct fsstat' has the `f_fstypename' member.
62170         Use that to define FS_TYPE, which is now used to make
62171         the getfsstat link test tighter.
62172
62173 2001-09-30  Jim Meyering  <meyering@lucent.com>
62174
62175         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
62176         Include <sys/ucred.h>, for Apple Darwin.
62177         Include sys/mount.h and sys/fs_types.h only if available.
62178         (FS_TYPE): Define.
62179         (read_filesystem_list): Use FS_TYPE.
62180
62181 2001-09-29  Paul Eggert  <eggert@twinsun.com>
62182
62183         * lib/exclude.c (excluded_filename): 0 -> false, since it's
62184         a boolean context.
62185
62186 2001-09-29  Jim Meyering  <meyering@lucent.com>
62187
62188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62189         [one-argument getmntent function]): Include stdio.h before mntent.h.
62190         SunOS 4.1.x needs it for the declaration of `FILE'.
62191         Patch by Volker Borchert.
62192
62193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
62194         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
62195         sys/fs_types.h, and make the link-test for getfsstat guard #include
62196         directives with appropriate #if HAVE_*_H tests so that we can
62197         detect getfsstat on Apple Darwin1.3.7 systems.
62198         Reported by Nelson Beebe.
62199         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
62200
62201 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62202
62203         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62204         #defines strtoimax.  Also treat the other strto* functions
62205         like strtoimax.
62206
62207         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62208         Check for strtoul and strtoumax,
62209         as those declarations are made even in the signed case.
62210         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
62211         Likewise, for strtol and strtoimax.
62212
62213 2001-09-28  Paul Eggert  <eggert@twinsun.com>
62214
62215         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
62216         #defines strtoimax.  Also treat the other strto* functions
62217         like strtoimax.
62218
62219         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
62220         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
62221         (strtoimax, strtoumax): Do not declare if already defined as a macro.
62222
62223 2001-09-26  Jim Meyering  <meyering@lucent.com>
62224
62225         Most macros in unlocked-io.h had the wrong number of arguments.
62226         * lib/gen-uio: New script.
62227         (USE_UNLOCKED_IO): Define to 1 if not already defined.
62228         * lib/unlocked-io.hin: Remove file.
62229         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
62230         rather than trying to embed it here.
62231         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
62232         Reported by Padraig Brady.
62233
62234 2001-09-25  Volker Borchert  <bt@teknon.de>
62235
62236         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
62237         `result'.
62238
62239 2001-09-24  Jim Meyering  <meyering@lucent.com>
62240
62241         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
62242
62243 2001-09-23  Jim Meyering  <meyering@lucent.com>
62244
62245         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
62246         instead of the mere test for existence of mntent.h.  The latter
62247         would get a false-positive on AIX 3.4 systems.
62248         In the outer getmntent if-block, don't die if neither of the getmntent
62249         tests succeeds.  Instead, just fall through and continue with the
62250         remaining tests.
62251
62252 2001-09-23  Jim Meyering  <meyering@lucent.com>
62253
62254         * lib/mountlist.c: Remove useless parentheses in #if directives.
62255         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
62256         the deprecated MOUNTED symbol is no longer defined in mntent.h.
62257
62258 2001-09-22  Jim Meyering  <meyering@lucent.com>
62259
62260         * m4/gettext.m4: New file.  From gettext.
62261         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
62262         * m4/progtest.m4: Likewise
62263         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
62264         * m4/glibc21.m4: Likewise.
62265
62266         * m4/libintl.m4: Remove.  No longer used.
62267
62268 2001-09-22  Jim Meyering  <meyering@lucent.com>
62269
62270         * lib/localcharset.c: Update from latest gettext.
62271         * lib/config.charset: Likewise.
62272
62273 2001-09-20  Jim Meyering  <meyering@lucent.com>
62274
62275         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
62276         strtoimax.
62277         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
62278         strtoumax.
62279
62280 2001-09-20  Jim Meyering  <meyering@lucent.com>
62281
62282         * lib/xstrtol.c (strtoimax): Guard declaration with
62283         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
62284         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
62285         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
62286         (strtoumax): Likewise, for completeness (it wasn't necessary).
62287
62288 2001-09-17  Paul Eggert  <eggert@twinsun.com>
62289
62290         * lib/strtoimax.c (HAVE_LONG_LONG):
62291         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
62292         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
62293         to work around bug in IBM C compiler.
62294
62295 2001-09-17  Jim Meyering  <meyering@lucent.com>
62296
62297         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
62298         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
62299         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
62300         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
62301         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
62302         whenever the right hand side need not be expanded by the shell.
62303
62304 2001-09-16  Paul Eggert  <eggert@twinsun.com>
62305
62306         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
62307         library.  It's not correct, as some older glibcs are buggy.
62308         fnmatch wasn't fixed until glibc 2.2.
62309
62310         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
62311         special shell magic here.
62312
62313 2001-09-16  Jim Meyering  <meyering@lucent.com>
62314
62315         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
62316         * m4/jm-macros.m4: Require it.
62317
62318 2001-09-16  Jim Meyering  <meyering@lucent.com>
62319
62320         * lib/mkdir.c: New file.
62321
62322 2001-09-15  Jim Meyering  <meyering@lucent.com>
62323
62324         * m4/jm-macros.m4: Check for help2man.
62325
62326 2001-09-11  Jim Meyering  <meyering@lucent.com>
62327
62328         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
62329         The body, by Paul Eggert, was moved here from configure.in.
62330         * m4/jm-macros.m4: Require UTILS_HOST_OS.
62331
62332 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62333
62334         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
62335         (jm_PREREQ): Use it.
62336
62337 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62338
62339         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
62340         Use ssize_t, not int, to store result of readlink.
62341         Check for ssize_t overflow as well as size_t overflow,
62342         as POSIX says the result of readlink is implementation-defined
62343         when ssize_t overflows.
62344         Remove unnecessary cast to char*.
62345         Use free+malloc instead of realloc, as the storage doesn't need
62346         to be preserved and it's clearer and can be more efficient that way.
62347         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
62348         * lib/xreadlink.h (xreadlink): Update prototype.
62349
62350 2001-09-04  Paul Eggert  <eggert@twinsun.com>
62351
62352         * lib/xgetcwd.c: Revert some of the previous change; intead,
62353         fix the HAVE_GETCWD_NULL code to behave more like the
62354         !HAVE_GETCWD_NULL code used to.
62355
62356         Include "xalloc.h".
62357         (xgetcwd): Do not return NULL when memory is exhausted; instead,
62358         invoke xalloc_die.
62359
62360 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62361
62362         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
62363         sys/param.h, as pathmax.h includes them.
62364
62365 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62366
62367         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
62368         (jm_PREREQ_XGETCWD): New macro.
62369
62370         * m4/getcwd.m4: New file.
62371
62372 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62373
62374         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
62375         like the HAVE_GETCWD_NULL code.
62376         Include pathmax.h if not HAVE_GETCWD.
62377         Do not include xalloc.h.
62378         (INITIAL_BUFFER_SIZE): New symbol.
62379         Do not use xmalloc / xrealloc, since the caller is responsible for
62380         handling errors.  Preserve errno around `free' during failure.
62381         Do not overrun buffer when using getwd.
62382
62383 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62384
62385         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
62386         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
62387         getcwd (NULL, 0).
62388
62389 2001-09-03  Paul Eggert  <eggert@twinsun.com>
62390
62391         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
62392         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
62393         spotted by Jim Meyering.
62394
62395 2001-09-03  Jim Meyering  <meyering@lucent.com>
62396
62397         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
62398         failure.
62399
62400 2001-09-02  Jim Meyering  <meyering@lucent.com>
62401
62402         * lib/error.c: Update from GNU libc.
62403
62404 2001-09-01  Jim Meyering  <meyering@lucent.com>
62405
62406         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
62407         Used by df.
62408
62409 2001-09-01  Jim Meyering  <meyering@lucent.com>
62410
62411         * lib/xreadlink.c: New file.
62412         * lib/xreadlink.h: New file.
62413         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
62414         xreadlink.h.
62415
62416         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
62417         doesn't conflict with sparc Solaris 7's definition in
62418         /usr/include/sys/int_types.h.
62419
62420         * lib/exclude.c: Use `""', not `<>' to #include non-system header
62421         files.
62422         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
62423         and strncasecmp as r-values.  Unixware didn't have declarations.
62424
62425 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62426
62427         * lib/xstrtol.h: Add copyright notice.
62428         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
62429         LONGINT_INVALID_SUFFIX_CHAR.
62430
62431 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62432
62433         * lib/xstrtol.c (strtoimax): New decl.
62434
62435 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62436
62437         * lib/xgetcwd.c: Don't include pathmax.h.
62438         Include stdlib.h and unistd.h if available.
62439         Include xalloc.h.
62440         (xmalloc, xstrdup, free): Remove decls.
62441         (xgetcwd): Don't assume sizes fit in unsigned.
62442         Check for overflow when computing sizes.
62443         Simplify reallocation code.
62444
62445 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62446
62447         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
62448         a directory's st_size can have an arbitrary value, so the old
62449         usage could waste an arbitrary amount of memory.  All uses
62450         changed.
62451         * lib/savedir.h: Update prototype.
62452
62453 2001-08-31  Paul Eggert  <eggert@twinsun.com>
62454
62455         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
62456
62457         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
62458         old strtoimax.c.
62459
62460         Also, make the following further changes to make this file's
62461         configuration more similar to that of strtol.c:
62462         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
62463         (strtoumax, uintmax_t, strtoull, strtol): Remove.
62464         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
62465         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
62466         changed to signed values.
62467
62468         And make the following changes as well:
62469         Fix copyright notice, as 1999 was missing.
62470         (verify): New macro.
62471         (strtoimax): Check sizes at compile-time, not run-time.
62472         Prefer strtol to strtoll if both work.
62473         (main): Remove; it was not that useful and was a pain to maintain.
62474
62475         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
62476
62477 2001-08-31  Jim Meyering  <meyering@lucent.com>
62478
62479         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
62480         Use an initial, malloc'd, buffer of length 128 rather than
62481         a statically allocated one of length 1024.
62482
62483 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62484
62485         Simplify code, partly by assuming autoconf 2.52 semantics.
62486
62487         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
62488
62489         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
62490         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
62491         All uses removed.
62492         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
62493         Move AC_REQUIRE to next-to-top level, to avoid confusion.
62494         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
62495         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
62496         jm_AC_HEADER_INTTYPES_H.
62497         * m4/jm-macros.m4 (jm_MACROS): Likewise.
62498
62499         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
62500
62501         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
62502         Quote first arg of AC_DEFUN.
62503         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
62504         since they are needed to parse the include file even if we need
62505         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
62506         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
62507         but with opposite signedness.
62508
62509 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62510
62511         Merge 'exclude' changes from tar 1.13.22.
62512         This fixes one or two unlikely storage allocation overflow bugs,
62513         but doesn't change user-visible behavior otherwise.
62514
62515 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62516
62517         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
62518         (jm_PREREQ_EXCLUDE): New macro.
62519
62520 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62521
62522         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
62523         tm to be declared.
62524
62525 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62526
62527         * lib/hash.c: Remove '2001' from copyright notice.
62528
62529 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62530
62531         * lib/full-write.h: New file.
62532         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
62533         * lib/full-write.c: Correct credits, as cccp.c no longer
62534         exists and anyway it was so heavily changed from the old cccp
62535         code as to be unrecognizable.  Include full-write.h.
62536         (full_write) Return size_t, with short writes meaning failure.
62537         All callers changed.  This fixes a bug with large buffers
62538         on 64-bit hosts.
62539         * lib/utime.c: Include full-write.h.
62540
62541 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62542
62543         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
62544         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
62545         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
62546         Include if available.
62547         (<xalloc.h>): Include
62548         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
62549         (verify): New macro.  Use it to verify that EXCLUDE macros do not
62550         collide with FNM macros.
62551         (struct patopts): New struct.
62552         (struct exclude): Use it, as exclude patterns now come with options.
62553         (new_exclude): Support above changes.
62554         (new_exclude, add_exclude_file):
62555         Initial size must now be a power of two to simplify overflow checking.
62556         (free_exclude, fnmatch_no_wildcards): New function.
62557         (excluded_filename): No longer requires options arg, as the options
62558         are determined by add_exclude.  Now returns bool, not int.
62559         (excluded_filename, add_exclude):
62560         Add support for the fancy new exclusion options.
62561         (add_exclude, add_exclude_file): Now takes int options arg.
62562         Check for arithmetic overflow when computing sizes.
62563         (add_exclude_file): xrealloc might modify errno, so don't
62564         realloc until after errno might be used.
62565
62566         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
62567         New macros.
62568         (free_exclude): New decl.
62569         (add_exclude, add_exclude_file): Now takes int options arg.
62570         (excluded_filename): No longer requires options arg, as the options
62571         are determined by add_exclude.  Now returns bool, not int.
62572
62573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
62574
62575         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
62576
62577 2001-08-27  Jim Meyering  <meyering@lucent.com>
62578
62579         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
62580
62581         * lib/version-etc.c (N_): Remove definition.
62582         Revert most of last change.
62583         Instead, simply don't mark the `Copyright...' string for translation.
62584         Based on advice from Paul Eggert.
62585
62586         * lib/strtoxmax.c: Tweak comment.
62587
62588 2001-08-26  Jim Meyering  <meyering@lucent.com>
62589
62590         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
62591
62592         * m4/xstrtoimax.m4: New file.
62593         * m4/xstrtoumax.m4: Add comments explaining why we
62594         AC_REPLACE_FUNCS(strtol).
62595
62596 2001-08-26  Jim Meyering  <meyering@lucent.com>
62597
62598         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
62599         of copyright with `%s' so translators don't get an untranslated
62600         message in 2002.
62601         (COPYRIGHT_YEAR): Define.
62602         (version_etc): Use fprintf rather than fputs.
62603         Suggestion from Ulrich Drepper.
62604
62605         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
62606
62607         * lib/strtoll.c: New file, from GNU libc.
62608         * lib/xstrtoimax.c: New file.
62609
62610         * lib/xstrtol.h: Add xstrtoimax.
62611         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
62612         * lib/strtoimax.c: New file.  Likewise, but first define
62613         STRTOUXMAX_SIGNED.
62614
62615         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
62616         ...
62617         * lib/strtoxmax.c: ... then renamed to this.
62618
62619 2001-08-18  Paul Eggert  <eggert@twinsun.com>
62620
62621         * m4/inttypes.m4: Add AC_PREREQ(2.13).
62622         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
62623         (jm_AC_TYPE_INTMAX_T): New macro.
62624         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
62625
62626         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
62627
62628         * m4/longlong.m4: Renamed from ulonglong.m4.
62629         * m4/inttypes.m4: Renamed from inttypes_h.m4.
62630         * m4/uintmax_t.m4: Removed.
62631
62632 2001-08-13  Paul Eggert  <eggert@twinsun.com>
62633
62634         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
62635         Port to Solaris 8, where 'sed' requires a space after the 'r'
62636         command, and where sh dislikes "$/".  Clean up the spacing a bit.
62637         Redirect output to $tmp just once.
62638
62639 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
62640
62641         * lib/addext.c (<errno.h>): Include.
62642         (errno): Declare if not defined.
62643         (addext): Work correctly when pathconf returns -1 and leaves
62644         errno alone because there is no limit.  Also, work even if
62645         pathconf returns a value greater than SIZE_MAX.
62646
62647 2001-08-12  Jim Meyering  <meyering@lucent.com>
62648
62649         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
62650         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
62651         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
62652         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
62653         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
62654         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
62655         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
62656         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
62657         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
62658         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
62659         utime.m4, utimes.m4, xstrtoumax.m4:
62660         Quote the first argument in each use of AC_DEFUN.
62661
62662 2001-08-12  Jim Meyering  <meyering@lucent.com>
62663
62664         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
62665         Simply `return getcwd (NULL, 0);'.
62666         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
62667         Use 1300 as initial value for length, not PATH_MAX.
62668
62669         * lib/pathmax.h: Clean up cpp syntax.
62670
62671 2001-08-12  Jim Meyering  <meyering@lucent.com>
62672
62673         * lib/gettimeofday.c: New file.
62674         * lib/gtod.h: New file.
62675         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
62676
62677 2001-08-05  Jim Meyering  <meyering@lucent.com>
62678
62679         * m4/jm-macros.m4: Require autoconf-2.52.
62680
62681 2001-08-04  Jim Meyering  <meyering@lucent.com>
62682
62683         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
62684         stmt, to get in sync with glibc.
62685
62686 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62687
62688         The following changes are from gettext 0.10.39 as maintained by
62689         Bruno Haible.
62690
62691         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
62692         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
62693         with inverted sense.  All uses changed.
62694
62695         * lib/mbswidth.c: Don't include <limits.h>.
62696         Include <stdlib.h> and <string.h> unconditionally.
62697         (iswcntrl, mbsinit, ISCNTRL): New macros.
62698         (mbsnwidth): Use K&R style function declarations.
62699         Don't bother checking for MB_LEN_MAX == 1, since the compiler
62700         can optimize it when MB_CUR_MAX == 1.
62701         The width of control characters is zero, not 1.
62702
62703 2001-08-03  Paul Eggert  <eggert@twinsun.com>
62704
62705         The following changes are from gettext 0.10.39 as maintained by
62706         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
62707
62708         * m4/codeset.m4: Upgrade to serial AM1.
62709         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
62710         all uses changed.  Quote first arg of AC_DEFUN.
62711         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
62712
62713         * m4/iconv.m4: Upgrade to serial AM2.
62714         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
62715         Add --with-libconv-prefix.
62716         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
62717         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
62718         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
62719         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
62720         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
62721
62722         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
62723         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
62724         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
62725         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
62726         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
62727         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
62728         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62729         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
62730         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62731
62732         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
62733         string.h any more.
62734
62735         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
62736         not the default value.
62737
62738         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
62739         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
62740         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
62741         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
62742         Also check for iswcntrl, used for wcwidth fallback.
62743         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
62744         to Autoconf 2.13.
62745
62746 2001-08-03  Jim Meyering  <meyering@lucent.com>
62747
62748         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
62749         as it was in the original.  Reported by Paul Eggert.
62750
62751 2001-07-16  Jim Meyering  <meyering@lucent.com>
62752
62753         * m4/gettimeofday.m4: New file.
62754         Prompted by a report from Bernhard Baehr.
62755
62756 2001-07-15  Jim Meyering  <meyering@lucent.com>
62757
62758         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
62759         stuff. Now it's in ../Makefile.cfg.
62760
62761 2001-07-15  Jim Meyering  <meyering@lucent.com>
62762
62763         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
62764         (BUILT_SOURCES): Add unlocked-io.h.
62765         (io_functions): Define.
62766         (unlocked-io.h): New rule.
62767         (DISTCLEANFILES): Add unlocked-io.h.
62768         (all-local): Depend on unlocked-io.h, to ensure it is created.
62769
62770         * lib/unlocked-io.hin: New file
62771
62772         * lib/regex.c: Update from glibc.
62773
62774 2001-07-05  Jim Meyering  <meyering@lucent.com>
62775
62776         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
62777         recommendation.
62778         (libfetish_a_SOURCES): Put all .h files here instead.
62779         Remove a thus-exposed (better checks in automake) duplicate and
62780         two unnecessary .h files.
62781
62782 2001-07-04  Jim Meyering  <meyering@lucent.com>
62783
62784         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
62785         that generates jm-glibc-io.m4 so that it doesn't trigger any make
62786         distcheck failure.
62787
62788 2001-07-02  Jim Meyering  <meyering@lucent.com>
62789
62790         The following changes were prompted by suggestions from Bruno Haible.
62791
62792         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
62793         is now generated.
62794         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
62795         definition of EXTRA_DIST.
62796         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
62797         ensure that the generated file is created/updated whenever the list
62798         of $(unlocked_functions) is changed.
62799         (jm-glibc-io.m4): New rule.
62800         (unlocked-io.h): New rule -- currently unused.
62801
62802 2001-06-24  Jim Meyering  <meyering@lucent.com>
62803
62804         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
62805         unmatched right bracket, rather than kludging it with an extra,
62806         falsely-matching quote in a comment.  Patch by Akim Demaille.
62807
62808 2001-06-11  Jim Meyering  <meyering@lucent.com>
62809
62810         * lib/regex.c: Update from GNU libc.
62811
62812 2001-05-27  Jim Meyering  <meyering@lucent.com>
62813
62814         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
62815         Check for ut_type in struct utmp.
62816
62817 2001-05-27  Jim Meyering  <meyering@lucent.com>
62818
62819         * lib/readutmp.h (UT_TYPE): Define.
62820
62821 2001-05-24  Jim Meyering  <meyering@lucent.com>
62822
62823         * lib/argmatch.c: Include "quote.h".
62824         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
62825         quote function.  Reported by Göran Uddeborg.
62826
62827 2001-05-22  Jim Meyering  <meyering@lucent.com>
62828
62829         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
62830         now that we use the package-supplied version unconditionally.
62831         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
62832
62833 2001-05-21  Jim Meyering  <meyering@lucent.com>
62834
62835         * m4/regex.m4: Change a couple backticks to single quotes to avoid
62836         shell syntax errors.
62837
62838 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62839
62840         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
62841
62842 2001-05-20  Paul Eggert  <eggert@twinsun.com>
62843
62844         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
62845         Don't bother to check library strftime, since
62846         we'll be using our own my_strftime function anyway.
62847         Define my_strftime instead of strftime.
62848
62849 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
62850
62851         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
62852         which is not yet declared.
62853
62854 2001-05-15  Jim Meyering  <meyering@lucent.com>
62855
62856         * m4/regex.m4: Use proper quoting so brackets appear in the test
62857         program.
62858         Reported by, and with help from, Bruno Haible.
62859
62860 2001-05-13  Jim Meyering  <meyering@lucent.com>
62861
62862         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
62863         undefined.
62864
62865 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62866
62867         dirname code cleanup.  base_name now behaves more compatibly
62868         with POSIX basename when given file names that have trailing
62869         slashes, and similarly for dir_name.  Add new primitives
62870         base_len and dir_len.  Put the directory-name-related decls
62871         into dirname.h.
62872
62873         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
62874         * lib/backupfile.c (base_name): Likewise.
62875         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
62876         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
62877         * lib/makepath.c (strip_trailing_slashes): Likewise.
62878         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
62879         ISSLASH): Likewise.
62880         * lib/rename.c (strip_trailing_slashes): Likewise.
62881         * lib/same.c (base_name): Likewise.
62882         * lib/stripslash.c (ISSLASH): Likewise.
62883
62884         * lib/addext.c: Include <dirname.h> after size_t is defined.
62885         * lib/backupfile.c: Likewise.
62886
62887         * lib/addext.c (addext): Use base_len to trim redundant
62888         trailing slashes instead of doing it ourselves.
62889         But do not trim the last slash if it is not redundant.
62890
62891         * lib/backupfile.c (find_backup_file_name,
62892         max_backup_version): Use base_len instead of rolling it ourselves.
62893         Handle the case of "" and (on DOS) "C:" correctly.
62894
62895         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
62896         needed. Include <string.h>, <dirname.h>.
62897         (base_name): Allow file names ending in slashes, other than names
62898         that are all slashes.  In this case, return the basename followed
62899         by the slashes.  This is more general, and can be used in places
62900         where the original base_name purposely had an assertion failure.
62901         (base_len): New function.
62902
62903         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
62904         Do not include <assert.h>; no longer needed.
62905         Include xalloc.h.
62906         (memrchr): Remove decl.
62907         (dir_name_r): Remove.
62908         (dir_len): Renamed from dirlen.  All callers changed.
62909         Rewrite in terms of base_name, for simplicity and consistency.
62910         (dir_name): Never return NULL.  All callers changed.
62911         Do not include <stdlib.h> in test program; no longer needed.
62912         return 0; is fine for test program.
62913
62914         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
62915         New macros.
62916         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
62917
62918         * lib/path-concat.c (path_concat): Use base_len to compute
62919         base length, not strlen; this means we cannot rely on memcpy
62920         to null-terminate.
62921
62922         * lib/same.c (STREQ): Remove.
62923         (same_name): Handle the case where the basename ends in trailing '/'.
62924
62925         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
62926         a slash was stripped.  Do not strip the last slash after a
62927         file system prefix.
62928
62929 2001-05-11  Paul Eggert  <eggert@twinsun.com>
62930
62931         * lib/Makefile.am (libfetish_a_SOURCES):
62932         Add strftime.c, since we now compile it on all hosts.
62933
62934         * lib/strftime.c (my_strftime):
62935         Define to nstrftime if emacs, but only if my_strftime is not defined.
62936         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
62937         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
62938         Add one more extra argument: a nanoseconds value.
62939         All uses changed.
62940         (ns): New macro.
62941         (my_strftime function): Add %N format.
62942         (emacs_strftimeu): Renamed from emacs_strftime,
62943         with extra ut argument.
62944
62945 2001-05-09  Paul Eggert  <eggert@twinsun.com>
62946
62947         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
62948
62949 2001-04-21  Jim Meyering  <meyering@lucent.com>
62950
62951         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
62952         doesn't interfere.
62953
62954 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
62955
62956         * m4/ftruncate.m4: Check for chsize.
62957         Link with ftruncate.o unconditionally if ftruncate is missing.
62958         This was required when cross-compiling to i586-mingw32msvc.
62959
62960 2001-04-08  Jim Meyering  <meyering@lucent.com>
62961
62962         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
62963         recomputed; that's necessary when the offset spans a DST transition.
62964         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
62965
62966 2001-04-02  Jim Meyering  <meyering@lucent.com>
62967
62968         * lib/regex.h, regex.c: Update from GNU libc.
62969
62970 2001-03-24  Jim Meyering  <meyering@lucent.com>
62971
62972         * m4/jm-macros.m4: Require autoconf-2.49d.
62973
62974 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
62975
62976         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
62977
62978 2001-03-19  Paul Eggert  <eggert@twinsun.com>
62979
62980         * lib/version-etc.c (version_etc_copyright): Update to 2001.
62981
62982 2001-03-17  Jim Meyering  <meyering@lucent.com>
62983
62984         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
62985         now that the version in autoconf is equivalent.
62986         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
62987
62988         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
62989         Suggestion from Akim Demaille.
62990
62991         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
62992         (jm_PREREQ_TEMPNAME): New function.
62993
62994 2001-03-16  Paul Eggert  <eggert@twinsun.com>
62995
62996         * lib/tempname.c (uint64_t): Define to uintmax_t if
62997         not defined, and if UINT64_MAX is not defined.
62998         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
62999         Reported by John David Anglin.
63000
63001 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
63002
63003         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
63004         resolve alias if codeset is empty.
63005         * lib/config.charset (BeOS): Use wildcard syntax.
63006
63007 2001-03-13  Jim Meyering  <meyering@lucent.com>
63008
63009         * lib/path-concat.c (path_concat)
63010         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
63011         concatenating e.g., `C:' and `foo'.
63012         From Bruno Haible.
63013
63014 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63015
63016         * lib/localcharset.c (locale_charset): Don't use
63017         setlocale(LC_CTYPE,NULL). Don't return NULL.
63018         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
63019
63020 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
63021
63022         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
63023         support for DOS/DJGPP.
63024
63025 2001-03-01  Paul Eggert  <eggert@twinsun.com>
63026
63027         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
63028         lacks mkstemp.  Compile our own tempname.c if we compile our own
63029         mkstemp.c, as mkstemp relies on tempname.
63030
63031 2001-03-01  Jim Meyering  <meyering@lucent.com>
63032
63033         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
63034         AH_VERBATIM really does output its argument verbatim.
63035
63036 2001-02-28  Paul Eggert  <eggert@twinsun.com>
63037
63038         * lib/Makefile.am (libfetish_a_SOURCES):
63039         Add dup-safer.c, fopen-safer.c.
63040         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
63041
63042         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
63043         * lib/unistd-safer.h: New files.
63044
63045 2001-02-25  Paul Eggert  <eggert@twinsun.com>
63046
63047         The mkstemp replacement is taken from glibc 2.2.2, with some
63048         portability fixes for use outside glibc, as follows:
63049
63050         * lib/tempname.c (struct_stat64): New macro.
63051         (direxists, __gen_tempname): Use it.
63052         This avoids a portability problem with Solaris 8.
63053
63054         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
63055         (<stddef.h>, <stdint.h>, <string.h>):
63056         Include only if STDC_HEADERS || _LIBC.
63057         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
63058         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
63059         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
63060         (__set_errno): Define this macro if <errno.h> doesn't.
63061         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
63062         Define these macros if <stdio.h> doesn't.
63063         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
63064         Define these macros if <sys/stat.h>
63065         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
63066         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
63067         __xstat64): Define if not _LIBC.
63068         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
63069         (__gen_tempname): Invoke gettimeofday only if
63070         HAVE_GETTIMEOFDAY || _LIBC;
63071         otherwise, fall back on plain "time".
63072         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
63073
63074         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
63075
63076         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
63077
63078 2001-02-18  Paul Eggert  <eggert@twinsun.com>
63079
63080         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
63081
63082 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63083
63084         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
63085         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
63086         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
63087         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
63088
63089 2001-02-17  Paul Eggert  <eggert@twinsun.com>
63090
63091         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
63092         Remove workaround macros for hosts that have mbrtowc but not
63093         mbstate_t, as we now insist on proper declarations for both
63094         before using mbrtowc.
63095
63096 2001-02-17  Jim Meyering  <meyering@lucent.com>
63097
63098         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
63099         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
63100         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
63101         UnixWare 7.1.1.
63102
63103         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
63104         rather than AC_CACHE_VAL.
63105
63106 2001-02-17  Jim Meyering  <meyering@lucent.com>
63107
63108         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
63109         around included file name.
63110
63111         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
63112
63113         * lib/strftime.c: Update from GNU libc (the only changes were to
63114         comments).
63115
63116 2001-02-17  Jim Meyering  <meyering@lucent.com>
63117
63118         * lib/regex.c: Update from libc.
63119
63120 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
63121
63122         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
63123         clash.
63124
63125 2001-02-16  Paul Eggert  <eggert@twinsun.com>
63126
63127         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
63128         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
63129         Reported by Mark Hounschell via Paul Eggert.
63130
63131 2001-02-07  Jim Meyering  <meyering@lucent.com>
63132
63133         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
63134
63135 2001-02-05  Jim Meyering  <meyering@lucent.com>
63136
63137         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
63138         it includes the patch required for `large file' support with at least
63139         HP-UX's 10.20 /bin/cc.
63140
63141 2001-02-03  Jim Meyering  <meyering@lucent.com>
63142
63143         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
63144         AS_IF, now that it works once again (mysteriously).
63145         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63146
63147 2001-01-30  Jim Meyering  <meyering@lucent.com>
63148
63149         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
63150         * m4/chown.m4: Rename conftestchown to conftest.chown.
63151         * m4/rename.m4: s/conftestdir/conftest.d1/ and
63152         s/conftestdir2/conftest.d2/.
63153         * m4/utimes.m4: s/conftestdata/conftest.data/
63154         Inspired by Pavel Roskin's change in autoconf.
63155
63156 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
63157
63158         * lib/config.charset: Update for FreeBSD 4.2.
63159
63160 2001-01-27  Jim Meyering  <meyering@lucent.com>
63161
63162         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
63163         a use of AS_IF.
63164         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
63165
63166 2001-01-26  Jim Meyering  <meyering@lucent.com>
63167
63168         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
63169         quotearg.c includes it.
63170
63171 2001-01-26  Jim Meyering  <meyering@lucent.com>
63172
63173         * lib/quotearg.c: Include stddef.h.
63174         * lib/quote.c: Include stddef.h.
63175         Reported by Axel Kittenberger.
63176
63177         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
63178         line in double quotes so that it evokes a better diagnostic.
63179         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
63180         Reported by Axel Kittenberger.
63181
63182 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
63183
63184         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
63185         as if it was a `charset'.
63186
63187 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63188
63189         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
63190         has const.
63191
63192 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
63193
63194         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
63195         to avoid a warning.  Add back 'const' to inptr.
63196
63197 2001-01-20  Jim Meyering  <meyering@lucent.com>
63198
63199         Be sure that headers are checked before used in code compiled
63200         for the type checks.
63201         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
63202         In place of that, invoke jm_CHECK_ALL_TYPES.
63203         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
63204         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
63205         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
63206         The check for ssize_t was mistakenly run before the test for unistd.h.
63207
63208         The configure-time check for stdbool.h was missing.
63209         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
63210         (jm_PREREQ_HASH): New function.
63211
63212 2001-01-17  Jim Meyering  <meyering@lucent.com>
63213
63214         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
63215         for autoconf-2.49c.
63216         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
63217
63218 2001-01-16  Jim Meyering  <meyering@lucent.com>
63219
63220         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
63221         From Bruno Haible.
63222
63223 2001-01-14  Jim Meyering  <meyering@lucent.com>
63224
63225         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
63226         foo and bar.  Create conftestdir/ in the script, not in the C code.
63227         Remove directories in the script, not in the C code.
63228         Remove conftestdir{,2} before trying to create the directory.
63229         Make the entire configure script fail if the mkdir fails.
63230
63231 2001-01-14  Jim Meyering  <meyering@lucent.com>
63232
63233         * lib/rename.c: New file.  From Volker Borchert.
63234         Include stdlib.h, string.h or strings.h, and xalloc.h.
63235         Use strip_trailing_slashes rather than open-coding it.
63236
63237 2001-01-03  Paul Eggert  <eggert@twinsun.com>
63238
63239         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
63240
63241 2001-01-03  Jim Meyering  <meyering@lucent.com>
63242
63243         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
63244         of local `inptr' to avoid warning with some system declarations of
63245         iconv.
63246
63247 2001-01-02  Volker Borchert  <bt@teknon.de>
63248
63249         * m4/rename.m4: New file.
63250         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
63251
63252 2001-01-01  Jim Meyering  <meyering@lucent.com>
63253
63254         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
63255         even on systems with utmpx.h.  It's necessary for the declaration of
63256         utmp's ut_user member.  Reported by Andreas Jaeger.
63257
63258         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
63259         available. They are required for the declarations of getgrgid and
63260         getpwuid resp.
63261         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
63262         Reported by Andreas Jaeger.
63263
63264 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
63265
63266         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
63267         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
63268         so `make install' also works in VPATH builds.
63269
63270 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
63271
63272         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
63273         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
63274         can be used in subdirectories.
63275
63276 2000-12-29  Paul Eggert  <eggert@twinsun.com>
63277
63278         * lib/modechange.c: Do not assume that mode_t uses the
63279         traditional octal encoding.  E.g. "chmod 1 FOO" should set
63280         the other-execute bit of FOO even if S_IXOTH != 1.
63281
63282         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
63283         WOTH, XOTH, ALLM): New macros.
63284         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
63285          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
63286         Use them.
63287         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
63288         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
63289         (mode_compile):
63290         No need to use uintmax_t; unsigned long is long enough.
63291         Don't bother to get suffix since we don't use it.
63292
63293 2000-12-26  Jim Meyering  <meyering@lucent.com>
63294
63295         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
63296         better with autoheader.
63297
63298 2000-12-24  Jim Meyering  <meyering@lucent.com>
63299
63300         * lib/hash.c (is_prime): Return explicit boolean values.
63301         (hash_get_first): Return NULL to appease Irix5.6's 89.
63302         Reported by Nelson Beebe.
63303
63304 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
63305
63306         * lib/localcharset.c (locale_charset): Add support for Win32.
63307
63308 2000-12-18  Paul Eggert  <eggert@twinsun.com>
63309
63310         * lib/physmem.h, lib/physmem.c: New files.
63311
63312         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
63313         (noinst_HEADERS): Add physmem.h.
63314
63315         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
63316         't' for compatibility with Solaris 8 sort.
63317
63318 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
63319
63320         * lib/config.charset: Add support for BeOS.
63321
63322 2000-12-17  Jim Meyering  <meyering@lucent.com>
63323
63324         * m4/dos.m4 (jm_AC_DOS): New file and macro.
63325         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
63326
63327 2000-12-16  Jim Meyering  <meyering@lucent.com>
63328
63329         This bug had a serious impact on chown: `chown N:M FILE' (for integer
63330         N and M) would have treated it like `chown N:N FILE'.
63331
63332         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
63333
63334 2000-12-16  Jim Meyering  <meyering@lucent.com>
63335
63336         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
63337         SHELLS_FILE to a file name that's useful on djgpp systems.
63338         Include stdlib.h.
63339         (ADDITIONAL_DEFAULT_SHELLS): Define.
63340         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
63341         Based mostly on a patch from Prashant TR.
63342
63343 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
63344
63345         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
63346         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
63347         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
63348
63349 2000-12-08  Andreas Schwab  <schwab@suse.de>
63350
63351         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
63352         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
63353
63354 2000-12-07  Jim Meyering  <meyering@lucent.com>
63355
63356         * lib/stripslash.c (ISSLASH): Define.
63357         (strip_trailing_slashes): Use ISSLASH rather than comparing against
63358         `/'.
63359         From Prashant TR.
63360
63361         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
63362         (dir_name_r): Declare this function as static.
63363         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
63364         manifest itself on a name containing a mix of slashes and
63365         backslashes.
63366         Make this function work with names starting with a DOS-style
63367         drive letter and colon prefix.
63368         (dir_name): Append `.' if necessary.
63369         Based mostly on patches from Prashant TR and Eli Zaretskii.
63370
63371         * lib/dirname.h (dir_name_r): Remove prototype.
63372
63373 2000-12-06  Paul Eggert  <eggert@twinsun.com>
63374
63375         * m4/off_t-format.m4: Remove this file.
63376         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
63377
63378 2000-12-06  Jim Meyering  <meyering@lucent.com>
63379
63380         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
63381         replacement strtoull, we may well need the replacement strtoul, too.
63382         Check for declarations of strtoul and strtoull.
63383         Check for strtol.  Mainly as a cue to cause automake to include
63384         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
63385         Check for limits.h -- strtol.c needs it.
63386
63387 2000-12-05  Jim Meyering  <meyering@lucent.com>
63388
63389         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
63390
63391 2000-12-04  Jim Meyering  <meyering@lucent.com>
63392
63393         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
63394         Also include memory.h, stdlib.h, unistd.h if appropriate.
63395         Reported by Andreas Jaeger (conflicting declaration of malloc).
63396
63397 2000-12-02  Jim Meyering  <meyering@lucent.com>
63398
63399         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
63400         * m4/jm-macros.m4 (jm_MACROS): require it.
63401
63402 2000-12-02  Jim Meyering  <meyering@lucent.com>
63403
63404         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
63405
63406 2000-12-01  Paul Eggert  <eggert@twinsun.com>
63407
63408         * lib/memrchr.c: Include <config.h> before any system include file.
63409
63410 2000-11-30  Jim Meyering  <meyering@lucent.com>
63411
63412         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
63413
63414 2000-11-30  Jim Meyering  <meyering@lucent.com>
63415
63416         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
63417
63418 2000-11-29  Paul Eggert  <eggert@twinsun.com>
63419
63420         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
63421
63422 2000-11-26  Jim Meyering  <meyering@lucent.com>
63423
63424         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
63425
63426 2000-11-22  Paul Eggert  <eggert@twinsun.com>
63427
63428         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
63429         size of (size_t) -1; it's not portable.
63430
63431 2000-11-17  Jim Meyering  <meyering@lucent.com>
63432
63433         * lib/strstr.c: Update from GNU libc.
63434
63435 2000-11-17  Akim Demaille  <akim@epita.fr>
63436
63437         * lib/obstack.h: Formatting changes.
63438         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
63439         prevent type checking.
63440         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
63441         cast the value to (void *): assigning a `foo *' to a `void *'
63442         variable is valid.
63443         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
63444
63445 2000-11-16  Jim Meyering  <meyering@lucent.com>
63446
63447         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
63448
63449 2000-11-11  Jim Meyering  <meyering@lucent.com>
63450
63451         * lib/error.c: Add a couple #includes, merging from GNU libc version.
63452
63453 2000-11-10  Jim Meyering  <meyering@lucent.com>
63454
63455         * lib/obstack.h: Update from GNU libc.
63456         * lib/obstack.c: Likewise.
63457
63458 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
63459
63460         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
63461
63462 2000-11-06  Paul Eggert  <eggert@twinsun.com>
63463
63464         * lib/getusershell.c (setusershell): Use rewind rather than
63465         fseek/fseeko, to avoid configuration hassles with fseeko.
63466         Don't bother opening SHELLS_FILE if shellstream is NULL;
63467         it's not necessary.
63468
63469 2000-11-05  Jim Meyering  <meyering@lucent.com>
63470
63471         * lib/makepath.h (make_dir): Declare.
63472         * lib/makepath.c (make_dir): Remove `static' attribute.
63473         Tweak a comment.
63474
63475 2000-11-04  Jim Meyering  <meyering@lucent.com>
63476
63477         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
63478
63479 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
63480
63481         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
63482         last one in a bucket, advance to the next bucket.
63483
63484 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
63485
63486         * lib/fnmatch.c: Do not comment out all the code if we are using
63487         the GNU C library, because in some cases we are replacing buggy
63488         code in the GNU C library itself.
63489
63490 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
63491
63492         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
63493         (regex_compile): Catch bogus \(\1\).
63494
63495 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63496
63497         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
63498         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
63499         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
63500
63501 2000-10-30  Paul Eggert  <eggert@twinsun.com>
63502
63503         * lib/error.h, getline.h, modechange.h:
63504         Remove "2000" from Copyright line, as the file hasn't been
63505         changed this year other than in the copyright notice.
63506
63507         * lib/xalloc.h: Add "2000" to Copyright line, as this file
63508         was changed this year.
63509
63510 2000-10-29  Jim Meyering  <meyering@lucent.com>
63511
63512         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
63513         renaming.
63514         * m4/ls-mntd-fs.m4: Likewise
63515
63516 2000-10-29  Jim Meyering  <meyering@lucent.com>
63517
63518         * lib/xstat.in: Fix grammar in comment.
63519
63520 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
63521
63522         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
63523         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
63524         doesn't define __restrict_arr.
63525
63526 2000-10-28  Jim Meyering  <meyering@lucent.com>
63527
63528         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
63529         (jm_PREREQ_MEMCHR): New function.
63530
63531 2000-10-28  Jim Meyering  <meyering@lucent.com>
63532
63533         * lib/memchr.c: Update from libc.
63534         Adjust for portability:
63535         [HAVE_STDLIB_H]: Include stdlib.h.
63536         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
63537         Undef __memchr, too.
63538         [!weak_alias]: Define __memchr to memchr.
63539
63540         * lib/regex.c: Update from libc.
63541         * lib/regex.h: Likewise.
63542         * lib/getopt1.c: Likewise.
63543         * lib/memcmp.c: Likewise.
63544
63545         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
63546         Avoid using fseek, when possible -- it's broken by design.
63547         Patch by Ulrich Drepper.
63548
63549 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
63550
63551         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
63552         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
63553         Giving in to popular pressure to shut up the compiler with casts.
63554
63555 2000-10-26  Jim Meyering  <meyering@lucent.com>
63556
63557         * lib/strftime.c: Update from libc.
63558
63559 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
63560
63561         * regex.c: More `unsigned char' -> `re_char' changes.
63562         Also change several `int' into `re_wchar_t'.
63563         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
63564         (PUSH_FAILURE_POINTER): Don't cast any more.
63565         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
63566         We want GCC to complain, since this piece of code makes
63567         re_match non-reentrant, which *should* be fixed.
63568         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
63569         (EXTEND_BUFFER): Use RETALLOC.
63570         (SET_LIST_BIT): Don't cast.
63571         (re_wchar_t): New type.
63572         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
63573         that those two functions will always properly return.
63574         (IMMEDIATE_QUIT_CHECK): Cast to void.
63575         (analyse_first): Use recursion rather than an explicit stack.
63576         (re_compile_fastmap): Can't fail anymore.
63577         (re_search_2): Don't check re_compile_fastmap for failure.
63578         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
63579         Now also sets the new value (passed in a new argument).
63580         (re_match_2_internal): Use it.
63581         Also, use a new var `reg' of type size_t when looping through regs
63582         rather than reuse the inappropriate `mcnt'.
63583
63584 2000-10-25  Jim Meyering  <meyering@lucent.com>
63585
63586         * lib/obstack.c: Update from libc.
63587
63588 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
63589
63590         * regex.c (regex_compile): Change the way of handling a range from
63591         a char less than 256 to a char not less than 256.
63592
63593 2000-10-24  Andrew Innes  <andrewi@gnu.org>
63594
63595         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
63596         NT-Emacs only.
63597         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
63598         so that re_search functions only quit when callers expect them to.
63599
63600 2000-10-23  Jim Meyering  <meyering@lucent.com>
63601
63602         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
63603         wrong.  That set_locale call must not have any side effects.
63604         From Paul Eggert.
63605
63606 2000-10-22  Jim Meyering  <meyering@lucent.com>
63607
63608         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
63609         [CYCLIC]: Remove now-unused definition.
63610
63611         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
63612         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
63613         Suggestion from Ulrich Drepper.
63614
63615 2000-10-21  Jim Meyering  <meyering@lucent.com>
63616
63617         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
63618         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
63619         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
63620
63621 2000-10-21  Jim Meyering  <meyering@lucent.com>
63622
63623         * lib/dirname.c (memrchr): Declare if necessary.
63624         (dir_name): Remove the restriction that there be no
63625         trailing slashes.  Now, this code skips past them, effectively
63626         ignoring them.
63627         [TEST_DIRNAME] (main): New unit tests.
63628
63629         * lib/memrchr.c: New file from GNU libc.
63630         Undef __memrchr, too.
63631         [!weak_alias]: Define __memrchr to memrchr.
63632         Guard weak_alias use with `#ifdef weak_alias'.
63633
63634 2000-10-21  Jim Meyering  <meyering@lucent.com>
63635
63636         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
63637         (dir_name): Use dir_name_r.
63638         * lib/dirname.h (dir_name_r): Declare it.
63639
63640 2000-10-17  Jim Meyering  <meyering@lucent.com>
63641
63642         * lib/quote.h (PARAMS): Define and use.
63643         Reported by Akim Demaille.
63644
63645         * lib/getopt.c: Update from libc.
63646
63647 2000-10-16  Jim Meyering  <meyering@lucent.com>
63648
63649         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
63650         setlocale.
63651         From Jan Fedak.
63652
63653 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
63654
63655         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
63656
63657 2000-09-25  Jim Meyering  <meyering@lucent.com>
63658
63659         * lib/md5.h (rol): Define (from GnuPG).
63660
63661         * lib/sha.c: Give credit (GnuPG) where due.
63662         (M): Use rol rather than open-coding it.
63663         Add a FIXME comment.
63664
63665 2000-09-21  Jim Meyering  <meyering@lucent.com>
63666
63667         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
63668         Reported by Michael Stone.
63669
63670 2000-09-20  Jim Meyering  <meyering@lucent.com>
63671
63672         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
63673         (noinst_HEADERS): Add sha.h.
63674         Based on code from Scott G. Miller and from GnuPG.
63675
63676 2000-09-18  Jim Meyering  <meyering@lucent.com>
63677
63678         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
63679         LIBS. Otherwise, everyone ends up linking with -lelf for some
63680         configurations.
63681         Reported by Mike Stone.
63682
63683 2000-09-15  Jim Meyering  <meyering@lucent.com>
63684
63685         * lib/regex.c: Update from libc.
63686
63687 2000-09-10  Jim Meyering  <meyering@lucent.com>
63688
63689         * lib/getopt.c (_getopt_internal): Update from glibc.
63690
63691 2000-09-09  Jim Meyering  <meyering@lucent.com>
63692
63693         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
63694         think it should be used as a general replacement for isascii.
63695         * lib/fnmatch.c: Likewise.
63696         * lib/mbswidth.c: Likewise
63697         * lib/regex.c: Likewise.
63698
63699         Don't use atoi.
63700         * lib/userspec.c: Include sys/param.h and limits.h.
63701         Include xstrtol.h.
63702         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
63703         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
63704         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
63705         UID, GID.  Check range.
63706
63707 2000-09-06  Jim Meyering  <meyering@lucent.com>
63708
63709         * lib/getopt.c (_getopt_internal): Update from glibc.
63710
63711 2000-08-30  Jim Meyering  <meyering@lucent.com>
63712
63713         * lib/strftime.c: Merge in changes from GNU libc.
63714
63715 2000-08-26  Jim Meyering  <meyering@lucent.com>
63716
63717         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
63718         * m4/fpending.m4: New file.
63719
63720 2000-08-26  Jim Meyering  <meyering@lucent.com>
63721
63722         * lib/closeout.c: Include "__fpending.h".
63723         (close_stdout_status): Return right away if there's nothing to flush.
63724
63725         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
63726         * lib/__fpending.c: New file.
63727         * lib/__fpending.h: New file.
63728
63729 2000-08-20  Jim Meyering  <meyering@lucent.com>
63730
63731         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
63732         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
63733         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
63734
63735 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
63736
63737         Improve fileutils installation on systems where running
63738         programs (like install) can't be unlinked.
63739         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
63740         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
63741
63742 2000-08-07  Paul Eggert  <eggert@twinsun.com>
63743
63744         Standardize on "memory exhausted" instead of "Memory exhausted"
63745         or "virtual memory exhausted".
63746         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
63747         "virtual memory exhausted".
63748         * lib/same.c (same_name): Invoke xalloc_die instead of printing
63749         our own message.
63750         * lib/userspec.c (parse_user_spec): Likewise.
63751         * lib/bumpalloc.h: comment fix
63752         * lib/same.c, userspec.c: Include xalloc.h.
63753
63754         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
63755         not char *const and pointing to a constant array.
63756         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
63757         (xrealloc): Comment fix.
63758
63759         * lib/userspec.c (parse_user_spec):
63760         Don't translate a message until just before returning,
63761         to avoid unnecessary translation.
63762
63763 2000-08-07  Jim Meyering  <meyering@lucent.com>
63764
63765         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
63766         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
63767         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
63768         getgroups.c, gethostname.c, getopt.h, group-member.c,
63769         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
63770         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
63771         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
63772         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
63773         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
63774         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
63775         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
63776         yesno.c: Back out Copyright date changes for each file with no change
63777         this year.  This eases coordination with other programs using the same
63778         source code modules.  From Paul Eggert.
63779
63780 2000-08-06  Paul Eggert  <eggert@twinsun.com>
63781
63782         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
63783         not char, for compatibility with glibc 2.1.3 strftime.c.
63784
63785 2000-08-03  Greg McGary  <greg@mcgary.org>
63786
63787         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
63788         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
63789         (EXTEND_BUFFER): Use them.
63790
63791 2000-08-01  Jim Meyering  <meyering@lucent.com>
63792
63793         * lib/dirname.c (ISSLASH): Define.
63794         (BACKSLASH_IS_PATH_SEPARATOR): Define.
63795         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
63796         both `\' and `/' may be use as path separators.
63797         Based on a patch from Prashant TR.
63798
63799 2000-07-31  Paul Eggert  <eggert@twinsun.com>
63800
63801         * lib/quotearg.c (quotearg_n_options): Don't make the initial
63802         slot vector a constant, since it might get modified.
63803
63804 2000-07-31  Jim Meyering  <meyering@lucent.com>
63805
63806         * lib/xmalloc.c: Use `virtual memory exhausted', not
63807         `Memory exhausted'.
63808         * lib/obstack.c (print_and_abort): Likewise.
63809
63810 2000-07-30  Paul Eggert  <eggert@twinsun.com>
63811
63812         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
63813         buffer, so that the caller can always quote one small
63814         component of a "memory exhausted" message in slot 0.
63815         From a suggestion by Jim Meyering.
63816
63817 2000-07-30  Jim Meyering  <meyering@lucent.com>
63818
63819         * lib/makepath.c (make_path): Quote the other instance, too.
63820
63821         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
63822         (STATIC_BUF_SIZE): Define.
63823         (quotearg_n_options): Use only statically allocated storage when
63824         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
63825         than STATIC_BUF_SIZE.
63826
63827 2000-07-29  Jim Meyering  <meyering@lucent.com>
63828
63829         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
63830         * lib/dirname.c (dir_name): Likewise.
63831
63832         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
63833         `/'.
63834
63835         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
63836         (dir_name): Assert that there are no trailing slashes.
63837
63838 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
63839
63840         * lib/mbswidth.h (mbswidth): Add a flags argument.
63841         (mbswidth): New declaration.
63842         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
63843         * lib/mbswidth.c (mbswidth): Add a flags argument.
63844         (mbsnwidth): New function.
63845
63846 2000-07-24  Jim Meyering  <meyering@lucent.com>
63847
63848         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
63849
63850 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63851
63852         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
63853
63854 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63855
63856         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
63857         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
63858         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
63859         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
63860         invoke multibyte primitives.
63861
63862 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63863
63864         * lib/quotearg.c:
63865         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
63866         so that mbstate_t is always defined.
63867
63868         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
63869         be 1 in at least one GCC installation, and this configuration
63870         error is likely to be common.  Ignoring MB_LEN_MAX hurts
63871         performance on hosts that have mbrtowc but have only unibyte
63872         locales, but I assume these hosts are rare.
63873
63874 2000-07-23  Paul Eggert  <eggert@twinsun.com>
63875
63876         * lib/mbswidth.c (_XOPEN_SOURCE):
63877         Don't define; this causes problems on Solaris 7.
63878         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
63879
63880 2000-07-23  Jim Meyering  <meyering@lucent.com>
63881
63882         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
63883         too: getgrgid, getpwuid, getuid.
63884
63885 2000-07-23  Jim Meyering  <meyering@lucent.com>
63886
63887         * lib/basename.c (base_name): Add an assertion.
63888
63889 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
63890
63891         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
63892         shadow its mbsinit function.
63893
63894 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63895
63896         * lib/mbswidth.h: New file.
63897         * lib/mbswidth.c: New file.
63898         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
63899         (noinst_HEADERS): Add mbswidth.h.
63900
63901 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
63902
63903         * lib/config.charset: Add support for FreeBSD. Improve support for
63904         HP-UX and IRIX 6.
63905
63906 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
63907
63908         * m4/mbswidth.m4: New file.
63909         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
63910
63911 2000-07-15  Jim Meyering  <meyering@lucent.com>
63912
63913         * lib/makepath.c: Include quote.h.
63914         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
63915         corresponding argument in a `quote (...)' call.
63916         Give better diagnostics.
63917
63918         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
63919         (noinst_HEADERS): Add quote.h.
63920
63921         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
63922         from tar's src/misc.c.
63923         * lib/quote.h: New file.  Prototypes for same.
63924
63925 2000-07-14  Paul Eggert  <eggert@twinsun.com>
63926
63927         From a suggestion by Bruno Haible.
63928         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
63929         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
63930         to decide whether to define the BeOS workaround macro;
63931         this adjusts to the change to AC_MBSTATE_T.
63932
63933 2000-07-14  Jim Meyering  <meyering@lucent.com>
63934
63935         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
63936         jm_AC_TYPE_UINTMAX_T.
63937
63938 2000-07-13  Paul Eggert  <eggert@twinsun.com>
63939
63940         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
63941
63942         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
63943         quotearg_buffer_restyled): Add support for
63944         clocale_quoting_style.  Undo previous change to
63945         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
63946         and "{RIGHT QUOTATION MARK}" msgids.
63947
63948 2000-07-10  Paul Eggert  <eggert@twinsun.com>
63949
63950         From a suggestion by Bruno Haible.
63951         * m4/mbstate_t.m4 (AC_MBSTATE_T):
63952         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
63953         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
63954         and mbstate_t, to a single-part test that simply defines mbstate_t.
63955         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
63956         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
63957
63958 2000-07-10  Jim Meyering  <meyering@lucent.com>
63959
63960         * m4/strerror_r.m4: Mirror the correction made in autoconf.
63961
63962         * m4/gnu-source.m4: Output to confdefs.h directly.
63963         Suggestion from Akim Demaille.
63964
63965 2000-07-09  Paul Eggert  <eggert@twinsun.com>
63966
63967         The old behavior of quoting `like this' doesn't look good with
63968         newer, ISO-style fonts.  See:
63969         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
63970
63971         Instead, quote "like this" by default.  Let the translator
63972         tailor the locale-specific quoting behavior by providing
63973         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
63974
63975         * lib/quotearg.c (N_): New macro.
63976         (gettext_default): New function.
63977         (quotearg_buffer_restyled): Use
63978         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
63979         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
63980
63981 2000-07-09  Jim Meyering  <meyering@lucent.com>
63982
63983         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
63984         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
63985
63986         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
63987         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
63988
63989 2000-07-09  Jim Meyering  <meyering@lucent.com>
63990
63991         * lib/Most files: Update copyright dates to include 2000.
63992
63993 2000-07-08  Jim Meyering  <meyering@lucent.com>
63994
63995         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
63996         if not defined.
63997         (xgethostname): Remove now-unnecessary #ifdef.
63998         Move declaration of `err' into loop where it's used.
63999
64000 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64001         and Bruno Haible  <haible@clisp.cons.org>
64002
64003         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
64004         only if the test for an object-type mbstate_t fails.  This
64005         prevents us from mistakenly reporting that mbstate_t is a
64006         system object type after we "#define mbstate_t int" to work
64007         around its lack.
64008
64009 2000-07-05  Paul Eggert  <eggert@twinsun.com>
64010         and Bruno Haible  <haible@clisp.cons.org>
64011
64012         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
64013
64014 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64015
64016         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
64017         to strerror_r.
64018         Include <ctype.h> for use of isalpha.
64019
64020 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64021
64022         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
64023         by allocating a larger buffer. Test the gethostname return value for
64024         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
64025         returns an error and ENAMETOOLONG isn't defined.
64026
64027 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
64028
64029         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
64030         dimension.
64031
64032 2000-07-04  Jim Meyering  <meyering@lucent.com>
64033
64034         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
64035         of the deprecated AC_CHECKING.
64036
64037 2000-07-04  Jim Meyering  <meyering@lucent.com>
64038
64039         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
64040         Reported by Bruno Haible.
64041
64042 2000-07-04  Jim Meyering  <meyering@lucent.com>
64043
64044         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
64045         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
64046         lacks mbrtowc.
64047
64048 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64049
64050         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
64051         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
64052
64053 2000-07-03  Paul Eggert  <eggert@twinsun.com>
64054         and Bruno Haible  <haible@clisp.cons.org>
64055
64056         * lib/quotearg.c (mbrtowc):
64057         Assign to *pwc, and return 1 only if result is nonzero.
64058         (iswprint): Use ISPRINT when substituting our own mbrtowc.
64059
64060 2000-07-03  Jim Meyering  <meyering@lucent.com>
64061
64062         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
64063
64064 2000-07-03  Jim Meyering  <meyering@lucent.com>
64065
64066         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
64067         This is necessary to get a definition of e.g., UTMP_FILE on
64068         HP-UX 10.20.
64069         From Bob Proulx.
64070
64071 2000-07-02  Jim Meyering  <meyering@lucent.com>
64072
64073         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
64074
64075         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
64076         AC_LIBOBJ(function_name).
64077         * m4/chown.m4: Likewise.
64078         * m4/fnmatch.m4: Likewise.
64079         * m4/ftruncate.m4: Likewise.
64080         * m4/getgroups.m4: Likewise.
64081         * m4/getline.m4: Likewise.
64082         * m4/group-member.m4: Likewise.
64083         * m4/jm-macros.m4: Likewise.
64084         * m4/lstat.m4: Likewise.
64085         * m4/malloc.m4: Likewise.
64086         * m4/memcmp.m4: Likewise.
64087         * m4/nanosleep.m4: Likewise.
64088         * m4/putenv.m4: Likewise.
64089         * m4/realloc.m4: Likewise.
64090         * m4/regex.m4: Likewise.
64091         * m4/stat.m4: Likewise.
64092         * m4/strftime.m4: Likewise.
64093
64094 2000-07-02  Jim Meyering  <meyering@lucent.com>
64095
64096         * lib/quotearg.c (mbstate_t): Don't define here.
64097
64098 2000-07-02  Jim Meyering  <meyering@lucent.com>
64099
64100         * lib/nanosleep.c (SIGCONT): Define if not already defined.
64101
64102 2000-07-01  Jim Meyering  <meyering@lucent.com>
64103
64104         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
64105
64106 2000-07-01  Jim Meyering  <meyering@lucent.com>
64107
64108         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
64109         problem.
64110
64111 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64112
64113         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
64114         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
64115
64116 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
64117
64118         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
64119         per change in ../m4/ls-mntd-fs.m4.
64120         (read_filesystem_list): Ignore symbolic links.
64121
64122 2000-06-29  Jim Meyering  <meyering@lucent.com>
64123
64124         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
64125         for declaration of strcmp.
64126
64127         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
64128
64129         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
64130         Avoid warning by casting result to `char *' to remove `const'.
64131
64132 2000-06-28  Jim Meyering  <meyering@lucent.com>
64133
64134         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
64135         included by quotearg.c, for which we perform this test.  From
64136         Bruno Haible.
64137
64138 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64139
64140         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
64141         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
64142         <utmpx.h> exists, put readutmp.o into LIBOBJS.
64143
64144 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
64145
64146         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
64147
64148 2000-06-26  Paul Eggert  <eggert@twinsun.com>
64149
64150         savedir now sets errno on failure and invokes xmalloc to get memory.
64151         Fix a couple of other minor bugs while we're at it.
64152
64153         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
64154         (NAMLEN): Remove macro.
64155         (malloc, realloc): Remove decls.
64156         (stpcpy): Likewise.
64157         ("xalloc.h"): Include.
64158         (NAME_SIZE_DEFAULT): New macro.
64159         (savedir): Use xmalloc / xrealloc to allocate memory.
64160         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
64161         Skip "" directory entries.
64162         Use strlen to calculate directory entry length, since the old method
64163         is rarely used these days and isn't worth supporting.
64164         Don't use a pointer after freeing it.
64165         Check for integer overflow when calculating allocation size.
64166         Use memcpy to copy entries, instead of stpcpy.
64167         Set errno properly when returning NULL.
64168         Check for readdir error.
64169
64170 2000-06-26  Jim Meyering  <meyering@lucent.com>
64171
64172         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
64173
64174 2000-06-25  Jim Meyering  <meyering@lucent.com>
64175
64176         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
64177         Linux header bug when _XOPEN_SOURCE is defined to 500.
64178
64179 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64180
64181         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
64182         deficiency.
64183
64184 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
64185
64186         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
64187         Include xalloc.h.
64188         Don't include <stdlib.h>.  Don't declare malloc, realloc.
64189
64190 2000-06-24  Jim Meyering  <meyering@lucent.com>
64191
64192         * m4/strerror_r.m4: Revive this file -- to try out an experimental
64193         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
64194         for which strerror does return char*, but which lacks a conveniently
64195         accessible declaration of the function.  If the compile-test says
64196         strerror_r doesn't work, then resort to a `run'-test that works on
64197         BeOS and segfaults on DEC Unix.
64198
64199 2000-06-24  Jim Meyering  <meyering@lucent.com>
64200
64201         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
64202
64203 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64204
64205         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
64206         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
64207
64208 2000-06-23  Paul Eggert  <eggert@twinsun.com>
64209
64210         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
64211         (mbrtowc, mbstate_t): Define substitutes if
64212         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
64213         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
64214         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
64215
64216 2000-06-23  Jim Meyering  <meyering@lucent.com>
64217
64218         * m4/afs.m4: Add missing AC_MSG_RESULT.
64219         Reported by Bruno Haible.
64220
64221         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
64222         Suggestion from Bruno Haible.
64223
64224 2000-06-23  Jim Meyering  <meyering@lucent.com>
64225
64226         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
64227
64228 2000-06-21  Jim Meyering  <meyering@lucent.com>
64229
64230         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
64231
64232 2000-06-21  Jim Meyering  <meyering@lucent.com>
64233
64234         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
64235         (noinst_HEADERS): Add getstr.h.
64236
64237         * lib/getline.c (getstr): Move into a separate file.
64238         * lib/getstr.c (getstr): New file, extracted from getline.c, with
64239         the following changes: new parameter, delim2; both delim[12]
64240         parameters have type `int', not `char'.  The latter would lose
64241         with 8-bit delimiters.
64242         * lib/getstr.h: New file.
64243
64244 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64245
64246         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
64247         than 1024, return a memory chunk of least possible size, instead
64248         of size PATH_MAX + 2. In the loop, increment the size proportionally.
64249         Use free/xmalloc instead of xrealloc to avoid copying for very long
64250         paths.
64251
64252 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64253
64254         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
64255         the empty string.
64256
64257 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
64258
64259         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
64260         address, not strdup.  Include <stdlib.h> and don't declare free().
64261
64262 2000-06-19  Jim Meyering  <meyering@lucent.com>
64263
64264         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
64265
64266 2000-06-18  Jim Meyering  <meyering@lucent.com>
64267
64268         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
64269
64270         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
64271         `checking whether...' message to be consistent with that of the
64272         lstat test.
64273
64274 2000-06-18  Jim Meyering  <meyering@lucent.com>
64275
64276         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
64277         Besides, these days every porting target provides a mkdir function.
64278
64279         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
64280         needed. (this snippet comes from src/system.h).
64281
64282 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
64283
64284         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
64285
64286 2000-06-15  Paul Eggert  <eggert@twinsun.com>
64287
64288         * lib/human.c (adjust_value): New function.
64289         (human_readable_inexact): Apply rounding style even when
64290         printing approximate values.
64291
64292 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64293
64294         * lib/human.c (human_readable_inexact): Allow an input block
64295         size that is not a multiple of the output block size, and vice versa.
64296         Reported by Piergiorgio Sartor.
64297
64298 2000-06-14  Paul Eggert  <eggert@twinsun.com>
64299
64300         * lib/getdate.y (get_date): Apply relative times after time
64301         zone indicator, not before.  Reported by Todd A. Jacobs.
64302
64303 2000-06-13  Jim Meyering  <meyering@lucent.com>
64304
64305         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
64306
64307         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
64308
64309 2000-06-12  Paul Eggert  <eggert@twinsun.com>
64310
64311         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
64312
64313 2000-06-12  Jim Meyering  <meyering@lucent.com>
64314
64315         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
64316         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
64317         optional argument.
64318         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
64319         the optional argument, `lib'.
64320
64321 2000-06-08  Jim Meyering  <meyering@lucent.com>
64322
64323         * m4/largefile.m4: Remove file (now that it's part of autoconf).
64324
64325 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64326
64327         Rewrite largefile configuration so that we don't need to run
64328         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
64329         AC_CANONICAL_HOST in configure.in -- jmm]
64330
64331         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
64332         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
64333         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
64334         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
64335         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
64336         All uses changed.
64337         Instead of inspecting the output of getconf, try to compile the
64338         test program without and with the macro definition.
64339         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
64340         for getconf.  Instead, check for the needed flags by compiling
64341         test programs.
64342
64343 2000-06-04  Paul Eggert  <eggert@twinsun.com>
64344
64345         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
64346
64347 2000-06-04  Jim Meyering  <meyering@lucent.com>
64348
64349         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
64350         SunOS 4.1.4 for which gid_t is an unsigned type.
64351
64352 2000-06-03  Jim Meyering  <meyering@lucent.com>
64353
64354         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
64355         now that autoconf requires that.
64356
64357         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
64358         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
64359         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
64360
64361 2000-06-03  Jim Meyering  <meyering@lucent.com>
64362
64363         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
64364
64365 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64366
64367         * m4/glibc21.m4: New file.
64368         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
64369
64370 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
64371
64372         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
64373         newer, don't install charset.alias.
64374         * lib/config.charset: Change the Linux/glibc rules so they become empty
64375         on glibc-2.1 or newer.
64376
64377 2000-06-02  Jim Meyering  <meyering@lucent.com>
64378
64379         * lib/mountlist.c: Back out last change.  Instead, do this...
64380         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
64381         me_dummy member using the same `ignore'-testing code.
64382         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
64383         fs_type strings.
64384         From Mark D. Roth.
64385
64386 2000-05-29  Jim Meyering  <meyering@lucent.com>
64387
64388         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
64389         mounts with the `ignore' attribute.  Based on a patch from
64390         Mark D. Roth.
64391
64392 2000-05-28  Jim Meyering  <meyering@lucent.com>
64393
64394         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
64395         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64396         * m4/stat.m4: Likewise.
64397         * m4/lstat.m4: Likewise.
64398         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
64399
64400         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
64401         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
64402
64403 2000-05-26  Jim Meyering  <meyering@lucent.com>
64404
64405         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
64406
64407 2000-05-24  Jim Meyering  <meyering@lucent.com>
64408
64409         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
64410         autoconf requires that.
64411         * m4/lib-check.m4: Likewise.
64412         * m4/jm-macros.m4: Likewise.
64413         * m4/strftime.m4: Likewise.
64414
64415         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
64416         AC_CHECK_DECLS, now that autoconf requires that.
64417
64418 2000-05-22  Jim Meyering  <meyering@lucent.com>
64419
64420         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64421         * m4/lstat.m4: Likewise.
64422
64423 2000-05-22  Jim Meyering  <meyering@lucent.com>
64424
64425         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
64426
64427 2000-05-20  Jim Meyering  <meyering@lucent.com>
64428
64429         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
64430         (jm_PREREQ): Use it.
64431
64432 2000-05-18  Jim Meyering  <meyering@lucent.com>
64433
64434         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
64435         back, too, since it may have been modified by allocate_entry.
64436         (hash_delete): Rewrite to use neither the assignment operator
64437         nor the comma operator in an if-expression.
64438
64439 2000-05-15  Paul Eggert  <eggert@twinsun.com>
64440
64441         * lib/closeout.c:
64442         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
64443         Remove; no longer needed.
64444         "quotearg.h": Add include.
64445         (file_name): Do not bother to explicitly initialize to NULL; it's less
64446         efficient on some hosts.
64447         (close_stdout_status): Remove test as to whether stdout was already
64448         closed; it breaks for the case "echo x | sort >&-".
64449         Quote file name colons.
64450         Do not assume that _("write error") lacks format strings.
64451
64452 2000-05-15  Jim Meyering  <meyering@lucent.com>
64453
64454         * lib/version-etc.c (version_etc_copyright): Update the copyright
64455         string used in all --version output.
64456
64457 2000-05-14  Jim Meyering  <meyering@lucent.com>
64458
64459         * lib/closeout.c (close_stdout_set_file_name): New function.
64460         (close_stdout_status): Use new file-scoped global.
64461         Return right away if fstat says the stdout file descriptor is invalid.
64462         * lib/closeout.h (close_stdout_set_file_name): Declare.
64463
64464 2000-05-10  Jim Meyering  <meyering@lucent.com>
64465
64466         * lib/closeout.c [default_exit_status]: New file-scoped variable.
64467         (close_stdout_set_status): New function.
64468         * lib/closeout.h (close_stdout_set_status): Declare.
64469
64470 2000-05-09  Jim Meyering  <meyering@lucent.com>
64471
64472         * m4/gettext.m4: Rename this...
64473         * m4/libintl.m4: ...to this.
64474
64475 2000-05-08  Jim Meyering  <meyering@lucent.com>
64476
64477         * lib/long-options.c: Don't include closeout.h.
64478         (parse_long_options): Don't call close_stdout for --version.
64479
64480 2000-05-06  Paul Eggert  <eggert@twinsun.com>
64481
64482         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
64483         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
64484         2.1.3 bug.  This avoids a clash when files like regex.c define
64485         _GNU_SOURCE.
64486
64487 2000-05-06  Jim Meyering  <meyering@lucent.com>
64488
64489         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
64490         (AC_REPLACE_FUNCS): Add strnlen.
64491
64492         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
64493         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
64494
64495         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
64496         AC_SEARCH_LIBS call for nanosleep.
64497         (LIB_NANOSLEEP): Set and AC_SUBST.
64498
64499 2000-05-06  Jim Meyering  <meyering@lucent.com>
64500
64501         * lib/strnlen.c: Undefine __strnlen and strnlen.
64502         [!weak_alias]: Define __strnlen to strnlen.
64503
64504         * lib/atexit.c: New file, from libiberty.
64505
64506 2000-05-06  Jim Meyering  <meyering@lucent.com>
64507
64508         * lib/closeout.c (close_stdout_status): Also check for errors on the
64509         stderr stream.
64510
64511 2000-05-05  Jim Meyering  <meyering@lucent.com>
64512
64513         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
64514         AC_SEARCH_LIBS call for clock_gettime.
64515         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
64516
64517         * m4/search-libs.m4: Update from autoconf.
64518
64519         su doesn't work on Solaris 2.6.
64520         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
64521         <shadow.h>.  Reported by Dragos Harabor.
64522
64523 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
64524
64525         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
64526         memcpy instead of xmalloc, xrealloc, path_concat.
64527         (locale_charset): Treat empty environment variables as absent.
64528         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
64529
64530 2000-05-04  Jim Meyering  <meyering@lucent.com>
64531
64532         * lib/getopt.c: Update from glibc.
64533         * lib/obstack.c: Likewise.
64534         * lib/obstack.h: Likewise.
64535         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
64536         file
64537
64538         * lib/regex.h: Likewise.
64539         * lib/strndup.c: Likewise.
64540         * lib/strnlen.c: New file, from glibc.
64541
64542 2000-05-03  Jim Meyering  <meyering@lucent.com>
64543
64544         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
64545
64546 2000-05-02  Paul Eggert  <eggert@twinsun.com>
64547
64548         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
64549         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
64550         compile-time test, rather than inspecting host and OS, to
64551         decide whether to define _LARGEFILE_SOURCE.
64552
64553 2000-05-01  Jim Meyering  <meyering@lucent.com>
64554
64555         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
64556
64557         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
64558         Based on a patch from Bruno Haible.
64559
64560 2000-05-01  Jim Meyering  <meyering@lucent.com>
64561
64562         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
64563
64564 2000-04-29  Jim Meyering  <meyering@lucent.com>
64565
64566         * lib/path-concat.c: Declare strdup only if it's not defined.
64567         * lib/canon-host.c: Likewise.
64568
64569 2000-04-28  Jim Meyering  <meyering@lucent.com>
64570
64571         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
64572         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
64573         is included first, then limits.h is included by locale.h by libintl.h.
64574         From John David Anglin.
64575
64576 2000-04-25  Jim Meyering  <meyering@lucent.com>
64577
64578         * lib/makepath.c (S_IRWXUGO): Define.
64579         (make_path): Always perform explicit chmod if MODE specifies any
64580         of the `special' permission bits.  Prompted by a bug report against
64581         install from Mate Wierdl and Joost van Baal.
64582
64583 2000-04-18  Jim Meyering  <meyering@lucent.com>
64584
64585         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
64586         (jm_PREREQ): Use it.
64587
64588 2000-04-18  Jim Meyering  <meyering@lucent.com>
64589
64590         * lib/README: New file.
64591
64592         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
64593         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
64594
64595 2000-04-17  Jim Meyering  <meyering@lucent.com>
64596
64597         Get it right :-)
64598         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
64599         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
64600         Suggestion from Akim Demaille.
64601
64602 2000-04-17  Jim Meyering  <meyering@lucent.com>
64603
64604         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
64605         the definition of it to rpl_strftime also defined-away the system's
64606         declaration.
64607
64608 2000-04-15  Jim Meyering  <meyering@lucent.com>
64609
64610         Use `C' to denote so-called `contiguous' files, the same way
64611         that tar does.
64612         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
64613         (ftypelet): Use S_ISCTG.
64614         From Michael Deutschmann.
64615
64616 2000-04-14  Jim Meyering  <meyering@lucent.com>
64617
64618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
64619         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
64620         clobbered.
64621
64622 2000-04-14  Jim Meyering  <meyering@lucent.com>
64623
64624         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
64625
64626 2000-04-13  Jim Meyering  <meyering@lucent.com>
64627
64628         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
64629         AH_VERBATIM to insert required #ifndef into config.h.in.
64630         Suggestion from Akim Demaille.
64631
64632 2000-04-12  Jim Meyering  <meyering@lucent.com>
64633
64634         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
64635         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
64636         Christian Krackowizer.
64637
64638         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
64639         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
64640         (AC_SYS_LARGEFILE): Require.
64641         (AM_C_PROTOTYPES): Require.
64642
64643 2000-04-08  Jim Meyering  <meyering@lucent.com>
64644
64645         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
64646         names don't conflict.  Reported by Eli Zaretskii.
64647
64648 2000-04-07  Jim Meyering  <meyering@lucent.com>
64649
64650         * lib/putenv.c: Move inclusion of errno.h so it follows that of
64651         sys/types.h, to work around system header problems on AIX 3.2.5.
64652         From Bruno Haible.
64653
64654 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
64655
64656         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
64657         bug.  Deal with the different error behavior of Irix iconv.
64658
64659 2000-04-05  Paul Eggert  <eggert@twinsun.com>
64660
64661         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
64662         IRIX if the installer said otherwise.
64663
64664 2000-04-05  Jim Meyering  <meyering@lucent.com>
64665
64666         Portability tweaks required for ultrix4.3.
64667         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
64668         (jm_CHECK_DECLS): Add getutent to the list of functions.
64669         (_jm_DECL_HEADERS): Add utmpx.h.
64670         From John David Anglin.
64671
64672         * m4/strftime.m4: Back out the 2000-04-02 change.
64673         Instead of that change, simply undefine putenv in the test program.
64674
64675 2000-04-05  Jim Meyering  <meyering@lucent.com>
64676
64677         Portability tweaks required for ultrix4.3.
64678         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
64679         getutent.
64680         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
64681         * lib/canon-host.c: Declare strdup.
64682         * lib/path-concat.c: Likewise.
64683         From John David Anglin.
64684
64685 2000-04-04  Jim Meyering  <meyering@lucent.com>
64686
64687         Be more DOS 8.3-friendly.
64688         * lib/ref-add.sin: Renamed from ref-add.sed.in.
64689         * lib/ref-del.sin: Renamed from ref-del.sed.in.
64690         * lib/Makefile.am: Reflect renaming.
64691         Reported by Eli Zaretskii.
64692
64693         Use a temporary file name that won't clash with `charset.alias'
64694         in the DOS 8.3 name space.
64695         * lib/Makefile.am (charset_tmp): Define.
64696         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
64697         (uninstall-local): Likewise.
64698         Reported by Eli Zaretskii.
64699
64700 2000-04-03  Jim Meyering  <meyering@lucent.com>
64701
64702         * m4/gettext.m4: Fix typo in comment.
64703
64704         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
64705         textutils/configure.in).  Suggestion from Paul Eggert.
64706         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
64707
64708 2000-04-02  Paul Eggert  <eggert@twinsun.com>
64709
64710         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
64711         variable in the shell rather than using putenv, which isn't
64712         portable.  This avoids the configure-time inter-test dependency
64713         on the potentially-renamed putenv function.
64714
64715 2000-03-30  Paul Eggert  <eggert@twinsun.com>
64716
64717         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
64718         before checking struct stat.st_blksize, so that
64719         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
64720
64721 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64722
64723         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
64724         since strftime.c uses HAVE_STRFTIME to decide whether to use
64725         the underlying strftime.
64726
64727 2000-03-29  Paul Eggert  <eggert@twinsun.com>
64728
64729         * lib/time/strftime.c (my_strftime): Make sure we call the system
64730         strftime, not ourselves, when invoking the underlying strftime.
64731
64732 2000-03-24  Jim Meyering  <meyering@lucent.com>
64733
64734         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
64735         (charset_alias): Define.
64736         (install-exec-local): Factor out common code.
64737         (uninstall-local): Split lines longer than 80.
64738         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
64739         (SUFFIXES): Define.
64740         (.sed.in.sed): New rule.  Don't redirect directly to $@.
64741         (CLEANFILES): Add ref-add.sed and ref-del.sed.
64742
64743 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
64744
64745         * lib/config.charset: Output a line containing "Packages using this
64746         file".
64747         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
64748         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
64749         ref-del.sed): New rules.
64750
64751 2000-03-17  Jim Meyering  <meyering@lucent.com>
64752
64753         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
64754         Otherwise, include <strings.h>
64755
64756 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
64757
64758         * lib/unicodeio.c (utf8_wctomb): New function.
64759         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
64760         format instead of in UCS-4 with platform dependent endianness.
64761
64762 2000-03-10  Jim Meyering  <meyering@lucent.com>
64763
64764         * m4/lib-check.m4: Look for getspnam in -lgen, too.
64765         From Marco Franzen.
64766
64767 2000-03-07  Paul Eggert  <eggert@twinsun.com>
64768
64769         * lib/savedir.c (savedir): Work even if directory size is
64770         negative; this can happen with some screwy NFS configurations.
64771
64772 2000-03-06  Jim Meyering  <meyering@lucent.com>
64773
64774         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
64775         if it's NULL (because we ran out of memory).  From Bruno Haible.
64776
64777 2000-03-05  Jim Meyering  <meyering@lucent.com>
64778
64779         * lib/localcharset.c ("path-concat.h"): Include.
64780         (get_charset_aliases): Use path_concat instead of ANSI string
64781         concatenation.
64782
64783         * lib/unicodeio.h (PARAMS): Define.
64784         Use it to guard prototype.
64785
64786 2000-03-04  Jim Meyering  <meyering@lucent.com>
64787
64788         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
64789         for lib/localcharset.c.
64790
64791 2000-03-04  Jim Meyering  <meyering@lucent.com>
64792
64793         * lib/Makefile.am (install-exec-local): Create $(libdir) before
64794         installing into it.
64795         (uninstall-local): Uncomment this rule so `make distcheck' works
64796         once again.
64797
64798         * lib/unicodeio.c (<errno.h>): Include it.
64799         (errno): Declare if not defined.
64800
64801         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
64802
64803         * lib/config.charset: New version, incorporating remarks from a linux
64804         i18n mailing list.  From Bruno Haible.
64805
64806 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
64807
64808         * m4/codeset.m4: New file.
64809         * m4/iconv.m4: New file.
64810         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
64811
64812 2000-03-03  Jim Meyering  <meyering@lucent.com>
64813
64814         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
64815
64816 2000-03-02  Jim Meyering  <meyering@lucent.com>
64817
64818         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
64819         the messages come out on separate lines.
64820
64821         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
64822         rather than jm_CHECK_DECLARATIONS.
64823         * m4/decl.m4: Remove now-unused file.
64824
64825         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
64826         geteuid.
64827
64828 2000-03-02  Jim Meyering  <meyering@lucent.com>
64829
64830         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
64831
64832 2000-03-01  Jim Meyering  <meyering@lucent.com>
64833
64834         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
64835         * lib/unicodeio.c: Likewise.
64836
64837 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
64838
64839         * lib/config.charset: New file.
64840         * lib/localcharset.c: New file.
64841         * lib/unicodeio.h, lib/unicodeio.c: New files.
64842         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
64843         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
64844         (noinst_HEADERS): Add unicodeio.h.
64845         (all-local, install-exec-local, charset.alias): New targets.
64846
64847 2000-02-28  Paul Eggert  <eggert@twinsun.com>
64848
64849         * lib/quotearg.c (ALERT_CHAR): New macro.
64850         (quotearg_buffer_restyled): Use it.
64851
64852 2000-02-27  Jim Meyering  <meyering@lucent.com>
64853
64854         * m4/check-decl.m4: Add getenv to the list.
64855
64856 2000-02-27  Jim Meyering  <meyering@lucent.com>
64857
64858         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
64859         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
64860
64861         * lib/backupfile.c: Guard inclusion of stdlib.h with
64862         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
64863         Declare malloc if needed.
64864
64865         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
64866         `#ifndef HAVE_DECL..'
64867         now that autoconf always defines the HAVE_DECL_ symbols.
64868         * lib/human.c: Likewise.
64869         * lib/same.c: Likewise.
64870         * lib/strtoumax.c: Likewise.
64871
64872         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
64873         declaration check was not run.
64874         * lib/hash.c: Likewise.
64875         * lib/human.c: Likewise.
64876         * lib/same.c: Likewise.
64877         * lib/strtoumax.c: Likewise.
64878
64879         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
64880         `.', then first look up the entire `.'-containing string as a login
64881         name.
64882
64883 2000-02-23  Jim Meyering  <meyering@lucent.com>
64884
64885         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
64886         in place of my hack.
64887
64888 2000-02-18  Paul Eggert  <eggert@twinsun.com>
64889
64890         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
64891         (textint): New typedef.
64892         (parser_control): Member year changed from int to textint.
64893         All uses changed.
64894         (YYSTYPE): Removed; replaced by %union with int and textint members.
64895         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
64896         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
64897         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
64898         (tSNUMBER, tUNUMBER): Now of type <textintval>.
64899         (date, number, to_year): Use width of number in digits, not its value,
64900         to determine whether it's a 2-digit year, or a 2-digit time.
64901         (yylex): Store number of digits of numeric tokens.
64902         Reported by John Kendall.
64903
64904         (parser_control): Changed from struct parser_control to typedef (for
64905         consistency).  All uses changed.
64906
64907         (tID): Removed; not used.
64908         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
64909
64910 2000-02-14  Paul Eggert  <eggert@twinsun.com>
64911
64912         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
64913         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
64914
64915 2000-02-12  Jim Meyering  <meyering@lucent.com>
64916
64917         * lib/userspec.c (ISDIGIT): Define it.
64918         (isdigit): Remove definition.
64919         (is_number): Use ISDIGIT, not isdigit.
64920         <libintl.h>: Include.
64921         (_ and N_): Define.
64922         (parse_user_spec): Mark translatable strings.
64923
64924 2000-02-10  Jim Meyering  <meyering@lucent.com>
64925
64926         With these changes, nanosleep.[ch] are finally enough like the other
64927         lib/* replacement files to compile on a few more losing systems.
64928
64929         * lib/nanosleep.h: Don't include config.h.
64930         Remove prototype from declaration of nanosleep.
64931         (PARAMS): Remove now-unneeded definition.
64932         * lib/nanosleep.c: #undef nanosleep.
64933         (rpl_nanosleep): Rename from nanosleep.
64934
64935 2000-02-10  Jim Meyering  <meyering@lucent.com>
64936
64937         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
64938         gnu_nanosleep to rpl_nanosleep.
64939
64940 2000-02-09  Jim Meyering  <meyering@lucent.com>
64941
64942         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
64943         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
64944
64945 2000-02-08  Akim Demaille  <akim@epita.fr>
64946
64947         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
64948         `[' and `]' and remove uses of `changequote'.
64949         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
64950         (AC_SYS_LARGEFILE): Likewise.
64951         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64952         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
64953         of changequote.
64954         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
64955         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
64956         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
64957         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
64958
64959 2000-02-05  Jim Meyering  <meyering@lucent.com>
64960
64961         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
64962         Remove explicit use of AC_HEADER_TIME.  It is required by
64963         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
64964         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
64965         in autoconf whereby the expansion of the latter ended up preceding
64966         the expansion of its prerequisite, AC_HEADER_TIME.
64967         Reported by Volker Borchert.
64968
64969 2000-02-03  Jim Meyering  <meyering@lucent.com>
64970
64971         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
64972
64973 2000-02-03  Jim Meyering  <meyering@lucent.com>
64974
64975         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
64976         rather than with `#if HAVE_UTMPNAME'.
64977
64978 2000-02-02  Jim Meyering  <meyering@lucent.com>
64979
64980         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
64981         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
64982         Reported by Eli Zaretskii.
64983
64984 2000-02-01  Jim Meyering  <meyering@lucent.com>
64985
64986         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
64987
64988 2000-01-31  Jim Meyering  <meyering@lucent.com>
64989
64990         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
64991         functions.  Add the time.h and sys/time.h headers along with the
64992         AC_REQUIRE'ment of AC_HEADER_TIME.
64993
64994 2000-01-31  Jim Meyering  <meyering@lucent.com>
64995
64996         * lib/nanosleep.h (nanosleep): Guard declaration with
64997         `#if ! HAVE_DECL_NANOSLEEP'.
64998         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
64999         the declaration in that vendor's sys/timers.h.
65000         Reported by Christian Krackowizer.
65001
65002         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
65003         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
65004         (ISPRINT): Likewise.
65005         Reported by Tom Tromey.
65006
65007 2000-01-30  Jim Meyering  <meyering@lucent.com>
65008
65009         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
65010
65011         * m4/prereq.m4 (utmp_includes): Define.
65012         Check for ut_user and ut_name members in both struct utmpx
65013         and struct utmp.
65014
65015 2000-01-30  Jim Meyering  <meyering@lucent.com>
65016
65017         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
65018         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
65019         header files where only utmpx.ut_user is declared.
65020
65021         * lib/readutmp.h (UT_USER): Define.
65022
65023 2000-01-29  Jim Meyering  <meyering@lucent.com>
65024
65025         * m4/lib-check.m4: New file containing library-related checks from
65026         fileutils and sh-utils (textutils had none).
65027
65028 2000-01-28  Jim Meyering  <meyering@lucent.com>
65029
65030         * m4/perl.m4: Change format of warning message to look more like that
65031         from the missing script.  Suggestion from François Pinard.
65032
65033 2000-01-25  Jim Meyering  <meyering@lucent.com>
65034
65035         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
65036         well as time.h in the compile check.
65037         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
65038         Fix typo in cross-compiling case: s/yes/no/.
65039
65040 2000-01-23  Jim Meyering  <meyering@lucent.com>
65041
65042         * m4/jm-macros.m4: Move df-related tests here from
65043         fileutils/configure.in
65044
65045         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
65046         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
65047
65048         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
65049         s/space/ac_fsusage_space/.
65050         (jm_FILE_SYSTEM_USAGE): Take two parameters.
65051
65052         * m4/ftruncate.m4: New file (derived from part of
65053         fileutils/configure.in).
65054         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
65055         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
65056
65057         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
65058         AC_SUBST these here, rather than just in sh-util/configure.in, so
65059         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
65060         all the same.
65061         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
65062         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
65063         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
65064         (AC_SUBST(POW_LIBM)): Likewise.
65065         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
65066
65067 2000-01-23  Jim Meyering  <meyering@lucent.com>
65068
65069         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
65070         obstack.c.
65071
65072 2000-01-22  Jim Meyering  <meyering@lucent.com>
65073
65074         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
65075
65076         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
65077
65078         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
65079         configure.in
65080         (AC_CHECK_HEADERS): Likewise for sh-utils.
65081         (AC_CHECK_HEADERS): Likewise for textutils.
65082         Merge the three lists of headers.
65083
65084         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
65085         from fileutils' configure.in.
65086
65087         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
65088         code. Moved tests into their own function (_jm_DECL_HEADERS) in
65089         check-decl.m4.
65090
65091         * m4/check-decl.m4: Use #if rather than #ifdef.
65092         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
65093         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
65094         (_jm_DECL_HEADERS): Define new function.
65095         (jm_CHECK_DECLARATIONS): Require it.
65096
65097 2000-01-22  Jim Meyering  <meyering@lucent.com>
65098
65099         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
65100         [! HAVE_DECL_STRTOULL]: Declare strtoull.
65101         Required for some AIX systems.  Reported by Christian Krackowizer.
65102         [TESTING] (main): New function.
65103
65104         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
65105         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
65106         letters.
65107
65108         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
65109         iswprint.
65110
65111         * lib/strverscmp.c (ISDIGIT): Define.
65112         (strverscmp): Use ISDIGIT, not isdigit.
65113
65114 2000-01-19  Jim Meyering  <meyering@lucent.com>
65115
65116         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
65117         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
65118         defines `struct timespec' in <sys/time.h>
65119
65120         * m4/c-bs-a.m4: Remove uses of changequote altogether.
65121         Thanks to Akim for explaining.
65122
65123 2000-01-17  Paul Eggert  <eggert@twinsun.com>
65124
65125         * lib/nanosleep.c (nanosleep):
65126         Don't use SA_INTERRUPT to decide whether to call sigaction, as
65127         POSIX.1 doesn't require SA_INTERRUPT and some systems
65128         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
65129         it's been part of POSIX.1 since day 1 (in 1988).
65130
65131 2000-01-17  Jim Meyering  <meyering@lucent.com>
65132
65133         * lib/interlock: Remove unused file.  Reported by François Pinard.
65134
65135 2000-01-16  Paul Eggert  <eggert@twinsun.com>
65136
65137         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
65138         alert, backslash, formfeed, and vertical tab unnecessarily in
65139         shell quoting style.
65140
65141 2000-01-16  Jim Meyering  <meyering@lucent.com>
65142
65143         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
65144         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
65145         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
65146         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
65147
65148 2000-01-16  Jim Meyering  <meyering@lucent.com>
65149
65150         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
65151         because the latter didn't work.
65152
65153 2000-01-15  Jim Meyering  <meyering@lucent.com>
65154
65155         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
65156         (AC_REPLACE_FUNCS): Add memcpy and memset.
65157         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
65158         Add strpbrk.
65159         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
65160
65161 2000-01-12  Jim Meyering  <meyering@lucent.com>
65162
65163         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
65164         (jm_PREREQ): Use it.
65165         (jm_PREREQ_READUTMP): New macro.
65166         (jm_PREREQ): Use it.
65167
65168 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65169
65170         Quote multibyte characters correctly.
65171         * m4/c-bs-a.m4: New file.
65172         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
65173         (jm_PREREQ): Use it.
65174
65175 2000-01-11  Paul Eggert  <eggert@twinsun.com>
65176
65177         * m4/uintmax_t.m4: Port to autoconf 2.13.
65178
65179 2000-01-08  Jim Meyering  <meyering@ascend.com>
65180
65181         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
65182         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
65183
65184 2000-01-04  Jim Meyering  <meyering@ascend.com>
65185
65186         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
65187         jm_STRUCT_DIRENT_D_TYPE.
65188         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
65189         jm_STRUCT_DIRENT_D_INO.
65190         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
65191         jm_STRUCT_UTIMBUF.
65192         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
65193         renamings.
65194         * m4/utime.m4: Likewise.
65195
65196         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
65197         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
65198
65199 2000-01-03  Paul Eggert  <eggert@twinsun.com>
65200
65201         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
65202         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
65203
65204 2000-01-02  Jim Meyering  <meyering@ascend.com>
65205
65206         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
65207         remember if this is necessary.
65208
65209 1999-12-26  Jim Meyering  <meyering@ascend.com>
65210
65211         * m4/jm-macros.m4: Use it here.
65212         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
65213
65214 1999-12-23  Jim Meyering  <meyering@ascend.com>
65215
65216         * m4/jm-macros.m4: Check for clock_gettime (moved from
65217         fileutils/configure.in)
65218         Check for gettimeofday.
65219
65220 1999-12-20  Jim Meyering  <meyering@ascend.com>
65221
65222         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
65223         autoconf-2.14a-1999-12-20.
65224
65225 1999-12-19  Jim Meyering  <meyering@ascend.com>
65226
65227         * m4/lstat-slash.m4: New file.
65228         * m4/jm-macros.m4: Use the new macro:
65229         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65230
65231 1999-12-07  Jim Meyering  <meyering@ascend.com>
65232
65233         * m4/perl.m4: Require that File::Compare be available, too.
65234         Too many systems seem to lack it.
65235
65236         * m4/strftime.m4: Add checks for most of the cpp macros tested in
65237         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
65238
65239 1999-11-18  Paul Eggert  <eggert@twinsun.com>
65240
65241         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
65242         problem with the QNX 4.25 shell, which doesn't propagate exit
65243         status of failed commands inside shell assignments.
65244
65245 1999-11-17  Jim Meyering  <meyering@ascend.com>
65246
65247         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
65248
65249 1999-11-07  Jim Meyering  <meyering@ascend.com>
65250
65251         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
65252
65253 1999-11-06  Jim Meyering  <meyering@ascend.com>
65254
65255         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
65256         * m4/jm-macros.m4 (jm_MACROS): Use it here.
65257
65258 1999-11-05  Jim Meyering  <meyering@ascend.com>
65259
65260         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
65261         configure.in of textutils, fileutils, and sh-utils into this one
65262         (shared between those packages) file.
65263         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
65264         AC_STRUCT_ST_BLKSIZE.
65265
65266 1999-11-03  Jim Meyering  <meyering@ascend.com>
65267
65268         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
65269         of AC_CHECK_TYPE checks includes unistd.h.
65270         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
65271         Suggestion from Akim Demaille.
65272
65273 1999-10-30  Jim Meyering  <meyering@ascend.com>
65274
65275         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
65276         m4-quoted string.
65277         * m4/ls-mntd-fs.m4: Likewise.
65278         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
65279         * m4/jm-winsz1.m4: Likewise.
65280
65281         * m4/const.m4: Remove file, since the fix made it into the experimental
65282         version of autoconf.
65283         * m4/mktime.m4: Likewise.
65284
65285         * m4/check-type.m4: Remove file, now that the latest version of
65286         AC_CHECK_TYPE takes a third arg to specify additional #includes.
65287
65288         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
65289         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
65290         AC_CHECK_TYPE.
65291
65292 1999-10-04  Jim Meyering  <meyering@ascend.com>
65293
65294         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
65295
65296 1999-09-22  Paul Eggert  <eggert@twinsun.com>
65297
65298         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
65299         2.95.1 bug with HP-UX 10.20.
65300
65301 1999-09-17  Jim Meyering  <meyering@ascend.com>
65302
65303         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
65304         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
65305         due to missing strdup (against sh-utils-2.0).
65306
65307 1999-08-29  Jim Meyering  <meyering@ascend.com>
65308
65309         * m4/jm-macros.m4: Require jm_BISON.
65310         * m4/bison.m4: New file.
65311
65312 1999-08-17  Paul Eggert  <eggert@twinsun.com>
65313
65314         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
65315         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
65316
65317 1999-08-05  Jim Meyering  <meyering@ascend.com>
65318
65319         * m4/getline.m4: Rename test file from conftestdata to conftest.data
65320         to avoid conflicts with `conftest' on 8+3 filesystems.
65321         Suggestion from Eli Zaretskii.
65322
65323 1999-08-04  Jim Meyering  <meyering@ascend.com>
65324
65325         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
65326         fileutils and sh-utils (textutils's getline test was inadequate).
65327         (AM_FUNC_GETLINE): Run this test.
65328         (AC_CHECK_FUNCS): Check for getdelim.
65329         Reported by Bob Proulx.
65330
65331 1999-08-02  Jim Meyering  <meyering@ascend.com>
65332
65333         * m4/jm-macros.m4: Add a comment.
65334
65335 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65336
65337         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
65338         <inttypes.h> defines strtoumax as a macro (and not as a
65339         function).
65340
65341 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65342
65343         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
65344         that we can shift, multiply and divide unsigned long long
65345         values; Ultrix cc can't do it.
65346
65347 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65348
65349         * m4/mktime.m4: New file, which is a preview of what should appear
65350         in the next public autoconf release.
65351
65352 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65353
65354         * m4/lfs.m4: Remove this file.
65355         * m4/largefile.m4: New file.  It contains the old contents of
65356         lfs.m4, except that all names with prefix AC_LFS have been
65357         changed to use the prefix AC_SYS_LARGEFILE instead, to be
65358         compatible with future autoconf versions.  Also, some minor m4
65359         quoting problems have been fixed.
65360
65361 1999-08-01  Paul Eggert  <eggert@twinsun.com>
65362
65363         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
65364         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
65365         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
65366         and simplify the shell code.
65367
65368 1999-08-01  Jim Meyering  <meyering@ascend.com>
65369
65370         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
65371         m4.
65372
65373 1999-07-20  Jim Meyering  <meyering@ascend.com>
65374
65375         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
65376
65377 1999-07-15  Jim Meyering  <meyering@ascend.com>
65378
65379         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
65380
65381 1999-05-22  Jim Meyering  <meyering@ascend.com>
65382
65383         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
65384
65385 1999-05-20  Jim Meyering  <meyering@ascend.com>
65386
65387         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
65388         Add a colon after each `then' in case $4 is empty.
65389
65390 1999-05-16  Jim Meyering  <meyering@ascend.com>
65391
65392         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
65393
65394 1999-05-10  Jim Meyering  <meyering@ascend.com>
65395
65396         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
65397
65398         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
65399         AC_FUNC_MKTIME.
65400
65401 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65402
65403         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
65404
65405 1999-05-04  Paul Eggert  <eggert@twinsun.com>
65406
65407         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
65408         not CPPFLAGS, so that linking works correctly in IRIX.
65409
65410 1999-04-30  Paul Eggert  <eggert@twinsun.com>
65411
65412         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
65413
65414 1999-04-20  Paul Eggert  <eggert@twinsun.com>
65415
65416         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
65417         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
65418         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
65419         jm_AC_TYPE_UNSIGNED_LONG_LONG.
65420         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
65421
65422         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
65423
65424 1999-04-20  Jim Meyering  <meyering@ascend.com>
65425
65426         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
65427         AC_REPLACE xstroull if necessary.  From Paul Eggert.
65428         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
65429
65430 1999-04-18  Jim Meyering  <meyering@ascend.com>
65431
65432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
65433         * m4/jm-macros.m4: Use it.
65434
65435 1999-04-06  Jim Meyering  <meyering@ascend.com>
65436
65437         * m4/strftime.m4: Remove test for %f.
65438
65439 1999-03-29  Jim Meyering  <meyering@ascend.com>
65440
65441         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
65442         superset of the AC_TYPE_* checks in the textutils, fileutils,
65443         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
65444         AC_TYPE_PID_T.
65445
65446 1999-03-28  Jim Meyering  <meyering@ascend.com>
65447
65448         * m4/jm-macros.m4: Define GNU_PACKAGE here.
65449         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
65450         replaced e.g., in the *.sh files of the sh-utils.
65451
65452 1999-03-20  Jim Meyering  <meyering@ascend.com>
65453
65454         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
65455         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
65456         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
65457
65458 1999-03-19  Jim Meyering  <meyering@ascend.com>
65459
65460         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
65461
65462 1999-03-12  Jim Meyering  <meyering@ascend.com>
65463
65464         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
65465
65466 1999-03-07  Jim Meyering  <meyering@ascend.com>
65467
65468         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
65469         declared.
65470
65471 1999-02-17  Jim Meyering  <meyering@ascend.com>
65472
65473         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
65474         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
65475
65476 1999-02-07  Jim Meyering  <meyering@ascend.com>
65477
65478         * m4/group-member.m4: New file -- extracted from sh-utils'
65479         configure.in.
65480
65481         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
65482         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
65483
65484 1999-02-06  Jim Meyering  <meyering@ascend.com>
65485
65486         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
65487         * m4/fnmatch.m4: Likewise.
65488         * m4/getgroups.m4: Likewise.
65489         * m4/lstat.m4: Likewise.
65490         * m4/malloc.m4: Likewise.
65491         * m4/putenv.m4: Likewise.
65492         * m4/realloc.m4: Likewise.
65493         * m4/regex.m4: Likewise.
65494         * m4/stat.m4: Likewise.
65495         * m4/strftime.m4: Likewise.
65496         Suggestion from Alain Magloire.
65497
65498         * m4/chown.m4: Use `.$ac_objext', not `.o'.
65499         * m4/fnmatch.m4: Likewise.
65500         * m4/getgroups.m4: Likewise.
65501         * m4/getline.m4: Likewise.
65502         * m4/lstat.m4: Likewise.
65503         * m4/malloc.m4: Likewise.
65504         * m4/memcmp.m4: Likewise.
65505         * m4/putenv.m4: Likewise.
65506         * m4/realloc.m4: Likewise.
65507         * m4/regex.m4: Likewise.
65508         * m4/stat.m4: Likewise.
65509         * m4/strftime.m4: Likewise.
65510         Suggestion from Alain Magloire.
65511
65512         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
65513         an argument.
65514
65515         * m4/regex.m4: Add a run-time Test for proper operation of
65516         re_compile_pattern.
65517
65518 1999-01-31  Jim Meyering  <meyering@ascend.com>
65519
65520         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
65521
65522 1999-01-30  Jim Meyering  <meyering@ascend.com>
65523
65524         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
65525
65526         * m4/jm-mktime.m4: Make this a wrapper around the official
65527         AM_FUNC_MKTIME rather than my private copy, now that the official one
65528         is up to date.
65529         * m4/mktime.m4: Remove file.
65530
65531         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
65532         * m4/uptime.m4: Likewise.
65533         * m4/uintmax_t.m4: Likewise.
65534
65535 1999-01-28  Jim Meyering  <meyering@ascend.com>
65536
65537         * m4/jm-macros.m4: Use jm_AFS.
65538         * m4/afs.m4: New file (from fileutils' configure.in).
65539
65540         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
65541         * m4/chown.m4: Likewise.
65542         * m4/d-ino.m4: Likewise.
65543         * m4/d-type.m4: Likewise.
65544         * m4/fnmatch.m4: Likewise.
65545         * m4/getgroups.m4: Likewise.
65546         * m4/gettext.m4: Likewise.
65547         * m4/jm-mktime.m4: Likewise.
65548         * m4/jm-winsz2.m4: Likewise.
65549         * m4/lcmessage.m4: Likewise.
65550         * m4/ls-mntd-fs.m4: Likewise.
65551         * m4/malloc.m4: Likewise.
65552         * m4/memcmp.m4: Likewise.
65553         * m4/putenv.m4: Likewise.
65554         * m4/realloc.m4: Likewise.
65555         * m4/st_mtim.m4: Likewise.
65556         * m4/strftime.m4: Likewise.
65557
65558 1999-01-16  Jim Meyering  <meyering@ascend.com>
65559
65560         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
65561         (ARGMATCH_DIE_DECL): Define.
65562
65563 1999-01-12  Jim Meyering  <meyering@ascend.com>
65564
65565         * m4/Makefile.am.in: Rewrite to avoid using fmt.
65566         Reported by Lars Hecking.
65567
65568 1999-01-10  Jim Meyering  <meyering@ascend.com>
65569
65570         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
65571         gross kludge.
65572         * m4/inttypes_h.m4: Likewise.
65573         * m4/lstat.m4: Likewise.
65574         * m4/malloc.m4: Likewise.
65575         * m4/readdir.m4: Likewise.
65576         * m4/realloc.m4: Likewise.
65577         * m4/st_dm_mode.m4: Likewise.
65578         * m4/stat.m4: Likewise.
65579         * m4/utimbuf.m4: Likewise.
65580         * m4/utimes.m4: Likewise.
65581
65582         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
65583         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
65584         comments in config.h.in are meaningful.
65585
65586         * m4/jm-macros.m4: Require autoconf-2.13 here.
65587
65588         * m4/regex.m4: By default, don't use the included regex.c on systems
65589         with glibc 2.  Suggestion from Uli Drepper.
65590
65591 1999-01-02  Jim Meyering  <meyering@ascend.com>
65592
65593         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
65594
65595 1998-12-18  Jim Meyering  <meyering@ascend.com>
65596
65597         * m4/Makefile.am.in (Makefile.am): Simplify rule.
65598         Based on a suggestion from Lars Hecking.
65599
65600 1998-11-16  Paul Eggert  <eggert@twinsun.com>
65601
65602         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
65603
65604 1998-11-16  Jim Meyering  <meyering@ascend.com>
65605
65606         * m4/lfs.m4: Double-quote the `uname...` expression.
65607
65608 1998-11-14  Jim Meyering  <meyering@ascend.com>
65609
65610         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
65611         * m4/stat.m4: Likewise.
65612
65613 1998-11-03  Jim Meyering  <meyering@ascend.com>
65614
65615         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
65616         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
65617
65618 1998-10-18  Jim Meyering  <meyering@ascend.com>
65619
65620         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
65621
65622 1998-10-17  Jim Meyering  <meyering@ascend.com>
65623
65624         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
65625         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
65626         calls for those previously hard-coded headers.  Instead, take a new
65627         parameter.
65628         (jm_CHECK_DECLARATIONS): Reflect interface change.
65629         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
65630         (jm_CHECK_DECL_LOCALTIME_R): New macro.
65631
65632         * m4/mktime.m4: Test for spring-forward gap before long-running test.
65633
65634 1998-10-14  Jim Meyering  <meyering@ascend.com>
65635
65636         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
65637         instead of "TZ=America/Vancouver".  From Paul Eggert.
65638
65639 1998-10-11  Jim Meyering  <meyering@ascend.com>
65640
65641         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
65642         This adds a test for a recently added compatibility fix for mktime.c.
65643         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
65644
65645 1998-09-27  Jim Meyering  <meyering@ascend.com>
65646
65647         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
65648
65649         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
65650         ../configure.in, including a change from Gordon Matzigkeit to allow
65651         cross-compiling for the Hurd.
65652
65653         * m4/glibc.m4: New file/macro to test for the GNU C Library
65654         versions 1 and 2.  From Gordon Matzigkeit.
65655         Indent.
65656
65657 1998-09-21  Jim Meyering  <meyering@ascend.com>
65658
65659         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
65660
65661 1998-08-18  Paul Eggert  <eggert@twinsun.com>
65662
65663         Port nanosecond-resolution times to UnixWare 2.1.2 and
65664         pedantic Solaris 2.6.
65665
65666         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
65667         AC_STRUCT_ST_MTIM.
65668         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
65669         Generate name of ns member, instead of just 1 or undef.
65670         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
65671
65672 1998-08-15  Jim Meyering  <meyering@ascend.com>
65673
65674         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
65675         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
65676         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
65677         instead of jm_TYPE_SSIZE_T.
65678
65679 1998-08-12  Jim Meyering  <meyering@ascend.com>
65680
65681         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
65682
65683 1998-08-02  Jim Meyering  <meyering@ascend.com>
65684
65685         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
65686         in acconfig.h manually.
65687
65688 1998-07-31  Paul Eggert  <eggert@twinsun.com>
65689
65690         * m4/st_mtim.m4: New file.
65691
65692 1998-07-28  Jim Meyering  <meyering@ascend.com>
65693
65694         * m4/utimes.m4: Undef stat.
65695
65696 1998-07-25  Jim Meyering  <meyering@ascend.com>
65697
65698         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
65699         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
65700
65701 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
65702
65703         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
65704         uid and gid actually remain unchanged.
65705
65706 1998-07-07  Jim Meyering  <meyering@ascend.com>
65707
65708         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
65709
65710 1998-07-04  Jim Meyering  <meyering@ascend.com>
65711
65712         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
65713         to prove that this macro can be used in packages without regex.c.
65714
65715 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
65716
65717         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
65718         is to be used.
65719
65720 1998-07-03  Jim Meyering  <meyering@ascend.com>
65721
65722         * m4/gettext.m4: Add -lintl if it's found to be necessary.
65723
65724         * m4/gettext.m4: New file -- from gettext-0.10.35.
65725         * m4/lcmessage.m4: Likewise.
65726         * m4/progtest.m4: Likewise.
65727
65728         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
65729         * m4/jm-macros.m4: Require the new macro.
65730
65731 1998-06-29  Jim Meyering  <meyering@ascend.com>
65732
65733         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
65734         for the definition of NGROUPS (used in a system header included
65735         by sys/mount.h).
65736
65737 1998-06-28  Jim Meyering  <meyering@ascend.com>
65738
65739         * m4/ls-mntd-fs.m4: New file.
65740         * m4/fstypename.m4: New file.
65741
65742         * m4/jm-macros.m4: Require the new macro.
65743         * m4/jm-glibc-io.m4: New file.
65744
65745 1998-05-19  Jim Meyering  <meyering@ascend.com>
65746
65747         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
65748         * m4/lchown.m4: New file.
65749
65750         * m4/Makefile.am.in: New file.
65751         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
65752
65753 1998-05-14  Jim Meyering  <meyering@ascend.com>
65754
65755         * m4/Makefile.am (EXTRA_DIST): Add them.
65756         * m4/jm-macros.m4: New file.
65757         * m4/utimbuf.m4: New file.
65758
65759 1998-05-12  Jim Meyering  <meyering@ascend.com>
65760
65761         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
65762
65763 1998-05-11  Jim Meyering  <meyering@ascend.com>
65764
65765         * m4/isc-posix.m4: New file.
65766
65767 1998-05-10  Jim Meyering  <meyering@ascend.com>
65768
65769         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
65770
65771 1998-05-09  Jim Meyering  <meyering@ascend.com>
65772
65773         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
65774         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
65775         with automake.
65776
65777         * m4/ssize_t.m4: New file.
65778         * m4/mktime.m4: Remove file -- the new automake has this now.
65779
65780 1998-04-26  Jim Meyering  <meyering@ascend.com>
65781
65782         * m4/assert.m4: New file.
65783         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
65784
65785 1998-04-05  Jim Meyering  <meyering@ascend.com>
65786
65787         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
65788         (jm_PREREQ): Use it here.
65789
65790 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
65791
65792         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
65793         in acconfig.h.
65794
65795 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
65796
65797         * m4/prereq.m4: New file.
65798         * m4/error.m4: New file.
65799         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
65800
65801 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
65802
65803         * m4/getline.m4: Don't set am_cv_func_working_getline before the
65804         cache-check for the same variable -- that defeated the purpose of
65805         the test; the test program was never run.  This was a problem only
65806         on systems with losing getline functions -- HP-UX 10.20 is one.
65807         Reported by Bjorn Helgaas.
65808
65809 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
65810
65811         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
65812
65813 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
65814
65815         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
65816
65817         * m4/const.m4: New file.  Use an initializer in this declaration
65818         typedef int charset[2]; const charset x;
65819         Reported by Bob Glickstein.
65820
65821 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
65822
65823         * m4/chown.m4: Fix reversed types on -1 args to chown.
65824         From Kaveh Ghazi.
65825
65826 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
65827
65828         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
65829         Add lseek and memchr.
65830
65831         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
65832         T.E.Dickey <dickey@clark.net> said that some older preprocessors
65833         have a 20-character limit on names.
65834
65835 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
65836
65837         * m4/inttypes_h.m4: New file.
65838         * m4/uintmax_t.m4: New file.
65839         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
65840
65841
65842         -----
65843
65844         Local Variables:
65845         coding: utf-8
65846         End:
65847
65848         Copyright (C) 1997-2010 Free Software Foundation, Inc.
65849
65850         Copying and distribution of this file, with or without
65851         modification, are permitted provided the copyright notice
65852         and this notice are preserved.